-
+
@@ -112,7 +112,7 @@ export default {
type: 'input',
label: i18n.t('supplier.name'),
placeholder: i18n.t('supplier.name'),
- param: 'name'
+ param: 'title'
},
{
type: 'input',
@@ -275,7 +275,7 @@ export default {
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
- this.listQuery.name = val.name ? val.name : undefined
+ this.listQuery.title = val.title ? val.title : undefined
this.listQuery.code = val.code ? val.code : undefined
// console.log(i18n);
this.listQuery.page = 1;
diff --git a/src/views/modules/supplier/qmsEvaluationTask.vue b/src/views/modules/supplier/qmsEvaluationTask.vue
index 5facdf3..e7bb250 100644
--- a/src/views/modules/supplier/qmsEvaluationTask.vue
+++ b/src/views/modules/supplier/qmsEvaluationTask.vue
@@ -224,7 +224,12 @@ export default {
.then(({ data: res }) => {
if (res.code === 0) {
console.log(res.data);
- this.formConfig[1].selectOptions = res.data.list
+ this.formConfig[1].selectOptions = res.data.list.map((item) => {
+ return {
+ id: item.id,
+ name: item.title,
+ }
+ })
}
})
.catch(() => {
diff --git a/src/views/modules/supplier/qmsLevelSetting.vue b/src/views/modules/supplier/qmsLevelSetting.vue
index db41b42..73881f5 100644
--- a/src/views/modules/supplier/qmsLevelSetting.vue
+++ b/src/views/modules/supplier/qmsLevelSetting.vue
@@ -1,7 +1,7 @@
@@ -20,7 +20,7 @@
{{item.name}}
-
+
diff --git a/src/views/modules/supplier/qmsProjectType.vue b/src/views/modules/supplier/qmsProjectType.vue
index dd8000d..17972f8 100644
--- a/src/views/modules/supplier/qmsProjectType.vue
+++ b/src/views/modules/supplier/qmsProjectType.vue
@@ -1,7 +1,7 @@
@@ -23,8 +23,8 @@
-
-
+
+
@@ -96,7 +96,7 @@ const tableProps = [
{
prop: "closedLoop",
label: i18n.t('supplier.closedLoop'),
- filter: supplier('whether'),
+ filter: supplier('whether')
}
];
const tableBtn = [
@@ -159,11 +159,11 @@ export default {
name:'全部'
},
{
- id: 0,
+ id: '0',
name: '否'
},
{
- id: 1,
+ id: '1',
name: '是'
}
],
@@ -209,15 +209,15 @@ export default {
type: "button",
btnName: i18n.t('add'),
name: "add",
- color: "primary",
- // plain: true,
+ color: "success",
+ plain: true
},
{
type: "button",
btnName: i18n.t('export'),
name: "export",
color: "primary",
- // plain: true,
+ plain: true
}
],
};
@@ -370,7 +370,7 @@ export default {
// this.listQuery.paramCode = val.paramCode;
this.listQuery.productName = val.productName ? val.productName : undefined
this.listQuery.problemDescription = val.problemDescription ? val.problemDescription : undefined
- this.listQuery.closedLoop = closedLoop ? closedLoop : undefined
+ this.listQuery.closedLoop = val.closedLoop ? val.closedLoop : undefined
this.listQuery.supplierName = val.supplierName ? val.supplierName : undefined
this.listQuery.startTime = val.timeSlot ? val.timeSlot[0] : undefined
this.listQuery.endTime = val.timeSlot ? val.timeSlot[1] : undefined
diff --git a/src/views/modules/supplier/qmsSupplier.vue b/src/views/modules/supplier/qmsSupplier.vue
index f07a6fd..79c8c0f 100644
--- a/src/views/modules/supplier/qmsSupplier.vue
+++ b/src/views/modules/supplier/qmsSupplier.vue
@@ -1,7 +1,7 @@
@@ -59,10 +59,9 @@ import supplierProductSearch from "./components/supplierProductSearch.vue"
import supplierAdd from "./components/supplier-add.vue"
import inputArea from "./components/inputArea"
import innerTable from "./components/innerTable"
-// import available from "./components/available.vue"
-// import radio from "./components/radio.vue"
+import changeStatus from "./components/changeStatus.vue"
import i18n from "@/i18n"
-// import i18n from "@/i18n";
+import supplier from '@/filters/supplier'
const tableProps = [
{
prop: "detail",
@@ -90,9 +89,15 @@ const tableProps = [
prop: "address",
label: i18n.t('supplier.address'),
},
+ {
+ prop: "supplierStatus",
+ label: i18n.t('supplier.supplierStatus'),
+ filter: supplier('supplierStatus'),
+ },
{
prop: "ment",
label: i18n.t('supplier.ment'),
+ subcomponent: changeStatus
}
];
const tableBtn = [
@@ -184,15 +189,15 @@ export default {
type: "button",
btnName: i18n.t('add'),
name: "add",
- color: "primary",
- // plain: true,
+ color: "success",
+ plain: true
},
{
type: "button",
btnName: i18n.t('export'),
name: "export",
color: "primary",
- // plain: true,
+ plain: true
}
],
};
@@ -284,7 +289,7 @@ export default {
type: "success",
duration: 1500,
onClose: () => {
- this.getDataList();
+ this.getDataList()
},
});
} else {
--
2.45.2