sale-client 3.5.38 → 3.5.39

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.38",
3
+ "version": "3.5.39",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -535,7 +535,7 @@ let offlineWriteGen = async function (row) {
535
535
  throw new Error(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`)
536
536
  } else {
537
537
  // 更新 上次写卡气量
538
- await getParamGen(row.f_userfiles_id, param.ql)
538
+ await modify(row.f_userfiles_id, param.ql)
539
539
  // 写卡成功 更新收费记录
540
540
  let update = {
541
541
  id: row.unWriteSell[0].id,
@@ -1006,8 +1006,8 @@ let sendCardSaleGasGenremanent = async function (model, row) {
1006
1006
  await modify(row.f_userfiles_id, params.ql)
1007
1007
  // 写卡成功
1008
1008
  // 更新卡密码
1009
- row.version = result.data.version - 1,
1010
- await Vue.CommonService.updatePassword(row, cardRes)
1009
+ row.version = result.data.version - 1
1010
+ await Vue.CommonService.updatePassword(row, cardRes)
1011
1011
  Vue.showAlert('补气购气成功', 'success', 2000)
1012
1012
  return result
1013
1013
  }
@@ -1,112 +1,112 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='v'>
4
- <form novalidate class="form-horizontal">
5
- <div class="row">
6
- <div class="col-sm-4">
7
- <label for="f_paytype" class=" font_normal_body">付款方式:</label>
8
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_payment" disabled/>
9
- </div>
10
-
11
- <div class="col-sm-4">
12
- <label for="f_pregas" class=" font_normal_body">预购气量:</label>
13
- <input type="number" class="input_search" style="width: 60%" v-model="model.f_pregas" disabled>
14
- </div>
15
-
16
- <div class="col-sm-4">
17
- <label for="f_preamount" class=" font_normal_body">预购金额:</label>
18
- <input type="number" class="input_search" style="width: 60%" v-model="model.f_preamount" disabled>
19
- </div>
20
- </div>
21
- <div class="row" style="margin-top:6px;">
22
- <div class="col-sm-4">
23
- <label for="f_print" class="font_normal_body">收&ensp;款&ensp;人:</label>
24
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_operator" disabled>
25
- </div>
26
- <div class="col-sm-4">
27
- <label for="f_print" class="font_normal_body">部&emsp;&emsp;门:</label>
28
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_depname" disabled>
29
- </div>
30
- <div class="col-sm-4">
31
- <label for="f_print" class="font_normal_body">收费时间:</label>
32
- <input type="text" class="input_search" style="width: 60%" v-model="model.f_operate_date" disabled>
33
- </div>
34
- </div>
35
-
36
- <div class="row" style="margin-top:6px;">
37
-
38
- <div class="col-sm-12">
39
- <label for="f_comments" class="font_normal_body">备&emsp;&emsp;注</label>
40
- <input type="text" class="input_search" style="width:87%" v-model="model.f_comments" placeholder="备注"/>
41
- </div>
42
- </div>
43
- </form>
44
- <print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="close" @printok="printok" :data='row'></print-bill>
45
- <div style="text-align:right;margin-top:80px;margin-right:50px;">
46
- <button class="button_search" @click="confirm()" v-if="jurisdiction.includes('线下写卡')" :disabled='clickConfirm'>写卡</button>
47
- <button class="button_clear" @click="clean()">取消</button>
48
- </div>
49
- </validator>
50
- </div>
51
- </template>
52
- <script>
53
- /**
54
- *综合业务
55
- *卡表收费组件
56
- */
57
- import CardService from './CardService'
58
-
59
- // 执行保存逻辑
60
- let sellgasGen = async function (self) {
61
- try {
62
- self.row.cardInfo = self.cardData
63
- self.row.f_write_comments = self.model.f_comments
64
- await CardService.offlineWrite(self.row)
65
- // 开始打票
66
- self.clickConfirm = false
67
- self.$dispatch('success')
68
- } catch (error) {
69
- self.$showAlert(error, 'danger', 0)
70
- self.$dispatch('refresh')
71
- self.clickConfirm = false
72
- }
73
- }
74
-
75
- export default {
76
- title: '线下写卡',
77
- data () {
78
- return {
79
- model: {},
80
- clickConfirm: false,
81
- jurisdiction: this.$login.r
82
- }
83
- },
84
- props: ['row', 'cardData'],
85
- ready () {
86
- if (this.row.unWriteSell) {
87
- this.model = this.row.unWriteSell[0]
88
- }
89
- },
90
- methods: {
91
- confirm () {
92
- if (!this.cardData) {
93
- this.$showAlert('请先进行读卡再进行线下写卡', 'warning', 3000)
94
- return
95
- }
96
-
97
- this.clickConfirm = true
98
- this.$showMessage(`对用户${this.row.f_user_name}进行写卡操作。该操作只做写卡操作。确定要进行该操作吗?`, ['confirm', 'cancel']).then((res) => {
99
- if (res === 'confirm') {
100
- sellgasGen(this)
101
- }
102
- })
103
- },
104
- clean () {
105
- this.$dispatch('refresh', this.row)
106
- }
107
- }
108
- }
109
- </script>
110
-
111
- <style>
112
- </style>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4">
7
+ <label for="f_paytype" class=" font_normal_body">付款方式:</label>
8
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_payment" disabled/>
9
+ </div>
10
+
11
+ <div class="col-sm-4">
12
+ <label for="f_pregas" class=" font_normal_body">预购气量:</label>
13
+ <input type="number" class="input_search" style="width: 60%" v-model="model.f_pregas" disabled>
14
+ </div>
15
+
16
+ <div class="col-sm-4">
17
+ <label for="f_preamount" class=" font_normal_body">预购金额:</label>
18
+ <input type="number" class="input_search" style="width: 60%" v-model="model.f_preamount" disabled>
19
+ </div>
20
+ </div>
21
+ <div class="row" style="margin-top:6px;">
22
+ <div class="col-sm-4">
23
+ <label for="f_print" class="font_normal_body">收&ensp;款&ensp;人:</label>
24
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_operator" disabled>
25
+ </div>
26
+ <div class="col-sm-4">
27
+ <label for="f_print" class="font_normal_body">部&emsp;&emsp;门:</label>
28
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_depname" disabled>
29
+ </div>
30
+ <div class="col-sm-4">
31
+ <label for="f_print" class="font_normal_body">收费时间:</label>
32
+ <input type="text" class="input_search" style="width: 60%" v-model="model.f_operate_date" disabled>
33
+ </div>
34
+ </div>
35
+
36
+ <div class="row" style="margin-top:6px;">
37
+
38
+ <div class="col-sm-12">
39
+ <label for="f_comments" class="font_normal_body">备&emsp;&emsp;注</label>
40
+ <input type="text" class="input_search" style="width:87%" v-model="model.f_comments" placeholder="备注"/>
41
+ </div>
42
+ </div>
43
+ </form>
44
+ <print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="close" @printok="printok" :data='row'></print-bill>
45
+ <div style="text-align:right;margin-top:80px;margin-right:50px;">
46
+ <button class="button_search" @click="confirm()" v-if="jurisdiction.includes('线下写卡')" :disabled='clickConfirm'>写卡</button>
47
+ <button class="button_clear" @click="clean()">取消</button>
48
+ </div>
49
+ </validator>
50
+ </div>
51
+ </template>
52
+ <script>
53
+ /**
54
+ *综合业务
55
+ *卡表收费组件
56
+ */
57
+ import CardService from './CardService'
58
+
59
+ // 执行保存逻辑
60
+ let sellgasGen = async function (self) {
61
+ try {
62
+ self.row.cardInfo = self.cardData
63
+ self.row.f_write_comments = self.model.f_comments
64
+ await CardService.offlineWrite(self.row)
65
+ // 开始打票
66
+ self.clickConfirm = false
67
+ self.$dispatch('success')
68
+ } catch (error) {
69
+ self.$showAlert(error, 'danger', 0)
70
+ self.$dispatch('refresh')
71
+ self.clickConfirm = false
72
+ }
73
+ }
74
+
75
+ export default {
76
+ title: '线下写卡',
77
+ data () {
78
+ return {
79
+ model: {},
80
+ clickConfirm: false,
81
+ jurisdiction: this.$login.r
82
+ }
83
+ },
84
+ props: ['row', 'cardData'],
85
+ ready () {
86
+ if (this.row.unWriteSell) {
87
+ this.model = this.row.unWriteSell[0]
88
+ }
89
+ },
90
+ methods: {
91
+ confirm () {
92
+ if (!this.cardData) {
93
+ this.$showAlert('请先进行读卡再进行线下写卡', 'warning', 3000)
94
+ return
95
+ }
96
+
97
+ this.clickConfirm = true
98
+ this.$showMessage(`对用户${this.row.f_user_name}进行写卡操作。该操作只做写卡操作。确定要进行该操作吗?`, ['confirm', 'cancel']).then((res) => {
99
+ if (res === 'confirm') {
100
+ sellgasGen(this)
101
+ }
102
+ })
103
+ },
104
+ clean () {
105
+ this.$dispatch('refresh', this.row)
106
+ }
107
+ }
108
+ }
109
+ </script>
110
+
111
+ <style>
112
+ </style>