Commit c14fb301d59e04e92c4ebad0994d1177e62239e6

Authored by liuqimichale
1 parent 12fc10d2

赤峰 输入车牌停车记录

dist.zip deleted
No preview for this file type
src/main.js
... ... @@ -20,6 +20,12 @@ import { MessageBox } from 'mint-ui'
20 20 // Vue.use(MessageBox)
21 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 30 import './assets/css/base.scss'
25 31  
... ...
src/views/parkPay/navigation.vue
... ... @@ -68,7 +68,7 @@ export default {
68 68 sign_type: 'md5',
69 69 sign: '1',
70 70 orgId:this.$utils.myOrgId,
71   - jumpType: '8'
  71 + jumpType: '7'
72 72 };
73 73 // jsondata = JSON.stringify(jsondata);
74 74 swiperQuery(jsondata).then( res => {
... ...
src/views/parkPay/orderPay.vue
... ... @@ -21,6 +21,11 @@
21 21 <span>{{(arrearageActFee/100).toFixed(2)}}</span>
22 22 </li>
23 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 29 <div style="padding: 20px 18px">
25 30 <div class="toPay" @click="toPay">{{clientBrowser}}支付</div>
26 31 </div>
... ... @@ -61,6 +66,7 @@ export default {
61 66 orderId: '', //支付的订单
62 67 webAppCode: '', // 微信code
63 68 appOrderTimeout: '', // 超时描述
  69 + tollNumber:'', // 收费员员工号
64 70 }
65 71 },
66 72 created() {
... ... @@ -154,6 +160,7 @@ export default {
154 160 wxParams.paySrcType = this.paySrcType;//101停车支付
155 161 wxParams.recordArreaInfos = JSON.stringify(orderIdData);
156 162 wxParams.openId = openIdData;
  163 + wxParams.backDeveloperCode = this.tollNumber,
157 164 wxParams.appId = this.$utils.myVxAppId;
158 165 vxPayQuery(wxParams).then(res => {
159 166 if (res.code == 0) { //
... ... @@ -174,9 +181,25 @@ export default {
174 181 } else {
175 182 alert("没有找到返回值");
176 183 }
177   - } else {
  184 + } else if(res.code == 1002){//其他情况如【该卡号场内已存在】
178 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 80 <div>
81 81 <p style="margin-bottom: 18px;margin-top: 18px;">查询记录</p>
82 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 84 <span>{{ i }}</span>
85 85 </li>
86 86 </ul>
... ... @@ -410,6 +410,16 @@ export default {
410 410 openImgUrl(i) { // 点击图片跳转
411 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 423 chooseColor (index){ // 颜色选择
414 424 this.currentColor = index
415 425 switch (this.currentColor) {
... ...