Merge remote-tracking branch 'origin/develop_new' into develop_new

This commit is contained in:
zyx.net
2022-12-07 14:18:48 +08:00
5 changed files with 83 additions and 23 deletions
+18 -11
View File
@@ -26,6 +26,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="divTree"> <div class="divTree">
<!-- 当前tree展示全部人员 -->
<el-tree <el-tree
v-if="open1 && isVisible" v-if="open1 && isVisible"
node-key="id" node-key="id"
@@ -50,6 +51,7 @@
<span> {{ node.label }} </span> <span> {{ node.label }} </span>
</span> </span>
</el-tree> </el-tree>
<!-- 当前tree展示搜索出的人员 -->
<el-tree <el-tree
v-if="!open1 && isVisible" v-if="!open1 && isVisible"
node-key="id" node-key="id"
@@ -67,7 +69,8 @@
@check="drawerCheck" @check="drawerCheck"
show-checkbox show-checkbox
ref="tree" ref="tree"
:lazy="false"> :lazy="false"
:key="treeKey">
<span class="custom-tree-node" slot-scope="{ node, data }"> <span class="custom-tree-node" slot-scope="{ node, data }">
<span :class="node.disabled ? 'is-show' : 'is-leaf-none'"></span> <span :class="node.disabled ? 'is-show' : 'is-leaf-none'"></span>
<span> {{ node.label }} </span> <span> {{ node.label }} </span>
@@ -113,7 +116,7 @@
props: { props: {
checkBox: { // 单选/多选 checkBox: { // 单选/多选
type: Boolean, type: Boolean,
default: false, default: false,//默认false多选
}, },
isTitle: { // 标题 isTitle: { // 标题
type: String type: String
@@ -135,16 +138,17 @@
}, },
data () { data () {
return { return {
defaultKey: [], treeKey:1,
defaultKey: [],//默认展开的节点的 key 的数组
visible: false, visible: false,
selectList: [], selectList: [],
nodeList2: [], nodeList2: [],//默认勾选的节点的 key 的数组
delList: [], delList: [],
roleList: [], roleList: [],
filterText: '', filterText: '',
defaultProps: { defaultProps: {//配置选项
children: 'children', children: 'children',//指定子树为节点对象的某个属性值
label: 'name', label: 'name',//指定节点标签为节点对象的某个属性值
}, },
treeData1: [], treeData1: [],
treeData: [], treeData: [],
@@ -198,8 +202,9 @@
) )
}, },
searchChange(){ searchChange(){
// 查询
if (this.filterText.length) { if (this.filterText.length) {
this.open1 = false this.open1 = false // 显示第二个tree
this.treeLoading = true this.treeLoading = true
this.defaultKey = [] this.defaultKey = []
this.$http.get('SarInstitution/institution/getNextTwo', { this.$http.get('SarInstitution/institution/getNextTwo', {
@@ -211,8 +216,7 @@
}) })
this.treeLoading = false this.treeLoading = false
}) })
// this.treeKey++
// this.$http.get('SarInstitution/institution/institutionAndUser', { // this.$http.get('SarInstitution/institution/institutionAndUser', {
@@ -265,6 +269,7 @@
} }
}, },
checkChange (row, type, c) { checkChange (row, type, c) {
//节点选中状态发生变化时的回调(传递给 data 属性的数组中该节点所对应的对象、节点本身是否被选中、节点的子树中是否有被选中的节点)
if (this.checkBox) { if (this.checkBox) {
} else { } else {
if (type) { if (type) {
@@ -328,7 +333,8 @@
} }
this.open1 = true this.open1 = true
}, },
drawerCheck (data) { drawerCheck (data) {//当复选框被点击的时候触发
//共两个参数,依次为:传递给 data 属性的数组中该节点所对应的对象、树目前的选中状态对象,包含 checkedNodes、checkedKeys、halfCheckedNodes、halfCheckedKeys 四个属性
if (this.checkBox) { // 单选 if (this.checkBox) { // 单选
// 单选判断 // 单选判断
let getlist = this.$refs.tree.getCheckedNodes() let getlist = this.$refs.tree.getCheckedNodes()
@@ -363,6 +369,7 @@
} }
}, },
loadNode(node, resolve) { loadNode(node, resolve) {
//加载子树数据的方法,仅当 lazy 属性为true 时生效
if (node.level === 0) { if (node.level === 0) {
return resolve(this.treeData); return resolve(this.treeData);
} }
@@ -263,6 +263,8 @@
show-transfer show-transfer
@transfer="handleTransfer" @transfer="handleTransfer"
submitBTNText="同意" submitBTNText="同意"
showOver2
@over2="handleSubmitNo"
> >
</ProcessFooter> </ProcessFooter>
<Role-tree <Role-tree
@@ -2390,17 +2390,26 @@
clearFormData(data) { clearFormData(data) {
this.form = { this.form = {
// 基础信息 // 基础信息
standInData: '0', // 标准来源
standSort: '', // 标准类别
country: '', // 国家
standSystem: '', // 标准体系
standNumber: '', // 标准编号
standNature: '', // 标准性质
standEnName: '', // 英文名称
standName: '', // 中文名称
signFlag: '1', // 是否需要会签
textStatus: '', // 文本状态 textStatus: '', // 文本状态
standYear: '', // 标准年份 standYear: '', // 标准年份
standInData: data.standInData ? data.standInData : '0', // 标准类型 // standInData: data.standInData ? data.standInData : '0', // 标准类型
standSort: data.standSort ? data.standSort : '', // 标准类别 // standSort: data.standSort ? data.standSort : '', // 标准类别
country: data.country ? data.country : '', // 国家 // country: data.country ? data.country : '', // 国家
standSystem: data.standSystem ? data.standSystem : '', // 标准体系 // standSystem: data.standSystem ? data.standSystem : '', // 标准体系
standNumber: data.standNumber ? data.standNumber : '', // 标准编号 // standNumber: data.standNumber ? data.standNumber : '', // 标准编号
standNature: data.standNature ? data.standNature : '', // 标准性质 // standNature: data.standNature ? data.standNature : '', // 标准性质
standEnName: data.standEnName ? data.standEnName : '', // 英文名称 // standEnName: data.standEnName ? data.standEnName : '', // 英文名称
standName: data.standName ? data.standName : '', // 中文名称 // standName: data.standName ? data.standName : '', // 中文名称
signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签 // signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签
issueTime: '', // 发布时间 issueTime: '', // 发布时间
isRelateAccess: '', // 是否纳入认证清单 isRelateAccess: '', // 是否纳入认证清单
standSystemName: '',// 标准体系名称 standSystemName: '',// 标准体系名称
@@ -2465,6 +2474,20 @@
treeListName: '' treeListName: ''
} // 标准信息 } // 标准信息
}, },
clearFileListData(){
// 文本信息文件
this.xgdFileList =[] // 修改单
this.FBGBJBDFileList=[]//发布稿 原文
this.FBGYWBDFileList=[]// 发布稿 译文
this.ssgFileList=[]// 送审稿
this.caFileList=[]// 草案
this.zbjbdFileList=[]// 增补件
this.xdbFileList=[]//修订本
this.kwjFileList=[]// 勘误件
this.jdwjFileList=[]//相关文件
this.bpgFileList=[]//报批稿
this.zqyjgFileList=[]//征求意见稿
},
handleProcessStandardNext(status) { handleProcessStandardNext(status) {
this.submitType = status this.submitType = status
switch (status) { switch (status) {
@@ -2475,7 +2498,9 @@
this.standardCheckedList = [] this.standardCheckedList = []
this.standardDrawer = false this.standardDrawer = false
this.verifySarStandard = true this.verifySarStandard = true
this.clearFormData(this.form) // this.clearFormData(this.form)
this.clearFormData()
this.clearFileListData()
break break
// 带入(确认) // 带入(确认)
case 2: case 2:
@@ -426,9 +426,15 @@
<!-- </span>--> <!-- </span>-->
<!-- </div>--> <!-- </div>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item label="复审人" prop="reviewUserName" class="add-form-item form-item-disabled"> <!-- <el-form-item label="复审人" prop="reviewUserName" class="add-form-item form-item-disabled">-->
<!-- <el-input-->
<!-- v-model="form.reviewUserName" :disabled="disabledState"-->
<!-- clearable-->
<!-- ></el-input>-->
<!-- </el-form-item>-->
<el-form-item label="复审人" prop="reviewUserName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.reviewUserName" :disabled="disabledState" :value="cutChinese(form.bussFsSubUser2Name)" :disabled="disabledState"
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
@@ -878,6 +884,25 @@ export default {
}) })
}) })
}, },
cutChinese(str){
// 截取中文 张兰英(zhanglanying),陈春梅(chenchunmei) => 张兰英,陈春梅
let result = '', flag = false
if(str){
for(let i = 0 ; i < str.length ; i++){
if(str[i]==='('){
flag = true
i++
}
if(str[i]===')'){
flag = false
if(i===str.length-1) break
i++
}
if(!flag) result+= str[i]
}
}
return result
}
}, },
mounted () { mounted () {
if(this.formSub && this.formSub.standSort && this.formSub.standSort !== ''){ if(this.formSub && this.formSub.standSort && this.formSub.standSort !== ''){
@@ -1482,6 +1482,7 @@
zrDeptIdName:this.$store.getters.userInfo.institutionName, zrDeptIdName:this.$store.getters.userInfo.institutionName,
children:[], children:[],
}; };
if(!this.form.modelData) this.form.modelData=[]
this.form.modelData.push(list); this.form.modelData.push(list);
this.$message.success("新增成功") this.$message.success("新增成功")
this.showForm.modelNum = "" this.showForm.modelNum = ""