Browse Source

bug修复

黄梓星 1 year ago
parent
commit
2975cf6e89

+ 5 - 2
src/views/purchase/PurchaseDemandList/add.vue

@@ -182,6 +182,7 @@
           @selection-change="handleSelectionChange"
           :cell-class-name="cellClassName"
           :row-key="getRowKeys"
+          ref="table"
         >
           <el-table-column show-overflow-tooltip type="selection" :reserve-selection="true"/>
           <el-table-column show-overflow-tooltip label="序号" type="index" align="center" width="50px"/>
@@ -1178,7 +1179,7 @@ export default {
       })
       console.log('复制的数组',rows);
       console.log('列表的数组',this.basicForm.puDemandItemList)
-      if (rows.length < 1000) {
+      if (rows.length < 100) {
         await getRefer({ type: 'MATERIAL_PARAM', materialCodeList: rows }).then(res => {
           if (res.code === 200) {
             let rowList = res.rows
@@ -1330,13 +1331,15 @@ export default {
             this.basicForm.puDemandItemList.splice(index,1,...newLine)
             this.$modal.notifySuccess("共粘贴" + rowList.length + '条数据');
           }
+        }).then(() => {
+          this.$refs.table.doLayout()
         }).catch(err => {
           this.$modal.closeLoading();
         })
         this.$modal.closeLoading();
       console.log('列表', this.basicForm.puDemandItemList)
       } else {
-        this.$modal.notifyWarning("复制长度不能超过1000!");
+        this.$modal.notifyWarning("复制长度不能超过100!");
       }
     },
     // 明细行选择物料编码带出数据

+ 0 - 1
src/views/purchase/PurchaseDemandList/index.vue

@@ -186,7 +186,6 @@
           <!-- <el-table-column show-overflow-tooltip label="供应仓库" align="center" width="120" prop="warehouseName" /> -->
           <!-- <el-table-column show-overflow-tooltip label="供应货位" align="center" width="150" prop="goodsAllocationName" /> -->
           <el-table-column show-overflow-tooltip label="单据来源" align="center" prop="source" width="120" :formatter="formatterSource"/>
-          <el-table-column show-overflow-tooltip label="组织" align="center" width="200" prop="orgName"/>
           <el-table-column show-overflow-tooltip label="备注" align="center" width="150" prop="remark" />
           <el-table-column
           fixed="right"

+ 5 - 6
src/views/purchase/transferOrder/add.vue

@@ -1890,11 +1890,11 @@ export default {
       }
     },
 
-    chooseRefer(type, isPage, title, pkOrg, isDirectStore, gubFlag) {
+    chooseRefer(type, isPage, title, drpOrg, isDirectStore, gubFlag) {
       this.referCondition.type = type;
       this.referCondition.isPage = isPage;
       this.referCondition.title = title;
-      this.referCondition.pkOrg = pkOrg;
+      this.referCondition.drpOrg = drpOrg;
       this.referCondition.isDirectStore = isDirectStore;
       this.referCondition.gubFlag = gubFlag;
       this.$refs.refer.init(this.referCondition);
@@ -2093,18 +2093,17 @@ export default {
       this.referCondition.type = type;
       this.referCondition.isPage = isPage;
       this.referCondition.title = title;
-      this.referCondition.pkOrg = "";
+      this.referCondition.drpOrg = "";
       this.referCondition.stordocId = stordocId;
       this.$refs.refer.init(this.referCondition);
     },
     // 明细行选择调入部门
-    chooseMxBM(index, type, isPage, title, pkOrg) {
+    chooseMxBM(index, type, isPage, title, drpOrg) {
       this.tableIndex = index;
       this.referCondition.type = type;
       this.referCondition.isPage = isPage;
       this.referCondition.title = title;
-      this.referCondition.pkOrg = pkOrg;
-      this.referCondition.drpOrg = pkOrg;
+      this.referCondition.drpOrg = drpOrg;
       this.$refs.refer.init(this.referCondition);
     },
     // 选择框彻底清空