|
|
@@ -216,12 +216,14 @@
|
|
|
</el-tabs>
|
|
|
|
|
|
<div slot="footer" class="footer">
|
|
|
- <el-button type="primary" @click="save" :loading="loading" v-click-once>保存</el-button>
|
|
|
+ <el-button type="primary" @click="save" :loading="loading" v-click-once
|
|
|
+ >保存</el-button
|
|
|
+ >
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="isNeed_process_is_close"
|
|
|
@click="save('sub')"
|
|
|
- :loading="loading"
|
|
|
+ :loading="loading"
|
|
|
v-click-once
|
|
|
>提交</el-button
|
|
|
>
|
|
|
@@ -1025,6 +1027,22 @@
|
|
|
trakNoteList: this.$refs.taskInfoTableRef.getTableValue()
|
|
|
});
|
|
|
commitData.carNo = commitData.carNo.toString();
|
|
|
+
|
|
|
+ let is = false;
|
|
|
+ commitData.productList.forEach((v, i) => {
|
|
|
+ commitData.productList.forEach((v2, j) => {
|
|
|
+ if (
|
|
|
+ v.productCode == v2.productCode &&
|
|
|
+ v.taskId == v2.taskId &&
|
|
|
+ v.batchNo == v2.batchNo &&
|
|
|
+ v.colorKey == v2.colorKey &&
|
|
|
+ i != j
|
|
|
+ ) {
|
|
|
+ is = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
if (this.isUpdate) {
|
|
|
UpdateSendInformation(commitData)
|
|
|
.then((res) => {
|
|
|
@@ -1075,12 +1093,12 @@
|
|
|
}
|
|
|
|
|
|
// 当ids数组去重去空后有不同的值时,设置isSpecialeSubmit为true
|
|
|
- const filteredIds = ids.filter(id => id !== undefined && id !== null && id !== '');
|
|
|
+ const filteredIds = ids.filter(
|
|
|
+ (id) => id !== undefined && id !== null && id !== ''
|
|
|
+ );
|
|
|
const uniqueIds = [...new Set(filteredIds)];
|
|
|
this.isSpecialeSubmit = uniqueIds.length > 1;
|
|
|
|
|
|
-
|
|
|
-
|
|
|
this.processSubmitDialogFlag = true;
|
|
|
|
|
|
this.$nextTick(() => {
|