diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 51d8dc21e..9e7527983 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -46,7 +46,7 @@
-

+

{{ sarStandardsInfoEO.standSortShow + ' ' + sarStandardsInfoEO.standNumber + '-' + sarStandardsInfoEO.standYear @@ -106,7 +106,7 @@ - {{ textStatusMap[sarStandardsInfoEO.textStatus] || '-' }} + {{ textStatusMap[sarStandardsInfoEO.textStatus] || '-' }}

{{ sarStandardsInfoEO.issueTime || '-' @@ -3606,7 +3606,7 @@ export default { .modular-content-p-name { display: inline-block; - width: 220px; + width: 213px; height: 43px; line-height: 43px; font-size: 16px; @@ -3620,10 +3620,10 @@ export default { .modular-content-p-val { display: inline-block; width: calc(~'100% - 225px'); - min-height: 50px; - line-height: 50px; - font-size: 16px; - color: #999999; + //min-height: 50px; + //line-height: 50px; + //font-size: 16px; + //color: #999999; word-break: break-all; //overflow: hidden; //white-space: nowrap; @@ -3637,9 +3637,10 @@ export default { & > .files-title { width: calc(~'100% - 120px'); - min-height: 50px; - line-height: 50px; - font-size: 16px; + //报批稿撑开 + //min-height: 50px; + //line-height: 50px; + //font-size: 16px; color: #409EFF; & > a { @@ -3669,7 +3670,8 @@ export default { .decomposition-btn { position: absolute; - top: 10px; + //报批稿撑开 + //top: 10px; right: 0; padding: 0 10px; height: 30px; diff --git a/src/pages/home2/components/todoList/index.vue b/src/pages/home2/components/todoList/index.vue index a5db7bae9..7626d2b83 100644 --- a/src/pages/home2/components/todoList/index.vue +++ b/src/pages/home2/components/todoList/index.vue @@ -10,7 +10,8 @@

@@ -625,7 +626,7 @@ export default { prcType: row.prcType } }) - } else if (row.taskInfo === '标准法规部经理审批') { + } else if (row.taskInfo === '确认人确认') { this.$router.push({ name: 'xmqdqrStep3', query: { @@ -636,6 +637,17 @@ export default { prcType: row.prcType } }) + }else if(row.taskInfo === '产品工程经理汇总清单'){ + this.$router.push({ + name: 'xmqdqrStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) } break case '14': diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue index f0847398f..b54c9cb35 100644 --- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue @@ -1874,9 +1874,9 @@ this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : '' console.log(this.form) - this.form.ssrq = this.$moment(this.form.ssrq).format("YYYY-MM-DD") - this.form.zccssrq = this.$moment(this.form.zccssrq).format("YYYY-MM-DD") - this.form.xcxssrq = this.$moment(this.form.xcxssrq).format("YYYY-MM-DD") + this.form.ssrq = this.form.ssrq?this.$moment(this.form.ssrq).format("YYYY-MM-DD"):null + this.form.zccssrq = this.form.zccssrq?this.$moment(this.form.zccssrq).format("YYYY-MM-DD"):null + this.form.xcxssrq = this.form.xcxssrq?this.$moment(this.form.xcxssrq).format("YYYY-MM-DD"):null this.form.prcNum = this.prcNum this.form.prcName = this.prcName this.form['id'] = bringData.id diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue index 21c7f9d79..b4d4fd058 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue @@ -146,32 +146,6 @@ width="180px" > - - - - - - - -
@@ -653,8 +627,8 @@ @pageChange="handleSelectPageChange" @pageSizeChange="handleSelectPageSizeChange">
diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue index d9a30164e..764893fb9 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step3.vue @@ -2,7 +2,7 @@
- +
基础信息
@@ -60,7 +60,7 @@ :data="dataList" border ref="selection" - height="65%" + height="59%" @selection-change="selectStandChange" style="width: 100%; border:1px solid #ccc" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', @@ -139,31 +139,34 @@ > + label="标准是否涉及"> + - - - - + width="180" + label="备注"> + +
@@ -645,8 +648,8 @@ @pageChange="handleSelectPageChange" @pageSizeChange="handleSelectPageSizeChange">
@@ -678,13 +681,6 @@ - - { if(item.form === undefined){ this.qdform = JSON.parse(JSON.stringify(item)); this.qdform.prcNum = this.prcNum; this.qdform.prcName = this.prcName; this.qdform["id"] = item.id; - this.projectId = item.projectId; - //获取清单id 查询对应清单下的标准 - this.detailedId = item.detailedListId; - this.getStandData(); + this.dataList = item.dataList + this.dataList.forEach(item => { + this.$set(item, 'involve', 'involve') + this.$set(item, 'remarks', '') + }) + // this.projectId = item.projectId; + // //获取清单id 查询对应清单下的标准 + // this.detailedId = item.detailedListId; + // this.getStandData(); }else{ this.qdform = item.form this.dataList =item.form.dataList @@ -985,26 +987,44 @@ export default { this.saveLoading = false; }); }, + handleRemark(){ + this.dataList.map(item => { + if(item.involve === 'noInvolve'){ + comFlag + } + }) + }, //提交事件 handleSubmit() { - this.isSubmit = true; - this.qdform.commentText = this.commentText; - this.qdform.dataList = this.dataList - const json = JSON.stringify(this.qdform); - 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("/processCenter"); + let comFlag = 0 + this.dataList.map(item => { + if(item.involve === 'noInvolve' && item.remarks === ''){ + comFlag++ } - this.isSubmit = false; - }, e => { - }); + }) + if(comFlag > 0){ + this.$message.warning('请填写不涉及的备注信息') + }else{ + this.isSubmit = true; + this.qdform.currentPerson = this.$store.getters.userInfo.userName; + this.qdform.commentText = this.commentText; + this.qdform.dataList = this.dataList + const json = JSON.stringify(this.qdform); + 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("/processCenter"); + } + this.isSubmit = false; + }, e => { + }); + } }, addList() { this.searchLawBtn() @@ -1181,6 +1201,10 @@ export default { this.dataList.push(item) } }) + this.dataList.forEach(item => { + this.$set(item, 'involve', 'involve') + this.$set(item, 'remarks', '') + }) this.standModel = false } }, diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue index 7c4768cf9..4f15bd8ec 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step4.vue @@ -2,7 +2,7 @@
- +
基础信息
@@ -60,7 +60,7 @@ :data="dataList" border ref="selection" - height="65%" + height="59%" @selection-change="selectStandChange" style="width: 100%; border:1px solid #ccc" :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', @@ -139,31 +139,18 @@ > + label="标准是否涉及"> - - - - + width="180" + label="备注"> +
@@ -252,163 +239,432 @@
-
-
-
- - - - - - - - - - - - - - - - - - - 查询 - - 清空 - - - -
- + + + + + + + + + + + + + + + + + + + + + + 查询 + + + + + 清空 + + + + 数据获取中 + + + + + +
+ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
- +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + +
- - - - - - - - - - - - - - + + + + + + + + + + + + + + + { + if(item.involve === 'involve'){ + item.involve = '涉及' + }else if(item.involve === 'noInvolve'){ + item.involve = '不涉及' + } + }) // this.projectId = item.projectId; - //获取清单id 查询对应清单下的标准 - this.detailedId = item.detailedListId; + // //获取清单id 查询对应清单下的标准 + // this.detailedId = item.detailedListId; // this.getStandData(); - this.getStand(); }else{ this.qdform = item.form this.dataList =item.form.dataList this.detailedId = item.form.detailedListId; - this.getStand(); } }); }, //查询清单下的标准 - // getStandData() { - // this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, { - // _this: this - // }, res => { - // this.dataList = res.data.records; - // this.dataList.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(","); - // } - // } - // } - // }); - // }); - // }, + getStandData() { + this.$http.get("sarStandProjectLibrary/queryStandInfo", { id: this.projectId, cars: '1', }, { + _this: this + }, res => { + this.dataList = res.data.records; + this.dataList.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(","); + } + } + } + }); + this.dataList.map(item => { + if(item.zrbm === '[]'){ + item.zrbm = '' + } + }) + }); + }, // 接受按钮 handleAccept(){ this.isSubmit = true @@ -677,28 +973,46 @@ export default { this.saveLoading = false; }); }, + handleRemark(){ + this.dataList.map(item => { + if(item.involve === 'noInvolve'){ + comFlag + } + }) + }, //提交事件 handleSubmit() { - this.isSubmit = true; - this.qdform.commentText = this.commentText; - this.qdform.dataList = this.dataList - const json = JSON.stringify(this.qdform); - 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("/processCenter"); + let comFlag = 0 + this.dataList.map(item => { + if(item.involve === 'noInvolve' && item.remarks === ''){ + comFlag++ } - this.isSubmit = false; - }, e => { - }); + }) + if(comFlag > 0){ + this.$message.warning('请填写不涉及的备注信息') + }else{ + this.isSubmit = true; + this.qdform.commentText = this.commentText; + this.qdform.dataList = this.dataList + const json = JSON.stringify(this.qdform); + 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("/processCenter"); + } + this.isSubmit = false; + }, e => { + }); + } }, addList() { + this.searchLawBtn() this.standModel = true; }, //批量删除 @@ -726,8 +1040,9 @@ export default { } }, //添加标准勾选框数据 - selectStand(data) { - this.standList = data; + handleSelectTableChange (data) { + this.handleSelectTableList = data + console.log(this.handleSelectTableList); }, selectStandChange(data){ this.projectStand = data @@ -764,52 +1079,141 @@ export default { } }, + //手动查找的清空按钮 + clearLawBtn(){ + this.lawInfoTableLoading = true + this.handleSelectForm.lawNumber = '' + this.handleSelectForm.standNumber = '' + this.handleSelectForm.lawsNumber = '' + this.handleSelectForm.standCode = '' + //清空标准名称/政策名称的查询 + this.handleSelectForm.lawName = '' + this.handleSelectForm.standName = '' + this.handleSelectForm.numberName = '' + this.searchLawBtn() + }, //添加标准的查询按钮 - search() { - this.page = 1; - this.getStand(); - }, - clearSearch() { - this.standCommonlySearch = { - standSort: "", - standNumber: "", - standType: "" - }; - this.getStand(); - }, - pageChange(page) { - this.page = page; - this.getStand(); - }, - pageSizeChange(pageSize) { - this.pageSize = pageSize; - this.getStand(); - }, - //查询清单下的标准 - getStand() { - this.$http.get("sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById", { - id: this.detailedId, - page: this.page, - Size: this.pageSize, - ...this.standCommonlySearch - }, { - _this: this - }, res => { - if (res.data === null) { - this.standardData = ""; - this.totalDo = ""; - } - this.standardData = res.data.records; - this.standardData.forEach(item => { - if (item.zccssrqgj === "-" || item.zccssrqgj === 'null' || item.zccssrqgj === 'undefined') { - item.zccssrqgj = ""; + searchLawBtn(){ + this.lawInfoTableLoading = true + if (this.handleSelectForm.dataSource === 'INLAND'){ + this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{ + _this: this + },res=>{ + console.log('国内标准库数据',res) + if (res.ok){ + this.lawInfoTable = res.data.list + this.handleSelectForm.total = res.data.count + if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { + this.lawInfoTableLoading = true + this.handleSelectPageChange(1) + }else { + this.lawInfoTableLoading = false + this.lawInfoTableLoading = false + } + }else { + this.$message.error(res.message) } - if (item.xcxssrqgj === "-" || item.xcxssrqgj === 'null' || item.xcxssrqgj === 'undefined' ) { - item.xcxssrqgj = ""; + },e=>{ + this.lawInfoTable = [] + this.handleSelectForm.total = 0 + }) + }else if(this.handleSelectForm.dataSource === 'FOREIGN'){ + this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage',this.handleSelectForm,{ + _this: this + },res=>{ + if (res.ok){ + this.lawInfoTable = res.data.list + this.handleSelectForm.total = res.data.count + if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { + this.lawInfoTableLoading = true + this.handleSelectPageChange(1) + }else { + this.lawInfoTableLoading = false + } + }else { + this.$message.error(res.message) + this.lawInfoTableLoading = false } - }); - this.total = res.data.total; - }); + },e=>{ + this.lawInfoTable = [] + this.handleSelectForm.total = 0 + }) + }else if(this.handleSelectForm.dataSource === 'BUSINESS_STAND'){ + this.$http.get('lawss/sarBussionessStand/getSarBussionStandPage',this.handleSelectForm,{ + _this: this + },res=>{ + if (res.ok){ + this.lawInfoTable = res.data.list + this.handleSelectForm.total = res.data.count + if ((this.lawInfoTable.length === 0 || this.lawInfoTable === []) && this.handleSelectForm.page !== 1) { + this.lawInfoTableLoading = true + this.handleSelectPageChange(1) + }else { + this.lawInfoTableLoading = false + } + }else { + this.$message.error(res.message) + this.lawInfoTableLoading = false + } + },e=>{ + this.lawInfoTable = [] + this.handleSelectForm.total = 0 + }) + }else { + this.$message.warning('请先选择标准/政策来源') + } + }, + handleSelectConfirm(){ + if(this.handleSelectTableList.length < 1){ + this.$message.warning('请至少选择一条数据进行添加') + }else{ + this.standList.forEach(item =>{ + if(item.ssrq === "-"){ + item.ssrq = '' + } + if(item.zrbm === '[]'){ + item.zrbm ='' + } + }) + this.handleSelectTableList.map(item => { + let addIndex + addIndex = this.dataList.findIndex(items =>{ + return items.id === item.id + }) + if(addIndex > -1){ + this.$message.warning('请勿重复添加数据') + }else{ + this.dataList.push(item) + } + }) + this.dataList.forEach(item => { + this.$set(item, 'involve', 'involve') + this.$set(item, 'remarks', '') + }) + this.standModel = false + } + }, + dataSourceChange() { + this.handleSelectForm.page = 1 + this.lawInfoTableLoading = true + this.handleSelectForm.standType = this.handleSelectForm.dataSource + this.searchLawBtn() + }, + //根据标准编号的查询 + lawNumberSearch() { + this.handleSelectForm.standNumber = this.handleSelectForm.lawNumber + this.handleSelectForm.lawsNumber = this.handleSelectForm.lawNumber + this.handleSelectForm.standCode = this.handleSelectForm.lawNumber + }, + handleSelectPageChange(page){ + this.lawInfoTableLoading = true + this.handleSelectForm.page = page + this.searchLawBtn() + }, + handleSelectPageSizeChange(pageSize){ + this.lawInfoTableLoading = true + this.handleSelectForm.pageSize = pageSize + this.searchLawBtn() }, }, computed: { diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue index 85f9184d6..ca2543c73 100644 --- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step5.vue @@ -132,32 +132,6 @@ width="180px" > - - - - - - - -
diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue index 9ff4aa477..a5e03bd72 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue @@ -879,7 +879,7 @@ export default { prcType: row.prcType } }) - } else if(row.taskInfo === '标准法规部经理审批'){ + } else if(row.taskInfo === '确认人确认'){ this.$router.push({ name: 'xmqdqrStep3', query: { @@ -890,6 +890,17 @@ export default { prcType: row.prcType } }) + }else if(row.taskInfo === '产品工程经理汇总清单'){ + this.$router.push({ + name: 'xmqdqrStep4', + query: { + taskIds: row.taskIds, + prcId: row.prcId, + prcNum: row.prcNum, + prcName: row.prcName, + prcType: row.prcType + } + }) } break case 'laws2': diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 322658c1c..e6c26d318 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -150,7 +150,7 @@ :loading="delLoading" size="mini" @click="deleteStand(2)" - v-btn-permission="'c09dc12531085e30e39bbdc6cb6116ba'">批量删除 + v-btn-permission="'dbaf9df2990a595c8abea28e68b1a681'">批量删除