From 8d356872a7868b60ef28ab4c51c08ae3ecde9503 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 23 Jul 2025 10:29:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E8=AF=84=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/foodManage/supplierManage.js | 56 ++- .../supplierManage/supplierRating/index.vue | 408 ++++++++++-------- 2 files changed, 266 insertions(+), 198 deletions(-) diff --git a/src/api/foodManage/supplierManage.js b/src/api/foodManage/supplierManage.js index 87eac54d..7db8cb76 100644 --- a/src/api/foodManage/supplierManage.js +++ b/src/api/foodManage/supplierManage.js @@ -125,14 +125,54 @@ export function editSupplierBindMaterialApi(data) { - - - - - - - - +// 实时分页查询供应商评分 +export function supplierScorePageApi(data) { + return request({ + url: '/smart-canteen/ims-supplier-score-rule/page', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} + +// 分页查询供应商历史评分 +export function supplierScoreHistApi(data) { + return request({ + url: '/smart-canteen/ims-supplier-score-rule/hist', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} + + +// 查询供应商评分规则分数设定 +export function supplierScoreRuleListApi(data) { + return request({ + url: '/smart-canteen/ims-supplier-score-rule/list', + method: 'get', + headers: { + //"merchant-id":"378915229716713472", + }, + params:data + }) +} + +// 新增/编辑供应商评分规则分数设定 +export function editSupplierRuleApi(data) { + return request({ + url: '/smart-canteen/ims-supplier-score-rule/add-or-edit', + method: 'post', + headers: { + //"merchant-id":"378915229716713472", + }, + data: data + }) +} diff --git a/src/views/foodManage/supplierManage/supplierRating/index.vue b/src/views/foodManage/supplierManage/supplierRating/index.vue index 5fedcdd2..955242ec 100644 --- a/src/views/foodManage/supplierManage/supplierRating/index.vue +++ b/src/views/foodManage/supplierManage/supplierRating/index.vue @@ -8,14 +8,16 @@ emitPath: false,// 若设置 false,则只返回该节点的值,只返回最后选择的id checkStrictly: false,//来设置父子节点取消选中关联,从而达到选择任意一级选项的目的 value:'id',label:'label' - }" clearable> + }" clearable > - - - + @@ -43,18 +45,17 @@ {{(queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1}} - - - - - - - - - - - - + + + + + + + + + + +