|
|
|
@ -1288,27 +1288,29 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
//来料oa校验
|
|
|
|
|
if (this.selectList.value == 'checkTypeLL') {
|
|
|
|
|
if (this.formdata.startOA == '1') {
|
|
|
|
|
if (this.formdata.materialType === null || this.formdata.materialType === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择来料类别',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.formdata.materialFrom === null || this.formdata.materialFrom === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择物料来源',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.formdata.storageFrom === null || this.formdata.storageFrom === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择仓储报检人',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
if (this.formdata.checkResult == 'N') {
|
|
|
|
|
if (this.formdata.startOA == '1') {
|
|
|
|
|
if (this.formdata.materialType === null || this.formdata.materialType === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择来料类别',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.formdata.materialFrom === null || this.formdata.materialFrom === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择物料来源',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.formdata.storageFrom === null || this.formdata.storageFrom === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择仓储报检人',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|