修改首检合格不合格问题

master
李靖 10 months ago
parent d1b52dd8e9
commit a6e24abfbf

@ -1286,7 +1286,7 @@ export default class PurchaseWHSRM extends BasePage {
// }
}
}
//oa
//oa oa oa
if (this.selectList.value == 'checkTypeLL') {
if (this.formdata.checkResult == 'N') {
if (this.formdata.startOA == '1') {
@ -1314,64 +1314,66 @@ export default class PurchaseWHSRM extends BasePage {
}
}
}
//oa
//oa oa oa
if (this.selectList.value == 'checkTypeSC' || this.selectList.value == 'checkTypeSCXJ' || this.selectList.value == 'checkTypeCP' || this.selectList.value == 'checkTypeCC') {
if (this.formdata.startOA == '1') {
if (this.formdata.checkLoc === null || this.formdata.checkLoc === '') {
(this.$refs.uToast as any).show({
title: '请输入发现地点',
type: 'default',
});
return;
}
if (this.formdata.oaFactoryF === null || this.formdata.oaFactoryF === '') {
(this.$refs.uToast as any).show({
title: '请选择异常范围',
type: 'default',
});
return;
}
if (this.formdata.sfgyswt === null || this.formdata.sfgyswt === '') {
(this.$refs.uToast as any).show({
title: '请选择是否供应商问题',
type: 'default',
});
return;
}
if (this.formdata.sfxvzq === null || this.formdata.sfxvzq === '') {
(this.$refs.uToast as any).show({
title: '请选择是否需要主管审核',
type: 'default',
});
return;
}
if (this.formdata.sqbm === null || this.formdata.sqbm === '') {
(this.$refs.uToast as any).show({
title: '请选择申请部门',
type: 'default',
});
return;
}
if (this.formdata.sccj === null || this.formdata.sccj === '') {
(this.$refs.uToast as any).show({
title: '请选择所属车间',
type: 'default',
});
return;
}
if (this.selectischeckType.value == '0' && !this.formdata.pgzg) {
(this.$refs.uToast as any).show({
title: '请选择QC主管',
type: 'default',
});
return;
}
if (this.formdata.pgzr == null || this.formdata.pgzr == '') {
(this.$refs.uToast as any).show({
title: '请选择质量主管',
type: 'default',
});
return;
if (this.formdata.checkResult == 'N') {
if (this.formdata.startOA == '1') {
if (this.formdata.checkLoc === null || this.formdata.checkLoc === '') {
(this.$refs.uToast as any).show({
title: '请输入发现地点',
type: 'default',
});
return;
}
if (this.formdata.oaFactoryF === null || this.formdata.oaFactoryF === '') {
(this.$refs.uToast as any).show({
title: '请选择异常范围',
type: 'default',
});
return;
}
if (this.formdata.sfgyswt === null || this.formdata.sfgyswt === '') {
(this.$refs.uToast as any).show({
title: '请选择是否供应商问题',
type: 'default',
});
return;
}
if (this.formdata.sfxvzq === null || this.formdata.sfxvzq === '') {
(this.$refs.uToast as any).show({
title: '请选择是否需要主管审核',
type: 'default',
});
return;
}
if (this.formdata.sqbm === null || this.formdata.sqbm === '') {
(this.$refs.uToast as any).show({
title: '请选择申请部门',
type: 'default',
});
return;
}
if (this.formdata.sccj === null || this.formdata.sccj === '') {
(this.$refs.uToast as any).show({
title: '请选择所属车间',
type: 'default',
});
return;
}
if (this.selectischeckType.value == '0' && !this.formdata.pgzg) {
(this.$refs.uToast as any).show({
title: '请选择QC主管',
type: 'default',
});
return;
}
if (this.formdata.pgzr == null || this.formdata.pgzr == '') {
(this.$refs.uToast as any).show({
title: '请选择质量主管',
type: 'default',
});
return;
}
}
}
}

Loading…
Cancel
Save