diff --git a/src/assets/styles/phone.less b/src/assets/styles/phone.less index 510f507af..ad098c368 100644 --- a/src/assets/styles/phone.less +++ b/src/assets/styles/phone.less @@ -1,6 +1,31 @@ .phoneBox { width: 100%; height: 100%; + .headerTabs { + height: 52px; + display: flex; + align-items: center; + position: absolute; + top: 51px; + right: 10px; + .headerTabsItem { + border: 1px solid #c1c1c1; + padding: 0 5px; + height: 30px; + line-height: 30px; + cursor: pointer; + } + .active { + border: 1px solid #E6A23C; + color: #fff; + background: #E6A23C; + } + } + .content { + border-top: 1px solid #DCDFE6; + margin-top: 51px; + height: calc(~'100% - 154px'); + } } @media screen and (max-width: 1366px) { .el-message { diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue index 3c7b85390..d78451f29 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step1.vue @@ -258,7 +258,6 @@ import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' import { saveTaskFirst } from 'api/process' import { taskDel } from 'api/process' -// import { onlyOfficeUrl } from '@/sysConfig' export default { name: "bzdyStep1", data() { diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-3.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-3.vue index 23220c317..0f2559fc7 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1-3.vue @@ -155,11 +155,6 @@ :no-data-text="listNoDataText" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" > - - - - { - if (res.data === null) { - this.dataList = []; - } - this.dataList = res.data.records; - this.dataList.forEach(item => { - if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){ - item.xcxssrqgj = '' - }else{ - this.$set(item, "XCXSSRQ", item.xcxssrqgj) - } - if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){ - item.zccssrqgj = '' - }else{ - this.$set(item, "ZCCSSRQ", item.zccssrqgj) - } - }) - this.listForm.dataList = this.dataList; - let formId = []; - this.dataList.map(item => { - formId.push(item.id); + //如果是国家地区清单传入types字段对日期进行区分 + if(this.listType === 'country'){ + this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", + { id: this.selectedList[0].id, types: '1', page: this.page, Size: this.pageSize }, { + _this: this + }, res => { + if (res.data === null) { + this.dataList = []; + } + this.dataList = res.data.records; + this.dataList.forEach(item => { + if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){ + item.xcxssrqgj = '' + }else{ + this.$set(item, "XCXSSRQ", item.xcxssrqgj) + } + if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){ + item.zccssrqgj = '' + }else{ + this.$set(item, "ZCCSSRQ", item.zccssrqgj) + } + }) + this.listForm.dataList = this.dataList; + let formId = []; + this.dataList.map(item => { + formId.push(item.id); + }); + this.listForm.inforlist = formId.join(","); + }, e => { }); - this.listForm.inforlist = formId.join(","); - }, e => { - }); + }else{ + this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", + { id: this.selectedList[0].id, page: this.page, Size: this.pageSize }, { + _this: this + }, res => { + if (res.data === null) { + this.dataList = []; + } + this.dataList = res.data.records; + this.dataList.forEach(item => { + if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){ + item.xcxssrqgj = '' + }else{ + this.$set(item, "XCXSSRQ", item.xcxssrqgj) + } + if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){ + item.zccssrqgj = '' + }else{ + this.$set(item, "ZCCSSRQ", item.zccssrqgj) + } + }) + this.listForm.dataList = this.dataList; + let formId = []; + this.dataList.map(item => { + formId.push(item.id); + }); + this.listForm.inforlist = formId.join(","); + }, e => { + }); + } this.$refs.detailedSelection.clearSelection() } else { this.$message.warning("请选择一条数据进行带入"); diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue index 3462d36d7..0f5cf113e 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue @@ -40,7 +40,7 @@

{{ item.name }} + :key="item.id" @click="clickButtonToUpload2(item.id)"> {{ item.name }} - - { }); }, + clickButtonToUpload2(file) { + const attId = file + this.$preview(attId) + }, /** * @Description: 点击下载 */ diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue index 04670faab..6e7bdb10f 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue @@ -170,11 +170,6 @@ :no-data-text="listNoDataText" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" > - -

{{ item.name }} + :key="item.id" @click="clickButtonToUpload2(item.id)"> {{ item.name }} - - { }); }, + //点击预览 + clickButtonToUpload2(file) { + const attId = file + this.$preview(attId) + }, /** * @Description: 点击下载 */ diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index 37f0c3a61..87e0577b2 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -986,13 +986,20 @@ - - - + + + + + + - + + v-model="replaceLawsNumForm.standNumber" + placeholder="根据标准编号查找" + clearable + :maxlength="100"> + + + 标准法规部领导审批

-
基础信息
基础信息
审批历史
diff --git a/src/pages/processCenter/pages/phone/bzdy/step2.vue b/src/pages/processCenter/pages/phone/bzdy/step2.vue index 75a93ce3f..4b4f5c805 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step2.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step2.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -45,12 +45,12 @@
{{ item.name }} - + + + + + +
@@ -61,12 +61,12 @@
{{ item.name }} - + + + + + +
@@ -79,7 +79,7 @@ style="display: none;" clearable > - + @@ -136,7 +136,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew,getBusStandFileByAttId} from 'api/process' + import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process' import axios from "axios"; export default { @@ -180,41 +180,9 @@ ProcessTitle }, methods: { - getBusStandFileByAttId(attId) { - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, clickButtonToUpload(file) { const attId = file.attId - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, handleTransfer() { this.drawerModal = true @@ -265,14 +233,16 @@ checkedRole2 (data) { var idList = '' var nameList = '' - data.forEach( item => { - if (nameList.length > 0) { - nameList += ',' - idList += ',' - } - idList += item.id - nameList += item.name - }) + if (data.length) { + data.forEach( item => { + if (nameList.length > 0) { + nameList += ',' + idList += ',' + } + idList += item.id + nameList += item.name + }) + } this.form.responUserList = idList this.form.responUserListName = nameList }, @@ -370,31 +340,10 @@ } position: relative; height: 100%; - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 0; - right: 10px; - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } .content { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); overflow: auto; .tableTitle { margin-bottom: 10px; diff --git a/src/pages/processCenter/pages/phone/bzdy/step4.vue b/src/pages/processCenter/pages/phone/bzdy/step4.vue index c463f2be3..e3794e810 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step4.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step4.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -45,12 +45,12 @@
{{ item.name }} - + + + + + +
@@ -61,26 +61,18 @@
{{ item.name }} - + + + + + +
- -
- - - - - - - -
@@ -99,12 +91,12 @@
{{ form.fileName }}
- + + + + + +
@@ -176,7 +168,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew,getBusStandFileByAttId} from 'api/process' + import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process' import axios from "axios"; export default { @@ -220,62 +212,13 @@ ProcessTitle }, methods: { - getBusStandFileByAttId(attId) { - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, clickButtonToUpload2(file) { const attId = file - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, clickButtonToUpload(file) { const attId = file.attId - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, handleTransfer() { this.drawerModal = true @@ -410,31 +353,10 @@ .fileClass:hover{ color: #0c91e5; } - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 0; - right: 10px; - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } .content { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); overflow: auto; .tableTitle { margin-bottom: 10px; diff --git a/src/pages/processCenter/pages/phone/bzdy/step6.vue b/src/pages/processCenter/pages/phone/bzdy/step6.vue index 38fe0dbd4..e650dc453 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step6.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step6.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -44,24 +44,17 @@
{{ form.hzfileName }} - + + + + + +
- -
- - - - - - -
@@ -100,12 +93,12 @@ @@ -178,7 +171,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - import {inboundLiaisonDetail,changeAssigneeNew,getBusStandFileByAttId} from 'api/process' + import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process' import axios from "axios"; export default { @@ -218,41 +211,9 @@ ProcessTitle }, methods: { - getBusStandFileByAttId(attId) { - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, clickButtonToUpload2(file) { const attId = file - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, handleTransfer() { this.drawerModal = true @@ -425,31 +386,10 @@ .fileClass:hover{ color: #0c91e5; } - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 0; - right: 10px; - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } .content { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); overflow: auto; .tableTitle { margin-bottom: 10px; diff --git a/src/pages/processCenter/pages/phone/bzdy/step7.vue b/src/pages/processCenter/pages/phone/bzdy/step7.vue index d3a932938..38e644e4e 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step7.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step7.vue @@ -15,7 +15,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -41,20 +41,13 @@ -
+
{{ form.hzfileName }}
- -
- - - - - - -
@@ -91,7 +84,7 @@ label="文件" align="center"> @@ -223,7 +216,8 @@ }, e => {}) }, updateFile (fileId) { - window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId + this.$preview(fileId) + // window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId }, // 导入按钮 上传之前的钩子 beginImportFile (file) { @@ -342,33 +336,12 @@ /deep/.prc-content-border .el-form-item__content { width: 270px; } - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 52px; - right: 10px; - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } .content { border-top: 1px solid #DCDFE6; display: flex; flex-direction: column; justify-content: space-between; margin-top: 52px; - height: calc(~'100% - 155px'); overflow: auto; .tableTitle { margin-bottom: 10px; diff --git a/src/pages/processCenter/pages/phone/bzdy/step8.vue b/src/pages/processCenter/pages/phone/bzdy/step8.vue index e4605abea..8f143b491 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step8.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step8.vue @@ -15,7 +15,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -223,7 +223,7 @@ }, e => {}) }, updateFile (fileId) { - window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId + this.$preview(fileId) }, // 导入按钮 上传之前的钩子 beginImportFile (file) { @@ -342,33 +342,12 @@ /deep/.prc-content-border .el-form-item__content { width: 270px; } - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 52px; - right: 10px; - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } .content { border-top: 1px solid #DCDFE6; display: flex; flex-direction: column; justify-content: space-between; margin-top: 52px; - height: calc(~'100% - 155px'); overflow: auto; .tableTitle { margin-bottom: 10px; diff --git a/src/pages/processCenter/pages/phone/bzdy/step9.vue b/src/pages/processCenter/pages/phone/bzdy/step9.vue index e6f65fb8b..e65fd3241 100644 --- a/src/pages/processCenter/pages/phone/bzdy/step9.vue +++ b/src/pages/processCenter/pages/phone/bzdy/step9.vue @@ -15,7 +15,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -48,13 +48,6 @@ - -
- - - - - - -
@@ -223,7 +216,7 @@ }, e => {}) }, updateFile (fileId) { - window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId + this.$preview(fileId) }, // 导入按钮 上传之前的钩子 beginImportFile (file) { @@ -342,33 +335,12 @@ /deep/.prc-content-border .el-form-item__content { width: 270px; } - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 52px; - right: 10px; - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } .content { border-top: 1px solid #DCDFE6; display: flex; flex-direction: column; justify-content: space-between; margin-top: 52px; - height: calc(~'100% - 155px'); overflow: auto; .tableTitle { margin-bottom: 10px; diff --git a/src/pages/processCenter/pages/phone/bzjd/step4.vue b/src/pages/processCenter/pages/phone/bzjd/step4.vue index da817bd75..4b1877357 100644 --- a/src/pages/processCenter/pages/phone/bzjd/step4.vue +++ b/src/pages/processCenter/pages/phone/bzjd/step4.vue @@ -14,7 +14,7 @@ ref="bzzqyjForm" :model="form" class="label-input-form" - label-width="210px" + label-width="100px" > diff --git a/src/pages/processCenter/pages/phone/bzjd/step5.vue b/src/pages/processCenter/pages/phone/bzjd/step5.vue index 829bbc3b5..74c4437a3 100644 --- a/src/pages/processCenter/pages/phone/bzjd/step5.vue +++ b/src/pages/processCenter/pages/phone/bzjd/step5.vue @@ -14,7 +14,7 @@ ref="bzzqyjForm" :model="form" class="label-input-form" - label-width="210px" + label-width="100px" > diff --git a/src/pages/processCenter/pages/phone/bzjd/step6.vue b/src/pages/processCenter/pages/phone/bzjd/step6.vue index 45749cb27..8da9a9684 100644 --- a/src/pages/processCenter/pages/phone/bzjd/step6.vue +++ b/src/pages/processCenter/pages/phone/bzjd/step6.vue @@ -14,7 +14,7 @@ ref="bzzqyjForm" :model="form" class="label-input-form" - label-width="210px" + label-width="100px" > diff --git a/src/pages/processCenter/pages/phone/bzqdfb/step4.vue b/src/pages/processCenter/pages/phone/bzqdfb/step4.vue index a29b3fab2..c3d7e0ab6 100644 --- a/src/pages/processCenter/pages/phone/bzqdfb/step4.vue +++ b/src/pages/processCenter/pages/phone/bzqdfb/step4.vue @@ -40,7 +40,8 @@

{{ item.name }} + :key="item.id" @click="clickButtonToUpload2(item.id)"> + {{ item.name }} { }); }, + //点击预览 + clickButtonToUpload2(file) { + const attId = file + this.$preview(attId) + }, /** * @Description: 点击下载 */ diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step2.vue b/src/pages/processCenter/pages/phone/bzzqyj/step2.vue index 159b61275..6d2074f2b 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step2.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step2.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -51,12 +51,12 @@ v-for="(item, index) in form.fjList" :key="index"> {{ item.fileName }} - + + + + + +

@@ -64,12 +64,12 @@
{{ item.name }} - + + + + + +
@@ -82,7 +82,7 @@ style="display: none;" clearable > - + @@ -191,7 +191,7 @@ import ProcessHeaderPhone from "../../components/ProcessHeaderPhone"; import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; - import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew,getBusStandFileByAttId} from "api/process"; + import { inboundLiaisonDetail, processCreateStand, saveTaskForPub, changeAssigneeNew} from "api/process"; import axios from "axios"; export default { @@ -246,41 +246,9 @@ this.$message.warning('文件不存在,下载失败') } }, - getBusStandFileByAttId(attId) { // 预览 - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, fileLook(file) { // 预览 const attId = file.attId - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, handleTransfer() { this.drawerModal = true @@ -329,14 +297,16 @@ checkedRole2(data) { var idList = ""; var nameList = ""; - data.forEach(item => { - if (nameList.length > 0) { - nameList += ","; - idList += ","; - } - idList += item.id; - nameList += item.name; - }); + if (data.length) { + data.forEach(item => { + if (nameList.length > 0) { + nameList += ","; + idList += ","; + } + idList += item.id; + nameList += item.name; + }); + } this.form.responUserList = idList; this.form.responUserListName = nameList; @@ -437,48 +407,19 @@ padding: 0 20px 0; } } - .fileClass { cursor: pointer; } - .fileClass:hover { color: #0c91e5; } - position: relative; height: 100%; - - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 0; - right: 10px; - - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } - .content { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); overflow: auto; - .tableTitle { margin-bottom: 10px; height: 30px; diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue b/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue index 338a9c788..41a91f071 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step4-1.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -51,12 +51,12 @@ v-for="(item, index) in form.fjList" :key="index"> {{ item.fileName }} - + + + + + +
@@ -64,12 +64,12 @@
{{ item.name }} - + + + + + +
@@ -82,7 +82,7 @@ style="display: none;" clearable > - + @@ -263,7 +263,7 @@ import ProcessHeaderPhone from "../../components/ProcessHeaderPhone"; import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process' + import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process' import axios from "axios"; export default { @@ -328,41 +328,9 @@ this.$message.warning('文件不存在,下载失败') } }, - getBusStandFileByAttId(attId) { // 预览 - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, fileLook(file) { // 预览 const attId = file.attId - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, checkedRole2(data) { this.form.bzfgId = data[0].id @@ -522,46 +490,18 @@ padding: 0 20px 0; } } - .fileClass { cursor: pointer; } - .fileClass:hover { color: #0c91e5; } - position: relative; height: 100%; - - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 0; - right: 10px; - - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } - .content { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); overflow: auto; .tableTitle { diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue b/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue index 20af2e63b..d18fb4b18 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step4-2.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -51,12 +51,12 @@ v-for="(item, index) in form.fjList" :key="index"> {{ item.fileName }} - + + + + + +
@@ -64,12 +64,12 @@
{{ item.name }} - + + + + + +
@@ -324,41 +324,9 @@ this.$message.warning('文件不存在,下载失败') } }, - getBusStandFileByAttId(attId) { // 预览 - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, fileLook(file) { // 预览 const attId = file.attId - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, checkedRole2(data) { this.form.bzfgId = data[0].id @@ -509,46 +477,18 @@ padding: 0 20px 0; } } - .fileClass { cursor: pointer; } - .fileClass:hover { color: #0c91e5; } - position: relative; height: 100%; - - .headerTabs { - height: 52px; - display: flex; - align-items: center; - position: absolute; - top: 0; - right: 10px; - - .headerTabsItem { - border: 1px solid #c1c1c1; - padding: 0 5px; - height: 30px; - line-height: 30px; - cursor: pointer; - } - - .active { - border: 1px solid #E6A23C; - color: #fff; - background: #E6A23C; - } - } - .content { display: flex; flex-direction: column; justify-content: space-between; - height: calc(~'100% - 103px'); overflow: auto; .tableTitle { diff --git a/src/pages/processCenter/pages/phone/bzzqyj/step6.vue b/src/pages/processCenter/pages/phone/bzzqyj/step6.vue index 495efdc38..1ee72cb7d 100644 --- a/src/pages/processCenter/pages/phone/bzzqyj/step6.vue +++ b/src/pages/processCenter/pages/phone/bzzqyj/step6.vue @@ -16,7 +16,7 @@ :model="form" :rules="formRules" class="label-input-form" - label-width="210px" + label-width="100px" > @@ -51,12 +51,12 @@ v-for="(item, index) in form.fjList" :key="index"> {{ item.fileName }} - + + + + + +
@@ -64,12 +64,12 @@
{{ item.name }} - + + + + + +
@@ -214,7 +214,7 @@ import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; - import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process"; + import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process"; import axios from "axios"; export default { @@ -284,41 +284,9 @@ this.$message.warning('文件不存在,下载失败') } }, - getBusStandFileByAttId(attId) { // 预览 - return new Promise((resolve, reject) => { - getBusStandFileByAttId({ - attId - }).then(res => { - if (res.ok) { - resolve(res.data) - } else { - reject() - } - }).catch(e => { - reject(e) - }) - }) - }, fileLook(file) { // 预览 const attId = file.attId - this.getBusStandFileByAttId(attId) - .then(res => { - if(res){ - const editFileInfo = res - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else if(editFileInfo.fileSuffix === 'pdf' || editFileInfo.fileSuffix === 'PDF'){ - window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - }).catch(e => { - this.$message.warning('文件不存在,预览失败') - }) + this.$preview(attId) }, itermsConditionsClose () { this.itermsConditionsFlag = false @@ -500,7 +468,6 @@