From 229b59f4243551d0c3ad782d41f2466a5d82f4ad Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Fri, 14 Jul 2023 15:50:58 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/supplier/components/addPlan.vue | 249 +++++++++ .../supplier/components/addProjects.vue | 36 ++ .../components/evaluationTemplate-add.vue | 18 +- .../modules/supplier/components/first.vue | 213 ++++++++ .../modules/supplier/components/startPlan.vue | 123 +++++ .../modules/supplier/components/status.vue | 30 ++ .../supplier/components/supplier-add.vue | 11 +- .../supplier/components/supplierProduct.vue | 6 +- .../supplier/qmsEvaluationItemListLabel.vue | 70 ++- .../modules/supplier/qmsEvaluationPlan.vue | 510 +++++++++--------- .../modules/supplier/qmsQualityAccident.vue | 20 +- src/views/modules/supplier/qmsSupplier.vue | 8 +- .../supplier/qmsSupplierProjectList.vue | 158 +++++- src/views/pages/login.vue | 4 +- 14 files changed, 1146 insertions(+), 310 deletions(-) create mode 100644 src/views/modules/supplier/components/addPlan.vue create mode 100644 src/views/modules/supplier/components/addProjects.vue create mode 100644 src/views/modules/supplier/components/first.vue create mode 100644 src/views/modules/supplier/components/startPlan.vue create mode 100644 src/views/modules/supplier/components/status.vue diff --git a/src/views/modules/supplier/components/addPlan.vue b/src/views/modules/supplier/components/addPlan.vue new file mode 100644 index 0000000..6bd16bc --- /dev/null +++ b/src/views/modules/supplier/components/addPlan.vue @@ -0,0 +1,249 @@ + + + \ No newline at end of file diff --git a/src/views/modules/supplier/components/addProjects.vue b/src/views/modules/supplier/components/addProjects.vue new file mode 100644 index 0000000..faa2f3e --- /dev/null +++ b/src/views/modules/supplier/components/addProjects.vue @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/src/views/modules/supplier/components/evaluationTemplate-add.vue b/src/views/modules/supplier/components/evaluationTemplate-add.vue index b9bd990..bb1460a 100644 --- a/src/views/modules/supplier/components/evaluationTemplate-add.vue +++ b/src/views/modules/supplier/components/evaluationTemplate-add.vue @@ -1,7 +1,7 @@ @@ -159,6 +159,7 @@ export default { getTypeListURL: '/supplier/qmsProjectType/page', saveDataURL: '/supplier/qmsEvaluationTemplateProjectType/saveAll' }, + evaluationTemplateId: '', visibleList: [true, false, false, false, false], activeStep: 0, ruleForm: { @@ -315,13 +316,18 @@ export default { } const typeList = Array.from(new Set(temp)) console.log('aaaaaaa', typeList) - for (let type of typeList) { + for (let key of typeList) { let obj = {} - obj.projectTypeName = type + obj.projectTypeName = typeList[key] obj.dragVisible = false - obj.list = this.multipleSelection.filter(ele => { - if (ele.projectTypeName === type) { + obj.sort = key + obj.list = this.multipleSelection.filter((ele, index) => { + if (ele.projectTypeName === typeList[key]) { obj.projectTypeId = ele.projectTypeId + obj.evaluationTemplateId = this.evaluationTemplateId + ele.evaluationTemplateId = this.evaluationTemplateId + ele.projectId = ele.id + ele.sort = index return ele } }) @@ -416,6 +422,8 @@ export default { this.$emit("refreshDataList"); }, }) + console.log('新增结果', res.data) + this.evaluationTemplateId = res.data this.activeStep ++ // this.visibleList[0] = false // this.visibleList[1] = true diff --git a/src/views/modules/supplier/components/first.vue b/src/views/modules/supplier/components/first.vue new file mode 100644 index 0000000..501cc9f --- /dev/null +++ b/src/views/modules/supplier/components/first.vue @@ -0,0 +1,213 @@ + + + \ No newline at end of file diff --git a/src/views/modules/supplier/components/startPlan.vue b/src/views/modules/supplier/components/startPlan.vue new file mode 100644 index 0000000..3e01486 --- /dev/null +++ b/src/views/modules/supplier/components/startPlan.vue @@ -0,0 +1,123 @@ + + + + diff --git a/src/views/modules/supplier/components/status.vue b/src/views/modules/supplier/components/status.vue new file mode 100644 index 0000000..22e7fa6 --- /dev/null +++ b/src/views/modules/supplier/components/status.vue @@ -0,0 +1,30 @@ + + + + + diff --git a/src/views/modules/supplier/components/supplier-add.vue b/src/views/modules/supplier/components/supplier-add.vue index 222cbbf..5efc6d2 100644 --- a/src/views/modules/supplier/components/supplier-add.vue +++ b/src/views/modules/supplier/components/supplier-add.vue @@ -1,8 +1,8 @@