| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/billing/affirmGoods"],{"273b":function(e,t,n){"use strict";var o=n("d543"),i=n.n(o);i.a},"69d0":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("e350")),i=n("3a10"),r=n("7736");n("ca00");function c(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(){n.e("components/plugin/list-cell").then(function(){return resolve(n("1861"))}.bind(null,n)).catch(n.oe)},l=function(){Promise.all([n.e("common/vendor"),n.e("components/module/app-avatar")]).then(function(){return resolve(n("d84d"))}.bind(null,n)).catch(n.oe)},f=function(){Promise.all([n.e("common/vendor"),n.e("components/plugin/simple-address")]).then(function(){return resolve(n("618a"))}.bind(null,n)).catch(n.oe)},p=function(){n.e("components/app-area-sel").then(function(){return resolve(n("62ec"))}.bind(null,n)).catch(n.oe)},m=function(){Promise.all([n.e("common/vendor"),n.e("components/app-customer-sel")]).then(function(){return resolve(n("a51e"))}.bind(null,n)).catch(n.oe)},h=function(){n.e("components/app-formRadio-btn").then(function(){return resolve(n("c6ee"))}.bind(null,n)).catch(n.oe)},g=function(){Promise.all([n.e("common/vendor"),n.e("components/app-address-group")]).then(function(){return resolve(n("cdfa"))}.bind(null,n)).catch(n.oe)},b=function(){n.e("components/app-send-time").then(function(){return resolve(n("0a72"))}.bind(null,n)).catch(n.oe)},v=function(){Promise.all([n.e("common/vendor"),n.e("components/app-form-send")]).then(function(){return resolve(n("a5ce"))}.bind(null,n)).catch(n.oe)},y=(n("90f4"),{name:"BillingAffirm",components:{TuiListCell:d,AppAvatarModule:l,SimpleAddress:f,AppAreaSel:p,AppCustomerSel:m,appFormRadioBtn:h,appAddressGroup:g,appSendTime:b,appFormSend:v},mixins:[o.default],data:function(){return{autoLoad:!1,packingMoney:"",freight:"",payType:1,clientInfo:"",showCustomer:!1,modifyPrice:0,sendType:1,discountIndex:0,discount:["未打折","95折","9折","85折","8折","75折","7折","65折","6折"]}},onLoad:function(){var t=this;this.getMerchantInfo?e.setNavigationBarTitle({title:this.getMerchantInfo.name}):this.initMerchantInfo().then((function(t){e.setNavigationBarTitle({title:t.name})})),this.modifyPrice=this.allGoodsPrice.toFixed(2),setTimeout((function(){t.payType=t.getDictionariesInfo.htPayWayOption[0].id}),100)},computed:s({},(0,r.mapGetters)(["getMerchantInfo","getLoginInfo","getDictionariesInfo"])),methods:s(s({},(0,r.mapActions)(["initMerchantInfo"])),{},{discountChange:function(e){this.discountIndex=e.target.value;var t=0,n=this.allGoodsPrice.toFixed(2),o=(Number(n)+Number(this.freight)).toFixed(2);switch(e.target.value){case"0":t=0;break;case"1":t=(o-.95*o).toFixed(2);break;case"2":t=(o-.9*o).toFixed(2);break;case"3":t=(o-.85*o).toFixed(2);break;case"4":t=(o-.8*o).toFixed(2);break;case"5":t=(o-.75*o).toFixed(2);break;case"6":t=(o-.7*o).toFixed(2);break;case"7":t=(o-.65*o).toFixed(2);break;case"8":t=(o-.6*o).toFixed(2);break}this.modifyPrice=(o-t).toFixed(2)},countAllPrices:function(){var e=this.allGoodsPrice.toFixed(2);this.modifyPrice=(Number(e)+Number(this.freight)).toFixed(2)},changeCustomerFn:function(e){console.log("changeCustomerFn",e),this.clientInfo=e},affirmFormSubmit:function(){if(null!=this.payType){var t=this.selectList.map((function(e){return 1==e.goodsStyle?{goodsId:e.id,goodsStyleId:e.goodsStyleList[e.goodsStyleSelectIndex].id,goodsNum:e.bigCount}:{goodsId:e.id,goodsStyleId:0,goodsNum:e.bigCount}})),n={orderType:1,sendCost:this.freight,customId:this.clientInfo.id,payWay:this.payType,sendType:this.sendType,modifyPrice:this.modifyPrice,goodsInfo:JSON.stringify(t)},o=this;e.showModal({title:"提示",content:"确认开单?",success:function(t){t.confirm&&(0,i.createOrder)(n).then((function(t){o.resetSelectInfoByType(o.pageType);var n=t.data,i=n.orderId,r=n.orderSn,c="/admin/billing/result?orderId=".concat(i,"&orderSn=").concat(r);e.redirectTo({url:c})}))}})}else e.showToast({title:"请选择支付方式!",icon:"none"})},gobackEvent:function(){e.navigateBack({delta:1})}})});t.default=y}).call(this,n("934e")["default"])},"83aa":function(e,t,n){"use strict";var o;n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o}));var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.__map(e.selectList,(function(t,n){var o=e.__get_orig(t),i=e.getSelectGoodsPrice(t);return{$orig:o,m0:i}}))),o=(Number(e.freight)+Number(e.allGoodsPrice)).toFixed(2),i=((Number(e.freight)+Number(e.allGoodsPrice)).toFixed(2)-e.modifyPrice).toFixed(2);e._isMounted||(e.e0=function(t){e.showCustomer=!0},e.e1=function(t){e.sendType=1,e.freight=0,e.countAllPrices()},e.e2=function(t){e.sendType=0,e.freight=0},e.e3=function(t,n){var o=arguments[arguments.length-1].currentTarget.dataset,i=o.eventParams||o["event-params"];n=i.res;e.payType=n.id},e.e4=function(t){e.modifyPrice="",e.discountIndex=0}),e.$mp.data=Object.assign({},{$root:{l0:n,g0:o,g1:i}})},r=[]},"8e9d":function(e,t,n){"use strict";n.r(t);var o=n("69d0"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},9157:function(e,t,n){"use strict";(function(e){n("6cdc");o(n("b5e3"));var t=o(n("d288"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("934e")["createPage"])},d288:function(e,t,n){"use strict";n.r(t);var o=n("83aa"),i=n("8e9d");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("273b");var c,a=n("8261"),s=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,"d5dab154",null,!1,o["a"],c);t["default"]=s.exports},d543:function(e,t,n){}},[["9157","common/runtime","common/vendor"]]]);
|