Commit c14fb301d59e04e92c4ebad0994d1177e62239e6
1 parent
12fc10d2
赤峰 输入车牌停车记录
Showing
5 changed files
with
43 additions
and
4 deletions
dist.zip deleted
No preview for this file type
src/main.js
@@ -20,6 +20,12 @@ import { MessageBox } from 'mint-ui' | @@ -20,6 +20,12 @@ import { MessageBox } from 'mint-ui' | ||
20 | // Vue.use(MessageBox) | 20 | // Vue.use(MessageBox) |
21 | Vue.prototype.$msgbox = MessageBox | 21 | Vue.prototype.$msgbox = MessageBox |
22 | 22 | ||
23 | + | ||
24 | + | ||
25 | +import { Field } from 'mint-ui'; | ||
26 | + | ||
27 | +Vue.component(Field.name, Field); | ||
28 | + | ||
23 | //全局设置的基本样式 | 29 | //全局设置的基本样式 |
24 | import './assets/css/base.scss' | 30 | import './assets/css/base.scss' |
25 | 31 |
src/views/parkPay/navigation.vue
@@ -68,7 +68,7 @@ export default { | @@ -68,7 +68,7 @@ export default { | ||
68 | sign_type: 'md5', | 68 | sign_type: 'md5', |
69 | sign: '1', | 69 | sign: '1', |
70 | orgId:this.$utils.myOrgId, | 70 | orgId:this.$utils.myOrgId, |
71 | - jumpType: '8' | 71 | + jumpType: '7' |
72 | }; | 72 | }; |
73 | // jsondata = JSON.stringify(jsondata); | 73 | // jsondata = JSON.stringify(jsondata); |
74 | swiperQuery(jsondata).then( res => { | 74 | swiperQuery(jsondata).then( res => { |
src/views/parkPay/orderPay.vue
@@ -21,6 +21,11 @@ | @@ -21,6 +21,11 @@ | ||
21 | <span>{{(arrearageActFee/100).toFixed(2)}}</span> | 21 | <span>{{(arrearageActFee/100).toFixed(2)}}</span> |
22 | </li> | 22 | </li> |
23 | </ul> | 23 | </ul> |
24 | + | ||
25 | + <p style="margin-top: 20px;padding-left: 15px;">停车引导员工号(非必填)</p> | ||
26 | + <mt-field style="font-size: 14px;color: #333;" label="" placeholder="请输入员工号" type="number" v-model="tollNumber" :attr="{ oninput: 'if(value.length>7)value=value.slice(0,7)' }" ></mt-field> | ||
27 | + | ||
28 | + | ||
24 | <div style="padding: 20px 18px"> | 29 | <div style="padding: 20px 18px"> |
25 | <div class="toPay" @click="toPay">{{clientBrowser}}支付</div> | 30 | <div class="toPay" @click="toPay">{{clientBrowser}}支付</div> |
26 | </div> | 31 | </div> |
@@ -61,6 +66,7 @@ export default { | @@ -61,6 +66,7 @@ export default { | ||
61 | orderId: '', //支付的订单 | 66 | orderId: '', //支付的订单 |
62 | webAppCode: '', // 微信code | 67 | webAppCode: '', // 微信code |
63 | appOrderTimeout: '', // 超时描述 | 68 | appOrderTimeout: '', // 超时描述 |
69 | + tollNumber:'', // 收费员员工号 | ||
64 | } | 70 | } |
65 | }, | 71 | }, |
66 | created() { | 72 | created() { |
@@ -154,6 +160,7 @@ export default { | @@ -154,6 +160,7 @@ export default { | ||
154 | wxParams.paySrcType = this.paySrcType;//101停车支付 | 160 | wxParams.paySrcType = this.paySrcType;//101停车支付 |
155 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); | 161 | wxParams.recordArreaInfos = JSON.stringify(orderIdData); |
156 | wxParams.openId = openIdData; | 162 | wxParams.openId = openIdData; |
163 | + wxParams.backDeveloperCode = this.tollNumber, | ||
157 | wxParams.appId = this.$utils.myVxAppId; | 164 | wxParams.appId = this.$utils.myVxAppId; |
158 | vxPayQuery(wxParams).then(res => { | 165 | vxPayQuery(wxParams).then(res => { |
159 | if (res.code == 0) { // | 166 | if (res.code == 0) { // |
@@ -174,9 +181,25 @@ export default { | @@ -174,9 +181,25 @@ export default { | ||
174 | } else { | 181 | } else { |
175 | alert("没有找到返回值"); | 182 | alert("没有找到返回值"); |
176 | } | 183 | } |
177 | - } else { | 184 | + } else if(res.code == 1002){//其他情况如【该卡号场内已存在】 |
178 | console.log(res.message); | 185 | console.log(res.message); |
179 | - alert(res.message); | 186 | + MessageBox.confirm('', { |
187 | + message: res.message, | ||
188 | + title: '温馨提示', | ||
189 | + showCancelButton:false, | ||
190 | + confirmButtonText: '确定', | ||
191 | + }).then(action => { | ||
192 | + if (action == 'confirm') { //确认的回调 | ||
193 | + console.log('确定'); | ||
194 | + this.$router.go(-1) | ||
195 | + } | ||
196 | + }).catch(err => { | ||
197 | + if (err == 'cancel') { //取消的回调 | ||
198 | + console.log('取消'); | ||
199 | + } | ||
200 | + }); | ||
201 | + }else{ | ||
202 | + alert(res.message) | ||
180 | } | 203 | } |
181 | }) | 204 | }) |
182 | }, | 205 | }, |
src/views/parkPay/plateNumber.vue
@@ -80,7 +80,7 @@ | @@ -80,7 +80,7 @@ | ||
80 | <div> | 80 | <div> |
81 | <p style="margin-bottom: 18px;margin-top: 18px;">查询记录</p> | 81 | <p style="margin-bottom: 18px;margin-top: 18px;">查询记录</p> |
82 | <ul class="bound-list" v-if="boundList.length>0"> | 82 | <ul class="bound-list" v-if="boundList.length>0"> |
83 | - <li v-for="i in boundList" :key="i"> | 83 | + <li v-for="i in boundList" :key="i" @click="boundHandle(i)"> |
84 | <span>{{ i }}</span> | 84 | <span>{{ i }}</span> |
85 | </li> | 85 | </li> |
86 | </ul> | 86 | </ul> |
@@ -410,6 +410,16 @@ export default { | @@ -410,6 +410,16 @@ export default { | ||
410 | openImgUrl(i) { // 点击图片跳转 | 410 | openImgUrl(i) { // 点击图片跳转 |
411 | window.open(i.jumpUrl) | 411 | window.open(i.jumpUrl) |
412 | }, | 412 | }, |
413 | + boundHandle(i) { // 记录点击事件 | ||
414 | + console.log(i) | ||
415 | + this.$router.push({ | ||
416 | + path:'parkRecord', | ||
417 | + query:{ | ||
418 | + carNumber:i, | ||
419 | + carNumberColor: this.currentColor | ||
420 | + } | ||
421 | + }) | ||
422 | + }, | ||
413 | chooseColor (index){ // 颜色选择 | 423 | chooseColor (index){ // 颜色选择 |
414 | this.currentColor = index | 424 | this.currentColor = index |
415 | switch (this.currentColor) { | 425 | switch (this.currentColor) { |