31c6464a by renchao@pashanhoo.com

style:权利人信息

1 parent f0f5c94e
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-07 16:01:19 4 * @LastEditTime: 2023-09-12 14:48:12
5 --> 5 -->
6 <template> 6 <template>
7 <div class="clmlmx-box"> 7 <div class="clmlmx-box">
...@@ -334,7 +334,6 @@ ...@@ -334,7 +334,6 @@
334 }) 334 })
335 }) 335 })
336 }, 336 },
337 // 字典
338 /** 337 /**
339 * @description: 字典 338 * @description: 字典
340 * @param {*} val 339 * @param {*} val
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-11 13:35:33 4 * @LastEditTime: 2023-09-12 15:18:52
5 --> 5 -->
6 <template> 6 <template>
7 <div class="clmlmx-box"> 7 <div class="clmlmx-box">
8 <lb-table :column="column" :key="key" :heightNumSetting="true" :calcHeight="600" :pagination="false" :data="tableData"> 8 <lb-table :column="column" :key="key" :heightNumSetting="true" :calcHeight="500" :pagination="false" :data="tableData">
9 </lb-table> 9 </lb-table>
10 <div class="text-center"> 10 <div class="text-center">
11 <el-button @click="handleCancel">取消</el-button> 11 <el-button @click="handleCancel">取消</el-button>
12 <el-button type="primary" @click="handleSubmit" :loading="loading" v-if="formData.ableOperation && tableData.length>0">保存</el-button> 12 <el-button type="primary" @click="handleSubmit" :loading="loading">保存</el-button>
13 </div> 13 </div>
14 </div> 14 </div>
15 </template> 15 </template>
...@@ -32,37 +32,28 @@ ...@@ -32,37 +32,28 @@
32 loading: false, 32 loading: false,
33 column: [ 33 column: [
34 { 34 {
35 width: "50", 35 width: '50',
36 label: '序号', 36 renderHeader: (h, scope) => {
37 type: 'index' 37 return <div> {
38 }, 38 <i class="el-icon-plus pointer" onClick={() => { this.handleAdd() }}></i>
39 {
40 prop: "isrequired",
41 label: "是否必选",
42 width: "80",
43 render: (h, scope) => {
44 if (scope.row.isrequired === "1") {
45 return (
46 <div>
47 <span>必选</span>
48 </div>
49 );
50 }
51 else {
52 return (
53 <div>
54 <span>可选</span>
55 </div>
56 )
57 } 39 }
40 </div>
41 },
42 render: (h, scope) => {
43 return (
44 <div>
45 {
46 <i class="el-icon-minus pointer" onClick={() => { this.handleDelete(scope.$index, scope.row) }}></i>
47 }
48 </div>
49 )
58 } 50 }
59 }, 51 },
60 { 52 {
61 label: "材料名称", 53 label: "材料名称",
62 render: (h, scope) => { 54 render: (h, scope) => {
63 return ( 55 return (
64 (this.formData.ableOperation && scope.row.isrequired != '1') ? 56 <el-input value={scope.row.clmc} onInput={(val) => { scope.row.clmc = val }}></el-input>
65 <el-input value={scope.row.sjmc} onInput={(val) => { scope.row.sjmc = val }}></el-input> : <span>{scope.row.sjmc}</span>
66 ) 57 )
67 } 58 }
68 }, 59 },
...@@ -71,32 +62,25 @@ ...@@ -71,32 +62,25 @@
71 width: "110", 62 width: "110",
72 render: (h, scope) => { 63 render: (h, scope) => {
73 return ( 64 return (
74 this.formData.ableOperation ? 65 <el-select value={scope.row.cllx}
75 <el-select value={scope.row.sjlx} 66 onChange={(val) => { scope.row.cllx = val }}>
76 onChange={(val) => { scope.row.sjlx = val }}> 67 {
77 { 68 store.getters.dictData['A40'].map(option => {
78 store.getters.dictData['A40'].map(option => { 69 return (
79 return ( 70 <el-option label={option.dname} value={option.dcode}></el-option>
80 <el-option label={option.dname} value={option.dcode}></el-option> 71 )
81 ) 72 })
82 }) 73 }
83 } 74 </el-select>
84 </el-select> : <span>{this.dicStatus(scope.row.sjlx, "A40")}</span>
85 ) 75 )
86 } 76 }
87 }, 77 },
88 { 78 {
89 prop: "sjsl",
90 label: "份数", 79 label: "份数",
91 width: "50", 80 width: "50",
92 render: (h, scope) => { 81 render: (h, scope) => {
93 return ( 82 return (
94 <div> 83 <el-input value={scope.row.sjsl} onInput={(val) => { scope.row.sjsl = val }}></el-input>
95 {
96 scope.row.sjsl ?
97 <span>{scope.row.sjsl}</span> : 1
98 }
99 </div>
100 ) 84 )
101 } 85 }
102 }, 86 },
...@@ -147,7 +131,7 @@ ...@@ -147,7 +131,7 @@
147 <div> 131 <div>
148 <el-button 132 <el-button
149 type="text" 133 type="text"
150 disabled={scope.$index == 0 || !this.formData.ableOperation} 134 disabled={scope.$index == 0}
151 onClick={() => { 135 onClick={() => {
152 this.moveUpward(scope.$index, scope.row); 136 this.moveUpward(scope.$index, scope.row);
153 }} 137 }}
...@@ -156,16 +140,13 @@ ...@@ -156,16 +140,13 @@
156 </el-button> 140 </el-button>
157 <el-button 141 <el-button
158 type="text" 142 type="text"
159 disabled={scope.$index + 1 == this.tableData.length || !this.formData.ableOperation} 143 disabled={scope.$index + 1 == this.tableData.length}
160 onClick={() => { 144 onClick={() => {
161 this.moveDown(scope.$index, scope.row); 145 this.moveDown(scope.$index, scope.row);
162 }} 146 }}
163 > 147 >
164 下移 148 下移
165 </el-button> 149 </el-button>
166 <i v-show={scope.row.isrequired != '1' && this.formData.ableOperation} onClick={() => {
167 this.handleDelete(scope.$index, scope.row);
168 }} class="el-icon-delete pointer" style="color:#409EFF;margin-left:5px;position: relative;top: 1px;"></i>
169 </div > 150 </div >
170 ) 151 )
171 } 152 }
...@@ -188,6 +169,15 @@ ...@@ -188,6 +169,15 @@
188 handleCancel () { 169 handleCancel () {
189 ywPopupCacel() 170 ywPopupCacel()
190 }, 171 },
172 handleAdd () {
173 this.tableData.push({
174 clmc: '',
175 cllx: '1',
176 sjsl: '',
177 smzt: '',
178 count: 0
179 })
180 },
191 handleSubmit () { 181 handleSubmit () {
192 this.loading = true 182 this.loading = true
193 updateClml(this.tableData).then(res => { 183 updateClml(this.tableData).then(res => {
...@@ -311,25 +301,6 @@ ...@@ -311,25 +301,6 @@
311 message: '已取消删除' 301 message: '已取消删除'
312 }) 302 })
313 }) 303 })
314 },
315 // 字典
316 /**
317 * @description: 字典
318 * @param {*} val
319 * @param {*} code
320 * @author: renchao
321 */
322 dicStatus (val, code) {
323 let data = store.getters.dictData[code],
324 name = "暂无";
325 if (data) {
326 data.map((item) => {
327 if (item.dcode == val) {
328 name = item.dname;
329 }
330 });
331 return name;
332 }
333 } 304 }
334 } 305 }
335 } 306 }
......
...@@ -386,7 +386,7 @@ ...@@ -386,7 +386,7 @@
386 } 386 }
387 this.ruleForm.qlrList.forEach((item) => { 387 this.ruleForm.qlrList.forEach((item) => {
388 if (item.sfczr == 1) { 388 if (item.sfczr == 1) {
389 this.czr = item.sqrmc; 389 this.czr = item.zjh
390 } 390 }
391 }); 391 });
392 }).catch(() => { 392 }).catch(() => {
...@@ -506,7 +506,7 @@ ...@@ -506,7 +506,7 @@
506 } 506 }
507 this.num = 0 507 this.num = 0
508 this.ruleForm.qlrList.forEach(item => { 508 this.ruleForm.qlrList.forEach(item => {
509 if (item.sqrmc == this.czr) { 509 if (item.zjh == this.czr) {
510 this.num++ 510 this.num++
511 } 511 }
512 }) 512 })
......
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
281 }; 281 };
282 this.ruleForm.qlrList.forEach((item) => { 282 this.ruleForm.qlrList.forEach((item) => {
283 if (item.sfczr == 1) { 283 if (item.sfczr == 1) {
284 this.czr = item.sqrmc; 284 this.czr = item.zjh
285 } 285 }
286 }); 286 });
287 this.czrOptions = this.ruleForm.qlrList; 287 this.czrOptions = this.ruleForm.qlrList;
...@@ -355,7 +355,7 @@ ...@@ -355,7 +355,7 @@
355 } 355 }
356 this.num = 0 356 this.num = 0
357 this.ruleForm.qlrList.forEach(item => { 357 this.ruleForm.qlrList.forEach(item => {
358 if (item.sqrmc == this.czr) { 358 if (item.zjh == this.czr) {
359 this.num++ 359 this.num++
360 } 360 }
361 }) 361 })
......
...@@ -436,7 +436,7 @@ ...@@ -436,7 +436,7 @@
436 }; 436 };
437 this.ruleForm.qlrList.forEach((item) => { 437 this.ruleForm.qlrList.forEach((item) => {
438 if (item.sfczr == 1) { 438 if (item.sfczr == 1) {
439 this.czr = item.sqrmc; 439 this.czr = item.zjh
440 } 440 }
441 }); 441 });
442 this.czrOptions = this.ruleForm.qlrList; 442 this.czrOptions = this.ruleForm.qlrList;
...@@ -513,7 +513,7 @@ ...@@ -513,7 +513,7 @@
513 this.czrOptions = this.ruleForm.qlrList; 513 this.czrOptions = this.ruleForm.qlrList;
514 this.num = 0 514 this.num = 0
515 this.ruleForm.qlrList.forEach(item => { 515 this.ruleForm.qlrList.forEach(item => {
516 if (item.sqrmc == this.czr) { 516 if (item.zjh == this.czr) {
517 this.num++ 517 this.num++
518 } 518 }
519 }) 519 })
......
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
295 }; 295 };
296 this.ruleForm.qlrList.forEach((item) => { 296 this.ruleForm.qlrList.forEach((item) => {
297 if (item.sfczr == 1) { 297 if (item.sfczr == 1) {
298 this.czr = item.sqrmc; 298 this.czr = item.zjh
299 } 299 }
300 }); 300 });
301 this.czrOptions = this.ruleForm.qlrList; 301 this.czrOptions = this.ruleForm.qlrList;
......
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
264 this.czrOptions = this.ruleForm.qlrList; 264 this.czrOptions = this.ruleForm.qlrList;
265 this.ruleForm.qlrList.forEach((item) => { 265 this.ruleForm.qlrList.forEach((item) => {
266 if (item.sfczr == 1) { 266 if (item.sfczr == 1) {
267 this.czr = item.sqrmc; 267 this.czr = item.zjh
268 console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr); 268 console.log("this.ruleForm.qlrList1", this.ruleForm.qlrList, this.czr);
269 } 269 }
270 }); 270 });
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
321 this.key++; 321 this.key++;
322 this.num = 0 322 this.num = 0
323 this.ruleForm.qlrList.forEach(item => { 323 this.ruleForm.qlrList.forEach(item => {
324 if (item.sqrmc == this.czr) { 324 if (item.zjh == this.czr) {
325 this.num++ 325 this.num++
326 } 326 }
327 }) 327 })
......
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
340 }; 340 };
341 this.ruleForm.qlrList.forEach((item) => { 341 this.ruleForm.qlrList.forEach((item) => {
342 if (item.sfczr == 1) { 342 if (item.sfczr == 1) {
343 this.czr = item.sqrmc; 343 this.czr = item.zjh
344 } 344 }
345 }); 345 });
346 //初始化发证方式,1:小证,2:大正 346 //初始化发证方式,1:小证,2:大正
...@@ -422,7 +422,7 @@ ...@@ -422,7 +422,7 @@
422 this.czrOptions = this.ruleForm.qlrList; 422 this.czrOptions = this.ruleForm.qlrList;
423 this.num = 0 423 this.num = 0
424 this.ruleForm.qlrList.forEach(item => { 424 this.ruleForm.qlrList.forEach(item => {
425 if (item.sqrmc == this.czr) { 425 if (item.zjh == this.czr) {
426 this.num++ 426 this.num++
427 } 427 }
428 }) 428 })
......
...@@ -347,7 +347,7 @@ ...@@ -347,7 +347,7 @@
347 this.czrOptions = this.ruleForm.qlrList; 347 this.czrOptions = this.ruleForm.qlrList;
348 this.ruleForm.qlrList.forEach((item) => { 348 this.ruleForm.qlrList.forEach((item) => {
349 if (item.sfczr == 1) { 349 if (item.sfczr == 1) {
350 this.czr = item.sqrmc; 350 this.czr = item.zjh
351 } 351 }
352 }); 352 });
353 this.$endLoading(); 353 this.$endLoading();
...@@ -458,7 +458,7 @@ ...@@ -458,7 +458,7 @@
458 this.czrOptions = this.ruleForm.qlrList; 458 this.czrOptions = this.ruleForm.qlrList;
459 this.num = 0 459 this.num = 0
460 this.ruleForm.qlrList.forEach(item => { 460 this.ruleForm.qlrList.forEach(item => {
461 if (item.sqrmc == this.czr) { 461 if (item.zjh == this.czr) {
462 this.num++ 462 this.num++
463 } 463 }
464 }) 464 })
......
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
337 }; 337 };
338 this.ruleForm.qlrList.forEach((item) => { 338 this.ruleForm.qlrList.forEach((item) => {
339 if (item.sfczr == 1) { 339 if (item.sfczr == 1) {
340 this.czr = item.sqrmc; 340 this.czr = item.zjh
341 } 341 }
342 }); 342 });
343 //初始化发证方式,1:小证,2:大正 343 //初始化发证方式,1:小证,2:大正
...@@ -408,7 +408,7 @@ ...@@ -408,7 +408,7 @@
408 this.czrOptions = this.ruleForm.qlrList; 408 this.czrOptions = this.ruleForm.qlrList;
409 this.num = 0 409 this.num = 0
410 this.ruleForm.qlrList.forEach(item => { 410 this.ruleForm.qlrList.forEach(item => {
411 if (item.sqrmc == this.czr) { 411 if (item.zjh == this.czr) {
412 this.num++ 412 this.num++
413 } 413 }
414 }) 414 })
......
...@@ -375,7 +375,7 @@ ...@@ -375,7 +375,7 @@
375 this.czrOptions = this.ruleForm.qlrList; 375 this.czrOptions = this.ruleForm.qlrList;
376 this.ruleForm.qlrList.forEach((item) => { 376 this.ruleForm.qlrList.forEach((item) => {
377 if (item.sfczr == 1) { 377 if (item.sfczr == 1) {
378 this.czr = item.sqrmc; 378 this.czr = item.zjh
379 } 379 }
380 }); 380 });
381 }); 381 });
...@@ -431,7 +431,7 @@ ...@@ -431,7 +431,7 @@
431 this.czrOptions = this.ruleForm.qlrList; 431 this.czrOptions = this.ruleForm.qlrList;
432 this.num = 0 432 this.num = 0
433 this.ruleForm.qlrList.forEach(item => { 433 this.ruleForm.qlrList.forEach(item => {
434 if (item.sqrmc == this.czr) { 434 if (item.zjh == this.czr) {
435 this.num++ 435 this.num++
436 } 436 }
437 }) 437 })
......
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
354 this.czrOptions = this.ruleForm.qlrList; 354 this.czrOptions = this.ruleForm.qlrList;
355 this.num = 0 355 this.num = 0
356 this.ruleForm.qlrList.forEach(item => { 356 this.ruleForm.qlrList.forEach(item => {
357 if (item.sqrmc == this.czr) { 357 if (item.zjh == this.czr) {
358 this.num++ 358 this.num++
359 } 359 }
360 }) 360 })
......
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
225 this.czrOptions = this.ruleForm.qlrList; 225 this.czrOptions = this.ruleForm.qlrList;
226 this.ruleForm.qlrList.forEach((item) => { 226 this.ruleForm.qlrList.forEach((item) => {
227 if (item.sfczr == 1) { 227 if (item.sfczr == 1) {
228 this.czr = item.sqrmc; 228 this.czr = item.zjh
229 } 229 }
230 }); 230 });
231 } 231 }
...@@ -272,7 +272,7 @@ ...@@ -272,7 +272,7 @@
272 this.czrOptions = this.ruleForm.qlrList; 272 this.czrOptions = this.ruleForm.qlrList;
273 this.num = 0 273 this.num = 0
274 this.ruleForm.qlrList.forEach(item => { 274 this.ruleForm.qlrList.forEach(item => {
275 if (item.sqrmc == this.czr) { 275 if (item.zjh == this.czr) {
276 this.num++ 276 this.num++
277 } 277 }
278 }) 278 })
......
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
321 that.czrOptions = this.ruleForm.qlrList; 321 that.czrOptions = this.ruleForm.qlrList;
322 that.ruleForm.qlrList.forEach((item) => { 322 that.ruleForm.qlrList.forEach((item) => {
323 if (item.sfczr == 1) { 323 if (item.sfczr == 1) {
324 that.czr = item.sqrmc; 324 that.czr = item.zjh;
325 } 325 }
326 }); 326 });
327 setTimeout(() => { 327 setTimeout(() => {
...@@ -360,7 +360,7 @@ ...@@ -360,7 +360,7 @@
360 this.czrOptions = this.ruleForm.qlrList; 360 this.czrOptions = this.ruleForm.qlrList;
361 this.num = 0 361 this.num = 0
362 this.ruleForm.qlrList.forEach(item => { 362 this.ruleForm.qlrList.forEach(item => {
363 if (item.sqrmc == this.czr) { 363 if (item.zjh == this.czr) {
364 this.num++ 364 this.num++
365 } 365 }
366 }) 366 })
......