diff --git a/src/common/axios/index.js b/src/common/axios/index.js index da73cb853..b23a55cc0 100644 --- a/src/common/axios/index.js +++ b/src/common/axios/index.js @@ -7,11 +7,11 @@ import axios from 'axios' import router from '@/router' import store from '@/store' import {Message} from 'element-ui' -import { serverUrl } from '@/sysConfig' +import { baseUrl } from '@/sysConfig' export const CancelToken = axios.CancelToken // import 'element-ui/lib/theme-chalk/index.css' const _axios = axios.create({ - baseURL: process.env.NODE_ENV === 'production' ? serverUrl : '/' + baseURL: process.env.NODE_ENV === 'production' ? baseUrl : '/' }) /** diff --git a/src/common/axiosV2/index.js b/src/common/axiosV2/index.js index e86814c70..f4aaa8125 100644 --- a/src/common/axiosV2/index.js +++ b/src/common/axiosV2/index.js @@ -2,6 +2,7 @@ import axios from 'axios' import router from '@/router' import store from '@/store' import {Message} from 'element-ui' +import { baseUrl } from '@/sysConfig' // import 'element-ui/lib/theme-chalk/index.css' /** @@ -18,7 +19,7 @@ let formData = (data) => { } const service = axios.create({ - baseURL: '/' + baseURL: process.env.NODE_ENV === 'production' ? baseUrl : '/' }) service.defaults.timeout = 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 diff --git a/src/pages/processCenter/pages/components/ProcessMixin.vue b/src/pages/processCenter/pages/components/ProcessMixin.vue index 61b1a1d6e..8ae1ab0b0 100644 --- a/src/pages/processCenter/pages/components/ProcessMixin.vue +++ b/src/pages/processCenter/pages/components/ProcessMixin.vue @@ -1,51 +1,56 @@ diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue new file mode 100644 index 000000000..337123722 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step1-1.vue @@ -0,0 +1,873 @@ + + + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue index 4ab746639..0e1e083c2 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step1.vue @@ -248,6 +248,17 @@ + + + + @@ -261,7 +272,7 @@ - - - - + label="标准号" + > + - - - - + label="标准名称"> + + + + + + + + + + + + @@ -328,11 +363,12 @@ import ProcessHeader from '../../components/ProcessHeader' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' - + import { saveTaskFirst } from 'api/process' export default { name: "bzjdStep1", data() { return { + textStatusMap: {}, listModel2: false, standInfoList2: [], sarType: '', @@ -373,7 +409,7 @@ standCommonlySearch2: { page: 1, pageSize: this.$store.getters.userInfo.configContent, - result: '1', + userId : this.$store.getters.userInfo.userId, standType: 'INLAND' }, spinShow: false, @@ -422,6 +458,19 @@ ProcessTitle }, methods: { + setMap(data){ + data.forEach(item => { + this.$set(this.textStatusMap, item.value, item.label) + }) + }, + formatIssueDate(str) { + const momentDate = this.$moment(str) + if (momentDate.isValid()) { + return this.$moment(str).format('YYYY-MM-DD') + } else { + return str + } + }, addZqyjList() { this.title = '标准拆分数据库' this.listModel = true @@ -457,11 +506,25 @@ }, sarStandCompareHis2 () { var form = this.standCommonlySearch2 - this.$http.get('lawss/sarFileSplitInfo/getSarFileSplitInfoEOPage', form, { + this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', form, { _this: this }, res => { this.standInfoList2 = res.data.list - this.total2 = res.data.total + this.standInfoList2.forEach(item => { + if (item.attrInfoMap && item.attrInfoMap.XCXSSRQ) { + item.XCXSSRQ = item.attrInfoMap.XCXSSRQ + } + if (item.attrInfoMap && item.attrInfoMap.ZCCSSRQ) { + item.ZCCSSRQ = item.attrInfoMap.ZCCSSRQ + } + }) + + this.total2 = res.data.count + this.$http.get('sys/dictype/getDicTypeListCode', '', { + _this: this + }, res => { + this.setMap(res.data.WBZTCLASS) + }) }, e => { }) }, @@ -569,7 +632,11 @@ // this.form.itemsNum1 = bringData[0].showNumber // this.form.itemsName1 = bringData[0].standName // } - this.form.itemsNum1 = bringData[0].showNumber + if (bringData[0].standYear) { + this.form.itemsNum1 = bringData[0].standSortShow + ' ' + bringData[0].standNumber + '-' + bringData[0].standYear + } else { + this.form.itemsNum1 = bringData[0].standSortShow + ' ' + bringData[0].standNumber + } this.form.itemsName1 = bringData[0].standName this.form.oldNumber = bringData[0].id this.listModel2 = false @@ -600,12 +667,6 @@ } this.modalshowflag = false }, - handleSelectionChange (val) { - this.zrIdList = [] - val.forEach( item => { - this.zrIdList.push(item.id) - }) - }, choiceZRRS (row, type, index) { this.type = type if (type === 1) { @@ -632,10 +693,37 @@ this.modalshowflag = true } }, + handleSelectionChange (val) { + this.zrIdList = [] + val.forEach( item => { + this.zrIdList.push(item.id) + }) + }, handleTabs(name) { this.active = name }, - handleSave() {}, + handleSave() { + this.saveLoading = true + let _formData = new FormData() + _formData.append('id', this.bpnId || '') + _formData.append('createUser', this.$store.getters.userInfo.userId) + _formData.append('createUserName', this.$store.getters.userInfo.userName) + _formData.append('prcType', '9') + _formData.append('json', JSON.stringify({ + form: this.form, + roleForm: this.roleForm, + commentText: this.commentText, + itemList: this.itemList, + sarType: this.sarType + })) + saveTaskFirst(_formData).then(res => { + this.saveLoading = false + this.$message.success('保存成功') + this.bpnId = res.result + }).catch(e => { + this.saveLoading = false + }) + }, handleSubmit() { this.$refs['bzzqyjForm'].validate((valid) => { if (valid) { @@ -650,6 +738,7 @@ if (b > 0) { this.$message.warning('请选择责任人') } else { + this.isSubmit = true this.$http.get('lawss/activiti/startProcess', { type: '9' }, {}, res => { @@ -670,6 +759,7 @@ }) } else { this.$message.warning('流程启动失败') + this.isSubmit = false } }) } diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue index ebf12321b..1ebcac3fe 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue @@ -26,7 +26,7 @@ @@ -34,7 +34,7 @@ @@ -42,28 +42,28 @@ @@ -198,7 +198,6 @@ - - - - - + + 加载中... @@ -245,33 +226,30 @@ name: "bzjdStep2", data() { return { + type: '', + drawerTitle: '', histortData: [], sarType: '', zxIndex: '', zxType: '', zxIdList: [], modalshowflag2: false, - treeData: [], nodeList2: [], - defaultProps: { - children: 'children', - label: 'name' - }, - loading: false, + loading: true, commentText: '', taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, roleRow: {}, - type: '', - drawerTitle: '', //drawer标题 textarea: '', // 意见 ListModel: false, // 新增编辑抽屉开关 active: '1', // 默认显示 isSubmit: false, saveLoading: false, form: { - number: '', - name: '', + itemsNum: '', + itemsName: '', + itemsNum1: '', + itemsName1: '', }, json: {}, itemList: [] @@ -290,26 +268,18 @@ this.histortData = res }, e => {}) }, - drawerCheck2 (data) { - var getlist = this.$refs.tree2.getCheckedNodes().concat(this.$refs.tree2.getHalfCheckedNodes()); - if(getlist.length == 1) { - this.roleRow = getlist[0] - }else { - this.$refs.tree2.setCheckedKeys([data.id]); - this.roleRow = this.$refs.tree2.getCheckedNodes()[0] - } - }, choiceZRRS (row, type, index) { + this.type = type if (type === 1) { + this.drawerTitle = '选择责任部门对接人' this.nodeList2 = [] this.zxIndex= index - this.zxType = type this.nodeList2.push(row) this.modalshowflag2 = true } else { // 批量 + this.drawerTitle = '批量选择责任部门对接人' if (this.zxIdList.length > 0) { - this.zxType = type this.nodeList2 = [] this.modalshowflag2 = true } else { @@ -317,39 +287,21 @@ } } }, - saveUserInfo2 () { - var idList = '' - var nameList = '' - this.$refs.tree2.getCheckedNodes().concat(this.$refs.tree2.getHalfCheckedNodes()).forEach( item => { - if (nameList.length > 0) { - nameList += ',' - idList += ',' - } - idList += item.id - nameList += item.name - }) - if (this.zxType == 1) { - this.itemList[this.zxIndex].zxUserId = idList - this.itemList[this.zxIndex].zxUserIdName = nameList + saveUserInfo (data) { + if (this.type === 1) { + this.itemList[this.zxIndex].zxUserId = data[0].id + this.itemList[this.zxIndex].zxUserIdName = data[0].name } else { this.itemList.forEach( item => { this.zxIdList.forEach( items => { if (item.id === items) { - item.zxUserId = idList - item.zxUserIdName = nameList + item.zxUserId = data[0].id + item.zxUserIdName = data[0].name } }) }) } - this.modalshowflag2 = false - }, - cancleUserInfo2 () { - this.modalshowflag2 = false - }, - getTree () { - this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { - this.treeData = res.data - }) + this.modalshowflag = false }, handleTabs(name) { this.active = name @@ -366,20 +318,23 @@ } if (b > 0) { this.$message.warning('请选择执行人') + } else { + this.isSubmit = true + var json = this.json + json.itemList = this.itemList + json.commentText = this.commentText + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') + } + this.isSubmit = false + }) } - var json = this.json - json.itemList = this.itemList - json.commentText = this.commentText - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') - } - }) } else { return this.$message.warning('请完善基础信息') } @@ -398,10 +353,10 @@ pId: this.pId }).then(res => { let data = JSON.parse(res.mesg) - this.form.number = data.number - this.form.name = data.name - this.form.number1 = data.number1 - this.form.name1 = data.name1 + this.form.itemsNum = data.itemsNum + this.form.itemsName = data.itemsName + this.form.itemsNum1 = data.itemsNum1 + this.form.itemsName1 = data.itemsName1 this.sarType = data.standInData this.json = data var arr = [] @@ -411,6 +366,7 @@ item.zxUserIdName = '' }) this.itemList = arr + this.loading = false }).catch(e => { }) }) @@ -418,7 +374,6 @@ }, mounted () { this.getHistoryData() - this.getTree() this.getData() } } diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue index ec3179f4c..b1513d569 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue @@ -26,7 +26,7 @@ @@ -34,7 +34,7 @@ @@ -42,28 +42,28 @@ @@ -189,6 +189,11 @@ width="150" label="适用车型" align="center"> + - 数据获取中
@@ -278,7 +282,6 @@
+ + + + +
+ 加载中... @@ -359,6 +368,7 @@ name: "bzjdStep3", data() { return { + cxList: [], histortData: [], plForm: { technicalRequir: '', // 核心技术要求 @@ -367,11 +377,12 @@ complianceState: '', // 合规性分析 newData: '', // 新车型实施日期 onlineData: '', // 在产车实施日期 + applyArctic: '', // 适用车型 }, modalshowflag: false, sarType: '', itemList: [], - loading: false, + loading: true, commentText: '', taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, @@ -380,10 +391,10 @@ isSubmit: false, saveLoading: false, form: { - number: '', - name: '', - number1: '', - name1: '' + itemsNum: '', + itemsName: '', + itemsNum1: '', + itemsName1: '', }, json: {}, idList: [] @@ -412,6 +423,7 @@ this.itemList[a].complianceState = this.plForm.complianceState this.itemList[a].newData = this.plForm.newData this.itemList[a].onlineData = this.plForm.onlineData + this.itemList[a].applyArctic = this.plForm.applyArctic } } } @@ -446,7 +458,7 @@ handleSubmit() { this.$refs['bzzqyjForm'].validate((valid) => { if (valid) { - let num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0 + let num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0, num6 = 0 for (let a = 0; a < this.itemList.length; a++) { if (!this.itemList[a].technicalRequir) { num1++ @@ -463,6 +475,9 @@ if (!this.itemList[a].onlineData) { num5++ } + if (!this.itemList[a].applyArctic) { + num6++ + } } if (num1 > 0) { this.$message.warning('请输入核心技术要求') @@ -478,7 +493,10 @@ this.$message.warning('请输入新车型实施日期') } else if (num5 > 0) { this.$message.warning('请输入在产车实施日期') + } else if (num6 > 0) { + this.$message.warning('请选择适用车型') } else { + this.isSubmit = true var json = this.json json.commentText = this.commentText json.itemList = this.itemList @@ -491,6 +509,7 @@ this.$message.success('提交成功') this.$router.push('/processCenter') } + this.isSubmit = false }) } } else { @@ -505,10 +524,10 @@ pId: this.pId }).then(res => { let data = JSON.parse(res.mesg) - this.form.number = data.number - this.form.name = data.name - this.form.number1 = data.number1 - this.form.name1 = data.name1 + this.form.itemsNum = data.itemsNum + this.form.itemsName = data.itemsName + this.form.itemsNum1 = data.itemsNum1 + this.form.itemsName1 = data.itemsName1 this.sarType = data.standInData this.json = data const itemList = JSON.parse(data.itemList) @@ -524,6 +543,7 @@ item.itemsTitle = item.itermsConditions }) this.itemList = itemList + this.loading = false }).catch(e => { }) }) @@ -532,6 +552,11 @@ mounted () { this.getHistoryData() this.getData() + this.$http.get('sys/dictype/getDicTypeListCode', '', { + _this: this + }, res => { + this.cxList = res.data.ENERGYTYPES // 适用车型 + }) } } diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue index 4d68f687d..ff4b8c6aa 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue @@ -26,7 +26,7 @@ @@ -34,7 +34,7 @@ @@ -42,28 +42,28 @@ @@ -176,7 +176,6 @@ align="center"> - 数据获取中
@@ -250,8 +249,8 @@
+ 加载中... { let data = JSON.parse(res.mesg) - this.form.number = data.number - this.form.name = data.name - this.form.number1 = data.number1 - this.form.name1 = data.name1 + this.form.itemsNum = data.itemsNum + this.form.itemsName = data.itemsName + this.form.itemsNum1 = data.itemsNum1 + this.form.itemsName1 = data.itemsName1 this.sarType = data.standInData this.json = data this.itemList = data.itemList + this.loading = false }).catch(e => { }) }) diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue index d8fbe2523..8030287a6 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue @@ -26,7 +26,7 @@ @@ -34,7 +34,7 @@ @@ -42,28 +42,28 @@ @@ -176,7 +176,6 @@ align="center"> - 数据获取中
@@ -251,7 +250,6 @@
+ 加载中... @@ -278,7 +277,7 @@ histortData: [], sarType: '', itemList: [], - loading: false, + loading: true, commentText: '', taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, @@ -287,10 +286,10 @@ isSubmit: false, saveLoading: false, form: { - number: '', - name: '', - number1: '', - name1: '' + itemsNum: '', + itemsName: '', + itemsNum1: '', + itemsName1: '', }, json: {}, } @@ -313,6 +312,7 @@ }, handleSave() {}, handleSubmit() { + this.isSubmit = true var json = this.json json.zrApplyFlag = 1 json.commentText = this.commentText @@ -325,10 +325,12 @@ this.$message.success('提交成功') this.$router.push('/processCenter') } + this.isSubmit = false }) }, handleSubmitNo () { if (this.commentText) { + this.isSubmit = true var json = this.json json.zrApplyFlag = 2 json.commentText = this.commentText @@ -341,6 +343,7 @@ this.$message.success('驳回成功') this.$router.push('/processCenter') } + this.isSubmit = false }) } else { this.$message.warning('请输入反馈意见') @@ -353,13 +356,14 @@ pId: this.pId }).then(res => { let data = JSON.parse(res.mesg) - this.form.number = data.number - this.form.name = data.name - this.form.number1 = data.number1 - this.form.name1 = data.name1 + this.form.itemsNum = data.itemsNum + this.form.itemsName = data.itemsName + this.form.itemsNum1 = data.itemsNum1 + this.form.itemsName1 = data.itemsName1 this.sarType = data.standInData this.json = data this.itemList = data.itemList + this.loading = true }).catch(e => { }) }) diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue index c29c8e39e..9c0039f5d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue @@ -26,7 +26,7 @@ @@ -34,7 +34,7 @@ @@ -42,28 +42,28 @@ @@ -177,7 +177,6 @@ align="center"> - 数据获取中
@@ -252,17 +251,15 @@
+ 加载中... @@ -279,7 +276,7 @@ histortData: [], sarType: '', itemList: [], - loading: false, + loading: true, commentText: '', taskIds: this.$route.query.taskIds, pId: this.$route.query.prcId, @@ -288,10 +285,10 @@ isSubmit: false, saveLoading: false, form: { - number: '', - name: '', - number1: '', - name1: '' + itemsNum: '', + itemsName: '', + itemsNum1: '', + itemsName1: '', }, json: {}, } @@ -314,6 +311,7 @@ }, handleSave() {}, handleSubmit() { + this.isSubmit = true var json = this.json json.gcApplyFlag = 1 json.commentText = this.commentText @@ -326,10 +324,12 @@ this.$message.success('提交成功') this.$router.push('/processCenter') } + this.isSubmit = false }) }, handleSubmitNo () { if (this.commentText) { + this.isSubmit = true var json = this.json json.gcApplyFlag = 2 json.commentText = this.commentText @@ -342,6 +342,7 @@ this.$message.success('驳回成功') this.$router.push('/processCenter') } + this.isSubmit = false }) } else { this.$message.warning('请输入反馈意见') @@ -354,13 +355,14 @@ pId: this.pId }).then(res => { let data = JSON.parse(res.mesg) - this.form.number = data.number - this.form.name = data.name - this.form.number1 = data.number1 - this.form.name1 = data.name1 + this.form.itemsNum = data.itemsNum + this.form.itemsName = data.itemsName + this.form.itemsNum1 = data.itemsNum1 + this.form.itemsName1 = data.itemsName1 this.sarType = data.standInData this.json = data this.itemList = data.itemList + this.loading = false }).catch(e => { }) }) diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue index ebb110b56..6d8ca7b07 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue @@ -29,7 +29,16 @@ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', height: '48px'}"> - + + + + + + @@ -69,8 +78,8 @@

流程发起人

- - + +
@@ -87,6 +96,42 @@
+ + + +

确认+选择责任人

+
+ + + +
+
+
+
+ + + +

负责人

+
+ + + +
+
+
+
+ + + +

分发负责人

+
+ + + +
+
+
+
@@ -103,7 +148,7 @@ @@ -154,25 +199,44 @@ + @selection-change="selectedChange" + > - - - - - - - + + + + + + + + + + + + + + + @@ -214,23 +222,6 @@ @submit="handleSubmit" >
- - -
- -

点击或拖拽上传文件

-
-
-
@@ -238,7 +229,7 @@ import ProcessHeader from '../../components/ProcessHeader' import ProcessFooter from '../../components/ProcessFooter' import ProcessTitle from '../../components/ProcessTitle' -import {interfaceUrl} from "@/sysConfig"; +import {uploadFile} from '@/api/unqualProcess.js'; import {inboundLiaisonDetail, completeTask} from "@/api/process" export default { @@ -268,6 +259,8 @@ export default { // 上传路径 uploadPath: 'api/att/attFile/upload', fileMadel: false, + // 上传所储存文件数组 + fileTextList: [], newDataList: [], // 责任部门 zNodesSItem: [], @@ -315,12 +308,18 @@ export default { this.$nextTick(() => { this.dataList = [JSON.parse(JSON.stringify(item.responUserInfo.info))] - /*for (let i = 0; i { + if (item.fileText.length !== 0) { + item.fileText.forEach(item1 => { + this.fileTextList.push({ + id: item1.id, + name: item1.name + }) + }) } - }*/ + }) }) }, @@ -328,16 +327,22 @@ export default { this.active = name }, /************ 上传佐证材料 *****************/ - fileUpload (val) { - this.newDataList = val - this.fileMadel = true + uploadFile (val) { + this.fileListData = val }, // 文件上传成功 handleOnsuccess(res, file, fileList) { if (res.ok) { - this.newDataList.fileText = res.data.name - this.newDataList.fileTextId = res.data.id - this.newDataList.fileTextPath = res.data.filePath + this.newDataList.push({ + id: res.data.attId, + name: res.data.standName + }) + this.newDataList.forEach(item =>{ + this.fileListData.fileText.push({ + id: item.id, + name: item.name + }) + }) this.$message({ showClose: true, message: res.message, @@ -374,13 +379,28 @@ export default { return true }, // 移除上传的文件 - handleBeforeRemove() {}, - handleOnRemove() {}, - // 文件超过限制数量提示 - handleExceed() { - this.$message.error(``) + handleBeforeRemove(file, fileList) { + this.fileTextList = fileList + this.newDataList.forEach((item, index) => { + if (file.name === item.name || file.id === item.id) { + this.newDataList.splice(index, 1) + } + }) }, + /************ ********* *****************/ + // 点击查看 + handlePreview (item) { + let routeUrl = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.standId, + pageType: 'FOREIGN_STAND' + // pageType: item.standType + '_STAND' + } + }) + window.open(routeUrl.href, '_blank') + }, // 保存按钮 handleSave() {}, // 提交按钮 @@ -388,7 +408,7 @@ export default { this.isSubmit = true let flag=false this.dataList.forEach(item => { - if (item.fileText === '') { + if (item.fileText.length === 0) { flag=true this.isSubmit = false } diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue index 389c2dc99..073001399 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue @@ -13,7 +13,7 @@ - + + + + + + + @@ -96,14 +106,19 @@ - - + + - @@ -222,6 +237,7 @@ export default { productName: '', // 项目名称 responsibleUnit: '' // 责任部门 }, + fileTextList: [], active: '1', // 默认显示 isSubmit: false, backLoading: false, @@ -281,13 +297,39 @@ export default { getFormFieldList (item) { this.$nextTick(() => { this.dataList = JSON.parse(JSON.stringify(item)).info.fileDataList + this.dataList.forEach(item => { + item.fileText.forEach(item1 => { + this.fileTextList.push({ + id: item1.id, + name: item1.name + }) + }) + }) }) }, handleTabs(name) { this.active = name }, - + // 点击查看 + handlePreview (item) { + let routeUrl = this.$router.resolve({ + name: 'OtherStandardDetails', + params: { + id: item.standId, + pageType: 'FOREIGN_STAND' + // pageType: item.standType + '_STAND' + } + }) + window.open(routeUrl.href, '_blank') + }, + // 点击上传的文件进行下载 + handleOnPreview(file) { + let attId = file.id + if (attId != null && attId !== "") { + window.location.href = "/api/att/attFile/downloadFileForSar?fileId=" + attId; + } + }, // 提交按钮 handleSubmit() { this.isSubmit = true @@ -407,6 +449,9 @@ export default { background: #E6A23C; } } + /deep/.el-upload{ + display: block; + } .content-center { padding: 10px 0px 10px 10px; } diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue index 5dabd8629..7864191ff 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue @@ -85,22 +85,22 @@ { this.ProjectDatas = res.data.Maintenance.records; + this.total = res.data.Maintenance.total; }); }, diff --git a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue index bd68b0c25..9c30e58d3 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/taskDraft/index.vue @@ -335,6 +335,16 @@ export default { } }) break + case '9': + this.$router.push({ + name: 'bzjdStep1-1', + query: { + type: '9', + processName: '标准解读流程', + bpnId: id + } + }) + break } }, ...mapMutations(['setProcess', 'setHandleInfo']), diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index f14971026..28e1db059 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -189,6 +189,16 @@ {{ formatIssueDate(scope.row.issueTime) }} + + + +