sale-client 3.6.537 → 3.6.539

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.537",
3
+ "version": "3.6.539",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -114,7 +114,7 @@ export default {
114
114
  getFiles () {
115
115
  this.files = []
116
116
  this.userinfo_id = this.row.f_userinfo_id
117
- let condition = `CONVERT(varchar(200),f_blobid) = '${this.userinfo_id}' `
117
+ let condition = `f_blobid = '${this.userinfo_id}' `
118
118
  if (this.upload_date !== '') {
119
119
  condition += `and CONVERT( VARCHAR ( 100 ), f_uploaddate, 23 )='${this.upload_date}' `
120
120
  }
@@ -224,20 +224,42 @@ export default {
224
224
  rejectMsg: '删除设备失败'
225
225
  }).then((res) => {
226
226
  this.devicesinfonew.splice(index, 1)
227
+ this.$nextTick(() => {
228
+ this.changeDate()
229
+ })
227
230
  })
228
231
  }
229
232
  })
230
233
  } else {
231
234
  this.devicesinfonew.splice(index, 1)
235
+ this.$nextTick(() => {
236
+ this.changeDate()
237
+ })
232
238
  }
233
239
  },
234
240
  addDevice () {
235
241
  console.log('设备信息', this.devicesinfonew)
236
- this.devicesinfonew.push({
242
+ const newDevice = {
237
243
  f_devices_type: '调压器',
238
- f_input_date: this.$login.toStandardTimeString()
244
+ f_input_date: this.$login.toStandardTimeString(),
245
+ }
246
+ this.devicesinfonew.push(newDevice)
247
+ this.$nextTick(() => {
248
+ this.changeDate()
239
249
  })
240
250
  }
251
+ },
252
+ watch: {
253
+ show_devices (newVal) {
254
+ if (newVal) {
255
+ // 弹窗打开时,自动为所有"切断阀"设备执行一次 expireDate
256
+ this.devicesinfonew.forEach((row, index) => {
257
+ if (row.f_devices_type === '切断阀') {
258
+ this.expireDate(index)
259
+ }
260
+ })
261
+ }
262
+ }
241
263
  }
242
264
  }
243
265
  </script>
@@ -18,9 +18,9 @@
18
18
  </div>
19
19
  </template>
20
20
  <script>
21
- import {HttpResetClass} from 'vue-client'
21
+ // import {HttpResetClass} from 'vue-client'
22
22
  import Vue from 'vue'
23
- import axios from "axios";
23
+ import axios from 'axios'
24
24
 
25
25
  export default {
26
26
  title: '电子发票',
@@ -94,7 +94,7 @@ export default {
94
94
  // f_end_date: model.f_end_date,
95
95
  f_userinfo_id: model.f_userinfo_id,
96
96
  org_id: this.$login.f.orgid,
97
- bz: model.f_eticket_reason ? model.f_eticket_reason : null,
97
+ bz: model.f_remarks ? model.f_remarks : null,
98
98
  loginInfo: {
99
99
  operator: Vue.$login.f.name,
100
100
  operator_id: Vue.$login.f.id,
@@ -68,7 +68,8 @@
68
68
  <th>客户地址</th>
69
69
  <th>客户电话</th>
70
70
  <th>缴费类型</th>
71
- <th>实收金额</th>
71
+ <th>总金额</th>
72
+ <th>抵扣金额</th>
72
73
  <th>收款人</th>
73
74
  <th>收款部门</th>
74
75
  <th>是否开过票</th>
@@ -88,6 +89,7 @@
88
89
  <th style="text-align:center">{{ row.f_phone }}</th>
89
90
  <th style="text-align:center">{{ row.f_type }}</th>
90
91
  <th style="text-align:center">{{ row.f_collection }}</th>
92
+ <th style="text-align:center">{{ row.f_current_deduct_amount || 0 }}</th>
91
93
  <th style="text-align:center">{{ row.f_operator }}</th>
92
94
  <th style="text-align:center">{{ row.f_depname }}</th>
93
95
  <th style="text-align:center">{{ row.is_bill }}</th>
@@ -68,7 +68,8 @@
68
68
  <th>客户地址</th>
69
69
  <th>客户电话</th>
70
70
  <th>应交气量</th>
71
- <th>应交金额</th>
71
+ <th>总金额</th>
72
+ <th>抵扣金额</th>
72
73
  <th>上期底数</th>
73
74
  <th>本期底数</th>
74
75
  <th>是否开过票</th>
@@ -88,6 +89,7 @@
88
89
  <th style="text-align:center">{{ row.f_phone }}</th>
89
90
  <th style="text-align:center">{{ row.f_oughtamount }}</th>
90
91
  <th style="text-align:center">{{ row.f_oughtfee }}</th>
92
+ <th style="text-align:center">{{ row.f_current_deduct_amount || 0 }}</th>
91
93
  <th style="text-align:center">{{ row.f_last_tablebase }}</th>
92
94
  <th style="text-align:center">{{ row.f_tablebase }}</th>
93
95
  <th style="text-align:center">{{ row.is_bill }}</th>
@@ -57,7 +57,8 @@
57
57
  <th>客户电话</th>
58
58
  <th>纳税人识别号码</th>
59
59
  <th>气量</th>
60
- <th>金额</th>
60
+ <th>总金额</th>
61
+ <th>抵扣金额</th>
61
62
  <th>用户类型</th>
62
63
  <th>用气性质</th>
63
64
  <th>气表类型</th>
@@ -76,6 +77,7 @@
76
77
  <th style="text-align:center">{{ row.f_taxpayer_id }}</th>
77
78
  <th style="text-align:center">{{ row.gas }}</th>
78
79
  <th style="text-align:center">{{ row.money }}</th>
80
+ <th style="text-align:center">{{ row.deduct_amount || 0 }}</th>
79
81
  <th style="text-align:center">{{ row.f_user_type }}</th>
80
82
  <th style="text-align:center">{{ row.f_gasproperties }}</th>
81
83
  <th style="text-align:center">{{ row.f_meter_classify }}</th>
@@ -232,6 +234,7 @@ export default {
232
234
  // if (!this.row.f_paper_name) {
233
235
  this.row.f_paper_name = this.row.f_user_name
234
236
  // }
237
+ this.row.f_paper_account = `${this.row.f_paper_bank || ''} ${this.row.f_paper_account || ''}`.trim()
235
238
  if (!this.row.f_address_phone) {
236
239
  this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
237
240
  }
@@ -248,8 +251,8 @@ export default {
248
251
  let HttpReset = new HttpResetClass()
249
252
  let row = await HttpReset.load('POST', 'rs/sql/sale_getUser', {
250
253
  data: {
251
- orderitem: 'f_userinfo_id',
252
- condition: `f_userinfo_id = '${[...new Set(this.selecteds.map(item => item.f_userinfo_id))][0]}'`
254
+ orderitem: 'f_userinfo_code',
255
+ condition: `tu.f_userinfo_code = '${[...new Set(this.selecteds.map(item => item.f_userinfo_code))][0]}'`
253
256
  }
254
257
  }, {resolveMsg: null, rejectMsg: '获取地址失败!'})
255
258
  this.row = row.data[0]
@@ -257,6 +260,7 @@ export default {
257
260
  if (!this.row.f_paper_name) {
258
261
  this.row.f_paper_name = this.row.f_user_name
259
262
  }
263
+ this.row.f_paper_account = `${this.row.f_paper_bank || ''} ${this.row.f_paper_account || ''}`.trim()
260
264
  if (!this.row.f_address_phone) {
261
265
  this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
262
266
  }
@@ -269,7 +273,6 @@ export default {
269
273
 
270
274
  // this.row = row.data[0]
271
275
 
272
- console.log('选中的: ', this.model.condition)
273
276
  console.log('先看下条件是啥: ', this.model.condition)
274
277
 
275
278
  // 因为需要合并,所以这里需要根据查询结算记录
@@ -85,6 +85,7 @@
85
85
  <th>气量</th>
86
86
  <th>应交金额</th>
87
87
  <th>实收金额</th>
88
+ <th>抵扣款金额</th>
88
89
  <th>收费类型</th>
89
90
  <th>收费时间</th>
90
91
  <th>操作</th>
@@ -102,6 +103,7 @@
102
103
  <td style="text-align:center">{{row.f_pregas}}</td>
103
104
  <td style="text-align:center">{{row.f_preamount}}</td>
104
105
  <td style="text-align:center">{{row.f_collection}}</td>
106
+ <td style="text-align:center">{{row.f_current_deduct_amount || 0}}</td>
105
107
  <td style="text-align:center">{{row.f_type}}</td>
106
108
  <td style="text-align:center">{{row.f_operate_date}}</td>
107
109
  <td>
@@ -348,7 +350,7 @@ export default {
348
350
  },
349
351
  computed: {
350
352
  chargetypes () {
351
- return [{label: '全部', value: ''}, ...this.$appdata.getParam('收费类型')]
353
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam('开票业务类型')]
352
354
  }
353
355
  },
354
356
  watch: {