|
|
|
@ -120,7 +120,7 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
productDescZh: '',
|
|
|
|
|
scanAmount: 0,
|
|
|
|
|
rowItem: '',
|
|
|
|
|
row:'',
|
|
|
|
|
row: '',
|
|
|
|
|
barCode: '',
|
|
|
|
|
};
|
|
|
|
|
materialList: any = []; //物料列表
|
|
|
|
@ -185,11 +185,13 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.findProdInfoByDN(this.form.orderNo);
|
|
|
|
|
console.log('model.DNcode',this.model.DNcode)
|
|
|
|
|
console.log('model.DNcode', this.model.DNcode);
|
|
|
|
|
if (this.model.DNcode == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'success',
|
|
|
|
|
//icon: 'success',
|
|
|
|
|
title: this.$t('message.successful') as any,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.form.productCode = this.model.materielList[0].materialCode;
|
|
|
|
|
this.form.productDescZh = this.model.materielList[0].materialDesc;
|
|
|
|
@ -233,36 +235,40 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
//过账
|
|
|
|
|
async Posting() {
|
|
|
|
|
if(!this.form.orderNo){
|
|
|
|
|
if (!this.form.orderNo) {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as string);
|
|
|
|
|
return
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let params = {
|
|
|
|
|
nxOutCode:this.form.orderNo,
|
|
|
|
|
rowItem:this.form.row,
|
|
|
|
|
materialCode:this.form.rowItem,
|
|
|
|
|
loginName:session.loginName,
|
|
|
|
|
factoryCode:session.factoryCode,
|
|
|
|
|
}
|
|
|
|
|
await this.model.Posting(params)
|
|
|
|
|
if(this.model.PostingCode == '1'){
|
|
|
|
|
uni.showToast({ title: this.$t('message.Warehouse_Tip9') as any });
|
|
|
|
|
this.empty()
|
|
|
|
|
nxOutCode: this.form.orderNo,
|
|
|
|
|
rowItem: this.form.row,
|
|
|
|
|
materialCode: this.form.rowItem,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.Posting(params);
|
|
|
|
|
if (this.model.PostingCode == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.Warehouse_Tip9') as any,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.empty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
empty(){
|
|
|
|
|
this.form.dockCode = null
|
|
|
|
|
this.form.dockName = null
|
|
|
|
|
this.form.orderNo = null
|
|
|
|
|
this.form.qty = 0
|
|
|
|
|
this.form.orderAmount = ''
|
|
|
|
|
this.form.productCode = ''
|
|
|
|
|
this.form.productDescZh = ''
|
|
|
|
|
this.form.scanAmount = 0
|
|
|
|
|
this.form.rowItem = ''
|
|
|
|
|
this.form.row = ''
|
|
|
|
|
this.form.barCode = ''
|
|
|
|
|
this.model.empty()
|
|
|
|
|
empty() {
|
|
|
|
|
this.form.dockCode = null;
|
|
|
|
|
this.form.dockName = null;
|
|
|
|
|
this.form.orderNo = null;
|
|
|
|
|
this.form.qty = 0;
|
|
|
|
|
this.form.orderAmount = '';
|
|
|
|
|
this.form.productCode = '';
|
|
|
|
|
this.form.productDescZh = '';
|
|
|
|
|
this.form.scanAmount = 0;
|
|
|
|
|
this.form.rowItem = '';
|
|
|
|
|
this.form.row = '';
|
|
|
|
|
this.form.barCode = '';
|
|
|
|
|
this.model.empty();
|
|
|
|
|
}
|
|
|
|
|
onOk() {
|
|
|
|
|
this.$form.validate(async (valid: boolean) => {
|
|
|
|
@ -271,9 +277,9 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
this.customToast(this.$t('message.product_Tip6') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(this.form.barCode == ''){
|
|
|
|
|
if (this.form.barCode == '') {
|
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
|
return
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
const selctlist = {
|
|
|
|
|
barcode: this.form.barCode,
|
|
|
|
@ -286,50 +292,55 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
orderType: 4,
|
|
|
|
|
productCode: this.form.productCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.confirmMove(selctlist).then(async () =>{
|
|
|
|
|
await this.model.confirmMove(selctlist).then(async () => {
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
this.materialList = [];
|
|
|
|
|
uni.showToast({ icon: 'success', title: 'success' });
|
|
|
|
|
this.form.barCode = '';
|
|
|
|
|
this.form.productCode = '';
|
|
|
|
|
model.orderInInfo.stoAmount = 0;
|
|
|
|
|
this.form.scanAmount = 0;
|
|
|
|
|
this.form.orderAmount = '';
|
|
|
|
|
this.form.productDescZh = '';
|
|
|
|
|
this.selectMaterielList = [];
|
|
|
|
|
this.form.rowItem = '';
|
|
|
|
|
this.query();
|
|
|
|
|
this.materialList = [];
|
|
|
|
|
uni.showToast({
|
|
|
|
|
//icon: 'success',
|
|
|
|
|
title: 'success',
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
this.form.barCode = '';
|
|
|
|
|
this.form.productCode = '';
|
|
|
|
|
model.orderInInfo.stoAmount = 0;
|
|
|
|
|
this.form.scanAmount = 0;
|
|
|
|
|
this.form.orderAmount = '';
|
|
|
|
|
this.form.productDescZh = '';
|
|
|
|
|
this.selectMaterielList = [];
|
|
|
|
|
this.form.rowItem = '';
|
|
|
|
|
this.query();
|
|
|
|
|
}
|
|
|
|
|
if(this.model.code == '2'){
|
|
|
|
|
if (this.model.code == '2') {
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content:this.$t('message.sweep') as any,
|
|
|
|
|
cancelText:this.$t('message.Cancel') as any,
|
|
|
|
|
confirmText:this.$t('message.workArea_Confirm') as any,
|
|
|
|
|
success:async (res) =>{
|
|
|
|
|
if(res.confirm){
|
|
|
|
|
let params = {
|
|
|
|
|
barcode: this.form.barCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
keepBy: session.loginName,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
order3: this.form.orderNo,
|
|
|
|
|
}
|
|
|
|
|
await this.model.delCode(params)
|
|
|
|
|
this.form.barCode = '';
|
|
|
|
|
this.form.productCode = '';
|
|
|
|
|
model.orderInInfo.stoAmount = 0;
|
|
|
|
|
this.form.scanAmount = 0;
|
|
|
|
|
this.form.orderAmount = '';
|
|
|
|
|
this.form.productDescZh = '';
|
|
|
|
|
this.selectMaterielList = [];
|
|
|
|
|
this.form.rowItem = '';
|
|
|
|
|
this.query();
|
|
|
|
|
} else if(res.cancel){
|
|
|
|
|
content: this.$t('message.sweep') as any,
|
|
|
|
|
cancelText: this.$t('message.Cancel') as any,
|
|
|
|
|
confirmText: this.$t('message.workArea_Confirm') as any,
|
|
|
|
|
success: async (res) => {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
let params = {
|
|
|
|
|
barcode: this.form.barCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
keepBy: session.loginName,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
order3: this.form.orderNo,
|
|
|
|
|
};
|
|
|
|
|
await this.model.delCode(params);
|
|
|
|
|
this.form.barCode = '';
|
|
|
|
|
this.form.productCode = '';
|
|
|
|
|
model.orderInInfo.stoAmount = 0;
|
|
|
|
|
this.form.scanAmount = 0;
|
|
|
|
|
this.form.orderAmount = '';
|
|
|
|
|
this.form.productDescZh = '';
|
|
|
|
|
this.selectMaterielList = [];
|
|
|
|
|
this.form.rowItem = '';
|
|
|
|
|
this.query();
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
this.form.barCode = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -410,7 +421,7 @@ export default class stoOutboundDom extends BasePage {
|
|
|
|
|
-webkit-text-fill-color: #666; //字体颜色安卓与IOS适配
|
|
|
|
|
-webkit-opacity: 1; //不透明级别安卓与IOS适配
|
|
|
|
|
}
|
|
|
|
|
.disabled{
|
|
|
|
|
.disabled {
|
|
|
|
|
background-color: rgb(228, 143, 143); //修改默认灰色样式
|
|
|
|
|
color: #666;
|
|
|
|
|
opacity: 1; //默认的不透明级别为0.3
|
|
|
|
|