sale-client 3.6.120 → 3.6.121

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.120",
3
+ "version": "3.6.121",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -37,6 +37,15 @@
37
37
  placeholder='客户姓名'
38
38
  style="width:60%" type="text" v-model="model.f_user_name">
39
39
  </div>
40
+ <div
41
+ :class="{'col-sm-2':!$parent.$parent.createFile,'col-sm-4':$parent.$parent.createFile}"
42
+ class="form-group">
43
+ <label class="font_normal_body">合同编号</label>
44
+ <input class="input_search" condition="f_contract_id = '{}'"
45
+ v-model="model.f_contract_id"
46
+ placeholder='合同编号'
47
+ style="width:60%" type="text" >
48
+ </div>
40
49
  <div
41
50
  :class="{'col-sm-3':$parent.$parent.clientWidth>1600||!$parent.$parent.createFile,'col-sm-4':$parent.$parent.clientWidth<1600&&$parent.$parent.createFile}"
42
51
  class="form-group button-range">
@@ -308,6 +317,9 @@
308
317
  <th>
309
318
  <nobr>客户名称</nobr>
310
319
  </th>
320
+ <th>
321
+ <nobr>合同编号</nobr>
322
+ </th>
311
323
  <th>
312
324
  <nobr>表号</nobr>
313
325
  </th>
@@ -362,6 +374,7 @@
362
374
  <td style="text-align: center;">
363
375
  <span @click="$parent.$parent.$parent.dealmsg(row)"><a><b>{{row.f_user_name}}</b></a></span>
364
376
  </td>
377
+ <td style="text-align: center;">{{row.f_contract_id}}</td>
365
378
  <td style="text-align: center;">{{row.f_meternumber}}</td>
366
379
  <td style="text-align: center;">{{row.f_card_id}}</td>
367
380
  <td style="text-align: center;">{{row.f_user_phone}}</td>
@@ -1,19 +1,19 @@
1
1
  <template>
2
2
  <div class="auto">
3
- <iot-refund v-if="row.f_meter_type === '物联网表'" :data="row"></iot-refund>
4
- <machine-Refund v-if="row.f_meter_type !== '物联网表'" :data="row"></machine-Refund>
3
+ <iot-refund-copy v-if="row.f_meter_type === '物联网表'" :data="row"></iot-refund-copy>
4
+ <machine-refund-copy v-if="row.f_meter_type !== '物联网表'" :data="row"></machine-refund-copy>
5
5
  </div>
6
6
 
7
7
  </template>
8
8
  <script>
9
- import IotRefund from './IOTRefund'
10
- import machineRefund from './machineRefund'
9
+ import IotRefundCopy from './IOTRefund'
10
+ import machineRefundCopy from './machineRefund'
11
11
 
12
12
  export default {
13
13
  title: '退费管理',
14
14
  components: {
15
- IotRefund,
16
- machineRefund
15
+ IotRefundCopy,
16
+ machineRefundCopy
17
17
  },
18
18
  data () {
19
19
  return {
@@ -92,10 +92,24 @@
92
92
  <payment-code v-ref:paymentcode :payment="data.f_payment" :row="row" :money="data.f_after_discount"></payment-code>
93
93
  </div>
94
94
  </div>
95
+ <modal :show.sync="show" v-ref:modal backdrop="false">
96
+ <header slot="modal-header" class="modal-header text-center">
97
+ <h4 class="modal-title">正在批量处理中, 请耐心等待...</h4>
98
+ </header>
99
+ <article slot="modal-body">
100
+ <div class="progress" style="margin: 20px">
101
+ <div class="progress-bar progress-bar-success progress-bar-striped active" :style="{width: `${percent}%`}">
102
+ {{ percent }}
103
+ </div>
104
+ </div>
105
+ </article>
106
+ <footer slot="modal-footer" class="modal-footer">
107
+ </footer>
108
+ </modal>
95
109
  </template>
96
110
 
97
111
  <script>
98
- import {HttpResetClass} from "vue-client";
112
+ import {HttpResetClass} from 'vue-client'
99
113
 
100
114
  let asyncMachineMeterCenter = async function (self) {
101
115
  await self.$getConfig(self, 'BatchCharge')
@@ -132,7 +146,10 @@ export default {
132
146
  // 启用发票管理需要对票号进行验证
133
147
  hasValidateBill: false,
134
148
  validateOk: false,
135
- editCollection: false
149
+ editCollection: false,
150
+ // 收费进度
151
+ show: false,
152
+ percent: 0
136
153
  }
137
154
  },
138
155
  props: ['data', 'owe', 'civill'],
@@ -269,11 +286,16 @@ export default {
269
286
  try {
270
287
  await this.$resetpost('rs/logic/batchPayment', {data: param}, {resolveMsg: null, rejectMsg: null}, 1000)
271
288
  } catch (e) {}
272
- this.$showMessage(`正在批量处理中, 请耐心等待...`, [])
289
+ // this.$showMessage(`正在批量处理中, 请耐心等待...`, [])
290
+ this.show = true
273
291
  // 启动定时器定时查询处理结果
274
292
  this.timer = setInterval(async () => {
275
293
  let res = await this.HttpReset.load('POST', 'rs/logic/getBatchOperaPro', {data: {uuid: uuid}}, {resolveMsg: null, rejectMsg: null})
294
+ if (res.data.percent) {
295
+ this.percent = res.data.percent
296
+ }
276
297
  if (res.data.msg || res.data.error) {
298
+ this.show = false
277
299
  clearInterval(this.timer)
278
300
  this.$closeMessage()
279
301
  if (res.data.error) {
@@ -304,7 +326,7 @@ export default {
304
326
  this.clean()
305
327
  }
306
328
  }
307
- }, 5000)
329
+ }, 1500)
308
330
  },
309
331
  clean () {
310
332
  this.$dispatch('success')
@@ -86,6 +86,10 @@
86
86
  <label class="col-sm-5">旧客户编号</label>
87
87
  <span class="col-sm-7">{{ data ? data.f_olduserinfo_code : dafault.f_userinfo_code }}</span>
88
88
  </div>
89
+ <div class="row">
90
+ <label class="col-sm-5">合同编号</label>
91
+ <span class="col-sm-7">{{ data ? data.f_contract_id : dafault.f_contract_id }}</span>
92
+ </div>
89
93
  <modal v-if="showselectncuserinfo" :show.sync="showselectncuserinfo" width="40%" title="修正客户电话号码"
90
94
  v-ref:modal large backdrop="false">
91
95
  <article slot="modal-body" class="modal-body">
@@ -168,7 +172,8 @@ export default {
168
172
  f_hand_date: '****年**月**日',
169
173
  f_rent_phone: '************',
170
174
  f_comments: '**',
171
- f_user_state: '****'
175
+ f_user_state: '****',
176
+ f_contract_id: '*************'
172
177
  },
173
178
  config: {
174
179
  f_user_name: false,
package/src/main.js CHANGED
@@ -4,7 +4,7 @@ import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
6
  // import wenxi from './filiale/rizhao/sale'
7
- // import FilialeSale from './filiale/yuansheng/sale'
7
+ import FilialeSale from './filiale/qianneng/sale'
8
8
  import address from 'address-client/src/address'
9
9
  import ldap from 'ldap-clients/src/ldap'
10
10
  import VueClipboard from 'vue-clipboard2'
@@ -16,7 +16,7 @@ all()
16
16
  system(false)
17
17
  sale()
18
18
  // wenxi()
19
- // FilialeSale()
19
+ FilialeSale()
20
20
  address()
21
21
  ldap()
22
22
  require('system-clients/src/styles/less/bootstrap.less')