diff --git a/.env.development.local.rename b/.env.development.local.rename deleted file mode 100644 index e2f2090..0000000 --- a/.env.development.local.rename +++ /dev/null @@ -1,3 +0,0 @@ -# 复制本文件并重命名为.env.development.local -# 本地开发版本 -VUE_APP_BASE_URL=http://localhost:8181 diff --git a/src/components/J-Picker/jPicker.vue b/src/components/J-Picker/jPicker.vue index ef684de..859c4d2 100644 --- a/src/components/J-Picker/jPicker.vue +++ b/src/components/J-Picker/jPicker.vue @@ -5,7 +5,7 @@ {{ listData[nSel][showKey] || listData[nSel] }} - {{ $t("message.po_PleaseInput") }} + {{ $t("message.workArea_Selelct") }} diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index e9c484c..454c39a 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -51,7 +51,7 @@ export default { rawMenu_InTheLibrary: "库内", rawMenu_ReturnGoods: "退货", rawMenu_SignOut: "退出", - + //po收货 po_ReceivingGoods: "PO收货", po_ReturnGoods: "DN退货", @@ -187,7 +187,7 @@ export default { Scrap: "成品报废", CollectionAndBorrowing: "成品领用借用", Inventory: "成品盘点", - raw_Inventory:'原材料盘点', + raw_Inventory: "原材料盘点", RowWarehouse: "原材料库内", SemiProductZC: "半成品转储", @@ -195,27 +195,40 @@ export default { RowRelocation: "原材料移库", RowCollectionAndBorrowing: "原材料领用借用", +<<<<<<< Updated upstream // 原材料盘点 InventoryOrderNo:'单号', InventoryMaterielNo:'物料号', InventoryMateriel:'物料名', InventoryTotalNumber:'盘点总数', InventoryPleaseScan: "请扫描单号", +<<<<<<< HEAD +======= + InventoryFinish: "完成", +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f +======= + // 原材料盘点 + InventoryOrderNo: "单号", + InventoryMaterielNo: "物料号", + InventoryMateriel: "物料名", + InventoryTotalNumber: "盘点总数", + InventoryPleaseScan: "请扫描单号", +>>>>>>> Stashed changes - // 委外-入库 - CommissionEntrant:'委外入库', - CommissionedSingleNumber:'单号', - CommissionedMaterielNo:'物料号', - CommissionedMaterielDesc:'物料描述', - CommissionedDemandData:'需求数据', - CommissionedCumulativeData:'累计数据', - CommissionedLocation:'库位', - CommissionedThisNumber:'本次数量', - CommissionedEntrantDetails:'入库明细', + // 委外-入库 + CommissionEntrant: "委外入库", + CommissionedSingleNumber: "单号", + CommissionedMaterielNo: "物料号", + CommissionedMaterielDesc: "物料描述", + CommissionedDemandData: "需求数据", + CommissionedCumulativeData: "累计数据", + CommissionedLocation: "库位", + CommissionedThisNumber: "本次数量", + CommissionedEntrantDetails: "入库明细", - // 委外-出库 - CommissionGoOut:'委外出库', - CommissionedGoOutDetails:'出库明细', + // 委外-出库 + CommissionGoOut: "委外出库", + CommissionedGoOutDetails: "出库明细", //移库 Warehouse_QueryCriteria: "查询条件", Warehouse_TransferOrderNo: "移库单号", diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 30d8af1..e2e95a1 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -205,6 +205,10 @@ export default { InventoryMateriel:'MAT name', InventoryTotalNumber:'Total', InventoryPleaseScan: "Please scan No.", +<<<<<<< HEAD +======= + InventoryFinish: "Finish", +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f // 委外-入库 CommissionEntrant:'委外入库', diff --git a/src/pages.json b/src/pages.json index aaa626c..9e1ba71 100644 --- a/src/pages.json +++ b/src/pages.json @@ -242,6 +242,7 @@ } }, { +<<<<<<< HEAD "path": "pages/raw/ingoods/poReceipt/poReceiving", "style": { "navigationBarTitleText": "PO单收货", @@ -250,6 +251,8 @@ } }, { +======= +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f "path": "pages/raw/ingoods/poReceipt/idetailed", "style": { "navigationBarTitleText": "PO退货", @@ -274,6 +277,7 @@ } }, { +<<<<<<< HEAD "path": "pages/raw/ingoods/dnReceipt/ImportDN", "style": { "navigationBarTitleText": "海外DN收货", @@ -290,6 +294,8 @@ } }, { +======= +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f "path": "pages/raw/ingoods/dnReceipt/idetailed", "style": { "navigationBarTitleText": "DN单收货", @@ -346,6 +352,7 @@ } }, { +<<<<<<< HEAD "path": "pages/raw/handover/picking/ByOrder", "style": { "navigationBarTitleText": "拣配查询", @@ -362,6 +369,8 @@ } }, { +======= +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f "path": "pages/raw/handover/picking/idetailed", "style": { "navigationBarTitleText": "DN退货", diff --git a/src/pages/raw/handover/aggregating/ByOrder.vue b/src/pages/raw/handover/aggregating/ByOrder.vue new file mode 100644 index 0000000..e6fe523 --- /dev/null +++ b/src/pages/raw/handover/aggregating/ByOrder.vue @@ -0,0 +1,483 @@ + + + + + diff --git a/src/pages/raw/handover/aggregating/order.vue b/src/pages/raw/handover/aggregating/order.vue index 0f2a47f..817097c 100644 --- a/src/pages/raw/handover/aggregating/order.vue +++ b/src/pages/raw/handover/aggregating/order.vue @@ -26,13 +26,13 @@ @@ -43,25 +43,25 @@ @@ -262,37 +262,38 @@ export default class AggregatingOrder extends BasePage { title: this.$t("message.Pi_tip4") as string, }); } else { - // await auth.checkPassword({ - // rfPwd: this.submitForm.password, - // factoryCode: session.factoryCode as string, - // loginName: this.submitForm.receiver, - // }); - // let submit = false; - // let selectsta = true; - // model.orderList.forEach((item, index) => { - // if (!item.checked) { - // model.setOrderListItemHvAmount({ index, hvAmount: 0 }); - // } else if (item.hvAmount == null || item.hvAmount == 0) { - // submit = true; - // } - // if (item.checked) { - // selectsta = false; - // } - // }); - // if (selectsta) { - // uni.showToast({ - // icon: 'none', - // title: this.$t('message.Pi_tip4') as string, - // }); - // return; - // } - // if (submit) { - // uni.showToast({ - // icon: 'none', - // title: this.$t('message.Summary_PleaseInputNumber') as string, - // }); - // return; - // } + await auth.checkPassword({ + rfPwd: this.submitForm.password, + factoryCode: session.factoryCode as string, + // loginName: this.submitForm.receiver, + loginName: this.submitForm.receiverName, + }); + let submit = false; + let selectsta = true; + model.orderList.forEach((item, index) => { + if (!item.checked) { + model.setOrderListItemHvAmount({ index, hvAmount: 0 }); + } else if (item.hvAmount == null || item.hvAmount == 0) { + submit = true; + } + if (item.checked) { + selectsta = false; + } + }); + if (selectsta) { + uni.showToast({ + icon: "none", + title: this.$t("message.Pi_tip4") as string, + }); + return; + } + if (submit) { + uni.showToast({ + icon: "none", + title: this.$t("message.Summary_PleaseInputNumber") as string, + }); + return; + } let List: any = []; let isTrue = true; this.model.orderList.forEach((item: any) => { @@ -308,7 +309,10 @@ export default class AggregatingOrder extends BasePage { return; } List.forEach((item: any) => { - if (item.hvAmount != item.amount) { + if ( + parseFloat(item.totalMoAmount) - parseFloat(item.totalHvAmount) != + parseFloat(this.amountForm.amount) + ) { isTrue = false; return; } @@ -350,20 +354,19 @@ export default class AggregatingOrder extends BasePage { this.submitForm.receiver = ""; this.submitForm.receiverName = ""; this.submitForm.password = ""; - // this.toPage(this.page.raw.handover.aggregating.index); - setTimeout(() => { - uni.navigateBack({ delta: 2 }); - }, 2000); + // setTimeout(() => { + // uni.navigateBack({ delta: 2 }); + // }, 2000); // uni.navigateBack({ delta: 2 }); - // uni.showModal({ - // title: this.$t('message.Pi_tip') as string, - // content: this.$t('message.Warehouse_Tip9') as string, - // confirmText: this.$t('message.workArea_Confirm') as string, - // showCancel: false, - // success: () => { - // this.toPage(this.page.raw.handover.aggregating.index); - // }, - // }); + uni.showModal({ + title: this.$t("message.Pi_tip") as string, + content: this.$t("message.Warehouse_Tip9") as string, + confirmText: this.$t("message.workArea_Confirm") as string, + showCancel: false, + success: () => { + this.toPage(this.page.raw.handover.aggregating.index); + }, + }); } } }); diff --git a/src/pages/raw/handover/aggregating/summary.vue b/src/pages/raw/handover/aggregating/summary.vue index 3d60b71..ae4ccae 100644 --- a/src/pages/raw/handover/aggregating/summary.vue +++ b/src/pages/raw/handover/aggregating/summary.vue @@ -264,37 +264,38 @@ export default class AggregatingSummary extends BasePage { title: this.$t("message.Pi_tip4") as string, }); } else { - // await auth.checkPassword({ - // rfPwd: this.submitForm.password, - // factoryCode: session.factoryCode as string, - // loginName: this.submitForm.receiver, - // }); - // let submit = false; - // let selectsta = true; - // model.aggregateList.forEach((item) => { - // if (!item.checked) { - // return; - // } else if (item.hvAmount == null || item.hvAmount == 0) { - // submit = true; - // } - // if (item.checked) { - // selectsta = false; - // } - // }); - // if (selectsta) { - // uni.showToast({ - // icon: "none", - // title: this.$t("message.Pi_tip4") as string, - // }); - // return; - // } - // if (submit) { - // uni.showToast({ - // icon: "none", - // title: this.$t("message.Summary_PleaseInputNumber") as string, - // }); - // return; - // } + await auth.checkPassword({ + rfPwd: this.submitForm.password, + factoryCode: session.factoryCode as string, + // loginName: this.submitForm.receiver, + loginName: this.submitForm.receiverName, + }); + let submit = false; + let selectsta = true; + model.aggregateList.forEach((item) => { + if (!item.checked) { + return; + } else if (item.hvAmount == null || item.hvAmount == 0) { + submit = true; + } + if (item.checked) { + selectsta = false; + } + }); + if (selectsta) { + uni.showToast({ + icon: "none", + title: this.$t("message.Pi_tip4") as string, + }); + return; + } + if (submit) { + uni.showToast({ + icon: "none", + title: this.$t("message.Summary_PleaseInputNumber") as string, + }); + return; + } let List: any = []; let isTrue = true; this.model.aggregateList.forEach((item: any) => { @@ -310,7 +311,10 @@ export default class AggregatingSummary extends BasePage { return; } List.forEach((item: any) => { - if (item.hvAmount != item.amount) { + if ( + parseFloat(item.totalMoAmount) - parseFloat(item.totalHvAmount) != + parseFloat(this.amountForm.amount) + ) { isTrue = false; return; } @@ -356,20 +360,20 @@ export default class AggregatingSummary extends BasePage { this.submitForm.password = ""; this.isBusinessFinished = true; // uni.navigateBack({ delta: 2 }); - setTimeout(() => { - uni.navigateBack({ delta: 2 }); - }, 2000); - // uni.showModal({ - // title: this.$t('message.Pi_tip') as string, - // content: this.$t('message.Warehouse_Tip9') as string, - // confirmText: this.$t('message.workArea_Confirm') as string, - // showCancel: false, - // success: () => { - // this.toPage(this.page.raw.handover.aggregating.index); - // }, - // }); + // setTimeout(() => { + // uni.navigateBack({ delta: 2 }); + // }, 2000); + uni.showModal({ + title: this.$t("message.Pi_tip") as string, + content: this.$t("message.Warehouse_Tip9") as string, + confirmText: this.$t("message.workArea_Confirm") as string, + showCancel: false, + success: () => { + this.toPage(this.page.raw.handover.aggregating.index); + }, + }); // uni.navigateBack({ delta: 1 }); - model.clearProOrderResultList(); + // model.clearProOrderResultList(); } } }); diff --git a/src/pages/raw/handover/feeding/Location.vue b/src/pages/raw/handover/feeding/Location.vue new file mode 100644 index 0000000..e1b6c4b --- /dev/null +++ b/src/pages/raw/handover/feeding/Location.vue @@ -0,0 +1,465 @@ + + + + + diff --git a/src/pages/raw/handover/picking/ByOrder.vue b/src/pages/raw/handover/picking/ByOrder.vue new file mode 100644 index 0000000..b31d89e --- /dev/null +++ b/src/pages/raw/handover/picking/ByOrder.vue @@ -0,0 +1,491 @@ + + + + + diff --git a/src/pages/raw/handover/picking/BySummary.vue b/src/pages/raw/handover/picking/BySummary.vue new file mode 100644 index 0000000..0781640 --- /dev/null +++ b/src/pages/raw/handover/picking/BySummary.vue @@ -0,0 +1,515 @@ + + + + + diff --git a/src/pages/raw/handover/returning/index.vue b/src/pages/raw/handover/returning/index.vue index dac7241..fb079ed 100644 --- a/src/pages/raw/handover/returning/index.vue +++ b/src/pages/raw/handover/returning/index.vue @@ -28,12 +28,22 @@ :label="this.$t('message.Pi_OrderNo')" prop="prdOrder" > - + > --> + @@ -185,6 +196,7 @@ export default class returningDom extends BasePage { materialCode: null, // 物料类型code wlName: "", // 物料类型name }; + prdOrder: any = []; wlCode: any = ""; Location: any = []; /** @@ -223,6 +235,9 @@ export default class returningDom extends BasePage { // this.model.queryReturningTypeList(); this.form.sapFactoryCode = await this.model.queryDefaultFactoryCode(); } + cnoso() { + console.log(1); + } back() { // this.form.sendSpot = ''; // this.form.wkposCode = ''; diff --git a/src/pages/raw/handover/virtual/summary.vue b/src/pages/raw/handover/virtual/summary.vue index 1eac070..37f50cd 100644 --- a/src/pages/raw/handover/virtual/summary.vue +++ b/src/pages/raw/handover/virtual/summary.vue @@ -4,7 +4,7 @@ - {{ $t('message.rawMenu_virtual_Handover_QR') }} + {{ $t("message.rawMenu_virtual_Handover_QR") }} @@ -59,7 +59,10 @@ - + - {{ $t('message.dn_Confirm') }} + + {{ $t("message.dn_Confirm") }} + - {{ $t('message.po_Submit') }} + + {{ $t("message.po_Submit") }} + @@ -85,24 +92,24 @@ + diff --git a/src/pages/raw/ingoods/dnReceipt/bill.vue b/src/pages/raw/ingoods/dnReceipt/bill.vue new file mode 100644 index 0000000..33ccff4 --- /dev/null +++ b/src/pages/raw/ingoods/dnReceipt/bill.vue @@ -0,0 +1,98 @@ + + + diff --git a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue new file mode 100644 index 0000000..7e586cc --- /dev/null +++ b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue @@ -0,0 +1,530 @@ + + + diff --git a/src/pages/raw/ingoods/dnReceipt/model.ts b/src/pages/raw/ingoods/dnReceipt/model.ts index 2b1f09e..e96a717 100644 --- a/src/pages/raw/ingoods/dnReceipt/model.ts +++ b/src/pages/raw/ingoods/dnReceipt/model.ts @@ -161,7 +161,28 @@ export class ReceiptModule extends VuexModule { localStorage.setItem("sendSpot", JSON.stringify(list[0].sendSpot) as any); return { dnNo, orderInInfo, orderInInfoList, orderInInfoListEx }; } - + //海外DN 根据单号查询物料 + @MutationAction + async ImportQueryOrderInfo(dnNo: string) { + const { list }: any = await http.post(url.material.DNorderin.ImportInfo, { + dnNo, + factoryCode: session.factoryCode, + loginName: session.loginName, + }); + const orderInInfo = list[0] || {}; + const orderInInfoList = list.filter( + (_: OrderInInfo) => _.userDefined10 === "1" + ); + const orderInInfoListEx = list.filter( + (_: OrderInInfo) => _.userDefined10 === "0" + ); + // orderInInfoList.forEach((item: any) => { + // item.receiptAmount = item.requestAmount; + // }); + localStorage.setItem("list", JSON.stringify(list) as any); + localStorage.setItem("sendSpot", JSON.stringify(list[0].sendSpot) as any); + return { dnNo, orderInInfo, orderInInfoList, orderInInfoListEx }; + } /** * 提交看单明细 */ @@ -187,7 +208,29 @@ export class ReceiptModule extends VuexModule { ); return { orderInInfoList }; } - + //海外DN提交 + @MutationAction + async submitImportOrder(list: any) { + // const list = (this.state as any).orderInInfoList.map((item: any) => { + // // item.orderStatus = item.checked ? "2" : "1"; + // return item; + // }); + const result: any = await http.post(url.material.DNorderin.ImportEnter, { + dnNo: this.dnNo, + factoryCode: session.factoryCode, + loginName: session.loginName, + list, + }); + uni.showToast({ + icon: "none", + title: result.msg, + }); + const orderInInfoList = result.list.sort( + (a: any, b: any) => + Number(a.accountingStatus) - Number(b.accountingStatus) + ); + return { orderInInfoList }; + } /** * 修改库位 */ diff --git a/src/pages/raw/ingoods/dnReturnGoods/Location.vue b/src/pages/raw/ingoods/dnReturnGoods/Location.vue new file mode 100644 index 0000000..9f52557 --- /dev/null +++ b/src/pages/raw/ingoods/dnReturnGoods/Location.vue @@ -0,0 +1,465 @@ + + + + + diff --git a/src/pages/raw/ingoods/index.vue b/src/pages/raw/ingoods/index.vue index aff6aec..6c590cd 100644 --- a/src/pages/raw/ingoods/index.vue +++ b/src/pages/raw/ingoods/index.vue @@ -27,9 +27,16 @@ > +<<<<<<< Updated upstream +<<<<<<< HEAD DN收货 PO收货 海外DN +======= + +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f +======= +>>>>>>> Stashed changes + + + + + {{ $t("message.po_ReceivingGoods") }} + + + + + + + {{ $t("message.po_OddNumbers") }} + + + + 查询 + + + + + + 物料号 + + + + 物料描述 + {{ every.materialDesc }} + + + + + + 需求数量 + + + + 累计数量 + + + + + + + 库位 + + + + 本次数量 + + + + + + 添加 + + + + + {{ $t("message.product_Location") }} + {{ $t("message.product_Number") }} + {{ $t("message.operation") }} + + + {{ item.wlCode }} + {{ item.receiptAmount }} + +
+ {{ $t("message.product_Delete") }} +
+
+
+
+
+ + + + + 收货明细 + + + 提交 + + + 返回 + + + + + + + diff --git a/src/pages/raw/warehouse/rowInventory/index.vue b/src/pages/raw/warehouse/rowInventory/index.vue index e04ad6b..c37972b 100644 --- a/src/pages/raw/warehouse/rowInventory/index.vue +++ b/src/pages/raw/warehouse/rowInventory/index.vue @@ -13,43 +13,56 @@ - + + + + - + - - - - - {{ + + {{ $t("message.workArea_Confirm") }} - + + {{ + $t("message.InventoryFinish") + }} + + {{ $t("message.po_Return") }} @@ -65,13 +78,13 @@ import { BasePage } from "@/components/base/page"; import { VForm, VFormRules } from "vue/types/form"; import model from "./model"; -interface OptionType { - label: string; - value: string; -} +// interface OptionType { +// label: string; +// value: string; +// } @Component -export default class dnReceiptDom extends BasePage { +export default class rawMaterialInventory extends BasePage { /** * 表单引用 */ @@ -84,17 +97,26 @@ export default class dnReceiptDom extends BasePage { index() { this.toPage(this.page.raw.index); } + + status = false; /** * 表单数据 */ form = { - documentNo: null, - cboPlace: {} as OptionType, + // 盘点单号 + pddNo: null, + // 物料号 + productCode: null, + productDescZh: null, + // 盘点数量 + spQty: null, + + // cboPlace: {} as OptionType, }; cboPlaceSelect = false; rules: VFormRules = { - documentNo: [ + pddNo: [ { required: true, message: this.$t("message.dn_PleaseScan") as string }, ], // cboPlace: [{ required: true, message: this.$t('message.Warehouse_Tip10') as string }], @@ -103,6 +125,27 @@ export default class dnReceiptDom extends BasePage { value = ""; show = false; + // 扫描物料号检查 + async checkRawProductCode(productCode: string) { + let result = await model.checkRawProductCode({ + productCode, + pddNo: this.form.pddNo, + }); + console.log("result:::", result); + this.status = result.isState; + } + checkRawCreateInfo() { + if (this.status) { + model.checkRawProductComplete(this.form); + } else { + model.checkRawCreateInfo(this.form); + } + } + // + async checkRawOrderComplete() { + await model.checkRawOrderComplete(this.form.pddNo); + } + // 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕 onReady() { this.$form.setRules(this.rules); @@ -118,22 +161,24 @@ export default class dnReceiptDom extends BasePage { back() { uni.navigateBack({ delta: 1 }); } - onSubmit() { + async onSubmit() { this.$form.validate((valid: boolean) => { if (!valid) return; - // if (!this.model.hasDnInfo) { - // uni.showToast({ - // icon: 'none', - // title: this.$t('message.dn_PleaseScan') as string, - // }); - // return; - // } - sessionStorage.setItem( - "dnNo", - JSON.stringify(this.form.documentNo) as any - ); - this.toPage(this.page.raw.ingoods.dnReceipt.detail); + if (!this.model.hasDnInfo) { + uni.showToast({ + icon: "none", + title: this.$t("message.dn_PleaseScan") as string, + }); + return; + } + // sessionStorage.setItem( + // "dnNo", + // JSON.stringify(this.form.pddNo) as any + // ); + + // this.toPage(this.page.raw.ingoods.dnReceipt.detail); }); + await this.model.submitOrderInEnter(); } } diff --git a/src/pages/raw/warehouse/rowInventory/model.ts b/src/pages/raw/warehouse/rowInventory/model.ts index 6c9f4b2..bba597b 100644 --- a/src/pages/raw/warehouse/rowInventory/model.ts +++ b/src/pages/raw/warehouse/rowInventory/model.ts @@ -32,6 +32,12 @@ class OrderInInfo { name: "raw.ingoods.dnReceipt", }) export class ReceiptModule extends VuexModule { +<<<<<<< HEAD +======= + + // 是否有 + isState = true; +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f sendSpot = ""; /** * sap库存地点列表 @@ -162,6 +168,117 @@ export class ReceiptModule extends VuexModule { } /** +<<<<<<< HEAD +======= + * 查询单号 + * 查询盘点单号 + * @param pddNo + */ + @Action + async rawMaterialInventoryCheckRaw(pddNo: string) { + + const { msg }: any = await http.post(url.material.rawMaterialInventory.checkRaw, { + pddNo, + factoryCode: session.factoryCode, + loginName: session.loginName, + }); + uni.showToast({ + icon: "none", + title: msg, + }); + } + + /** + * 扫描物料号检查 + * + * @param {string} productCode + * @param {string} pddNo + * @memberof ReceiptModule + */ + @Action + async checkRawProductCode(form:any) { + + const { code,msg }: any = await http.post(url.material.rawMaterialInventory.productCode, { + productCode:form.productCode, + pddNo:form.pddNo, + factoryCode: session.factoryCode, + loginName: session.loginName, + }); + uni.showToast({ + icon: "none", + title: msg, + }); + console.log('code:::',code,msg) + const isState = !!+code + return {isState} + } + /** + * 新增单号、物料信息 + * + * @param {string} productCode + * @param {string} pddNo + * @memberof ReceiptModule + */ + @Action + async checkRawCreateInfo(form:any) { + + const { msg }: any = await http.post(url.material.rawMaterialInventory.createInfo, { + ...form, + factoryCode: session.factoryCode, + loginName: session.loginName, + }); + uni.showToast({ + icon: "none", + title: msg, + }); + } + + /** + * 物料盘点确定 + * + * @param {string} productCode + * @param {string} pddNo + * @memberof ReceiptModule + */ + @Action + async checkRawProductComplete(form:any) { + + const { msg }: any = await http.post(url.material.rawMaterialInventory.productComplete, { + ...form, + factoryCode: session.factoryCode, + loginName: session.loginName, + }); + uni.showToast({ + icon: "none", + title: msg, + }); + + } + + /** + * 物料盘点完成 + * + * @param {string} productCode + * @param {string} pddNo + * @memberof ReceiptModule + */ + @Action + async checkRawOrderComplete(pddNo?: string|null) { + + const { msg }: any = await http.post(url.material.rawMaterialInventory.orderComplete, { + pddNo, + factoryCode: session.factoryCode, + loginName: session.loginName, + }); + uni.showToast({ + icon: "none", + title: msg, + }); + + } + + /** +>>>>>>> 908d8a2f172057491172510bf10bf949d527de9f * 提交看单明细 */ @MutationAction diff --git a/src/pages/raw/warehouse/rowTransfer/details.vue b/src/pages/raw/warehouse/rowTransfer/details.vue index b924164..6a759a8 100644 --- a/src/pages/raw/warehouse/rowTransfer/details.vue +++ b/src/pages/raw/warehouse/rowTransfer/details.vue @@ -1,10 +1,13 @@