|
|
@@ -1000,6 +1000,8 @@
|
|
|
obj.taskId = this.detailProductList[0]?.taskId;
|
|
|
obj.outsourceBatchNo = this.detailProductList[0]?.batchNo;
|
|
|
obj.outsourceCode = this.detailProductList[0]?.sourceCode;
|
|
|
+ obj.taskId = this.detailList[0]?.taskId;
|
|
|
+ obj.workOrderId = this.detailList[0]?.workOrderId;
|
|
|
});
|
|
|
this.pickingPageNum = Math.ceil(
|
|
|
this.showPackingList.length / this.pageSize
|
|
|
@@ -1020,12 +1022,12 @@
|
|
|
deep: true
|
|
|
}
|
|
|
},
|
|
|
- async created() {
|
|
|
- await this.requestDict('不拆物料层规格');
|
|
|
- await this.getFieldModel();
|
|
|
- await this.getListItems();
|
|
|
- await this.initFormData();
|
|
|
- await this.getNowFormatDate();
|
|
|
+ async created() {
|
|
|
+ await this.requestDict('不拆物料层规格');
|
|
|
+ await this.getFieldModel();
|
|
|
+ await this.getListItems();
|
|
|
+ await this.initFormData();
|
|
|
+ await this.getNowFormatDate();
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions('dict', ['requestDict']),
|
|
|
@@ -1187,8 +1189,8 @@
|
|
|
brandNum: item.brandNum, // 牌号
|
|
|
batchNo: batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
|
- supplierId: '', // 供应商id
|
|
|
- supplierName: '', // 供应商名称
|
|
|
+ supplierId: this.form.supplierId, // 供应商id
|
|
|
+ supplierName: this.form.supplierName, // 供应商名称
|
|
|
approvalNumber: item.approvalNumber, // 批准文号
|
|
|
packingSpecification: item.packingSpecification, // 包装规格
|
|
|
packingSpecificationOption:
|
|
|
@@ -1209,9 +1211,7 @@
|
|
|
warehouseId, // 仓库id
|
|
|
warehouseName, // 仓库名称
|
|
|
warehouseIds,
|
|
|
- warehouseNames,
|
|
|
- supplierId: this.form.supplierId,
|
|
|
- supplierName: this.form.supplierName
|
|
|
+ warehouseNames
|
|
|
};
|
|
|
});
|
|
|
this.$nextTick(() => {
|
|
|
@@ -1230,7 +1230,10 @@
|
|
|
});
|
|
|
console.log('codeList-----------', codeList);
|
|
|
storageApi.getListByNameOrModeType({ codeList }).then(async (res) => {
|
|
|
- console.log(res);
|
|
|
+ console.log(
|
|
|
+ res,
|
|
|
+ 'ddddddddddddddddddddddddddddddddddddddddddddddddres'
|
|
|
+ );
|
|
|
// 获取批次号
|
|
|
const batchNo = await getCode('lot_number_code');
|
|
|
// 获取供应商
|
|
|
@@ -1654,6 +1657,8 @@
|
|
|
...packingItem,
|
|
|
workOrderId: this.detailProductList[0]?.workOrderId,
|
|
|
taskId: this.detailProductList[0]?.taskId,
|
|
|
+ taskId: this.detailList[0]?.taskId,
|
|
|
+ workOrderId: this.detailList[0]?.workOrderId,
|
|
|
outsourceBatchNo: this.detailProductList[0]?.batchNo,
|
|
|
outsourceCode: this.detailProductList[0]?.sourceCode,
|
|
|
materialDetailList: this.materialList.filter(
|