1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-car-carOutParkingArea"],{"132c":function(t,n,e){"use strict";var a=e("7df4"),o=e.n(a);o.a},2441:function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.getIotOpenApi=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.getIotOpenApi,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listChargeMachine=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listChargeMachine,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listChargeMachineOrder=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listChargeMachineOrder,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMachineRecords=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listMachineRecords,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.listMachines=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listMachines,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.postIotOpenApi=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.postIotOpenApi,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e("bf0f");var o=a(e("9494"));a(e("4a01"))},"4f49":function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.cutApplyRoomDiscountRecord=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.cutApplyRoomDiscountRecord,data:n,success:function(t){0==t.data.code?e():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.loadApplyRooms=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listApplyRoom,data:n,success:function(n){t.onoff=!0,0==n.data.code?e(n.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.loadFeeDiscount=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.queryFeeDiscount,data:n,success:function(t){0==t.data.code?e(t.data.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryApplyRoomRecord=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listApplyRoomDiscountRecord,data:n,success:function(t){0==t.data.code?e(t.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryApplyRoomRecordDetail=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listApplyRoomDiscountRecordDetail,data:n,success:function(t){0==t.data.code?e(t.data.data):wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryDictInfo=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.queryDictInfo,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.saveApplyRoomDiscountRecord=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.saveApplyRoomDiscountRecord,data:n,success:function(t){0==t.data.code?e():wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.uploadCheckUpdate=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.updateApplyRoomDiscount,data:n,success:function(t){0==t.data.code?e():wx.showToast({title:t.data.msg,icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.uploadReviewUpdate=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.updateReviewApplyRoomDiscount,data:n,success:function(t){0==t.data.code?e():wx.showToast({title:t.data.msg,icon:"none",duration:2e3})},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e("bf0f");var o=a(e("9494"))},"51e2":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("v-uni-view",[e("v-uni-view",{staticClass:"block__title"},[t._v(t._s(t.$t("pages.car.carOutParkingArea.手工出场")))]),e("v-uni-view",{staticClass:"cu-form-group margin-bottom-sm"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("pages.car.carOutParkingArea.车牌号")))]),e("v-uni-input",{staticClass:"text-right",attrs:{placeholder:t.$t("pages.car.carOutParkingArea.请输入车牌号")},on:{blur:function(n){arguments[0]=n=t.$handleEvent(n),t._queryCustomCarMoney()}},model:{value:t.carNum,callback:function(n){t.carNum=n},expression:"carNum"}})],1),e("v-uni-view",{staticClass:"cu-form-group margin-bottom-sm"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("pages.car.carOutParkingArea.应收金额")))]),e("v-uni-input",{staticClass:"text-right",attrs:{disabled:"disabled",placeholder:t.$t("pages.car.carOutParkingArea.请输入应收金额")},model:{value:t.payCharge,callback:function(n){t.payCharge=n},expression:"payCharge"}})],1),e("v-uni-view",{staticClass:"cu-form-group margin-bottom-sm"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("pages.car.carOutParkingArea.实收金额")))]),e("v-uni-input",{staticClass:"text-right",attrs:{placeholder:t.$t("pages.car.carOutParkingArea.请输入实收金额")},model:{value:t.amount,callback:function(n){t.amount=n},expression:"amount"}})],1),e("v-uni-view",{staticClass:"cu-form-group margin-bottom-sm"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("pages.car.carOutParkingArea.停车时间")))]),e("v-uni-input",{staticClass:"text-right",attrs:{disabled:"disabled",placeholder:t.$t("pages.car.carOutParkingArea.请输入停车时间")},model:{value:t.costMin,callback:function(n){t.costMin=n},expression:"costMin"}})],1),e("v-uni-view",{staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[t._v(t._s(t.$t("pages.car.carOutParkingArea.支付方式")))]),e("v-uni-picker",{attrs:{bindchange:"PickerChange",value:t.payTypeIndex,range:t.payTypes,"range-key":"name"},on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t._computePayType.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"picker"},[t._v(" "+t._s(t.payTypeIndex<0?t.$t("pages.car.carOutParkingArea.请选择"):t.payTypes[t.payTypeIndex].name)+" ")])],1)],1),e("v-uni-checkbox-group",{staticClass:"text-right",on:{change:function(n){arguments[0]=n=t.$handleEvent(n),t._changeCoupons.apply(void 0,arguments)}}},t._l(t.coupons,(function(n,a){return e("v-uni-view",{key:a,staticClass:"cu-form-group"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",[t._v(t._s(n.couponName)+"-")]),"1001"==n.typeCd?e("v-uni-text",[t._v(t._s(n.value)+t._s(t.$t("pages.car.carOutParkingArea.分钟")))]):t._e(),"2002"==n.typeCd?e("v-uni-text",[t._v(t._s(n.value)+t._s(t.$t("pages.car.carOutParkingArea.元")))]):t._e(),"3003"==n.typeCd?e("v-uni-text",[t._v(t._s(n.value)+t._s(t.$t("pages.car.carOutParkingArea.折")))]):t._e(),"4004"==n.typeCd?e("v-uni-text",[t._v(t._s(t.$t("pages.car.carOutParkingArea.全免")))]):t._e()],1),e("v-uni-checkbox",{staticClass:" ",attrs:{value:n.pccId}})],1)})),1),e("v-uni-view",{staticClass:"cu-form-group margin-top-sm"},[e("v-uni-textarea",{attrs:{placeholder:t.$t("pages.car.carOutParkingArea.请输入说明")},model:{value:t.remark,callback:function(n){t.remark=n},expression:"remark"}})],1),e("v-uni-view",{staticClass:"padding flex flex-direction"},[e("v-uni-button",{staticClass:"cu-btn bg-blue margin-tb-sm lg",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t._carOut()}}},[t._v(t._s(t.$t("pages.car.carOutParkingArea.出场")))])],1)],1)},o=[]},5337:function(t,n,e){"use strict";e("6a54");var a=e("f5bd").default;Object.defineProperty(n,"__esModule",{value:!0}),n.closeDoor=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.closeDoor,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.customCarInOut=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.customCarInOut,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getCarInParkingArea=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listCarInParkingArea,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getCarInoutDetail=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listCarInoutDetail,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getCarInoutPayment=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listCarInoutPayment,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getParkingAreaMachines=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listParkingAreaMachines,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getParkingCouponCar=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listParkingCouponCar,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.getTempCarFeeOrder=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.getTempCarFeeOrder,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.openDoor=function(t,n){return new Promise((function(e,a){t.context.post({url:o.default.openDoor,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryOwnerCars=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.queryOwnerCars,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},n.queryParkingAreas=function(t,n){return new Promise((function(e,a){t.context.get({url:o.default.listParkingAreas,data:n,success:function(t){e(t.data)},fail:function(t){wx.showToast({title:"服务器异常了",icon:"none",duration:2e3})}})}))},e("bf0f");var o=a(e("9494"));a(e("4a01"))},"7df4":function(t,n,e){var a=e("aaaf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("967d").default;o("2bbd5b9f",a,!0,{sourceMap:!1,shadowMode:!1})},8909:function(t,n,e){"use strict";e("6a54"),Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;e("5337");var a=e("2441"),o=e("4f49"),i={data:function(){return{machineId:"",paId:"",boxId:"",machineCode:"",carNum:"",remark:"",payCharge:0,costMin:0,amount:"",payTypeIndex:-1,payTypes:[],payType:"",inoutId:"",coupons:[],pccIds:[]}},onLoad:function(t){this.machineCode=t.machineCode,this.machineId=t.machineId,this.paId=t.paId,this.boxId=t.boxId,this._loadPayTypes()},methods:{_carOut:function(){(0,a.postIotOpenApi)(this,{machineId:this.machineId,communityId:this.getCommunityId(),paId:this.paId,boxId:this.boxId,carNum:this.carNum,remark:this.remark,payCharge:this.payCharge,costMin:this.costMin,amount:this.amount,payType:this.payType,inoutId:this.inoutId,type:"1102",pccIds:this.pccIds,iotApiCode:"customCarInOutBmoImpl"}).then((function(t){uni.showToast({icon:"none",title:t.msg}),0==t.code&&uni.navigateBack()}))},_computePayType:function(t){this.payTypeIndex=t.target.value;var n=this.payTypes[this.payTypeIndex];this.payType=n.statusCd},_loadPayTypes:function(){var t=this;(0,o.queryDictInfo)(this,{name:"car_inout_payment",type:"pay_type"}).then((function(n){t.payTypes=n}))},_queryCustomCarMoney:function(){var t=this;(0,a.getIotOpenApi)(this,{page:1,row:1,communityId:this.getCommunityId(),boxId:this.boxId,paId:this.paId,carNum:this.carNum,iotApiCode:"listCarInParkingAreaBmoImpl"}).then((function(n){var e=n.data;!e||e.length<1?uni.showToast({icon:"none",title:t.$t("pages.car.carOutParkingArea.未查询在场车辆,请检查!")}):(t.payCharge=e[0].payCharge,t.amount=e[0].payCharge,t.inoutId=e[0].inoutId,t.costMin=e[0].hours+"时"+e[0].min+"分")})),(0,a.getIotOpenApi)(this,{paId:this.paId,page:1,row:30,state:"1001",carNum:this.carNum,communityId:this.getCommunityId(),iotApiCode:"listParkingCouponCarBmoImpl"}).then((function(n){var e=n.data;!e||e.length<1||(t.coupons=e)}))},_changeCoupons:function(t){var n=this;this.pccIds=t.detail.value,!_pccIds||_pccIds.length<1?this._queryCustomCarMoney():(0,a.getIotOpenApi)(this,{paId:this.paId,boxId:this.boxId,pccIds:this.pccIds.join(","),carNum:this.carNum,communityId:this.getCommunityId(),iotApiCode:"getTempCarFeeOrderBmoImpl"}).then((function(t){n.payCharge=t.data.amount,n.amount=t.data.amount}))}}};n.default=i},a20e:function(t,n,e){"use strict";e.r(n);var a=e("8909"),o=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},aaaf:function(t,n,e){var a=e("c86c");n=a(!1),n.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.block__title[data-v-62b5a4f2]{margin:0;font-weight:400;font-size:14px;color:rgba(69,90,100,.6);padding:%?40?% %?30?% %?20?%}',""]),t.exports=n},effe:function(t,n,e){"use strict";e.r(n);var a=e("51e2"),o=e("a20e");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("132c");var u=e("828b"),c=Object(u["a"])(o["default"],a["b"],a["c"],!1,null,"62b5a4f2",null,!1,a["a"],void 0);n["default"]=c.exports}}]); |