sale-client 4.3.81 → 4.3.83

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.
@@ -1,7 +1,7 @@
1
1
  var path = require('path')
2
2
  var checkVersion = require('./versionCheck.js')
3
3
  checkVersion()
4
- const [ serverRul, localUrl ] = ['http://192.168.50.67:31567/', 'http://localhost:9026']
4
+ const [ serverRul, localUrl ] = ['http://219.151.186.185:31467/', 'http://localhost:9026']
5
5
  var merge = require('webpack-merge')
6
6
  var baseConfig = require('./webpack.dev.conf')
7
7
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "4.3.81",
3
+ "version": "4.3.83",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -163,6 +163,7 @@
163
163
  :data='row' @printok="printok" v-ref:printbill></print-bill>
164
164
  <div style="text-align:right; height: 25%;">
165
165
  <strong style="font-size: large" v-if="!config.notShowFormula">计算公式:{{calculatedetail ? calculatedetail : ' 暂无'}}</strong><br/>
166
+ <strong style="font-size: large" v-if="deductdetail">{{deductdetail ? deductdetail : ' 暂无'}}</strong><br/>
166
167
  <payment-code-button :clickable="!$v.valid || validateOk || !islegal || clickConfirm"
167
168
  :payment.sync="model.f_payment" :payment-data="paytype"
168
169
  @confirm-payment="confirm()">
@@ -209,8 +210,11 @@
209
210
  Object.assign(self.model, self.model, getAmount.data)
210
211
  self.model.f_collection = self.model.f_totalcost
211
212
 
212
- if(self.config.floor){
213
- self.model.f_collection=Math.ceil(self.model.f_collection)
213
+ if (self.config.floor) {
214
+ self.model.f_collection = Math.ceil(self.model.f_collection)
215
+ }
216
+ if (self.row.f_deduction_gas && self.row.f_deduction_gas > 0) {
217
+ self.model.f_pregas += self.row.f_deduction_gas
214
218
  }
215
219
  self.calText(getAmount.data.chargeprice)
216
220
  } else {
@@ -233,7 +237,18 @@
233
237
  if ((self.model.f_fill_gas - 0) < (self.model.f_pregas - 0)) {
234
238
  // 超出【补气气量不符】部分走划价
235
239
  let gas = self.model.f_pregas - self.model.f_fill_gas
236
- let getAmount = await self.$CommonService.gasCalculate(self.model, gas)
240
+ let getAmount
241
+ if (self.row.f_deduction_gas) {
242
+ gas = (gas - 0) - self.row.f_deduction_gas
243
+ if (gas < 0) {
244
+ gas = 0
245
+ }
246
+ console.log(gas)
247
+ getAmount = await self.$CommonService.gasCalculate(self.model, gas)
248
+ console.log(getAmount)
249
+ } else {
250
+ getAmount = await self.$CommonService.gasCalculate(self.model, gas)
251
+ }
237
252
  console.log('划价返回', getAmount, self.openFee, self.row.f_balance)
238
253
  self.model.f_preamount = getAmount.data.chargenum
239
254
  // 计算气费和其他费用(暂时只有开卡费,之后有其他费在加)
@@ -390,11 +405,13 @@
390
405
  f_collection: '',
391
406
  chargeprice: [],
392
407
  f_print: [],
408
+ f_deduction_gas:0,
393
409
  f_meter_type: '',
394
410
  f_voucher_number: ''
395
411
  },
396
412
  cardallot: null,
397
413
  calculatedetail: '',
414
+ deductdetail:'',
398
415
  blodid: '',
399
416
  billData: {
400
417
  url: 'api/af-revenue/report/card_gas_bill',
@@ -603,6 +620,15 @@
603
620
  },
604
621
  calText (val) {
605
622
  let str = ''
623
+ if (this.row.f_deduction_gas) {
624
+ if ((this.row.f_deduction_gas-0) >= (this.model.f_pregas-0)) {
625
+ this.deductdetail = '本期优惠方量' + this.model.f_pregas
626
+ this.model.f_deduction_gas = this.model.f_pregas
627
+ } else {
628
+ this.deductdetail = '本期优惠方量' + this.row.f_deduction_gas
629
+ this.model.f_deduction_gas = this.row.f_deduction_gas
630
+ }
631
+ }
606
632
  val.forEach((item) => {
607
633
  str = str + item.f_price + ' x ' + item.f_gas + '+'
608
634
  })
@@ -131,7 +131,7 @@
131
131
  <nobr>结束时间</nobr>
132
132
  </th>
133
133
  <th style="text-align: center;" v-show='!$parent.$parent.$parent.$parent.isdetail' >
134
- <nobr>附件查看</nobr>
134
+ <nobr>操作</nobr>
135
135
  </th>
136
136
  </tr>
137
137
  </template>
@@ -145,7 +145,8 @@
145
145
  <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_start_date}}</nobr></td>
146
146
  <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"><nobr>{{row.f_end_date}}</nobr></td>
147
147
  <td v-show='!$parent.$parent.$parent.$parent.isdetail' style="text-align: center;"> <nobr>
148
- <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">查看</button>
148
+ <button class="button_search button_spacing width-60" @click.stop="$parent.$parent.$parent.view(row)">附件查看</button>
149
+ <button v-if="$login.r.includes('移除低保户')" class="button_delete button_spacing width-60" @click.stop="$parent.$parent.$parent.remove(row)">移除</button>
149
150
  </nobr></td>
150
151
  </template>
151
152
  <template partial='foot'></template>
@@ -185,7 +186,7 @@
185
186
  f_orgid: '',
186
187
  criteriaShow: false,
187
188
  clientWidth: document.body.clientWidth,
188
- showupload:false,
189
+ showupload: false,
189
190
  selected: {},
190
191
  basicImport: '',
191
192
  getfield: {
@@ -229,6 +230,16 @@
229
230
  this.selected = row
230
231
  console.log('11', row)
231
232
  },
233
+ remove (row) {
234
+ this.$showMessage('是否确认移除该用户?', ['confirm', 'cancel']).then(res => {
235
+ if (res === 'cancel') {
236
+ } else {
237
+ this.$resetpost('api/af-revenue/logic/removeBasicLiving', {data: row}).then((res)=>{
238
+ this.search()
239
+ })
240
+ }
241
+ })
242
+ },
232
243
  async getRes (condition, obj) {
233
244
  console.log('低保户condition =', condition)
234
245
  console.log('低保户obj =', obj)
@@ -307,8 +307,8 @@ export default {
307
307
  },
308
308
  methods: {
309
309
  async getAuditor () {
310
- await this.$GetSaleParam.initinputtor()
311
- this.auditor = this.$GetSaleParam.getAudit(this.$login.f.orgid)
310
+ let auditor = await this.$resetpost('api/af-revenue/logic/getAuditPerson',{orgId: this.$login.f.orgid})
311
+ this.auditor = auditor.data
312
312
  },
313
313
  getPricenames () {
314
314
  console.log('气价。,。。', this.newinfo.pricetype)
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/yangchun/sale'
5
+ import FilialeSale from './filiale/liaoyuan/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'
@@ -157,6 +157,7 @@ let CardService = {
157
157
  f_serial_id: model.f_serial_id,
158
158
  f_userinfo_id: row.f_userinfo_id,
159
159
  f_user_id: row.f_user_id,
160
+ f_deduction_gas:model.f_deduction_gas?model.f_deduction_gas:0,
160
161
  // 补气量
161
162
  f_fill_gas: model.f_fill_gas,
162
163
  f_fill_money: model.f_fill_money,