From 21e5d7b24625618520b3384212d7691c5e11f164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Sat, 15 Apr 2023 14:39:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E6=89=80=E6=9C=89=E6=89=93=E5=8D=B0=E4=B8=9A=E5=8A=A1=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/components/currenForm/index.vue | 3 +- fe/PC/src/filters/status.js | 15 + .../PartiallyPreparedProducts.vue | 269 +++++++---- .../RecycledMaterialsLabel.vue | 299 +++++------- .../__PartiallyPreparedProducts.vue | 297 ++++++++++++ .../__RecycledMaterialsLabel.vue | 424 ++++++++++++++++++ .../__productionReturnLabel.vue | 352 +++++++++++++++ .../productionReturnLabel.vue | 80 ++-- 8 files changed, 1412 insertions(+), 327 deletions(-) create mode 100644 fe/PC/src/views/labelManage/PartiallyPreparedProducts/__PartiallyPreparedProducts.vue create mode 100644 fe/PC/src/views/labelManage/PartiallyPreparedProducts/__RecycledMaterialsLabel.vue create mode 100644 fe/PC/src/views/labelManage/PartiallyPreparedProducts/__productionReturnLabel.vue diff --git a/fe/PC/src/components/currenForm/index.vue b/fe/PC/src/components/currenForm/index.vue index 7daa6723d..12ac25eb1 100644 --- a/fe/PC/src/components/currenForm/index.vue +++ b/fe/PC/src/components/currenForm/index.vue @@ -10,6 +10,7 @@ :rules="rules" :model="searchData" @submit.native.prevent + v-if="!hide ? true : false" > diff --git a/fe/PC/src/filters/status.js b/fe/PC/src/filters/status.js index 6ad595c34..0fb7da88a 100644 --- a/fe/PC/src/filters/status.js +++ b/fe/PC/src/filters/status.js @@ -2135,6 +2135,21 @@ export function SupplierAsnCtypeStaBack(name){ } return Enum(type, index, prop) } +// 标签类型 下拉选择 使用位置 创建标签 + export function labelTypeSelectOption(index, prop) { + let filter = { + 1: { + label: "采购标签", + value: 1, + }, + 2: { + label: '生产标签', + value: 2, + }, + } + return Enum(filter, index, prop) +} + // 菜单维护 /** diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue index bda8526d5..3b3d6444b 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue @@ -57,18 +57,19 @@ \ No newline at end of file diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/__RecycledMaterialsLabel.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/__RecycledMaterialsLabel.vue new file mode 100644 index 000000000..cc821b15c --- /dev/null +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/__RecycledMaterialsLabel.vue @@ -0,0 +1,424 @@ + + \ No newline at end of file diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/__productionReturnLabel.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/__productionReturnLabel.vue new file mode 100644 index 000000000..1ac62424e --- /dev/null +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/__productionReturnLabel.vue @@ -0,0 +1,352 @@ + + \ No newline at end of file diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue index 1ac62424e..fea27ab96 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue @@ -64,7 +64,7 @@ import StepsFormAlone from "@/components/StepsFormAlone" import resultStatus from "@/components/resultStatus" import currenTableFlex from "@/components/currenTableFlex" import {initPrintPackingCodeManyData} from "@/mixins/printMixin" -import { getPageList,getDetailed, getPage} from "@/api/wms-api" +import { getPageList,getDetailed } from "@/api/wms-api" import _ from "lodash" import { mixins } from "@/mixins/mixins" import { LoadingMixins } from "@/mixins/LoadingMixins" @@ -202,13 +202,11 @@ export default { if (res.items.length > 0) { this.itemPackInfo = res.items[0] this.selectData.packQty=res.items[0].qty - // this.selectItemInfo = res.items[0]; } getDetailed(val[0].id, "basedata/item-basic").then(res => { this.pageLoading = false this.selectItemInfo = Object.assign(this.selectItemInfo,res); this.selectData.itemName=this.selectItemInfo.name; - // this.selectData.packQty=this.selectItemInfo.packQty || ""; }) .catch(err => { this.pageLoading = false @@ -220,13 +218,10 @@ export default { } else if (val[1].prop == "supplierCode"){ this.selectSupplierInfo = val[0] - // this.selectData.supplierName = val[0].supplierName - // this.selectData.supplierSimpleName = val[0].supplierSimpleName } // 采购订单 else if(val[1].prop == "poNumber"){ this.poNumberInfo = val[0] - // this.selectData.poNumber = val[0].poNumber } }, // 第一部物品代码点击拉取 @@ -243,52 +238,42 @@ export default { this.$refs['form_sctk'].getDom().validate(valid=>{ if(valid){ let _data = { - fullBarcodeString: undefined,//获取不到 + // fullBarcodeString: undefined,//获取不到 itemCode: this.selectData.itemCode || null, itemName: this.selectItemInfo.name || null, itemDesc1: this.selectItemInfo.desc1 || null, itemDesc2: this.selectItemInfo.desc2 || null, lot: this.selectData.lot || "", - supplierBatch: undefined,//获取不到 - arriveDate: undefined,//获取不到 - produceDate: undefined,//获取不到 - expireDate: undefined,//获取不到 + // supplierBatch: undefined,//获取不到 + arriveDate: this.poNumberInfo.arriveDate, + // arriveDate: undefined,//获取不到 + // produceDate: undefined,//获取不到 + // expireDate: undefined,//获取不到 stdPackQty: Number(this.selectItemInfo.stdPackQty) || 0, uom: this.selectItemInfo.basicUom || "", qty: Number(this.selectData.qty), - labelStatus: undefined,//获取不到 - recommendLocationCode: undefined,//获取不到 - locationErpCode: undefined,//获取不到 - containerCode: undefined,//获取不到 - supplierCode: this.selectData.supplierCode || null, + labelStatus: 1,//标签状态 + // recommendLocationCode: undefined,//获取不到 + // locationErpCode: undefined,//获取不到 + // containerCode: undefined,//获取不到 + supplierCode: this.selectData.supplierCode, poNumber: this.selectData.poNumber, - rpNumber: undefined,//获取不到 - asnNumber: undefined,//获取不到 - qLevel: undefined,//获取不到 - qualityFile: undefined,//获取不到 - prodLine: undefined,//获取不到 - team: undefined,//获取不到 - shift: undefined,//获取不到 + rpNumber: this.poNumberInfo.rpNumber, + asnNumber: this.poNumberInfo.number, + // qLevel: this.selectItemInfo.qLevel || undefined,//获取不到 + // qualityFile: undefined,//获取不到 + // prodLine: undefined,//获取不到 + // team: undefined,//获取不到 + // shift: undefined,//获取不到 specifications: this.selectItemInfo.color || null, - supplierName: this.selectSupplierInfo.supplierName || undefined,//获取不到 - supplierSimpleName: this.selectSupplierInfo.supplierSimpleName || null, - supplierItemCode: this.selectSupplierInfo.supplierItemCode || null, - supplierItemName: this.selectSupplierInfo.itemName || null, + supplierName: this.selectSupplierInfo.supplierName, + supplierSimpleName: this.selectSupplierInfo.supplierSimpleName, + supplierItemCode: this.selectSupplierInfo.supplierItemCode, + supplierItemName: this.selectSupplierInfo.itemName, labelType: 1, - planArriveDate: undefined,//获取不到 + planArriveDate: this.poNumberInfo.planArriveDate, + remark:this.selectData.remark,//接口缺少 } - // let _data = this.selectItemInfo - // _data.itemCode=this.selectData.itemCode, - // _data.itemName= this.selectData.itemName, - // _data.stdPackQty= Number(this.selectData.packQty) || 0, - // _data.lot=this.selectData.lot, - // _data.qty=Number(this.selectData.qty), - // _data.uom= this.selectItemInfo.packUom || "", - // _data.itemDesc1= this.selectItemInfo.desc1 || "", - // _data.itemDesc2= this.selectItemInfo.desc2 || "", - // _data.poNumber= this.selectData.poNumber, - // _data.labelType= 1, - // _data.company= localStorage.getItem("company"), // 生成标签(接口) this.pageLoading = true; postInventoryLabelCode_count({count:this.selectData.labelQty}, _data) @@ -297,14 +282,9 @@ export default { this.flexSelectTableData = res this.flexSelectTableData.forEach(item=>{ item.packingCode=item.code - // item.itemName=this.selectData.itemName item.packQty=this.itemPackInfo.qty item.packUom=this.itemPackInfo.basicUom - // item.packQty=this.selectData.packQty - // item.packUom=this.selectItemInfo.packUom - // item.supplierName=this.selectData.supplierName - // item.supplierCode=this.selectData.supplierCode - // item.poNumber=this.selectData.poNumber + }) resolve() }) @@ -318,14 +298,6 @@ export default { }, // 打印 printHandle(){ - // let _printData = { - // poNumber:this.selectData.poNumber, - // asnNumber:this.flexSelectTableData[0].asnNumber, - // supplierCode:this.flexSelectTableData[0].supplierCode, - // supplierName:this.flexSelectTableData[0].supplierName, - // supplierSimpleName:this.flexSelectTableData[0].supplierName, - // details:[] - // } let _printData = this.flexSelectTableData[0] _printData.details = [] this.flexSelectTableData.forEach(item=>{ From 7be68f30f8f594ab8ceffa60c4b9de428a935b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Sat, 15 Apr 2023 14:43:54 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PartiallyPreparedProducts.vue | 12 ++++++------ .../RecycledMaterialsLabel.vue | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue index 3b3d6444b..a4451b2df 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue @@ -109,8 +109,8 @@ export default { canMake:null,//制造件 canBuy:null,//采购件 labelType:null,//1采购标签 2生产标签 - isRecycled:null,//回收件 - canOutsourcing:null,//外包件 + // isRecycled:null,//回收件 + // canOutsourcing:null,//外包件 qty:"", lot:"", labelQty:"", @@ -137,8 +137,8 @@ export default { { type: "select",disabled:true, label: "制造件", prop: "canMake", options: "whetherOrNot", colSpan: 12 }, { type: "select", disabled:true,label: "采购件", prop: "canBuy", options: "whetherOrNot", colSpan: 12 }, { type: "select", disabled:true,label: "标签类型", prop: "labelType", options: "labelTypeSelectOption", colSpan: 12 }, - { type: "select", disabled:true,label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, - { type: "select", disabled:true,label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", colSpan: 12 }, + // { type: "select", disabled:true,label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, + // { type: "select", disabled:true,label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", colSpan: 12 }, { type: "inputNumber", label: "实际数量", prop: "qty",colSpan: 12 }, { type: "input", label: "批次", prop: "lot", colSpan: 12 }, { type: "inputNumber", label: "标签个数", prop: "labelQty", min:1,colSpan: 12 }, @@ -228,8 +228,8 @@ export default { this.selectData.itemName = this.selectItemInfo.name this.selectData.canBuy=this.selectItemInfo.canBuy; this.selectData.canMake=this.selectItemInfo.canMake; - this.selectData.isRecycled=this.selectItemInfo.isRecycled; - this.selectData.canOutsourcing=this.selectItemInfo.canOutsourcing; + // this.selectData.isRecycled=this.selectItemInfo.isRecycled; + // this.selectData.canOutsourcing=this.selectItemInfo.canOutsourcing; // 采购件、制造件只有一个为true 则自动生成比标签类型,并设置不可修改 let _labelType_index = this.getFormPropIndex('labelType') diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue index f24a14652..c5fc02f4a 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue @@ -108,8 +108,8 @@ export default { canMake:null,//制造件 canBuy:null,//采购件 labelType:null,//1采购标签 2生产标签 - // isRecycled:null,//回收件 - // canOutsourcing:null,//外包件 + isRecycled:null,//回收件 + canOutsourcing:null,//外包件 qty:"", lot:"", labelQty:"", @@ -135,8 +135,8 @@ export default { { type: "select",disabled:true, label: "制造件", prop: "canMake", options: "whetherOrNot", colSpan: 12 }, { type: "select", disabled:true,label: "采购件", prop: "canBuy", options: "whetherOrNot", colSpan: 12 }, { type: "select", disabled:true,label: "标签类型", prop: "labelType", options: "labelTypeSelectOption", colSpan: 12 }, - // { type: "select", disabled:true,label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, - // { type: "select", disabled:true,label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", colSpan: 12 }, + { type: "select", disabled:true,label: "回收件", prop: "isRecycled", options: "whetherOrNot", colSpan: 12 }, + { type: "select", disabled:true,label: "外包件", prop: "canOutsourcing", options: "whetherOrNot", colSpan: 12 }, { type: "inputNumber", label: "实际数量", prop: "qty",colSpan: 12 }, { type: "input", label: "批次", prop: "lot", colSpan: 12 }, { type: "inputNumber", label: "标签个数", prop: "labelQty", min:1,colSpan: 12 }, @@ -225,8 +225,8 @@ export default { this.selectData.itemName = this.selectItemInfo.name this.selectData.canBuy=this.selectItemInfo.canBuy; this.selectData.canMake=this.selectItemInfo.canMake; - // this.selectData.isRecycled=this.selectItemInfo.isRecycled; - // this.selectData.canOutsourcing=this.selectItemInfo.canOutsourcing; + this.selectData.isRecycled=this.selectItemInfo.isRecycled; + this.selectData.canOutsourcing=this.selectItemInfo.canOutsourcing; // 采购件、制造件只有一个为true 则自动生成比标签类型,并设置不可修改 let _labelType_index = this.getFormPropIndex('labelType') From 4d140cce10a65568188c5d90515a538b2b9af208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Sat, 15 Apr 2023 14:48:09 +0800 Subject: [PATCH 3/3] =?UTF-8?q?arriveDate=E5=8F=82=E6=95=B0=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PartiallyPreparedProducts/PartiallyPreparedProducts.vue | 2 +- .../PartiallyPreparedProducts/RecycledMaterialsLabel.vue | 2 +- .../PartiallyPreparedProducts/productionReturnLabel.vue | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue index a4451b2df..3322309cf 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/PartiallyPreparedProducts.vue @@ -294,7 +294,7 @@ export default { itemDesc2: this.selectItemInfo.desc2 || null, lot: this.selectData.lot || "", // supplierBatch: undefined,//获取不到 - arriveDate: this.selectPoNumberInfo.arriveDate, + // arriveDate: undefined,//获取不到 // produceDate: undefined,//获取不到 // expireDate: undefined,//获取不到 stdPackQty: Number(this.selectItemInfo.stdPackQty) || 0, diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue index c5fc02f4a..5f858497d 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/RecycledMaterialsLabel.vue @@ -291,7 +291,7 @@ export default { itemDesc2: this.selectItemInfo.desc2 || null, lot: this.selectData.lot || "", // supplierBatch: undefined,//获取不到 - arriveDate: this.selectPoNumberInfo.arriveDate, + // arriveDate: undefined,//获取不到 // produceDate: undefined,//获取不到 // expireDate: undefined,//获取不到 stdPackQty: Number(this.selectItemInfo.stdPackQty) || 0, diff --git a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue index fea27ab96..1c9d8bbf5 100644 --- a/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue +++ b/fe/PC/src/views/labelManage/PartiallyPreparedProducts/productionReturnLabel.vue @@ -245,7 +245,6 @@ export default { itemDesc2: this.selectItemInfo.desc2 || null, lot: this.selectData.lot || "", // supplierBatch: undefined,//获取不到 - arriveDate: this.poNumberInfo.arriveDate, // arriveDate: undefined,//获取不到 // produceDate: undefined,//获取不到 // expireDate: undefined,//获取不到