From cae29090238a49fc0faa6ef11474f7d6e3b447cd Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Thu, 2 Apr 2026 09:47:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E7=89=A9=E6=96=99=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 14 ++ pages/supplierindex/api.js | 31 +++- pages/supplierindex/index.vue | 4 +- pages/supplierindex/orgList.vue | 274 ++++++++++++++++++++++++++++ pages/supplierindex/orgMaterial.vue | 194 ++++++++++++++++++++ request/index.js | 4 +- 6 files changed, 516 insertions(+), 5 deletions(-) create mode 100644 pages/supplierindex/orgList.vue create mode 100644 pages/supplierindex/orgMaterial.vue diff --git a/pages.json b/pages.json index e6b9347..26a1a6b 100644 --- a/pages.json +++ b/pages.json @@ -472,6 +472,20 @@ { "navigationBarTitleText" : "" } + }, + { + "path" : "pages/supplierindex/orgList", + "style" : + { + "navigationBarTitleText" : "" + } + }, + { + "path" : "pages/supplierindex/orgMaterial", + "style" : + { + "navigationBarTitleText" : "" + } } ], "globalStyle": { diff --git a/pages/supplierindex/api.js b/pages/supplierindex/api.js index 6e1e07f..9cf0cb1 100644 --- a/pages/supplierindex/api.js +++ b/pages/supplierindex/api.js @@ -118,4 +118,33 @@ export function editSuppliersWlInfo(data){ method: 'post', data, }) -} \ No newline at end of file +} + + +// ---------------------杨君-------------------------- +//供应商获取合作的机构列表 +export function getSuppliersOrgInfoByOpenId(data){ + return request({ + url: `/api/suppliers/getSuppliersOrgInfoByOpenId`, + method: 'get', + data, + }) +} +//查询物料分类集合 +export function getSuppliersMaterialType(data){ + return request({ + url: `/api/suppliers/getSuppliersMaterialType`, + method: 'get', + data, + }) +} +//查询机构下的物料集合 +export function getSuppliersMaterialInfo(data){ + return request({ + url: `/api/suppliers/getSuppliersMaterialInfo`, + method: 'get', + data, + }) +} + +// ---------------------杨君-------------------------- \ No newline at end of file diff --git a/pages/supplierindex/index.vue b/pages/supplierindex/index.vue index a759dab..1db1515 100644 --- a/pages/supplierindex/index.vue +++ b/pages/supplierindex/index.vue @@ -271,7 +271,7 @@ }) } - const buttonArray = ref(["物料管理", "敬请期待", "敬请期待"]) + const buttonArray = ref(["物料信息", "敬请期待", "敬请期待"]) const statusarray = ["loading", "success", "fail"] const which = ref(0); @@ -489,7 +489,7 @@ const clickButton = (item, index) => { if (index === 0) { uni.navigateTo({ - url:'/pages/supplierindex/material?id='+item.suppliersId + url:'/pages/supplierindex/orgList?id='+item.suppliersId }) // getSupInfoByOpenId(item.orgCode).then(res => { // if (res.success) { diff --git a/pages/supplierindex/orgList.vue b/pages/supplierindex/orgList.vue new file mode 100644 index 0000000..842cd09 --- /dev/null +++ b/pages/supplierindex/orgList.vue @@ -0,0 +1,274 @@ + + + + + + \ No newline at end of file diff --git a/pages/supplierindex/orgMaterial.vue b/pages/supplierindex/orgMaterial.vue new file mode 100644 index 0000000..1199337 --- /dev/null +++ b/pages/supplierindex/orgMaterial.vue @@ -0,0 +1,194 @@ + + + + + + \ No newline at end of file diff --git a/request/index.js b/request/index.js index 1564caa..ca39ebb 100644 --- a/request/index.js +++ b/request/index.js @@ -1,6 +1,6 @@ // 全局请求封装 -// export const base_url = 'http://192.168.2.18:8081/opeapi/' -export const base_url = 'https://www.focusnu.com/opeapi' +export const base_url = 'http://192.168.2.18:8081/opeapi/' +// export const base_url = 'https://www.focusnu.com/opeapi' export const media_base_url = 'https://www.focusnu.com/media/' // export const base_url = 'http://192.168.2.24:8081/opeapi'