| 12345678910111213141516171819202122232425262728293031323334 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/billing/affirmGhs"],{760:
- /*!************************************************************!*\
- !*** ./src/main.js?{"page":"admin%2Fbilling%2FaffirmGhs"} ***!
- \************************************************************/
- /*! no static exports found */function(t,e,n){"use strict";(function(t){n(/*! uni-pages */4);o(n(/*! vue */2));var e=o(n(/*! ./admin/billing/affirmGhs.vue */761));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n(/*! ./node_modules/_@dcloudio_uni-mp-weixin@2.0.0@@dcloudio/uni-mp-weixin/dist/index.js */1)["createPage"])},761:
- /*!*****************************************!*\
- !*** ./src/admin/billing/affirmGhs.vue ***!
- \*****************************************/
- /*! no static exports found */function(t,e,n){"use strict";n.r(e);var o=n(/*! ./affirmGhs.vue?vue&type=template&id=7f9ce2dd&scoped=true& */762),i=n(/*! ./affirmGhs.vue?vue&type=script&lang=js& */764);for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n(/*! ./affirmGhs.vue?vue&type=style&index=0&id=7f9ce2dd&lang=scss&scoped=true& */767);var c,s=n(/*! ../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js */56),a=Object(s["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"7f9ce2dd",null,!1,o["components"],c);a.options.__file="admin/billing/affirmGhs.vue",e["default"]=a.exports},762:
- /*!************************************************************************************!*\
- !*** ./src/admin/billing/affirmGhs.vue?vue&type=template&id=7f9ce2dd&scoped=true& ***!
- \************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */function(t,e,n){"use strict";n.r(e);var o=n(/*! -!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--15-0!../../../node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/style.js!./affirmGhs.vue?vue&type=template&id=7f9ce2dd&scoped=true& */763);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},763:
- /*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--15-0!./node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/template.js!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/admin/billing/affirmGhs.vue?vue&type=template&id=7f9ce2dd&scoped=true& ***!
- \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! exports provided: render, staticRenderFns, recyclableRender, components */function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return c})),n.d(e,"recyclableRender",(function(){return r})),n.d(e,"components",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.list,(function(e,n){var o=t.__get_orig(e),i=parseFloat(e.bigPrice)||0;return{$orig:o,m0:i}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},r=!1,c=[];i._withStripped=!0},764:
- /*!******************************************************************!*\
- !*** ./src/admin/billing/affirmGhs.vue?vue&type=script&lang=js& ***!
- \******************************************************************/
- /*! no static exports found */function(t,e,n){"use strict";n.r(e);var o=n(/*! -!../../../node_modules/_babel-loader@8.2.3@babel-loader/lib!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!../../../node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/style.js!./affirmGhs.vue?vue&type=script&lang=js& */765),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},765:
- /*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/_babel-loader@8.2.3@babel-loader/lib!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--13-1!./node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/script.js!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/admin/billing/affirmGhs.vue?vue&type=script&lang=js& ***!
- \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(n(/*! ./node_modules/_@babel_runtime@7.17.2@@babel/runtime/regenerator/index.js */15)),i=u(n(/*! @/mixins/product */314)),r=n(/*! @/api/ghs/index */147),c=n(/*! @/api/purchase/index */766),s=n(/*! vuex */9),a=n(/*! @/api/coupon */426);function u(t){return t&&t.__esModule?t:{default:t}}function d(t,e,n,o,i,r,c){try{var s=t[r](c),a=s.value}catch(u){return void n(u)}s.done?e(a):Promise.resolve(a).then(o,i)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var r=t.apply(e,n);function c(t){d(r,o,i,c,s,"next",t)}function s(t){d(r,o,i,c,s,"throw",t)}c(void 0)}))}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m=function(){n.e(/*! require.ensure | components/plugin/list-cell */"components/plugin/list-cell").then(function(){return resolve(n(/*! @/components/plugin/list-cell */1284))}.bind(null,n)).catch(n.oe)},b=function(){Promise.all(/*! require.ensure | components/module/app-avatar */[n.e("common/vendor"),n.e("components/module/app-avatar")]).then(function(){return resolve(n(/*! @/components/module/app-avatar */1312))}.bind(null,n)).catch(n.oe)},g=function(){Promise.all(/*! require.ensure | components/plugin/simple-address */[n.e("common/vendor"),n.e("components/plugin/simple-address")]).then(function(){return resolve(n(/*! @/components/plugin/simple-address */1372))}.bind(null,n)).catch(n.oe)},v=function(){n.e(/*! require.ensure | components/app-area-sel */"components/app-area-sel").then(function(){return resolve(n(/*! @/components/app-area-sel */1365))}.bind(null,n)).catch(n.oe)},y=function(){Promise.all(/*! require.ensure | components/app-customer-sel */[n.e("common/vendor"),n.e("components/app-customer-sel")]).then(function(){return resolve(n(/*! @/components/app-customer-sel */1451))}.bind(null,n)).catch(n.oe)},P=function(){n.e(/*! require.ensure | components/app-timer */"components/app-timer").then(function(){return resolve(n(/*! @/components/app-timer */1596))}.bind(null,n)).catch(n.oe)},I=function(){n.e(/*! require.ensure | components/app-formRadio-btn */"components/app-formRadio-btn").then(function(){return resolve(n(/*! @/components/app-formRadio-btn */1402))}.bind(null,n)).catch(n.oe)},S=function(){Promise.all(/*! require.ensure | components/app-address-group */[n.e("common/vendor"),n.e("components/app-address-group")]).then(function(){return resolve(n(/*! @/components/app-address-group */1458))}.bind(null,n)).catch(n.oe)},O=function(){Promise.all(/*! require.ensure | components/app-form-send */[n.e("common/vendor"),n.e("components/app-form-send")]).then(function(){return resolve(n(/*! @/components/app-form-send */1591))}.bind(null,n)).catch(n.oe)},C=function(){n.e(/*! require.ensure | components/app-send-time */"components/app-send-time").then(function(){return resolve(n(/*! @/components/app-send-time */1463))}.bind(null,n)).catch(n.oe)},T=n(/*! @/utils/formValidation.js */196),w=function(){n.e(/*! require.ensure | components/app-date-picker */"components/app-date-picker").then(function(){return resolve(n(/*! @/components/app-date-picker */1509))}.bind(null,n)).catch(n.oe)},j={name:"BillingAffirm",components:{TuiListCell:m,AppAvatarModule:b,SimpleAddress:g,AppAreaSel:v,appSendTime:C,AppCustomerSel:y,appFormRadioBtn:I,appAddressGroup:S,appFormSend:O,appTimer:P,AppDatePicker:w},mixins:[i.default],data:function(){return{pageType:"cg",list:[],autoLoad:!1,ghsInfo:"",sendTimeWant:"",remark:"",form:{debt:1,shopId:"",shopName:"",receiveProvince:"",receiveCity:"",receiveFloor:"",receiveAddress:"",receiveLong:"",receiveLat:"",sendType:2,sendSide:"2",sendDate:"",sendTimeWant:"",sendCost:"",customId:"",product:"",hbId:"0"},showCustomer:!1,today:"",monthLater:"",modifyPrice:0,hasHb:0,selectedHb:{couponAmount:0,hbId:0,couponSelInx:0}}},onLoad:function(t){this.getGhsData(t.id)},onShow:function(){for(var t=this.$util.copyObject(this.selectList),e=[],n=function(n){if(""==e)e.push(t[n]);else{var o=!1;e.map((function(e){e.id==t[n].id&&(e.bigCount=e.bigCount+t[n].bigCount,e.smallCount=e.smallCount+t[n].smallCount,o=!0)})),0==o&&e.push(t[n])}},o=0;o<t.length;o++)n(o);this.list=e,this.selectedHb.hbId&&this.selectedHb.hbId>0?(this.form.hbId=this.selectedHb.hbId,this.calcPrice()):(this.form.hbId=0,this.hasCoupon(),this.calcPrice())},computed:h({},(0,s.mapGetters)(["getMerchantInfo","getLoginInfo"])),methods:h(h({},(0,s.mapActions)(["initMerchantInfo"])),{},{calcPrice:function(){var t=this.allPrice.toFixed(2);this.modifyPrice=Number(t),this.selectedHb.hbId&&this.selectedHb.hbId>0&&(this.modifyPrice=(this.modifyPrice-Number(this.selectedHb.couponAmount)).toFixed(2)),this.modifyPrice=parseFloat(this.modifyPrice)},init:function(){this._getDet()},bindDateChange:function(t){var e=t.detail.value;this.sendTimeWant=e},toPhone:function(e){t.makePhoneCall({phoneNumber:e})},goSelectCoupon:function(){var t=1==this.form.sendType?this.numberAdd(this.allPrice,Number(this.form.sendCost)):this.allPrice,e=h({amount:t,ghsId:this.option.id},this.selectedHb);this.pageTo({url:"/admin/coupon/selectCouponList",query:e})},hasCoupon:function(){var t=this,e=this.allPrice;(0,a.shopHouponHas)({amount:e,ghsId:this.option.id}).then((function(e){t.hasHb=e.data.has})).catch((function(t){}))},getGhsData:function(t){var e=this;(0,r.getGhsDataApi)({id:t}).then((function(t){e.ghsInfo=t.data,e.calcPrice()}))},countAllPrices:function(t){this.allPrices=this.allPrices+Number(this.form.sendCost)},_getDet:function(){var e=this,n=t.getStorageSync("modifyShopB");this.$util.isEmpty(n)||Object.keys(this.form).forEach((function(t,o){e.form[t]=n[t]}))},purchaseFreight:function(t){var e=this,n=this.selectList.map((function(t){return{productId:t.id,bigNum:t.bigCount,smallNum:t.smallCount,classId:t.classId,itemId:t.itemId}})),o={ghsId:this.options.id,product:JSON.stringify(n),province:t.province,city:t.city,address:t.address,floor:t.floor,long:t.long,lat:t.lat,sendTimeWant:this.sendTimeWant};(0,c.freight)(o).then((function(t){e.form.sendCost=t.data.sedCost}))},confirmFn:function(e){var n=this;(0,c.createOrder)(e).then((function(e){n.resetSelectInfoByType(n.pageType);var o=e.data,i=o.id,r=o.orderSn,c="/admin/billing/result?orderId=".concat(i,"&orderSn=").concat(r);t.redirectTo({url:c,success:function(t){},fail:function(){},complete:function(){}})}))},affirmFormSubmit:function(){var e=this.list.map((function(t){return{productId:t.id,bigNum:t.bigCount,smallNum:t.smallCount,classId:t.classId,itemId:t.itemId}})),n=t.getStorageSync("ghsXj"+this.ghsInfo.id),o={getType:this.form.sendType,sendTimeWant:this.sendTimeWant,sendCost:2==this.form.sendType?"":this.form.sendCost,remark:this.remark,product:JSON.stringify(e),ghsId:this.ghsInfo.id,hbId:this.form.hbId,xj:JSON.stringify(n)},i=this;t.showModal({title:"提示",content:"确认提交?",success:function(e){e.confirm&&(t.showLoading({title:"加载中",mask:!0}),(0,c.createOrder)(o).then((function(e){if(1==e.code){t.hideLoading();var n=e.data,o=n.orderSn,r=n.realPrice,c=n.id;i.pageTo({url:"/pagesPurchase/wechatPay",query:{orderSn:o,realPrice:r,id:c},type:2}),setTimeout((function(){i.removeMemory(i.ghsInfo.id)}),600)}})))}})},numberAdd:function(t,e){var n,o,i,r;try{n=t.toString().split(".")[1].length}catch(c){n=0}try{o=e.toString().split(".")[1].length}catch(c){o=0}return i=Math.pow(10,Math.max(n,o)),r=n>=o?n:o,((t*i+e*i)/i).toFixed(r)},NumberSub:function(t,e){var n,o,i,r;try{n=t.toString().split(".")[1].length}catch(c){n=0}try{o=e.toString().split(".")[1].length}catch(c){o=0}return i=Math.pow(10,Math.max(n,o)),r=n>=o?n:o,((t*i-e*i)/i).toFixed(r)},formSubmit:function(){var t=l(o.default.mark((function t(e){var n,i,r;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,n=this.form,i=this.selectList.map((function(t){return{productId:t.id,bigNum:t.bigCount,smallNum:t.smallCount}})),n.product=JSON.stringify(i),this.getMerchantInfo){t.next=7;break}return t.next=7,this.initMerchantInfo();case 7:n.shopId=this.getMerchantInfo.id,r=T.validation(n,[]),r?this.$msg(r):this.confirmFn(n),t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](0),console.log(999999,t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})));function e(e){return t.apply(this,arguments)}return e}(),gobackEvent:function(){this.$util.pageTo({url:"/pagesPurchase/ghsProduct",query:{id:this.options.id},type:2})}})};e.default=j}).call(this,n(/*! ./node_modules/_@dcloudio_uni-mp-weixin@2.0.0@@dcloudio/uni-mp-weixin/dist/index.js */1)["default"])},767:
- /*!***************************************************************************************************!*\
- !*** ./src/admin/billing/affirmGhs.vue?vue&type=style&index=0&id=7f9ce2dd&lang=scss&scoped=true& ***!
- \***************************************************************************************************/
- /*! no static exports found */function(t,e,n){"use strict";n.r(e);var o=n(/*! -!../../../node_modules/_mini-css-extract-plugin@0.9.0@mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/_css-loader@3.6.0@css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-2!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--9-oneOf-1-3!../../../node_modules/_sass-loader@8.0.2@sass-loader/dist/cjs.js??ref--9-oneOf-1-4!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-5!../../../node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!../../../node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/style.js!./affirmGhs.vue?vue&type=style&index=0&id=7f9ce2dd&lang=scss&scoped=true& */768),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},768:
- /*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./node_modules/_mini-css-extract-plugin@0.9.0@mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!./node_modules/_css-loader@3.6.0@css-loader/dist/cjs.js??ref--9-oneOf-1-1!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-2!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--9-oneOf-1-3!./node_modules/_sass-loader@8.0.2@sass-loader/dist/cjs.js??ref--9-oneOf-1-4!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader??ref--9-oneOf-1-5!./node_modules/_@dcloudio_vue-cli-plugin-uni@2.0.0@@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib??vue-loader-options!./node_modules/_@dcloudio_webpack-uni-mp-loader@2.0.0@@dcloudio/webpack-uni-mp-loader/lib/style.js!./src/admin/billing/affirmGhs.vue?vue&type=style&index=0&id=7f9ce2dd&lang=scss&scoped=true& ***!
- \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
- /*! no static exports found */function(t,e,n){}},[[760,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/admin/billing/affirmGhs.js.map
|