diff --git a/src/pages/processCenter/pages/phone/qbzxdjhgk/step2.vue b/src/pages/processCenter/pages/phone/qbzxdjhgk/step2.vue index f1d0a3166..88f533b92 100644 --- a/src/pages/processCenter/pages/phone/qbzxdjhgk/step2.vue +++ b/src/pages/processCenter/pages/phone/qbzxdjhgk/step2.vue @@ -3,103 +3,26 @@
- +
基础信息
审批历史
-
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + - - + + + + + + + + + + + + + + +
+ {{ item.name }} + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
@@ -245,13 +93,6 @@ @submit="handleSubmit" > - { this.BZList = res.data.ENERGYTYPES //标准范围 + this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别 + this.cbcdOptions = res.data.DEGREESTANDARD //采标程度 }) }, methods:{ + // 文件预览及下载 + handleFilePreview(file,type) { + let id = "" + let fileName = "" + if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){ + fileName = this.qbfsForm.esName+'-立项单.docx' + }else { + fileName = '立项单.docx' + } + if(file && file.id){ + id = file.id + }else { + id = file.response.data.id + } + if (type === 'down') { + if (id) { + window.open('/api/lawss/activiti/downloadFileForSar?fileId=' + id +'&oldFileName='+fileName) + } else { + this.$message.warning('文件不存在,下载失败') + } + } else if(type === 'preview'){ + this.$onlinePreview(id) + }else { + this.$onlineEdit(id,'立项单',this.$store.getters.userInfo.account,this.$store.getters.userInfo.userName) + } + }, processTable() { this.$http.get("lawss/activiti/get_list_by_instance", { prcNum: this.$route.query.prcNum, @@ -344,9 +214,21 @@ export default { console.log(item); this.$nextTick(() => { this.qbfsForm = JSON.parse(JSON.stringify(item)) + this.qbfsForm.useLevelShow = '29l0zgltnq' ? 'IDT等同采用' : ('9te26649ne' ? 'NEQ非等效采用' : 'MOD修改采用') this.type = item.type + this.LXDList=this.assemble(this.qbfsForm.LXD,this.qbfsForm.LXDName); }) }, + assemble(ids,names){ + let list= new Array(); + let idArray=ids.split(','); + let nameArray=names.split(','); + for(let i=0; i - +
基础信息
审批历史
-
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + - - + + + + + + + + + + + + + + +
+ {{ item.name }} + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
@@ -289,6 +137,8 @@ export default { drawerTitle: '', detailData: [], BZList: [], + cbcdOptions: [], + standSortOptions: [], } }, mounted() { @@ -299,9 +149,37 @@ export default { _this: this }, res => { this.BZList = res.data.ENERGYTYPES //标准范围 + this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别 + this.cbcdOptions = res.data.DEGREESTANDARD //采标程度 }) }, methods:{ + // 文件预览及下载 + handleFilePreview(file,type) { + let id = "" + let fileName = "" + if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){ + fileName = this.qbfsForm.esName+'-立项单.docx' + }else { + fileName = '立项单.docx' + } + if(file && file.id){ + id = file.id + }else { + id = file.response.data.id + } + if (type === 'down') { + if (id) { + window.open('/api/lawss/activiti/downloadFileForSar?fileId=' + id +'&oldFileName='+fileName) + } else { + this.$message.warning('文件不存在,下载失败') + } + } else if(type === 'preview'){ + this.$onlinePreview(id) + }else { + this.$onlineEdit(id,'立项单',this.$store.getters.userInfo.account,this.$store.getters.userInfo.userName) + } + }, processTable() { this.$http.get("lawss/activiti/get_list_by_instance", { prcNum: this.$route.query.prcNum, @@ -337,6 +215,8 @@ export default { this.$nextTick(() => { this.qbfsForm = JSON.parse(JSON.stringify(item)) this.type = item.type + this.qbfsForm.useLevelShow = '29l0zgltnq' ? 'IDT等同采用' : ('9te26649ne' ? 'NEQ非等效采用' : 'MOD修改采用') + this.LXDList=this.assemble(this.qbfsForm.LXD,this.qbfsForm.LXDName); }) }, handleTabs(name){ diff --git a/src/pages/processCenter/pages/phone/qbzxdjhgk/step4.vue b/src/pages/processCenter/pages/phone/qbzxdjhgk/step4.vue index 4c18301c9..8947abc82 100644 --- a/src/pages/processCenter/pages/phone/qbzxdjhgk/step4.vue +++ b/src/pages/processCenter/pages/phone/qbzxdjhgk/step4.vue @@ -3,103 +3,26 @@
- +
基础信息
审批历史
-
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + - - + + + + + + + + + + + + + + +
+ {{ item.name }} + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
@@ -289,6 +137,8 @@ export default { drawerTitle: '', detailData: [], BZList: [], + cbcdOptions: [], + standSortOptions: [], } }, mounted() { @@ -299,9 +149,37 @@ export default { _this: this }, res => { this.BZList = res.data.ENERGYTYPES //标准范围 + this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别 + this.cbcdOptions = res.data.DEGREESTANDARD //采标程度 }) }, methods:{ + // 文件预览及下载 + handleFilePreview(file,type) { + let id = "" + let fileName = "" + if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){ + fileName = this.qbfsForm.esName+'-立项单.docx' + }else { + fileName = '立项单.docx' + } + if(file && file.id){ + id = file.id + }else { + id = file.response.data.id + } + if (type === 'down') { + if (id) { + window.open('/api/lawss/activiti/downloadFileForSar?fileId=' + id +'&oldFileName='+fileName) + } else { + this.$message.warning('文件不存在,下载失败') + } + } else if(type === 'preview'){ + this.$onlinePreview(id) + }else { + this.$onlineEdit(id,'立项单',this.$store.getters.userInfo.account,this.$store.getters.userInfo.userName) + } + }, processTable() { this.$http.get("lawss/activiti/get_list_by_instance", { prcNum: this.$route.query.prcNum, @@ -333,10 +211,11 @@ export default { * @description: 动态表单读取 */ getFormFieldList (item) { - console.log(item); this.$nextTick(() => { this.qbfsForm = JSON.parse(JSON.stringify(item)) this.type = item.type + this.qbfsForm.useLevelShow = '29l0zgltnq' ? 'IDT等同采用' : ('9te26649ne' ? 'NEQ非等效采用' : 'MOD修改采用') + this.LXDList=this.assemble(this.qbfsForm.LXD,this.qbfsForm.LXDName); }) }, handleTabs(name){ diff --git a/src/pages/processCenter/pages/phone/qbzxdjhgk/step5.vue b/src/pages/processCenter/pages/phone/qbzxdjhgk/step5.vue index e0180a976..751c14171 100644 --- a/src/pages/processCenter/pages/phone/qbzxdjhgk/step5.vue +++ b/src/pages/processCenter/pages/phone/qbzxdjhgk/step5.vue @@ -3,103 +3,26 @@
- +
基础信息
审批历史
-
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - + - - + + + + + + + + + + + + + + +
+ {{ item.name }} + + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + +
@@ -289,6 +137,8 @@ export default { drawerTitle: '', detailData: [], BZList: [], + cbcdOptions: [], + standSortOptions: [], } }, mounted() { @@ -299,9 +149,37 @@ export default { _this: this }, res => { this.BZList = res.data.ENERGYTYPES //标准范围 + this.standSortOptions = res.data.BUSSSTANDCLASS // 标准类别 + this.cbcdOptions = res.data.DEGREESTANDARD //采标程度 }) }, methods:{ + // 文件预览及下载 + handleFilePreview(file,type) { + let id = "" + let fileName = "" + if(this.qbfsForm.esName && this.qbfsForm.esName !== ''){ + fileName = this.qbfsForm.esName+'-立项单.docx' + }else { + fileName = '立项单.docx' + } + if(file && file.id){ + id = file.id + }else { + id = file.response.data.id + } + if (type === 'down') { + if (id) { + window.open('/api/lawss/activiti/downloadFileForSar?fileId=' + id +'&oldFileName='+fileName) + } else { + this.$message.warning('文件不存在,下载失败') + } + } else if(type === 'preview'){ + this.$onlinePreview(id) + }else { + this.$onlineEdit(id,'立项单',this.$store.getters.userInfo.account,this.$store.getters.userInfo.userName) + } + }, processTable() { this.$http.get("lawss/activiti/get_list_by_instance", { prcNum: this.$route.query.prcNum, @@ -333,10 +211,11 @@ export default { * @description: 动态表单读取 */ getFormFieldList (item) { - console.log(item); this.$nextTick(() => { this.qbfsForm = JSON.parse(JSON.stringify(item)) this.type = item.type + this.qbfsForm.useLevelShow = '29l0zgltnq' ? 'IDT等同采用' : ('9te26649ne' ? 'NEQ非等效采用' : 'MOD修改采用') + this.LXDList=this.assemble(this.qbfsForm.LXD,this.qbfsForm.LXDName); }) }, handleTabs(name){ @@ -387,6 +266,8 @@ export default { handleSubmit(){ this.isSubmit = true this.qbfsForm.bzfgbzFlag = '0' + this.qbfsForm.planStatus = '未开始' + this.qbfsForm.area = this.qbfsForm.area.join(',') this.qbfsForm.commentText = this.commentText let json = JSON.stringify(this.qbfsForm); this.$http.post('lawss/activiti/completeTask', {