feat: There is no way the, bug #52275 以及其他
This commit is contained in:
@@ -1188,6 +1188,18 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
processNum (row) {
|
||||||
|
axios.request({
|
||||||
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
prcNum: this.$route.query.prcNum
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
this.processStep = window.URL.createObjectURL(res.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
drawerCheckZRBM(data) {
|
drawerCheckZRBM(data) {
|
||||||
let idList = ''
|
let idList = ''
|
||||||
let nameList = ''
|
let nameList = ''
|
||||||
|
|||||||
@@ -269,7 +269,7 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in ZCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in ZCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
@@ -279,7 +279,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="fileUpload('ZCWBLAWS')"
|
@click="fileUpload('ZCWBLAWS')"
|
||||||
style="margin-left: 10px; margin-top: 11px; float: right;">
|
style="margin-left: 10px; margin-top: 11px; float: right;">
|
||||||
<i class="el-icon-upload el-icon--right"></i>
|
<i class="el-icon-upload"></i>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -292,7 +292,7 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in JDWJLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in JDWJLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
@@ -302,7 +302,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="fileUpload('JDWJLAWS')"
|
@click="fileUpload('JDWJLAWS')"
|
||||||
style="margin-left: 10px; margin-top: 11px; float: right;">
|
style="margin-left: 10px; margin-top: 11px; float: right;">
|
||||||
<i class="el-icon-upload el-icon--right"></i>
|
<i class="el-icon-upload"></i>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -317,7 +317,7 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in GCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in GCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
@@ -327,7 +327,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="fileUpload('GCWBLAWS')"
|
@click="fileUpload('GCWBLAWS')"
|
||||||
style="margin-left: 10px; margin-top: 11px; float: right;">
|
style="margin-left: 10px; margin-top: 11px; float: right;">
|
||||||
<i class="el-icon-upload el-icon--right"></i>
|
<i class="el-icon-upload"></i>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -457,7 +457,7 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in GLWJLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in GLWJLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
@@ -467,7 +467,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
@click="fileUpload('GLWJLAWS')"
|
@click="fileUpload('GLWJLAWS')"
|
||||||
style="margin-left: 10px; margin-top: 11px; float: right;">
|
style="margin-left: 10px; margin-top: 11px; float: right;">
|
||||||
<i class="el-icon-upload el-icon--right"></i>
|
<i class="el-icon-upload"></i>
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -905,7 +905,8 @@
|
|||||||
@click="handleProcessStandardNext(3)">取消</el-button>
|
@click="handleProcessStandardNext(3)">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -975,6 +976,7 @@
|
|||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
dataLoading:false,
|
||||||
fileList: [],
|
fileList: [],
|
||||||
caFileList: [],
|
caFileList: [],
|
||||||
FBGBJBDFileList: [],
|
FBGBJBDFileList: [],
|
||||||
@@ -1429,17 +1431,38 @@
|
|||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
|
let dateArr = []
|
||||||
|
if(mes.commentCycleStart && mes.commentCycleEnd){
|
||||||
|
dateArr[0] = mes.commentCycleStart
|
||||||
|
dateArr[1] = mes.commentCycleEnd
|
||||||
|
this.commentCycleDate = dateArr
|
||||||
|
}
|
||||||
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
||||||
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
||||||
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
||||||
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
||||||
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
||||||
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
||||||
|
this.ZCWBLAWSFileList=this.assemble(this.form.ZCWBLAWS,this.form.ZCWBLAWSName);
|
||||||
|
this.GCWBLAWSFileList=this.assemble(this.form.GCWBLAWS,this.form.GCWBLAWSName);
|
||||||
|
this.JDWJLAWSFileList=this.assemble(this.form.JDWJLAWS,this.form.JDWJLAWSName);
|
||||||
|
this.GLWJLAWSFileList=this.assemble(this.form.GLWJLAWS,this.form.GLWJLAWSName);
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
this.commentText = mes.commentText
|
this.commentText = mes.commentText
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
assemble(ids,names){
|
||||||
|
let list= new Array();
|
||||||
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
|
let idArray=ids.split(',');
|
||||||
|
let nameArray=names.split(',');
|
||||||
|
for(let i=0; i<idArray.length; i++){
|
||||||
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
},
|
||||||
filterObj(obj){
|
filterObj(obj){
|
||||||
if(obj && obj !== ''){
|
if(obj && obj !== ''){
|
||||||
if(obj instanceof Array){
|
if(obj instanceof Array){
|
||||||
@@ -2162,31 +2185,36 @@
|
|||||||
},
|
},
|
||||||
//保存
|
//保存
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.form.country=this.countryArr;
|
// this.form.country=this.countryArr;
|
||||||
// if(item.country !== undefined && item.country !== null){
|
// if(item.country !== undefined && item.country !== null){
|
||||||
// this.sarStandardsInfoEO.country = item.country.split(",");
|
// this.sarStandardsInfoEO.country = item.country.split(",");
|
||||||
// }
|
// }
|
||||||
|
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
|
let startDate = ""
|
||||||
|
let endDate = ""
|
||||||
|
if(this.commentCycleDate && this.commentCycleDate.length > 0){
|
||||||
|
startDate = this.commentCycleDate[0]
|
||||||
|
endDate = this.commentCycleDate[1]
|
||||||
|
}else {
|
||||||
|
startDate = ''
|
||||||
|
endDate = ''
|
||||||
|
}
|
||||||
this.fileInfoHandle()
|
this.fileInfoHandle()
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
_formData.append('id', this.bpnId || '')
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
_formData.append('prcType', 'laws1')
|
_formData.append('prcType', 'laws1')
|
||||||
_formData.append('prcName', '政策入库流程')
|
_formData.append('prcName', '政策入库流程')
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// prcForm: this.prcForm,
|
|
||||||
// sarAccessInfoList: this.sarAccessInfoList,
|
|
||||||
// sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
|
|
||||||
// bzqdForm: this.bzqdForm,
|
|
||||||
// listInfo: this.listInfo,
|
|
||||||
// id: this.id
|
|
||||||
taskInfo: '申请人发起',
|
taskInfo: '申请人发起',
|
||||||
form: this.form,
|
form: this.form,
|
||||||
roleForm: this.roleForm,
|
roleForm: this.roleForm,
|
||||||
commentText: this.commentText
|
commentText: this.commentText,
|
||||||
|
commentCycleStart: startDate,
|
||||||
|
commentCycleEnd: endDate,
|
||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskFirst(_formData).then(res => {
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
@@ -2230,9 +2258,20 @@
|
|||||||
json.applyUpdUserId = this.form.applyUpdUserId
|
json.applyUpdUserId = this.form.applyUpdUserId
|
||||||
json.prcCreateUser = this.form.prcCreateUser
|
json.prcCreateUser = this.form.prcCreateUser
|
||||||
json.prcCreateUserName = this.form.prcCreateUserName
|
json.prcCreateUserName = this.form.prcCreateUserName
|
||||||
this.$http.get('lawss/activiti/startProcess', {type: 'laws1'}, {
|
if(this.commentCycleDate && this.commentCycleDate.length > 0){
|
||||||
_this: this
|
json.commentCycleStart = this.commentCycleDate[0]
|
||||||
}, res => {
|
json.commentCycleEnd = this.commentCycleDate[1]
|
||||||
|
}
|
||||||
|
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||||
|
createUser: this.$store.getters.userInfo.userId,
|
||||||
|
createUserName: this.$store.getters.userInfo.userName,
|
||||||
|
type: 'laws1',
|
||||||
|
json: JSON.stringify({
|
||||||
|
form: this.form,
|
||||||
|
roleForm: this.roleForm,
|
||||||
|
commentText: this.commentText
|
||||||
|
})
|
||||||
|
}, {}, res => {
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: res.data,
|
taskIds: res.data,
|
||||||
@@ -2292,44 +2331,63 @@
|
|||||||
this.modelOptions = res.data
|
this.modelOptions = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getDicTypeListCode(res,json) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
const history = res;
|
||||||
|
resolve(history)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getDataAsync(){
|
||||||
|
if(this.$route.query.bpnId) {
|
||||||
|
this.dataLoading = true
|
||||||
|
}
|
||||||
|
let res = await this.getDicTypeListCode()
|
||||||
|
if(res && res.data){
|
||||||
|
|
||||||
|
this.countryOptions=res.data.COUNTRY//国家地区
|
||||||
|
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||||
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||||
|
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||||
|
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
||||||
|
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
||||||
|
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
||||||
|
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||||
|
this.qcdwOption = res.data.QCDW // 体系类别
|
||||||
|
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
||||||
|
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
||||||
|
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||||
|
this.lawsTypeOptions = res.data.lawsType
|
||||||
|
this.lawsTextStateOptions = res.data.lawsTextState
|
||||||
|
this.lawsSyqyOptions = res.data.lawsSyqy
|
||||||
|
this.lawsSycxOptions = res.data.lawsSycx
|
||||||
|
this.lawsYearOptions = res.data.lawsYear
|
||||||
|
this.lawsLabelOptions = res.data.lawsLabel
|
||||||
|
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
||||||
|
this.TGRLAWSOptions = res.data.TGRLAWS
|
||||||
|
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
||||||
|
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
||||||
|
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
||||||
|
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
||||||
|
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
||||||
|
|
||||||
|
this.dataLoading = false
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.getDataAsync()
|
||||||
this.getTaskId()
|
this.getTaskId()
|
||||||
this.getTree()
|
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions=res.data.COUNTRY//国家地区
|
|
||||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
|
||||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
|
||||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
|
||||||
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
|
||||||
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
|
||||||
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
|
||||||
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
|
||||||
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
|
||||||
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
|
||||||
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
|
||||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
|
||||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
|
||||||
this.qcdwOption = res.data.QCDW // 体系类别
|
|
||||||
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
|
||||||
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
|
||||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
|
||||||
this.lawsTypeOptions = res.data.lawsType
|
|
||||||
this.lawsTextStateOptions = res.data.lawsTextState
|
|
||||||
this.lawsSyqyOptions = res.data.lawsSyqy
|
|
||||||
this.lawsSycxOptions = res.data.lawsSycx
|
|
||||||
this.lawsYearOptions = res.data.lawsYear
|
|
||||||
this.lawsLabelOptions = res.data.lawsLabel
|
|
||||||
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
|
||||||
this.TGRLAWSOptions = res.data.TGRLAWS
|
|
||||||
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
|
||||||
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
|
||||||
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
|
||||||
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
|
||||||
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2337,6 +2395,9 @@
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
/deep/ .fileClass{
|
||||||
|
line-height: 22px !important;
|
||||||
|
}
|
||||||
.bzrkStep1 {
|
.bzrkStep1 {
|
||||||
/deep/.el-drawer__container {
|
/deep/.el-drawer__container {
|
||||||
.prc-content-border {
|
.prc-content-border {
|
||||||
|
|||||||
@@ -51,7 +51,9 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="commentCycleDate"
|
v-model="commentCycleDate"
|
||||||
disabled
|
disabled
|
||||||
type="datetimerange"
|
type="daterange"
|
||||||
|
align="right"
|
||||||
|
unlink-panels
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@@ -243,31 +245,30 @@
|
|||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="政策文本" prop="ZCWBLAWSName" class="add-form-item form-item-disabled">
|
<el-form-item label="政策文本" prop="ZCWBLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="ZCWBLAWSFileMap.length>0" v-for="(value,index) in this.ZCWBLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ZCWBLAWS',value.id)">
|
<div v-if="ZCWBLAWSFileMap.length > 0" v-for="(item,index) in ZCWBLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
<!-- {{ value.name }} -->
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
{{value.name}}
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
</div>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
<div v-else>
|
</span>
|
||||||
- -
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="解读文件" prop="JDWJLAWSName" class="add-form-item form-item-disabled">
|
<el-form-item label="解读文件" prop="JDWJLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="JDWJLAWSFileMap.length>0" v-for="(value,index) in this.JDWJLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('JDWJLAWS',value.id)">
|
<div v-if="JDWJLAWSFileMap.length > 0" v-for="(item,index) in JDWJLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
{{value.name}}
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
</div>
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
<div v-else>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
- -
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="过程文本" prop="GCWBLAWSName" class="add-form-item form-item-disabled">
|
<el-form-item label="过程文本" prop="GCWBLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="GCWBLAWSFileMap.length>0" v-for="(value,index) in this.GCWBLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('GCWBLAWS',value.id)">
|
<div v-if="GCWBLAWSFileMap.length > 0" v-for="(item,index) in GCWBLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
{{value.name}}
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
</div>
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
<div v-else>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
- -
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -380,12 +381,12 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled">
|
<el-form-item label="关联文件" prop="GLWJLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="GLWJLAWSFileMap.length>0" v-for="(value,index) in this.GLWJLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('GLWJLAWS',value.id)">
|
<div v-if="GLWJLAWSFileMap.length > 0" v-for="(item,index) in GLWJLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
{{value.name}}
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
</div>
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
<div v-else>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
- -
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -560,6 +561,7 @@
|
|||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -575,6 +577,7 @@
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
dataLoading: true,
|
||||||
xgdFileMap: [],
|
xgdFileMap: [],
|
||||||
fbgbjbdFileMap: [],
|
fbgbjbdFileMap: [],
|
||||||
bpgFileMap: [],
|
bpgFileMap: [],
|
||||||
@@ -861,6 +864,25 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 文件预览及下载
|
||||||
|
handleFilePreview(file) {
|
||||||
|
let attId = ""
|
||||||
|
if(file && file.id){
|
||||||
|
attId = file.id
|
||||||
|
}else {
|
||||||
|
attId = file.response.data.id
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.preview) {
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$preview(attId)
|
||||||
|
}
|
||||||
|
},
|
||||||
downloadFile (fileType) {
|
downloadFile (fileType) {
|
||||||
//文件id中出现了','字符,去除掉
|
//文件id中出现了','字符,去除掉
|
||||||
if(fileType === 'ZCWBLAWS'){
|
if(fileType === 'ZCWBLAWS'){
|
||||||
@@ -937,14 +959,15 @@
|
|||||||
}, e => {})
|
}, e => {})
|
||||||
},
|
},
|
||||||
assemble(ids,names){
|
assemble(ids,names){
|
||||||
let list= new Array();
|
let list= new Array();
|
||||||
let idArray=ids.split(',');
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
let nameArray=names.split(',');
|
let idArray=ids.split(',');
|
||||||
for(var i=0;i<idArray.length;i++){
|
let nameArray=names.split(',');
|
||||||
list.push({id:idArray[i],name:nameArray[i]});
|
for(let i=0; i<idArray.length; i++){
|
||||||
}
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
|
}
|
||||||
return list;
|
}
|
||||||
|
return list;
|
||||||
},
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -960,7 +983,6 @@
|
|||||||
dateArr[1] = processForm.commentCycleEnd
|
dateArr[1] = processForm.commentCycleEnd
|
||||||
this.commentCycleDate = dateArr
|
this.commentCycleDate = dateArr
|
||||||
}
|
}
|
||||||
console.log("processFrom",processForm)
|
|
||||||
this.ZCWBLAWSFileId = processForm.ZCWBLAWS
|
this.ZCWBLAWSFileId = processForm.ZCWBLAWS
|
||||||
this.GCWBLAWSFileId = processForm.GCWBLAWS
|
this.GCWBLAWSFileId = processForm.GCWBLAWS
|
||||||
this.JDWJLAWSFileId = processForm.JDWJLAWS
|
this.JDWJLAWSFileId = processForm.JDWJLAWS
|
||||||
@@ -992,9 +1014,6 @@
|
|||||||
this.defaultCheckedKeys3 = [this.form.dybxh]
|
this.defaultCheckedKeys3 = [this.form.dybxh]
|
||||||
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
|
||||||
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : ''
|
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : ''
|
||||||
if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){
|
|
||||||
this.form.country=this.form.country.split(",");
|
|
||||||
}
|
|
||||||
this.form.prcNum = this.prcNum
|
this.form.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = item.id
|
this.form['id'] = item.id
|
||||||
@@ -1044,7 +1063,8 @@
|
|||||||
}
|
}
|
||||||
this.$refs['formTongGuo'].validate((valid) => {
|
this.$refs['formTongGuo'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
// this.isSubmit = true
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
this.form.commentText = this.formTongGuo.commentText
|
this.form.commentText = this.formTongGuo.commentText
|
||||||
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
this.form.approvalOpinion = this.formTongGuo.approvalOpinion
|
||||||
const json = JSON.stringify(this.form);
|
const json = JSON.stringify(this.form);
|
||||||
@@ -1059,6 +1079,7 @@
|
|||||||
if(this.formTongGuo.approvalOpinion === 1){
|
if(this.formTongGuo.approvalOpinion === 1){
|
||||||
this.$message.warning("驳回成功")
|
this.$message.warning("驳回成功")
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
// 流程提交之后,应该流转至待办任务页面
|
// 流程提交之后,应该流转至待办任务页面
|
||||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
}else{
|
}else{
|
||||||
@@ -1092,55 +1113,72 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getDicTypeListCode(res,json) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
const history = res;
|
||||||
|
resolve(history)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getDataAsync(){
|
||||||
|
let res = await this.getDicTypeListCode()
|
||||||
|
if(res && res.data){
|
||||||
|
|
||||||
|
this.countryOptions=res.data.COUNTRY//国家地区
|
||||||
|
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||||
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||||
|
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||||
|
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
||||||
|
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
||||||
|
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
||||||
|
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||||
|
this.qcdwOption = res.data.QCDW // 体系类别
|
||||||
|
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
||||||
|
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
||||||
|
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||||
|
this.lawsTypeOptions = res.data.lawsType
|
||||||
|
this.lawsTextStateOptions = res.data.lawsTextState
|
||||||
|
this.lawsSyqyOptions = res.data.lawsSyqy
|
||||||
|
this.lawsSycxOptions = res.data.lawsSycx
|
||||||
|
this.lawsYearOptions = res.data.lawsYear
|
||||||
|
this.lawsLabelOptions = res.data.lawsLabel
|
||||||
|
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
||||||
|
this.TGRLAWSOptions = res.data.TGRLAWS
|
||||||
|
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
||||||
|
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
||||||
|
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
||||||
|
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
||||||
|
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
||||||
|
this.key++
|
||||||
|
|
||||||
|
this.dataLoading = false
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.getDataAsync()
|
||||||
this.getData()
|
this.getData()
|
||||||
this.processTable()
|
this.processTable()
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions=res.data.COUNTRY//国家地区
|
|
||||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
|
||||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
|
||||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
|
||||||
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
|
||||||
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
|
||||||
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
|
||||||
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
|
||||||
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
|
||||||
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
|
||||||
this.qcdwOptions = res.data.QCDW // 起草单位
|
|
||||||
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
|
||||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
|
||||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
|
||||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
|
||||||
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
|
||||||
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
|
||||||
this.lawsTypeOptions = res.data.lawsType
|
|
||||||
this.lawsTextStateOptions = res.data.lawsTextState
|
|
||||||
this.lawsSyqyOptions = res.data.lawsSyqy
|
|
||||||
this.lawsSycxOptions = res.data.lawsSycx
|
|
||||||
this.lawsYearOptions = res.data.lawsYear
|
|
||||||
this.lawsLabelOptions = res.data.lawsLabel
|
|
||||||
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
|
||||||
this.TGRLAWSOptions = res.data.TGRLAWS
|
|
||||||
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
|
||||||
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
|
||||||
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
|
||||||
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
|
||||||
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
|
||||||
this.key++
|
|
||||||
})
|
|
||||||
this.busVsFunc()
|
|
||||||
this.modelFunc()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
/deep/ .fileClass{
|
||||||
|
line-height: 22px !important;
|
||||||
|
}
|
||||||
.bzrkStep2 {
|
.bzrkStep2 {
|
||||||
/deep/.el-drawer__container {
|
/deep/.el-drawer__container {
|
||||||
.prc-content-border {
|
.prc-content-border {
|
||||||
|
|||||||
@@ -63,8 +63,9 @@
|
|||||||
<el-form-item v-show="verifySarStandard" label="征集意见周期" prop="commentCycleDate" class="add-form-item form-item-disabled">
|
<el-form-item v-show="verifySarStandard" label="征集意见周期" prop="commentCycleDate" class="add-form-item form-item-disabled">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="commentCycleDate"
|
v-model="commentCycleDate"
|
||||||
type="datetimerange"
|
type="daterange"
|
||||||
:picker-options="pickerOptions"
|
align="right"
|
||||||
|
unlink-panels
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@@ -267,8 +268,13 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in ZCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in ZCWBLAWSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||||
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
|
||||||
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -290,8 +296,13 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in JDWJLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in JDWJLAWSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||||
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
|
||||||
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -315,8 +326,13 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in GCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in GCWBLAWSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||||
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
|
||||||
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -492,8 +508,13 @@
|
|||||||
clearable
|
clearable
|
||||||
></el-input>
|
></el-input>
|
||||||
<div style="display: flex;justify-content: space-between">
|
<div style="display: flex;justify-content: space-between">
|
||||||
<div style="width: 80%;">
|
<div style="width: 80%;margin-top: 13px">
|
||||||
<div v-for="(item,index) in GCWBLAWSFileList" :key="index" @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" class="fileClass">{{ item.name }}</div>
|
<div v-for="(item,index) in GCWBLAWSFileList" :key="index" style="color: #409eff;cursor:pointer" class="fileClass">
|
||||||
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name">{{ item.name }}</span>
|
||||||
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="width: 20%;">
|
<div style="width: 20%;">
|
||||||
<el-button
|
<el-button
|
||||||
@@ -599,6 +620,8 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
show-transfer
|
||||||
|
@transfer="handleTransfer"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
>
|
>
|
||||||
@@ -738,6 +761,14 @@
|
|||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<!-- 福田全公司转办选人解决方案 -->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
:is-title="drawerTitle"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRoleTransfer"
|
||||||
|
:nodeList="nodeList"
|
||||||
|
></Role-tree>
|
||||||
<!-- <el-drawer-->
|
<!-- <el-drawer-->
|
||||||
<!-- :title="drawerTitle"-->
|
<!-- :title="drawerTitle"-->
|
||||||
<!-- :visible.sync="modalShowFlag"-->
|
<!-- :visible.sync="modalShowFlag"-->
|
||||||
@@ -918,14 +949,15 @@
|
|||||||
@click="handleProcessStandardNext(3)">取消</el-button>
|
@click="handleProcessStandardNext(3)">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
</div>
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ProcessHeader from '../../components/ProcessHeader'
|
import ProcessHeader from '../../components/ProcessHeader'
|
||||||
import ProcessFooter from '../../components/ProcessFooter'
|
import ProcessFooter from '../../components/ProcessFooter'
|
||||||
import ProcessTitle from '../../components/ProcessTitle'
|
import ProcessTitle from '../../components/ProcessTitle'
|
||||||
import {inboundLiaisonDetail,saveTaskFirst, queryTaskFirst} from "api/process";
|
import {inboundLiaisonDetail,saveTaskFirst, queryTaskFirst,changeAssigneeNew,saveTaskForPub} from "api/process";
|
||||||
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
import TreeSelect from '@/components/treeSelect/treeSelect.vue';
|
||||||
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
|
||||||
|
|
||||||
@@ -988,6 +1020,7 @@
|
|||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
|
dataLoading: true,
|
||||||
userId:this.$store.getters.userInfo.userId,
|
userId:this.$store.getters.userInfo.userId,
|
||||||
taskIds: this.$route.query.taskIds,
|
taskIds: this.$route.query.taskIds,
|
||||||
pId: this.$route.query.prcId,
|
pId: this.$route.query.prcId,
|
||||||
@@ -1108,6 +1141,7 @@
|
|||||||
modalShowFlag4: false, // drawer开关
|
modalShowFlag4: false, // drawer开关
|
||||||
url:'',
|
url:'',
|
||||||
urlChild:'',
|
urlChild:'',
|
||||||
|
drawerModal:false,
|
||||||
drawerTitle: '', //drawer标题
|
drawerTitle: '', //drawer标题
|
||||||
showCheckBox: true, // 树形控件是否展示多选框
|
showCheckBox: true, // 树形控件是否展示多选框
|
||||||
nodeKey: 'id',
|
nodeKey: 'id',
|
||||||
@@ -1430,6 +1464,17 @@
|
|||||||
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
||||||
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
||||||
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
||||||
|
const dateArr = []
|
||||||
|
if(this.form.commentCycleStart && this.form.commentCycleEnd){
|
||||||
|
dateArr[0] = this.form.commentCycleStart
|
||||||
|
dateArr[1] = this.form.commentCycleEnd
|
||||||
|
this.commentCycleDate = dateArr
|
||||||
|
}
|
||||||
|
|
||||||
|
this.ZCWBLAWSFileList=this.assemble(this.form.ZCWBLAWS,this.form.ZCWBLAWSName);
|
||||||
|
this.GCWBLAWSFileList=this.assemble(this.form.GCWBLAWS,this.form.GCWBLAWSName);
|
||||||
|
this.JDWJLAWSFileList=this.assemble(this.form.JDWJLAWS,this.form.JDWJLAWSName);
|
||||||
|
this.GLWJLAWSFileList=this.assemble(this.form.GLWJLAWS,this.form.GLWJLAWSName);
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
filterObj(obj){
|
filterObj(obj){
|
||||||
@@ -1451,19 +1496,13 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
const dateArr = []
|
if (processForm.form === undefined) {
|
||||||
if(processForm.commentCycleStart && processForm.commentCycleEnd){
|
this.getFormFieldList(processForm)
|
||||||
dateArr[0] = processForm.commentCycleStart
|
} else {
|
||||||
dateArr[1] = processForm.commentCycleEnd
|
//表单文件处理
|
||||||
this.commentCycleDate = dateArr
|
this.getTaskId(processForm)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getFormFieldList(processForm)
|
|
||||||
|
|
||||||
this.ZCWBLAWSFileList=this.assemble(processForm.ZCWBLAWS,processForm.ZCWBLAWSName);
|
|
||||||
this.GCWBLAWSFileList=this.assemble(processForm.GCWBLAWS,processForm.GCWBLAWSName);
|
|
||||||
this.JDWJLAWSFileList=this.assemble(processForm.JDWJLAWS,processForm.JDWJLAWSName);
|
|
||||||
this.GLWJLAWSFileList=this.assemble(processForm.GLWJLAWS,processForm.GLWJLAWSName);
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
@@ -1482,39 +1521,16 @@
|
|||||||
return list;
|
return list;
|
||||||
},
|
},
|
||||||
processTable () {
|
processTable () {
|
||||||
this.$nextTick(() => {
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
Promise.all([this.getTaskId()]).then((value) => {
|
prcNum: this.$route.query.prcNum,
|
||||||
if(value[0] &&value.length > 0){
|
sortWord: this.shunxu ? this.paixu : "",
|
||||||
let mes = JSON.parse(value[0].mes)
|
shunxu: this.shunxu
|
||||||
mes.form.date = new Date(this.$moment(mes.form.date).format('YYYY-MM-DD'))
|
}, {
|
||||||
this.form = mes.form
|
loading: "loading",
|
||||||
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
_this: this
|
||||||
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
}, res => {
|
||||||
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
this.detailData = res
|
||||||
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
}, e => {
|
||||||
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
|
||||||
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
|
||||||
this.taskIds = mes.taskIds;
|
|
||||||
this.pId = mes.pId;
|
|
||||||
this.userId = mes.userId;
|
|
||||||
this.prcNum = mes.prcNum;
|
|
||||||
this.prcName = mes.prcName;
|
|
||||||
this.roleForm = mes.roleForm
|
|
||||||
this.commentText = mes.commentText
|
|
||||||
}
|
|
||||||
this.loading = true
|
|
||||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
|
||||||
prcNum: this.prcNum,
|
|
||||||
sortWord: this.shunxu ? this.paixu : '',
|
|
||||||
shunxu: this.shunxu
|
|
||||||
}, {
|
|
||||||
loading: 'loading',
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.detailData = res
|
|
||||||
this.loading = false
|
|
||||||
}, e => {})
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// choiceZRRS () {
|
// choiceZRRS () {
|
||||||
@@ -1546,25 +1562,66 @@
|
|||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
checkedRoleTransfer (data) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
|
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
pId: this.$route.query.prcId, // 流程实例
|
||||||
|
}).then(res => {
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
|
if (res.success) {
|
||||||
|
this.drawerModal = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
|
this.processNum()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
processNum (row) {
|
||||||
|
axios.request({
|
||||||
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
prcNum: this.$route.query.prcNum
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
this.processStep = window.URL.createObjectURL(res.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
// z责任人会签姓名搜索
|
// z责任人会签姓名搜索
|
||||||
filterNode(value, data) {
|
filterNode(value, data) {
|
||||||
if (!value) return true;
|
if (!value) return true;
|
||||||
return data.name.indexOf(value) !== -1;
|
return data.name.indexOf(value) !== -1;
|
||||||
},
|
},
|
||||||
getTaskId () {
|
getTaskId (mesg) {
|
||||||
if(this.bpnId){
|
this.form = mesg.form
|
||||||
return new Promise((resolve, reject) => {
|
this.form.date = new Date(this.$moment(mesg.form.date).format('YYYY-MM-DD'))
|
||||||
queryTaskFirst({
|
let dateArr = []
|
||||||
bpnId: this.bpnId
|
if(mesg.commentCycleStart && mesg.commentCycleEnd){
|
||||||
}).then(res => {
|
dateArr[0] = mesg.commentCycleStart
|
||||||
this.verifySarStandard = this.$route.query.verifySarStandard
|
dateArr[1] = mesg.commentCycleEnd
|
||||||
resolve(res || [])
|
this.commentCycleDate = dateArr
|
||||||
}, e => {
|
}
|
||||||
reject(e)
|
this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy'])
|
||||||
})
|
this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx'])
|
||||||
})
|
this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel'])
|
||||||
}
|
this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS'])
|
||||||
},
|
this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS'])
|
||||||
|
this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS'])
|
||||||
|
this.ZCWBLAWSFileList=this.assemble(this.form.ZCWBLAWS,this.form.ZCWBLAWSName);
|
||||||
|
this.GCWBLAWSFileList=this.assemble(this.form.GCWBLAWS,this.form.GCWBLAWSName);
|
||||||
|
this.JDWJLAWSFileList=this.assemble(this.form.JDWJLAWS,this.form.JDWJLAWSName);
|
||||||
|
this.GLWJLAWSFileList=this.assemble(this.form.GLWJLAWS,this.form.GLWJLAWSName);
|
||||||
|
this.roleForm = mesg.roleForm
|
||||||
|
this.commentText = mesg.commentText
|
||||||
|
},
|
||||||
// 将文本状态的id与name对应
|
// 将文本状态的id与name对应
|
||||||
setMap(data){
|
setMap(data){
|
||||||
data.forEach(item => {
|
data.forEach(item => {
|
||||||
@@ -2278,6 +2335,10 @@
|
|||||||
handleTabs(name) {
|
handleTabs(name) {
|
||||||
this.active = name
|
this.active = name
|
||||||
},
|
},
|
||||||
|
handleTransfer() {
|
||||||
|
this.drawerModal = true
|
||||||
|
this.drawerTitle = '转办处理人'
|
||||||
|
},
|
||||||
//保存
|
//保存
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.form.country=this.countryArr;
|
this.form.country=this.countryArr;
|
||||||
@@ -2288,30 +2349,32 @@
|
|||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.fileInfoHandle()
|
this.fileInfoHandle()
|
||||||
|
let startDate = ""
|
||||||
|
let endDate = ""
|
||||||
|
if(this.commentCycleDate && this.commentCycleDate.length > 0){
|
||||||
|
startDate = this.commentCycleDate[0]
|
||||||
|
endDate = this.commentCycleDate[1]
|
||||||
|
}else {
|
||||||
|
startDate = ''
|
||||||
|
endDate = ''
|
||||||
|
}
|
||||||
let _formData = new FormData()
|
let _formData = new FormData()
|
||||||
// _formData.append('id', this.bpnId)
|
_formData.append('id', this.bpnId || '')
|
||||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||||
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
_formData.append('createUserName', this.$store.getters.userInfo.uName)
|
||||||
|
_formData.append('taskIds', this.taskIds)
|
||||||
_formData.append('prcType', 'laws1')
|
_formData.append('prcType', 'laws1')
|
||||||
_formData.append('prcName', '政策入库流程')
|
_formData.append('prcName', '政策入库流程')
|
||||||
_formData.append('json', JSON.stringify({
|
_formData.append('json', JSON.stringify({
|
||||||
// prcForm: this.prcForm,
|
prcNum:this.prcNum,
|
||||||
// sarAccessInfoList: this.sarAccessInfoList,
|
taskInfo: this.taskInfo,
|
||||||
// sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
|
form: this.form,
|
||||||
// bzqdForm: this.bzqdForm,
|
roleForm: this.roleForm,
|
||||||
// listInfo: this.listInfo,
|
commentText: this.commentText,
|
||||||
// id: this.id
|
commentCycleStart: startDate,
|
||||||
userId:this.userId,
|
commentCycleEnd: endDate,
|
||||||
taskIds: this.taskIds,
|
|
||||||
pId: this.pId,
|
|
||||||
prcNum: this.prcNum,
|
|
||||||
prcName: this.prcName,
|
|
||||||
taskInfo: '申请人重新发起',
|
|
||||||
form: this.form,
|
|
||||||
roleForm: this.roleForm,
|
|
||||||
commentText: this.commentText
|
|
||||||
}))
|
}))
|
||||||
saveTaskFirst(_formData).then(res => {
|
saveTaskForPub(_formData).then(res => {
|
||||||
this.isSubmit = false
|
this.isSubmit = false
|
||||||
this.saveLoading = false
|
this.saveLoading = false
|
||||||
this.$message.success('保存成功')
|
this.$message.success('保存成功')
|
||||||
@@ -2353,6 +2416,10 @@
|
|||||||
json.applyUpdUserId = this.form.applyUpdUserId
|
json.applyUpdUserId = this.form.applyUpdUserId
|
||||||
json.prcCreateUser = this.form.prcCreateUser
|
json.prcCreateUser = this.form.prcCreateUser
|
||||||
json.prcCreateUserName = this.form.prcCreateUserName
|
json.prcCreateUserName = this.form.prcCreateUserName
|
||||||
|
if(this.commentCycleDate && this.commentCycleDate.length > 0){
|
||||||
|
json.commentCycleStart = this.commentCycleDate[0]
|
||||||
|
json.commentCycleEnd = this.commentCycleDate[1]
|
||||||
|
}
|
||||||
|
|
||||||
this.$http.post('lawss/activiti/completeTask', {
|
this.$http.post('lawss/activiti/completeTask', {
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
@@ -2398,45 +2465,60 @@
|
|||||||
this.modelOptions = res.data
|
this.modelOptions = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getDicTypeListCode(res,json) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
const history = res;
|
||||||
|
resolve(history)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getDataAsync(){
|
||||||
|
let res = await this.getDicTypeListCode()
|
||||||
|
if(res && res.data){
|
||||||
|
|
||||||
|
this.countryOptions=res.data.COUNTRY//国家地区
|
||||||
|
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||||
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||||
|
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||||
|
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
||||||
|
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
||||||
|
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
||||||
|
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||||
|
this.qcdwOption = res.data.QCDW // 体系类别
|
||||||
|
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
||||||
|
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
||||||
|
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||||
|
this.lawsTypeOptions = res.data.lawsType
|
||||||
|
this.lawsTextStateOptions = res.data.lawsTextState
|
||||||
|
this.lawsSyqyOptions = res.data.lawsSyqy
|
||||||
|
this.lawsSycxOptions = res.data.lawsSycx
|
||||||
|
this.lawsYearOptions = res.data.lawsYear
|
||||||
|
this.lawsLabelOptions = res.data.lawsLabel
|
||||||
|
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
||||||
|
this.TGRLAWSOptions = res.data.TGRLAWS
|
||||||
|
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
||||||
|
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
||||||
|
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
||||||
|
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
||||||
|
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
||||||
|
|
||||||
|
this.dataLoading = false
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.getDataAsync()
|
||||||
this.getData()
|
this.getData()
|
||||||
this.processTable()
|
this.processTable()
|
||||||
this.getTree()
|
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.countryOptions=res.data.COUNTRY//国家地区
|
|
||||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
|
||||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
|
||||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
|
||||||
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
|
||||||
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
|
||||||
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
|
||||||
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
|
||||||
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
|
||||||
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
|
||||||
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
|
||||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
|
||||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
|
||||||
this.qcdwOption = res.data.QCDW // 体系类别
|
|
||||||
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
|
||||||
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
|
||||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
|
||||||
this.lawsTypeOptions = res.data.lawsType
|
|
||||||
this.lawsTextStateOptions = res.data.lawsTextState
|
|
||||||
this.lawsSyqyOptions = res.data.lawsSyqy
|
|
||||||
this.lawsSycxOptions = res.data.lawsSycx
|
|
||||||
this.lawsYearOptions = res.data.lawsYear
|
|
||||||
this.lawsLabelOptions = res.data.lawsLabel
|
|
||||||
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
|
||||||
this.TGRLAWSOptions = res.data.TGRLAWS
|
|
||||||
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
|
||||||
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
|
||||||
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
|
||||||
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
|
||||||
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2444,6 +2526,9 @@
|
|||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
/deep/ .fileClass{
|
||||||
|
line-height: 22px !important;
|
||||||
|
}
|
||||||
.bzrkStep1 {
|
.bzrkStep1 {
|
||||||
/deep/.el-drawer__container {
|
/deep/.el-drawer__container {
|
||||||
.prc-content-border {
|
.prc-content-border {
|
||||||
|
|||||||
@@ -51,7 +51,9 @@
|
|||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="commentCycleDate"
|
v-model="commentCycleDate"
|
||||||
disabled
|
disabled
|
||||||
type="datetimerange"
|
type="daterange"
|
||||||
|
align="right"
|
||||||
|
unlink-panels
|
||||||
range-separator="至"
|
range-separator="至"
|
||||||
start-placeholder="开始日期"
|
start-placeholder="开始日期"
|
||||||
end-placeholder="结束日期"
|
end-placeholder="结束日期"
|
||||||
@@ -243,30 +245,29 @@
|
|||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item v-if="form.standInData === '0'" label="政策文本" prop="ZCWBLAWSName" class="add-form-item form-item-disabled">
|
<el-form-item v-if="form.standInData === '0'" label="政策文本" prop="ZCWBLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="ZCWBLAWSFileMap.length>0" v-for="(value,index) in this.ZCWBLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('ZCWBLAWS',value.id)">
|
<div v-if="ZCWBLAWSFileMap.length > 0" v-for="(item,index) in ZCWBLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
<!-- {{ value.name }} -->
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
{{value.name}}
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
</div>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
<div v-else>
|
</span>
|
||||||
- -
|
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="解读文件" prop="JDWJLAWSName" class="add-form-item form-item-disabled">
|
<el-form-item label="解读文件" prop="JDWJLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="JDWJLAWSFileMap.length>0" v-for="(value,index) in this.JDWJLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('JDWJLAWS',value.id)">
|
<div v-if="JDWJLAWSFileMap.length > 0" v-for="(item,index) in JDWJLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
{{value.name}}
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
</div>
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
<div v-else>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
- -
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item v-if="form.standInData === '1'" label="过程文本" prop="GCWBLAWSName" class="add-form-item form-item-disabled">
|
<el-form-item v-if="form.standInData === '1'" label="过程文本" prop="GCWBLAWSName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="GCWBLAWSFileMap.length>0" v-for="(value,index) in this.GCWBLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('GCWBLAWS',value.id)">
|
<div v-if="GCWBLAWSFileMap.length > 0" v-for="(item,index) in GCWBLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
{{value.name}}
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
</div>
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
<div v-else>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
- -
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -387,11 +388,11 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled">
|
<el-form-item label="关联文件" prop="glwjName" class="add-form-item form-item-disabled">
|
||||||
<div v-if="GLWJLAWSFileMap.length>0" v-for="(value,index) in this.GLWJLAWSFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('GLWJLAWS',value.id)">
|
<div v-if="GLWJLAWSFileMap.length > 0" v-for="(item,index) in GLWJLAWSFileMap" :key="index" style="color: #409eff;cursor:pointer;margin-left: 12px;margin-top: 13px" class="fileClass">
|
||||||
{{value.name}}
|
<span style="" @click="handleFilePreview(item,'preview')" :title="item.name"> {{ item.name }}</span>
|
||||||
</div>
|
<span style="margin-left: 7px;" v-if="item.id !== ''">
|
||||||
<div v-else>
|
<i class="el-icon-download" title="下载" @click="handleFilePreview(item,'down')"></i>
|
||||||
- -
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -540,6 +541,7 @@
|
|||||||
<!-- @submit="handleSubmit"-->
|
<!-- @submit="handleSubmit"-->
|
||||||
<!-- >-->
|
<!-- >-->
|
||||||
<!-- </ProcessFooter>-->
|
<!-- </ProcessFooter>-->
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -554,6 +556,7 @@
|
|||||||
name: "zcrkStep5",
|
name: "zcrkStep5",
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
xgdFileId: '',
|
xgdFileId: '',
|
||||||
fbgbjbdFileId: '',
|
fbgbjbdFileId: '',
|
||||||
bpgFileId: '',
|
bpgFileId: '',
|
||||||
@@ -709,6 +712,25 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 文件预览及下载
|
||||||
|
handleFilePreview(file) {
|
||||||
|
let attId = ""
|
||||||
|
if(file && file.id){
|
||||||
|
attId = file.id
|
||||||
|
}else {
|
||||||
|
attId = file.response.data.id
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.preview) {
|
||||||
|
if (attId) {
|
||||||
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + attId
|
||||||
|
} else {
|
||||||
|
this.$message.warning('文件不存在,下载失败')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.$preview(attId)
|
||||||
|
}
|
||||||
|
},
|
||||||
downloadFile (fileType) {
|
downloadFile (fileType) {
|
||||||
if(fileType === 'ZCWBLAWS'){
|
if(fileType === 'ZCWBLAWS'){
|
||||||
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + this.ZCWBLAWSFileId
|
window.location.href = '/api/att/attFile/downloadFileForSarNew?fileId=' + this.ZCWBLAWSFileId
|
||||||
@@ -787,6 +809,17 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
assemble(ids,names){
|
||||||
|
let list= new Array();
|
||||||
|
if(ids && ids !== '' && names && names !== ''){
|
||||||
|
let idArray=ids.split(',');
|
||||||
|
let nameArray=names.split(',');
|
||||||
|
for(let i=0; i<idArray.length; i++){
|
||||||
|
list.push({id:idArray[i],name:nameArray[i]});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
@@ -860,48 +893,69 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
getDicTypeListCode(res,json) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
||||||
|
_this: this
|
||||||
|
}, res => {
|
||||||
|
const history = res;
|
||||||
|
resolve(history)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
async getDataAsync() {
|
||||||
|
let res = await this.getDicTypeListCode()
|
||||||
|
if (res && res.data) {
|
||||||
|
|
||||||
|
this.countryOptions = res.data.COUNTRY//国家地区
|
||||||
|
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
||||||
|
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
||||||
|
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
||||||
|
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
||||||
|
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
||||||
|
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
||||||
|
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
||||||
|
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
||||||
|
this.wssmrOptions = res.data.WSSMR // 我司署名人
|
||||||
|
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
||||||
|
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
||||||
|
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
||||||
|
this.qcdwOption = res.data.QCDW // 体系类别
|
||||||
|
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
||||||
|
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
||||||
|
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
||||||
|
this.lawsTypeOptions = res.data.lawsType
|
||||||
|
this.lawsTextStateOptions = res.data.lawsTextState
|
||||||
|
this.lawsSyqyOptions = res.data.lawsSyqy
|
||||||
|
this.lawsSycxOptions = res.data.lawsSycx
|
||||||
|
this.lawsYearOptions = res.data.lawsYear
|
||||||
|
this.lawsLabelOptions = res.data.lawsLabel
|
||||||
|
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
||||||
|
this.TGRLAWSOptions = res.data.TGRLAWS
|
||||||
|
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
||||||
|
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
||||||
|
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
||||||
|
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
||||||
|
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
||||||
|
this.key++
|
||||||
|
|
||||||
|
this.dataLoading = false
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
this.getDataAsync()
|
||||||
this.getData()
|
this.getData()
|
||||||
this.processTable()
|
|
||||||
this.$http.get('sys/dictype/getDicTypeListCode', '', {
|
|
||||||
_this: this
|
|
||||||
}, res => {
|
|
||||||
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
|
|
||||||
this.standNatureOptions = res.data.SARPROPERTY // 标准性质
|
|
||||||
this.standStateOptions = res.data.WBZTCLASS // 文本状态
|
|
||||||
this.standSystemOptions = res.data.BZTXCLASS // 标准体系
|
|
||||||
this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
|
|
||||||
this.categoryOptions = res.data.NYLXCLASS // 能源类型
|
|
||||||
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
|
|
||||||
this.cysdOptions = res.data.WSCYSD // 我司参与深度
|
|
||||||
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
|
|
||||||
this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
|
|
||||||
this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
|
|
||||||
this.txlbOptions = res.data.TXLBCLASS // 体系类别
|
|
||||||
this.qcdwOption = res.data.QCDW // 体系类别
|
|
||||||
this.gkglbmOptions = res.data.GKGLBM // 归口管理部门
|
|
||||||
this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度
|
|
||||||
this.lawsTypeOptions = res.data.lawsType
|
|
||||||
this.lawsTextStateOptions = res.data.lawsTextState
|
|
||||||
this.lawsSyqyOptions = res.data.lawsSyqy
|
|
||||||
this.lawsSycxOptions = res.data.lawsSycx
|
|
||||||
this.lawsYearOptions = res.data.lawsYear
|
|
||||||
this.lawsLabelOptions = res.data.lawsLabel
|
|
||||||
this.CYSDLAWSOptions = res.data.CYSDLAWS
|
|
||||||
this.TGRLAWSOptions = res.data.TGRLAWS
|
|
||||||
this.TGDWLAWSOptions = res.data.TGDWLAWS
|
|
||||||
this.NYLXLAWSOptions = res.data.NYLXLAWS
|
|
||||||
this.YYRZLAWSOptions = res.data.YYRZLAWS
|
|
||||||
this.ZRBMLAWSOptions = res.data.ZRBMLAWS
|
|
||||||
this.ZRGCSLAWSOptions = res.data.ZRGCSLAWS
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
@import '~@/assets/styles/style';
|
@import '~@/assets/styles/style';
|
||||||
|
/deep/ .fileClass{
|
||||||
|
line-height: 22px !important;
|
||||||
|
}
|
||||||
.bzrkStep2 {
|
.bzrkStep2 {
|
||||||
/deep/.el-drawer__container {
|
/deep/.el-drawer__container {
|
||||||
.prc-content-border {
|
.prc-content-border {
|
||||||
|
|||||||
Reference in New Issue
Block a user