Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2021-12-28 15:38:37 +08:00
65 changed files with 5599 additions and 3725 deletions
@@ -5,6 +5,7 @@
:prop="config.attrField" :prop="config.attrField"
:label-width="labelWidth" :label-width="labelWidth"
class="add-form-item" class="add-form-item"
style="width: 100%;"
:class="{'form-item-disabled': disabled}" :class="{'form-item-disabled': disabled}"
> >
<el-input <el-input
@@ -42,7 +43,7 @@
v-model="replaceLawsNumForm.standType" v-model="replaceLawsNumForm.standType"
placeholder="请选择" placeholder="请选择"
> >
<el-option value="ALL" label="全部"></el-option> <el-option value="" label="全部"></el-option>
<el-option value="INLAND" label="国内"></el-option> <el-option value="INLAND" label="国内"></el-option>
<el-option value="FOREIGN" label="海外"></el-option> <el-option value="FOREIGN" label="海外"></el-option>
</el-select> </el-select>
@@ -125,8 +126,8 @@
@pageChange="pageChangeReplace" @pageChange="pageChangeReplace"
@pageSizeChange="pageSizeChangeReplace"></pagination> @pageSizeChange="pageSizeChangeReplace"></pagination>
<div slot="footer" class="demo-drawer-footer"> <div slot="footer" class="demo-drawer-footer">
<el-button class="common-button-default" icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button> <el-button class="common-button-default" round size="mini" icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button>
<el-button type="primary" round class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button> <el-button type="primary" round size="mini" class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button>
</div> </div>
</el-dialog> </el-dialog>
@@ -176,7 +177,7 @@ export default {
page: 1, page: 1,
pageSize: this.$store.getters.userInfo.configContent, pageSize: this.$store.getters.userInfo.configContent,
total: 0, total: 0,
standType: 'ALL', standType: '',
quoteIdList: '', quoteIdList: '',
validFlag: '0', validFlag: '0',
menuId: 'nomenu' menuId: 'nomenu'
@@ -0,0 +1,349 @@
<template>
<div>
<el-form-item
:label="config.attrName"
:prop="config.attrField"
:label-width="labelWidth"
class="add-form-item"
style="width: 100%;"
:class="{'form-item-disabled': disabled}"
>
<el-input
:value="value"
:placeholder="placeholder"
:disabled="disabled"
clearable
@input="handleChange"
></el-input>
<el-button
type="primary"
class="common-button-primary"
size="mini"
style="position:absolute;top: 10px;right: 0;"
@click="selectLaws"
v-if="(processModel && !disabled) || !processModel"
>{{config.attrField === 'releventStand' ? '选择标准' :'手动查找'}}</el-button>
</el-form-item>
<el-dialog
:title="config.attrName"
:visible.sync="replaceLawsNumModel"
width="875px"
:close-on-click-modal="false"
@close="replaceLawsNumModelCancel"
:append-to-body="true"
>
<div class="search-area">
<div class="left">
<el-form :modal="replaceLawsNumForm" :inline="true" class="label-input-form">
<el-form-item label="编号/名称" class="search-item">
<el-input v-model="replaceLawsNumForm.standNumber" placeholder="根据编号/名称查找" clearable :maxlength="100"></el-input>
</el-form-item>
<el-form-item label="国内/海外" class="search-item">
<el-select
v-model="replaceLawsNumForm.standType"
placeholder="请选择"
>
<el-option value="1" label="企标"></el-option>
<el-option value="INLAND" label="国内"></el-option>
<el-option value="FOREIGN" label="海外"></el-option>
</el-select>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
icon="el-icon-search"
type="primary"
class="common-button-primary"
round
@click="getReplaceLawsNumRowInfo">
</el-button>
</el-form-item>
<el-form-item class="search-item btn-box">
<el-button
class="common-button-default"
icon="el-icon-refresh-left"
round
type="default"
@click="getResetLawsNumRow"></el-button>
</el-form-item>
</el-form>
</div>
</div>
<el-table
ref="selections"
:data="replaceLawsNumRow"
tooltip-effect="dark"
style="width: 100%;overflow-y: auto;overflow-x: hidden;"
border
:height="300"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="selectReplaceStandNumRowChange">
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
label="标准编号"
width="130">
<template slot-scope="scope">
<a v-if="scope.row.standYear" @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)">{{ scope.row.standSort }} {{ scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
prop="standName"
label="标准名称"
width="130">
</el-table-column>
<el-table-column
prop="issueTime"
label="发布日期"
width="130">
</el-table-column>
<el-table-column
prop="putTime"
label="实施日期"
width="130">
</el-table-column>
<el-table-column
prop="standNatureShow"
label="标准性质"
width="130">
</el-table-column>
<el-table-column
prop="standStateShow"
label="标准状态"
width="130">
</el-table-column>
</el-table>
<loading :loading="replaceLoading">{{$t('m.dataAcquisition')}}</loading>
<!--分页-->
<pagination
style="position: relative;"
:page="replacePage"
:total="replaceTotal"
@pageChange="pageChangeReplace"
@pageSizeChange="pageSizeChangeReplace"></pagination>
<div slot="footer" class="demo-drawer-footer">
<el-button class="common-button-default" round size="mini" icon="el-icon-close" @click="replaceLawsNumModel = false">取消</el-button>
<el-button type="primary" round size="mini" class="common-button-primary" icon="el-icon-check" @click="replaceLawsNumModelBt">提交</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: 'CustomInput',
props: {
config: {
type: Object,
required: true
},
value: {
required: true
},
disabled: {
type: Boolean,
default: false
},
// 栅格比例
span: {
type: Number,
default: 24
},
// 是否为流程中使用
processModel: {
type: Boolean,
default: false
},
// label宽度
labelWidth: {
type: String,
default: '150px'
}
},
data () {
return {
replaceLawsNumModel: false,
sarBussionessLawsEO: {
replaceLawsNum: ''
},
// 代替标准号
replaceLawsNumForm: {
standNumber: '', // 政策编号
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
total: 0,
standType: 'INLAND',
quoteIdList: '',
validFlag: '0',
menuId: 'nomenu'
},
replaceLawsNumRow: [], // 代替政策号 数组内容
replaceTotal: 0,
selectedListRep: [],
replaceLoading: true,
replacePage: 1
}
},
computed: {
placeholder () {
return `请输入${this.config.attrName}`
},
showMessage () {
return `${this.config.attrName}不能为空`
},
isRequired () {
return !!this.config.isMust
}
},
methods: {
handleChange (event) {
const value = event
this.$emit('input', value)
},
selectLaws () {
this.replaceLawsNumModel = true
this.getReplaceLawsNumRow()
},
getReplaceLawsNumRowInfo() {
this.replaceLawsNumForm.page = 1
this.getReplaceLawsNumRow()
},
// 代替政策号 请求数据
getReplaceLawsNumRow () {
if (this.replaceLawsNumForm.standType === '1') {
let json = {}
json = this.replaceLawsNumForm
json.userId = this.$store.getters.userInfo.userId
json.standCode = this.replaceLawsNumForm.standNumber
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', json, {
_this: this, loading: 'replaceLoading'
}, res => {
this.replaceLawsNumRow = res.data.list
this.replaceTotal = res.data.count
// if (this.selectedListRep.length !== 0) {
// this.selectedListRep.map((list) => {
// this.replaceLawsNumRow.map((item) => {
// if (list.id === item.id) {
// item._checked = true
// }
// })
// })
// }
}, e => {
})
} else {
if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') {
this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1
} else {
this.quoteIdList1 = []
this.replaceLawsNumForm.quoteIdList = ''
}
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, {
_this: this,
loading: 'replaceLoading'
}, res => {
this.replaceLawsNumRow = res.data.list
this.replaceTotal = res.data.count
// if (this.selectedListRep.length !== 0) {
// this.selectedListRep.map((list) => {
// this.replaceLawsNumRow.map((item) => {
// if (list.id === item.id) {
// item._checked = true
// }
// })
// })
// }
}, e => {
})
}
},
// 代替政策编号-取消
replaceLawsNumModelCancel () {
this.$refs.selections.clearSelection()
},
// 代替政策号 table选择事件
selectReplaceStandNumRowChange (row) {
this.selectedListRep = row
},
// 代替政策分页
pageChangeReplace (page) {
this.replacePage = page
this.replaceLawsNumForm.page = page
this.getReplaceLawsNumRow()
},
pageSizeChangeReplace (pageSize) {
// this.replaceRows = pageSize
this.replaceLawsNumForm.pageSize = pageSize
this.getReplaceLawsNumRow()
},
// 代替政策编号确定
replaceLawsNumModelBt () {
let textArr = []
if (typeof this.value === 'string') {
if (this.value) {
textArr = this.value.split(',')
}
}
if (this.selectedListRep.length === 0) {
return this.$message({
message: '请先选择数据',
type: 'warning'
})
}
if (this.selectedListRep.length + textArr.length > 20) {
return this.$message({
message: '代替标准号最多选择20项',
type: 'warning'
})
}
this.selectedListRep.map((item) => {
let texts = ''
if (item.standYear != null && item.standYear !== '') {
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber + '-' + item.standYear : item.standNumber + '-' + item.standYear
} else {
texts = item.standSort !== null ? item.standSort + ' ' + item.standNumber : item.standNumber
}
textArr.push(texts)
textArr = [...new Set(textArr)]
this.replaceLawsNumModel = false
})
this.$emit('input', textArr.join(','))
this.$refs.selections.clearSelection()
},
// 点击查看
handlePreview (item) {
let routeUrl = this.$router.resolve({
name: 'OtherBussStandardDetails',
params: {
id: item.id,
pageType: 'BUSINESS_STAND'
}
})
window.open(routeUrl.href, '_blank')
},
getResetLawsNumRow () {
this.replaceLawsNumForm = {
standNumber: '', // 政策编号
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
total: 0,
standType: 'ALL',
quoteIdList: '',
validFlag: '0'
}
this.getReplaceLawsNumRow()
}
}
}
</script>
<style scoped>
</style>
@@ -1724,6 +1724,7 @@ import CustomOrg from '@/components/CustomFormComponents/OrgTree'
import {dateFormat} from '@/common/date' import {dateFormat} from '@/common/date'
import RelatedTermsSelect from './components/RelatedTermsSelect' import RelatedTermsSelect from './components/RelatedTermsSelect'
import { getBusStandFileByAttId } from 'api/process' import { getBusStandFileByAttId } from 'api/process'
import {dicTypeData} from "api/unqualProcess";
export default { export default {
@@ -1746,6 +1747,7 @@ export default {
}, },
data() { data() {
return { return {
CycxOptions: [],
activeNames: ['基础信息','过程稿件','实施日期'], activeNames: ['基础信息','过程稿件','实施日期'],
activeState: true, activeState: true,
itemExistList: [], itemExistList: [],
@@ -2757,8 +2759,8 @@ export default {
this.resolveListForm = editItem this.resolveListForm = editItem
this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):'' this.resolveListForm.termsConditions = this.resolveListForm.termsConditions?this.resolveListForm.termsConditions.replace(/<.*?>/ig, ' '):''
// this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):'' // this.resolveListForm.readContent = this.readContent?this.readContent.replace(/<.*?>/ig, ' '):''
this.resolveListForm.xccssrq = this.resolveListForm.xccssrq.split(',') this.resolveListForm.xccssrq = this.resolveListForm.xccssrq?this.resolveListForm.xccssrq.split(','):''
this.resolveListForm.zccssrq = this.resolveListForm.zccssrq.split(',') this.resolveListForm.zccssrq = this.resolveListForm.zccssrq?this.resolveListForm.zccssrq.split(','):''
}else { }else {
this.$message.warning('请选择一条数据') this.$message.warning('请选择一条数据')
} }
@@ -3085,6 +3087,19 @@ export default {
}, {}, res => { }, {}, res => {
this.selectedItemList = [] this.selectedItemList = []
if (res.ok) { if (res.ok) {
console.log('3092',res.data.list)
res.data.list.forEach(item => {
let k = (item.applyArctic || "").split(',')
for (let i in this.applyArcticOptions.options) {
for (let m = 0; m < k.length; m++) {
if (this.applyArcticOptions.options[i].value === k[m]) {
k[m] = this.applyArcticOptions.options[i].label
}
item.applyArctic = k.join(',')
}
}
item.applyArctic = item.applyArctic.replaceAll('\"', '').replaceAll('\[', '').replaceAll('\]', '')
})
this.standItemList = res.data.list; this.standItemList = res.data.list;
this.total7 = res.data.count // 分页需要 this.total7 = res.data.count // 分页需要
} }
@@ -3583,6 +3598,12 @@ export default {
return item.id return item.id
} }
}, },
created() {
dicTypeData().then(res => {
// 能源类型数据字典
this.CycxOptions = res.data.CLLX
})
},
async mounted() { async mounted() {
this.sarStandardsInfoEO.id = this.$route.params.id this.sarStandardsInfoEO.id = this.$route.params.id
// await this.selectStandMessage() // await this.selectStandMessage()
@@ -3722,41 +3743,18 @@ export default {
}, { }, {
_this: this _this: this
}, res => { }, res => {
// displayLocation.map(item => { displayLocation.map(item => {
// if (item.value === '2URVBGR2Y4UG77KZ5YPL') { if (item.value === '2URVBGR2Y4UG77KZ5YPL') {
// item.child.forEach(items =>{ for (let key in res.data) {
// let accessCountry = JSON.parse(sessionStorage.getItem("accessCountry")); item.one.push({
// if (accessCountry.country === undefined) { attrName: key,
// accessCountry.country = '文本' value: res.data[key].join(','),
// } isShowImp: '0',
// if(items.attrField === 'SSRQ') { id: key
// items.attrName = '实施日期' + '(' + accessCountry.country + ')' + ':' })
// if (accessCountry.ssrq !== undefined) { }
// item.value = accessCountry.ssrq }
// } })
// } else if (items.attrField === 'ZCCSSRQ') {
// items.attrName = '在产车实施日期' + '(' + accessCountry.country + ')' + ':'
// if (accessCountry.zccssrqgj !== undefined) {
// item.value = accessCountry.zccssrqgj
// }
// } else if(items.attrField === 'XCXSSRQ') {
// items.attrName = '新车型实施日期' + '(' + accessCountry.country + ')' + ':'
// if (accessCountry.xcxssrqgj !== undefined) {
// item.value = accessCountry.xcxssrqgj
// }
//
// }
// })
// for (let key in res.data) {
// item.one.push({
// attrName: key,
// value: res.data[key].join(','),
// isShowImp: '0',
// id: key
// })
// }
// }
// })
this.dynamicFormField = displayLocation this.dynamicFormField = displayLocation
}) })
sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation))
@@ -164,10 +164,10 @@
<el-timeline-item timestamp="审定" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="审定" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="directorUserName" style="margin-bottom: 0"> <el-form-item prop="directorUserName" style="margin-bottom: 0">
<h4>技术管理中心主任</h4> <h4>技术委员会相关专委会主任/研究总院职能部门领导技术管理中心主任</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.directorUser" style="display: none;"></el-input> <el-input v-model="roleForm.directorUser" style="display: none;"></el-input>
<el-input v-model="roleForm.directorUserName" placeholder="选择技术管理中心主任" @click.native="choiceZRRS('2')"></el-input> <el-input v-model="roleForm.directorUserName" placeholder="选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任 " @click.native="choiceZRRS('2')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
@@ -175,10 +175,10 @@
<el-timeline-item timestamp="批准人" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="批准人" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="presidentUserName" style="margin-bottom: 0"> <el-form-item prop="presidentUserName" style="margin-bottom: 0">
<h4>工程研究总院院长</h4> <h4>工程研究总院院长或标准法规主管副院长</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentUser" style="display: none;"></el-input> <el-input v-model="roleForm.presidentUser" style="display: none;"></el-input>
<el-input v-model="roleForm.presidentUserName" placeholder="选择工程研究总院院长" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长', roleForm.presidentUser)"></el-input> <el-input v-model="roleForm.presidentUserName" placeholder="选择工程研究总院院长或标准法规主管副院长" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长或标准法规主管副院长', roleForm.presidentUser)"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
@@ -35,6 +35,7 @@
<el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled"> <el-form-item label="完成时间" prop="date" class="add-form-item form-item-disabled">
<el-date-picker <el-date-picker
v-model="form.date" v-model="form.date"
:picker-options="pickerOptions"
type="date" type="date"
placeholder="请选择完成时间"> placeholder="请选择完成时间">
</el-date-picker> </el-date-picker>
@@ -164,11 +165,11 @@
<el-timeline-item timestamp="审定" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="审定" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="directorUserName" style="margin-bottom: 0"> <el-form-item prop="directorUserName" style="margin-bottom: 0">
<h4>技术管理中心主任</h4> <h4>技术委员会相关专委会主任/研究总院职能部门领导技术管理中心主任 </h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.directorUser" style="display: none;"></el-input> <el-input v-model="roleForm.directorUser" style="display: none;"></el-input>
<!-- <el-input v-model="roleForm.directorUserName" placeholder="选择技术管理中心主任" readonly="readonly" @click.native="choiceZRR('directorUser', '选择技术管理中心主任', roleForm.directorUser)"></el-input>--> <!-- <el-input v-model="roleForm.directorUserName" placeholder="选择技术管理中心主任" readonly="readonly" @click.native="choiceZRR('directorUser', '选择技术管理中心主任', roleForm.directorUser)"></el-input>-->
<el-input v-model="roleForm.directorUserName" placeholder="选择技术管理中心主任" readonly="readonly" @click.native="choiceZRRS('2')"></el-input> <el-input v-model="roleForm.directorUserName" placeholder="选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任 " readonly="readonly" @click.native="choiceZRRS('2')"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
@@ -176,10 +177,10 @@
<el-timeline-item timestamp="批准人" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="批准人" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="presidentUserName" style="margin-bottom: 0"> <el-form-item prop="presidentUserName" style="margin-bottom: 0">
<h4>工程研究总院院长</h4> <h4>工程研究总院院长或标准法规主管副院长</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentUser" style="display: none;"></el-input> <el-input v-model="roleForm.presidentUser" style="display: none;"></el-input>
<el-input v-model="roleForm.presidentUserName" placeholder="选择工程研究总院院长" readonly="readonly" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长', roleForm.presidentUser)"></el-input> <el-input v-model="roleForm.presidentUserName" placeholder="选择工程研究总院院长或标准法规主管副院长" readonly="readonly" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长或标准法规主管副院长', roleForm.presidentUser)"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-card> </el-card>
@@ -263,6 +264,11 @@ export default {
name: "bzdyStep1", name: "bzdyStep1",
data() { data() {
return { return {
pickerOptions: {
disabledDate(time) {
return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
}
},
drawerTitle2: '', drawerTitle2: '',
type2: '', type2: '',
bpnId: '', bpnId: '',
@@ -397,14 +403,14 @@ export default {
this.nodeList2 = this.roleForm.dockUserList.split(',') this.nodeList2 = this.roleForm.dockUserList.split(',')
} }
} else { } else {
this.drawerTitle2 = '选择技术管理中心主任' this.drawerTitle2 = '选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任'
if ( this.roleForm.directorUser.length > 0) { if ( this.roleForm.directorUser.length > 0) {
this.nodeList2 = this.roleForm.directorUser.split(',') this.nodeList2 = this.roleForm.directorUser.split(',')
} }
} }
this.modalshowflag2 = true this.modalshowflag2 = true
}, },
choiceZRR (type, title, id) { choiceZRR (type, title, id) {
this.nodeList = [] this.nodeList = []
this.nodeList.push(id) this.nodeList.push(id)
this.type = type this.type = type
@@ -47,7 +47,7 @@
<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="updateFile2(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>
@@ -63,7 +63,7 @@
<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="updateFile2(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>
@@ -127,19 +127,19 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<el-collapse accordion> <!-- <el-collapse accordion>-->
<el-collapse-item title="回执说明"> <!-- <el-collapse-item title="回执说明">-->
<div style="margin: 10px 0;"> <!-- <div style="margin: 10px 0;">-->
<el-input <!-- <el-input-->
type="textarea" <!-- type="textarea"-->
:rows="3" <!-- :rows="3"-->
resize="none" <!-- resize="none"-->
placeholder="请输入意见" <!-- placeholder="请输入意见"-->
v-model="commentText"> <!-- v-model="commentText">-->
</el-input> <!-- </el-input>-->
</div> <!-- </div>-->
</el-collapse-item> <!-- </el-collapse-item>-->
</el-collapse> <!-- </el-collapse>-->
</div> </div>
<div class="content" v-show="active === '2'"> <div class="content" v-show="active === '2'">
<el-table <el-table
@@ -346,6 +346,10 @@
updateFile (item) { updateFile (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.fileId window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.fileId
}, },
updateFile2 (item) {
let id = item.id
window.location.href = '/api/att/attFile/downloadFile?fileId=' + id
},
// 导入按钮 上传之前的钩子 // 导入按钮 上传之前的钩子
beginImportFile (file) { beginImportFile (file) {
var filename = file.name var filename = file.name
@@ -385,7 +389,6 @@
} }
}, },
fileUpload () { fileUpload () {
this.fileMadel = true this.fileMadel = true
}, },
handleTabs(name) { handleTabs(name) {
@@ -397,7 +400,7 @@
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
form: this.form, form: this.form,
commentText: this.commentText, // commentText: this.commentText,
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -425,7 +428,7 @@
this.json.dyhz = this.form.dyhz this.json.dyhz = this.form.dyhz
this.isSubmit = true this.isSubmit = true
var json = this.json var json = this.json
json.commentText = this.commentText // json.commentText = this.commentText
json.fileId = this.form.fileId json.fileId = this.form.fileId
json.fileName = this.form.fileName json.fileName = this.form.fileName
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
@@ -47,7 +47,7 @@
<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="updateFile2(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>
@@ -63,7 +63,7 @@
<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="updateFile2(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>
@@ -322,6 +322,10 @@
updateFile (fileId) { updateFile (fileId) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId window.location.href = '/api/att/attFile/downloadFile?fileId=' + fileId
}, },
updateFile2 (item) {
let id = item.id
window.location.href = '/api/att/attFile/downloadFile?fileId=' + id
},
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
@@ -3,7 +3,7 @@
<!-- 标准调研流程--> <!-- 标准调研流程-->
<ProcessHeader toggle> <ProcessHeader toggle>
<template slot="proName">标准调研流程</template> <template slot="proName">标准调研流程</template>
<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>
@@ -244,7 +244,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentInfo">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -538,7 +538,7 @@ export default {
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
commentText: '', commentInfo: '',
bpnId: '' bpnId: ''
} }
}, },
@@ -585,6 +585,7 @@ export default {
}).then(res => { }).then(res => {
let mes = JSON.parse(res.mes) let mes = JSON.parse(res.mes)
this.rh_pageData = mes.rh_pageData this.rh_pageData = mes.rh_pageData
this.commentInfo = mes.commentInfo
this.roleForm = mes.roleForm this.roleForm = mes.roleForm
}); });
}, },
@@ -804,7 +805,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
roleForm: this.roleForm, roleForm: this.roleForm,
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
commentText: this.commentText commentInfo: this.commentInfo
})) }))
saveTaskFirst(_formData).then(res => { saveTaskFirst(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -821,7 +822,8 @@ export default {
prcCreateUserName: this.$store.getters.userInfo.userName, prcCreateUserName: this.$store.getters.userInfo.userName,
roleList: this.roleForm, roleList: this.roleForm,
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
commentText: this.commentText, commentText: this.commentInfo,
roleForm: this.roleForm,
directorList: this.roleForm.dockUser, directorList: this.roleForm.dockUser,
} }
this.$refs['rh_pageData'].validate((valid) => { this.$refs['rh_pageData'].validate((valid) => {
@@ -830,15 +832,11 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
let paramsInfo = new FormData() let paramsInfo = new FormData()
paramsInfo.append('id', this.bpnId || '') // paramsInfo.append('id', this.bpnId || '')
paramsInfo.append('createUser', this.$store.getters.userInfo.userId) paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName) paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
paramsInfo.append('type', '20') paramsInfo.append('type', '20')
paramsInfo.append('json', JSON.stringify({ paramsInfo.append('json', JSON.stringify({json}))
roleForm: this.roleForm,
rh_pageData: this.rh_pageData,
commentText: this.commentText
}))
processBack(paramsInfo).then(res => { processBack(paramsInfo).then(res => {
this.taskID = res.data this.taskID = res.data
const params = new FormData(); const params = new FormData();
@@ -219,7 +219,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentStep3">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -379,7 +379,7 @@ export default {
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
commentText: '', commentStep3: '',
infoSourcesLength: '', infoSourcesLength: '',
/** 上传相关 */ /** 上传相关 */
@@ -435,6 +435,7 @@ export default {
if (this.rh_pageData.fillFile !== undefined) { if (this.rh_pageData.fillFile !== undefined) {
this.fillFileList = this.rh_pageData.fillFile this.fillFileList = this.rh_pageData.fillFile
} }
this.commentStep3 = JSON.parse(JSON.stringify(item)).commentStep3
this.rh_pageData.fillPeopleId = this.$store.getters.userInfo.userId this.rh_pageData.fillPeopleId = this.$store.getters.userInfo.userId
this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.roleForm = JSON.parse(JSON.stringify(item)).roleList
this.infoSourcesLength = this.rh_pageData.infoSources.length this.infoSourcesLength = this.rh_pageData.infoSources.length
@@ -471,6 +472,7 @@ export default {
selfUser: this.$store.getters.userInfo.userId, selfUser: this.$store.getters.userInfo.userId,
charge: this.rh_pageData.fillLeaderId, charge: this.rh_pageData.fillLeaderId,
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
commentStep3: this.commentStep3
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -486,7 +488,7 @@ export default {
roleList: this.roleForm, roleList: this.roleForm,
selfUser: this.$store.getters.userInfo.userId, selfUser: this.$store.getters.userInfo.userId,
charge: this.rh_pageData.fillLeaderId, charge: this.rh_pageData.fillLeaderId,
commentText: this.commentText, commentText: this.commentStep3,
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
} }
this.$refs['rh_pageData'].validate((valid) => { this.$refs['rh_pageData'].validate((valid) => {
@@ -221,7 +221,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentStep5">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -458,7 +458,7 @@ export default {
deleteDataList: [], deleteDataList: [],
infoSourcesLength: '', infoSourcesLength: '',
commentText: '', commentStep5: '',
editFlag: false, editFlag: false,
editForm: { editForm: {
@@ -522,6 +522,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.rh_pageData = JSON.parse(JSON.stringify(item)).rh_pageData this.rh_pageData = JSON.parse(JSON.stringify(item)).rh_pageData
this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.roleForm = JSON.parse(JSON.stringify(item)).roleList
this.commentStep5 = JSON.parse(JSON.stringify(item)).commentStep5
this.infoSourcesLength = this.rh_pageData.infoSources.length this.infoSourcesLength = this.rh_pageData.infoSources.length
// this.rh_pageData.comityFileNum = this.fileTextList // this.rh_pageData.comityFileNum = this.fileTextList
}) })
@@ -702,7 +703,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
roleList: this.roleForm, roleList: this.roleForm,
commentText: this.commentText commentStep5: this.commentStep5
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -718,7 +719,7 @@ export default {
leader: this.roleForm.leaderUserId, leader: this.roleForm.leaderUserId,
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
roleList: this.roleForm, roleList: this.roleForm,
commentText: this.commentText commentText: this.commentStep5
} }
this.$refs['rh_pageData'].validate((valid) => { this.$refs['rh_pageData'].validate((valid) => {
if (valid) { if (valid) {
@@ -242,7 +242,7 @@
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 { saveTaskFirst, completeTask, inboundLiaisonDetail,upFile} from '@/api/process.js' import { saveTaskForPub, completeTask, inboundLiaisonDetail,upFile,taskDel} from '@/api/process.js'
export default { export default {
components: { components: {
@@ -652,15 +652,16 @@ export default {
handleSave() { handleSave() {
this.saveLoading = true this.saveLoading = true
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.userName) // _formData.append('createUserName', this.$store.getters.userInfo.userName)
_formData.append('prcType', '22') // _formData.append('prcType', '22')
_formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
roleForm: this.roleForm, roleForm: this.roleForm,
hh_pageData: this.hh_pageData hh_pageData: this.hh_pageData,
})) }))
saveTaskFirst(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
this.$message.success('保存成功') this.$message.success('保存成功')
this.bpnId = res.result this.bpnId = res.result
@@ -175,7 +175,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentStep1">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -452,7 +452,7 @@ export default {
roleShowflagOne: false, roleShowflagOne: false,
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
commentText: '', commentInfo: '',
bpnId: '' bpnId: ''
} }
}, },
@@ -513,7 +513,7 @@ export default {
}).then(res => { }).then(res => {
let mes = JSON.parse(res.mes) let mes = JSON.parse(res.mes)
this.ch_pageData = mes.ch_pageData this.ch_pageData = mes.ch_pageData
this.commentText = mes.commentText this.commentInfo = mes.commentInfo
this.roleForm = mes.roleForm this.roleForm = mes.roleForm
}); });
}, },
@@ -709,7 +709,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
roleForm: this.roleForm, roleForm: this.roleForm,
ch_pageData: this.ch_pageData, ch_pageData: this.ch_pageData,
commentText: this.commentText commentInfo: this.commentInfo
})) }))
saveTaskFirst(_formData).then(res => { saveTaskFirst(_formData).then(res => {
@@ -727,8 +727,9 @@ export default {
prcCreateUserName: this.$store.getters.userInfo.userName, prcCreateUserName: this.$store.getters.userInfo.userName,
roleList: this.roleForm, roleList: this.roleForm,
ch_pageData: this.ch_pageData, ch_pageData: this.ch_pageData,
commentText: this.commentText, commentText: this.commentInfo,
directorList: this.roleForm.dockUser, directorList: this.roleForm.dockUser,
roleForm: this.roleForm,
} }
this.$refs['ch_pageData'].validate((valid) => { this.$refs['ch_pageData'].validate((valid) => {
if (valid) { if (valid) {
@@ -736,16 +737,11 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
let paramsInfo = new FormData() let paramsInfo = new FormData()
paramsInfo.append('id', this.bpnId || '') // paramsInfo.append('id', this.bpnId || '')
paramsInfo.append('createUser', this.$store.getters.userInfo.userId) paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName) paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
paramsInfo.append('type', '21') paramsInfo.append('type', '21')
paramsInfo.append('json', JSON.stringify({ paramsInfo.append('json', JSON.stringify({json}))
roleForm: this.roleForm,
ch_pageData: this.ch_pageData,
commentText: this.commentText
}))
processBack(paramsInfo).then(res => { processBack(paramsInfo).then(res => {
this.taskID = res.data this.taskID = res.data
const params = new FormData(); const params = new FormData();
@@ -181,7 +181,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentStep3">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -323,7 +323,7 @@ export default {
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
uploadFileLength: '', uploadFileLength: '',
commentText: '' commentStep3: ''
} }
}, },
computed: { computed: {
@@ -374,6 +374,7 @@ export default {
this.ch_pageData.fillPeopleId = this.$store.getters.userInfo.userId this.ch_pageData.fillPeopleId = this.$store.getters.userInfo.userId
this.ch_pageData.fillPeople = this.$store.getters.userInfo.userName + '(' + this.$store.getters.userInfo.userId + ')' this.ch_pageData.fillPeople = this.$store.getters.userInfo.userName + '(' + this.$store.getters.userInfo.userId + ')'
this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.roleForm = JSON.parse(JSON.stringify(item)).roleList
this.commentStep3 = JSON.parse(JSON.stringify(item)).commentStep3
// this.rh_pageData.comityFileNum = this.fileTextList // this.rh_pageData.comityFileNum = this.fileTextList
}) })
}, },
@@ -400,7 +401,7 @@ export default {
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
roleList: this.roleForm, roleList: this.roleForm,
commentText: this.commentText, commentStep3: this.commentStep3,
selfUser: this.$store.getters.userInfo.userId, selfUser: this.$store.getters.userInfo.userId,
charge: this.ch_pageData.fillLeaderId, charge: this.ch_pageData.fillLeaderId,
ch_pageData: this.ch_pageData, ch_pageData: this.ch_pageData,
@@ -418,7 +419,7 @@ export default {
let json = { let json = {
roleList: this.roleForm, roleList: this.roleForm,
selfUser: this.$store.getters.userInfo.userId, selfUser: this.$store.getters.userInfo.userId,
commentText: this.commentText, commentText: this.commentStep3,
charge: this.ch_pageData.fillLeaderId, charge: this.ch_pageData.fillLeaderId,
ch_pageData: this.ch_pageData, ch_pageData: this.ch_pageData,
} }
@@ -183,7 +183,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentStep5">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -345,7 +345,7 @@ export default {
pId: this.$route.query.prcId, pId: this.$route.query.prcId,
uploadFileLength: '', uploadFileLength: '',
commentText: '', commentStep5: '',
roleShowflag: false, roleShowflag: false,
nodeList: [], nodeList: [],
// 人员编辑 // 人员编辑
@@ -402,6 +402,7 @@ export default {
this.ch_pageData = JSON.parse(JSON.stringify(item)).ch_pageData this.ch_pageData = JSON.parse(JSON.stringify(item)).ch_pageData
this.uploadFileLength = this.ch_pageData.fileTextList.length this.uploadFileLength = this.ch_pageData.fileTextList.length
this.roleForm = JSON.parse(JSON.stringify(item)).roleList this.roleForm = JSON.parse(JSON.stringify(item)).roleList
this.commentStep5 = JSON.parse(JSON.stringify(item)).commentStep5
// this.ch_pageData.comityFileNum = this.fileTextList // this.ch_pageData.comityFileNum = this.fileTextList
}) })
}, },
@@ -491,7 +492,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
ch_pageData: this.ch_pageData, ch_pageData: this.ch_pageData,
roleList: this.roleForm, roleList: this.roleForm,
commentText: this.commentText commentStep5: this.commentStep5
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -506,7 +507,7 @@ export default {
let json = { let json = {
leader: this.roleForm.leaderUserId, leader: this.roleForm.leaderUserId,
ch_pageData: this.ch_pageData, ch_pageData: this.ch_pageData,
commentText: this.commentText, commentText: this.commentStep5,
roleList: this.roleForm, roleList: this.roleForm,
} }
this.$refs['ch_pageData'].validate((valid) => { this.$refs['ch_pageData'].validate((valid) => {
@@ -119,7 +119,7 @@
width="260px" width="260px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.standEnName }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -587,75 +587,77 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-table <div class="table-height">
:data="standardData" <el-table
tooltip-effect="dark" :data="standardData"
style="width: 100%" tooltip-effect="dark"
border style="width: 100%"
ref="table" border
class="table-height" ref="table"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectThree" @selection-change="selectThree"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="code"
align="center"
label="标准号">
<template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
scope.row.standNumber
}}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standSortShow
}}
{{ scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
prop="standName"
align="center"
label="标准名称"
> >
<template slot-scope="scope"> <el-table-column
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> type="selection"
</template> width="55"
</el-table-column> align="center">
<el-table-column </el-table-column>
prop="issueTime" <el-table-column
align="center" prop="code"
label="发布日期"> align="center"
<template slot-scope="scope"> label="标准号">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span> <template slot-scope="scope">
</template> <a v-if="scope.row.standYear" class="table-jump"
</el-table-column> @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
<el-table-column scope.row.standNumber
prop="XCXSSRQ" }}-{{ scope.row.standYear }}</a>
align="center" <a v-else @click="handlePreview(scope.row)" class="table-jump">{{
label="新车型实施日期"> scope.row.standSortShow
</el-table-column> }}
<el-table-column {{ scope.row.standNumber }}</a>
show-overflow-tooltip </template>
prop="ZCCSSRQ" </el-table-column>
align="center" <el-table-column
label="在产车实施日期"> prop="standName"
</el-table-column> align="center"
<el-table-column label="标准名称"
show-overflow-tooltip >
prop="textStatus" <template slot-scope="scope">
align="center" <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.standEnName }}</a>
label="文本状态"> </template>
<template slot-scope="scope"> </el-table-column>
<span>{{ textStatusMap[scope.row.textStatus] }}</span> <el-table-column
</template> prop="issueTime"
</el-table-column> align="center"
</el-table> 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
prop="XCXSSRQ"
align="center"
label="新车型实施日期">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="ZCCSSRQ"
align="center"
label="在产车实施日期">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="textStatus"
align="center"
label="文本状态">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
</template>
</el-table-column>
</el-table>
</div>
</div> </div>
<pagination <pagination
:page="pageNo" :page="pageNo"
@@ -1134,7 +1136,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '4', type: '4',
@@ -1157,6 +1158,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false this.isSubmit = false
@@ -119,7 +119,7 @@
width="260px" width="260px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.standEnName }}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -557,75 +557,77 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<el-table <div class="table-height">
:data="standardData" <el-table
tooltip-effect="dark" :data="standardData"
style="width: 100%" tooltip-effect="dark"
border style="width: 100%"
ref="table" border
class="table-height" ref="table"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px', height="100%"
:header-cell-style="{background: '#f5f1f1', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}" fontWeight: 'bold', height: '48px'}"
@selection-change="selectThree" @selection-change="selectThree"
>
<el-table-column
type="selection"
width="55"
align="center">
</el-table-column>
<el-table-column
prop="code"
align="center"
label="标准号">
<template slot-scope="scope">
<a v-if="scope.row.standYear" class="table-jump"
@click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
scope.row.standNumber
}}-{{ scope.row.standYear }}</a>
<a v-else @click="handlePreview(scope.row)" class="table-jump">{{
scope.row.standSortShow
}}
{{ scope.row.standNumber }}</a>
</template>
</el-table-column>
<el-table-column
prop="standName"
align="center"
label="标准名称"
> >
<template slot-scope="scope"> <el-table-column
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> type="selection"
</template> width="55"
</el-table-column> align="center">
<el-table-column </el-table-column>
prop="issueTime" <el-table-column
align="center" prop="code"
label="发布日期"> align="center"
<template slot-scope="scope"> label="标准号">
<span>{{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }}</span> <template slot-scope="scope">
</template> <a v-if="scope.row.standYear" class="table-jump"
</el-table-column> @click="handlePreview(scope.row)">{{ scope.row.standSortShow }} {{
<el-table-column scope.row.standNumber
prop="XCXSSRQ" }}-{{ scope.row.standYear }}</a>
align="center" <a v-else @click="handlePreview(scope.row)" class="table-jump">{{
label="新车型实施日期"> scope.row.standSortShow
</el-table-column> }}
<el-table-column {{ scope.row.standNumber }}</a>
show-overflow-tooltip </template>
prop="ZCCSSRQ" </el-table-column>
align="center" <el-table-column
label="在产车实施日期"> prop="standName"
</el-table-column> align="center"
<el-table-column label="标准名称"
show-overflow-tooltip >
prop="textStatus" <template slot-scope="scope">
align="center" <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.standEnName}}</a>
label="文本状态"> </template>
<template slot-scope="scope"> </el-table-column>
<span>{{ textStatusMap[scope.row.textStatus] }}</span> <el-table-column
</template> prop="issueTime"
</el-table-column> align="center"
</el-table> 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
prop="XCXSSRQ"
align="center"
label="新车型实施日期">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="ZCCSSRQ"
align="center"
label="在产车实施日期">
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="textStatus"
align="center"
label="文本状态">
<template slot-scope="scope">
<span>{{ textStatusMap[scope.row.textStatus] }}</span>
</template>
</el-table-column>
</el-table>
</div>
</div> </div>
<pagination <pagination
:page="pageNo" :page="pageNo"
@@ -690,7 +692,7 @@
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 {saveTaskFirst} from "api/process"; import { saveTaskFirst, taskDel } from "api/process";
import seeDatalis from "@/pages/localTool/standContrast/pages/seeDatalis"; import seeDatalis from "@/pages/localTool/standContrast/pages/seeDatalis";
export default { export default {
@@ -1064,7 +1066,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '4', type: '4',
@@ -1087,6 +1088,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false this.isSubmit = false
@@ -111,7 +111,7 @@
width="260px" width="260px"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.standEnName}}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -311,7 +311,7 @@
label="标准名称" label="标准名称"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName }}</a> <a @click="handlePreview(scope.row)" class="table-jump">{{ scope.row.standName || scope.row.standEnName}}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -561,12 +561,12 @@ export default {
}, },
//标准查询按钮 //标准查询按钮
getStandDataBtn(){ getStandDataBtn(){
this.loading = true // this.loading = true
this.pageNo = 1; this.pageNo = 1;
this.getStandData(); this.getStandData();
}, },
getStandData() { getStandData() {
this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", { this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1", {
standType: this.standardSearch.standType, standType: this.standardSearch.standType,
standNumber: this.standardSearch.standNumber, standNumber: this.standardSearch.standNumber,
page: this.pageNo, page: this.pageNo,
@@ -587,7 +587,7 @@ export default {
//点击添加事件 //点击添加事件
addList() { addList() {
this.standModel = true; this.standModel = true;
this.loading = true // this.loading = true
this.getStandDataBtn() this.getStandDataBtn()
}, },
//添加标准select的改变 //添加标准select的改变
@@ -468,6 +468,7 @@ export default {
if(!this.commentText){ if(!this.commentText){
this.$message.warning('请填写审批意见') this.$message.warning('请填写审批意见')
}else{ }else{
this.isSubmit = true
this.listForm.approvalOpinion = "1"; this.listForm.approvalOpinion = "1";
this.saveLoading = true this.saveLoading = true
this.listForm.commentText = this.commentText; this.listForm.commentText = this.commentText;
@@ -484,6 +485,7 @@ export default {
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.saveLoading = false this.saveLoading = false
this.isSubmit = false
}); });
}/**/ }/**/
}, },
File diff suppressed because it is too large Load Diff
@@ -365,6 +365,14 @@
- - - -
</div> </div>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '1'" label="修订本" prop="xdbName" class="add-form-item form-item-disabled">
<div v-if="xdbFileMap.length>0" v-for="(value,index) in this.xdbFileMap" :key="index" style="cursor: pointer;color: #00b7ee" @click="downloadFile('xdb',value.id)">
{{value.name}}
</div>
<div v-else>
- -
</div>
</el-form-item>
<!-- ************************************* 2021/11/9 "解读文件"改为"相关文件"*************************************--> <!-- ************************************* 2021/11/9 "解读文件"改为"相关文件"*************************************-->
<el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="相关文件" prop="jdwjName" class="add-form-item form-item-disabled">
<!-- ************************************* 2021/11/9 "解读文件"改为"相关文件"*************************************--> <!-- ************************************* 2021/11/9 "解读文件"改为"相关文件"*************************************-->
@@ -548,6 +556,17 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item v-show="form.standInData === '0'" label="我司参与制标排名" prop="cyzbpm" class="add-form-item form-item-disabled">
<el-select :popper-append-to-body="false" v-model="form.cyzbpm" placeholder="请选择我司参与制标排名" clearable>
<el-option
v-for="item in cyzbpmOptions"
placeholder="请选择"
:key="item.value"
:value="item.value"
:label="item.label"
></el-option>
</el-select>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -721,7 +740,7 @@
sortable="custom" sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -729,7 +748,7 @@
label="完成时间" label="完成时间"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -797,6 +816,7 @@
zqyjgFileMap: [], zqyjgFileMap: [],
jdwjFileMap: [], jdwjFileMap: [],
kwjFileMap: [], kwjFileMap: [],
xdbFileMap: [],
glwjFileMap: [], glwjFileMap: [],
caFileMap: [], caFileMap: [],
zbjbdFileMap: [], zbjbdFileMap: [],
@@ -896,6 +916,7 @@
qcdw: '', // 起草单位 qcdw: '', // 起草单位
wssmr: '', // 我司署名人 wssmr: '', // 我司署名人
cysd: '', // 我司参与深度 cysd: '', // 我司参与深度
cyzbpm:[],// 我司参与制标排名
cllx: '', // 适用车型 cllx: '', // 适用车型
nylx: '',// 能源类型 nylx: '',// 能源类型
sycpx: '',// 适用产品线 sycpx: '',// 适用产品线
@@ -953,6 +974,7 @@
categoryOptions: [], // 能源类型 categoryOptions: [], // 能源类型
applyAuthOptions: [], // 适用认证 applyAuthOptions: [], // 适用认证
cysdOptions: [], // 我司参与深度 cysdOptions: [], // 我司参与深度
cyzbpmOptions:[], // 我司参与制标排名
wssmrOptions: [], // 我司署名人 wssmrOptions: [], // 我司署名人
qcdwOptions: [], // 起草单位 qcdwOptions: [], // 起草单位
sycpxOptions: [], // 适用产品线 sycpxOptions: [], // 适用产品线
@@ -1137,6 +1159,8 @@
// jdwjFileMap: {}, // jdwjFileMap: {},
this.kwjFileMap=this.assemble(processForm.kwj,processForm.kwjName); this.kwjFileMap=this.assemble(processForm.kwj,processForm.kwjName);
// kwjFileMap: {}, // kwjFileMap: {},
this.xdbFileMap=this.assemble(processForm.xdb,processForm.xdbName);
// xdbFileMap: {},
this.glwjFileMap=this.assemble(processForm.glwj,processForm.glwjName); this.glwjFileMap=this.assemble(processForm.glwj,processForm.glwjName);
// glwjFileMap: {}, // glwjFileMap: {},
this.caFileMap=this.assemble(processForm.ca,processForm.caName); this.caFileMap=this.assemble(processForm.ca,processForm.caName);
@@ -1252,6 +1276,7 @@
console.log("shibai"); console.log("shibai");
this.$message.warning("驳回成功") this.$message.warning("驳回成功")
this.isSubmit = false this.isSubmit = false
this.formTongGuo.commentText = ''
// 流程提交之后,应该流转至待办任务页面 // 流程提交之后,应该流转至待办任务页面
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
}else{ }else{
@@ -1304,6 +1329,7 @@
this.categoryOptions = res.data.NYLXCLASS // 能源类型 this.categoryOptions = res.data.NYLXCLASS // 能源类型
this.applyAuthOptions = res.data.SYRZCLASS // 适用认证 this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
this.cysdOptions = res.data.WSCYSD // 我司参与深度 this.cysdOptions = res.data.WSCYSD // 我司参与深度
this.cyzbpmOptions = res.data.CYZBPM // 我司参与制标排名
this.wssmrOptions = res.data.WSSMR // 我司署名人 this.wssmrOptions = res.data.WSSMR // 我司署名人
this.qcdwOptions = res.data.QCDW // 起草单位 this.qcdwOptions = res.data.QCDW // 起草单位
this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
@@ -443,7 +443,7 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled">
<span>{{form.wssmr}}</span> <span style="color: rgb(118 122 120)">{{form.wssmr}}</span>
<!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>--> <!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>-->
<!-- <el-option--> <!-- <el-option-->
<!-- v-for="item in wssmrOptions"--> <!-- v-for="item in wssmrOptions"-->
@@ -649,7 +649,7 @@
sortable="custom" sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -657,7 +657,7 @@
label="完成时间" label="完成时间"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -1207,7 +1207,7 @@
sortable="custom" sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -1215,7 +1215,7 @@
label="完成时间" label="完成时间"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -2374,7 +2374,7 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
this.commentText = processForm.commentText // this.commentText = processForm.commentText
if (processForm.form === undefined) { if (processForm.form === undefined) {
this.getFormFieldList(processForm) this.getFormFieldList(processForm)
} else { } else {
@@ -430,10 +430,12 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司署名人" prop="wssmr" class="add-form-item form-item-disabled">
<el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled> <el-input v-model="form.wssmr">
<el-option label="署名人1" value="1"></el-option> </el-input>
<el-option label="署名人2" value="2"></el-option> <!-- <el-select v-model="form.wssmr" placeholder="请选择我司署名人" multiple disabled>-->
</el-select> <!-- <el-option label="署名人1" value="1"></el-option>-->
<!-- <el-option label="署名人2" value="2"></el-option>-->
<!-- </el-select>-->
</el-form-item> </el-form-item>
<el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled"> <el-form-item v-if="form.standInData === '0'" label="我司参与深度" prop="cysd" class="add-form-item form-item-disabled">
<el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled> <el-select v-model="form.cysd" placeholder="请选择我司参与深度" disabled>
@@ -633,7 +635,7 @@
sortable="custom" sortable="custom"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -641,7 +643,7 @@
label="完成时间" label="完成时间"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}</span> <span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -137,7 +137,7 @@
<el-input <el-input
v-model="roleForm.dockUserListName" v-model="roleForm.dockUserListName"
placeholder="选择责任部门对接人" placeholder="选择责任部门对接人"
@click.native="choiceZRRS"> @click.native="choiceZRRS('1')">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -161,13 +161,13 @@
<el-timeline-item timestamp="审定征求意见" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="审定征求意见" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="directorUser" style="margin-bottom: 0"> <el-form-item prop="directorUser" style="margin-bottom: 0">
<h4>技术管理中心主任</h4> <h4>技术委员会相关专委会主任/研究总院职能部门领导技术管理中心主任</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.directorUser" style="display: none;"/> <el-input v-model="roleForm.directorUser" style="display: none;"/>
<el-input <el-input
v-model="roleForm.directorUserName" v-model="roleForm.directorUserName"
placeholder="选择技术管理中心主任" placeholder="选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任"
@click.native="choiceZRR('directorUser', '选择技术管理中心主任', roleForm.directorUser)" @click.native="choiceZRRS('2')"
/> />
</div> </div>
</el-form-item> </el-form-item>
@@ -176,13 +176,13 @@
<el-timeline-item timestamp="批准征求意见" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="批准征求意见" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="presidentUser" style="margin-bottom: 0"> <el-form-item prop="presidentUser" style="margin-bottom: 0">
<h4>工程研究总院院长</h4> <h4>工程研究总院院长或标准法规主管副院长</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentUser" style="display: none;"/> <el-input v-model="roleForm.presidentUser" style="display: none;"/>
<el-input <el-input
v-model="roleForm.presidentUserName" v-model="roleForm.presidentUserName"
placeholder="选择工程研究总院院长" placeholder="选择工程研究总院院长或标准法规主管副院长"
@click.native="choiceZRR('presidentUser', '选择工程研究总院院长', roleForm.presidentUser)" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长或标准法规主管副院长', roleForm.presidentUser)"
/> />
</div> </div>
</el-form-item> </el-form-item>
@@ -287,7 +287,7 @@
</div> </div>
</el-drawer> </el-drawer>
<Role-tree <Role-tree
is-title="选择责任部门对接人" :is-title="drawerTitle2"
:is-visible.sync="modalshowflag2" :is-visible.sync="modalshowflag2"
@checkedRole="checkedRole2" @checkedRole="checkedRole2"
:nodeList="nodeList2" :nodeList="nodeList2"
@@ -365,6 +365,8 @@ export default {
name: "bzzqyjStep1-1", name: "bzzqyjStep1-1",
data() { data() {
return { return {
drawerTitle2: '',
type2: '',
activeNames: '1', activeNames: '1',
fileUrl: 'api/att/attFile/upload', fileUrl: 'api/att/attFile/upload',
fileMadel: false, fileMadel: false,
@@ -738,8 +740,13 @@ export default {
idList += item.id idList += item.id
nameList += item.name nameList += item.name
}) })
this.roleForm.dockUserList = idList if (this.type2 === '1') {
this.roleForm.dockUserListName = nameList this.roleForm.dockUserList = idList
this.roleForm.dockUserName = nameList
} else {
this.roleForm.directorUser = idList
this.roleForm.directorUserName = nameList
}
}, },
checkedRole(data) { checkedRole(data) {
if (this.type === 'ministerUser') { if (this.type === 'ministerUser') {
@@ -753,10 +760,19 @@ export default {
this.roleForm.presidentUserName = data[0].name this.roleForm.presidentUserName = data[0].name
} }
}, },
choiceZRRS() { choiceZRRS(type) {
this.type2 = type
this.nodeList2 = [] this.nodeList2 = []
if (this.roleForm.dockUserList.length > 0) { if (type === '1') {
this.nodeList2 = this.roleForm.dockUserList.split(',') this.drawerTitle2 = '选择责任部门对接人'
if ( this.roleForm.dockUserList.length > 0) {
this.nodeList2 = this.roleForm.dockUserList.split(',')
}
} else {
this.drawerTitle2 = '选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任'
if (this.roleForm.directorUser.length > 0) {
this.nodeList2 = this.roleForm.directorUser.split(',')
}
} }
this.modalshowflag2 = true this.modalshowflag2 = true
}, },
@@ -138,7 +138,7 @@
<el-input <el-input
v-model="roleForm.dockUserListName" v-model="roleForm.dockUserListName"
placeholder="选择责任部门对接人" placeholder="选择责任部门对接人"
@click.native="choiceZRRS"> @click.native="choiceZRRS('1')">
</el-input> </el-input>
</div> </div>
</el-form-item> </el-form-item>
@@ -162,13 +162,13 @@
<el-timeline-item timestamp="审定征求意见" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="审定征求意见" placement="top" :color="roleForm.directorUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="directorUser" style="margin-bottom: 0"> <el-form-item prop="directorUser" style="margin-bottom: 0">
<h4>技术管理中心主任</h4> <h4>技术委员会相关专委会主任/研究总院职能部门领导技术管理中心主任</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.directorUser" style="display: none;"/> <el-input v-model="roleForm.directorUser" style="display: none;"/>
<el-input <el-input
v-model="roleForm.directorUserName" v-model="roleForm.directorUserName"
placeholder="选择技术管理中心主任" placeholder="选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任"
@click.native="choiceZRR('directorUser', '选择技术管理中心主任', roleForm.directorUser)" @click.native="choiceZRRS('2')"
/> />
</div> </div>
</el-form-item> </el-form-item>
@@ -177,13 +177,13 @@
<el-timeline-item timestamp="批准征求意见" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''"> <el-timeline-item timestamp="批准征求意见" placement="top" :color="roleForm.presidentUser ? '#66b1ff' : ''">
<el-card> <el-card>
<el-form-item prop="presidentUser" style="margin-bottom: 0"> <el-form-item prop="presidentUser" style="margin-bottom: 0">
<h4>工程研究总院院长</h4> <h4>工程研究总院院长或标准法规主管副院长</h4>
<div style="margin-top: 10px;width: 300px;"> <div style="margin-top: 10px;width: 300px;">
<el-input v-model="roleForm.presidentUser" style="display: none;"/> <el-input v-model="roleForm.presidentUser" style="display: none;"/>
<el-input <el-input
v-model="roleForm.presidentUserName" v-model="roleForm.presidentUserName"
placeholder="选择工程研究总院院长" placeholder="选择工程研究总院院长或标准法规主管副院长"
@click.native="choiceZRR('presidentUser', '选择工程研究总院院长', roleForm.presidentUser)" @click.native="choiceZRR('presidentUser', '选择工程研究总院院长或标准法规主管副院长', roleForm.presidentUser)"
/> />
</div> </div>
</el-form-item> </el-form-item>
@@ -289,7 +289,7 @@
</div> </div>
</el-drawer> </el-drawer>
<Role-tree <Role-tree
is-title="选择责任部门对接人" :is-title="drawerTitle2"
:is-visible.sync="modalshowflag2" :is-visible.sync="modalshowflag2"
@checkedRole="checkedRole2" @checkedRole="checkedRole2"
:nodeList="nodeList2" :nodeList="nodeList2"
@@ -375,6 +375,8 @@ export default {
name: "bzzqyjStep1", name: "bzzqyjStep1",
data() { data() {
return { return {
drawerTitle2: '',
type2: '',
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的 return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
@@ -745,8 +747,13 @@ export default {
idList += item.id idList += item.id
nameList += item.name nameList += item.name
}) })
this.roleForm.dockUserList = idList if (this.type2 === '1') {
this.roleForm.dockUserListName = nameList this.roleForm.dockUserList = idList
this.roleForm.dockUserListName = nameList
} else {
this.roleForm.directorUser = idList
this.roleForm.directorUserName = nameList
}
}, },
checkedRole(data) { checkedRole(data) {
if (this.type === 'ministerUser') { if (this.type === 'ministerUser') {
@@ -760,10 +767,19 @@ export default {
this.roleForm.presidentUserName = data[0].name this.roleForm.presidentUserName = data[0].name
} }
}, },
choiceZRRS() { choiceZRRS(type) {
this.type2 = type
this.nodeList2 = [] this.nodeList2 = []
if (this.roleForm.dockUserList.length > 0) { if (type === '1') {
this.nodeList2 = this.roleForm.dockUserList.split(',') this.drawerTitle2 = '选择责任部门对接人'
if ( this.roleForm.dockUserList.length > 0) {
this.nodeList2 = this.roleForm.dockUserList.split(',')
}
} else {
this.drawerTitle2 = '选择技术委员会相关专委会主任/研究总院职能部门领导,技术管理中心主任'
if (this.roleForm.directorUser.length > 0) {
this.nodeList2 = this.roleForm.directorUser.split(',')
}
} }
this.modalshowflag2 = true this.modalshowflag2 = true
}, },
@@ -464,7 +464,7 @@ export default {
if (this.commentText) { if (this.commentText) {
this.isSubmit = true this.isSubmit = true
var json = this.json var json = this.json
json.directorFlag = '0' json.directorFlag = '1'
json.commentText = this.commentText json.commentText = this.commentText
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json), json: JSON.stringify(json),
@@ -3,7 +3,7 @@
<!-- 标准调研流程--> <!-- 标准调研流程-->
<ProcessHeader toggle> <ProcessHeader toggle>
<template slot="proName">标准征求意见流程</template> <template slot="proName">标准征求意见流程</template>
<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>
@@ -187,7 +187,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '14', type: '14',
@@ -186,7 +186,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '15', type: '15',
@@ -49,7 +49,7 @@
:value="item.id"> :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<el-select v-if="wbbzform.associationName !== '' && wbbzform.committee !== ''" v-model="wbbzform.workingGroup" placeholder="请选择工作组"> <el-select v-if="wbbzform.associationName !== '' && wbbzform.committee !== ''" @change="comityChangeTwo" v-model="wbbzform.workingGroup" placeholder="请选择工作组">
<el-option <el-option
v-for="item in comityOptionsOneThree" v-for="item in comityOptionsOneThree"
:key="item.id" :key="item.id"
@@ -127,7 +127,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.workPeopleId" style="display: none;" readonly/> <el-input v-model="scope.row.workPeopleId" style="display: none;" readonly/>
<el-input v-model="scope.row.workPeople" placeholder="请选择分发责任人" <el-input v-model="scope.row.workPeople" placeholder="请选择分发责任人"
@click.native="choiceZRRS(scope.row, scope.$index)" readonly/> @click.native="choiceZRRS(scope.row, scope.$index)" readonly/>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -135,24 +135,36 @@
width="180" width="180"
label="职务" label="职务"
align="center"> align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.duties" placeholder="请输入职务"></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="institutionName" prop="institutionName"
label="所在部门" label="所在部门"
width="200" width="200"
align="center"> align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.institutionName" placeholder="请输入所在部门"></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="email" prop="email"
label="联系方式" label="联系方式"
width="350" width="350"
align="center"> align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.email" placeholder="请输入联系方式"></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="tenure" prop="tenure"
width="200" width="200"
label="任期" label="任期"
align="center"> align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.tenure" placeholder="请输入任期"></el-input>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="accounts" prop="accounts"
@@ -160,7 +172,7 @@
width="300" width="300"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.accounts" placeholder="请输入账户"></el-input> <el-input v-model="scope.row.accounts" placeholder="请输入账户"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -193,7 +205,6 @@
row-key="id"> row-key="id">
<el-table-column type="selection" width="55" align="center"/> <el-table-column type="selection" width="55" align="center"/>
<el-table-column <el-table-column
prop="contactPerson"
label="协会联络人" label="协会联络人"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -205,7 +216,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="telephone"
label="电话" label="电话"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -217,7 +227,6 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="mailbox"
label="邮箱" label="邮箱"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
@@ -357,6 +366,7 @@ export default {
recordLoading: false, recordLoading: false,
loading: false, loading: false,
modalshowflag: false, modalshowflag: false,
fileIds: "",
comityOptionsOne: [], //工作组数据 comityOptionsOne: [], //工作组数据
comityOptionsTwo: [], //分标委数据 comityOptionsTwo: [], //分标委数据
comityOptionsOneThree: [], //工作组数据 comityOptionsOneThree: [], //工作组数据
@@ -460,7 +470,7 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
res.data.map(item => { res.data.map(item => {
// 赋值要回显的上传文件内容 // 赋值要回显的上传文件内容
this.fileList.push({ this.fileInfoList.push({
name: item.oldFileName, name: item.oldFileName,
uid: item.uid, uid: item.uid,
status: item.status, status: item.status,
@@ -478,32 +488,60 @@ export default {
console.log(item); console.log(item);
this.$nextTick(() => { this.$nextTick(() => {
if(!item.directorUser){ if(!item.directorUser){
this.wbbzform = JSON.parse(JSON.stringify(item)); this.wbbzform = JSON.parse(JSON.stringify(item.form));
this.associationData = item.associationData this.wbbzform.comityOptionsOne.forEach(item =>{
this.participantsData = item.participantsData if(this.wbbzform.associationName === item.id){
this.wbbzform.associationName = item.name
}
})
this.wbbzform.comityOptionsTwo.forEach(item =>{
if(this.wbbzform.committee === item.id){
this.wbbzform.committee = item.name
}
})
this.wbbzform.comityOptionsOneThree.forEach(item =>{
if(this.wbbzform.workingGroup === item.id){
this.wbbzform.workingGroup = item.name
}
})
if (item.form.associationData) {
this.associationData = item.form.associationData
}
if (item.form.participantsData) {
this.participantsData = item.form.participantsData
}
item.form.fileName.forEach(fileId => {
this.fileIds = fileId.id
this.getFileInfo();
})
}else{ }else{
this.wbbzform = JSON.parse(JSON.stringify(item));
if (item.associationData) {
this.associationData = item.associationData
}
if (item.participantsData) {
this.participantsData = item.participantsData
}
} }
}); });
}, },
choiceZRRS(row, index) { choiceZRRS(row, index) {
this.selectedId = index; this.selectedId = index;
this.drawerTitle = "选择责任人"; this.drawerTitle = "选择责任人";
this.nodeList = []; this.nodeList = [];
this.zrIndex = index; this.zrIndex = index;
this.nodeList.push(row); this.nodeList.push(row);
this.modalshowflag = true; this.modalshowflag = true;
}, },
checkedRole(data){ checkedRole(data){
if(this.participantsData.length > 1){ if(this.participantsData.length > 1){
let parList = data let parList = data
this.participantsData.forEach(item =>{ this.participantsData.forEach(item =>{
parList.forEach(items => { parList.forEach(items => {
if(items.name === item.workPeople){ if(items.name === item.workPeople){
this.$message.warning('请勿重复添加参与人') this.$message.warning('请勿重复添加参与人')
return return
}else{ }else{
console.log(items);
} }
}) })
}) })
@@ -525,7 +563,7 @@ export default {
//不备案 //不备案
handleRecord(){ handleRecord(){
this.recordLoading = true this.recordLoading = true
this.dlFlag = '0', this.dlFlag = '0'
this.wbbzform.commentText = this.commentText; this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData this.wbbzform.participantsData = this.participantsData
this.wbbzform.associationData = this.associationData this.wbbzform.associationData = this.associationData
@@ -550,11 +588,17 @@ export default {
handleSave() { handleSave() {
this.saveLoading = true this.saveLoading = true
this.wbbzform.fileName = this.fileInfoList this.wbbzform.fileName = this.fileInfoList
this.wbbzform.commentText = this.commentText;
this.wbbzform.participantsData = this.participantsData
this.wbbzform.associationData = this.associationData
this.wbbzform.comityOptionsOne = this.comityOptionsOne
this.wbbzform.comityOptionsTwo = this.comityOptionsTwo
this.wbbzform.comityOptionsOneThree = this.comityOptionsOneThree
let _formData = new FormData() let _formData = new FormData()
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
roleList: this.roleForm, roleList: this.roleForm,
wbbzform: this.wbbzform, form: this.wbbzform,
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -577,7 +621,6 @@ export default {
this.wbbzform.participantsData = this.participantsData this.wbbzform.participantsData = this.participantsData
this.wbbzform.associationData = this.associationData this.wbbzform.associationData = this.associationData
let json = JSON.stringify( this.wbbzform) let json = JSON.stringify( this.wbbzform)
console.log(json);
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -606,7 +649,7 @@ export default {
}, },
//添加参与人信息 //添加参与人信息
addPeople(){ addPeople(){
var list =[] let list =[]
this.participantsData.push(list) this.participantsData.push(list)
}, },
//批量删除参与人信息 //批量删除参与人信息
@@ -638,11 +681,12 @@ export default {
}, },
//添加协会信息 //添加协会信息
addSociety(){ addSociety(){
var list = { let list = {
contactPerson: this.contactPerson, contactPerson: this.contactPerson,
telephone: this.telephone, telephone: this.telephone,
mailbox: this.mailbox, mailbox: this.mailbox,
} }
console.log(this.associationData);
this.associationData.push(list) this.associationData.push(list)
}, },
//批量删除协会信息 //批量删除协会信息
@@ -669,7 +713,6 @@ export default {
}, },
// 上传之前钩子 // 上传之前钩子
beforeUpload(file) { beforeUpload(file) {
console.log(file);
var filename = file.name; var filename = file.name;
var index1 = filename.lastIndexOf("."); var index1 = filename.lastIndexOf(".");
var index2 = filename.length; var index2 = filename.length;
@@ -701,6 +744,7 @@ export default {
this.comityOptionsOne.forEach(item => { this.comityOptionsOne.forEach(item => {
if (item.children !== null && item.id === this.wbbzform.associationName) { if (item.children !== null && item.id === this.wbbzform.associationName) {
this.comityOptionsTwo = item.children this.comityOptionsTwo = item.children
this.$forceUpdate()
} }
}) })
}, },
@@ -710,9 +754,13 @@ export default {
this.comityOptionsTwo.forEach(item => { this.comityOptionsTwo.forEach(item => {
if (item.children !== null && item.id === this.wbbzform.committee) { if (item.children !== null && item.id === this.wbbzform.committee) {
this.comityOptionsOneThree = item.children this.comityOptionsOneThree = item.children
this.$forceUpdate()
} }
}) })
}, },
comityChangeTwo(){
this.$forceUpdate()
},
}, },
mounted() { mounted() {
/* 获取标准法规工作组数据 */ /* 获取标准法规工作组数据 */
@@ -584,7 +584,6 @@ export default {
this.qbfsForm.commentText = this.commentText this.qbfsForm.commentText = this.commentText
var json = Object.assign(this.qbfsForm, this.roleForm) var json = Object.assign(this.qbfsForm, this.roleForm)
this.$http.post('lawss/activiti/startProcessRollBack', { this.$http.post('lawss/activiti/startProcessRollBack', {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '23', type: '23',
@@ -625,7 +625,6 @@ export default {
this.standardSearch.commentText = this.commentText this.standardSearch.commentText = this.commentText
var json = Object.assign(this.standardSearch, this.roleForm) var json = Object.assign(this.standardSearch, this.roleForm)
this.$http.post('lawss/activiti/startProcessRollBack', { this.$http.post('lawss/activiti/startProcessRollBack', {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '24', type: '24',
@@ -472,10 +472,9 @@ export default {
if (flag) { if (flag) {
this.$refs["roleForm"].validate((valid) => { this.$refs["roleForm"].validate((valid) => {
if (valid) { if (valid) {
// this.isSubmit = true; this.isSubmit = true;
var json = Object.assign(qbzxdFrom, this.roleForm); let json = Object.assign(qbzxdFrom, this.roleForm);
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '25', type: '25',
@@ -681,7 +681,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '16', type: '16',
@@ -578,7 +578,7 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
let paramsInfo = new FormData() let paramsInfo = new FormData()
paramsInfo.append('id', this.bpnId || '') // paramsInfo.append('id', this.bpnId || '')
paramsInfo.append('createUser', this.$store.getters.userInfo.userId) paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
paramsInfo.append('createUserName', this.$store.getters.userInfo.userName) paramsInfo.append('createUserName', this.$store.getters.userInfo.userName)
paramsInfo.append('type', '8') paramsInfo.append('type', '8')
@@ -73,7 +73,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentInfo">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -182,7 +182,7 @@ export default {
passInfo: 0, passInfo: 0,
detailData: [], detailData: [],
loading: false, loading: false,
commentText: '', // 意见 commentInfo: '', // 意见
title: '', // 新增编辑抽屉标题 title: '', // 新增编辑抽屉标题
ListModel: false, // 新增编辑抽屉开关 ListModel: false, // 新增编辑抽屉开关
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
@@ -282,6 +282,7 @@ export default {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
} }
this.dataList = JSON.parse(JSON.stringify(item)).standardInfoList this.dataList = JSON.parse(JSON.stringify(item)).standardInfoList
this.commentInfo = JSON.parse(JSON.stringify(item)).commentInfo
}) })
}, },
// 批量选择分发责任人 // 批量选择分发责任人
@@ -290,13 +291,13 @@ export default {
this.$message.warning("请选择至少一条数据进行分发责任人"); this.$message.warning("请选择至少一条数据进行分发责任人");
} else { } else {
this.nodeList = [] this.nodeList = []
this.drawerTitle = '选择分发责任人'
this.nodeList.push(id) this.nodeList.push(id)
this.modalshowflag = true this.modalshowflag = true
} }
}, },
// 每行选择负责人点击操作 // 每行选择负责人点击操作
clickOpen(val, id) { clickOpen(val, id) {
console.log(val)
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.rowDutyPeople = val this.rowDutyPeople = val
this.nodeList = [] this.nodeList = []
@@ -325,7 +326,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
standardInfoList: this.dataList, standardInfoList: this.dataList,
commentText: this.commentText commentInfo: this.commentInfo
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -358,7 +359,7 @@ export default {
let json = { let json = {
dockUserList: list, dockUserList: list,
passInfo: this.passInfo, passInfo: this.passInfo,
commentText: this.commentText commentText: this.commentInfo
} }
let flag=false let flag=false
this.dataList.forEach(item => { this.dataList.forEach(item => {
@@ -77,7 +77,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="textarea">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -186,7 +186,7 @@ export default {
passInfo: 0, passInfo: 0,
detailData: [], detailData: [],
loading: false, loading: false,
commentText: '', // 意见 textarea: '', // 意见
title: '', // 新增编辑抽屉标题 title: '', // 新增编辑抽屉标题
ListModel: false, // 新增编辑抽屉开关 ListModel: false, // 新增编辑抽屉开关
nonSearch: { nonSearch: {
@@ -266,6 +266,7 @@ export default {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) { if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).textarea
} }
} }
} else { } else {
@@ -274,6 +275,7 @@ export default {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) { if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[i].standardInfoList this.dataList = fileData[i].standardInfoList
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
// this.textarea = JSON.parse(JSON.stringify(item)).commentText
} }
} }
} }
@@ -311,12 +313,11 @@ export default {
}, },
// 退回按钮 // 退回按钮
handleSubmitNo() { handleSubmitNo() {
if (this.commentText) { if (this.textarea) {
var json = { var json = {
passInfo: 1, passInfo: 1,
actionFlag: 1, actionFlag: 1,
commentText: this.commentText, commentText: this.textarea,
standardInfoList: this.standardInfoList, standardInfoList: this.standardInfoList,
} }
const params = new FormData(); const params = new FormData();
@@ -370,7 +371,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
dockUserList: list, dockUserList: list,
commentText: this.commentText textarea: this.textarea
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -411,7 +412,7 @@ export default {
let json = { let json = {
passInfo: this.passInfo, passInfo: this.passInfo,
responUserList: list, responUserList: list,
commentText: this.commentText, commentText: this.textarea,
actionFlag: 0 actionFlag: 0
} }
if(flag)return; if(flag)return;
@@ -77,7 +77,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentInput">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -189,7 +189,7 @@ export default {
modalshowflag: false, // drawer modalshowflag: false, // drawer
detailData: [], detailData: [],
loading: false, loading: false,
commentText: '', // commentInput: '', //
title: '', // title: '', //
ListModel: false, // ListModel: false, //
nonSearch: { nonSearch: {
@@ -273,7 +273,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (item.responUserList !== undefined) { if (item.responUserList !== undefined) {
let listJSON = JSON.parse(JSON.stringify(item.responUserList)) let listJSON = JSON.parse(JSON.stringify(item.responUserList))
this.dataList = [listJSON][0] this.dataList = listJSON
this.commentInput = JSON.parse(JSON.stringify(item)).commentInput
} else { } else {
if (item.dockUserList !== undefined) { if (item.dockUserList !== undefined) {
let listJSON = JSON.parse(JSON.stringify(item.dockUserList)) let listJSON = JSON.parse(JSON.stringify(item.dockUserList))
@@ -433,10 +434,8 @@ export default {
_formData.append('taskIds', this.taskIds) _formData.append('taskIds', this.taskIds)
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
responUserList: { responUserList: this.dataList,
standardInfoList: this.dataList commentInput: this.commentInput
},
commentText: this.commentText
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -474,7 +473,7 @@ export default {
let json = { let json = {
info: { fileDataList }, info: { fileDataList },
username: this.$store.getters.userInfo.userName, username: this.$store.getters.userInfo.userName,
commentText: this.commentText, commentText: this.commentInput,
} }
const params = new FormData(); const params = new FormData();
params.set('json', JSON.stringify(json)) params.set('json', JSON.stringify(json))
@@ -779,6 +779,7 @@ export default {
} }
}); });
this.selectList = []; this.selectList = [];
this.$refs.selection.clearSelection()
}).catch(() => { }).catch(() => {
}); });
} }
@@ -876,7 +877,6 @@ export default {
this.$refs["roleForm"].validate((valid) => { this.$refs["roleForm"].validate((valid) => {
if (valid) { if (valid) {
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '5', type: '5',
@@ -899,6 +899,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
@@ -511,7 +511,7 @@
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 { saveTaskFirst } from "api/process"; import { saveTaskFirst, taskDel } from "api/process";
import file from "@/pages/knowledgeGraph/components/file"; import file from "@/pages/knowledgeGraph/components/file";
export default { export default {
@@ -774,6 +774,7 @@ export default {
} }
}); });
this.selectList = []; this.selectList = [];
this.$refs.selection.clearSelection()
}).catch(() => { }).catch(() => {
}); });
} }
@@ -869,7 +870,6 @@ export default {
this.$refs["roleForm"].validate((valid) => { this.$refs["roleForm"].validate((valid) => {
if (valid) { if (valid) {
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '5', type: '5',
@@ -892,6 +892,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
@@ -832,7 +832,6 @@ export default {
this.listForm.dataList = this.dataList; this.listForm.dataList = this.dataList;
const json = JSON.stringify(this.listForm); const json = JSON.stringify(this.listForm);
this.isSubmit = true this.isSubmit = true
return
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds, taskIds: this.taskIds,
userId: this.userId, userId: this.userId,
@@ -613,7 +613,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '6', type: '6',
@@ -635,6 +634,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
@@ -346,7 +346,7 @@
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 { saveTaskFirst } from "api/process"; import { saveTaskFirst, taskDel } from "api/process";
import file from "@/pages/knowledgeGraph/components/file"; import file from "@/pages/knowledgeGraph/components/file";
export default { export default {
@@ -630,7 +630,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '6', type: '6',
@@ -652,6 +651,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
@@ -415,6 +415,7 @@ export default {
this.listForm.breakdownList = item.breakdownList; this.listForm.breakdownList = item.breakdownList;
} else { } else {
this.listForm = item.form this.listForm = item.form
this.commentText = item.commentText
this.dataList = item.form.dataList this.dataList = item.form.dataList
} }
@@ -418,6 +418,7 @@ export default {
this.listForm.breakdownList = item.breakdownList; this.listForm.breakdownList = item.breakdownList;
} else { } else {
this.listForm = item.form; this.listForm = item.form;
this.commentText = item.commentText
this.dataList = item.form.dataList; this.dataList = item.form.dataList;
} }
@@ -362,11 +362,7 @@ export default {
} else { } else {
this.listForm = item.form; this.listForm = item.form;
this.dataList = item.form.dataList; this.dataList = item.form.dataList;
this.dataList.forEach(item => { this.commentText = item.commentText
this.$set(item, "workPeople", "请选择责任人");
this.$set(item, "workPeopleId", "");
});
console.log(this.dataList);
} }
}); });
}, },
@@ -717,6 +717,7 @@ export default {
this.total = this.dataList.length; this.total = this.dataList.length;
} else { } else {
this.listForm = item.form; this.listForm = item.form;
this.commentText = item.commentText
let dataChildren = [] let dataChildren = []
let dataListChildren = [] let dataListChildren = []
this.listForm.dataList.forEach(item => { this.listForm.dataList.forEach(item => {
@@ -655,7 +655,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '10', type: '10',
@@ -678,6 +677,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
@@ -388,7 +388,7 @@
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 { saveTaskFirst } from "api/process"; import { saveTaskFirst, taskDel } from "api/process";
export default { export default {
name: "xmqdqrStep1", name: "xmqdqrStep1",
@@ -665,7 +665,6 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
id: this.bpnId || '',
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName, createUserName: this.$store.getters.userInfo.userName,
type: '10', type: '10',
@@ -688,6 +687,14 @@ export default {
}, res => { }, res => {
if (res.success) { if (res.success) {
this.$message.success(res.message); this.$message.success(res.message);
if (this.bpnId !== '') {
let taskId = {
id: this.bpnId
}
taskDel(taskId).then(res=>{
return res
})
}
this.$router.push("/processCenter"); this.$router.push("/processCenter");
} }
this.isSubmit = false; this.isSubmit = false;
@@ -0,0 +1,316 @@
<!-- 参与外部标准制修订信息提报流程-->
<template>
<div class="phoneCywbbzzxdStep2 phoneBox">
<ProcessHeaderPhone toggle>
<template slot="proName">参与外部标准制修订信息提报流程</template>
<template slot="proNode">选择责任工程师</template>
</ProcessHeaderPhone>
<div class="content">
<ProcessTitle>
<template slot="title">人员信息</template>
</ProcessTitle>
<div class="block" style="padding-top: 20px; height: 100%">
<el-timeline>
<el-form
ref="Form"
:model="roleForm"
:rules="roleFormRules"
class="label-input-form">
<el-timeline-item timestamp="发起流程" placement="top" :color="roleForm.startUser ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="prcCreateUserName" style="margin-bottom: 0">
<h4>标准法规工程师</h4>
<div style="margin-top: 10px;">
<el-input v-model="roleForm.prcCreateUser" style="display: none;"></el-input>
<el-input v-model="roleForm.prcCreateUserName" placeholder="流程发起人"
disabled></el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="责任部门对接人选择责任人填写信息" placement="top"
:color="roleForm.dockUser ? '#66b1ff' : ''" >
<el-card>
<el-form-item prop="dockUserName" style="margin-bottom: 0">
<h4>责任部门对接人</h4>
<div style="margin-top: 10px;">
<el-input v-model="roleForm.dockUser" style="display: none;"></el-input>
<el-input v-model="roleForm.dockUserName" placeholder="选择责任部门对接人"
disabled>
</el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="选择责任工程师填写信息" placement="top"
:color="roleForm.workPeople ? '#66b1ff' : ''" >
<el-card>
<el-form-item prop="workPeopleName" style="margin-bottom: 0">
<h4>责任工程师</h4>
<div style="margin-top: 10px;">
<el-input v-model="roleForm.workPeople" style="display: none;"></el-input>
<el-input v-model="roleForm.workPeopleName" placeholder="选择责任工程师"
@click.native="choiceZRR">
</el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
<el-timeline-item timestamp="审批" placement="top"
:color="roleForm.directorUser ? '#66b1ff' : ''">
<el-card>
<el-form-item prop="directorUserName" style="margin-bottom: 0">
<h4>标准法规部部长</h4>
<div style="margin-top: 10px;">
<el-input v-model="roleForm.directorUser" style="display: none;"></el-input>
<el-input v-model="roleForm.directorUserName" placeholder="选择标准法规部部长"
disabled></el-input>
</div>
</el-form-item>
</el-card>
</el-timeline-item>
</el-form>
</el-timeline>
<ProcessFooter
show-save
show-submit
:submitLoading="isSubmit"
:saveLoading="saveLoading"
@save="handleSave"
@submit="handleSubmit"
>
</ProcessFooter>
</div>
</div>
<!-- 多选择责任人-->
<Role-tree
is-title="选择责任部门对接人"
:is-visible.sync="modalshowflag2"
@checkedRole="checkedRole2"
:nodeList="nodeList2"
></Role-tree>
<Role-tree
check-box
:is-title="drawerTitle"
:is-visible.sync="modalshowflag"
@checkedRole="checkedRole"
:nodeList="nodeList"
></Role-tree>
<phone-role
:role-title="drawerTitle"
:result-list="phoneRoleList"
:is-show-phone.sync="phoneshowflag"
@checkedRole="drawerCheck"
/>
</div>
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessTitle from "process/components/ProcessTitle";
import ProcessFooter from "process/components/ProcessFooter";
import { inboundLiaisonDetail } from "api/process";
export default {
name: "phoneCywbbzzxdStep2",
components: {
ProcessHeaderPhone,
ProcessTitle,
ProcessFooter
},
data() {
return {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
isSubmit: false,
saveLoading: false,
modalshowflag: false, // drawer
modalshowflag2: false,
nodeList2: [],
drawerTitle: "", //drawer
nodeList: [],
roleForm: {
prcCreateUserName: this.$store.getters.userInfo.userName,
prcCreateUser: this.$store.getters.userInfo.userId,
dockUser: "",
directorUser: "",
workPeople: "",
dockUserName: "",
workPeopleName: "",
directorUserName: ""
},
roleFormRules: {
// dockUserName: [
// {required: true, message: "", trigger: "change"}
// ],
// workPeopleName: [
// {required: true, message: '', trigger: "change"}
// ],
// directorUserName: [
// {required: true, message: "", trigger: "change"}
// ]
},
};
},
mounted() {
this.getData();
},
methods:{
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId
}).then(res => {
if (res) {
const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm);
}
}).catch(e => {
});
});
},
/**
* @description: 动态表单读取
*/
getFormFieldList(item) {
this.$nextTick(() => {
this.roleForm = item
});
},
choiceZRR() {
this.drawerTitle = '选择责任工程师';
this.phoneshowflag = true;
},
drawerCheck(data){
this.roleForm.workPeople = data[0].id
this.roleForm.workPeopleName = data[0].name
},
choiceZRRS() {
this.nodeList2 = [];
if (this.roleForm.workPeople.length > 0) {
this.nodeList2 = this.roleForm.workPeople.split(",");
}
this.modalshowflag2 = true;
},
checkedRole(data) {
if (this.type === "dockUser") {
this.roleForm.dockUser = this.roleRow.id;
this.roleForm.dockUserName = this.roleRow.name;
} else if (this.type === "directorUser") {
this.roleForm.directorUser = data[0].id;
this.roleForm.directorUserName = data[0].name;
} else if(this.type === "workPeople"){
this.roleForm.workPeople = data[0].id;
this.roleForm.workPeopleName = data[0].name;
}
this.modalshowflag = false;
},
checkedRole2(data) {
var idList = "";
var nameList = "";
data.forEach(item => {
if (nameList.length > 0) {
nameList += ",";
idList += ",";
}
idList += item.id;
nameList += item.name;
});
this.roleForm.workPeople = idList;
this.roleForm.workPeopleName = nameList;
},
handleSubmit(){
if(this.roleForm.workPeople !== undefined){
let json = this.roleForm
this.$refs["Form"].validate((valid) => {
if (valid) {
this.isSubmit = true
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message);
this.$router.push("/processCenter");
}
this.isSubmit = false
});
} else {
return this.$message.warning("请完善人员信息");
}
});
}else{
this.$message.warning('请选择责任工程师')
}
},
handleSave(){
},
},
};
</script>
<style lang="less" scoped>
@import '~@/assets/styles/phone';
.phoneCywbbzzxdStep2 {
/deep/.van-dialog__content {
min-height: 300px;
padding: 10px;
}
.prc-content-border {
overflow: auto;
}
/deep/.prc-content-border .el-form-item__content {
width: 270px;
}
//.headerTabs {
// height: 52px;
// display: flex;
// align-items: center;
// position: absolute;
// top: 75px;
// right: 10px;
// .headerTabsItem {
// border: 1px solid #c1c1c1;
// padding: 0 5px;
// height: 30px;
// line-height: 30px;
// cursor: pointer;
// }
// .active {
// border: 1px solid #E6A23C;
// color: #fff;
// background: #E6A23C;
// }
//}
.content {
border-top: 1px solid #DCDFE6;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-top: 52px;
//height: calc(~'100% - 180px');
overflow: auto;
.tableTitle {
margin-bottom: 10px;
height: 30px;
line-height: 30px;
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
top: 0;
}
}
}
}
</style>
@@ -0,0 +1,458 @@
<!--企标复审-->
<template>
<div class="phoneQbfsStep2 phoneBox">
<ProcessHeaderPhone toggle>
<template slot="proName">企标复审流程</template>
<template slot="proNode">工作组组长指派责任人</template>
</ProcessHeaderPhone>
<div class="headerTabs">
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
<div class="headerTabsItem" :class="active === '3' ? 'active' : ''" @click="handleTabs('3')">审批历史</div>
</div>
<div class="content" v-show="active === '1'">
<div style="flex: auto; overflow: auto">
<process-title>
<template slot="title">基础信息</template>
</process-title>
<el-form
ref="qbfsForm"
:model="qbfsForm"
:rules="formRules"
class="label-input-form prc-content-border"
label-width="150px"
>
<el-row :gutter="24">
<el-col :span="24">
<el-form-item label="企标编号" prop="entNumber" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.entNumber"
placeholder="请输入企标编号"
clearable
></el-input>
</el-form-item>
<el-form-item label="中文名称" prop="cnName" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.cnName"
placeholder="请输入中文名称"
clearable
></el-input>
</el-form-item>
<el-form-item label="英文名称" prop="enName" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.enName"
placeholder="请输入英文名称"
clearable
></el-input>
</el-form-item>
<el-form-item label="企标类别" prop="entCategory" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.entCategory"
placeholder="请输入企标类别"
clearable
></el-input>
</el-form-item>
<el-form-item label="代替企标编号" prop="replaceNumber" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.replaceNumber"
placeholder="请输入代替企标编号"
clearable
></el-input>
</el-form-item>
<el-form-item label="被代替企标编号" prop="replacedNumber" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.replacedNumber"
placeholder="请输入被代替企标编号"
clearable
></el-input>
</el-form-item>
<el-form-item label="发布日期" prop="releaseDate" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.releaseDate"
placeholder="请输入发布日期"
clearable
></el-input>
</el-form-item>
<el-form-item label="实施日期" prop="implementDate" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.implementDate"
placeholder="请输入实施日期"
clearable
></el-input>
</el-form-item>
<el-form-item label="复审日期" prop="reviewDate" class="add-form-item form-item-disabled">
<el-input
readonly
v-model="qbfsForm.reviewDate"
placeholder="请输入复审日期"
clearable
></el-input>
</el-form-item>
<el-form-item label="附件" prop="fileName" class="add-form-item form-item-disabled">
<div class="file-box" v-if="fileList.length > 0">
<p v-for="item in fileList"
:key="item.id"> {{ item.oldFileName }}
<i
title="下载"
@click="downloadFile(item.id)"
class="icon-download"
v-btn-permission="''"
/>
<i
title="下载带水印"
@click="downloadFileByWater(item.id, item.name)"
class="icon-download2"
v-btn-permission="''"
/>
</p>
</div>
<div v-else>
暂无数据
</div>
</el-form-item>
<el-form-item label="工作组成员" prop="jgUser" class="add-form-item form-item-disabled">
<el-input
v-model="qbfsForm.jgUser"
placeholder="请选择工作组成员"
clearable
@click.native="choiceZRRS"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div>
<el-collapse accordion>
<el-collapse-item title="回执说明">
<div style="margin: 10px 0;">
<el-input
type="textarea"
:rows="3"
resize="none"
placeholder="请输入意见"
v-model="commentText">
</el-input>
</div>
</el-collapse-item>
</el-collapse>
</div>
</div>
<div class="content" v-show="active === '3'">
<Phone-histort-table :prc-num="$route.query.prcNum"></Phone-histort-table>
</div>
<ProcessFooter
show-transfer
show-submit
:transfer-loading="isTransfer"
:submitLoading="isSubmit"
:saveLoading="saveLoading"
:approval="true"
@transfer="handleTransfer"
@submit="handleSubmit"
>
</ProcessFooter>
<phone-role
:role-title="drawerTitle"
:result-list="phoneRoleList"
:is-show-phone.sync="phoneshowflag"
@checkedRole="drawerCheck"
/>
<!-- &lt;!&ndash; 选择责任人&ndash;&gt;-->
<!-- <Role-tree-->
<!-- :is-title="drawerTitle"-->
<!-- :is-visible.sync="modalshowflag"-->
<!-- @checkedRole="checkedRole"-->
<!-- :nodeList="nodeList2"-->
<!-- ></Role-tree>-->
<phone-role
check-more
role-title="选择工作组成员"
:result-list="nodeList"
:is-show-phone.sync="drawerModal"
@checkedRole="checkedRole"
/>
</div>
</template>
<script>
import { Dialog } from 'vant';
import ProcessHeaderPhone from '../../components/ProcessHeaderPhone'
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
import { changeAssigneeNew, inboundLiaisonDetail, saveTaskFirst } from "api/process";
export default {
name: "phoneQbfsStep2",
components:{
ProcessFooter,
ProcessTitle,
ProcessHeaderPhone
},
data() {
return {
phoneshowflag: false,
phoneRoleList: [],
phoneDrawerTitle: '',
active: '1',
fileList: [],
commentText: '',
detailData: [],
nodeList: [],
nodeList2: [],
isSubmit: false,
saveLoading: false,
isTransfer: false,
//
drawerModal: false,
drawerTitle: "", //drawer
modalshowflag: false, // drawer
loading: false,
qbfsForm:{
entNumber: '',
cnName: '',
enName: '',
entCategory: '',
replaceNumber: '',
replacedNumber: '',
releaseDate: '',
implementDate: '',
reviewDate: '',
jgUser: '',
jgUserId: '',
},
roleForm: {
jgUser: ""
},
formRules: {
jgUser: [
{required: true, message: "请选择工作组成员", trigger: "change"}
],
},
}
},
mounted() {
this.processTable()
this.getData()
},
methods:{
processTable() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum,
sortWord: this.shunxu ? this.paixu : "",
shunxu: this.shunxu
}, {
loading: "loading",
_this: this
}, res => {
this.detailData = res
}, e => {
})
},
getData() {
return new Promise((resolve, reject) => {
inboundLiaisonDetail({
taskIds: this.$route.query.taskIds,
pId: this.$route.query.prcId,
}).then(res => {
if (res) {
const processForm = JSON.parse(res.mesg)
this.getFormFieldList(processForm)
}
}).catch(e => {
})
})
},
/**
* @description: 动态表单读取
*/
getFormFieldList (item) {
this.$nextTick(() => {
this.qbfsForm = JSON.parse(JSON.stringify(item))
this.fileList = item.fileList
})
},
handleTabs(name) {
this.active = name;
},
//
handleSubmit(){
this.isSubmit = true
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId,
json: json,
}, {
_this: this
}, res => {
if (res.success) {
this.$message.success(res.message)
this.$router.push('/processCenter')
}
this.isSubmit = false
}, e => {
});
},
//
handleTransfer(){
this.phoneshowflag = true
this.phoneRoleList = this.roleTransfer
this.phoneDrawerTitle = '转办处理人'
},
//
drawerCheck (data) {
this.roleTransfer = data
this.phoneRoleList = this.roleTransfer
this.turnLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // id
assignee: data[0].id, //
userId: this.$store.getters.userInfo.userId, //
pId: this.$route.query.prcId //
}).then(res =>{
if (res.success) {
this.turnLoading = false
this.$message.success('调整成功')
this.$router.push("/processCenter")
} else {
this.$message.warning(res.message)
}
})
this.modalshowflag = false
},
//
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 => {
// let blob = new Blob([res.data], {type: 'image/jpg'})
// let url = window.URL.createObjectURL(res.data)
this.processStep = window.URL.createObjectURL(res.data)
})
},
choiceZRRS() {
if (this.qbfsForm.jgUserId) {
this.phoneRoleList = this.listForm.jgUserId.split(',')
}
this.drawerModal = true;
},
checkedRole(data) {
let idList = "";
let nameList = "";
data.forEach(item => {
if (nameList.length) {
nameList += ",";
idList += ",";
}
idList += item.id;
nameList += item.name;
});
this.$set(this.qbfsForm, 'jgUser', nameList)
this.$set(this.qbfsForm, 'jgUserId', idList)
if(this.qbfsForm.jgUser){
this.$refs.qbfsForm.validateField('jgUser')
}
},
/**
* @Description: 点击下载
*/
downloadFile(attId) {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
},
downloadFileByWater(attId, fileSuffix) {
let fileExtension = fileSuffix.substring(fileSuffix.lastIndexOf(".") + 1);
if (fileExtension !== "pdf" && fileExtension !== "PDF") {
this.$message.error("水印下载仅支持PDF,pdf格式文件");
} else {
if (attId != null && attId !== "") {
window.location.href = "/api/att/attFile/downloadFileForSarWaterMark?fileId=" + attId;
} else {
this.$message.error("请选择要下载的文件");
}
}
},
},
computed: {
listNoDataText() {
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
}
},
};
</script>
<style lang="less" scoped>
@import '~@/assets/styles/phone';
.phoneQbfsStep2 {
/deep/.van-dialog__content {
min-height: 300px;
padding: 10px;
}
.prc-content-border {
overflow: auto;
}
/deep/.prc-content-border .el-form-item__content {
width: 270px;
}
//.headerTabs {
// height: 52px;
// display: flex;
// align-items: center;
// position: absolute;
// top: 52px;
// right: 10px;
// .headerTabsItem {
// border: 1px solid #c1c1c1;
// padding: 0 5px;
// height: 30px;
// line-height: 30px;
// cursor: pointer;
// }
// .active {
// border: 1px solid #E6A23C;
// color: #fff;
// background: #E6A23C;
// }
//}
.content {
border-top: 1px solid #DCDFE6;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-top: 52px;
//height: calc(~'100% - 180px');
overflow: auto;
.tableTitle {
margin-bottom: 10px;
height: 30px;
line-height: 30px;
position: relative;
font-size: 13px;
font-weight: bold;
.tableButton {
position: absolute;
right: 0;
top: 0;
}
}
}
}
</style>
@@ -77,7 +77,7 @@
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="commentInfo">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -120,7 +120,7 @@ export default {
return { return {
passInfo: 0, passInfo: 0,
loading: false, loading: false,
commentText: '', // commentInfo: '', //
title: '', // title: '', //
ListModel: false, // ListModel: false, //
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
@@ -208,7 +208,7 @@ export default {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
} }
this.dataList = JSON.parse(JSON.stringify(item)).standardInfoList this.dataList = JSON.parse(JSON.stringify(item)).standardInfoList
this.commentText = JSON.parse(JSON.stringify(item)).commentText this.commentInfo = JSON.parse(JSON.stringify(item)).commentInfo
}) })
}, },
// //
@@ -225,7 +225,6 @@ export default {
}, },
// //
clickOpen(val, id) { clickOpen(val, id) {
console.log()
this.$refs.multipleTable.clearSelection() this.$refs.multipleTable.clearSelection()
this.rowDutyPeople = val this.rowDutyPeople = val
if (this.rowDutyPeople.dutyPeopleId.length > 0) { if (this.rowDutyPeople.dutyPeopleId.length > 0) {
@@ -256,7 +255,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
standardInfoList: this.dataList, standardInfoList: this.dataList,
commentText: this.commentText commentInfo: this.commentInfo
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -288,7 +287,8 @@ export default {
} }
let json = { let json = {
dockUserList: list, dockUserList: list,
passInfo: this.passInfo passInfo: this.passInfo,
commentText: this.commentInfo
} }
let flag=false let flag=false
this.dataList.forEach(item => { this.dataList.forEach(item => {
@@ -74,14 +74,14 @@
</el-table> </el-table>
</div> </div>
<el-collapse accordion> <el-collapse accordion>
<el-collapse-item title="回执说明"> <el-collapse-item title="审批意见">
<div style="margin: 10px 0;"> <div style="margin: 10px 0;">
<el-input <el-input
type="textarea" type="textarea"
:rows="3" :rows="3"
resize="none" resize="none"
placeholder="请输入意见" placeholder="请输入意见"
v-model="commentText"> v-model="textarea">
</el-input> </el-input>
</div> </div>
</el-collapse-item> </el-collapse-item>
@@ -127,7 +127,7 @@ export default {
return { return {
passInfo: 0, passInfo: 0,
loading: false, loading: false,
commentText: '', // textarea: '', //
title: '', // title: '', //
ListModel: false, // ListModel: false, //
nonSearch: { nonSearch: {
@@ -195,6 +195,7 @@ export default {
if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) { if (fileData[i].name.slice(0,fileData[i].name.indexOf('(')) === this.$store.getters.userInfo.userName) {
this.dataList = fileData[0].standardInfoList this.dataList = fileData[0].standardInfoList
this.standardInfoList = this.dataList this.standardInfoList = this.dataList
this.textarea = JSON.parse(JSON.stringify(item)).textarea
} }
} }
} else { } else {
@@ -246,12 +247,12 @@ export default {
}, },
// 退 // 退
handleSubmitNo() { handleSubmitNo() {
if (this.commentText) { if (this.textarea) {
var json = { var json = {
passInfo: 1, passInfo: 1,
actionFlag: 1, actionFlag: 1,
commentText: this.commentText, commentText: this.textarea,
standardInfoList: this.standardInfoList, standardInfoList: this.standardInfoList,
} }
const params = new FormData(); const params = new FormData();
@@ -305,7 +306,7 @@ export default {
_formData.append('json', JSON.stringify({ _formData.append('json', JSON.stringify({
// roleForm: this.roleForm, // roleForm: this.roleForm,
dockUserList: list, dockUserList: list,
commentText: this.commentText textarea: this.textarea
})) }))
saveTaskForPub(_formData).then(res => { saveTaskForPub(_formData).then(res => {
this.saveLoading = false this.saveLoading = false
@@ -346,6 +347,7 @@ export default {
let json = { let json = {
passInfo: this.passInfo, passInfo: this.passInfo,
responUserList: list, responUserList: list,
commentText: this.textarea,
actionFlag: 0 actionFlag: 0
} }
if(flag)return; if(flag)return;
@@ -261,9 +261,7 @@ export default {
this.backLoading = true this.backLoading = true
if (this.commentText) { if (this.commentText) {
var json = { var json = {
responUserList: { responUserList: this.dataList,
standardInfoList: this.dataList
},
actionFlag: 1, actionFlag: 1,
commentText: this.commentText commentText: this.commentText
} }
@@ -1165,6 +1165,7 @@ export default {
// //
if (this.selectedAccInfoSearchList.length > 0) { if (this.selectedAccInfoSearchList.length > 0) {
// //
console.log('1168',this.selectedAccInfoSearchList)
this.selectedAccInfoSearchList.map(item => { this.selectedAccInfoSearchList.map(item => {
let addList; let addList;
addList = this.sarAccessInfoList.findIndex(items => { addList = this.sarAccessInfoList.findIndex(items => {
@@ -1472,6 +1473,7 @@ export default {
this.sarAccessInfoSearch.page = 1 this.sarAccessInfoSearch.page = 1
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND'){ if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND'){
StandardsInfoPage(this.sarAccessInfoSearch).then(res => { StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
console.log('1476',res.data.list)
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
this.sarAccessInfoSearchList.forEach(item => { this.sarAccessInfoSearchList.forEach(item => {
if (item.standYear === null) { if (item.standYear === null) {
@@ -1479,6 +1481,10 @@ export default {
} else { } else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
} }
item.zrbm = item.attrInfoCaseMap.zrbm
item.sycpx = item.attrInfoCaseMap.sycpx
item.typeApplicable = item.attrInfoMap.CLLX
item.nylx = item.attrInfoMap.NYLX
}) })
this.drawerTotal = res.data.count this.drawerTotal = res.data.count
}, e => { }, e => {
@@ -1229,19 +1229,102 @@ export default {
} }
}) })
}, },
//
changeText(val) {
val.forEach(item => {
//
if (item.zrbm !== null || item.zrbm !== "") {
let k = (item.zrbm || "").split(',')
for (let i in this.zrbmOptions) {
for (let m = 0; m < k.length; m++) {
if (this.zrbmOptions[i].value === k[m]) {
k[m] = this.zrbmOptions[i].label
}
item.zrbm = k.join(',')
}
}
}
//
if (item.nylx !== null) {
let k = (item.nylx || "").split(',')
for (let i in this.categoryOptions) {
for (let m = 0; m < k.length; m++) {
if (this.categoryOptions[i].value === k[m]) {
k[m] = this.categoryOptions[i].label
}
item.nylx = k.join(',')
}
}
}
//
if (item.typeApplicable !== null) {
let k = (item.typeApplicable || "").split(',')
for (let i in this.CycxOptions) {
for (let m = 0; m < k.length; m++) {
if (this.CycxOptions[i].value === k[m]) {
k[m] = this.CycxOptions[i].label
}
item.typeApplicable = k.join(',')
}
}
}
// s线
if (item.sycpx !== null) {
let k = (item.sycpx || "").split(',')
for (let i in this.sycpxOptions) {
for (let m = 0; m < k.length; m++) {
if (this.sycpxOptions[i].value === k[m]) {
k[m] = this.sycpxOptions[i].label
}
item.sycpx = k.join(',')
}
}
}
//
if (item.syrz !== null) {
let k = (item.syrz || "").split(',')
for (let i in this.syrzOptions) {
for (let m = 0; m < k.length; m++) {
if (this.syrzOptions[i].value === k[m]) {
k[m] = this.syrzOptions[i].label
}
item.syrz = k.join(',')
}
}
}
})
},
pageInfo() { pageInfo() {
this.sarAccessInfoSearch.pageNo = 1 this.sarAccessInfoSearch.pageNo = 1
this.sarAccessInfoSearch.page = 1 this.sarAccessInfoSearch.page = 1
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND') { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND') {
StandardsInfoPage(this.sarAccessInfoSearch).then(res => { StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
console.log('1476',res.data.list)
this.sarAccessInfoSearchList.forEach(item => { this.sarAccessInfoSearchList.forEach(item => {
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
} }
item.zrbm = item.attrInfoCaseMap.zrbm
item.sycpx = item.attrInfoCaseMap.sycpx
item.typeApplicable = item.attrInfoMap.CLLX
//
if (item.typeApplicable !== null) {
let k = (item.typeApplicable || "").split(',')
for (let i in this.CycxOptions) {
for (let m = 0; m < k.length; m++) {
if (this.CycxOptions[i].value === k[m]) {
k[m] = this.CycxOptions[i].label
}
item.typeApplicable = k.join(',')
}
}
}
item.nylx = item.attrInfoMap.NYLX
}) })
this.changeText(this.sarAccessInfoSearchList)
this.drawerTotal = res.data.count this.drawerTotal = res.data.count
}, e => { }, e => {
}) })
@@ -1306,7 +1306,7 @@ export default {
if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND'){ if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND' || this.sarAccessInfoSearch.dataSource === 'FOREIGN_STAND'){
StandardsInfoPage(this.sarAccessInfoSearch).then(res => { StandardsInfoPage(this.sarAccessInfoSearch).then(res => {
this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList = res.data.list
console.log('1476',res.data.list)
// //
for (let i = 0; i < this.sarAccessInfoSearchList.length; i++) { for (let i = 0; i < this.sarAccessInfoSearchList.length; i++) {
// //
@@ -1324,6 +1324,10 @@ export default {
} else { } else {
item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear item.standNumber = item.standSortShow + ' ' + item.standNumber + '-' + item.standYear
} }
item.zrbm = item.attrInfoCaseMap.zrbm
item.sycpx = item.attrInfoCaseMap.sycpx
item.typeApplicable = item.attrInfoMap.CLLX
item.nylx = item.attrInfoMap.NYLX
}) })
this.changeText(this.sarAccessInfoSearchList) this.changeText(this.sarAccessInfoSearchList)
this.drawerTotal = res.data.count this.drawerTotal = res.data.count
@@ -163,12 +163,12 @@
v-btn-permission="'5aedea192a77b14c364f19bdcee3513a'"><i class="iconfont">&#xe611;</i>移除标准 v-btn-permission="'5aedea192a77b14c364f19bdcee3513a'"><i class="iconfont">&#xe611;</i>移除标准
</el-button> </el-button>
<el-button class="common-button-default" <el-button class="common-button-default"
v-btn-permission="'249aaa052affd5ad579ecffb8fd6b084'" v-btn-permission="''"
size="mini" size="mini"
@click="OCRAdd('0')"><i class="iconfont">&#xe611;</i>OCR @click="OCRAdd('0')"><i class="iconfont">&#xe611;</i>OCR
</el-button> </el-button>
<el-button class="common-button-default" <el-button class="common-button-default"
v-btn-permission="'7b0ee71c73a89a28e8e754b371e50dde'" v-btn-permission="''"
size="mini" size="mini"
@click="OCRAdd('1')"><i class="iconfont">&#xe611;</i>拆分 @click="OCRAdd('1')"><i class="iconfont">&#xe611;</i>拆分
</el-button> </el-button>
@@ -1745,6 +1745,13 @@
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 模块结构单元名称 -->
<el-form-item title="模块结构单元名称" label="模块结构单元名称" prop="dymc" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.DYMC" clearable
placeholder="模块结构单元名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<!-- 起草单位--> <!-- 起草单位-->
@@ -1839,6 +1846,12 @@
placeholder="关联模块--卡车VPPS中文名称" placeholder="关联模块--卡车VPPS中文名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<el-form-item title="模块结构单元变型号" label="模块结构单元变型号" prop="dybxh" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.DYBXH" clearable
placeholder="模块结构单元变型号"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -2314,7 +2327,9 @@ export default {
, CBCD: ''// , CBCD: ''//
, YYBJ: ''// , YYBJ: ''//
, BYYBJ: ''// , BYYBJ: ''//
, TXLB: ''// , TXLB: '',//
DYBXH: '',//
DYMC: '',//
}, },
// //
// tree function // tree function
@@ -3561,7 +3576,7 @@ export default {
// }, // },
// //
clearAllSearch(flag) { clearAllSearch(flag) {
if (flag === 'sarStandardsSearch') { if (flag === 'sarStandardsSearch' || flag === 'standCommonlySearch') {
// //
this.sarStandardsSearch.country = '' this.sarStandardsSearch.country = ''
this.sarStandardsSearch.standSort = '' this.sarStandardsSearch.standSort = ''
@@ -3578,7 +3593,7 @@ export default {
this.sarStandardsSearch.synopsis = '' this.sarStandardsSearch.synopsis = ''
this.sarStandardsSearch.category = '' this.sarStandardsSearch.category = ''
this.isAdvancedSearch = false this.isAdvancedSearch = false
} else if (flag === 'standCommonlySearch') { // } else if (flag === 'standCommonlySearch') {
this.standCommonlySearch.standName = '' this.standCommonlySearch.standName = ''
this.standCommonlySearch.standNumber = '' this.standCommonlySearch.standNumber = ''
this.pageChange(1) this.pageChange(1)
@@ -4257,7 +4272,12 @@ export default {
this.sarStandardsSearch.page = page this.sarStandardsSearch.page = page
} }
this.standCommonlySearch.page = page this.standCommonlySearch.page = page
this.getDomesticStandardTable(this.standCommonlySearch) if (this.sarStandardsSearch) {
this.getDomesticStandardTable(this.sarStandardsSearch)
} else {
this.getDomesticStandardTable(this.standCommonlySearch)
}
}, },
// //
pageSizeChange(pageSize) { pageSizeChange(pageSize) {
@@ -4268,6 +4288,7 @@ export default {
}, },
// //
getDomesticStandardTable(item) { getDomesticStandardTable(item) {
console.log(item)
if (item !== '' && item !== null && item !== undefined) { if (item !== '' && item !== null && item !== undefined) {
item.pageSize = this.$store.getters.userInfo.configContent item.pageSize = this.$store.getters.userInfo.configContent
} }
@@ -4278,6 +4299,7 @@ export default {
} }
// this.sarStandardsSearch.menuId = this.selectSarMenu.id // this.sarStandardsSearch.menuId = this.selectSarMenu.id
const formData = {...data} const formData = {...data}
console.log(formData)
if (!item) { if (!item) {
formData.menuId = this.sarStandardsSearch.menuId formData.menuId = this.sarStandardsSearch.menuId
} else { } else {
@@ -4566,7 +4566,6 @@ export default {
this.standNatureOptions = res.data.SARPROPERTY // this.standNatureOptions = res.data.SARPROPERTY //
this.standStateOptions = res.data.TEXTSTATUSBUSS // this.standStateOptions = res.data.TEXTSTATUSBUSS //
this.standSystemOptions = res.data.TXLBBUSS // this.standSystemOptions = res.data.TXLBBUSS //
console.log(this.standSystemOptions);
this.applyArcticOptions.options = res.data.ENERGYTYPES // this.applyArcticOptions.options = res.data.ENERGYTYPES //
this.categoryOptions.options = res.data.NYLXCLASS // this.categoryOptions.options = res.data.NYLXCLASS //
this.applyAuthOptions.options = res.data.SYRZCLASS // this.applyAuthOptions.options = res.data.SYRZCLASS //
@@ -263,42 +263,97 @@
v-model="addForm.unit"> v-model="addForm.unit">
</el-input> </el-input>
<el-input <el-input
:key="addForm.unit"
:config="addForm"
clearable clearable
v-model="addForm.unitName" v-model="addForm.unitName"
placeholder="请选择起草责任单位" placeholder="请选择起草责任单位"
readonly readonly
@click.native="choiceZRBM(addForm.unit)"> @click.native="choiceZRBM(addForm.unit)">
</el-input> </el-input>
<!-- <el-tooltip v-if="addForm.unit" class="item" effect="dark" :content="addForm.unit" placement="top-start">-->
<!-- <el-input-->
<!-- :disabled="DrawerType === 'see'"-->
<!-- clearable-->
<!-- v-model="addForm.unit"-->
<!-- placeholder="选择或输入起草单位">-->
<!-- </el-input>-->
<!-- </el-tooltip>-->
<!-- <div v-else>-->
<!-- <el-input-->
<!-- :disabled="DrawerType === 'see'"-->
<!-- clearable-->
<!-- v-model="addForm.unit"-->
<!-- placeholder="选择或输入起草单位">-->
<!-- </el-input>-->
<!-- </div>-->
<!-- <div>-->
<!-- <el-button-->
<!-- :disabled="DrawerType === 'see'"-->
<!-- size="mini"-->
<!-- type="primary"-->
<!-- @click="QCDWClick"-->
<!-- class="common-button-primary">手动查找</el-button>-->
<!-- </div>-->
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="企业标准" style="width: 100%; margin-right:10px" class="add-form-item" prop="rqbJson" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-input
style="display: none;"
v-model="addForm.rqbJson">
</el-input>
<el-input
clearable
v-model="addForm.rqbName"
placeholder="请选择企业标准"
readonly
@click.native="choiceQYBZ(addForm.rqbJson)">
</el-input>
</div>
</el-form-item>
<el-form-item label="体系结构" style="width: 100%; margin-right:10px" class="add-form-item" prop="tsJson" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-input
style="display: none;"
v-model="addForm.tsJson">
</el-input>
<el-input
clearable
v-model="addForm.tsJsonName"
placeholder="请选择体系结构"
readonly
@click.native="choiceTXJG(addForm.tsJson)">
</el-input>
</div>
</el-form-item>
<el-form-item label="标准范围" style="width: 100%; margin-right:10px" class="add-form-item" prop="area" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-select v-model="addForm.area" multiple filterable placeholder="请选择标准范围" style="width: 100%;">
<el-option
v-for="item in BZList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-form-item>
<el-form-item label="是否引用标准" style="width: 100%; margin-right:10px" class="add-form-item" prop="isRelate" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex; height: 100%; justify-content: space-between;align-items: center;">
<el-radio-group v-model="addForm.isRelate">
<el-radio label="是" value="是"></el-radio>
<el-radio label="否" value="否"></el-radio>
</el-radio-group>
</div>
</el-form-item>
<template v-if="addForm.isRelate === '是'">
<custom-input-for-all-standards
class="classDisplay"
:config="{attrName: '采用标准'}"
:labelWidth="'180px'"
v-model="addForm.esStandRelations"
></custom-input-for-all-standards>
</template>
<el-form-item v-if="addForm.isRelate === '是'" label="采标程度" style="width: 100%; margin-right:10px" class="add-form-item" prop="useLevel" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex; height: 100%; justify-content: space-between;align-items: center;">
<el-radio-group v-model="addForm.useLevel">
<el-radio label="等同" value="等同"></el-radio>
<el-radio label="修改" value="修改"></el-radio>
<el-radio label="非等效" value="非等效"></el-radio>
</el-radio-group>
</div>
</el-form-item>
<el-form-item v-if="addForm.isRelate === '否'" label="简述技术指标依据" style="width: 100%; margin-right:10px" class="add-form-item" prop="technologic" :class="DrawerType === 'see' ? 'form-item-disabled' : ''">
<div style="display: flex;justify-content: space-between;align-items: center;">
<el-input
v-model="addForm.technologic"
placeholder="请简述技术指标依据">
</el-input>
</div>
</el-form-item>
<template>
<custom-input-for-all-standards2
class="classDisplay"
:config="{attrName: '配套标准'}"
:labelWidth="'180px'"
v-model="addForm.esMatingRelations"
></custom-input-for-all-standards2>
</template>
</el-form> </el-form>
</el-col> </el-col>
</el-row> </el-row>
@@ -361,19 +416,165 @@
:nodeList="nodeListZRBM" :nodeList="nodeListZRBM"
@checkedRole="drawerCheckZRBM" @checkedRole="drawerCheckZRBM"
/> />
<el-drawer
title="选择企业标准"
:visible.sync="QYBZmodal"
size="900px"
custom-class="demo-drawer"
>
<div class="standardForComments">
<div class="content" style="height: 100%;">
<!-- 顶部工具栏 -->
<div class="search-area">
<el-form :model="QYBZform" inline class="label-input-form">
<el-formItem label="标准号" prop="numberName" class="search-item">
<el-input v-model="QYBZform.standCode" clearable placeholder="根据标准号查找" :maxlength="100"/>
</el-formItem>
<el-formItem label="标准名称" prop="standName" class="search-item">
<el-input v-model="QYBZform.standName" clearable placeholder="根据标准名称查找" :maxlength="100"/>
</el-formItem>
<el-formItem class="search-item btn-box">
<el-button
type="primary"
size="mini"
class="common-button-primary"
@click="QYBZget">查询
</el-button>
<el-button
class="common-button-default"
size="mini"
@click="clearQYBZ">清空
</el-button>
</el-formItem>
</el-form>
</div>
<div class="table-wrap" style="height: 100%;">
<div style="position: absolute;height: calc(100% - 10px);width: 100%;">
<el-table
ref="selection"
:data="QYBZList"
tooltip-effect="dark"
style="width: 100%;padding:0 0 20px 0;"
height="100%"
border
@selection-change="handleSelectionQYBZ"
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
<el-table-column type="selection" width="55" align="center"/>
<el-table-column
label="企标编号"
prop="standCode"
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop="standName"
label="中文名称"
>
</el-table-column>
<el-table-column
prop="issueTime"
label="发布日期"
width="120"
>
<template slot-scope="scope">
<span>{{scope.row.issueTime ? scope.row.issueTime.slice(0, 10) : ''}}</span>
</template>
</el-table-column>
<el-table-column
prop="putTime"
label="实施日期"
sortable
width="120"
>
<template slot-scope="scope">
<span>{{scope.row.putTime ? scope.row.putTime.slice(0, 10) : ''}}</span>
</template>
</el-table-column>
<el-table-column
prop="standStatusShow"
label="文本状态"
width="110"
>
<template slot-scope="scope">
<span>{{scope.row.standStatusShow}}</span>
</template>
</el-table-column>
</el-table>
</div>
<pagination :page="QYBZform.page" :total="QYBZform.total" @pageChange="QYBZpageChange" @pageSizeChange="QYBZpageSizeChange"></pagination>
<loading :loading="QYBZShow">数据加载中</loading>
</div>
</div>
<div class="demo-drawer-footer">
<el-button size="mini" @click="QYBZcloseDrawer">取消</el-button>
<el-button type="primary" size="mini" @click="QYBZenterDrawer">导入</el-button>
</div>
</div>
</el-drawer>
<el-drawer
title="选择体系结构"
:visible.sync="TXJGmodal"
size="900px"
custom-class="demo-drawer"
>
<div class="standardForComments">
<div class="content" style="height: 100%;">
<el-tree
v-if="TXJGmodal"
ref="TXJGTree"
:data="standSystemOptions"
show-checkbox
node-key="id"
default-expand-all
check-strictly
:default-checked-keys="TXJGList"
:props="defaultProps">
</el-tree>
</div>
<div class="demo-drawer-footer">
<el-button size="mini" @click="TXJGcloseDrawer">取消</el-button>
<el-button type="primary" size="mini" @click="TXJGenterDrawer">确定</el-button>
</div>
</div>
</el-drawer>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import CustomInputForAllStandards from '@/components/CustomFormComponents/InputForAllStandards'
import CustomInputForAllStandards2 from '@/components/CustomFormComponents/InputForAllStandards2'
export default { export default {
name: "enterpriseStandardPlan", name: "enterpriseStandardPlan",
components: {}, components: {
CustomInputForAllStandards,
CustomInputForAllStandards2
},
data() { data() {
return { return {
BZList: [],
TXJGList: [],
TXJGmodal: false,
standSystemOptions: [],
defaultProps: {
children: 'children',
label: 'menuName'
},
QYBZShow: false,
QYBZList: [],
modalshowflagZRBM: false, modalshowflagZRBM: false,
nodeListZRBM: [], nodeListZRBM: [],
QYBZformSelect: [],
QYBZmodal: false,
QYBZform: {
page: 1,
pageSzie: this.$store.getters.userInfo.configContent,
validFlag: '0',
userId: this.$store.getters.userInfo.userId,
standCode: '',
standName: '',
total: 0,
},
QCDWmodal: false, QCDWmodal: false,
QCDWValue: [], QCDWValue: [],
QCDWList: [], QCDWList: [],
@@ -390,6 +591,16 @@
DrawerType: '', DrawerType: '',
ids: [], ids: [],
addForm: { addForm: {
esMatingRelations: '',
technologic: '',
useLevel: '',
isRelate: '',
esStandRelations: '',
area: '',
tsJson: '',
tsJsonName: '',
rqbJson: '',
rqbName: '',
unit: '', // unit: '', //
unitName: '', unitName: '',
esName: '', // esName: '', //
@@ -450,6 +661,83 @@
props: {}, props: {},
watch: {}, watch: {},
methods: { methods: {
TXJGcloseDrawer () {
this.TXJGmodal = false
},
TXJGenterDrawer () {
let list = this.$refs.TXJGTree.getCheckedNodes()
let id = ''
let name = ''
list.map(item => {
if (id.length > 0) {
id += ','
id += item.id
name += ','
name += item.menuName
} else {
id = item.id
name = item.menuName
}
})
this.addForm.tsJson = id
this.addForm.tsJsonName = name
this.TXJGmodal = false
},
choiceTXJG (id) {
if (id) {
this.TXJGList = id.split(',')
} else {
this.TXJGList = []
}
this.TXJGmodal = true
},
QYBZcloseDrawer () {
this.clearQYBZ()
},
QYBZenterDrawer () {
if (this.QYBZformSelect.length > 1) {
this.$message.warning('请选择一条标准')
} else if (this.QYBZformSelect.length < 1){
this.$message.warning('请选择要带入的标准')
} else {
this.addForm.rqbJson = this.QYBZformSelect[0].id
this.addForm.rqbName = this.QYBZformSelect[0].standName
this.clearQYBZ()
this.QYBZmodal = false
}
},
handleSelectionQYBZ (val) {
this.QYBZformSelect = val
},
QYBZpageChange (page) {
this.QYBZform.page = page
this.QYBZget()
},
QYBZpageSizeChange (pageSize) {
this.QYBZform.pageSize = pageSize
this.QYBZget()
},
QYBZget () {
this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage', this.QYBZform, {
_this: this, loading: 'QYBZShow'
}, res => {
this.QYBZList = res.data.list
this.QYBZform.total = res.data.count
}, e => {
})
},
clearQYBZ () {
this.QYBZform = {
page: 1,
standCode: '',
standName: '',
}
},
choiceQYBZ (id) {
this.QYBZformSelect = []
this.QYBZget()
this.QYBZmodal = true
},
drawerCheckZRBM (data) { drawerCheckZRBM (data) {
let list = '' let list = ''
let listName = '' let listName = ''
@@ -718,6 +1006,9 @@
_this: this _this: this
}, res => { }, res => {
this.QCDWList = res.data.QCDW // this.QCDWList = res.data.QCDW //
this.standSystemOptions = res.data.TXLBBUSS //
this.BZList = res.data.ENERGYTYPES
console.log(this.BZList);
}, e => { }, e => {
}) })
}, },
@@ -730,6 +1021,44 @@
#enterpriseStandardPlan { #enterpriseStandardPlan {
height: 100%; height: 100%;
background: #fff; background: #fff;
.classDisplay {
/deep/.el-form-item__content {
width: calc(~'100% - 180px');
.el-input__inner {
width: calc(~'100% - 80px');
}
}
}
.standardForComments {
height: calc(~'100% - 56px');
background: #fff;
flex-direction: column;
.action-bar {
margin-bottom: 5px;
padding: 0;
}
.content {
flex: auto;
overflow: hidden;
display: flex;
flex-direction: column;
.table-wrap {
flex: auto;
overflow: hidden;
position: relative;
}
}
& > .pagination {
position: static;
/deep/ .pagination-slot {
padding: 0;
}
}
}
/deep/.table-wrap { /deep/.table-wrap {
.el-table__fixed { .el-table__fixed {
height: calc(~'100% - 20px') !important; height: calc(~'100% - 20px') !important;
@@ -738,6 +1067,7 @@
.add-form-item { .add-form-item {
/deep/.el-form-item__content { /deep/.el-form-item__content {
width: calc(~'100% - 180px'); width: calc(~'100% - 180px');
height: 50px;
} }
} }
display: flex; display: flex;
@@ -68,16 +68,16 @@
<div class="search-area"> <div class="search-area">
<div class="left"> <div class="left">
<el-form :modal="standCommonlySearch" inline class="label-input-form" @keyup.enter.native="searchBtnClick(standCommonlySearch)"> <el-form :modal="standCommonlySearch" inline class="label-input-form" @keyup.enter.native="searchBtnClick(standCommonlySearch)">
<!-- <el-form-item label="标准类别" class="search-item">--> <!-- <el-form-item label="标准类别" class="search-item">
<!-- <el-select v-model="standCommonlySearch.standSort" filterable>--> <el-select v-model="standCommonlySearch.standSort" filterable>
<!-- <el-option--> <el-option
<!-- v-for="item in standSortOptions"--> v-for="item in standSortOptions"
<!-- :key="item.value"--> :key="item.value"
<!-- :value="item.value"--> :value="item.value"
<!-- :label="item.label"--> :label="item.label"
<!-- ></el-option>--> ></el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<el-form-item label="标准号" class="search-item search-item-last"> <el-form-item label="标准号" class="search-item search-item-last">
<el-input v-model="standCommonlySearch.standNumber" <el-input v-model="standCommonlySearch.standNumber"
placeholder="请输入标准号" placeholder="请输入标准号"
@@ -395,66 +395,66 @@
<el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" @click="exportTestItem">提交</el-button> <el-button type="primary" size="mini" class="common-button-primary" icon="el-icon-check" @click="exportTestItem">提交</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- <table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)"--> <!-- <table-tools-bar v-model="isAdvancedSearch" @search="getDomesticStandardTableBtn(sarStandardsSearch)"
<!-- @reset="clearAllSearch('sarStandardsSearch')">--> @reset="clearAllSearch('sarStandardsSearch')">
<!-- <div slot="content">--> <div slot="content">
<!-- <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">--> <el-form :model="sarStandardsSearch" :inline="true" class="label-input-form table-lattice" style="display: flex;flex-wrap: wrap">
<!-- &lt;!&ndash; 标准号&ndash;&gt;--> &lt;!&ndash; 标准号&ndash;&gt;
<!-- <el-form-item :label="$t('m.standardNo')" class="serch-form-item">--> <el-form-item :label="$t('m.standardNo')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"--> <el-input v-model="sarStandardsSearch.standNumber" :placeholder="$t('m.lookUpByStandardNumber')" clearable :maxlength="100"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 标准名称&ndash;&gt;--> &lt;!&ndash; 标准名称&ndash;&gt;
<!-- <el-form-item :label="$t('m.standName')" class="serch-form-item">--> <el-form-item :label="$t('m.standName')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"--> <el-input v-model="sarStandardsSearch.standName" :placeholder="$t('m.searchByStandardName')" clearable :maxlength="500"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 标准类别&ndash;&gt;--> &lt;!&ndash; 标准类别&ndash;&gt;
<!-- <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">--> <el-form-item :label="$t('m.standardCategory')" class="serch-form-item">
<!-- <search-select--> <search-select
<!-- v-model="sarStandardsSearch.standSort"--> v-model="sarStandardsSearch.standSort"
<!-- :placeholder="$t('m.standardCategoryTips')"--> :placeholder="$t('m.standardCategoryTips')"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"
<!-- :options="standSortOptions"--> :options="standSortOptions"
<!-- clearable/>--> clearable/>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 文本状态&ndash;&gt;--> &lt;!&ndash; 文本状态&ndash;&gt;
<!-- <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">--> <el-form-item :label="$t('m.standStateShow')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable--> <el-select v-model="sarStandardsSearch.textStatus" :placeholder="$t('m.lookupByStandardStatus')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in standStateOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 代替标准号&ndash;&gt;--> &lt;!&ndash; 代替标准号&ndash;&gt;
<!-- <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">--> <el-form-item :label="$t('m.substituteStandardNumber')" class="serch-form-item">
<!-- <el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"--> <el-input v-model="sarStandardsSearch.dtbjh" :placeholder="$t('m.lookUpByAlternativeCriteria')" clearable :maxlength="100"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 适用车型&ndash;&gt;--> &lt;!&ndash; 适用车型&ndash;&gt;
<!-- <el-form-item :label="$t('m.applicableModels')" class="serch-form-item">--> <el-form-item :label="$t('m.applicableModels')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.cllx" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable--> <el-select v-model="sarStandardsSearch.cllx" :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 适用产品线新增字段&ndash;&gt;--> &lt;!&ndash; 适用产品线新增字段&ndash;&gt;
<!-- <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">--> <el-form-item :label="$t('m.applicableProductLine')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.nylx" :placeholder="$t('m.searchByApplicableProductLine')" clearable--> <el-select v-model="sarStandardsSearch.nylx" :placeholder="$t('m.searchByApplicableProductLine')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in categoryOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>--> <el-option v-for="opt in categoryOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- &lt;!&ndash; 关联模块新增字段&ndash;&gt;--> &lt;!&ndash; 关联模块新增字段&ndash;&gt;
<!-- <el-form-item :label="$t('m.associatedModule')" class="serch-form-item">--> <el-form-item :label="$t('m.associatedModule')" class="serch-form-item">
<!-- <el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable--> <el-select v-model="sarStandardsSearch.cycvppsbm" :placeholder="$t('m.SearchByAssociatedModule')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}--> <el-option v-for="opt in standNatureOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label}}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- </el-form>--> </el-form>
<!-- </div>--> </div>
<!-- </table-tools-bar>--> </table-tools-bar>-->
<!-- 高级筛选--> <!-- 高级筛选-->
<el-drawer <el-drawer
title="高级搜索" title="高级搜索"
@@ -617,39 +617,37 @@
<!-- 适用车型--> <!-- 适用车型-->
<template> <template>
<custom-select-array <custom-select-array
:key="applyArcticOptions.options"
:config="applyArcticOptions" :config="applyArcticOptions"
style="margin-left: -14px" style="margin-left: -14px"
v-model="sarStandardsSearch['applyArctic']" v-model="sarStandardsSearch['applyArctic']"
></custom-select-array> ></custom-select-array>
</template> </template>
<!-- <el-form-item :label="$t('m.applicableModels')" class="add-form-item form-item-disabled">--> <!-- <el-form-item :label="$t('m.applicableModels')" class="add-form-item form-item-disabled">
<!-- <el-select v-model="sarStandardsSearch.applyArctic"--> <el-select v-model="sarStandardsSearch.applyArctic"
<!-- :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable--> :placeholder="$t('m.searchAccordingToThApplicableModel')" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value"--> <el-option v-for="opt in applyArcticOptions" :value="opt.value === undefined ? '' :opt.value"
<!-- :key="opt.value" :label="opt.label">{{ opt.label }}--> :key="opt.value" :label="opt.label">{{ opt.label }}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 适用产品线新增字段--> <!-- 适用产品线新增字段-->
<template> <template>
<custom-select-array <custom-select-array
:key="sycpxOptions.options"
:config="sycpxOptions" :config="sycpxOptions"
style="margin-left: -14px" style="margin-left: -14px"
v-model="advanceSearchMapping['SYCPX']" v-model="advanceSearchMapping['SYCPX']"
></custom-select-array> ></custom-select-array>
</template> </template>
<!-- <el-form-item :label="$t('m.applicableProductLine')" class="add-form-item form-item-disabled">--> <!-- <el-form-item :label="$t('m.applicableProductLine')" class="add-form-item form-item-disabled">
<!-- <el-select v-model="advanceSearchMapping.SYCPX" :placeholder="$t('m.searchByApplicableProductLine')"--> <el-select v-model="advanceSearchMapping.SYCPX" :placeholder="$t('m.searchByApplicableProductLine')"
<!-- clearable--> clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"--> <el-option v-for="opt in sycpxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<!-- :label="opt.label">{{ opt.label }}--> :label="opt.label">{{ opt.label }}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 体系类别--> <!-- 体系类别-->
<el-form-item label="体系类别" class="add-form-item form-item-disabled"> <el-form-item label="体系类别" class="add-form-item form-item-disabled">
<el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable <el-select v-model="advanceSearchMapping.TXLB" placeholder="根据体系类别查找" clearable
@@ -672,21 +670,21 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</template> </template>
<!-- <template>--> <!-- <template>
<!-- <custom-select-array--> <custom-select-array
<!-- :key="zrgcsOptions.options"--> :key="zrgcsOptions.options"
<!-- :config="zrgcsOptions"--> :config="zrgcsOptions"
<!-- v-model="advanceSearchMapping['ZRGCS']"--> v-model="advanceSearchMapping['ZRGCS']"
<!-- ></custom-select-array>--> ></custom-select-array>
<!-- </template>--> </template>
<!-- <el-form-item label="责任工程师" class="add-form-item form-item-disabled">--> <el-form-item label="责任工程师" class="add-form-item form-item-disabled">
<!-- <el-select v-model="advanceSearchMapping.ZRGCS" placeholder="根据责任工程师查找" clearable filterable--> <el-select v-model="advanceSearchMapping.ZRGCS" placeholder="根据责任工程师查找" clearable filterable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"--> <el-option v-for="opt in zrgcsOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<!-- :label="opt.label">{{ opt.label }}--> :label="opt.label">{{ opt.label }}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 关联模块--乘用车vpps中文名称--> <!-- 关联模块--乘用车vpps中文名称-->
<el-form-item title="关联模块--乘用车VPPS中文名称" label="关联模块--乘用车VPPS中文名称" prop="standNumber" class="add-form-item form-item-disabled"> <el-form-item title="关联模块--乘用车VPPS中文名称" label="关联模块--乘用车VPPS中文名称" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSCN" clearable <el-input v-model="advanceSearchMapping.CYCVPPSCN" clearable
@@ -699,43 +697,46 @@
placeholder="关联模块--卡车VPPS中文名称" placeholder="关联模块--卡车VPPS中文名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 模块结构单元名称 -->
<el-form-item title="模块结构单元名称" label="模块结构单元名称" prop="dymc" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.DYMC" clearable
placeholder="模块结构单元名称"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<!-- 能源类型--> <!-- 能源类型-->
<template> <template>
<custom-select-array <custom-select-array
:key="nylxOptions.options"
:config="nylxOptions" :config="nylxOptions"
style="margin-left: -14px" style="margin-left: -14px"
v-model="advanceSearchMapping['NYLX']" v-model="advanceSearchMapping['NYLX']"
></custom-select-array> ></custom-select-array>
</template> </template>
<!-- <el-form-item label="能源类型" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="能源类型" class="add-form-item form-item-disabled">
<!-- <el-select v-model="advanceSearchMapping.NYLX" placeholder="请选择能源类型" clearable--> <el-select v-model="advanceSearchMapping.NYLX" placeholder="请选择能源类型" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"--> <el-option v-for="opt in nylxOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<!-- :label="opt.label">{{ opt.label }}--> :label="opt.label">{{ opt.label }}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 适用认证--> <!-- 适用认证-->
<template> <template>
<custom-select-array <custom-select-array
:key="syrzOptions.options"
:config="syrzOptions" :config="syrzOptions"
style="margin-left: -14px" style="margin-left: -14px"
v-model="advanceSearchMapping['SYRZ']" v-model="advanceSearchMapping['SYRZ']"
></custom-select-array> ></custom-select-array>
</template> </template>
<!-- <el-form-item label="适用认证" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="适用认证" class="add-form-item form-item-disabled">
<!-- <el-select v-model="advanceSearchMapping.SYRZ" placeholder="根据适用认证查找" clearable--> <el-select v-model="advanceSearchMapping.SYRZ" placeholder="根据适用认证查找" clearable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in syrzOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"--> <el-option v-for="opt in syrzOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<!-- :label="opt.label">{{ opt.label }}--> :label="opt.label">{{ opt.label }}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 责任部门--> <!-- 责任部门-->
<template> <template>
<el-form-item <el-form-item
@@ -745,7 +746,6 @@
> >
<template slot="label">责任部门</template> <template slot="label">责任部门</template>
<el-input <el-input
:key="zrbmOptions.options"
:config="zrbmOptions" :config="zrbmOptions"
clearable clearable
v-model="advanceSearchMapping['ZRBM']" v-model="advanceSearchMapping['ZRBM']"
@@ -754,21 +754,21 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
</template> </template>
<!-- <template>--> <!-- <template>
<!-- <custom-select-array--> <custom-select-array
<!-- :key="zrbmOptions.options"--> :key="zrbmOptions.options"
<!-- :config="zrbmOptions"--> :config="zrbmOptions"
<!-- v-model="advanceSearchMapping['ZRBM']"--> v-model="advanceSearchMapping['ZRBM']"
<!-- ></custom-select-array>--> ></custom-select-array>
<!-- </template>--> </template>
<!-- <el-form-item label="责任部门" class="add-form-item form-item-disabled">--> <el-form-item label="责任部门" class="add-form-item form-item-disabled">
<!-- <el-select v-model="advanceSearchMapping.ZRBM" placeholder="根据责任部门查找" clearable filterable--> <el-select v-model="advanceSearchMapping.ZRBM" placeholder="根据责任部门查找" clearable filterable
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)">
<!-- <el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"--> <el-option v-for="opt in zrbmOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value"
<!-- :label="opt.label">{{ opt.label }}--> :label="opt.label">{{ opt.label }}
<!-- </el-option>--> </el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 关联模块--乘用车VPPS编码--> <!-- 关联模块--乘用车VPPS编码-->
<el-form-item title="关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled"> <el-form-item title="关联模块--乘用车VPPS编码" label=" 关联模块--乘用车VPPS编码" prop="standNumber" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.CYCVPPSBM" clearable <el-input v-model="advanceSearchMapping.CYCVPPSBM" clearable
@@ -781,6 +781,12 @@
placeholder="关联模块--卡车VPPS编码" placeholder="关联模块--卡车VPPS编码"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item> </el-form-item>
<!-- 模块结构单元变型号 -->
<el-form-item title="模块结构单元变型号" label="模块结构单元变型号" prop="dybxh" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.DYBXH" clearable
placeholder="模块结构单元变型号"
@keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -805,10 +811,10 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<!-- 被代替标准号--> <!-- 被代替标准号-->
<!-- <el-form-item label="被代替标准号" class="add-form-item form-item-disabled">--> <!-- <el-form-item label="被代替标准号" class="add-form-item form-item-disabled">
<!-- <el-input v-model="sarStandardsSearch.replacedStandNum" clearable placeholder="根据被代替标准号查找"--> <el-input v-model="sarStandardsSearch.replacedStandNum" clearable placeholder="根据被代替标准号查找"
<!-- @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>--> @keyup.enter.native="getDomesticStandardTableBtn(sarStandardsSearch)"></el-input>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 被引用标准--> <!-- 被引用标准-->
<el-form-item label="被引用标准" class="add-form-item form-item-disabled"> <el-form-item label="被引用标准" class="add-form-item form-item-disabled">
<el-input v-model="advanceSearchMapping.BYYBJ" clearable <el-input v-model="advanceSearchMapping.BYYBJ" clearable
@@ -852,31 +858,31 @@
:rules="sarStandardsInfoRules" :rules="sarStandardsInfoRules"
class="label-input-form" class="label-input-form"
> >
<!-- <el-form-item--> <!-- <el-form-item
<!-- prop="isRelateAccess"--> prop="isRelateAccess"
<!-- label-width="150px"--> label-width="150px"
<!-- class="add-form-item"--> class="add-form-item"
<!-- title="A类必填项多,仅A类可纳入法规清单。"--> title="A类必填项多,仅A类可纳入法规清单。"
<!-- >--> >
<!-- <template slot="label">重要度<i class="el-icon-warning-outline"></i></template>--> <template slot="label">重要度<i class="el-icon-warning-outline"></i></template>
<!-- <el-select v-model="sarStandardsInfoEO.isRelateAccess" @change="isRegulationsChange">--> <el-select v-model="sarStandardsInfoEO.isRelateAccess" @change="isRegulationsChange">
<!-- <el-option value="1" label="A" key="1"></el-option>--> <el-option value="1" label="A" key="1"></el-option>
<!-- <el-option value="0" label="B" key="0"></el-option>--> <el-option value="0" label="B" key="0"></el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="适用区域" prop="country" label-width="150px" class="add-form-item form-item-disabled">--> <el-form-item label="适用区域" prop="country" label-width="150px" class="add-form-item form-item-disabled">
<!-- <el-select v-model="sarStandardsInfoEO.country" disabled >--> <el-select v-model="sarStandardsInfoEO.country" disabled >
<!-- <el-option v-for="opt in countryOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label }}</el-option>--> <el-option v-for="opt in countryOptions" :value="opt.value === undefined ? '' :opt.value" :key="opt.value" :label="opt.label">{{ opt.label }}</el-option>
<!-- </el-select>--> </el-select>
<!-- </el-form-item>--> </el-form-item>
<!-- <el-form-item label="文本说明" prop="synopsis" label-width="150px" class="add-form-item">--> <el-form-item label="文本说明" prop="synopsis" label-width="150px" class="add-form-item">
<!-- <el-input--> <el-input
<!-- type="text"--> type="text"
<!-- v-model="sarStandardsInfoEO.synopsis"--> v-model="sarStandardsInfoEO.synopsis"
<!-- placeholder="请输入"--> placeholder="请输入"
<!-- clearable--> clearable
<!-- ></el-input>--> ></el-input>
<!-- </el-form-item>--> </el-form-item>-->
<!-- 动态数据--> <!-- 动态数据-->
<template v-for="(displayLocation, index) in dynamicFormField"> <template v-for="(displayLocation, index) in dynamicFormField">
<el-col :span="24" :key="index"> <el-col :span="24" :key="index">
@@ -916,7 +922,6 @@
<template v-for="field in displayLocation.child"> <template v-for="field in displayLocation.child">
<template v-if="field.attrType === 'FILE' && field.attrField === 'FBGBJBD'"> <template v-if="field.attrType === 'FILE' && field.attrField === 'FBGBJBD'">
<custom-file <custom-file
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -992,22 +997,22 @@
<el-option value="2" label="否" key="2"></el-option> <el-option value="2" label="否" key="2"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<!-- <el-form-item--> <!-- <el-form-item
<!-- prop="standSystem"--> prop="standSystem"
<!-- label-width="150px"--> label-width="150px"
<!-- class="add-form-item"--> class="add-form-item"
<!-- >--> >
<!-- <template slot="label">标准体系</template>--> <template slot="label">标准体系</template>
<!-- <tree-select--> <tree-select
<!-- :data="standSystemOptions"--> :data="standSystemOptions"
<!-- :defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"--> :defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys"
<!-- :nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>--> :nodeKey="nodeKey" @popoverHide="popoverHide"></tree-select>
<!-- </el-form-item>--> </el-form-item>-->
</template> </template>
<template v-for="field in displayLocation.child"> <template v-for="field in displayLocation.child">
<template v-if="field.attrField === 'EOPSSRQ'"> <template v-if="field.attrField === 'EOPSSRQ'">
<custom-eop-date-pick <custom-eop-date-pick
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1015,7 +1020,7 @@
</template> </template>
<template v-else-if="field.attrField === 'SVPPS'"> <template v-else-if="field.attrField === 'SVPPS'">
<custom-SVPPS <custom-SVPPS
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1024,7 +1029,7 @@
<template v-else-if="field.attrField === 'XCXSSRQ' || field.attrField === 'ZCCSSRQ' || field.attrField === 'SSRQ'"> <template v-else-if="field.attrField === 'XCXSSRQ' || field.attrField === 'ZCCSSRQ' || field.attrField === 'SSRQ'">
<custom-date-pick-group <custom-date-pick-group
v-if="field.attrField !== 'ZCCSSRQGJ' && field.attrField !== 'XCXSSRQGJ' && field.attrField !== 'SSRQGJ' " v-if="field.attrField !== 'ZCCSSRQGJ' && field.attrField !== 'XCXSSRQGJ' && field.attrField !== 'SSRQGJ' "
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1032,7 +1037,7 @@
</template> </template>
<template v-else-if="field.attrType === 'DATE_PIC_OPTS'"> <template v-else-if="field.attrType === 'DATE_PIC_OPTS'">
<custom-date-pick-group <custom-date-pick-group
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1042,7 +1047,7 @@
<template v-else-if="field.attrType === 'INPUT_STR' && field.attrField !== 'XGLC' && field.attrField !== 'CHJL'"> <template v-else-if="field.attrType === 'INPUT_STR' && field.attrField !== 'XGLC' && field.attrField !== 'CHJL'">
<template v-if="field.attrField === 'DTBJH' || field.attrField === 'YYBJ' || field.attrField === 'BYYBJ' || field.attrField === 'CBBH' || field.attrField === 'DXBZ'"> <template v-if="field.attrField === 'DTBJH' || field.attrField === 'YYBJ' || field.attrField === 'BYYBJ' || field.attrField === 'CBBH' || field.attrField === 'DXBZ'">
<custom-input-for-standards <custom-input-for-standards
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1108,7 +1113,6 @@
</template> </template>
<template v-else> <template v-else>
<custom-input <custom-input
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1118,7 +1122,7 @@
</template> </template>
<template v-else-if="field.attrType === 'INPUT_NUM'"> <template v-else-if="field.attrType === 'INPUT_NUM'">
<custom-input-num <custom-input-num
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1126,7 +1130,7 @@
</template> </template>
<template v-else-if="field.attrType === 'DATE_PICKER'"> <template v-else-if="field.attrType === 'DATE_PICKER'">
<custom-date-pick <custom-date-pick
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:class="field.attrName === '在产车实施日期(国家)' || field.attrName === '新车型实施日期(国家)'|| field.attrName === '实施日期(国际)' ? 'classDisplay' : ''" :class="field.attrName === '在产车实施日期(国家)' || field.attrName === '新车型实施日期(国家)'|| field.attrName === '实施日期(国际)' ? 'classDisplay' : ''"
@@ -1136,7 +1140,7 @@
<!-- 发布稿的组件 --> <!-- 发布稿的组件 -->
<template v-else-if="field.attrType === 'FILE' && field.attrField !== 'FBGBJBD'"> <template v-else-if="field.attrType === 'FILE' && field.attrField !== 'FBGBJBD'">
<custom-file <custom-file
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1145,7 +1149,7 @@
</template> </template>
<template v-else-if="field.attrType === 'TEXTAREA'"> <template v-else-if="field.attrType === 'TEXTAREA'">
<custom-textarea <custom-textarea
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1153,7 +1157,7 @@
</template> </template>
<template v-else-if="field.attrType === 'SEL_OPTION'"> <template v-else-if="field.attrType === 'SEL_OPTION'">
<custom-select <custom-select
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1168,7 +1172,7 @@
> >
<template slot="label">责任部门</template> <template slot="label">责任部门</template>
<el-input <el-input
:key="field.attrField"
:config="field" :config="field"
clearable clearable
v-model="sarStandardsInfoEO['ZRBM']" v-model="sarStandardsInfoEO['ZRBM']"
@@ -1186,19 +1190,18 @@
<template slot="label">责任工程师</template> <template slot="label">责任工程师</template>
<el-input v-model="sarStandardsInfoEO['ZRGCS']" placeholder="选择责任工程师" @click.native="choiceZRRS('zrgcs', '选择责任工程师', sarStandardsInfoEO['ZRGCS'])"> <el-input v-model="sarStandardsInfoEO['ZRGCS']" placeholder="选择责任工程师" @click.native="choiceZRRS('zrgcs', '选择责任工程师', sarStandardsInfoEO['ZRGCS'])">
</el-input> </el-input>
<!-- <el-input--> <!-- <el-input
<!-- :key="field.attrField"--> :key="field.attrField"
<!-- :config="field"--> :config="field"
<!-- clearable--> clearable
<!-- v-model="sarStandardsInfoEO['ZRGCS']"--> v-model="sarStandardsInfoEO['ZRGCS']"
<!-- :disabled="formdisableflag" placeholder="选择责任工程师"--> :disabled="formdisableflag" placeholder="选择责任工程师"
<!-- @click.native="choiceRole('ZRGCSUserId', '责任工程师', sarStandardsInfoEO.ZRGCSUserId)">--> @click.native="choiceRole('ZRGCSUserId', '责任工程师', sarStandardsInfoEO.ZRGCSUserId)">
<!-- </el-input>--> </el-input>-->
</el-form-item> </el-form-item>
</template> </template>
<template v-else> <template v-else>
<custom-select-array <custom-select-array
:key="field.attrField"
:config="field" :config="field"
v-model="sarStandardsInfoEO[field.attrField]" v-model="sarStandardsInfoEO[field.attrField]"
:disabled="formdisableflag" :disabled="formdisableflag"
@@ -1856,17 +1859,19 @@ export default {
CYSD: '', // CYSD: '', //
GKDW: '', // GKDW: '', //
SSRQ: '',// SSRQ: '',//
XCXSSRQ: ''// XCXSSRQ: '',//
, ZCCSSRQ: ''// ZCCSSRQ: '',//
, QCDW: ''// QCDW: '',//
, NYLX: ''// NYLX: '',//
, SYRZ: ''// SYRZ: '',//
, ZRGCS: ''// ZRGCS: '',//
, CBBH: ''// CBBH: '',//
, CBCD: ''// CBCD: '',//
, YYBJ: ''// YYBJ: '',//
, BYYBJ: ''// BYYBJ: '',//
, TXLB: ''// TXLB: '',//
DYMC: '', //
DYBXH: '',//
}, },
// //
@@ -5099,6 +5104,8 @@ export default {
this.nylxOptions.options = res.data.NYLXCLASS;// this.nylxOptions.options = res.data.NYLXCLASS;//
this.syrzOptions.options = res.data.SYRZCLASS;// this.syrzOptions.options = res.data.SYRZCLASS;//
this.gkglbmOptions = res.data.GKGLBM;// this.gkglbmOptions = res.data.GKGLBM;//
//
this.dybxhOptions.options = res.data.DYBXH
this.getGzzOption() this.getGzzOption()
this.setMap(this.standStateOptions) this.setMap(this.standStateOptions)
@@ -122,12 +122,7 @@ export default {
}, },
watch: { watch: {
value (val) { value (val) {
if(val !== '' && val !== null) { this.tagList = val !== '' && val !== null ? val.split(',') : []
this.tagList = []
} else {
this.tagList = val.split(',')
}
// this.tagList = val !== '' && val !== null ? val.split(',') : []
}, },
tagList: { tagList: {
handler (val) { handler (val) {
@@ -132,11 +132,6 @@
label="责任部门" label="责任部门"
width="180px" width="180px"
> >
<template slot-scope="scope">
<span style="margin-left: 10px">
{{ zrbmMap[scope.row.zrbm] }}
</span>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
show-overflow-tooltip show-overflow-tooltip
@@ -507,7 +502,6 @@ export default {
standList1: [],// standList1: [],//
id: '',//. id: '',//.
saveExportType: '',// saveExportType: '',//
zrbmMap: {},
textStatusMap: {} // idname textStatusMap: {} // idname
} }
}, },
@@ -975,7 +969,6 @@ export default {
}, res => { }, res => {
this.energyKindOptions = res.data.ENERGYTYPES // this.energyKindOptions = res.data.ENERGYTYPES //
this.standSortOptions = res.data.STANDCLASSIFY // this.standSortOptions = res.data.STANDCLASSIFY //
this.setMap(this.zrbmMap, res.data.ZRBMCLASS)
this.setMap(this.textStatusMap, res.data.WBZTCLASS) this.setMap(this.textStatusMap, res.data.WBZTCLASS)
this.showLocalProductData(this.getLocalPro) this.showLocalProductData(this.getLocalPro)
}, e => { }, e => {
+20
View File
@@ -2513,6 +2513,16 @@ const routes = [
title: '未符合项整改流程' title: '未符合项整改流程'
} }
}, },
{
path: '/phoneCywbbzzxdStep2',
name: 'phoneCywbbzzxdStep2',
component: () => import('@/pages/processCenter/pages/phone/cywbbzzxd/step2.vue'),
meta: {
isBoolean: true,
requireAuth: true,
title: '参与外部标准制修订信息提报流程'
}
},
{ {
path: '/phoneCywbbzzxdStep4', path: '/phoneCywbbzzxdStep4',
name: 'phoneCywbbzzxdStep4', name: 'phoneCywbbzzxdStep4',
@@ -2583,6 +2593,16 @@ const routes = [
title: '企标制修订计划管控流程' title: '企标制修订计划管控流程'
} }
}, },
{
path: '/phoneQbfsStep2',
name: 'phoneQbfsStep2',
component: () => import('@/pages/processCenter/pages/phone/qbfs/step2.vue'),
meta: {
isBoolean: true,
requireAuth: true,
title: '企标复审流程'
}
},
{ {
path: '/phoneQbfsStep4', path: '/phoneQbfsStep4',
name: 'phoneQbfsStep4', name: 'phoneQbfsStep4',