From 45345d44a25b5385923533b601d2271d9a424f2f Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Wed, 4 Aug 2021 18:00:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=90=9C=E7=B4=A2=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=8C=B9=E9=85=8D=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../searchCenter/pages/advancedSearch.vue | 544 ++++++++++++++---- 1 file changed, 422 insertions(+), 122 deletions(-) diff --git a/src/pages/searchCenter/pages/advancedSearch.vue b/src/pages/searchCenter/pages/advancedSearch.vue index 8de49527b..4611f40a4 100644 --- a/src/pages/searchCenter/pages/advancedSearch.vue +++ b/src/pages/searchCenter/pages/advancedSearch.vue @@ -54,13 +54,15 @@ - - - {{ opt.label }} + + + @@ -83,41 +85,60 @@ - - + + - - + + - + + + - - + + + + - + + v-model="standForm.issueTime" + type="date" + placeholder="请选择标准发布日期" + value-format="yyyy-MM-dd"> @@ -125,115 +146,181 @@ - - - - + + + - + + v-model="standForm.ssrq" + type="date" + placeholder="请选择标准实施日期(标准文本)" + value-format="yyyy-MM-dd"> - + + v-model="standForm.xcxssrq" + type="date" + placeholder="请选择新车型实施日期(标准文本" + value-format="yyyy-MM-dd"> - + + v-model="standForm.zccssrq" + type="date" + placeholder="请选择在产车实施日期(标准文本)" + value-format="yyyy-MM-dd"> - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + @@ -245,40 +332,68 @@ - - + + + - + - - + + + - - + + + + - - + + @@ -939,9 +1054,13 @@ import "../../../assets/zTree/js/jquery.ztree.core.js"; import "../../../assets/zTree/js/jquery.ztree.excheck.js"; import "../../../assets/zTree/js/jquery.ztree.exedit.js"; -// import deptTree from '../../processCenter/pages/components/deptTree' +import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; + export default { name: "advancedSearch", + components: { + TreeSelectNew + }, data() { return { tableLoading: false, @@ -949,6 +1068,42 @@ export default { saveRoleBuss: [], bussRoleFlag: false, drawerModal: false, + modalShowFlag1: false, // drawer开关 + modalShowFlag2: false, // drawer开关 + modalShowFlag3: false, // drawer开关 + modalShowFlag4: false, // drawer开关 + url:'', + urlChild:'', + drawerTitle: '', //drawer标题 + showCheckBox: true, // 树形控件是否展示多选框 + defaultProps: { + children: 'children', + label: 'menuName' + }, + defaultCodeProps: { + children: 'children', + label: 'code' + }, + defaultModelProps: { + children: 'children', + label: 'model' + }, + type: '', + defaultUserProps: { + children: 'children', + label: 'name' + }, + key:1, + key1:2, + key2:3, + key3:4, + nodeKey: 'id', + defaultCheckedKeys: [], + nodeKeyCode: 'code', + nodeKeyModel: 'model', + defaultCheckedKeys1: [], + defaultCheckedKeys2: [], + defaultCheckedKeys3: [], drawerModalstyles: { height: "calc(100% - 55px)", overflow: "auto", @@ -975,11 +1130,7 @@ export default { selectIndex: "stand", nature: "", // 标准性质 country: "", // 国家 - standSort: "", // 标准类别 applyArctic: "", // 适用车型 - standNumber: "", // 标准编号 - standYear: "", // 标准年份 - standEnName: "", // 标准英文名称 standState: "", // 标准状态 replaceStandNum: "", // 代替标准号 replacedStandNum: "", // 被代替标准号 @@ -987,7 +1138,6 @@ export default { adoptExtent: "", // 采标程度 energyKind: "", // 能源种类 applyAuth: "", // 适用认证 - issueTime: "", // 发布日期 issueTimeSt: "", // 发布日期(开始) issueTimeEd: "", // 发布日期(结束) putTime: "", // 实施日期 @@ -1023,12 +1173,100 @@ export default { registerPutTime: "", // 注册登记车实施日期 itemsNum: "", // 条款号 itemsName: "", // 条款名称 - parts: "" // 关联零部件 + parts: "", // 关联零部件 + // 基础信息 + textStatus: '', // 文本状态 + standYear: '', // 标准年份 + standInData: '0', // 标准类型 + standSort: '', // 标准类别 + standNumber: '', // 标准编号 + standNature: '', // 标准性质 + standEnName: '', // 英文名称 + standName: '', // 中文名称 + signFlag: '1', // 是否需要会签 + issueTime: '', // 发布时间 + isRelateAccess: '', // 是否纳入认证清单 + standSystem: '',// 标准体系 + standSystemName: '',// 标准体系 + gxhbq: '', // 标签 + // 实施日期 + ssrq: '', // 实施日期(标准文本) + xcxssrq: '', // 新车型实施日期(标准文本) + zccssrq: '', // 在产车实施日期(标准文本) + ssrqgj: '', // 实施日期(国际) + xcxssrqgj: '', // 新车型实施日期(国际) + zccssrqgj: '', // 在产车实施日期(国际) + // 文本信息 + ca: '', // 草案 + fbgbjbd: '', // 发布稿 + xgd: '', // 修改单 + bpg: '', // 报批稿 + ssg: '', // 送审稿 + zqyjg: '', // 征求意见稿 + jdwj: '', // 解读文件 + zbjbd: '', // 增补件 + bfbdtbzh: '', // 增补件 + kwj: '', // 勘误件 + caName: '', // 草案 + fbgbjbdName: '', // 发布稿 + xgdName: '', // 修改单 + bpgName: '', // 报批稿 + ssgName: '', // 送审稿 + zqyjgName: '', // 征求意见稿 + jdwjName: '', // 解读文件 + zbjbdName: '', // 增补件 + kwjName: '', // 勘误件 + glwjName: '', // 关联文件 + // 适用范围 + txlb: '', // 体系类别 + gkdw: '', // 归口管理部门 + qcdw: '', // 起草单位 + wssmr: '', // 我司署名人 + cysd: '', // 我司参与深度 + cllx: '', // 适用车型 + nylx: '',// 能源类型 + sycpx: '',// 适用产品线 + syrz: '', // 适用认证 + zrbm: '', // 责任部门 + zrgcs: '', // 责任工程师 + cycvppsbm: '', // 关联模块--乘用车VPPS编码 + cycvppscn: '', // 关联模块--乘用车vpps中文名称 + kccvppsbm: '', // 关联模块--卡车VPPS编码 + kccvppscn: '', // 关联模块--卡车vpps中文名称 + dybxh: '', // 模块结构单元变型号 + dymc: '', // 模块结构单元名称 + // 关联信息 + dtbjh: '', // 代替标准号 + cbbh: '', // 采标编号 + cbcd: '', // 采标程度 + yybj: '', // 引用标准 + byybj: '', // 被引用标准 + glwj: '', // 关联文件 + xglc: '', // 相关流程 + chjl: '', // 参会记录 }, // 国家/地区 countryOptions: [], + standSystemOptions: [], // 标准体系 + busVppsOptions: [], // 车系体系架构 + busVppsChildOptions: [], // 车系体系架构子集合 + modelOptions: [], // 模块体系架构 + modelChildOptions: [], // 模块体系架构子集合 + cysdOptions: [], // 我司参与深度 + sycpxOptions: [], // 适用产品线 + zrbmOptions: [], // 责任部门 + zrgcsOptions: [], // 责任工程师 + txlbOptions: [], // 体系类别 // 标准类别 standSortOptions: [], + // 我司署名人 + wssmrOptions: [], + // 体系类别 + qcdwOption: [], + // 归口管理部门 + gkglbmOptions: [], + // 采标程度 + cbcdOptions: [], // 标准性质 standNatureOptions: [], // 标准、文件状态 @@ -1081,6 +1319,74 @@ export default { }; }, methods: { + choiceZRR1 (type, title, id) { + this.drawerTitle = title + this.modalShowFlag1 = true + this.key++ + }, + choiceZRR2 (type, title, id) { + this.drawerTitle = title + this.modalShowFlag2 = true + this.url = '' + this.urlChild = '' + this.url="sarVppsTree/list" + this.urlChild="sarVppsTree/childByList" + this.key1++ + }, + choiceZRR3 (type, title, id) { + this.drawerTitle = title + this.modalShowFlag3 = true + this.url = '' + this.urlChild = '' + this.url="sarVppsTree/list" + this.urlChild="sarVppsTree/childByList" + this.key2++ + }, + choiceZRR4 (type, title, id) { + this.drawerTitle = title + this.modalShowFlag4 = true + this.url = '' + this.urlChild = '' + this.url="sarModelTree/list" + this.urlChild="sarModelTree/childByList" + this.key3++ + }, + popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.standForm.dybxh = checkedData.map(item => item.model).join(",") + this.standForm.dymc = checkedData.map(item => item.name).join(",") + }else { + this.standForm.dybxh = checkedData.model + this.standForm.dymc = checkedData.name + } + } + this.modalShowFlag4 = false + }, + popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.standForm.kccvppsbm = checkedData.map(item => item.code).join(",") + this.standForm.kccvppscn = checkedData.map(item => item.chineseName).join(",") + }else { + this.standForm.kccvppsbm = checkedData.code + this.standForm.kccvppscn = checkedData.chineseName + } + } + this.modalShowFlag3 = false + }, + popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.standForm.cycvppsbm = checkedData.map(item => item.code).join(",") + this.standForm.cycvppscn = checkedData.map(item => item.chineseName).join(",") + }else { + this.standForm.cycvppsbm = checkedData.code + this.standForm.cycvppscn = checkedData.chineseName + } + } + this.modalShowFlag2 = false + }, // 关联零部件 getRelationParts() { this.$http.get("sys/dictype/getDicTypeListCode", {}, { _this: this }, res => { @@ -1473,6 +1779,7 @@ export default { nowStandForm.putYear = this.$dateFormat(this.standForm.putYear, "yyyy"); } this.exportSearchInfo = nowStandForm; + nowStandForm['sarStandAttrEOStr'] = JSON.stringify(nowStandForm).replace(/"/g, "'") this.$http.post("search/searchCenter/searchSarBykey", nowStandForm, { _this: this, loading: "resultLoading" @@ -2038,9 +2345,6 @@ export default { window.open("/api/search/searchCenter/exportSearchCenterDatas?exportDatas=" + searchInfoEO + "&searchType=" + this.selectIndex); } }, - components: { - // deptTree - }, props: {}, computed: { // 条件按钮提示 @@ -2069,7 +2373,6 @@ export default { } }, mounted() { - this.getRelationParts(); // 查询检索历史 this.getSearchHistoty(); // 切换标签 @@ -2077,29 +2380,26 @@ export default { _this: this }, res => { // 设置高级搜索下拉框 - this.standNatureOptions = res.data.SARPROPERTY; // 标准性质 - // this.standNatureOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) + this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 + this.standNatureOptions = res.data.SARPROPERTY // 标准性质 + this.standStateOptions = res.data.WBZTCLASS // 文本状态 + this.standSystemOptions = res.data.BZTXCLASS // 标准体系 + this.applyArcticOptions = res.data.ENERGYTYPES // 根据需求文档,产品类别对应标准属性中的“适用车型” + this.categoryOptions = res.data.NYLXCLASS // 能源类型 + this.applyAuthOptions = res.data.SYRZCLASS // 适用认证 + this.cysdOptions = res.data.WSCYSD // 我司参与深度 + this.wssmrOptions = res.data.WSSMR // 我司署名人 + this.qcdwOption = res.data.QCDW // 体系类别 + this.gkglbmOptions = res.data.GKGLBM // 归口管理部门 + this.cbcdOptions = res.data.DEGREESTANDARD // 采标程度 + this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 + this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 + this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 this.countryOptions = res.data.COUNTRY; - // this.countryOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) - // this.standSortOptions = res.data.STANDCLASSIFY - // this.standSortOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) - this.applyArcticOptions = res.data.PRODUCTTYPE; // 根据需求文档,产品类别对应标准属性中的“适用车型” - // this.applyArcticOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) - this.applyAuthOptions = res.data.PROVETYPE; // 适用认证下拉框 - // this.applyAuthOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) - this.categoryOptions = res.data.CATEGORY; - // this.categoryOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) - this.standStateOptions = res.data.STANDSTATE; - // this.standStateOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) this.adoptExtentOptions = res.data.DEGREESTANDARD; - // this.adoptExtentOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) this.energyKindOptions = res.data.ENERGYTYPES; - // this.energyKindOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) this.bussBigClassOptions = res.data.BUSSBIGCLASS; - // this.bussBigClassOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) this.bussStandClassOptions = res.data.BUSSSTANDCLASS; - // this.bussStandClassOptions.splice(0, 0, {'label': '全部', 'value': 'all'}) - // 区域前台新加----没测试噢噢噢噢哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦哦 this.regionOptions = res.data.REGION; // 区域 }, e => { }); @@ -2110,7 +2410,7 @@ export default { this.showBuyRole(); // 组织结构 this.getOrgTreeSource(); - this.selectBussRoleMsg(); + // this.selectBussRoleMsg(); // 滚动事件绑定 window.addEventListener("scroll", this.handleScrollHeader); // 检索中心特殊处理