diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index cde461d6c..9e01dc100 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -680,17 +680,17 @@ v-model="form['sycpx']" > - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - +
基础信息
审批历史
- +
@@ -34,46 +34,46 @@ - + @@ -86,38 +86,38 @@ - + + v-model="form.issueTime" + type="date" + placeholder="请选择标准发布日期"> @@ -130,21 +130,21 @@ + :key="key" + :multiple=false + :lazy=false + :modalShowFlag="modalShowFlag1" + :drawerTitle="drawerTitle" + width="800" + :data="standSystemOptions" + :defaultProps="defaultProps" :checkedKeys="defaultCheckedKeys" + :nodeKey="nodeKey" @popoverHide="popoverHide" @popoverHideCancel="popoverHideCancel"> @@ -157,65 +157,65 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + :config="{attrName:'新车型实施日期(标准文本)',attrField:'xcxssrq'}" + v-model="form.xcxssrq" + :disabled="false"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
@@ -225,165 +225,167 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('xgd')">
@@ -391,22 +393,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('fbgbjbd')">
@@ -414,22 +418,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('ssg')">
@@ -437,22 +443,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('ca')">
@@ -460,22 +468,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('zbjbd')">
@@ -483,140 +493,140 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('kwj')">
@@ -624,22 +634,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('xdb')">
@@ -649,22 +661,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('jdwj')">
@@ -672,22 +686,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('bpg')">
@@ -695,22 +711,24 @@
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('zqyjg')">
@@ -726,136 +744,136 @@ - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + width="800" + :key="key1" + :lazy=true + :multiple=true + :check-strictly=true + :show-checkBox=true + :modalShowFlag="modalShowFlag2" + :drawerTitle="drawerTitle" + :url="url" + :type="'car'" + :urlChild="urlChild" + :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1" + :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs" @popoverHideCancel="popoverHideBusVsCancel"> + width="800" + :key="key2" + :lazy=true + :multiple=true + :check-strictly=true + :show-checkBox=true + :modalShowFlag="modalShowFlag3" + :drawerTitle="drawerTitle" + :url="url" + :type="'truck'" + :urlChild="urlChild" + :defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2" + :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs" @popoverHideCancel="popoverHideCarVsCancel"> + width="800" + :key="key3" + :lazy=true + :multiple=true + :check-strictly=true + :show-checkBox=true + :modalShowFlag="modalShowFlag4" + :drawerTitle="drawerTitle" + :url="url" + :urlChild="urlChild" + :defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3" + :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel" @popoverHideCancel="popoverHideModelCancel"> - + - - - + + + @@ -864,79 +882,100 @@ - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - + + + + + + + + + + + @@ -946,22 +985,22 @@ @@ -976,48 +1015,51 @@ {{'手动查找'}} + type="primary" + class="common-button-primary" + size="mini" + style="position:absolute;top: 10px;right: 0;" + @click="selectLaws('dtbjh'),config.attrName = '代替标准号'" + >{{ '手动查找' }} + - - - - - - - + + + + + + +
-
{{ item.name }}
+
+ {{ item.name }} +
+ type="primary" + class="common-button-primary" + size="mini" + style="margin-left: 10px; margin-top: 11px; float: right;" + @click="fileUpload('glwj')">
@@ -1027,67 +1069,70 @@ {{'手动查找'}} + type="primary" + class="common-button-primary" + size="mini" + style="position:absolute;top: 10px;right: 0;" + @click="selectLaws('bfbdtbzh'),config.attrName = '部分代替标准号'" + >{{ '手动查找' }} + {{'手动查找'}} + type="primary" + class="common-button-primary" + size="mini" + style="position:absolute;top: 10px;right: 0;" + @click="selectLaws('cbbh'),config.attrName = '采标编号'" + >{{ '手动查找' }} + {{'手动查找'}} + type="primary" + class="common-button-primary" + size="mini" + style="position:absolute;top: 10px;right: 0;" + @click="selectLaws('yybj'),config.attrName = '引用标准'" + >{{ '手动查找' }} + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +
@@ -1097,16 +1142,16 @@
- - - - + + + + + type="textarea" + :rows="3" + resize="none" + placeholder="请输入意见" + v-model="commentText">
@@ -1129,7 +1174,8 @@

责任人

-
+ +
@@ -1162,91 +1208,91 @@
+ prop="createTime" + label="创建时间" + sortable="custom" + align="center"> + prop="endTime" + label="完成时间" + align="center"> + prop="comment" + label="流程信息" + align="center"> + prop="completeFlag" + label="状态" + align="center"> 流程列表加载中
- +
@@ -1255,54 +1301,54 @@
+ v-model="replaceLawsNumForm.standType" + placeholder="请选择标准来源" + @change="dataSourceChange"> + v-model="replaceLawsNumForm.standNumber" + placeholder="根据标准编号查找" + clearable + :maxlength="100"> + v-model="replaceLawsNumForm.standName" + placeholder="根据标准名称查找" + clearable + :maxlength="100"> + size="mini" + type="primary" + class="common-button-primary" + @click="getReplaceLawsNumRowFirst"> 查询 + class="common-button-default" + size="mini" + type="default" + @click="getResetLawsNumRow"> 清空 @@ -1310,72 +1356,80 @@
+ @selection-change="selectReplaceStandNumRowChange"> + type="selection" + width="55" + align="center"> + label="标准编号"> + prop="standName" + label="标准名称"> - + prop="issueTime" + label="发布日期" + width="130"> + + prop="textStatus" + label="文本状态" + width="130"> - {{$t('m.dataAcquisition')}} + {{ $t('m.dataAcquisition') }} + style="position: relative;" + :page="replacePage" + :total="replaceTotal" + @pageChange="pageChangeReplace" + @pageSizeChange="pageSizeChangeReplace">
@@ -1411,7 +1465,7 @@ export default { TreeSelect, TreeSelectNew }, - data () { + data() { return { modalShowRoleFlag: false, fileList: [], @@ -1426,14 +1480,14 @@ export default { kwjFileList: [], xdbFileList: [], glwjFileList: [], - textStatus:'',//文本状态 + textStatus: '',//文本状态 textStatusMap: {}, // 文本状态id与name对应 - countryArr:'', - activeName:'1', + countryArr: '', + activeName: '1', // 当前流程类型(1待办/2已办) processType: 1, detailData: [], - userId:this.$store.getters.userInfo.userId, + userId: this.$store.getters.userInfo.userId, taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, approvalOpinion: '', // 通过/驳回 @@ -1459,10 +1513,10 @@ export default { defaultCheckedKeys: [], nodeKeyCode: 'code', nodeKeyModel: 'model', - key:1, - key1:2, - key2:3, - key3:4, + key: 1, + key1: 2, + key2: 3, + key3: 4, defaultCheckedKeys1: [], defaultCheckedKeys2: [], defaultCheckedKeys3: [], @@ -1470,15 +1524,15 @@ export default { modalShowFlag2: false, // drawer开关 modalShowFlag3: false, // drawer开关 modalShowFlag4: false, // drawer开关 - url:'', - urlChild:'', + url: '', + urlChild: '', drawerTitle: '', //drawer标题 - treeStatus:false, + treeStatus: false, fileUrl: 'api/att/attFile/upload', fileMadel: false, fileType: '', config: { - attrName : '', + attrName: '', }, dataSource: false, replaceLawsNumModel: false, @@ -1504,34 +1558,34 @@ export default { selectedListRep: [], replaceLoading: true, replacePage: 1, - rules:{ - standSort: [ - { required: true, message: '请选择标准类别', trigger: 'change' } + rules: { + standSort: [ + {required: true, message: '请选择标准类别', trigger: 'change'} ], standNumber: [ - { required: true, message: '请输入标准编号', trigger: 'blur' }, - { min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' } + {required: true, message: '请输入标准编号', trigger: 'blur'}, + {min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'} ], standYear: [ - { required: true, message: '请输入标准年份'}, + {required: true, message: '请输入标准年份'}, // { type: 'number', message: '年标准年份必须为数字值'} ], standName: [ - { required: true, message: '请输入标准名称', trigger: 'blur' }, - { min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur' } + {required: true, message: '请输入标准名称', trigger: 'blur'}, + {min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'} ], - /* standEnName: [ - { required: false, message: '请输入标准英文名称', trigger: 'blur' }, - { min: 1, max: 500, message: '长度在 1 到 500 个字符', trigger: 'blur' } - ],*/ + /* standEnName: [ + { required: false, message: '请输入标准英文名称', trigger: 'blur' }, + { min: 1, max: 500, message: '长度在 1 到 500 个字符', trigger: 'blur' } + ],*/ /*standNature: [ { required: true, message: '请选择标准性质', trigger: 'change' } ],*/ textStatus: [ - { required: true, message: '请选择文本状态', trigger: 'change' } + {required: true, message: '请选择文本状态', trigger: 'change'} ], issueTime: [ - { required: false, message: '请选择标准发布日期', trigger: 'change' } + {required: false, message: '请选择标准发布日期', trigger: 'change'} ], // qcdw: [ // { required: true, message: '请选择起草单位', trigger: 'change' } @@ -1591,7 +1645,7 @@ export default { qcdw: '', // 起草单位 wssmr: '', // 我司署名人 cysd: '', // 我司参与深度 - cyzbpm:[],// 我司参与制标排名 + cyzbpm: [],// 我司参与制标排名 cllx: '', // 适用车型 nylx: '',// 能源类型 sycpx: '',// 适用产品线 @@ -1614,12 +1668,12 @@ export default { xglc: '', // 相关流程 chjl: '', // 参会记录 //流程信息 - prcNum:'', - commentText:'', - prcName:'', + prcNum: '', + commentText: '', + prcName: '', standType: '', }, // 标准信息 - countryOptions:[],//国家地区 + countryOptions: [],//国家地区 standSortOptions: [], // 标准类别 standNatureOptions: [], // 标准性质 standStateOptions: [], // 文本状态 @@ -1628,33 +1682,33 @@ export default { modelOptions: [], // 模块体系架构 applyArcticOptions: { attrName: '适用车型', - options:[] + options: [] }, // 适用车型 categoryOptions: { attrName: '能源类型', - options:[] + options: [] }, // 能源类型 gkglbmOptions: [], // 归口管理部门 cbcdOptions: [], // 采标程度 applyAuthOptions: { attrName: '适用认证', - options:[] + options: [] }, // 适用认证 cysdOptions: [], // 我司参与深度 - cyzbpmOptions:[], // 我司参与制标排名 + cyzbpmOptions: [], // 我司参与制标排名 wssmrOptions: [], // 我司署名人 qcdwOptions: [], // 起草单位 sycpxOptions: { attrName: '适用产品线', - options:[] + options: [] }, // 适用产品线 zrbmOptions: { attrName: '责任部门', - options:[] + options: [] }, // 责任部门 zrgcsOptions: { attrName: '责任工程师', - options:[] + options: [] }, // 责任工程师 txlbOptions: [], // 体系类别 data: [], // 标准列表数据 @@ -1665,17 +1719,17 @@ export default { user4: '', user5: '', // 流程路由信息 - prcNum : this.$route.query.prcNum, - prcName : this.$route.query.prcName, + prcNum: this.$route.query.prcNum, + prcName: this.$route.query.prcName, // 调整处理人抽屉状态 drawerModal: false, nodeList: [], - selectPeople:'', + selectPeople: '', nodeList2: [] } }, computed: { - listNoDataText () { + listNoDataText() { return this.processType === 1 ? '暂无待办流程' : '暂无已办流程' }, }, @@ -1715,43 +1769,43 @@ export default { // 文件预览 filePreview(item) { const attId = item.response.data.id - this.getBusStandFileByAttId(attId) - .then(res => { - console.log(res) - if(res){ - const editFileInfo = res - console.log(editFileInfo) - if(editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG'){ - window.open('book://ssreader/e0?url='+editFileInfo.downLoadUrl) - }else { - const nowTime = new Date().getTime() - // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); - window.open(onlyOfficeUrl+'/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime+'&filePath='+editFileInfo.filePath+'&fileName='+editFileInfo.fileName) - } - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) - } - // switch (res.convertState) { - // case 'ERROR': - // this.$message.warning('文档转换失败') - // break - // case 'LODING': - // this.$message.info('文档转换中,请稍后查看') - // break - // case 'SUCCESS': - // const { convertFileInfo } = res - // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + convertFileInfo.id)) - // break - // } - }).catch(e => { - console.log(e) - this.$message.warning('文件不存在,预览失败') - }) + this.getBusStandFileByAttId(attId) + .then(res => { + console.log(res) + if (res) { + const editFileInfo = res + console.log(editFileInfo) + if (editFileInfo.fileSuffix === 'pdg' || editFileInfo.fileSuffix === 'PDG') { + window.open('book://ssreader/e0?url=' + editFileInfo.downLoadUrl) + } else { + const nowTime = new Date().getTime() + // window.open('http://127.0.0.1:8012/onlinePreview?url='+encodeURIComponent(Base64.encode(editFileInfo.downLoadUrl))); + window.open(onlyOfficeUrl + '/onlyOffice?oldFileName=' + editFileInfo.oldFileName + '&fileType=' + editFileInfo.fileSuffix + '&attId=' + editFileInfo.id + '&fileUrl=' + editFileInfo.downLoadUrl + '&key=' + editFileInfo.id + nowTime + '&filePath=' + editFileInfo.filePath + '&fileName=' + editFileInfo.fileName) + } + // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + editFileInfo.id)) + } + // switch (res.convertState) { + // case 'ERROR': + // this.$message.warning('文档转换失败') + // break + // case 'LODING': + // this.$message.info('文档转换中,请稍后查看') + // break + // case 'SUCCESS': + // const { convertFileInfo } = res + // window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + convertFileInfo.id)) + // break + // } + }).catch(e => { + console.log(e) + this.$message.warning('文件不存在,预览失败') + }) }, - checkedRole (data) { + checkedRole(data) { this.assigneeNewLoading = true changeAssigneeNew({ taskId: this.$route.query.taskIds, // 任务id - userId:this.$store.getters.userInfo.userId, // 委托人 + userId: this.$store.getters.userInfo.userId, // 委托人 assignee: data[0].id, // 被委托人 pId: this.$route.query.prcId, // 流程实例 }).then(res => { @@ -1761,17 +1815,17 @@ export default { this.$message.success('调整成功') this.processNum() this.queryProcess() - this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) + this.$router.push({path: '/processCenter?tabsName=ProcessCenter'}) } else { this.$message.warning(res.message) } }) }, - checkedRole2 (data) { - console.log('1712',this.drawerTitle) + checkedRole2(data) { + console.log('1712', this.drawerTitle) let idList = '' let nameList = '' - data.forEach( item => { + data.forEach(item => { if (nameList.length > 0) { nameList += ',' idList += ',' @@ -1779,58 +1833,58 @@ export default { idList += item.id nameList += item.name }) - if (this.drawerTitle === '选择责任人'){ - this.roleForm.zrUserId=idList; - this.roleForm.zrUserName=nameList; + if (this.drawerTitle === '选择责任人') { + this.roleForm.zrUserId = idList; + this.roleForm.zrUserName = nameList; } - if (this.drawerTitle === '选择我司署名人'){ + if (this.drawerTitle === '选择我司署名人') { this.form.wssmr = nameList - this.roleForm.wssmrId=idList; - this.roleForm.wssmrName=nameList; + this.roleForm.wssmrId = idList; + this.roleForm.wssmrName = nameList; } }, - choiceZRRS (type, title, id) { + choiceZRRS(type, title, id) { this.nodeList = [] this.nodeList.push(id) this.userType = type this.drawerTitle = title this.modalShowRoleFlag = true }, - choiceZRR1 (type, title, id) { + choiceZRR1(type, title, id) { this.drawerTitle = title this.modalShowFlag1 = true this.key++ }, - choiceZRR2 (type, title, id) { + choiceZRR2(type, title, id) { this.drawerTitle = title this.modalShowFlag2 = true this.url = '' this.urlChild = '' - this.url="sarVppsTree/list" - this.urlChild="sarVppsTree/childByList" + this.url = "sarVppsTree/list" + this.urlChild = "sarVppsTree/childByList" this.key1++ }, - choiceZRR3 (type, title, id) { + choiceZRR3(type, title, id) { this.drawerTitle = title this.modalShowFlag3 = true this.url = '' this.urlChild = '' - this.url="sarVppsTree/list" - this.urlChild="sarVppsTree/childByList" + this.url = "sarVppsTree/list" + this.urlChild = "sarVppsTree/childByList" this.key2++ }, - choiceZRR4 (type, title, id) { + choiceZRR4(type, title, id) { this.drawerTitle = title this.modalShowFlag4 = true this.url = '' this.urlChild = '' - this.url="sarModelTree/list" - this.urlChild="sarModelTree/childByList" + this.url = "sarModelTree/list" + this.urlChild = "sarModelTree/childByList" this.key3++ }, - busVsFunc(){ + busVsFunc() { this.$http.get('sarVppsTree/list', '', { _this: this }, res => { @@ -1839,7 +1893,7 @@ export default { this.key2++ }) }, - modelFunc(){ + modelFunc() { this.$http.get('sarModelTree/list', '', { _this: this }, res => { @@ -1848,7 +1902,7 @@ export default { }) }, // 代替政策号 请求数据 - getReplaceLawsNumRowFirst () { + getReplaceLawsNumRowFirst() { if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 } else { @@ -1875,41 +1929,41 @@ export default { }, e => { }) }, - dataSourceChange (val) { + dataSourceChange(val) { }, - handleChange (event) { + handleChange(event) { // const value = event.target.value const value = event this.$emit('input', value) - if (value.length==1000){ - return this.$message({ + if (value.length == 1000) { + return this.$message({ message: '相关标准不能输入超过1000个字符', type: 'warning' }); } }, // 代替政策编号-取消 - replaceLawsNumModelCancel () { + replaceLawsNumModelCancel() { // this.replaceLawsNumModel = false this.$refs.selections.clearSelection() }, // 代替政策号 table选择事件 - selectReplaceStandNumRowChange (row) { + selectReplaceStandNumRowChange(row) { this.selectedListRep = row }, // 代替政策分页 - pageChangeReplace (page) { + pageChangeReplace(page) { this.replacePage = page this.replaceLawsNumForm.page = page this.getReplaceLawsNumRow() }, - pageSizeChangeReplace (pageSize) { + pageSizeChangeReplace(pageSize) { // this.replaceRows = pageSize this.replaceLawsNumForm.pageSize = pageSize this.getReplaceLawsNumRow() }, // 代替政策编号确定 - replaceLawsNumModelBt () { + replaceLawsNumModelBt() { let textArr = [] if (typeof this.value === 'string') { @@ -1942,23 +1996,23 @@ export default { }) // this.SarLawsInfoEO.replaceLawsNum = textArr.join(',') // 解决 标准入库流程--圈住的字段,先手动输入,然后再手动查找,点提交就会把手动输入的标准号覆盖 - if(this.replaceLawType === 'dtbjh'){ + if (this.replaceLawType === 'dtbjh') { this.form.dtbjh = this.form.dtbjh ? this.form.dtbjh + ',' + textArr.join(',') : textArr.join(',') - }else if(this.replaceLawType === 'yybj'){ - this.form.yybj = this.form.yybj ? this.form.yybj + ',' +textArr.join(',') : textArr.join(',') - }else if(this.replaceLawType === 'cbbh'){ - this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' +textArr.join(',') : textArr.join(',') - }else if(this.replaceLawType === 'bfbdtbzh'){ - this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' +textArr.join(',') : textArr.join(',') + } else if (this.replaceLawType === 'yybj') { + this.form.yybj = this.form.yybj ? this.form.yybj + ',' + textArr.join(',') : textArr.join(',') + } else if (this.replaceLawType === 'cbbh') { + this.form.cbbh = this.form.cbbh ? this.form.cbbh + ',' + textArr.join(',') : textArr.join(',') + } else if (this.replaceLawType === 'bfbdtbzh') { + this.form.bfbdtbzh = this.form.bfbdtbzh ? this.form.bfbdtbzh + ',' + textArr.join(',') : textArr.join(',') this.form.bfdtbzh = this.form.bfdtbzh ? this.form.bfdtbzh + ',' + textArr.join(',') : textArr.join(',') } else { - this.form.byybj = this.form.byybj ? this.form.byybj + ',' +textArr.join(',') : textArr.join(',') + this.form.byybj = this.form.byybj ? this.form.byybj + ',' + textArr.join(',') : textArr.join(',') } // this.$emit('input', textArr.join(',')) this.$refs.selections.clearSelection() }, // 点击查看 - handlePreview (item) { + handlePreview(item) { let routeUrl = this.$router.resolve({ name: 'OtherStandardDetails', params: { @@ -1968,7 +2022,7 @@ export default { }) window.open(routeUrl.href, '_blank') }, - getResetLawsNumRow () { + getResetLawsNumRow() { this.replaceLawsNumForm = { standNumber: '', // 标准编号 page: 1, @@ -1980,7 +2034,7 @@ export default { } this.getReplaceLawsNumRow() }, - selectLaws (type) { + selectLaws(type) { // if (this.standNumFlag === 1) { // this.$refs.selections.selectAll(false) // } @@ -1991,14 +2045,18 @@ export default { this.getReplaceLawsNumRow() }, // 代替政策号 请求数据 - getReplaceLawsNumRow () { + getReplaceLawsNumRow() { if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 } else { this.quoteIdList1 = [] this.replaceLawsNumForm.quoteIdList = '' } - this.replaceLawsNumForm.standType = 'FOREIGN' // this.form.standInData === '1' ? 'FOREIGN' : 'INLAND' + if (this.replaceLawType === 'cbbh') { + this.replaceLawsNumForm.standType = 'FOREIGN' + } else { + this.replaceLawsNumForm.standType = '' // this.form.standInData === '1' ? 'FOREIGN' : 'INLAND' + } this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.replaceLawsNumForm, { _this: this, loading: 'replaceLoading' @@ -2017,14 +2075,14 @@ export default { }, e => { }) }, - beginImportFile (file) { + beginImportFile(file) { var filename = file.name var index1 = filename.lastIndexOf('.') var index2 = filename.length var fileSuffix = filename.substring(index1, index2) // const fileSuffix = file.name.split('.')[1] // 后缀名 // 判断上传文件格式 - if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt'|| fileSuffix === '.PPT' || fileSuffix === '.pptx'|| fileSuffix === '.PPTX'|| fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { + if (fileSuffix === '.pdf' || fileSuffix === '.PDF' || fileSuffix === '.ppt' || fileSuffix === '.PPT' || fileSuffix === '.pptx' || fileSuffix === '.PPTX' || fileSuffix === '.doc' || fileSuffix === '.DOC' || fileSuffix === '.docx' || fileSuffix === '.DOCX' || fileSuffix === '.zip' || fileSuffix === '.xls' || fileSuffix === '.xlsx') { return true } else { this.spinShow = false @@ -2042,7 +2100,7 @@ export default { return true }, // 导入标准数据成功后执行 - importFileSuccess (response, file,fileList) { + importFileSuccess(response, file, fileList) { if (response.ok) { // this.fileMadel = false // if(this.fileType === 'fbgbjbd'){ @@ -2078,7 +2136,6 @@ export default { // } - // if(this.fileType === 'fbgbjbd'){ // this.FBGBJBDFileList=fileList; // this.form.fbgbjbd += response.data.id+','; @@ -2140,35 +2197,36 @@ export default { // } - switch (this.fileType){ + switch (this.fileType) { case 'fbgbjbd': - this.FBGBJBDFileList=fileList; + this.FBGBJBDFileList = fileList; break; case 'xgd' : - this.xgdFileList=fileList; + this.xgdFileList = fileList; break; case 'bpg': - this.bpgFileList=fileList; + this.bpgFileList = fileList; break; case 'ssg': - this.ssgFileList=fileList; + this.ssgFileList = fileList; break; case 'zqyjg': - this.zqyjgFileList=fileList; + this.zqyjgFileList = fileList; break; case 'jdwj': - this.jdwjFileList=fileList; + this.jdwjFileList = fileList; break; case 'kwj': - this.kwjFileList=fileList; + this.kwjFileList = fileList; break; case 'xdb': - this.xdbFileList=fileList; + this.xdbFileList = fileList; break; case 'ca': - this.caFileList=fileList; + this.caFileList = fileList; break; - default : ; + default : + ; } // console.log("caNmae",this.form.caName); this.$message({ @@ -2177,75 +2235,76 @@ export default { type: 'success' }) } - },removeOneFile(file, fileList) { + }, removeOneFile(file, fileList) { - switch (this.fileType){ + switch (this.fileType) { case 'fbgbjbd': - this.FBGBJBDFileList=fileList; + this.FBGBJBDFileList = fileList; break; case 'xgd' : - this.xgdFileList=fileList; + this.xgdFileList = fileList; break; case 'bpg': - this.bpgFileList=fileList; + this.bpgFileList = fileList; break; case 'ssg': - this.ssgFileList=fileList; + this.ssgFileList = fileList; break; case 'zqyjg': - this.zqyjgFileList=fileList; + this.zqyjgFileList = fileList; break; case 'jdwj': - this.jdwjFileList=fileList; + this.jdwjFileList = fileList; break; case 'kwj': - this.kwjFileList=fileList; + this.kwjFileList = fileList; break; case 'xdb': - this.xdbFileList=fileList; + this.xdbFileList = fileList; break; case 'ca': - this.caFileList=fileList; + this.caFileList = fileList; break; case 'zbjbd': - this.zbjbdFileList=fileList + this.zbjbdFileList = fileList break; case 'glwj': - this.glwjFileList=fileList + this.glwjFileList = fileList break - default : ; + default : + ; } }, - fileUpload (type) { - if (type==='ca'){ - this.fileList=this.caFileList; - }else if (type==='fbgbjbd'){ - this.fileList=this.FBGBJBDFileList; - }else if (type==='xgd'){ - this.fileList=this.xgdFileList; - }else if(type==='bpg'){ - this.fileList=this.bpgFileList; - }else if (type==='ssg'){ - this.fileList=this.ssgFileList; - }else if (type==='zqyjg'){ - this.fileList=this.zqyjgFileList; - }else if (type==='jdwj'){ - this.fileList=this.jdwjFileList; - }else if (type==='zbjbd'){ - this.fileList=this.zbjbdFileList; - }else if (type==='kwj'){ - this.fileList=this.kwjFileList; - }else if (type==='xdb'){ - this.fileList=this.xdbFileList; - }else if (type==='glwj'){ - this.fileList=this.glwjFileList; + fileUpload(type) { + if (type === 'ca') { + this.fileList = this.caFileList; + } else if (type === 'fbgbjbd') { + this.fileList = this.FBGBJBDFileList; + } else if (type === 'xgd') { + this.fileList = this.xgdFileList; + } else if (type === 'bpg') { + this.fileList = this.bpgFileList; + } else if (type === 'ssg') { + this.fileList = this.ssgFileList; + } else if (type === 'zqyjg') { + this.fileList = this.zqyjgFileList; + } else if (type === 'jdwj') { + this.fileList = this.jdwjFileList; + } else if (type === 'zbjbd') { + this.fileList = this.zbjbdFileList; + } else if (type === 'kwj') { + this.fileList = this.kwjFileList; + } else if (type === 'xdb') { + this.fileList = this.xdbFileList; + } else if (type === 'glwj') { + this.fileList = this.glwjFileList; } this.fileType = ''; this.fileType = type; this.fileMadel = true - },fileChange(fileList){ + }, fileChange(fileList) { // console.log("fileList",fileList); }, // popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { @@ -2297,69 +2356,69 @@ export default { // this.modalShowFlag4 = false // }, - popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData) { - if(checkedData.length > 0 && checkedData.length != 0){ - this.form.standSystem = checkedData.map(item => item.menuName).join(",") - }else { - this.form.standSystem = checkedData.menuName + popoverHide(checkedIds, checkedData, isShow, isLoadChild, topId) { + if (checkedData) { + if (checkedData.length > 0 && checkedData.length != 0) { + this.form.standSystem = checkedData.map(item => item.menuName).join(",") + } else { + this.form.standSystem = checkedData.menuName + } + this.modalShowFlag1 = false } + + }, + popoverHideCancel() { this.modalShowFlag1 = false - } - - }, - popoverHideCancel(){ - this.modalShowFlag1 = false - }, - popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData && checkedData.length != 0) { - if(checkedData.length > 0 && checkedData.length != 0){ - this.form.cycvppsbm = checkedData.map(item => item.code).join(",") - this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",") - }else { - this.form.cycvppsbm = checkedData.code - this.form.cycvppscn = checkedData.chineseName + }, + popoverHideBusVs(checkedIds, checkedData, isShow, isLoadChild, topId) { + if (checkedData && checkedData.length != 0) { + if (checkedData.length > 0 && checkedData.length != 0) { + this.form.cycvppsbm = checkedData.map(item => item.code).join(",") + this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",") + } else { + this.form.cycvppsbm = checkedData.code + this.form.cycvppscn = checkedData.chineseName + } + this.modalShowFlag2 = false } + + }, + popoverHideBusVsCancel() { this.modalShowFlag2 = false - } + }, + popoverHideCarVs(checkedIds, checkedData, isShow, isLoadChild, topId) { + if (checkedData && checkedData.length != 0) { + if (checkedData.length > 0) { + this.form.kccvppsbm = checkedData.map(item => item.code).join(",") + this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",") + } else { + this.form.kccvppsbm = checkedData.code + this.form.kccvppscn = checkedData.chineseName + } + this.modalShowFlag3 = false - }, - popoverHideBusVsCancel(){ - this.modalShowFlag2 = false - }, - popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData && checkedData.length != 0) { - if(checkedData.length > 0){ - this.form.kccvppsbm = checkedData.map(item => item.code).join(",") - this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",") - }else { - this.form.kccvppsbm = checkedData.code - this.form.kccvppscn = checkedData.chineseName } + }, + popoverHideCarVsCancel() { this.modalShowFlag3 = false - - } - }, - popoverHideCarVsCancel(){ - this.modalShowFlag3 = false - }, - popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) { - if(checkedData && checkedData.length != 0) { - if(checkedData.length > 0){ - this.form.dybxh = checkedData.map(item => item.model).join(",") - this.form.dymc = checkedData.map(item => item.name).join(",") - }else { - this.form.dybxh = checkedData.model - this.form.dymc = checkedData.name + }, + popoverHideModel(checkedIds, checkedData, isShow, isLoadChild, topId) { + if (checkedData && checkedData.length != 0) { + if (checkedData.length > 0) { + this.form.dybxh = checkedData.map(item => item.model).join(",") + this.form.dymc = checkedData.map(item => item.name).join(",") + } else { + this.form.dybxh = checkedData.model + this.form.dymc = checkedData.name + } + this.modalShowFlag4 = false } - this.modalShowFlag4 = false - } - }, - popoverHideModelCancel(){ - this.modalShowFlag4 = false - }, - processTable () { + }, + popoverHideModelCancel() { + this.modalShowFlag4 = false + }, + processTable() { this.$http.get('lawss/activiti/get_list_by_instance', { prcNum: this.$route.query.prcNum, sortWord: this.shunxu ? this.paixu : '', @@ -2369,7 +2428,8 @@ export default { _this: this }, res => { this.detailData = res - }, e => {}) + }, e => { + }) }, getData() { return new Promise((resolve, reject) => { @@ -2395,7 +2455,7 @@ export default { /** * @description: 动态表单读取 */ - getFormFieldList (item) { + getFormFieldList(item) { this.$nextTick(() => { this.form = JSON.parse(JSON.stringify(item)) this.defaultCheckedKeys = [this.form.standSystem]; @@ -2410,52 +2470,53 @@ export default { // 遍历对象 - for(const p in this.form) { + for (const p in this.form) { if (typeof (this.form[p]) != "function") { - this.initializeFileList(p,this.form[p]); + this.initializeFileList(p, this.form[p]); } } - this.$forceUpdate() + this.$forceUpdate() }) - },initializeFileList(property ,value){ - switch (property){ - case 'xgd': - this.getFileList(value,this.xgdFileList); - break; - case 'fbgbjbd': - this.getFileList(value,this.FBGBJBDFileList); - break; - case 'ssg': - this.getFileList(value,this.ssgFileList); - break; - case 'ca': - this.getFileList(value,this.caFileList); - break; - case 'zbjbd': - this.getFileList(value,this.zbjbdFileList); - break; - case 'kwj': - this.getFileList(value,this.kwjFileList); - break; - case 'xdb': - this.getFileList(value,this.xdbFileList); - break; - case 'jdwj': - this.getFileList(value,this.jdwjFileList); - break; - case 'bpg': - this.getFileList(value,this.bpgFileList); - break; - case 'zqyjg': - this.getFileList(value,this.zqyjgFileList); - break; - case 'glwj': - this.getFileList(value,this.glwjFileList); + }, initializeFileList(property, value) { + switch (property) { + case 'xgd': + this.getFileList(value, this.xgdFileList); break; - default: ; + case 'fbgbjbd': + this.getFileList(value, this.FBGBJBDFileList); + break; + case 'ssg': + this.getFileList(value, this.ssgFileList); + break; + case 'ca': + this.getFileList(value, this.caFileList); + break; + case 'zbjbd': + this.getFileList(value, this.zbjbdFileList); + break; + case 'kwj': + this.getFileList(value, this.kwjFileList); + break; + case 'xdb': + this.getFileList(value, this.xdbFileList); + break; + case 'jdwj': + this.getFileList(value, this.jdwjFileList); + break; + case 'bpg': + this.getFileList(value, this.bpgFileList); + break; + case 'zqyjg': + this.getFileList(value, this.zqyjgFileList); + break; + case 'glwj': + this.getFileList(value, this.glwjFileList); + break; + default: + ; } - },getFileList(fileIds,defaultFileList){ + }, getFileList(fileIds, defaultFileList) { let fileList this.$http.get('att/attFile/getMultiFileInfos', { fileIds: fileIds @@ -2497,7 +2558,7 @@ export default { handleSave() { //表单文件处理 this.fileInfoHandle(); - this.form.country=this.countryArr; + this.form.country = this.countryArr; this.saveLoading = true let _formData = new FormData() _formData.append('id', this.bpnId) @@ -2520,68 +2581,68 @@ export default { this.saveLoading = false }) }, - fileInfoHandle(){ + fileInfoHandle() { //拼接文件名和id 提交到流程Activity - this.form.fbgbjbd=this.FBGBJBDFileList.map(item => item.response.data.id).join(",") - this.form.fbgbjbdName=this.FBGBJBDFileList.map(item => item.name).join(",") + this.form.fbgbjbd = this.FBGBJBDFileList.map(item => item.response.data.id).join(",") + this.form.fbgbjbdName = this.FBGBJBDFileList.map(item => item.name).join(",") - this.form.xgd=this.xgdFileList.map(item => item.response.data.id).join(",") - this.form.xgdName=this.xgdFileList.map(item => item.name).join(",") + this.form.xgd = this.xgdFileList.map(item => item.response.data.id).join(",") + this.form.xgdName = this.xgdFileList.map(item => item.name).join(",") - this.form.bpg=this.bpgFileList.map(item => item.response.data.id).join(",") - this.form.bpgName=this.bpgFileList.map(item => item.name).join(",") + this.form.bpg = this.bpgFileList.map(item => item.response.data.id).join(",") + this.form.bpgName = this.bpgFileList.map(item => item.name).join(",") - this.form.ssg=this.ssgFileList.map(item => item.response.data.id).join(",") - this.form.ssgName=this.ssgFileList.map(item => item.name).join(",") + this.form.ssg = this.ssgFileList.map(item => item.response.data.id).join(",") + this.form.ssgName = this.ssgFileList.map(item => item.name).join(",") - this.form.zqyjg=this.zqyjgFileList.map(item => item.response.data.id).join(",") - this.form.zqyjgName=this.zqyjgFileList.map(item => item.name).join(",") + this.form.zqyjg = this.zqyjgFileList.map(item => item.response.data.id).join(",") + this.form.zqyjgName = this.zqyjgFileList.map(item => item.name).join(",") - this.form.jdwj=this.jdwjFileList.map(item => item.response.data.id).join(",") - this.form.jdwjName=this.jdwjFileList.map(item => item.name).join(",") + this.form.jdwj = this.jdwjFileList.map(item => item.response.data.id).join(",") + this.form.jdwjName = this.jdwjFileList.map(item => item.name).join(",") - this.form.kwj=this.kwjFileList.map(item => item.response.data.id).join(",") - this.form.kwjName=this.kwjFileList.map(item => item.name).join(",") + this.form.kwj = this.kwjFileList.map(item => item.response.data.id).join(",") + this.form.kwjName = this.kwjFileList.map(item => item.name).join(",") - this.form.kwj=this.xdbFileList.map(item => item.response.data.id).join(",") - this.form.kwjName=this.xdbFileList.map(item => item.name).join(",") + this.form.kwj = this.xdbFileList.map(item => item.response.data.id).join(",") + this.form.kwjName = this.xdbFileList.map(item => item.name).join(",") - this.form.ca=this.caFileList.map(item => item.response.data.id).join(",") - this.form.caName=this.caFileList.map(item => item.name).join(",") + this.form.ca = this.caFileList.map(item => item.response.data.id).join(",") + this.form.caName = this.caFileList.map(item => item.name).join(",") - this.form.zbjbd=this.zbjbdFileList.map(item => item.response.data.id).join(",") - this.form.zbjbdName=this.zbjbdFileList.map(item => item.name).join(",") + this.form.zbjbd = this.zbjbdFileList.map(item => item.response.data.id).join(",") + this.form.zbjbdName = this.zbjbdFileList.map(item => item.name).join(",") - this.form.glwj=this.glwjFileList.map(item => item.response.data.id).join(",") - this.form.glwjName=this.glwjFileList.map(item => item.name).join(",") + this.form.glwj = this.glwjFileList.map(item => item.response.data.id).join(",") + this.form.glwjName = this.glwjFileList.map(item => item.name).join(",") }, handleSubmit() { - this.form.country=this.countryArr; + this.form.country = this.countryArr; this.$refs['form'].validate((valid) => { - if (valid) { - this.fileInfoHandle(); - this.isSubmit = true - this.form.commentText = this.commentText - this.form.approvalOpinion = this.approvalOpinion - const json = JSON.stringify(this.form); - this.$http.post('lawss/activiti/completeTask', { - taskIds: this.taskIds, - userId : this.userId, - json: json - }, { - _this: this - }, res => { - if (res.success) { - this.$message.success(res.message) - // 流程提交之后,应该流转至待办任务页面 - this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) - }else { - this.$message.success(res.message) - } - this.isSubmit = false - }) - } + if (valid) { + this.fileInfoHandle(); + this.isSubmit = true + this.form.commentText = this.commentText + this.form.approvalOpinion = this.approvalOpinion + const json = JSON.stringify(this.form); + this.$http.post('lawss/activiti/completeTask', { + taskIds: this.taskIds, + userId: this.userId, + json: json + }, { + _this: this + }, res => { + if (res.success) { + this.$message.success(res.message) + // 流程提交之后,应该流转至待办任务页面 + this.$router.push({path: '/processCenter?tabsName=ProcessCenter'}) + } else { + this.$message.success(res.message) + } + this.isSubmit = false + }) + } }) }, @@ -2613,15 +2674,15 @@ export default { }) }, }, - created(){ + created() { this.getData() }, - mounted () { + mounted() { this.processTable() this.$http.get('sys/dictype/getDicTypeListCode', '', { _this: this }, res => { - this.countryOptions=res.data.COUNTRY//国家地区 + this.countryOptions = res.data.COUNTRY//国家地区 this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 this.standNatureOptions = res.data.SARPROPERTY // 标准性质 this.standStateOptions = res.data.WBZTCLASS // 文本状态 @@ -2646,10 +2707,10 @@ export default { this.busVsFunc() this.modelFunc() }, - watch:{ + watch: { 'form.country': { - handler (val) { + handler(val) { if (val !== '' && val !== null && typeof (val) !== 'undefined') { if (val instanceof Array) { this.countryArr = val.join(","); @@ -2661,9 +2722,9 @@ export default { } } }, - 'form' : { + 'form': { handler: function () { - if(this.form.standInData === '1') { + if (this.form.standInData === '1') { this.rules.standYear[0].required = false; this.rules.standName[0].required = false this.rules.standNature[0].required = false @@ -2680,13 +2741,16 @@ export default {