Browse Source

no message

linwenxin 5 months ago
parent
commit
b7c1d09911

+ 28 - 20
src/views/workOrder/penaltyWorkOrder/mixins/czpandanxinxi.js

@@ -1,4 +1,4 @@
-import { memberListPageV2 } from "@/api/masterManagement";
+import { memberListPageV2 } from '@/api/masterManagement'
 import { required, mobileRequired, mobile, httpUrl, email } from '@/components/template/rules_verify.js'
 export default {
   data() {
@@ -14,11 +14,11 @@ export default {
           md: 6,
           attributes: {
             placeholder: '请输入',
-            disabled: this.formData.status == "OK"
+            disabled: this.formData.status == 'OK'
           },
           formItemAttributes: {
             label: '正激励工单号',
-            prop: 'disposeOrderBaseId',
+            prop: 'disposeOrderBaseId'
             // rules: [...required],
           }
         },
@@ -30,15 +30,15 @@ export default {
             placeholder: '请选择',
             clearable: true,
             filterable: true,
-            disabled: this.formData.status == "OK"
+            disabled: this.formData.status == 'OK'
           },
           formItemAttributes: {
             label: '工单类型',
-            prop: 'disposeOrderSmallType',
+            prop: 'disposeOrderSmallType'
             // rules: [...required],
           },
           events: {
-            change: (val) => {
+            change: val => {
               if (val) {
                 this.formData.disposeOrderSmallTypeText = this.orderSmallTypeData.find(item => item.value == val).label
               } else {
@@ -49,24 +49,24 @@ export default {
         },
         {
           name: 'el-select-add',
-          options: this.websitList,
+          options: this.websitList.map(item => ({ ...item, label: `(${item.value})${item.label}` })),
           md: 6,
           attributes: {
             placeholder: '请选择',
             clearable: true,
             filterable: true,
-            disabled: this.formData.status == "OK"
+            disabled: this.formData.status == 'OK'
           },
           formItemAttributes: {
             label: '网点名称',
-            prop: 'disposeWebsitId',
+            prop: 'disposeWebsitId'
             // rules: [...required],
           },
           events: {
-            change: (val) => {
-              this.formData.disposeWorkerId = ""
-              this.formData.disposeWorkerName = ""
-              this.formData.disposeWorkerMobile = ""
+            change: val => {
+              this.formData.disposeWorkerId = ''
+              this.formData.disposeWorkerName = ''
+              this.formData.disposeWorkerMobile = ''
               this.getdisposeWebsitIds()
               if (val) {
                 this.formData['disposeWebsitName'] = this.websitList.find(item => item.value == val)?.label || val
@@ -84,32 +84,40 @@ export default {
             placeholder: '请选择',
             clearable: true,
             filterable: true,
-            disabled: this.formData.status == "OK"
+            disabled: this.formData.status == 'OK'
           },
           formItemAttributes: {
             label: '正激励工程师',
-            prop: 'disposeWorkerId',
+            prop: 'disposeWorkerId'
             // rules: [...required],
           },
           events: {
-            change: (val) => {
+            change: val => {
               if (val) {
                 this.formData['disposeWorkerName'] = this.workerList_cz.find(item => item.value == val)?.label || val
-                this.formData['disposeWorkerMobile'] = this.workerList_cz.find(item => item.value == val)?.data?.workerMobile || ""
+                this.formData['disposeWorkerMobile'] =
+                  this.workerList_cz.find(item => item.value == val)?.data?.workerMobile || ''
               } else {
                 this.formData['disposeWorkerMobile'] = ''
                 this.formData['disposeWorkerName'] = ''
               }
             }
           }
-        },
+        }
       ]
     }
   },
   methods: {
     getdisposeWebsitIds() {
       if (this.formData.disposeWebsitId) {
-        memberListPageV2({ "pageNum": 1, "pageSize": -1, "params": [{ "param": "b.examine_status", "compare": "=", "value": "OK" }, { "param": "b.websit_id", "compare": "=", "value": this.formData.disposeWebsitId }] }).then(res => {
+        memberListPageV2({
+          pageNum: 1,
+          pageSize: -1,
+          params: [
+            { param: 'b.examine_status', compare: '=', value: 'OK' },
+            { param: 'b.websit_id', compare: '=', value: this.formData.disposeWebsitId }
+          ]
+        }).then(res => {
           this.workerList_cz = res.data.records.map(item => {
             var { id, userId, ...data } = item
             return {
@@ -129,5 +137,5 @@ export default {
         this.workerList_cz = []
       }
     }
-  },
+  }
 }

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

@@ -120,7 +120,7 @@ export default {
             var { formData } = props
             return (
               <el-input
-                value={`${formData.websitName || ''}-${formData.websitId || ''}`}
+                value={`(${formData.websitId || ''})${formData.websitName || ''}`}
                 disabled={true}
                 size="mini"
                 placeholder="请输入"