委外出库 新增关闭订单功能 && 细节调整

master
hou 3 years ago
parent 895e6524a5
commit 071f14e64f

@ -111,6 +111,7 @@ export default {
barcode_PleaseScan: '请扫描条码',
dn_CarNumber: '车牌号',
dn_Time: '预约时间',
Closed:'闭单',
dn_Detailed: 'DN单明细',
dn_Number: '数量',
dn_Confirm: '确认',

@ -71,6 +71,7 @@ export default {
po_ReturnGoods: 'DN return',
returned: 'Quantity to be returned',
returneds: 'Quantity to be returned',
Closed:'Closed',
quantity: 'Cumulative return quantity',
materials:'Please return all materials',
po_OddNumbers: 'PO No',

@ -141,7 +141,6 @@ export default class stoOutboundDom extends BasePage {
rules: VFormRules<any> = {
orderNo: [{ required: true, message: this.$t('message.product_Tip4') as string }],
};
// onReadyonLoad
async onReady() {
this.$form.setRules(this.rules);

@ -289,7 +289,7 @@ export default class dnReceiptDom extends BasePage {
view {
width: 110rpx;
height: 100%;
//line-height: 100rpx;
line-height: 100rpx;
}
}
.single-right {

@ -64,13 +64,16 @@
<!-- 底部按钮 -->
<view class="bottom-bar">
<u-row class="button-bar">
<u-col :span="4">
<u-col :span="3">
<u-button type="primary" @click="bill">{{ $t('message.CommissionedGoOutDetails') }}</u-button>
</u-col>
<u-col :span="4">
<u-col :span="3">
<u-button type="primary" @click="close">{{ $t('message.Closed') }}</u-button>
</u-col>
<u-col :span="3">
<u-button type="primary" @click="onSubmit">{{ $t('message.product_Upload') }}</u-button>
</u-col>
<u-col :span="4">
<u-col :span="3">
<u-button type="error" @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button>
</u-col>
</u-row>
@ -139,6 +142,13 @@ export default class dnReceiptDom extends BasePage {
this.materialList = [];
this.Location = [];
}
async close(){
if (this.form.documentNo == '') {
this.customToast(this.$t('message.Commission_tips1') as any);
return;
}
await this.model.closeCode(this.form.documentNo)
}
//
async query() {
this.list = [];
@ -329,7 +339,7 @@ export default class dnReceiptDom extends BasePage {
view {
width: 110rpx;
height: 100%;
//line-height: 100rpx;
line-height: 100rpx;
}
}
.single-right {

@ -135,6 +135,19 @@ export class ReturningModule extends VuexModule {
const materielList: any = [];
return { code, materielList };
}
//委外出库 关闭订单
@MutationAction
async closeCode(poNo: any) {
const res:any = await http.post(url.outbound.stoOutbound.close, {
poNo,
loginName: session.loginName,
factoryCode: session.factoryCode,
});
const code: any = res.code;
return { code };
}
//委外出库 初始化获取库位
@Action({ commit: 'updateCheckedOrderInInfoListKw' })
async queryByFactoryCodeAndWorkAreaCode(content: any) {

@ -124,6 +124,7 @@ export const url = {
findProdInfoByDN: '/wmspda/fg/findProdInfoByDN',
yuetaiType: '/wmspda/fg/queryDocksUnderWareHouse',
Bookkeeping: '/wmspda/fg/scanBarcodeDN',
close:'/wmspda/material/outsourcing/close',
// Bookkeeping: '/wmspda/fg/confirmMove',
checkScan: '/wmspda/fg/getMaterialByCode',
getMaterialByCode: '/wmspda/fg/getMaterialByCode',

Loading…
Cancel
Save