From a14d6135f4c0d4a41da3f2dd1e3dde2e7fc14f7e Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Sat, 15 Jun 2024 23:32:09 +0800 Subject: [PATCH] uu --- common/api/order.js | 6 +++++- common/api/url.js | 2 +- pages/tms/coPackingScanning.vue | 20 +++++++++++++++++--- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/common/api/order.js b/common/api/order.js index 6c48a31..57682f3 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -161,4 +161,8 @@ export const queryScanWaybillList = (data = {})=> { export const uploadWaybillAttach = (data = {})=> { return coreRequest(url.uploadWaybillAttach, data, {}) } - \ No newline at end of file + +// 生成合包号 +export const getPackNo = (data = {})=> { + return coreRequest(url.getPackNo, data, {}) +} \ No newline at end of file diff --git a/common/api/url.js b/common/api/url.js index 90d45ba..4998bdf 100644 --- a/common/api/url.js +++ b/common/api/url.js @@ -52,6 +52,6 @@ export default { registerProblemInfo: `/emis/emisWaybillProblemInfo/registerProblemInfo`, // 问题件登记 queryScanWaybillList: `/emis/emisWaybill/queryScanWaybillList`, // 1-发件清单 2-到件清单 3-派件清单 uploadWaybillAttach: `/emis/emisWaybillAttachment/uploadWaybillAttach`, // 运单附件上传 - + getPackNo: `/emis/common/getPackNo`, // 生成合包号 } diff --git a/pages/tms/coPackingScanning.vue b/pages/tms/coPackingScanning.vue index 0220809..cb0df88 100644 --- a/pages/tms/coPackingScanning.vue +++ b/pages/tms/coPackingScanning.vue @@ -24,6 +24,11 @@ custom-style="font-size: 28rpx;padding:0 10rpx;height: 74rpx;" :plain="true" >系统生成 + + + + + 合包件数:{{resData.list.length}} 合包完成 @@ -83,10 +88,13 @@ submitParam: { billCode: '', preOrNextStationCode: '', + bagNo: '', + scanWeight: '' }, submitValidConfig: { preOrNextStationCode: { required: true, requiredMsg: '请选择下一网点' }, bagNo: { required: true, requiredMsg: '请选择合包号' }, + scanWeight: { required: true, requiredMsg: '合包重量不能为空' }, billCode: { required: true, requiredMsg: '运单号不能为空' }, }, } @@ -109,7 +117,8 @@ this.submitParam.billCode = this.queryOption.billCode }, async handleCreatePaNo() { - + let res = await apiService.getPackNo() + this.submitParam.bagNo = res.data }, async handleSubmit() { let extParam = {} @@ -131,8 +140,13 @@ } }), resetForm() { - this.submitParam.billCode = '' - this.submitParam.preOrNextStationCode = '' + this.submitParam = { + billCode: '', + preOrNextStationCode: '', + bagNo: '', + scanWeight: '' + } + this.resData.list = [] } } }