diff --git a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
index 28005569e..aced02f51 100644
--- a/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzrk/step1.vue
@@ -23,90 +23,109 @@
-
-
- 国内标准入库
- 海外标准入库
+
+
+ 国内标准入库
+ 海外标准入库
-
-
-
-
+
+
+
-
+
-
+
-
+
-
-
+
+
是
否
-
+
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
是
否
-
+
+
+
+
+
+
@@ -119,46 +138,46 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -172,9 +191,9 @@
-
-
- {{ form.file1 }}
+
+
+ {{ form.xgd }}
-
-
- {{ form.file2 }}
+
+
+ {{ form.fbgbjbd }}
-
-
- {{ form.file3 }}
+
+
+ {{ form.zbjbd }}
-
-
- {{ form.file4 }}
+
+
+ {{ form.bpg }}
+
+
+
+ 点击上传
+
+
+
+
+
+ {{ form.ssg }}
-
-
- {{ form.file5 }}
+
+
+ {{ form.kwj }}
-
-
- {{ form.file6 }}
+
+
+ {{ form.zqyjg }}
-
-
- {{ form.file7 }}
+
+
+ {{ form.ca }}
+
+
+
+ 点击上传
+
+
+
+
+
+ {{ form.jdwj }}
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
- 主持
- 参与
- N/A
-
-
-
-
-
-
+
+
+
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -387,59 +477,29 @@
-
+
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ form.file8 }}
+
+
+ {{ form.glwj }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -546,60 +636,76 @@
saveLoading: false,
form: {
// 基础信息
- TextTypes: '', // 文本状态
- year: '', // 标准年份
- type: '', // 标准类型
- types: '', // 标准类别
- number: '', // 标准编号
- nature: '', // 标准性质
- ENname: '', // 英文名称
- CNname: '', // 中文名称
- jointlySign: '', // 是否需要会签
- time: '', // 发布时间
- detailedList: '', // 是否纳入认证清单
- system: '',// 标准体系
+ textStatus: '', // 文本状态
+ standYear: '', // 标准年份
+ standInData: '0', // 标准类型
+ standSort: '', // 标准类别
+ standNumber: '', // 标准编号
+ standNature: '', // 标准性质
+ standEnName: '', // 英文名称
+ standName: '', // 中文名称
+ signFlag: '', // 是否需要会签
+ issueTime: '', // 发布时间
+ isRelateAccess: '', // 是否纳入认证清单
+ standSystem: '',// 标准体系
+ gxhbq: '', // 标签
// 实施日期
- time1: '', // 实施日期(标准文本)
- time2: '', // 新车型实施日期(标准文本)
- time3: '', // 在产车实施日期(标准文本)
- time4: '', // 实施日期(国际)
- time5: '', // 新车型实施日期(国际)
- time6: '', // 在产车实施日期(国际)
+ ssrq: '', // 实施日期(标准文本)
+ xcxssrq: '', // 新车型实施日期(标准文本)
+ zccssrq: '', // 在产车实施日期(标准文本)
+ ssrqgj: '', // 实施日期(国际)
+ xcxssrqgj: '', // 新车型实施日期(国际)
+ zccssrqgj: '', // 在产车实施日期(国际)
// 文本信息
- file1: '', // 修改单
- file2: '', // 发布稿
- file3: '', // 报批稿
- file4: '', // 送审稿
- file5: '', // 征求意见稿
- file6: '', // 草案
- file7: '', // 解读文件
+ ca: '', // 草案
+ fbgbjbd: '', // 发布稿
+ xgd: '', // 修改单
+ bpg: '', // 报批稿
+ ssg: '', // 送审稿
+ zqyjg: '', // 征求意见稿
+ jdwj: '', // 解读文件
+ zbjbd: '', // 增补件
+ kwj: '', // 勘误件
// 适用范围
- AsDepartment: '', // 归口管理部门
- DraftingUnit: '', // 起草单位
- Subscribers: '', // 我司署名人
- depth: '', // 我司参与深度
- models: '', // 适用车型
- energy: '',// 能源类型
- ProductLine: '',// 适用产品线
- authentication: '', // 适用认证
- Rdepartment: '', // 责任部门
- Rengineer: '', // 责任工程师
- PassengerCarCode: '', // 关联模块--乘用车VPPS编码
- PassengerCarName: '', // 关联模块--乘用车vpps中文名称
- TruckCode: '', // 关联模块--卡车VPPS编码
- TruckName: '', // 关联模块--卡车vpps中文名称
- UnitModel: '', // 模块结构单元变型号
- UnitName: '', // 模块结构单元名称
+ txlb: '', // 体系类别
+ gkdw: '', // 归口管理部门
+ fbjg: '', // 起草单位
+ wssmr: '', // 我司署名人
+ cysd: '', // 我司参与深度
+ cllx: '', // 适用车型
+ nylx: '',// 能源类型
+ sycpx: '',// 适用产品线
+ syrz: '', // 适用认证
+ zrbm: '', // 责任部门
+ zrgcs: '', // 责任工程师
+ cycvppsbm: '', // 关联模块--乘用车VPPS编码
+ cycvppscn: '', // 关联模块--乘用车vpps中文名称
+ kccvppsbm: '', // 关联模块--卡车VPPS编码
+ kccvppscn: '', // 关联模块--卡车vpps中文名称
+ dybxh: '', // 模块结构单元变型号
+ dymc: '', // 模块结构单元名称
// 关联信息
- Dnumber: '', // 代替标准号
- Cnumber: '', // 采标编号
- degree: '', // 采标程度
- Rstandard: '', // 引用标准
- BRstandard: '', // 被引用标准
- file8: '', // 关联文件
- Rprocesses: '', // 相关流程
- AttendanceRecord: '', // 参会记录
+ dtbjh: '', // 代替标准号
+ cbbh: '', // 采标编号
+ cbcd: '', // 采标程度
+ yybj: '', // 引用标准
+ byybj: '', // 被引用标准
+ glwj: '', // 关联文件
+ xglc: '', // 相关流程
+ chjl: '', // 参会记录
}, // 标准信息
+ standSortOptions: [], // 标准类别
+ standNatureOptions: [], // 标准性质
+ standStateOptions: [], // 文本状态
+ standSystemOptions: [], // 标准体系
+ applyArcticOptions: [], // 适用车型
+ categoryOptions: [], // 能源类型
+ applyAuthOptions: [], // 适用认证
+ cysdOptions: [], // 我司参与深度
+ sycpxOptions: [], // 适用产品线
+ zrbmOptions: [], // 责任部门
+ zrgcsOptions: [], // 责任工程师
+ txlbOptions: [], // 体系类别
data: [], // 标准列表数据
ListForm: {}, // 新增数据
user1: '',
@@ -637,6 +743,22 @@
}
},
mounted () {
+ this.$http.get('sys/dictype/getDicTypeListCode', '', {
+ _this: this
+ }, res => {
+ this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
+ this.standNatureOptions = res.data.SARPROPERTY // 标准性质
+ this.standStateOptions = res.data.WBZTCLASS // 文本状态
+ this.standSystemOptions = res.data.BZTXCLASS // 标准体系
+ this.applyArcticOptions = res.data.ENERGYTYPES // 适用车型
+ this.categoryOptions = res.data.NYLXCLASS // 能源类型
+ this.applyAuthOptions = res.data.SYRZCLASS // 适用认证
+ this.cysdOptions = res.data.WSCYSD // 我司参与深度
+ this.sycpxOptions = res.data.SYCPXCLASS // 适用产品线
+ this.zrbmOptions = res.data.ZRBMCLASS // 责任部门
+ this.zrgcsOptions = res.data.ZRGCSCLASS // 责任工程师
+ this.txlbOptions = res.data.TXLBCLASS // 体系类别
+ })
}
}
diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
index afb2a0fc9..31c69b2b7 100644
--- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
+++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProjectDetail.vue
@@ -3,17 +3,15 @@
-
+
-
@@ -37,8 +35,7 @@
:data="sarProjectListDatas"
class="table"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
- fontWeight: 'bold', height: '48px'}"
- @selection-change="getSelectedDatas">
+ fontWeight: 'bold', height: '48px'}">
- 国内标准法规
- 海外标准法规
+ 国内标准法规
+ 海外标准法规
国内政策
国内外政策
企业标准
-
-
-
-
-
+
+ {{ scope.row.standSort }} {{ scope.row.standNumber }} -{{ scope.row.standYear }}
+
-
-
-
-
-
-
-
-
-
-
+
@@ -137,7 +123,6 @@
+ fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 数据处理中
-
-
-
-
-
-
-
-
@@ -424,487 +233,90 @@ export default {
name: 'standInvolveProjectDetail',
data () {
return {
- // 条件查询
- sarProject: {
- // 国家地区
- country: '',
- // 标准/政策号
- standCode: '',
- // 标准政策名称
- standName: ''
- },
- // table数据
- sarProjectListDatas: [],
- countryOptions: [], //国家选择下拉框数据
- drawerCountryOptions: [], // 准入信息 国家下拉框
- // table高度
- tableHeight: null,
- // 列表页loading
- loading: false,
- loading2: false,
- loading3: false,
- // 外层列表页数据条数
- total: 0,
- page: 1,
- pageSize: this.$store.getters.userInfo.configContent,
- // 导出时候用
- SarExportSearchEo: {},
- // 项目符合性数据
- saveSarId: '',
- saveSarType: '',
- exportShowName: '',
- sarItem: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- sarItem2: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- // 新增、编辑 准入信息字段
- sarAccessEO: {
- country: '',
- },
- // 模态框内容
- sarItemTotal: 0,
- itemsPage: 1,
- itemsPageSize: this.$store.getters.userInfo.configContent,
- sarItemListDatas: [],
- conformStateOptions: [
- {label: '待验证', value: 1},
- {label: '符合', value: 2},
- {label: '不符合', value: 3},
- // {label: '部分符合', value: 4},
- {label: '不涉及', value: 5}
- // {label: '评估中', value: 6},
- // {label: '整改中', value: 7},
- // {label: '未评估', value: 8}
- ],
- conformStateOptions1: [
- {label: '待验证', value: 1},
- {label: '符合', value: 2},
- {label: '不符合', value: 3},
- // {label: '部分符合', value: 4},
- {label: '不涉及', value: 5}
- // {label: '评估中', value: 6},
- // {label: '整改中', value: 7},
- // {label: '未评估', value: 8}
- ],
- // 查看标准在项目中符合性数据
- showSarProStateModal: false,
- showSarProStateModal2: false,
- sarProStateEO: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- sarProStateEO2: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- sarProStateTotal: 0,
- sarProStateTotalPage: 1,
- sarProStatePageSize: this.$store.getters.userInfo.configContent,
- sarProStateTotal2: 0,
- sarProStateTotalPage2: 1,
- sarProStatePageSize2: this.$store.getters.userInfo.configContent,
- saveClickProductId: '',
- saveSarProductId: '',
- // 符合性查看弹窗的打开
- showSarItemModal: false,
- // 符合性项目列表数据
- sarProStateListDatas: [],
- // 符合性项目列表数据2
- sarProStateListDatas2: [],
- // 符合性项目列表高度
- sarProStateTableHeight: null,
- editSarComEO: {
- id: '',
- sarState: ''
- },
- editSarComEODefault: {
- id: '',
- sarState: ''
- },
- editSarComEO2: {
- id: '',
- itemState: ''
- },
- editSarComEODefault2: {
- id: '',
- itemState: ''
- },
- // 编辑弹窗打开
- editSarComModal: false,
- // 选中一行查看符合性弹窗的标准号,
- standNum: '',
- // 用于切换分页,0,1
- isExistItems: '',
- processList: [],
- processListVisible: false
+ sarProject: {
+ standName: '', // 标准政策名称
+ standNumber: '', // 标准/政策号
+ standApplicationType: 1
+ }, // 条件查询
+ showSarProStateModal: false, // 查看drawer开关
+ // table数据
+ sarProjectListDatas: [],
+ // table高度
+ tableHeight: null,
+ // 列表页loading
+ loading: false,
+ total: 0,
+ page: 1,
+ pageSize: this.$store.getters.userInfo.configContent,
+ sarProStateEO: {
+ productName: ''
+ },
+ sarProStateTotal: 0,
+ sarProStateTotalPage: 1,
+ sarProStatePageSize: this.$store.getters.userInfo.configContent,
+ sarProStateListDatas: [], // 符合性项目列表数据
+ sarProStateTableHeight: null, // 符合性项目列表高度
}
},
methods: {
- changeState (row) {
- console.log(row);
- let routeUrl = this.$router.resolve({
- name: 'ComplianceDetails',
- query: {
- sarId: this.saveSarId,
- productId: row.productId,
- sarType: row.standType,
- fromPage: 'product'
- }
- })
- window.open(routeUrl.href, '_blank')
- },
- /**
- * 查看项目符合性弹框里面的
- * 符合性状态列点击事件
- */
- handleSarStateClick(row) {
- if (row.sarState === 8) {
- return
- }
- // console.log(row)
- this.showSarProStateModal2 = true
- this.saveClickProductId = row.productId
- this.queryItemsBySar()
- },
- /**
- * 查看项目 条款 弹框里面的
- * 符合性状态列点击事件2222
- */
- handleItemClick(row) {
- const processList = row.process ? row.process.split(',') : []
- console.log(processList)
- this.processList = processList.map(item => {
- return {
- processNumber: item
- }
- })
- this.processListVisible = true
- },
- /**
- * 查看项目 条款 流程编号弹框里面的
- * 流程编号点击事件
- */
- handleProcessClick(row) {
- const processNumber = row.processNumber
- this.$store.commit('setDetailMap', this.$route.path)
- this.$router.push({
- name: 'ProcessDetail',
- query: {
- prcNum: processNumber
- }
- })
- },
- // 返回
- back () {
- this.$router.push(this.$store.state.detailMap)
- this.$store.commit('setDetailMap', '')
- },
- // 列表操作栏 ...
- handleCommand (command) {
- switch (command[1]) {
- case '查看项目符合性':
- this.handleProjectCompliance(command[0])
- break
- }
- },
- // 符合性项目列表操作
- handleCommandInside (command) {
- switch (command[1]) {
- case '编辑':
- this.handleEdit(command[0])
- break
- // case '查看':
- // this.handleProjectCompliance(command[0])
- // break
- }
- },
- searchStandAndLaws () {
- this.page = 1
- this.queryStandAndLaws()
- },
- // 分页查询
- queryStandAndLaws () {
- this.sarProject.page = this.page
- this.sarProject.pageSize = this.pageSize
- this.SarExportSearchEo = this.sarProject
- this.$http.get('lawss/sarProductStand/queryStandAndLawsByPage', this.sarProject, {
- _this: this,
- loading: 'loading',
- }, res => {
- console.log(res.data.list)
- console.log(res.data.count)
- this.sarProjectListDatas = res.data.list
- this.total = res.data.count
- }, e => {
- })
- },
- // 分页查询条目符合性
- queryItemsBySar () {
- this.sarItem2.page = this.itemsPage
- this.sarItem2.pageSize = this.itemsPageSize
- this.sarItem2.standId = this.saveSarId
- this.sarItem2.standType = this.saveSarType
- this.sarItem2.productId = this.saveClickProductId
- this.$http.get('lawss/sarProductSarState/page', this.sarItem2, {
- _this: this,
- loading: 'loading3'
- }, res => {
- // this.sarItemListDatas = res.data.list
- // this.sarItemTotal = res.data.count
- this.sarProStateListDatas2 = res.data.list
- this.sarProStateTotal2 = res.data.count
- }, e => {
- })
- },
- // 外层清空条件查询
- resetSelect () {
- this.sarProject.country = ''
- this.sarProject.standCode=''
- this.sarProject.standName = ''
- this.queryStandAndLaws()
- },
- // 查看项目符合性
- handleProjectCompliance (row) {
- this.saveSarId = row.standId
- this.saveSarType = row.standType
- this.exportShowName = row.standName
- this.sarItem.productCode = ''
- this.sarItem.productName = ''
- this.row = row
- this.$http.get('lawss/sarProductStand/isPermission', {standId: this.saveSarId}, {
- _this: this,
- loading: 'loading3'
- }, res => {
- if (res.ok){
- // 现阶段方案
- this.isExistItems = 0
+ searchStandAndLaws () {
+ this.page = 1
+ this.queryStandAndLaws()
+ }, // 查询
+ pageChange (page) {
+ this.page = page
+ this.queryStandAndLaws()
+ },
+ pageSizeChange (pageSize) {
+ this.pageSize = pageSize
+ this.$store.getters.userInfo.configContent = pageSize
+ this.queryStandAndLaws()
+ },
+ queryStandAndLaws () {
+ this.sarProject.current = this.page
+ this.sarProject.size = this.pageSize
+ this.$http.get('sarStandardComplianceAssessResult/standard', this.sarProject, {
+ _this: this,
+ loading: 'loading',
+ }, res => {
+ this.sarProjectListDatas = res.data.records
+ this.total = res.data.total
+ }, e=> {})
+ }, // 分页查询
+ resetSelect () {
+ this.sarProject.country = ''
+ this.sarProject.standCode=''
+ this.sarProject.standName = ''
+ this.queryStandAndLaws()
+ }, // 外层清空条件查询
+ handleProjectCompliance (row) {
this.showSarProStateModal = true
this.querySarProStateZero()
- } else{
- this.$message.warning('当前标准已不存在')
- }
- }, e => {
- })
-
-
- },
- handleProjectPreview (row) {
- this.saveClickProductId = row.productId
- this.saveSarProductId = row.id
- this.queryItemsBySar()
- this.showSarItemModal = true
- },
- // 如果isExistItems === 0查看标准在项目中符合性列表
- querySarProStateZero () {
- // let queryUrl = ''
- this.sarProStateEO.page = this.sarProStatePage
- this.sarProStateEO.pageSize = this.sarProStatePageSize
- this.sarProStateEO.standId = this.saveSarId
- this.sarProStateEO.standType = this.saveSarType
- this.$http.get('lawss/sarProductStand/queryInvolveProByPage', this.sarProStateEO, {
- _this: this,
- loading: 'loading2'
- }, res => {
- this.sarProStateListDatas = res.data.list
- this.sarProStateTotal = res.data.count
- }, e => {
- })
- },
- // 如果isExistItems === 1 查看标准在项目中符合性列表
- querySarProStateFirst () {
- // let queryUrl = ''
- this.sarProStateEO2.page = this.sarProStatePage2
- this.sarProStateEO2.pageSize = this.sarProStatePageSize2
- // this.sarProStateEO.standId = this.saveSarId
- // this.sarProStateEO.standType = this.saveSarType
- this.sarProStateEO2.standNum = this.standNum
- this.$http.get('lawss/sarInconformItem/queryInvolveItems', this.sarProStateEO2, {
- _this: this,
- loading: 'loading'
- }, res => {
- this.sarProStateListDatas2 = res.data.list
- this.sarProStateTotal2 = res.data.count
- }, e => {
- })
- },
- // 列表多选
- sarProductStateSelect (val) {
- console.log(val)
- },
- // 列表多选
- sarProductStateSelect2 (val) {
- console.log(val)
- },
- // 清空条件查询
- clearSearchProState () {
- this.sarProStateEO.productCode = ''
- this.sarProStateEO.productName = ''
- if (this.isExistItems === 0) {
- this.querySarProStateZero()
- } else {
- this.querySarProStateFirst()
- }
- },
- // 清空条件查询
- clearSearchProState2 () {
- this.sarProStateEO2.productCode = ''
- this.sarProStateEO2.productName = ''
- this.querySarProStateFirst()
-
- },
- // 清空查询
- clearSearchPro () {
- this.sarProStateEO.productCode = ''
- this.sarProStateEO.productName = ''
- this.showSarProStateModal = false
- },
- // 清空查询
- clearSearchPro2 () {
- this.sarProStateEO2.productCode = ''
- this.sarProStateEO2.productName = ''
- this.showSarProStateModal2 = false
- },
- // 项目符合性分页
- pageProStateChange (page) {
- this.sarProStatePage = page
- this.querySarProStateZero()
- },
- pageProStateSizeChange (pageSize) {
- this.sarProStatePageSize = pageSize
- this.querySarProStateZero()
- },
- // 项目符合性分页
- pageProStateChange2 (page) {
- this.sarProStatePage2 = page
- this.querySarProStateFirst()
- },
- pageProStateSizeChange2 (pageSize) {
- this.sarProStatePageSize2 = pageSize
- this.querySarProStateFirst()
- },
- // 编辑符合性弹窗打开
- handleEdit (row) {
- this.saveSarProductId = row.id
- this.editSarComEO.sarState = row.sarState
- this.editSarComModal = true
- },
- // 编辑符合性弹窗关闭
- handleClose () {
- if (this.isExistItems === 0) {
- this.editSarComEO = {...this.editSarComEODefault}
- } else {
- this.editSarComEO2 = {...this.editSarComEODefault2}
- }
- this.$refs['editSarComEO'].clearValidate()
- this.editSarComModal = false
- },
- // 符合性弹窗修改保存
- updateSarState () {
- if (this.isExistItems === 0) {
- const data = {}
- data.sarType = this.saveSarType
- data.id = this.saveSarProductId
- data.sarItemState = this.editSarComEO.sarState
- this.$http.putData('lawss/sarProductSarState/updateSarState', data, {
- _this: this
- }, res => {
- this.editSarComModal = false
+ }, // 查看项目符合性
+ querySarProStateZero () {}, // 查询项目数据
+ clearSearchProState () {
+ this.sarProStateEO.productName = ''
this.querySarProStateZero()
- }, e => {})
- } else {
- const data = {}
- data.sarType = this.saveSarType
- data.id = this.saveSarProductId
- data.sarItemState = this.editSarComEO.itemState
- this.$http.putData('lawss/sarProductSarState/updateState', data, {
- _this: this
- }, res => {
- this.editSarComModal = false
- this.queryItemsBySar()
- // const data = {}
- // data.sarType = this.saveSarType
- // data.itemState = this.editSarComEO.itemState
- // data.id = this.saveSarProductId
- // this.$http.putData('lawss/sarInconformItem/updateItem', data, {
- // _this: this
- // }, res => {
- // this.editSarComModal = false
- // this.querySarProStateFirst()
- }, e => {})
- }
- },
- // 导出多选, table列表多选
- getSelectedDatas (selection) {
- this.saveSelectedDatas = selection
- },
- // 点击导出按钮
- showExportModal (type) {
- // 区别是选择导出还是全部导出
- this.saveExportType = type
- if (type === 'apart') {
- if (this.saveSelectedDatas != null && this.saveSelectedDatas.length > 0) {
- this.exportName = ''
- this.exportModelFlag = true
- } else {
- this.$message.error('请选择要导出的数据')
- }
- } else {
- this.exportName = ''
- this.exportModelFlag = true
- }
- },
- // 确认导出
- exportSarProduct () {
- if (this.exportName === '' || this.exportName === null || this.exportName === 'null') {
- this.exportName = '标准涉及项目'
- }
- let jsonData = ''
- if (this.saveExportType === 'apart') {
- jsonData = JSON.stringify(this.saveSelectedDatas)
- } else if (this.saveExportType === 'all') {
- let exportEOStr = JSON.stringify(this.SarExportSearchEo)
- jsonData = exportEOStr.replace(/""/g, null)
- }
- window.location.href = '/api/lawss/sarProductLaws/exportSarProduct?jsonData=' + jsonData + '&exportType=' + this.saveExportType + '&exportName=' + this.exportName
- this.saveSelectedDatas = []
- this.exportModelFlag = false
- this.queryStandAndLaws()
- },
- // 外层分页方法
- pageChange (page) {
- this.page = page
- this.queryStandAndLaws()
- },
- pageSizeChange (pageSize) {
- this.pageSize = pageSize
- this.queryStandAndLaws()
- }
+ }, // 清空条件查询
+ clearSearchPro () {
+ this.sarProStateEO.productName = ''
+ this.showSarProStateModal = false
+ }, // 关闭查看事件
+ pageProStateChange (page) {
+ this.sarProStateTotalPage = page
+ this.querySarProStateZero()
+ },
+ pageProStateSizeChange (pageSize) {
+ this.sarProStatePageSize = pageSize
+ this.$store.getters.userInfo.configContent = pageSize
+ this.querySarProStateZero()
+ },
},
mounted () {
- // 分页查询方法
this.queryStandAndLaws()
- //从数据库中查询下拉框数据
- this.$http.get('sys/dictype/getDicTypeListCode', '',{
- _this:this
- },res =>{
- this.countryOptions = res.data.COUNTRY //国家
- }, e => {
- })
- this.tableHeight = $('.regulatory-repository').height() - 53 - 50 - 56
+ this.tableHeight = $('.regulatory-repository').height() - 159
window.onresize = () => {
- this.tableHeight = $('.regulatory-repository').height() - 53 - 50 - 56
+ this.tableHeight = $('.regulatory-repository').height() - 159
}
}
}
diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/technologyInvolveProject.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/technologyInvolveProject.vue
index 08b4a50b8..446877c09 100644
--- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/technologyInvolveProject.vue
+++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/technologyInvolveProject.vue
@@ -3,17 +3,15 @@
-
+
@@ -37,8 +35,7 @@
:data="sarProjectListDatas"
class="table"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
- fontWeight: 'bold', height: '48px'}"
- @selection-change="getSelectedDatas">
+ fontWeight: 'bold', height: '48px'}">
- 国内标准法规
- 海外标准法规
+ 国内标准法规
+ 海外标准法规
国内政策
国内外政策
企业标准
@@ -62,6 +59,9 @@
label="标准/政策号"
width="180"
>
+
+ {{ scope.row.standSort }} {{ scope.row.standNumber }} -{{ scope.row.standYear }}
+
-
+
@@ -130,8 +130,7 @@
border
:height="sarProStateTableHeight"
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
- fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}"
- @selection-change="sarProductStateSelect">
+ fontWeight: 'bold', fontFamily: 'MicrosoftYaHei-Bold', height: '48px'}">
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
数据处理中
-
-
-
-
-
-
-
-
@@ -378,470 +199,92 @@ export default {
name: "technologyInvolveProject",
data () {
return {
- SarProStateType: '',
- // 条件查询
+ SarProStateType: '', // 国内外
sarProject: {
standName: '', // 标准政策名称
standNumber: '', // 标准/政策号
standApplicationType: 2
- },
- // table数据
- sarProjectListDatas: [],
+ }, // 条件查询
+ sarProjectListDatas: [], // table数据
countryOptions: [], //国家选择下拉框数据
- drawerCountryOptions: [], // 准入信息 国家下拉框
- // table高度
- tableHeight: null,
- // 列表页loading
+ tableHeight: null, // table高度
loading: false,
- loading2: false,
- loading3: false,
- // 外层列表页数据条数
total: 0,
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
- // 导出时候用
- SarExportSearchEo: {},
- // 项目符合性数据
- saveSarId: '',
- saveSarType: '',
- exportShowName: '',
- sarItem: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- sarItem2: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- // 新增、编辑 准入信息字段
- sarAccessEO: {
- country: '',
- },
- // 模态框内容
- sarItemTotal: 0,
- itemsPage: 1,
- itemsPageSize: this.$store.getters.userInfo.configContent,
- sarItemListDatas: [],
- conformStateOptions: [
- {label: '待验证', value: 1},
- {label: '符合', value: 2},
- {label: '不符合', value: 3},
- // {label: '部分符合', value: 4},
- {label: '不涉及', value: 5}
- // {label: '评估中', value: 6},
- // {label: '整改中', value: 7},
- // {label: '未评估', value: 8}
- ],
- conformStateOptions1: [
- {label: '待验证', value: 1},
- {label: '符合', value: 2},
- {label: '不符合', value: 3},
- // {label: '部分符合', value: 4},
- {label: '不涉及', value: 5}
- // {label: '评估中', value: 6},
- // {label: '整改中', value: 7},
- // {label: '未评估', value: 8}
- ],
- // 查看标准在项目中符合性数据
showSarProStateModal: false,
- showSarProStateModal2: false,
sarProStateEO: {
- standId: '',
- standType: '',
- productCode: '',
- productName: ''
- },
- sarProStateEO2: {
- standId: '',
- standType: '',
- productCode: '',
productName: ''
},
sarProStateTotal: 0,
sarProStateTotalPage: 1,
sarProStatePageSize: this.$store.getters.userInfo.configContent,
- sarProStateTotal2: 0,
- sarProStateTotalPage2: 1,
- sarProStatePageSize2: this.$store.getters.userInfo.configContent,
- saveClickProductId: '',
- saveSarProductId: '',
- // 符合性查看弹窗的打开
- showSarItemModal: false,
- // 符合性项目列表数据
- sarProStateListDatas: [],
- // 符合性项目列表数据2
- sarProStateListDatas2: [],
- // 符合性项目列表高度
+ sarProStateListDatas: [], // 符合性项目列表数据
sarProStateTableHeight: null,
- editSarComEO: {
- id: '',
- sarState: ''
- },
- editSarComEODefault: {
- id: '',
- sarState: ''
- },
- editSarComEO2: {
- id: '',
- itemState: ''
- },
- editSarComEODefault2: {
- id: '',
- itemState: ''
- },
- // 编辑弹窗打开
- editSarComModal: false,
- // 选中一行查看符合性弹窗的标准号,
- standNum: '',
- // 用于切换分页,0,1
- isExistItems: '',
- processList: [],
- processListVisible: false
}
},
methods: {
- changeState (row) {
- console.log('0000')
- console.log(row.productId)
- console.log(row)
- console.log(row.sarState)
- let routeUrl = this.$router.resolve({
- name: 'ComplianceDetails',
- query: {
- sarId: row.productId,
- // sarId: row.id,
- sarType: row.sarState
- }
- })
- window.open(routeUrl.href, '_blank')
- },
- /**
- * 查看项目符合性弹框里面的
- * 符合性状态列点击事件
- */
- handleSarStateClick(row) {
- if (row.sarState === 8) {
- return
- }
- // console.log(row)
- this.showSarProStateModal2 = true
- this.saveClickProductId = row.productId
- this.queryItemsBySar()
- },
- /**
- * 查看项目 条款 弹框里面的
- * 符合性状态列点击事件
- */
- handleItemClick(row) {
- const processList = row.process ? row.process.split(',') : []
- console.log(processList)
- this.processList = processList.map(item => {
- return {
- processNumber: item
- }
- })
- this.processListVisible = true
- },
- /**
- * 查看项目 条款 流程编号弹框里面的
- * 流程编号点击事件
- */
- handleProcessClick(row) {
- const processNumber = row.processNumber
- this.$store.commit('setDetailMap', this.$route.path)
- this.$router.push({
- name: 'ProcessDetail',
- query: {
- prcNum: processNumber
- }
- })
- },
- // 返回
- back () {
- this.$router.push(this.$store.state.detailMap)
- this.$store.commit('setDetailMap', '')
- },
- // 列表操作栏 ...
- handleCommand (command) {
- switch (command[1]) {
- case '查看项目符合性':
- this.handleProjectCompliance(command[0])
- break
- }
- },
- // 符合性项目列表操作
- handleCommandInside (command) {
- switch (command[1]) {
- case '编辑':
- this.handleEdit(command[0])
- break
- // case '查看':
- // this.handleProjectCompliance(command[0])
- // break
- }
- },
- searchStandAndLaws () {
- this.page = 1
- this.queryStandAndLaws()
- },
- // 分页查询
- queryStandAndLaws () {
- this.sarProject.current = this.page
- this.sarProject.size = this.pageSize
- this.$http.get('sarStandardComplianceAssessResult/standard', this.sarProject, {
- _this: this,
- loading: 'loading',
- }, res => {
- this.sarProjectListDatas = res.data.records
- this.total = res.data.total
- }, e=> {})
- },
- // 分页查询条目符合性
- queryItemsBySar () {
- this.sarItem2.page = this.itemsPage
- this.sarItem2.pageSize = this.itemsPageSize
- this.sarItem2.standId = this.saveSarId
- this.sarItem2.standType = this.saveSarType
- this.sarItem2.productId = this.saveClickProductId
- this.$http.get('lawss/sarProductSarState/page', this.sarItem2, {
- _this: this,
- loading: 'loading3'
- }, res => {
- // this.sarItemListDatas = res.data.list
- // this.sarItemTotal = res.data.count
- this.sarProStateListDatas2 = res.data.list
- this.sarProStateTotal2 = res.data.count
- }, e => {
- })
- },
- // 外层清空条件查询
- resetSelect () {
- this.sarProject.country = ''
- this.sarProject.standCode=''
- this.sarProject.standName = ''
- this.queryStandAndLaws()
- },
- // 查看项目符合性
- handleProjectCompliance (row) {
- this.saveSarId = row.standId
- this.saveSarType = row.standType
- this.exportShowName = row.standName
- this.sarItem.productCode = ''
- this.sarItem.productName = ''
- this.row = row
- this.SarProStateType = row.standType
- this.showSarProStateModal = true
- },
- handleProjectPreview (row) {
- this.saveClickProductId = row.productId
- this.saveSarProductId = row.id
- this.queryItemsBySar()
- this.showSarItemModal = true
- },
- // 如果isExistItems === 0查看标准在项目中符合性列表
- querySarProStateZero () {
- // let queryUrl = ''
- this.sarProStateEO.page = this.sarProStatePage
- this.sarProStateEO.pageSize = this.sarProStatePageSize
- this.sarProStateEO.standId = this.saveSarId
- this.sarProStateEO.standType = this.saveSarType
- this.$http.get('lawss/sarProductStand/queryInvolveProByPage', this.sarProStateEO, {
- _this: this,
- loading: 'loading2'
- }, res => {
- this.sarProStateListDatas = res.data.list
- this.sarProStateTotal = res.data.count
- }, e => {
- })
- },
- // 如果isExistItems === 1 查看标准在项目中符合性列表
- querySarProStateFirst () {
- // let queryUrl = ''
- this.sarProStateEO2.page = this.sarProStatePage2
- this.sarProStateEO2.pageSize = this.sarProStatePageSize2
- // this.sarProStateEO.standId = this.saveSarId
- // this.sarProStateEO.standType = this.saveSarType
- this.sarProStateEO2.standNum = this.standNum
- this.$http.get('lawss/sarInconformItem/queryInvolveItems', this.sarProStateEO2, {
- _this: this,
- loading: 'loading'
- }, res => {
- this.sarProStateListDatas2 = res.data.list
- this.sarProStateTotal2 = res.data.count
- }, e => {
- })
- },
- // 列表多选
- sarProductStateSelect (val) {
- console.log(val)
- },
- // 列表多选
- sarProductStateSelect2 (val) {
- console.log(val)
- },
- // 清空条件查询
- clearSearchProState () {
- this.sarProStateEO.productCode = ''
- this.sarProStateEO.productName = ''
- if (this.isExistItems === 0) {
- this.querySarProStateZero()
- } else {
- this.querySarProStateFirst()
- }
- },
- // 清空条件查询
- clearSearchProState2 () {
- this.sarProStateEO2.productCode = ''
- this.sarProStateEO2.productName = ''
- this.querySarProStateFirst()
-
- },
- // 清空查询
- clearSearchPro () {
- this.sarProStateEO.productCode = ''
- this.sarProStateEO.productName = ''
- this.showSarProStateModal = false
- },
- // 清空查询
- clearSearchPro2 () {
- this.sarProStateEO2.productCode = ''
- this.sarProStateEO2.productName = ''
- this.showSarProStateModal2 = false
- },
- // 项目符合性分页
- pageProStateChange (page) {
- this.sarProStatePage = page
- this.querySarProStateZero()
- },
- pageProStateSizeChange (pageSize) {
- this.sarProStatePageSize = pageSize
- this.querySarProStateZero()
- },
- // 项目符合性分页
- pageProStateChange2 (page) {
- this.sarProStatePage2 = page
- this.querySarProStateFirst()
- },
- pageProStateSizeChange2 (pageSize) {
- this.sarProStatePageSize2 = pageSize
- this.querySarProStateFirst()
- },
- // 编辑符合性弹窗打开
- handleEdit (row) {
- this.saveSarProductId = row.id
- this.editSarComEO.sarState = row.sarState
- this.editSarComModal = true
- },
- // 编辑符合性弹窗关闭
- handleClose () {
- if (this.isExistItems === 0) {
- this.editSarComEO = {...this.editSarComEODefault}
- } else {
- this.editSarComEO2 = {...this.editSarComEODefault2}
- }
- this.$refs['editSarComEO'].clearValidate()
- this.editSarComModal = false
- },
- // 符合性弹窗修改保存
- updateSarState () {
- if (this.isExistItems === 0) {
- const data = {}
- data.sarType = this.saveSarType
- data.id = this.saveSarProductId
- data.sarItemState = this.editSarComEO.sarState
- this.$http.putData('lawss/sarProductSarState/updateSarState', data, {
- _this: this
- }, res => {
- this.editSarComModal = false
+ searchStandAndLaws () {
+ this.page = 1
+ this.queryStandAndLaws()
+ }, // 查询
+ pageChange (page) {
+ this.page = page
+ this.queryStandAndLaws()
+ },
+ pageSizeChange (pageSize) {
+ this.pageSize = pageSize
+ this.$store.getters.userInfo.configContent = pageSize
+ this.queryStandAndLaws()
+ },
+ queryStandAndLaws () {
+ this.sarProject.current = this.page
+ this.sarProject.size = this.pageSize
+ this.$http.get('sarStandardComplianceAssessResult/standard', this.sarProject, {
+ _this: this,
+ loading: 'loading',
+ }, res => {
+ this.sarProjectListDatas = res.data.records
+ this.total = res.data.total
+ }, e=> {})
+ }, // 分页查询
+ resetSelect () {
+ this.sarProject.country = ''
+ this.sarProject.standCode=''
+ this.sarProject.standName = ''
+ this.queryStandAndLaws()
+ }, // 外层清空条件查询
+ handleProjectCompliance (row) {
+ this.showSarProStateModal = true
this.querySarProStateZero()
- }, e => {})
- } else {
- const data = {}
- data.sarType = this.saveSarType
- data.id = this.saveSarProductId
- data.sarItemState = this.editSarComEO.itemState
- this.$http.putData('lawss/sarProductSarState/updateState', data, {
- _this: this
- }, res => {
- this.editSarComModal = false
- this.queryItemsBySar()
- // const data = {}
- // data.sarType = this.saveSarType
- // data.itemState = this.editSarComEO.itemState
- // data.id = this.saveSarProductId
- // this.$http.putData('lawss/sarInconformItem/updateItem', data, {
- // _this: this
- // }, res => {
- // this.editSarComModal = false
- // this.querySarProStateFirst()
- }, e => {})
- }
- },
- // 导出多选, table列表多选
- getSelectedDatas (selection) {
- this.saveSelectedDatas = selection
- },
- // 点击导出按钮
- showExportModal (type) {
- // 区别是选择导出还是全部导出
- this.saveExportType = type
- if (type === 'apart') {
- if (this.saveSelectedDatas != null && this.saveSelectedDatas.length > 0) {
- this.exportName = ''
- this.exportModelFlag = true
- } else {
- this.$message.error('请选择要导出的数据')
- }
- } else {
- this.exportName = ''
- this.exportModelFlag = true
- }
- },
- // 确认导出
- exportSarProduct () {
- if (this.exportName === '' || this.exportName === null || this.exportName === 'null') {
- this.exportName = '标准涉及项目'
- }
- let jsonData = ''
- if (this.saveExportType === 'apart') {
- jsonData = JSON.stringify(this.saveSelectedDatas)
- } else if (this.saveExportType === 'all') {
- let exportEOStr = JSON.stringify(this.SarExportSearchEo)
- jsonData = exportEOStr.replace(/""/g, null)
- }
- window.location.href = '/api/lawss/sarProductLaws/exportSarProduct?jsonData=' + jsonData + '&exportType=' + this.saveExportType + '&exportName=' + this.exportName
- this.saveSelectedDatas = []
- this.exportModelFlag = false
- this.queryStandAndLaws()
- },
- // 外层分页方法
- pageChange (page) {
- this.page = page
- this.queryStandAndLaws()
- },
- pageSizeChange (pageSize) {
- this.pageSize = pageSize
- this.queryStandAndLaws()
- }
+ }, // 查看项目符合性
+ querySarProStateZero () {}, // 查询项目数据
+ clearSearchProState () {
+ this.sarProStateEO.productName = ''
+ this.querySarProStateZero()
+ }, // 清空条件查询
+ clearSearchPro () {
+ this.sarProStateEO.productName = ''
+ this.showSarProStateModal = false
+ }, // 关闭查看事件
+ pageProStateChange (page) {
+ this.sarProStateTotalPage = page
+ this.querySarProStateZero()
+ },
+ pageProStateSizeChange (pageSize) {
+ this.sarProStatePageSize = pageSize
+ this.$store.getters.userInfo.configContent = pageSize
+ this.querySarProStateZero()
+ },
},
mounted () {
- // 分页查询方法
- this.queryStandAndLaws()
- //从数据库中查询下拉框数据
- this.$http.get('sys/dictype/getDicTypeListCode', '',{
- _this:this
- },res =>{
- this.countryOptions = res.data.COUNTRY //国家
- }, e => {
- })
- this.tableHeight = $('.regulatory-repository').height() - 53 - 50 - 56
- window.onresize = () => {
- this.tableHeight = $('.regulatory-repository').height() - 53 - 50 - 56
- }
+ this.queryStandAndLaws()
+ this.tableHeight = $('.regulatory-repository').height() - 159
+ this.sarProStateTableHeight = $('body').height() - 152
+ window.onresize = () => {
+ this.tableHeight = $('.regulatory-repository').height() - 159
+ this.sarProStateTableHeight = $('body').height() - 152
+ }
}
}