cosmoim-852 fix 不良下线,半成品判废修改

master
guoshuang 3 years ago
parent 4267341f6a
commit 5347f8353c

@ -528,5 +528,7 @@ export default {
Insufficient: '源容器不足', Insufficient: '源容器不足',
defect: '缺陷', defect: '缺陷',
Note: '备注', Note: '备注',
Pleasedefects: '请扫描缺陷',
PleaseResponsibleArea: '请扫描责任区域',
}, },
}; };

@ -528,5 +528,7 @@ export default {
Insufficient: 'Insufficient source container', Insufficient: 'Insufficient source container',
defect: 'defects', defect: 'defects',
Note: 'Note', Note: 'Note',
Pleasedefects: 'Please scan for defects',
PleaseResponsibleArea: 'Please scan the responsible area',
}, },
}; };

@ -528,5 +528,7 @@ export default {
Insufficient: 'недостаточная емкость источника', Insufficient: 'недостаточная емкость источника',
defect: 'Дефект', defect: 'Дефект',
Note: 'Примечание', Note: 'Примечание',
Pleasedefects: 'Ошибка сканирования',
PleaseResponsibleArea: 'область ответственности сканирования',
}, },
}; };

@ -163,7 +163,7 @@ export default class LoginPage extends BasePage {
console.log('......', server.serverAddress); console.log('......', server.serverAddress);
if (server.serverAddress.includes('https://eurmom.haier.net')) { if (server.serverAddress.includes('https://eurmom.haier.net')) {
// //
this.Version = '1.1.3'; this.Version = '1.1.5';
} else { } else {
this.Version = '1.0.37'; this.Version = '1.0.37';
} }

@ -33,7 +33,8 @@
</u-form-item> </u-form-item>
<!-- 缺陷 --> <!-- 缺陷 -->
<u-form-item :label="$t('message.defect')"> <u-form-item :label="$t('message.defect')">
<u-input v-model="Some.reason" placeholder="" /> <u-search placeholder="" v-model.trim="Some.reason" @search="queryreason" :show-action="false"></u-search>
<!-- <u-input v-model="Some.reason" placeholder="" /> -->
</u-form-item> </u-form-item>
<!-- 责任人 --> <!-- 责任人 -->
<u-form-item :label="$t('message.personLiable')"> <u-form-item :label="$t('message.personLiable')">
@ -41,7 +42,8 @@
</u-form-item> </u-form-item>
<!-- 责任区域 --> <!-- 责任区域 -->
<u-form-item :label="$t('message.ResponsibleProcess')"> <u-form-item :label="$t('message.ResponsibleProcess')">
<u-input v-model="Some.responsibleProcess" placeholder="" /> <!-- <u-input v-model="Some.responsibleProcess" placeholder="" /> -->
<u-search placeholder="" v-model.trim="Some.responsibleProcess" @search="queryProcess" :show-action="false"></u-search>
</u-form-item> </u-form-item>
<!-- 备注 --> <!-- 备注 -->
<u-form-item :label="$t('message.Note')"> <u-form-item :label="$t('message.Note')">
@ -96,6 +98,8 @@ export default class productCheckReceipt extends BasePage {
aimWl: {} as OptionType, aimWl: {} as OptionType,
}; };
dockCode: any = ''; dockCode: any = '';
reasonList: any = {};
ProcessList: any = {};
dockName: any = ''; dockName: any = '';
wl: any = {}; wl: any = {};
Some: any = {}; Some: any = {};
@ -124,24 +128,62 @@ export default class productCheckReceipt extends BasePage {
this.Some = this.model.resdata; this.Some = this.model.resdata;
} }
} }
async queryreason() {
if (this.Some.reason == '' || this.Some.reason.length == 0) {
this.customToast(this.$t('message.Pleasedefects') as string);
return;
}
await this.model.checkDicCode(this.Some.reason);
if (this.model.code == '0') {
uni.showToast({
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.reasonList = this.model.resdata;
}
}
async queryProcess() {
if (this.Some.responsibleProcess == '' || this.Some.responsibleProcess.length == 0) {
this.customToast(this.$t('message.PleaseResponsibleArea') as string);
return;
}
await this.model.checkDicCode(this.Some.responsibleProcess);
if (this.model.code == '0') {
uni.showToast({
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.ProcessList = this.model.resdata;
}
}
// //
async closure() { async closure() {
if (!this.form.order3) { if (!this.form.order3) {
this.customToast(this.$t('message.Commission_tips1') as string); this.customToast(this.$t('message.Commission_tips1') as string);
return; return;
} }
if (!this.Some.reason) { // if (!this.Some.reason) {
this.customToast(this.$t('message.PleaseTwo') as string); // this.customToast(this.$t('message.PleaseTwo') as string);
// return;
// }
if (this.Some.responsibleProcess == '' || this.Some.responsibleProcess.length == 0) {
this.customToast(this.$t('message.PleaseResponsibleArea') as string);
return;
}
if (this.Some.reason == '' || this.Some.reason.length == 0) {
this.customToast(this.$t('message.Pleasedefects') as string);
return; return;
} }
// if (!this.Some.responsibleUser) { // if (!this.Some.responsibleUser) {
// this.customToast(this.$t('message.PleaseOne') as string); // this.customToast(this.$t('message.PleaseOne') as string);
// return; // return;
// } // }
if (!this.Some.responsibleProcess) { // if (!this.Some.responsibleProcess) {
this.customToast(this.$t('message.PleaseThere') as string); // this.customToast(this.$t('message.PleaseThere') as string);
return; // return;
} // }
await this.model.scrapSfgOfflineConfirm({ await this.model.scrapSfgOfflineConfirm({
orderNo: this.Some.proMoveCode, orderNo: this.Some.proMoveCode,
productCode: this.Some.materialCode, productCode: this.Some.materialCode,
@ -150,8 +192,10 @@ export default class productCheckReceipt extends BasePage {
loginName: session.loginName, loginName: session.loginName,
barcode: this.form.order3, barcode: this.form.order3,
reason: this.Some.reason, reason: this.Some.reason,
reasonDesc: this.reasonList.dicName,
responsibleUser: this.Some.responsibleUser, responsibleUser: this.Some.responsibleUser,
responsibleProcess: this.Some.responsibleProcess, responsibleProcess: this.Some.responsibleProcess,
responsibleAreaName: this.ProcessList.dicName,
add2: this.Some.Note, add2: this.Some.Note,
}); });
if (this.model.code == '1') { if (this.model.code == '1') {

@ -96,6 +96,14 @@ export class wholeScrap extends VuexModule {
const code = res.code; const code = res.code;
return { code, resdata }; return { code, resdata };
} }
//扫描缺陷,责任区域
@MutationAction
async checkDicCode(params: any) {
const res: any = await http.post(url.warehouse.wholeTransfer.checkDicCode, { dicCode: params, factoryCode: session.factoryCode as string, loginName: session.loginName as string });
const resdata = res.data;
const code = res.code;
return { code, resdata };
}
//确认 //确认
@MutationAction @MutationAction
async scrapSfgOfflineConfirm(params: any) { async scrapSfgOfflineConfirm(params: any) {

@ -30,7 +30,8 @@
</u-form-item> </u-form-item>
<!-- 缺陷 --> <!-- 缺陷 -->
<u-form-item :required="true" :label="$t('message.defect')"> <u-form-item :required="true" :label="$t('message.defect')">
<u-input v-model="reason" :border="border" :placeholder="$t('message.po_PleaseInput')" /> <u-search placeholder="" v-model.trim="reason" @search="queryreason" :show-action="false"></u-search>
<!-- <u-input v-model="reason" :border="border" :placeholder="$t('message.po_PleaseInput')" /> -->
</u-form-item> </u-form-item>
<!-- 责任人 --> <!-- 责任人 -->
<u-form-item :label="$t('message.personLiable')"> <u-form-item :label="$t('message.personLiable')">
@ -38,7 +39,8 @@
</u-form-item> </u-form-item>
<!-- 责任区域 --> <!-- 责任区域 -->
<u-form-item :required="true" :label="$t('message.ResponsibleProcess')"> <u-form-item :required="true" :label="$t('message.ResponsibleProcess')">
<u-input v-model="responsibleProcess" :border="border" :placeholder="$t('message.po_PleaseInput')" /> <u-search placeholder="" v-model.trim="responsibleProcess" @search="queryProcess" :show-action="false"></u-search>
<!-- <u-input v-model="responsibleProcess" :border="border" :placeholder="$t('message.po_PleaseInput')" /> -->
</u-form-item> </u-form-item>
<!-- 备注 --> <!-- 备注 -->
<u-form-item :label="$t('message.Note')"> <u-form-item :label="$t('message.Note')">
@ -80,6 +82,8 @@ export default class KanDanHandOver extends BasePage {
responsibleUser = ''; responsibleUser = '';
responsibleProcess = ''; responsibleProcess = '';
every: any = {}; every: any = {};
reasonList: any = {};
ProcessList: any = {};
Note = ''; Note = '';
async query() { async query() {
if (this.barcode == '' || this.barcode.length == 0) { if (this.barcode == '' || this.barcode.length == 0) {
@ -96,6 +100,36 @@ export default class KanDanHandOver extends BasePage {
this.every = this.model.CodeDetail; this.every = this.model.CodeDetail;
} }
} }
async queryreason() {
if (this.reason == '' || this.reason.length == 0) {
this.customToast(this.$t('message.Pleasedefects') as string);
return;
}
await this.model.checkDicCode(this.reason);
if (this.model.code == '0') {
uni.showToast({
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.reasonList = this.model.resdata;
}
}
async queryProcess() {
if (this.responsibleProcess == '' || this.responsibleProcess.length == 0) {
this.customToast(this.$t('message.PleaseResponsibleArea') as string);
return;
}
await this.model.checkDicCode(this.responsibleProcess);
if (this.model.code == '0') {
uni.showToast({
title: this.$t('message.successful') as string,
duration: 2000,
image: '/static/icons/icon-51.png',
});
this.ProcessList = this.model.resdata;
}
}
costCenter = ''; costCenter = '';
async submit() { async submit() {
if (this.barcode == '' || this.barcode.length == 0) { if (this.barcode == '' || this.barcode.length == 0) {
@ -107,7 +141,7 @@ export default class KanDanHandOver extends BasePage {
return; return;
} }
if (this.reason == '') { if (this.reason == '') {
this.customToast(this.$t('message.PleaseFour') as string); this.customToast(this.$t('message.Pleasedefects') as string);
return; return;
} }
// if (this.responsibleUser == '') { // if (this.responsibleUser == '') {
@ -115,7 +149,7 @@ export default class KanDanHandOver extends BasePage {
// return; // return;
// } // }
if (this.responsibleProcess == '') { if (this.responsibleProcess == '') {
this.customToast(this.$t('message.PleaseThere') as string); this.customToast(this.$t('message.PleaseResponsibleArea') as string);
return; return;
} }
// if (this.every.qty != 0) { // if (this.every.qty != 0) {
@ -131,8 +165,10 @@ export default class KanDanHandOver extends BasePage {
productDesc: this.every.productDescZh, productDesc: this.every.productDescZh,
locCode: this.every.locCode, locCode: this.every.locCode,
reason: this.reason, reason: this.reason,
reasonDesc: this.reasonList.dicName,
responsibleUser: this.responsibleUser, responsibleUser: this.responsibleUser,
responsibleProcess: this.responsibleProcess, responsibleProcess: this.responsibleProcess,
responsibleAreaName: this.ProcessList.dicName,
add2: this.Note, add2: this.Note,
}; };
await this.model.submit(params); await this.model.submit(params);

@ -1,7 +1,7 @@
/* /*
* @Author: zhou lei * @Author: zhou lei
* @Date: 2022-09-29 13:45:51 * @Date: 2022-09-29 13:45:51
* @LastEditTime: 2022-10-27 17:33:47 * @LastEditTime: 2022-11-08 13:42:51
* @LastEditors: zhou lei * @LastEditors: zhou lei
* @Description: * @Description:
* @FilePath: \hgwms-factory-app\src\pages\raw\LineSide\semifinished-wasteJudgment\model.ts * @FilePath: \hgwms-factory-app\src\pages\raw\LineSide\semifinished-wasteJudgment\model.ts
@ -22,6 +22,8 @@ export class semifinishedWasteJudgment extends VuexModule {
//目标容器查询 //目标容器查询
SearchCode: any = ''; SearchCode: any = '';
CodeDetail: any = ''; CodeDetail: any = '';
code: any = '';
resdata: any = {};
@MutationAction @MutationAction
async searchBarcode(barcode: any) { async searchBarcode(barcode: any) {
const res: any = await http.post(url.warehouse.container.getSfgStorageSnPreScrap, { const res: any = await http.post(url.warehouse.container.getSfgStorageSnPreScrap, {
@ -36,6 +38,14 @@ export class semifinishedWasteJudgment extends VuexModule {
// } // }
return { SearchCode, CodeDetail }; return { SearchCode, CodeDetail };
} }
//扫描缺陷,责任区域
@MutationAction
async checkDicCode(params: any) {
const res: any = await http.post(url.warehouse.wholeTransfer.checkDicCode, { dicCode: params, factoryCode: session.factoryCode as string, loginName: session.loginName as string });
const resdata = res.data;
const code = res.code;
return { code, resdata };
}
//提交数据 //提交数据
submitCode: any = ''; submitCode: any = '';
@MutationAction @MutationAction

@ -298,6 +298,7 @@ export const url = {
querySpareListInfoByDnNo: '/wmspda/fg/querySpareListInfoByDnNo', querySpareListInfoByDnNo: '/wmspda/fg/querySpareListInfoByDnNo',
getInfoByDoorBarcode: '/wmspda/fg/getInfoByDoorBarcode', getInfoByDoorBarcode: '/wmspda/fg/getInfoByDoorBarcode',
scrapSfgOfflineConfirm: '/wmspda/fg/scrapSfgOfflineConfirm', scrapSfgOfflineConfirm: '/wmspda/fg/scrapSfgOfflineConfirm',
checkDicCode: '/wmspda/fg/checkDicCode',
}, },
wholeLnventory: { wholeLnventory: {
content: '/wmspda/fg/findMaterialByPddNo', content: '/wmspda/fg/findMaterialByPddNo',

Loading…
Cancel
Save