52385f8c by renchao@pashanhoo.com

style:申请单元列表

1 parent 3b1a059f
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-30 13:59:09 4 * @LastEditTime: 2023-09-12 11:18:27
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
15 申请单元列表({{ unitData.length }}) 15 申请单元列表({{ unitData.length }})
16 <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button> 16 <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length > 1">批量删除</el-button>
17 </div> 17 </div>
18 <el-menu :default-active="activeIndex" @select="unitClick"> 18 <el-menu v-model="activeIndex" :default-active="activeIndex" @select="unitClick">
19 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> 19 <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index">
20 <p class="dot" v-if="item.issave == '0'"></p> 20 <p class="dot" v-if="item.issave == '0'"></p>
21 <div class="menu-con"> 21 <div class="menu-con">
...@@ -74,18 +74,20 @@ ...@@ -74,18 +74,20 @@
74 watch: { 74 watch: {
75 isRefresh: { 75 isRefresh: {
76 handler (newVal, oldVal) { 76 handler (newVal, oldVal) {
77 if (newVal) this.loadBdcdylist() 77 if (newVal) {
78 this.loadBdcdylist()
79 }
78 }, 80 },
79 immediate: true 81 immediate: true
80 } 82 }
81 }, 83 },
82 methods: { 84 methods: {
83 //读取申请单元信息
84 /** 85 /**
85 * @description: 读取申请单元信息 86 * @description: 读取申请单元信息
86 * @author: renchao 87 * @author: renchao
87 */ 88 */
88 loadBdcdylist () { 89 loadBdcdylist () {
90 let that = this
89 var formdata = new FormData(); 91 var formdata = new FormData();
90 formdata.append("bsmSlsq", this.bsmSlsq); 92 formdata.append("bsmSlsq", this.bsmSlsq);
91 if (this.$route.query.bestepid) { 93 if (this.$route.query.bestepid) {
...@@ -97,24 +99,28 @@ ...@@ -97,24 +99,28 @@
97 if (this.$route.query.type == 'jdcx') { 99 if (this.$route.query.type == 'jdcx') {
98 jdcxLeftMenu(formdata).then((res) => { 100 jdcxLeftMenu(formdata).then((res) => {
99 if (res.code === 200 && res.result) { 101 if (res.code === 200 && res.result) {
100 this.unitData = res.result; 102 that.unitData = res.result;
101 window.unitData = res.result; 103 window.unitData = res.result;
102 this.currentSelectProps = res.result[0]; 104 that.currentSelectProps = res.result[0];
103 this.$emit('getCurrentSelectProps', this.currentSelectProps); 105 that.$emit('getCurrentSelectProps', this.currentSelectProps);
104 this.judgeBatchShow(); 106 that.judgeBatchShow();
105 if (this.showBatch) { 107 if (that.showBatch) {
106 //满足批量查封/批量抵押按钮出现 即先展示批量表单 108 //满足批量查封/批量抵押按钮出现 即先展示批量表单
107 this.batchUnitClick(); 109 that.batchUnitClick();
108 } else { 110 } else {
109 //默认选择单元列表第一个 111 //默认选择单元列表第一个
110 this.unitClick(0); 112 if (sessionStorage.getItem('keyPath')) {
113 that.unitClick(sessionStorage.getItem('keyPath') - 0)
114 } else {
115 that.unitClick(0);
116 }
111 } 117 }
112 } 118 }
113 }) 119 })
114 } else { 120 } else {
115 leftMenu(formdata).then((res) => { 121 leftMenu(formdata).then((res) => {
116 if (res.code === 200 && res.result) { 122 if (res.code === 200 && res.result) {
117 this.unitData = res.result; 123 that.unitData = res.result;
118 window.unitData = res.result; 124 window.unitData = res.result;
119 this.currentSelectProps = res.result[0]; 125 this.currentSelectProps = res.result[0];
120 this.$emit('getCurrentSelectProps', this.currentSelectProps); 126 this.$emit('getCurrentSelectProps', this.currentSelectProps);
...@@ -124,13 +130,16 @@ ...@@ -124,13 +130,16 @@
124 this.batchUnitClick(); 130 this.batchUnitClick();
125 } else { 131 } else {
126 //默认选择单元列表第一个 132 //默认选择单元列表第一个
127 this.unitClick(0); 133 if (sessionStorage.getItem('keyPath')) {
134 that.unitClick(sessionStorage.getItem('keyPath') - 0)
135 } else {
136 that.unitClick(0);
137 }
128 } 138 }
129 } 139 }
130 }) 140 })
131 } 141 }
132 }, 142 },
133 //批量按钮判断
134 /** 143 /**
135 * @description: 批量按钮判断 144 * @description: 批量按钮判断
136 * @author: renchao 145 * @author: renchao
...@@ -224,6 +233,7 @@ ...@@ -224,6 +233,7 @@
224 this.currentSelectProps = this.unitData[index]; 233 this.currentSelectProps = this.unitData[index];
225 this.currentSelectProps.batchOperation = false; 234 this.currentSelectProps.batchOperation = false;
226 this.activeIndex = index.toString(); 235 this.activeIndex = index.toString();
236 sessionStorage.setItem('keyPath', this.activeIndex);
227 //选中表单传递数据 237 //选中表单传递数据
228 this.$emit('getCurrentSelectProps', this.currentSelectProps); 238 this.$emit('getCurrentSelectProps', this.currentSelectProps);
229 this.$parent.stepForm(index); 239 this.$parent.stepForm(index);
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-30 11:01:54 4 * @LastEditTime: 2023-09-12 09:40:17
5 --> 5 -->
6 <template> 6 <template>
7 <div> 7 <div>
...@@ -14,15 +14,13 @@ ...@@ -14,15 +14,13 @@
14 :heightNumSetting="true" 14 :heightNumSetting="true"
15 :minHeight="150" 15 :minHeight="150"
16 height="150" 16 height="150"
17 style="width: 100%" 17 style="width: 100%">
18 >
19 <el-table-column prop="index" width="50" :render-header="renderHeader"> 18 <el-table-column prop="index" width="50" :render-header="renderHeader">
20 <template slot-scope="scope"> 19 <template slot-scope="scope">
21 <i 20 <i
22 class="el-icon-minus pointer" 21 class="el-icon-minus pointer"
23 @click="deleClick(scope.$index, scope.row)" 22 @click="deleClick(scope.$index, scope.row)"
24 v-if="ableOperation" 23 v-if="ableOperation"></i>
25 ></i>
26 <div style="text-align: center" v-else> 24 <div style="text-align: center" v-else>
27 {{ scope.$index + 1 }} 25 {{ scope.$index + 1 }}
28 </div> 26 </div>
...@@ -40,8 +38,7 @@ ...@@ -40,8 +38,7 @@
40 :normalizer="normalizer" 38 :normalizer="normalizer"
41 :appendToBody="true" 39 :appendToBody="true"
42 z-index="9999" 40 z-index="9999"
43 @input="addrow(scope.row)" 41 @input="addrow(scope.row)" />
44 />
45 </template> 42 </template>
46 </el-table-column> 43 </el-table-column>
47 <el-table-column prop="qssj" label="土地使用起始时间" min-width="100"> 44 <el-table-column prop="qssj" label="土地使用起始时间" min-width="100">
...@@ -54,8 +51,7 @@ ...@@ -54,8 +51,7 @@
54 placeholder="选择日期" 51 placeholder="选择日期"
55 value-format="yyyy-MM-dd HH:mm:ss" 52 value-format="yyyy-MM-dd HH:mm:ss"
56 format="yyyy-MM-dd" 53 format="yyyy-MM-dd"
57 @input="startTime(scope.$index)" 54 @input="startTime(scope.$index)">
58 >
59 </el-date-picker> 55 </el-date-picker>
60 </template> 56 </template>
61 </el-table-column> 57 </el-table-column>
...@@ -69,8 +65,7 @@ ...@@ -69,8 +65,7 @@
69 placeholder="选择日期" 65 placeholder="选择日期"
70 value-format="yyyy-MM-dd HH:mm:ss" 66 value-format="yyyy-MM-dd HH:mm:ss"
71 format="yyyy-MM-dd" 67 format="yyyy-MM-dd"
72 @input="endTime(scope.$index)" 68 @input="endTime(scope.$index)">
73 >
74 </el-date-picker> 69 </el-date-picker>
75 </template> 70 </template>
76 </el-table-column> 71 </el-table-column>
...@@ -82,18 +77,16 @@ ...@@ -82,18 +77,16 @@
82 v-model="scope.row.tdsyqx" 77 v-model="scope.row.tdsyqx"
83 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null" 78 oninput="value = (value.match(/^\d*(\.?\d{0,2})/g)[0]) || null"
84 placeholder="请输入内容" 79 placeholder="请输入内容"
85 @input="sumTime(scope.$index, scope.row.tdsyqx)" 80 @input="sumTime(scope.$index, scope.row.tdsyqx)">
86 > 81 ></el-input>
87 ></el-input
88 >
89 </template> 82 </template>
90 </el-table-column> 83 </el-table-column>
91 </el-table> 84 </el-table>
92 </div> 85 </div>
93 </template> 86 </template>
94 <script> 87 <script>
95 import { mapGetters } from "vuex"; 88 import { mapGetters } from "vuex";
96 export default { 89 export default {
97 computed: { 90 computed: {
98 ...mapGetters(["dictData"]), 91 ...mapGetters(["dictData"]),
99 }, 92 },
...@@ -109,7 +102,7 @@ export default { ...@@ -109,7 +102,7 @@ export default {
109 default: true, 102 default: true,
110 }, 103 },
111 }, 104 },
112 data() { 105 data () {
113 return { 106 return {
114 // 键名转换,方法默认是label和children进行树状渲染 107 // 键名转换,方法默认是label和children进行树状渲染
115 key: 0, 108 key: 0,
...@@ -123,7 +116,7 @@ export default { ...@@ -123,7 +116,7 @@ export default {
123 // 起始时间选择范围 116 // 起始时间选择范围
124 pickerStart: {}, 117 pickerStart: {},
125 pickerEnd: {}, 118 pickerEnd: {},
126 normalizer(node) { 119 normalizer (node) {
127 if (node.children == null || node.children == "null") { 120 if (node.children == null || node.children == "null") {
128 delete node.children; 121 delete node.children;
129 } 122 }
...@@ -135,7 +128,7 @@ export default { ...@@ -135,7 +128,7 @@ export default {
135 }, 128 },
136 }; 129 };
137 }, 130 },
138 mounted() {}, 131 mounted () { },
139 watch: { 132 watch: {
140 tableData: { 133 tableData: {
141 handler: function (val, oldVal) { 134 handler: function (val, oldVal) {
...@@ -164,7 +157,7 @@ export default { ...@@ -164,7 +157,7 @@ export default {
164 * @description: renderHeader 157 * @description: renderHeader
165 * @author: renchao 158 * @author: renchao
166 */ 159 */
167 renderHeader() { 160 renderHeader () {
168 return ( 161 return (
169 <div> 162 <div>
170 {" "} 163 {" "}
...@@ -186,8 +179,7 @@ export default { ...@@ -186,8 +179,7 @@ export default {
186 * @description: 修改事件 179 * @description: 修改事件
187 * @author: renchao 180 * @author: renchao
188 */ 181 */
189 addrow(a) { 182 addrow (a) {
190 console.log(a);
191 // this.tableDataList = this.tableDataList.map((item) => { 183 // this.tableDataList = this.tableDataList.map((item) => {
192 // return { 184 // return {
193 // ...item, 185 // ...item,
...@@ -201,7 +193,7 @@ export default { ...@@ -201,7 +193,7 @@ export default {
201 * @param {*} index 193 * @param {*} index
202 * @author: renchao 194 * @author: renchao
203 */ 195 */
204 startTime(index) { 196 startTime (index) {
205 console.log("index", index); 197 console.log("index", index);
206 // let startTime = this.tableDataList[index].tdsyqssj; 198 // let startTime = this.tableDataList[index].tdsyqssj;
207 let endTime = this.tableDataList[index].jssj; 199 let endTime = this.tableDataList[index].jssj;
...@@ -227,7 +219,7 @@ export default { ...@@ -227,7 +219,7 @@ export default {
227 * @param {*} index 219 * @param {*} index
228 * @author: renchao 220 * @author: renchao
229 */ 221 */
230 endTime(index) { 222 endTime (index) {
231 // let startTime = this.tableDataList[index].tdsyqssj; 223 // let startTime = this.tableDataList[index].tdsyqssj;
232 let startTime = this.tableDataList[index].qssj; 224 let startTime = this.tableDataList[index].qssj;
233 let endTime = this.tableDataList[index].jssj; 225 let endTime = this.tableDataList[index].jssj;
...@@ -253,7 +245,7 @@ export default { ...@@ -253,7 +245,7 @@ export default {
253 * @param {*} tdsyqx 245 * @param {*} tdsyqx
254 * @author: renchao 246 * @author: renchao
255 */ 247 */
256 sumTime(index, tdsyqx) { 248 sumTime (index, tdsyqx) {
257 let startTime = this.tableDataList[index].qssj; 249 let startTime = this.tableDataList[index].qssj;
258 this.tableDataList[index].jssj = 250 this.tableDataList[index].jssj =
259 Number(startTime.substring(0, 4)) + 251 Number(startTime.substring(0, 4)) +
...@@ -266,7 +258,7 @@ export default { ...@@ -266,7 +258,7 @@ export default {
266 * @description: 新增 258 * @description: 新增
267 * @author: renchao 259 * @author: renchao
268 */ 260 */
269 addClick() { 261 addClick () {
270 // this.tableDataList[this.tableDataList.length] = _.cloneDeep(this.newdata); 262 // this.tableDataList[this.tableDataList.length] = _.cloneDeep(this.newdata);
271 this.tableDataList.push(_.cloneDeep(this.newdata)) 263 this.tableDataList.push(_.cloneDeep(this.newdata))
272 this.$emit("upDateTdytxxList", this.tableDataList); 264 this.$emit("upDateTdytxxList", this.tableDataList);
...@@ -279,7 +271,7 @@ export default { ...@@ -279,7 +271,7 @@ export default {
279 * @param {*} row 271 * @param {*} row
280 * @author: renchao 272 * @author: renchao
281 */ 273 */
282 deleClick(index, row) { 274 deleClick (index, row) {
283 this.$confirm("确定要删除吗, 是否继续?", "提示", { 275 this.$confirm("确定要删除吗, 是否继续?", "提示", {
284 confirmButtonText: "确定", 276 confirmButtonText: "确定",
285 cancelButtonText: "取消", 277 cancelButtonText: "取消",
...@@ -289,25 +281,25 @@ export default { ...@@ -289,25 +281,25 @@ export default {
289 this.tableDataList.splice(index, 1); 281 this.tableDataList.splice(index, 1);
290 this.$emit("upDateTdytxxList", this.tableDataList); 282 this.$emit("upDateTdytxxList", this.tableDataList);
291 }) 283 })
292 .catch(() => {}); 284 .catch(() => { });
293 }, 285 },
294 }, 286 },
295 }; 287 };
296 </script> 288 </script>
297 <style scoped lang="scss"> 289 <style scoped lang="scss">
298 .el-input { 290 .el-input {
299 border: none !important; 291 border: none !important;
300 } 292 }
301 /deep/.el-table__row { 293 /deep/.el-table__row {
302 border: none !important; 294 border: none !important;
303 } 295 }
304 .el-date-editor.el-input { 296 .el-date-editor.el-input {
305 width: 100%; 297 width: 100%;
306 } 298 }
307 /deep/.el-table th { 299 /deep/.el-table th {
308 height: 30px !important; 300 height: 30px !important;
309 } 301 }
310 /deep/ .el-table--border .el-table__cell:first-child .cell{ 302 /deep/ .el-table--border .el-table__cell:first-child .cell {
311 text-align: center; 303 text-align: center;
312 } 304 }
313 </style> 305 </style>
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-17 15:34:33 4 * @LastEditTime: 2023-09-12 09:41:27
5 */ 5 */
6 //流程环节操作按钮 6 //流程环节操作按钮
7 /** 7 /**
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
10 * @param {*} djywbm 10 * @param {*} djywbm
11 * @author: renchao 11 * @author: renchao
12 */ 12 */
13 export function getForm(tabName, djywbm) { 13 export function getForm (tabName, djywbm) {
14 let form; 14 let form;
15 switch (tabName) { 15 switch (tabName) {
16 case "tdsyqslxx": 16 case "tdsyqslxx":
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-05 15:05:56 4 * @LastEditTime: 2023-09-12 10:52:24
5 */ 5 */
6 import { getForm } from "../flowform"; 6 import { getForm } from "../flowform";
7 import { getHomeNoticeList } from "@/api/home.js" 7 import { getHomeNoticeList } from "@/api/home.js"
...@@ -32,7 +32,6 @@ export default { ...@@ -32,7 +32,6 @@ export default {
32 } 32 }
33 }) 33 })
34 }, 34 },
35 //右侧表单选项卡事件
36 /** 35 /**
37 * @description: 右侧表单选项卡事件 36 * @description: 右侧表单选项卡事件
38 * @param {*} activeName 37 * @param {*} activeName
...@@ -40,9 +39,9 @@ export default { ...@@ -40,9 +39,9 @@ export default {
40 * @author: renchao 39 * @author: renchao
41 */ 40 */
42 beforeLeave (activeName, oldActiveName) { 41 beforeLeave (activeName, oldActiveName) {
42 sessionStorage.setItem('activeName', activeName);
43 if (activeName && activeName != 0) this.getFromRouter(activeName) 43 if (activeName && activeName != 0) this.getFromRouter(activeName)
44 }, 44 },
45 //切换选项卡内容组件
46 /** 45 /**
47 * @description: 切换选项卡内容组件 46 * @description: 切换选项卡内容组件
48 * @param {*} tabname 47 * @param {*} tabname
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-30 14:14:55 4 * @LastEditTime: 2023-09-12 10:52:18
5 --> 5 -->
6 <template> 6 <template>
7 <div class="container"> 7 <div class="container">
...@@ -162,7 +162,6 @@ ...@@ -162,7 +162,6 @@
162 stepForm (index) { 162 stepForm (index) {
163 getStepFormInfo(this.currentSelectProps).then((res) => { 163 getStepFormInfo(this.currentSelectProps).then((res) => {
164 if (res.code === 200) { 164 if (res.code === 200) {
165 // this.fresh++;
166 //获取单元对应的所有表单信息 165 //获取单元对应的所有表单信息
167 this.tabList = res.result; 166 this.tabList = res.result;
168 //默认加载第一个表单信息 167 //默认加载第一个表单信息
...@@ -172,6 +171,9 @@ ...@@ -172,6 +171,9 @@
172 } else { 171 } else {
173 this.tabName = res.result[0].value; 172 this.tabName = res.result[0].value;
174 } 173 }
174 if (sessionStorage.getItem('activeName') == this.tabName) {
175 this.fresh++;
176 }
175 this.ableOperation = this.tabList[0].ableOperation 177 this.ableOperation = this.tabList[0].ableOperation
176 //批量操作无分屏按钮 178 //批量操作无分屏按钮
177 if (index != null) { 179 if (index != null) {
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-12 09:01:09 4 * @LastEditTime: 2023-09-12 09:59:18
5 --> 5 -->
6 <template> 6 <template>
7 <!-- 受理信息 --> 7 <!-- 受理信息 -->
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 <el-form 9 <el-form
10 :model="ruleForm" 10 :model="ruleForm"
11 :rules="rules" 11 :rules="rules"
12 class="loadingtext" 12 v-Loading="loading"
13 ref="ruleForm" 13 ref="ruleForm"
14 :label-position="flag ? 'top' : ''" 14 :label-position="flag ? 'top' : ''"
15 :inline="flag" 15 :inline="flag"
...@@ -365,18 +365,21 @@ ...@@ -365,18 +365,21 @@
365 import { mapGetters } from "vuex"; 365 import { mapGetters } from "vuex";
366 export default { 366 export default {
367 mounted () { 367 mounted () {
368 this.loading = true
368 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 369 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
369 this.propsParam = this.$attrs; 370 this.propsParam = this.$attrs;
370 var formdata = new FormData(); 371 var formdata = new FormData();
371 if (this.propsParam.djlx == "400") { 372 if (this.propsParam.djlx == "400") {
372 this.isJfOperation = true; 373 this.isJfOperation = true;
373 } 374 }
374 this.$startLoading();
375 formdata.append("bsmSldy", this.propsParam.bsmSldy); 375 formdata.append("bsmSldy", this.propsParam.bsmSldy);
376 formdata.append("bsmSlsq", this.$route.query.bsmSlsq); 376 formdata.append("bsmSlsq", this.$route.query.bsmSlsq);
377 formdata.append("djlx", this.propsParam.djlx); 377 formdata.append("djlx", this.propsParam.djlx);
378 formdata.append("isEdit", this.viewEdit); 378 formdata.append("isEdit", this.viewEdit);
379 Init(formdata).then((res) => { 379 Init(formdata).then((res) => {
380 setTimeout(() => {
381 this.loading = false
382 }, 200)
380 if (res.code === 200 && res.result) { 383 if (res.code === 200 && res.result) {
381 this.ruleForm = res.result; 384 this.ruleForm = res.result;
382 this.czrOptions = this.ruleForm.qlrList; 385 this.czrOptions = this.ruleForm.qlrList;
...@@ -386,8 +389,9 @@ ...@@ -386,8 +389,9 @@
386 this.czr = item.sqrmc; 389 this.czr = item.sqrmc;
387 } 390 }
388 }); 391 });
389 this.$endLoading(); 392 }).catch(() => {
390 }); 393 this.loading = false
394 })
391 }, 395 },
392 components: { qlrCommonTable }, 396 components: { qlrCommonTable },
393 computed: { 397 computed: {
...@@ -395,6 +399,7 @@ ...@@ -395,6 +399,7 @@
395 }, 399 },
396 data () { 400 data () {
397 return { 401 return {
402 loading: false,
398 //表单是否可操作 403 //表单是否可操作
399 viewEdit: true, 404 viewEdit: true,
400 disabled: true, 405 disabled: true,
......
1 <!-- 1 <!--
2 * @Description: 房屋多幢受理信息 2 * @Description: 房屋多幢受理信息
3 * @Autor: ssq 3 * @Autor: ssq
4 * @LastEditTime: 2023-09-11 16:28:02 4 * @LastEditTime: 2023-09-12 09:55:25
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -271,6 +271,9 @@ ...@@ -271,6 +271,9 @@
271 formdata.append("djlx", this.propsParam.djlx); 271 formdata.append("djlx", this.propsParam.djlx);
272 formdata.append("isEdit", this.viewEdit); 272 formdata.append("isEdit", this.viewEdit);
273 Init(formdata).then((res) => { 273 Init(formdata).then((res) => {
274 setTimeout(() => {
275 this.loading = false
276 }, 200)
274 if (res.code === 200 && res.result) { 277 if (res.code === 200 && res.result) {
275 this.ruleForm = { 278 this.ruleForm = {
276 ...res.result, 279 ...res.result,
...@@ -281,16 +284,9 @@ ...@@ -281,16 +284,9 @@
281 this.czr = item.sqrmc; 284 this.czr = item.sqrmc;
282 } 285 }
283 }); 286 });
284 setTimeout(() => {
285 this.loading = false
286 }, 200)
287 //初始化发证方式,1:小证,2:大正
288 this.ruleForm.slsq.fzfs == null
289 ? (this.ruleForm.slsq.fzfs = "1")
290 : this.ruleForm.slsq.fzfs;
291 this.czrOptions = this.ruleForm.qlrList; 287 this.czrOptions = this.ruleForm.qlrList;
292 } 288 }
293 }); 289 })
294 }, 290 },
295 components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable }, 291 components: { qlrCommonTable, tdytTable, fdcqxmTable, ywrCommonTable },
296 computed: { 292 computed: {
......
1 <!-- 1 <!--
2 * @Description: 受理信息 2 * @Description: 受理信息
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-11 16:28:20 4 * @LastEditTime: 2023-09-12 10:04:14
5 --> 5 -->
6 <template> 6 <template>
7 <div class="slxx"> 7 <div class="slxx">
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
9 :model="ruleForm" 9 :model="ruleForm"
10 :rules="rules" 10 :rules="rules"
11 ref="ruleForm" 11 ref="ruleForm"
12 v-Loading="loading"
12 :label-position="flag ? 'top' : ''" 13 :label-position="flag ? 'top' : ''"
13 :inline="flag" 14 :inline="flag"
14 label-width="120px"> 15 label-width="120px">
...@@ -417,6 +418,7 @@ ...@@ -417,6 +418,7 @@
417 export default { 418 export default {
418 mixins: [ywmix], 419 mixins: [ywmix],
419 mounted () { 420 mounted () {
421 this.loading = true
420 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 422 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
421 this.propsParam = this.$attrs; 423 this.propsParam = this.$attrs;
422 var formdata = new FormData(); 424 var formdata = new FormData();
...@@ -424,6 +426,9 @@ ...@@ -424,6 +426,9 @@
424 formdata.append("djlx", this.propsParam.djlx); 426 formdata.append("djlx", this.propsParam.djlx);
425 formdata.append("isEdit", this.viewEdit); 427 formdata.append("isEdit", this.viewEdit);
426 Init(formdata).then((res) => { 428 Init(formdata).then((res) => {
429 setTimeout(() => {
430 this.loading = false
431 }, 200)
427 if (res.code === 200 && res.result) { 432 if (res.code === 200 && res.result) {
428 this.ruleForm = { 433 this.ruleForm = {
429 ...res.result, 434 ...res.result,
...@@ -434,13 +439,11 @@ ...@@ -434,13 +439,11 @@
434 this.czr = item.sqrmc; 439 this.czr = item.sqrmc;
435 } 440 }
436 }); 441 });
437 //初始化发证方式,1:小证,2:大正
438 this.ruleForm.slsq.fzfs == null
439 ? (this.ruleForm.slsq.fzfs = "1")
440 : this.ruleForm.slsq.fzfs;
441 this.czrOptions = this.ruleForm.qlrList; 442 this.czrOptions = this.ruleForm.qlrList;
442 } 443 }
443 }); 444 }).catch(() => {
445 this.loading = false
446 })
444 }, 447 },
445 components: { qlrCommonTable, tdytTable, ywrCommonTable }, 448 components: { qlrCommonTable, tdytTable, ywrCommonTable },
446 computed: { 449 computed: {
...@@ -448,6 +451,7 @@ ...@@ -448,6 +451,7 @@
448 }, 451 },
449 data () { 452 data () {
450 return { 453 return {
454 loading: false,
451 mjdw: "1", 455 mjdw: "1",
452 // 键名转换,方法默认是label和children进行树状渲染 456 // 键名转换,方法默认是label和children进行树状渲染
453 normalizer (node) { 457 normalizer (node) {
...@@ -602,6 +606,7 @@ ...@@ -602,6 +606,7 @@
602 }); 606 });
603 } 607 }
604 } 608 }
609 this.$store.dispatch("user/refreshPage", false);
605 saveData(this.ruleForm).then((res) => { 610 saveData(this.ruleForm).then((res) => {
606 if (res.code === 200) { 611 if (res.code === 200) {
607 this.$message({ 612 this.$message({
...@@ -615,10 +620,10 @@ ...@@ -615,10 +620,10 @@
615 showClose: true, 620 showClose: true,
616 message: res.message, 621 message: res.message,
617 type: "error", 622 type: "error",
618 }); 623 })
624 }
625 })
619 } 626 }
620 });
621 },
622 }, 627 },
623 }; 628 };
624 </script> 629 </script>
......
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
136 label-width="200px"> 136 label-width="200px">
137 <el-radio-group 137 <el-radio-group
138 v-model="ruleForm.ygdj.sfczjzhxz" 138 v-model="ruleForm.ygdj.sfczjzhxz"
139 :disabled="!viewEdit || isJfOperation"> 139 :disabled="!viewEdit">
140 <el-radio label="1"></el-radio> 140 <el-radio label="1"></el-radio>
141 <el-radio label="0"></el-radio> 141 <el-radio label="0"></el-radio>
142 </el-radio-group> 142 </el-radio-group>
...@@ -318,14 +318,14 @@ ...@@ -318,14 +318,14 @@
318 Init(formdata).then((res) => { 318 Init(formdata).then((res) => {
319 if (res.code === 200 && res.result) { 319 if (res.code === 200 && res.result) {
320 that.ruleForm = res.result; 320 that.ruleForm = res.result;
321 this.czrOptions = this.ruleForm.qlrList; 321 that.czrOptions = this.ruleForm.qlrList;
322 this.ruleForm.qlrList.forEach((item) => { 322 that.ruleForm.qlrList.forEach((item) => {
323 if (item.sfczr == 1) { 323 if (item.sfczr == 1) {
324 this.czr = item.sqrmc; 324 that.czr = item.sqrmc;
325 } 325 }
326 }); 326 });
327 setTimeout(() => { 327 setTimeout(() => {
328 this.loading = false 328 that.loading = false
329 }, 200) 329 }, 200)
330 } 330 }
331 }) 331 })
......