Răsfoiți Sursa

采购需求处理-查询条件粘贴物料编码,修改最终采购量,第一次保存成功,第二次查询之后保存报错-原因:保存之后没有清空修改记录数组

002390 1 an în urmă
părinte
comite
fc9ae0b9a7
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      src/views/purchase/DemandSummary/index.vue

+ 3 - 2
src/views/purchase/DemandSummary/index.vue

@@ -1402,16 +1402,17 @@ export default {
       this.getList(this.queryParams);
     },
     saveList() {
-      // console.log('记录',this.record)
+      // console.log("记录", this.record);
       // 对记录的数据进行去重
       let newRecord = Array.from(new Set(this.record));
-      // console.log('去重后的', newRecord)
+      // console.log("去重后的", newRecord);
       let changeList = newRecord.map((i) => {
         return this.tableList[i];
       });
       // console.log('shuzu', changeList)
       editSummaryList(changeList).then((res) => {
         if (res.code === 200) {
+          this.record = [];
           this.$modal.notifySuccess("保存成功");
           this.lineDisable = true;
           this.getList(this.queryParams);