sale-client 3.6.385 → 3.6.386

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": "sale-client",
3
- "version": "3.6.385",
3
+ "version": "3.6.386",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -3,7 +3,7 @@
3
3
  <validator name='v' @valid="$emit('valid')" @invalid="$emit('invalid')">
4
4
  <form class="form-horizontal select-overspread ">
5
5
  <div class="row">
6
- <div class="col-sm-4 form-group " :class="[$v.f_user_name.required ? 'has-error' : '']"
6
+ <div class="col-sm-4 form-group " :class="[!baseinfo.base.f_user_name ? 'has-error' : '']"
7
7
  v-if="getConfigShowItem('f_user_name')">
8
8
  <label for="f_user_name" class="font_normal_body">*{{getConfigLabelName('f_user_name','用户姓名')}}</label>
9
9
  <input type="text" v-model="baseinfo.base.f_user_name"
@@ -86,9 +86,9 @@
86
86
  style="width: 60%" v-model="model.f_hand_end_date">
87
87
  </datepicker>
88
88
  </div>
89
- <div :class="[$v.f_period.required ? 'has-error' : 'has-success']" class="col-sm-6 form-group">
90
- <input class="input_search" style="width:60%" type="text" v-model="model.f_period" v-show="false"
91
- v-validate:f_period='{required: true }'>
89
+ <div :class="[$v.f_book_state.required ? 'has-error' : 'has-success']" class="col-sm-6 form-group">
90
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_book_state" v-show="false"
91
+ v-validate:f_book_state='{required: true }'>
92
92
  <label class="font_normal_body">表&emsp;册&emsp;状&emsp;态&emsp;</label>
93
93
  <v-select :value.sync="model.f_book_state" v-model='model.f_book_state'
94
94
  style="width:55%"
@@ -16,7 +16,6 @@
16
16
  <script>
17
17
  import TabButton from './../comprehen/common/TabButton'
18
18
  import Tabs from './../comprehen/common/Tabs'
19
- import CardHandAudit from './cardHandAudit.vue'
20
19
  export default {
21
20
  name: 'cardHandManager',
22
21
  title: '卡表抄表管理',
@@ -35,7 +34,7 @@ export default {
35
34
  show: [true]
36
35
  }
37
36
  },
38
- components: {CardHandAudit, Tabs, TabButton},
37
+ components: {Tabs, TabButton},
39
38
  ready () {
40
39
  console.log(this.$refs.list)
41
40
  },
@@ -46,9 +46,9 @@
46
46
  close-on-select>
47
47
  </v-select>
48
48
  </div>
49
- <div class="col-sm-4 form-group">
49
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
50
50
  <label class="font_normal_body">收款金额</label>
51
- <input type="text" v-model="model.f_collection" disabled=disabled style="width: 60%" class="input_search">
51
+ <input type="text" v-model="model.f_collection" :disabled="!editcollection" style="width: 60%" class="input_search">
52
52
  </div>
53
53
  <!--<div class="col-sm-4 form-group">-->
54
54
  <!--<label class="font_normal_body">收据类型</label>-->
@@ -97,20 +97,21 @@
97
97
  :show-reset-button="true">
98
98
  </datepicker>
99
99
  </div>
100
- <div class="col-sm-4 form-group">
100
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
101
101
  <label class="font_normal_body">购气气量</label>
102
- <input type="text" v-model="model.f_pregas" disabled=disabled style="width: 60%" class="input_search">
102
+ <input type="text" v-model="model.f_pregas" :disabled="!editcollection" style="width: 60%" class="input_search">
103
103
  </div>
104
- <div class="col-sm-4 form-group">
104
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
105
105
  <label class="font_normal_body">购气金额</label>
106
- <input type="text" v-model="model.f_preamount" disabled=disabled style="width: 60%" class="input_search">
106
+ <input type="text" v-model="model.f_preamount" :disabled="!editcollection" style="width: 60%" class="input_search">
107
107
  </div>
108
108
  </div>
109
109
  <div class="row">
110
- <div class="col-sm-4 form-group">
110
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护操作员权限】">
111
111
  <label class="font_normal_body" title="参数:操作人员">操作人员</label>
112
112
  <v-select :value.sync="model.f_operatorid"
113
113
  v-model="model.f_operatorid"
114
+ :disabled="!editoperator"
114
115
  :value-single="true" @change="selectoperator()"
115
116
  :options='foperator'
116
117
  close-on-select></v-select>
@@ -200,6 +201,8 @@ var data
200
201
  equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
201
202
  // 构建数组来存储对象
202
203
  editbank: true,
204
+ editcollection: false,
205
+ editoperator: false,
203
206
  uploadText: '收费',
204
207
  showfiles: false,
205
208
  recordList: [],
@@ -240,6 +243,12 @@ var data
240
243
  if (this.$login.r.includes('维护银行转账信息')) {
241
244
  this.editbank = true
242
245
  }
246
+ if (this.$login.r.includes('收费记录维护金额权限')) {
247
+ this.editcollection = true
248
+ }
249
+ if (this.$login.r.includes('收费记录维护操作员权限')) {
250
+ this.editoperator = true
251
+ }
243
252
  if (this.$login.r.includes('收费记录状态修改')) {
244
253
  this.editstate = false
245
254
  }
@@ -86,9 +86,9 @@
86
86
  style="width: 60%" v-model="model.f_hand_end_date">
87
87
  </datepicker>
88
88
  </div>
89
- <div :class="[$v.f_period.required ? 'has-error' : 'has-success']" class="col-sm-6 form-group">
90
- <input class="input_search" style="width:60%" type="text" v-model="model.f_period" v-show="false"
91
- v-validate:f_period='{required: true }'>
89
+ <div :class="[$v.f_book_state.required ? 'has-error' : 'has-success']" class="col-sm-6 form-group">
90
+ <input class="input_search" style="width:60%" type="text" v-model="model.f_book_state" v-show="false"
91
+ v-validate:f_book_state='{required: true }'>
92
92
  <label class="font_normal_body">表&emsp;册&emsp;状&emsp;态&emsp;</label>
93
93
  <v-select :value.sync="model.f_book_state" v-model='model.f_book_state'
94
94
  style="width:55%"
@@ -76,24 +76,24 @@
76
76
  </template>
77
77
  <template partial='body' partial='list' v-ref:grid>
78
78
  <tr >
79
- <td style="text-align:center">{{row.f_userinfo_code}}</td>
80
- <td style="text-align:center">{{row.f_user_name}}</td>
81
- <td style="text-align:center">{{row.f_address}}</td>
82
- <td style="text-align:center">{{row.f_last_tablebase}}</td>
83
- <td style="text-align:center">{{row.f_tablebase}}</td>
84
- <td style="text-align:center">{{row.f_type== '机表收费'? '' : row.gas}}</td>
85
- <td style="text-align:center;white-space:nowrap;">{{row.f_type == '机表收费'? '' : row.fee}}</td>
86
- <td style="text-align:center;white-space:nowrap;">{{row.f_type == '余额抵扣'? '' : row.f_collection}}</td>
87
- <td style="text-align:center;white-space:nowrap;">{{row.f_overdue}}</td>
88
- <td style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
89
- <td style="text-align:center;white-space:nowrap;">
79
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_userinfo_code}}</td>
80
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_user_name}}</td>
81
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_address}}</td>
82
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_last_tablebase}}</td>
83
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_tablebase}}</td>
84
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_type== '机表收费'? '' : row.gas}}</td>
85
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center;white-space:nowrap;">{{row.f_type == '机表收费'? '' : row.fee}}</td>
86
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center;white-space:nowrap;">{{row.f_type == '余额抵扣'? '' : row.f_collection}}</td>
87
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center;white-space:nowrap;">{{row.f_overdue}}</td>
88
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center;white-space:nowrap;">{{row.f_balance}}</td>
89
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center;white-space:nowrap;">
90
90
  {{ row.f_type == '余额抵扣'? (row.f_balance - row.fee).toFixed(1) : row.f_curbalance }}
91
91
  </td>
92
- <td style="text-align:center">{{row.f_type}}</td>
93
- <td style="text-align:center">{{row.f_operator}}</td>
94
- <td style="text-align:center">{{row.f_operate_date}}</td>
95
- <td style="text-align:center">{{row.f_state}}</td>
96
- <td style="text-align:center">{{row.f_comments}}</td>
92
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_type}}</td>
93
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_operator}}</td>
94
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_operate_date}}</td>
95
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_state}}</td>
96
+ <td :class="{'bg-danger' : row.f_whether_pay === '否' }" style="text-align:center">{{row.f_comments}}</td>
97
97
  </tr>
98
98
  </template>
99
99
  <template partial='foot'></template>
@@ -112,6 +112,9 @@
112
112
  <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
113
113
  金额合计:&emsp;{{model.sums.fee.toFixed(2)}}
114
114
  </td>
115
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">
116
+ 缴费合计:&emsp;{{model.sums.collection.toFixed(2)}}
117
+ </td>
115
118
  </tr>
116
119
  </table>
117
120
  </div>
@@ -173,11 +176,16 @@
173
176
  let feeTotal = res.data.reduce((sum, row) => {
174
177
  return row.f_type === '机表收费' ? sum : sum + (row.fee || 0);
175
178
  }, 0);
179
+ // 计算缴费总和
180
+ let collectionTotal = res.data.reduce((sum, row) => {
181
+ return sum + (row.f_collection || 0)
182
+ }, 0)
176
183
 
177
184
  this.printModel.rows = res.data
178
185
  this.model.sums = {
179
186
  gas: gasTotal,
180
- fee: feeTotal
187
+ fee: feeTotal,
188
+ collection: collectionTotal
181
189
  }
182
190
  },
183
191
  // 多选框初始化
@@ -46,9 +46,9 @@
46
46
  close-on-select>
47
47
  </v-select>
48
48
  </div>
49
- <div class="col-sm-4 form-group">
49
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
50
50
  <label class="font_normal_body">收款金额</label>
51
- <input type="text" v-model="model.f_collection" disabled=disabled style="width: 60%" class="input_search">
51
+ <input type="text" v-model="model.f_collection" :disabled="!editcollection" style="width: 60%" class="input_search">
52
52
  </div>
53
53
  <!--<div class="col-sm-4 form-group">-->
54
54
  <!--<label class="font_normal_body">收据类型</label>-->
@@ -97,21 +97,21 @@
97
97
  :show-reset-button="true">
98
98
  </datepicker>
99
99
  </div>
100
- <div class="col-sm-4 form-group">
100
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
101
101
  <label class="font_normal_body">购气气量</label>
102
- <input type="text" v-model="model.f_pregas" disabled=disabled style="width: 60%" class="input_search">
102
+ <input type="text" v-model="model.f_pregas" :disabled="!editcollection" style="width: 60%" class="input_search">
103
103
  </div>
104
- <div class="col-sm-4 form-group">
104
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护金额权限】">
105
105
  <label class="font_normal_body">购气金额</label>
106
- <input type="text" v-model="model.f_preamount" disabled=disabled style="width: 60%" class="input_search">
106
+ <input type="text" v-model="model.f_preamount" :disabled="!editcollection" style="width: 60%" class="input_search">
107
107
  </div>
108
108
  </div>
109
109
  <div class="row">
110
- <div class="col-sm-4 form-group">
110
+ <div class="col-sm-4 form-group" title="修正需权限:【收费记录维护操作员权限】">
111
111
  <label class="font_normal_body" title="参数:操作人员">操作人员</label>
112
112
  <v-select :value.sync="model.f_operatorid"
113
113
  v-model="model.f_operatorid"
114
- disabled=disabled
114
+ :disabled="!editoperator"
115
115
  :value-single="true" @change="selectoperator()"
116
116
  :options='foperator'
117
117
  close-on-select></v-select>
@@ -201,6 +201,8 @@ var data
201
201
  equipmentType: this.$appdata.getParam('打印格式') ? [{label: '', value: ''}, ...this.$appdata.getParam('打印格式')] : [],
202
202
  // 构建数组来存储对象
203
203
  editbank: true,
204
+ editcollection: false,
205
+ editoperator: false,
204
206
  uploadText: '收费',
205
207
  showfiles: false,
206
208
  recordList: [],
@@ -241,6 +243,12 @@ var data
241
243
  if (this.$login.r.includes('维护银行转账信息')) {
242
244
  this.editbank = true
243
245
  }
246
+ if (this.$login.r.includes('收费记录维护金额权限')) {
247
+ this.editcollection = true
248
+ }
249
+ if (this.$login.r.includes('收费记录维护操作员权限')) {
250
+ this.editoperator = true
251
+ }
244
252
  if (this.$login.r.includes('收费记录状态修改')) {
245
253
  this.editstate = false
246
254
  }
@@ -147,7 +147,7 @@ export default {
147
147
  return {
148
148
  disabled: true,
149
149
  model: {
150
- f_third_pay: '0',
150
+ f_third_pay: '1',
151
151
  f_time_type: '按月',
152
152
  f_limit_times: '',
153
153
  f_time_value: '',
@@ -192,7 +192,7 @@ export default {
192
192
  confirm () {
193
193
  this.$dispatch('limit', this.model)
194
194
  this.model = {
195
- f_third_pay: '0',
195
+ f_third_pay: '1',
196
196
  f_time_type: '按月',
197
197
  f_limit_times: '',
198
198
  f_time_value: '',
@@ -211,7 +211,7 @@ export default {
211
211
  }
212
212
  await this.$resetpost('rs/logic/runSQL', data)
213
213
  this.model = {
214
- f_third_pay: '0',
214
+ f_third_pay: '1',
215
215
  f_time_type: '按月',
216
216
  f_limit_times: '',
217
217
  f_time_value: '',
@@ -844,6 +844,15 @@ export default {
844
844
  return
845
845
  }
846
846
  }
847
+ if (this.row.f_meter_brand.includes('膜表')) {
848
+ console.log('判断一下', this.row)
849
+ let a = this.config.castInt ? parseInt(this.model.f_using_base_old) : this.model.f_using_base_old
850
+ let b = this.config.castInt ? parseInt(this.row.f_meter_base) : this.row.f_meter_base
851
+ if (a < b) {
852
+ this.$showMessage(`膜表旧表底数不能小于系统表当前表底数!!!`, ['cancel'], 3000)
853
+ this.model.f_using_base_old = ''
854
+ }
855
+ }
847
856
  if ((this.row.f_meter_type.includes('机表') || this.row.f_meter_type.includes('物联网表')) && msg) {
848
857
  this.$showMessage(msg, ['confirm', 'cancel']).then((res) => {
849
858
  if (res === 'confirm') {
@@ -327,6 +327,9 @@
327
327
  <th>
328
328
  <nobr>表号</nobr>
329
329
  </th>
330
+ <th>
331
+ <nobr>防盗卡号</nobr>
332
+ </th>
330
333
  <th>
331
334
  <nobr>表前阀状态</nobr>
332
335
  </th>
@@ -497,6 +500,9 @@
497
500
  <td style="text-align: center;">
498
501
  <nobr>{{row.f_meternumber}}</nobr>
499
502
  </td>
503
+ <td style="text-align: center;">
504
+ <nobr>{{row.f_defendcard}}</nobr>
505
+ </td>
500
506
  <td style="text-align: center;">
501
507
  <nobr>{{row.f_bqf_state}}</nobr>
502
508
  </td>
@@ -866,7 +872,8 @@
866
872
  'f_stair3amount': '三阶气量',
867
873
  'f_stair3price': '三阶单价',
868
874
  'f_stair3fee': '三阶气费',
869
- 'f_rest_date': '所属年月'}
875
+ 'f_rest_date': '所属年月',
876
+ 'f_defendcard': '防盗卡号'}
870
877
  },
871
878
  batchBankConfig2: {'f_userinfo_code': '客户编号',
872
879
  'f_userinfo_id': '用户编号',
@@ -0,0 +1,504 @@
1
+ <template>
2
+ <div>
3
+ <div style="flex: 1.5" class="flex">
4
+ <div class="flex">
5
+ <criteria-paged :model="model" v-ref:paged @sort="sort">
6
+ <criteria partial='criteria' v-ref:criteria @condition-changed="$parent.selfSearch"
7
+ v-show="$parent.searchshow">
8
+ <div novalidate class="form-inline auto" partial>
9
+ <!-- <div class="col-sm-2 form-group">-->
10
+ <!-- <label class="font_normal_body">组织机构</label>-->
11
+ <!-- <res-select :initresid='$parent.$parent.curorgid'-->
12
+ <!-- @res-select="$parent.$parent.getorg"-->
13
+ <!-- class="select select_list"-->
14
+ <!-- restype='organization'-->
15
+ <!-- style="width: 60%">-->
16
+ <!-- </res-select>-->
17
+ <!-- </div>-->
18
+ <div class="row">
19
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
20
+ class="form-group">
21
+ <label class="font_normal_body">客户编号</label>
22
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_userinfo_code"
23
+ condition="f_userinfo_code = '{}'" placeholder='客户编号'>
24
+ </div>
25
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
26
+ class="form-group">
27
+ <label class="font_normal_body">表&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</label>
28
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_meternumber"
29
+ condition="f_meternumber = '{}'" placeholder='表号'>
30
+ </div>
31
+ <div class="span" style="float:right;">
32
+ <button class="button_search" @click="search()">查 询</button>
33
+ <export-excel v-if="$parent.$parent.excelTable"
34
+ class="auto"
35
+ :data="{condition: $parent.$parent.condition,orderitem: $parent.$parent.orderitem}"
36
+ :field="$parent.$parent.getfield"
37
+ sqlurl="rs/logic/saleExport" progress="saleGetExportProgress" sql-name="changemeterFiles"
38
+ template-name='换表记录'
39
+ :choose-col="true"></export-excel>
40
+ <div
41
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
42
+ @click="$parent.$parent.hidden()"
43
+ class="button_spacing"
44
+ style="float: right"></div>
45
+ </div>
46
+ </div>
47
+ <div class="row" v-if="$parent.$parent.criteriaShow">
48
+ <res-select-group :initres="$parent.$parent.initres" :show-component="['company','department']" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
49
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
50
+ class="form-group">
51
+ <label class="font_normal_body">客户姓名</label>
52
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
53
+ condition="f_user_name = '{}'" placeholder='客户姓名'>
54
+ </div>
55
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
56
+ class="form-group">
57
+ <label class="font_normal_body">有无附件</label>
58
+ <v-select :disabled=false
59
+ :options='$parent.$parent.pj'
60
+ :value-single="true"
61
+ :value.sync="model.is_has_file"
62
+ close-on-select
63
+ placeholder='请选择'
64
+ v-model="model.is_has_file"
65
+ condition="is_has_file = '{}'"
66
+ search=fasle
67
+ >
68
+ </v-select>
69
+ </div>
70
+ <!-- <div-->
71
+ <!-- :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"-->
72
+ <!-- class="form-group">-->
73
+ <!-- <label class="font_normal_body">换表编号</label>-->
74
+ <!-- <input type="text" class="input_search" style="width: 60%" v-model="model.id"-->
75
+ <!-- condition="id = '{}'" placeholder='用户编号'>-->
76
+ <!-- </div>-->
77
+ <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
78
+ class="form-group">
79
+ <label class="font_normal_body">气表品牌</label>
80
+ <v-select id="f_meter_brand"
81
+ v-model="model.f_meter_brand"
82
+ placeholder='气表品牌'
83
+ :value.sync="model.f_meter_brand"
84
+ :options='$parent.$parent.meterbrand'
85
+ condition="f_meter_brand = '{}'"
86
+ close-on-select style="width: 60%"></v-select>
87
+ </div>
88
+ <div
89
+ :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
90
+ class="form-group">
91
+ <label class="font_normal_body">开始日期</label>
92
+ <datepicker placeholder="开始日期" v-model="model.startDate" :value.sync="model.startDate" style="width:60%"
93
+ :format="'yyyy-MM-dd 00:00:00'" condition="f_operate_date >= '{}'">
94
+ </datepicker>
95
+ </div>
96
+ <div
97
+ :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
98
+ class="form-group">
99
+ <label class="font_normal_body">结束日期</label>
100
+ <datepicker placeholder="结束日期" v-model="model.endDate" :value.sync="model.endDate" style="width:60%"
101
+ :format="'yyyy-MM-dd 23:59:59'" condition="f_operate_date <= '{}'">
102
+ </datepicker>
103
+ </div>
104
+ </div>
105
+ </div>
106
+
107
+ </criteria>
108
+ <data-grid :model="model" v-ref:grid class="list_area table_sy" partial='list'>
109
+ <template partial='head'>
110
+ <tr>
111
+ <th>
112
+ <nobr>序号</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>客户编号</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>客户名称</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>客户地址</nobr>
122
+ </th>
123
+ <th>
124
+ <nobr>换表类型</nobr>
125
+ </th>
126
+ <th>
127
+ <nobr>换表费</nobr>
128
+ </th>
129
+ <th>
130
+ <nobr>换表单号</nobr>
131
+ </th>
132
+ <th>
133
+ <nobr>旧表号</nobr>
134
+ </th>
135
+ <th>
136
+ <nobr>新表号</nobr>
137
+ </th>
138
+ <th>
139
+ <nobr>旧气表品牌</nobr>
140
+ </th>
141
+ <th>
142
+ <nobr>新气表品牌</nobr>
143
+ </th>
144
+ <th>
145
+ <nobr>旧表剩余补气量</nobr>
146
+ </th>
147
+ <th>
148
+ <nobr>旧表具剩余金额</nobr>
149
+ </th>
150
+ <th>
151
+ <nobr>换表原因</nobr>
152
+ </th>
153
+ <th>
154
+ <nobr>其他备注</nobr>
155
+ </th>
156
+ <th>
157
+ <nobr>换表人</nobr>
158
+ </th>
159
+ <th>
160
+ <nobr>状态</nobr>
161
+ </th>
162
+ <th>
163
+ <data-order field="f_operate_date" name="换表日期"></data-order>
164
+ </th>
165
+ <th>
166
+ <nobr>人员</nobr>
167
+ </th>
168
+ <th>
169
+ <nobr>部门</nobr>
170
+ </th>
171
+ <th>
172
+ <nobr>公司</nobr>
173
+ </th>
174
+ <th><nobr>附件</nobr></th>
175
+ </tr>
176
+ </template>
177
+ <template partial='body'>
178
+ <td style="text-align: center;"><nobr>{{$index + 1}}</nobr></td>
179
+ <td style="text-align: center;"><nobr>
180
+ {{row.f_userinfo_code}}
181
+ </nobr> </td>
182
+ <td style="text-align: center;">
183
+ <nobr>{{row.f_user_name}}</nobr>
184
+ </td>
185
+ <td style="text-align: center;">
186
+ <nobr>{{row.f_address}}</nobr>
187
+ </td>
188
+ <td style="text-align: center;">
189
+ <nobr>{{row.f_type}}</nobr>
190
+ </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{row.f_changemeter_fee}}</nobr>
193
+ </td>
194
+ <td style="text-align: center;">
195
+ <nobr>{{row.f_serial_number}}</nobr>
196
+ </td>
197
+ <td style="text-align: center;">
198
+ <nobr>{{row.f_meternumber_old}}</nobr>
199
+ </td>
200
+ <td style="text-align: center;">
201
+ <nobr>{{row.f_meternumber}}</nobr>
202
+ </td>
203
+ <td style="text-align: center;">
204
+ <nobr>{{row.f_meter_brand_old}}</nobr>
205
+ </td>
206
+ <td style="text-align: center;">
207
+ <nobr>{{row.f_meter_brand}}</nobr>
208
+ </td>
209
+ <td style="text-align: center;">
210
+ <nobr>{{row.f_remanent_gas}}</nobr>
211
+ </td>
212
+ <td style="text-align: center;">
213
+ <nobr>{{row.f_remanent_money}}</nobr>
214
+ </td>
215
+ <td style="text-align: center;">
216
+ <nobr>{{row.f_comments}}</nobr>
217
+ </td>
218
+ <td style="text-align: center;">
219
+ <nobr>{{row.f_othereason}}</nobr>
220
+ </td>
221
+ <td style="text-align: center;">
222
+ <nobr>{{row.f_change_operator}}</nobr>
223
+ </td>
224
+ <td style="text-align: center;">
225
+ <nobr>{{row.f_state}}</nobr>
226
+ </td>
227
+ <td style="text-align: center;">
228
+ <nobr>{{row.f_operate_date}}</nobr>
229
+ </td>
230
+ <td style="text-align: center;">
231
+ <nobr>{{row.f_operator}}</nobr>
232
+ </td>
233
+ <td style="text-align: center;">
234
+ <nobr>{{row.f_depname}}</nobr>
235
+ </td>
236
+ <td style="text-align: center;">
237
+ <nobr>{{row.f_orgname}}</nobr>
238
+ </td>
239
+ <td style="text-align: center;"><nobr>
240
+ <button v-if="row.is_has_file=='是'" class="btn btn-link" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
241
+ </nobr></td>
242
+ </template>
243
+ </data-grid>
244
+ </criteria-paged>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ </template>
249
+
250
+ <script>
251
+ import {PagedList} from 'vue-client'
252
+ const myMap = new Map()
253
+ let asyncReadyGen = async function (self) {
254
+ await self.initQueryParam()
255
+ }
256
+ export default {
257
+ 'title': '',
258
+ data () {
259
+ return {
260
+ model: new PagedList('rs/sql/changemeterFiles', 20, {orderitem: '"f_operate_date DESC"'}),
261
+ pj: this.$appdata.getParam('是否有附件') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('是否有附件')] : [],
262
+ // 控制查询条件显示
263
+ searchshow: true,
264
+ curorgid: [this.$login.f.orgid],
265
+ criteriaShow: false,
266
+ f_orgid: '',
267
+ condition: '',
268
+ // 排序
269
+ orderitem: 'f_operate_date desc',
270
+ orderFields: {
271
+ f_operate_date: 'no'
272
+ },
273
+ // 控制样式
274
+ editList: false,
275
+ excelTable: true,
276
+ getfield: {
277
+ 'f_userinfo_code': '客户编号',
278
+ 'f_user_name': '客户名称',
279
+ 'f_address': '客户地址',
280
+ 'f_type': '换表类型',
281
+ 'f_changemeter_fee': '换表费',
282
+ 'f_meternumber_old': '旧表号',
283
+ 'f_meternumber': '新表号',
284
+ 'f_meter_brand_old': '旧气表品牌',
285
+ 'f_meter_brand': '新气表品牌',
286
+ 'f_remanent_gas': '旧表剩余补气量',
287
+ 'f_remanent_money': '旧表剩余金额',
288
+ 'f_comments': '换表原因',
289
+ 'f_othereason': '其他备注',
290
+ 'f_change_operator': '换表人',
291
+ 'f_state': '状态',
292
+ 'f_operate_date': '换表日期',
293
+ 'f_operator': '人员',
294
+ 'f_depname': '所属部门',
295
+ 'f_orgname': '所属公司',
296
+ 'f_serial_number': '换表单号'
297
+ },
298
+ meterbrand: [],
299
+ initres: {
300
+ org: [this.$login.f.orgid],
301
+ dep: [],
302
+ user: []
303
+ },
304
+ whetherPay: [{label: '全部', value: ''}, {label: '是', value: '是'}, {label: '否', value: '否'}],
305
+ da: {
306
+ rows: []
307
+ },
308
+ f_meternumber: ''
309
+ }
310
+ },
311
+ ready () {
312
+ asyncReadyGen(this)
313
+ this.search()
314
+ // this.getwarehouse()
315
+ },
316
+ props: ['showMessage'],
317
+ methods: {
318
+ getorg (val) {
319
+ this.f_orgid = this.$login.convertToIn(val)
320
+ this.f_filialeid = val[0]
321
+ },
322
+ async getRes (condition, obj) {
323
+ this.orgCondtionStr = condition
324
+ this.orgname = obj.orgnames[0]
325
+ this.depname = obj.depnames[0]
326
+
327
+ },
328
+ initQueryParam () {
329
+ let arr = []
330
+ this.$GetSaleParam.getGasbrand().forEach((item) => {
331
+ let temp = {}
332
+ temp.label = item.label
333
+ temp.value = item.value.f_meter_brand
334
+ arr.push(temp)
335
+ })
336
+ this.meterbrand = [{label: '全部', value: ''}, ...arr]
337
+ },
338
+ view (row) {
339
+ this.$parent.showupload = true
340
+ this.$parent.row = row
341
+ },
342
+ init () {
343
+ this.f_meternumber = ''
344
+ this.da.rows = []
345
+ myMap.clear()
346
+ },
347
+ cancelSet () {
348
+ this.showSetModal = false
349
+ this.init()
350
+ },
351
+
352
+ jump () {
353
+ this.joinshow2 = false
354
+ this.showSetModal = true
355
+ },
356
+ async getwarehouse () {
357
+
358
+ },
359
+ hidden () {
360
+ this.criteriaShow = !this.criteriaShow
361
+ },
362
+ join1 (row) {
363
+ this.joinrow = row
364
+ this.joinshow = true
365
+ },
366
+
367
+ joinclose () {
368
+ this.joinshow = false
369
+ },
370
+ joinclose2 () {
371
+ this.joinshow2 = false
372
+ },
373
+
374
+ sort (field, rule) {
375
+ // 将所有排序方式设为不排序,实现相互排斥
376
+ for (let key in this.orderFields) {
377
+ if (key === field) {
378
+ this.orderFields[key] = rule
379
+ } else {
380
+ this.orderFields[key] = 'no'
381
+ }
382
+ }
383
+ // 如果新规则不排序,还原为默认排序
384
+ if (rule === 'no') {
385
+ this.model.paramSource.orderitem = `'${this.orderitem}'`
386
+ } else {
387
+ this.model.paramSource.orderitem = `'${field} ${rule}'`
388
+ }
389
+
390
+ this.search()
391
+ },
392
+ search () {
393
+ this.$refs.paged.$refs.criteria.search()
394
+ },
395
+ importFile () {
396
+ this.show = true
397
+ },
398
+ selfSearch (args) {
399
+ if (!this.f_orgid) {
400
+ this.getorg([this.$login.f.orgid])
401
+ }
402
+ console.log('查询。。。', this.f_orgid)
403
+ if (!this.orgCondtionStr) {
404
+ args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
405
+ } else {
406
+ args.condition = `${args.condition}` + this.orgCondtionStr
407
+ }
408
+ this.model.search(args.condition, args.model)
409
+ this.condition = args.condition
410
+ },
411
+ mergeRowData (joinrows) {
412
+
413
+ },
414
+ // 多选框初始化
415
+ selectInit () {
416
+ this.rowsdata = []
417
+ this.all = []
418
+ this.radio = []
419
+ },
420
+ select () {
421
+ let index = this.model1.pageIndex - 1
422
+ console.log('全选', this.all[index])
423
+ if (!this.radio[index]) {
424
+ this.radio.$set(index, [])
425
+ }
426
+ if (this.all[index]) {
427
+ // 数据
428
+ this.rowsdata[index] = Object.assign([], this.model1.rows)
429
+ // 勾选
430
+ for (var i = 0; i < this.model1.rows.length; i++) {
431
+ this.radio[index].$set(i, true)
432
+ }
433
+ } else {
434
+ // 数据
435
+ this.rowsdata[index] = []
436
+ // 不勾选
437
+ for (var i = 0; i < this.model1.rows.length; i++) {
438
+ this.radio[index].$set(i, false)
439
+ }
440
+ }
441
+ },
442
+ selectOne (event, row, i) {
443
+ console.log('单选', event.target.checked)
444
+ let index = this.model1.pageIndex - 1
445
+ if (!this.rowsdata[index]) {
446
+ this.rowsdata[index] = []
447
+ }
448
+ if (!this.radio[index]) {
449
+ this.radio.$set(index, [])
450
+ }
451
+ if (event.target.checked) {
452
+ // 数据
453
+ this.rowsdata[index][i] = row
454
+ // 勾选
455
+ this.radio[index].$set(i, true)
456
+ // 判断是否全部选中
457
+ var allState = true
458
+ if (this.model1.rows.length != this.radio[index].length) {
459
+ allState = false
460
+ }
461
+ for (var state of this.radio[index]) {
462
+ if (!state) {
463
+ allState = false
464
+ }
465
+ }
466
+ if (allState) {
467
+ this.all.$set(index, true)
468
+ } else {
469
+ this.all.$set(index, false)
470
+ }
471
+ } else {
472
+ // 数据
473
+ this.rowsdata[index][i] = []
474
+ // 不勾选
475
+ this.radio[index].$set(i, false)
476
+ // 任意取消一个则全选状态设为false
477
+ this.all.$set(index, false)
478
+ }
479
+ }
480
+ },
481
+ computed: {
482
+ ischecked () {
483
+ return function (index, i) {
484
+ // console.log("计算属性")
485
+ if (!this.radio[index]) {
486
+ return false
487
+ }
488
+ return this.radio[index][i]
489
+ }
490
+ },
491
+ distributionstate () {
492
+ return [{label: '全部', value: ''}, {label: '待分配', value: 'is null'}, {label: '已入库', value: 'is not null'}]
493
+ }
494
+ }
495
+ }
496
+ </script>
497
+ <style>
498
+ .datapanel {
499
+ color: #333;
500
+ background-color: white;
501
+ padding: 10px 20px;
502
+ border-radius: 15px;
503
+ }
504
+ </style>
@@ -51,4 +51,6 @@ export default function () {
51
51
  Vue.component('machine-down', (resolve) => { require(['./machineDown'], resolve) })
52
52
  // 获取气表信息
53
53
  Vue.component('meter-message', (resolve) => { require(['./MeterMessage'], resolve) })
54
+ // 换表记录维护列表
55
+ Vue.component('changemeter-list-maintain', (resolve) => { require(['./changemeterListMaintain'], resolve) })
54
56
  }
package/src/main.js CHANGED
@@ -2,7 +2,7 @@ import Vue from 'vue'
2
2
  import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
- import FilialeSale from './filiale/qingjian/sale'
5
+ import FilialeSale from './filiale/rongchuang/sale'
6
6
  import sale from './sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
package/src/sale.js CHANGED
@@ -363,7 +363,7 @@ export default function () {
363
363
 
364
364
  // 卡表抄表管理(把卡表抄表页面的功能拆成页签形式。未完成,目前还是用card-hand页面)
365
365
  Vue.component('card-hand-manager', (resolve) => { require(['./components/revenue/cardHandManage/cardHandManager'], resolve) })
366
- // Vue.component('card-hand-audit', (resolve) => { require(['./components/revenue/cardHandManage/cardHandAudit'], resolve) })
366
+ Vue.component('card-hand-audit', (resolve) => { require(['./components/revenue/cardHandManage/cardHandAudit'], resolve) })
367
367
  Vue.component('cards-hand', (resolve) => { require(['./components/revenue/cardHandManage/cardsHand'], resolve) })
368
368
  // 卡表计划下发
369
369
  Vue.component('card-down', (resolve) => { require(['./components/revenue/cardHandManage/cardDown'], resolve) })