From df0537dfff26f7ad79ec623d443afaca28f0d38c Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Mon, 13 May 2024 15:56:19 +0800 Subject: [PATCH] add --- .env.development | 2 +- src/api/merchant.ts | 11 +- src/components/goodsPop/index.vue | 13 +-- .../data/merchant/merchant/bindGoods.vue | 105 ++++++++++++++++++ src/views/data/merchant/merchant/index.vue | 17 +-- src/views/goods/goods/edit.vue | 43 ++++++- src/views/opurchase/opurchaseclass/index.vue | 2 +- 7 files changed, 167 insertions(+), 26 deletions(-) create mode 100644 src/views/data/merchant/merchant/bindGoods.vue diff --git a/.env.development b/.env.development index 8bcc5d2..a4d7f18 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ NODE_ENV = 'development' VITE_NOW_TYPE = 'dist' # Base API -VITE_APP_BASE_URL='http://192.168.1.22:8546' +VITE_APP_BASE_URL='http://192.168.1.16:8546' # VITE_APP_BASE_URL='https://erp.lihaink.cn' \ No newline at end of file diff --git a/src/api/merchant.ts b/src/api/merchant.ts index b9ab307..3ae90c3 100644 --- a/src/api/merchant.ts +++ b/src/api/merchant.ts @@ -23,4 +23,13 @@ export function apiMerchantDelete(params: any) { // 商户表详情 export function apiMerchantDetail(params: any) { return request.get({ url: '/merchat/merchant/detail', params }) -} \ No newline at end of file +} + + +// 已绑商品表列表 +export function apiBindGoodstLists(params: any) { + return request.get({ url: '/merchat/merchant/bind_goods_lists', params }) +} + + +// /admin?mer_id=506 \ No newline at end of file diff --git a/src/components/goodsPop/index.vue b/src/components/goodsPop/index.vue index b71e723..f935119 100644 --- a/src/components/goodsPop/index.vue +++ b/src/components/goodsPop/index.vue @@ -36,13 +36,8 @@ - - - - @@ -62,18 +57,13 @@ + diff --git a/src/views/data/merchant/merchant/index.vue b/src/views/data/merchant/merchant/index.vue index 2eef5b9..a1dc140 100644 --- a/src/views/data/merchant/merchant/index.vue +++ b/src/views/data/merchant/merchant/index.vue @@ -135,7 +135,7 @@ - + @@ -161,9 +167,6 @@ - - - @@ -180,9 +183,7 @@ const detailRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) const showDetail = ref(false) -const showDialog = ref(false) -let mer_id; // 查询条件 diff --git a/src/views/goods/goods/edit.vue b/src/views/goods/goods/edit.vue index 78f4455..682212a 100644 --- a/src/views/goods/goods/edit.vue +++ b/src/views/goods/goods/edit.vue @@ -18,11 +18,11 @@ /> --> - + @@ -123,7 +123,7 @@ - + @@ -203,6 +203,43 @@ const formData = reactive({ }); + +// const formData = reactive( +// { +// "id": "", +// "name": "In voluptas repudian", +// "py": "", +// "number": "Labore totam suscipi", +// "spec": "Esse ratione incidi", +// "class": 4796, +// "brand": 3, +// "unit": 4, +// "buy": "Tempore nihil harum", +// "sell": "Adipisicing ea qui v", +// "retail": "Consequat Eum irure", +// "integral": "Ipsum inventore beat", +// "code": "Nesciunt minim pari", +// "tax_rate": "Eaque corrupti in e", +// "warehouse": 1, +// "location": "Qui officia quod in ", +// "stocktip": "Fuga Illo fugiat su", +// "retail_name": "Voluptas itaque fuga", +// "sys_labels_text": "水果,生鲜类12,生菜", +// "sys_labels": "3,2,1", +// "imgs": "https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20240510/20240510114142858ca3838.png", +// "details": "", +// "data": "Sit maxime voluptat", +// "more": "Fugiat in ut reicie", +// "sort": "43" +// } + +// ) + + + + + + const customEvent = (e) => { formData.sys_labels = [] let text = [] diff --git a/src/views/opurchase/opurchaseclass/index.vue b/src/views/opurchase/opurchaseclass/index.vue index 2a33109..f460407 100644 --- a/src/views/opurchase/opurchaseclass/index.vue +++ b/src/views/opurchase/opurchaseclass/index.vue @@ -35,7 +35,7 @@ - +