sale-client 3.5.89 → 3.5.91

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.
@@ -12,7 +12,7 @@ var compiler = webpack(config)
12
12
  // https://github.com/chimurai/http-proxy-middleware
13
13
  var bendi = 'http://127.0.0.1:8080', bendi1 = 'http://121.36.106.17:8400/'
14
14
  // 公司测试服务
15
- var fuwu = 'http://127.0.0.1:5001'
15
+ var fuwu = 'http://192.168.50.4:8400'
16
16
  // var fuwu = 'http://121.36.106.17:8400/'
17
17
  // 铜川正式
18
18
  // var fuwu = 'http://61.134.55.234:9999/'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.89",
3
+ "version": "3.5.91",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -359,9 +359,12 @@ export default {
359
359
  this.fileSaveData.userinfo.f_operatorid = nameId
360
360
  this.fileSaveData.userinfo.f_depname = parentname
361
361
  this.fileSaveData.userinfo.f_depid = parentnameId
362
+ this.fileSaveData.userinfo.userfiles.f_operator = name
363
+ this.fileSaveData.userinfo.userfiles.f_operatorid = nameId
364
+ this.fileSaveData.userinfo.userfiles.f_depname = parentname
365
+ this.fileSaveData.userinfo.userfiles.f_depid = parentnameId
362
366
  }
363
367
  }
364
-
365
368
  this.$FileManageService.fileSave(this.fileSaveData).then((res) => {
366
369
  this.$parent.resdata = res.data.result[0].f_userinfo_code
367
370
  if (!this.row) {
@@ -46,7 +46,7 @@
46
46
  <div class="span" style="float:right;">
47
47
  <button class="button_spacing button_search" title="批量维护抄表记录" :disabled="!this.$login.r.includes('批量维护抄表记录')" @click="$parent.$parent.updateAll()">批量维护</button>
48
48
  <button class="button_search" @click="search()">查 询</button>
49
- <export-excel :data="{condition: $parent.$parent.condition}"
49
+ <export-excel :data="{condition: $parent.$parent.condition,condValue: $parent.$parent.condValueStr}"
50
50
  :field="$parent.$parent.getfield"
51
51
  sqlurl="rs/logic/saleExport" sql-name="handFiles"
52
52
  template-name='抄表记录'
@@ -376,7 +376,8 @@ const myMap = new Map()
376
376
  ],
377
377
  meterType: [{label: '金额卡表', value: '金额卡表'}, {label: '气量卡表', value: '气量卡表'}, {label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
378
378
  inputtores: [{label: '全部', value: ''}],
379
- orgCondtionStr: ''
379
+ orgCondtionStr: '',
380
+ condValueStr: ''
380
381
  }
381
382
  },
382
383
  async ready () {
@@ -562,6 +563,7 @@ const myMap = new Map()
562
563
  args.condValueStr = `${args.condValueStr} ` + f_orgstr
563
564
  this.model.search(args.condition, args.model, args.condValueStr)
564
565
  this.condition = args.condition
566
+ this.condValueStr = args.condValueStr
565
567
  }
566
568
  },
567
569
  watch: {
@@ -6,24 +6,39 @@
6
6
  <li class="active"><a>{{data.name}}</a></li>
7
7
  </ul>
8
8
  <div class="col-sm-12" style="height: auto" v-for="param in data.params">
9
- {{param.name}}:{{row[param.title]}}
9
+ {{param.name}}:{{row[param.title].bak_val}}
10
10
  </div>
11
11
  </div>
12
+ <div style="height: auto">
13
+ <ul class="nav nav-tabs col-sm-12" >
14
+ <li class="active"><a>软件版本号</a></li>
15
+ </ul>
16
+ {{row['getMeterVersion'].bak_val||'暂无数据'}}
17
+ <!-- [{"yjbbhlength":28,"softversionNo":"n0100081","mzbbhlength":15,"mzversion":"BC25PAR01A04_BT","version":"2022-07-28","yjversion":"YIMS-M-T1-3-1-H-2-13-17_V1.1"}]-->
18
+ </div>
19
+ <div style="height: auto">
20
+ <ul class="nav nav-tabs col-sm-12" >
21
+ <li class="active"><a>下次上报日期</a></li>
22
+ </ul>
23
+ {{row['readNextreportTime'].bak_val||'暂无数据'}}
24
+ </div>
12
25
  </div>
13
26
  </div>
14
27
  <div class="binary-right" style="width:74%;overflow-y: auto;max-height:1000px;">
15
28
  <div class="row list_area table_sy">
16
29
  <table class="table table-bordered table-striped table-hover" id="table1" >
17
30
  <thead>
18
- <th style="text-align:center"><nobr>操作</nobr></th>
19
- <th style="text-align:center"><nobr>指令发送状态</nobr></th>
31
+ <tr>
32
+ <th style="text-align:center"><nobr>指令发送状态</nobr></th>
33
+ <th style="text-align:center"><nobr>操作</nobr></th>
34
+ </tr>
20
35
  <!-- <th style="text-align:center"><nobr>客户类型</nobr></th>-->
21
36
  <!-- <th style="text-align:center"><nobr>气表品牌</nobr></th>-->
22
37
  </thead>
23
38
  <tbody>
24
39
  <tr v-for="row in history">
25
- <td><nobr>{{row.msg}}</nobr></td>
26
40
  <td><nobr>{{row.f_instruct_state}}</nobr></td>
41
+ <td><nobr>{{row.msg}}</nobr></td>
27
42
  <!-- <td><nobr>{{row.f_user_type}}</nobr></td>-->
28
43
  <!-- <td><nobr>{{row.f_meter_brand}}</nobr></td>-->
29
44
  </tr>
@@ -35,77 +50,92 @@
35
50
 
36
51
 
37
52
  <script>
38
- import {PagedList} from 'vue-client'
39
-
40
53
  export default {
41
- title: '表计信息修改',
42
- props: ['user', 'checked1', 'gasbrandid'],
43
-
44
- data () {
45
- return {
46
- newmeterinfo: [{}],
47
- history: [],
48
- row: {},
49
- gasbrand: null
50
- }
51
- },
52
- ready () {
54
+ title: '表计信息修改',
55
+ props: ['user', 'checked1', 'gasbrandid'],
56
+ data () {
57
+ return {
58
+ newmeterinfo: [{}],
59
+ history: [],
60
+ row: {},
61
+ gasbrand: null
62
+ }
63
+ },
64
+ ready () {
53
65
 
54
- },
55
- watch: {
56
- 'user': {
57
- handler: async function (val) {
58
- this.history = []
59
- if (val.length === 1) {
60
- await this.$resetpost('rs/sql/getIotParams', {data: {t_userfiles_id: val[0].f_userfiles_id}}, {resolveMsg: null, rejectMsg: null}).then((rat) => {
61
- this.row = {}
62
- console.log('=============', rat.data)
63
- this.row.forceSafeCheckUsedDayCount = 0
64
- this.row.currStairUsedGasCount = 0
65
- this.row.forceScrapUsedDayCount = 0
66
- this.row.isForceSrape = '1'
67
- if (rat.data.length > 0) {
68
- rat.data.forEach((item) => {
69
- if(item.f_param_value === '1'){
70
- item.f_param_value = '开'
66
+ },
67
+ watch: {
68
+ 'user': {
69
+ handler: async function (val) {
70
+ this.history = []
71
+ if (val.length === 1) {
72
+ await this.$resetpost('rs/sql/getIotParams', {data: {t_userfiles_id: val[0].f_userfiles_id}}, {resolveMsg: null, rejectMsg: null}).then((rat) => {
73
+ this.row = {}
74
+ console.log('=============', rat.data)
75
+ this.row.forceSafeCheckUsedDayCount = 0
76
+ this.row.currStairUsedGasCount = 0
77
+ this.row.forceScrapUsedDayCount = 0
78
+ this.row.isForceSrape = '1'
79
+ if (rat.data.length > 0) {
80
+ rat.data.forEach((item) => {
81
+ if (item.f_param_value === '1') {
82
+ item.f_param_value = '开'
83
+ }
84
+ if (item.f_param_value === '0') {
85
+ item.f_param_value = '关'
86
+ }
87
+ if (item.f_param_name === '读表功能') {
88
+ if (item.f_param_value && item.f_param_value === 'getMeterVersion') {
89
+ item.f_back_content = JSON.parse(item.f_back_content.replace('[', '').replace(']', ''))['softversionNo']
71
90
  }
72
- if(item.f_param_value === '0'){
73
- item.f_param_value = ''
91
+ if (item.f_param_value && item.f_param_value === 'readNextreportTime') {
92
+ let str = JSON.parse(item.f_back_content.replace('[', '').replace(']', ''))['datetime']
93
+ item.f_back_content = '20' + str.substr(0, 2) + '-' + str.substr(2, 2) + '-' + str.substr(4, 2) + ' ' +
94
+ str.substr(6, 2) + ':' + str.substr(8, 2) + ':' + str.substr(10, 2)
74
95
  }
75
- this.row[item.f_param_lname] = item.f_param_value
76
- })
96
+ if (!item.f_param_value) {
97
+ item.f_param_value = '暂无数据'
98
+ }
99
+ this.row[item.f_param_value] = {set_val: item.f_param_value, bak_val: item.f_back_content}
100
+ } else {
101
+ this.row[item.f_param_lname] = {set_val: item.f_param_value, bak_val: item.f_back_content}
102
+ }
103
+ })
77
104
  // let param = JSON.parse(rat.data[0].f_data)
78
105
  // console.log(param)
79
106
  // this.row= param
80
- }
81
- })
82
- await this.$resetpost('rs/sql/getParamInstruct', {data: {condition: `i.f_userfiles_id='${val[0].f_userfiles_id}'` }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
83
- this.history = res.data
84
- })
85
- }
86
- if (this.gasbrandid[0]) {
87
- await this.refreshParam(this.gasbrandid[0])
88
- }
89
- },
90
- deep: true
107
+ }
108
+ })
109
+ await this.$resetpost('rs/sql/getParamInstruct', {data: {condition: `i.f_userfiles_id='${val[0].f_userfiles_id}'` }}, {resolveMsg: null, rejectMsg: null}).then((res) => {
110
+ this.history = res.data
111
+ })
112
+ }
113
+ if (this.gasbrandid[0]) {
114
+ await this.refreshParam(this.gasbrandid[0])
115
+ }
116
+ },
117
+ deep: true
91
118
 
92
- }
119
+ }
120
+ },
121
+ methods: {
122
+ close () {
123
+ this.$dispatch('close')
93
124
  },
94
- methods: {
95
- close () {
96
- this.$dispatch('close')
97
- },
98
- async refreshParam (val) {
99
- this.newmeterinfo = [{}]
100
- try {
101
- let res = await this.$resetpost('/webmeter/rs/logic/getParamsByGasBrand', {data: {gasBrandId: val}}, {resolveMsg: null, rejectMsg: null})
102
- this.newmeterinfo = res.data
103
- } catch (error) {
104
- this.$showAlert('该气表品牌不支持参数设置', 'warning', 1500)
105
- }
125
+ async refreshParam (val) {
126
+ this.newmeterinfo = [{}]
127
+ try {
128
+ let res = await this.$resetpost('/webmeter/rs/logic/getParamsByGasBrand', {data: {gasBrandId: val}}, {resolveMsg: null, rejectMsg: null})
129
+ this.newmeterinfo = res.data.filter(item => { return (item.name !== '读表功能' && item.name !== '读记录数据') })
130
+ } catch (error) {
131
+ this.$showAlert('该气表品牌不支持参数设置', 'warning', 1500)
106
132
  }
133
+ },
134
+ readNextReportTime_parse () {
135
+ let str = JSON.parse(row['readNextreportTime'].bak_val)[0].datetime
107
136
  }
108
137
  }
138
+ }
109
139
  </script>
110
140
  <style>
111
141
  .btn-border {
@@ -0,0 +1,742 @@
1
+ <template>
2
+ <div class="auto" style="height:80%">
3
+ <validator name='v'>
4
+ <p class="bg-info text-center" style="padding: 8px;">{{usertype ? '特殊地址管理' : '民用地址管理'}}</p>
5
+ <div class="auto select-overspread form-horizontal">
6
+ <div class="form-group" v-if="!usertype&&!model.id">
7
+ <input type="radio" id="true" value="one" v-model="onedata">
8
+ <label for="one">单户</label>
9
+ <input type="radio" id="false" value="more" v-model="onedata">
10
+ <label for="more">多户</label>
11
+ </div>
12
+ <!--单个录入-->
13
+ <div v-if="onedata=='one'" class="row">
14
+ <div class="col-sm-6 form-group "
15
+ :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
16
+ <label class="font_normal_body">省111&ensp;市&ensp;区</label>
17
+ <input type="text" style="width:41%" v-show="false" v-model="model.f_pcd_id"
18
+ >
19
+ <v-select :value.sync="model.f_pcd_id" :value-single="true"
20
+ :options='pcdslist' placeholder='请选择'
21
+ close-on-select search="true" @change="pcdChange" :disabled="!usertype">
22
+ </v-select>
23
+ </div>
24
+
25
+ <div class="col-sm-6 form-group " v-if="!usertype"
26
+ :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
27
+ <label class="font_normal_body">街道名称</label>
28
+ <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
29
+ >
30
+ <v-select :value.sync="model.f_street_id" :value-single="true"
31
+ :options='streetslist' placeholder='请选择'
32
+ close-on-select search="true" :disabled="!usertype">
33
+ </v-select>
34
+ </div>
35
+ <div class="col-sm-6 form-group " v-if="usertype"
36
+ :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
37
+ <label class="font_normal_body">街道名称</label>
38
+ <input type="text" style="width:41%" v-show="false" v-model="model.f_street_id"
39
+ >
40
+ <v-select :value.sync="model.f_street_id" :value-single="true"
41
+ :options='streetslist' placeholder='请选择'
42
+ @change="streetChange"
43
+ close-on-select search="true" :disabled="!usertype">
44
+ </v-select>
45
+ </div>
46
+ <div class="col-sm-6 form-group " v-if="!usertype"
47
+ :class="[$v.f_residential_area_id1.required ? 'has-error' : 'has-success']">
48
+ <label class="font_normal_body">小区名称</label>
49
+ <input type="text" style="width:41%" v-show="false" v-model="model.f_residential_area_id"
50
+ v-validate:f_residential_area_id1='{required: true }'>
51
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
52
+ :options='areaslist' placeholder='请选择'
53
+ @change="areaChange"
54
+ close-on-select search="true">
55
+ </v-select>
56
+ </div>
57
+
58
+ <div class="col-sm-6 form-group " v-if="usertype">
59
+ <label class="font_normal_body">小区名称</label>
60
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
61
+ :options='areaslist' placeholder='请选择'
62
+ @change="areaChange"
63
+ close-on-select search="true">
64
+ </v-select>
65
+ </div>
66
+
67
+ <div class="col-sm-6 form-group " :class="[$v.slice1.required ? 'has-error' : 'has-success']">
68
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
69
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
70
+ v-validate:slice1='{required: true }'>
71
+ <v-select :value.sync="model.slice_area" v-model="model.slice_area"
72
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
73
+ close-on-select v-ref:slice>
74
+ </v-select>
75
+ </div>
76
+ <div v-if="!usertype" class="col-sm-6 form-group ">
77
+ <label for="f_address" class="font_normal_body">楼&emsp;&emsp;号</label>
78
+ <input type="text" style="width:40%" v-model="model.f_building" class="input_search"
79
+ placeholder="楼号"/>
80
+ <input type="text" style="width:20%" v-model="model.f_building_suffix" class="input_search"
81
+ />
82
+
83
+ </div>
84
+ <div v-if="!usertype" class="col-sm-6 form-group ">
85
+ <label for="f_address" class="font_normal_body">单&emsp;&emsp;元</label>
86
+ <input type="text" style="width:40%" v-model="model.f_unit" class="input_search" placeholder="单元"/>
87
+ <input type="text" style="width:20%" v-model="model.f_unit_suffix" class="input_search"
88
+ />
89
+ </div>
90
+ <div v-if="!usertype" class="col-sm-6 form-group ">
91
+ <label for="f_address" class="font_normal_body">楼&emsp;&emsp;层</label>
92
+ <input type="text" style="width:40%" v-model="model.f_floor" class="input_search"
93
+ placeholder="楼层" />
94
+ <input type="text" style="width:20%" v-model="model.f_floor_suffix" class="input_search"
95
+ />
96
+ </div>
97
+ <div v-if="!usertype" class="col-sm-6 form-group "
98
+ :class="[$v.f_room.required ? 'has-error' : 'has-success']">
99
+ <label for="f_address" class="font_normal_body">门&ensp;牌&ensp;号</label>
100
+ <input type="text" style="width:40%" v-model="model.f_room" class="input_search" placeholder="门牌号"
101
+ v-validate:f_room='{required: true }'/>
102
+ <input type="text" style="width:20%" v-model="model.f_room_suffix" class="input_search"
103
+ />
104
+ </div>
105
+ <div class="col-sm-6 form-group">
106
+ <label class="font_normal_body">地址状态</label>
107
+ <v-select :value.sync="model.f_address_state" :value-single="true"
108
+ class="select_list select"
109
+ condition="f_address_state = '{}'"
110
+ :options='addresstate' placeholder='地址状态'
111
+ close-on-select>
112
+ </v-select>
113
+ </div>
114
+ <div v-if="usertype" class="col-sm-12 form-group "
115
+ :class="[$v.f_address.required ? 'has-error' : 'has-success']">
116
+ <label for="f_address" class="font_normal_body">详细地址</label>
117
+ <input type="text" style="width:80%" v-model="model.f_address" class="input_search" placeholder="详细地址"
118
+ v-validate:f_address='{required: true }'/>
119
+ </div>
120
+ <div class="col-sm-12 form-group">
121
+ <label class="font_normal_body " >备&emsp;&emsp;注</label>
122
+ <textarea class="input_textarea" rows="3" style="margin-top: 25px; width:80%;height: auto;" v-model="model.f_comments"></textarea>
123
+ </div>
124
+ <div style="text-align:right;margin-top:40px;margin-right:50px;" class="col-sm-12">
125
+ <button class="button_search button_spacing" @click="confirm()" :disabled='!$v.valid'>保存</button>
126
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
127
+ </div>
128
+
129
+ </div>
130
+ <!--批量录入-->
131
+ <div v-if="onedata=='more'" class="row">
132
+ <div class="col-sm-6 form-group "
133
+ :class="[$v.f_pcd_id.required ? 'has-error' : 'has-success']">
134
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
135
+ <input type="text" style="width:60%" v-show="false" v-model="model.f_pcd_id"
136
+ >
137
+ <v-select :value.sync="model.f_pcd_id" :value-single="true"
138
+ :options='pcdslist' placeholder='请选择'
139
+ close-on-select search="true" @change="pcdChange" :disabled="!usertype">
140
+ </v-select>
141
+ </div>
142
+ <div class="col-sm-6 form-group "
143
+ :class="[$v.f_street_id.required ? 'has-error' : 'has-success']">
144
+ <label class="font_normal_body">街&emsp;&emsp;道</label>
145
+ <input type="text" style="width:60%" v-show="false" v-model="model.f_street_id"
146
+ >
147
+ <v-select :value.sync="model.f_street_id" :value-single="true"
148
+ :options='streetslist' placeholder='请选择'
149
+ close-on-select search="true" :disabled="!usertype">
150
+ </v-select>
151
+ </div>
152
+ <div class="col-sm-6 form-group "
153
+ :class="[$v.f_residential_area_id.required ? 'has-error' : 'has-success']">
154
+ <label class="font_normal_body">小区名称</label>
155
+ <input type="text" style="width:60%" v-show="false" v-model="model.f_residential_area_id"
156
+ v-validate:f_residential_area_id='{required: true }'>
157
+ <v-select :value.sync="model.f_residential_area_id" :value-single="true"
158
+ @change="areaChange"
159
+ :options='areaslist' placeholder='请选择'
160
+ close-on-select search="true">
161
+ </v-select>
162
+ </div>
163
+ <div class="col-sm-6 form-group " :class="[$v.slice.required ? 'has-error' : 'has-success']">
164
+ <label class="font_normal_body">片&emsp;&emsp;区</label>
165
+ <input type="text" style="width:60%" class="input_search" v-show="false" v-model="$refs.slice.selectedItems"
166
+ v-validate:slice='{required: true }'>
167
+ <v-select :value.sync="model.slice_area" v-model="model.slice_area"
168
+ :options='sliceArea' placeholder='片区/管理站' filer-key="name"
169
+ close-on-select v-ref:slice>
170
+ </v-select>
171
+ </div>
172
+
173
+ <div class="col-sm-6 form-group "
174
+ :class="[$v.f_building_start.integernum || $v.f_building_start.dctest ?'has-error' : 'has-success']">
175
+ <label for="f_address" class="font_normal_body">起始楼号</label>
176
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_building_prefix" class="input_search"/>
177
+ <input type="text" style="width:25%"
178
+ v-validate:f_building_start='{integernum: true ,dctest: [model.f_building_end, "<=" ]}'
179
+ v-model="model.f_building_start" class="input_search" placeholder="楼号"/>
180
+ <input type="text" style="width:17%" v-model="model.f_building_suffix" class="input_search"/>
181
+ </div>
182
+ <div class="col-sm-6 form-group "
183
+ :class="[$v.f_building_end.integernum ||$v.f_building_end.dctest ? 'has-error' : 'has-success']">
184
+ <label for="f_address" class="font_normal_body">截止楼号</label>
185
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_building_prefix" class="input_search"/>
186
+ <input type="text" style="width:25%"
187
+ v-validate:f_building_end='{integernum: true ,dctest: [model.f_building_start, ">=" ]}'
188
+ v-model="model.f_building_end" class="input_search" placeholder="楼号"/>
189
+ <input type="text" style="width:17%" v-model="model.f_building_suffix" class="input_search"
190
+ />
191
+ </div>
192
+ <div class="col-sm-6 form-group "
193
+ :class="[$v.f_unit_start.integernum || $v.f_unit_start.dctest ? 'has-error' : 'has-success']">
194
+ <label for="f_address" class="font_normal_body">起始单元</label>
195
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_unit_prefix" class="input_search" />
196
+ <input type="text" style="width:25%"
197
+ v-validate:f_unit_start='{integernum: true ,dctest: [model.f_unit_end, "<=" ]}'
198
+ v-model="model.f_unit_start" class="input_search" placeholder="单元"/>
199
+ <input type="text" style="width:17%" v-model="model.f_unit_suffix" class="input_search" />
200
+ </div>
201
+ <div class="col-sm-6 form-group "
202
+ :class="[$v.f_unit_end.integernum ||$v.f_unit_end.dctest ? 'has-error' : 'has-success']">
203
+ <label for="f_address" class="font_normal_body">截止单元</label>
204
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_unit_prefix" class="input_search" />
205
+ <input type="text" style="width:25%"
206
+ v-validate:f_unit_end='{integernum: true ,dctest: [model.f_unit_start, ">="]}'
207
+ v-model="model.f_unit_end" class="input_search" placeholder="单元"/>
208
+ <input type="text" style="width:17%" v-model="model.f_unit_suffix" class="input_search"/>
209
+ </div>
210
+ <div class="col-sm-6 form-group "
211
+ :class="[$v.f_floor_start.integernum || $v.f_floor_start.dctest ? 'has-error' : 'has-success']">
212
+ <label for="f_address" class="font_normal_body">起始楼层</label>
213
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_floor_prefix" class="input_search"/>
214
+ <input type="text" style="width:25%"
215
+ v-validate:f_floor_start='{integernum: true,dctest: [model.f_floor_end, "<=" ] }'
216
+ v-model="model.f_floor_start" class="input_search" placeholder="楼层"/>
217
+ <input type="text" style="width:17%" v-model="model.f_floor_suffix" class="input_search"/>
218
+ </div>
219
+ <div class="col-sm-6 form-group "
220
+ :class="[$v.f_floor_end.integernum ||$v.f_floor_end.dctest ? 'has-error' : 'has-success']">
221
+ <label for="f_address" class="font_normal_body">截止楼层</label>
222
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_floor_prefix" class="input_search"/>
223
+ <input type="text" style="width:25%" v-model="model.f_floor_end"
224
+ v-validate:f_floor_end='{integernum: true,dctest: [model.f_floor_start, ">=" ] }'
225
+ class="input_search" placeholder="楼层"/>
226
+ <input type="text" style="width:17%" v-model="model.f_floor_suffix" class="input_search"/>
227
+ </div>
228
+ <div class="col-sm-6 form-group "
229
+ :class="[$v.f_room_start.integernum || $v.f_room_start.dctest ? 'has-error' : 'has-success']">
230
+ <label for="f_address" class="font_normal_body">起始门牌</label>
231
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_room_prefix" class="input_search"/>
232
+ <input type="text" style="width:25%" v-model="model.f_room_start"
233
+ class="input_search" placeholder="门牌号"
234
+ v-validate:f_room_start='{integernum: true ,dctest: [model.f_room_end, "<=" ]}'
235
+ />
236
+ <input type="text" style="width:17%" v-model="model.f_room_suffix" class="input_search"/>
237
+ </div>
238
+ <div class="col-sm-6 form-group "
239
+ :class="[$v.f_room_end.integernum ||$v.f_room_end.dctest ? 'has-error' : 'has-success']">
240
+ <label for="f_address" class="font_normal_body">截止门牌</label>
241
+ <input type="text" style="width:15%" placeholder="前缀" v-model="model.f_room_prefix" class="input_search"/>
242
+ <input type="text" style="width:25%" v-model="model.f_room_end" class="input_search" placeholder="门牌号"
243
+ v-validate:f_room_end='{integernum: true ,dctest: [model.f_room_start, ">=" ]}'/>
244
+ <input type="text" style="width:17%" v-model="model.f_room_suffix" class="input_search"/>
245
+ </div>
246
+ <div class="col-sm-6 form-group">
247
+ <label class="font_normal_body">地址状态</label>
248
+ <v-select :value.sync="model.f_address_state" :value-single="true"
249
+ class="select_list select"
250
+ condition="f_address_state = '{}'"
251
+ :options='addresstate' placeholder='地址状态'
252
+ close-on-select>
253
+ </v-select>
254
+ </div>
255
+ <div class="col-sm-10 form-group ">
256
+ <p class="navbar-text" style="margin-left: 10%">说明: 层数输入1,门牌号输入001。产生的最终门牌号显示1001</p>
257
+ </div>
258
+ <div class="col-sm-12 form-group">
259
+ <label class="font_normal_body " style="margin-top:-20px">备&emsp;&emsp;注</label>
260
+ <textarea class="input_textarea" rows="3" style="width:80%;height: auto;" v-model="model.f_comments"></textarea>
261
+ </div>
262
+ <div class="row">
263
+ <div style="text-align:right;margin-top:20px;margin-right:50px;" class="col-sm-12">
264
+ <button class="button_search button_spacing" @click="confirmall()" :disabled='!$v.valid'>保存</button>
265
+ <button class="button_clear button_spacing" @click="cancel()">取消</button>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </div>
270
+ </validator>
271
+ </div>
272
+ </template>
273
+
274
+ <script>
275
+ import {HttpResetClass} from 'vue-client'
276
+
277
+ let getAreaConfig = async function (self) {
278
+ // 获取气价里面的配置
279
+ await self.$getConfig(self, 'UserAddress')
280
+ console.log('原地址配置', self.config)
281
+ console.log('获取地址配置', self.config)
282
+ Object.assign(self.model, self.config)
283
+ self.initdata()
284
+ }
285
+
286
+ export default {
287
+ title: '用户地址添加',
288
+ data () {
289
+ return {
290
+ // 初始化省市区数据
291
+ pcdslist: [],
292
+ // 初始化街道数据
293
+ streetslist: [],
294
+ // 初始化街道数据
295
+ areaslist: [],
296
+ config: {
297
+ f_building_suffix: '号楼',
298
+ f_unit_suffix: '单元',
299
+ f_floor_suffix: '层',
300
+ f_room_suffix: '室'
301
+ },
302
+ model: {
303
+ f_pcd_id: '',
304
+ f_street_id: '',
305
+ f_comments: '',
306
+ f_residential_area_id: '',
307
+ f_pcd: '',
308
+ f_street: '',
309
+ f_residential_area: '',
310
+ f_slice_area: '',
311
+ f_building: '',
312
+ f_building_start: '',
313
+ f_building_end: '',
314
+ f_building_suffix: '',
315
+ f_unit: '',
316
+ f_unit_start: '',
317
+ f_unit_end: '',
318
+ f_unit_suffix: '',
319
+ f_floor: '',
320
+ f_floor_start: '',
321
+ f_floor_end: '',
322
+ f_floor_suffix: '',
323
+ f_room: '',
324
+ f_room_start: '',
325
+ f_room_end: '',
326
+ f_room_suffix: '',
327
+ // 详细地址
328
+ f_address: '',
329
+ // 单位名称
330
+ f_company: '',
331
+ // 单位地址
332
+ f_company_address: ''
333
+ },
334
+ // 判读是否为单个数据录入
335
+ onedata: 'one',
336
+ // 选中所有地址
337
+ addresslist: [],
338
+ usertype: false,
339
+
340
+ // 公司信息
341
+ curorgid: [this.$login.f.orgid],
342
+
343
+ f_orgid: '',
344
+
345
+ sliceArea: []
346
+ }
347
+ },
348
+ props: ['f_filialeids', 'row', 'operation', 'usertype'],
349
+ ready () {
350
+ getAreaConfig(this)
351
+ },
352
+ methods: {
353
+ async initdata () {
354
+ this.model.f_address_state = '已通气'
355
+ this.initAreas(this.f_filialeids)
356
+ // 添加特殊地址选省市区
357
+
358
+ this.initpcds(` f_orgid = '${this.f_filialeids}'`)
359
+ this.initstreets(` f_orgid = '${this.f_filialeids}' `)
360
+ this.initareas(` f_orgid = '${this.f_filialeids}'`)
361
+ },
362
+
363
+ // 初始化片区
364
+ async initAreas (val) {
365
+ if (val) {
366
+ let getAllArea = await this.$resetpost('/rs/search', {
367
+ source: 'this.getParentByType($organization$).getAllChildrens().where(row.getType() == $zone$)',
368
+ userid: this.$login.f.id
369
+ }, {resolveMsg: null, rejectMsg: '获取片区出错!!!'})
370
+
371
+ let arr = getAllArea.data.filter((res) => {
372
+ return res.parentid == val
373
+ })
374
+ console.log('过滤之后的片区', arr)
375
+ this.sliceArea = []
376
+ arr.forEach((res) => {
377
+ this.sliceArea.push({label: res.name, value: {name: res.name, code: res.number}})
378
+ })
379
+ }
380
+ },
381
+ // 初始化省市区,添加街道
382
+ async initpcds (pconditon) {
383
+ this.pcdslist = []
384
+ let HttpReset = new HttpResetClass()
385
+ let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
386
+ data: {
387
+ items: '*',
388
+ tablename: 't_pcd',
389
+ orderitem: 'id',
390
+ condition: pconditon
391
+ }
392
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
393
+ let redata = []
394
+ req.data.forEach((row, n) => {
395
+ redata[n] = {
396
+ label: row.f_pcd,
397
+ value: row.id,
398
+ data: row,
399
+ id: row.id
400
+ }
401
+ })
402
+ this.pcdslist = redata
403
+ },
404
+ // 初始化街道 添加小区
405
+ async initstreets (pconditon) {
406
+ this.streetslist = []
407
+ let HttpReset = new HttpResetClass()
408
+ let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy', {
409
+ data: {
410
+ items: '*',
411
+ tablename: 't_street',
412
+ orderitem: 'id',
413
+ condition: pconditon
414
+ }
415
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
416
+ let redata = []
417
+ req.data.forEach((row, n) => {
418
+ redata[n] = {
419
+ label: row.f_street,
420
+ value: row.id,
421
+ data: row,
422
+ id: row.id
423
+ }
424
+ })
425
+ this.streetslist = redata
426
+ },
427
+ // 初始化小区添加小区
428
+ async initareas (pconditon) {
429
+ // if(this.usertype){
430
+ // pconditon=pconditon+` and f_special='1' `
431
+ // }
432
+ this.areaslist = []
433
+ let HttpReset = new HttpResetClass()
434
+ let req = await HttpReset.load('POST', 'rs/sql/address_singleTableOrderBy?pageNo=1&pageSize=9999999', {
435
+ data: {
436
+ items: '*',
437
+ tablename: 't_area',
438
+ orderitem: 'id',
439
+ condition: pconditon
440
+ }
441
+ }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
442
+ let redata = []
443
+ req.data.forEach((row) => {
444
+ redata.push({
445
+ label: row.f_residential_area,
446
+ value: row.id,
447
+ data: row,
448
+ id: row.id
449
+ })
450
+ })
451
+ this.areaslist = redata
452
+ },
453
+ // 省/市/区变化
454
+ async pcdChange (val) {
455
+ // 只有添加特殊地址时才级联
456
+ if (!this.usertype) {
457
+ return
458
+ }
459
+ console.log('省/市/区变化', val)
460
+ if (val) {
461
+ // 那就把[小区,街道]重新组织一下
462
+ await this.initstreets(` f_pcd_id ='${val}' `)
463
+ if (this.model.f_street_id) {
464
+ if (this.findbyid(this.streetslist, this.model.f_street_id)) {
465
+ let pcd_id = this.findbyid(this.streetslist, this.model.f_street_id).f_pcd_id
466
+ if (pcd_id != val) {
467
+ this.model.f_street_id = ''
468
+ }
469
+ } else {
470
+ this.model.f_street_id = ''
471
+ }
472
+
473
+ // 那就把[小区,街道]重新组织一下
474
+ if (this.model.f_street_id) {
475
+ await this.initareas(` f_street_id ='${this.model.f_street_id}' `)
476
+ if (this.model.f_residential_area_id) {
477
+ if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
478
+ let pcd_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_pcd_id
479
+ if (pcd_id != val) {
480
+ this.model.f_residential_area_id = ''
481
+ }
482
+ } else {
483
+ this.model.f_residential_area_id = ''
484
+ }
485
+ }
486
+ }
487
+ }
488
+ }
489
+ this.$resetValidation()
490
+ },
491
+ // 小区变化
492
+ areaChange (val) {
493
+ console.log('小区变化', val)
494
+ // 选择小区后级联出省市区和街道
495
+ let selectArea // 选中的小区数据
496
+ for (let row of this.areaslist) {
497
+ if (val == row.value) {
498
+ selectArea = row.data
499
+ break
500
+ }
501
+ }
502
+ if (selectArea) {
503
+ this.model.f_street_id = selectArea.f_street_id
504
+ this.model.f_pcd_id = selectArea.f_pcd_id
505
+ this.initstreets(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_street_id}' `)
506
+ this.initpcds(` f_filialeid = '${this.f_filialeids}' and id ='${selectArea.f_pcd_id}' `)
507
+ this.model.slice_area = [{name: selectArea.f_slice_area, code: selectArea.f_area_code}]
508
+ // 拼接地址
509
+ this.model.f_address = `${selectArea.f_street}${selectArea.f_residential_area}`
510
+ }
511
+ this.$nextTick(() => {
512
+ this.$resetValidation()
513
+ })
514
+ },
515
+ // 街道变化
516
+ async streetChange (val) {
517
+ console.log('街道变化', val)
518
+ if (this.streetslist[0]) {
519
+ var street = ''
520
+ this.streetslist.forEach((item) => {
521
+ if (item.id === val) {
522
+ street = item.label
523
+ }
524
+ })
525
+ this.model.f_address = street
526
+ }
527
+ if (val) {
528
+ // 那就把[小区]重新组织一下
529
+ await this.initareas(` f_street_id ='${val}' `)
530
+ if (this.model.f_residential_area_id) {
531
+ if (this.findbyid(this.areaslist, this.model.f_residential_area_id)) {
532
+ let street_id = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_street_id
533
+ if (street_id != val) {
534
+ this.model.f_residential_area_id = ''
535
+ }
536
+ } else {
537
+ this.model.f_residential_area_id = ''
538
+ }
539
+ }
540
+ }
541
+ this.$resetValidation()
542
+ },
543
+
544
+ getorg (val) {
545
+ this.f_orgid = val[0]
546
+ },
547
+
548
+ // 处理批量地址信息
549
+ dealaddlist () {
550
+ try {
551
+ var resultlist = []
552
+ for (var i = parseInt(this.model.f_building_start); i <= parseInt(this.model.f_building_end); i++) {
553
+ for (var j = parseInt(this.model.f_unit_start); j <= parseInt(this.model.f_unit_end); j++) {
554
+ for (var m = parseInt(this.model.f_floor_start); m <= parseInt(this.model.f_floor_end); m++) {
555
+ for (var n = parseInt(this.model.f_room_start); n <= parseInt(this.model.f_room_end); n++) {
556
+ // 预备一个空的json
557
+ console.log('批量', this.model)
558
+ let data = Object.assign({}, this.model)
559
+ data.f_create_person = this.$login.f.name
560
+ data.f_building = data.f_building_prefix + i
561
+ data.f_unit = data.f_unit_prefix + j
562
+ data.f_floor = data.f_floor_prefix + m
563
+ // 目前房号都按两位处理 如: 101室 201室 110室
564
+ if ((n + '').length == 1) {
565
+ data.f_room = data.f_room_prefix + m + '0' + n
566
+ } else {
567
+ data.f_room = data.f_room_prefix + m + '' + n
568
+ }
569
+ data.f_filialeid = this.f_filialeids
570
+ data.f_operator = this.$login.f.name
571
+ data.f_operatorid = this.$login.f.id
572
+ data.f_orgid = this.$login.f.orgid
573
+ data.f_orgname = this.$login.f.orgs
574
+ data.f_depid = this.$login.f.depids
575
+ data.f_depname = this.$login.f.deps
576
+ data.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
577
+ data.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
578
+ data.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area
579
+ data.f_address = data.f_street +
580
+ data.f_residential_area +
581
+ data.f_building + data.f_building_suffix +
582
+ data.f_unit + data.f_unit_suffix +
583
+ data.f_floor + data.f_floor_suffix +
584
+ data.f_room + data.f_room_suffix
585
+ if (this.model.slice_area) {
586
+ if (this.model.slice_area.length > 0) {
587
+ data.f_slice_area = this.model.slice_area[0].name
588
+ data.f_area_code = this.model.slice_area[0].code
589
+ }
590
+ }
591
+ resultlist.push(data)
592
+ }
593
+ }
594
+ }
595
+ }
596
+ this.addresslist = resultlist
597
+ } catch (e) {
598
+ console.log(e)
599
+ this.$showAlert('输出数据有误,请检查', 'warning', 2000)
600
+ }
601
+ },
602
+ // 保存多个
603
+ async confirmall () {
604
+ this.dealaddlist()
605
+ if (this.addresslist.length > 0) {
606
+ let msg = {
607
+ resolveMsg: '地址保存成功',
608
+ rejectMsg: '地址保存失败'
609
+ }
610
+ this.$showMessage('确定要批量添加' + this.addresslist.length + '户地址吗?,如有已经存在的,将会重复添加!!!', ['confirm', 'cancel']).then((res) => {
611
+ if (res === 'confirm') {
612
+ this.$resetpost('rs/logic/address_adduserlist', {data: {addlist: this.addresslist}}, msg).then((req) => {
613
+ this.cleardara()
614
+ this.$dispatch('confirm')
615
+ })
616
+ }
617
+ })
618
+ }
619
+ },
620
+ // 保存
621
+ async confirm () {
622
+ if (this.onedata == 'one') {
623
+ await this.saveonedata()
624
+ }
625
+ this.cleardara()
626
+ this.$dispatch('confirm')
627
+ },
628
+ // 保存一户信息
629
+ async saveonedata () {
630
+ this.model.f_create_person = this.$login.f.name
631
+ this.model.f_filialeid = this.f_filialeids
632
+ this.model.f_operator = this.$login.f.name
633
+ this.model.f_operatorid = this.$login.f.id
634
+ this.model.f_orgid = this.$login.f.orgid
635
+ this.model.f_orgname = this.$login.f.orgs
636
+ this.model.f_depid = this.$login.f.depids
637
+ this.model.f_depname = this.$login.f.deps
638
+ if (this.model.slice_area) {
639
+ if (this.model.slice_area.length > 0) {
640
+ this.model.f_slice_area = this.model.slice_area[0].name
641
+ this.model.f_area_code = this.model.slice_area[0].code
642
+ }
643
+ }
644
+ if (this.usertype) {
645
+ // 非民用
646
+ this.model.f_special = '1'
647
+ this.model.f_building_suffix = ''
648
+ this.model.f_unit_suffix = ''
649
+ this.model.f_floor_suffix = ''
650
+ this.model.f_room_suffix = ''
651
+ this.model.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
652
+ this.model.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
653
+ this.model.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id) ? this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area : ''
654
+ } else {
655
+ // 民用
656
+ this.model.f_pcd = this.findbyid(this.pcdslist, this.model.f_pcd_id).f_pcd
657
+ this.model.f_street = this.findbyid(this.streetslist, this.model.f_street_id).f_street
658
+ this.model.f_residential_area = this.findbyid(this.areaslist, this.model.f_residential_area_id).f_residential_area
659
+ this.model.f_address = this.model.f_pcd + this.model.f_street + this.model.f_residential_area + (this.model.f_building ? this.model.f_building + this.model.f_building_suffix : '') + (this.model.f_unit ? this.model.f_unit + this.model.f_unit_suffix : '') + (this.model.f_floor ? this.model.f_floor + this.model.f_floor_suffix : '') + this.model.f_room + this.model.f_room_suffix
660
+ }
661
+ await this.$resetpost('rs/logic/address_updateuseraddress', this.model)
662
+ },
663
+ cancel () {
664
+ this.cleardara()
665
+ this.$dispatch('cancel')
666
+ },
667
+ cleardara () {
668
+ this.model = {
669
+ f_pcd_id: '',
670
+ f_street_id: '',
671
+ f_residential_area_id: '',
672
+ f_pcd: '',
673
+ f_comments: '',
674
+ f_street: '',
675
+ f_residential_area: '',
676
+ f_slice_area: '',
677
+ f_building: '',
678
+ f_building_start: '',
679
+ f_building_end: '',
680
+ f_building_prefix: '',
681
+ f_building_suffix: this.config.f_building_suffix,
682
+ f_unit: '',
683
+ f_unit_start: '',
684
+ f_unit_end: '',
685
+ f_unit_prefix: '',
686
+ f_unit_suffix: this.config.f_unit_suffix,
687
+ f_floor: '',
688
+ f_floor_start: '',
689
+ f_floor_end: '',
690
+ f_floor_prefix: '',
691
+ f_floor_suffix: this.config.f_floor_suffix,
692
+ f_room: '',
693
+ f_room_start: '',
694
+ f_room_end: '',
695
+ f_room_prefix: '',
696
+ f_room_suffix: this.config.f_room_suffix,
697
+ // 详细地址
698
+ f_address: '',
699
+ // 单位名称
700
+ f_company: '',
701
+ // 单位地址
702
+ f_company_address: ''
703
+ }
704
+ // this.pcdslist = []
705
+ // this.streetslist = []
706
+ // this.areaslist = []
707
+ },
708
+
709
+ // 根据名字找数据
710
+ findbyid (list, name) {
711
+ var result
712
+ list.forEach((row, n) => {
713
+ if (name == row.value) {
714
+ result = row.data
715
+ }
716
+ })
717
+ return result
718
+ }
719
+ },
720
+ watch: {
721
+ // 分公司变化
722
+ 'f_filialeids' () {
723
+ if (this.model.f_filialeid) {
724
+ if (this.model.f_filialeid != this.f_filialeids) {
725
+ this.$dispatch('cancel')
726
+ }
727
+ }
728
+ this.cleardara()
729
+ this.initdata()
730
+ },
731
+ 'row' () {
732
+ this.onedata = 'one'
733
+ }
734
+ },
735
+ computed: {
736
+ // 地址状态下拉框
737
+ addresstate () {
738
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('地址状态')]
739
+ }
740
+ }
741
+ }
742
+ </script>
@@ -9,6 +9,10 @@ let specialComp = {
9
9
  },
10
10
  'other-charge-new': (resolve) => {
11
11
  require(['./components/OtherChargeNew'], resolve)
12
- }
12
+ },
13
+ // 地址管理
14
+ 'file-user-address': (resolve) => {
15
+ require(['./components/FilesManage/FileUserAddress'], resolve)
16
+ },
13
17
  }
14
18
  exports.specialComp = specialComp
@@ -133,8 +133,8 @@
133
133
  }
134
134
  if (self.operBtns.length > 0) {
135
135
  self.isBusiness = true
136
- if(self.data.f_newtable_fillgas > 0 ){
137
- let confirm = await self.$showMessage(`用户${self.data.f_userfiles_id}还有${self.data.f_newtable_fillgas}方旧表余气未补,是否要补气`, ['confirm', 'cancel'])
136
+ if(self.data.f_remanent_gas > 0 ){
137
+ let confirm = await self.$showMessage(`用户${self.data.f_userfiles_id}还有${self.data.f_remanent_gas}方旧表余气未补,是否要补气`, ['confirm', 'cancel'])
138
138
  if (confirm === 'confirm'){
139
139
  let id1 = self.operBtns.findIndex((arr) => arr.name === '补气购气')
140
140
  self.$refs.route.init(self.operBtns[id1].value.routeName, {row: self.data, cardData: self.cardInfo})
@@ -489,7 +489,7 @@ export default {
489
489
  this.printok()
490
490
  },
491
491
  async printok () {
492
- let msg = await this.$showMessage('已成功清零,是否进入发卡售气界面', ['confirm', 'cancel'])
492
+ let msg = await this.$showMessage('已成功清零,是否进入补气购气界面', ['confirm', 'cancel'])
493
493
  if (msg == 'confirm') {
494
494
  this.$dispatch('get-new-row', this.row)
495
495
  } else {
@@ -44,7 +44,7 @@
44
44
  </div>
45
45
  <div class="span" style="float:right;">
46
46
  <button class="button_search" @click="search()">查 询</button>
47
- <export-excel :data="{condition: $parent.$parent.condition}"
47
+ <export-excel :data="{condition: $parent.$parent.condition,condValue: $parent.$parent.condValueStr}"
48
48
  :field="$parent.$parent.getfield"
49
49
  sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="handFiles"
50
50
  template-name='抄表记录'
@@ -307,7 +307,8 @@ const myMap = new Map()
307
307
  ],
308
308
  meterType: [{label: '机表', value: '机表'}, {label: '物联网表', value: '物联网表'}],
309
309
  inputtores: [{label: '全部', value: ''}],
310
- orgCondtionStr: ''
310
+ orgCondtionStr: '',
311
+ condValueStr: ''
311
312
  }
312
313
  },
313
314
  async ready () {
@@ -427,6 +428,7 @@ const myMap = new Map()
427
428
  args.condValueStr = `${args.condValueStr} ` + f_orgstr
428
429
  this.model.search(args.condition, args.model, args.condValueStr)
429
430
  this.condition = args.condition
431
+ this.condValueStr = args.condValueStr
430
432
  },
431
433
  mergeRowData (joinrows) {
432
434
 
@@ -293,8 +293,8 @@
293
293
  condition="f_inputtor like '%{}%'" v-el:cc></v-select>
294
294
  </div>
295
295
  <div class="col-sm-4 form-group" >
296
- <label for="f_usetype" class="font_normal_body" title="参数:使用类型">&ensp;壁&nbsp;挂&nbsp;炉&nbsp;</label>
297
- <v-select :value.sync="row.f_usetype" v-model="row.f_usetype"
296
+ <label for="f_whether_bgl" class="font_normal_body" title="参数:使用类型">&ensp;壁&nbsp;挂&nbsp;炉&nbsp;</label>
297
+ <v-select :value.sync="row.f_whether_bgl" v-model="row.f_whether_bgl"
298
298
  :options='usetype' placeholder='使用类型' @change="usetypechange"
299
299
  close-on-select></v-select>
300
300
  </div>
@@ -487,10 +487,10 @@ let meterBookGen = function * (self) {
487
487
  usetypechange(){
488
488
  //如果选择壁挂锅炉
489
489
  let usertype = '';
490
- if( this.meter.f_usetype instanceof Array){
491
- usertype = this.meter.f_usetype.length>0? this.meter.f_usetype[0]:''
490
+ if( this.meter.f_whether_bgl instanceof Array){
491
+ usertype = this.meter.f_whether_bgl.length>0? this.meter.f_whether_bgl[0]:''
492
492
  }else{
493
- usertype = this.meter.f_usetype? this.meter.f_usetype:''
493
+ usertype = this.meter.f_whether_bgl? this.meter.f_whether_bgl:''
494
494
  }
495
495
  if(usertype == '是'){
496
496
  this.$showAlert('请进行添加用气设备!','warning',3000);