| | |
| | | <template #top> |
| | | <CardTitle title="报工信息" :hideAction="true" :full="false" @action="addReport" /> |
| | | </template> |
| | | <wd-card v-for="(item, index) in twistReportList" type="rectangle" custom-class="round"> |
| | | <wd-card v-for="item in twistReportList" :key="item.id" type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <view> |
| | |
| | | </template> |
| | | <ProductionCard :data="cardAttr" :value="item" /> |
| | | <template #footer> |
| | | <wd-button size="small" plain @click="toAttachment(item)" style="margin-right: 10px"> |
| | | 附件 |
| | | </wd-button> |
| | | <wd-button size="small" plain @click="toCheck(item.id)">自检</wd-button> |
| | | </template> |
| | | </wd-card> |
| | |
| | | }, |
| | | { |
| | | label: "盘长(m)", |
| | | prop: "ontLength", |
| | | prop: "oneLength", |
| | | }, |
| | | { |
| | | label: "理论重量(kg)", |
| | |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const toCheck = (id: number) => { |
| | | const toAttachment = (item: any) => { |
| | | uni.navigateTo({ |
| | | url: `/pages/production/twist/selfInspect/index?id=${id}`, |
| | | url: "/pages/production/twist/attachment/index", |
| | | success: () => { |
| | | // 页面跳转成功后发送事件传递数据 |
| | | uni.$emit("detailData", item); |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | |
| | | |
| | | // 获取拉丝报工列表 |
| | | const getTwistReportList = async () => { |
| | |
| | | |
| | | <style lang="scss" scoped> |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | height: calc(100vh - 80px); |
| | | padding: 12px; |
| | | background: #f3f9f8; |
| | | |