From 9baf9fb1cf44e2c3599917490d68ada3a5618d14 Mon Sep 17 00:00:00 2001 From: Jaunty <15613469426@163.com> Date: Fri, 16 Jul 2021 15:07:07 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BB=A3=E5=8A=9E?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home1/components/todoList/index.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/home1/components/todoList/index.vue b/src/pages/home1/components/todoList/index.vue index bb698179b..72814cde8 100644 --- a/src/pages/home1/components/todoList/index.vue +++ b/src/pages/home1/components/todoList/index.vue @@ -50,7 +50,6 @@ export default { this.$router.push(this.path) }, dealWith (row) { // 办理 - this.setHandleInfo(JSON.stringify(row)) const prcType = row.prcType switch(prcType) { case '1': From 514fb252526f2aa2a2fce79bda864ba6aedbfc1d Mon Sep 17 00:00:00 2001 From: Jaunty <15613469426@163.com> Date: Fri, 16 Jul 2021 15:53:44 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=A0=87=E5=87=86=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E5=9B=BD=E5=AE=B6=E5=9C=B0=E5=8C=BA=E6=B8=85=E5=8D=95=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E3=80=81=E7=BC=96=E8=BE=91=E9=A1=B5=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/addEdit.vue | 481 ++---------------- 1 file changed, 39 insertions(+), 442 deletions(-) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 68f4be520..16f7f8735 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -307,7 +307,7 @@ 提交 - - - - - - -
- -
- - - - - - - - - - - - - - - - - {{ opt.label}} - - - - - - - - - - {{ opt.label}} - - - - - - {{ opt.label}} - - - - - - {{ opt.label}} - - - - -
- - 查询 - - - 清空 - -
-
-
-
- - - - - - - - - - - - { let addList; - addList = this.stahndinfoList.findIndex(items => { + addList = this.sarAccessInfoList.findIndex(items => { return items.id == item.id }) if(addList > -1){ @@ -1184,7 +1022,7 @@ export default { this.$refs.entryTable.clearSelection() this.$refs.searchTable.clearSelection() } else{ - this.stahndinfoList.push(item) + this.sarAccessInfoList.push(item) this.$refs.accessTypeSelect.clearSelection() this.$refs.entryTable.clearSelection() this.$refs.searchTable.clearSelection() @@ -1202,21 +1040,21 @@ export default { type: 'warning' }) } else { - let temp = this.stahndinfoList[index - 1] - this.$set(this.stahndinfoList, index - 1, this.stahndinfoList[index]) - this.$set(this.stahndinfoList, index, temp) + let temp = this.sarAccessInfoList[index - 1] + this.$set(this.sarAccessInfoList, index - 1, this.sarAccessInfoList[index]) + this.$set(this.sarAccessInfoList, index, temp) } }, moveDown (index) { - if (index === (this.stahndinfoList.length - 1)) { + if (index === (this.sarAccessInfoList.length - 1)) { this.$message({ message: '已经是列表中最后一个素材!', type: 'warning' }) } else { - let i = this.stahndinfoList[index + 1] - this.$set(this.stahndinfoList, index + 1, this.stahndinfoList[index]) - this.$set(this.stahndinfoList, index, i) + let i = this.sarAccessInfoList[index + 1] + this.$set(this.sarAccessInfoList, index + 1, this.sarAccessInfoList[index]) + this.$set(this.sarAccessInfoList, index, i) } }, // 点击清单条目导入按钮事件 @@ -1235,7 +1073,7 @@ export default { * 删除不想添加的AccessInfo信息 */ deleteSelectSarAccessInfo () { - if (this.stahndinfoListArry.length > 0) { + if (this.sarAccessInfoListArry.length > 0) { this.$confirm('确认删除选中数据?', '确认删除', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -1245,14 +1083,14 @@ export default { }).then(() => { // i 全部对象数组的下标 // s 选中对象数组的下标 - for (var s in this.stahndinfoListArry) { - for (var i in this.stahndinfoList) { - if (this.stahndinfoListArry[s].uuid === this.stahndinfoList[i].uuid) { - this.stahndinfoList.splice(i, 1) + for (var s in this.sarAccessInfoListArry) { + for (var i in this.sarAccessInfoList) { + if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoList[i].uuid) { + this.sarAccessInfoList.splice(i, 1) } } } - this.stahndinfoListArry = [] + this.sarAccessInfoListArry = [] this.$refs.entryTable.clearSelection() }).catch(() => {}) } else { @@ -1261,8 +1099,8 @@ export default { }, // 清单条目 table select事件 sarAccessInfoSelect (selectData) { - this.stahndinfoListArry = selectData - let stahndinfoListArryId = [] + this.sarAccessInfoListArry = selectData + let sarAccessInfoListArryId = [] for(let i=0; i { if (valid) { let rowlist = [] - for (let i = 0; i < this.stahndinfoList.length; i++) { - rowlist.push(this.stahndinfoList[i].id) + for (let i = 0; i < this.sarAccessInfoList.length; i++) { + rowlist.push(this.sarAccessInfoList[i].id) } rowlist = rowlist.join(',') let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO)) @@ -1331,10 +1169,7 @@ export default { }, // 查询数据搜索 table 数据 selectLawsStands () { - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', { - ...this.sarAccessInfoSearch, - ...this.sarStandardsSearch - }, { + this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.sarAccessInfoSearch, { _this: this }, res =>{ this.sarAccessInfoSearchList = res.data.list @@ -1348,6 +1183,7 @@ export default { // 数据搜索 table select事件 sarAccessInfoSearchSelect (val) { this.selectedAccInfoSearchList = val + console.log(val) }, // 数据搜索 清单类型 table select事件 accessSarTypeSelect (selectData) { @@ -1373,10 +1209,10 @@ export default { exportTestItem () { let exportNames = this.exportName let exportList = [] - if (this.stahndinfoListArry.length > 0) { - exportList = this.stahndinfoListArry + if (this.sarAccessInfoListArry.length > 0) { + exportList = this.sarAccessInfoListArry } else { - exportList = this.stahndinfoList + exportList = this.sarAccessInfoList } if (exportList != null && exportList.length > 0) { let accIdAndrestype = [] @@ -1417,9 +1253,9 @@ export default { var a var b = '' if (response.data) { - for (var sADMIN in this.stahndinfoListADMIN) { + for (var sADMIN in this.sarAccessInfoListADMIN) { for (var iADMIN in response.data) { - if (this.stahndinfoListADMIN[sADMIN].code === response.data[iADMIN].code) { + if (this.sarAccessInfoListADMIN[sADMIN].code === response.data[iADMIN].code) { // ('在全部对象中的位置' + i) response.data.splice(i, 1) b = '数据重复添加,现已自动清除! ' @@ -1428,7 +1264,7 @@ export default { } if (response.data.length > 0) { for (let i = 0; i < response.data.length; i++) { - this.stahndinfoList.push(response.data[i]) + this.sarAccessInfoList.push(response.data[i]) } } a = response.data.length @@ -1537,16 +1373,16 @@ export default { nowstandinfo.askNature = nowstandinfo.askNature.join(',') // 判断新增还是编辑 if (this.editAddType === 1) { - this.stahndinfoList.push(nowstandinfo) - this.stahndinfoList[this.stahndinfoList.length - 1].uuid = this.number + this.sarAccessInfoList.push(nowstandinfo) + this.sarAccessInfoList[this.sarAccessInfoList.length - 1].uuid = this.number this.number++ this.isSubmit = false this.$message.success('添加成功') } else { - this.stahndinfoList.map((item, index) => { + this.sarAccessInfoList.map((item, index) => { if (item.uuid === nowstandinfo.uuid) { - // this.stahndinfoList[index] = nowstandinfo - this.$set(this.stahndinfoList, index, nowstandinfo) + // this.sarAccessInfoList[index] = nowstandinfo + this.$set(this.sarAccessInfoList, index, nowstandinfo) } }) this.isSubmit = false @@ -1742,7 +1578,7 @@ export default { // 新增、编辑标准时验证标准编号是否重复 validCode (rule, value, callback) { let find = 0 - this.stahndinfoList.map(item => { + this.sarAccessInfoList.map(item => { if (item.code === value) { find++ } @@ -1793,176 +1629,10 @@ export default { this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {id: this.zqaId}, { _this: this }, res => { - this.stahndinfoList = res.data + this.sarAccessInfoList = res.data }, e => { }) - }, - treeClick (treeNode) { - this.selectSarMenu = treeNode - this.standCommonlySearch.menuId = treeNode.id - this.sarStandardsSearch.menuId = treeNode.id // 将当前二级菜单的id传回后台做标准的条件查询 - this.sarStandardsSearch.page = 1 - this.standCommonlySearch.page = 1 - this.getDomesticStandardTable(this.tableFlag) - }, - // 分页查询国内标准 - getDomesticStandardTable (item) { - if (item !== '' && item !== null && item !== undefined) { - item.pageSize = this.$store.getters.userInfo.configContent - } - this.sarStandardsSearch.pageSize = this.$store.getters.userInfo.configContent - const data = item || this.sarStandardsSearch - if (item) { - this.sarStandardsSearch.advanceSearchVOStr = item.advanceSearchVOStr - } - // this.sarStandardsSearch.menuId = this.selectSarMenu.id - const formData = {...data} - if (!item) { - formData.menuId = this.sarStandardsSearch.menuId - } else { - formData.menuId = this.selectSarMenu.id - } - - // 排序 - formData.orderBy = this.orderBy - // 处理我的收藏和个性化标签传参 - if (this.selectSarMenu.id === 'wdsc') { - formData.menuId = undefined - formData.labelMenuId = undefined - formData.collectMenuId = 'wdsc' - } else if (this.selectSarMenu.id === 'gxhbq' || this.selectSarMenu.pId === 'gxhbq') { - formData.menuId = undefined - formData.labelMenuId = this.selectSarMenu.id - formData.collectMenuId = undefined - } else { - formData.labelMenuId = undefined - formData.collectMenuId = undefined - } - formData.standType = 'INLAND' - this.SarExportSearchEo = formData - this.loading = true - this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, { - _this: this, loading: 'loading' - }, res => { - this.isAdvancedSearch = false - this.loading = false - if (res.ok) { - for (let i = 0; i < res.data.list.length; i++) { - res.data.list[i].checked = false - if (res.data.list[i].collectId != null && res.data.list[i].collectId !== '') { - res.data.list[i].collectBtn = false - res.data.list[i].cancelCollectBtn = true - } else { - res.data.list[i].collectBtn = true - res.data.list[i].cancelCollectBtn = false - } - res.data.list[i].isSubmit = false - if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.XCXSSRQ) { - res.data.list[i].XCXSSRQ = res.data.list[i].attrInfoMap.XCXSSRQ - } - if (res.data.list[i].attrInfoMap && res.data.list[i].attrInfoMap.ZCCSSRQ) { - res.data.list[i].ZCCSSRQ = res.data.list[i].attrInfoMap.ZCCSSRQ - } - } - this.stahndinfoList = res.data.list - this.total = res.data.count - if ((this.stahndinfoList.length === 0 || this.stahndinfoList === []) && this.sarStandardsSearch.page !== 1) { - this.pageChange(1) - } - } else { - this.$message.error(res.message) - } - }, e => { - this.loading = false - this.stahndinfoList = [] - this.total = 0 - }) - }, - // 点击搜索按钮 - searchBtnClick (standCommonlySearch) { - let item = this.standCommonlySearch - this.getDomesticStandardTable(item) - this.isAdvancedSearch = false - this.selectLawsStands() - }, - // 搜索 - getDomesticStandardTableBtn (item) { - this.tableFlag = item - item.page = 1 - item.sarStandardsSearch = '' - this.getDomesticStandardTable(item) - }, - // 提交配置搜索项 - saveConfigStand () { - let search = {} - search.menuId = this.selectSarMenu.id - if (this.selectConfigStand.length === 0) { - this.$message({ - showClose: true, - message: '请至少选择一条标准', - type: 'warning' - }) - } else { - search.idlist = this.selectConfigStand - this.$http.postData('sarStandardsInfo/sar-standards-info/saveStandardsMenu', search, { - _this: this, - loading: 'isSubmit' - }, res => { - if (res.ok) { - this.configStandFlag = false - // this.$message({ - // showClose: true, - // message: '配置标准成功!', - // type: 'success' - // }) - this.getDomesticStandardTable(this.tableFlag) - } - }, e => { - }) - } - }, - // 清空搜索框 - clearAllSearch (flag) { - this.isAdvancedSearch = false - if (flag === 'sarStandardsSearch') { - // 标准搜索 - this.sarStandardsSearch.country = '' - this.sarStandardsSearch.standSort = '' - this.sarStandardsSearch.standNumber = '' - this.sarStandardsSearch.standName = '' - this.sarStandardsSearch.standState = '' - this.sarStandardsSearch.standNature = '' - this.sarStandardsSearch.issueTime = '' - this.sarStandardsSearch.applyArctic = '' - this.sarStandardsSearch.replaceStandNum = '' - this.sarStandardsSearch.replacedStandNum = '' - this.sarStandardsSearch.synopsis = '' - this.sarStandardsSearch.category = '' - this.pageChange(1) - this.getDomesticStandardTable(this.sarStandardsSearch) - } else if (flag === 'standCommonlySearch') { - this.standCommonlySearch.standSort = '' - this.standCommonlySearch.standNumber = '' - this.pageChange(1) - this.getDomesticStandardTable(this.standCommonlySearch) - } else if (flag === 2) { - // 标准条目搜索 - this.standItemSearch.responsibleUnit = '' - this.standItemSearch.orgName = '' - } else { - this.configPage = 1 - // 游离标准搜索清空 - this.sarConfigStandSearch.standSort = '' - this.sarConfigStandSearch.standNumber = '' - this.sarConfigStandSearch.standName = '' - this.sarConfigStandSearch.category = '' - this.sarConfigStandSearch.standNature = '' - this.sarConfigStandSearch.synopsis = '' - this.sarConfigStandSearch.applyArctic = '' - this.sarConfigStandSearch.replaceStandNum = '' - this.selectConfiguraStand() - } - }, + } }, watch: { // 监听 清单类型 @@ -1976,59 +1646,6 @@ export default { }, computed: { ...mapGetters(['getAccessStandardRegRow']), - created(){ - }, - async mounted () { - // 进入页面后查询树形结构目录 - await this.selectMenu() - // 进入页面后查询标准体系树形结构目录 - await this.selectStandardMenu() - this.treeReload = true - // 从数据库中查询各下拉框数据 - this.$http.get('sys/dictype/getDicTypeListCode', '', { - _this: this - }, res => { - this.allSelectOptions = res.data || {} - this.standSortOptions = res.data.STANDCLASSIFY // 标准类别 - this.standNatureOptions = res.data.SARPROPERTY // 标准性质 - this.standStateOptions = res.data.WBZTCLASS // 文本状态 - this.standSystemOptions = res.data.BZTXCLASS // 标准体系 - this.categoryOptions = res.data.NYLXCLASS // 能源类型 - this.applyAuthOptions = res.data.SYRZCLASS // 适用认证 - this.cysdOptions = res.data.WSCYSD // 我司参与深度 - this.zrbmOptions = res.data.ZRBMCLASS // 责任部门 - this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师 - this.txlbOptions = res.data.TXLBCLASS // 体系类别 - this.getGzzOption() - }, e => { - }) - this.getDomesticStandardTable(this.tableFlag) - // 加载所有的部门 - this.getOrgTreeSource() - // 加载动态表单数据 - this.getAddFormFieldList() - this.getDept() - }, - destroyed () { - this.allSelectOptions = {} - this.countryOptions = [] - this.regionOptions = [] - this.standSortOptions = [] - this.applyArcticOptions = [] - this.standStateOptions = [] - this.standNatureOptions = [] - this.adoptExtentOptions = [] - this.emergyKindOptions = [] - this.applyAuthOptions = [] - this.categoryOptions = [] - this.assemClassOptions = [] - this.categoryConfigOptions = [] - this.standAttributeList = [] - this.zNodesS = [] - this.zNodesSItem = [] - this.searchInlandNodes = [] - this.orgData = [] - } }, mounted () { this.zqaId =this.$route.query.id; @@ -2040,8 +1657,7 @@ export default { }, res => { this.allSelectOptions = res.data || {} this.regionOptions = res.data.REGION // 基础信息 区域list - this.applyArcticOptions = res.data.ENERGYTYPES || [] // 基础车型 适用车型list - this.sycpxOptions = res.data.SYCPXCLASS || []// 适用产品线 + this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list this.applyOptions = res.data.COUNTRY //适用区域list @@ -2152,23 +1768,4 @@ export default { margin: 2px; } } -.label-input-form { - &.table-lattice{ - /deep/.el-form-item__label { - width:100px; - height:30px; - border: 1px solid #DCDFE6; - border-right: none; - line-height:30px; - text-align: center; - margin-top: 7px; - background: #F9F9F9; - } - /deep/.el-input__inner { - height: 30px; - line-height: 30px; - border-radius: 0 !important; - } - } -} \ No newline at end of file From b39249ff946503fef3fba89349cfda295ec6dcd3 Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Fri, 16 Jul 2021 16:47:00 +0800 Subject: [PATCH 3/9] commit --- .../pages/creatProcess/bzdy/step8.vue | 4 +- .../pages/creatProcess/bzjd/step2.vue | 4 +- .../pages/creatProcess/bzjd/step3.vue | 257 +++++++++++-- .../pages/creatProcess/bzjd/step4.vue | 359 ++++++++++++++++- .../pages/creatProcess/bzjd/step5.vue | 359 ++++++++++++++++- .../pages/creatProcess/bzjd/step6.vue | 360 +++++++++++++++++- .../tabComponents/processCenter/index.vue | 6 +- 7 files changed, 1289 insertions(+), 60 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue index d58302118..e7c97df17 100644 --- a/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue +++ b/src/pages/processCenter/pages/creatProcess/bzdy/step8.vue @@ -110,12 +110,12 @@ diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue index 2b4f133eb..fe5b7963d 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step2.vue @@ -2,8 +2,8 @@
- - + +
基础信息
diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue index ba0238f65..16e4c64d7 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step3.vue @@ -2,8 +2,8 @@
- - + +
基础信息
@@ -86,7 +86,8 @@ :header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px', fontWeight: 'bold', height: '48px'}" @selection-change="handleSelectionChange" - row-key="id"> + row-key="id" + > + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
@@ -205,6 +299,15 @@ name: "bzjdStep3", data() { return { + plForm: { + technicalRequir: '', // 核心技术要求 + changePoint: '', // 国内标准的差异点 + complianceRequir: '1', // 符合性要求 + complianceState: '', // 合规性分析 + newData: '', // 新车型实施日期 + onlineData: '', // 在产车实施日期 + }, + modalshowflag: false, sarType: '', itemList: [], loading: false, @@ -221,7 +324,8 @@ number1: '', name1: '' }, - json: {} + json: {}, + idList: [] } }, components: { @@ -230,7 +334,43 @@ ProcessTitle }, methods: { - handleSelectionChange () {}, + saveUserInfo () { + for( let a = 0; a < this.itemList.length; a++) { + for ( let b = 0; b < this.idList.length; b++) { + if (this.itemList[a].id === this.idList[b]) { + this.itemList[a].technicalRequir = this.plForm.technicalRequir + this.itemList[a].changePoint = this.plForm.changePoint + this.itemList[a].complianceRequir = this.plForm.complianceRequir + this.itemList[a].complianceState = this.plForm.complianceState + this.itemList[a].newData = this.plForm.newData + this.itemList[a].onlineData = this.plForm.onlineData + } + } + } + this.modalshowflag = false + }, + cancleUserInfo () { + this.modalshowflag = false + }, + choiceZRR () { + if (this.idList.length > 0) { + this.plForm.technicalRequir = '' + this.plForm.changePoint = '' + this.plForm.complianceRequir = '1' + this.plForm.complianceState = '' + this.plForm.newData = '' + this.plForm.onlineData = '' + this.modalshowflag = true + } else { + this.$message.warning('请选择要编辑的数据') + } + }, + handleSelectionChange (val) { + this.idList = [] + val.forEach( item => { + this.idList.push(item.id) + }) + }, handleTabs(name) { this.active = name }, @@ -238,27 +378,53 @@ handleSubmit() { this.$refs['bzzqyjForm'].validate((valid) => { if (valid) { - var json = this.json - json.commentText = this.commentText - var arr = this.form.zxUserId.split(',') - var newArr = [] - arr.forEach(item => { - var json1 = {} - json1.id = item - newArr.push(json1) - }) - json.zxUserId = newArr - json.zxUserIdName = this.form.zxUserIdName - this.$http.post('lawss/activiti/completeTask', { - json: JSON.stringify(json), - taskId: this.taskIds, - userId: this.$store.getters.userInfo.userId - }, {}, res => { - if (res.success) { - this.$message.success('提交成功') - this.$router.push('/processCenter') + let num1 = 0, num2 = 0, num3 = 0, num4 = 0, num5 = 0 + for (let a = 0; a < this.itemList.length; a++) { + if (!this.itemList[a].technicalRequir) { + num1++ } - }) + if (!this.itemList[a].changePoint) { + num2++ + } + if (!this.itemList[a].complianceRequir) { + num3++ + } + if (!this.itemList[a].newData) { + num4++ + } + if (!this.itemList[a].onlineData) { + num5++ + } + } + if (num1 > 0) { + this.$message.warning('请输入核心技术要求') + } else if (num2 > 0) { + if (this.sarType === 'INLAND') { + this.$message.warning('请输入国内标准的差异点') + } else { + this.$message.warning('请输入基于上一版本差异') + } + } else if (num3 > 0) { + this.$message.warning('请输入符合性要求') + } else if (num4 > 0) { + this.$message.warning('请输入新车型实施日期') + } else if (num5 > 0) { + this.$message.warning('请输入在产车实施日期') + } else { + var json = this.json + json.commentText = this.commentText + json.itemList = this.itemList + this.$http.post('lawss/activiti/completeTask', { + json: JSON.stringify(json), + taskId: this.taskIds, + userId: this.$store.getters.userInfo.userId + }, {}, res => { + if (res.success) { + this.$message.success('提交成功') + this.$router.push('/processCenter') + } + }) + } } else { return this.$message.warning('请完善基础信息') } @@ -277,10 +443,19 @@ this.form.name1 = data.name1 this.sarType = data.standInData this.json = data - this.itemList = JSON.parse(data.itemList) - this.itemList.forEach( item => { - item.deptName = this.$store.getters.userInfo.orgName + const itemList = JSON.parse(data.itemList) + itemList.forEach(item => { + item.unitDeptName = this.$store.getters.userInfo.orgName + item.onlineData = '' + item.newData = '' + item.complianceState = '' + item.oldNumber = '' + item.complianceRequir = '1' + item.changePoint = '' + item.technicalRequir = '' + item.itemsTitle = item.itermsConditions }) + this.itemList = itemList }).catch(e => { }) }) diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue index 51fa5d16e..3e40ba328 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step4.vue @@ -1,13 +1,364 @@ - diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue index e5703d7c0..72c8cca77 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step5.vue @@ -1,13 +1,364 @@ - diff --git a/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue b/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue index 15b0a36dd..93d7edd9b 100644 --- a/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue +++ b/src/pages/processCenter/pages/creatProcess/bzjd/step6.vue @@ -1,13 +1,365 @@ - diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue index 635db2de4..81daee6cb 100644 --- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue +++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue @@ -613,7 +613,7 @@ export default { prcType: row.prcType } }) - } else if (row.taskInfo === '4') { + } else if (row.taskInfo === '责任人审核') { this.$router.push({ name: 'bzjdStep4', query: { @@ -624,7 +624,7 @@ export default { prcType: row.prcType } }) - } else if (row.taskInfo === '5') { + } else if (row.taskInfo === '工程师审核') { this.$router.push({ name: 'bzjdStep5', query: { @@ -635,7 +635,7 @@ export default { prcType: row.prcType } }) - } else if (row.taskInfo === '6') { + } else if (row.taskInfo === '部长审批') { this.$router.push({ name: 'bzjdStep6', query: { From a379b47c4c544e7d01a0ecdedd5d23f03a680e0e Mon Sep 17 00:00:00 2001 From: super_liu <396572590@qq.com> Date: Fri, 16 Jul 2021 17:31:27 +0800 Subject: [PATCH 4/9] =?UTF-8?q?feat:=20=E6=A0=87=E5=87=86=E5=BA=93?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=20=E6=9C=AA=E5=AE=9E=E7=8E=B0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/treeSelect/treeSelect.vue | 5 +- .../pages/creatProcess/bzrk/step1.vue | 83 +++++---- .../pages/creatProcess/bzrk/step2.vue | 136 +++++++++++--- .../pages/creatProcess/bzrk/step3.vue | 133 ++++++++++--- .../pages/creatProcess/bzrk/step4.vue | 116 +++++++++--- .../domesticStandardsAndRegulations/index.vue | 174 ++++++++++++++++-- 6 files changed, 513 insertions(+), 134 deletions(-) diff --git a/src/components/treeSelect/treeSelect.vue b/src/components/treeSelect/treeSelect.vue index f980c43f9..1fd56f2f2 100644 --- a/src/components/treeSelect/treeSelect.vue +++ b/src/components/treeSelect/treeSelect.vue @@ -17,12 +17,11 @@ @@ -1376,7 +1332,14 @@ export default { KCCVPPSCN: '', DYBXH: '', DYMC: '', - + CYSD:'', + CLLX:'', + NYLX:'', + SYCPX:'', + SYRZ:'', + ZRBM:'', + ZRGCS:'', + WSSMR:'', }, // 标准新增过程中用到的对象 standClass: [], // 标准类别 sarStandardsInfoEO: { @@ -1495,7 +1458,21 @@ export default { sentScreenFileFeedback: '', approvalFileTime: '', approvalFileFeedback: '', - certPutTimeList: [] + certPutTimeList: [], + CYCVPPSBM: '', + CYCVPPSCN: '', + KCCVPPSBM: '', + KCCVPPSCN: '', + DYBXH: '', + DYMC: '', + CYSD:'', + CLLX:'', + NYLX:'', + SYCPX:'', + SYRZ:'', + ZRBM:'', + ZRGCS:'', + WSSMR:'', }, // 标准新增过程中用到的对象 currentFileList: '', // 当前操作的是哪个FormItem的上传 isList: [ @@ -2019,7 +1996,6 @@ export default { Promise.all([this.queryDisplayLocation()]).then((values) => { const [displayLocation] = values const formFieldList = this.formFieldList - console.log(formFieldList) this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item)) if(this.sarStandardsInfoEO.standSystem){ this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem]; @@ -2057,11 +2033,11 @@ export default { } field['value'] = value // 追加用户名称和部门名称和SVPPS名称 - if (field.selVal === 'ROLELIST' || field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS' || field.attrField === 'XMPGJS') { - let attrFieldName = field.attrField + 'Name' - valueName = dynamicFormField[attrFieldName] - } - field['valueName'] = valueName + // if (field.selVal === 'ROLELIST' || field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS' || field.attrField === 'XMPGJS') { + // let attrFieldName = field.attrField + 'Name' + // valueName = dynamicFormField[attrFieldName] + // } + // field['valueName'] = valueName if (field.showRegionId === location.value) { if (!location.child) { location['child'] = [] @@ -2071,6 +2047,7 @@ export default { }) }) this.dynamicFormField = displayLocation + console.log(this.dynamicFormField) this.loading = false }) }) @@ -2790,10 +2767,8 @@ export default { // 验证标准号是否唯一 this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => { if (flag) { - debugger // 时间格式修改 let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO)) - console.log(nowstandinfo) if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') { nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss') } @@ -2823,8 +2798,6 @@ export default { sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField] }) nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'") - console.log(formFieldList) - console.log(nowstandinfo) this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, { _this: this }, res => { @@ -3739,9 +3712,50 @@ export default { const data = this.formFieldListData this.formFieldList = data.map((item) => { if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') { - return Object.assign({}, item, { - options: this.allSelectOptions[item.selVal] - }) + if(item.attrField === 'WSSMR'){ + const options = [ + {label:"署名人1",value:"1"},{label:"署名人2",value:"2"} + ] + return Object.assign({}, item, { + options: options + }) + }else if(item.attrField === 'CYSD'){ + return Object.assign({}, item, { + options: this.allSelectOptions["WSCYSD"] + }) + }else if(item.attrField === 'CLLX'){ + return Object.assign({}, item, { + options: this.allSelectOptions["ENERGYTYPES"] + }) + }else if(item.attrField === 'NYLX'){ + return Object.assign({}, item, { + options: this.allSelectOptions["NYLXCLASS"] + }) + }else if(item.attrField === 'SYCPX'){ + return Object.assign({}, item, { + options: this.allSelectOptions["SYCPXCLASS"] + }) + }else if(item.attrField === 'SYRZ'){ + return Object.assign({}, item, { + options: this.allSelectOptions["SYRZCLASS"] + }) + }else if(item.attrField === 'ZRBM'){ + return Object.assign({}, item, { + options: this.allSelectOptions["ZRBMCLASS"] + }) + }else if(item.attrField === 'ZRGCS'){ + return Object.assign({}, item, { + options: this.allSelectOptions["ZRGCSCLASS"] + }) + }else if(item.attrField === 'TXLB'){ + return Object.assign({}, item, { + options: this.allSelectOptions["TXLBCLASS"] + }) + }else { + return Object.assign({}, item, { + options: this.allSelectOptions[item.selVal] + }) + } } else { return item } diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index 135a7ce75..12f3fabf4 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -613,39 +613,6 @@ :disabled="formdisableflag" > - - - - - - + @@ -931,7 +932,7 @@ export default { _this: this }, res => { this.addSpiltStandList = res.data.list - this.addFileStandtotal = res.data.count + this.addFileStandtotal = res.data.list.length this.loadData = false }, e => { this.loadData = false @@ -1359,10 +1360,7 @@ export default { name: 'ItemSplitInfo', query: { infoId: row.id, - // standNumSplit: row.standNumSplit === null ? row.showNumber : row.standNumSplit, - // standNameSplit: row.standNameSplit === null ? row.standName : row.standNameSplit, result: row.result, - // fileType: row.fileType } }) }, diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue index 8e443909d..9c9831194 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue @@ -340,7 +340,7 @@ export default { // 点击批量删除事件 deleteList() { - if (this.selectList.length < 1) { + if (this.selectedList.length < 1) { this.$message.warning("请选择一条数据进行删除"); } else { this.$confirm("您确认删除这些数据?", "提示", { @@ -350,7 +350,7 @@ export default { type: "warning" }).then(() => { let exits = []; - this.selectList.map(item => { + this.selectedList.map(item => { let index; index = this.dataList.findIndex(items => { return items.id = item; @@ -360,7 +360,7 @@ export default { } exits.push(item); }); - this.selectList = []; + this.selectedList = []; }).catch(() => { }); } diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue index 9407ee22c..2fbc81167 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue @@ -92,8 +92,10 @@ - -
{{ 11 || '暂无数据' }}
+ + @@ -263,6 +265,16 @@ export default { } this.getData() }, + download(row) { + // window.open(process.env.VUE_APP_BASE_API + "/hospital/file/downloadFile?tPath=" + tPath) + var name = row.fileText; + var url = row.fileTextPath; + const a = document.createElement('a') + a.setAttribute('download', name) + a.setAttribute('target', '_blank') + a.setAttribute('href', process.env.VUE_APP_BASE_API + "/hospital/file/downloadFile?tPath=" + url) + a.click() + }, // 分页事件 pageChange (page) { this.pageNo = page diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index 1356728b8..aece23601 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -462,7 +462,7 @@ export default { // 新增、编辑 基础信息字段 sarAccessEO: { id: '', - sortKey: 1, + sortKey: 4, detailedList: '', detailedListName: '', energyKind: '', diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index 96ac0b5fe..7b9220a28 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -10,8 +10,8 @@ - - + +
{ if (valid) { let rowlist = [] diff --git a/src/router/index.js b/src/router/index.js index 4ab6e1b9d..8d295b2a8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -702,7 +702,7 @@ const routes = [ meta: { requireAuth: false, // parentPath: '/standAutoSplit', - title: '标准分解单' + title: '拆分结果' } }, // 标准编号申领