|
@@ -24,6 +24,7 @@
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
clearable
|
|
clearable
|
|
|
|
|
+ :disabled="isQualityInspection"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
:label="item.label"
|
|
:label="item.label"
|
|
@@ -107,6 +108,14 @@
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {},
|
|
components: {},
|
|
|
|
|
+
|
|
|
|
|
+ props: {
|
|
|
|
|
+ isQualityInspection: {
|
|
|
|
|
+ type: Boolean,
|
|
|
|
|
+ default: false
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
data() {
|
|
data() {
|
|
|
const defaultWhere = {
|
|
const defaultWhere = {
|
|
|
qualitySchemeTemplateCode: '',
|
|
qualitySchemeTemplateCode: '',
|
|
@@ -188,7 +197,6 @@
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
datasource({ page, where, limit }) {
|
|
datasource({ page, where, limit }) {
|
|
|
- console.log(1111);
|
|
|
|
|
return getTemplateList({
|
|
return getTemplateList({
|
|
|
qualitySchemeTemplateCode: this.where.qualitySchemeTemplateCode,
|
|
qualitySchemeTemplateCode: this.where.qualitySchemeTemplateCode,
|
|
|
qualitySchemeTemplateName: this.where.qualitySchemeTemplateName,
|
|
qualitySchemeTemplateName: this.where.qualitySchemeTemplateName,
|
|
@@ -205,21 +213,8 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return '';
|
|
return '';
|
|
|
-
|
|
|
|
|
- // if (row.type) {
|
|
|
|
|
- // let label = '';
|
|
|
|
|
- // this.typeList.forEach((item) => {
|
|
|
|
|
- // if (item.value == row.type) {
|
|
|
|
|
- // label = item.label;
|
|
|
|
|
- // }
|
|
|
|
|
- // console.log(label, 'label');
|
|
|
|
|
- // return label;
|
|
|
|
|
- // });
|
|
|
|
|
- // }
|
|
|
|
|
- // return '123';
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- // 多选
|
|
|
|
|
selectionChangeHandle(val) {
|
|
selectionChangeHandle(val) {
|
|
|
this.selection = val;
|
|
this.selection = val;
|
|
|
},
|
|
},
|
|
@@ -264,6 +259,10 @@
|
|
|
return { value: key, label: item[key] };
|
|
return { value: key, label: item[key] };
|
|
|
});
|
|
});
|
|
|
this.typeList = list;
|
|
this.typeList = list;
|
|
|
|
|
+
|
|
|
|
|
+ this.where.type = this.typeList.find(
|
|
|
|
|
+ (item) => item.label == '首件两检'
|
|
|
|
|
+ )?.value;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|