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

master
lijing 7 months ago
parent 62ea34944d
commit beb6e9bf02

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

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

Loading…
Cancel
Save