| 1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/billing/index"],{"1c02":function(t,n,e){"use strict";var o;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return l})),e.d(n,"a",(function(){return o}));var i=function(){var t=this,n=t.$createElement,e=(t._self._c,t.__map(t.suitFilterProductInfo,(function(n,e){var o=t.__get_orig(n),i=t.getSuitSelectClassById(n.classId),l=i.bigCount>0?t.getSuitSelectClassById(n.classId):null,s=i.bigCount>0&&l.bigCount>0?t.getSuitSelectClassById(n.classId):null;return{$orig:o,m0:i,m1:l,m2:s}}))),o=t.$util.isEmpty(t.suitFilterProductInfo),i=o?null:t.__map(t.suitFilterProductInfo,(function(n,e){var o=t.__get_orig(n),i=t.__map(n.child,(function(e,o){var i=t.__get_orig(e),l=n.isActive?t.getSelectItemById(e.id,n.classId):null,s=n.isActive?t.getSelectItemById(e.id,n.classId):null;return{$orig:i,m3:l,m4:s}}));return{$orig:o,l1:i}})),l=o?t.$util.isEmpty(t.filterProductInfo):null,s=t.__map(t.filterProductInfo,(function(n,e){var o=t.__get_orig(n),i=t.getSelectClassById(n.classId),l=t.getSelectClassById(n.classId),s=i.bigCount>0||l.smallCount>0?t.getSelectClassById(n.classId):null,u=i.bigCount>0||l.smallCount>0?t.getSelectClassById(n.classId):null,a=(i.bigCount>0||l.smallCount>0)&&(s.bigCount>0||u.smallCount>0)?t.getSelectClassById(n.classId):null,c=i.bigCount>0||l.smallCount>0?t.getSelectClassById(n.classId):null,r=i.bigCount>0||l.smallCount>0?t.getSelectClassById(n.classId):null,d=(i.bigCount>0||l.smallCount>0)&&r.smallCount>0?t.getSelectClassById(n.classId):null;return{$orig:o,m5:i,m6:l,m7:s,m8:u,m9:a,m10:c,m11:r,m12:d}})),u=t.$util.isEmpty(t.filterProductInfo),a=u?null:t.__map(t.filterProductInfo,(function(n,e){var o=t.__get_orig(n),i=t.__map(n.child,(function(e,o){var i=t.__get_orig(e),l=n.isActive?t.getSelectItemById(e.id,n.classId):null,s=n.isActive?t.getSelectItemById(e.id,n.classId):null;return{$orig:i,m13:l,m14:s}}));return{$orig:o,l4:i}})),c=u?t.$util.isEmpty(t.filterProductInfo):null,r=t.$util.isEmpty(t.pxClassInfo),d=r?t.$util.isEmpty(t.pxClassInfo):null;t.$mp.data=Object.assign({},{$root:{l0:e,g0:o,l2:i,g1:l,l3:s,g2:u,l5:a,g3:c,g4:r,g5:d}})},l=[]},"7c7e":function(t,n,e){"use strict";(function(t){e("6cdc");o(e("b5e3"));var n=o(e("c577"));function o(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("934e")["createPage"])},"8f1b":function(t,n,e){},"959d":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=s(e("caed")),i=e("7602"),l=s(e("e350"));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){e.e("components/module/app-search").then(function(){return resolve(e("80f2"))}.bind(null,e)).catch(e.oe)},a=function(){e.e("components/plugin/tabs").then(function(){return resolve(e("f58d"))}.bind(null,e)).catch(e.oe)},c=function(){e.e("components/app-wrapper-empty").then(function(){return resolve(e("c078"))}.bind(null,e)).catch(e.oe)},r=function(){Promise.all([e.e("common/vendor"),e.e("components/module/app-commodity")]).then(function(){return resolve(e("e36c"))}.bind(null,e)).catch(e.oe)},d=function(){Promise.all([e.e("common/vendor"),e.e("components/module/app-goods-commodity")]).then(function(){return resolve(e("fe86"))}.bind(null,e)).catch(e.oe)},m=function(){Promise.all([e.e("common/vendor"),e.e("components/module/app-pxClass-commodity")]).then(function(){return resolve(e("218c"))}.bind(null,e)).catch(e.oe)},f=function(){e.e("components/module/app-footer-cart").then(function(){return resolve(e("a9f2"))}.bind(null,e)).catch(e.oe)},p=function(){e.e("components/plugin/modal").then(function(){return resolve(e("3a8f"))}.bind(null,e)).catch(e.oe)},h=function(){e.e("components/module/allMoreSelectInput").then(function(){return resolve(e("2470"))}.bind(null,e)).catch(e.oe)},g=function(){e.e("components/sel-popup").then(function(){return resolve(e("cc0d"))}.bind(null,e)).catch(e.oe)},C={name:"Billing",components:{AppTabs:a,AppSearchModule:u,AppWrapperEmpty:c,Commondity:r,ModalModule:p,FooterCart:f,allMoreSelectInput:h,PxClassCommondity:m,GoodsCommondity:d,SelPopup:g},mixins:[l.default,o.default],data:function(){return{COMMODITY_TYPE:i.COMMODITY_TYPE,tabIndex:null,tabs:[{name:"成品"},{name:"花材"},{name:"培训班"}],isSmallCount:!1,isFocus:!1,offVerifyRepertory:!0,isModel:!1,customData:{bigCount:0,smallCount:0},showSubmitModel:!1,popupShow:!1,infoData:{}}},computed:{confirmContent:function(){var t="确认下一步?";return this.hasNoStock&&(t="有花材库存不足,确认下一步?"),t}},onShow:function(){this.change({index:0})},onUnload:function(){this.resetSelectInfoByType(this.pageType)},methods:{showPopup:function(){this.popupShow=!0},hidePopup:function(){this.popupShow=!1},showBigCover:function(t){this.popupShow=!0,this.infoData=t},customNum:function(t){var n=this;this.isModel=!0,this.customData=t,this.$nextTick((function(){n.customData.smallCount=0==n.customData.smallCount?null:n.customData.smallCount,n.customData.bigCount=0==n.customData.bigCount?null:n.customData.bigCount,n.isFocus=!0}))},modalCancel:function(){this.isModel=!1,this.customData={}},affirm:function(n){var e=this;this.isFocus=!1,this.isFocusOne=!1,this.$nextTick((function(){return 0===n.index?(e.customData.bigCount>0||e.customData.smallCount>0||e.delAllEvent(e.customData),e.modalCancel(),!1):0==/(^[1-9]\d*$)/.test(e.customData.bigCount)&&0==/(^[1-9]\d*$)/.test(e.customData.smallCount)?(e.delAllEvent(e.customData),void e.modalCancel()):void(/(^[1-9]\d*$)/.test(e.customData.bigCount)&&e.customData.bigCount<=0||/(^[1-9]\d*$)/.test(e.customData.smallCount)&&e.customData.smallCount<=0?t.showToast({title:"数量要大于0",icon:"none"}):(e.updateItemEvent(e.customData),e.modalCancel()))}))},cancelEvent:function(){this.showSubmitModel=!1},submitEvent:function(n){0===n.index||(console.log(444,this.selectList),t.navigateTo({url:"/admin/billing/affirm"})),this.cancelEvent()},confirmSelectGoodsEvent:function(){this.selectList.length>0?t.navigateTo({url:"/admin/billing/affirmGoods"}):this.$msg("请选择花材")},confirmSelectEvent:function(){if(this.selectList.length>0){for(var n=this.selectList,e=[],o=0;o<n.length;o++)0==/(^[1-9]\d*$)/.test(n[o].bigCount)&&0==/(^[1-9]\d*$)/.test(n[o].smallCount)||e.push(n[o]);if(e.length<=0)return void this.$msg("请选择花材");console.log("list",e),this.setSelectInfoByType({type:this.pageType,info:e}),t.navigateTo({url:"/admin/billing/affirm"})}else this.$msg("请选择花材")},change:function(t){if(this.resetSelectInfoByType(this.pageType),this.tabIndex==t.index)return!1;switch(this.tabIndex=t.index,t.index){case 0:this.$util.isEmpty(this.suitInfo)&&this.initGoodsData();break;case 1:this.$util.isEmpty(this.productInfo)&&this.initData();break;case 2:this.$util.isEmpty(this.pxClassInfo)&&this.initPxClassData();break}},scrollTop:function(){}}};n.default=C}).call(this,e("934e")["default"])},ada7:function(t,n,e){"use strict";var o=e("8f1b"),i=e.n(o);i.a},c577:function(t,n,e){"use strict";e.r(n);var o=e("1c02"),i=e("e4fa");for(var l in i)["default"].indexOf(l)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(l);e("ada7");var s,u=e("8261"),a=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"02e48975",null,!1,o["a"],s);n["default"]=a.exports},e4fa:function(t,n,e){"use strict";e.r(n);var o=e("959d"),i=e.n(o);for(var l in o)["default"].indexOf(l)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(l);n["default"]=i.a}},[["7c7e","common/runtime","common/vendor"]]]);
|