diff --git a/pages/supplierindex/api.js b/pages/supplierindex/api.js index 9cf0cb1..faf8ef0 100644 --- a/pages/supplierindex/api.js +++ b/pages/supplierindex/api.js @@ -138,6 +138,14 @@ export function getSuppliersMaterialType(data){ data, }) } +// 供应商物料单位 +export function getDictItems(data){ + return request({ + url: `/sys/api/getDictItems`, + method: 'get', + data, + }) +} //查询机构下的物料集合 export function getSuppliersMaterialInfo(data){ return request({ @@ -146,5 +154,19 @@ export function getSuppliersMaterialInfo(data){ data, }) } +export function getSuppliersMaterialTypeByCondition(data){ + return request({ + url: `/api/suppliers/getSuppliersMaterialTypeByCondition`, + method: 'get', + data, + }) +} +export function editSuppliersMaterialInfo(data){ + return request({ + url: `/api/suppliers/editSuppliersMaterialInfo`, + method: 'post', + data, + }) +} // ---------------------杨君-------------------------- \ No newline at end of file diff --git a/pages/supplierindex/orgList.vue b/pages/supplierindex/orgList.vue index 431c0e2..5e6d923 100644 --- a/pages/supplierindex/orgList.vue +++ b/pages/supplierindex/orgList.vue @@ -3,10 +3,11 @@ + 机构列表 - + @@ -15,16 +16,16 @@ {{v.comName}} - 负责人 + 负责人: {{v.orgLeader}} - 联系电话 + 联系电话: {{v.orgLeaderPhone}} - + - 编辑 + 配置 详情 @@ -72,20 +73,22 @@ id.value = e.id; search() }) - const search = ()=>{ let obj = { - openId: openId + openId: openId, + pageSize:10, + pageNo:pageNo.value } getSuppliersOrgInfoByOpenId(obj).then(res=>{ console.log('---->',res) - list.value.push(...res.result) - // status.value = (res.result.total == list.value.length ? 'nomore' : 'loadmore') + list.value.push(...res.result.records) + status.value = (res.result.total == list.value.length ? 'nomore' : 'loadmore') }) } onReachBottom(()=>{ if(status.value=='loading'|| status.value=='nomore'){return} status.value = 'loading'; + pageNo.value++ search() }) const swih = (e,i)=>{ @@ -95,6 +98,16 @@ - \ No newline at end of file + + .title-back { + background: rgba(255, 255, 255, 0); + width: 100%; + height: 70rpx; + display: flex; + justify-content: space-between; + align-items: flex-end; + padding-bottom: 20rpx; + position: fixed; + top: 0; + left: 0; + z-index: 59; + } + + .left-father { + width: 350rpx; + height: 100%; + display: flex; + align-items: flex-end; + + .back-img { + width: 45rpx; + height: 40rpx; + margin-left: 40rpx; + margin-right: 15rpx; + } + } + + \ No newline at end of file