From 296ff2bbc555d4137cd1f781ec9069ae9625bba3 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期三, 17 一月 2024 13:32:09 +0800
Subject: [PATCH] 	modified:   src/views/quality/exception/exception-form.vue 	modified:   src/views/quality/exception/exceptionform.vue

---
 src/views/quality/exception/exceptionform.vue  |   33 +++++++++++++++++++++++++++++++--
 src/views/quality/exception/exception-form.vue |   11 +++++++----
 2 files changed, 38 insertions(+), 6 deletions(-)

diff --git a/src/views/quality/exception/exception-form.vue b/src/views/quality/exception/exception-form.vue
index ef33e4e..71959a0 100644
--- a/src/views/quality/exception/exception-form.vue
+++ b/src/views/quality/exception/exception-form.vue
@@ -78,7 +78,7 @@
               ></el-button>
             </el-input>
           </el-form-item>
-          <el-form-item label="寰俊閫氱煡缁�" prop="notifierGroupId">
+          <!-- <el-form-item label="寰俊閫氱煡缁�" prop="notifierGroupId">
             <el-select
               v-model="dataForm.notifierGroupId"
               style="width:100%;"
@@ -92,7 +92,7 @@
               >
               </el-option>
             </el-select>
-          </el-form-item>
+          </el-form-item> -->
           <el-form-item label="澶囨敞" prop="remark">
             <el-input
               type="textarea"
@@ -163,7 +163,7 @@
 
 <script>
 import { getObj, putObj } from '@/api/quality/exception'
-import { fetchList } from '@/api/quality/wxnotice'
+// import { fetchList } from '@/api/quality/wxnotice'
 import workstationDialog from '@/views/common/workstation.vue'
 import productoutDialog from '@/views/common/productout.vue'
 import { getStore } from '../../../util/store'
@@ -216,7 +216,7 @@
   },
   created() {
     this.getExceptionHandleType()
-    this.getWxNoticeList()
+    // this.getWxNoticeList()
   },
   methods: {
     init(id) {
@@ -229,6 +229,7 @@
         this.$refs.dataForm.resetFields()
         if (this.dataForm.id) {
           getObj(this.dataForm.id).then((response) => {
+            console.log(response,"----");
             this.dataForm = response.data.data
             this.fileList = response.data.data.urlList
           })
@@ -304,6 +305,7 @@
     },
     getExceptionHandleType() {
       remote('exception_handle_type').then((response) => {
+        console.log(response,"111111");
         if (response.data.code === 0) {
           this.exceptionHandleTypeOptions = response.data.data
         } else {
@@ -324,6 +326,7 @@
       })
     },
     selectUser(param) {
+      console.log(param,"----===-=");
       if (param) {
         this.dataForm.processUser = param.userId
         this.dataForm.processUserName = param.username
diff --git a/src/views/quality/exception/exceptionform.vue b/src/views/quality/exception/exceptionform.vue
index 0a47a43..f5a0726 100644
--- a/src/views/quality/exception/exceptionform.vue
+++ b/src/views/quality/exception/exceptionform.vue
@@ -40,10 +40,23 @@
         </el-input>
       </el-form-item>
       <el-form-item label="寮傚父绫诲瀷" prop="exceptionType">
-        <el-input
+        <!-- <el-input
           v-model="dataForm.exceptionType"
           placeholder="寮傚父绫诲瀷"
-        ></el-input>
+        ></el-input> -->
+        <el-select
+              v-model="dataForm.exceptionType"
+              style="width:100%;"
+              placeholder="寮傚父绫诲瀷"
+            >
+              <el-option
+                v-for="item in exceptionHandleTypeOptions"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
+              >
+              </el-option>
+            </el-select>
       </el-form-item>
       <el-form-item label="寮傚父鎻忚堪" prop="exceptionDescription">
         <el-input
@@ -88,6 +101,7 @@
 import productoutDialog from '@/views/common/productout.vue'
 import { loadWarehouse } from '../../../api/warehouse/location'
 import { loadWorkstation } from '../../../api/basic/workstation'
+import { remote } from '@/api/admin/dict'
 import { loadProductMain } from '../../../api/product/personboard'
 
 export default {
@@ -98,6 +112,7 @@
       productoutVisible: false,
       workstationVisible: false,
       visible: false,
+      exceptionHandleTypeOptions:[],
       dataForm: {
         id: 0,
         code: '',
@@ -124,7 +139,21 @@
       clickSaveArr: []
     }
   },
+  created() {
+    console.log("22222222");
+    this.getExceptionHandleType()
+  },
   methods: {
+    getExceptionHandleType() {
+      remote('exception_handle_type').then((response) => {
+        console.log(response,"-----");
+        if (response.data.code === 0) {
+          this.exceptionHandleTypeOptions = response.data.data
+        } else {
+          this.exceptionHandleTypeOptions = []
+        }
+      })
+    },
     init(id, id1, id2) {
       this.dataForm.workstationId = id1
       if (this.dataForm.workstationId) {

--
Gitblit v1.9.3