|
|
|
@ -174,6 +174,11 @@
|
|
|
|
|
bNoOkquality:B类不良(只过程有)
|
|
|
|
|
cNoOkquality:C类不良(只过程有) -->
|
|
|
|
|
<u-form class="Belowsform3" ref="form" label-width="230rpx" label-position="left">
|
|
|
|
|
<div class="" v-show="selectList.value == 'checkTypeSC'">
|
|
|
|
|
<u-form-item label="首检原因:">
|
|
|
|
|
<u-input v-model="formdata.reason" placeholder="" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
<u-form-item label="抽样数量:">
|
|
|
|
|
<u-input v-model="formdata.sampleQuality" placeholder="" type="number" />
|
|
|
|
|
</u-form-item>
|
|
|
|
@ -294,6 +299,11 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
name: '不合格',
|
|
|
|
|
radiovalue: null,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'O',
|
|
|
|
|
name: '不检验',
|
|
|
|
|
radiovalue: null,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
listselectoa: any = [
|
|
|
|
|
{
|
|
|
|
@ -354,6 +364,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
materialFrom: null,
|
|
|
|
|
remark: null,
|
|
|
|
|
startOA: null,
|
|
|
|
|
reason: null,
|
|
|
|
|
};
|
|
|
|
|
isvalue = false;
|
|
|
|
|
isvalue2 = false;
|
|
|
|
@ -713,14 +724,26 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (this.selectList.value == 'checkTypeSC') {
|
|
|
|
|
// console.log(this.detaillistceshi, this.isvalue, this.isquality);
|
|
|
|
|
// if (this.isvalue) {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '检查标准不能为空',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
if (this.isvalue) {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '实际测量值不能为空',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.selectList.value == 'checkTypeSC') {
|
|
|
|
|
// console.log(this.detaillistceshi, this.isvalue, this.isquality);
|
|
|
|
|
if (this.formdata.reason === null || this.formdata.reason === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '首检原因不能为空',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (this.isvalue2) {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '请选择不良分类',
|
|
|
|
@ -852,23 +875,25 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
materialType: this.formdata.materialType,
|
|
|
|
|
// 物料来源
|
|
|
|
|
materialFrom: this.formdata.materialFrom,
|
|
|
|
|
// 物料来源
|
|
|
|
|
reason: this.formdata.reason,
|
|
|
|
|
};
|
|
|
|
|
console.log(query, this.formdata);
|
|
|
|
|
await this.model.commitCheckTaskList(query);
|
|
|
|
|
if (this.model.SubmitCode.code == '200') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '成功',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
this.show = false;
|
|
|
|
|
this.getlist();
|
|
|
|
|
this.clear();
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '失败',
|
|
|
|
|
type: 'default',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// await this.model.commitCheckTaskList(query);
|
|
|
|
|
// if (this.model.SubmitCode.code == '200') {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '成功',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// this.show = false;
|
|
|
|
|
// this.getlist();
|
|
|
|
|
// this.clear();
|
|
|
|
|
// } else {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '失败',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
clear() {
|
|
|
|
|
this.formdata.sampleQuality = null;
|
|
|
|
|