@@ -324,6 +324,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -353,6 +354,7 @@ export default {
|
|||||||
// 任务分解单数据
|
// 任务分解单数据
|
||||||
taskTableData: []
|
taskTableData: []
|
||||||
},
|
},
|
||||||
|
dataLoading: false,
|
||||||
loadSarStandard: false,
|
loadSarStandard: false,
|
||||||
lawsTextStateOptions: [],
|
lawsTextStateOptions: [],
|
||||||
standardDrawer: false,
|
standardDrawer: false,
|
||||||
@@ -455,6 +457,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getData(){
|
getData(){
|
||||||
|
this.dataLoading = true
|
||||||
queryTaskFirst({
|
queryTaskFirst({
|
||||||
bpnId: this.$route.query.bpnId
|
bpnId: this.$route.query.bpnId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -462,6 +465,7 @@ export default {
|
|||||||
this.form = mes.form
|
this.form = mes.form
|
||||||
this.roleForm = mes.roleForm
|
this.roleForm = mes.roleForm
|
||||||
this.commentText = mes.commentText
|
this.commentText = mes.commentText
|
||||||
|
this.dataLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
filterObj(obj){
|
filterObj(obj){
|
||||||
@@ -480,7 +484,6 @@ export default {
|
|||||||
case 1:
|
case 1:
|
||||||
this.standardCheckedList = []
|
this.standardCheckedList = []
|
||||||
this.standardDrawer = false
|
this.standardDrawer = false
|
||||||
this.verifySarStandard = true
|
|
||||||
this.clearFormData(this.form)
|
this.clearFormData(this.form)
|
||||||
break
|
break
|
||||||
// 带入
|
// 带入
|
||||||
@@ -490,6 +493,8 @@ export default {
|
|||||||
}else if(this.standardCheckedList.length > 1){
|
}else if(this.standardCheckedList.length > 1){
|
||||||
this.$message.warning('您只能选择一条政策信息进行带入')
|
this.$message.warning('您只能选择一条政策信息进行带入')
|
||||||
}else{
|
}else{
|
||||||
|
this.dataLoading = true
|
||||||
|
this.standardDrawer = false
|
||||||
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
this.$http.get('lawss/sarLawsInfo/getStandInfoUpdateById', {id: this.standardCheckedList[0].id}, {
|
||||||
_this: this
|
_this: this
|
||||||
}, res => {
|
}, res => {
|
||||||
@@ -514,8 +519,7 @@ export default {
|
|||||||
this.form.prcNum = this.prcNum
|
this.form.prcNum = this.prcNum
|
||||||
this.form.prcName = this.prcName
|
this.form.prcName = this.prcName
|
||||||
this.form['id'] = bringData.id
|
this.form['id'] = bringData.id
|
||||||
this.standardDrawer = false
|
this.dataLoading = false
|
||||||
this.verifySarStandard = true
|
|
||||||
this.busVsFunc()
|
this.busVsFunc()
|
||||||
this.modelFunc()
|
this.modelFunc()
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
@@ -668,7 +672,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs['Form'].validate((valid) => {
|
this.$refs['Form'].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
var json = Object.assign(this.form, this.roleForm)
|
const json = Object.assign(this.form, this.roleForm);
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
json.filesId = this.addFjList
|
json.filesId = this.addFjList
|
||||||
json.filesName = this.form.fjListName
|
json.filesName = this.form.fjListName
|
||||||
|
|||||||
@@ -145,6 +145,7 @@
|
|||||||
@checkedRole="checkedRole2"
|
@checkedRole="checkedRole2"
|
||||||
:nodeList="nodeList"
|
:nodeList="nodeList"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -159,6 +160,7 @@ export default {
|
|||||||
name: "zczqyjStep2",
|
name: "zczqyjStep2",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
commentText: "",
|
commentText: "",
|
||||||
@@ -284,17 +286,12 @@ export default {
|
|||||||
//保存事件
|
//保存事件
|
||||||
handleSave() {
|
handleSave() {
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let json = this.json;
|
|
||||||
json.commentText = this.commentText;
|
|
||||||
json.responUserList = this.form.responUserList;
|
|
||||||
json.responUserListName = this.form.responUserListName;
|
|
||||||
json.responUserAndInstitutionNameMap = this.form.responUserAndInstitutionNameMap;
|
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
_formData.append("id", this.bpnId || "");
|
_formData.append("id", this.bpnId || "");
|
||||||
_formData.append("prcType", "laws2");
|
_formData.append("prcType", "laws2");
|
||||||
_formData.append("taskIds", this.taskIds);
|
_formData.append("taskIds", this.taskIds);
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
form: json,
|
form: this.form,
|
||||||
dataList: this.dataList,
|
dataList: this.dataList,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}));
|
}));
|
||||||
@@ -311,7 +308,7 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
json.responUserList = this.form.responUserList;
|
json.responUserList = this.form.responUserList;
|
||||||
json.responUserListName = this.form.responUserListName;
|
json.responUserListName = this.form.responUserListName;
|
||||||
@@ -335,24 +332,63 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getFormFieldList (item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.form.lawsNumber = item.form ? item.form.lawsNumber : item.lawsNumber
|
||||||
|
this.form.responUserAndInstitutionNameMap = item.form ? item.form.responUserAndInstitutionNameMap : ''
|
||||||
|
this.form.lawsName = item.form ? item.form.lawsName : item.lawsName
|
||||||
|
this.form.responUserList = item.form ? item.form.responUserList: ''
|
||||||
|
this.form.responUserListName = item.form ? item.form.responUserListName : ''
|
||||||
|
this.form.endTime = item.form ? item.form.endTime : item.endTime
|
||||||
|
this.form.cname = item.form ? item.form.cname : item.cname
|
||||||
|
this.form.fjList = item.form ? item.form.fjList : item.fjList
|
||||||
|
this.form.fjListId = item.form ? item.form.fjListId : item.fjListId
|
||||||
|
this.dataLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
filterObj(obj){
|
||||||
|
if(obj && obj !== ''){
|
||||||
|
if(obj instanceof Array){
|
||||||
|
return obj;
|
||||||
|
}else {
|
||||||
|
return obj.split(",")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
},
|
||||||
|
getTaskId (item) {
|
||||||
|
this.form = item.form
|
||||||
|
this.form.lawsNumber = item.form ? item.form.lawsNumber : item.lawsNumber
|
||||||
|
this.form.responUserAndInstitutionNameMap = item.form ? item.form.responUserAndInstitutionNameMap : ''
|
||||||
|
this.form.lawsName = item.form ? item.form.lawsName : item.lawsName
|
||||||
|
this.form.responUserList = item.form ? item.form.responUserList: ''
|
||||||
|
this.form.responUserListName = item.form ? item.form.responUserListName : ''
|
||||||
|
this.form.endTime = item.form ? item.form.endTime : item.endTime
|
||||||
|
this.form.cname = item.form ? item.form.cname : item.cname
|
||||||
|
this.form.fjList = item.form ? item.form.fjList : item.fjList
|
||||||
|
this.form.fjListId = item.form ? item.form.fjListId : item.fjListId
|
||||||
|
this.roleForm = item.roleForm
|
||||||
|
this.commentText = item.commentText
|
||||||
|
this.dataLoading = false
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let data = JSON.parse(res.mesg)
|
if (res) {
|
||||||
this.form.lawsNumber = data.form ? data.form.lawsNumber : data.lawsNumber
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.form.responUserAndInstitutionNameMap = data.form ? data.form.responUserAndInstitutionNameMap : ''
|
if (processForm.form === undefined) {
|
||||||
this.form.lawsName = data.form ? data.form.lawsName : data.lawsName
|
this.getFormFieldList(processForm)
|
||||||
this.form.responUserList = data.form ? data.form.responUserList: ''
|
} else {
|
||||||
this.form.responUserListName = data.form ? data.form.responUserListName : ''
|
//表单文件处理
|
||||||
this.form.endTime = data.form ? data.form.endTime : data.endTime
|
this.getTaskId(processForm)
|
||||||
this.form.cname = data.form ? data.form.cname : data.cname
|
}
|
||||||
this.form.fjList = data.form ? data.form.fjList : data.fjList
|
|
||||||
this.form.fjListId = data.form ? data.form.fjListId : data.fjListId
|
}
|
||||||
this.json = data.form ? data.form : data
|
|
||||||
this.commentText = data.form ? data.form.commentText : ''
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -230,6 +230,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -244,6 +245,7 @@ export default {
|
|||||||
name: "zczqyjStep3",
|
name: "zczqyjStep3",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
todoId: '',
|
todoId: '',
|
||||||
histortData: [],
|
histortData: [],
|
||||||
@@ -405,16 +407,12 @@ export default {
|
|||||||
handleSave() {
|
handleSave() {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
let json = this.json
|
|
||||||
json.commentText = this.commentText
|
|
||||||
json.info = this.data
|
|
||||||
json.form = this.form
|
|
||||||
let _formData = new FormData();
|
let _formData = new FormData();
|
||||||
_formData.append("id", this.bpnId || "");
|
_formData.append("id", this.bpnId || "");
|
||||||
_formData.append("prcType", "laws2");
|
_formData.append("prcType", "laws2");
|
||||||
_formData.append("taskIds", this.taskIds);
|
_formData.append("taskIds", this.taskIds);
|
||||||
_formData.append("json", JSON.stringify({
|
_formData.append("json", JSON.stringify({
|
||||||
form: json,
|
form: this.form,
|
||||||
dataList: this.data,
|
dataList: this.data,
|
||||||
commentText: this.commentText
|
commentText: this.commentText
|
||||||
}));
|
}));
|
||||||
@@ -458,10 +456,9 @@ export default {
|
|||||||
else {
|
else {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true;
|
this.saveLoading = true;
|
||||||
var json = this.json
|
var json = Object.assign(this.form)
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
json.info = this.data
|
json.info = this.data
|
||||||
json.form = this.form
|
|
||||||
for (let i = 0; i < json.info.length; i++) {
|
for (let i = 0; i < json.info.length; i++) {
|
||||||
json.info[i].department = this.form.department
|
json.info[i].department = this.form.department
|
||||||
}
|
}
|
||||||
@@ -482,36 +479,39 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getTaskId (mesg) {
|
||||||
|
this.form = mesg.form
|
||||||
|
this.form.commentUser = this.$store.getters.userInfo.userId
|
||||||
|
this.form.commentUserName = this.$store.getters.userInfo.userName
|
||||||
|
this.data = mesg.form ? mesg.dataList : []
|
||||||
|
this.commentText = mesg.form ? mesg.commentText : ''
|
||||||
|
let commitStatus = mesg.commitStatus
|
||||||
|
if (commitStatus && commitStatus > 0) {
|
||||||
|
this.acceptShow = true
|
||||||
|
this.submitShow = false
|
||||||
|
} else {
|
||||||
|
this.acceptShow = false
|
||||||
|
this.submitShow = true
|
||||||
|
}
|
||||||
|
this.todoId = mesg.id
|
||||||
|
for (let i = 0; i < this.data.length; i++) {
|
||||||
|
this.data[i].department = mesg.department
|
||||||
|
}
|
||||||
|
this.dataLoading = false
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
if (processForm.form === undefined) {
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
}
|
|
||||||
let data = JSON.parse(res.mesg)
|
|
||||||
let commitStatus = res.commitStatus
|
|
||||||
if (commitStatus && commitStatus > 0) {
|
|
||||||
this.acceptShow = true
|
|
||||||
this.submitShow = false
|
|
||||||
} else {
|
} else {
|
||||||
this.acceptShow = false
|
//表单文件处理
|
||||||
this.submitShow = true
|
this.getTaskId(processForm)
|
||||||
}
|
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
|
||||||
this.form.endTime = data.endTime || data.form.endTime
|
|
||||||
this.form.department = data.department
|
|
||||||
this.todoId = res.id
|
|
||||||
this.json = data
|
|
||||||
this.data = data.info || data.data || data.form.data || []
|
|
||||||
for (let i = 0; i < this.data.length; i++) {
|
|
||||||
this.data[i].department = data.department
|
|
||||||
}
|
}
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
@@ -521,13 +521,25 @@ export default {
|
|||||||
* @description: 动态表单读取
|
* @description: 动态表单读取
|
||||||
*/
|
*/
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
console.log(item);
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = item.form ? JSON.parse(JSON.stringify(item.form.form)) : JSON.parse(JSON.stringify(item));
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
this.form.commentUser = this.$store.getters.userInfo.userId
|
this.form.commentUser = this.$store.getters.userInfo.userId
|
||||||
this.form.commentUserName = this.$store.getters.userInfo.userName
|
this.form.commentUserName = this.$store.getters.userInfo.userName
|
||||||
this.data = item.form ? item.dataList : []
|
this.data = item.form ? item.dataList : []
|
||||||
this.commentText = item.form ? item.commentText : ''
|
this.commentText = item.form ? item.commentText : ''
|
||||||
|
let commitStatus = item.commitStatus
|
||||||
|
if (commitStatus && commitStatus > 0) {
|
||||||
|
this.acceptShow = true
|
||||||
|
this.submitShow = false
|
||||||
|
} else {
|
||||||
|
this.acceptShow = false
|
||||||
|
this.submitShow = true
|
||||||
|
}
|
||||||
|
this.todoId = item.id
|
||||||
|
for (let i = 0; i < this.data.length; i++) {
|
||||||
|
this.data[i].department = item.department
|
||||||
|
}
|
||||||
|
this.dataLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -191,8 +191,8 @@
|
|||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-over2
|
||||||
@back="handleSubmitNo"
|
@over2="handleSubmitNo"
|
||||||
approval
|
approval
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
>
|
>
|
||||||
@@ -203,6 +203,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -217,7 +218,8 @@ export default {
|
|||||||
name: "zczqyjStep4",
|
name: "zczqyjStep4",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
drawerModal: false,
|
dataLoading: true,
|
||||||
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
data: [],
|
data: [],
|
||||||
commentText: '',
|
commentText: '',
|
||||||
@@ -316,7 +318,7 @@ export default {
|
|||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = Object.assign(this.form)
|
||||||
//这个就是原来的actionFlag,用来表示流程是驳回还是同意
|
//这个就是原来的actionFlag,用来表示流程是驳回还是同意
|
||||||
json.actionFlag = 0
|
json.actionFlag = 0
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
@@ -337,7 +339,7 @@ export default {
|
|||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json
|
var json = Object.assign(this.form)
|
||||||
//这个就是原来的actionFlag,用来表示流程是驳回还是同意
|
//这个就是原来的actionFlag,用来表示流程是驳回还是同意
|
||||||
json.actionFlag = 1
|
json.actionFlag = 1
|
||||||
json.commentText = this.commentText
|
json.commentText = this.commentText
|
||||||
@@ -358,27 +360,26 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
getTaskId (mesg) {
|
||||||
|
this.form = mesg.form
|
||||||
|
this.data = mesg.form ? mesg.dataList : []
|
||||||
|
this.commentText = mesg.form ? mesg.commentText : ''
|
||||||
|
this.dataLoading = false
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
|
||||||
const processForm = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
if (processForm.form === undefined) {
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
|
} else {
|
||||||
|
//表单文件处理
|
||||||
|
this.getTaskId(processForm)
|
||||||
}
|
}
|
||||||
let data = JSON.parse(res.mesg)
|
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
|
||||||
this.form.endTime = data.endTime || data.form.endTime
|
|
||||||
this.form.cname = data.cname || data.form.cname
|
|
||||||
this.form.commentUser = data.commentUser || data.form.commentUser
|
|
||||||
this.form.commentUserName = data.commentUserName || data.form.commentUserName
|
|
||||||
this.json = data
|
|
||||||
this.data = data.info || data.data
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@@ -388,9 +389,9 @@ export default {
|
|||||||
*/
|
*/
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = JSON.parse(JSON.stringify(item));
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
this.form.lawsNumber = item.form.lawsNumber
|
this.data = item.info
|
||||||
this.form.lawsName = item.form.lawsName
|
this.dataLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -261,10 +261,11 @@
|
|||||||
show-submit
|
show-submit
|
||||||
:submitLoading="isSubmit"
|
:submitLoading="isSubmit"
|
||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
|
show-save
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-over2
|
||||||
@back="handleSubmitNo"
|
@over2="handleSubmitNo"
|
||||||
show-transfer
|
show-transfer
|
||||||
@transfer="handleTransfer"
|
@transfer="handleTransfer"
|
||||||
approval
|
approval
|
||||||
@@ -277,6 +278,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -284,7 +286,7 @@
|
|||||||
import ProcessHeader from "../../components/ProcessHeader";
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
import ProcessFooter from "../../components/ProcessFooter";
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
import ProcessTitle from "../../components/ProcessTitle";
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
|
import { inboundLiaisonDetail,saveTaskForPub, processCreateStand, changeAssigneeNew } from "api/process";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -292,6 +294,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//修订的标志
|
//修订的标志
|
||||||
|
dataLoading: true,
|
||||||
changeFlag:false,
|
changeFlag:false,
|
||||||
acceptShow: false,
|
acceptShow: false,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
@@ -367,7 +370,6 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
addModal() {
|
addModal() {
|
||||||
console.log('318',this.form.form.department)
|
|
||||||
this.changeFlag = true
|
this.changeFlag = true
|
||||||
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
|
var id = Number(Math.random().toString().substr(3, 3) + Date.now()).toString(36);
|
||||||
var json = {
|
var json = {
|
||||||
@@ -378,7 +380,7 @@ export default {
|
|||||||
newText: '',
|
newText: '',
|
||||||
changeReason: '',
|
changeReason: '',
|
||||||
reason: '',
|
reason: '',
|
||||||
department: this.form.form.department,
|
department: this.form.department,
|
||||||
id: id,
|
id: id,
|
||||||
responUserName: this.$store.getters.userInfo.userName,
|
responUserName: this.$store.getters.userInfo.userName,
|
||||||
responUser: this.$store.getters.userInfo.userId,
|
responUser: this.$store.getters.userInfo.userId,
|
||||||
@@ -462,6 +464,28 @@ export default {
|
|||||||
this.active = name;
|
this.active = name;
|
||||||
},
|
},
|
||||||
handleSave() {
|
handleSave() {
|
||||||
|
|
||||||
|
this.isSubmit = true;
|
||||||
|
this.saveLoading = true;
|
||||||
|
let _formData = new FormData();
|
||||||
|
_formData.append("id", this.bpnId || "");
|
||||||
|
_formData.append("prcType", "laws2");
|
||||||
|
_formData.append("taskIds", this.taskIds);
|
||||||
|
_formData.append("json", JSON.stringify({
|
||||||
|
form: this.form,
|
||||||
|
dataList: this.data,
|
||||||
|
commentText: this.commentText
|
||||||
|
}));
|
||||||
|
saveTaskForPub(_formData).then(res => {
|
||||||
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false;
|
||||||
|
|
||||||
|
this.$message.success("保存成功");
|
||||||
|
this.bpnId = res.result;
|
||||||
|
}).catch(e => {
|
||||||
|
this.saveLoading = false;
|
||||||
|
this.isSubmit = false;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
if (this.data.length < 1) {
|
if (this.data.length < 1) {
|
||||||
@@ -469,11 +493,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 0;
|
json.actionFlag = 0;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
json.info = this.data
|
json.info = this.data
|
||||||
json.form = this.form
|
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
json: JSON.stringify(json),
|
json: JSON.stringify(json),
|
||||||
taskId: this.taskIds,
|
taskId: this.taskIds,
|
||||||
@@ -491,7 +514,7 @@ export default {
|
|||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 1;
|
json.actionFlag = 1;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -509,40 +532,36 @@ export default {
|
|||||||
this.$message.warning("请输入反馈意见");
|
this.$message.warning("请输入反馈意见");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
getTaskId (item) {
|
||||||
|
console.log(item)
|
||||||
|
this.form = item.form
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.form.responUserAndInstitutionNameMap = item.form ? item.form.responUserAndInstitutionNameMap : ''
|
||||||
|
this.form.lawsName = item.form ? item.form.lawsName : item.lawsName
|
||||||
|
this.form.responUserList = item.form ? item.form.responUserList: ''
|
||||||
|
this.form.responUserListName = item.form ? item.form.responUserListName : ''
|
||||||
|
this.form.endTime = item.form ? item.form.endTime : item.endTime
|
||||||
|
this.form.cname = item.form ? item.form.cname : item.cname
|
||||||
|
this.form.fjList = item.form ? item.form.fjList : item.fjList
|
||||||
|
this.form.fjListId = item.form ? item.form.fjListId : item.fjListId
|
||||||
|
this.data = item.dataList.filter ( item => item.state !== '3');
|
||||||
|
this.form.department = item.form ? item.form.department : item.department
|
||||||
|
this.commentText = item.form ? item.commentText : ''
|
||||||
|
this.dataLoading = false
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res) {
|
const processForm = JSON.parse(res.mesg)
|
||||||
const processForm = JSON.parse(res.mesg)
|
if (processForm.form === undefined) {
|
||||||
this.getFormFieldList(processForm)
|
this.getFormFieldList(processForm)
|
||||||
|
} else {
|
||||||
|
//表单文件处理
|
||||||
|
this.getTaskId(processForm)
|
||||||
}
|
}
|
||||||
let data = JSON.parse(res.mesg);
|
|
||||||
this.form.department = data.form.department
|
|
||||||
console.log(this.form.department,'517')
|
|
||||||
// 给后端的选人信息
|
|
||||||
this.form.responUserAndInstitutionNameMap = data.form.responUserAndInstitutionNameMap
|
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
|
||||||
this.form.endTime = data.endTime || data.form.endTime;
|
|
||||||
this.form.cname = data.cname || data.form.cname;
|
|
||||||
this.oldData = JSON.parse(JSON.stringify(data.info))
|
|
||||||
var arr = []
|
|
||||||
data.info.forEach(item => {
|
|
||||||
if (item.state != '3') {
|
|
||||||
arr.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
// for (let i = 0; i < this.data.length; i++) {
|
|
||||||
// this.data[i].department = data.department
|
|
||||||
// }
|
|
||||||
this.json = data
|
|
||||||
this.data = arr
|
|
||||||
this.oldData = data.oldinfo
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -552,9 +571,20 @@ export default {
|
|||||||
*/
|
*/
|
||||||
getFormFieldList(item) {
|
getFormFieldList(item) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.form = JSON.parse(JSON.stringify(item));
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
this.form.lawsNumber = item.form.lawsNumber
|
this.form['id'] = item.id
|
||||||
this.form.lawsName = item.form.lawsName
|
this.form.lawsNumber = item.form ? item.form.lawsNumber : item.lawsNumber
|
||||||
|
this.form.responUserAndInstitutionNameMap = item.form ? item.form.responUserAndInstitutionNameMap : ''
|
||||||
|
this.form.lawsName = item.form ? item.form.lawsName : item.lawsName
|
||||||
|
this.form.responUserList = item.form ? item.form.responUserList: ''
|
||||||
|
this.form.responUserListName = item.form ? item.form.responUserListName : ''
|
||||||
|
this.form.endTime = item.form ? item.form.endTime : item.endTime
|
||||||
|
this.form.cname = item.form ? item.form.cname : item.cname
|
||||||
|
this.form.fjList = item.form ? item.form.fjList : item.fjList
|
||||||
|
this.form.fjListId = item.form ? item.form.fjListId : item.fjListId
|
||||||
|
this.data = item.info.filter ( item => item.state !== '3');
|
||||||
|
this.form.department = item.form ? item.form.department : item.department
|
||||||
|
this.dataLoading = false
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -197,8 +197,6 @@
|
|||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
|
||||||
@back="handleSubmitNo"
|
|
||||||
approval
|
approval
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
show-transfer
|
show-transfer
|
||||||
@@ -211,6 +209,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -225,6 +224,7 @@ export default {
|
|||||||
name: "zczqyjStep6",
|
name: "zczqyjStep6",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
@@ -357,7 +357,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 0;
|
json.actionFlag = 0;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -395,29 +395,31 @@ export default {
|
|||||||
this.$message.warning("请输入反馈意见");
|
this.$message.warning("请输入反馈意见");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.data = item.info.filter ( item => item.state !== '3');
|
||||||
|
this.dataLoading = false
|
||||||
|
});
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let data = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
if (processForm.form === undefined) {
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
this.getFormFieldList(processForm)
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
} else {
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
//表单文件处理
|
||||||
this.form.endTime = data.endTime || data.form.endTime;
|
// this.getTaskId(processForm)
|
||||||
this.form.cname = data.cname || data.form.cname;
|
}
|
||||||
this.oldData = JSON.parse(JSON.stringify(data.info))
|
|
||||||
var arr = []
|
|
||||||
data.info.forEach(item => {
|
|
||||||
if (item.state != '3') {
|
|
||||||
arr.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.json = data
|
|
||||||
this.data = arr
|
|
||||||
this.oldData = data.oldinfo
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -197,8 +197,8 @@
|
|||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-over2
|
||||||
@back="handleSubmitNo"
|
@over2="handleSubmitNo"
|
||||||
approval
|
approval
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
show-transfer
|
show-transfer
|
||||||
@@ -211,6 +211,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -222,9 +223,10 @@ import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "zczqyjStep6",
|
name: "zczqyjStep7",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
@@ -357,7 +359,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 0;
|
json.actionFlag = 0;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -377,7 +379,7 @@ export default {
|
|||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 1;
|
json.actionFlag = 1;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -395,29 +397,30 @@ export default {
|
|||||||
this.$message.warning("请输入反馈意见");
|
this.$message.warning("请输入反馈意见");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.data = item.info.filter ( item => item.state !== '3');
|
||||||
|
this.dataLoading = false
|
||||||
|
});
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let data = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
if (processForm.form === undefined) {
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
this.getFormFieldList(processForm)
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
} else {
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
//表单文件处理
|
||||||
this.form.endTime = data.endTime || data.form.endTime;
|
// this.getTaskId(processForm)
|
||||||
this.form.cname = data.cname || data.form.cname;
|
}
|
||||||
this.oldData = JSON.parse(JSON.stringify(data.info))
|
|
||||||
var arr = []
|
|
||||||
data.info.forEach(item => {
|
|
||||||
if (item.state != '3') {
|
|
||||||
arr.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.json = data
|
|
||||||
this.data = arr
|
|
||||||
this.oldData = data.oldinfo
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -197,8 +197,8 @@
|
|||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-over2
|
||||||
@back="handleSubmitNo"
|
@over2="handleSubmitNo"
|
||||||
approval
|
approval
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
show-transfer
|
show-transfer
|
||||||
@@ -211,6 +211,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -222,9 +223,10 @@ import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "zczqyjStep6",
|
name: "zczqyjStep8",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
@@ -357,7 +359,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 0;
|
json.actionFlag = 0;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -395,29 +397,31 @@ export default {
|
|||||||
this.$message.warning("请输入反馈意见");
|
this.$message.warning("请输入反馈意见");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.data = item.info.filter ( item => item.state !== '3');
|
||||||
|
this.dataLoading = false
|
||||||
|
});
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let data = JSON.parse(res.mesg)
|
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
if (processForm.form === undefined) {
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
this.getFormFieldList(processForm)
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
} else {
|
||||||
this.form.endTime = data.endTime || data.form.endTime;
|
//表单文件处理
|
||||||
this.form.cname = data.cname || data.form.cname;
|
// this.getTaskId(processForm)
|
||||||
this.oldData = JSON.parse(JSON.stringify(data.info))
|
}
|
||||||
var arr = []
|
|
||||||
data.info.forEach(item => {
|
|
||||||
if (item.state != '3') {
|
|
||||||
arr.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.json = data
|
|
||||||
this.data = arr
|
|
||||||
this.oldData = data.oldinfo
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -197,8 +197,8 @@
|
|||||||
:saveLoading="saveLoading"
|
:saveLoading="saveLoading"
|
||||||
@save="handleSave"
|
@save="handleSave"
|
||||||
@submit="handleSubmit"
|
@submit="handleSubmit"
|
||||||
show-back
|
show-over2
|
||||||
@back="handleSubmitNo"
|
@over2="handleSubmitNo"
|
||||||
approval
|
approval
|
||||||
submitBTNText="同意"
|
submitBTNText="同意"
|
||||||
show-transfer
|
show-transfer
|
||||||
@@ -211,6 +211,7 @@
|
|||||||
:is-visible.sync="drawerModal"
|
:is-visible.sync="drawerModal"
|
||||||
@checkedRole="checkedRole"
|
@checkedRole="checkedRole"
|
||||||
></Role-tree>
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -222,9 +223,10 @@ import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api
|
|||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "zczqyjStep6",
|
name: "zczqyjStep9",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dataLoading: true,
|
||||||
drawerModal: false,
|
drawerModal: false,
|
||||||
histortData: [],
|
histortData: [],
|
||||||
oldData: [],
|
oldData: [],
|
||||||
@@ -357,7 +359,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.isSubmit = true
|
this.isSubmit = true
|
||||||
this.saveLoading = true
|
this.saveLoading = true
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 0;
|
json.actionFlag = 0;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -377,7 +379,7 @@ export default {
|
|||||||
handleSubmitNo() {
|
handleSubmitNo() {
|
||||||
if (this.commentText) {
|
if (this.commentText) {
|
||||||
this.isSubmit = true;
|
this.isSubmit = true;
|
||||||
var json = this.json;
|
var json = Object.assign(this.form)
|
||||||
json.actionFlag = 1;
|
json.actionFlag = 1;
|
||||||
json.commentText = this.commentText;
|
json.commentText = this.commentText;
|
||||||
this.$http.post("lawss/activiti/completeTask", {
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
@@ -395,29 +397,30 @@ export default {
|
|||||||
this.$message.warning("请输入反馈意见");
|
this.$message.warning("请输入反馈意见");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.data = item.info.filter ( item => item.state !== '3');
|
||||||
|
this.dataLoading = false
|
||||||
|
});
|
||||||
|
},
|
||||||
getData() {
|
getData() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
inboundLiaisonDetail({
|
inboundLiaisonDetail({
|
||||||
taskIds: this.taskIds,
|
taskIds: this.taskIds,
|
||||||
pId: this.pId
|
pId: this.pId
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
let data = JSON.parse(res.mesg)
|
const processForm = JSON.parse(res.mesg)
|
||||||
this.form.fjList = data.fjList || data.form.fjList
|
if (processForm.form === undefined) {
|
||||||
this.form.fjListId = data.fjListId || data.form.fjListId
|
this.getFormFieldList(processForm)
|
||||||
this.form.lawsNumber = data.lawsNumber || data.form.lawsNumber
|
} else {
|
||||||
this.form.lawsName = data.lawsName || data.form.lawsName
|
//表单文件处理
|
||||||
this.form.endTime = data.endTime || data.form.endTime;
|
// this.getTaskId(processForm)
|
||||||
this.form.cname = data.cname || data.form.cname;
|
}
|
||||||
this.oldData = JSON.parse(JSON.stringify(data.info))
|
|
||||||
const arr = [];
|
|
||||||
data.info.forEach(item => {
|
|
||||||
if (item.state !== '3') {
|
|
||||||
arr.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.json = data
|
|
||||||
this.data = arr
|
|
||||||
this.oldData = data.oldinfo
|
|
||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,504 @@
|
|||||||
|
<template>
|
||||||
|
<div class="zczqyjStep6">
|
||||||
|
<ProcessHeader toggle>
|
||||||
|
<template slot="proName">政策征求意见流程</template>
|
||||||
|
<template slot="proNode">法规认证部总监批准</template>
|
||||||
|
</ProcessHeader>
|
||||||
|
<div class="headerTabs">
|
||||||
|
<div class="headerTabsItem" :class="active === '1' ? 'active' : ''" @click="handleTabs('1')">基础信息</div>
|
||||||
|
<div class="headerTabsItem" :class="active === '2' ? 'active' : ''" @click="handleTabs('2')">审批历史</div>
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '1'">
|
||||||
|
<div style="flex: auto; overflow: auto;">
|
||||||
|
<el-form
|
||||||
|
ref="zczqyjForm"
|
||||||
|
:model="form"
|
||||||
|
:rules="formRules"
|
||||||
|
class="label-input-form"
|
||||||
|
label-width="210px"
|
||||||
|
>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">基础信息</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<div class="prc-content-border">
|
||||||
|
<el-row :gutter="24">
|
||||||
|
<el-col :span="24">
|
||||||
|
<el-form-item label="政策编号" prop="lawsNumber" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.lawsNumber"
|
||||||
|
placeholder="请输入政策编号"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="政策名称" prop="lawsName" class="add-form-item form-item-disabled">
|
||||||
|
<el-input
|
||||||
|
disabled
|
||||||
|
v-model="form.lawsName"
|
||||||
|
placeholder="请输入政策名称"
|
||||||
|
clearable
|
||||||
|
></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
</div>
|
||||||
|
</el-form>
|
||||||
|
<ProcessTitle>
|
||||||
|
<template slot="title">征求意见列表</template>
|
||||||
|
</ProcessTitle>
|
||||||
|
<el-table
|
||||||
|
ref="multipleTable"
|
||||||
|
:data="data"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
border
|
||||||
|
style="width: 100%; flex: auto;"
|
||||||
|
class="drag-table"
|
||||||
|
:default-sort = "{prop: 'chapterNumber', order: 'ascending'}"
|
||||||
|
:header-cell-style="{background: '#E8E8E8', color: '#333333', fontSize: '16px',
|
||||||
|
fontWeight: 'bold', height: '48px'}">
|
||||||
|
<el-table-column
|
||||||
|
type="index"
|
||||||
|
label="序号"
|
||||||
|
width="55"
|
||||||
|
align="center">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterNumber"
|
||||||
|
align="center"
|
||||||
|
sortable
|
||||||
|
label="章条编号"
|
||||||
|
width="101px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="chapterName"
|
||||||
|
align="center"
|
||||||
|
width="200px"
|
||||||
|
label="章节名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
align="center"
|
||||||
|
prop="commentText"
|
||||||
|
label="修改意见内容(包括理由或依据)">
|
||||||
|
<el-table-column
|
||||||
|
prop="oldText"
|
||||||
|
align="center"
|
||||||
|
label="修改前">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="newText"
|
||||||
|
align="center"
|
||||||
|
label="修改后">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="changeReason"
|
||||||
|
align="center"
|
||||||
|
label="修改理由">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="reason"
|
||||||
|
align="center"
|
||||||
|
label="原因"
|
||||||
|
width="200px">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="department"
|
||||||
|
align="center"
|
||||||
|
label="提出部门">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="responUserName"
|
||||||
|
align="center"
|
||||||
|
label="提出人">
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column-->
|
||||||
|
<!-- prop="dealComment"-->
|
||||||
|
<!-- align="center"-->
|
||||||
|
<!-- label="处理意见">-->
|
||||||
|
<!-- <template slot-scope="scope">-->
|
||||||
|
<!-- <div>{{ stateText(scope.row.state) }}</div>-->
|
||||||
|
<!-- </template>-->
|
||||||
|
<!-- </el-table-column>-->
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<!-- <el-collapse accordion>-->
|
||||||
|
<!-- <el-collapse-item title="审批意见">-->
|
||||||
|
<!-- <div style="margin: 10px 0;">-->
|
||||||
|
<!-- <el-input-->
|
||||||
|
<!-- type="textarea"-->
|
||||||
|
<!-- :rows="3"-->
|
||||||
|
<!-- resize="none"-->
|
||||||
|
<!-- placeholder="请输入意见"-->
|
||||||
|
<!-- v-model="commentText">-->
|
||||||
|
<!-- </el-input>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- </el-collapse-item>-->
|
||||||
|
<!-- </el-collapse>-->
|
||||||
|
</div>
|
||||||
|
<div class="content" v-show="active === '2'">
|
||||||
|
<el-table
|
||||||
|
height="100%"
|
||||||
|
ref="selection"
|
||||||
|
:data="histortData"
|
||||||
|
tooltip-effect="dark"
|
||||||
|
style="width: 100%"
|
||||||
|
border
|
||||||
|
row-key="id"
|
||||||
|
:header-cell-style="{background: '#f8f8f9', color: '#515a6e'}">
|
||||||
|
<el-table-column
|
||||||
|
prop="name"
|
||||||
|
label="任务步骤"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="assignee"
|
||||||
|
label="任务受理人"
|
||||||
|
align="center"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="createTime"
|
||||||
|
label="创建时间"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="endTime"
|
||||||
|
label="完成时间"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD HH:mm:ss") : "" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="comment"
|
||||||
|
label="流程信息"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.commentText }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="completeFlag"
|
||||||
|
label="状态"
|
||||||
|
align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
</div>
|
||||||
|
<!-- <ProcessFooter-->
|
||||||
|
<!-- show-submit-->
|
||||||
|
<!-- :submitLoading="isSubmit"-->
|
||||||
|
<!-- :saveLoading="saveLoading"-->
|
||||||
|
<!-- @save="handleSave"-->
|
||||||
|
<!-- @submit="handleSubmit"-->
|
||||||
|
<!-- show-over2-->
|
||||||
|
<!-- @over2="handleSubmitNo"-->
|
||||||
|
<!-- approval-->
|
||||||
|
<!-- submitBTNText="同意"-->
|
||||||
|
<!-- show-transfer-->
|
||||||
|
<!-- @transfer="handleTransfer"-->
|
||||||
|
<!-- >-->
|
||||||
|
<!-- </ProcessFooter>-->
|
||||||
|
<Role-tree
|
||||||
|
check-box
|
||||||
|
is-title="转办处理人"
|
||||||
|
:is-visible.sync="drawerModal"
|
||||||
|
@checkedRole="checkedRole"
|
||||||
|
></Role-tree>
|
||||||
|
<loading :loading="dataLoading">正在加载数据</loading>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import ProcessHeader from "../../components/ProcessHeader";
|
||||||
|
import ProcessFooter from "../../components/ProcessFooter";
|
||||||
|
import ProcessTitle from "../../components/ProcessTitle";
|
||||||
|
import { inboundLiaisonDetail, processCreateStand, changeAssigneeNew } from "api/process";
|
||||||
|
import axios from "axios";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "zczqyjStep9Detil",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
dataLoading: true,
|
||||||
|
drawerModal: false,
|
||||||
|
histortData: [],
|
||||||
|
oldData: [],
|
||||||
|
data: [],
|
||||||
|
commentText: "",
|
||||||
|
taskIds: this.$route.query.taskIds,
|
||||||
|
pId: this.$route.query.prcId,
|
||||||
|
roleRow: {},
|
||||||
|
nodeList: [],
|
||||||
|
type: "",
|
||||||
|
defaultProps: {
|
||||||
|
children: "children",
|
||||||
|
label: "name"
|
||||||
|
},
|
||||||
|
treeData: [], // 人员数据
|
||||||
|
modalshowflag: false, // drawer开关
|
||||||
|
drawerTitle: "", //drawer标题
|
||||||
|
textarea: "", // 意见
|
||||||
|
ListModel: false, // 新增编辑抽屉开关
|
||||||
|
active: "1", // 默认显示
|
||||||
|
isSubmit: false,
|
||||||
|
saveLoading: false,
|
||||||
|
form: {
|
||||||
|
lawsNumber: '', // 政策编号
|
||||||
|
lawsName: '', // 政策名称
|
||||||
|
endTime: "", // 结束日期
|
||||||
|
cname: "", // 名称
|
||||||
|
fjList: [],
|
||||||
|
fjListId: '',
|
||||||
|
},
|
||||||
|
formRules: {
|
||||||
|
responUserList: [
|
||||||
|
{required: true, message: "请选择责任人", trigger: "change"}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
json: {}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
ProcessHeader,
|
||||||
|
ProcessFooter,
|
||||||
|
ProcessTitle
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleTransfer() {
|
||||||
|
this.drawerModal = true
|
||||||
|
},
|
||||||
|
checkedRole (data) {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
|
changeAssigneeNew({
|
||||||
|
taskId: this.$route.query.taskIds, // 任务id
|
||||||
|
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||||
|
assignee: data[0].id, // 被委托人
|
||||||
|
pId: this.$route.query.prcId, // 流程实例
|
||||||
|
}).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.drawerModal = false
|
||||||
|
this.$message.success('调整成功')
|
||||||
|
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||||
|
this.processNum()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
this.isSubmit = false
|
||||||
|
this.saveLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 请求转换流程图
|
||||||
|
processNum (row) {
|
||||||
|
axios.request({
|
||||||
|
url: '/api/lawss/activiti/getImg?_t=' + new Date().getTime(),
|
||||||
|
responseType: 'blob',
|
||||||
|
method: 'get',
|
||||||
|
params: {
|
||||||
|
prcNum: this.$route.query.prcNum
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
this.processStep = window.URL.createObjectURL(res.data)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getHistoryData() {
|
||||||
|
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||||
|
prcNum: this.$route.query.prcNum
|
||||||
|
}, {}, res => {
|
||||||
|
this.histortData = res;
|
||||||
|
}, e => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
upload(row, title) {
|
||||||
|
var params = {
|
||||||
|
columnName: {
|
||||||
|
chapterNumber: "章条编号",
|
||||||
|
chapterName: "章节名称",
|
||||||
|
commentText: "修改意见内容(包括理由或依据)",
|
||||||
|
department: "提出部门",
|
||||||
|
responUserName: "提出人",
|
||||||
|
stateText: "处理意见"
|
||||||
|
},
|
||||||
|
dataList: []
|
||||||
|
};
|
||||||
|
params.dataList = JSON.parse(JSON.stringify(row));
|
||||||
|
params.dataList.forEach(item => {
|
||||||
|
if (item.state === "1") {
|
||||||
|
item.stateText = "上报";
|
||||||
|
} else if (item.state === "2") {
|
||||||
|
item.stateText = "处理后上报";
|
||||||
|
} else {
|
||||||
|
item.stateText = "不上报";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
this.$http.downloadFile("/api/lawss/activiti/export_excel", params, title, res => {
|
||||||
|
});
|
||||||
|
},
|
||||||
|
stateText(row) {
|
||||||
|
if (row === "1") {
|
||||||
|
return "上报";
|
||||||
|
} else if (row === "2") {
|
||||||
|
return "处理后上报";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleTabs(name) {
|
||||||
|
this.active = name;
|
||||||
|
},
|
||||||
|
handleSave() {
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
if (this.data.length < 1) {
|
||||||
|
this.$message.warning("请输入征求意见搞");
|
||||||
|
} else {
|
||||||
|
this.isSubmit = true
|
||||||
|
this.saveLoading = true
|
||||||
|
var json = Object.assign(this.form)
|
||||||
|
json.actionFlag = 0;
|
||||||
|
json.commentText = this.commentText;
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskId: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success("提交成功");
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
this.saveLoading = false
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSubmitNo() {
|
||||||
|
if (this.commentText) {
|
||||||
|
this.isSubmit = true;
|
||||||
|
var json = Object.assign(this.form)
|
||||||
|
json.actionFlag = 1;
|
||||||
|
json.commentText = this.commentText;
|
||||||
|
this.$http.post("lawss/activiti/completeTask", {
|
||||||
|
json: JSON.stringify(json),
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
userId: this.$store.getters.userInfo.userId
|
||||||
|
}, {}, res => {
|
||||||
|
if (res.success) {
|
||||||
|
this.$message.success("驳回成功");
|
||||||
|
this.$router.push("/processCenter");
|
||||||
|
}
|
||||||
|
this.isSubmit = false;
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
this.$message.warning("请输入反馈意见");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* @description: 动态表单读取
|
||||||
|
*/
|
||||||
|
getFormFieldList(item) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.form = JSON.parse(JSON.stringify(item))
|
||||||
|
this.form['id'] = item.id
|
||||||
|
this.data = item.info.filter ( item => item.state !== '3');
|
||||||
|
this.dataLoading = false
|
||||||
|
});
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
inboundLiaisonDetail({
|
||||||
|
taskIds: this.taskIds,
|
||||||
|
pId: this.pId
|
||||||
|
}).then(res => {
|
||||||
|
const processForm = JSON.parse(res.mesg)
|
||||||
|
if (processForm.form === undefined) {
|
||||||
|
this.getFormFieldList(processForm)
|
||||||
|
} else {
|
||||||
|
//表单文件处理
|
||||||
|
// this.getTaskId(processForm)
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getHistoryData();
|
||||||
|
this.getData();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="less" scoped>
|
||||||
|
@import '~@/assets/styles/style';
|
||||||
|
|
||||||
|
.zczqyjStep6 {
|
||||||
|
/deep/ .el-drawer__container {
|
||||||
|
.prc-content-border {
|
||||||
|
border: none;
|
||||||
|
padding: 0 20px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.fileClass {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fileClass:hover {
|
||||||
|
color: #0c91e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
.headerTabs {
|
||||||
|
height: 52px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 10px;
|
||||||
|
|
||||||
|
.headerTabsItem {
|
||||||
|
border: 1px solid #c1c1c1;
|
||||||
|
padding: 0 5px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
border: 1px solid #E6A23C;
|
||||||
|
color: #fff;
|
||||||
|
background: #E6A23C;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
height: calc(~'100% - 103px');
|
||||||
|
overflow: auto;
|
||||||
|
|
||||||
|
.tableTitle {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
position: relative;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
|
||||||
|
.tableButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -231,6 +231,9 @@ export default {
|
|||||||
}else if(prcType === 'laws1'){
|
}else if(prcType === 'laws1'){
|
||||||
//政策入库
|
//政策入库
|
||||||
this.toProcessDetail('zcrkStep5',row)
|
this.toProcessDetail('zcrkStep5',row)
|
||||||
|
}else if(prcType === 'laws2'){
|
||||||
|
//政策入库
|
||||||
|
this.toProcessDetail('zczqyjStep9Detil',row)
|
||||||
}else if(prcType === 'buss1'){
|
}else if(prcType === 'buss1'){
|
||||||
//企标入库
|
//企标入库
|
||||||
this.toProcessDetail('bussLibraryDetail',row)
|
this.toProcessDetail('bussLibraryDetail',row)
|
||||||
|
|||||||
Reference in New Issue
Block a user