sale-client 3.6.561 → 3.6.563

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,2 +1,2 @@
1
- #Mon Apr 14 10:14:01 CST 2025
1
+ #Wed Jun 25 17:54:33 CST 2025
2
2
  gradle.version=5.2.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.561",
3
+ "version": "3.6.563",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -179,6 +179,7 @@
179
179
  <article slot="modal-body" class="modal-body">
180
180
  <file-upload class="my-file-uploader " name="UploadFile" class="btn btn-success" style="border-radius: 2px;"
181
181
  action="rs/file/uploadFile" tagname="调价导入" v-ref:file :headers="headers" multiple></file-upload>
182
+ <button class="button_clear btn-gn" style="margin-top: 10px;background-color: #6aa6e2;" @click="downloadFiles()">模板下载
182
183
  </article>
183
184
  <footer slot="modal-footer" class="modal-footer">
184
185
  </footer>
@@ -190,7 +191,7 @@ import Vue from 'vue'
190
191
 
191
192
  export default {
192
193
  title: '调价导入',
193
- data() {
194
+ data () {
194
195
  return {
195
196
  model: new PagedList('rs/sql/getsurplus', 20, {items: '"*"', tablename: '"t_meterinfo"', orderitem: '"id"'}),
196
197
  criteriaShow: false,
@@ -213,18 +214,22 @@ export default {
213
214
  show: false
214
215
  }
215
216
  },
216
- ready() {
217
+ ready () {
217
218
  this.search()
218
219
  },
219
220
 
220
221
  methods: {
221
- clear() {
222
+ clear () {
222
223
  Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
223
224
  this.$refs.paged.$refs.criteria.model[key] = []
224
225
  })
225
226
  this.deleteShow = false
226
227
  },
227
- delete() {
228
+ downloadFiles () {
229
+ let downurl = 'rs/downloadfile/file?filename=调价补差导入模板'
230
+ this.$downFile(downurl, '调价补差导入模板.xlsx')
231
+ },
232
+ delete () {
228
233
  if (this.ids.length !== 0) {
229
234
  this.$refs.paged.$refs.criteria.condition = this.$refs.paged.$refs.criteria.condition + 'and id in (' + this.ids + ')'
230
235
  }
@@ -240,14 +245,14 @@ export default {
240
245
  }
241
246
  })
242
247
  },
243
- deleteAdjustImport(condition) {
248
+ deleteAdjustImport (condition) {
244
249
  console.log(condition)
245
250
  return this.$resetpost('rs/logic/deleteAdjustImport', {condition: condition}, {
246
251
  resolveMsg: '删除成功',
247
252
  rejectMsg: '删除失败'
248
253
  })
249
254
  },
250
- isAll(page) {
255
+ isAll (page) {
251
256
  // console.log(this.model.ids)
252
257
  if (this.pages.includes(page)) { // 已添加,取消动作
253
258
  // 从ids中删除本页所有数据的ids
@@ -260,7 +265,7 @@ export default {
260
265
  this.addOrRemove(true)
261
266
  }
262
267
  },
263
- addOrRemove(is) {
268
+ addOrRemove (is) {
264
269
  let that = this
265
270
  if (is) { // 添加本页所有数据到ids中
266
271
  this.ids = []
@@ -278,13 +283,13 @@ export default {
278
283
  })
279
284
  }
280
285
  },
281
- hidden() {
286
+ hidden () {
282
287
  this.criteriaShow = !this.criteriaShow
283
288
  },
284
- search() {
289
+ search () {
285
290
  this.$refs.paged.$refs.criteria.search()
286
291
  },
287
- selfSearch(args) {
292
+ selfSearch (args) {
288
293
  if (!this.f_orgid) {
289
294
  this.getorgCur([this.$login.f.orgid])
290
295
  }
@@ -299,14 +304,14 @@ export default {
299
304
  }
300
305
  },
301
306
 
302
- getorgCur(val) {
307
+ getorgCur (val) {
303
308
  console.log('组织事件返回。。', val[0])
304
309
  this.f_orgid = this.$login.convertToIn(val)
305
310
  this.f_filialeids = val[0]
306
311
  this.$parent.f_filialeid = val[0]
307
312
  this.search()
308
313
  },
309
- importFile() {
314
+ importFile () {
310
315
  this.show = true
311
316
  }
312
317
 
@@ -505,9 +505,9 @@
505
505
 
506
506
  let readySomething = async function (self) {
507
507
  self.getinputtores()
508
- // 加载抄表册
509
- self.initmeterbook()
510
- self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
508
+ // 加载抄表册
509
+ self.initmeterbook()
510
+ self.$refs.paged.$refs.cri.model.startDate = self.$login.toStandardDateString() + ' 00:00:00'
511
511
  self.$refs.paged.$refs.cri.model.endDate = self.$login.toStandardDateString() + ' 23:59:59'
512
512
  // self.$refs.paged.$refs.cri.search()
513
513
  self.defaultfield = [...self.defaultfield, ...self.config.defaultPrint]
@@ -548,6 +548,7 @@
548
548
  }),
549
549
  criteriaShow: false,
550
550
  orgCondtionStr: '',
551
+ condition: '',
551
552
  // 下拉框
552
553
  meterbrands: [],
553
554
  pricenames: [],
@@ -605,7 +606,7 @@
605
606
  this.dainputtores = [{label: '全部', value: ''}]
606
607
  }
607
608
  },
608
- async inputtorchange () {
609
+ async inputtorchange () {
609
610
  let val = this.$refs.paged.$refs.cri.model.f_inputtor
610
611
  if (val != null && val != '') {
611
612
  let param = {
@@ -675,7 +676,8 @@
675
676
  let exportdata = this.getCondition
676
677
  let otherInData = []
677
678
  otherInData.push(`导出时间: ${this.$login.toStandardTimeString()}`)
678
- let footerData = [], exportfield = this.getfield
679
+ let footerData = []
680
+ let exportfield = this.getfield
679
681
  footerData.push('合计')
680
682
  let self = this
681
683
  for (var field in self.sumsmodel) {
@@ -763,11 +765,8 @@
763
765
  str += `and f_input_date<='${this.$refs.paged.$refs.cri.model.inputendDate}'`
764
766
  }
765
767
  // 构建基础 condition(不叠加旧值)
766
- let baseCondition = '1=1 and f_meter_type=\'机表\''
767
- if (this.orgCondtionStr) {
768
- baseCondition += ` ${this.orgCondtionStr}`
769
- }
770
- args.condition = baseCondition
768
+ args.condition = `${args.condition} and f_meter_type='机表'` + this.orgCondtionStr
769
+ this.condition = args.condition
771
770
  this.model.search(args.condition, args.model, str)
772
771
  this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
773
772
  }
@@ -889,7 +888,7 @@
889
888
  return {
890
889
  startDate: this.$refs.paged.$refs.cri.model.startDate,
891
890
  endDate: this.$refs.paged.$refs.cri.model.endDate,
892
- condition: `${this.$refs.paged.$refs.cri.condition}` + this.orgCondtionStr,
891
+ condition: this.condition,
893
892
  condValue: `${this.model.condValue}`
894
893
  }
895
894
  },
@@ -299,8 +299,8 @@
299
299
  if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
300
300
  self.model.f_meter_type = self.row.f_meter_type
301
301
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
302
- self.model.f_preamount = (getAmount.data.chargenum - 0).toFixed(self.row.f_fee_decimal || 2)
303
- self.model.f_totalcost = ((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(self.row.f_fee_decimal || 2))
302
+ self.model.f_preamount = stringRound(getAmount.data.chargenum)
303
+ self.model.f_totalcost = stringRound((self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)))
304
304
  Object.assign(self.model, self.model, getAmount.data)
305
305
  self.model.chargeprice = getAmount.data.chargeprice
306
306
  if (self.model.f_payment == '赠气') {
@@ -109,7 +109,7 @@
109
109
  v-model="model.f_serial_number" placeholder="业务单号">
110
110
  </div>
111
111
  <div class="col-sm-4">
112
- <label for="f_write_card" style="color: red" class=" font_normal_body">是否写</label>
112
+ <label for="f_write_card" style="color: red" class=" font_normal_body">是否写卡</label>
113
113
  <v-select id="f_write_card"
114
114
  v-model="model.f_write_card"
115
115
  placeholder='是否写卡'
@@ -39,7 +39,7 @@
39
39
  v-if="baseinfo.base.f_credentials === '身份证'">
40
40
  <label for="f_idnumber" class="font_normal_body">*证件号码</label>
41
41
  <input type="text" maxlength="18" v-model="baseinfo.base.f_idnumber"
42
- v-validate:f_idnumber2='{identityCardValid: true}' class="input_search" style="width:80%"
42
+ v-validate:f_idnumber2='{required: true}' class="input_search" style="width:80%"
43
43
  placeholder="证件号码">
44
44
  </div>
45
45
  <div style="" class="col-sm-8 form-group" v-if="baseinfo.base.f_credentials !== '身份证'">
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/gehua/sale'
5
+ import FilialeSale from './filiale/bayan/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'
File without changes
File without changes
Binary file