Browse Source

1.输入物料信息数量,部分字段的值是根据数量的值计算出来的,这些字段编辑的时候应该不允许修改,而是根据物料数量的值进行计算赋值

002390 2 years ago
parent
commit
5b49d3bbf7
1 changed files with 12 additions and 8 deletions
  1. 12 8
      src/views/purchase/purchase-order/add/column.js

+ 12 - 8
src/views/purchase/purchase-order/add/column.js

@@ -132,6 +132,7 @@ export const Columns = [
     inputType: "InputNumber",
     controlsPosition: "right",
     isShow:true,
+    disabled:true,
   },
   {
     key: "originalQty",
@@ -139,10 +140,11 @@ export const Columns = [
     inputType: "InputNumber",
     controlsPosition: "right",
     isShow:true,
+    disabled:true,
   },
-  { key: "money", title: "价税合计", inputType: "Input", isShow:true, },
-  { key: "originalMoney", title: "原始总金额", inputType: "Input",  isShow:true,},
-  { key: "notaxMoney", title: "无税金额", inputType: "Input",  isShow:true,},
+  { key: "money", title: "价税合计", inputType: "Input", isShow:true, disabled:true,},
+  { key: "originalMoney", title: "原始总金额", inputType: "Input",  isShow:true, disabled:true,},
+  { key: "notaxMoney", title: "无税金额", inputType: "Input",  isShow:true, disabled:true,},
   {
     key: "status",
     title: "单据状态",
@@ -182,7 +184,6 @@ export const Columns = [
       goodsAllocationName: 'name'
     },
      isShow:true,
-     require: true,
     queryParams: (params) => ({
       stordocId: params.warehouse,
     }),
@@ -559,18 +560,20 @@ export const TabColumns = [
         title: "含税单价", 
         inputType: "Input",
         require: true,
+        disabled:true,
         width: 120,
        },
-      { key: "money", title: "价税合计", inputType: "Input", },
+      { key: "money", title: "价税合计", inputType: "Input",disabled:true, },
       { //materialRate  materialRateName
         key: "tax", 
         title: "税率",
         inputType: "Input",
+        disabled:true,
       },
       { key: "taxDeductMoneya", title: "折扣金额", inputType: "Input", },
       { key: "arrivalQty", title: "已到货数量", inputType: "Input", },
       { key: "unarrivedQty", title: "未到货数量", inputType: "Input", },
-      { key: "notaxMoney", title: "无税金额", inputType: "Input", },
+      { key: "notaxMoney", title: "无税金额", inputType: "Input", disabled:true,},
       // { key: "priceSource", title: "价格目录ID", inputType: "Input", },
       { key: "isStorage", title: "入库关闭", inputType: "Checkbox", },
       { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", },
@@ -657,8 +660,8 @@ export const TabColumns = [
       { key: "isBatchLock", title: "批号锁定标识", inputType: "Checkbox", },
       { key: "isReplenishment", title: "补单标识", inputType: "Checkbox", },
       { key: "isUrgency", title: "紧急标识", inputType: "Input", },
-      { key: "originalQty", title: "原始数量", inputType: "Input", },
-      { key: "originalMoney", title: "原始金额", inputType: "Input", },
+      { key: "originalQty", title: "原始数量", inputType: "Input", disabled:true,},
+      { key: "originalMoney", title: "原始金额", inputType: "Input", disabled:true,},
       { key: "directProductBatch", title: "直运产品批号", inputType: "Input", width: 180 },
       { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
       { key: "reservedQty", title: "预留数量", inputType: "Input", },
@@ -721,6 +724,7 @@ export const TabColumns = [
         key: "price",
         title: "无税单价",
         inputType: "Input",
+        disabled:true,
       }
     ]
   },