4f756156 by renchao@pashanhoo.com

style:审批意见模块样式的修改

1 parent f35ecc5f
1 <!-- 1 <!--
2 * @Description: 审批意见 2 * @Description: 审批意见
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-05-17 10:41:24 4 * @LastEditTime: 2023-09-28 11:27:03
5 --> 5 -->
6 <template> 6 <template>
7 <div class="spyj loadingtext"> 7 <div class="spyj loadingtext">
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
14 <el-form 14 <el-form
15 :model="tableData[index]" 15 :model="tableData[index]"
16 label-width="120px" 16 label-width="120px"
17 ref="ruleFormRef'" 17 ref="ruleFormRef'">
18 >
19 <div class="spyj_form"> 18 <div class="spyj_form">
20 <div class="item_left"> 19 <div class="item_left">
21 <div class="right">{{ item.jdmc }}意见</div> 20 <div class="right">{{ item.jdmc }}意见</div>
...@@ -30,14 +29,11 @@ ...@@ -30,14 +29,11 @@
30 :rows="4" 29 :rows="4"
31 class="opinion" 30 class="opinion"
32 placeholder="请输入审批意见" 31 placeholder="请输入审批意见"
33 v-model="item.shyj" 32 v-model="item.shyj"></el-input>
34 ></el-input>
35 <el-button 33 <el-button
36 class="opinion_btn" 34 class="opinion_btn"
37 @click="commonOpinion(index)" 35 @click="commonOpinion(index)"
38 v-if="ableOperation" 36 v-if="ableOperation">常用意见</el-button>
39 >常用意见</el-button
40 >
41 </el-form-item> 37 </el-form-item>
42 </el-col> 38 </el-col>
43 </el-row> 39 </el-row>
...@@ -47,8 +43,7 @@ ...@@ -47,8 +43,7 @@
47 <el-input 43 <el-input
48 maxlength="20" 44 maxlength="20"
49 :disabled="!ableOperation" 45 :disabled="!ableOperation"
50 v-model="item.shryxm" 46 v-model="item.shryxm"></el-input>
51 ></el-input>
52 </el-form-item> 47 </el-form-item>
53 </el-col> 48 </el-col>
54 <el-col :span="8"> 49 <el-col :span="8">
...@@ -59,8 +54,7 @@ ...@@ -59,8 +54,7 @@
59 type="date" 54 type="date"
60 placeholder="选择日期" 55 placeholder="选择日期"
61 value-format="yyyy-MM-dd HH:mm:ss" 56 value-format="yyyy-MM-dd HH:mm:ss"
62 format="yyyy-MM-dd" 57 format="yyyy-MM-dd">
63 >
64 </el-date-picker> 58 </el-date-picker>
65 </el-form-item> 59 </el-form-item>
66 </el-col> 60 </el-col>
...@@ -77,13 +71,13 @@ ...@@ -77,13 +71,13 @@
77 </div> 71 </div>
78 </template> 72 </template>
79 <script> 73 <script>
80 import { addidea, getShList } from "@/api/djbRepair.js"; 74 import { addidea, getShList } from "@/api/djbRepair.js";
81 import { mapGetters } from "vuex"; 75 import { mapGetters } from "vuex";
82 export default { 76 export default {
83 computed: { 77 computed: {
84 ...mapGetters(["userData", "yjsqOptions"]), 78 ...mapGetters(["userData", "yjsqOptions"]),
85 }, 79 },
86 data() { 80 data () {
87 return { 81 return {
88 isNoData: false, 82 isNoData: false,
89 currentindex: 0, 83 currentindex: 0,
...@@ -91,17 +85,17 @@ export default { ...@@ -91,17 +85,17 @@ export default {
91 tableData: [{ jdmc: "初审" }, { jdmc: "复审" }, { jdmc: "核定" }], 85 tableData: [{ jdmc: "初审" }, { jdmc: "复审" }, { jdmc: "核定" }],
92 falg: false, 86 falg: false,
93 falg1: false, 87 falg1: false,
94 monitor:true 88 monitor: true
95 }; 89 };
96 }, 90 },
97 91
98 watch: { 92 watch: {
99 yjsqOptions: { 93 yjsqOptions: {
100 handler(val) { 94 handler (val) {
101 if(this.monitor){ 95 if (this.monitor) {
102 this.add(""); 96 this.add("");
103 this.monitor=false 97 this.monitor = false
104 }else{ 98 } else {
105 this.add(val.opinion); 99 this.add(val.opinion);
106 } 100 }
107 }, 101 },
...@@ -109,8 +103,8 @@ export default { ...@@ -109,8 +103,8 @@ export default {
109 immediate: true, 103 immediate: true,
110 }, 104 },
111 }, 105 },
112 created() {}, 106 created () { },
113 mounted() { 107 mounted () {
114 this.ableOperation = this.$parent.ableOperation; 108 this.ableOperation = this.$parent.ableOperation;
115 this.getShList(); 109 this.getShList();
116 }, 110 },
...@@ -120,7 +114,7 @@ export default { ...@@ -120,7 +114,7 @@ export default {
120 * @param {*} obj 114 * @param {*} obj
121 * @author: renchao 115 * @author: renchao
122 */ 116 */
123 getShList() { 117 getShList () {
124 this.$startLoading(); 118 this.$startLoading();
125 var formdata = { 119 var formdata = {
126 bsmRepair: this.$parent.bsmRepair, 120 bsmRepair: this.$parent.bsmRepair,
...@@ -139,12 +133,12 @@ export default { ...@@ -139,12 +133,12 @@ export default {
139 * @param {*} obj 133 * @param {*} obj
140 * @author: renchao 134 * @author: renchao
141 */ 135 */
142 judgment(obj) {}, 136 judgment (obj) { },
143 /** 137 /**
144 * @description: onSubmit 138 * @description: onSubmit
145 * @author: renchao 139 * @author: renchao
146 */ 140 */
147 onSubmit() { 141 onSubmit () {
148 if ( 142 if (
149 this.tableData[2].shyj == null || 143 this.tableData[2].shyj == null ||
150 this.tableData[2].shryxm == null || 144 this.tableData[2].shryxm == null ||
...@@ -157,12 +151,12 @@ export default { ...@@ -157,12 +151,12 @@ export default {
157 this.$message.error("请完善核定意见信息填写"); 151 this.$message.error("请完善核定意见信息填写");
158 } else { 152 } else {
159 this.falg = true; 153 this.falg = true;
160 if (this.tableData[0].shyj != null && this.tableData[0].shyj != ""|| 154 if (this.tableData[0].shyj != null && this.tableData[0].shyj != "" ||
161 this.tableData[0].shryxm != null && this.tableData[0].shryxm != ""|| 155 this.tableData[0].shryxm != null && this.tableData[0].shryxm != "" ||
162 this.tableData[0].shkssj != null && this.tableData[0].shkssj != "") { 156 this.tableData[0].shkssj != null && this.tableData[0].shkssj != "") {
163 if ( 157 if (
164 this.tableData[0].shyj == null || 158 this.tableData[0].shyj == null ||
165 this.tableData[0].shyj == ""|| 159 this.tableData[0].shyj == "" ||
166 this.tableData[0].shryxm == null || 160 this.tableData[0].shryxm == null ||
167 this.tableData[0].shryxm == "" || 161 this.tableData[0].shryxm == "" ||
168 this.tableData[0].shkssj == null || 162 this.tableData[0].shkssj == null ||
...@@ -176,12 +170,12 @@ export default { ...@@ -176,12 +170,12 @@ export default {
176 } else { 170 } else {
177 this.falg = true; 171 this.falg = true;
178 } 172 }
179 if (this.tableData[1].shyj != null && this.tableData[1].shyj != ""|| 173 if (this.tableData[1].shyj != null && this.tableData[1].shyj != "" ||
180 this.tableData[1].shryxm != null && this.tableData[1].shryxm != ""|| 174 this.tableData[1].shryxm != null && this.tableData[1].shryxm != "" ||
181 this.tableData[1].shkssj != null && this.tableData[1].shkssj != "") { 175 this.tableData[1].shkssj != null && this.tableData[1].shkssj != "") {
182 if ( 176 if (
183 this.tableData[1].shyj == null || 177 this.tableData[1].shyj == null ||
184 this.tableData[1].shyj == ""|| 178 this.tableData[1].shyj == "" ||
185 this.tableData[1].shryxm == null || 179 this.tableData[1].shryxm == null ||
186 this.tableData[1].shryxm == "" || 180 this.tableData[1].shryxm == "" ||
187 this.tableData[1].shkssj == null || 181 this.tableData[1].shkssj == null ||
...@@ -219,7 +213,7 @@ export default { ...@@ -219,7 +213,7 @@ export default {
219 * @param {*} index 213 * @param {*} index
220 * @author: renchao 214 * @author: renchao
221 */ 215 */
222 commonOpinion(index) { 216 commonOpinion (index) {
223 this.currentindex = index; 217 this.currentindex = index;
224 this.$popupDialog( 218 this.$popupDialog(
225 "常用意见", 219 "常用意见",
...@@ -234,22 +228,21 @@ export default { ...@@ -234,22 +228,21 @@ export default {
234 * @param {*} val 228 * @param {*} val
235 * @author: renchao 229 * @author: renchao
236 */ 230 */
237 add(val) { 231 add (val) {
238 if (val != "") { 232 if (val != "") {
239 this.$set(this.tableData[this.currentindex], "shyj", val); 233 this.$set(this.tableData[this.currentindex], "shyj", val);
240 } 234 }
241 }, 235 },
242 }, 236 },
243 }; 237 };
244 </script> 238 </script>
245 <style scoped lang="scss"> 239 <style scoped lang="scss">
246 @import "~@/styles/mixin.scss"; 240 @import "~@/styles/mixin.scss";
247 241
248 .spyj { 242 .spyj {
249 width: 100%; 243 width: 100%;
250 height: 100%; 244 height: 100%;
251 background-color: #f5f5f5; 245 background-color: #f5f5f5;
252 padding: 5px;
253 .box { 246 .box {
254 overflow-x: auto; 247 overflow-x: auto;
255 width: 100%; 248 width: 100%;
...@@ -355,5 +348,5 @@ export default { ...@@ -355,5 +348,5 @@ export default {
355 .el-date-editor.el-input { 348 .el-date-editor.el-input {
356 width: 100%; 349 width: 100%;
357 } 350 }
358 } 351 }
359 </style> 352 </style>
......
1 <!-- 1 <!--
2 * @Description: 审批意见 2 * @Description: 审批意见
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-16 14:39:55 4 * @LastEditTime: 2023-09-28 11:27:06
5 --> 5 -->
6 <template> 6 <template>
7 <div class="spyj loadingtext"> 7 <div class="spyj loadingtext">
...@@ -14,8 +14,7 @@ ...@@ -14,8 +14,7 @@
14 <el-form 14 <el-form
15 :model="tableData[index]" 15 :model="tableData[index]"
16 label-width="120px" 16 label-width="120px"
17 ref="ruleForm'" 17 ref="ruleForm'">
18 >
19 <div class="spyj_form"> 18 <div class="spyj_form">
20 <div class="item_left"> 19 <div class="item_left">
21 <div class="right">{{ item.jdmc }}意见</div> 20 <div class="right">{{ item.jdmc }}意见</div>
...@@ -25,22 +24,18 @@ ...@@ -25,22 +24,18 @@
25 <el-col :span="24"> 24 <el-col :span="24">
26 <el-form-item 25 <el-form-item
27 label-width="0" 26 label-width="0"
28 class="opinion_item" 27 class="opinion_item">
29 >
30 <el-input 28 <el-input
31 :disabled="!viewEdit || item.show" 29 :disabled="!viewEdit || item.show"
32 type="textarea" 30 type="textarea"
33 :rows="4" 31 :rows="4"
34 class="opinion" 32 class="opinion"
35 placeholder="请输入审批意见" 33 placeholder="请输入审批意见"
36 v-model="item.shyj" 34 v-model="item.shyj"></el-input>
37 ></el-input>
38 <el-button 35 <el-button
39 class="opinion_btn" 36 class="opinion_btn"
40 @click="commonOpinion(index)" 37 @click="commonOpinion(index)"
41 :disabled="!viewEdit|| item.show" 38 :disabled="!viewEdit|| item.show">常用意见</el-button>
42 >常用意见</el-button
43 >
44 </el-form-item> 39 </el-form-item>
45 </el-col> 40 </el-col>
46 </el-row> 41 </el-row>
...@@ -61,23 +56,21 @@ ...@@ -61,23 +56,21 @@
61 </el-form> 56 </el-form>
62 </div> 57 </div>
63 <div class="submit_button" v-if="viewEdit"> 58 <div class="submit_button" v-if="viewEdit">
64 <el-button type="primary" :disabled="shows" @click="onSubmit()" 59 <el-button type="primary" :disabled="shows" @click="onSubmit()">保存</el-button>
65 >保存</el-button
66 >
67 </div> 60 </div>
68 </div> 61 </div>
69 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> --> 62 <!-- <el-empty v-if="isNoData" description="暂无数据"></el-empty> -->
70 </div> 63 </div>
71 </template> 64 </template>
72 <script> 65 <script>
73 import { saveSpyjBySlsq, getSpyjList } from "@/api/opinion.js"; 66 import { saveSpyjBySlsq, getSpyjList } from "@/api/opinion.js";
74 import { mapGetters } from "vuex"; 67 import { mapGetters } from "vuex";
75 import { getNewDatesh } from "@/utils/util"; 68 import { getNewDatesh } from "@/utils/util";
76 export default { 69 export default {
77 computed: { 70 computed: {
78 ...mapGetters(["dqhj", "yjsqOptions", "userInfo"]), 71 ...mapGetters(["dqhj", "yjsqOptions", "userInfo"]),
79 }, 72 },
80 data() { 73 data () {
81 return { 74 return {
82 currentindex: 0, 75 currentindex: 0,
83 refresh: 10, 76 refresh: 10,
...@@ -92,14 +85,14 @@ export default { ...@@ -92,14 +85,14 @@ export default {
92 85
93 watch: { 86 watch: {
94 yjsqOptions: { 87 yjsqOptions: {
95 handler(val) { 88 handler (val) {
96 this.add(val.opinion); 89 this.add(val.opinion);
97 }, 90 },
98 deep: true, 91 deep: true,
99 immediate: true, 92 immediate: true,
100 }, 93 },
101 dqhj: { 94 dqhj: {
102 handler(val) { 95 handler (val) {
103 this.propsParam = this.$attrs; 96 this.propsParam = this.$attrs;
104 this.dataset() 97 this.dataset()
105 this.getShList(); 98 this.getShList();
...@@ -110,14 +103,14 @@ export default { ...@@ -110,14 +103,14 @@ export default {
110 }, 103 },
111 104
112 }, 105 },
113 created() {}, 106 created () { },
114 methods: { 107 methods: {
115 /** 108 /**
116 * @description: dataset 109 * @description: dataset
117 * @param {*} 数据处理 110 * @param {*} 数据处理
118 * @author: renchao 111 * @author: renchao
119 */ 112 */
120 dataset(){ 113 dataset () {
121 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 114 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
122 // switch (this.$parent.dqhj) { 115 // switch (this.$parent.dqhj) {
123 // case "cs": 116 // case "cs":
...@@ -139,7 +132,7 @@ export default { ...@@ -139,7 +132,7 @@ export default {
139 * @param {*} obj 132 * @param {*} obj
140 * @author: renchao 133 * @author: renchao
141 */ 134 */
142 getShList() { 135 getShList () {
143 this.$startLoading(); 136 this.$startLoading();
144 var formdata = new FormData(); 137 var formdata = new FormData();
145 formdata.append("bsmBusiness", this.propsParam.bsmBusiness); 138 formdata.append("bsmBusiness", this.propsParam.bsmBusiness);
...@@ -191,16 +184,16 @@ export default { ...@@ -191,16 +184,16 @@ export default {
191 * @description: onSubmit 184 * @description: onSubmit
192 * @author: renchao 185 * @author: renchao
193 */ 186 */
194 onSubmit() { 187 onSubmit () {
195 188
196 this.tableData.forEach((item, index) => { 189 this.tableData.forEach((item, index) => {
197 item["bsmBusiness"] = this.propsParam.bsmBusiness; 190 item["bsmBusiness"] = this.propsParam.bsmBusiness;
198 item["czjg"] = "1"; 191 item["czjg"] = "1";
199 }); 192 });
200 var index = this.tableData.findIndex( 193 var index = this.tableData.findIndex(
201 (item) => item.shyj ==null||item.shyj =="" 194 (item) => item.shyj == null || item.shyj == ""
202 ); 195 );
203 if(index==-1){ 196 if (index == -1) {
204 this.shows = true; 197 this.shows = true;
205 saveSpyjBySlsq(this.tableData).then((res) => { 198 saveSpyjBySlsq(this.tableData).then((res) => {
206 if (res.code === 200) { 199 if (res.code === 200) {
...@@ -211,7 +204,7 @@ export default { ...@@ -211,7 +204,7 @@ export default {
211 this.$message.error(res.message); 204 this.$message.error(res.message);
212 } 205 }
213 }); 206 });
214 }else{ 207 } else {
215 this.$message.error("意见不能为空"); 208 this.$message.error("意见不能为空");
216 } 209 }
217 210
...@@ -222,7 +215,7 @@ export default { ...@@ -222,7 +215,7 @@ export default {
222 * @param {*} index 215 * @param {*} index
223 * @author: renchao 216 * @author: renchao
224 */ 217 */
225 commonOpinion(index) { 218 commonOpinion (index) {
226 this.currentindex = index; 219 this.currentindex = index;
227 this.$popupDialog( 220 this.$popupDialog(
228 "常用意见", 221 "常用意见",
...@@ -237,22 +230,21 @@ export default { ...@@ -237,22 +230,21 @@ export default {
237 * @param {*} val 230 * @param {*} val
238 * @author: renchao 231 * @author: renchao
239 */ 232 */
240 add(val) { 233 add (val) {
241 if (val != ""&&this.tableData.length>0) { 234 if (val != "" && this.tableData.length > 0) {
242 this.$set(this.tableData[this.currentindex], "shyj", val); 235 this.$set(this.tableData[this.currentindex], "shyj", val);
243 } 236 }
244 }, 237 },
245 }, 238 },
246 }; 239 };
247 </script> 240 </script>
248 <style scoped lang="scss"> 241 <style scoped lang="scss">
249 @import "~@/styles/mixin.scss"; 242 @import "~@/styles/mixin.scss";
250 243
251 .spyj { 244 .spyj {
252 width: 100%; 245 width: 100%;
253 height: 100%; 246 height: 100%;
254 background-color: #f5f5f5; 247 background-color: #f5f5f5;
255 padding: 5px;
256 .box { 248 .box {
257 overflow-x: auto; 249 overflow-x: auto;
258 width: 100%; 250 width: 100%;
...@@ -357,5 +349,5 @@ export default { ...@@ -357,5 +349,5 @@ export default {
357 .el-date-editor.el-input { 349 .el-date-editor.el-input {
358 width: 100%; 350 width: 100%;
359 } 351 }
360 } 352 }
361 </style> 353 </style>
......