--no commit message
Showing
13 changed files
with
99 additions
and
99 deletions
... | @@ -128,3 +128,15 @@ export function getZtQlxx (params) { | ... | @@ -128,3 +128,15 @@ export function getZtQlxx (params) { |
128 | data | 128 | data |
129 | }) | 129 | }) |
130 | } | 130 | } |
131 | /** | ||
132 | * @description: 添加审核意见 | ||
133 | * @param {*} data | ||
134 | * @author: renchao | ||
135 | */ | ||
136 | export function addidea (data) { | ||
137 | return request({ | ||
138 | url: SERVER.SERVERAPI + '/rest/djbRepair/sh', | ||
139 | method: 'post', | ||
140 | data | ||
141 | }) | ||
142 | } | ... | ... |
... | @@ -302,7 +302,7 @@ | ... | @@ -302,7 +302,7 @@ |
302 | </el-form-item> | 302 | </el-form-item> |
303 | </el-col> | 303 | </el-col> |
304 | </div> | 304 | </div> |
305 | <el-row class="btn"> | 305 | <el-row class="btn" v-if="!$route.query.viewtype"> |
306 | <el-form-item> | 306 | <el-form-item> |
307 | <el-button type="primary" @click="onSubmit">保存</el-button> | 307 | <el-button type="primary" @click="onSubmit">保存</el-button> |
308 | </el-form-item> | 308 | </el-form-item> | ... | ... |
... | @@ -471,7 +471,7 @@ | ... | @@ -471,7 +471,7 @@ |
471 | /> | 471 | /> |
472 | </div> | 472 | </div> |
473 | </div> | 473 | </div> |
474 | <el-row class="btn"> | 474 | <el-row class="btn" v-if="!$route.query.viewtype"> |
475 | <el-form-item> | 475 | <el-form-item> |
476 | <el-button type="primary" @click="onSubmit">保存</el-button> | 476 | <el-button type="primary" @click="onSubmit">保存</el-button> |
477 | </el-form-item> | 477 | </el-form-item> | ... | ... |
... | @@ -253,7 +253,7 @@ | ... | @@ -253,7 +253,7 @@ |
253 | /> | 253 | /> |
254 | </div> | 254 | </div> |
255 | </div> | 255 | </div> |
256 | <el-row class="btn"> | 256 | <el-row class="btn" v-if="!$route.query.viewtype"> |
257 | <el-form-item> | 257 | <el-form-item> |
258 | <el-button type="primary" @click="onSubmit">保存</el-button> | 258 | <el-button type="primary" @click="onSubmit">保存</el-button> |
259 | </el-form-item> | 259 | </el-form-item> | ... | ... |
... | @@ -328,7 +328,7 @@ | ... | @@ -328,7 +328,7 @@ |
328 | /> | 328 | /> |
329 | </div> | 329 | </div> |
330 | </div> | 330 | </div> |
331 | <el-row class="btn"> | 331 | <el-row class="btn" v-if="!$route.query.viewtype"> |
332 | <el-form-item> | 332 | <el-form-item> |
333 | <el-button type="primary" @click="onSubmit">保存</el-button> | 333 | <el-button type="primary" @click="onSubmit">保存</el-button> |
334 | </el-form-item> | 334 | </el-form-item> |
... | @@ -429,6 +429,7 @@ export default { | ... | @@ -429,6 +429,7 @@ export default { |
429 | mounted() {}, | 429 | mounted() {}, |
430 | methods: { | 430 | methods: { |
431 | loadData() { | 431 | loadData() { |
432 | |||
432 | this.propsParam.isEdit=this.$parent.isEdit | 433 | this.propsParam.isEdit=this.$parent.isEdit |
433 | init(this.propsParam).then((res) => { | 434 | init(this.propsParam).then((res) => { |
434 | if (res.code == 200) { | 435 | if (res.code == 200) { | ... | ... |
... | @@ -273,7 +273,7 @@ | ... | @@ -273,7 +273,7 @@ |
273 | /> | 273 | /> |
274 | </div> | 274 | </div> |
275 | </div> | 275 | </div> |
276 | <el-row class="btn" v-if="!$route.query.viewtype && ableOperation"> | 276 | <el-row class="btn" v-if="!$route.query.viewtype"> |
277 | <el-form-item> | 277 | <el-form-item> |
278 | <el-button type="primary" @click="onSubmit">保存</el-button> | 278 | <el-button type="primary" @click="onSubmit">保存</el-button> |
279 | </el-form-item> | 279 | </el-form-item> |
... | @@ -375,6 +375,7 @@ export default { | ... | @@ -375,6 +375,7 @@ export default { |
375 | return store.getters.dictData[val]; | 375 | return store.getters.dictData[val]; |
376 | }, | 376 | }, |
377 | loadData() { | 377 | loadData() { |
378 | |||
378 | this.propsParam.isEdit = this.$parent.isEdit; | 379 | this.propsParam.isEdit = this.$parent.isEdit; |
379 | init(this.propsParam).then((res) => { | 380 | init(this.propsParam).then((res) => { |
380 | if (res.code == 200) { | 381 | if (res.code == 200) { | ... | ... |
... | @@ -292,7 +292,7 @@ | ... | @@ -292,7 +292,7 @@ |
292 | /> | 292 | /> |
293 | </div> | 293 | </div> |
294 | </div> | 294 | </div> |
295 | <el-row class="btn"> | 295 | <el-row class="btn" v-if="!$route.query.viewtype"> |
296 | <el-form-item> | 296 | <el-form-item> |
297 | <el-button type="primary" @click="onSubmit">保存</el-button> | 297 | <el-button type="primary" @click="onSubmit">保存</el-button> |
298 | </el-form-item> | 298 | </el-form-item> | ... | ... |
... | @@ -203,8 +203,7 @@ | ... | @@ -203,8 +203,7 @@ |
203 | /> | 203 | /> |
204 | </div> | 204 | </div> |
205 | </div> | 205 | </div> |
206 | <!-- <el-row class="btn" v-if="!$route.query.viewtype && ableOperation"> --> | 206 | <el-row class="btn" v-if="!$route.query.viewtype"> |
207 | <el-row class="btn"> | ||
208 | <el-form-item> | 207 | <el-form-item> |
209 | <el-button type="primary" @click="onSubmit">保存</el-button> | 208 | <el-button type="primary" @click="onSubmit">保存</el-button> |
210 | </el-form-item> | 209 | </el-form-item> | ... | ... |
... | @@ -4,140 +4,123 @@ | ... | @@ -4,140 +4,123 @@ |
4 | * @LastEditTime: 2023-05-17 10:41:24 | 4 | * @LastEditTime: 2023-05-17 10:41:24 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class='spyj loadingtext'> | 7 | <div class="spyj loadingtext"> |
8 | <div class="box"> | 8 | <div class="box"> |
9 | <b class="spyj_title">审批表</b> | 9 | <b class="spyj_title">审批表</b> |
10 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px"> | 10 | <el-form |
11 | <div class="spyj_form" v-for="(item, index) in tableData" :key="index"> | 11 | :model="ruleForm" |
12 | <div class="item_left"> | 12 | :rules="rules" |
13 | {{ item.jdmc }}意见 | 13 | ref="rule" |
14 | </div> | 14 | label-width="120px" |
15 | > | ||
16 | <div class="spyj_form"> | ||
17 | <div class="item_left">意见</div> | ||
15 | <div class="item_right"> | 18 | <div class="item_right"> |
16 | <el-row> | 19 | <el-row> |
17 | <el-col :span="24"> | 20 | <el-col :span="24"> |
18 | <el-form-item label-width="0" class="opinion_item" prop="shyj"> | 21 | <el-form-item label-width="0" class="opinion_item" prop="shyj"> |
19 | <el-input type="textarea" :rows="4" class="opinion" placeholder="请输入审批意见" | 22 | <el-input |
20 | v-if="item.stepShjy == '1' && ableOperation" v-model="ruleForm.shyj"></el-input> | 23 | type="textarea" |
21 | <el-input type="textarea" :rows="4" class="opinion" v-model="item.shyj" v-else :disabled="true"> | 24 | :rows="4" |
22 | </el-input> | 25 | class="opinion" |
23 | <el-button class="opinion_btn" @click="commonOpinion" | 26 | placeholder="请输入审批意见" |
24 | v-if="item.stepShjy == '1' && ableOperation">常用意见</el-button> | 27 | v-model="ruleForm.shyj" |
28 | ></el-input> | ||
25 | </el-form-item> | 29 | </el-form-item> |
26 | </el-col> | 30 | </el-col> |
27 | </el-row> | 31 | </el-row> |
28 | <el-row> | 32 | <el-row> |
29 | <el-col :span="16"> | 33 | <el-col :span="16"> |
30 | <el-form-item label="审查人" prop="shryxm"> | 34 | <el-form-item label="审查人" prop="shryxm"> |
31 | {{ item.shryxm }} | 35 | <el-input v-model="ruleForm.shryxm"></el-input> |
32 | </el-form-item> | 36 | </el-form-item> |
33 | </el-col> | 37 | </el-col> |
34 | <el-col :span="8"> | 38 | <el-col :span="8"> |
35 | <el-form-item label="审核时间" prop="shjssj" :key="refresh"> | 39 | <el-form-item label="审核时间" prop="shjssj" :key="refresh"> |
36 | {{ item.shjssj }} | 40 | <el-date-picker |
41 | v-model="ruleForm.shsj" | ||
42 | type="date" | ||
43 | placeholder="选择日期" | ||
44 | value-format="yyyy/MM/dd HH:mm:ss" | ||
45 | format="yyyy/MM/dd" | ||
46 | > | ||
47 | </el-date-picker> | ||
37 | </el-form-item> | 48 | </el-form-item> |
38 | </el-col> | 49 | </el-col> |
39 | </el-row> | 50 | </el-row> |
40 | </div> | 51 | </div> |
41 | </div> | 52 | </div> |
42 | <div class="submit_button" v-if="ableOperation"> | 53 | <div class="submit_button" v-if="!$route.query.viewtype"> |
43 | <el-button type="primary" @click="onSubmit">保存</el-button> | 54 | <el-button type="primary" @click="onSubmit">保存</el-button> |
44 | </div> | 55 | </div> |
45 | </el-form> | 56 | </el-form> |
46 | </div> | 57 | </div> |
47 | <el-empty v-if="isNoData" description="暂无数据"></el-empty> | 58 | <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> --> |
48 | </div> | 59 | </div> |
49 | </template> | 60 | </template> |
50 | <script> | 61 | <script> |
51 | import { getSpyjList, saveSpyj, saveSpyjBySlsq } from "@/api/fqsq.js"; | 62 | import { addidea } from "@/api/djbbl.js"; |
52 | import { mapGetters } from 'vuex' | 63 | import { mapGetters } from "vuex"; |
53 | export default { | 64 | export default { |
54 | computed: { | 65 | computed: { |
55 | ...mapGetters(['userData', 'yjsqOptions']) | 66 | ...mapGetters(["userData", "yjsqOptions"]), |
56 | }, | 67 | }, |
57 | data () { | 68 | data() { |
58 | return { | 69 | return { |
59 | isNoData: false, | 70 | isNoData: false, |
60 | bsmSlsq: '', | ||
61 | //刷新值 | 71 | //刷新值 |
62 | refresh: 10, | 72 | refresh: 10, |
63 | ableOperation: true, | 73 | ableOperation: true, |
64 | bsmSlsq: this.$route.query.bsmSlsq, | 74 | ruleForm: { |
65 | bestepid: this.$route.query.bestepid, | 75 | }, |
66 | ruleForm: {}, | ||
67 | rules: { | 76 | rules: { |
68 | shyj: [ | 77 | shyj: [{ required: true, message: "请输入审批意见", trigger: "blur" }], |
69 | { required: true, message: '请输入审批意见', trigger: 'blur' } | ||
70 | ], | ||
71 | }, | 78 | }, |
72 | tableData: [], | 79 | tableData: [1], |
73 | propsParam: {} | 80 | }; |
74 | } | ||
75 | }, | 81 | }, |
82 | |||
76 | watch: { | 83 | watch: { |
77 | yjsqOptions: { | 84 | |
78 | handler (val) { | ||
79 | this.ruleForm.shyj = val | ||
80 | }, | ||
81 | deep: true, | ||
82 | immediate: true | ||
83 | }, | 85 | }, |
86 | created() { | ||
84 | }, | 87 | }, |
85 | mounted () { | 88 | mounted() { |
86 | this.propsParam = this.$attrs; | ||
87 | if (this.$route.query.viewtype) { | ||
88 | this.ableOperation = false | ||
89 | } | ||
90 | this.list(); | ||
91 | }, | 89 | }, |
92 | methods: { | 90 | methods: { |
93 | //审批意见数据初始化 | 91 | onSubmit() { |
94 | list () { | 92 | this.ruleForm.bsmBusiness =this.$parent.bsmRepair; |
95 | let that = this | 93 | this.ruleForm.jdmc = "审核"; |
96 | this.$startLoading() | 94 | addidea(this.ruleForm).then((res) => { |
97 | var formdata = new FormData(); | ||
98 | formdata.append("bsmBusiness", this.propsParam.bsmRepair); | ||
99 | formdata.append("bestepid", this.$route.query.bestepid); | ||
100 | formdata.append("ableOperation", this.ableOperation) | ||
101 | getSpyjList(formdata).then((res) => { | ||
102 | this.$endLoading() | ||
103 | if (res.code === 200 && res.result) { | ||
104 | console.log("this.tableData this.tableData this.tableData ",this.tableData ); | ||
105 | this.tableData = res.result ? res.result : [] | ||
106 | console.log("this.tableDatathis.tableDatathis.tableDatathis.tableData",this.tableData); | ||
107 | if (res.result.length == 0) { | ||
108 | that.isNoData = true | ||
109 | } | ||
110 | this.ruleForm = res.result[res.result.length - 1] | ||
111 | } | ||
112 | }) | ||
113 | }, | ||
114 | onSubmit () { | ||
115 | this.ruleForm.bsmSlsq = this.bsmSlsq | ||
116 | this.ruleForm.bestepid = this.bestepid | ||
117 | saveSpyjBySlsq(this.ruleForm).then(res => { | ||
118 | if (res.code === 200) { | 95 | if (res.code === 200) { |
119 | this.$message.success("保存成功") | 96 | this.$message.success("保存成功"); |
120 | this.refresh += 1 | 97 | this.refresh += 1; |
121 | } else { | 98 | } else { |
122 | this.$message.error(res.message) | 99 | this.$message.error(res.message); |
123 | } | 100 | } |
124 | }) | 101 | }); |
125 | }, | 102 | }, |
126 | //打开常用意见列表弹窗 | 103 | //打开常用意见列表弹窗 |
127 | commonOpinion () { | 104 | // commonOpinion() { |
128 | this.$popupDialog("常用意见", "djbworkflow/components/dialog/commonOpinion", {}, "70%", true) | 105 | // this.$popupDialog( |
106 | // "常用意见", | ||
107 | // "djbworkflow/components/dialog/commonOpinion", | ||
108 | // {}, | ||
109 | // "70%", | ||
110 | // true | ||
111 | // ); | ||
112 | // }, | ||
113 | // //使用常用意见 | ||
114 | // useOpinion(opinion) { | ||
115 | // this.ruleForm.shyj = opinion; | ||
116 | // }, | ||
129 | }, | 117 | }, |
130 | //使用常用意见 | 118 | }; |
131 | useOpinion (opinion) { | ||
132 | this.ruleForm.shyj = opinion | ||
133 | } | ||
134 | } | ||
135 | } | ||
136 | </script> | 119 | </script> |
137 | <style scoped lang='scss'> | 120 | <style scoped lang="scss"> |
138 | @import "~@/styles/mixin.scss"; | 121 | @import "~@/styles/mixin.scss"; |
139 | 122 | ||
140 | .spyj { | 123 | .spyj { |
141 | width: 100%; | 124 | width: 100%; |
142 | height: 100%; | 125 | height: 100%; |
143 | background-color: #f5f5f5; | 126 | background-color: #f5f5f5; |
... | @@ -229,5 +212,5 @@ | ... | @@ -229,5 +212,5 @@ |
229 | text-align: center; | 212 | text-align: center; |
230 | margin: 15px 0; | 213 | margin: 15px 0; |
231 | } | 214 | } |
232 | } | 215 | } |
233 | </style> | 216 | </style> | ... | ... |
... | @@ -127,6 +127,7 @@ export default { | ... | @@ -127,6 +127,7 @@ export default { |
127 | treedata: {}, | 127 | treedata: {}, |
128 | tabdata: [], | 128 | tabdata: [], |
129 | defaultNode: {}, | 129 | defaultNode: {}, |
130 | bsmRepair:"" | ||
130 | }; | 131 | }; |
131 | }, | 132 | }, |
132 | mounted() { | 133 | mounted() { |
... | @@ -166,6 +167,9 @@ export default { | ... | @@ -166,6 +167,9 @@ export default { |
166 | }, | 167 | }, |
167 | // 获取右侧选项卡 | 168 | // 获取右侧选项卡 |
168 | getCurrentSelectProps(val) { | 169 | getCurrentSelectProps(val) { |
170 | if(val.bsmRepair){ | ||
171 | this.bsmRepair=val.bsmRepair | ||
172 | } | ||
169 | if (val.bdcdyid) { | 173 | if (val.bdcdyid) { |
170 | this.oneSelectProps = val; | 174 | this.oneSelectProps = val; |
171 | } | 175 | } |
... | @@ -215,11 +219,9 @@ export default { | ... | @@ -215,11 +219,9 @@ export default { |
215 | }, | 219 | }, |
216 | //切换选项卡内容组件 | 220 | //切换选项卡内容组件 |
217 | getFromRouter(tabname) { | 221 | getFromRouter(tabname) { |
218 | console.log("切换选项卡内容组件", tabname,this.tabList); | ||
219 | this.componentTag = getForm(tabname); | 222 | this.componentTag = getForm(tabname); |
220 | }, | 223 | }, |
221 | closefp() { | 224 | closefp() { |
222 | console.log("点击分屏"); | ||
223 | this.splitScreen = this.splitScreen ? false : true; | 225 | this.splitScreen = this.splitScreen ? false : true; |
224 | this.$store.dispatch("app/set1tScreen", this.splitScreen); | 226 | this.$store.dispatch("app/set1tScreen", this.splitScreen); |
225 | this.getFromRouter(this.tabList[0].value); | 227 | this.getFromRouter(this.tabList[0].value); | ... | ... |
... | @@ -67,9 +67,11 @@ | ... | @@ -67,9 +67,11 @@ |
67 | ...mapGetters(["dictData"]) | 67 | ...mapGetters(["dictData"]) |
68 | }, | 68 | }, |
69 | created () { | 69 | created () { |
70 | this.ableOperation = this.$parent?.currentSelectTab?.ableOperation || false | ||
71 | this.clmlInitList(1) | 70 | this.clmlInitList(1) |
72 | }, | 71 | }, |
72 | mounted() { | ||
73 | this.ableOperation = this.$parent.isEdit; | ||
74 | }, | ||
73 | methods: { | 75 | methods: { |
74 | // 自动预览 | 76 | // 自动预览 |
75 | nextPriview () { | 77 | nextPriview () { |
... | @@ -125,7 +127,6 @@ | ... | @@ -125,7 +127,6 @@ |
125 | this.previewImg.bsmSj = item.bsmSj; | 127 | this.previewImg.bsmSj = item.bsmSj; |
126 | }, | 128 | }, |
127 | updateList (val) { | 129 | updateList (val) { |
128 | console.log(val, 'valvalvalval'); | ||
129 | let that = this | 130 | let that = this |
130 | if (val.children.length != []) { //删除最后一张图片时 val=null | 131 | if (val.children.length != []) { //删除最后一张图片时 val=null |
131 | this.tableData.forEach(item => { | 132 | this.tableData.forEach(item => { | ... | ... |
... | @@ -83,6 +83,7 @@ | ... | @@ -83,6 +83,7 @@ |
83 | }, | 83 | }, |
84 | }, | 84 | }, |
85 | mounted () { | 85 | mounted () { |
86 | this.propsParam.isEdit=this.$parent.isEdit | ||
86 | this.propsParam = this.$attrs; | 87 | this.propsParam = this.$attrs; |
87 | if (this.$route.query.viewtype) { | 88 | if (this.$route.query.viewtype) { |
88 | this.ableOperation = false | 89 | this.ableOperation = false | ... | ... |
... | @@ -198,9 +198,9 @@ | ... | @@ -198,9 +198,9 @@ |
198 | "/djbworkFrameview?bsmSlsq=" + | 198 | "/djbworkFrameview?bsmSlsq=" + |
199 | item.bsmSlsq + | 199 | item.bsmSlsq + |
200 | "&bestepid=" + | 200 | "&bestepid=" + |
201 | item.bestepid + | 201 | item.bestepid+ |
202 | "&isEdit=" + | 202 | "&bsmBusiness=" + |
203 | true | 203 | "&viewtype=1" |
204 | ); | 204 | ); |
205 | window.open(href, `urlname${item.bsmSlsq}`); | 205 | window.open(href, `urlname${item.bsmSlsq}`); |
206 | } else { | 206 | } else { | ... | ... |
-
Please register or sign in to post a comment