From 4529cc97736ab92b30fb6351b37970bf53a22794 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 01 十一月 2024 02:47:14 +0800
Subject: [PATCH] 数据中心优化完成

---
 src/views/system/work-order/distribute/index.vue |   23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/src/views/system/work-order/distribute/index.vue b/src/views/system/work-order/distribute/index.vue
index b5aa33d..a5bf8a9 100644
--- a/src/views/system/work-order/distribute/index.vue
+++ b/src/views/system/work-order/distribute/index.vue
@@ -61,7 +61,6 @@
           <span style="font-weight: bold;font-size: 16px">蹇嵎涓嬪彂</span>
           <el-form ref="fastDistributeForm" :model="fastDistributeForm" :rules="fastDistributeRules" label-width="80px">
             <el-form-item label="蹇嵎鏂瑰紡" prop="fastWay">
-              <el-radio v-model="fastDistributeForm.fastWay" label="LAST_HALF_HOUR">鏈�杩�30鍒嗛挓</el-radio>
               <el-radio v-model="fastDistributeForm.fastWay" label="LAST_HOUR">鏈�杩�1灏忔椂</el-radio>
               <el-radio v-model="fastDistributeForm.fastWay" label="LAST_TWO_HOUR">鏈�杩�2灏忔椂</el-radio>
               <el-radio v-model="fastDistributeForm.fastWay" label="LAST_DAY">鏈�杩�1澶�</el-radio>
@@ -105,6 +104,7 @@
         <el-table v-loading="loading" :data="workOrderList" @selection-change="handleSelectionChange">
           <el-table-column type="selection" width="55" align="center" />
           <el-table-column label="宸ュ崟鍙�" align="center" prop="workOrderNo"/>
+          <el-table-column label="鍥芥爣鐮�" align="center" prop="serialNumber"/>
           <el-table-column label="鏁呴殰鐐逛綅" align="center" prop="source">
             <template slot-scope="scope">
               <el-popover
@@ -147,13 +147,13 @@
             </el-option>
           </el-select>
         </el-form-item>
-        <el-form-item label="宸ュ崟鏉ユ簮" prop="source">
+        <el-form-item label="鏁呴殰鐐逛綅" prop="source">
           <el-select
             v-model="form.source"
             filterable
             remote
             reserve-keyword
-            placeholder="璇烽�夋嫨鏉ユ簮"
+            placeholder="鍥芥爣鐮�/鐐逛綅鍚嶇О鎼滅储"
             :remote-method="remoteGetPoints"
             @change="setPointId"
             :loading="selectLoading">
@@ -312,11 +312,13 @@
     },
     page() {
       this.loading = true;
-      this.selectUnit();
-      distributeWorkOrder(this.queryParams).then(res => {
-        this.workOrderList = res.data.records;
-        this.total = res.total;
-        this.loading = false;
+      distributeWorkOrder(this.queryParams).then(data => {
+        workList(this.queryParams).then(res => {
+          this.unitList = res.data;
+          this.workOrderList = data.data.records;
+          this.total = data.total;
+          this.loading = false;
+        })
       })
     },
     changeUnit(unitId, unitName) {
@@ -378,7 +380,7 @@
     },
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
-      this.multipleSelection = selection.map(item => item.id)
+      this.multipleSelection = selection.map(item => item.workOrderNo)
     },
     /** 鏂板鎸夐挳鎿嶄綔 */
     handleAdd() {
@@ -404,6 +406,7 @@
           } else {
             addWorkOrder(this.form).then(response => {
               this.$modal.msgSuccess("鏂板鎴愬姛");
+              this.pointList = [];
               this.open = false;
               this.page();
             });
@@ -418,7 +421,7 @@
     },
     // 杩愮淮鍏徃涓嬫媺鏁版嵁
     selectUnit() {
-      workList().then(res => {
+      workList(this.queryParams).then(res => {
         this.unitList = res.data;
       })
     },

--
Gitblit v1.8.0