|
@@ -228,13 +228,13 @@
|
|
|
align="center"
|
|
align="center"
|
|
|
width="100"
|
|
width="100"
|
|
|
prop="ifPackageOk"
|
|
prop="ifPackageOk"
|
|
|
|
|
+ v-if="isShowPackage"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{ row, $index }">
|
|
<template slot-scope="{ row, $index }">
|
|
|
- <template v-if="row.isSave">
|
|
|
|
|
- {{ row.ifPackageOk ? '是' : '否' }}
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <!-- <template v-if="row.isSave">
|
|
|
|
|
+ {{ row.ifPackageOk == 1 ? '是' : row.ifPackageOk == 0 ? '否' : '' }}
|
|
|
|
|
+ </template> -->
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- v-else
|
|
|
|
|
:prop="`productList.${$index}.ifPackageOk`"
|
|
:prop="`productList.${$index}.ifPackageOk`"
|
|
|
required
|
|
required
|
|
|
>
|
|
>
|
|
@@ -250,13 +250,13 @@
|
|
|
align="center"
|
|
align="center"
|
|
|
width="100"
|
|
width="100"
|
|
|
prop="unpackUserName"
|
|
prop="unpackUserName"
|
|
|
|
|
+ v-if="isShowPackage"
|
|
|
>
|
|
>
|
|
|
<template slot-scope="{ row, $index }">
|
|
<template slot-scope="{ row, $index }">
|
|
|
- <template v-if="row.isSave">
|
|
|
|
|
|
|
+ <!-- <template v-if="row.isSave">
|
|
|
{{ row.unpackUserName }}
|
|
{{ row.unpackUserName }}
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- v-else
|
|
|
|
|
:prop="`productList.${$index}.unpackUserName`"
|
|
:prop="`productList.${$index}.unpackUserName`"
|
|
|
required
|
|
required
|
|
|
>
|
|
>
|
|
@@ -1749,7 +1749,7 @@
|
|
|
});
|
|
});
|
|
|
console.log(this.productList, 'this.productListtttttttttttt');
|
|
console.log(this.productList, 'this.productListtttttttttttt');
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
- // this.batchSave();
|
|
|
|
|
|
|
+ this.batchSave();
|
|
|
// this.listSaveArrs()
|
|
// this.listSaveArrs()
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -2424,7 +2424,14 @@
|
|
|
this.$message.error('请先保存所有产品信息');
|
|
this.$message.error('请先保存所有产品信息');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+ if(this.isShowPackage) {
|
|
|
|
|
+ const userNameLength = this.productList.filter(item => !item.unpackUserName).length
|
|
|
|
|
+ const packgeLength = this.productList.filter(item => !item.ifPackageOk).length
|
|
|
|
|
+ if(userNameLength || packgeLength) {
|
|
|
|
|
+ this.$message.error('请先填写拆包装责任人和包装完好与否');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
// 处理包装数据
|
|
// 处理包装数据
|
|
|
let _packingList = [];
|
|
let _packingList = [];
|
|
|
_packingList = this.packingList.map((packingItem) => {
|
|
_packingList = this.packingList.map((packingItem) => {
|
|
@@ -2923,10 +2930,6 @@
|
|
|
`productList.${index}.warehouseId`,
|
|
`productList.${index}.warehouseId`,
|
|
|
|
|
|
|
|
];
|
|
];
|
|
|
- if(this.isShowPackage) {
|
|
|
|
|
- fileds.push(`productList.${index}.unpackUserName`,
|
|
|
|
|
- `productList.${index}.ifPackageOk`,)
|
|
|
|
|
- }
|
|
|
|
|
if (row.isSave) {
|
|
if (row.isSave) {
|
|
|
return Promise.resolve(true);
|
|
return Promise.resolve(true);
|
|
|
} else {
|
|
} else {
|
|
@@ -3072,12 +3075,7 @@
|
|
|
`productList.${index}.warehouseId`
|
|
`productList.${index}.warehouseId`
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
- if(this.isShowPackage) {
|
|
|
|
|
- fileds.push(
|
|
|
|
|
- `productList.${index}.unpackUserName`,
|
|
|
|
|
- `productList.${index}.ifPackageOk`,
|
|
|
|
|
- )
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
Promise.all(
|
|
Promise.all(
|
|
|
fileds.map(
|
|
fileds.map(
|
|
|
(item) =>
|
|
(item) =>
|