guoshuang 3 years ago
commit 2dc328837f

@ -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: 'Return Quantity',
returneds: 'Return Quantity',
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) {

@ -120,7 +120,7 @@ export default class returningDom extends BasePage {
materialCode: null, // code
wlName: '', // name
wlCode: '',
totalBackAmount:'1',
totalBackAmount: '0',
};
prdOrder: any = [];
wlCode: any = '';
@ -167,7 +167,7 @@ export default class returningDom extends BasePage {
this.form.prdOrder = this.data.label;
this.form.wlName = this.data.value;
this.form.sendSpot = this.data.sendSpot;
this.form.amount = this.data.amount;
// this.form.amount = this.data.amount;
}
if (this.form.prdOrder != null) {
@ -204,9 +204,9 @@ export default class returningDom extends BasePage {
this.form.wlName = v[0].label;
this.model.materielList.forEach((item: any) => {
if (this.form.materialCode == item.label) {
this.form.amount = item.amount;
// this.form.amount = item.amount;
this.form.sendSpot = item.sendSpot;
this.form.totalBackAmount = item.totalBackAmount
this.form.totalBackAmount = item.totalBackAmount;
// this.form.wkposCode = item.wkposCode;
}
});

@ -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