From 93c30650d44754418e6bd1e617f7d34b79818235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Fri, 17 Dec 2021 16:02:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E6=B5=81=E7=A8=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/cywbbzzxd/step3.vue | 303 ++++++++++++++++-- .../pages/creatProcess/jrbzhxh/step2.vue | 92 ++++-- 2 files changed, 341 insertions(+), 54 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue index 13a80e735..6d988ab50 100644 --- a/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/cywbbzzxd/step3.vue @@ -37,12 +37,19 @@ placeholder="请输入标准编号" clearable> + 手动查找 @@ -81,23 +88,18 @@ clearable> - - - - - - - + + + @@ -257,6 +259,134 @@ 流程列表加载中 + + + + + + + + + + + + + + + + + + + 查询 + + + + 清空 + + + + + + + + + + {{ scope.row.standSortShow }} {{ + scope.row.standNumber + }}-{{ scope.row.standYear }} + {{ + scope.row.standSortShow + }} + {{ scope.row.standNumber }} + + + + + {{ scope.row.standName || scope.row.standEnName }} + + + + + {{ scope.row.issueTime ? $moment(scope.row.issueTime).format("YYYY-MM-DD") : "" }} + + + + + + + + + + + + + 1){ + this.$message.warning('您只能选择一条标准进行添加') + }else{ + this.wbbzform.standName = this.standList[0].standName || this.standList[0].standEnName + this.wbbzform.standType = this.standList[0].standSort + this.wbbzform.standNumber = this.standList[0].standSort + '\xa0\xa0 '+ this.standList[0].standNumber + this.standModel = false + } + + }, + //添加标准取消事件 + cancelStand() { + this.standModel = false; + }, + typeChange(type) { + this.standardSearch.standType = type; + }, + clearStandSearch() { + this.standardSearch = { + standType: "", + standNumber: "" + }; + this.getStandData(); + }, + getStandDataBtn(){ + this.pageNo =1; + this.getStandData(); + }, + //查询项目下的标准 + getStandData() { + this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPageByWk1", { + standType: this.standardSearch.standType, + standNumber: this.standardSearch.standNumber, + page: this.pageNo, + pageSize: this.pageSizeNo + }, { + _this: this + }, res => { + this.standardData = res.data.list; + this.standardData.forEach(item => { + this.$set(item, "ZCCSSRQ", item.zccssrq); + this.$set(item, "XCXSSRQ", item.xcxssrq); + }) + this.totalNo = res.data.count; + }, e => { + }); + }, + // 点击查看 + handlePreview(item) { + let routeUrl = this.$router.resolve({ + name: "OtherStandardDetails", + params: { + id: item.id, + pageType: "INLAND_STAND" + } + }); + window.open(routeUrl.href, "_blank"); + }, + //添加标准select的改变 + selectThree(data) { + this.standList = data; + }, + pageChangeNo(page) { + this.pageNo = page; + this.getStandData(); + }, + pageSizeChangeNo(pageSize) { + this.pageSizeNo = this.$store.getters.userInfo.configContent; + this.getStandData(); + + }, handleSave() { }, //不备案 @@ -520,6 +772,9 @@ export default { background: #E6A23C; } } - + .table-height{ + height: calc(~'100% - 65px'); + overflow: auto; + } } diff --git a/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue b/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue index eb2c12a78..edfd581ec 100644 --- a/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/jrbzhxh/step2.vue @@ -33,37 +33,37 @@ - + + v-for="item in comityOptionsOne" + :key="item.id" + :label="item.name" + :value="item.id"> - + + v-for="item in comityOptionsTwo" + :key="item.id" + :label="item.name" + :value="item.id"> - + + v-for="item in comityOptionsOneThree" + :key="item.id" + :label="item.name" + :value="item.id"> - + @@ -122,7 +122,7 @@ @@ -132,6 +132,7 @@ @@ -149,20 +150,27 @@ + + + + + + @@ -349,6 +357,9 @@ export default { recordLoading: false, loading: false, modalshowflag: false, + comityOptionsOne: [], //工作组数据 + comityOptionsTwo: [], //分标委数据 + comityOptionsOneThree: [], //工作组数据 drawerTitle: '', nodeList: [], uploadFileListPath: "api/att/attFile/upload", // 上传的地址 @@ -391,16 +402,12 @@ export default { associationData: [], //协会表格信息 detailData: [], //审批历史信息 selectedId: "", - associationOptions: [{ - value: '选项1', - label: '1' - }, { - value: '选项2', - label: '2' - },{ - value: '选项3', - label: '3' - }], + comityRoleOptions: [ + {value: '0', label: '委员'}, + {value: '1', label: '观察委员'}, + {value: '2', label: '通讯委员'}, + {value: '3', label: '成员'} + ], }; }, methods: { @@ -683,8 +690,33 @@ export default { } return true; }, + /** 获取分标委数据字典数据 */ + comityChange() { + this.wbbzform.committee = '' + this.wbbzform.workingGroup = '' + this.comityOptionsOne.forEach(item => { + if (item.children !== null && item.id === this.wbbzform.associationName) { + this.comityOptionsTwo = item.children + } + }) + }, + /** 获取工作组字典数据 */ + comityChangeOne() { + this.wbbzform.workingGroup = '' + this.comityOptionsTwo.forEach(item => { + if (item.children !== null && item.id === this.wbbzform.committee) { + this.comityOptionsOneThree = item.children + } + }) + }, }, mounted() { + /* 获取标准法规工作组数据 */ + this.$http.get('wg_work_group/researchData',{type:0},{ + _this: this + }, res => { + this.comityOptionsOne = res.data.children + }) this.bpnId = this.$route.query.bpnId if (this.bpnId !== undefined) { this.getDatas()