telephone-clients 4.0.0-1-57 → 4.0.0-1-59

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,186 +1,186 @@
1
- <template>
2
- <div style="height: auto;width: 100%">
3
- <div partial>
4
- <div align="center" class="">
5
- <div class=""><img src="../../../assets/scanCode.png">请扫描下方二维码进行购气</div>
6
- <div class="row app-row">
7
- <div class="col-xs-4">
8
- <label class="font text-left">订单编号:</label>
9
- </div>
10
- <div class="col-xs-8">
11
- <input v-model="oderInfo.out_trade_no" class="search_input input-font" type="text"/>
12
- </div>
13
- </div>
14
- <div class="row app-row">
15
- <div class="col-xs-4">
16
- <label class="font text-left">订单状态:</label>
17
- </div>
18
- <div class="col-xs-8">
19
- <input v-model="oderInfo.msg" class="search_input input-font" type="text"/>
20
- </div>
21
- </div>
22
- <!--<div @click="callBack('支付成功')">返回</div>-->
23
- </div>
24
- <div align="center" class="">
25
- <div class="QR-code">
26
- <img v-show="isTimeout" height="266" src="../../../assets/qrcode_no.png" width="266"/>
27
- <div id="scan" style="margin-top: 25px"></div>
28
- </div>
29
- </div>
30
- </div>
31
- </div>
32
- </template>
33
- <script>
34
- import QRCode from 'qrcodejs2'
35
- import {HttpResetClass} from "vue-client";
36
-
37
- export default {
38
- title: '二维码扫码',
39
- prop: ['row'],
40
-
41
- data() {
42
- return {
43
- // 订单状态定时器
44
- timer1: {},
45
- timer2: {},
46
- // 订单信息
47
- oderInfo: {
48
- out_trade_no: "",
49
- msg: ''
50
- },
51
- // 下单信息
52
- parameter: {
53
- },
54
- isTimeout: true // 二维码图片
55
-
56
- }
57
- },
58
- methods: {
59
- callBack(para) {
60
- //tag
61
- this.$back(para)
62
- },
63
- // 生成二维码
64
- async createOrder() {
65
- console.log(this.row)
66
- let data = {
67
- config: this.row.model.f_orgid,
68
- f_revenue: 'productV3',
69
- pay_way: this.row.model.f_payment,
70
- money: `${Number(Number(this.row.money)*100).toFixed(2)}`,
71
- body: '购气订单',
72
- attach: {
73
- f_userfiles_id: this.row.model.f_userfiles_id,
74
- f_pregas: this.row.model.f_pregas,
75
- f_preamount: this.row.money,
76
- f_payment: this.row.money,
77
- f_terminal_num: HostApp.getSN().data,
78
- f_collection: this.row.money,
79
- f_totalcost: this.row.money,
80
- isHand: this.row.model.isHand || '',
81
- hand_ids: this.row.model.hand_ids || [],
82
- f_meterid: this.row.model.f_meterid || '',
83
- isGasValue: this.row.model.isGasValue || '',
84
- f_card_id: this.row.model.f_card_id || '',
85
- f_times: this.row.model.f_times || 0
86
- }
87
- }
88
- let result = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/pos/rs/logic/CCBGetCode`, data, {})
89
- if (result.data && result.data.code == 200){
90
- this.oderInfo.out_trade_no = result.data.f_out_trade_no
91
- new QRCode(document.getElementById('scan'), {'text': result.data.url, width: 266, height: 266})
92
- this.isTimeout = false
93
- if (this.oderInfo.out_trade_no) {
94
- this.timer1 = window.setInterval(this.queryOrderSatus, 3000)
95
- }
96
- }
97
- },
98
- // 查询订单状态
99
- async queryOrderSatus() {
100
- let http1 = new HttpResetClass()
101
- let resp = await http1.load('POST', `${this.$androidUtil.getProxyUrl()}/pos/rs/sql/getSellGasInfo`, {
102
- "data": {
103
- "condition": `f_serial_id = '${this.oderInfo.out_trade_no}'`
104
- }
105
- }, {resolveMsg: null, rejectMsg: null})
106
- if (resp.data.code == 200) {
107
- this.oderInfo.msg = '支付成功'
108
- await this.destroyed()
109
- await this.callBack(this.oderInfo.out_trade_no)
110
- } else {
111
- this.oderInfo.msg = '订单未支付'
112
- }
113
- },
114
- destroyed() {
115
- // 停止计时器
116
- //tag
117
- window.clearInterval(this.timer1)
118
- // window.clearInterval(this.timer2)
119
- }
120
- },
121
- async ready() {
122
- let http1 = new HttpResetClass()
123
- let resp = await http1.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/tel_singleTable_OrderBy`, {
124
- data: {
125
- items: "*",
126
- tablename: "t_userfiles",
127
- condition: `f_userfiles_id = '${this.row.model.f_userfiles_id}' and f_table_state != '换表'`,
128
- orderitem: "f_userfiles_id"
129
- }
130
- }, {resolveMsg: null, rejectMsg: null})
131
- console.log(resp)
132
- if (resp.data[0].f_meter_classify.includes('卡表')) {
133
- this.row.model.isHand = '0'
134
- this.row.model.f_meterid = resp.data[0].f_meterid
135
- this.row.model.isGasValue = resp.data[0].f_meter_classify.includes('气量') ? '0' : '1'
136
- this.row.model.f_card_id = resp.data[0].f_card_id
137
- this.row.model.f_times = resp.data[0].f_times
138
- }else if (resp.data[0].f_meter_classify.includes('机表')){
139
- this.row.model.isHand = '1'
140
- this.row.model.hand_ids = []
141
- let resp2 = await http1.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/tel_singleTable_OrderBy`, {
142
- data: {
143
- items: "id",
144
- tablename: "t_handplan",
145
- condition: `f_userfiles_id = '${this.row.model.f_userfiles_id}' and f_whether_pay = '否'`,
146
- orderitem: "id desc"
147
- }
148
- }, {resolveMsg: null, rejectMsg: null})
149
- if (resp2.data.length >0 ){
150
- this.row.model.hand_ids = resp2.data.map(item=>{return item.id})
151
- }
152
- }else {
153
- this.row.model.isHand = '-1'
154
- }
155
- await this.createOrder()
156
- },
157
- destroyed() {
158
- // 停止计时器
159
- //tag
160
- window.clearInterval(this.timer1)
161
- // window.clearInterval(this.timer2)
162
- }
163
- }
164
- </script>
165
- <style>
166
- .app-row {
167
- background-color: white;
168
- padding: 10px 10px 0 10px;
169
- border-bottom: 1px solid rgba(235, 235, 235, 0.7);
170
- }
171
-
172
- .search_input {
173
- border: 0;
174
- outline: none;
175
- }
176
-
177
- .font {
178
- font: 15px PingFang-SC-Medium;
179
- color: #666666;
180
- }
181
-
182
- .input-font {
183
- font: 15px PingFang-SC-Medium;
184
- color: #333333;
185
- }
186
- </style>
1
+ <template>
2
+ <div style="height: auto;width: 100%">
3
+ <div partial>
4
+ <div align="center" class="">
5
+ <div class=""><img src="../../../assets/scanCode.png">请扫描下方二维码进行购气</div>
6
+ <div class="row app-row">
7
+ <div class="col-xs-4">
8
+ <label class="font text-left">订单编号:</label>
9
+ </div>
10
+ <div class="col-xs-8">
11
+ <input v-model="oderInfo.out_trade_no" class="search_input input-font" type="text"/>
12
+ </div>
13
+ </div>
14
+ <div class="row app-row">
15
+ <div class="col-xs-4">
16
+ <label class="font text-left">订单状态:</label>
17
+ </div>
18
+ <div class="col-xs-8">
19
+ <input v-model="oderInfo.msg" class="search_input input-font" type="text"/>
20
+ </div>
21
+ </div>
22
+ <!--<div @click="callBack('支付成功')">返回</div>-->
23
+ </div>
24
+ <div align="center" class="">
25
+ <div class="QR-code">
26
+ <img v-show="isTimeout" height="266" src="../../../assets/qrcode_no.png" width="266"/>
27
+ <div id="scan" style="margin-top: 25px"></div>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </template>
33
+ <script>
34
+ import QRCode from 'qrcodejs2'
35
+ import {HttpResetClass} from "vue-client";
36
+
37
+ export default {
38
+ title: '二维码扫码',
39
+ prop: ['row'],
40
+
41
+ data() {
42
+ return {
43
+ // 订单状态定时器
44
+ timer1: {},
45
+ timer2: {},
46
+ // 订单信息
47
+ oderInfo: {
48
+ out_trade_no: "",
49
+ msg: ''
50
+ },
51
+ // 下单信息
52
+ parameter: {
53
+ },
54
+ isTimeout: true // 二维码图片
55
+
56
+ }
57
+ },
58
+ methods: {
59
+ callBack(para) {
60
+ //tag
61
+ this.$back(para)
62
+ },
63
+ // 生成二维码
64
+ async createOrder() {
65
+ console.log(this.row)
66
+ let data = {
67
+ config: this.row.model.f_orgid,
68
+ f_revenue: 'productV3',
69
+ pay_way: this.row.model.f_payment,
70
+ money: `${Number(Number(this.row.money)*100).toFixed(2)}`,
71
+ body: '购气订单',
72
+ attach: {
73
+ f_userfiles_id: this.row.model.f_userfiles_id,
74
+ f_pregas: this.row.model.f_pregas,
75
+ f_preamount: this.row.money,
76
+ f_payment: this.row.money,
77
+ f_terminal_num: HostApp.getSN().data,
78
+ f_collection: this.row.money,
79
+ f_totalcost: this.row.money,
80
+ isHand: this.row.model.isHand || '',
81
+ hand_ids: this.row.model.hand_ids || [],
82
+ f_meterid: this.row.model.f_meterid || '',
83
+ isGasValue: this.row.model.isGasValue || '',
84
+ f_card_id: this.row.model.f_card_id || '',
85
+ f_times: this.row.model.f_times || 0
86
+ }
87
+ }
88
+ let result = await new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/pos/rs/logic/CCBGetCode`, data, {})
89
+ if (result.data && result.data.code == 200){
90
+ this.oderInfo.out_trade_no = result.data.f_out_trade_no
91
+ new QRCode(document.getElementById('scan'), {'text': result.data.url, width: 266, height: 266})
92
+ this.isTimeout = false
93
+ if (this.oderInfo.out_trade_no) {
94
+ this.timer1 = window.setInterval(this.queryOrderSatus, 3000)
95
+ }
96
+ }
97
+ },
98
+ // 查询订单状态
99
+ async queryOrderSatus() {
100
+ let http1 = new HttpResetClass()
101
+ let resp = await http1.load('POST', `${this.$androidUtil.getProxyUrl()}/pos/rs/sql/getSellGasInfo`, {
102
+ "data": {
103
+ "condition": `f_serial_id = '${this.oderInfo.out_trade_no}'`
104
+ }
105
+ }, {resolveMsg: null, rejectMsg: null})
106
+ if (resp.data.length == 1){
107
+ this.oderInfo.msg = '支付成功'
108
+ await this.destroyed()
109
+ await this.callBack(this.oderInfo.out_trade_no)
110
+ }else {
111
+ this.oderInfo.msg = '订单未支付'
112
+ }
113
+ },
114
+ destroyed() {
115
+ // 停止计时器
116
+ //tag
117
+ window.clearInterval(this.timer1)
118
+ // window.clearInterval(this.timer2)
119
+ }
120
+ },
121
+ async ready() {
122
+ let http1 = new HttpResetClass()
123
+ let resp = await http1.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/tel_singleTable_OrderBy`, {
124
+ data: {
125
+ items: "*",
126
+ tablename: "t_userfiles",
127
+ condition: `f_userfiles_id = '${this.row.model.f_userfiles_id}' and f_table_state != '换表'`,
128
+ orderitem: "f_userfiles_id"
129
+ }
130
+ }, {resolveMsg: null, rejectMsg: null})
131
+ console.log(resp)
132
+ if (resp.data[0].f_meter_classify.includes('卡表')) {
133
+ this.row.model.isHand = '0'
134
+ this.row.model.f_meterid = resp.data[0].f_meterid
135
+ this.row.model.isGasValue = resp.data[0].f_meter_classify.includes('气量') ? '0' : '1'
136
+ this.row.model.f_card_id = resp.data[0].f_card_id
137
+ this.row.model.f_times = resp.data[0].f_times
138
+ }else if (resp.data[0].f_meter_classify.includes('机表')){
139
+ this.row.model.isHand = '1'
140
+ this.row.model.hand_ids = []
141
+ let resp2 = await http1.load('POST', `${this.$androidUtil.getProxyUrl()}/af-telephone/rs/sql/tel_singleTable_OrderBy`, {
142
+ data: {
143
+ items: "id",
144
+ tablename: "t_handplan",
145
+ condition: `f_userfiles_id = '${this.row.model.f_userfiles_id}' and f_whether_pay = '否'`,
146
+ orderitem: "id desc"
147
+ }
148
+ }, {resolveMsg: null, rejectMsg: null})
149
+ if (resp2.data.length >0 ){
150
+ this.row.model.hand_ids = resp2.data.map(item=>{return item.id})
151
+ }
152
+ }else {
153
+ this.row.model.isHand = '-1'
154
+ }
155
+ await this.createOrder()
156
+ },
157
+ destroyed() {
158
+ // 停止计时器
159
+ //tag
160
+ window.clearInterval(this.timer1)
161
+ // window.clearInterval(this.timer2)
162
+ }
163
+ }
164
+ </script>
165
+ <style>
166
+ .app-row {
167
+ background-color: white;
168
+ padding: 10px 10px 0 10px;
169
+ border-bottom: 1px solid rgba(235, 235, 235, 0.7);
170
+ }
171
+
172
+ .search_input {
173
+ border: 0;
174
+ outline: none;
175
+ }
176
+
177
+ .font {
178
+ font: 15px PingFang-SC-Medium;
179
+ color: #666666;
180
+ }
181
+
182
+ .input-font {
183
+ font: 15px PingFang-SC-Medium;
184
+ color: #333333;
185
+ }
186
+ </style>
@@ -1,26 +1,26 @@
1
- // 分公司特殊组件页面注册
2
- import Vue from "vue";
3
-
4
- //pc和手机端重写组件较多的话 建议将cp和android分到两个文件中
5
- let specialComp = {
6
- // 其他收费
7
- 'other_charge': (resolve) => { require(['./android/Othercharge'], resolve) },
8
- 'completed-repair': (resolve) => { require(['./android/CompletedRepair'], resolve) },
9
- 'repair-first': (resolve) => { require(['./android/RepairFirstV'], resolve) },
10
- // 支付二维码
11
- 'create_qrcode': (resolve) => { require(['./android/createQRcode'], resolve) },
12
- // 在线缴费
13
- 'online_buy_gas': (resolve) => { require(['./android/onlineBuyGas'], resolve) },
14
- 'add-my-task': (resolve) => { require(['./android/AddMyTask'], resolve) },
15
- 'phone-stand-work': (resolve) => { require(['./android/PhoneStandWork'], resolve) },
16
- 'repair-orderV': (resolve) => { require(['./android/RepairOrderV'], resolve) },
17
- 'fault-all': (resolve) => { require(['./android/FaultAll'], resolve) },
18
- 'service-online-query': (resolve) => { require(['./android/ServiceOnlineQuery'], resolve) },
19
- 'app-work-history': (resolve) => { require(['./android/AppWorkHistory'], resolve) }
20
-
21
- }
22
- exports.specialComp = specialComp
23
-
24
-
25
-
26
-
1
+ // 分公司特殊组件页面注册
2
+ import Vue from "vue";
3
+
4
+ //pc和手机端重写组件较多的话 建议将cp和android分到两个文件中
5
+ let specialComp = {
6
+ // 其他收费
7
+ 'other_charge': (resolve) => { require(['./android/Othercharge'], resolve) },
8
+ 'completed-repair': (resolve) => { require(['./android/CompletedRepair'], resolve) },
9
+ 'repair-first': (resolve) => { require(['./android/RepairFirstV'], resolve) },
10
+ // 支付二维码
11
+ 'create_qrcode': (resolve) => { require(['./android/createQRcode'], resolve) },
12
+ // 在线缴费
13
+ 'online_buy_gas': (resolve) => { require(['./android/onlineBuyGas'], resolve) },
14
+ 'add-my-task': (resolve) => { require(['./android/AddMyTask'], resolve) },
15
+ 'phone-stand-work': (resolve) => { require(['./android/PhoneStandWork'], resolve) },
16
+ 'repair-orderV': (resolve) => { require(['./android/RepairOrderV'], resolve) },
17
+ 'fault-all': (resolve) => { require(['./android/FaultAll'], resolve) },
18
+ 'service-online-query': (resolve) => { require(['./android/ServiceOnlineQuery'], resolve) },
19
+ 'app-work-history': (resolve) => { require(['./android/AppWorkHistory'], resolve) }
20
+
21
+ }
22
+ exports.specialComp = specialComp
23
+
24
+
25
+
26
+
@@ -18,7 +18,7 @@
18
18
  <div style="height: 45%;" id="husunzhexian2"></div>
19
19
  </div>
20
20
  <div class="span" style="width: 60%;overflow: auto">
21
- <visit-info v-if="showVisit" :phone="wavflie" :idwavfile="idwavfile" :outltime="outltime" @show-obj="watchShow"></visit-info>
21
+ <visit-info v-if="showVisit" :phone="wavflie" :idwavfile="idwavfile" :outltime="outltime" @show-obj="watchShow" v-on:visitback="visitback" ></visit-info>
22
22
  <criteria-paged :model="model" v-else v-ref:paged>
23
23
  <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
24
24
  <div novalidate class="form-inline" partial>
@@ -144,6 +144,12 @@ export default {
144
144
 
145
145
  },
146
146
  methods: {
147
+ visitback(val){
148
+ this.showVisit = false
149
+ if(val == 'commit'){
150
+ this.$refs.paged.$refs.criteria.search()
151
+ }
152
+ },
147
153
  searchEcharts(){
148
154
  console.log("9334",this.searchDate)
149
155
  this.renderEcharts(this.searchDate)