-
+
@@ -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/qmsEvaluationPlan.vue b/src/views/modules/supplier/qmsEvaluationPlan.vue
index cca1f08..ac71f53 100644
--- a/src/views/modules/supplier/qmsEvaluationPlan.vue
+++ b/src/views/modules/supplier/qmsEvaluationPlan.vue
@@ -1,7 +1,7 @@
diff --git a/src/views/modules/supplier/qmsEvaluationTask.vue b/src/views/modules/supplier/qmsEvaluationTask.vue
index 5facdf3..56511f6 100644
--- a/src/views/modules/supplier/qmsEvaluationTask.vue
+++ b/src/views/modules/supplier/qmsEvaluationTask.vue
@@ -167,7 +167,7 @@ export default {
type: "button",
btnName: i18n.t('add'),
name: "add",
- color: "primary",
+ color: "success",
// plain: true,
},
{
@@ -175,7 +175,7 @@ export default {
btnName: i18n.t('export'),
name: "export",
color: "primary",
- // plain: true,
+ plain: true,
}
],
};
@@ -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/qmsPoorLaunch.vue b/src/views/modules/supplier/qmsPoorLaunch.vue
index 28fb99a..2bed129 100644
--- a/src/views/modules/supplier/qmsPoorLaunch.vue
+++ b/src/views/modules/supplier/qmsPoorLaunch.vue
@@ -1,7 +1,7 @@
@@ -173,15 +173,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,
}
],
};
diff --git a/src/views/modules/supplier/qmsProjectType.vue b/src/views/modules/supplier/qmsProjectType.vue
index dd8000d..c25df29 100644
--- a/src/views/modules/supplier/qmsProjectType.vue
+++ b/src/views/modules/supplier/qmsProjectType.vue
@@ -1,7 +1,7 @@
@@ -9,9 +9,9 @@
-
+
@@ -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 = [
@@ -167,11 +167,11 @@ export default {
name:'全部'
},
{
- id: 0,
+ id: '0',
name: '否'
},
{
- id: 1,
+ id: '1',
name: '是'
}
],
@@ -217,15 +217,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
}
],
};
diff --git a/src/views/modules/supplier/qmsSupplier.vue b/src/views/modules/supplier/qmsSupplier.vue
index 579177a..7836f45 100644
--- a/src/views/modules/supplier/qmsSupplier.vue
+++ b/src/views/modules/supplier/qmsSupplier.vue
@@ -1,7 +1,7 @@
@@ -16,7 +16,7 @@
@@ -59,11 +59,12 @@ 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 status from './components/status.vue'
// import i18n from "@/i18n";
+import supplier from '@/filters/supplier'
+
const tableProps = [
{
prop: "detail",
@@ -93,8 +94,15 @@ const tableProps = [
},
{
prop: "supplierStatus",
+ // label: i18n.t('supplier.ment'),
+ // subcomponent: status,
+ label: i18n.t('supplier.supplierStatus'),
+ filter: supplier('supplierStatus'),
+ },
+ {
+ prop: "ment",
label: i18n.t('supplier.ment'),
- subcomponent: status,
+ subcomponent: changeStatus
}
];
const tableBtn = [
@@ -114,6 +122,7 @@ export default {
urlOptions: {
getDataListURL: "/supplier/qmsSupplier/page",
deleteURL: "/supplier/qmsSupplier",
+ submitURL: "/supplier/qmsSupplier",
exportURL: '/supplier/qmsSupplier/export',
getSupplierTypeListURL: '/supplier/qmsSupplierType/page'
// submitURL: '/supplier/qmsSupplierType'
@@ -186,15 +195,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
}
],
};
@@ -213,15 +222,29 @@ export default {
console.log(val)
this.tableData[val._pageIndex - 1][val.prop] = val[val.prop]
console.log(this.tableData)
+ this.$http.put(this.urlOptions.submitURL, this.tableData[val._pageIndex - 1])
+ .then(({ data: res }) => {
+ if (res.code !== 0) {
+ return this.$message.error(res.msg);
+ }
+ this.$message({
+ message: this.$t("prompt.success"),
+ type: "success",
+ duration: 500,
+ onClose: () => {
+ this.getDataList()
+ },
+ });
+ })
},
- emitButtonClick() {
- console.log('emitButtonClick')
- let obj = {}
- for (let i of this.tableData) {
- obj[i.prop] = ''
- }
- this.tableData.push(obj)
- },
+ // emitButtonClick() {
+ // console.log('emitButtonClick')
+ // let obj = {}
+ // for (let i of this.tableData) {
+ // obj[i.prop] = ''
+ // }
+ // this.tableData.push(obj)
+ // },
getData() {
this.$http
.get(this.urlOptions.getSupplierTypeListURL, { params: this.listQuery })
@@ -286,7 +309,7 @@ export default {
type: "success",
duration: 1500,
onClose: () => {
- this.getDataList();
+ this.getDataList()
},
});
} else {
diff --git a/src/views/modules/supplier/qmsSupplierProduct.vue b/src/views/modules/supplier/qmsSupplierProduct.vue
index 727bb50..a7f7b20 100644
--- a/src/views/modules/supplier/qmsSupplierProduct.vue
+++ b/src/views/modules/supplier/qmsSupplierProduct.vue
@@ -1,7 +1,7 @@
@@ -9,9 +9,9 @@
-
+
@@ -110,20 +110,18 @@ export default {
addOrUpdateVisible: false,
productOrUpdateVisible: false,
formConfig: [
- // {
- // type: "",
- // label: i18n.t("params.paramCode"),
- // placeholder: i18n.t("params.paramCode"),
- // param: "paramCode",
- // },
- // {
- // type: "separate",
- // },
+ {
+ type: 'input',
+ label: i18n.t('supplier.supplierName'),
+ placeholder: i18n.t('supplier.supplierName'),
+ param: 'supplierName'
+ },
{
type: "button",
btnName: i18n.t('supplier.supplierRelevance'),
name: "supplierRelevance",
- color: "primary",
+ color: "success",
+ plain:true
},
{
type: "button",
@@ -220,7 +218,7 @@ export default {
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
- this.listQuery.key = null;
+ this.listQuery.supplierName = val.supplierName ? val.supplierName : null
// console.log(i18n);
this.listQuery.page = 1;
this.getDataList();
diff --git a/src/views/modules/supplier/qmsSupplierRequirementListGroup.vue b/src/views/modules/supplier/qmsSupplierRequirementListGroup.vue
new file mode 100644
index 0000000..5076c5d
--- /dev/null
+++ b/src/views/modules/supplier/qmsSupplierRequirementListGroup.vue
@@ -0,0 +1,257 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/supplier/qmsSupplierType.vue b/src/views/modules/supplier/qmsSupplierType.vue
index a20a5c5..376ecdb 100644
--- a/src/views/modules/supplier/qmsSupplierType.vue
+++ b/src/views/modules/supplier/qmsSupplierType.vue
@@ -2,9 +2,9 @@
-
+
@@ -104,20 +104,24 @@ export default {
addOrUpdateVisible: false,
productOrUpdateVisible: false,
formConfig: [
- // {
- // type: "",
- // label: i18n.t("params.paramCode"),
- // placeholder: i18n.t("params.paramCode"),
- // param: "paramCode",
- // },
- // {
- // type: "separate",
- // },
+ {
+ type: 'input',
+ label: i18n.t('supplier.name'),
+ placeholder: i18n.t('supplier.name'),
+ param: 'name'
+ },
+ {
+ type: 'input',
+ label: i18n.t('supplier.code'),
+ placeholder: i18n.t('supplier.code'),
+ param: 'code'
+ },
{
type: "button",
btnName: i18n.t('add'),
name: "add",
- color: "primary",
+ color: "success",
+ plain:true
},
{
type: "button",
@@ -131,7 +135,7 @@ export default {
btnName: i18n.t('export'),
name: "export",
color: "primary",
- // plain: true,
+ plain: true
}
],
};
@@ -283,7 +287,8 @@ export default {
switch (val.btnName) {
case "search":
// this.listQuery.paramCode = val.paramCode;
- this.listQuery.key = null;
+ this.listQuery.name = val.name ? val.name :null
+ this.listQuery.code = val.code ? val.code : null
// console.log(i18n);
this.listQuery.page = 1;
this.getDataList();
diff --git a/src/views/modules/sys/user.vue b/src/views/modules/sys/user.vue
index c54fd99..214ca1a 100644
--- a/src/views/modules/sys/user.vue
+++ b/src/views/modules/sys/user.vue
@@ -2,36 +2,16 @@
diff --git a/src/views/spc-basic/components/unitList-add.vue b/src/views/spc-basic/components/unitList-add.vue
deleted file mode 100644
index 0d9b477..0000000
--- a/src/views/spc-basic/components/unitList-add.vue
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/views/spc-basic/unitList.vue b/src/views/spc-basic/unitList.vue
deleted file mode 100644
index dbddcbe..0000000
--- a/src/views/spc-basic/unitList.vue
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-