yusheng 10 месяцев назад
Родитель
Сommit
37aeb60c9c
1 измененных файлов с 12 добавлено и 7 удалено
  1. 12 7
      src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

+ 12 - 7
src/views/saleManage/saleOrder/invoice/components/inventoryTable.vue

@@ -30,6 +30,7 @@
             class="ele-btn-icon"
             @click="handParent()"
             v-if="isShowAdd && needProduce == 4"
+
           >
             新增
           </el-button>
@@ -119,7 +120,7 @@
         </el-form-item>
       </template>
 
-      <template v-slot:totalCount="scope">
+      <!-- <template v-slot:totalCount="scope">
         <el-form-item
           :prop="'datasource.' + scope.$index + '.totalCount'"
           :rules="[{ required: true, message: '请输入', trigger: 'blur' }]"
@@ -129,7 +130,7 @@
             @input="(val) => changeCount1(scope.row, scope.$index)"
           ></el-input>
         </el-form-item>
-      </template>
+      </template> -->
       <template v-slot:batchNo="scope">
         <el-form-item :prop="'datasource.' + scope.$index + '.batchNo'">
           <el-input v-model="scope.row.batchNo" v-no-chinese></el-input>
@@ -300,7 +301,7 @@
             type="number"
             :min="0"
             @input="changeCount(scope.row, scope.$index)"
-            :disabled="clientEnvironmentId==4"
+          
           >
           </el-input>
         </el-form-item>
@@ -913,10 +914,10 @@
           this.$refs.stockLedgerDialogRef.init(row.sendProductDetail, row);
         });
       },
-      changeCount1(row, index) {
-        this.tableHandleKeyUp(row, index, 'sum');
-        this.changeCount(row, index);
-      },
+      // changeCount1(row, index) {
+      //   this.tableHandleKeyUp(row, index, 'sum');
+      //   this.changeCount(row, index);
+      // },
       packingChange(item, index) {
         this.$set(this.form.datasource[index], 'saleUnit', item.conversionUnit);
       },
@@ -1018,6 +1019,10 @@
         this.changeSendTotalWeight(row, index);
         this.getNotaxSinglePrice();
         this.$forceUpdate();
+        if(this.clientEnvironmentId==4){
+          this.tableHandleKeyUp(row, index, 'sum');
+
+        }
       },
       //修改发货总重
       changeSendTotalWeight(row, index) {