|
|
|
@ -58,13 +58,16 @@
|
|
|
|
|
</u-form>
|
|
|
|
|
<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.detailed') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="4">
|
|
|
|
|
<u-col :span="3">
|
|
|
|
|
<u-button type="primary" @click="onSubmit">{{ $t('message.InventoryFinish') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="4">
|
|
|
|
|
<u-col :span="3">
|
|
|
|
|
<u-button type="primary" @click="closure">{{ $t('message.closure') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="3">
|
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
</u-row>
|
|
|
|
@ -121,6 +124,10 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.Some.actualQty > this.Some.qty) {
|
|
|
|
|
this.customToast(this.$t('message.barcode') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let params = {
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
@ -130,9 +137,13 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
};
|
|
|
|
|
await this.model.getProductCode(params);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
this.customToast(this.$t('message.product_Tip8') as string);
|
|
|
|
|
//this.customToast(this.$t('message.product_Tip8') as string);
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'success',
|
|
|
|
|
title: this.$t('message.product_Tip8') as string,
|
|
|
|
|
});
|
|
|
|
|
// this.Some.actualQty += 1;
|
|
|
|
|
this.onSubmit()
|
|
|
|
|
this.onSubmit();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 必须要在onReady生命周期,因为onLoad生命周期组件可能尚未创建完毕
|
|
|
|
@ -200,7 +211,53 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
this.wl = {};
|
|
|
|
|
// this.form.order3 = '';
|
|
|
|
|
this.form.barcode = '';
|
|
|
|
|
this.query()
|
|
|
|
|
this.query();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//关闭
|
|
|
|
|
async closure() {
|
|
|
|
|
if (!this.form.order3) {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as string);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.Some.actualQty == this.Some.qty) {
|
|
|
|
|
//this.customToast(this.$t('message.Commission_tips8') as string);
|
|
|
|
|
uni.showModal({
|
|
|
|
|
content: this.$t('message.Commission_tips8') as string,
|
|
|
|
|
confirmText: this.$t('message.workArea_Confirm') as string,
|
|
|
|
|
cancelText: this.$t('message.Cancel') as string,
|
|
|
|
|
success: function (res) {
|
|
|
|
|
if (res.confirm) {
|
|
|
|
|
this.model.close(this.form.order3);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'success',
|
|
|
|
|
title: this.$t('message.success') as string,
|
|
|
|
|
});
|
|
|
|
|
this.Some = {};
|
|
|
|
|
this.Some.fileNo = ' ';
|
|
|
|
|
this.wl = {};
|
|
|
|
|
this.form.order3 = '';
|
|
|
|
|
this.form.barcode = '';
|
|
|
|
|
}
|
|
|
|
|
} else if (res.cancel) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.close(this.form.order3);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'success',
|
|
|
|
|
title: this.$t('message.success') as string,
|
|
|
|
|
});
|
|
|
|
|
this.Some = {};
|
|
|
|
|
this.Some.fileNo = ' ';
|
|
|
|
|
this.wl = {};
|
|
|
|
|
this.form.order3 = '';
|
|
|
|
|
this.form.barcode = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//查询明细
|
|
|
|
@ -221,7 +278,7 @@ export default class productCheckReceipt extends BasePage {
|
|
|
|
|
background-size: 100% 600rpx;
|
|
|
|
|
padding: 118rpx 30rpx 162rpx;
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
.top{
|
|
|
|
|
.top {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 20px;
|
|
|
|
|
position: fixed;
|
|
|
|
|