sale-client 3.5.76 → 3.5.78

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.5.76",
3
+ "version": "3.5.78",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -5,6 +5,10 @@
5
5
  <h4 style="display:inline-block;margin-top: auto">表具信息</h4>
6
6
  </div>
7
7
  <div class="auto ">
8
+ <div class="row">
9
+ <label class = "col-sm-5 " style="color: brown">团缴编号</label>
10
+ <span class = "col-sm-7" style="color: brown">{{data.f_customer?data.f_customer:'无'}}</span>
11
+ </div>
8
12
  <div class="row">
9
13
  <label class = "col-sm-5 " >气表类型</label>
10
14
  <span class = "col-sm-7">{{data?data.f_meter_type:dafault.f_meter_brand}}</span>
@@ -882,6 +882,9 @@ export default {
882
882
  this.commitflag = true
883
883
  // 气量转金额 或者 金额转气量的时候对气量和金额不做限制, 可以修改, 但是只变单价
884
884
  this.model.f_remanent_price = ((this.model.f_remanent_money) / (this.model.f_remanent_gas)).toFixed(4)
885
+ if (this.model.f_remanent_price == 'NaN') {
886
+ this.model.f_remanent_price = 0
887
+ }
885
888
  },
886
889
 
887
890
  async validateOwe () {
@@ -143,13 +143,13 @@
143
143
  <td style="text-align:center">{{ row.f_user_id }}</td>
144
144
  <td style="text-align:center">{{ row.f_user_name }}</td>
145
145
  <td style="text-align:center">{{ row.f_address }}</td>
146
- <td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base || row.f_last_tablebase === row.f_tablebase }">
146
+ <td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base}">
147
147
  {{ row.f_last_tablebase }}
148
148
  </td>
149
- <td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base || row.f_last_tablebase === row.f_tablebase }">
149
+ <td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base}">
150
150
  {{ row.f_tablebase }}
151
151
  </td>
152
- <td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base || row.f_last_tablebase === row.f_tablebase }">
152
+ <td style="text-align:center" :class="{'meterbasehaserr' : row.f_last_tablebase !== row.f_meter_base}">
153
153
  {{ row.f_meter_base }}
154
154
  </td>
155
155
  <td style="text-align:center">{{ parseFloat(row.f_tablebase - row.f_last_tablebase).toFixed(2) }}</td>
@@ -168,7 +168,7 @@
168
168
  <td style="text-align:center">{{ row.f_audit_date }}</td>
169
169
  <td style="text-align: center" v-if="row.f_meter_state === '待审核' && row.f_hand_state === '有效'">
170
170
  <button type="button" class="button_search button_spacing width-60"
171
- v-if="row.f_last_tablebase === row.f_meter_base && row.f_last_tablebase !== row.f_tablebase "
171
+ v-if="row.f_last_tablebase === row.f_meter_base"
172
172
  @click.stop="$parent.$parent.$parent.success(row)">通过
173
173
  </button>
174
174
  <br>
@@ -216,7 +216,7 @@ let readyGen = async function (self) {
216
216
 
217
217
  export default {
218
218
  title: '自报表数审核',
219
- data() {
219
+ data () {
220
220
  return {
221
221
  initres: {
222
222
  org: [this.$login.f.orgid],
@@ -236,24 +236,24 @@ export default {
236
236
  meterbooks: [{label: '全部', value: ''}]
237
237
  }
238
238
  },
239
- ready() {
239
+ ready () {
240
240
  readyGen(this)
241
241
  this.$refs.paged.$refs.cri.model.f_hand_state[0] = ` f_meter_state = '待审核'`
242
242
  },
243
243
  methods: {
244
- loadMeterBooks() {
244
+ loadMeterBooks () {
245
245
  this.meterbooks = [...this.meterbooks, ...this.$GetSaleParam.getMeterBooks()]
246
246
  },
247
- getRes(obj) {
247
+ getRes (obj) {
248
248
  this.orgCondtionStr = obj
249
249
  },
250
- hidden() {
250
+ hidden () {
251
251
  this.criteriaShow = !this.criteriaShow
252
252
  },
253
- search() {
253
+ search () {
254
254
  this.$refs.paged.$refs.cri.search()
255
255
  },
256
- selfSearch(args) {
256
+ selfSearch (args) {
257
257
  if (!this.orgCondtionStr) {
258
258
  args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
259
259
  } else {
@@ -261,23 +261,25 @@ export default {
261
261
  }
262
262
  this.model.search(args.condition, args.model)
263
263
  },
264
- async allsuccess() {
264
+ async allsuccess () {
265
265
  let res = await this.$showMessage('确定通过全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
266
266
  let condition = []
267
267
  if (res === 'confirm') {
268
268
  if (this.model.rows.length >= 0) {
269
269
  if (this.model.model.f_hand_state[0] == `'待审核'`) {
270
270
  for (let i = 0; i < this.model.rows.length; i++) {
271
- let temp = {
272
- f_hand_id: this.model.rows[i].id,
273
- // 本次表底数
274
- f_tablebase: this.model.rows[i].f_tablebase,
275
- // 表类型
276
- f_meter_classify: this.model.rows[i].f_meter_classify,
277
- // 气表品牌
278
- f_meter_brand: this.model.rows[i].f_meter_brand
271
+ if (this.model.rows[i].f_last_tablebase === this.model.rows[i].f_meter_base) {
272
+ let temp = {
273
+ f_hand_id: this.model.rows[i].id,
274
+ // 本次表底数
275
+ f_tablebase: this.model.rows[i].f_tablebase,
276
+ // 表类型
277
+ f_meter_classify: this.model.rows[i].f_meter_classify,
278
+ // 气表品牌
279
+ f_meter_brand: this.model.rows[i].f_meter_brand
280
+ }
281
+ condition.push(temp)
279
282
  }
280
- condition.push(temp)
281
283
  }
282
284
  let uuid = this.$login.guid()
283
285
  let data = {
@@ -295,7 +297,7 @@ export default {
295
297
  }
296
298
  }
297
299
  },
298
- async success(row) {
300
+ async success (row) {
299
301
  let res = await this.$showMessage('确定通过该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
300
302
  if (res === 'confirm') {
301
303
  let data = {
@@ -313,7 +315,7 @@ export default {
313
315
  this.search()
314
316
  }
315
317
  },
316
- async allfaild() {
318
+ async allfaild () {
317
319
  let res = await this.$showMessage('确定作废全部抄表吗?操作后将不可取消', ['confirm', 'cancel'])
318
320
  let condition = '('
319
321
  if (res === 'confirm') {
@@ -335,7 +337,7 @@ export default {
335
337
  }
336
338
  }
337
339
  },
338
- async faild(row) {
340
+ async faild (row) {
339
341
  let res = await this.$showMessage('确定作废该条抄表吗?操作后将不可取消', ['confirm', 'cancel'])
340
342
  if (res === 'confirm') {
341
343
  // this.row = row
@@ -346,7 +348,7 @@ export default {
346
348
  this.search()
347
349
  }
348
350
  },
349
- async confirm() {
351
+ async confirm () {
350
352
  await this.$resetpost('rs/logic/weixinHanPlanAudit', this.row, {resolveMsg: '操作成功', rejectMsg: '操作失败'})
351
353
  await this.$resetpost('http://www.hunanhongdaranqi.com/weixin/rs/logic/meterReadFailed', this.pushdata, {
352
354
  resolveMsg: null,
@@ -357,7 +359,7 @@ export default {
357
359
  }
358
360
  },
359
361
  computed: {
360
- inputtores() {
362
+ inputtores () {
361
363
  // 获取抄表员
362
364
  console.log('获取抄表员', this.$login.f)
363
365
  let rs = []