{
let data = JSON.parse(res.mesg);
- console.log(data);
+ this.form.fjList = data.fjList || data.form.fjList
+ this.form.fjListId = data.fjListId || data.form.fjListId
this.form.cid = data.cid || data.form.cid;
this.form.endTime = data.endTime || data.form.endTime;
this.form.cname = data.cname || data.form.cname;
- if (data.summaryList === undefined && data.info === undefined) {
- this.oldData = JSON.parse(JSON.stringify(data.form));
- this.data = data.form.data;
- }
- if (data.summaryList.length !== 0) {
- this.oldData = JSON.parse(JSON.stringify(data.summaryList));
- }
- if (data.info.length !== 0) {
- this.oldData = JSON.parse(JSON.stringify(data.info));
- }
+ this.oldData = JSON.parse(JSON.stringify(data.summaryList))
data.summaryList.forEach(item => {
if (item.state) {
} else {
@@ -397,19 +409,8 @@ export default {
}
item.type = false;
});
- data.info.forEach(item => {
- if (item.state) {
- } else {
- item.state = "1";
- }
- item.type = false;
- });
this.json = data;
- if (data.summaryList.length === 0) {
- this.data = data.info;
- } else {
- this.data = data.summaryList;
- }
+ this.data = data.summaryList
if (data.introduce) {
} else {
this.$http.get("slrs/sar-public-idea-all/getPublicIdea", {
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue
index b559eec49..bc6e8f871 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step6.vue
@@ -48,6 +48,15 @@
placeholder="请选择结束日期">
+
+
+
+
@@ -253,7 +262,9 @@ export default {
form: {
cid: "", // 编号
endTime: "", // 结束日期
- cname: "" // 名称
+ cname: "", // 名称
+ fjList: [],
+ fjListId: '',
},
formRules: {
responUserList: [
@@ -269,6 +280,16 @@ export default {
ProcessTitle
},
methods: {
+ updataFj (item) {
+ let id
+ let type = item.fileName.split('.')
+ if (type[1] === 'pdf') {
+ id = item.attId
+ } else {
+ id = item.oriAttId
+ }
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
+ },
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
@@ -366,34 +387,20 @@ export default {
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg);
- console.log(data);
- if (data.oldinfo === undefined) {
- this.form.cid = data.cid;
- this.form.endTime = data.endTime;
- this.form.cname = data.cname;
- var arr = [];
- data.summaryList.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- } else {
- this.form.cid = data.oldinfo.cid;
- this.form.endTime = data.oldinfo.endTime;
- this.form.cname = data.oldinfo.cname;
- var arr = [];
- data.oldinfo.data.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- }
+ this.form.cid = data.cid
+ this.form.endTime = data.endTime
+ this.form.cname = data.cname
+ this.form.fjList = data.fjList
+ this.form.fjListId = data.fjListId
+ var arr = []
+ data.summaryList.forEach( item => {
+ if (item.state != '3') {
+ arr.push(item)
+ }
+ })
+ this.json = data
+ this.data = arr
+ this.oldData = data.oldinfo
}).catch(e => {
});
});
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue
index dfadeae1d..2d116fc5f 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step7.vue
@@ -48,6 +48,15 @@
placeholder="请选择结束日期">
+
+
+
+
@@ -249,6 +258,8 @@
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
+ fjList: [],
+ fjListId: '',
},
formRules: {
responUserList: [
@@ -264,6 +275,16 @@
ProcessTitle
},
methods: {
+ updataFj (item) {
+ let id
+ let type = item.fileName.split('.')
+ if (type[1] === 'pdf') {
+ id = item.attId
+ } else {
+ id = item.oriAttId
+ }
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
+ },
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
@@ -355,34 +376,19 @@
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
- if (data.oldinfo === undefined) {
- this.form.cid = data.cid;
- this.form.endTime = data.endTime;
- this.form.cname = data.cname;
- var arr = [];
- data.summaryList.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- } else {
- this.form.cid = data.oldinfo.cid;
- this.form.endTime = data.oldinfo.endTime;
- this.form.cname = data.oldinfo.cname;
- var arr = [];
- data.oldinfo.data.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- }
-
+ this.form.cid = data.cid
+ this.form.endTime = data.endTime
+ this.form.cname = data.cname
+ this.form.fjList = data.fjList
+ this.form.fjListId = data.fjListId
+ var arr = []
+ data.summaryList.forEach( item => {
+ if (item.state != '3') {
+ arr.push(item)
+ }
+ })
+ this.json = data
+ this.data = arr
}).catch(e => {
})
})
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue
index 8cc1a33ff..75efde0eb 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step8.vue
@@ -48,6 +48,15 @@
placeholder="请选择结束日期">
+
+
+
+
@@ -249,6 +258,8 @@
cid: '', // 编号
endTime: '', // 结束日期
cname: '', // 名称
+ fjList: [],
+ fjListId: '',
},
formRules: {
responUserList: [
@@ -264,6 +275,16 @@
ProcessTitle
},
methods: {
+ updataFj (item) {
+ let id
+ let type = item.fileName.split('.')
+ if (type[1] === 'pdf') {
+ id = item.attId
+ } else {
+ id = item.oriAttId
+ }
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
+ },
getHistoryData () {
this.$http.get('lawss/activiti/get_list_by_instance', {
prcNum: this.$route.query.prcNum,
@@ -355,33 +376,20 @@
pId: this.pId
}).then(res => {
let data = JSON.parse(res.mesg)
- if (data.oldinfo === undefined) {
- this.form.cid = data.cid;
- this.form.endTime = data.endTime;
- this.form.cname = data.cname;
- var arr = [];
- data.summaryList.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- } else {
- this.form.cid = data.oldinfo.cid;
- this.form.endTime = data.oldinfo.endTime;
- this.form.cname = data.oldinfo.cname;
- var arr = [];
- data.oldinfo.data.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- }
+ this.form.cid = data.cid
+ this.form.endTime = data.endTime
+ this.form.cname = data.cname
+ this.form.fjList = data.fjList
+ this.form.fjListId = data.fjListId
+ var arr = []
+ data.summaryList.forEach( item => {
+ if (item.state != '3') {
+ arr.push(item)
+ }
+ })
+ this.json = data
+ this.data = arr
+ this.oldData = data.oldinfo
}).catch(e => {
})
})
diff --git a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue
index 4703b35e0..2fb277a75 100644
--- a/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue
+++ b/src/pages/processCenter/pages/creatProcess/bzzqyj/step9.vue
@@ -48,6 +48,15 @@
placeholder="请选择结束日期">
+
+
+
+
@@ -250,7 +259,9 @@ export default {
form: {
cid: "", // 编号
endTime: "", // 结束日期
- cname: "" // 名称
+ cname: "", // 名称
+ fjList: [],
+ fjListId: '',
},
formRules: {
responUserList: [
@@ -266,6 +277,16 @@ export default {
ProcessTitle
},
methods: {
+ updataFj (item) {
+ let id
+ let type = item.fileName.split('.')
+ if (type[1] === 'pdf') {
+ id = item.attId
+ } else {
+ id = item.oriAttId
+ }
+ window.open('/static/pdf/web/viewer.html?file=' + encodeURIComponent('/api/att/attFile/getFileInfo?fileId=' + id))
+ },
getHistoryData() {
this.$http.get("lawss/activiti/get_list_by_instance", {
prcNum: this.$route.query.prcNum
@@ -359,34 +380,21 @@ export default {
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
- let data = JSON.parse(res.mesg);
- if (data.oldinfo === undefined) {
- this.form.cid = data.cid;
- this.form.endTime = data.endTime;
- this.form.cname = data.cname;
- var arr = [];
- data.summaryList.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- } else {
- this.form.cid = data.oldinfo.cid;
- this.form.endTime = data.oldinfo.endTime;
- this.form.cname = data.oldinfo.cname;
- var arr = [];
- data.oldinfo.data.forEach(item => {
- if (item.state != "3") {
- arr.push(item);
- }
- });
- this.json = data;
- this.data = arr;
- this.oldData = data.oldinfo;
- }
+ let data = JSON.parse(res.mesg)
+ this.form.cid = data.cid
+ this.form.endTime = data.endTime
+ this.form.cname = data.cname
+ this.form.fjList = data.fjList
+ this.form.fjListId = data.fjListId
+ var arr = []
+ data.summaryList.forEach( item => {
+ if (item.state != '3') {
+ arr.push(item)
+ }
+ })
+ this.json = data
+ this.data = arr
+ this.oldData = data.oldinfo
}).catch(e => {
});
});
diff --git a/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue b/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue
index 7ad7547ab..78963c902 100644
--- a/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmpg2/step1.vue
@@ -226,7 +226,7 @@
+ @click.native="choiceZRR('statuteMinister', '选择标准法规部部长', roleForm.statuteMinister)">
@@ -533,6 +533,13 @@ export default {
},
//项目的多选框改变
selectListChange(data) {
+ // 单选
+ if (data.length > 1) {
+ this.$refs.selection.clearSelection()
+ this.$refs.selection.toggleRowSelection(data.pop())
+ }
+ this.multipleSelection = data
+
this.selectedList = data;
},
pageChange(page) {
diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-1.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-1.vue
index 0a35e1982..3c394b217 100644
--- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-1.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-1.vue
@@ -592,10 +592,24 @@ export default {
},
//清单勾选框数据
selectListChange(data) {
+ // 单选
+ if (data.length > 1) {
+ this.$refs.selection.clearSelection()
+ this.$refs.selection.toggleRowSelection(data.pop())
+ }
+ this.multipleSelection = data
+
this.selectedList = data;
},
//项目勾选框数据
selectProjectChange(data) {
+ // 单选
+ if (data.length > 1) {
+ this.$refs.selection.clearSelection()
+ this.$refs.selection.toggleRowSelection(data.pop())
+ }
+ this.multipleSelection = data
+
this.selectProject = data;
},
//提交事件
diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-2.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-2.vue
index 4529bca2e..fb27029e4 100644
--- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-2.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step1-2.vue
@@ -325,7 +325,7 @@ export default {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
- id: item.standId,
+ id: item.id,
pageType: "INLAND_STAND"
}
});
diff --git a/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue b/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue
index 9121f3ef6..d6786ff8b 100644
--- a/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue
+++ b/src/pages/processCenter/pages/creatProcess/xmqdqr/step2.vue
@@ -493,7 +493,7 @@ export default {
let routeUrl = this.$router.resolve({
name: "OtherStandardDetails",
params: {
- id: item.standId,
+ id: item.id,
pageType: "INLAND_STAND"
}
});
@@ -671,11 +671,11 @@ export default {
}
this.standardData = res.data.records;
this.standardData.forEach(item => {
- if (item.zccssrqgj === "-") {
+ if (item.zccssrqgj === "-" || item.zccssrqgj === 'null' || item.zccssrqgj === 'undefined') {
item.zccssrqgj = "";
}
- if (item.xcxssrqgj === "-") {
- item.xcxssrq = "";
+ if (item.xcxssrqgj === "-" || item.xcxssrqgj === 'null' || item.xcxssrqgj === 'undefined' ) {
+ item.xcxssrqgj = "";
}
});
this.total = res.data.total;