Merge branch 'develop' into FOTON

This commit is contained in:
super_liu
2021-12-23 16:36:30 +08:00
61 changed files with 517 additions and 2792 deletions
+25
View File
@@ -1,6 +1,31 @@
.phoneBox { .phoneBox {
width: 100%; width: 100%;
height: 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) { @media screen and (max-width: 1366px) {
.el-message { .el-message {
@@ -258,7 +258,6 @@ import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import { saveTaskFirst } from 'api/process' import { saveTaskFirst } from 'api/process'
import { taskDel } from 'api/process' import { taskDel } from 'api/process'
// import { onlyOfficeUrl } from '@/sysConfig'
export default { export default {
name: "bzdyStep1", name: "bzdyStep1",
data() { data() {
@@ -155,11 +155,6 @@
:no-data-text="listNoDataText" :no-data-text="listNoDataText"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
> >
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="任务步骤" label="任务步骤"
@@ -152,11 +152,6 @@
:no-data-text="listNoDataText" :no-data-text="listNoDataText"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
> >
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="任务步骤" label="任务步骤"
@@ -1287,35 +1287,66 @@ export default {
this.fileInfoList = [] this.fileInfoList = []
} }
this.ListModel = false; this.ListModel = false;
//如果是国家地区清单传入types字段对日期进行区分
this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", if(this.listType === 'country'){
{ id: this.selectedList[0].id, page: this.page, Size: this.pageSize }, { this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById",
_this: this { id: this.selectedList[0].id, types: '1', page: this.page, Size: this.pageSize }, {
}, res => { _this: this
if (res.data === null) { }, res => {
this.dataList = []; if (res.data === null) {
} this.dataList = [];
this.dataList = res.data.records; }
this.dataList.forEach(item => { this.dataList = res.data.records;
if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){ this.dataList.forEach(item => {
item.xcxssrqgj = '' if(item.xcxssrqgj === 'undefined' ||item.xcxssrqgj === '-' || item.xcxssrqgj === 'null'){
}else{ item.xcxssrqgj = ''
this.$set(item, "XCXSSRQ", item.xcxssrqgj) }else{
} this.$set(item, "XCXSSRQ", item.xcxssrqgj)
if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){ }
item.zccssrqgj = '' if(item.zccssrqgj === 'undefined' || item.zccssrqgj === '-'|| item.zccssrqgj === 'null'){
}else{ item.zccssrqgj = ''
this.$set(item, "ZCCSSRQ", item.zccssrqgj) }else{
} this.$set(item, "ZCCSSRQ", item.zccssrqgj)
}) }
this.listForm.dataList = this.dataList; })
let formId = []; this.listForm.dataList = this.dataList;
this.dataList.map(item => { let formId = [];
formId.push(item.id); this.dataList.map(item => {
formId.push(item.id);
});
this.listForm.inforlist = formId.join(",");
}, e => {
}); });
this.listForm.inforlist = formId.join(","); }else{
}, e => { 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() this.$refs.detailedSelection.clearSelection()
} else { } else {
this.$message.warning("请选择一条数据进行带入"); this.$message.warning("请选择一条数据进行带入");
@@ -40,7 +40,7 @@
<el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled"> <el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled">
<div class="file-box" v-if="fileList.length > 0"> <div class="file-box" v-if="fileList.length > 0">
<p v-for="item in fileList" <p v-for="item in fileList"
:key="item.id"> {{ item.name }} :key="item.id" @click="clickButtonToUpload2(item.id)"> {{ item.name }}
<i <i
title="下载" title="下载"
@click="downloadFile(item.id)" @click="downloadFile(item.id)"
@@ -151,11 +151,6 @@
:no-data-text="listNoDataText" :no-data-text="listNoDataText"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
> >
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="任务步骤" label="任务步骤"
@@ -372,6 +367,10 @@ export default {
}, e => { }, e => {
}); });
}, },
clickButtonToUpload2(file) {
const attId = file
this.$preview(attId)
},
/** /**
* @Description: 点击下载 * @Description: 点击下载
*/ */
@@ -170,11 +170,6 @@
:no-data-text="listNoDataText" :no-data-text="listNoDataText"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
> >
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="任务步骤" label="任务步骤"
@@ -779,7 +774,6 @@ export default {
this.listForm.jlUserId = item.jlUserId this.listForm.jlUserId = item.jlUserId
this.listForm.zrUserId = item.zrUserId this.listForm.zrUserId = item.zrUserId
this.fileInfoList = item.fileName this.fileInfoList = item.fileName
this.commentText = item.commentText
} else { } else {
this.listForm = item.form this.listForm = item.form
this.dataList = item.form.dataList this.dataList = item.form.dataList
@@ -40,7 +40,7 @@
<el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled"> <el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled">
<div class="file-box" v-if="fileList.length > 0"> <div class="file-box" v-if="fileList.length > 0">
<p v-for="item in fileList" <p v-for="item in fileList"
:key="item.id"> {{ item.name }} :key="item.id" @click="clickButtonToUpload2(item.id)"> {{ item.name }}
<i <i
title="下载" title="下载"
@click="downloadFile(item.id)" @click="downloadFile(item.id)"
@@ -152,11 +152,6 @@
:no-data-text="listNoDataText" :no-data-text="listNoDataText"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
> >
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column <el-table-column
prop="name" prop="name"
label="任务步骤" label="任务步骤"
@@ -441,6 +436,11 @@ export default {
}, e => { }, e => {
}); });
}, },
//点击预览
clickButtonToUpload2(file) {
const attId = file
this.$preview(attId)
},
/** /**
* @Description: 点击下载 * @Description: 点击下载
*/ */
@@ -986,13 +986,20 @@
<el-option value="FOREIGN" label="国外标准库"></el-option> <el-option value="FOREIGN" label="国外标准库"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="编号/名称" class="search-item"> <el-form-item label="标准编号" class="search-item">
<el-input <el-input
v-model="replaceLawsNumForm.standNumber" v-model="replaceLawsNumForm.standNumber"
placeholder="根据编号/名称查找" placeholder="根据标准编号查找"
clearable clearable
:maxlength="100"></el-input> :maxlength="100"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="标准名称" class="search-item">
<el-input
v-model="replaceLawsNumForm.standName"
placeholder="根据标准名称查找"
clearable
:maxlength="100"></el-input>
</el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
size="mini" size="mini"
@@ -1196,7 +1203,7 @@
:data="tableData.standardData" :data="tableData.standardData"
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%;" style="width: 100%;"
:height="tableHeight.standardTableHeight" height="100%"
border border
class="drag-table" class="drag-table"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}"
@@ -1385,6 +1392,7 @@
replaceLawsNumForm: { replaceLawsNumForm: {
dataSource: '', dataSource: '',
standNumber: '', // 标准编号 standNumber: '', // 标准编号
standName: '', // 标准名称
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
total: 0, total: 0,
@@ -1256,12 +1256,19 @@
<el-option value="FOREIGN" label="国外标准库"></el-option> <el-option value="FOREIGN" label="国外标准库"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="编号/名称" class="search-item"> <el-form-item label="标准编号" class="search-item">
<el-input <el-input
v-model="replaceLawsNumForm.standNumber" v-model="replaceLawsNumForm.standNumber"
placeholder="根据编号/名称查找" placeholder="根据标准编号查找"
clearable clearable
:maxlength="100"></el-input> :maxlength="100"></el-input>
</el-form-item>
<el-form-item label="标准名称" class="search-item">
<el-input
v-model="replaceLawsNumForm.standName"
placeholder="根据标准名称查找"
clearable
:maxlength="100"></el-input>
</el-form-item> </el-form-item>
<el-form-item class="search-item btn-box"> <el-form-item class="search-item btn-box">
<el-button <el-button
@@ -1463,6 +1470,7 @@ export default {
replaceLawsNumForm: { replaceLawsNumForm: {
dataSource: '', dataSource: '',
standNumber: '', // 标准编号 standNumber: '', // 标准编号
standName: '', // 标准编号
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
total: 0, total: 0,
@@ -6,7 +6,6 @@
<template slot="proNode">标准法规部领导审批</template> <template slot="proNode">标准法规部领导审批</template>
</ProcessHeader> </ProcessHeader>
<div class="headerTabs"> <div class="headerTabs">
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div> <div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div> <div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
</div> </div>
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -45,12 +45,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(item)" <!-- @click="updateFile(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -61,12 +61,12 @@
<div v-if="form.fjList.length > 0"> <div v-if="form.fjList.length > 0">
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(item)" <!-- @click="updateFile(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -79,7 +79,7 @@
style="display: none;" style="display: none;"
clearable clearable
></el-input> ></el-input>
<el-input v-model="form.responUserListName" placeholder="请选择责任人" @click.native="choiceZRR"></el-input> <el-input v-model="form.responUserListName" readonly placeholder="请选择责任人" @click.native="choiceZRR"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -136,7 +136,7 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' 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"; import axios from "axios";
export default { export default {
@@ -180,41 +180,9 @@
ProcessTitle ProcessTitle
}, },
methods: { 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) { clickButtonToUpload(file) {
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
handleTransfer() { handleTransfer() {
this.drawerModal = true this.drawerModal = true
@@ -265,14 +233,16 @@
checkedRole2 (data) { checkedRole2 (data) {
var idList = '' var idList = ''
var nameList = '' var nameList = ''
data.forEach( item => { if (data.length) {
if (nameList.length > 0) { data.forEach( item => {
nameList += ',' if (nameList.length > 0) {
idList += ',' nameList += ','
} idList += ','
idList += item.id }
nameList += item.name idList += item.id
}) nameList += item.name
})
}
this.form.responUserList = idList this.form.responUserList = idList
this.form.responUserListName = nameList this.form.responUserListName = nameList
}, },
@@ -370,31 +340,10 @@
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -45,12 +45,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(item)" <!-- @click="updateFile(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -61,26 +61,18 @@
<div v-if="form.fjList.length > 0"> <div v-if="form.fjList.length > 0">
<div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.fjList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(item)" <!-- @click="updateFile(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
- - - -
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="调研结果" prop="fileName" class="add-form-item form-item-disabled">-->
<!-- <div v-if="form.file" class="fileClass" @click="updateFile(form.file)">-->
<!-- {{ form.fileName }}-->
<!-- </div>-->
<!-- <div v-else>-->
<!-- - - -->
<!-- </div>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -99,12 +91,12 @@
<div @click="clickButtonToUpload2(form.fileId)"> <div @click="clickButtonToUpload2(form.fileId)">
{{ form.fileName }} {{ form.fileName }}
</div> </div>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(form.fileId)" <!-- @click="updateFile(form.fileId)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -176,7 +168,7 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' 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"; import axios from "axios";
export default { export default {
@@ -220,62 +212,13 @@
ProcessTitle ProcessTitle
}, },
methods: { 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) { clickButtonToUpload2(file) {
const attId = file const attId = file
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
clickButtonToUpload(file) { clickButtonToUpload(file) {
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
handleTransfer() { handleTransfer() {
this.drawerModal = true this.drawerModal = true
@@ -410,31 +353,10 @@
.fileClass:hover{ .fileClass:hover{
color: #0c91e5; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -44,24 +44,17 @@
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled"> <el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
<div v-if="form.hzfileName" class="fileClass"> <div v-if="form.hzfileName" class="fileClass">
<span @click="clickButtonToUpload2(form.hzfileId)">{{ form.hzfileName }}</span> <span @click="clickButtonToUpload2(form.hzfileId)">{{ form.hzfileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(form.hzfileId)" <!-- @click="updateFile(form.hzfileId)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
<div v-else> <div v-else>
- - - -
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="会签意见" prop="texthq" class="add-form-item form-item-disabled">-->
<!-- <el-input-->
<!-- v-model="form.texthq"-->
<!-- placeholder="请输入审核意见"-->
<!-- clearable-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -100,12 +93,12 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div class="fileClass"> <div class="fileClass">
<span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span> <span @click="clickButtonToUpload2(scope.row.fileId)">{{scope.row.fileName}}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="updateFile(scope.row.fileId)" <!-- @click="updateFile(scope.row.fileId)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -178,7 +171,7 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail,changeAssigneeNew,getBusStandFileByAttId} from 'api/process' import {inboundLiaisonDetail,changeAssigneeNew} from 'api/process'
import axios from "axios"; import axios from "axios";
export default { export default {
@@ -218,41 +211,9 @@
ProcessTitle ProcessTitle
}, },
methods: { 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) { clickButtonToUpload2(file) {
const attId = file const attId = file
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
handleTransfer() { handleTransfer() {
this.drawerModal = true this.drawerModal = true
@@ -425,31 +386,10 @@
.fileClass:hover{ .fileClass:hover{
color: #0c91e5; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
@@ -15,7 +15,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -41,20 +41,13 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled"> <el-form-item label="汇总调研结果" prop="hzfileId" class="add-form-item form-item-disabled">
<div v-if="form.hzfileName" @click="updateFile(form.hzfileId)" class="fileClass"> <div v-if="form.hzfileName" class="fileClass" @click="updateFile(form.hzfileId)">
{{ form.hzfileName }} {{ form.hzfileName }}
</div> </div>
<div v-else> <div v-else>
- - - -
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="审核意见" prop="textsh" class="add-form-item form-item-disabled">-->
<!-- <el-input-->
<!-- v-model="form.textsh"-->
<!-- placeholder="请输入审核意见"-->
<!-- clearable-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -91,7 +84,7 @@
label="文件" label="文件"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div @click="updateFile(scope.row.fileId)" class="fileClass"> <div class="fileClass" @click="updateFile(scope.row.fileId)">
{{scope.row.fileName}} {{scope.row.fileName}}
</div> </div>
</template> </template>
@@ -223,7 +216,8 @@
}, e => {}) }, e => {})
}, },
updateFile (fileId) { 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) { beginImportFile (file) {
@@ -342,33 +336,12 @@
/deep/.prc-content-border .el-form-item__content { /deep/.prc-content-border .el-form-item__content {
width: 270px; 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 { .content {
border-top: 1px solid #DCDFE6; border-top: 1px solid #DCDFE6;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin-top: 52px; margin-top: 52px;
height: calc(~'100% - 155px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
@@ -15,7 +15,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -223,7 +223,7 @@
}, e => {}) }, e => {})
}, },
updateFile (fileId) { updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId this.$preview(fileId)
}, },
// 导入按钮 上传之前的钩子 // 导入按钮 上传之前的钩子
beginImportFile (file) { beginImportFile (file) {
@@ -342,33 +342,12 @@
/deep/.prc-content-border .el-form-item__content { /deep/.prc-content-border .el-form-item__content {
width: 270px; 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 { .content {
border-top: 1px solid #DCDFE6; border-top: 1px solid #DCDFE6;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin-top: 52px; margin-top: 52px;
height: calc(~'100% - 155px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
@@ -15,7 +15,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -48,13 +48,6 @@
- - - -
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="审核意见" prop="textsh" class="add-form-item form-item-disabled">-->
<!-- <el-input-->
<!-- v-model="form.textsh"-->
<!-- placeholder="请输入审核意见"-->
<!-- clearable-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -223,7 +216,7 @@
}, e => {}) }, e => {})
}, },
updateFile (fileId) { updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId this.$preview(fileId)
}, },
// 导入按钮 上传之前的钩子 // 导入按钮 上传之前的钩子
beginImportFile (file) { beginImportFile (file) {
@@ -342,33 +335,12 @@
/deep/.prc-content-border .el-form-item__content { /deep/.prc-content-border .el-form-item__content {
width: 270px; 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 { .content {
border-top: 1px solid #DCDFE6; border-top: 1px solid #DCDFE6;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
margin-top: 52px; margin-top: 52px;
height: calc(~'100% - 155px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
@@ -14,7 +14,7 @@
ref="bzzqyjForm" ref="bzzqyjForm"
:model="form" :model="form"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -14,7 +14,7 @@
ref="bzzqyjForm" ref="bzzqyjForm"
:model="form" :model="form"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -14,7 +14,7 @@
ref="bzzqyjForm" ref="bzzqyjForm"
:model="form" :model="form"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -40,7 +40,8 @@
<el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled"> <el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled">
<div class="file-box" v-if="fileList.length > 0"> <div class="file-box" v-if="fileList.length > 0">
<p v-for="item in fileList" <p v-for="item in fileList"
:key="item.id"> {{ item.name }} :key="item.id" @click="clickButtonToUpload2(item.id)">
{{ item.name }}
<i <i
title="下载" title="下载"
@click="downloadFile(item.id)" @click="downloadFile(item.id)"
@@ -382,6 +383,11 @@ export default {
}, e => { }, e => {
}); });
}, },
//点击预览
clickButtonToUpload2(file) {
const attId = file
this.$preview(attId)
},
/** /**
* @Description: 点击下载 * @Description: 点击下载
*/ */
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -82,7 +82,7 @@
style="display: none;" style="display: none;"
clearable clearable
></el-input> ></el-input>
<el-input v-model="form.responUserListName" placeholder="请选择责任人" @click.native="choiceZRR"></el-input> <el-input v-model="form.responUserListName" readonly placeholder="请选择责任人" @click.native="choiceZRR"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -191,7 +191,7 @@
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone"; import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; 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"; import axios from "axios";
export default { export default {
@@ -246,41 +246,9 @@
this.$message.warning('文件不存在,下载失败') 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) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
handleTransfer() { handleTransfer() {
this.drawerModal = true this.drawerModal = true
@@ -329,14 +297,16 @@
checkedRole2(data) { checkedRole2(data) {
var idList = ""; var idList = "";
var nameList = ""; var nameList = "";
data.forEach(item => { if (data.length) {
if (nameList.length > 0) { data.forEach(item => {
nameList += ","; if (nameList.length > 0) {
idList += ","; nameList += ",";
} idList += ",";
idList += item.id; }
nameList += item.name; idList += item.id;
}); nameList += item.name;
});
}
this.form.responUserList = idList; this.form.responUserList = idList;
this.form.responUserListName = nameList; this.form.responUserListName = nameList;
@@ -437,48 +407,19 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -82,7 +82,7 @@
style="display: none;" style="display: none;"
clearable clearable
></el-input> ></el-input>
<el-input v-model="form.bzfgName" placeholder="请选择标准法规工程师分线管理员" @click.native="choiceZRR(form.bzfgId)"></el-input> <el-input v-model="form.bzfgName" placeholder="请选择标准法规工程师分线管理员" readonly @click.native="choiceZRR(form.bzfgId)"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@@ -263,7 +263,7 @@
import ProcessHeaderPhone from "../../components/ProcessHeaderPhone"; import ProcessHeaderPhone from "../../components/ProcessHeaderPhone";
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew,getBusStandFileByAttId} from 'api/process' import {inboundLiaisonDetail, processCreateStand,changeAssigneeNew} from 'api/process'
import axios from "axios"; import axios from "axios";
export default { export default {
@@ -328,41 +328,9 @@
this.$message.warning('文件不存在,下载失败') 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) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
checkedRole2(data) { checkedRole2(data) {
this.form.bzfgId = data[0].id this.form.bzfgId = data[0].id
@@ -522,46 +490,18 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -324,41 +324,9 @@
this.$message.warning('文件不存在,下载失败') 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) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
checkedRole2(data) { checkedRole2(data) {
this.form.bzfgId = data[0].id this.form.bzfgId = data[0].id
@@ -509,46 +477,18 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -214,7 +214,7 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process"; import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
import axios from "axios"; import axios from "axios";
export default { export default {
@@ -284,41 +284,9 @@
this.$message.warning('文件不存在,下载失败') 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) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
itermsConditionsClose () { itermsConditionsClose () {
this.itermsConditionsFlag = false this.itermsConditionsFlag = false
@@ -500,7 +468,6 @@
<style lang="less" scoped> <style lang="less" scoped>
@import '~@/assets/styles/phone'; @import '~@/assets/styles/phone';
.phoneBzdyStep6 { .phoneBzdyStep6 {
/deep/ .el-drawer__container { /deep/ .el-drawer__container {
.prc-content-border { .prc-content-border {
@@ -508,48 +475,19 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -284,41 +284,9 @@
this.$message.warning('文件不存在,下载失败') 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) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
itermsConditionsClose () { itermsConditionsClose () {
this.itermsConditionsFlag = false this.itermsConditionsFlag = false
@@ -508,48 +476,19 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -214,7 +214,7 @@
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone' import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter"; import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle"; import ProcessTitle from "../../components/ProcessTitle";
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew,getBusStandFileByAttId } from "api/process"; import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
import axios from "axios"; import axios from "axios";
export default { export default {
@@ -284,41 +284,9 @@
this.$message.warning('文件不存在,下载失败') 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) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
itermsConditionsClose () { itermsConditionsClose () {
this.itermsConditionsFlag = false this.itermsConditionsFlag = false
@@ -507,46 +475,18 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
@@ -16,7 +16,7 @@
:model="form" :model="form"
:rules="formRules" :rules="formRules"
class="label-input-form" class="label-input-form"
label-width="210px" label-width="100px"
> >
<ProcessTitle> <ProcessTitle>
<template slot="title">基础信息</template> <template slot="title">基础信息</template>
@@ -51,12 +51,12 @@
v-for="(item, index) in form.fjList" v-for="(item, index) in form.fjList"
:key="index"> :key="index">
<span @click="fileLook(item)">{{ item.fileName }}</span> <span @click="fileLook(item)">{{ item.fileName }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@@ -64,12 +64,12 @@
<div v-if="form.modelList.length > 0"> <div v-if="form.modelList.length > 0">
<div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;"> <div v-for="(item, index) in form.modelList" class="fileClass" :key="index" style="margin-right: 5px;">
<span @click="fileLook(item)">{{ item.name }}</span> <span @click="fileLook(item)">{{ item.name }}</span>
<el-button <!-- <el-button-->
size="small" <!-- size="small"-->
@click="filesUpload(item)" <!-- @click="filesUpload(item)"-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
style="height: 32px; margin-left: 5px;" <!-- style="height: 32px; margin-left: 5px;"-->
></el-button> <!-- ></el-button>-->
</div> </div>
</div> </div>
<div v-else> <div v-else>
@@ -301,24 +301,7 @@
}, },
fileLook(file) { // 预览 fileLook(file) { // 预览
const attId = file.attId const attId = file.attId
this.getBusStandFileByAttId(attId) this.$preview(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('文件不存在,预览失败')
})
}, },
itermsConditionsClose () { itermsConditionsClose () {
this.itermsConditionsFlag = false this.itermsConditionsFlag = false
@@ -507,48 +490,19 @@
padding: 0 20px 0; padding: 0 20px 0;
} }
} }
.fileClass { .fileClass {
cursor: pointer; cursor: pointer;
} }
.fileClass:hover { .fileClass:hover {
color: #0c91e5; color: #0c91e5;
} }
position: relative; position: relative;
height: 100%; 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 { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
height: calc(~'100% - 103px');
overflow: auto; overflow: auto;
.tableTitle { .tableTitle {
margin-bottom: 10px; margin-bottom: 10px;
height: 30px; height: 30px;
@@ -110,65 +110,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -246,65 +246,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -246,65 +246,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -246,65 +246,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -170,65 +170,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -170,65 +170,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -170,65 +170,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -170,65 +170,7 @@
</div> </div>
</div> </div>
<div class="content" v-show="active === '3'"> <div class="content" v-show="active === '3'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -74,65 +74,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -74,65 +74,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -74,65 +74,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -178,65 +178,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -260,65 +260,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -260,65 +260,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -260,65 +260,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -159,65 +159,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="detailData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-back show-back
@@ -190,65 +190,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
width="130"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-transfer show-transfer
@@ -128,67 +128,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
min-width="130"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
min-width="130"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="130"
sortable="custom"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
min-width="130"
label="完成时间"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? '已完成' : '未完成' }}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -202,67 +202,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
min-width="130"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
min-width="130"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="130"
sortable="custom"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
min-width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -136,67 +136,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
min-width="130"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="assignee"
min-width="130"
label="任务受理人"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="130"
sortable="custom"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
min-width="130"
label="完成时间"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -136,67 +136,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
min-width="130"
label="任务步骤"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
min-width="130"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="130"
sortable="custom"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
min-width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -136,67 +136,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
min-width="130"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="assignee"
min-width="130"
label="任务受理人"
align="center"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="130"
sortable="custom"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
min-width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -136,67 +136,7 @@
</el-collapse> </el-collapse>
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
height="100%"
ref="selection"
:data="histortData"
tooltip-effect="dark"
style="width: 100%"
border
row-key="id"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column
prop="name"
label="任务步骤"
align="center"
min-width="130"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="assignee"
label="任务受理人"
align="center"
min-width="130"
sortable="custom"
>
</el-table-column>
<el-table-column
prop="createTime"
label="创建时间"
min-width="130"
sortable="custom"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="endTime"
label="完成时间"
min-width="130"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
</template>
</el-table-column>
<el-table-column
prop="comment"
label="流程信息"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.commentText }}</span>
</template>
</el-table-column>
<el-table-column
prop="completeFlag"
label="状态"
align="center">
<template slot-scope="scope">
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
</template>
</el-table-column>
</el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-submit show-submit
@@ -492,7 +492,7 @@ export default {
case '2': case '2':
if (row.taskInfo === '责任对接人选择责任人') { if (row.taskInfo === '责任对接人选择责任人') {
this.$router.push({ this.$router.push({
name: 'bzdyStep2', name: 'phoneBzdyStep2',
query: { query: {
taskIds: row.taskIds, taskIds: row.taskIds,
prcId: row.prcId, prcId: row.prcId,
@@ -197,7 +197,7 @@
label="标准名称" label="标准名称"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<span @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.lawsName}}</span> <span @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName|| scope.row.standEnName || scope.row.lawsName}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -334,14 +334,14 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="zccssrq" prop="zccssrqgj"
sortable sortable
width="210px" width="210px"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrq" prop="xcxssrqgj"
sortable sortable
align="center" align="center"
width="210px" width="210px"
@@ -457,17 +457,17 @@
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="在产车实施日期" prop="zccssrq"> <el-form-item label="在产车实施日期" prop="zccssrqgj">
<el-date-picker <el-date-picker
v-model.trim="editRowData.zccssrq" v-model.trim="editRowData.zccssrqgj"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期" prop="xcxssrq"> <el-form-item label="新车型实施日期" prop="xcxssrqgj">
<el-date-picker <el-date-picker
v-model.trim="editRowData.xcxssrq" v-model.trim="editRowData.xcxssrqgj"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
@@ -503,31 +503,30 @@
</div> </div>
</template> </template>
<script> <script>
import CustomInputForStandards from '@/components/CustomFormComponents/InputForStandards' import CustomInputForStandards from "@/components/CustomFormComponents/InputForStandards";
import CustomInputForStandardsForeign from '@/components/CustomFormComponents/InputForStandardsForForeign' import CustomInputForStandardsForeign from "@/components/CustomFormComponents/InputForStandardsForForeign";
import CustomInput from '@/components/CustomFormComponents/Input' import CustomInput from "@/components/CustomFormComponents/Input";
import CustomTextarea from '@/components/CustomFormComponents/Textarea' import CustomTextarea from "@/components/CustomFormComponents/Textarea";
import CustomSearchSelect from '@/components/CustomFormComponents/SearchSelect' import CustomSearchSelect from "@/components/CustomFormComponents/SearchSelect";
import CustomSelect from '@/components/CustomFormComponents/Select' import CustomSelect from "@/components/CustomFormComponents/Select";
import CustomDatePick from '@/components/CustomFormComponents/DatePicker' import CustomDatePick from "@/components/CustomFormComponents/DatePicker";
import CustomFile from '@/components/CustomFormComponents/File' import CustomFile from "@/components/CustomFormComponents/File";
import CustomInputNum from '@/components/CustomFormComponents/InputNum' import CustomInputNum from "@/components/CustomFormComponents/InputNum";
import CustomDatePickGroup from '@/components/CustomFormComponents/DatePickerGroup' import CustomDatePickGroup from "@/components/CustomFormComponents/DatePickerGroup";
import CustomSelectArray from '@/components/CustomFormComponents/SelectArray' import CustomSelectArray from "@/components/CustomFormComponents/SelectArray";
import TreePopover from '@/components/CustomFormComponents/TreePopover' import TreePopover from "@/components/CustomFormComponents/TreePopover";
import CustomOrg from '@/components/CustomFormComponents/OrgTree' import CustomOrg from "@/components/CustomFormComponents/OrgTree";
import CustomEopDatePick from '@/components/CustomFormComponents/DatePickerWithText' import CustomEopDatePick from "@/components/CustomFormComponents/DatePickerWithText";
import CustomDatePickWithText, {formatText} from '@/components/CustomFormComponents/DatePickerGroupWithText' import CustomDatePickWithText, { formatText } from "@/components/CustomFormComponents/DatePickerGroupWithText";
import CustomSVPPS from '@/components/CustomFormComponents/SVPPS' import CustomSVPPS from "@/components/CustomFormComponents/SVPPS";
import CustomInputForPolicy from '@/components/CustomFormComponents/InputForPolicy' import CustomInputForPolicy from "@/components/CustomFormComponents/InputForPolicy";
import CustomRoleTree from '@/components/CustomFormComponents/roleTree' import CustomRoleTree from "@/components/CustomFormComponents/roleTree";
import stand from "../../../config/pages/attributeCustom/components/stand"; import { mapGetters } from "vuex";
import {mapGetters} from 'vuex' import { dicTypeData, StandardsInfoPage } from "@/api/unqualProcess";
import {dicTypeData, StandardsInfoPage} from '@/api/unqualProcess' import { interfaceUrl } from "@/sysConfig";
import {interfaceUrl} from "@/sysConfig";
export default { export default {
name: 'ListOfStandardsAndRegulationsDetails', name: "ListOfStandardsAndRegulationsDetails",
components: { components: {
CustomFile, CustomFile,
CustomInput, CustomInput,
@@ -1170,19 +1169,19 @@ export default {
// //
for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) { for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
// //
if (this.selectedAccInfoSearchList[i].typeApplicable === '[]'){ if (this.selectedAccInfoSearchList[i].typeApplicable === "[]"){
this.selectedAccInfoSearchList[i].typeApplicable = null this.selectedAccInfoSearchList[i].typeApplicable = null
} }
// //
if (this.selectedAccInfoSearchList[i].nylx === '[]'){ if (this.selectedAccInfoSearchList[i].nylx === "[]"){
this.selectedAccInfoSearchList[i].nylx = null this.selectedAccInfoSearchList[i].nylx = null
} }
// //
if (this.selectedAccInfoSearchList[i].zrbm === '[]'){ if (this.selectedAccInfoSearchList[i].zrbm === "[]"){
this.selectedAccInfoSearchList[i].zrbm = null this.selectedAccInfoSearchList[i].zrbm = null
} }
//线 //线
if (this.selectedAccInfoSearchList[i].sycpx === '[]'){ if (this.selectedAccInfoSearchList[i].sycpx === "[]"){
this.selectedAccInfoSearchList[i].sycpx = null this.selectedAccInfoSearchList[i].sycpx = null
} }
} }
@@ -1200,6 +1199,38 @@ export default {
this.$message.warning('请勿添加重复数据') this.$message.warning('请勿添加重复数据')
} else { } else {
this.sarAccessInfoList.push(item) this.sarAccessInfoList.push(item)
this.sarAccessInfoList.forEach(item => {
this.$set(item, 'xcxssrqgj', item.xcxssrq)
this.$set(item, 'zccssrqgj', item.zccssrq)
if(item.attrInfoCaseMap !== undefined){
this.$set(item, 'typeApplicable', item.attrInfoCaseMap.cllx)
this.$set(item, 'nylx', item.attrInfoCaseMap.nylx)
}
//
if (item.nylx !== null) {
let k = (item.nylx || "").split(",");
for (let i in this.applyArcticOptions) {
for (let m = 0; m < k.length; m++) {
if (this.applyArcticOptions[i].value === k[m]) {
k[m] = this.applyArcticOptions[i].label;
}
item.nylx = k.join(",");
}
}
}
//
if (item.typeApplicable !== null) {
let k = (item.typeApplicable || "").split(",");
for (let i in this.energyKindOptions) {
for (let m = 0; m < k.length; m++) {
if (this.energyKindOptions[i].value === k[m]) {
k[m] = this.energyKindOptions[i].label;
}
item.typeApplicable = k.join(",");
}
}
}
})
// this.$refs.accessTypeSelect.clearSelection() // this.$refs.accessTypeSelect.clearSelection()
this.$refs.entryTable.clearSelection() this.$refs.entryTable.clearSelection()
this.$refs.searchTable.clearSelection() this.$refs.searchTable.clearSelection()
@@ -1236,40 +1267,48 @@ export default {
}, },
// //
editTghisRow(row) { editTghisRow(row) {
console.log(row);
// //
localStorage.setItem('obj', JSON.stringify(row)) localStorage.setItem("obj", JSON.stringify(row));
this.rowList = row this.rowList = row;
this.editRowData = this.rowList this.editRowData = this.rowList;
if (this.editRowData.ssrq !== null) { if (this.editRowData.ssrq === "-") {
this.editRowData.ssrq = this.editRowData.ssrq.split(',') this.editRowData.ssrq = "";
} else if (this.editRowData.ssrq !== null && this.editRowData.ssrq !== "-" && this.editRowData.ssrq !== "") {
this.editRowData.ssrq = this.editRowData.ssrq.split(",");
} }
if (this.editRowData.zccssrq !== null) { if (this.editRowData.zccssrqgj === "-") {
this.editRowData.zccssrq = this.editRowData.zccssrq.split(',') this.editRowData.zccssrqgj = "";
} else if (this.editRowData.zccssrqgj !== null && this.editRowData.zccssrqgj !== "-" && this.editRowData.zccssrqgj !== "") {
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.split(",");
} }
if (this.editRowData.xcxssrq !== null) { if (this.editRowData.xcxssrqgj === "-") {
this.editRowData.xcxssrq = this.editRowData.xcxssrq.split(',') this.editRowData.xcxssrqgj = "";
} else if (this.editRowData.xcxssrqgj !== null && this.editRowData.xcxssrqgj !== "-" && this.editRowData.xcxssrqgj !== " ") {
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.split(",");
} }
this.drawerEdit = true this.drawerEdit = true;
}, },
// //
cancelInfo() { cancelInfo() {
let Item = JSON.parse(localStorage.getItem('obj')) let Item = JSON.parse(localStorage.getItem('obj'))
this.editRowData.ssrq = Item.ssrq this.editRowData.ssrq = Item.ssrq
this.editRowData.xcxssrq = Item.xcxssrq this.editRowData.xcxssrqgj = Item.xcxssrqgj
this.editRowData.zccssrq = Item.zccssrq this.editRowData.zccssrqgj = Item.zccssrqgj
this.drawerEdit = false this.drawerEdit = false
}, },
// //
saveInfo() { saveInfo() {
if (this.editRowData.ssrq !== null) { console.log(this.editRowData);
if (this.editRowData.ssrq !== '') {
this.editRowData.ssrq = this.editRowData.ssrq.join(',') this.editRowData.ssrq = this.editRowData.ssrq.join(',')
} }
if (this.editRowData.xcxssrq !== null){ if (this.editRowData.xcxssrqgj !== ''){
this.editRowData.xcxssrq = this.editRowData.xcxssrq.join(',') this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.join(',')
} }
if (this.editRowData.zccssrq !== null){ if (this.editRowData.zccssrqgj !== ''){
this.editRowData.zccssrq = this.editRowData.zccssrq.join(',') this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.join(',')
} }
this.drawerEdit = false this.drawerEdit = false
}, },
@@ -1344,15 +1383,15 @@ export default {
} else { } else {
rowlist1.push(this.sarAccessInfoList[i].ssrq) rowlist1.push(this.sarAccessInfoList[i].ssrq)
} }
if (this.sarAccessInfoList[i].xcxssrq === null || this.sarAccessInfoList[i].xcxssrq === undefined) { if (this.sarAccessInfoList[i].xcxssrqgj === null || this.sarAccessInfoList[i].xcxssrqgj === undefined) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrq = '-') rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-')
} else { } else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrq) rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj)
} }
if (this.sarAccessInfoList[i].zccssrq === null || this.sarAccessInfoList[i].zccssrq === undefined) { if (this.sarAccessInfoList[i].zccssrqgj === null || this.sarAccessInfoList[i].zccssrqgj === undefined) {
rowlist2.push(this.sarAccessInfoList[i].zccssrq = '-') rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-')
} else { } else {
rowlist2.push(this.sarAccessInfoList[i].zccssrq) rowlist2.push(this.sarAccessInfoList[i].zccssrqgj)
} }
} }
console.log(rowlist1) console.log(rowlist1)
@@ -2024,6 +2063,7 @@ export default {
getData() { getData() {
this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', { this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {
id: this.zqaId, id: this.zqaId,
types: '1',
page: this.page, page: this.page,
Size: this.Size Size: this.Size
}, { }, {
@@ -2032,12 +2072,23 @@ export default {
if (res.ok) { if (res.ok) {
this.sarAccessInfoList = res.data.records this.sarAccessInfoList = res.data.records
this.sarAccessInfoList.map(item => { this.sarAccessInfoList.map(item => {
if (item.nylx === "[]") {
item.nylx = "";
}
if (item.zrbm === "[]") {
item.zrbm = "";
}
if (item.sycpx === "[]") {
item.sycpx = "";
}
if (item.typeApplicable === "[]") {
item.typeApplicable = "";
}
if (item.standYear === null) { if (item.standYear === null) {
item.standNumber = item.standSortShow + ' ' + item.standNumber item.standNumber = item.standSortShow + " " + item.standNumber;
} else { } else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear item.standNumber = item.standSortShow + " " + item.standNumber + "-" + item.standYear;
} }
console.log(item.standNumber)
}) })
} }
}) })
@@ -2076,10 +2127,12 @@ export default {
this.$http.get('sys/dictype/getDicTypeListCode', '', { this.$http.get('sys/dictype/getDicTypeListCode', '', {
_this: this _this: this
}, res => { }, res => {
console.log('能源类型',res.data.NYLXCLASS);
console.log('适用车型',res.data.ENERGYTYPES);
this.allSelectOptions = res.data || {} this.allSelectOptions = res.data || {}
this.regionOptions = res.data.REGION // list this.regionOptions = res.data.REGION // list
this.applyArcticOptions = res.data.PRODUCTTYPE // list this.applyArcticOptions = res.data.NYLXCLASS //
this.energyKindOptions = res.data.ENERGYTYPES // list this.energyKindOptions = res.data.ENERGYTYPES //
this.CycxOptions = res.data.CLLX this.CycxOptions = res.data.CLLX
this.drawerCountryOptions = res.data.COUNTRY // list this.drawerCountryOptions = res.data.COUNTRY // list
this.applyOptions = res.data.COUNTRY //list this.applyOptions = res.data.COUNTRY //list
@@ -184,29 +184,19 @@
align="center" align="center"
sortable sortable
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrq"
sortable sortable
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span v-if="scope.row.xcxssrqgj">{{ scope.row.xcxssrqgj }}</span>
<span v-else-if="scope.row.putTime">{{ scope.row.putTime }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="zccssrqgj" prop="zccssrq"
align="center" align="center"
sortable sortable
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrqgj }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -314,14 +304,14 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="zccssrqgj" prop="zccssrq"
sortable sortable
width="210px" width="210px"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrq"
sortable sortable
align="center" align="center"
width="210px" width="210px"
@@ -457,17 +447,17 @@
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="在产车实施日期" prop="zccssrqgj"> <el-form-item label="在产车实施日期" prop="zccssrq">
<el-date-picker <el-date-picker
v-model.trim="editRowData.zccssrqgj" v-model.trim="editRowData.zccssrq"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期" prop="xcxssrqgj"> <el-form-item label="新车型实施日期" prop="xcxssrq">
<el-date-picker <el-date-picker
v-model.trim="editRowData.xcxssrqgj" v-model.trim="editRowData.xcxssrq"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
@@ -576,8 +566,8 @@ export default {
typeApplicable: '', typeApplicable: '',
nylx: '', nylx: '',
ssrq: '', ssrq: '',
zccssrqgj: '', zccssrq: '',
xcxssrqgj: '', xcxssrq: '',
zrbm: '', zrbm: '',
sycpx: '', sycpx: '',
cycvppsbm: '', cycvppsbm: '',
@@ -1237,11 +1227,11 @@ export default {
if (this.editRowData.ssrq !== null) { if (this.editRowData.ssrq !== null) {
this.editRowData.ssrq = this.editRowData.ssrq.split(',') this.editRowData.ssrq = this.editRowData.ssrq.split(',')
} }
if (this.editRowData.zccssrqgj !== null) { if (this.editRowData.zccssrq !== null) {
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.split(',') this.editRowData.zccssrq = this.editRowData.zccssrq.split(',')
} }
if (this.editRowData.xcxssrqgj !== null) { if (this.editRowData.xcxssrq !== null) {
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.split(',') this.editRowData.xcxssrq = this.editRowData.xcxssrq.split(',')
} }
this.drawerEdit = true this.drawerEdit = true
}, },
@@ -1249,8 +1239,8 @@ export default {
cancelInfo() { cancelInfo() {
let Item = JSON.parse(localStorage.getItem('obj')) let Item = JSON.parse(localStorage.getItem('obj'))
this.editRowData.ssrq = Item.ssrq this.editRowData.ssrq = Item.ssrq
this.editRowData.xcxssrqgj = Item.xcxssrqgj this.editRowData.xcxssrq = Item.xcxssrq
this.editRowData.zccssrqgj = Item.zccssrqgj this.editRowData.zccssrq = Item.zccssrq
this.drawerEdit = false this.drawerEdit = false
}, },
// //
@@ -1258,11 +1248,11 @@ export default {
if (this.editRowData.ssrq !== null) { if (this.editRowData.ssrq !== null) {
this.editRowData.ssrq = this.editRowData.ssrq.join(',') this.editRowData.ssrq = this.editRowData.ssrq.join(',')
} }
if (this.editRowData.xcxssrqgj !== null){ if (this.editRowData.xcxssrq !== null){
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.join(',') this.editRowData.xcxssrq = this.editRowData.xcxssrq.join(',')
} }
if (this.editRowData.zccssrqgj !== null){ if (this.editRowData.zccssrq !== null){
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.join(',') this.editRowData.zccssrq = this.editRowData.zccssrq.join(',')
} }
this.drawerEdit = false this.drawerEdit = false
}, },
@@ -1336,15 +1326,15 @@ export default {
} else { } else {
rowlist1.push(this.sarAccessInfoList[i].ssrq.toString()) rowlist1.push(this.sarAccessInfoList[i].ssrq.toString())
} }
if (this.sarAccessInfoList[i].xcxssrqgj === null || this.sarAccessInfoList[i].xcxssrqgj === undefined) { if (this.sarAccessInfoList[i].xcxssrq === null || this.sarAccessInfoList[i].xcxssrq === undefined) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-') rowlist3.push(this.sarAccessInfoList[i].xcxssrq = '-')
} else { } else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString()) rowlist3.push(this.sarAccessInfoList[i].xcxssrq.toString())
} }
if (this.sarAccessInfoList[i].zccssrqgj === null || this.sarAccessInfoList[i].zccssrqgj === undefined) { if (this.sarAccessInfoList[i].zccssrq === null || this.sarAccessInfoList[i].zccssrq === undefined) {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-') rowlist2.push(this.sarAccessInfoList[i].zccssrq = '-')
} else { } else {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString()) rowlist2.push(this.sarAccessInfoList[i].zccssrq.toString())
} }
} }
rowlist = rowlist.join(',') rowlist = rowlist.join(',')
@@ -241,29 +241,19 @@
sortable sortable
align="center" align="center"
label="发布日期"> label="发布日期">
<template slot-scope="scope">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrq"
sortable sortable
align="center" align="center"
label="新车型实施日期"> label="新车型实施日期">
<template slot-scope="scope">
<span v-if="scope.row.xcxssrqgj">{{ scope.row.xcxssrqgj }}</span>
<span v-else-if="scope.row.putTime">{{ scope.row.putTime }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="zccssrqgj" prop="zccssrq"
sortable sortable
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
<template slot-scope="scope">
<span>{{ scope.row.zccssrqgj }}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -372,14 +362,14 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
prop="zccssrqgj" prop="zccssrq"
sortable sortable
width="210px" width="210px"
align="center" align="center"
label="在产车实施日期"> label="在产车实施日期">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="xcxssrqgj" prop="xcxssrq"
sortable sortable
align="center" align="center"
width="210px" width="210px"
@@ -494,17 +484,17 @@
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="在产车实施日期" prop="zccssrqgj"> <el-form-item label="在产车实施日期" prop="zccssrq">
<el-date-picker <el-date-picker
v-model.trim="editRowData.zccssrqgj" v-model.trim="editRowData.zccssrq"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="新车型实施日期" prop="xcxssrqgj"> <el-form-item label="新车型实施日期" prop="xcxssrq">
<el-date-picker <el-date-picker
v-model.trim="editRowData.xcxssrqgj" v-model.trim="editRowData.xcxssrq"
type="dates" type="dates"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期"> placeholder="选择日期">
@@ -631,8 +621,8 @@ export default {
syrz: '', syrz: '',
nylx: '', nylx: '',
ssrq: '', ssrq: '',
zccssrqgj: '', zccssrq: '',
xcxssrqgj: '', xcxssrq: '',
zrbm: '', zrbm: '',
sycpx: '', sycpx: '',
cycvppsbm: '', cycvppsbm: '',
@@ -1207,11 +1197,11 @@ export default {
if (this.editRowData.ssrq !== null) { if (this.editRowData.ssrq !== null) {
this.editRowData.ssrq = this.editRowData.ssrq.split(',') this.editRowData.ssrq = this.editRowData.ssrq.split(',')
} }
if (this.editRowData.zccssrqgj !== null) { if (this.editRowData.zccssrq !== null) {
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.split(',') this.editRowData.zccssrq = this.editRowData.zccssrq.split(',')
} }
if (this.editRowData.xcxssrqgj !== null) { if (this.editRowData.xcxssrq !== null) {
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.split(',') this.editRowData.xcxssrq = this.editRowData.xcxssrq.split(',')
} }
this.drawerEdit = true this.drawerEdit = true
}, },
@@ -1219,8 +1209,8 @@ export default {
cancelInfo() { cancelInfo() {
let Item = JSON.parse(localStorage.getItem('obj')) let Item = JSON.parse(localStorage.getItem('obj'))
this.editRowData.ssrq = Item.ssrq this.editRowData.ssrq = Item.ssrq
this.editRowData.xcxssrqgj = Item.xcxssrqgj this.editRowData.xcxssrq = Item.xcxssrq
this.editRowData.zccssrqgj = Item.zccssrqgj this.editRowData.zccssrq = Item.zccssrq
this.drawerEdit = false this.drawerEdit = false
}, },
// //
@@ -1228,11 +1218,11 @@ export default {
if (this.editRowData.ssrq !== null) { if (this.editRowData.ssrq !== null) {
this.editRowData.ssrq = this.editRowData.ssrq.join(',') this.editRowData.ssrq = this.editRowData.ssrq.join(',')
} }
if (this.editRowData.xcxssrqgj !== null){ if (this.editRowData.xcxssrq !== null){
this.editRowData.xcxssrqgj = this.editRowData.xcxssrqgj.join(',') this.editRowData.xcxssrq = this.editRowData.xcxssrq.join(',')
} }
if (this.editRowData.zccssrqgj !== null){ if (this.editRowData.zccssrq !== null){
this.editRowData.zccssrqgj = this.editRowData.zccssrqgj.join(',') this.editRowData.zccssrq = this.editRowData.zccssrq.join(',')
} }
this.drawerEdit = false this.drawerEdit = false
}, },
@@ -1307,15 +1297,15 @@ export default {
} else { } else {
rowlist1.push(this.sarAccessInfoList[i].ssrq.toString()) rowlist1.push(this.sarAccessInfoList[i].ssrq.toString())
} }
if (this.sarAccessInfoList[i].xcxssrqgj === null || this.sarAccessInfoList[i].xcxssrqgj === undefined) { if (this.sarAccessInfoList[i].xcxssrq === null || this.sarAccessInfoList[i].xcxssrq === undefined) {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-') rowlist3.push(this.sarAccessInfoList[i].xcxssrq = '-')
} else { } else {
rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj.toString()) rowlist3.push(this.sarAccessInfoList[i].xcxssrq.toString())
} }
if (this.sarAccessInfoList[i].zccssrqgj === null || this.sarAccessInfoList[i].zccssrqgj === undefined) { if (this.sarAccessInfoList[i].zccssrq === null || this.sarAccessInfoList[i].zccssrq === undefined) {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj = '-') rowlist2.push(this.sarAccessInfoList[i].zccssrq = '-')
} else { } else {
rowlist2.push(this.sarAccessInfoList[i].zccssrqgj.toString()) rowlist2.push(this.sarAccessInfoList[i].zccssrq.toString())
} }
} }
rowlist = rowlist.join(',') rowlist = rowlist.join(',')