Selaa lähdekoodia

工单池 工单池新增编辑:
1.将”工单来源“改成“工单渠道”
2.增江“工单来源”字段非必填 参数:source

linwenxin 1 vuosi sitten
vanhempi
commit
772da0c178

+ 15 - 1
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/serviceInfo.js

@@ -62,7 +62,7 @@ export default {
             filterable: true
           },
           formItemAttributes: {
-            label: '工单来源',
+            label: '工单渠道',
             prop: 'orderChannelId',
             rules: this.formOptions.orderChannelId.isRules
           },
@@ -158,6 +158,20 @@ export default {
             rules: this.formOptions.saleCompany.isRules
           }
         },
+        {
+          isShow: this.formOptions.source.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.source.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '工单来源',
+            prop: 'source',
+            rules: this.formOptions.source.isRules
+          }
+        },
       ]
     }
   },

+ 6 - 0
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/workOrderLogic.js

@@ -33,6 +33,7 @@ var initdata_ = {
   appointmentTime: "",
   // 销售单位
   saleCompany: "",
+  source: "",
   // 产品信息------------------------
   orderProducts: [],
   // 其它信息------------------------
@@ -211,6 +212,11 @@ export default {
           isShow: true,
           isRules: []
         },
+        source: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
         // 产品信息------------------------
         orderProducts: {
           isEdit: !finish,