diff --git a/pages.json b/pages.json index 53487f2..65b782d 100644 --- a/pages.json +++ b/pages.json @@ -393,14 +393,16 @@ "path" : "pages/yuangongindex/purchaseorder", "style" : { - "navigationBarTitleText" : "" + "navigationBarTitleText" : "", + "enablePullDownRefresh": true } }, { "path" : "pages/yuangongindex/purchaseorderdetail", "style" : { - "navigationBarTitleText" : "" + "navigationBarTitleText" : "", + "enablePullDownRefresh": true } }, { diff --git a/pages/supplierindex/index.vue b/pages/supplierindex/index.vue index b8186d2..5b7ecfc 100644 --- a/pages/supplierindex/index.vue +++ b/pages/supplierindex/index.vue @@ -266,12 +266,13 @@ // uni.showLoading() } const jumpother = (e) => { + // console.log("e",e.suppliersId) uni.navigateTo({ - url: "/pages/yuangongindex/purchaseorder?serverUrl="+e.serverUrl + url: "/pages/yuangongindex/purchaseorder?id="+e.suppliersId }) } - const buttonArray = ref(["物料信息", "敬请期待", "敬请期待"]) + const buttonArray = ref(["物料信息", "完结单", "敬请期待"]) const statusarray = ["loading", "success", "fail"] const which = ref(0); diff --git a/pages/yuangongindex/api.js b/pages/yuangongindex/api.js index a62ec3a..8293697 100644 --- a/pages/yuangongindex/api.js +++ b/pages/yuangongindex/api.js @@ -93,4 +93,37 @@ export function getDictItems(data){ method: 'get', data, }) +} +// 采购单列表 +export function queryCgdList(data){ + return request({ + url: `/api/suppliers/queryCgdList?gysId=${data.gysId}&pageNo=${data.pageNo}&pageSize=10&status=${data.status}`, + method: 'get', + data, + }) +} +// 采购单详情列表 +export function queryCgdInfoList(data){ + return request({ + url: `/api/suppliers/queryCgdInfoList?cgdId=${data.cgdId}&pageNo=${data.pageNo}&pageSize=10`, + method: 'get', + data, + }) +} + +//采购单详情改价 +export function editArrivalPrice(data){ + return request({ + url: `/api/suppliers/editArrivalPrice`, + method: 'post', + data, + }) +} +//单据确认 +export function cgdQueren(data){ + return request({ + url: `/api/suppliers/cgdQueren`, + method: 'post', + data, + }) } \ No newline at end of file diff --git a/pages/yuangongindex/purchaseorder.vue b/pages/yuangongindex/purchaseorder.vue index ab7193d..5f23641 100644 --- a/pages/yuangongindex/purchaseorder.vue +++ b/pages/yuangongindex/purchaseorder.vue @@ -11,21 +11,21 @@ v-for="(item,index) in tabarray" :key="index" @click="changeTab(index)"> {{ item }} - + - + - {{ item.id }} + {{ item.cgdNo }} - 采购日期:{{ item.time }} + 采购日期:{{ item.qgDate }} @@ -36,7 +36,7 @@ - {{ item.price }} + {{ item.totalPrice }} @@ -50,14 +50,23 @@ - 机构名称:{{ item.address }} + 机构名称:{{ item.departName }} - {{ tagstype[item.type].name }} + :style="{borderColor:`${tagstype[item.status].color}`,color:`${tagstype[item.status].color}`}"> + {{ tagstype[item.status].name }} + + + + 暂无采购单 + + @@ -68,101 +77,139 @@ @@ -212,7 +259,7 @@ z-index: 100; .tab { - width: 25%; + width: 20%; display: flex; justify-content: center; align-items: center; @@ -343,5 +390,6 @@ .card-view-finally { height: 25rpx; + } \ No newline at end of file diff --git a/pages/yuangongindex/purchaseorderdetail.vue b/pages/yuangongindex/purchaseorderdetail.vue index 374485f..8cba04c 100644 --- a/pages/yuangongindex/purchaseorderdetail.vue +++ b/pages/yuangongindex/purchaseorderdetail.vue @@ -16,8 +16,9 @@ 采购单 - - 采购中 + + {{ tagstype[transobject?.status].name }} @@ -30,7 +31,7 @@ 采购单号: - 101C20251121006 + {{ transobject?.cgdNo }} @@ -39,7 +40,7 @@ 采购日期: - 2025-10-12 + {{ transobject?.qgDate}} @@ -51,7 +52,7 @@ - 25 + {{ transobject?.totalPrice}} @@ -78,7 +79,7 @@ 机构名称: - 吉林省久泰健康产业有限公司 + {{ transobject?.departName}} @@ -87,7 +88,8 @@ 收货地址: - 吉林省长春市朝阳区开运街41号吉 省长春市朝阳区开运街41号 + + {{ transobject?.comRegisterAddress}} @@ -99,7 +101,7 @@ - 张某 + {{ transobject?.qgBy}} @@ -111,7 +113,8 @@ - 13845337753 + + {{ transobject?.qgTel}} @@ -137,7 +140,7 @@ - 吉林天林商贸有限公司 + {{ transobject?.gysName}} @@ -149,7 +152,7 @@ - 吕婧文 + {{ transobject?.gysLxr}} @@ -161,16 +164,16 @@ - 13356856633 + {{ transobject?.gysLxrdh}} - + - 纸尿裤-拉拉裤纸尿裤 + {{ item.wlName }} @@ -178,7 +181,7 @@ 采购数量 - 168 + {{ item.purchaseQuantity }} @@ -189,7 +192,7 @@ 规格型号: - 800mm*680mm + {{ item.wlSpecificationModel }} @@ -197,7 +200,7 @@ 品牌型号: - 品牌型号名称 + {{ item.brandType }} @@ -205,7 +208,7 @@ 生产厂家: - 吉林省长春市朝阳区开运街41号吉 省长春市朝阳区开运街41号 + {{ item.manufacturer }} @@ -220,7 +223,7 @@ ¥ - 0.32 + {{ item.procurementPrice }} @@ -230,35 +233,35 @@ - 片 + {{ item.wlUnits }} 采购单位 - + - {{ djflagnumber }} + {{ item.arrivalPrice }} - 销售价格 - + - {{ relqita }} + {{ item.wlUnits }} - + 销售单位 @@ -272,7 +275,7 @@ - 350 + {{ item.rksl }} @@ -282,7 +285,7 @@ - 10 + {{ item.wrksl }} @@ -292,7 +295,7 @@ - 40 + {{ item.xzsl }} @@ -305,7 +308,7 @@ ¥ - 0.56 + {{ (item.purchaseQuantity * item.arrivalPrice).toFixed(2) }} @@ -322,7 +325,10 @@ 返回 - + + 确认 + + 确认 @@ -349,7 +355,7 @@ 取消 - 确定 + 确定 @@ -380,7 +386,7 @@ - + @@ -390,13 +396,41 @@