0a41b548 by 蔡俊立

审批意见

1 parent d9ee3a4a
...@@ -96,3 +96,21 @@ export function stepExpandInfo (data) { ...@@ -96,3 +96,21 @@ export function stepExpandInfo (data) {
96 data 96 data
97 }) 97 })
98 } 98 }
99
100 // 获取审批意见
101 export function getSpyjList (data) {
102 return request({
103 url: '/business/workFlow/getSpyjList',
104 method: 'post',
105 data
106 })
107 }
108
109 // 保存审批意见
110 export function saveSpyj (data) {
111 return request({
112 url: '/business/workFlow/saveSpyj',
113 method: 'post',
114 data
115 })
116 }
......
...@@ -138,6 +138,8 @@ export default { ...@@ -138,6 +138,8 @@ export default {
138 message: '删除成功!' 138 message: '删除成功!'
139 }); 139 });
140 this.fetchData() 140 this.fetchData()
141 }else {
142 this.$message.error(res.message);
141 } 143 }
142 }) 144 })
143 }).catch(() => { 145 }).catch(() => {
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
13 <div class="item_right"> 13 <div class="item_right">
14 <el-row> 14 <el-row>
15 <el-col :span="24"> 15 <el-col :span="24">
16 <el-form-item label-width="0" class="opinion_item" prop="csyj"> 16 <el-form-item label-width="0" class="opinion_item" prop="shyj">
17 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.csyj"> 17 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj">
18 </el-input> 18 </el-input>
19 <el-popover placement="right" width="50" trigger="hover"> 19 <el-popover placement="right" width="50" trigger="hover">
20 <ul class="pointer"> 20 <ul class="pointer">
...@@ -28,18 +28,13 @@ ...@@ -28,18 +28,13 @@
28 </el-row> 28 </el-row>
29 29
30 <el-row> 30 <el-row>
31 <el-col :span="8"> 31 <el-col :span="16">
32 <el-form-item label="审查人" prop="scr"> 32 <el-form-item label="审查人" prop="scr">
33 {{ ruleForm.scr }} 33 {{ ruleForm.shryxm }}
34 </el-form-item> 34 </el-form-item>
35 </el-col> 35 </el-col>
36 <el-col :span="8"> 36 <el-col :span="8">
37 <el-form-item label="审核开始时间" prop="shkssj"> 37 <el-form-item label="审核时间:" prop="shjssj">
38 {{ ruleForm.shkssj }}
39 </el-form-item>
40 </el-col>
41 <el-col :span="8">
42 <el-form-item label="审核结束时间" prop="shjssj">
43 {{ ruleForm.shjssj }} 38 {{ ruleForm.shjssj }}
44 </el-form-item> 39 </el-form-item>
45 </el-col> 40 </el-col>
...@@ -53,8 +48,8 @@ ...@@ -53,8 +48,8 @@
53 <div class="item_right"> 48 <div class="item_right">
54 <el-row> 49 <el-row>
55 <el-col :span="24"> 50 <el-col :span="24">
56 <el-form-item label-width="0" class="opinion_item" prop="csyj"> 51 <el-form-item label-width="0" class="opinion_item" prop="shyj">
57 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.csyj"> 52 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj">
58 </el-input> 53 </el-input>
59 <el-popover placement="right" width="50" trigger="hover"> 54 <el-popover placement="right" width="50" trigger="hover">
60 <ul class="pointer"> 55 <ul class="pointer">
...@@ -68,18 +63,13 @@ ...@@ -68,18 +63,13 @@
68 </el-row> 63 </el-row>
69 64
70 <el-row> 65 <el-row>
71 <el-col :span="8"> 66 <el-col :span="16">
72 <el-form-item label="审查人" prop="scr"> 67 <el-form-item label="审查人" prop="scr">
73 {{ ruleForm.scr }} 68 {{ ruleForm.shryxm }}
74 </el-form-item> 69 </el-form-item>
75 </el-col> 70 </el-col>
76 <el-col :span="8"> 71 <el-col :span="8">
77 <el-form-item label="审核开始时间" prop="shkssj"> 72 <el-form-item label="审核时间:" prop="shjssj">
78 {{ ruleForm.shkssj }}
79 </el-form-item>
80 </el-col>
81 <el-col :span="8">
82 <el-form-item label="审核结束时间" prop="shjssj">
83 {{ ruleForm.shjssj }} 73 {{ ruleForm.shjssj }}
84 </el-form-item> 74 </el-form-item>
85 </el-col> 75 </el-col>
...@@ -93,8 +83,8 @@ ...@@ -93,8 +83,8 @@
93 <div class="item_right"> 83 <div class="item_right">
94 <el-row> 84 <el-row>
95 <el-col :span="24"> 85 <el-col :span="24">
96 <el-form-item label-width="0" class="opinion_item" prop="csyj"> 86 <el-form-item label-width="0" class="opinion_item" prop="shyj">
97 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.csyj"> 87 <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj">
98 </el-input> 88 </el-input>
99 <el-popover placement="right" width="50" trigger="hover"> 89 <el-popover placement="right" width="50" trigger="hover">
100 <ul class="pointer"> 90 <ul class="pointer">
...@@ -108,18 +98,13 @@ ...@@ -108,18 +98,13 @@
108 </el-row> 98 </el-row>
109 99
110 <el-row> 100 <el-row>
111 <el-col :span="8"> 101 <el-col :span="16">
112 <el-form-item label="审查人" prop="scr"> 102 <el-form-item label="审查人" prop="scr">
113 {{ ruleForm.scr }} 103 {{ ruleForm.shryxm }}
114 </el-form-item> 104 </el-form-item>
115 </el-col> 105 </el-col>
116 <el-col :span="8"> 106 <el-col :span="8">
117 <el-form-item label="审核开始时间" prop="shkssj"> 107 <el-form-item label="审核时间:" prop="shjssj">
118 {{ ruleForm.shkssj }}
119 </el-form-item>
120 </el-col>
121 <el-col :span="8">
122 <el-form-item label="审核结束时间" prop="shjssj">
123 {{ ruleForm.shjssj }} 108 {{ ruleForm.shjssj }}
124 </el-form-item> 109 </el-form-item>
125 </el-col> 110 </el-col>
...@@ -127,32 +112,60 @@ ...@@ -127,32 +112,60 @@
127 </div> 112 </div>
128 </div> 113 </div>
129 <div class="submit_button"> 114 <div class="submit_button">
130 <el-button type="primary">保存</el-button> 115 <el-button type="primary" @click="onSubmit">保存</el-button>
131 </div> 116 </div>
132 </el-form> 117 </el-form>
133 </div> 118 </div>
134 </template> 119 </template>
135 <script> 120 <script>
136 121 import { getSpyjList,saveSpyj } from "@/api/fqsq.js";
137 export default { 122 export default {
138 components: {}, 123 components: {},
124 props: {
125 bsmBusiness:{type:String},
126 bestepid: {type:String}
127 },
139 data () { 128 data () {
140 return { 129 return {
141 ruleForm: { 130 ruleForm: {
142 csyj: '', 131 shyj: '',
143 scr: '', 132 bsmBusiness: this.bsmBusiness,
133 stepid: this.bestepid
144 }, 134 },
145 rules: { 135 rules: {
146 csyj: [ 136 shyj: [
147 { required: true, message: '请输入审批意见', trigger: 'blur' } 137 { required: true, message: '请输入审批意见', trigger: 'blur' }
148 ], 138 ],
149 } 139 },
140 unitData: []
150 } 141 }
151 }, 142 },
152 methods: { 143 methods: {
153 handleClick () { 144 handleClick () {
154 console.log(1) 145 console.log(1)
155 } 146 },
147 //审批意见数据初始化
148 list (bsmBusiness,bestepid) {
149 var formdata = new FormData();
150 formdata.append("bsmBusiness", bsmBusiness);
151 formdata.append("bestepid", bestepid);
152 getSpyjList(formdata).then((res) => {
153 if (res.code === 200 && res.result) {
154 this.ruleForm = {...res.result[0]}
155 }
156 })
157 },
158 onSubmit () {
159 saveSpyj(this.ruleForm).then(res => {
160 if (res.code === 200) {
161
162 }else{
163 this.$message.error(res.message)
164 }
165 })
166
167 },
168
156 }, 169 },
157 } 170 }
158 </script> 171 </script>
......
...@@ -43,8 +43,9 @@ ...@@ -43,8 +43,9 @@
43 <el-tabs v-model="activeName" @tab-click='activeClick'> 43 <el-tabs v-model="activeName" @tab-click='activeClick'>
44 <el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index"> 44 <el-tab-pane :label="item.name" :name="item.value" v-for="(item, index) in tabList" :key="index">
45 <div class="splitScreen-con"> 45 <div class="splitScreen-con">
46 <component ref='slxx' v-if='index == 0' :is="editItem" :flag="flag" :key="key" /> 46 <component ref='slxx' v-if='item.value == "slxx"' :is="editItem" :flag="flag" :key="key" />
47 <component ref='clxx' :is="editItem" v-else-if="index == 1" :key="key" /> 47 <component ref='clxx' :is="editItem" v-else-if='item.value == "clxx"' :key="key" />
48 <component ref='spyj' :is="editItem" v-else-if='item.value == "spyj"' :key="key" :bsmBusiness="bsmBusiness" :bestepid="queryForm.bestepid"/>
48 <component :is="editItem" v-else :key="key" /> 49 <component :is="editItem" v-else :key="key" />
49 </div> 50 </div>
50 </el-tab-pane> 51 </el-tab-pane>
...@@ -144,12 +145,21 @@ export default { ...@@ -144,12 +145,21 @@ export default {
144 } 145 }
145 }, 146 },
146 // 左侧列表点击调用接口 147 // 左侧列表点击调用接口
147 unitClick (item) { 148 unitClick (item) {
148 this.taskId = item.taskId 149 this.taskId = item.taskId
149 this.bsmBusiness = item.bsmBusiness 150 this.bsmBusiness = item.bsmBusiness
150 this.$nextTick(() => { 151 var activeTabName = this.activeName
151 this.$refs.slxx[0].list(item.bsmSldy) 152 if(activeTabName == 'slxx'){
152 }) 153 //受理信息页面接口调取
154 this.$nextTick(() => {
155 this.$refs.slxx[0].list(item.bsmSldy)
156 })
157 }else if(activeTabName == 'spyj'){
158 //审批页面接口调取
159 this.$nextTick(() => {
160 this.$refs.spyj[0].list(this.bsmBusiness,this.queryForm.bestepid)
161 })
162 }
153 }, 163 },
154 operation (index, item) { 164 operation (index, item) {
155 if (item.value == 'zsyl') { 165 if (item.value == 'zsyl') {
......