sale-client 3.6.466 → 3.6.468

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.466",
3
+ "version": "3.6.468",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -37,7 +37,7 @@
37
37
  <label for="f_metertitles" class="font_normal_body">新表封号</label>
38
38
  <input type="text" class="input_search" style="width:60%" class="input_search" v-model="metermessage.f_metertitles" placeholder='表封号'>
39
39
  </div>
40
- <div class="col-sm-4 form-group" :class="[$v.f_meter_base.required ? 'has-error' : '']">
40
+ <div class="col-sm-4 form-group" :class="[$v.f_meter_base.required ? 'has-error' : '']" title="参数名称:【初始表底数最大值】">
41
41
  <label for="f_meter_base" class="font_normal_body">新表底数</label>
42
42
  <input type="text" class="input_search" style="width:60%" class="input_search" v-validate:f_meter_base='{required: true }' @blur='meterbase()' v-model="metermessage.f_meter_base" placeholder='表底数' >
43
43
  </div>
@@ -61,7 +61,7 @@
61
61
  isdecimal: '否',
62
62
  imgsrc: '/images/mainicon/biaopan.png',
63
63
  imgmeter: '/images/mainicon/addmeter.png',
64
-
64
+ f_meter_base_max: this.$appdata.getSingleValue('初始表底数最大值') ? this.$appdata.getSingleValue('初始表底数最大值') : 10000,
65
65
  meterType: this.$appdata.getParam('气表类型')
66
66
  }
67
67
  },
@@ -89,6 +89,10 @@
89
89
  } else {
90
90
  this.metermessage.f_meter_base = (this.metermessage.f_meter_base - 0).toFixed(0)
91
91
  }
92
+ if (this.metermessage.f_meter_base > this.f_meter_base_max) {
93
+ this.$showAlert(`新表底数可录入的最大值为: ${this.f_meter_base_max}, 请核实后重新录入!!!`, 'warning', 3000)
94
+ this.metermessage.f_meter_base = ''
95
+ }
92
96
  },
93
97
  getMeterBrands (meterType) {
94
98
  let res = []
@@ -651,7 +651,7 @@ export default {
651
651
  if (this.model.metermessage.f_meter_type[0] !== '机表') {
652
652
  if (!this.config.hasArrearsChange && this.books.data && this.books.data.length > 0) {
653
653
  if (this.books.data[0].f_whether_pay === '否') {
654
- this.$showAlert('该表有欠费,请到机表缴费界面进行缴费', 'warning', 3000)
654
+ this.$showAlert('换表失败,该表有欠费,请到机表缴费界面进行缴费', 'warning', 3000)
655
655
  this.$dispatch('button-specifies', {name: '机表收费', value: 'machine-charge'}, this.row)
656
656
  } else {
657
657
  this.confirm()
@@ -697,6 +697,7 @@ export default {
697
697
  }
698
698
  this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
699
699
  console.log('成功')
700
+ this.$showAlert('换表失败,欠费已生成,清欠后请重新执行换表操作!!', 'error', 3)
700
701
  if (this.model.metermessage.f_meter_type[0] != '机表') {
701
702
  this.$dispatch('refresh')
702
703
  } else {
@@ -892,6 +893,7 @@ export default {
892
893
  }
893
894
  this.$resetpost(url, {data: data}, {resolveMsg: '生成欠费成功', rejectMsg: '生成欠费失败'}).then((res) => {
894
895
  console.log('成功')
896
+ this.$showAlert('换表失败,欠费已生成,清欠后请重新执行换表操作!!', 'error', 3)
895
897
  if (this.row.f_meter_type.includes('物联网表')) {
896
898
  this.$dispatch('refresh')
897
899
  } else {
@@ -52,6 +52,12 @@
52
52
  <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_name"
53
53
  condition="f_user_name = '{}'" placeholder='客户姓名'>
54
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
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_user_phone"
59
+ condition="f_user_phone = '{}'" placeholder='客户电话'>
60
+ </div>
55
61
  <div :class="{'col-sm-2':!$parent.$parent.editList,'col-sm-4':$parent.$parent.editList}"
56
62
  class="form-group">
57
63
  <label class="font_normal_body">有无附件</label>
@@ -117,6 +123,9 @@
117
123
  <th>
118
124
  <nobr>客户名称</nobr>
119
125
  </th>
126
+ <th>
127
+ <nobr>客户电话</nobr>
128
+ </th>
120
129
  <th>
121
130
  <nobr>客户地址</nobr>
122
131
  </th>
@@ -179,6 +188,9 @@
179
188
  <td style="text-align: center;">
180
189
  <nobr>{{row.f_user_name}}</nobr>
181
190
  </td>
191
+ <td style="text-align: center;">
192
+ <nobr>{{row.f_user_phone}}</nobr>
193
+ </td>
182
194
  <td style="text-align: center;">
183
195
  <nobr>{{row.f_address}}</nobr>
184
196
  </td>
@@ -270,6 +282,7 @@ const myMap = new Map()
270
282
  getfield: {
271
283
  'f_userinfo_code': '客户编号',
272
284
  'f_user_name': '客户名称',
285
+ 'f_user_phone': '客户电话',
273
286
  'f_address': '客户地址',
274
287
  'f_type': '换表类型',
275
288
  'f_changemeter_fee': '换表费',
@@ -159,6 +159,22 @@
159
159
  </template>
160
160
  </data-grid>
161
161
  </criteria-paged>
162
+ <table class="table-hover">
163
+ <tr style="position: relative" class="table-bordered">
164
+ <td
165
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
166
+ 汇总信息
167
+ </td>
168
+ <td
169
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
170
+ 订单金额汇总:&emsp;{{sumsmodel.f_total_fee}}
171
+ </td>
172
+ <td
173
+ style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
174
+ 购气金额汇总:&emsp;{{sumsmodel.f_collection}}
175
+ </td>
176
+ </tr>
177
+ </table>
162
178
  </div>
163
179
  <modal v-if="show" :show.sync="show" >
164
180
  <header slot="modal-header" class="modal-header">
@@ -189,19 +205,23 @@
189
205
  let readyGen = async function (self) {
190
206
  // self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString()
191
207
  // self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString()
208
+ self.sumsmodel = self.$refs.paged.$refs.grid.model.sums
192
209
  }
193
210
 
194
211
  export default {
195
212
  title: '自助机对账',
196
213
  data () {
197
214
  return {
198
- model: new PagedList('rs/sql/wechatSelling', 20),
215
+ model: new PagedList('rs/sql/wechatSelling', 20, {}, {f_total_fee: '', f_collection: ''}),
199
216
  letter: this.$appdata.getParam('订单状态') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('订单状态')] : [],
200
217
  paystate: this.$appdata.getParam('操作标识') ? [{label: '全部', value: ''}, ...this.$appdata.getParam('操作标识')] : [],
201
218
  criteriaShow: false,
202
219
  show: false,
203
220
  watchComment: '',
204
221
  orgCondtionStr: '',
222
+ getfield: {},
223
+ // 合计数据
224
+ sumsmodel: {},
205
225
  initres: {
206
226
  org: [this.$login.f.orgid]
207
227
  },
@@ -278,6 +298,23 @@
278
298
  search () {
279
299
  this.$refs.paged.$refs.cri.search()
280
300
  },
301
+ // getotherfooter () {
302
+ // // this.$refs.paged.$refs.cri.$refs.exports.otherData=[];
303
+ // // this.$refs.paged.$refs.cri.$refs.exports.footerData=[];
304
+ // this.other = []
305
+ // this.footer = []
306
+ // // let exportdata = this.getCondition;
307
+ // let otherInData = []
308
+ // otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
309
+ // let footerData = [], exportfield = this.getfield
310
+ // footerData.push('合计')
311
+ // let self = this
312
+ // for (var field in self.sumsmodel) {
313
+ // footerData.push(`${exportfield[field]}合计:${self.sumsmodel[field]}`)
314
+ // }
315
+ // this.footer.push(footerData)
316
+ // this.other.push(otherInData)
317
+ // },
281
318
  selfSearch (args) {
282
319
  this.model.params.startDate = this.$refs.paged.$refs.cri.model.startDate
283
320
  this.model.params.endDate = this.$refs.paged.$refs.cri.model.endDate
@@ -299,5 +336,13 @@
299
336
  return this.$login.r ? this.$login.r : []
300
337
  }
301
338
  }
339
+ // watch: {
340
+ // sumsmodel: {
341
+ // handler: function (val) {
342
+ // this.getotherfooter()
343
+ // },
344
+ // deep: true
345
+ // }
346
+ // }
302
347
  }
303
348
  </script>
@@ -8,7 +8,7 @@
8
8
  <input type="text" class="input_search" style="width:60%" class="input_search"
9
9
  @blur="meternumberValidate()" v-model="metermessage.f_meternumber" v-validate:meternumber='{required: true }' placeholder='表号' >
10
10
  </div>
11
- <div class="col-sm-4 form-group" :class="[$v.f_meter_base.required ? 'has-error' : '']">
11
+ <div class="col-sm-4 form-group" :class="[$v.f_meter_base.required ? 'has-error' : '']" title="参数名称:【初始表底数最大值】">
12
12
  <label for="f_meter_base" class="font_normal_body">新表底数</label>
13
13
  <input type="text" class="input_search" style="width:60%" class="input_search" v-validate:f_meter_base='{required: true }' @blur='meterbase()' v-model="metermessage.f_meter_base" placeholder='表底数' >
14
14
  </div>
@@ -69,7 +69,7 @@
69
69
  isdecimal: '否',
70
70
  imgsrc: '/images/mainicon/biaopan.png',
71
71
  imgmeter: '/images/mainicon/addmeter.png',
72
-
72
+ f_meter_base_max: this.$appdata.getSingleValue('初始表底数最大值') ? this.$appdata.getSingleValue('初始表底数最大值') : 10000,
73
73
  meterType: this.$appdata.getParam('气表类型')
74
74
  }
75
75
  },
@@ -97,6 +97,10 @@
97
97
  } else {
98
98
  this.metermessage.f_meter_base = (this.metermessage.f_meter_base - 0).toFixed(0)
99
99
  }
100
+ if (this.metermessage.f_meter_base > this.f_meter_base_max) {
101
+ this.$showAlert(`新表底数可录入的最大值为: ${this.f_meter_base_max}, 请核实后重新录入!!!`, 'warning', 3000)
102
+ this.metermessage.f_meter_base = ''
103
+ }
100
104
  },
101
105
  getMeterBrands (meterType) {
102
106
  let res = []
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Nov 20 11:54:44 CST 2024
2
- gradle.version=5.2.1
File without changes