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}} - - - - - - - - - - - - + + + + + + + + + + +