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); // console.log('Version////', this.Version);
} }
///****************** ///******************
version = '0.0.67'; // version = '0.0.68'; //
//version = '0.0.3'; // //version = '0.0.3'; //
//*************** false true **************** //*************** false true ****************
//isTest = true; //isTest = true;

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

Loading…
Cancel
Save