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