0.0.68质量管理质量检验修改

master
李靖 1 year ago
parent cb84700d19
commit 0cca79a80d

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

@ -174,6 +174,11 @@
bNoOkqualityB类不良只过程有
cNoOkqualityC类不良只过程有 -->
<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 {
}
});
// console.log(this.detaillistceshi, this.isvalue, this.isquality);
// 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.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;

Loading…
Cancel
Save