diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue index 34221a9fc..9bfe22583 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue @@ -915,7 +915,7 @@ type="primary" class="common-button-primary" size="small" - @click="handleSearchStandard"> + @click="handleStandardPageChange(1)"> 查询 diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue index 7dbd59c49..5e6ab0b3b 100644 --- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue @@ -177,6 +177,9 @@ size="mini" @click="OCRAdd('2')" v-btn-permission="'247cebaefa7cf1683092af160af11502'">编辑 + 移动标准 + @@ -1414,6 +1417,32 @@ :data="standSystemOptions" :defaultProps="defaultProps" :nodeKey="nodeKey" @popoverHide="TpopoverHide" @popoverHideCancel="TpopoverHideCancel"> + + +
+ + +
+ +

@@ -2917,6 +2946,7 @@ export default { // 分享数据 resType: '', drawerModal: false, // 分享 + mobileModal: false, // 移动标准 // start 分享相关的 // 消息推送保存对象 personShareEO: { @@ -3317,6 +3347,69 @@ export default { this.productModal = false this.closeDrawer() }, + //节点选中状态发生变化时的回调,当选中另一个后,当前的的节点状态变化也会触发这个事件 + handleCheckChange(item,checked,self){ + if(checked){ + this.editCheckd = item.id + this.$refs.menuTree.setCheckedKeys([item.id]); + // this.nodeClick(item) + }else{ + if(this.editCheckd === item.id){ + this.$refs.menuTree.setCheckedKeys([item.id]); + } + + } + }, + //移动标准 + MobileStandard(){ + let checkedObj = [] + if(this.selectSarMenu.parentId == null || this.selectSarMenu.parentId === '' || this.selectSarMenu.parentId === undefined){ + this.$message.error('请选择二级及以下目录') + }else if (this.selectedList < 1){ + this.$message.error('请至少选择一条标准') + }else { + this.mobileModal = true + } + }, + // 取消 + mobileeCancel() { + let checkedObj = [] + this.$nextTick(() => { + this.$refs.menuTree.setCheckedKeys(checkedObj); + }) + this.editCheckd = '' + this.mobileModal = false + + + }, + // 移动标准提交 + mobileStandardBt(){ + let checkedObj = [] + let search = {} + // 取最外层目录id + search.oldMenuId = this.selectSarMenu.id + search.menuId = this.editCheckd + search.idlist = [] + for (let i = 0; i < this.selectedList.length; i++) { + search.idlist.push(this.selectedList[i]) + } + if(search.menuId == '' || search.menuId == null || search.menuId == undefined){ + this.$message.error('请至少选择一个节点') + }else{ + this.$http.putData('lawss/sarStandMenu/moveStandInfo', search, { + _this: this + }, res => { + // this.$Message.success('取消配置成功!') + this.$nextTick(() => { + this.$refs.menuTree.setCheckedKeys(checkedObj); + }) + this.editCheckd = '' + this.mobileModal = false + this.getDomesticStandardTable() + }, e => { + }) + } + }, // 提交新增/修改 saveProduct(name) { this.$refs[name].validate((valid) => { diff --git a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue index dba33210a..7efcf13e7 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardDatabase/components/EnterpriseStandardDatabase.vue @@ -284,6 +284,9 @@ size="mini" @click="selectBuss()" style="float: right;margin-top: 11px;" v-btn-permission="'76742566e1cf930f384ef78cecb86f61'">企标复审计划 + 移动标准 +

@@ -489,6 +492,32 @@ @pageChange="pageChange" @pageSizeChange="pageSizeChange"> 数据获取中
+ + +
+ + +
+ +
{ + this.$http.get('sarResource/ts-resource/getListStandLimitData', { + sorDivide: 'BUSINESS_STAND', + userId: this.$store.getters.userInfo.userId + }, { + _this: this + }, res => { + this.treeList1 = res.data + }) + }) + }, selectMenuList() { return new Promise((resolve, reject) => { this.$http.get('sarResource/ts-resource/getListStandLimitData', { @@ -3192,6 +3236,75 @@ export default { } }) }, + //节点选中状态发生变化时的回调,当选中另一个后,当前的的节点状态变化也会触发这个事件 + handleCheckChange(item,checked,self){ + if(checked){ + console.log(item) + this.editCheckd = item.id + this.NewTreeType = item.treeType + this.$refs.menuTree.setCheckedKeys([item.id]); + // this.nodeClick(item) + }else{ + if(this.editCheckd === item.id){ + this.$refs.menuTree.setCheckedKeys([item.id]); + } + + } + }, + //移动标准 + MobileStandard(){ + let checkedObj = [] + if(this.selectSarMenu.parentId == null || this.selectSarMenu.parentId === '' || this.selectSarMenu.parentId === undefined){ + this.$message.error('请选择二级及以下目录') + }else if (this.selectedList < 1){ + this.$message.error('请至少选择一条标准') + }else { + this.selectMenuListNew1() + this.mobileModal = true + } + }, + // 取消 + mobileeCancel() { + let checkedObj = [] + this.$nextTick(() => { + this.$refs.menuTree.setCheckedKeys(checkedObj); + }) + this.editCheckd = '' + this.mobileModal = false + + + }, + // 移动标准提交 + mobileStandardBt(){ + let checkedObj = [] + let search = {} + // 取最外层目录id + search.oldMenuId = this.selectSarMenu.id + search.menuId = this.editCheckd + search.treeType = this.selectSarMenu.treeType + // search.oldTreeType = this.selectSarMenu.treeType + // search.NewTreeType = this.NewTreeType + search.idlist = [] + for (let i = 0; i < this.selectedList.length; i++) { + search.idlist.push(this.selectedList[i]) + } + if(search.menuId == '' || search.menuId == null || search.menuId == undefined){ + this.$message.error('请至少选择一个节点') + }else{ + this.$http.putData('lawss/sarBussStandMenu/moveStandInfo', search, { + _this: this + }, res => { + // this.$Message.success('取消配置成功!') + this.$nextTick(() => { + this.$refs.menuTree.setCheckedKeys(checkedObj); + }) + this.editCheckd = '' + this.mobileModal = false + this.getBussionStandTable() + }, e => { + }) + } + }, // 树点击 isTreeOk(checkedList) { this.shareStandardSelect = [] @@ -4010,7 +4123,11 @@ export default { if (nowstandinfo.firstPutTime != null && nowstandinfo.firstPutTime !== '') { nowstandinfo.firstPutTime = this.$dateFormat(this.sarBussionessStandEO.firstPutTime, 'yyyy-MM-dd hh:mm:ss') } - nowstandinfo.standCode = nowstandinfo.standSort+""+ nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear) + if (nowstandinfo.standSort === 'Q/QCBFC'){ + nowstandinfo.standCode = nowstandinfo.standSort + "" + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear) + }else{ + nowstandinfo.standCode = nowstandinfo.standSort + " " + nowstandinfo.standNumber + (nowstandinfo.standYear === '' ? '' : '-' + nowstandinfo.standYear) + } this.$http.postData('lawss/sarBussionessStand/updateSarBussionessStand', nowstandinfo, { _this: this, loading: 'isSubmit' diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 4ef729ad8..4d5235c77 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -165,6 +165,9 @@ size="mini" @click="OCRAdd('2')" v-btn-permission="'e8d690904ee1895dd0d17d9c794fbcd7'">编辑 + 移动标准 + + +
+ + +
+ +
{ + this.$refs.menuTree.setCheckedKeys(checkedObj); + }) + this.editCheckd = '' + this.mobileModal = false + + + }, + // 移动标准提交 + mobileStandardBt(){ + let checkedObj = [] + let search = {} + // 取最外层目录id + search.oldMenuId = this.selectSarMenu.id + search.menuId = this.editCheckd + search.idlist = [] + for (let i = 0; i < this.selectedList.length; i++) { + search.idlist.push(this.selectedList[i]) + } + console.log(search.menuId) + if(search.menuId == '' || search.menuId == null || search.menuId == undefined){ + this.$message.error('请至少选择一个节点') + }else{ + this.$http.putData('lawss/sarStandMenu/moveStandInfo', search, { + _this: this + }, res => { + // this.$Message.success('取消配置成功!') + this.$nextTick(() => { + this.$refs.menuTree.setCheckedKeys(checkedObj); + }) + this.editCheckd = '' + this.mobileModal = false + this.getDomesticStandardTable() + }, e => { + }) + } + }, // 表格排序 sortChange(sortObj) {