From 705d9b9c727bc4d5769253e65b0799530d2f555f Mon Sep 17 00:00:00 2001 From: youyuzihan Date: Wed, 23 Jun 2021 14:28:31 +0800 Subject: [PATCH 1/6] =?UTF-8?q?update:=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../localProductsOrProjectLibrary/index.vue | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue index c2080cfa8..6b5880360 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue @@ -14,7 +14,7 @@ - + { // console.log(res.data) From a2185c7badeef156f730ef08c2f3e929b404f3b7 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 23 Jun 2021 15:26:27 +0800 Subject: [PATCH 2/6] =?UTF-8?q?feat:=20=E7=99=BB=E5=BD=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/login/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 89a3e872e..b0a620407 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -91,7 +91,7 @@ export default { let userInfo2 = decodeURIComponent(userInfoStr) let userInfoObj = JSON.parse(userInfo2) this.setToken(userInfoObj.usid) // vuex存储token - this.getByUserInfoCode().then((userInfo) => { + this.getByUserInfoCode(userInfoObj.usid).then((userInfo) => { if (userInfo !== '' && userInfo !== null) { userInfo.workNum = userInfoObj.workNum if (userInfo.userPic !== null) { @@ -237,9 +237,9 @@ export default { }) }, // 获取用户信息 - getByUserInfoCode () { + getByUserInfoCode (userId) { return new Promise((resolve, reject) => { - this.$http.get('person/userInfo/getByUserInfoCode', { + this.$http.get('person/userInfo/getByUserInfoCode?userId='+ userId, { }, { _this: this, prefix: '/foton' From 8b317d092790fb0862c321f92cf1b2000946be5d Mon Sep 17 00:00:00 2001 From: yf <428080876@qq.com> Date: Wed, 23 Jun 2021 15:29:02 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step3.vue | 152 ++++++++++++++-- .../pages/creatProcess/bzrk/step4.vue | 168 ++++++++++++++++-- .../tabComponents/processCenter/index.vue | 4 +- 3 files changed, 292 insertions(+), 32 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue index 17a7e98ea..79c453670 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -3,11 +3,12 @@ - +
基础信息
-
审批历史
+
审批历史
+
@@ -45,6 +46,7 @@ disabled v-model="form.standYear" type="year" + value-format="yyy" placeholder="请选择标准年份"> @@ -519,16 +521,16 @@
- - - - + + + + + v-model="commentText">
@@ -581,6 +583,75 @@
+
+
+ + + + + + + + + + + + + + + + + + + + + 流程列表加载中 +
+
{ + this.detailData = res + }, e => {}) + }, getData() { return new Promise((resolve, reject) => { inboundLiaisonDetail({ - taskIds: this.$route.query.taskIds, - pId: this.$route.query.prcId + taskIds: this.taskIds, + pId: this.pId }).then(res => { if (res) { - this.form = JSON.parse(res.mesg) + const processForm = JSON.parse(res.mesg) + this.getFormFieldList(processForm) } }).catch(e => { }) }) }, + /** + * @description: 动态表单读取 + */ + getFormFieldList (item) { + this.$nextTick(() => { + this.form = JSON.parse(JSON.stringify(item)) + this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' + this.form.prcNum = this.prcNum + this.form.prcName = this.prcName + this.form['id'] = item.id + }) + }, closeDrawer() { this.ListModel = false }, @@ -728,8 +843,22 @@ export default { }, handleSave() {}, handleSubmit() { + this.form.commentText = this.commentText + this.form.approvalOpinion = this.approvalOpinion const json = JSON.stringify(this.form); console.log(json) + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId : this.userId, + json: json + }, { + _this: this + }, res => { + console.log(res); + // if (res.success) { + // this.processCreateStand(json) + // } + }) // this.$http.post('lawss/activiti/completeTask', { // taskIds: res.data, // userId : this.$store.getters.userInfo.userId, @@ -767,6 +896,7 @@ export default { }, }, mounted () { + this.processTable() this.getData() this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue index 67d7ba459..4f01e999f 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue @@ -3,11 +3,12 @@ - +
基础信息
-
审批历史
+
审批历史
+
@@ -45,6 +46,7 @@ disabled v-model="form.standYear" type="year" + value-format="yyy" placeholder="请选择标准年份"> @@ -516,23 +518,23 @@
- - - + + +
- - - - - - - - - - + + +
+
+
@@ -581,6 +583,75 @@
+
+
+ + + + + + + + + + + + + + + + + + + + + 流程列表加载中 +
+
{ + this.detailData = res + }, e => {}) + }, getData() { return new Promise((resolve, reject) => { inboundLiaisonDetail({ - taskIds: this.$route.query.taskIds, - pId: this.$route.query.prcId + taskIds: this.taskIds, + pId: this.pId }).then(res => { if (res) { - this.form = JSON.parse(res.mesg) + const processForm = JSON.parse(res.mesg) + this.getFormFieldList(processForm) } }).catch(e => { }) }) }, + /** + * @description: 动态表单读取 + */ + getFormFieldList (item) { + this.$nextTick(() => { + this.form = JSON.parse(JSON.stringify(item)) + this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' + this.form.prcNum = this.prcNum + this.form.prcName = this.prcName + this.form['id'] = item.id + }) + }, closeDrawer() { this.ListModel = false }, @@ -728,8 +843,22 @@ export default { }, handleSave() {}, handleSubmit() { + this.form.commentText = this.commentText + this.form.approvalOpinion = this.approvalOpinion const json = JSON.stringify(this.form); console.log(json) + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId : this.userId, + json: json + }, { + _this: this + }, res => { + console.log(res); + if (res.success) { + this.processCreateStand(json) + } + }) // this.$http.post('lawss/activiti/completeTask', { // taskIds: res.data, // userId : this.$store.getters.userInfo.userId, @@ -767,6 +896,7 @@ export default { }, }, mounted () { + this.processTable() this.getData() this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue index 349d54a99..95a5dce6e 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue @@ -233,7 +233,7 @@ export default { }) }else if (row.taskInfo === '责任人会签'){ this.$router.push({ - name: 'step3', + name: 'bzrkStep3', query: { taskIds: row.taskIds, prcId: row.prcId, @@ -244,7 +244,7 @@ export default { }) }else if (row.taskInfo === '申请人修订'){ this.$router.push({ - name: 'step4', + name: 'bzrkStep4', query: { taskIds: row.taskIds, prcId: row.prcId, From 58fe433ef17c8b6c288c54ce05bd43775c9ee59e Mon Sep 17 00:00:00 2001 From: youyuzihan Date: Wed, 23 Jun 2021 15:43:24 +0800 Subject: [PATCH 4/6] =?UTF-8?q?update:=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../localProductsOrProjectLibrary/index.vue | 35 ++++++++++++++-- .../pages/details.vue | 40 +++++++++++-------- 2 files changed, 55 insertions(+), 20 deletions(-) diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue index 6b5880360..f55f7c7cc 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue @@ -115,9 +115,9 @@ prop="projectName" align="center" label="项目名称"> - - - + { if (res.data) { diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue index 29f0c4948..4783a3960 100644 --- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue +++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details.vue @@ -4,28 +4,28 @@
-
{{localProEO.productSet}} 《{{localProEO.productName}}》 详情
+
车型《{{localProEO.projectName}}》 详情
- 产品平台: {{ localProEO.flatform}} - 项目编号: {{ localProEO.productNo }} - 项目名称: {{ localProEO.productName }} + 产品平台: {{ localProEO.projectPlatfor}} + 项目编号: {{ localProEO.projectNumber }} + 项目名称: {{ localProEO.projectName }} - 项目分类:{{ localProEO.productTypeShow }} + 项目分类:{{ localProEO.projectClassification }} - 项目状态: {{ localProEO.productBrandShow }} - 项目群: {{ localProEO.productBrandShow }} - 当前节点: {{ localProEO.productBrandShow }} - 项目级别: {{ localProEO.productBrandShow }} + 项目状态: {{ localProEO.projectStatus }} + 项目群: {{ localProEO.projectGroup }} + 当前节点: {{ localProEO.currentNode }} + 项目级别: {{ localProEO.projectLevel }} - 项目经理: {{ localProEO.productNo }} - 项目计划开始时间: {{ localProEO.baseCartype}} - 项目计划完成时间: {{ }} + 项目经理: {{ localProEO.projectManager }} + 项目计划开始时间: {{ localProEO.projectStartDate}} + 项目计划完成时间: {{localProEO.projectEndDate }}
@@ -45,8 +45,8 @@ icon="export" >导出
- - + +
数据获取中 -
-
+ + Date: Wed, 23 Jun 2021 16:34:33 +0800 Subject: [PATCH 5/6] =?UTF-8?q?feat:=20=E5=85=A5=E5=BA=93=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=20=E5=8F=8A=20=E6=B5=81=E7=A8=8B=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzrk/step3.vue | 23 +- .../pages/creatProcess/bzrk/step4.vue | 80 +- .../pages/creatProcess/bzrk/step5.vue | 961 ++++++++++++++++++ .../pages/processDetail/index.vue | 116 +-- src/router/index.js | 9 + 5 files changed, 1012 insertions(+), 177 deletions(-) create mode 100644 src/pages/processCenter/pages/creatProcess/bzrk/step5.vue diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue index 79c453670..21b579ecc 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -854,23 +854,12 @@ export default { }, { _this: this }, res => { - console.log(res); - // if (res.success) { - // this.processCreateStand(json) - // } + if (res.success) { + this.$message.success(res.data) + }else { + this.$message.warning(res.data) + } }) - // this.$http.post('lawss/activiti/completeTask', { - // taskIds: res.data, - // userId : this.$store.getters.userInfo.userId, - // json: json - // }, { - // _this: this - // }, res => { - // console.log(res); - // if (res.ok) { - // this.processCreateStand(json) - // } - // }) }, /** @@ -883,7 +872,7 @@ export default { _formData.append('infoJson', json) processCreateStand(_formData).then(res => { if (res.result === '操作成功' || res.data === '入库成功') { - this.$message.success(res.data) + this.$message.success(res.message) setTimeout(() => { this.$router.push({ name: 'ProcessCenter' diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue index 4f01e999f..1643f0845 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue @@ -25,13 +25,13 @@ - + 国内标准入库 海外标准入库 - + - + @@ -76,14 +73,13 @@ - + - + - + - + @@ -156,7 +149,6 @@ @@ -164,7 +156,6 @@ @@ -174,7 +165,6 @@ @@ -182,7 +172,6 @@ @@ -190,7 +179,6 @@ @@ -289,7 +277,7 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + { - console.log(res); if (res.success) { - this.processCreateStand(json) + this.$message.success(res.data) + }else { + this.$message.warning(res.data) } }) - // this.$http.post('lawss/activiti/completeTask', { - // taskIds: res.data, - // userId : this.$store.getters.userInfo.userId, - // json: json - // }, { - // _this: this - // }, res => { - // console.log(res); - // if (res.ok) { - // this.processCreateStand(json) - // } - // }) }, /** diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step5.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step5.vue new file mode 100644 index 000000000..a48901ce0 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step5.vue @@ -0,0 +1,961 @@ + + + + + diff --git a/src/pages/processCenter/pages/processDetail/index.vue b/src/pages/processCenter/pages/processDetail/index.vue index 60d5e7e98..f9a21868b 100644 --- a/src/pages/processCenter/pages/processDetail/index.vue +++ b/src/pages/processCenter/pages/processDetail/index.vue @@ -100,8 +100,7 @@ label="审批意见" align="center">
import('@/pages/processCenter/pages/creatProcess/bzrk/step5.vue'), + meta: { + requireAuth: true, + title: '标准入库流程' + } + }, { path: '/bzrkStep2', name: 'bzrkStep2', From f9ff9eaee6ba60ce15b016e9c87221bd077d94c3 Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 23 Jun 2021 16:44:24 +0800 Subject: [PATCH 6/6] =?UTF-8?q?feat:=20=E5=85=A5=E5=BA=93=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/processCenter/pages/creatProcess/bzrk/step1.vue | 2 +- src/pages/processCenter/pages/creatProcess/bzrk/step3.vue | 4 ++-- src/pages/processCenter/pages/creatProcess/bzrk/step4.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 663aee630..efdff8dea 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -766,7 +766,7 @@ }, handleSubmit() { var json = this.form - json.zrUserId = this.$store.getters.userInfo.userId + json.zrUserId = this.$store.getters.userInfo.userId+',5UM3769REUPLPRTRJ54R' json.jlUserId = this.$store.getters.userInfo.userId json.commentText = this.commentText json.applyUpdUserId = this.$store.getters.userInfo.userId diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue index 21b579ecc..4107bd216 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step3.vue @@ -855,9 +855,9 @@ export default { _this: this }, res => { if (res.success) { - this.$message.success(res.data) + this.$message.success(res.message) }else { - this.$message.warning(res.data) + this.$message.success(res.message) } }) }, diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue index 1643f0845..e970a22cc 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step4.vue @@ -832,9 +832,9 @@ export default { _this: this }, res => { if (res.success) { - this.$message.success(res.data) + this.$message.success(res.message) }else { - this.$message.warning(res.data) + this.$message.success(res.message) } }) },