Commit a7c519ab by Mr. Lan

添加处理备注。

parent f6a75ee8
Showing with 30 additions and 4 deletions
...@@ -31,9 +31,13 @@ ...@@ -31,9 +31,13 @@
</div> </div>
<div class="text item"> <div class="text item">
<el-form label-width="100px"> <el-form label-width="100px">
<el-row>
<el-col :span="12">
<el-form-item label="标题:" style="margin-bottom: 5px"> <el-form-item label="标题:" style="margin-bottom: 5px">
<span>{{ processStructureValue.workOrder.title }}</span> <span>{{ processStructureValue.workOrder.title }}</span>
</el-form-item> </el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="优先级:" style="margin-bottom: 0"> <el-form-item label="优先级:" style="margin-bottom: 0">
<span v-if="processStructureValue.workOrder.priority===2"> <span v-if="processStructureValue.workOrder.priority===2">
<el-tag type="warning">紧急</el-tag> <el-tag type="warning">紧急</el-tag>
...@@ -45,11 +49,13 @@ ...@@ -45,11 +49,13 @@
<el-tag type="success">一般</el-tag> <el-tag type="success">一般</el-tag>
</span> </span>
</el-form-item> </el-form-item>
</el-col>
</el-row>
</el-form> </el-form>
</div> </div>
</el-card> </el-card>
<el-card class="box-card" style="margin-top: 15px"> <el-card class="box-card handle-workOrder-form-info-body" style="margin-top: 15px;">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>表单信息</span> <span>表单信息</span>
</div> </div>
...@@ -66,7 +72,17 @@ ...@@ -66,7 +72,17 @@
/> />
</div> </div>
<div v-if="processStructureValue.userAuthority"> <div v-if="processStructureValue.userAuthority">
<hr style="background-color: #d9d9d9; border:0; height:1px;"> <hr style="background-color: #d9d9d9; border:0; height:1px; margin-bottom: 15px">
<div>
<el-input
v-model="remarks"
type="textarea"
placeholder="请输入备注信息"
maxlength="200"
:autosize="{ minRows: 3, maxRows: 99}"
show-word-limit
/>
</div>
<div class="text item" style="text-align: center;margin-top:18px"> <div class="text item" style="text-align: center;margin-top:18px">
<template v-for="(item, index) in processStructureValue.edges"> <template v-for="(item, index) in processStructureValue.edges">
<el-button <el-button
...@@ -135,6 +151,7 @@ import { listUser } from '@/api/system/sysuser' ...@@ -135,6 +151,7 @@ import { listUser } from '@/api/system/sysuser'
export default { export default {
data() { data() {
return { return {
remarks: '', // 备注信息
alertMessage: '', alertMessage: '',
nodeStepList: [], nodeStepList: [],
circulationHistoryList: [], circulationHistoryList: [],
...@@ -180,6 +197,7 @@ export default { ...@@ -180,6 +197,7 @@ export default {
this.circulationHistoryList = this.processStructureValue.circulationHistory this.circulationHistoryList = this.processStructureValue.circulationHistory
// 获取当前展示节点列表 // 获取当前展示节点列表
this.nodeStepList = []
for (var i = 0; i < this.processStructureValue.nodes.length; i++) { for (var i = 0; i < this.processStructureValue.nodes.length; i++) {
if (this.processStructureValue.nodes[i].id === this.processStructureValue.workOrder.current_state) { if (this.processStructureValue.nodes[i].id === this.processStructureValue.workOrder.current_state) {
// 当前节点 // 当前节点
...@@ -203,11 +221,13 @@ export default { ...@@ -203,11 +221,13 @@ export default {
target_state: item.target, target_state: item.target,
circulation: item.label, circulation: item.label,
flow_properties: item.flowProperties === undefined ? 2 : parseInt(item.flowProperties), flow_properties: item.flowProperties === undefined ? 2 : parseInt(item.flowProperties),
work_order_id: parseInt(this.$route.query.workOrderId) work_order_id: parseInt(this.$route.query.workOrderId),
remarks: this.remarks
}).then(response => { }).then(response => {
if (response.code === 200) { if (response.code === 200) {
// this.$router.push({ name: 'upcoming' }) // this.$router.push({ name: 'upcoming' })
window.location.reload() // window.location.reload()
this.getProcessNodeList()
} }
}) })
}, },
...@@ -220,3 +240,9 @@ export default { ...@@ -220,3 +240,9 @@ export default {
} }
} }
</script> </script>
<style>
.handle-workOrder-form-info-body > .el-card__body {
padding-bottom: 0;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment