diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue index 2618e5787..b2c1d7cd9 100644 --- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue @@ -39,27 +39,27 @@ clearable > - - + + + + + + + + - - - - - - - - + + + + + + + + + + + + - - - + + + + + + + + - - - + + + + + + + - - - + + + + + + + + -
+
@@ -122,12 +122,17 @@ - + + :nodeKey="nodeKey" @popoverHide="popoverHide"> - + + :nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"> - + + :nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"> - + + :nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"> - - - + + + @@ -655,13 +678,13 @@ - - - - - - - + + + + + + + - - - {{'手动查找'}} - - - - - + - - + + @@ -716,67 +718,88 @@ - + - - - - - - - + + + + + + {{'手动查找'}} + + + + + + + +
-
-
+
+
- - - -

流程发起人

-
- -
-
-
-
- - - -

会签责任人

-
- -
-
-
-
- - - -

修订申请人

-
- -
-
-
-
- - - -

标准法规业务经理

-
- -
-
-
-
+ + + +

流程发起人

+
+ +
+
+
+
+ + + +

会签责任人

+
+ +
+
+
+
+ + + +

修订申请人

+
+ +
+
+
+
+ + + +

标准法规业务经理

+
+ +
+
+
+
@@ -1104,15 +1127,23 @@ import ProcessTitle from '../../components/ProcessTitle' import {saveTaskFirst} from "api/process"; import TreeSelect from '@/components/treeSelect/treeSelect.vue'; + import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; export default { name: "bzrkStep1", + components: { + ProcessHeader, + ProcessFooter, + ProcessTitle, + TreeSelect, + TreeSelectNew + }, data () { return { - standardDrawer: false, - loadSarStandard: false, - verifySarStandard: false, - standardSearchForm: { + standardDrawer: false, + loadSarStandard: false, + verifySarStandard: false, + standardSearchForm: { page: 1, pageSize: this.$store.getters.userInfo.configContent, total: 0, @@ -1133,9 +1164,9 @@ }, selectedList: [], standardCheckedList: [], - activeName:'1', - roleRow: {}, - commentText: '', // 意见 + activeName:'1', + roleRow: {}, + commentText: '', // 意见 title: '', // 新增编辑抽屉标题 config: { attrName : '', @@ -1191,6 +1222,12 @@ key3:4, treeData: [], // 人员数据 modalShowFlag: false, // drawer开关 + modalShowFlag1: false, // drawer开关 + modalShowFlag2: false, // drawer开关 + modalShowFlag3: false, // drawer开关 + modalShowFlag4: false, // drawer开关 + url:'', + urlChild:'', drawerTitle: '', //drawer标题 nodeKey: 'id', defaultCheckedKeys: [], @@ -1248,15 +1285,15 @@ // 适用范围 txlb: '', // 体系类别 gkdw: '', // 归口管理部门 - qcdw: '', // 起草单位 - wssmr: '', // 我司署名人 + qcdw: [], // 起草单位 + wssmr: [], // 我司署名人 cysd: '', // 我司参与深度 - cllx: '', // 适用车型 - nylx: '',// 能源类型 - sycpx: '',// 适用产品线 - syrz: '', // 适用认证 - zrbm: '', // 责任部门 - zrgcs: '', // 责任工程师 + cllx: [], // 适用车型 + nylx: [],// 能源类型 + sycpx: [],// 适用产品线 + syrz: [], // 适用认证 + zrbm: [], // 责任部门 + zrgcs: [], // 责任工程师 cycvppsbm: '', // 关联模块--乘用车VPPS编码 cycvppscn: '', // 关联模块--乘用车vpps中文名称 kccvppsbm: '', // 关联模块--卡车VPPS编码 @@ -1330,7 +1367,9 @@ standStateOptions: [], // 文本状态 standSystemOptions: [], // 标准体系 busVppsOptions: [], // 车系体系架构 + busVppsChildOptions: [], // 车系体系架构子集合 modelOptions: [], // 模块体系架构 + modelChildOptions: [], // 模块体系架构子集合 applyArcticOptions: [], // 适用车型 categoryOptions: [], // 能源类型 applyAuthOptions: [], // 适用认证 @@ -1398,84 +1437,78 @@ }, }, }, - components: { - ProcessHeader, - ProcessFooter, - ProcessTitle, - TreeSelect - }, methods: { clearFormData(data){ this.form = { // 基础信息 textStatus: '', // 文本状态 - standYear: '', // 标准年份 - standInData: data.standInData ? data.standInData : '0', // 标准类型 - standSort: data.standSort ? data.standSort : '', // 标准类别 - standNumber: data.standNumber ? data.standNumber : '', // 标准编号 - standNature: data.standNature ? data.standNature : '', // 标准性质 - standEnName: data.standEnName ? data.standEnName : '', // 英文名称 - standName: data.standName ? data.standName : '', // 中文名称 - signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签 - issueTime: '', // 发布时间 - isRelateAccess: '', // 是否纳入认证清单 - standSystem: '',// 标准体系 - standSystemName: '',// 标准体系名称 - gxhbq: '', // 标签 - // 实施日期 - ssrq: '', // 实施日期(标准文本) - xcxssrq: '', // 新车型实施日期(标准文本) - zccssrq: '', // 在产车实施日期(标准文本) - ssrqgj: '', // 实施日期(国际) - xcxssrqgj: '', // 新车型实施日期(国际) - zccssrqgj: '', // 在产车实施日期(国际) - // 文本信息 - ca: '', // 草案 - fbgbjbd: '', // 发布稿 - xgd: '', // 修改单 - bpg: '', // 报批稿 - ssg: '', // 送审稿 - zqyjg: '', // 征求意见稿 - jdwj: '', // 解读文件 - zbjbd: '', // 增补件 - 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: '', // 参会记录 + standYear: '', // 标准年份 + standInData: data.standInData ? data.standInData : '0', // 标准类型 + standSort: data.standSort ? data.standSort : '', // 标准类别 + standNumber: data.standNumber ? data.standNumber : '', // 标准编号 + standNature: data.standNature ? data.standNature : '', // 标准性质 + standEnName: data.standEnName ? data.standEnName : '', // 英文名称 + standName: data.standName ? data.standName : '', // 中文名称 + signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签 + issueTime: '', // 发布时间 + isRelateAccess: '', // 是否纳入认证清单 + standSystem: '',// 标准体系 + standSystemName: '',// 标准体系名称 + gxhbq: '', // 标签 + // 实施日期 + ssrq: '', // 实施日期(标准文本) + xcxssrq: '', // 新车型实施日期(标准文本) + zccssrq: '', // 在产车实施日期(标准文本) + ssrqgj: '', // 实施日期(国际) + xcxssrqgj: '', // 新车型实施日期(国际) + zccssrqgj: '', // 在产车实施日期(国际) + // 文本信息 + ca: '', // 草案 + fbgbjbd: '', // 发布稿 + xgd: '', // 修改单 + bpg: '', // 报批稿 + ssg: '', // 送审稿 + zqyjg: '', // 征求意见稿 + jdwj: '', // 解读文件 + zbjbd: '', // 增补件 + 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: '', // 参会记录 } // 标准信息 }, handleProcessStandardNext(status) { @@ -1628,7 +1661,6 @@ this.zrUserIds.push(data) } - console.log(this.zrUserIds) }else { var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes()); if(getlist.length == 1) { @@ -1646,6 +1678,38 @@ this.drawerTitle = title this.modalShowFlag = true }, + 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++ + }, getTree () { this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> { this.treeData = res.data @@ -1889,29 +1953,51 @@ this.fileMadel = true this.fileType = type; }, - popoverHide (checkedIds, checkedData) { + popoverHide (checkedIds, checkedData,isShow,isLoadChild,topId) { if(checkedData) { - this.form.standSystem = checkedData.id - this.form.standSystemName = checkedData.menuName + if(checkedData.length > 0){ + this.form.standSystem = checkedData.map(item => item.menuName).join(",") + }else { + this.form.standSystem = checkedData.menuName + } } + this.modalShowFlag1 = false }, - popoverHideBusVs (checkedIds, checkedData) { - if(checkedData){ - this.form.cycvppsbm = checkedData.code - this.form.cycvppscn = checkedData.chineseName + popoverHideBusVs (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.form.cycvppsbm = checkedData.map(item => item.code).join(",") + this.form.cycvppscn = checkedData.map(item => item.chineseName).join(",") + }else { + this.form.cycvppsbm = checkedData.code + this.form.cycvppscn = checkedData.chineseName + } } + this.modalShowFlag2 = false }, - popoverHideCarVs (checkedIds, checkedData) { - if(checkedData){ - this.form.kccvppsbm = checkedData.code - this.form.kccvppscn = checkedData.chineseName + popoverHideCarVs (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.form.kccvppsbm = checkedData.map(item => item.code).join(",") + this.form.kccvppscn = checkedData.map(item => item.chineseName).join(",") + }else { + this.form.kccvppsbm = checkedData.code + this.form.kccvppscn = checkedData.chineseName + } } + this.modalShowFlag3 = false }, - popoverHideModel (checkedIds, checkedData) { - if(checkedData){ - this.form.dybxh = checkedData.model - this.form.dymc = checkedData.name + popoverHideModel (checkedIds, checkedData,isShow,isLoadChild,topId) { + if(checkedData) { + if(checkedData.length > 0){ + this.form.dybxh = checkedData.map(item => item.model).join(",") + this.form.dymc = checkedData.map(item => item.name).join(",") + }else { + this.form.dybxh = checkedData.model + this.form.dymc = checkedData.name + } } + this.modalShowFlag4 = false }, closeDrawer() { this.ListModel = false @@ -1930,31 +2016,31 @@ handleTabs(name) { this.active = name }, - //保存 + //保存 handleSave() { - this.saveLoading = true - let _formData = new FormData() - // _formData.append('id', this.bpnId) - _formData.append('createUser', this.$store.getters.userInfo.userId) - _formData.append('createUserName', this.$store.getters.userInfo.uName) - _formData.append('prcType', this.$route.query.type) - _formData.append('json', JSON.stringify({ - prcForm: this.prcForm, - sarAccessInfoList: this.sarAccessInfoList, - sarAccessInfoListADMIN: this.sarAccessInfoListADMIN, - bzqdForm: this.bzqdForm, - listInfo: this.listInfo, - id: this.id - })) - saveTaskFirst(_formData).then(res => { - this.saveLoading = false - this.$message.success('保存成功') - // 流程保存之后,应该流转至草稿页面 - this.$router.push({path:'/processCenter?tabsName=TaskDraft'}) - // this.bpnId = res.result - }).catch(e => { - this.saveLoading = false - }) + this.saveLoading = true + let _formData = new FormData() + // _formData.append('id', this.bpnId) + _formData.append('createUser', this.$store.getters.userInfo.userId) + _formData.append('createUserName', this.$store.getters.userInfo.uName) + _formData.append('prcType', this.$route.query.type) + _formData.append('json', JSON.stringify({ + prcForm: this.prcForm, + sarAccessInfoList: this.sarAccessInfoList, + sarAccessInfoListADMIN: this.sarAccessInfoListADMIN, + bzqdForm: this.bzqdForm, + listInfo: this.listInfo, + id: this.id + })) + saveTaskFirst(_formData).then(res => { + this.saveLoading = false + this.$message.success('保存成功') + // 流程保存之后,应该流转至草稿页面 + this.$router.push({path:'/processCenter?tabsName=TaskDraft'}) + // this.bpnId = res.result + }).catch(e => { + this.saveLoading = false + }) }, handleSubmit() { this.$refs['form'].validate((valid) => { @@ -1983,7 +2069,7 @@ if (res.success) { this.$message.success(res.message) this.isSubmit = false - // 流程提交之后,应该流转至待办任务页面 + // 流程提交之后,应该流转至待办任务页面 this.$router.push({path:'/processCenter?tabsName=ProcessCenter'}) } }) @@ -1993,7 +2079,7 @@ this.$message.warning('请检查人员信息表单是否填写完整') } }) - } else { + } else { this.$message.warning('请检查基础信息表单是否填写完整') } }) @@ -2006,6 +2092,14 @@ this.busVppsOptions = res.data }) }, + busVsChildFunc(id){ + this.$http.get('sarVppsTree/childByList', {id:id}, { + _this: this + }, res => { + this.busVppsChildOptions = [] + this.busVppsChildOptions = res.data + }) + }, modelFunc(){ this.$http.get('sarModelTree/list', '', { _this: this