质量检验巡检检验修改不合格描述逻辑

master
lijing 7 months ago
parent 62ea34944d
commit beb6e9bf02

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version);
}
///******************
version = '0.0.145'; //
version = '0.0.146'; //
//version = '0.0.14'; //
//*************** false true ****************
//isTest = true;

@ -1283,9 +1283,9 @@ export default class PurchaseWHSRM extends BasePage {
});
this.detaillistceshi.forEach((item) => {
if (item.status == 'N') {
if (item.remark == null || item.remark == '') {
this.isremark = true;
}
// if (item.remark == null || item.remark == '') {
this.isremark = true;
// }
}
});
// this.detaillistceshi.forEach((item) => {
@ -1318,12 +1318,21 @@ export default class PurchaseWHSRM extends BasePage {
}
}
if (this.selectList.value != 'checkTypeLL') {
if (this.isremark) {
(this.$refs.uToast as any).show({
title: '不合格描述不能为空',
type: 'default',
});
return;
// if (this.isremark) {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'default',
// });
// return;
// }
if (this.formdata.checkResult == 'N') {
if (this.formdata.remark === null || this.formdata.remark === '') {
(this.$refs.uToast as any).show({
title: '不合格描述不能为空',
type: 'default',
});
return;
}
}
}
// if (this.isvalue2) {
@ -1693,7 +1702,7 @@ export default class PurchaseWHSRM extends BasePage {
// sqr: this.model.sqrlist[0].userId,
};
}
//console.log('9999ggggg',query);
// console.log('9999ggggg', this.detaillistceshi);
await this.model.commitCheckTaskList(query);
if (this.model.SubmitCode.code == '200') {
(this.$refs.uToast as any).show({

Loading…
Cancel
Save