diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index 3514f3266..a3ae69e2f 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -3,7 +3,7 @@
- {{sarStandardsInfoEO.standSortShow || ''}} {{sarStandardsInfoEO.standNumber}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 标准详情 + {{ sarStandardsInfoEO.standSortShow || '' }} {{ sarStandardsInfoEO.standNumber }}-{{ sarStandardsInfoEO.standYear }} 《{{ sarStandardsInfoEO.standName }}》 标准详情
@@ -16,10 +16,10 @@ v-if="item.isShowImp === '0'" >
-
{{ item.label }}
+
{{ item.label }}
-
{{ item.label }}
+
{{ item.label }}
@@ -35,28 +35,42 @@
- - - - - - + + + + +

@@ -211,7 +225,7 @@ @@ -220,15 +234,15 @@ >

- {{item}} + {{ item }}

- {{ !child.value || child.value === 'null' ? '-' : child.value }} @@ -245,147 +259,148 @@ v-for="(file, fileIndex) in child.value" :key="fileIndex" > - +

- - - - - - + + + + + +
- +
{{ item.showAll ? '收起' : '更多' }} @@ -395,8 +410,9 @@
-
更多
- +
更多 +
+ - - - - - - - - -
- - - - - - - - -
- - - +
+ v-model="standItemSearch.XCXSSRQ" + type="date" + placeholder="新车实施日期">
- +
+ v-model="standItemSearch.ZCCSSRQ" + type="date" + placeholder="在产车实施日期">
- - -
- 导出 + + 导出 + 关联条款 + >关联条款 +
- - + prop="interpretationContent" + label="解读内容" + show-overflow-tooltip + > + + prop="xcxssrq" + label="新车型实施日期(文本)" + width="180"> + + + +
- + - 查看 + 查看 + @@ -620,14 +626,14 @@ :rules="sarStandardItemRules" label-width="150px" > - + - +
@@ -768,11 +776,15 @@
- {{ standShowItemEO.termsConditions ? standShowItemEO.termsConditions.replace(/<.*?>/ig, ' ') : '' }} + {{ + standShowItemEO.termsConditions ? standShowItemEO.termsConditions.replace(/<.*?>/ig, ' ') : '' + }}
- {{ standShowItemEO.responsibleUnit }} + {{ + standShowItemEO.responsibleUnit + }}
@@ -780,7 +792,9 @@
- {{ standShowItemEO.dutyEngineerShow }} + {{ + standShowItemEO.dutyEngineerShow + }}
@@ -796,7 +810,9 @@
- {{ standShowItemEO.busStandCoverShow ? standShowItemEO.busStandCoverShow : busStandCoverName(standShowItemEO.busStandCover) }} + {{ + standShowItemEO.busStandCoverShow ? standShowItemEO.busStandCoverShow : busStandCoverName(standShowItemEO.busStandCover) + }}
@@ -813,7 +829,7 @@ v-if="relateNowList" style="margin-bottom: 10px;line-height: 20px;max-height: 300px" > - {{index+1}}. {{item.creationUserName}} {{item.creationTime}} {{item.content}} + {{ index + 1 }}. {{ item.creationUserName }} {{ item.creationTime }} {{ item.content }}
@@ -833,11 +849,13 @@ class="common-button-primary add-button" size="mini" :v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'PVBSWCJQ9X4RVBM9RK7L' : 'NJ3YL4SVEJADWH7ESHDX'" - @click="addknowledge(1)">新增 + @click="addknowledge(1)">新增 + 批量删除 + @click="deleteknowledge(2)">批量删除 +
查看 - 编辑 - 删除 + + 编辑 + + + 删除 +
@@ -927,7 +949,9 @@ @@ -948,7 +972,9 @@ @click="downloadFile(item.id)" :key="index">{{ item.oldFileName }}

-

{{ knowSee.creationTime ? $moment(knowSee.creationTime).format('YYYY-MM-DD') : '' }}

+

{{ + knowSee.creationTime ? $moment(knowSee.creationTime).format('YYYY-MM-DD') : '' + }}

@@ -964,18 +990,20 @@ + icon="el-icon-search" + type="primary" + class="common-button-primary" + size="mini" + @click="getComparison()"> - 新增 + class="common-button-default" + icon="el-icon-refresh-left" + size="mini" + @click="clearComparison()"> + + 新增 + @@ -989,7 +1017,9 @@ @@ -1021,8 +1051,11 @@ @@ -1034,32 +1067,38 @@

数据获取中
@@ -1086,7 +1125,7 @@ export default { CustomOrg, RelatedTermsSelect }, - data () { + data() { return { relatedTermsDrawerVisible: false, btnLoading: false, @@ -1271,11 +1310,11 @@ export default { modalStandItemflag: false, tableLoading: false, standItemSearch: { - XCXSSRQ:'', - ZCCSSRQ:'', + XCXSSRQ: '', + ZCCSSRQ: '', standId: '', fileType: '', - itemsName:'', + itemsName: '', pageSize: this.$store.getters.userInfo.configContent, page: 1, }, @@ -1372,23 +1411,20 @@ export default { standMap: {} } }, - props: { - }, + props: {}, watch: {}, methods: { - FormatDate(date){ - return moment(date).format('YYYY-MM-DD'); + FormatDate(date) { + return moment(date).format('YYYY-MM-DD'); }, // 将文本状态的id与name对应 - setMap(data){ + setMap(data) { data.forEach(item => { this.$set(this.textStatusMap, item.value, item.label) this.$set(this.standMap, item.value, item.label) }) - console.log(this.textStatusMap, '文本状态的值') - console.log(this.standMap, '标准性质') }, - statusClick () { + statusClick() { let routeUrl = this.$router.resolve({ name: 'standInvolveProjectTwo', query: { @@ -1397,88 +1433,15 @@ export default { }) window.open(routeUrl.href, '_blank') }, - closeDrawer () { + closeDrawer() { this.modalStandItemflag = false - // svpps变化 - // Promise.all([this.queryDisplayLocation(), this.selectStandMessage(), this.getAddFormFieldList()]).then((values) => { - // const [displayLocation, standEO, formFieldList] = values - // const dynamicFormField = standEO ? standEO.attrInfoMap : {} - // formFieldList.forEach((field) => { - // displayLocation.forEach((location) => { - // location.isShowImp = '1' - // if (dynamicFormField) { - // let value = dynamicFormField[field.attrField] - // if (field.attrField === 'SVPPS') { - // let tips = dynamicFormField.SVPPSTips - // field['tips'] = tips - // } - // if (value && typeof value === 'number') { - // value = this.$dateFormat(value, 'yyyy-MM-dd') - // } - // field['value'] = value - // if (field.showRegionId === location.value) { - // if (!location.child) { - // location['child'] = [] - // } - // location['child'].push(field) - // if (field.isShowImp === '0') { - // location.isShowImp = '0' - // } - // } - // } - // }) - // }) - // displayLocation.forEach(location => { - // const child = location.child || [] - // const one = [] - // const half = [] - // child.map(field => { - // if (['DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'].includes(field.attrType)) { - // half.push(field) - // } else { - // one.push(field) - // } - // }) - // const fieldsIsTextAreaOrFile = child.filter(field => { - // return field.attrType === 'TEXTAREA' || field.attrType === 'FILE' - // }) - // const fieldOthers = child.filter(field => { - // return field.attrType !== 'TEXTAREA' && field.attrType !== 'FILE' - // }) - // location.child = [...fieldOthers, ...fieldsIsTextAreaOrFile] - // location.one = one - // location.half = half - // location.showAll = false - // }) - // this.$http.get('lawss/sarSarAccessInfo/selectProTimeInfoByStandId', { - // standId: this.$route.params.id - // }, { - // _this: this - // }, res => { - // displayLocation.map(item => { - // if (item.value === '2URVBGR2Y4UG77KZ5YPL') { - // for (let key in res.data) { - // item.one.push({ - // attrName: key, - // value: res.data[key].join(','), - // isShowImp: '0', - // id: key - // }) - // } - // } - // }) - // this.dynamicFormField = displayLocation - // }) - // sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) - // this.loading = false - // }) }, - clearComparison () { + clearComparison() { this.comparisonTitle = '' this.getComparison() }, // 验证条款号是否唯一 - validCode (rule, value, callback) { + validCode(rule, value, callback) { let find = 0 this.standItemList.map(item => { if (item.itemsNum === value) { @@ -1493,7 +1456,7 @@ export default { callback() }, // 新增清单 - submitDrawerForm (name) { + submitDrawerForm(name) { this.$refs[name].validate((valid) => { if (valid) { const formData = { @@ -1516,7 +1479,7 @@ export default { }) }, // 比对提交 - comparisonSub () { + comparisonSub() { if (this.comparisonId === '') { this.$message.error('请选择比对清单') } else { @@ -1552,13 +1515,13 @@ export default { } }, // 比对关闭 - comparisonClose () { + comparisonClose() { this.comparisonTitle = '' this.comparisonId = '' this.comparisonDialog = false }, // 获取清单 - getComparison () { + getComparison() { this.$http.get('lawss/sarStandCompareBase/page', { listName: this.comparisonTitle, page: '1', @@ -1573,22 +1536,22 @@ export default { }) }, // 打开比对模态框 - comparisonDialogOpen () { + comparisonDialogOpen() { this.comparisonDialog = true this.getComparison() }, // 比对新增 - addComparison () { + addComparison() { this.AddcomparisonDrawer = true this.listVO.name = '' this.listVO.public = false }, - beforeUpload1 (file) { + beforeUpload1(file) { var filename = file.name var index1 = filename.lastIndexOf('.') var index2 = filename.length var fileSuffix = filename.substring(index1, index2) - if (fileSuffix === '.pdf' || fileSuffix === '.doc' || fileSuffix === '.docx' || fileSuffix === '.PDF'|| fileSuffix === '.ppt' || fileSuffix === '.pptx') { + if (fileSuffix === '.pdf' || fileSuffix === '.doc' || fileSuffix === '.docx' || fileSuffix === '.PDF' || fileSuffix === '.ppt' || fileSuffix === '.pptx') { return true } else { this.$message.error('文件' + file.name + '格式不正确,请上传doc、docx、ppt、pptx、pdf、或PDF文件') @@ -1601,7 +1564,7 @@ export default { } return true }, - uploadSuccess1 (res, file, fileList) { + uploadSuccess1(res, file, fileList) { if (res.ok) { this.addForm.fileId += res.data.id + ',' this.$message({ @@ -1613,7 +1576,7 @@ export default { this.importForm.content = res.message } }, - removeOneFile1 (file, fileList) { + removeOneFile1(file, fileList) { let ids = this.addForm.fileId.split(',') if (file.response) { let fileIds = file.response.data.id @@ -1622,7 +1585,7 @@ export default { } }, // 删除数组中的某个对象 - removeAaary (_arr, _obj) { + removeAaary(_arr, _obj) { var length = _arr.length for (var i = 0; i < length; i++) { if (_arr[i] === _obj) { @@ -1639,7 +1602,7 @@ export default { } } }, - handleSelectionKnow (val) { + handleSelectionKnow(val) { this.knowIdList = '' val.map((item, index) => { if (val.length === 1) { @@ -1652,7 +1615,7 @@ export default { }) }, // 确定新增 - AddKnowSub () { + AddKnowSub() { this.$refs['addForm'].validate((valid) => { if (valid) { this.AddKnowSubLoading = true @@ -1698,7 +1661,7 @@ export default { }) }, // 关闭知识点新增 - AddKnowClose () { + AddKnowClose() { this.defaultFileList = [] this.addForm.title = '' this.addForm.content = '' @@ -1707,19 +1670,19 @@ export default { this.AddKnowledgDialog = false }, // 知识点分页 - pageChange1 (page) { + pageChange1(page) { this.pageNo = page this.getKnowList() }, - pageSizeChange1 () { + pageSizeChange1() { this.getKnowList() }, - knowledgeSharing () { + knowledgeSharing() { this.knowledgeSharingDialog = true this.getKnowList() }, // 获取知识点列表数据 - getKnowList () { + getKnowList() { this.$http.get('lawss/sarKnowledgeShare/page', { sarId: this.$route.params.id, sarType: this.$route.params.pageType, @@ -1734,7 +1697,7 @@ export default { } }) }, - handleCommand2 (command) { + handleCommand2(command) { switch (command[1]) { case '查看': this.handleKnow(command[0]) @@ -1748,12 +1711,12 @@ export default { } }, // 查看知识点 - handleKnow (row) { + handleKnow(row) { this.AddKnowledgDialogItem = true this.knowSee = row }, // 点击新增知识点 - addknowledge (type, row) { + addknowledge(type, row) { this.knowType = type if (type === 1) { this.KnowTitle = '新增知识点' @@ -1777,7 +1740,7 @@ export default { } }, // 删除知识点 - deleteknowledge (type, row) { + deleteknowledge(type, row) { // type = 2为批量删除 1为单条删除 var ids = '' if (type === 2) { @@ -1824,7 +1787,7 @@ export default { }) }, // 代替标准编号 - showReplaceStandInfo (item) { + showReplaceStandInfo(item) { this.replaceStandInfoEO.standNumber = item // this.replaceStandInfoEO.standType = this.sarStandardsInfoEO.standType this.$http.get('sarStandardsInfo/sar-standards-info/queryInfoByStandNum', this.replaceStandInfoEO, { @@ -1845,7 +1808,7 @@ export default { }, e => { }) }, - clickButtonToUpload (current) { + clickButtonToUpload(current) { this.currentFileList = current this.currentFile = JSON.parse(JSON.stringify(current).replace('List', '')) // this.importModalshowflagtemp = true @@ -1880,7 +1843,7 @@ export default { } }, // 新增、编辑上传文件之前的钩子 - beforeUpload (file) { + beforeUpload(file) { var filename = file.name var index1 = filename.lastIndexOf('.') var index2 = filename.length @@ -1896,7 +1859,7 @@ export default { return false } // 判断文件上传大小 - if (file.size / 1024 / 1024 <= 200) {// eslint-disable-line + if (file.size / 1024 / 1024 <= 200) {// eslint-disable-line return true } else { this.$message.error('文件' + file.name + '大小不超过200M') @@ -1905,7 +1868,7 @@ export default { return true }, // 导入标准数据成功后执行 - importFileSuccess (res, file, fileList) { + importFileSuccess(res, file, fileList) { if (res.ok) { // 使用字条款是否展示模态框判断导入的文件是标准,还是条款modalStandItemflag // this.selectSarStandItems(this.standItemSearch.standId) @@ -1922,7 +1885,7 @@ export default { this.showUploadlist = false } }, - removeOneFile (file, fileList) { + removeOneFile(file, fileList) { // this.sarStandardsInfoEO[this.currentFileList] = this.removeAaary(this.sarStandardsInfoEO[this.currentFileList], file.response.data) let ids = this.sarStandardsInfoEO[this.currentFile].split(',') if (file.response) { @@ -1942,32 +1905,32 @@ export default { } }, // 导入文件大小超出范围 - handleSizeError (file) { + handleSizeError(file) { this.$message.error('文件' + file.name + '大小不超过200M') }, // 导入标准文件格式错误执行 - handleFormatError (file) { + handleFormatError(file) { this.$message.error('文件' + file.name + '格式不正确,请上传以.xlsx结尾的excel文件') }, // 子条款部门名称改变后 - itemOrgNameChange () { + itemOrgNameChange() { if (this.standItemEO.orgName === '') { this.standItemEO.responsibleUnit = '' } this.getOrgTreeSource() }, - treeDblClickEngin (treeId, treeNode) { + treeDblClickEngin(treeId, treeNode) { this.standItemEO.dutyEngineer = treeNode.id this.standItemEO.dutyEngineerShow = treeNode.name $('#enginBtnS').click() }, - treeDblClickFO (treeId, treeNode) { + treeDblClickFO(treeId, treeNode) { this.standItemEO.fo = treeNode.id this.standItemEO.foShow = treeNode.name $('#foBtnS').click() }, // 标准条款新增 - saveOrUpdateStandItem () { + saveOrUpdateStandItem() { this.$refs['sarStandardsItemForm'].validate((valid) => { if (valid) { let nowstandItem = JSON.parse(JSON.stringify(this.standItemEO)) @@ -2003,31 +1966,31 @@ export default { }) }, // 表单清空 - resetForm () { + resetForm() { this.$nextTick(() => { // this.$refs['sarStandardsItemForm'].resetFields() this.$refs['sarStandardsItemForm'].clearValidate() }) this.modalItemaddShowflag = false }, - selectAllStand (alldata) { + selectAllStand(alldata) { this.selectedItemList = [] for (let i = 0; i < alldata.length; i++) { this.selectedItemList.push(alldata[i].id) } }, // 分页点击后方法 - pageChange (page) { + pageChange(page) { this.standItemSearch.page = page this.selectSarStandItems() }, // 分页每页显示数改变后方法 - pageSizeChange (pageSize) { + pageSizeChange(pageSize) { this.standItemSearch.pageSize = this.$store.getters.userInfo.configContent this.selectSarStandItems() // 此处需要调用接口,修改个人配置 }, - selectStandMessage () { + selectStandMessage() { return new Promise((resolve, reject) => { this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoById', {id: this.sarStandardsInfoEO.id}, { _this: this @@ -2061,7 +2024,7 @@ export default { }) }, // 新增浏览记录 - addPersonCookie () { + addPersonCookie() { this.personCookieEO.cookieType = this.$route.params.pageType if (this.sarStandardsInfoEO.standYear != null && this.sarStandardsInfoEO.standYear !== '') { this.personCookieEO.resTitle = this.sarStandardsInfoEO.standName + '(编号:' + this.sarStandardsInfoEO.standSortShow + ' ' + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear + ')' @@ -2076,7 +2039,7 @@ export default { }) }, // 获取组织机构数据 - getOrgTreeSource () { + getOrgTreeSource() { this.$http.get('sys/org/getTree', {}, {_this: this}, res => { if (res.ok) { @@ -2095,9 +2058,10 @@ export default { this.zNodesSItem = treeNode this.searchInlandNodes = treeNode } - }, e => {}) + }, e => { + }) }, - getUserTreeSource () { + getUserTreeSource() { this.$http.get('sys/org/getTree', {}, {_this: this}, res => { if (res.ok) { @@ -2115,10 +2079,11 @@ export default { }) this.zNodesSItemEngin = treeNode } - }, e => {}) + }, e => { + }) }, // 查询相近标准 - selectCloseStand (id) { + selectCloseStand(id) { let obj = {} obj.id = id let url = '' @@ -2132,17 +2097,17 @@ export default { }, e => { }) }, - openFileInPdf (attId, oldFileName) { + openFileInPdf(attId, oldFileName) { // 判断是否是图片格式,图片格式不预览,直接下载 let index1 = oldFileName.lastIndexOf('.') let index2 = oldFileName.length let fileSuffix = oldFileName.substring(index1, index2) //把后缀转大写 - if(fileSuffix !== undefined && fileSuffix !== null){ + if (fileSuffix !== undefined && fileSuffix !== null) { fileSuffix = fileSuffix.toUpperCase() } // 判断上传文件格式 - if (fileSuffix === '.PNG'|| fileSuffix === '.JPG'|| fileSuffix === '.JPEG') { + if (fileSuffix === '.PNG' || fileSuffix === '.JPG' || fileSuffix === '.JPEG') { this.downloadFile(attId) return true } @@ -2236,7 +2201,7 @@ export default { } } }, - showItemsModel (attField) { + showItemsModel(attField) { this.fileType = attField this.getOrgTreeSource() this.selectedItemList = [] @@ -2250,37 +2215,27 @@ export default { }) }, // 分解单----查看标准条款相关 - selectSarStandItems (id, flag) { + selectSarStandItems(id, flag) { this.standItemSearch.standId = this.sarStandardsInfoEO.id this.standItemSearch.fileType = this.fileType this.$http.get('SarStandItems/sar-stand-items/querySarItemAndInterpretation', this.standItemSearch, {}, res => { this.selectedItemList = [] if (res.ok) { this.standItemList = res.data; - console.log("hello"+this.standItemList+res.data); + console.log("hello" + this.standItemList + res.data); this.standitemTotal = res.data.count // 分页需要 } - - // if (this.standItemList != null && this.standItemList.length > 0) { - // for (let ind = 0; ind < this.standItemList.length; ind++) { - // // 去掉html标签 - // let itemContent = this.standItemList[ind].termsConditions - // itemContent = itemContent ? itemContent.replace(/<.*?>/ig, ' ') : '' - // this.standItemList[ind].termsConditions = itemContent - // } - // } - }, e => { }) }, - downloadFile (attId) { + downloadFile(attId) { if (attId != null && attId !== '') { window.location.href = '/api/att/attFile/downloadFileForSar?fileId=' + attId } else { this.$message.error('请选择要下载的文件') } }, - downloadFileByWater (attId, fileSuffix) { + downloadFileByWater(attId, fileSuffix) { if (fileSuffix !== 'pdf' && fileSuffix !== 'PDF') { this.$message.error('水印下载仅支持PDF,pdf格式文件') } else { @@ -2292,9 +2247,9 @@ export default { } }, /** - * @Description: 跳转流程 - */ - processCenterClick (item) { + * @Description: 跳转流程 + */ + processCenterClick(item) { let routeUrl = this.$router.resolve({ name: 'ProcessDetail', query: { @@ -2303,12 +2258,12 @@ export default { }) window.open(routeUrl.href, '_blank') }, - searchSarStandItems () { + searchSarStandItems() { this.standItemSearch.page = 1 this.selectSarStandItems() }, // 清空搜索框 - clearAllSearch () { + clearAllSearch() { // 标准条款搜索 this.standItemSearch.responsibleUnit = '' this.standItemSearch.orgName = '' @@ -2317,17 +2272,17 @@ export default { this.standItemSearch.fileType = '' this.selectSarStandItems() }, - inputChange () { + inputChange() { this.standItemSearch.responsibleUnit = '' this.getOrgTreeSource() }, - searchInlandNodesClick (treeId, treeNode) { + searchInlandNodesClick(treeId, treeNode) { this.standItemSearch.responsibleUnit = treeNode.id this.standItemSearch.orgName = treeNode.name $('#searchInlandDeptBtn').click() }, // 点击条款表格上面的操作按钮新增 - addItemModal () { + addItemModal() { this.editAddType = 1 this.getOrgTreeSource() this.itemModalTitle = '新增标准法规条款' @@ -2341,18 +2296,18 @@ export default { this.itemFormdisableflag = false }, // 模板下载 - uploadImportModal (flag) { + uploadImportModal(flag) { window.open('/api/att/attFile/uploadModalFile?fileName=分解单导入模板.xlsx') }, // 点击导入标准 - addImportModal (flag) { + addImportModal(flag) { this.importModalshowflag = true this.importExcelUrl = '/api/lawss/sarStandItems/importSarStandItemsList?standId=' + this.standItemSearch.standId + '&fileType=' + this.fileType this.$nextTick(() => { this.$refs.importFileAboutStand.clearFiles() }) }, - exportStandardItem () { + exportStandardItem() { this.$confirm('您是否要导出数据?', '提示', { confirmButtonText: '确定', confirmButtonClass: 'common-button-primary', @@ -2368,10 +2323,11 @@ export default { } else { this.$message.warning('暂无可导出的数据') } - }).catch(() => {}) + }).catch(() => { + }) }, // 标准条款删除 - deleteStandItem (item, flag) { + deleteStandItem(item, flag) { // flag==1 删除单条 flag==2 批量删除 let ids = [] if (flag === 1) { @@ -2429,7 +2385,7 @@ export default { } }, // 分解单-查看 - handlePreview (item) { + handlePreview(item) { this.showItemInfoModal = true let fileList = [] item.defaultFileList = [] @@ -2470,7 +2426,7 @@ export default { } }, // 分解单-编辑 - selectStandardPro (item) { + selectStandardPro(item) { this.editAddType = 2 this.itemModalTitle = '编辑标准法规条款' item.orgName = '' @@ -2493,7 +2449,7 @@ export default { }) }, // 修改过程中,将resId 修改成 attid - updateResidToAttid (filetype) { + updateResidToAttid(filetype) { if (this.sarStandardsInfoEO[filetype] !== null && this.sarStandardsInfoEO[filetype] !== '') { this.$http.get('lawss/attFile/getMultiFileInfosByResid', { fileIds: this.sarStandardsInfoEO[filetype], fileType: 'stand' @@ -2508,7 +2464,7 @@ export default { /** * 展示位置 */ - queryDisplayLocation () { + queryDisplayLocation() { return new Promise((resolve, reject) => { this.$http.get('lawssBase/utArea/getAreaList', { sarType: 'INLAND_STAND' @@ -2525,13 +2481,13 @@ export default { /** * 获取新增弹框的表单 */ - getAddFormFieldList (isEdit) { + getAddFormFieldList(isEdit) { return new Promise((resolve, reject) => { this.$http.get('lawss/sarStandAttrDetails/list', {}, {_this: this}, res => { if (res.ok) { // const { data: { STAND: data } } = res - const { data = {} } = res + const {data = {}} = res this.formFieldListData = data[this.$route.params.pageType] console.log('this.formFieldListData') console.log(this.formFieldListData); @@ -2546,7 +2502,7 @@ export default { }) }, // 点击更多按钮事件 - moreClick () { + moreClick() { this.dynamicFormField.map(item => { item.isShowImp = '0' item.child.map(child => { @@ -2556,12 +2512,12 @@ export default { this.isMoreAwayBtn = true }, // 点击收起按钮事件 - putAwayClick () { + putAwayClick() { this.dynamicFormField = JSON.parse(sessionStorage.getItem('displayLocation')) this.isMoreAwayBtn = false }, // 鼠标滚轮事件 - handleScroll (e) { + handleScroll(e) { // 该语句可以用来判断滚轮是向上滑动还是向下 const direction = e.deltaY > 0 ? 'down' : 'up' if (direction === 'down') { @@ -2569,7 +2525,7 @@ export default { } }, // ... - handleCommand (command) { + handleCommand(command) { switch (command[1]) { case '查看': this.handlePreview(command[0]) @@ -2586,7 +2542,7 @@ export default { * 点击 加收藏 按钮事件 * @param collectId 有值:取消收藏 无值:加收藏 */ - collectClick (collectId) { + collectClick(collectId) { this.isSubmit = true if (collectId) { // 取消收藏 @@ -2625,7 +2581,7 @@ export default { } }, // 更新LOG - relateEvent () { + relateEvent() { this.$http.get('lawss/sarUpdLog/getLogList', { sarId: this.$route.params.id, sarType: this.$route.params.pageType @@ -2653,11 +2609,11 @@ export default { }) }, - relateDialogClose () { + relateDialogClose() { this.relateDialog = false this.relateNowList = [] }, - halfClass (data, nextData, index) { + halfClass(data, nextData, index) { const halfType = ['INPUT_STR', 'DATE_PICKER', 'SEL_OPTION', 'INPUT_NUM'] let flag = false if (halfType.includes(data.attrType)) { // 是 50% 显示的组件时 @@ -2674,7 +2630,7 @@ export default { return flag ? '' : 'clear' }, - handleToggleShowAll (item) { + handleToggleShowAll(item) { if (!item.showAll) { item.showAll = true } else { @@ -2682,7 +2638,7 @@ export default { } }, // 根据企标覆盖关系value值获取名称 - busStandCoverName (value) { + busStandCoverName(value) { let busStandCoverName = '' this.BZFGGXOUIUJ.map(item => { if (item.value === value) { @@ -2714,22 +2670,22 @@ export default { closeRelatedTermsDrawer() { this.$refs['relatedTermsDrawer'].closeDrawer() }, - itemsTextDialog (itemsNum, text) { + itemsTextDialog(itemsNum, text) { this.itemsTextDialogs = true this.itemsText = '

' + itemsNum + '

' + text.replace(/''/g, '\'') } }, computed: { - titleShow () { + titleShow() { return (this.sarStandardsInfoEO.standSortShow || '') + this.sarStandardsInfoEO.standNumber + '-' + this.sarStandardsInfoEO.standYear + '《' + this.sarStandardsInfoEO.standName + '》' + '标准详情' }, - titleHidden () { + titleHidden() { return (this.sarStandardsInfoEO.standSortShow || '') + this.sarStandardsInfoEO.standNumber + '《' + this.sarStandardsInfoEO.standName + '》' + '标准详情' }, - visibleBtn () { + visibleBtn() { return this.$route.name === 'DomesticStandardDetails' }, - sarType () { + sarType() { return this.$route.params.pageType }, standNum() { @@ -2745,7 +2701,7 @@ export default { return item.id } }, - async mounted () { + async mounted() { this.sarStandardsInfoEO.id = this.$route.params.id // await this.selectStandMessage() this.standItemEO.standId = this.$route.params.id @@ -2836,7 +2792,7 @@ export default { } }) this.dynamicFormField = displayLocation - console.log(this.dynamicFormField) + console.log(this.dynamicFormField) }) sessionStorage.setItem('displayLocation', JSON.stringify(displayLocation)) this.loading = false @@ -2849,7 +2805,7 @@ export default { // firefox window.addEventListener('DOMMouseScroll', this.handleScroll, false) }, - destroyed () { + destroyed() { window.removeEventListener('mousewheel', this.handleScroll, false) window.removeEventListener('DOMMouseScroll', this.handleScroll, false) sessionStorage.removeItem('displayLocation') @@ -2861,390 +2817,460 @@ export default { diff --git a/src/pages/home1/components/release/index.vue b/src/pages/home1/components/release/index.vue index 1e38acb4f..ec017fa9b 100644 --- a/src/pages/home1/components/release/index.vue +++ b/src/pages/home1/components/release/index.vue @@ -4,7 +4,7 @@ diff --git a/src/pages/localTool/standAutoSplit/index.vue b/src/pages/localTool/standAutoSplit/index.vue index 1d6be7da5..b22f830da 100644 --- a/src/pages/localTool/standAutoSplit/index.vue +++ b/src/pages/localTool/standAutoSplit/index.vue @@ -77,6 +77,15 @@ show-overflow-tooltip align="center"> + + + { - if (file.name === item.name || file.id === item.id) { - this.newDataList.splice(index, 1) - console.log(this.dataList) - + this.fileData = fileList + this.fileTextList.forEach((item, index) => { + if (item.name === file.name || item.id === file.id ) { + console.log() + this.fileTextList.splice(index,1) } - })*/ + }) }, handleONRemove() {}, /************ ********* *****************/ diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue index 865a6a96e..b952313b3 100644 --- a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue +++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue @@ -360,8 +360,8 @@ export default { this.backLoading = true if (this.commentText) { var json = { - responUserInfo: { - info: this.dataList + responUserList: { + standardInfoList: this.dataList }, actionFlag: 1, commentText: this.commentText diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue index a675eae98..35ad69a7f 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue @@ -348,6 +348,7 @@ export default { taskIds: this.taskIds, pId: this.pId }).then(res => { + console.log(res.mesg); if (res) { const processForm = JSON.parse(res.mesg); this.getFormFieldList(processForm); @@ -369,15 +370,12 @@ export default { this.listForm.breakdownList = []; for (let i = 0; i < item.pepdtos.length; i++) { for (let j = 0; j < item.pepdtos[i].breakdownList.length; j++) { + console.log(item.pepdtos[i].xCXSSRQ === null); if(item.pepdtos[i].xCXSSRQ === null){ - this.listForm.breakdownList.xCXSSRQ = "" - } else { - this.listForm.breakdownList.xCXSSRQ = item.pepdtos[i].xCXSSRQ + item.pepdtos[i].xCXSSRQ = '' } - if(item.pepdtos[i].zCCSSRQ === null){ - this.listForm.breakdownList.zCCSSRQ = "" - } else { - this.listForm.breakdownList.zCCSSRQ = item.pepdtos[i].zCCSSRQ + if(item.pepdtos[i].zCCSSRQ === null){ + item.pepdtos[i].zCCSSRQ = '' } this.listForm.breakdownList.push({ itemsName: item.pepdtos[i].breakdownList[j].itemsName, @@ -396,6 +394,8 @@ export default { qualityEngineerName: item.pepdtos[i].qualityEngineerName, standNumber: item.pepdtos[i].standNumber, standName: item.pepdtos[i].standName, + xCXSSRQ : item.pepdtos[i].XCXSSRQ, + zCCSSRQ : item.pepdtos[i].ZCCSSRQ, }); } } diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue index abc960d8d..dfde5a106 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step4.vue @@ -347,6 +347,7 @@ import ProcessHeader from "../../components/ProcessHeader"; import ProcessFooter from "../../components/ProcessFooter"; import ProcessTitle from "../../components/ProcessTitle"; +import Moment from 'moment'; import { inboundLiaisonDetail, saveTaskForPub } from "api/process"; export default { @@ -434,12 +435,24 @@ export default { handleTabs(name) { this.active = name; }, + //将时间戳转换为日期格式 + getLocalTime(item) { + return new Date(parseInt(item) * 1000).toLocaleDateString().replace(/:\d{1,2}$/, " "); + }, + +// 时间戳(毫秒)转化为标准时间格式 + getFullTime(item) { + const stamp = new Date(item); + const time = Moment(stamp).format('YYYY-MM-DD HH:mm:ss'); + return item = time + }, getData() { return new Promise((resolve, reject) => { inboundLiaisonDetail({ taskIds: this.taskIds, pId: this.pId }).then(res => { + console.log(res.mesg); if (res) { const processForm = JSON.parse(res.mesg); this.getFormFieldList(processForm); @@ -454,20 +467,22 @@ export default { getFormFieldList(item) { this.$nextTick(() => { this.listForm = JSON.parse(JSON.stringify(item)); - if(item.form === undefined){ - if (item.fenFlag === undefined ) { + if (item.form === undefined) { + if (item.fenFlag === undefined) { item.step3DTOS.forEach(item => { - item.implementerId = this.$store.getters.userInfo.userId - item.implementer = this.$store.getters.userInfo.userName - }) + item.implementerId = this.$store.getters.userInfo.userId; + item.implementer = this.$store.getters.userInfo.userName; + }); this.dataList = item.step3DTOS; + } else { this.dataList = item.dataList; this.dataList.forEach(item => { - item.implementerId = this.$store.getters.userInfo.userId - item.implementer = this.$store.getters.userInfo.userName - }) + item.implementerId = this.$store.getters.userInfo.userId; + item.implementer = this.$store.getters.userInfo.userName; + }); } + // this.getLocalTime() this.listForm.prcNum = this.prcNum; this.listForm.prcName = this.prcName; this.listForm["id"] = item.id; @@ -480,8 +495,8 @@ export default { this.listForm.responsibleUnit = item.step3DTOS[0].responsibleUnit; this.listForm.responsibleEngineer = item.step3DTOS[0].responsibleEngineer; } else { - this.listForm = item.form - this.dataList = item.form.dataList + this.listForm = item.form; + this.dataList = item.form.dataList; } }); @@ -495,9 +510,9 @@ export default { this.listForm.dataList = this.dataList; _formData.append("id", this.bpnId || ""); _formData.append("prcType", "5"); - _formData.append('taskIds', this.taskIds) + _formData.append("taskIds", this.taskIds); _formData.append("json", JSON.stringify({ - form:this.listForm, + form: this.listForm, commentText: this.commentText })); saveTaskForPub(_formData).then(res => { @@ -516,7 +531,7 @@ export default { this.listForm.signFlag = ""; this.listForm.dataList = this.dataList; const json = JSON.stringify(this.listForm); - this.isSubmit = true + this.isSubmit = true; this.$http.post("lawss/activiti/completeTask", { taskIds: this.taskIds, userId: this.userId, @@ -528,7 +543,7 @@ export default { this.$message.success(res.message); this.$router.push("/processCenter"); } - this.isSubmit = false + this.isSubmit = false; }, e => { }); diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue index 2d70086ad..0b3225713 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit.vue @@ -304,11 +304,14 @@ label="能源类型"> + @@ -582,7 +585,7 @@ export default { standEnName: '', typeApplicable: '', nylx: '', - putTime: '', + ssrq: '', zccssrqgj: '', xcxssrqgj: '', zrbm: '', @@ -1108,66 +1111,6 @@ export default { } ] // 国内外政策可查字段 - }else if (val === 'FOREIGN_LAWS'){ - this.twoOptions=[ - { - label: '适用车辆类型', - value: 'SYCLLX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '政策编号', - value: 'LAWS_NUMBER', - type: 'INPUT', - disabled: false - }, { - label: '中文名称', - value: 'LAWS_NAME', - type: 'INPUT', - disabled: false - }, { - label: '英文名称', - value: 'LAWS_EN_NAME', - type: 'INPUT', - disabled: false - }, { - label: '个性化标签', - value: 'GXHBQXX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '新车型实施日期(文本)', - value: 'XCXSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '在产车实施日期(文本)', - value: 'ZCCSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '维护工程师', - value: 'ZCGCS', - type: 'SEL_OPTION', - selVal: "USERLIST", - disabled: false - } - ] - // 标准法规清单可查字段 - }else { - this.twoOptions=[ - { - label: '清单名称', - value: 'ACCESS_CONTENT', - type: 'INPUT', - disabled: false - }, { - label: '国家地区', - value: 'COUNTRY', - type: 'SEL_OPTION', - disabled: false - } - ] } }, /** @@ -1305,10 +1248,10 @@ export default { let rowlist3 = [] for (let i = 0; i < this.sarAccessInfoList.length; i++) { rowlist.push(this.sarAccessInfoList[i].id) - if (this.sarAccessInfoList[i].putTime === null) { - rowlist1.push(this.sarAccessInfoList[i].putTime = '-') + if (this.sarAccessInfoList[i].ssrq === null) { + rowlist1.push(this.sarAccessInfoList[i].ssrq = '-') }else { - rowlist1.push(this.sarAccessInfoList[i].putTime.toString()) + rowlist1.push(this.sarAccessInfoList[i].ssrq.toString()) } if (this.sarAccessInfoList[i].xcxssrqgj === null) { rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-') @@ -1382,14 +1325,7 @@ export default { } }) }, - // 查询数据搜索 table 数据 - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' - this.sarAccessInfoSearch.standType = '' - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - } + pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1402,6 +1338,7 @@ export default { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') this.$set(item, 'sycpx', '') + this.$set(item, 'ssrq', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') this.$set(item, 'zrbm', '') @@ -1413,6 +1350,7 @@ export default { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) this.$set(item, 'zrbm', item.attrInfoMap.ZRBM) @@ -1426,12 +1364,18 @@ export default { }, e => { }) }, - selectBtn() { + // 查询数据搜索 table 数据 + selectLawsStands () { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() } else { this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() } + + }, + selectPage() { StandardsInfoPage(this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1443,6 +1387,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1454,6 +1399,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) @@ -1468,6 +1414,15 @@ export default { }, e => { }) }, + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, // 数据搜索table判断checked状态 selectable (row) { return row.isRelateAccess === '1' @@ -1479,6 +1434,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1490,6 +1446,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) @@ -1578,7 +1535,6 @@ export default { }, // 导出确定功能 exportTestItem () { - let exportNames = this.exportName let exportList = [] if (this.sarAccessInfoListArry.length > 0) { exportList = this.sarAccessInfoListArry diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue index bb19c111f..6ee8ff256 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue @@ -150,11 +150,17 @@ label="能源类型"> + { this.$set(this.textStatusMap, item.value, item.label) - this.$set(this.typeApplicableMap, item.value, item.label) - this.$set(this.nylxMap, item.value, item.label) - this.$set(this.zrbmMap, item.value, item.label) - this.$set(this.sycpxMap, item.value, item.label) - this.$set(this.countryAreaMap, item.value, item.label) }) } }, @@ -797,12 +798,6 @@ export default { this.textStatusOptions = res.data.WBZTCLASS this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线 this.setMap(this.textStatusOptions) - this.setMap(this.zrbmOptions) - this.setMap(this.categoryOptions) - this.setMap(this.sycpxOptions) - this.setMap(this.energyKindOptions) - this.setMap(this.drawerCountryOptions) - this.setMap(this.applyArcticOptions) this.getGzzOption(); }, e => { }); diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index cb8e18827..ce62849a4 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -288,11 +288,14 @@ label="能源类型"> + - + @@ -566,7 +569,7 @@ export default { standEnName: '', typeApplicable: '', nylx: '', - putTime: '', + ssrq: '', zccssrqgj: '', xcxssrqgj: '', zrbm: '', @@ -1076,66 +1079,6 @@ export default { } ] // 国内外政策可查字段 - }else if (val === 'FOREIGN_LAWS'){ - this.twoOptions=[ - { - label: '适用车辆类型', - value: 'SYCLLX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '政策编号', - value: 'LAWS_NUMBER', - type: 'INPUT', - disabled: false - }, { - label: '中文名称', - value: 'LAWS_NAME', - type: 'INPUT', - disabled: false - }, { - label: '英文名称', - value: 'LAWS_EN_NAME', - type: 'INPUT', - disabled: false - }, { - label: '个性化标签', - value: 'GXHBQXX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '新车型实施日期(文本)', - value: 'XCXSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '在产车实施日期(文本)', - value: 'ZCCSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '维护工程师', - value: 'ZCGCS', - type: 'SEL_OPTION', - selVal: "USERLIST", - disabled: false - } - ] - // 标准法规清单可查字段 - }else { - this.twoOptions=[ - { - label: '清单名称', - value: 'ACCESS_CONTENT', - type: 'INPUT', - disabled: false - }, { - label: '国家地区', - value: 'COUNTRY', - type: 'SEL_OPTION', - disabled: false - } - ] } }, /** @@ -1274,10 +1217,10 @@ export default { let rowlist3 = [] for (let i = 0; i < this.sarAccessInfoList.length; i++) { rowlist.push(this.sarAccessInfoList[i].id) - if (this.sarAccessInfoList[i].putTime === null) { - rowlist1.push(this.sarAccessInfoList[i].putTime = '-') + if (this.sarAccessInfoList[i].ssrq === null) { + rowlist1.push(this.sarAccessInfoList[i].ssrq = '-') }else { - rowlist1.push(this.sarAccessInfoList[i].putTime.toString()) + rowlist1.push(this.sarAccessInfoList[i].ssrq.toString()) } if (this.sarAccessInfoList[i].xcxssrqgj === null) { rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-') @@ -1350,14 +1293,7 @@ export default { } }) }, - // 查询数据搜索 table 数据 - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' - this.sarAccessInfoSearch.standType = '' - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - } + pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1369,6 +1305,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1380,6 +1317,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) @@ -1394,13 +1332,17 @@ export default { }, e => { }) }, - // 高级检索查询按钮 - selectBtn() { + // 查询数据搜索 table 数据 + selectLawsStands () { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() } else { this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() } + }, + selectPage() { StandardsInfoPage(this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1412,6 +1354,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1423,6 +1366,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) @@ -1437,6 +1381,16 @@ export default { }, e => { }) }, + // 高级检索查询按钮 + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, // 数据搜索table判断checked状态 selectable (row) { return row.isRelateAccess === '1' @@ -1448,6 +1402,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1459,6 +1414,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue index ab1d9d8b1..31fa260f8 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue @@ -288,11 +288,14 @@ label="能源类型"> + - + @@ -580,7 +583,7 @@ export default { standEnName: '', typeApplicable: '', nylx: '', - putTime: '', + ssrq: '', zccssrqgj: '', xcxssrqgj: '', zrbm: '', @@ -1076,66 +1079,6 @@ export default { } ] // 国内外政策可查字段 - }else if (val === 'FOREIGN_LAWS'){ - this.twoOptions=[ - { - label: '适用车辆类型', - value: 'SYCLLX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '政策编号', - value: 'LAWS_NUMBER', - type: 'INPUT', - disabled: false - }, { - label: '中文名称', - value: 'LAWS_NAME', - type: 'INPUT', - disabled: false - }, { - label: '英文名称', - value: 'LAWS_EN_NAME', - type: 'INPUT', - disabled: false - }, { - label: '个性化标签', - value: 'GXHBQXX', - type: 'SEL_OPTION', - disabled: false - }, { - label: '新车型实施日期(文本)', - value: 'XCXSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '在产车实施日期(文本)', - value: 'ZCCSSRQ', - type: 'DATE_PIC_OPTS', - disabled: false - }, { - label: '维护工程师', - value: 'ZCGCS', - type: 'SEL_OPTION', - selVal: "USERLIST", - disabled: false - } - ] - // 标准法规清单可查字段 - }else { - this.twoOptions=[ - { - label: '清单名称', - value: 'ACCESS_CONTENT', - type: 'INPUT', - disabled: false - }, { - label: '国家地区', - value: 'COUNTRY', - type: 'SEL_OPTION', - disabled: false - } - ] } }, /** @@ -1273,10 +1216,10 @@ export default { let rowlist3 = [] for (let i = 0; i < this.sarAccessInfoList.length; i++) { rowlist.push(this.sarAccessInfoList[i].id) - if (this.sarAccessInfoList[i].putTime === null) { - rowlist1.push(this.sarAccessInfoList[i].putTime = '-') + if (this.sarAccessInfoList[i].ssrq === null) { + rowlist1.push(this.sarAccessInfoList[i].ssrq = '-') }else { - rowlist1.push(this.sarAccessInfoList[i].putTime.toString()) + rowlist1.push(this.sarAccessInfoList[i].ssrq.toString()) } if (this.sarAccessInfoList[i].xcxssrqgj === null) { rowlist3.push(this.sarAccessInfoList[i].xcxssrqgj = '-') @@ -1350,13 +1293,7 @@ export default { }) }, // 查询数据搜索 table 数据 - selectLawsStands () { - if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' - this.sarAccessInfoSearch.standType = '' - } else { - this.sarAccessInfoSearch.standType = 'FOREIGN' - } + pageInfo() { StandardsInfoPage(this.sarAccessInfoSearch, this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1368,6 +1305,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1379,6 +1317,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) @@ -1393,13 +1332,17 @@ export default { }, e => { }) }, - /** 高级查询查询按钮*/ - selectBtn() { + selectLawsStands () { if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { - this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' + this.sarAccessInfoSearch.standType = 'INLAND' + this.pageInfo() } else { this.sarAccessInfoSearch.standType = 'FOREIGN' + this.pageInfo() } + }, + /** 高级查询查询按钮*/ + selectPage() { StandardsInfoPage(this.sarAccessInfo).then(res =>{ this.sarAccessInfoSearchList = res.data.list this.sarAccessInfoSearchList.forEach(item => { @@ -1411,6 +1354,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1422,6 +1366,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) @@ -1436,6 +1381,15 @@ export default { }, e => { }) }, + selectBtn() { + if (this.sarAccessInfoSearch.dataSource === 'INLAND_STAND') { + this.sarAccessInfoSearch.standType = 'INLAND' + this.selectPage() + } else { + this.sarAccessInfoSearch.standType = 'FOREIGN' + this.selectPage() + } + }, // 数据搜索table判断checked状态 selectable (row) { return row.isRelateAccess === '1' @@ -1447,6 +1401,7 @@ export default { if (item.attrInfoMap === null) { this.$set(item, 'zccssrqgj', '') this.$set(item, 'xcxssrqgj', '') + this.$set(item, 'ssrq', '') this.$set(item, 'sycpx', '') this.$set(item, 'typeApplicable', '') this.$set(item, 'nylx', '') @@ -1458,6 +1413,7 @@ export default { }else { this.$set(item, 'zccssrqgj', item.attrInfoMap.ZCCSSRQ) this.$set(item, 'xcxssrqgj', item.attrInfoMap.XCXSSRQ) + this.$set(item, 'ssrq', item.attrInfoMap.SSRQ) this.$set(item, 'sycpx', item.attrInfoMap.SYCPX) this.$set(item, 'typeApplicable', item.attrInfoMap.CLLX) this.$set(item, 'nylx', item.attrInfoMap.NYLX) diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue index d44b0a32d..28376ae89 100644 --- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue +++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue @@ -239,7 +239,7 @@ 编辑 - 删除 + 删除 diff --git a/src/pages/regulatoryRepository/standardForComments/index.vue b/src/pages/regulatoryRepository/standardForComments/index.vue index b70d81004..21ebfe376 100644 --- a/src/pages/regulatoryRepository/standardForComments/index.vue +++ b/src/pages/regulatoryRepository/standardForComments/index.vue @@ -55,7 +55,7 @@ :header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">