From 00a53f0823eab39d699479445ae19ded2e9f240e Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Sun, 14 Nov 2021 13:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E6=B5=81=E7=A8=8B=E8=B0=83?= =?UTF-8?q?=E5=8F=96=20-=20=E5=88=86=E9=A1=B5=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../creatProcess/zdrzbzORzchgxxmsc/step1.vue | 331 +++++++++++++++++- 1 file changed, 330 insertions(+), 1 deletion(-) diff --git a/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue b/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue index 82e0bd747..53999e8fb 100644 --- a/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/zdrzbzORzchgxxmsc/step1.vue @@ -22,7 +22,7 @@
- 调取 + 调取 删除
@@ -210,6 +210,155 @@ @submit="handleSubmit" > + + +
+
+ +
+ + + + + + + + + + + + + + + + + + +
+ + 数据获取中 +
+
+ +
@@ -228,6 +377,31 @@ export default { }, data() { return { + productTypeOptions: [{label: '树形结构', value: 'TREE'}, {label: '下拉选项', value: 'SEL_OPTION'}], + loadSarStandard: false, + tableHeight: { + standardTableHeight: null + }, + tableData: { + // 标准表格数据 + standardData: [], + // 任务分解单数据 + taskTableData: [] + }, + standardSearchForm: { + lawId: '', + lawName: '', + productType: '', + page: 1, + pageSize: this.$store.getters.userInfo.configContent, + total: 0, + standType: 'INLAND', + standSort: '', + standName: '', + standEnName: '', + standNumber: '' + }, + standardDrawer: false, isSubmit: false, active: "1", //默认显示基础信息页面 // 基础信息form表单 @@ -312,6 +486,135 @@ export default { } }, methods: { + handleProcessStandardNext(status) { + switch (status) { + // 新增 + case 1: + this.selectedList = [] + this.standardCheckedList = [] + this.standardDrawer = false + this.verifySarStandard = true + this.clearFormData(this.form) + break + // 带入 + case 2: + if (this.standardCheckedList.length === 1) { + this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, { + _this: this + }, res => { + if (res && res.data) { + const bringData = res.data + + const json = Object.assign(bringData, bringData.attrInfoMap); + this.form = JSON.parse(JSON.stringify(json)) + this.form.TGRLAWS = JSON.parse(JSON.stringify(json)).TGRLAWS && JSON.parse(JSON.stringify(json)).TGRLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGRLAWS.split(',') : [] + this.form.TGDWLAWS = JSON.parse(JSON.stringify(json)).TGDWLAWS && JSON.parse(JSON.stringify(json)).TGDWLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).TGDWLAWS.split(',') : [] + this.form.NYLXLAWS = JSON.parse(JSON.stringify(json)).NYLXLAWS && JSON.parse(JSON.stringify(json)).NYLXLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).NYLXLAWS.split(',') : [] + this.form.YYRZLAWS = JSON.parse(JSON.stringify(json)).YYRZLAWS && JSON.parse(JSON.stringify(json)).YYRZLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).YYRZLAWS.split(',') : [] + this.form.ZRBMLAWS = JSON.parse(JSON.stringify(json)).ZRBMLAWS && JSON.parse(JSON.stringify(json)).ZRBMLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRBMLAWS.split(',') : [] + this.form.ZRGCSLAWS = JSON.parse(JSON.stringify(json)).ZRGCSLAWS && JSON.parse(JSON.stringify(json)).ZRGCSLAWS !== '[]' ? JSON.parse(JSON.stringify(json)).ZRGCSLAWS.split(',') : [] + this.form.prcNum = this.prcNum + this.form.prcName = this.prcName + this.form['id'] = bringData.id + this.standardDrawer = false + this.verifySarStandard = true + 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); + }) + + } else if (this.standardCheckedList.length > 1) { + this.$message.warning('最多可以带入一条政策信息') + } else { + this.$message.warning('请选择要带入的政策信息') + } + break + // 取消 + case 3: + this.selectedList = [] + this.standardCheckedList = [] + this.standardDrawer = false + break + } + }, + handleStandardPageChange(page) { + this.standardSearchForm.page = page + this.handleSearchStandard() + }, + handleStandardPageSizeChange(pageSize) { + this.standardSearchForm.page = 1 + this.standardSearchForm.pageSize = this.$store.getters.userInfo.configContent + this.handleSearchStandard() + }, + // 点击查看 + handlePreview(item) { + let routeUrl = this.$router.resolve({ + name: 'OtherLawsStandDetails', + params: { + id: item.id, + pageType: 'LAWS_STAND' + } + }) + window.open(routeUrl.href, '_blank') + }, + standSelectChange(data) { + this.selectedList = [] + for (let i = 0; i < data.length; i++) { + this.selectedList.push(data[i].id) + } + this.standardCheckedList = data + }, + //清空搜索条件 + handleResetSearch() { + this.standardSearchForm.lawId = '' + this.standardSearchForm.lawName = '' + this.standardSearchForm.productType = '' + this.standardSearchForm.standType = 'INLAND' + this.standardSearchForm.standNumber = '' + this.standardSearchForm.standSort = '' + this.standardSearchForm.standName = '' + this.standardSearchForm.standEnName = '' + this.handleSearchStandard() + }, + getDomesticStandardTable() { + this.loadSarStandard = true + this.$http.get('sarIssueTrack/issueTrack', this.standardSearchForm, {_this: this}, res => { + this.loadSarStandard = false + if (res.ok) { + this.standardSearchForm.page = 1 + this.tableData.standardData = res.data.records + this.standardSearchForm.total = res.data.total + } + }, e => { + this.loadSarStandard = false + }) + }, + handleSearchStandard() { + this.standardDrawer = true + this.$nextTick(() => { + // 动态设置表格高度 + this.tableHeight.standardTableHeight = $('.standard-table-wrap').height() + window.onresize = () => { + this.tableHeight.standardTableHeight = $('.standard-table-wrap').height() + } + }) + this.getDomesticStandardTable() + }, + /** + * 关闭修订 Drawer 的监听 + * @param done + */ + handleReviseDrawerClose(done) { + done() + }, //基础信息/人员信息 handleTabs(type) { this.active = type; @@ -429,6 +732,32 @@ export default { .zdrzbzORzchgxxmsc-step1 { + .standard-content { + height: 100%; + padding: 10px 0 0; + .content { + height: 100%; + display: flex; + flex-direction: column; + padding: 0 10px; + .standard-table-wrap { + flex: auto; + overflow-y: auto; + } + .pagination { + position: static; + /deep/ .pagination-slot { + padding: 0; + } + } + .search-area { + display: flex; + justify-content: left; + background: #FFF; + padding: 10px 10px 0; + } + } + } .myForm { /deep/ .el-form-item__content { line-height: 10px;