| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <z-paging ref="pagingRef" v-model="twistReportList" class="list" @query="getTwistReportList"> |
| | | <view class="list"> |
| | | <z-paging ref="pagingRef" v-model="twistReportList" :fixed="false" @query="getTwistReportList"> |
| | | <template #top> |
| | | <CardTitle title="报工信息" :hideAction="true" :full="false" @action="addReport" /> |
| | | </template> |
| | |
| | | <view> |
| | | <wd-icon name="user" color="#0D867F"></wd-icon> |
| | | <text class="text-[#0D867F] ml-2 font-medium">生产人</text> |
| | | <text class="text-[#333333] ml-2">方兆玉</text> |
| | | <text class="text-[#333333] ml-2">{{ item.productUser }}</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">编辑</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" :value="item" /> |
| | | <template #footer> |
| | | <wd-button size="small" plain @click="toCheck">自检</wd-button> |
| | | <wd-button size="small" plain @click="toCheck(item.id)">自检</wd-button> |
| | | </template> |
| | | </wd-card> |
| | | </z-paging> |
| | |
| | | <wd-button type="text" @click="cancel">取消</wd-button> |
| | | <wd-button type="text" @click="submit">确定</wd-button> |
| | | </view> |
| | | <TwistForm /> |
| | | <TwistForm ref="twistFormRef" /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | |
| | | |
| | | const pagingRef = ref(); |
| | | const paramsId = ref(); |
| | | const twistFormRef = ref(); |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | |
| | | prop: "monofilamentNumber", |
| | | }, |
| | | { |
| | | label: "规格型号", |
| | | prop: "model", |
| | | label: "实际重量(kg)", |
| | | prop: "actuallyWeight", |
| | | }, |
| | | { |
| | | label: "盘长(m)", |
| | |
| | | prop: "theoryWeight", |
| | | }, |
| | | { |
| | | label: "实际重量(kg)", |
| | | prop: "actuallyWeight", |
| | | label: "规格型号", |
| | | prop: "model", |
| | | }, |
| | | ]); |
| | | |
| | |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("提交"); |
| | | dialog.visible = false; |
| | | dialog.visible = twistFormRef.value.submit(); |
| | | }; |
| | | |
| | | const cancel = () => { |
| | |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const toCheck = () => { |
| | | const toCheck = (id: number) => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/selfInspect/index", |
| | | url: `/pages/production/twist/selfInspect/index?id=${id}`, |
| | | }); |
| | | }; |
| | | |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | padding: 12px; |
| | | background: #f3f9f8; |
| | | |
| | | .list { |
| | | margin: 12px; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |