修改bug
This commit is contained in:
@@ -1305,6 +1305,7 @@ export default {
|
||||
if (cur[i].pId == null || cur[i].pId === '') {
|
||||
this.parentNode = cur[i]
|
||||
}
|
||||
console.log(str);
|
||||
this.zNodes = str
|
||||
}
|
||||
// 查完左侧目录后,如果没有选中的,设置最外层选中
|
||||
@@ -1450,7 +1451,6 @@ export default {
|
||||
loading: 'loading'
|
||||
},
|
||||
res => {
|
||||
console.log(res)
|
||||
if (res.ok) {
|
||||
this.$copyText(this.copyMessage).then((e) => {
|
||||
})
|
||||
@@ -1657,7 +1657,6 @@ export default {
|
||||
let regSt = /<table/g
|
||||
let countSt = newContent.match(regSt)
|
||||
let countEd = newContent.match(regEd)
|
||||
console.log(countSt)
|
||||
if (countSt === null) {
|
||||
this.$message.warning('内容必须包含一个表格')
|
||||
} else if (countSt.length > 1 && countEd.length > 1) {
|
||||
@@ -2115,7 +2114,6 @@ export default {
|
||||
this.standItemEO.ZRBM = this.standItemEO.responsibleUnit
|
||||
this.saveItemId = row.id
|
||||
this.showUpdateItemInfo()
|
||||
console.log(this.standItemEO)
|
||||
},
|
||||
getOrgTreeSource () {
|
||||
this.$http.get('sys/org/getTree', {}, {_this: this},
|
||||
@@ -2148,7 +2146,6 @@ export default {
|
||||
attribute (row) {
|
||||
this.getFileName(row)
|
||||
this.showItemInfoEO = JSON.parse(JSON.stringify(row))
|
||||
console.log(this.showItemInfoEO)
|
||||
},
|
||||
getDicTypeName(opt, type) {
|
||||
const _type = type ? type.split(',') : []
|
||||
|
||||
@@ -376,7 +376,7 @@
|
||||
import ProcessHeader from "../../components/ProcessHeader";
|
||||
import ProcessFooter from "../../components/ProcessFooter";
|
||||
import ProcessTitle from "../../components/ProcessTitle";
|
||||
import { inboundLiaisonDetail, saveTaskFirst } from "api/process";
|
||||
import { inboundLiaisonDetail, saveinboundTask } from "api/process";
|
||||
|
||||
export default {
|
||||
name: "bzqdfbStep3",
|
||||
@@ -700,9 +700,10 @@ export default {
|
||||
pId: this.$route.query.prcId,
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
saveinboundTask(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.$router.push('/processCenter')
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
this.saveLoading = false;
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
sortable="custom"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.createTime ? $moment(scope.row.createTime).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -185,7 +185,7 @@
|
||||
label="完成时间"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD') : '' }}</span>
|
||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format("YYYY-MM-DD") : "" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -201,7 +201,7 @@
|
||||
label="状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? '已完成' : '未完成'}}</span>
|
||||
<span>{{ scope.row.endTime ? "已完成" : "未完成" }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -242,7 +242,7 @@
|
||||
processType: 1,
|
||||
loading: false,
|
||||
dataList: [],//清单里的标准数据
|
||||
approvalOpinion: '', // 通过0/驳回1
|
||||
approvalOpinion: "", // 通过0/驳回1
|
||||
active: "1",
|
||||
listType: "country", //选择的清单类型
|
||||
isSubmit: false,
|
||||
@@ -251,7 +251,7 @@
|
||||
selectedList: [], //选择清单的选择框
|
||||
selectList: [], //选择标准的选择框
|
||||
bringData: [],
|
||||
commentText: '', //填写会签意见
|
||||
commentText: "", //填写会签意见
|
||||
page: 1,
|
||||
total: 0,
|
||||
pageSize: this.$store.getters.userInfo.configContent,
|
||||
@@ -261,7 +261,7 @@
|
||||
descriptionList: "", //清单说明
|
||||
enclosure: "", //附件
|
||||
signFlag: "1", //是否会签 1为会签 2为不会签
|
||||
approvalOpinion: '', // 通过/驳回
|
||||
approvalOpinion: "", // 通过/驳回
|
||||
dataList: [{
|
||||
standNumber: "", //标准号
|
||||
cnName: "", //中文名称
|
||||
@@ -291,17 +291,17 @@
|
||||
},
|
||||
methods: {
|
||||
processTable() {
|
||||
this.$http.get('lawss/activiti/get_list_by_instance', {
|
||||
this.$http.get("lawss/activiti/get_list_by_instance", {
|
||||
prcNum: this.$route.query.prcNum,
|
||||
sortWord: this.shunxu ? this.paixu : '',
|
||||
sortWord: this.shunxu ? this.paixu : "",
|
||||
shunxu: this.shunxu
|
||||
}, {
|
||||
loading: 'loading',
|
||||
loading: "loading",
|
||||
_this: this
|
||||
}, res => {
|
||||
this.detailData = res
|
||||
this.detailData = res;
|
||||
}, e => {
|
||||
})
|
||||
});
|
||||
},
|
||||
//tab发生变化
|
||||
handleTabs(name) {
|
||||
@@ -332,28 +332,28 @@
|
||||
pId: this.pId
|
||||
}).then(res => {
|
||||
if (res) {
|
||||
const processForm = JSON.parse(res.mesg)
|
||||
this.getFormFieldList(processForm)
|
||||
const processForm = JSON.parse(res.mesg);
|
||||
this.getFormFieldList(processForm);
|
||||
}
|
||||
}).catch(e => {
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
},
|
||||
/**
|
||||
* @description: 动态表单读取
|
||||
*/
|
||||
getFormFieldList(item) {
|
||||
this.$nextTick(() => {
|
||||
this.listForm = JSON.parse(JSON.stringify(item))
|
||||
this.listForm.prcNum = this.prcNum
|
||||
this.listForm.prcName = this.prcName
|
||||
this.listForm['id'] = item.id
|
||||
this.listForm.dataList = item.dataList
|
||||
this.dataList = item.dataList
|
||||
this.listForm.applyUpdUserId = item.applyUpdUserId
|
||||
this.listForm.jlUserId = item.jlUserId
|
||||
this.listForm.zrUserId = item.zrUserId
|
||||
})
|
||||
this.listForm = JSON.parse(JSON.stringify(item));
|
||||
this.listForm.prcNum = this.prcNum;
|
||||
this.listForm.prcName = this.prcName;
|
||||
this.listForm["id"] = item.id;
|
||||
this.listForm.dataList = item.dataList;
|
||||
this.dataList = item.dataList;
|
||||
this.listForm.applyUpdUserId = item.applyUpdUserId;
|
||||
this.listForm.jlUserId = item.jlUserId;
|
||||
this.listForm.zrUserId = item.zrUserId;
|
||||
});
|
||||
},
|
||||
// 请求上传的文件信息
|
||||
getFileInfo() {
|
||||
@@ -365,8 +365,8 @@
|
||||
console.log(res);
|
||||
this.$nextTick(() => {
|
||||
res.data.map(item => {
|
||||
this.listForm.modelName = item.oldFileName
|
||||
this.listForm.model = item.id
|
||||
this.listForm.modelName = item.oldFileName;
|
||||
this.listForm.model = item.id;
|
||||
});
|
||||
});
|
||||
}, e => {
|
||||
@@ -396,28 +396,29 @@
|
||||
},
|
||||
//驳回事件
|
||||
beforeBack() {
|
||||
this.listForm.approvalOpinion = '1'
|
||||
this.handleSubmit()
|
||||
this.listForm.approvalOpinion = "1";
|
||||
this.handleSubmit();
|
||||
},
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
if (this.commentText === null || this.commentText === undefined || this.commentText === ''){
|
||||
this.$message.warning('请填写审批意见')
|
||||
}
|
||||
if (this.commentText === null || this.commentText === undefined || this.commentText === "") {
|
||||
this.$message.warning("请填写审批意见");
|
||||
} else {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
json: json,
|
||||
json: json
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.$router.push('/processCenter')
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
//选择标准取消事件
|
||||
closeDrawer() {
|
||||
@@ -446,11 +447,11 @@
|
||||
data.forEach(item => {
|
||||
this.$set(this.textStatusMap, item.value, item.label);
|
||||
});
|
||||
},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
listNoDataText() {
|
||||
return this.processType === 1 ? '暂无待办流程' : '暂无已办流程'
|
||||
return this.processType === 1 ? "暂无待办流程" : "暂无已办流程";
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -462,9 +463,9 @@
|
||||
this.standStateOptions = res.data.WBZTCLASS; // 文本状态
|
||||
this.setMap(this.standStateOptions);
|
||||
});
|
||||
this.getData()
|
||||
this.processTable()
|
||||
},
|
||||
this.getData();
|
||||
this.processTable();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@@ -69,43 +69,43 @@
|
||||
width="55"
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="prcNum"
|
||||
label="流程编号"
|
||||
align="center"
|
||||
width="150"
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="prcNum"-->
|
||||
<!-- label="流程编号"-->
|
||||
<!-- align="center"-->
|
||||
<!-- width="150"-->
|
||||
<!-- >-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="prcType"
|
||||
label="流程类型"
|
||||
align="center"
|
||||
width="180"
|
||||
width="500"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.prcName || getPrcName(scope.row.prcType) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="prcName"
|
||||
label="流程名称"
|
||||
show-overflow-tooltip
|
||||
align="center"
|
||||
min-width="250"
|
||||
>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="prcName"-->
|
||||
<!-- label="流程名称"-->
|
||||
<!-- show-overflow-tooltip-->
|
||||
<!-- align="center"-->
|
||||
<!-- min-width="250"-->
|
||||
<!-- >-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column
|
||||
prop="creatUserName"
|
||||
label="发起人"
|
||||
align="center"
|
||||
width="90"
|
||||
width="300"
|
||||
>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="creatTime"
|
||||
label="创建日期"
|
||||
align="center"
|
||||
width="150"
|
||||
width="380"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.creatTime ? $moment(scope.row.creatTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
|
||||
@@ -115,7 +115,7 @@
|
||||
prop="endTime"
|
||||
label="完成日期"
|
||||
align="center"
|
||||
width="150"
|
||||
width="380"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.endTime ? $moment(scope.row.endTime).format('YYYY-MM-DD HH:mm:ss') : '' }}</span>
|
||||
|
||||
Reference in New Issue
Block a user