|
|
|
@ -182,6 +182,15 @@
|
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
|
|
<div class="" v-show="selectList.value == 'checkTypeLL'">
|
|
|
|
|
<u-form-item label="最终判定:">
|
|
|
|
|
<!-- <u-input v-model="formdata.checkResult" placeholder="" type="text" /> -->
|
|
|
|
|
<u-radio-group v-model="formdata.checkResult" @change="changeradio1(formdata.checkResult)">
|
|
|
|
|
<u-radio v-for="(n, indexn) in listselectdetermine" :key="indexn" :name="n.type" :disabled="n.disabled">
|
|
|
|
|
{{ n.name }}
|
|
|
|
|
</u-radio>
|
|
|
|
|
</u-radio-group>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<div v-show="formdata.checkResult == 'N'">
|
|
|
|
|
<u-form-item label="是否发起oa:">
|
|
|
|
|
<u-radio-group v-model="formdata.startOA">
|
|
|
|
|
<u-radio v-for="(n, indexn) in listselectoa" :key="indexn" :name="n.type" :disabled="n.disabled">
|
|
|
|
@ -189,14 +198,7 @@
|
|
|
|
|
</u-radio>
|
|
|
|
|
</u-radio-group>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="最终判定:">
|
|
|
|
|
<!-- <u-input v-model="formdata.checkResult" placeholder="" type="text" /> -->
|
|
|
|
|
<u-radio-group v-model="formdata.checkResult">
|
|
|
|
|
<u-radio v-for="(n, indexn) in listselectdetermine" :key="indexn" :name="n.type" :disabled="n.disabled">
|
|
|
|
|
{{ n.name }}
|
|
|
|
|
</u-radio>
|
|
|
|
|
</u-radio-group>
|
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
|
|
<u-form-item label="不合格描述:">
|
|
|
|
|
<u-input style="background: #fafafa; border: 1px dashed #e2e2e2; padding: 10px 5px" v-model="formdata.remark" placeholder="" type="textarea" />
|
|
|
|
|
</u-form-item>
|
|
|
|
@ -207,6 +209,7 @@
|
|
|
|
|
<jPicker sureColor="#ff0000" :moren="moren6" @bindpicker="selectProductlocCode5" showKey="label" valKey="value" :val="selectmaterialFromList.value" :options="model.locList3" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <u-form-item v-if="isshow1" label="不合格数量:">
|
|
|
|
|
<u-input v-model="formdata.noOkQuality" placeholder="" type="number" />
|
|
|
|
@ -545,6 +548,10 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
radioChange(e) {
|
|
|
|
|
console.log(e);
|
|
|
|
|
}
|
|
|
|
|
// 判定选择
|
|
|
|
|
changeradio1(checkResult) {
|
|
|
|
|
console.log(checkResult);
|
|
|
|
|
}
|
|
|
|
|
async selectProductlocCode(e: any) {
|
|
|
|
|
this.selectList = e.pickerName;
|
|
|
|
|
let query = {
|
|
|
|
@ -706,14 +713,14 @@ 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;
|
|
|
|
|
}
|
|
|
|
|
// console.log(this.detaillistceshi, this.isvalue, this.isquality);
|
|
|
|
|
// if (this.isvalue) {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '检查标准不能为空',
|
|
|
|
|
// type: 'default',
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// if (this.isvalue2) {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '请选择不良分类',
|
|
|
|
@ -728,6 +735,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
// });
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
if (this.formdata.sampleQuality === null || this.formdata.sampleQuality === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '抽样数量不能为空',
|
|
|
|
@ -745,6 +753,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.selectList.value == 'checkTypeLL') {
|
|
|
|
|
if (this.formdata.checkResult == 'N') {
|
|
|
|
|
if (this.formdata.materialType === null || this.formdata.materialType === '') {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '请选择来料类别',
|
|
|
|
@ -760,6 +769,7 @@ export default class PurchaseWHSRM extends BasePage {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (this.isquality) {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|