linwenxin преди 9 месеца
родител
ревизия
a6a20a00e4

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

@@ -12,6 +12,21 @@ export default {
     serviceInfo() {
       return [
         {
+          isShow: this.formOptions.serviceStatus.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.serviceStatus.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '服务状态',
+            prop: 'serviceStatus',
+            rules: this.formOptions.serviceStatus.isRules
+          }
+        },
+        // -------------------------------------------------
+        {
           isShow: this.formOptions.orderSmallType.isShow && !this.id,
           name: 'el-select',
           md: 6,
@@ -243,7 +258,133 @@ export default {
             prop: 'source',
             rules: this.formOptions.source.isRules
           }
-        }
+        },
+        {
+          isShow: this.formOptions.salesPlatform.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.salesPlatform.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '销售平台',
+            prop: 'salesPlatform',
+            rules: this.formOptions.salesPlatform.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.salesOrderId.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.salesOrderId.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '销售单号',
+            prop: 'salesOrderId',
+            rules: this.formOptions.salesOrderId.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.serviceOrderId.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.serviceOrderId.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '服务单号',
+            prop: 'serviceOrderId',
+            rules: this.formOptions.serviceOrderId.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.urgent.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.urgent.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '紧急程度',
+            prop: 'urgent',
+            rules: this.formOptions.urgent.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.complaint.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.complaint.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '投诉等级',
+            prop: 'complaint',
+            rules: this.formOptions.complaint.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.evaluate.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.evaluate.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '评价结果',
+            prop: 'evaluate',
+            rules: this.formOptions.evaluate.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.reqStatus.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.reqStatus.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '要求状态',
+            prop: 'reqStatus',
+            rules: this.formOptions.reqStatus.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.reqType.isShow,
+          name: 'el-input',
+          md: 6,
+          attributes: {
+            disabled: !this.formOptions.reqType.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '要求类型',
+            prop: 'reqType',
+            rules: this.formOptions.reqType.isRules
+          }
+        },
+        {
+          isShow: this.formOptions.reqText.isShow,
+          name: 'el-input',
+          md: 12,
+          attributes: {
+            disabled: !this.formOptions.reqText.isEdit,
+            placeholder: '请输入'
+          },
+          formItemAttributes: {
+            label: '要求内容',
+            prop: 'reqText',
+            rules: this.formOptions.reqText.isRules
+          }
+        },
       ]
     }
   },

+ 54 - 3
src/views/workOrder/workOrderPool/detailModule/workOrderInfo/mixins/workOrderLogic.js

@@ -1,4 +1,4 @@
-import { required, mobileRequired,mobileRequired2,mobileRequired3, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
+import { required, mobileRequired, mobileRequired2, mobileRequired3, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
 import { orderBaseDetail, orderBaseProductList } from '@/api/workOrderPool.js'
 
 var initdata_ = {
@@ -36,7 +36,7 @@ var initdata_ = {
   orderChannelId: '',
   // 预约上门日期
   appointmentTime: '',
-  appointmentEndTime:'',
+  appointmentEndTime: '',
   // 销售单位
   saleCompany: '',
   source: '',
@@ -306,7 +306,58 @@ export default {
           isEdit: !finish,
           isShow: true,
           isRules: this.userInfo.type != 1 && !this.orderInfo.isQd ? [...required] : []
-        }
+        },
+        // ------------------------------
+        serviceStatus: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        salesPlatform: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        salesOrderId: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        serviceOrderId: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        urgent: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        complaint: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        evaluate: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        reqStatus: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        reqType: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
+        reqText: {
+          isEdit: !finish,
+          isShow: true,
+          isRules: []
+        },
       }
     },
     // 表单校验规则