From ed3ccd21f1c96905f61738aaa9cbc6f4c4146aec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Mon, 26 Jul 2021 18:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/bzqdfb/step1.vue | 232 +++++++++--------- .../pages/creatProcess/bzqdfb/step3.vue | 4 +- .../pages/creatProcess/bzqdfb/step4.vue | 4 + .../pages/creatProcess/xmpg/step1.vue | 48 +++- .../pages/creatProcess/xmpg2/step5.vue | 36 +-- .../pages/processDetail/index.vue | 9 + src/sysConfig/index.js | 6 +- 7 files changed, 197 insertions(+), 142 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 6d9762ffe..c274edff0 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -48,27 +48,27 @@ clearable > - - - - 点击上传 - - - + +
+

{{listForm.fileName}} +

+
+
+ + + 点击上传 + + +
@@ -128,15 +128,21 @@ label="发布日期"> + + - - - + + + { this.standardData = res.data.list; + this.standardData.forEach(item => { + this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ) + this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ) + }) this.totalNo = res.data.count; }, e => { }); @@ -1002,30 +1008,30 @@ export default { }, //保存事件 handleSave() { - this.saveLoading = true - let _formData = new FormData() - _formData.append('id', this.bpnId || '') - _formData.append('createUser', this.$store.getters.userInfo.userId) - _formData.append('createUserName', this.$store.getters.userInfo.userName) - _formData.append('prcType', '4') - _formData.append('json', JSON.stringify({ + this.saveLoading = true; + let _formData = new FormData(); + _formData.append("id", this.bpnId || ""); + _formData.append("createUser", this.$store.getters.userInfo.userId); + _formData.append("createUserName", this.$store.getters.userInfo.userName); + _formData.append("prcType", "4"); + _formData.append("json", JSON.stringify({ form: this.listForm, roleForm: this.roleForm, commentText: this.commentText - })) - saveTaskFirst(_formData).then(res => { - this.saveLoading = false - this.$message.success('保存成功') - this.bpnId = res.result + })); + saveTaskFirst(_formData).then(res => { + this.saveLoading = false; + this.$message.success("保存成功"); + this.bpnId = res.result; }).catch(e => { - this.saveLoading = false - }) + this.saveLoading = false; + }); }, //提交事件 handleSubmit() { - if(this.dataList.length < 1){ - this.$message.warning('标准不能为空') - }else{ + if (this.dataList.length < 1) { + this.$message.warning("标准不能为空"); + } else { let json = this.listForm; this.listForm.fileId = this.fileIds.join(","); this.listForm.fileName = this.fileListName.join(","); @@ -1094,7 +1100,7 @@ export default { }); this.fileListName = middle; this.fileIds.push(file.response.data.id); - this.$message.success('上传成功') + this.$message.success("上传成功"); } else { this.$message.error(res.message); fileList.pop(); @@ -1180,33 +1186,6 @@ export default { } return true; }, - // beginImportFile (file) { - // var filename = file.name - // var index1 = filename.lastIndexOf('.') - // var index2 = filename.length - // var fileSuffix = filename.substring(index1, index2) - // // const fileSuffix = file.name.split('.')[1] // 后缀名 - // // 判断上传文件格式 - // // 判断上传文件格式 - // if (fileSuffix === '.PDF' || fileSuffix === '.DOC' || fileSuffix === '.DOCX' || fileSuffix === '.PPT' - // || fileSuffix === '.PPTX'|| fileSuffix === '.XLS'|| fileSuffix === '.XLSX' - // || fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') { - // return true - // } else { - // this.spinShow = false - // this.$message.error('文件' + file.name + '格式不正确,请上传pdf、doc、docx、ppt、pptx、xls、xlsx、png、jpg、jpeg等文件') - // return false - // } - // // 判断文件上传大小 - // // eslint-disable-next-line no-unreachable - // if (file.size / 1024 / 1024 <= 200) { - // return true - // } else { - // this.$message.error('文件' + file.name + '大小不超过200M') - // return false - // } - // return true - // }, //选择清单取消事件 closeDrawer() { this.ListModel = false; @@ -1220,26 +1199,25 @@ export default { }, //添加标准确定事件 okStand() { - let _this = this; if (this.standList.length < 1) { - _this.$message.warning("请选择需要添加进清单的数据"); + this.$message.warning("请选择需要添加进清单的数据"); } else { - _this.standList.map(item => { + this.standList.map(item => { let newStand = false; - for (let itemKey of _this.dataList) { + for (let itemKey of this.dataList) { if (item.id == itemKey.id) { newStand = true; break; } } if (newStand) { - _this.$message.warning("请勿重复添加数据"); + this.$message.warning("请勿重复添加数据"); } else { - _this.dataList.push(item); + this.dataList.push(item); } }); this.standardData = []; - _this.standModel = false; + this.standModel = false; } }, //选择清单确定事件 @@ -1257,23 +1235,24 @@ export default { this.listForm.listName = bringData[0].detailedListName; this.listForm.descriptionList = bringData[0].remark; this.listForm.fileId = bringData[0].fileIds; + this.listForm.fileName = bringData[0].fileName; this.ListModel = false; this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", - { id: bringData[0].id, page: this.page, Size:this.pageSize}, { - _this: this - }, res => { - if (res.data == null) { - res.data = []; - } - this.dataList = res.data; - this.listForm.dataList = res.data; - let formId = []; - this.dataList.map(item => { - formId.push(item.id); + { id: bringData[0].id, page: this.page, Size: this.pageSize }, { + _this: this + }, res => { + if (res.data == null) { + res.data = []; + } + this.dataList = res.data; + this.listForm.dataList = res.data; + let formId = []; + this.dataList.map(item => { + formId.push(item.id); + }); + this.listForm.inforlist = formId.join(","); + }, e => { }); - this.listForm.inforlist = formId.join(","); - }, e => { - }); } else if (this.selectedList.length > 1) { this.$message.warning("只能选择一条数据进行带入"); } else { @@ -1365,7 +1344,36 @@ export default { padding: 0 20px 0; } } + .fileClass { + cursor: pointer; + } + .fileClass:hover{ + color: #0c91e5; + } + p { + & > a { + cursor: pointer; + } + & > i { + display: inline-block; + margin-left: 3px; + width: 18px; + height: 16px; + background-repeat: no-repeat; + background-size: 100% 100%; + background-position: center center; + vertical-align: sub; + cursor: pointer; + } + .icon-download { + background-image: url("~assets/images/shangqi/img/download.png"); + } + + .icon-download2 { + background-image: url("~assets/images/shangqi/img/download2.png"); + } + } .choiceBtn { .el-button--primary { width: 150px; diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue index 138d103f7..18e8d27cd 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue @@ -104,8 +104,8 @@ width="180px" label="标准号"> +
- 新增 + 添加 批量删除
@@ -226,7 +226,6 @@