diff --git a/src/pages/config/pages/attributeCustom/components/stand.vue b/src/pages/config/pages/attributeCustom/components/stand.vue
index 7e73e4779..42917deb2 100644
--- a/src/pages/config/pages/attributeCustom/components/stand.vue
+++ b/src/pages/config/pages/attributeCustom/components/stand.vue
@@ -2,8 +2,8 @@
- 新增
- 展示区域管理
+ 新增
+ 展示区域管理
数据处理中
@@ -76,7 +76,7 @@
- 编辑
+ 编辑
删除
diff --git a/src/pages/config/pages/standLawsAttrManage/index.vue b/src/pages/config/pages/standLawsAttrManage/index.vue
index 373237277..70bf0b03e 100644
--- a/src/pages/config/pages/standLawsAttrManage/index.vue
+++ b/src/pages/config/pages/standLawsAttrManage/index.vue
@@ -53,10 +53,10 @@
class="common-button-primary"
size="mini"
@click="showAddModel(1, null)"
- v-btn-permission="'29YZ482LEHRJJXELWZGG'"
+ v-btn-permission="''"
>新增
- 删除
@@ -124,13 +124,13 @@
编辑
删除
-
+
@@ -30,10 +31,10 @@
clearable
>
-
+
@@ -55,99 +56,72 @@
-
-
+
-
-
- 流程发起人
-
-
-
-
-
-
-
- 责任对接人
-
-
-
-
-
-
-
-
- 责任人
-
-
-
-
-
-
-
-
- 责任对接人
-
-
-
-
-
-
-
- 标准法规工程师
-
-
-
-
-
-
-
- 责任人
-
-
-
-
-
-
-
- 责任部门领导与标准法规部部长
-
-
-
-
-
-
-
- 技术管理中心负责人
-
-
-
-
-
-
-
- 标准法规业务院级领导
-
-
-
-
-
+
+
+
+
+ 流程发起人
+
+
+
+
+
+
+
+
+
+
+ 责任部门对接人
+
+
+
+
+
+
+
+
+
+
+
+ 标准法规部部长
+
+
+
+
+
+
+
+
+
+
+ 技术管理中心主任
+
+
+
+
+
+
+
+
+
+
+ 工程研究总院院长
+
+
+
+
+
+
+
+
@@ -166,10 +140,13 @@
:wrapperClosable="false"
size="800px">
+
@@ -191,6 +172,9 @@ export default {
name: "bzdyStep1",
data() {
return {
+ roleRow: {},
+ nodeList: [],
+ type: '',
defaultProps: {
children: 'children',
label: 'name'
@@ -206,20 +190,45 @@ export default {
saveLoading: false,
form: {
title: '', // 调研标题
- year: '', // 完成时间
+ date: '', // 完成时间
model: '', // 上传模板
},
- data: [], // 标准列表数据
- ListForm: {}, // 新增数据
- user1: '',
- user2: '',
- user3: '',
- user4: '',
- user5: '',
- user6: '',
- user7: '',
- user8: '',
- user9: '',
+ formRules: {
+ title: [
+ { required: true, message: '请输入调研标题', trigger: 'blur' },
+ ],
+ date: [
+ { type: 'date', required: true, message: '请选择完成时间', trigger: 'change' }
+ ]
+ },
+ roleForm: {
+ startUserName: this.$store.getters.userInfo.userName,
+ startUser: this.$store.getters.userInfo.userId,
+ dockUser: '',
+ responUserList: '',
+ ministerUser: '',
+ directorUser: '',
+ presidentUser: '',
+ dockUserName: '',
+ responUserListName: '',
+ ministerUserName: '',
+ directorUserName: '',
+ presidentUserName: ''
+ },
+ roleFormRules: {
+ dockUserName: [
+ { required: true, message: '请输入调研标题', trigger: 'change' },
+ ],
+ ministerUserName: [
+ { required: true, message: '请输入调研标题', trigger: 'change' },
+ ],
+ directorUserName: [
+ { required: true, message: '请输入调研标题', trigger: 'change' },
+ ],
+ presidentUserName: [
+ { required: true, message: '请输入调研标题', trigger: 'change' },
+ ]
+ }
}
},
components: {
@@ -228,15 +237,39 @@ export default {
ProcessTitle
},
methods: {
+ saveUserInfo () {
+ if (this.type === 'dockUser') {
+ this.roleForm.dockUser = this.roleRow.id
+ this.roleForm.dockUserName = this.roleRow.name
+ } else if (this.type === 'ministerUser') {
+ this.roleForm.ministerUser = this.roleRow.id
+ this.roleForm.ministerUserName = this.roleRow.name
+ } else if (this.type === 'directorUser') {
+ this.roleForm.directorUser = this.roleRow.id
+ this.roleForm.directorUserName = this.roleRow.name
+ } else if (this.type === 'presidentUser') {
+ this.roleForm.presidentUser = this.roleRow.id
+ this.roleForm.presidentUserName = this.roleRow.name
+ }
+ this.modalshowflag = false
+ },
+ cancleUserInfo () {
+ this.modalshowflag = false
+ },
drawerCheck (data) {
var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
if(getlist.length == 1) {
+ this.roleRow = getlist[0]
}else {
this.$refs.tree.setCheckedKeys([data.id]);
+ this.roleRow = this.$refs.tree.getCheckedNodes()[0]
}
},
- choiceZRR () {
- this.drawerTitle = '选择责任人'
+ choiceZRR (type, title, id) {
+ this.nodeList = []
+ this.nodeList.push(id)
+ this.type = type
+ this.drawerTitle = title
this.modalshowflag = true
},
getTree () {
@@ -244,25 +277,42 @@ export default {
this.treeData = res.data
})
},
- closeDrawer() {
- this.ListModel = false
- },
- OkDrawer() {
- this.ListModel = false
- var item = {
- remarks: '123'
- }
- this.data.push(item)
- },
- addList() {
- this.title = '新增标准'
- this.ListModel = true
- },
handleTabs(name) {
this.active = name
},
handleSave() {},
handleSubmit() {
+ this.$refs['qbkwForm'].validate((valid) => {
+ if (valid) {
+ this.$refs['Form'].validate((valid) => {
+ if (valid) {
+ this.$http.get('lawss/activiti/startProcess', {
+ type: '2'
+ }, {}, res => {
+ if (res.ok) {
+ var json = Object.assign(this.form, this.roleForm)
+ this.$http.post('lawss/activiti/completeTask', {
+ json: JSON.stringify(json),
+ taskId: res.data,
+ userId: this.$store.getters.userInfo.userId
+ }, {}, res => {
+ if (res.success) {
+ this.$message.success('流程发起成功')
+ this.$router.push('/processCenter')
+ }
+ })
+ } else {
+ this.$message.warning('流程启动失败')
+ }
+ })
+ } else {
+ return this.$message.warning('请完善人员信息')
+ }
+ })
+ } else {
+ return this.$message.warning('请完善基础信息')
+ }
+ })
}
},
mounted () {
diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue
new file mode 100644
index 000000000..74895baf8
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/bzdy/step2.vue
@@ -0,0 +1,283 @@
+
+
+
+
+ 标准调研流程
+ 对接人选择责任人
+
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.model }}
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue b/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue
new file mode 100644
index 000000000..9f155917c
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/bzdy/step3.vue
@@ -0,0 +1,295 @@
+
+
+
+
+ 标准调研流程
+ 责任人上传调研结果
+
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ form.model }}
+
+
+
+ 点击上传
+
+
+
+
+
+
+ {{ form.fileName }}
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue
index 4fce8a626..29e7bb6c0 100644
--- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step1.vue
@@ -22,39 +22,59 @@
-
+
国家/地区清单
项目清单
其他清单
- 带入
+ 选择清单
-
+
-
-
- {{ opt.label }}
-
-
-
-
+
+
+
+
-
- 点击上传
+
+
+
+ 点击上传
+
+
+
-
-
+
+
是
否
@@ -66,16 +86,17 @@
填写信息
+
+ {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
+ {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
+
+
+
+ prop="issueTime"
+ sortable
+ label="发布日期">
+ prop="xcxssrq"
+ sortable
+ label="新车型实施日期">
+ show-overflow-tooltip
+ prop="zccssrq"
+ sortable
+ label="在产车实施日期">
-
-
-
-
-
-
+ show-overflow-tooltip
+ prop="textStatus"
+ width="120px"
+ label="文本状态">
-
+
-
-
- 标准/政策法规工程师
-
-
-
-
-
-
-
- 责任人
-
-
-
-
-
-
-
-
-
- 责任人
-
-
-
-
-
-
-
- 业务经理
-
-
-
-
-
+
+
+
+
+ 标准/政策法规工程师
+
+
+
+
+
+
+
+
+
+
+ 填写会签意见
+
+
+
+
+
+
+
+
+
+
+
+ 标准/政策法规工程师
+
+
+
+
+
+
+
+
+
+
+ 业务经理
+
+
+
+
+
+
+
+
-
+
-
+
+
+
-
-
-
-
-
-
- {{ scope.row.detailedListName }}
-
-
-
-
- 未发布
- 已发布
-
-
-
-
+ @selection-change="selectListChange"
+ ref="selection"
+ >
+
+
+
+
+
+
+ {{ scope.row.detailedListName }}
+
+
+
+
+ 未发布
+ 已发布
+
+
+
+
{{ scope.row.detailedListVision
}}
-
-
-
-
+
+
+
+
{{ scope.row.applicationScope
}}
-
-
-
-
-
- {{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
- }}
-
-
-
-
-
-
-
+
+
+ {{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
+ }}
+
+
+
+
+
+
+
-
-
-
-
-
-
- {{ scope.row.detailedListName }}
-
-
-
-
- 未发布
- 已发布
-
-
-
-
+ @selection-change="selectListChange"
+ ref="selection"
+ >
+
+
+
+
+
+
+ {{ scope.row.detailedListName }}
+
+
+
+
+ 未发布
+ 已发布
+
+
+
+
{{ scope.row.detailedListVision
}}
-
-
-
-
+
+
+
+
{{ scope.row.applicationScope
}}
-
-
-
-
-
- {{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
- }}
-
-
-
-
-
-
-
+
+
+ {{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
+ }}
+
+
+
+
+
+
+
-
-
-
-
-
-
- {{ scope.row.detailedListName }}
-
-
-
-
- 未发布
- 已发布
-
-
-
-
+ @selection-change="selectListChange"
+ ref="selection"
+ >
+
+
+
+
+
+
+ {{ scope.row.detailedListName }}
+
+
+
+
+ 未发布
+ 已发布
+
+
+
+
{{ scope.row.detailedListVision
}}
-
-
-
-
+
+
+
+
{{ scope.row.applicationScope
}}
-
-
-
-
-
- {{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
- }}
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ scope.row.updateTime ? $moment(scope.row.updateTime).format("YYYY-MM-DD hh:mm:ss") : scope.row.updateTime
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
@@ -492,6 +570,8 @@
import ProcessHeader from "../../components/ProcessHeader";
import ProcessFooter from "../../components/ProcessFooter";
import ProcessTitle from "../../components/ProcessTitle";
+import { saveTaskFirst } from "api/process";
+import seeDatalis from "@/pages/localTool/standContrast/pages/seeDatalis";
export default {
name: "bzqdfbStep1",
@@ -502,28 +582,106 @@ export default {
},
data() {
return {
- data: [],
+ modalshowflag: false, // drawer开关
+ drawerTitle: '', //drawer标题
+ nodeList: [],
+ defaultProps: {
+ children: 'children',
+ label: 'name'
+ },
+ roleForm: {
+ startUserName: this.$store.getters.userInfo.account,
+ startUser: this.$store.getters.userInfo.id,
+ dockUser: '',
+ responUserList: '',
+ ministerUser: '',
+ directorUser: '',
+ presidentUser: '',
+ dockUserName: '',
+ responUserListName: '',
+ ministerUserName: '',
+ directorUserName: '',
+ presidentUserName: ''
+ },
+ roleFormRules: {
+ dockUserName: [
+ { required: true, message: '请选择会签责任人', trigger: 'blur' },
+ ],
+ ministerUserName: [
+ { required: true, message: '请选择修订责任人', trigger: 'blur' },
+ ],
+ directorUserName: [
+ { required: true, message: '请选择审批责任人', trigger: 'blur' },
+ ],
+ },
+ dataList: [],//清单里的标准数据
sarAccessListDatas: [], //国家地区清单表格
+ uploadFileListPath: 'api/att/attFile/upload', // 上传的地址
+ fileInfoList: [], // 上传的附件
standardData: [], //添加标准数据
ListModel: false, //选择清单抽屉状态
standModel: false, // 选择标准抽屉状态
active: "1",
+ signFlag: "1", //是否会签 1为会签 2为不会签
+ listType: "country", //选择的清单类型
isSubmit: false,
saveLoading: false,
- radio: "country",
tabValue: "listOfCountries",
- selectedList: [],
- listForm: {},
+ selectedList: [], //选择清单的选择框
+ selectList: [], //选择标准的选择框
+ bringData: [],
+ page: 1,
+ total: 0,
+ pageSize: this.$store.getters.userInfo.configContent,
+ listForm: {
+ listType: "", //区分是哪个清单
+ listName: "", //清单名称
+ applyRegion: "", //适用区域
+ descriptionList: "", //清单说明
+ enclosure: "", //附件
+ standId: "", //选择的清单的id
+ signFlag: "1", //是否会签 1为会签 2为不会签
+ inforlist:"" , //用来存放标准列表的标准id
+ dataList: [{
+ code: "", //标准号
+ standName: "", //标准名称
+ issueTime: "", //发布日期
+ xcxssrq: "", //新车型实施日期
+ zccssrq: "", //在产车实施日期
+ textStatus: "", //文本状态
+ id: ""
+ }]
+ },
choiceForm: {}, //选择标准清单列表
countryOptions: [], //适用区域下拉框数据
user1: "",
user2: "",
user3: "",
user4: "",
- user5: ""
+ user5: "",
+ standMap: new Map()
};
},
methods: {
+ saveUserInfo () {
+ if (this.type === 'dockUser') {
+ this.roleForm.dockUser = this.roleRow.id
+ this.roleForm.dockUserName = this.roleRow.name
+ } else if (this.type === 'ministerUser') {
+ this.roleForm.ministerUser = this.roleRow.id
+ this.roleForm.ministerUserName = this.roleRow.name
+ } else if (this.type === 'directorUser') {
+ this.roleForm.directorUser = this.roleRow.id
+ this.roleForm.directorUserName = this.roleRow.name
+ } else if (this.type === 'presidentUser') {
+ this.roleForm.presidentUser = this.roleRow.id
+ this.roleForm.presidentUserName = this.roleRow.name
+ }
+ this.modalshowflag = false
+ },
+ cancleUserInfo () {
+ this.modalshowflag = false
+ },
//tab发生变化
handleTabs(name) {
this.active = name;
@@ -531,50 +689,259 @@ export default {
choiceShow() {
this.ListModel = true;
},
- selectionList (type) {
- console.log(type);
+ drawerCheck (data) {
+ // var getlist = this.$refs.tree.getCheckedNodes().concat(this.$refs.tree.getHalfCheckedNodes());
+ // if(getlist.length == 1) {
+ // this.roleRow = getlist[0]
+ // }else {
+ // this.$refs.tree.setCheckedKeys([data.id]);
+ // this.roleRow = this.$refs.tree.getCheckedNodes()[0]
+ // }
+ },
+ //判断当前是否会签
+ selectSign (type) {
+ if(type ==='1'){
+ this.listForm.signFlag = 1
+ }else if(type == '2'){
+ this.listForm.signFlag = 2
+ }
+ },
+ // //判断当前选中的是哪个清单
+ selectionList(type) {
+ if (type === "project") {
+ this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
+ page: this.page,
+ pageSize: this.pageSize,
+ sortKey: 2
+ }, {
+ _this: this
+ }, res => {
+ this.sarAccessListDatas = res.data.records;
+ this.total = res.data.total;
+ }, e => {
+ });
+ } else if (type === "other") {
+ this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
+ page: this.page,
+ pageSize: this.pageSize,
+ sortKey: 3
+ }, {
+ _this: this
+ }, res => {
+ this.sarAccessListDatas = res.data.records;
+ this.total = res.data.total;
+ }, e => {
+ });
+ } else {
+ this.$http.get("sarLawsDetailedList/sar-laws-detailed-list/getAllStand", {
+ page: this.page,
+ pageSize: this.pageSize,
+ sortKey: 1
+ }, {
+ _this: this
+ }, res => {
+ this.sarAccessListDatas = res.data.records;
+ this.total = res.data.total;
+ }, e => {
+ });
+ }
},
//点击新增事件
addList() {
- this.standModel = true
+ this.$http.get("sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage", "", {
+ _this: this
+ }, res => {
+ console.log(res);
+ this.standardData = res.data.list;
+ }, e => {
+ });
+ this.standModel = true;
},
// 点击批量删除事件
deleteList() {
- this.$confirm('您确认删除这些数据?', '提示', {
- confirmButtonText: '确认',
- confirmButtonClass:'common-button-primary',
- cancelButtonText: '取消',
- type:'warning',
- }).then (() => {
-
- }).catch (() => {
-
- })
+ if (this.selectList.length < 1) {
+ this.$message.warning("请选择一条数据进行删除");
+ } else {
+ this.$confirm("您确认删除这些数据?", "提示", {
+ confirmButtonText: "确认",
+ confirmButtonClass: "common-button-primary",
+ cancelButtonText: "取消",
+ type: "warning"
+ }).then(() => {
+ let exits = [];
+ this.selectList.map(item => {
+ let index;
+ index = this.dataList.findIndex(items => {
+ return items.id = item;
+ });
+ if (index > -1) {
+ this.dataList.splice(index, 1);
+ }
+ exits.push(item);
+ });
+ this.selectList = [];
+ }).catch(() => {
+ });
+ }
},
//保存事件
handleSave() {
-
+ this.saveLoading = true
+ let _formData = new FormData()
+ _formData.append('createUser', this.$store.getters.userInfo.userId)
+ _formData.append('createUserName', this.$store.getters.userInfo.uName)
+ _formData.append('prcType', this.$route.query.type)
+ _formData.append('json', JSON.stringify({
+ prcForm: this.prcForm,
+ sarAccessInfoList: this.sarAccessInfoList,
+ sarAccessInfoListADMIN: this.sarAccessInfoListADMIN,
+ bzqdForm: this.bzqdForm,
+ listInfo: this.listInfo,
+ id: this.id
+ }))
+ saveTaskFirst(_formData).then(res => {
+ this.saveLoading = false
+ this.$message.success('保存成功')
+ }).catch(e => {
+ this.saveLoading = false
+ })
},
//提交事件
handleSubmit() {
+ let json = this.listForm
+ json.zrUserId = this.$store.getters.userInfo.userId
+ json.jlUserId = this.$store.getters.userInfo.userId
+ json.applyUpdUserId = this.$store.getters.userInfo.userId
+ json.approvalOpinion = ''
+ json.prcCreateUser = this.$store.getters.userInfo.userId
+ json.prcCreateUserName = this.$store.getters.userInfo.account
+ json.standName = this.listForm.listName
+ json.standId = this.listForm.standId
+ this.$http.get('lawss/activiti/startProcess' , {type: '4'}, {
+ _this: this
+ }, res => {
+ if(res.ok){
+ this.$http.post('lawss/activiti/completeTask',{
+ taskIds: res.data,
+ userId : this.$store.getters.userInfo.userId,
+ json: JSON.stringify(json)
+ },{
+ _this: this
+ }, res => {
+ if(res.success) {
+ this.$message.success(res.message)
+ this.$router.push('/processCenter')
+ }
+ })
+ }
+ })
+ },
+ // 删除上传的文件
+ delFileInfo (file, fileList) {
+ // this.fileInfoList = fileList
+ },
+ // 上传文件成功回调
+ uploadBackSuccess (res, file, fileList) {
+ // if (res.ok) {
+ // this.fileInfoList = fileList
+ // this.fileInfoList[this.fileInfoList.length - 1].id = res.data.id
+ // this.$message.success('上传成功')
+ // } else {
+ // this.$message.error(res.message)
+ // fileList.pop()
+ // }
+ },
+ //上传之前的钩子
+ beforeUpload () {
},
//选择标准取消事件
closeDrawer() {
-
+ this.ListModel = false;
},
- //选择标准确定事件
+ //选择清单确定事件
OkDrawer() {
-
+ if (this.selectedList.length === 1) {
+ let deposit = new Map();
+ this.sarAccessListDatas.forEach(item => {
+ deposit.set(item.id, item);
+ });
+ let bringData = [];
+ for (let i = 0; i < this.selectedList.length; i++) {
+ bringData.push(deposit.get(this.selectedList[i]));
+ }
+ this.listForm.standId = bringData[0].id
+ this.listForm.listName = bringData[0].detailedListName;
+ this.listForm.applyRegion = bringData[0].applicationScope;
+ this.listForm.descriptionList = bringData[0].remark;
+ this.listForm.enclosure = bringData[0].detailedListName;
+ this.ListModel = false;
+ this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {id: bringData[0].id}, {
+ _this: this
+ }, res => {
+ this.dataList = res.data
+ this.listForm.dataList = res.data
+ let formId = ""
+ this.dataList.forEach(item => {
+ if(this.dataList.length !== 0){
+ formId += ','
+ formId += item.id
+ }
+ })
+ this.listForm.inforlist = formId
+ }, e => {
+ })
+ } else if (this.selectedList.length > 1) {
+ this.$message.warning("只能选择一条数据进行带入");
+ } else {
+ this.$message.warning("请选择一条数据进行带入");
+ }
},
- selectOne(data) {
+ //选择清单选择框改变
+ selectListChange(data) {
this.selectedList = [];
for (let i = 0; i < data.length; i++) {
this.selectedList.push(data[i].id);
}
+ },
+ //标准表格选择框改变
+ selectStandChange(data) {
+ this.selectList = [];
+ for (let i = 0; i < data.length; i++) {
+ this.selectList.push(data[i].id);
+ }
+ },
+ selectThree() {
+ },
+ choiceZRR (type, title, id) {
+ this.nodeList = []
+ this.nodeList.push(id)
+ this.type = type
+ this.drawerTitle = title
+ this.modalshowflag = true
+ },
+ getTree () {
+ // this.$http.get('SarInstitution/institution/institutionAndUser', {}, {}, res=> {
+ // this.treeData = res.data
+ // })
+ },
+ pageChange(page) {
+ this.page = page;
+ this.searchData();
+ },
+ pageSizeChange(pageSize) {
+ this.pageSize = this.$store.getters.userInfo.configContent;
+ this.searchData();
}
},
+ computed: {},
mounted() {
+ this.selectionList()
+ this.selectSign();
+ this.getTree()
+ for (let i = 0; i < this.dataList.length; i++) {
+ this.standMap.set(this.dataList[i].id, this.dataList[i]);
+ }
//从数据查询下拉框数据
this.$http.get("sys/dictype/getDicTypeListCode", "", {
_this: this
@@ -588,6 +955,7 @@ export default {
diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue
index 88296df3c..1ed5b4e83 100644
--- a/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step2.vue
@@ -1,13 +1,507 @@
-
+
+
+
+ 标准清单发布/更新流程
+ 责任人会签流程
+
+
+
+
+
+
+
+
+ 标准/政策法规工程师
+
+
+
+
+
+
+
+ 责任人
+
+
+
+
+
+
+
+
+
+ 标准/政策法规工程师
+
+
+
+
+
+
+
+ 业务经理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+ {{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+ {{scope.row.commentText}}
+
+
+
+
+ {{ scope.row.endTime ? '已完成' : '未完成'}}
+
+
+
+ 流程列表加载中
+
+
+
+
+
+
-
+
diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue
new file mode 100644
index 000000000..819a98232
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue
@@ -0,0 +1,595 @@
+
+
+
+
+ 标准清单发布/更新流程
+ 根据会签意见修订
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+ {{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+ {{scope.row.commentText}}
+
+
+
+
+ {{ scope.row.endTime ? '已完成' : '未完成'}}
+
+
+
+ 流程列表加载中
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue
new file mode 100644
index 000000000..c8d40e32f
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue
@@ -0,0 +1,473 @@
+
+
+
+
+ 标准清单发布/更新流程
+ 业务经理审批
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+ {{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}
+
+
+
+
+ {{scope.row.commentText}}
+
+
+
+
+ {{ scope.row.endTime ? '已完成' : '未完成'}}
+
+
+
+ 流程列表加载中
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue
new file mode 100644
index 000000000..1f8c0c162
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue
@@ -0,0 +1,525 @@
+
+
+
+ 未符合项整改流程
+ 申请人发起流程
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 流程发起人
+
+
+
+
+
+
+
+
+
+
+ 标准法规工程师
+
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+ 负责人
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ treeClickSearch(treeId, treeNode)"
+ class="ztree" style="width: 200px;height: 400px;overflow: auto">
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue
new file mode 100644
index 000000000..c0fef385a
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue
@@ -0,0 +1,523 @@
+
+
+
+ 未符合项整改流程
+ 分发负责人流程
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ treeClickSearch(treeId, treeNode)"
+ class="ztree" style="width: 200px;height: 400px;overflow: auto">
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
+
+ 批量分发负责人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{scope.row.duty}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 流程发起人
+
+
+
+
+
+
+
+
+
+
+ 标准法规工程师
+
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+ 负责人
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue
new file mode 100644
index 000000000..ea7b9bd79
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue
@@ -0,0 +1,452 @@
+
+
+
+ 未符合项整改流程
+ 确认负责人流程
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ treeClickSearch(treeId, treeNode)"
+ class="ztree" style="width: 200px;height: 400px;overflow: auto">
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 选择责任人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 流程发起人
+
+
+
+
+
+
+
+
+
+
+ 标准法规工程师
+
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+ 负责人
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue
new file mode 100644
index 000000000..c95f7e89c
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue
@@ -0,0 +1,452 @@
+
+
+
+ 未符合项整改流程
+ 负责人上传佐证
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ treeClickSearch(treeId, treeNode)"
+ class="ztree" style="width: 200px;height: 400px;overflow: auto">
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传佐证材料
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 流程发起人
+
+
+
+
+
+
+
+
+
+
+ 标准法规工程师
+
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+ 负责人
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue
new file mode 100644
index 000000000..6b4411df1
--- /dev/null
+++ b/src/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue
@@ -0,0 +1,454 @@
+
+
+
+ 未符合项整改流程
+ 分发负责人审核材料
+
+
+
+
+
+ 基础信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+ treeClickSearch(treeId, treeNode)"
+ class="ztree" style="width: 200px;height: 400px;overflow: auto">
+
+
+
+
+
+
+ 查询
+
+
+
+
+ 清空
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ 11 || '暂无数据' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 流程发起人
+
+
+
+
+
+
+
+
+
+
+ 标准法规工程师
+
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+ 负责人
+
+
+
+
+
+
+
+
+
+
+ 分发责任人
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/processCenter/pages/newProcess/index.vue b/src/pages/processCenter/pages/newProcess/index.vue
index 8f32c18a9..c7cc78e25 100644
--- a/src/pages/processCenter/pages/newProcess/index.vue
+++ b/src/pages/processCenter/pages/newProcess/index.vue
@@ -10,6 +10,7 @@
标准需求(翻译)申请流程
标准发放申请流程
标准清单发布/更新流程
+ 未符合项整改流程
@@ -84,6 +85,10 @@ export default {
})
break
case '7':
+ //未符合项整改流程
+ this.$router.push({
+ name:'wfhxzgStep1'
+ })
break
case '8':
break
diff --git a/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue b/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue
index 52aa76563..a139dea98 100644
--- a/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue
+++ b/src/pages/processCenter/pages/processList/tabComponents/alreadyProcess/index.vue
@@ -190,7 +190,6 @@ export default {
loading: 'loading',
_this: this
}, res => {
- console.log(res)
this.processList = res.list || []
this.total = res.count
}, e => {
diff --git a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue
index be0c0448a..827f9db53 100644
--- a/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue
+++ b/src/pages/processCenter/pages/processList/tabComponents/processCenter/index.vue
@@ -252,6 +252,83 @@ export default {
}
})
}
+ case '2':
+ if (row.taskInfo === '责任对接人选择责任人') {
+ this.$router.push({
+ name: 'bzdyStep2',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
+ } else if (row.taskInfo === '责任人上传调研结果') {
+ this.$router.push({
+ name: 'bzdyStep3',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
+ }
+ break;
+ //标准清单更新/发布流程
+ case'4' :
+ if (row.taskInfo === '进行会签,填写意见') {
+ this.$router.push({
+ name: 'bzqdfbStep2',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
+ } else if (row.taskInfo === '根据会签意见修订') {
+ this.$router.push({
+ name: 'bzqdfbStep3',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
+ }else if (row.taskInfo === '业务经理审批') {
+ this.$router.push({
+ name: 'bzqdfbStep4',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
+ }
+ break;
+ //项目合规评估流程
+ case '5' :
+ if(row.taskInfo === ''){
+ this.$router.push({
+ name: '',
+ query: {
+ taskIds: row.taskIds,
+ prcId: row.prcId,
+ prcNum: row.prcNum,
+ prcName: row.prcName,
+ prcType: row.prcType
+ }
+ })
+ }
+
}
},
...mapMutations(['setProcess', 'setHandleInfo']),
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue
index c75645bee..67eb09919 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/index.vue
@@ -21,113 +21,128 @@
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue
index c77d00327..962916e6d 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue
@@ -102,8 +102,9 @@
label="清单状态"
align="center">
- 未发布
- 已发布
+ 未发布
+ 已发布
+ 审核中
新增
- 未发布
- 已发布
+ 未发布
+ 已发布
+ 审核中
+
- 未发布
- 已发布
+ 未发布
+ 已发布
+ 审核中
+
+
+
+
+
+
-
-
-
-
-
- {{ scope.row.code }}
- {{ scope.row.code }}
+ {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
+ {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
-
-
+
+
-
-
@@ -255,7 +253,7 @@
:header-cell-style="{background: '#e8e8e8', color: '#333333', fontSize: '16px',
fontWeight: 'bold', height: '48px'}"
@selection-change="accessSarTypeSelect"
- ref="selection"
+ ref="searchTable"
>
导出
删除
- {{ scope.row.code }}
- {{ scope.row.code }}
+ {{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
+ {{ scope.row.standSortShow }} {{ scope.row.standNumber }}
-
- {{ scope.row.name }}
- {{ scope.row.name }}
-
-
- {{ scope.row.enName }}
- {{ scope.row.enName }}
-
-
-
+ label="发布日期">
+ label="新车型实施日期">
-
-
+ prop="zccssrq"
+ sortable
+ label="在产车实施日期">
@@ -477,25 +446,27 @@ export default {
CustomRoleTree
},
data () {
- let validatePass = (rule, value, callback) => {
- let list = []
- if (this.sarAccessInfoListADMIN.length > 0) {
- for (let a = 0; a < this.sarAccessInfoListADMIN.length;a++) {
- list.push(this.sarAccessInfoListADMIN[a].code)
- }
- }
- if (this.sarAccessInfoList.length > 0) {
- for (let b = 0; b < this.sarAccessInfoList.length;b++) {
- list.push(this.sarAccessInfoList[b].code)
- }
- }
- for (let c = 0; c < list.length; c++) {
- if (value === list[c]) {
- callback(new Error('此标准号已存在'))
- }
- }
- }
+ // let validatePass = (rule, value, callback) => {
+ // let list = []
+ // //sarAccessInfoListADMIN 可能不存在
+ // if (this.sarAccessInfoListADMIN.length > 0) {
+ // for (let a = 0; a < this.sarAccessInfoListADMIN.length;a++) {
+ // list.push(this.sarAccessInfoListADMIN[a].code)
+ // }
+ // }
+ // if (this.sarAccessInfoList.length > 0) {
+ // for (let b = 0; b < this.sarAccessInfoList.length;b++) {
+ // list.push(this.sarAccessInfoList[b].code)
+ // }
+ // }
+ // for (let c = 0; c < list.length; c++) {
+ // if (value === list[c]) {
+ // callback(new Error('此标准号已存在'))
+ // }
+ // }
+ // }
return {
+ selectSearch : [],
// 新增、编辑 基础信息字段
sarAccessEO: {
id: '',
@@ -505,7 +476,8 @@ export default {
energyKind: '',
type: '',
relateFile: '',
- remark: '' // 清单说明
+ remark: '', // 清单说明
+ applicationScope: '' //适用领域
},
fileInfoList: [], // 上传的附件
uploadFileListPath: 'api/att/attFile/upload', // 上传的地址
@@ -525,6 +497,7 @@ export default {
disabledFlag: false,
regionOptions: [], // 基础信息 区域list
drawerCountryOptions: [], // 基础信息 国家list
+ applyOptions: [], //基础信息适用领域list
applyArcticOptions: [], // 基础车型 适用车型list
energyKindOptions: [], // 能源种类list
accessSarTypeOptions: [], // 要求类型list
@@ -545,12 +518,12 @@ export default {
sarAccessInfoSearch: {
id: '',
countryArea: '', // 国家
+ applicationScope: '', //适用区域
keywords: '', // 关键字
detailedListName: '', //清单名称
applyArctic: '', // 能源种类
askType: '', // 监管类型
dataSource: 'INLAND_STAND', // 数据来源
- accessSarType: 'SKILL', // 清单类型
page: 1,
pageSize: this.$store.getters.userInfo.configContent,
validFlag: 0,
@@ -562,9 +535,7 @@ export default {
importmodalFlag: false, // 导入model 状态
searching: false,
sarAccessInfoList: [], // 清单条目 技术要求table 数据
- sarAccessInfoListADMIN: [], // 清单条目 行政要求table数据
sarAccessInfoListArry: [], // 清单条目 table选中数据
- // sarAccessInfoListADMINArry: [], // 清单条目 行政要求table选中数据
moreSearchShow: false, // 多属性搜索 状态
loadData: false, // 提交按钮loading效果
drawerPage: 1, // 数据搜索table页码
@@ -627,56 +598,6 @@ export default {
{required: true, type: 'string', message: '英文名称不能为空', trigger: 'blur'},
{type: 'string', max: 1000, message: '英文名称不能超过1000个字符', trigger: 'change'}
],
- // synopsis: [
- // {required: true, type: 'string', message: '法规说明不能为空', trigger: 'blur'},
- // {type: 'string', max: 1000, message: '法规说明不能超过1000个字符', trigger: 'change'}
- // ],
- // newPutTime: [
- // {required: true, message: '新车型实施日期不能为空', trigger: 'change'}
- // ],
- // prodPutTime: [
- // {required: true, message: '在产车实施日期不能为空', trigger: 'change'}
- // ],
- // eopPutTime: [
- // {required: true, message: 'eop实施日期不能为空', trigger: 'change'}
- // ],
- // newPutTextTime: [
- // {required: true, message: '新车型实施日期(项目)不能为空', trigger: 'change'}
- // ],
- // prodPutTextTime: [
- // {required: true, message: '在产车实施日期(项目)不能为空', trigger: 'change'}
- // ],
- // eopPutTextTime: [
- // {required: true, message: 'eop实施日期(项目)不能为空', trigger: 'change'}
- // ],
- performInfo: [
- // {required: true, type: 'string', message: '实施说明不能为空', trigger: 'blur'},
- {type: 'string', max: 1000, message: '实施说明不能超过1000个字符', trigger: 'change'}
- ],
- // ZRBM: [
- // {required: true, type: 'string', message: '责任部门不能为空', trigger: 'change'}
- // ],
- // XGBM: [
- // {required: true, message: '相关部门不能为空', trigger: 'change'}
- // ],
- // FO: [
- // {required: true, type: 'string', message: 'FO不能为空', trigger: 'change'}
- // ],
- // proEssessUserId: [
- // {required: true, type: 'string', message: '项目评估角色不能为空', trigger: 'change'}
- // ],
- askNature: [
- {required: true, message: '监管类型不能为空', trigger: 'change'}
- ],
- // applyArctic: [
- // {required: true, message: '适用车辆类型不能为空', trigger: 'change'}
- // ],
- accessType: [
- {required: true, type: 'string', message: '入库模块不能为空', trigger: 'change'}
- ],
- authObjId: [
- {required: true, type: 'string', message: '认证对象不能为空', trigger: 'change'}
- ]
},
// 认证对象下拉数据
authObjOptions: [
@@ -711,10 +632,6 @@ export default {
addEditTitle: '新增',
isDisabled: false,
isListType: false, // 清单类型
- listTypeOptions: [
- {value: 'SKILL', label: '技术要求清单'},
- {value: 'ADMIN', label: '行政要求清单'}
- ],
reloadAddForm: false,
formFieldList: [],
orgData: [],
@@ -919,7 +836,6 @@ export default {
this.sarAccessInfoSearch.advanceSearchVOStr = ''
this.sarAccessInfoSearch.applyArctic = '' // 能源种类
this.sarAccessInfoSearch.keywords = '' // 关键字
- this.sarAccessInfoSearch.accessSarType = 'SKILL' // 清单类型
this.sarAccessInfoSearch.askType = '' // 监管类型
this.sarAccessInfoSearch.detailedListName = '' // 清单名称
this.sarAccessInfoSearch.dataSource = 'INLAND_STAND' // 数据来源
@@ -1085,168 +1001,36 @@ export default {
* 判断是否添加重复数据
*/
addSarAccess () {
- if (this.isListType) {
- if (this.accessSarTypeList.length > 0) {
- let ids = []
- this.accessSarTypeList.map(item => {
- ids.push(item.id)
- })
- // 根据准入id查询标准法规详情
- this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', {
- accessId: ids.join(',')
- }, {
- _this: this
- }, res => {
- let SKLLLArr = [...this.sarAccessInfoList]
- let ADMINArr = [...this.sarAccessInfoListADMIN]
- // 循环追加数据
- res.data.SKILL.map(item => {
- SKLLLArr.push(item)
- })
- res.data.ADMIN.map(item => {
- ADMINArr.push(item)
- })
- if (this.sarAccessInfoSearch.accessSarType === 'SKILL') {
- // 数组去重
- let hash = {}
- SKLLLArr = SKLLLArr.reduce((preVal, curVal) => {
- hash[curVal.resId] ? '' : hash[curVal.resId] = true && preVal.push(curVal)
- return preVal
- }, [])
- this.sarAccessInfoList = SKLLLArr
- } else {
- // 数组去重
- let hash = {}
- ADMINArr = ADMINArr.reduce((preVal, curVal) => {
- hash[curVal.resId] ? '' : hash[curVal.resId] = true && preVal.push(curVal)
- return preVal
- }, [])
- this.sarAccessInfoListADMIN = ADMINArr
- }
- this.$refs.selection.clearSelection()
- }, e => {
- })
- } else {
- this.$message.error('请选中需要添加到 清单条目 的数据')
- }
- } else {
+ //判断是否是清单类型
if (this.selectedAccInfoSearchList.length > 0) {
// 追加字段
this.selectedAccInfoSearchList.map(item => {
- Object.keys(item.attrInfoMap || {}).forEach((key) => {
- if (item.attrInfoMap[key]) {
- // applyArctic
- item[key] = item.attrInfoMap[key]
- if (key === 'YQLX') {
- item.askType = item.attrInfoMap[key]
- }
- if (key === 'CLLX') {
- item.applyArctic = item.attrInfoMap[key]
- }
- if (key === 'ZRLX') {
- item.askNature = item.attrInfoMap[key]
- }
- }
+ let addList;
+ addList = this.sarAccessInfoList.findIndex(items => {
+ return items.id == item.id
})
- return item
+ if(addList > -1){
+ this.$message.warning('请勿添加重复数据')
+ } else(
+ this.sarAccessInfoList.push(item)
+ )
})
- // 判断tab页
- if (this.activeName === 'SKILL') {
- let repeatDataMsg = '不能添加重复数据:'
- let repeatData = ''
- if (this.sarAccessInfoList.length > 0) {
- for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
- for (let t in this.sarAccessInfoList) {
- if (this.sarAccessInfoList[t].resId === this.selectedAccInfoSearchList[i].resId) {
- repeatData += this.selectedAccInfoSearchList[i].code
- break
- }
- }
- }
- }
- if (repeatData !== '') {
- this.$message.error(repeatDataMsg + repeatData)
- } else {
- if (this.sarAccessInfoList.length > 0) {
- for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
- this.sarAccessInfoList.push(this.selectedAccInfoSearchList[i])
- // this.pushFormItem(this.sarAccessInfoList, i)
- this.sarAccessInfoList[this.sarAccessInfoList.length - 1].uuid = this.number
- this.number++
- }
- } else {
- for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
- this.sarAccessInfoList.push(this.selectedAccInfoSearchList[i])
- // this.pushFormItem(this.sarAccessInfoList, i)
- this.sarAccessInfoList[i].uuid = this.number
- this.number++
- }
- }
- this.selectedAccInfoSearchList = []
- this.$refs.selection.clearSelection()
- this.selectLawsStands()
- }
- } else {
- let repeatDataMsg = '不能添加重复数据:'
- let repeatData = ''
- if (this.sarAccessInfoListADMIN.length > 0) {
- for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
- for (let t in this.sarAccessInfoListADMIN) {
- if (this.sarAccessInfoListADMIN[t].resId === this.selectedAccInfoSearchList[i].resId) {
- repeatData += this.selectedAccInfoSearchList[i].code
- break
- }
- }
- }
- }
- if (repeatData !== '') {
- this.$message.error(repeatDataMsg + repeatData)
- } else {
- if (this.sarAccessInfoListADMIN.length > 0) {
- for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
- this.sarAccessInfoListADMIN.push(this.selectedAccInfoSearchList[i])
- // this.pushFormItem(this.sarAccessInfoListADMIN, i)
- this.sarAccessInfoListADMIN[this.sarAccessInfoListADMIN.length - 1].uuid = this.number
- this.number++
- }
- } else {
- for (let i = 0; i < this.selectedAccInfoSearchList.length; i++) {
- this.sarAccessInfoListADMIN.push(this.selectedAccInfoSearchList[i])
- // this.pushFormItem(this.sarAccessInfoListADMIN, i)
- this.sarAccessInfoListADMIN[i].uuid = this.number
- this.number++
- }
- }
- this.selectedAccInfoSearchList = []
- this.$refs.selection.clearSelection()
- this.selectLawsStands()
- }
- }
+ this.selectedAccInfoSearchList = []
+ this.$refs.entryTable.clearSelection()
+ this.$refs.searchTable.clearSelection()
} else {
this.$message.error('请选中需要添加到 清单条目 的(标准号/政策编号)')
}
- }
- },
- // 追加 添加的数据
- pushFormItem (form, i) {
- form[i].authDelive = this.addForm.authDelive // 认证交付物
- form[i].authObj = this.addForm.authObj // 认证对象
- form[i].authObjId = this.addForm.authObjId // 认证对象ID
- form[i].authDepart = this.addForm.authDepart // 认证责任部门
- form[i].authDepartId = this.addForm.authDepartId // 认证责任部门Id
- form[i].prodPutTime = this.$dateFormat(this.addForm.prodPutTime, 'yyyy-MM-dd') // 在产车实施日期
- // form[i].putTime = this.$dateFormat(this.addForm.putTime, 'yyyy-MM-dd') // 标准实施日期
- form[i].eopPutTime = this.$dateFormat(this.addForm.eopPutTime, 'yyyy-MM-dd') // eop实施日期
- form[i].askNature = this.addForm.askNature // askNature
},
// 上移 事件
moveUp () {
// i 全部对象数组的下标
// s 选中对象数组的下标
- // 判断上移的table
- if (this.activeName === 'SKILL') {
let sarAccessInfoListArry = JSON.parse(JSON.stringify(this.sarAccessInfoListArry))
if (sarAccessInfoListArry.length === 1) {
+ //数组交换下标
+ console.log('s', sarAccessInfoListArry);
+ console.log('i',this.sarAccessInfoList);
for (var s in sarAccessInfoListArry) {
for (var i in this.sarAccessInfoList) {
if (sarAccessInfoListArry[s].resId === this.sarAccessInfoList[i].resId) {
@@ -1267,37 +1051,11 @@ export default {
} else {
this.$message.error('请选择单一数据进行移动!')
}
- } else {
- let sarAccessInfoListArry = JSON.parse(JSON.stringify(this.sarAccessInfoListArry))
- if (sarAccessInfoListArry.length === 1) {
- for (var z in sarAccessInfoListArry) {
- for (var x in this.sarAccessInfoListADMIN) {
- if (sarAccessInfoListArry[z].resId === this.sarAccessInfoListADMIN[x].resId) {
- if (Number(x) !== 0) {
- let tempOption = this.sarAccessInfoListADMIN[x - 1]
- this.$set(this.sarAccessInfoListADMIN, x - 1, this.sarAccessInfoListADMIN[x])
- this.$set(this.sarAccessInfoListADMIN, x, tempOption)
- // this.sarAccessInfoListArry = []
- return
- } else {
- this.$message.error('数据已经是第一个,请选择其他数据上移!')
- }
- }
- }
- }
- } else if (this.sarAccessInfoListArry.length === 0) {
- this.$message.error('请选择需要移动的数据!')
- } else {
- this.$message.error('请选择单一数据进行移动!')
- }
- }
},
// 下移事件
moveDown () {
// y 全部对象数组的下标
// t 选中对象数组的下标
- // 判断上移的table
- if (this.activeName === 'SKILL') {
if (this.sarAccessInfoListArry.length === 1) {
for (var t in this.sarAccessInfoListArry) {
for (var y in this.sarAccessInfoList) {
@@ -1320,30 +1078,6 @@ export default {
} else {
this.$message.error('请选择单一数据进行移动!')
}
- } else {
- if (this.sarAccessInfoListArry.length === 1) {
- for (var u in this.sarAccessInfoListArry) {
- for (var p in this.sarAccessInfoListADMIN) {
- if (this.sarAccessInfoListArry[u].resId === this.sarAccessInfoListADMIN[p].resId) {
- var a = this.sarAccessInfoListADMIN.length - 1
- if (Number(p) !== Number(a)) {
- var q = parseInt(p) + 1
- var tempOption2 = this.sarAccessInfoListADMIN[parseInt(q)]
- this.$set(this.sarAccessInfoListADMIN, parseInt(q), this.sarAccessInfoListADMIN[parseInt(p)])
- this.$set(this.sarAccessInfoListADMIN, parseInt(p), tempOption2)
- return
- } else {
- this.$message.error('数据已经是最后一个,请选择其他数据进行移动!')
- }
- }
- }
- }
- } else if (this.sarAccessInfoListArry.length === 0) {
- this.$message.error('请选择需要移动的数据!')
- } else {
- this.$message.error('请选择单一数据进行移动!')
- }
- }
},
// 点击清单条目导入按钮事件
importmodalFlags () {
@@ -1361,8 +1095,6 @@ export default {
* 删除不想添加的AccessInfo信息
*/
deleteSelectSarAccessInfo () {
- // 判断当前在哪个tab页
- if (this.activeName === 'SKILL') {
if (this.sarAccessInfoListArry.length > 0) {
this.$confirm('确认删除选中数据?', '确认删除', {
confirmButtonText: '确定',
@@ -1381,34 +1113,11 @@ export default {
}
}
this.sarAccessInfoListArry = []
- this.$refs.tableSKILL.clearSelection()
+ this.$refs.entryTable.clearSelection()
}).catch(() => {})
} else {
this.$message.error('请选择需要删除的清单条目!')
}
- } else {
- if (this.sarAccessInfoListArry.length > 0) {
- this.$confirm('确认删除选中数据?', '确认删除', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- // i 全部对象数组的下标
- // s 选中对象数组的下标
- for (var s in this.sarAccessInfoListArry) {
- for (var i in this.sarAccessInfoListADMIN) {
- if (this.sarAccessInfoListArry[s].uuid === this.sarAccessInfoListADMIN[i].uuid) {
- this.sarAccessInfoListADMIN.splice(i, 1)
- }
- }
- }
- this.sarAccessInfoListArry = []
- this.$refs.tableADMIN.clearSelection()
- }).catch(() => {})
- } else {
- this.$message.error('请选择需要删除的清单条目!')
- }
- }
},
// 清单条目 table select事件
sarAccessInfoSelect (selectData) {
@@ -1424,110 +1133,70 @@ export default {
saveSarAccess () {
this.$refs['sarAccessForm'].validate((valid) => {
if (valid) {
- // 验证认证对象和监控类型不能为空
- for (let i = 0; i < this.sarAccessInfoList.length;i++){
- if (this.sarAccessInfoList[i].authObjId==null){
- return this.$message.error('认证对象不能为空');
- } else if(this.sarAccessInfoList[i].askNature==null){
- return this.$message.error('监管类型不能为空');
- }
- }
- for (let i = 0; i < this.sarAccessInfoListADMIN.length;i++){
- if (this.sarAccessInfoListADMIN[i].authObjId==null){
- return this.$message.error('认证对象不能为空');
- } else if(this.sarAccessInfoListADMIN[i].askNature==null){
- return this.$message.error('监管类型不能为空');
+ let rowlist = []
+ for (let i = 0; i < this.sarAccessInfoList.length; i++) {
+ rowlist.push(this.sarAccessInfoList[i].id)
}
- }
-
- // if (!this.sarAccessEO.id) {
- let rowlist = []
- let rowList2 = []
- for (let i = 0; i < this.sarAccessInfoList.length; i++) {
- rowlist.push(this.sarAccessInfoList[i])
- }
- for (let i = 0; i < this.sarAccessInfoListADMIN.length; i++) {
- rowList2.push(this.sarAccessInfoListADMIN[i])
- }
- let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
- sarAccessEO.inforlist = JSON.stringify(rowlist)
- sarAccessEO.adminInfoList = JSON.stringify(rowList2)
- sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
- // 判断是否有附件
- if (this.fileInfoList.length > 0) {
- let relateFile = []
- this.fileInfoList.map(item => {
- relateFile.push(item.id)
- })
- sarAccessEO.relateFile = relateFile.join(',')
- }
- if (!sarAccessEO.id) {
- // 新增
- sarAccessEO.state = '1'
- sarAccessEO.version = 0
- this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/insertList', sarAccessEO, {
- _this: this,
- loading: 'loadData'
- }, res => {
- if (res.ok) {
- this.isNext = true
- this.$router.push({
- name: 'AccessStandardsAndRegulations'
- })
- }
- }, e => {
- })
- } else {
- // 编辑
- this.$http.putData('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
- _this: this,
- loading: 'loadData'
- }, res => {
- if (res.ok) {
- this.isNext = true
- this.$router.push({
- name: 'AccessStandardsAndRegulations'
- })
- }
- }, e => {
- })
- }
- } else {
+ rowlist = rowlist.join(',')
+ let sarAccessEO = JSON.parse(JSON.stringify(this.sarAccessEO))
+ sarAccessEO.inforlist = JSON.stringify(rowlist)
+ sarAccessEO.countryArea = sarAccessEO.countryArea.join(',')
+ sarAccessEO.applicationScope = sarAccessEO.applicationScope.join(',')
+ // 判断是否有附件
+ if (this.fileInfoList.length > 0) {
+ let relateFile = []
+ this.fileInfoList.map(item => {
+ relateFile.push(item.id)
+ })
+ sarAccessEO.relateFile = relateFile.join(',')
+ }
+ if (!sarAccessEO.id) {
+ // 新增
+ sarAccessEO.state = '1'
+ sarAccessEO.version = 0
+ this.$http.post('sarLawsDetailedList/sar-laws-detailed-list/insertList', sarAccessEO, {
+ _this: this,
+ loading: 'loadData'
+ }, res => {
+ if (res.ok) {
+ this.isNext = true
+ this.$router.push({
+ name: 'AccessStandardsAndRegulations'
+ })
+ }
+ }, e => {
+ })
+ } else {
+ // 编辑
+ this.$http.putData('sarLawsDetailedList/sar-laws-detailed-list/updateList', sarAccessEO, {
+ _this: this,
+ loading: 'loadData'
+ }, res => {
+ if (res.ok) {
+ this.isNext = true
+ this.$router.push({
+ name: 'AccessStandardsAndRegulations'
+ })
+ }
+ }, e => {
+ })
+ }
+ }else {
this.$message.error('请检查表单是否填写正确')
}
})
},
// 查询数据搜索 table 数据
selectLawsStands () {
- if (this.isListType) {
- console.log('1505');
- this.$http.get('lawss/sarSarAccess/page', this.sarAccessInfoSearch, {
- _this: this,
- loading: 'dataLoading'
- }, res => {
- this.sarAccessInfoSearchList = res.data.list
- this.drawerTotal = res.data.count
- }, e => {
+ this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.sarAccessInfoSearch, {
+ _this: this
+ }, res =>{
+ this.sarAccessInfoSearchList = res.data.list
+ this.$nextTick(() => {
})
- } else {
- this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', this.sarAccessInfoSearch, {
- _this: this,
- loading: 'dataLoading'
- }, res => {
- res.data.list[0].list.map(item => {
- item.newPutTextTime = null
- item.prodPutTextTime = null
- item.eopPutTextTime = null
- item.ZRBMName = item.dutyDepart
- item.ZRBM = item.dutyDepartId
- item.FOName = item.foUser
- item.FO = item.foUserId
- })
- this.sarAccessInfoSearchList = res.data.list[0].list
- this.drawerTotal = res.data.count
- }, e => {
- })
- }
+ }, e => {
+
+ })
},
// 数据搜索table判断checked状态
selectable (row) {
@@ -1536,6 +1205,10 @@ export default {
// 数据搜索 table select事件
sarAccessInfoSearchSelect (selectData) {
this.selectedAccInfoSearchList = selectData
+ this.selectSearch = []
+ for(let i = 0; i 0) {
exportList = this.sarAccessInfoListArry
} else {
- // 判断导出的是技术要求清单还是行政要求清单
- if (this.activeName === 'SKILL') {
exportList = this.sarAccessInfoList
- } else {
- exportList = this.sarAccessInfoListADMIN
- }
}
if (exportList != null && exportList.length > 0) {
let accIdAndrestype = []
@@ -1625,15 +1279,6 @@ export default {
var a
var b = ''
if (response.data) {
- // for (var s in this.sarAccessInfoList) {
- // for (var i in response.data) {
- // if (this.sarAccessInfoList[s].resId === response.data[i].resId) {
- // // ('在全部对象中的位置' + i)
- // response.data.splice(i, 1)
- // b = '数据重复添加,现已自动清除! 2'
- // }
- // }
- // }
for (var sADMIN in this.sarAccessInfoListADMIN) {
for (var iADMIN in response.data) {
if (this.sarAccessInfoListADMIN[sADMIN].code === response.data[iADMIN].code) {
@@ -1645,17 +1290,8 @@ export default {
}
if (response.data.length > 0) {
for (let i = 0; i < response.data.length; i++) {
- if (response.data[i].accessSarType === 'ADMIN') {
- this.sarAccessInfoListADMIN.push(response.data[i])
- } else if (response.data[i].accessSarType === 'SKILL') {
this.sarAccessInfoList.push(response.data[i])
}
- // if (this.activeName === 'SKILL') {
- // this.sarAccessInfoList.push(response.data[i])
- // } else {
- // this.sarAccessInfoListADMIN.push(response.data[i])
- // }
- }
}
a = response.data.length
}
@@ -1664,7 +1300,6 @@ export default {
this.importmodalFlag = false
} else {
this.$message.success(response.message + b + '导入' + a + '条数据!')
- // this.$message.success(b + '共导入' + a + '条数据!')
this.importmodalFlag = false
this.selectLawsStands()
}
@@ -1705,73 +1340,6 @@ export default {
this.$refs['addEntryForm'].resetFields()
})
},
- // 点击清单条目 编辑按钮 事件
- editEntry () {
- if (this.sarAccessInfoListArry.length === 0) {
- this.$message.warning('请选择要编辑的数据')
- } else if (this.sarAccessInfoListArry.length > 1) {
- this.$message.warning('只能选择一条数据')
- } else {
- this.editAddType = 2
- this.addEditTitle = '编辑'
- this.$nextTick(() => {
- // this.addEntryForm =
- const formData = JSON.parse(JSON.stringify(this.sarAccessInfoListArry[0]))
- const gxhbq = formData.GXHBQ
- delete formData.GXHBQ
- this.addEntryForm = {
- ...formData,
- GXHBQ: gxhbq ? gxhbq.split(',') : [],
- askNature: formData.askNature ? formData.askNature.split(',') : []
- }
- if (!this.addEntryForm.resId && this.addEntryForm.sarType === 'TEMP') {
- this.isDisabled = false
- } else {
- this.isDisabled = true
- }
- // 转换因后台无法返回大写字段,重新赋值
- this.addEntryForm.FOName = this.addEntryForm.FOName || this.addEntryForm.foname
- this.addEntryForm.FO = this.addEntryForm.FO || this.addEntryForm.fo
- this.addEntryForm.ZRBMName = this.addEntryForm.ZRBMName || this.addEntryForm.zrbmname
- this.addEntryForm.ZRBM = this.addEntryForm.ZRBM || this.addEntryForm.zrbm
- this.addEntryForm.XGBMName = this.addEntryForm.XGBMName || this.addEntryForm.xgbmname
- this.addEntryForm.XGBM = this.addEntryForm.XGBM || this.addEntryForm.xgbm
- // this.addEntryForm.GXHBQ = this.addEntryForm.GXHBQ || this.addEntryForm.gxhbq
- this.addEntryForm.applyArctic = this.addEntryForm.applyArctic ? this.addEntryForm.applyArctic.split(',') : []
- // this.addEntryForm.GXHBQ = this.addEntryForm.gxhbq ? this.addEntryForm.gxhbq.split(',') : []
- // this.addEntryForm.GXHBQ = ''
- // delete this.addEntryForm.gxhbq
- // 在产车实施日期项目赋值
- if (!this.addEntryForm.prodPutTextTime || this.addEntryForm.prodPutTextTime === '') {
- this.addEntryForm.prodPutTextTime = !['N/A', 'TBD', '已实施', ''].includes(this.addEntryForm.ZCCSSRQ) ? this.getEarliestDate(this.addEntryForm.ZCCSSRQ, 'datePicker') : ''
- } else {
- this.addEntryForm.prodPutTextTime = this.addEntryForm.prodPutTextTime !== '' && this.addEntryForm.prodPutTextTime !== null ? this.getEarliestDate(this.addEntryForm.prodPutTextTime, 'datePicker') : ''
- }
-
- // 新车型实施日期赋值
- if (!this.addEntryForm.newPutTextTime || this.addEntryForm.newPutTextTime === '') {
- this.addEntryForm.newPutTextTime = !['N/A', 'TBD', '已实施', ''].includes(this.addEntryForm.XCXSSRQ) ? this.getEarliestDate(this.addEntryForm.XCXSSRQ, 'datePicker') : ''
- } else {
- this.addEntryForm.newPutTextTime = this.addEntryForm.newPutTextTime !== '' && this.addEntryForm.newPutTextTime !== null ? this.getEarliestDate(this.addEntryForm.newPutTextTime, 'datePicker') : ''
- }
-
- // EOP实施日期赋值
- if (!this.addEntryForm.eopPutTextTime || this.addEntryForm.eopPutTextTime === '') {
- this.addEntryForm.eopPutTextTime = !['N/A', 'TBD', '已实施', ''].includes(this.addEntryForm.EOPSSRQ) ? this.getEarliestDate(this.addEntryForm.EOPSSRQ, 'datePicker') : ''
- } else {
- this.addEntryForm.eopPutTextTime = this.addEntryForm.eopPutTextTime !== '' && this.addEntryForm.eopPutTextTime !== null ? this.getEarliestDate(this.addEntryForm.eopPutTextTime, 'datePicker') : ''
- }
- this.sarAccessInfoListArry = []
- this.$refs.tableSKILL.clearSelection()
- this.$refs.tableADMIN.clearSelection()
-
- setTimeout(() => {
- this.$refs.addEntryForm.clearValidate()
- }, 1)
- // clearFiles
- })
- }
- },
// 请求部门结构树
getOrgTreeSource () {
this.$http.get('sys/org/getTree', {}, {_this: this},
@@ -1831,33 +1399,18 @@ export default {
nowstandinfo.askNature = nowstandinfo.askNature.join(',')
// 判断新增还是编辑
if (this.editAddType === 1) {
- if (this.activeName === 'SKILL') {
this.sarAccessInfoList.push(nowstandinfo)
this.sarAccessInfoList[this.sarAccessInfoList.length - 1].uuid = this.number
this.number++
- } else {
- this.sarAccessInfoListADMIN.push(nowstandinfo)
- this.sarAccessInfoListADMIN[this.sarAccessInfoListADMIN.length - 1].uuid = this.number
- this.number++
- }
this.isSubmit = false
this.$message.success('添加成功')
} else {
- if (this.activeName === 'SKILL') {
this.sarAccessInfoList.map((item, index) => {
if (item.uuid === nowstandinfo.uuid) {
// this.sarAccessInfoList[index] = nowstandinfo
this.$set(this.sarAccessInfoList, index, nowstandinfo)
}
})
- } else {
- this.sarAccessInfoListADMIN.map((item, index) => {
- if (item.uuid === nowstandinfo.uuid) {
- // this.sarAccessInfoListADMIN[index] = nowstandinfo
- this.$set(this.sarAccessInfoListADMIN, index, nowstandinfo)
- }
- })
- }
this.isSubmit = false
this.$message.success('编辑成功')
}
@@ -1897,40 +1450,6 @@ export default {
this.isSubmit = false
this.$refs['addEntryForm'].resetFields()
},
- // 根据准入id查询标准法规详情
- selectInfobyAccid () {
- this.$http.get('lawss/sarSarAccessInfo/selectSarAccessInfoByAccessId', {
- accessId: this.$route.query.id,
- validFlag: 0
- }, {
- _this: this
- }, res => {
- res.data.SKILL.map((item, index) => {
- item.uuid = this.number
- item.GXHBQ = item.gxhbq
- item.eopPutTime = item.eopPutTextTime
- item.newPutTime = item.newPutTextTime
- item.prodPutTime = item.prodPutTextTime
- this.number++
- })
- res.data.ADMIN.map((item, index) => {
- item.uuid = this.number
- item.GXHBQ = item.gxhbq
- item.eopPutTime = item.eopPutTextTime
- item.newPutTime = item.newPutTextTime
- item.prodPutTime = item.prodPutTextTime
- this.number++
- })
- this.sarAccessInfoList = res.data.SKILL
- this.sarAccessInfoListADMIN = res.data.ADMIN
- this.$nextTick(() => {
- this.$refs.tableSKILL.doLayout()
- this.$refs.tableADMIN.doLayout()
- })
- // this.sarAccessInfoList = res.data.list
- }, e => {
- })
- },
/**
* 赋值内容到入库标准抽屉内
* item 清单行数据
@@ -2085,19 +1604,11 @@ export default {
// 新增、编辑标准时验证标准编号是否重复
validCode (rule, value, callback) {
let find = 0
- if (this.activeName === 'SKILL') {
this.sarAccessInfoList.map(item => {
if (item.code === value) {
find++
}
})
- } else {
- this.sarAccessInfoListADMIN.map(item => {
- if (item.code === value) {
- find++
- }
- })
- }
if (find > 1 && this.editAddType === 2) {
return callback(new Error('标准编号已存在'))
} else if (find > 0 && this.editAddType === 1) {
@@ -2123,21 +1634,6 @@ export default {
})
return askTypeName
},
- // 表格回显适用车辆类型
- getApplyArctic (val) {
- if (val) {
- val = val.split(',')
- let applyArcticName = []
- this.energyKindOptions.map(item => {
- val.map(items => {
- if (item.value === items) {
- applyArcticName.push(item.label)
- }
- })
- })
- return applyArcticName.join(',')
- }
- },
// 表格回显监管类型
getAskNature (val) {
if (!val) {
@@ -2149,39 +1645,6 @@ export default {
return askTypeName.join(',')
},
- // 标签回显适用车辆类型
- getGXHBQ (val) {
- if (val) {
- val = val.split(',')
- let GXHBQName = []
- this.GXHBQOptions.map(item => {
- val.map(items => {
- if (item.value === items) {
- GXHBQName.push(item.label)
- }
- })
- })
- return GXHBQName.join(',')
- }
- },
-
- /**
- * @description: 获取最早日期
- * @date: 2021-02-27 16:56:30
- * @auth: chenxiaoxi
- */
- getEarliestDate(date, isDatePickerUse) {
- if (!date) { return }
- const dateList = date.split(',')
- const dateTimeList = []
- dateList.map(date => {
- dateTimeList.push(new Date(date).getTime())
- })
- const dateTimeSortList = dateTimeList.sort(function(a, b) {
- return a - b
- })
- return isDatePickerUse !== undefined ? new Date(dateTimeSortList[0]) : this.$moment(dateTimeSortList[0]).format('YYYY-MM-DD')
- },
onChecked () {
this.sarStandardsInfoEO.FO = ''
this.sarStandardsInfoEO.XMPGJS = ''
@@ -2189,6 +1652,15 @@ export default {
formatText(str) {
return formatText(str)
},
+ getData() {
+ this.$http.get('sarLawsAttrDetailedList/sar-laws-attr-detailed-list/selectLawsById', {id: this.zqaId}, {
+ _this: this
+ }, res => {
+ this.sarAccessInfoList = res.data
+ }, e => {
+
+ })
+ }
},
watch: {
// 监听 清单类型
@@ -2204,6 +1676,8 @@ export default {
...mapGetters(['getAccessStandardRegRow']),
},
mounted () {
+ this.zqaId =this.$route.query.id;
+ // this.getData()
this.getDept()
// 从数据库中查询各下拉框数据
this.$http.get('sys/dictype/getDicTypeListCode', '', {
@@ -2214,6 +1688,7 @@ export default {
this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list
this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list
this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
+ this.applyOptions = res.data.COUNTRY //适用区域list
this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质
this.accessSarTypeOptions = res.data.REQUESTTYPE // 数据搜索 要求类型
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
@@ -2231,13 +1706,14 @@ export default {
this.$nextTick(() => {
this.sarAccessEO.type = accessRow.type
this.sarAccessEO.countryArea = accessRow.countryArea.split(',')
+ this.sarAccessEO.applicationScope = accessRow.applicationScope.split(',')
this.sarAccessEO.detailedListName = accessRow.detailedListName
this.sarAccessEO.id = accessRow.id
this.sarAccessEO.remark = accessRow.remark || ''
this.sarAccessEO.relateFile = accessRow.relateFile
this.sarAccessInfoSearch.validFlag = 0
this.getFileInfo()
- this.selectInfobyAccid()
+ this.getData()
this.selectLawsStands()
})
} else {
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue
index fd8d643cb..b7a1cda74 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details.vue
@@ -111,70 +111,41 @@
align="center">
- {{ scope.row.standNumber }}
+ {{ scope.row.code }}
+ {{ scope.row.code }}
-
- {{ scope.row.standName }}
-
-
- {{ scope.row.standEnName }}
-
-
-
+ label="发布日期">
+ label="新车型实施日期">
+ label="在产车实施日期">
-
-
-
-
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue
index 3305b5ed3..e0b693f37 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue
@@ -13,6 +13,24 @@
+
+
+
+
+
+
+ prop="isSubTime"
+ sortable
+ label="发布日期">
-
-
导出
删除
@@ -327,59 +335,31 @@
-
- {{ scope.row.name }}
- {{ scope.row.name }}
-
-
- {{ scope.row.enName }}
- {{ scope.row.enName }}
-
+ prop="isSubTime"
+ sortable
+ label="发布日期">
-
-
+ label="新车型实施日期">
+ label="在产车实施日期">
-
-
@@ -490,8 +470,10 @@ export default {
energyKind: '',
type: '',
relateFile: '',
- remark: '' // 清单说明
+ remark: '' ,// 清单说明
+ applicationScope: '' , //适用领域
},
+ applyOptions: [], //适用领域list
fileInfoList: [], // 上传的附件
uploadFileListPath: 'api/att/attFile/upload', // 上传的地址
// 新增、编辑 基础信息验证条件
@@ -711,7 +693,7 @@ export default {
accessType: '',
id: '',
standType: 'INLAND', // 标准分类
- // country: 'CN', // 适用区域
+ country: 'CN', // 适用区域
standSort: '', // 标准类别
standNumber: '', // 标准编号
standYear: '', // 标准年份
@@ -2184,7 +2166,8 @@ export default {
this.regionOptions = res.data.REGION // 基础信息 区域list
this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list
this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list
- this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
+ this.applicationScope = res.data.COUNTRY // 国家、地区list
+ this.applyOptions = res.data.COUNTRY //适用领域 list
this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质
this.accessSarTypeOptions = res.data.REQUESTTYPE // 数据搜索 要求类型
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue
index 483dbe70e..fa81df038 100644
--- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue
+++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit.vue
@@ -13,6 +13,24 @@
+
+
+
+
+
+
+ prop="isSubTime"
+ sortable
+ label="发布日期">
-
-
-
- {{ scope.row.name }}
- {{ scope.row.name }}
-
-
- {{ scope.row.enName }}
- {{ scope.row.enName }}
-
+ prop="isSubTime"
+ sortable
+ label="发布日期">
-
-
+ label="新车型实施日期">
+ label="在产车实施日期">
-
-
@@ -490,9 +470,11 @@ export default {
energyKind: '',
type: '',
relateFile: '',
- remark: '' // 清单说明
+ remark: '' ,// 清单说明
+ applicationScope: '', //适用领域
},
fileInfoList: [], // 上传的附件
+ applyOptions:[], //适用领域
uploadFileListPath: 'api/att/attFile/upload', // 上传的地址
// 新增、编辑 基础信息验证条件
sarAccessEORules: {
@@ -616,56 +598,6 @@ export default {
{required: true, type: 'string', message: '英文名称不能为空', trigger: 'blur'},
{type: 'string', max: 1000, message: '英文名称不能超过1000个字符', trigger: 'change'}
],
- // synopsis: [
- // {required: true, type: 'string', message: '法规说明不能为空', trigger: 'blur'},
- // {type: 'string', max: 1000, message: '法规说明不能超过1000个字符', trigger: 'change'}
- // ],
- // newPutTime: [
- // {required: true, message: '新车型实施日期不能为空', trigger: 'change'}
- // ],
- // prodPutTime: [
- // {required: true, message: '在产车实施日期不能为空', trigger: 'change'}
- // ],
- // eopPutTime: [
- // {required: true, message: 'eop实施日期不能为空', trigger: 'change'}
- // ],
- // newPutTextTime: [
- // {required: true, message: '新车型实施日期(项目)不能为空', trigger: 'change'}
- // ],
- // prodPutTextTime: [
- // {required: true, message: '在产车实施日期(项目)不能为空', trigger: 'change'}
- // ],
- // eopPutTextTime: [
- // {required: true, message: 'eop实施日期(项目)不能为空', trigger: 'change'}
- // ],
- performInfo: [
- // {required: true, type: 'string', message: '实施说明不能为空', trigger: 'blur'},
- {type: 'string', max: 1000, message: '实施说明不能超过1000个字符', trigger: 'change'}
- ],
- // ZRBM: [
- // {required: true, type: 'string', message: '责任部门不能为空', trigger: 'change'}
- // ],
- // XGBM: [
- // {required: true, message: '相关部门不能为空', trigger: 'change'}
- // ],
- // FO: [
- // {required: true, type: 'string', message: 'FO不能为空', trigger: 'change'}
- // ],
- // proEssessUserId: [
- // {required: true, type: 'string', message: '项目评估角色不能为空', trigger: 'change'}
- // ],
- askNature: [
- {required: true, message: '监管类型不能为空', trigger: 'change'}
- ],
- // applyArctic: [
- // {required: true, message: '适用车辆类型不能为空', trigger: 'change'}
- // ],
- accessType: [
- {required: true, type: 'string', message: '入库模块不能为空', trigger: 'change'}
- ],
- authObjId: [
- {required: true, type: 'string', message: '认证对象不能为空', trigger: 'change'}
- ]
},
// 认证对象下拉数据
authObjOptions: [
@@ -2185,7 +2117,7 @@ export default {
this.regionOptions = res.data.REGION // 基础信息 区域list
this.applyArcticOptions = res.data.PRODUCTTYPE || [] // 基础车型 适用车型list
this.energyKindOptions = res.data.ENERGYTYPES || [] // 能源种类list
- this.drawerCountryOptions = res.data.COUNTRY // 国家、地区list
+ this.applyOptions = res.data.COUNTRY // 国家、地区list
this.standNatureOptions = res.data.SARPROPERTY // 新增 标准性质
this.accessSarTypeOptions = res.data.REQUESTTYPE // 数据搜索 要求类型
this.standSortOptions = res.data.STANDCLASSIFY // 标准类别
diff --git a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
index 66c1c4855..5dca0201d 100644
--- a/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/domesticStandardsAndRegulations/index.vue
@@ -3,26 +3,17 @@
- clickDropMenu('newMenu', treeNode)"
- @treeEdit="(treeId, treeNode) => clickDropMenu('editMenu', treeNode)"
- @treeClick="(treeId, treeNode) => treeClick(treeNode)"
- @treeRightClick="(treeId, treeNode) => treeRightClick(treeNode)"
- @treeRemove="(treeId, treeNode) => clickDropMenu('deleteMenu', treeNode)"
- @drag="drag"
- >
+
+
@@ -142,7 +133,7 @@
{{ scope.row.standSortShow }} {{ scope.row.standNumber }}-{{ scope.row.standYear }}
@@ -152,6 +143,7 @@
{{ scope.row.standName }}
@@ -160,7 +152,7 @@
{{ formatIssueDate(scope.row.issueTime) }}
@@ -169,7 +161,6 @@
{{ formatText(scope.row.XCXSSRQ) }}
@@ -178,7 +169,6 @@
{{ formatText(scope.row.ZCCSSRQ) }}
@@ -961,6 +951,11 @@ export default {
},
data () {
return {
+ props: {
+ label: 'menuName',
+ children: 'children'
+ },
+ treeList: [],
visibleOrgTable: false,
orgTableVal: '',
orgTableValName: '',
@@ -1693,104 +1688,12 @@ export default {
})
}
},
- // 二级菜单新建,编辑,删除
- clickDropMenu (name, treeNode) {
- this.selectSarMenu = JSON.parse(JSON.stringify(treeNode))
- if (undefined !== this.selectSarMenu.id) { // 当前有选中节点
- if (name === 'newMenu') {
- this.menuModalTitle = '新增目录'
- this.menuModalFlag = true
- this.menuAddOrUpdateFlag = 1
- this.sarMenu = {
- id: '',
- parentId: '',
- menuName: '',
- sorDivide: 'INLAND_STAND',
- displaySeq: '',
- parentIds: '',
- remarks: ''
- }
- } else if (name === 'editMenu') {
- this.menuModalTitle = '编辑目录'
- this.menuModalFlag = true
- this.menuAddOrUpdateFlag = 2
- this.sarMenu.id = treeNode.id
- this.sarMenu.parentId = treeNode.pId
- this.sarMenu.menuName = treeNode.oldname || treeNode.name
- this.sarMenu.displaySeq = treeNode.displaySeq
- if (treeNode.remarks == null || treeNode.remarks === '' || treeNode.remarks === 'null') {
- this.sarMenu.remarks = ''
- } else {
- this.sarMenu.remarks = treeNode.remarks
- }
- } else {
- if (this.selectSarMenu.parentId == null) { // 如果父id为null 说明是根目录
- this.$message({
- title: '提示',
- content: '根目录不可删除!'
- })
- } else {
- // deleteMenu 删除二级菜单,先判断是否选中,选中项目,然后调用删除方法
- // 先判断目录下是否有菜单
- this.$http.post('lawss/sarMenu/judgequeryMenuByPid', this.selectSarMenu, {
- _this: this, loading: 'loading'
- }, res => {
- if (res.data) {
- // this.deleteMenuModal = true
- this.$confirm('该节点下有记录,确定删除?', '提示', {
- confirmButtonText: '确定',
- confirmButtonClass: 'common-button-primary',
- cancelButtonText: '取消',
- type: 'warning',
- roundButton: false
- }).then(() => {
- this.$http.post('lawss/sarMenu/deleteMenuAndChildren', this.selectSarMenu, {
- _this: this, loading: 'loading'
- }, res => {
- this.selectMenu() // 删除成功后,更新二级菜单
- // 获取下一个节点
- let currentNode = this.$refs.domesticTree.getNextNode()
- let nodeId = ''
- // 如果这个节点为null, 本次删除了最后一个节点
- if (currentNode === null) {
- // 选中根节点
- this.$refs.domesticTree.selectRootNode()
- } else {
- nodeId = currentNode.id
- }
- this.getDomesticStandardTable(nodeId)
- }, e => {
- })
- }).catch(() => {
- // 取消删除,清空选择
- // this.$refs.selections.clearSelection()
- })
- } else {
- this.sureDeleteSarMenu()
- }
- }, e => {
- })
- }
- }
- } else {
- this.$Modal.info({
- title: '提示',
- content: '请选择节点!'
- })
- }
- },
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) // 根据选中的二级菜单查询对应的标准列表
- },
- treeRightClick (treeNode) {
- this.selectSarMenu = treeNode // 记录当前选中的二级菜单
- this.standCommonlySearch.menuId = treeNode.id
- this.sarStandardsSearch.menuId = treeNode.id
+ this.getDomesticStandardTable(this.tableFlag)
},
// 点击搜索按钮
searchBtnClick (standCommonlySearch) {
@@ -1906,43 +1809,12 @@ export default {
},
// 查询二级菜单
selectMenu () {
- return new Promise((resolve, reject) => {
- this.$http.get('lawss/sarMenu/selectMenuByRole', {sorDivide: 'INLAND_STAND'}, {
- _this: this
- }, res => {
- let treeNode = []
- this.parentNode = {}
- if (res.data == null) {
- res.data = []
- }
- res.data.map((item, index) => {
- let treeItem = {}
- for (let key in item) {
- if (key === 'parentId') {
- treeItem.pId = item[key]
- treeItem.parentId = item[key]
- } else if (key === 'menuName') {
- treeItem.name = item[key]
- } else {
- treeItem[key] = item[key]
- }
- if (this.initZNode === '' && item.id === '64df1d5522bb49c09af2') { this.initZNode = treeItem }
- }
- treeNode[index] = treeItem
- // 记录最外层父节点
- if (treeItem.parentId === '' || treeItem.parentId == null) {
- this.parentNode = treeItem
- }
- })
- this.zNodes = treeNode
- // 查完左侧目录后,如果没有选中的,设置最外层选中
- if (JSON.stringify(this.selectSarMenu) === '{}' || !this.selectSarMenu) {
- this.selectSarMenu = JSON.parse(JSON.stringify(this.parentNode))
- }
- resolve(res)
- }, e => {
- reject(e)
- })
+ this.$http.get('sarResource/ts-resource', {
+ sorDivide: 'INLAND_STAND'
+ }, {}, res => {
+ if (res.ok) {
+ this.treeList = res.data
+ }
})
},
// 树-删除
@@ -2446,7 +2318,12 @@ export default {
}
// this.sarStandardsSearch.menuId = this.selectSarMenu.id
const formData = {...data}
- formData.menuId = this.selectSarMenu.id
+ if (!item) {
+ formData.menuId = this.sarStandardsSearch.menuId
+ } else {
+ formData.menuId = this.selectSarMenu.id
+ }
+
// 排序
formData.orderBy = this.orderBy
// 处理我的收藏和个性化标签传参
diff --git a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
index 0c0fd9c14..cb3ee2016 100644
--- a/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
+++ b/src/pages/regulatoryRepository/foreignStandardsAndRegulations/index.vue
@@ -3,27 +3,17 @@
- clickDropMenu('newMenu', treeNode)"
- @treeEdit="(treeId, treeNode) => clickDropMenu('editMenu', treeNode)"
- @treeClick="(treeId, treeNode) => treeClick(treeNode)"
- @treeRightClick="(treeId, treeNode) => treeRightClick(treeNode)"
- @treeRemove="(treeId, treeNode) => clickDropMenu('deleteMenu', treeNode)"
- @drag="drag"
- >
+
+
@@ -934,6 +924,11 @@ export default {
},
data () {
return {
+ treeList: [],
+ props: {
+ label: 'menuName',
+ children: 'children'
+ },
menuTreeLoading: true,
orderBy:'',
nowOrder:'',
@@ -1644,101 +1639,11 @@ export default {
})
})
},
- // 二级菜单新建,编辑,删除
- clickDropMenu (name, treeNode) {
- this.selectSarMenu = JSON.parse(JSON.stringify(treeNode))
- if (undefined !== this.selectSarMenu.id) { // 当前有选中节点
- if (name === 'newMenu') {
- this.menuModalTitle = '新增目录'
- this.menuModalFlag = true
- this.menuAddOrUpdateFlag = 1
- this.sarMenu = {
- id: '',
- parentId: '',
- menuName: '',
- sorDivide: 'FOREIGN_STAND',
- displaySeq: '',
- parentIds: '',
- remarks: ''
- }
- } else if (name === 'editMenu') {
- this.menuModalTitle = '编辑目录'
- this.menuModalFlag = true
- this.menuAddOrUpdateFlag = 2
- this.sarMenu.id = treeNode.id
- this.sarMenu.parentId = treeNode.pId
- this.sarMenu.menuName = treeNode.oldname || treeNode.name
- this.sarMenu.displaySeq = treeNode.displaySeq
- if (treeNode.remarks == null || treeNode.remarks === '' || treeNode.remarks === 'null') {
- this.sarMenu.remarks = ''
- } else {
- this.sarMenu.remarks = treeNode.remarks
- }
- } else {
- if (this.selectSarMenu.parentId == null) { // 如果父id为null 说明是根目录
- this.$message({
- title: '提示',
- content: '根目录不可删除!'
- })
- } else {
- // deleteMenu 删除二级菜单,先判断是否选中,选中项目,然后调用删除方法
- // 先判断目录下是否有菜单
- this.$http.post('lawss/sarMenu/judgequeryMenuByPid', this.selectSarMenu, {
- _this: this, loading: 'loading'
- }, res => {
- if (res.data) {
- // this.deleteMenuModal = true
- this.$confirm('该节点下有记录,确定删除?', '提示', {
- confirmButtonText: '确定',
- confirmButtonClass: 'common-button-primary',
- cancelButtonText: '取消',
- type: 'warning',
- roundButton: false
- }).then(() => {
- this.$http.post('lawss/sarMenu/deleteMenuAndChildren', this.selectSarMenu, {
- _this: this, loading: 'loading'
- }, res => {
- this.selectMenu() // 删除成功后,更新二级菜单
- // 获取下一个节点
- let currentNode = this.$refs.domesticTree.getNextNode()
- let nodeId = ''
- // 如果这个节点为null, 本次删除了最后一个节点
- if (currentNode === null) {
- // 选中根节点
- this.$refs.domesticTree.selectRootNode()
- } else {
- nodeId = currentNode.id
- }
- this.getDomesticStandardTable()
- }, e => {
- })
- }).catch(() => {
- // 取消删除,清空选择
- // this.$refs.selections.clearSelection()
- })
- } else {
- this.sureDeleteSarMenu()
- }
- }, e => {
- })
- }
- }
- } else {
- this.$Modal.info({
- title: '提示',
- content: '请选择节点!'
- })
- }
- },
treeClick (treeNode) {
- this.selectSarMenu = treeNode // 记录当前选中的二级菜单
+ this.selectSarMenu = treeNode
this.standCommonlySearch.menuId = treeNode.id
this.standCommonlySearch.page = 1
- this.getDomesticStandardTable() // 根据选中的二级菜单查询对应的标准列表
- },
- treeRightClick (treeNode) {
- this.selectSarMenu = treeNode // 记录当前选中的二级菜单
- this.standCommonlySearch.menuId = treeNode.id
+ this.getDomesticStandardTable()
},
// 点击搜索按钮
searchBtnClick () {
@@ -1828,40 +1733,12 @@ export default {
},
// 查询二级菜单
selectMenu () {
- return new Promise((resolve, reject) => {
- this.$http.get('lawss/sarMenu/selectMenuByRole', {sorDivide: 'FOREIGN_STAND'}, {
- _this: this
- }, res => {
- let treeNode = []
- this.parentNode = {}
- res.data.forEach((item, index) => {
- let treeItem = {}
- for (let key in item) {
- if (key === 'parentId') {
- treeItem.pId = item[key]
- treeItem.parentId = item[key]
- } else if (key === 'menuName') {
- treeItem.name = item[key]
- } else {
- treeItem[key] = item[key]
- }
- if (this.initZNode === '' && item.id === '64df1d5522bb49c09af2') { this.initZNode = treeItem }
- }
- treeNode[index] = treeItem
- // 记录最外层父节点
- if (treeItem.parentId === '' || treeItem.parentId == null) {
- this.parentNode = treeItem
- }
- })
- this.zNodes = treeNode
- // 查完左侧目录后,如果没有选中的,设置最外层选中
- if (JSON.stringify(this.selectSarMenu) === '{}' || !this.selectSarMenu) {
- this.selectSarMenu = JSON.parse(JSON.stringify(this.parentNode))
- }
- resolve(res)
- }, e => {
- reject(e)
- })
+ this.$http.get('sarResource/ts-resource', {
+ sorDivide: 'FOREIGN_STAND'
+ }, {}, res => {
+ if (res.ok) {
+ this.treeList = res.data
+ }
})
},
// 树-删除
@@ -2416,7 +2293,11 @@ export default {
data.sarStandardsSearch = ''
}
const formData = {...data}
- formData.menuId = this.selectSarMenu.id
+ if (!item) {
+ formData.menuId = this.selectSarMenu.id
+ } else {
+ formData.menuId = this.standCommonlySearch.menuId
+ }
formData.nowOrderBy = this.nowOrder ? this.orderBy : ''
formData.nowOrder = this.nowOrder
// 处理我的收藏和个性化标签传参
@@ -2437,7 +2318,6 @@ export default {
this.$http.get('sarStandardsInfo/sar-standards-info/getSarStandardsInfoPage', formData, {
_this: this, loading: 'loading'
}, res => {
- console.log('2441',formData);
this.isAdvancedSearch = false
if (res.ok) {
for (let i = 0; i < res.data.list.length; i++) {
diff --git a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue
index fe62cd53e..c373347b0 100644
--- a/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue
+++ b/src/pages/regulatoryRepository/localProductsOrProjectLibrary/index.vue
@@ -1211,13 +1211,13 @@ export default {
handlePreview (row) {
this.$store.commit('setDetailMap', this.$route.path)
this.$store.commit('setLocalProData', JSON.stringify(row))
- if (!this.$hasPermission('XTR2AJYDAN4J7GALXDW9')){
- this.$message({
- message: '无权访问',
- type: 'warning'
- })
- return
- }
+ // if (!this.$hasPermission('XTR2AJYDAN4J7GALXDW9')){
+ // this.$message({
+ // message: '无权访问',
+ // type: 'warning'
+ // })
+ // return
+ // }
this.$http.get('sarStandProjectLibrary/queryById', {
id: row.id
}, {
diff --git a/src/pages/regulatoryRepository/nonConfomity/index.vue b/src/pages/regulatoryRepository/nonConfomity/index.vue
index 63cc3c8dd..725176438 100644
--- a/src/pages/regulatoryRepository/nonConfomity/index.vue
+++ b/src/pages/regulatoryRepository/nonConfomity/index.vue
@@ -42,6 +42,7 @@ export default {
flex-direction: column;
background-color: #FFFFFF;
.non-content {
+ padding: 0 10px;
height: 100%;
/deep/ .el-tabs {
display: flex;
diff --git a/src/router/index.js b/src/router/index.js
index 95bc69384..5c0a65d68 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -258,6 +258,69 @@ const routes = [
title: '标准清单发布/更新流程'
}
},
+ {
+ path: '/bzqdfbStep3',
+ name: 'bzqdfbStep3',
+ component: () => import('@/pages/processCenter/pages/creatProcess/bzqdfb/step3.vue'),
+ meta: {
+ requireAuth: true,
+ title: '标准清单发布/更新流程'
+ }
+ },
+ {
+ path: '/bzqdfbStep4',
+ name: 'bzqdfbStep4',
+ component: () => import('@/pages/processCenter/pages/creatProcess/bzqdfb/step4.vue'),
+ meta: {
+ requireAuth: true,
+ title: '标准清单发布/更新流程'
+ }
+ },
+ {
+ path: '/wfhxzgStep1',
+ name: 'wfhxzgStep1',
+ component: () => import('@/pages/processCenter/pages/creatProcess/wfhxzg/step1.vue'),
+ meta: {
+ requireAuth: true,
+ title: '未符合项整改流程'
+ }
+ },
+ {
+ path: '/wfhxzgStep2',
+ name: 'wfhxzgStep2',
+ component: () => import('@/pages/processCenter/pages/creatProcess/wfhxzg/step2.vue'),
+ meta: {
+ requireAuth: true,
+ title: '未符合项整改发布/更新流程'
+ }
+ },
+ {
+ path: '/wfhxzgStep3',
+ name: 'wfhxzgStep3',
+ component: () => import('@/pages/processCenter/pages/creatProcess/wfhxzg/step3.vue'),
+ meta: {
+ requireAuth: true,
+ title: '未符合项整改/更新流程'
+ }
+ },
+ {
+ path: '/wfhxzgStep4',
+ name: 'wfhxzgStep4',
+ component: () => import('@/pages/processCenter/pages/creatProcess/wfhxzg/step4.vue'),
+ meta: {
+ requireAuth: true,
+ title: '未符合项整改/更新流程'
+ }
+ },
+ {
+ path: '/wfhxzgStep5',
+ name: 'wfhxzgStep5',
+ component: () => import('@/pages/processCenter/pages/creatProcess/wfhxzg/step5.vue'),
+ meta: {
+ requireAuth: true,
+ title: '未符合项整改/更新流程'
+ }
+ },
{
path: '/bzrkStep1',
name: 'bzrkStep1',
@@ -312,6 +375,24 @@ const routes = [
title: '标准调研流程'
}
},
+ {
+ path: '/bzdyStep2',
+ name: 'bzdyStep2',
+ component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step2.vue'),
+ meta: {
+ requireAuth: true,
+ title: '标准调研流程'
+ }
+ },
+ {
+ path: '/bzdyStep3',
+ name: 'bzdyStep3',
+ component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step3.vue'),
+ meta: {
+ requireAuth: true,
+ title: '标准调研流程'
+ }
+ },
{
path: '/zqyjStep1',
name: 'zqyjStep1',
diff --git a/src/sysConfig/index.js b/src/sysConfig/index.js
index 167e13033..1b190f484 100644
--- a/src/sysConfig/index.js
+++ b/src/sysConfig/index.js
@@ -6,7 +6,7 @@
// 服务器地址
// const devIp = '39.98.140.126'
// const devInterfacePORT = '10005'
-const devIp = '192.168.10.53'
+const devIp = '192.168.10.248'
const devInterfacePORT = '9999'
// 云端端口号
const DEV_CLOUD_RES_INTERFACE_PORT = '7777'