yusheng 1 Minggu lalu
induk
melakukan
0efe5fa094

+ 13 - 3
src/components/contact/parentList.vue

@@ -68,7 +68,10 @@
 <script>
   import { contactPageUsages } from '@/api/eom/contact';
   import ContactSearch from './contactSearch.vue';
-  import { getTreeByPid } from '@/api/classifyManage/index.js';
+  import {
+    getTreeByPid,
+    getProduceTreeByCode
+  } from '@/api/classifyManage/index.js';
   export default {
     components: {
       ContactSearch
@@ -78,7 +81,8 @@
         type: Number | String,
         default: 1
       },
-      type: ''
+      type: '',
+      code: ''
     },
     data() {
       return {
@@ -213,7 +217,13 @@
         try {
           this.treeLoading = true;
 
-          const res = await getTreeByPid(this.type);
+          const res = null;
+          if (this.code) {
+            res = await getProduceTreeByCode(this.code);
+          } else {
+            res = await getTreeByPid(this.type);
+          }
+
           this.treeLoading = false;
           this.treeList = res.data;
           this.$nextTick(() => {

+ 3 - 3
src/views/recordComponents/workOrderReport.vue

@@ -352,10 +352,10 @@
           : '1'
       "
       :type="
-        pageName == 'solidWasteRecord' ||
-        pageName == 'QualityInspection' ||
-        pageName == 'productionRecords'
+        pageName == 'solidWasteRecord' || pageName == 'productionRecords'
           ? '19'
+          : pageName == 'QualityInspection'
+          ? '2065024200690151426'
           : '17'
       "
       ref="parentListRef"

+ 1 - 1
vue.config.js

@@ -36,7 +36,7 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.1.102:18086', //开发
+        target: 'http://192.168.1.251:18086', //开发
         // target: 'http://192.168.1.251:18186', //测试
         // target: 'http://192.168.1.23:18086',//罗
         // target: 'http://192.168.1.144:18086',//付