diff --git a/.env.development b/.env.development index 54dfa3c..577906e 100644 --- a/.env.development +++ b/.env.development @@ -10,12 +10,14 @@ ENV = 'development' # ADMIN 服务地址 # VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ -VITE_ADMIN_PROXY_PATH = http://localhost:9999 +# VITE_ADMIN_PROXY_PATH = http://localhost:9999/ +VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地 # 图片访问基础地址 -# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api +# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089 # VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc - VITE_IMAGE_BASE_PATH = http://localhost:9999 +# VITE_IMAGE_BASE_PATH = http://localhost:9999 +VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地 # 代码生成服务地址 VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 diff --git a/src/api/wallet/mch-manage.ts b/src/api/wallet/mch-manage.ts index 58a1b4b..cf367c0 100644 --- a/src/api/wallet/mch-manage.ts +++ b/src/api/wallet/mch-manage.ts @@ -1,50 +1,50 @@ -import request from "/@/utils/request" +import request from '/@/utils/request'; export function pageJoin(query?: Object) { - return request({ - url: '/wallet/mch-manage/page-join', - method: 'get', - params: query - }) + return request({ + url: '/wallet/mch-manage/page-join', + method: 'get', + params: query, + }); } export function fetchList(query?: Object) { - return request({ - url: '/wallet/mch-manage/page', - method: 'get', - params: query - }) + return request({ + url: '/wallet/mch-manage/page', + method: 'get', + params: query, + }); } export function addObj(obj?: Object) { - return request({ - url: '/wallet/mch-manage', - method: 'post', - data: obj - }) + return request({ + url: '/wallet/mch-manage', + method: 'post', + data: obj, + }); } export function getObj(id?: string) { - return request({ - url: '/wallet/mch-manage/' + id, - method: 'get' - }) + return request({ + url: '/wallet/mch-manage/' + id, + method: 'get', + }); } export function delObjs(ids?: Object) { - return request({ - url: '/wallet/mch-manage', - method: 'delete', - data: ids - }) + return request({ + url: '/wallet/mch-manage', + method: 'delete', + data: ids, + }); } export function putObj(obj?: Object) { - return request({ - url: '/wallet/mch-manage', - method: 'put', - data: obj - }) + return request({ + url: '/wallet/mch-manage', + method: 'put', + data: obj, + }); } /** @@ -52,11 +52,11 @@ export function putObj(obj?: Object) { * @param type */ export function selectMerchantList(type?: string) { - return request({ - url: '/wallet/mch-manage/selectMerchantList', - method: 'get', - params: { - type: type - } - }) + return request({ + url: '/wallet/mch-manage/selectMerchantList', + method: 'get', + params: { + type: type, + }, + }); } diff --git a/src/components/Select/SelectCtcgd.vue b/src/components/Select/SelectCtcgd.vue new file mode 100644 index 0000000..c48a8a5 --- /dev/null +++ b/src/components/Select/SelectCtcgd.vue @@ -0,0 +1,85 @@ + + + diff --git a/src/components/index.ts b/src/components/index.ts index d3f3a02..5d54803 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -19,6 +19,7 @@ import SelectWalletType from '/@/components/Select/SelectWalletType.vue'; import SelectMch from '/@/components/Select/SelectMch.vue'; import SelectDept from '/@/components/Select/SelectDept.vue'; import SelectCtcg from '/@/components/Select/SelectCtcg.vue'; +import SelectCtcgd from '/@/components/Select/SelectCtcgd.vue'; // 第三方组件 import ElementPlus from 'element-plus'; @@ -59,6 +60,7 @@ export default { app.component('SelectMch', SelectMch); app.component('SelectDept', SelectDept); app.component('SelectCtcg', SelectCtcg); + app.component('SelectCtcgd', SelectCtcgd); // 导入全部的elmenet-plus的图标 for (const [key, component] of Object.entries(ElementPlusIconsVue)) { diff --git a/src/views/canteen/boxesInfo/form.vue b/src/views/canteen/boxesInfo/form.vue index aa5b34f..6a76685 100644 --- a/src/views/canteen/boxesInfo/form.vue +++ b/src/views/canteen/boxesInfo/form.vue @@ -2,28 +2,28 @@ - + - + - + - + - + {{ item.label }} @@ -129,7 +129,9 @@ const getboxesInfoData = (id: string) => { loading.value = true; getObj(id) .then((res: any) => { - Object.assign(form, res.data); + Object.assign(form, res.data, { + status: '' + res.data.status, + }); }) .finally(() => { loading.value = false; diff --git a/src/views/canteen/boxesInfo/index.vue b/src/views/canteen/boxesInfo/index.vue index 4990ffd..a59bd3b 100644 --- a/src/views/canteen/boxesInfo/index.vue +++ b/src/views/canteen/boxesInfo/index.vue @@ -40,20 +40,24 @@ @sort-change="sortChangeHandle" > - + - + + + - +