This commit is contained in:
aihe 2024-06-15 23:32:09 +08:00
parent 422aa69500
commit a14d6135f4
3 changed files with 23 additions and 5 deletions

View File

@ -161,4 +161,8 @@ export const queryScanWaybillList = (data = {})=> {
export const uploadWaybillAttach = (data = {})=> {
return coreRequest(url.uploadWaybillAttach, data, {})
}
// 生成合包号
export const getPackNo = (data = {})=> {
return coreRequest(url.getPackNo, data, {})
}

View File

@ -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`, // 生成合包号
}

View File

@ -24,6 +24,11 @@
custom-style="font-size: 28rpx;padding:0 10rpx;height: 74rpx;" :plain="true" >系统生成</u-button>
</view>
</u-row>
<u-row custom-style="margin-top:20rpx;">
<tpx-input v-model:value="submitParam.scanWeight" placeholder="合包重量"></tpx-input>
</u-row>
<view class="mt-20">合包件数:{{resData.list.length}}</view>
<u-button @click="handleSubmit" custom-style="height:74rpx;font-size: 28rpx;margin-top: 30rpx;" type="primary">合包完成</u-button>
</view>
@ -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 = []
}
}
}