浏览代码

1.修订 把含税单价、折扣金额 可编辑
2..修订 数量可为0 ,进行询价

002390 1 年之前
父节点
当前提交
04c07c005a

+ 1 - 1
src/views/purchase/purchase-order/column.js

@@ -146,7 +146,7 @@ export const TabColumns = [
       // { key: "materialClassify", title: "物料分类",  },
       { key: "materialManufacturersCode", title: "厂家物料编码",  },
       { key: "specification", title: "规格",  },
-      { key: "model", title: "型号",  },
+      { key: "model", title: "型号",width: 120  },
       {
         key: "isMedcine",
         title: "医药物料",

+ 18 - 5
src/views/purchase/purchase-order/edit/index.vue

@@ -347,7 +347,8 @@ export default {
      // 子表下拉框改变
      handleTabSelectChange(type,row){
 
-      if(type == 'priceType' && row.material && row.qty && row.qty != ""){
+      // && row.qty
+      if(type == 'priceType' && row.material  && row.qty != ""){
 
         row['whetherCompleteInquiry'] = false;
 
@@ -362,7 +363,8 @@ export default {
 
         row['whetherCompleteInquiry'] = false;
 
-        row.qty && this.handleGetPrice();
+        // row.qty && this.handleGetPrice();
+        this.handleGetPrice();
 
       }
 
@@ -400,7 +402,18 @@ export default {
     handleIsRevise() {
       return this.params.status == '2';
     },
-    
+
+    // /handleIsRevise() ? scope.row[cColumn.key] : Infinity
+    getInputNumberMax(key,num){
+
+      if(key === 'qty'){
+
+        return this.handleIsRevise() ? num : Infinity
+      
+      }
+
+      return Infinity;
+    },
   },
   created() {},
   mounted() { },
@@ -482,7 +495,7 @@ export default {
               <el-input-number v-if="column.inputType === 'InputNumber'" 
                 v-model="params[column.key]"
                 :precision="column.precision"
-                :max="handleIsRevise() ? params[column.key] : Infinity"
+                :max="getInputNumberMax(column.key, params[column.key])"
                 :controls-position="column.controlsPosition" 
                 :placeholder="column.placeholder"
                 :clearable="column.clearable" 
@@ -641,7 +654,7 @@ export default {
                     v-model="scope.row[cColumn.key]"
                     :precision="cColumn.precision"
                     :controls-position="cColumn.controlsPosition"
-                    :max="handleIsRevise() ? scope.row[cColumn.key] : Infinity"
+                    :max="getInputNumberMax(cColumn.key, scope.row[cColumn.key])"
                     @change="handleInputChange(scope.row, cColumn.key)" 
                     :placeholder="cColumn.placeholder"
                     :clearable="cColumn.clearable" 

+ 2 - 1
src/views/purchase/purchase-order/edit/initColumn.js

@@ -73,7 +73,8 @@ export const forbidden = (isEdit,source) => {
         if (t.key == 'unit' || t.key == 'qty' ||
           t.key == 'place' || t.key == 'arrivalDatePlan' || t.key == 'storageCondition' ||
           t.key == 'carriageCondition' || t.key == 'customerName' || t.key == 'isBatchLock' ||
-          t.key == 'isReplenishment' || t.key == 'originalQty' || t.key == 'originalMoney' 
+          t.key == 'isReplenishment' || t.key == 'originalQty' || t.key == 'originalMoney' ||
+          t.key == 'taxPrice' || t.key == 'taxDeductMoneya'
         ) {
 
           t.disabled = false;