diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue new file mode 100644 index 000000000..7d75e4376 --- /dev/null +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/addModel.vue @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/approvalHistory.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/approvalHistory.vue index 2fe846106..77a7dbd72 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/approvalHistory.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/approvalHistory.vue @@ -64,14 +64,14 @@ } }, mounted() { - this.getHistoryData() + // this.getHistoryData() }, methods: { getHistoryData() { this.$http.get('lawss/activiti/get_list_by_instance', { prcNum: this.$route.query.prcNum, }, {}, res => { - this.histortData = res + this.histortData = res || [] }, e => { }) }, diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/policySolicitingOpinions.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/policySolicitingOpinions.vue index 764b60b90..4b726ffb6 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/policySolicitingOpinions.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/policySolicitingOpinions.vue @@ -46,7 +46,7 @@ :data="tableData.standardData" tooltip-effect="dark" style="width: 100%;" - :height="tableHeight.standardTableHeight" + height="calc(100vh - 220px)" border class="drag-table" :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}" @@ -67,7 +67,8 @@ align="center" > - {{ scope.row.lawsNumber }} + {{ + scope.row.lawsNumber }} - {{ scope.row.issueTime ? $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }} + {{ scope.row.issueTime ? + $moment(scope.row.issueTime).format('YYYY-MM-DD') : '' }} + export default { name: "policySolicitingOpinions", - data(){ - return{ - standardDrawer: false, - standardSearchForm:{ - page: 1, - pageSize: this.$store.getters.userInfo.configContent, - }, - tableData: { - // 标准表格数据 - standardData: [], - // 任务分解单数据 - taskTableData: [] - }, - tableHeight: { - standardTableHeight: null - }, - standardCheckedList:[], - disabledXX:false, - dataLoading:false, - } + data() { + return { + standardDrawer: false, + standardSearchForm: { + page: 1, + pageSize: this.$store.getters.userInfo.configContent, + }, + tableData: { + // 标准表格数据 + standardData: [], + // 任务分解单数据 + taskTableData: [] + }, + tableHeight: { + standardTableHeight: null + }, + standardCheckedList: [], + disabledXX: false, + dataLoading: false, + loadSarStandard:false, + } }, - methods:{ + methods: { handleReviseDrawerClose(done) { done() }, @@ -179,7 +183,11 @@ }, getDomesticStandardTable() { this.loadSarStandard = true - this.$http.get('lawss/sarLawsInfo/page', this.standardSearchForm, {}, res => { + let query = { + standType: 'INLAND', + ...this.standardSearchForm + } + this.$http.get('lawss/sarLawsInfo/page', query, {}, res => { this.loadSarStandard = false if (res.ok) { this.tableData.standardData = res.data.list @@ -211,11 +219,21 @@ this.standardSearchForm.pageSize = pageSize this.handleSearchStandard() }, - filterObj(obj){ - if(obj && obj !== ''){ - if(obj instanceof Array){ + //清空搜索条件 + handleResetSearch() { + this.standardSearchForm = { + page: 1, + pageSize: this.$store.getters.userInfo.configContent, + } + setTimeout(() => { + this.handleSearchStandard() + }, 100) + }, + filterObj(obj) { + if (obj && obj !== '') { + if (obj instanceof Array) { return obj; - }else { + } else { return obj.split(",") } } @@ -225,49 +243,22 @@ switch (status) { // 带入 case 2: - if(!this.standardCheckedList.length){ + if (!this.standardCheckedList.length) { this.$message.warning('请至少选择一条政策信息进行带入') - }else if(this.standardCheckedList.length > 1){ + } else if (this.standardCheckedList.length > 1) { this.$message.warning('您只能选择一条政策信息进行带入') - }else{ + } else { this.dataLoading = true - this.standardDrawer = false this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, { _this: this }, res => { if (res && res.data) { const bringData = res.data + this.standardDrawer = false const json = Object.assign(bringData, bringData.attrInfoMap); - this.form = JSON.parse(JSON.stringify(json)) - const dateArr = [] - if(this.form.commentCycleStart && this.form.commentCycleEnd){ - dateArr[0] = this.form.commentCycleStart - dateArr[1] = this.form.commentCycleEnd - this.form.cycleTime = dateArr - } - this.form['lawsSyqy'] = this.filterObj(this.form['lawsSyqy']) - this.form['lawsSycx'] = this.filterObj(this.form['lawsSycx']) - this.form['lawsLabel'] = this.filterObj(this.form['lawsLabel']) - this.form['YYRZLAWS'] = this.filterObj(this.form['YYRZLAWS']) - this.form['NYLXLAWS'] = this.filterObj(this.form['NYLXLAWS']) - this.form['TGRLAWS'] = this.filterObj(this.form['TGRLAWS']) - this.form['ZRBMLAWS'] = this.filterObj(this.form['ZRBMLAWS']) - this.form['TGDWLAWS'] = this.filterObj(this.form['TGDWLAWS']) - this.form.prcNum = this.prcNum - this.form.prcName = this.prcName - this.form['id'] = bringData.id + this.$emit('policySolicitingOpinionsForm', json) this.dataLoading = false - this.busVsFunc() - this.modelFunc() - this.$forceUpdate() } - // 遍历对象初始化文件信息 - for (const p in this.form) { - if (typeof (this.form[p]) != "function") { - this.initializeFileList(p, this.form[p]); - } - } - console.log("res", res); }) } break @@ -282,6 +273,41 @@ } - diff --git a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue index 103a302aa..40b9f52fa 100644 --- a/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue +++ b/src/pages/processCenter/pages/creatProcess/policyConsultation/components/solicitationList.vue @@ -12,62 +12,79 @@ 批量删除 生成汇总单 生成上报意见 + 导出 + + + - 编辑 + + + + + 编辑 + + 删除 + + + + - +