报废,领用关单处理

master
guoshuang 3 years ago
parent 3513666d15
commit 603d1115b5

@ -258,6 +258,7 @@ export default {
InventoryPleaseScan: '请扫描单号',
InventoryNumber: '盘点单号',
InventoryFinish: '完成',
closure: '关闭',
// 委外-入库
CommissionEntrant: '委外入库',
@ -290,6 +291,8 @@ export default {
Commission_tips5: '请确保所选物料已分配库位',
Commission_tips6: '请先选择一个物料',
Commission_tips7: '请选择正确的库位',
Commission_tips8: '请确认是否关闭',
Commission_tips9: '数量已达上线,请勿扫描',
endtime: '请选择结束时间',
end: '结束时间',
starttime: '请选择开始时间',

@ -248,6 +248,7 @@ export default {
ModelScanned: 'Model scanned',
selectCode: 'Please select code first',
DocumentNumber: 'Document number',
closure: 'Close',
// 委外-入库
CommissionEntrant: 'Subcontracting receipt',
@ -287,6 +288,8 @@ export default {
Commission_tips5: 'Please ensure that the selected material has been assigned a location',
Commission_tips6: 'Please select a material first',
Commission_tips7: 'Please select the correct location',
Commission_tips8: 'Please confirm whether to close',
Commission_tips9: 'The quantity has reached the online level, please do not scan',
endtime: 'Please select an end time',
end: 'End time',
starttime: 'Please select an start time',

@ -49,13 +49,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({ delta: 1 })">{{ $t('message.po_Return') }}</u-button>
</u-col>
</u-row>
@ -138,6 +141,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,
@ -178,7 +185,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 = '';
}
}
//
async bill() {

@ -168,6 +168,21 @@ export class wholeCollect extends VuexModule {
const materielList = data;
return { materielList, code };
}
/**
*
* DN
* @param dnNo
*/
@MutationAction
async close(proMoveCode: any) {
const { code } = await http.post(url.warehouse.rowTransfer.close, {
factoryCode: session.factoryCode as string,
loginName: session.loginName as string,
proMoveCode,
});
//const materielList = data;
return { code };
}
}
export default getModule(wholeCollect);

@ -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();
}
}
// onReadyonLoad
@ -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;

@ -117,6 +117,21 @@ export class wholeScrap extends VuexModule {
const materielList = data;
return { materielList, code };
}
/**
*
* DN
* @param dnNo
*/
@MutationAction
async close(proMoveCode: any) {
const { code } = await http.post(url.warehouse.rowTransfer.close, {
factoryCode: session.factoryCode as string,
loginName: session.loginName as string,
proMoveCode,
});
//const materielList = data;
return { code };
}
@MutationAction
async queryScrapList(param: any) {

@ -198,6 +198,7 @@ export const url = {
getCode: '/wmspda/fg/getCpMoveBatchNo',
//查询明细
queryListByMoveCode: '/wmspda/fg/queryListByMoveCode',
close: '/wmspda/fg/closeHandOrder',
},
rowScrap: {
list: '/wmspda/fg/listByOrder',

Loading…
Cancel
Save