apply-clients 3.5.4-98 → 3.5.5-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.4-98",
3
+ "version": "3.5.5-1",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -7,7 +7,6 @@
7
7
  <template partial='head'>
8
8
  <tr>
9
9
  <th>序号</th>
10
- <th>安装</th>
11
10
  <th>材料名称</th>
12
11
  <th>规格、型号</th>
13
12
  <th>单位</th>
@@ -22,7 +21,6 @@
22
21
  </template>
23
22
  <template partial='body'>
24
23
  <td >{{$index+1}}</td>
25
- <td >{{row.f_material_install}}</td>
26
24
  <td>{{row.f_material_name}}</td>
27
25
  <td >{{row.f_material_model}}</td>
28
26
  <td >{{row.f_unit}}</td>
@@ -45,12 +43,18 @@
45
43
  <header slot="modal-header" class="modal-header">
46
44
  <button type="button" class="close" @click="addclose"><span>&times;</span></button>
47
45
  <h4 class="modal-title">添加材料</h4>
48
- </header>
49
- <article slot="modal-body" class="modal-body">
50
46
  <div class="from-group">
51
- <label>安装</label>
52
- <input type="text" class="form-control" v-model="selectItem.f_material_install">
47
+ <label style="color: red">材料类型</label>
48
+ <input-select
49
+
50
+ :value.sync="selectItem.f_material_style"
51
+ v-model="selectItem.f_material_style"
52
+ :options="materialstyle"
53
+ @change="materialStyleChange"
54
+ ></input-select>
53
55
  </div>
56
+ </header>
57
+ <article slot="modal-body" class="modal-body">
54
58
  <div class="from-group">
55
59
  <label>材料名称</label>
56
60
  <input-select
@@ -70,7 +74,7 @@
70
74
  </div>
71
75
  <div class="from-group">
72
76
  <label>单位</label>
73
- <input type="text" class="form-control" v-model="selectItem.f_unit">
77
+ <input type="text" class="form-control" :value.sync="selectItem.f_unit" v-model="selectItem.f_unit">
74
78
  </div>
75
79
  <div class="from-group">
76
80
  <label>数量</label>
@@ -110,13 +114,9 @@
110
114
  :options="materialModel"
111
115
  ></input-select>
112
116
  </div>
113
- <div class="from-group">
114
- <label>安装</label>
115
- <input type="text" class="form-control" v-model="selectItem.f_material_install">
116
- </div>
117
117
  <div class="from-group">
118
118
  <label>单位</label>
119
- <input type="text" class="form-control" v-model="selectItem.f_unit">
119
+ <input type="text" class="form-control" :value.sync="selectItem.f_unit" v-model="selectItem.f_unit">
120
120
  </div>
121
121
  <div class="from-group">
122
122
  <label>材料数量</label>
@@ -319,7 +319,9 @@ export default {
319
319
  fmaterialprice: [],
320
320
  params: null,
321
321
  record: {},
322
- selectItem: {},
322
+ selectItem: {
323
+ f_unit:''
324
+ },
323
325
  isbuttonshow: true,
324
326
  model: {
325
327
  rows: []
@@ -354,7 +356,8 @@ export default {
354
356
  headData: ["安装","材料名称","规格、型号","单位","数量","备注"],
355
357
  bodyData: ["f_material_install", "f_material_name", "f_material_model","f_unit","f_amount","f_material_remarks"],
356
358
  footinfo: ["主管领导","领料人"],
357
- materialNname:this.$appdata.getParam('报建材料'),
359
+ materialstyle:this.$appdata.getParam('报建材料类型'),
360
+ materialNname:[],
358
361
  materialModel:[]
359
362
  }
360
363
  },
@@ -368,9 +371,40 @@ export default {
368
371
 
369
372
  },
370
373
  methods: {
374
+ materialStyleChange() {
375
+ this.materialNname = [];
376
+ let s = this.$appdata.getParam(`${this.selectItem.f_material_style}`);
377
+ if (Array.isArray(s)) {
378
+ s.forEach(item => {
379
+ if (item.label && item.value) {
380
+ const labelParts = item.label.split('-');
381
+ const valueParts = item.value.split('-');
382
+ // 假设你希望将拆分后的部分存储在一个新的对象中
383
+ const newItem = {
384
+ label: labelParts[0],
385
+ value: valueParts[0]
386
+ };
387
+ // 将新的对象添加到 materialNname 数组中
388
+ this.materialNname.push(newItem);
389
+ }
390
+ });
391
+ }
392
+ },
371
393
  materialNameChange(){
372
394
  this.materialModel = []
373
395
  this.materialModel=this.$appdata.getParam(`${this.selectItem.f_material_name}规格型号`)
396
+ //获取材料单位
397
+ let s = this.$appdata.getParam(`${this.selectItem.f_material_style}`);
398
+ if (Array.isArray(s)) {
399
+ s.forEach(item => {
400
+ if (item.label && item.value) {
401
+ const labelParts = item.label.split('-');
402
+ if (labelParts[0] === this.selectItem.f_material_name) {
403
+ this.selectItem.f_unit=labelParts[1]
404
+ }
405
+ }
406
+ });
407
+ }
374
408
  },
375
409
  async searchByName(){
376
410
  console.log('搜索材料名车')
@@ -1453,27 +1453,18 @@ export default {
1453
1453
  let f_xingzheng = this.getLableValue('片区/行政村') || ''
1454
1454
  let f_residential_area = this.getLableValue('集收单位')?this.getLableValue('集收单位'):this.getLableValue('小区') || ''
1455
1455
  let f_building = this.getLableValue('楼号/组') || ''
1456
- let f_building_suffix = f_building ? this.config.f_building_suffix : ''
1456
+ // let f_building_suffix = f_building ? this.config.f_building_suffix : ''
1457
+ let f_building_suffix = f_building ? '号楼' : ''
1457
1458
  let f_unit = this.getLableValue('单元/排') || ''
1458
- let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
1459
+ // let f_unit_suffix = f_unit ? this.config.f_unit_suffix : ''
1460
+ let f_unit_suffix = f_unit ? '单元' : ''
1459
1461
  let f_floor = this.getLableValue('楼层') || ''
1460
- let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
1462
+ // let f_floor_suffix = f_floor ? this.config.f_floor_suffix : ''
1463
+ let f_floor_suffix = f_floor ? '层' : ''
1461
1464
  let f_room = this.getLableValue('门牌号') || ''
1462
- let f_room_suffix = f_room ? this.config.f_room_suffix : ''
1463
-
1464
- let f_address = null
1465
-
1466
- let f_address_type = this.show_data.f_address_type
1467
- f_address = f_pcd + f_street +f_xingzheng+ f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
1468
- /*if (f_address_type === '民用城区') {
1469
- f_address = f_street + f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
1470
- }
1471
- if (f_address_type === '民用农村') {
1472
- f_address = f_building + f_unit + f_floor + f_room
1473
- }
1474
- if (f_address_type === '特殊城区') {
1475
- f_address = f_street + f_residential_area
1476
- }*/
1465
+ // let f_room_suffix = f_room ? this.config.f_room_suffix : ''
1466
+ let f_room_suffix = f_room ? '室' : ''
1467
+ let f_address = f_pcd + f_street +f_xingzheng+ f_residential_area + f_building + f_building_suffix + f_unit + f_unit_suffix + f_floor + f_floor_suffix + f_room + f_room_suffix
1477
1468
  this.setLabelValue("地址", f_address)
1478
1469
  }
1479
1470
  }