| | |
| | | @query="getList" |
| | | > |
| | | <template #top> |
| | | <CardTitle title="钢芯领用" :hideAction="true" @action="addReport" /> |
| | | <CardTitle title="钢芯领用" :hideAction="true" :full="false" @action="addReport" /> |
| | | </template> |
| | | <wd-card v-for="(item, index) in cardList" :key="index" type="rectangle" custom-class="round"> |
| | | <template #title> |
| | |
| | | <wd-icon name="a-rootlist" color="#0D867F"></wd-icon> |
| | | <text class="text-[#252525] ml-2 font-medium">{{ item.model }}</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">编辑</view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit(item.id)">编辑</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" :value="item" color="#0D867F" /> |
| | |
| | | <wd-button type="text" @click="cancel">取消</wd-button> |
| | | <wd-button type="text" @click="submit">确定</wd-button> |
| | | </view> |
| | | <SteelCore ref="steelCoreRef" /> |
| | | <SteelCore ref="steelCoreRef" @refresh="reloadList" /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </template> |
| | |
| | | }, |
| | | ]); |
| | | |
| | | const toEdit = () => { |
| | | const toEdit = (id: number) => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/receive/steelCore/edit", |
| | | url: `/pages/production/twist/receive/steelCore/edit?id=${id}`, |
| | | }); |
| | | }; |
| | | |
| | |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("提交"); |
| | | dialog.visible = false; |
| | | const submit = async () => { |
| | | dialog.visible = !(await steelCoreRef.value.submit()); |
| | | }; |
| | | |
| | | const cancel = () => { |
| | |
| | | } |
| | | }; |
| | | |
| | | const reloadList = () => { |
| | | pagingRef.value.refresh(); |
| | | }; |
| | | |
| | | onLoad((options: any) => { |
| | | paramsId.value = options.id; |
| | | }); |