刘洋 1 gadu atpakaļ
vecāks
revīzija
4e98b63b22

+ 9 - 9
src/api/my-workbenches.js

@@ -18,14 +18,14 @@ export const getMyWaits = (data) =>
   });
 
 export const setMyMessagesRead = (id) =>
-    request({
-        url: '/api/sys/message/read',
-        params: { id },
-    });
+  request({
+    url: '/api/sys/message/read',
+    params: { id },
+  });
 
 export const getViolationBy = (code) =>
-    request({
-        url: '/api/admin/tb/violation/getByCode?code=' + code,
-        method: 'get',
-        loading: true,
-    });
+  request({
+    url: '/api/admin/tb/violation/getByCode?code=' + code,
+    // method: 'get',
+    loading: true,
+  });

+ 2 - 2
src/api/service-unit.js

@@ -5,7 +5,7 @@ export const productListApi = (data) =>
   request({
     url: '/api/admin/tb/product/list',
     params: data,
-    method: 'get',
+    // method: 'get',
   });
 
 // dispatch-manage
@@ -23,7 +23,7 @@ export const dispatchDetailApi = (id) =>
   request({
     url: '/api/admin/tb/crm/get',
     params: { id },
-    method: 'get',
+    // method: 'get',
   });
 export const dispatchDeleteApi = (id) =>
   request({

+ 1 - 1
src/api/sop.js

@@ -24,7 +24,7 @@ export const restartDelayWarn = (id) =>
 export const delayWarnDetail = (id) =>
   request({
     url: '/api/admin/tb/delay/warn/get?id=' + id,
-    method: 'get',
+    // method: 'get',
   });
 // 延期预警明细表
 export const delayWarnDetailList = (id) =>

+ 5 - 5
src/api/system.js

@@ -45,13 +45,13 @@ export const supplierListApi = (data) =>
   request({
     url: '/api/sys/supplier/list',
     params: data,
-    method: 'get',
+    // method: 'get',
   });
 export const supplierDetailApi = (id) =>
   request({
     url: '/api/sys/supplier/get',
     params: { id },
-    method: 'get',
+    // method: 'get',
   });
 export const supplierEditApi = (data) => {
   if (data.id) {
@@ -108,7 +108,7 @@ export const deviceEnableApi = (ids, enable) =>
 export const deviceBrandListApi = () =>
   request({
     url: '/api/sys/device/brand/list',
-    method: 'get',
+    // method: 'get',
   });
 
 // service-level-manage
@@ -121,13 +121,13 @@ export const serviceLevelListApi = (data) =>
   request({
     url: '/api/sys/level/list',
     params: data,
-    method: 'get',
+    // method: 'get',
   });
 export const serviceLevelDetailApi = (id) =>
   request({
     url: '/api/sys/level/get',
     params: { id },
-    method: 'get',
+    // method: 'get',
   });
 export const serviceLevelEditApi = (data) => {
   if (data.id) {

+ 2 - 2
src/components/common/select-filter-user/index.vue

@@ -17,9 +17,9 @@
 </template>
 
 <script setup name="SelectFilterUser">
-import { ref, watch, computed } from 'vue';
+import { ref, watch, computed, useAttrs } from 'vue';
 import { getUserList } from '@/api/user';
-
+const attrs = useAttrs();
 const emit = defineEmits(['update:modelValue', 'change']);
 const props = defineProps({
   modelValue: { type: [Number, String, Array], default: '' },

+ 11 - 11
src/components/common/select-product/index.vue

@@ -37,13 +37,13 @@ const isMultiple = computed(() => {
 const search = async () => {
   optionList.value = [];
   let data = { enable: true };
-  if (props.productType) {
-    data.productType = props.productType;
-  }
+  // if (props.productType) {
+  //   data.productType = props.productType;
+  // }
   const res = await productListApi(data).catch(() => {});
   if (!res) return;
 
-  optionList.value = props.productType ? res : [];
+  optionList.value = res;
 };
 
 const onChange = () => {
@@ -69,11 +69,11 @@ watch(
     immediate: true,
   }
 );
-watch(
-  () => props.productType,
-  (val) => {
-    selected.value = '';
-    search();
-  }
-);
+// watch(
+//   () => props.productType,
+//   (val) => {
+//     selected.value = '';
+//     search();
+//   }
+// );
 </script>