审核意见
Showing
2 changed files
with
37 additions
and
91 deletions
| ... | @@ -114,6 +114,14 @@ export function saveSpyj (data) { | ... | @@ -114,6 +114,14 @@ export function saveSpyj (data) { |
| 114 | data | 114 | data |
| 115 | }) | 115 | }) |
| 116 | } | 116 | } |
| 117 | // 根据受理申请保存审批意见 | ||
| 118 | export function saveSpyjBySlsq (data) { | ||
| 119 | return request({ | ||
| 120 | url: '/business/workFlow/saveSpyjBySlsq', | ||
| 121 | method: 'post', | ||
| 122 | data | ||
| 123 | }) | ||
| 124 | } | ||
| 117 | // 登簿接口 | 125 | // 登簿接口 |
| 118 | export function record (data) { | 126 | export function record (data) { |
| 119 | return request({ | 127 | return request({ | ... | ... |
| ... | @@ -6,52 +6,19 @@ | ... | @@ -6,52 +6,19 @@ |
| 6 | <div class='spyj'> | 6 | <div class='spyj'> |
| 7 | <b class="spyj_title">审批表</b> | 7 | <b class="spyj_title">审批表</b> |
| 8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> | 8 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> |
| 9 | <div class="spyj_form"> | 9 | <div class="spyj_form" v-for="(item,index) in tableData" :key="index"> |
| 10 | <div class="item_left"> | 10 | <div class="item_left"> |
| 11 | 初审意见 | 11 | {{item.jdmc}}意见 |
| 12 | </div> | 12 | </div> |
| 13 | <div class="item_right"> | 13 | <div class="item_right"> |
| 14 | <el-row> | 14 | <el-row > |
| 15 | <el-col :span="24"> | ||
| 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.shyj"> | ||
| 18 | </el-input> | ||
| 19 | <el-popover placement="right" width="50" trigger="hover"> | ||
| 20 | <ul class="pointer"> | ||
| 21 | <li @click="handleClick">复审</li> | ||
| 22 | <li>初审意见</li> | ||
| 23 | </ul> | ||
| 24 | <el-button class="opinion_btn" slot="reference">常用意见</el-button> | ||
| 25 | </el-popover> | ||
| 26 | </el-form-item> | ||
| 27 | </el-col> | ||
| 28 | </el-row> | ||
| 29 | |||
| 30 | <el-row> | ||
| 31 | <el-col :span="16"> | ||
| 32 | <el-form-item label="审查人:" prop="scr"> | ||
| 33 | {{ ruleForm.shryxm }} | ||
| 34 | </el-form-item> | ||
| 35 | </el-col> | ||
| 36 | <el-col :span="8"> | ||
| 37 | <el-form-item label="审核时间:" prop="shjssj"> | ||
| 38 | {{ ruleForm.shjssj }} | ||
| 39 | </el-form-item> | ||
| 40 | </el-col> | ||
| 41 | </el-row> | ||
| 42 | </div> | ||
| 43 | </div> | ||
| 44 | <div class="spyj_form"> | ||
| 45 | <div class="item_left"> | ||
| 46 | 复审意见 | ||
| 47 | </div> | ||
| 48 | <div class="item_right"> | ||
| 49 | <el-row> | ||
| 50 | <el-col :span="24"> | 15 | <el-col :span="24"> |
| 51 | <el-form-item label-width="0" class="opinion_item" prop="shyj"> | 16 | <el-form-item label-width="0" class="opinion_item" prop="shyj"> |
| 52 | <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj"> | 17 | <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入审批意见" |
| 53 | </el-input> | 18 | v-if="item.stepShjy == '1'" v-model="ruleForm.shyj"></el-input> |
| 54 | <el-popover placement="right" width="50" trigger="hover"> | 19 | <el-input type="textarea" :rows="4" class="opinion" v-model="item.shyj" |
| 20 | v-else :disabled="true"></el-input> | ||
| 21 | <el-popover placement="right" width="50" trigger="hover" v-if="item.stepShjy == '1'"> | ||
| 55 | <ul class="pointer"> | 22 | <ul class="pointer"> |
| 56 | <li @click="handleClick">复审</li> | 23 | <li @click="handleClick">复审</li> |
| 57 | <li>初审意见</li> | 24 | <li>初审意见</li> |
| ... | @@ -61,51 +28,15 @@ | ... | @@ -61,51 +28,15 @@ |
| 61 | </el-form-item> | 28 | </el-form-item> |
| 62 | </el-col> | 29 | </el-col> |
| 63 | </el-row> | 30 | </el-row> |
| 64 | |||
| 65 | <el-row> | 31 | <el-row> |
| 66 | <el-col :span="16"> | 32 | <el-col :span="16"> |
| 67 | <el-form-item label="审查人:" prop="scr"> | 33 | <el-form-item label="审查人:" prop="scr"> |
| 68 | {{ ruleForm.shryxm }} | 34 | {{ item.shryxm }} |
| 69 | </el-form-item> | 35 | </el-form-item> |
| 70 | </el-col> | 36 | </el-col> |
| 71 | <el-col :span="8"> | 37 | <el-col :span="8"> |
| 72 | <el-form-item label="审核时间:" prop="shjssj"> | 38 | <el-form-item label="审核时间:" prop="shjssj"> |
| 73 | {{ ruleForm.shjssj }} | 39 | {{ item.shjssj }} |
| 74 | </el-form-item> | ||
| 75 | </el-col> | ||
| 76 | </el-row> | ||
| 77 | </div> | ||
| 78 | </div> | ||
| 79 | <div class="spyj_form"> | ||
| 80 | <div class="item_left"> | ||
| 81 | 核定意见 | ||
| 82 | </div> | ||
| 83 | <div class="item_right"> | ||
| 84 | <el-row> | ||
| 85 | <el-col :span="24"> | ||
| 86 | <el-form-item label-width="0" class="opinion_item" prop="shyj"> | ||
| 87 | <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入内容" v-model="ruleForm.shyj"> | ||
| 88 | </el-input> | ||
| 89 | <el-popover placement="right" width="50" trigger="hover"> | ||
| 90 | <ul class="pointer"> | ||
| 91 | <li @click="handleClick">复审</li> | ||
| 92 | <li>初审意见</li> | ||
| 93 | </ul> | ||
| 94 | <el-button class="opinion_btn" slot="reference">常用意见</el-button> | ||
| 95 | </el-popover> | ||
| 96 | </el-form-item> | ||
| 97 | </el-col> | ||
| 98 | </el-row> | ||
| 99 | |||
| 100 | <el-row> | ||
| 101 | <el-col :span="16"> | ||
| 102 | <el-form-item label="审查人:" prop="scr"> | ||
| 103 | {{ ruleForm.shryxm }} | ||
| 104 | </el-form-item> | ||
| 105 | </el-col> | ||
| 106 | <el-col :span="8"> | ||
| 107 | <el-form-item label="审核时间:" prop="shjssj"> | ||
| 108 | {{ ruleForm.shjssj }} | ||
| 109 | </el-form-item> | 40 | </el-form-item> |
| 110 | </el-col> | 41 | </el-col> |
| 111 | </el-row> | 42 | </el-row> |
| ... | @@ -118,47 +49,53 @@ | ... | @@ -118,47 +49,53 @@ |
| 118 | </div> | 49 | </div> |
| 119 | </template> | 50 | </template> |
| 120 | <script> | 51 | <script> |
| 121 | import { getSpyjList,saveSpyj } from "@/api/fqsq.js"; | 52 | import { getSpyjList,saveSpyj,saveSpyjBySlsq} from "@/api/fqsq.js"; |
| 122 | export default { | 53 | export default { |
| 123 | components: {}, | 54 | components: {}, |
| 124 | props: { | 55 | props: { |
| 125 | bsmBusiness:{type:String}, | ||
| 126 | bestepid: {type:String} | ||
| 127 | }, | 56 | }, |
| 128 | data () { | 57 | data () { |
| 129 | return { | 58 | return { |
| 59 | bsmSlsq: '', | ||
| 60 | bestepid: '', | ||
| 130 | ruleForm: { | 61 | ruleForm: { |
| 131 | shyj: '', | 62 | shyj: '', |
| 132 | bsmBusiness: this.bsmBusiness, | 63 | bsmSlsq: this.$route.query.bsmSlsq, |
| 133 | stepid: this.bestepid | 64 | stepid: this.$route.query.bestepid |
| 134 | }, | 65 | }, |
| 135 | rules: { | 66 | rules: { |
| 136 | shyj: [ | 67 | shyj: [ |
| 137 | { required: true, message: '请输入审批意见', trigger: 'blur' } | 68 | { required: true, message: '请输入审批意见', trigger: 'blur' } |
| 138 | ], | 69 | ], |
| 139 | }, | 70 | }, |
| 140 | unitData: [] | 71 | tableData: [], |
| 72 | propsParam: {}, | ||
| 141 | } | 73 | } |
| 142 | }, | 74 | }, |
| 75 | created() { | ||
| 76 | this.propsParam = this.$attrs; | ||
| 77 | this.list(); | ||
| 78 | }, | ||
| 143 | methods: { | 79 | methods: { |
| 144 | handleClick () { | 80 | handleClick () { |
| 145 | console.log(1) | 81 | console.log(1) |
| 146 | }, | 82 | }, |
| 147 | //审批意见数据初始化 | 83 | //审批意见数据初始化 |
| 148 | list (bsmBusiness,bestepid) { | 84 | list () { |
| 149 | var formdata = new FormData(); | 85 | var formdata = new FormData(); |
| 150 | formdata.append("bsmBusiness", bsmBusiness); | 86 | formdata.append("bsmBusiness", this.propsParam.bsmBusiness); |
| 151 | formdata.append("bestepid", bestepid); | 87 | formdata.append("bestepid", this.$route.query.bestepid); |
| 152 | getSpyjList(formdata).then((res) => { | 88 | getSpyjList(formdata).then((res) => { |
| 153 | if (res.code === 200 && res.result) { | 89 | if (res.code === 200 && res.result) { |
| 154 | this.ruleForm = {...res.result[0]} | 90 | this.tableData = res.result |
| 91 | this.ruleForm.shyj = res.result[res.result.length-1].shyj | ||
| 155 | } | 92 | } |
| 156 | }) | 93 | }) |
| 157 | }, | 94 | }, |
| 158 | onSubmit () { | 95 | onSubmit () { |
| 159 | saveSpyj(this.ruleForm).then(res => { | 96 | saveSpyjBySlsq(this.ruleForm).then(res => { |
| 160 | if (res.code === 200) { | 97 | if (res.code === 200) { |
| 161 | 98 | this.$message.success("保存成功") | |
| 162 | }else{ | 99 | }else{ |
| 163 | this.$message.error(res.message) | 100 | this.$message.error(res.message) |
| 164 | } | 101 | } |
| ... | @@ -221,6 +158,7 @@ export default { | ... | @@ -221,6 +158,7 @@ export default { |
| 221 | 158 | ||
| 222 | .opinion { | 159 | .opinion { |
| 223 | position: relative; | 160 | position: relative; |
| 161 | font-size: 16px; | ||
| 224 | 162 | ||
| 225 | /deep/.el-textarea__inner { | 163 | /deep/.el-textarea__inner { |
| 226 | border: none; | 164 | border: none; | ... | ... |
-
Please register or sign in to post a comment