Selaa lähdekoodia

采购订单维护-列表与详情表头表体增加关闭原因、行关闭/打开原因

002390 1 vuosi sitten
vanhempi
commit
44cfa6c5ff

+ 37 - 5
src/views/purchase/purchase-order/add/column.js

@@ -324,6 +324,13 @@ const PurColumns =[
     isShow:true,
   },
   {
+    key: "closeReason",
+    title: "关闭原因",
+    inputType: "Input",
+    disabled: true,
+    isShow:true,
+  },
+  {
     key: "invoiceMoney",
     title: "发票金额",
     inputType: "InputNumber",
@@ -383,13 +390,14 @@ const PurchaseTabColumns =[
       },
 
       {
-        key: "materialName",
-        title: "物料名称",
+        key: "materialCode",
+        title: "物料编码",
         inputType: "PopoverSelect",
         width: 180,
         require: true,
-        valueKey: "id",
+        valueKey: "code",
         referName: "MATERIAL_PARAM",
+        // copy: true,
         dataMapping: {
           material: "id",
           materialName: "name",
@@ -418,8 +426,10 @@ const PurchaseTabColumns =[
         width:180,
       },
       {
-        key: "materialCode",
-        title: "物料编码",
+        // key: "materialCode",
+        // title: "物料编码",
+        key: "materialName",
+        title: "物料名称",
         inputType: "Input",
         require: true,
         width: 180,
@@ -615,6 +625,13 @@ const PurchaseTabColumns =[
         }),
         width: 180,
       },
+      {
+        key: "closeReason",
+        title: "行关闭/打开原因",
+        inputType: "Input",
+        width: 180,
+        disabled: true,
+      },
     
     ]
   },
@@ -1045,6 +1062,13 @@ const CauseColumns =[
     width: 200,
   },
   {
+    key: "closeReason",
+    title: "关闭原因",
+    inputType: "Input",
+    isShow:true,
+    disabled:true,
+   },
+  {
     key: "invoiceMoney",
     title: "发票金额",
     inputType: "InputNumber",
@@ -1407,6 +1431,14 @@ const CauseTabColumns =[
         }),
         width: 180,
       },
+      {
+        key: "closeReason",
+        title: "关闭原因",
+        inputType: "Input",
+        isShow:true,
+        disabled:true,
+        width: 180,
+       },
 
     ]
   },

+ 22 - 0
src/views/purchase/purchase-order/column.js

@@ -222,6 +222,13 @@ const PurColumns = [
     },
   },
   { 
+    item:{ key: "closeReason", title: "关闭原因" ,width:100,},
+    attr:{
+      isHidden:true,
+    },
+  },
+  
+  { 
     item:{ key: "approverName", title: "审批人" ,width:100,},
     attr:{
       isHidden:true,
@@ -731,6 +738,7 @@ const CauseColumns = [
       isHidden:true,
     },
   },
+  
   { 
     item:{ key: "approverName", title: "审批人" ,width:100,},
     attr:{
@@ -1081,6 +1089,13 @@ const PurTabColumns = [
         },
         
       },
+      { 
+        item:{ key: "closeReason", title: "行关闭/打开原因",width:100,},
+        attr:{
+          isHidden:true,
+        },
+        
+      },
       
     ].map(({ item, attr }) => ({
       attr,
@@ -1662,6 +1677,13 @@ const CommonTabColumns = [
         },
         
       },
+      { 
+        item:{ key: "closeReason", title: "行关闭/打开原因",width:100,},
+        attr:{
+          isHidden:true,
+        },
+        
+      },
       // { item:{key: "createByName", title: "创建人",width:100, },
       // { item:{key: "updateByName", title: "更新人" ,width:100,},