Quellcode durchsuchen

订单页面中控制数量、金额字段只允许输入数字

002390 vor 2 Jahren
Ursprung
Commit
290cb9dc4e
1 geänderte Dateien mit 135 neuen und 33 gelöschten Zeilen
  1. 135 33
      src/views/purchase/purchase-order/add/column.js

+ 135 - 33
src/views/purchase/purchase-order/add/column.js

@@ -143,9 +143,30 @@ export const Columns = [
     isShow:true,
     disabled: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: "money", 
+    title: "价税合计", 
+    inputType: "InputNumber",
+    controlsPosition: "right", 
+    isShow:true, 
+    disabled:true,
+  },
+  { 
+    key: "originalMoney", 
+    title: "原始总金额", 
+    inputType: "InputNumber",
+    controlsPosition: "right", 
+    isShow:true, 
+    disabled:true,
+  },
+  { 
+    key: "notaxMoney", 
+    title: "无税金额", 
+    inputType: "InputNumber",  
+    controlsPosition: "right",
+    isShow:true, 
+    disabled:true,
+  },
   {
     key: "status",
     title: "单据状态",
@@ -202,13 +223,15 @@ export const Columns = [
   { 
     key: "rebateMoney", 
     title: "订单使用返利金额", 
-    inputType: "Input",
+    inputType: "InputNumber",
+    controlsPosition: "right",
     isShow:true, 
   },
   { 
     key: "deductionMoney", 
     title: "订单抵扣余款金额", 
-    inputType: "Input",
+    inputType: "InputNumber",
+    controlsPosition: "right",
     isShow:true, 
   },
   { 
@@ -330,12 +353,25 @@ export const Columns = [
   { 
     key: "applyPaymentMoney", 
     title: "累计付款申请金额", 
-    inputType: "Input", 
+    inputType: "InputNumber", 
+    controlsPosition: "right",
     isShow:true,
     disabled:true,
   },
-  { key: "paymentMoney", title: "累计付款金额", inputType: "Input", isShow:true,},
-  { key: "invoiceMoney", title: "发票金额", inputType: "Input",isShow:true, },
+  { 
+    key: "paymentMoney", 
+    title: "累计付款金额", 
+    inputType: "InputNumber", 
+    controlsPosition: "right",
+    isShow:true,
+  },
+  { 
+    key: "invoiceMoney", 
+    title: "发票金额", 
+    inputType: "InputNumber",
+    controlsPosition: "right",
+    isShow:true,
+   },
   {
     key: "supplierPersonalName",
     title: "供应商业务员",
@@ -597,28 +633,68 @@ export const TabColumns = [
       { 
         key: "taxPrice", 
         title: "含税单价", 
-        inputType: "Input",
+        inputType: "InputNumber",
+        controlsPosition: "right",
         require: true,
         disabled:true,
-        width: 120,
+        width: 180,
+       },
+      { 
+        key: "money", 
+        title: "价税合计", 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        disabled:true,
+        width: 180,
        },
-      { key: "money", title: "价税合计", inputType: "Input",disabled:true, },
       { //materialRate  materialRateName
         key: "tax", 
         title: "税率",
-        inputType: "Input",
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        disabled:true,
+        width: 180,
+      },
+      { 
+        key: "taxDeductMoneya", 
+        title: "折扣金额", 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        disabled:true,
+        width: 180,
+       },
+      { 
+        key: "arrivalQty",
+        title: "已到货数量",
+        inputType: "InputNumber",
+        controlsPosition: "right",
         disabled:true,
+        width: 180,
+      },
+      { 
+        key: "unarrivedQty", 
+        title: "未到货数量", 
+        inputType: "InputNumber", 
+        controlsPosition: "right",
+        disabled:true,
+        width: 180,
       },
-      { key: "taxDeductMoneya", title: "折扣金额", inputType: "Input",disabled:true, },
-      { key: "arrivalQty", title: "已到货数量", inputType: "Input", disabled:true,},
-      { key: "unarrivedQty", title: "未到货数量", inputType: "Input", disabled:true,},
       { 
         key: "price",
         title: "无税单价",
-        inputType: "Input",
+        inputType: "InputNumber",
+        controlsPosition: "right",
         disabled:true,
+        width: 180,
+      },
+      { 
+        key: "notaxMoney", 
+        title: "无税金额", 
+        inputType: "InputNumber", 
+        controlsPosition: "right",
+        disabled:true,
+        width: 180,
       },
-      { key: "notaxMoney", title: "无税金额", inputType: "Input", disabled:true,},
       // { key: "priceSource", title: "价格目录ID", inputType: "Input", },
       { key: "isStorage", title: "入库关闭", inputType: "Checkbox", disabled:true, },
       { key: "isInvoice", title: "开票关闭", inputType: "Checkbox", disabled:true, },
@@ -705,11 +781,31 @@ export const TabColumns = [
       { key: "isBatchLock", title: "批号锁定标识", inputType: "Checkbox", },
       { key: "isReplenishment", title: "补单标识", inputType: "Checkbox", },
       { key: "isUrgency", title: "紧急标识", inputType: "Checkbox", },
-      { key: "originalQty", title: "原始数量", inputType: "Input", disabled:true,},
-      { key: "originalMoney", title: "原始金额", inputType: "Input", disabled:true,},
+      { 
+        key: "originalQty", 
+        title: "原始数量", 
+        inputType: "InputNumber", 
+        controlsPosition: "right",
+        disabled:true,
+        width: 180 ,
+      },
+      { 
+        key: "originalMoney", 
+        title: "原始金额", 
+        inputType: "InputNumber", 
+        controlsPosition: "right",
+        disabled:true,
+        width: 180,
+      },
       { key: "directProductBatch", title: "直运产品批号", inputType: "Input", width: 180 },
       { key: "discountRule", title: "折扣规则编码", inputType: "Input", width: 180 },
-      { key: "reservedQty", title: "预留数量", inputType: "Input", },
+      { 
+        key: "reservedQty", 
+        title: "预留数量", 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180 ,
+       },
       { key: "reservedPeriod", title: "预留周期", inputType: "Input", },
       { 
         key: "taxDeductClassify", 
@@ -821,44 +917,50 @@ export const TabColumns = [
         title: "数量",
         inputType: "InputNumber",
         controlsPosition: "right",
-        width: 120,
+        width: 180,
         require: true,
       },
       { 
         key: "stroageQty", 
         title: "累计到货主数量", 
-        inputType: "Input", 
-        width: 120 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180, 
       },
       { 
         key: "stockQty", 
         title: "累计入库主数量", 
-        inputType: "Input", 
-        width: 120 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180, 
       },
       { 
         key: "invoiceQty", 
         title: "累计开票主数量", 
-        inputType: "Input", 
-        width: 120 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180, 
       },
       { 
         key: "rollbackQty", 
         title: "累计退货主数量", 
-        inputType: "Input", 
-        width: 120 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180, 
       },
       { 
         key: "backStockQty", 
         title: "累计退库主数量", 
-        inputType: "Input", 
-        width: 120 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180, 
       },
       { 
         key: "floatQty", 
         title: "未到货数量", 
-        inputType: "Input", 
-        width: 120 
+        inputType: "InputNumber",
+        controlsPosition: "right",
+        width: 180, 
       },
       { 
         key: "createByName",