diff --git a/src/components/CustomFormComponents/File.vue b/src/components/CustomFormComponents/File.vue index 0a4ecebb4..322ac2238 100644 --- a/src/components/CustomFormComponents/File.vue +++ b/src/components/CustomFormComponents/File.vue @@ -255,7 +255,7 @@ export default { uploadSuccess(res, file, fileList) { if (res.ok) { // this.value += res.data.id + ',' - this.$emit('input', this.value + res.data.id + ',') + this.$emit('input', this.value ? this.value + ',' : this.value+ res.data.id + ',') this.$emit('success') this.$message({ message: '文件上传成功', diff --git a/src/pages/config/pages/mechanismManage/index.vue b/src/pages/config/pages/mechanismManage/index.vue index beb4d7667..bf1e90b44 100644 --- a/src/pages/config/pages/mechanismManage/index.vue +++ b/src/pages/config/pages/mechanismManage/index.vue @@ -312,7 +312,7 @@ export default { } .tree-content { background: #fff; - width: 16%; + width: 300px; position: relative; .tree { width: 95%; diff --git a/src/pages/home1/components/todoList/index.vue b/src/pages/home1/components/todoList/index.vue index 72814cde8..f7e585052 100644 --- a/src/pages/home1/components/todoList/index.vue +++ b/src/pages/home1/components/todoList/index.vue @@ -87,6 +87,7 @@ export default { } }) } + break case '2': if (row.taskInfo === '责任对接人选择责任人') { this.$router.push({ @@ -110,9 +111,166 @@ export default { prcType: row.prcType } }) + } else if (row.taskInfo === '责任对接人审批') { + this.$router.push({ + name: 'bzdyStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '标准法规工程师调研汇总'){ + this.$router.push({ + name: 'bzdyStep5', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '责任人会签'){ + this.$router.push({ + name: 'bzdyStep6', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '部长+对接人审核') { + this.$router.push({ + name: 'bzdyStep7', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo.indexOf('工程研究总院院长') == 0 ) { + this.$router.push({ + name: 'bzdyStep9', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else { + this.$router.push({ + name: 'bzdyStep8', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) } break; - //标准清单更新/发布流程 + case '3': + if (row.taskInfo === '责任对接人选择责任人') { + this.$router.push({ + name: 'bzzqyjStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '责任人填写征求意见'){ + this.$router.push({ + name: 'bzzqyjStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '责任对接人审批') { + this.$router.push({ + name: 'bzzqyjStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '标准法规工程师汇总填写处理意见') { + this.$router.push({ + name: 'bzzqyjStep5', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '责任人会签') { + this.$router.push({ + name: 'bzzqyjStep6', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '部长+对接人审核') { + this.$router.push({ + name: 'bzzqyjStep7', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo.indexOf('技术委员会相关专委会主任') == 0 ) { + this.$router.push({ + name: 'bzzqyjStep8', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else { + this.$router.push({ + name: 'bzzqyjStep9', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break + //标准清单更新/发布流程 case'4' : if (row.taskInfo === '进行会签,填写意见') { this.$router.push({ @@ -148,8 +306,8 @@ export default { } }) } - break; - //项目合规评估流程 + break + //项目合规评估流程 case '5' : if(row.taskInfo === '标准法规部业务经理审批'){ this.$router.push({ @@ -162,8 +320,293 @@ export default { prcType: row.prcType } }) + }else if(row.taskInfo === '标准评估任务下发'){ + this.$router.push({ + name: 'xmpgStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if(row.taskInfo === '合规性评估'){ + this.$router.push({ + name: 'xmpgStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if(row.taskInfo === '分发责任人审核'){ + this.$router.push({ + name: 'xmpgStep5', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if(row.taskInfo === '汇总审核'){ + this.$router.push({ + name: 'xmpgStep6', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if(row.taskInfo === '标准法规部领导审核'){ + this.$router.push({ + name: 'xmpgStep7', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break + //项目评估流程-项目 + case '6': + if(row.taskInfo === '标准法规部业务经理审批'){ + this.$router.push({ + name: 'xmpg2Step2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if(row.taskInfo === '工程经理转办'){ + this.$router.push({ + name: 'xmpg2Step3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '架构经理任务分发') { + this.$router.push({ + name: 'xmpg2Step4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '分发责任人下发') { + this.$router.push({ + name: 'xmpg2Step5', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '合规性评估') { + this.$router.push({ + name: 'xmpg2Step6', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '分发负责人审批') { + this.$router.push({ + name: 'xmpg2Step7', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '架构经理审批') { + this.$router.push({ + name: 'xmpg2Step8', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '工程经理审批') { + this.$router.push({ + name: 'xmpg2Step9', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '标准法规部经理审批') { + this.$router.push({ + name: 'xmpg2Step10', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '汇总审批') { + this.$router.push({ + name: 'xmpg2Step11', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if(row.taskInfo === '标准法规部部长审批') { + this.$router.push({ + name: 'xmpg2Step12', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break + //未符合项整改流程 + case '8' : + if(row.taskInfo === '下发至标准法规工程师'){ + this.$router.push({ + name: 'wfhxzgStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '确认+选择责任人') { + this.$router.push({ + name: 'wfhxzgStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else if (row.taskInfo === '上传佐证材料填写信息') { + this.$router.push({ + name: 'wfhxzgStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + }else { + this.$router.push({ + name: 'wfhxzgStep5', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } + break + case '9': + if (row.taskInfo === '选择执行人') { + this.$router.push({ + name: 'bzjdStep2', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '填写解读分析') { + this.$router.push({ + name: 'bzjdStep3', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '责任人审核') { + this.$router.push({ + name: 'bzjdStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '工程师审核') { + this.$router.push({ + name: 'bzjdStep5', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) + } else if (row.taskInfo === '部长审批') { + this.$router.push({ + name: 'bzjdStep6', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) } - } }, }, diff --git a/src/pages/localTool/standAutoSplit/index.vue b/src/pages/localTool/standAutoSplit/index.vue index e4306b6ee..3f07616db 100644 --- a/src/pages/localTool/standAutoSplit/index.vue +++ b/src/pages/localTool/standAutoSplit/index.vue @@ -51,20 +51,12 @@ prop="showNumber" label="标准号/政策号" align="center"> - - - - - + 失败 - + - - - + @click="getStandData"> 查询 @@ -601,7 +590,6 @@ - - - - + - - - + @click="getStandData"> 查询 @@ -610,24 +590,24 @@ align="center" label="发布日期"> + @@ -746,7 +729,7 @@ export default { directorUser: "", dockUserName: "", ministerUserName: "", - directorUserName: "", + directorUserName: "" }, formRules: { listType: [ @@ -806,14 +789,15 @@ export default { code: "", //标准号 standName: "", //标准名称 issueTime: "", //发布日期 - xcxssrqgj: "", //新车型实施日期 - zccssrqgj: "", //在产车实施日期 + XCXSSRQ: "", //新车型实施日期 + ZCCSSRQ: "", //在产车实施日期 textStatus: "", //文本状态 id: "" }] }, choiceForm: {}, //选择标准清单列表 // countryOptions: [], //适用区域下拉框数据 + standStateOptions: [], standardTypeOptions: [ { value: "INLAND", @@ -831,7 +815,8 @@ export default { user3: "", user4: "", user5: "", - standMap: new Map() + standMap: new Map(), + textStatusMap: {}// 文本状态id与name对应 }; }, methods: { @@ -949,10 +934,9 @@ export default { standType: "", standNumber: "" }; - this.addList(); + this.getStandData(); }, - //点击添加事件 - addList() { + getStandData() { this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", { standType: this.standardSearch.standType, standNumber: this.standardSearch.standNumber, @@ -963,12 +947,26 @@ export default { }, res => { this.standardData = res.data.list; this.standardData.forEach(item => { - this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQGJ) - this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQGJ) + if(item.attrInfoMap === null){ + this.$set(item, "ZCCSSRQ", ''); + this.$set(item, "XCXSSRQ", ''); + }else{ + this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ); + this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ); + } }) this.totalNo = res.data.count; }, e => { }); + }, + // 将文本状态的id与name对应 + setMap(data) { + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label); + }); + }, + //点击添加事件 + addList() { this.standModel = true; }, // 点击批量删除事件 @@ -1024,8 +1022,7 @@ export default { if (this.dataList.length < 1) { this.$message.warning("标准不能为空"); } else { - var json = Object.assign(this.listForm, this.roleForm) - console.log(json); + var json = Object.assign(this.listForm, this.roleForm); this.$refs["qdfbForm"].validate((valid) => { if (valid) { this.$refs["Form"].validate((valid) => { @@ -1066,10 +1063,8 @@ export default { middle.push(item.name); files.push(item.response.data.id); }); - this.listForm.fileName = middle.join(','); - this.listForm.fileId = files.join(','); - // this.fileListName = middle; - // this.fileIds = files; + this.fileListName = middle; + this.fileIds = files; }, fileUpload() { this.fileMadel = true; @@ -1083,17 +1078,18 @@ export default { }); this.fileListName = middle; this.fileIds.push(file.response.data.id); - if(this.listForm.fileName === null || this.listForm.fileName === undefined){ - this.listForm.fileName = this.fileListName.join(',') + // this.listForm.fileName = this.fileListName.join(','); + // this.listForm.fileId = this.fileIds.join(','); + if (this.listForm.fileName === null || this.listForm.fileName === undefined) { + this.listForm.fileName = this.fileListName.join(","); } else { - this.listForm.fileName = this.listForm.fileName + ',' + this.fileListName.join(','); + this.listForm.fileName = this.listForm.fileName + "," + this.fileListName.join(","); } - if(this.listForm.fileId === null || this.listForm.fileId === undefined){ - this.listForm.fileId = this.fileIds.join(',') - }else { - this.listForm.fileId = this.listForm.fileId + ',' + this.fileIds.join(',') + if (this.listForm.fileId === null || this.listForm.fileId === undefined) { + this.listForm.fileId = this.fileIds.join(","); + } else { + this.listForm.fileId = this.listForm.fileId + "," + this.fileIds.join(","); } - console.log(this.listForm); this.$message.success("上传成功"); } else { this.$message.error(res.message); @@ -1103,6 +1099,7 @@ export default { // 相关附件 上传之前钩子 beforeUpload(file) { var filename = file.name; + // this.listForm.fileName = this.listForm.fileName + ',' + file.name var index1 = filename.lastIndexOf("."); var index2 = filename.length; var fileSuffix = filename.substring(index1, index2); @@ -1196,7 +1193,7 @@ export default { if (this.standList.length < 1) { this.$message.warning("请选择需要添加进清单的数据"); } else { - let exits = [] + let exits = []; this.standList.map(item => { let newStand = false; for (let itemKey of this.dataList) { @@ -1209,13 +1206,13 @@ export default { this.$message.warning("请勿重复添加数据"); } else { this.dataList.push(item); - exits.push(item.id) + exits.push(item.id); } }); - if(this.listForm.inforlist === null || this.listForm.inforlist === undefined){ - this.listForm.inforlist = exits.join(',') + if (this.listForm.inforlist === null || this.listForm.inforlist === undefined || this.listForm.inforlist === "") { + this.listForm.inforlist = exits.join(","); } else { - this.listForm.inforlist = this.listForm.inforlist + ',' + exits.join(',') + this.listForm.inforlist = this.listForm.inforlist + "," + exits.join(","); } this.standardData = []; this.standModel = false; @@ -1236,7 +1233,11 @@ 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; + if(bringData[0].fileName === null ){ + this.listForm.fileName = '' + } else { + 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 }, { @@ -1246,6 +1247,15 @@ export default { res.data = []; } this.dataList = res.data; + this.dataList.forEach(item => { + if (item.xcxssrqgj === null){ + this.$set(item, "XCXSSRQ", ''); + this.$set(item, "ZCCSSRQ", ''); + }else{ + this.$set(item, "XCXSSRQ", item.xcxssrqgj); + this.$set(item, "ZCCSSRQ", item.zccssrqgj); + } + }) this.listForm.dataList = res.data; let formId = []; this.dataList.map(item => { @@ -1308,11 +1318,11 @@ export default { }, pageChangeNo(page) { this.pageNo = page; - this.addList(); + this.getStandData(); }, pageSizeChangeNo(pageSize) { this.pageSizeNo = this.$store.getters.userInfo.configContent; - this.addList(); + this.getStandData(); } }, @@ -1323,10 +1333,13 @@ export default { _this: this }, res => { this.countryOptions = res.data.COUNTRY; + this.standStateOptions = res.data.WBZTCLASS; // 文本状态 + this.setMap(this.standStateOptions); }); this.selectionList(); this.selectSign(); this.getTree(); + this.getStandData(); for (let i = 0; i < this.dataList.length; i++) { this.standMap.set(this.dataList[i].id, this.dataList[i]); } @@ -1345,12 +1358,15 @@ export default { padding: 0 20px 0; } } + .fileClass { cursor: pointer; } - .fileClass:hover{ + + .fileClass:hover { color: #0c91e5; } + p { & > a { cursor: pointer; @@ -1367,6 +1383,7 @@ export default { vertical-align: sub; cursor: pointer; } + .icon-download { background-image: url("~assets/images/shangqi/img/download.png"); } @@ -1375,6 +1392,7 @@ export default { background-image: url("~assets/images/shangqi/img/download2.png"); } } + .choiceBtn { .el-button--primary { width: 150px; diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue index b72ea854f..a72213d18 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue @@ -37,18 +37,19 @@ clearable > - -
-

{{ listForm.modelName }} + +

+

{{ item.name }} @@ -78,8 +79,11 @@ width="180px" label="标准号"> + + +

@@ -236,6 +249,7 @@ export default { selectedList: [], //选择清单的选择框 selectList: [], //选择标准的选择框 bringData: [], + fileList:[], fileIds: "", commentText: "", //填写会签意见 page: 1, @@ -267,7 +281,8 @@ export default { user3: "", user4: "", user5: "", - standMap: new Map() + standMap: new Map(), + textStatusMap: {}// 文本状态id与name对应 }; }, methods: { @@ -312,15 +327,14 @@ export default { getFormFieldList(item) { this.$nextTick(() => { this.listForm = JSON.parse(JSON.stringify(item)); + console.log(this.listForm.fileName); this.listForm.prcNum = this.prcNum; this.listForm.prcName = this.prcName; this.listForm["id"] = item.id; - this.listForm.dataList = item.dataList; this.dataList = item.dataList; - this.listForm.applyUpdUserId = item.applyUpdUserId; this.listForm.jlUserId = item.jlUserId; this.listForm.zrUserId = item.zrUserId; - this.fileIds = item.fileId + this.fileIds = item.fileId; this.getFileInfo(); }); }, @@ -331,11 +345,15 @@ export default { }, { _this: this }, res => { - console.log(res); this.$nextTick(() => { res.data.map(item => { - this.listForm.modelName = item.oldFileName - this.listForm.model = item.id + // 赋值要回显的上传文件内容 + this.fileList.push({ + name: item.oldFileName, + uid: item.uid, + status: item.status, + id: item.id + }); }); }); }, e => { @@ -369,8 +387,8 @@ export default { }, //提交事件 handleSubmit() { - if(this.commentText === null || this.commentText === undefined || this.commentText === ''){ - this.$message.warning('请填写会签意见') + if (this.commentText === null || this.commentText === undefined || this.commentText === "") { + this.$message.warning("请填写会签意见"); } this.listForm.commentText = this.commentText; this.listForm.approvalOpinion = ""; @@ -412,7 +430,24 @@ export default { pageSizeChange(pageSize) { this.pageSize = this.$store.getters.userInfo.configContent; this.searchData(); + }, + // 将文本状态的id与name对应 + setMap(data) { + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label); + }); + }, +// 点击查看 +handlePreview(item) { + let routeUrl = this.$router.resolve({ + name: "OtherStandardDetails", + params: { + id: item.id, + pageType: "INLAND_STAND" } + }); + window.open(routeUrl.href, "_blank"); +}, }, computed: { listNoDataText() { @@ -421,9 +456,17 @@ export default { }, watch: {}, mounted() { +//从数据库中查询下拉框数据 + this.$http.get("sys/dictype/getDicTypeListCode", {}, { + _this: this + }, res => { + this.countryOptions = res.data.COUNTRY; + this.standStateOptions = res.data.WBZTCLASS; // 文本状态 + this.setMap(this.standStateOptions); + }); this.processTable(); this.getData(); - } + }, }; @@ -437,12 +480,15 @@ export default { padding: 0 20px 0; } } + .fileClass { cursor: pointer; } - .fileClass:hover{ + + .fileClass:hover { color: #0c91e5; } + p { & > a { cursor: pointer; @@ -459,6 +505,7 @@ export default { vertical-align: sub; cursor: pointer; } + .icon-download { background-image: url("~assets/images/shangqi/img/download.png"); } diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue index df96a7531..936c44f14 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue @@ -100,12 +100,14 @@ + + +
@@ -216,6 +227,52 @@
+
+ + + + + + + + + + + + + 查询 + + + + 清空 + + + +
+ + + +
@@ -315,6 +391,26 @@ export default { standList: [], //新添加的标准 // 当前流程类型(1待办/2已办) processType: 1, + searching: false, + standardTypeOptions: [ + { + value: "INLAND", + label: "国内标准法规", + item: "INLAND" + }, + { + value: "FOREIGN", + label: "海外标准法规", + item: "FOREIGN" + } + ], + //查询添加标准相关数据 + standardSearch: { + standType: "", + standNumber: "", + pageNo: 1, + pageSizeNo: this.$store.getters.userInfo.configContent + }, loading: false, userId:this.$store.getters.userInfo.userId, taskIds: this.$route.query.taskIds, @@ -363,7 +459,8 @@ export default { user3: "", user4: "", user5: "", - standMap: new Map() + standMap: new Map(), + textStatusMap: {}// 文本状态id与name对应 }; }, methods: { @@ -383,6 +480,9 @@ export default { handleTabs(name) { this.active = name; }, + typeChange(type) { + this.standardSearch.standType = type; + }, // 点击查看 handlePreview(item) { let routeUrl = this.$router.resolve({ @@ -394,15 +494,38 @@ export default { }); window.open(routeUrl.href, "_blank"); }, - //点击添加事件 - addList() { - this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", "", { + clearStandSearch() { + this.standardSearch = { + standType: "", + standNumber: "" + }; + this.getStandData(); + }, + getStandData() { + this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", { + standType: this.standardSearch.standType, + standNumber: this.standardSearch.standNumber, + page: this.pageNo, + pageSize: this.pageSizeNo + }, { _this: this }, res => { this.standardData = res.data.list; - this.totalNo = res.data.pageCount + this.standardData.forEach(item => { + if(item.attrInfoMap === null){ + this.$set(item, "ZCCSSRQ", ''); + this.$set(item, "XCXSSRQ", ''); + }else{ + this.$set(item, "ZCCSSRQ", item.attrInfoMap.ZCCSSRQ); + this.$set(item, "XCXSSRQ", item.attrInfoMap.XCXSSRQ); + } + }) + this.totalNo = res.data.count; }, e => { }); + }, + //点击添加事件 + addList() { this.standModel = true; }, //添加标准select的改变 @@ -565,6 +688,12 @@ export default { this.addList() }, + // 将文本状态的id与name对应 + setMap(data) { + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label); + }); + }, }, computed: { listNoDataText () { @@ -572,8 +701,17 @@ export default { } }, mounted() { - this.getData() - this.processTable() + //从数据库中查询下拉框数据 + this.$http.get("sys/dictype/getDicTypeListCode", {}, { + _this: this + }, res => { + this.countryOptions = res.data.COUNTRY; + this.standStateOptions = res.data.WBZTCLASS; // 文本状态 + this.setMap(this.standStateOptions); + }); + this.getData(); + this.processTable(); + this.getStandData(); }, }; diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue index 0bb01ebaf..af40db76d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue @@ -74,12 +74,16 @@ fontWeight: 'bold', height: '48px'}"> + + +
@@ -272,7 +285,8 @@ user3: "", user4: "", user5: "", - standMap: new Map() + standMap: new Map(), + textStatusMap: {}// 文本状态id与name对应 }; }, methods: { @@ -296,6 +310,17 @@ choiceShow() { this.ListModel = true; }, + // 点击查看 + handlePreview(item) { + let routeUrl = this.$router.resolve({ + name: "OtherStandardDetails", + params: { + id: item.id, + pageType: "INLAND_STAND" + } + }); + window.open(routeUrl.href, "_blank"); + }, //保存事件 handleSave() { @@ -415,7 +440,13 @@ pageSizeChange(pageSize) { this.pageSize = this.$store.getters.userInfo.configContent; this.searchData(); - } + }, + // 将文本状态的id与name对应 + setMap(data) { + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label); + }); + }, }, computed: { listNoDataText() { @@ -423,6 +454,14 @@ } }, mounted() { + //从数据库中查询下拉框数据 + this.$http.get("sys/dictype/getDicTypeListCode", {}, { + _this: this + }, res => { + this.countryOptions = res.data.COUNTRY; + this.standStateOptions = res.data.WBZTCLASS; // 文本状态 + this.setMap(this.standStateOptions); + }); this.getData() this.processTable() }, diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 158a5e6b6..73e8b0114 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -638,8 +638,13 @@ - - + @@ -711,6 +716,20 @@ + + + {{'手动查找'}} + 1) { - fileList.splice(0, 1) + this.fileList = fileList.splice(0, 1) } if (response.ok) { this.fileMadel = false + this.fileList = [] if(this.fileType === 'fbgbjbd'){ this.form.fbgbjbd = response.data.id; this.form.fbgbjbdName = response.data.name; diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue index 7abdff57a..dd5c530aa 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step2.vue @@ -473,7 +473,15 @@ - + + + + + + + + + + {{'手动查找'}} + + - - - - - - - - - - -