From c860cbba364ec623f3f02a37688a9c4c820f33ed Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Sun, 1 Sep 2024 20:02:28 +0800 Subject: [PATCH] uu --- common/api/order.js | 12 ++-- common/api/url.js | 2 +- pages/deliveryDeal/storage.vue | 2 +- pages/warehousing/detail.vue | 107 +++++++++++++++------------------ 4 files changed, 57 insertions(+), 66 deletions(-) diff --git a/common/api/order.js b/common/api/order.js index dfbce6e..9c5f24c 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -208,12 +208,12 @@ export const getWarehouseInList = (data = {})=> { return coreRequest(url.getWarehouseInList, data, {}, "GET") } -// 进仓单登记-列表 -export const getWarehouseBatchInList = (data = {})=> { - return coreRequest(url.getWarehouseBatchInList, data, {}, "GET") -} - // 进仓单PDF下载连接 export const exportWarehouseInTpl = (data = {})=> { return coreRequest(url.exportWarehouseInTpl, data, {}) -} \ No newline at end of file +} + +// 确认进仓单 +export const cusConfirmWsIn = (data = {})=> { + return coreRequest(url.cusConfirmWsIn, data, {}) +} diff --git a/common/api/url.js b/common/api/url.js index a019235..362b3af 100644 --- a/common/api/url.js +++ b/common/api/url.js @@ -64,7 +64,7 @@ export default { getWarehouseInInfo: `/emis/emisWarehouseIn/getWarehouseInInfo`, // 获取进仓单详情 registerWarehouseInInfo: `/emis/emisWarehouseInBatch/registerWarehouseInInfo`, // 收货入仓登记 getWarehouseInList: `/emis/emisWarehouseIn/listSimple`, // 进仓单列表 - getWarehouseBatchInList: `/emis/emisWarehouseIn/getWarehouseBatchInList`, // 进仓单登记-列表 exportWarehouseInTpl: `/emis/emisWarehouseIn/exportWarehouseInTpl`, // 进仓单PDF下载连接 + cusConfirmWsIn: `/emis/emisWarehouseIn/cusConfirmWsIn`, // 确认进仓单 } diff --git a/pages/deliveryDeal/storage.vue b/pages/deliveryDeal/storage.vue index d310587..af0ca42 100644 --- a/pages/deliveryDeal/storage.vue +++ b/pages/deliveryDeal/storage.vue @@ -157,7 +157,7 @@ let params = JSON.parse(JSON.stringify(this.submitParam)); params.picUrl = params?.picUrl?.join?.(",") params._loading = true - await apiService.registerWarehouseInInfo({params, _loading: true}) + await apiService.registerWarehouseInInfo({...params, _loading: true}) this.showToast('操作成功') this.resetForm() }, diff --git a/pages/warehousing/detail.vue b/pages/warehousing/detail.vue index 321f600..0fa92a3 100644 --- a/pages/warehousing/detail.vue +++ b/pages/warehousing/detail.vue @@ -18,7 +18,7 @@ - + {{postInfo.intoWarehouseName}}联系信息 @@ -50,7 +50,7 @@ 总重量: - {{billInfo.billWeight}} kg + {{billInfo. totalWeight }} kg 总体积: @@ -58,40 +58,14 @@ 总件数: - {{billInfo.parcelQty}} + {{billInfo.totalParcelQty}} - - - - 女士针织棉上衣 - 预报: 300 - - - 无 12L 中国内地 - 实入仓: 0 - - - 12 CNY - - - - - - + - 进仓单号:TAN-102032138002 + 进仓单号:{{item.inNo}} @@ -101,11 +75,11 @@ 进仓时间: - 2023-77-20 09:25 + {{item.entryDate}} 操作员: - 王小明 + {{item.createByName}} @@ -124,64 +98,62 @@ 重量: - 30 kg + {{item.totalWeight}} kg 体积: - 30m + {{item.totalVolume}}m³ 件数: - 10 + {{item.totalParcelQty}} - + 包装类型: - 纸箱 - + + 供应商: - 南京制衣有限公司 + {{item.prepareInSupplier}} 同行快: - 顺丰 + {{item.prepareInExpress}} 快递单号: - SF01023293239 + {{item.prepareInBillCode}} - + 代垫运费: - ¥30 + ¥{{item.prepareInEstFee}} 发货备注: - 需要检查下产品规格型号是否一致,请拍照 + {{item.prepareInRemark}} 仓库收货备注: - 发现有异常,见拍照图片 + {{item.remark}} - - @@ -192,7 +164,7 @@ 反馈异常 - 进仓确认 @@ -206,7 +178,7 @@ 下载PDF - 已确认可发货 @@ -238,6 +210,9 @@ // } }, computed: { + dicData() { + return this.$store.getters.dicData + }, }, data() { return { @@ -276,29 +251,45 @@ this.showToast("进仓单号数据不存在") } let data = res.data || {} + data?.stockInBatchList?.map?.(t=> { + t.picUrl && (t.picUrl = t.picUrl.split(",")) + }) this.billInfo = data if(data.billCode) { let ores = await apiService.getOrderDetail({ billCode: data.billCode }) this.postInfo = ores.data - let baListRes = await apiService.getWarehouseBatchInList({...params}) - debugger } this.pageLoading = false }, handleDialogClick(curModal){ curModal.show = !curModal.show }, - handlePreviewDiDan() { + handleCopyWareHouse(){ + let { intoWarehouseName, intoWarehouseContact,intoWarehousePhone, intoWarehouseAddress } = this.postInfo + let text = `仓库名称:${intoWarehouseName}\n仓库联系人:${intoWarehouseContact}\n仓库联系人电话:${intoWarehousePhone}\n仓库地址:${intoWarehouseAddress}` + this.setClipboardData(text) + }, + handlePreviewImgs(list = [], index) { uni.previewImage({ - urls: [ - this.getCdnUrl(`mine/kjcha.png`) - ] + current: index, + urls: list }) }, async handleDownloadPdf(){ let res = await apiService.exportWarehouseInTpl({ orderSn: this.postInfo.orderSn }) debugger }, + async confirmJinCang(inNo) { + // "confirmStatus": "1-确认 2-部分确认" + let confirmStatus = '2' + if(!inNo) { + confirmStatus = '1' + inNo = this.billInfo.inNo + } + let res = await apiService.cusConfirmWsIn({ inNo, _loading: true }) + debugger + this.initData() + }, } }