sale-client 3.6.450 → 3.6.451

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.
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Nov 20 11:54:44 CST 2024
2
+ gradle.version=5.2.1
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.450",
3
+ "version": "3.6.451",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -274,12 +274,12 @@
274
274
  <td style="text-align: center;">
275
275
  <div class="form-group" style="margin-bottom:0px;"
276
276
  v-if="row.f_meter_state === '未抄表' ">
277
- <input type="text" class="form-control" v-model="row.f_unused_gas"
277
+ <input type="text" class="form-control" v-model="row.f_shengyu_gas"
278
278
  v-next-el="{id: $index+1}" :id="$index" style="width: 100px;padding: 6px;" :disabled="row.state === '开始'"
279
279
  >
280
280
  </div>
281
281
  <div v-else>
282
- <span>{{row.f_unused_gas}}</span>
282
+ <span>{{row.f_shengyu_gas}}</span>
283
283
  </div>
284
284
  </td>
285
285
 
@@ -613,7 +613,7 @@
613
613
  // || ((row.f_tablebase - 0) - (row.f_last_tablebase - 0)).toFixed(2) < 0
614
614
  if (row.f_tablebase) {
615
615
  row.f_actualtablebase = (row.f_tablebase - 0) - (row.f_last_tablebase - 0)
616
- row.f_unused_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
616
+ row.f_shengyu_gas = (row.f_total_gas - (row.f_tablebase - row.f_initial_base)).toFixed(2)
617
617
  /* this.$resetpost('rs/logic/cardhands', row, {resolveMsg: null, rejectMsg: '录入数据出错!!!'}).then((res) => {
618
618
  console.log('返回数据', res)
619
619
  row.id = res.data.id
@@ -38,7 +38,7 @@
38
38
  v-model="model.f_input_date"
39
39
  :value.sync="model.f_input_date"
40
40
  :format="'yyyy-MM-dd HH:mm:ss'"
41
- >
41
+ >
42
42
  </datepicker>
43
43
  </div>
44
44
  <div class="col-sm-4 form-group">
@@ -58,10 +58,10 @@
58
58
  </div>
59
59
  </div>
60
60
 
61
- <!--<div class="col-sm-4 form-group">
62
- <label class="font_normal_body">用户编号</label>
63
- <input type="text" v-model="model.f_userinfo_code" disabled=disabled style="width: 60%" class="input_search">
64
- </div>-->
61
+ <!--<div class="col-sm-4 form-group">
62
+ <label class="font_normal_body">用户编号</label>
63
+ <input type="text" v-model="model.f_userinfo_code" disabled=disabled style="width: 60%" class="input_search">
64
+ </div>-->
65
65
  <div class="row">
66
66
  <div class="col-sm-4 form-group">
67
67
  <label class="font_normal_body">上期结余</label>
@@ -88,7 +88,7 @@
88
88
  </div>
89
89
  <div class="col-sm-4 form-group">
90
90
  <label class="font_normal_body" title="参数:是否">是否缴费</label>
91
- <!-- <input type="text" v-model="model.f_whether_pay" style="width: 60%" class="input_search">-->
91
+ <!-- <input type="text" v-model="model.f_whether_pay" style="width: 60%" class="input_search">-->
92
92
  <v-select :value.sync="model.f_whether_pay" v-model="model.f_whether_pay"
93
93
  :options='writePays' placeholder='是否缴费'
94
94
  :value-single="true"
@@ -117,18 +117,27 @@
117
117
  <div class="col-sm-4 form-group">
118
118
  <!--<label class="font_normal_body" title="参数:操作人员">操作人员</label>-->
119
119
  <!--<v-select :value.sync="model.f_operatorid"-->
120
- <!--v-model="model.f_operatorid"-->
121
- <!--:value-single="true" @change="selectoperator()"-->
122
- <!--:options='foperator'-->
123
- <!--close-on-select></v-select>-->
120
+ <!--v-model="model.f_operatorid"-->
121
+ <!--:value-single="true" @change="selectoperator()"-->
122
+ <!--:options='foperator'-->
123
+ <!--close-on-select></v-select>-->
124
124
  <label class="font_normal_body" title="参数:录入人员">录入人员</label>
125
125
  <v-select :value.sync="model.f_input_person"
126
- v-model="model.f_input_person"
127
- :value-single="true"
128
- :options='person'
129
- close-on-select></v-select>
126
+ v-model="model.f_input_person"
127
+ :value-single="true"
128
+ :options='person'
129
+ close-on-select></v-select>
130
130
  </div>
131
131
  <div class="row">
132
+ <div class="col-sm-4 form-group">
133
+ <label class="font_normal_body" title="开票标识">开票标识</label>
134
+ <v-select :value.sync="model.f_isbill" v-model="model.f_isbill"
135
+ :options='isbills' placeholder='开票标识'
136
+ :value-single="true"
137
+ :search="false"
138
+ close-on-select>
139
+ </v-select>
140
+ </div>
132
141
  <div class="col-sm-4 form-group">
133
142
  <label class="font_normal_body">审核人</label>
134
143
  <input type="text" v-model="model.f_audit_person" style="width: 60%" class="input_search">
@@ -167,7 +176,7 @@
167
176
  </div>
168
177
  <div class="row">
169
178
  <div class="col-sm-12">
170
- <label for="f_user_type" class="font_normal_body">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
179
+ <label for="f_user_type" class="font_normal_body">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
171
180
 
172
181
  <div class="col-sm-10" id="f_comments" style="margin-left: 8px;margin-bottom: 5px;width: 86.333333%;">
173
182
  <textarea class="col-sm-3 form-control" type="text" v-model="model.f_comments"></textarea>
@@ -197,234 +206,244 @@
197
206
  </div>
198
207
  </template>
199
208
  <script>
200
- import Vue from 'vue'
201
- import {HttpResetClass} from 'vue-client'
202
- import * as Util from "../../components/../Util";
203
- var data
204
- let readyGen = async function (self) {
205
- await self.$LoadParams.loadParam(self.f_filialeid)
206
- await self.$GetSaleParam.initinputtor()
207
- await self.initperson()
208
- }
209
- export default {
210
- title: '基本信息',
209
+ import Vue from 'vue'
210
+ import {HttpResetClass} from 'vue-client'
211
+ import * as Util from "../../components/../Util";
212
+ var data
213
+ let readyGen = async function (self) {
214
+ await self.$LoadParams.loadParam(self.f_filialeid)
215
+ await self.$GetSaleParam.initinputtor()
216
+ await self.initperson()
217
+ }
218
+ export default {
219
+ title: '基本信息',
211
220
 
212
- data () {
213
- return {
214
- // 构建数组来存储对象
215
- editbank: true,
216
- showfiles: false,
217
- priceSplit: false,
218
- recordList: [],
219
- // foperator:[],
220
- person:[],
221
- // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
222
- // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
223
- fileNameSet: {
224
- 'f_meter_state': '抄表状态',
225
- 'f_hand_state': '抄表单状态',
226
- 'f_meter_source': '抄表数据来源',
227
- 'f_accounting_date': '财务核算日期',
228
- 'f_inputtor': '抄表员',
229
- 'f_end_date': '截止日期',
230
- 'f_input_date': '录入时间',
231
- 'f_hand_date': '下发时间',
232
- 'f_user_name': '客户姓名',
233
- 'f_userinfo_code': '客户编号',
234
- 'f_user_address': '客户地址',
235
- 'f_audit_person': '审核人',
236
- 'f_audit_date': '审核时间',
237
- 'f_orgname': '所属公司',
238
- 'f_depname': '所属部门',
239
- 'f_operator':'操作人',
240
- 'f_operatorid':'操作人ID'
241
- }
221
+ data () {
222
+ return {
223
+ // 构建数组来存储对象
224
+ editbank: true,
225
+ showfiles: false,
226
+ priceSplit: false,
227
+ recordList: [],
228
+ // foperator:[],
229
+ person:[],
230
+ // meterstate:[{label:'已抄',value:'已抄'},{label:'未抄',value:'未抄'}],
231
+ // handstate:[{label:'有效',value:'有效'},{label:'冲正',value:'冲正'},{label:'作废',value:'作废'},{label:'待审核',value:'待审核'}],
232
+ fileNameSet: {
233
+ 'f_meter_state': '抄表状态',
234
+ 'f_hand_state': '抄表单状态',
235
+ 'f_meter_source': '抄表数据来源',
236
+ 'f_accounting_date': '财务核算日期',
237
+ 'f_inputtor': '抄表员',
238
+ 'f_end_date': '截止日期',
239
+ 'f_input_date': '录入时间',
240
+ 'f_hand_date': '下发时间',
241
+ 'f_user_name': '客户姓名',
242
+ 'f_userinfo_code': '客户编号',
243
+ 'f_user_address': '客户地址',
244
+ 'f_isbill': '开票标识',
245
+ 'f_audit_person': '审核人',
246
+ 'f_audit_date': '审核时间',
247
+ 'f_orgname': '所属公司',
248
+ 'f_depname': '所属部门',
249
+ 'f_operator':'操作人',
250
+ 'f_operatorid':'操作人ID'
242
251
  }
252
+ }
253
+ },
254
+ props: {
255
+ oldmodel: Object,
256
+ model: Object
257
+ },
258
+
259
+ ready () {
260
+ /* console.log('logininfo',this.$login.r) */
261
+ if (this.$login.r.includes('维护银行转账信息')) {
262
+ this.editbank = true
263
+ }
264
+ // console.log(this.props.model)
265
+ this.oldmodel = JSON.parse(JSON.stringify(this.model))
266
+ readyGen(this)
267
+ },
268
+ created () {
269
+ },
270
+ methods: {
271
+ initperson () {
272
+ this.person = []
273
+ console.log("this.$login000", this.$login, this.oldmodel, this.model)
274
+ let arr = this.$GetSaleParam.inputtors.filter((res) => {
275
+ if (res.rolestr != null && res.rolestr != '') {
276
+ return res.f_department_id == this.model.f_depid
277
+ }
278
+ })
279
+ arr.forEach((res) => {
280
+ this.person.push({label: res.name, value: res.name})
281
+ })
243
282
  },
244
- props: {
245
- oldmodel: Object,
246
- model: Object
283
+ // initoperator(){
284
+ // this.foperator=[]
285
+ // console.log("this.$login",this.$login,this.oldmodel,this.model)
286
+ // let arr = this.$GetSaleParam.inputtors.filter((res) => {
287
+ // if (res.rolestr != null && res.rolestr != '') {
288
+ // return res.rolestr.indexOf('营业员') > -1 && res.f_department_name == this.model.f_depname
289
+ // }
290
+ // })
291
+ // arr.forEach((res) => {
292
+ // this.foperator.push({label: res.name, value: res.id})
293
+ // })
294
+ // },
295
+ // selectoperator () {
296
+ // let id = this.model.f_operatorid
297
+ // if(!this.model.f_operatorid){
298
+ // return
299
+ // }
300
+ // let http = new HttpResetClass()
301
+ // http.load('POST', 'rs/sql/saleSingleTable',
302
+ // {data:{tablename: 't_user',
303
+ // condition: `id = '${id}'`}},
304
+ // {resolveMsg: null, rejectMsg: null}).then((res) => {
305
+ // console.log('kanak,res', res)
306
+ // if(res.data.length>0){
307
+ // this.model.f_input_person = res.data[0].name
308
+ // }else{
309
+ // this.model.f_input_person=''
310
+ // this.$showAlert('人员信息未找到','warning',2000)
311
+ // }
312
+ // console.log('this.f_input_person', this.model.f_input_person)
313
+ // })
314
+ // },
315
+ fileterprice (row) {
316
+ this.priceSplit = true
317
+ console.log('row==>', row)
247
318
  },
248
-
249
- ready () {
250
- /* console.log('logininfo',this.$login.r) */
251
- if (this.$login.r.includes('维护银行转账信息')) {
252
- this.editbank = true
253
- }
254
- // console.log(this.props.model)
255
- this.oldmodel = JSON.parse(JSON.stringify(this.model))
256
- readyGen(this)
319
+ cancel () {
320
+ this.$dispatch('close')
257
321
  },
258
- created () {
322
+ uploadFiles () {
323
+ this.showfiles = !this.showfiles
259
324
  },
260
- methods: {
261
- initperson(){
262
- this.person=[]
263
- console.log("this.$login000",this.$login,this.oldmodel,this.model)
264
- let arr = this.$GetSaleParam.inputtors.filter((res) => {
265
- if (res.rolestr != null && res.rolestr != '') {
266
- return res.f_department_id == this.model.f_depid
267
- }
268
- })
269
- arr.forEach((res) => {
270
- this.person.push({label: res.name,value: res.name})
271
- })
272
- if (this.model.f_meter_classify === '物联网表' && this.model.f_input_person === ''){
273
- this.model.f_input_person = '微信公众号'
325
+ async getenddate () {
326
+ var end_date = await this.$resetpost('rs/logic/getEndDate', {
327
+ data: {
328
+ f_userinfo_id: this.model.f_userinfo_id,
329
+ f_input_date: this.model.f_input_date
274
330
  }
275
- },
276
- // initoperator(){
277
- // this.foperator=[]
278
- // console.log("this.$login",this.$login,this.oldmodel,this.model)
279
- // let arr = this.$GetSaleParam.inputtors.filter((res) => {
280
- // if (res.rolestr != null && res.rolestr != '') {
281
- // return res.rolestr.indexOf('营业员') > -1 && res.f_department_name == this.model.f_depname
282
- // }
283
- // })
284
- // arr.forEach((res) => {
285
- // this.foperator.push({label: res.name, value: res.id})
286
- // })
287
- // },
288
- // selectoperator () {
289
- // let id = this.model.f_operatorid
290
- // if(!this.model.f_operatorid){
291
- // return
292
- // }
293
- // let http = new HttpResetClass()
294
- // http.load('POST', 'rs/sql/saleSingleTable',
295
- // {data:{tablename: 't_user',
296
- // condition: `id = '${id}'`}},
297
- // {resolveMsg: null, rejectMsg: null}).then((res) => {
298
- // console.log('kanak,res', res)
299
- // if(res.data.length>0){
300
- // this.model.f_input_person = res.data[0].name
301
- // }else{
302
- // this.model.f_input_person=''
303
- // this.$showAlert('人员信息未找到','warning',2000)
304
- // }
305
- // console.log('this.f_input_person', this.model.f_input_person)
306
- // })
307
- // },
308
- fileterprice (row) {
309
- this.priceSplit = true
310
- console.log('row==>', row)
311
- },
312
- cancel () {
313
- this.$dispatch('close')
314
- },
315
- uploadFiles () {
316
- this.showfiles = !this.showfiles
317
- },
318
- async getenddate () {
319
- var end_date = await this.$resetpost('rs/logic/getEndDate', {data: {f_userinfo_id: this.model.f_userinfo_id, f_input_date: this.model.f_input_date}},{rejectMsg: null,resolveMsg: null})
320
- this.model.f_end_date = end_date.data
321
- },
322
- addressValid (val) {
323
- },
324
- async save () {
325
- for (var item in this.model) {
326
- if (this.model[item] instanceof Array) {
327
- this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
328
- }
329
- if (this.model[item] != this.oldmodel[item] && this.model[item] !='s_timestamp') {
330
- var car = {
331
- chinesename: this.fileNameSet[item],
332
- fieldname: item,
333
- tablename: 't_handplan',
334
- oldvalue: this.oldmodel[item],
335
- newvalue: this.model[item],
336
- state: '有效',
337
- modifitime: Util.toStandardTimeString(),
338
- operator: this.$login.f.name,
339
- hand_id: this.model.id,
340
- f_operator : this.$login.f.name,
341
- f_operatorid : this.$login.f.id,
342
- f_orgid : this.$login.f.orgid,
343
- f_orgname : this.$login.f.orgs,
344
- f_depid : this.$login.f.depids,
345
- f_depname : this.$login.f.deps,
346
- f_audit_person : this.model.f_audit_person,
347
- f_audit_date : this.model.f_audit_date
348
- }
349
- this.recordList.push(car)
350
- // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
351
- console.log(car)
352
- }
331
+ }, {rejectMsg: null, resolveMsg: null})
332
+ this.model.f_end_date = end_date.data
333
+ },
334
+ addressValid (val) {
335
+ },
336
+ async save () {
337
+ for (var item in this.model) {
338
+ if (this.model[item] instanceof Array) {
339
+ this.model[item] = this.model[item].length > 0 ? this.model[item][0] : ''
353
340
  }
354
- await this.$resetpost('rs/logic/saveHandRecord', {data: {recordlist: this.recordList, newData: this.model}})
355
- if (this.model.f_meter_classify.indexOf('卡表') >= 0) {
356
- this.model.f_result_state = this.model.f_hand_state
357
- this.model.f_hand_date = this.model.f_input_date
358
- await this.$resetpost('rs/entity/t_cardhand', this.model, {
359
- resolveMsg: '修改成功',
360
- rejectMsg: '未通过,修改出错!!!'
361
- })
362
- } else {
363
- await this.$resetpost('rs/entity/t_handplan', this.model, {
364
- resolveMsg: '修改成功',
365
- rejectMsg: '未通过,修改出错!!!'
366
- })
341
+ if (this.model[item] != this.oldmodel[item] && this.model[item] != 's_timestamp') {
342
+ var car = {
343
+ chinesename: this.fileNameSet[item],
344
+ fieldname: item,
345
+ tablename: 't_handplan',
346
+ oldvalue: this.oldmodel[item],
347
+ newvalue: this.model[item],
348
+ state: '有效',
349
+ modifitime: Util.toStandardTimeString(),
350
+ operator: this.$login.f.name,
351
+ hand_id: this.model.id,
352
+ f_operator: this.$login.f.name,
353
+ f_operatorid: this.$login.f.id,
354
+ f_orgid: this.$login.f.orgid,
355
+ f_orgname: this.$login.f.orgs,
356
+ f_depid: this.$login.f.depids,
357
+ f_depname: this.$login.f.deps,
358
+ f_audit_person: this.model.f_audit_person,
359
+ f_audit_date: this.model.f_audit_date
360
+ }
361
+ this.recordList.push(car)
362
+ // 该方法并未对chinesename fieldname operator等进行判断赋值,此暂写为定值
363
+ console.log(car)
367
364
  }
368
- console.log('this.model', this.model)
369
- this.$dispatch('close')
370
365
  }
366
+
367
+ await this.$resetpost('rs/logic/saveHandRecord', {data: {recordlist: this.recordList, newData: this.model}})
368
+ if (this.model.f_meter_classify.indexOf('卡表') >= 0) {
369
+ this.model.f_result_state = this.model.f_hand_state
370
+ this.model.f_hand_date = this.model.f_input_date
371
+ await this.$resetpost('rs/entity/t_cardhand', this.model, {
372
+ resolveMsg: '修改成功',
373
+ rejectMsg: '未通过,修改出错!!!'
374
+ })
375
+ } else {
376
+ await this.$resetpost('rs/entity/t_handplan', this.model, {
377
+ resolveMsg: '修改成功',
378
+ rejectMsg: '未通过,修改出错!!!'
379
+ })
380
+ }
381
+ console.log('this.model', this.model)
382
+ this.$dispatch('close')
383
+ }
384
+ },
385
+ computed: {
386
+ meterstate () {
387
+ return this.$appdata.getParam('抄表状态')
388
+ },
389
+ handstate () {
390
+ return this.$appdata.getParam('抄表单状态')
391
+ },
392
+ isbills () {
393
+ return this.$appdata.getParam('开票标识')
394
+ },
395
+ writePays () {
396
+ return this.$appdata.getParam('是否')
397
+ },
398
+ resultstate () {
399
+ return this.$appdata.getParam('抄表结果状态')
371
400
  },
372
- computed: {
373
- meterstate () {
374
- return this.$appdata.getParam('抄表状态')
375
- },
376
- handstate () {
377
- return this.$appdata.getParam('抄表单状态')
378
- },
379
- writePays () {
380
- return this.$appdata.getParam('是否')
381
- },
382
- resultstate () {
383
- return this.$appdata.getParam('抄表结果状态')
384
- },
385
401
 
386
- inputtores () {
387
- // 获取抄表员
388
- console.log('获取抄表员', this.$login.f)
389
- let rs = new Array()
390
- if (this.$login.f.f_gasman.length > 0) {
391
- for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
392
- let temp = {
393
- label: this.$login.f.f_gasman[i].name,
394
- value: this.$login.f.f_gasman[i].name
395
- }
396
- rs.push(temp)
402
+ inputtores () {
403
+ // 获取抄表员
404
+ console.log('获取抄表员', this.$login.f)
405
+ let rs = new Array()
406
+ if (this.$login.f.f_gasman.length > 0) {
407
+ for (let i = 0; i < this.$login.f.f_gasman.length; i++) {
408
+ let temp = {
409
+ label: this.$login.f.f_gasman[i].name,
410
+ value: this.$login.f.f_gasman[i].name
397
411
  }
412
+ rs.push(temp)
398
413
  }
399
- // let rs = this.$appdata.getParam('抄表员')
400
- return rs
401
414
  }
415
+ // let rs = this.$appdata.getParam('抄表员')
416
+ return rs
417
+ }
402
418
 
403
- },
404
- watch: {
405
- 'model.f_input_date' (val) {
406
- if (val) {
407
- this.getenddate()
408
- }
409
- },
410
- 'model'(){
411
- this.initperson()
419
+ },
420
+ watch: {
421
+ 'model.f_input_date' (val) {
422
+ if (val) {
423
+ this.getenddate()
412
424
  }
425
+ },
426
+ 'model' () {
427
+ this.initperson()
413
428
  }
414
429
  }
430
+ }
415
431
  </script>
416
432
  <style lang="less" scoped>
417
- #meterInfoTest{
433
+ #meterInfoTest {
418
434
  #addboxmap {
419
435
  height: 300px;
420
436
  }
437
+
421
438
  .glyphicon-map-marker:hover {
422
439
  color: red;
423
440
  }
441
+
424
442
  .glyphicon-map-marker {
425
443
  color: blue;
426
444
  cursor: pointer;
427
445
  }
446
+
428
447
  .col-sm-4 {
429
448
  .font_normal_body {
430
449
  width: 73px;
@@ -434,19 +453,23 @@
434
453
  &::-webkit-scrollbar-button {
435
454
  display: none;
436
455
  }
456
+
437
457
  // 滚动条的宽度
438
458
  &::-webkit-scrollbar {
439
459
  width: 5px !important;
440
460
  height: 5px !important;
441
461
  }
462
+
442
463
  // 滚动条的设置
443
464
  &::-webkit-scrollbar-thumb {
444
465
  background-color: #ddd;
445
466
  background-clip: padding-box;
446
467
  }
468
+
447
469
  &::-webkit-scrollbar-thumb:hover {
448
470
  background-color: #bbb;
449
471
  }
472
+
450
473
  &::-webkit-scrollbar-track {
451
474
  /*滚动条里面轨道*/
452
475
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
@@ -4,6 +4,7 @@ import Vue from 'vue'
4
4
  export default function () {
5
5
  // 售气收费 --收费gas-move
6
6
  Vue.component('charge-manage', (resolve) => { require(['./ChargeManage'], resolve) })
7
+ Vue.component('hand-operate', (resolve) => { require(['./handOperate'], resolve) })
7
8
  Vue.component('charge-list', (resolve) => { require(['./ChargeList'], resolve)})
8
9
  Vue.component('card-hand', (resolve) => { require(['./CardHand'], resolve) })
9
10
  Vue.component('hand-manager', (resolve) => { require(['./HandManager'], resolve) })