| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["admin-order-addOrder"],{"0e36":function(t,e,n){"use strict";var i;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"goods-list-top",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showAddModelFn()}}},[n("v-uni-view",{staticClass:"img-blo"},[n("v-uni-image",{attrs:{src:t.goodsInfo.smallImgList[0],mode:"aspectFit"}})],1),n("v-uni-view",{staticClass:"goods-det"},[n("v-uni-view",{staticClass:"goods-det-top",staticStyle:{"margin-bottom":"4upx"}},[n("v-uni-view",{staticClass:"goods-name",staticStyle:{"font-size":"29upx","font-weight":"bold"}},[t._v(t._s(t.goodsInfo.name))])],1),n("v-uni-view",{staticClass:"operate-wrap",staticStyle:{"margin-bottom":"15upx"}},[n("v-uni-view",{staticClass:"goods-price",staticStyle:{"font-size":"23upx"}},[t._v("¥"+t._s(t.goodsInfo.price?parseFloat(t.goodsInfo.price):0))]),n("v-uni-view",{staticStyle:{float:"right",display:"inlin-block","padding-right":"30upx",color:"#CCCCCC"}},[n("v-uni-text",{staticStyle:{border:"1upx solid #CCCCCC","border-radius":"30upx",padding:"0upx 12upx"},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.delItemFn.apply(void 0,arguments)}}},[t._v("-")]),n("v-uni-text",{staticStyle:{width:"90upx",display:"inline-block","text-align":"center"}},[Number(t.goodsInfo.bigCount)>0?n("v-uni-text",[t._v(t._s(t.goodsInfo.bigCount))]):t._e()],1),n("v-uni-text",{staticStyle:{border:"1upx solid #CCCCCC","border-radius":"30upx",padding:"0upx 12upx"}},[t._v("+")])],1)],1),n("v-uni-view",{staticClass:"operate-wrap"},[n("v-uni-view",{staticStyle:{"font-size":"23upx",color:"#666666"}},[n("v-uni-text",[t._v("库存")]),n("v-uni-text",{staticStyle:{"font-weight":"bold","margin-left":"8upx"}},[t._v(t._s(t.goodsInfo.stock))])],1)],1)],1)],1)},o=[]},"2b6b":function(t,e,n){"use strict";n.r(e);var i=n("82fd"),a=n("8e38");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("994c");var r,s=n("8aaf"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"3c1cd07d",null,!1,i["a"],r);e["default"]=c.exports},5093:function(t,e,n){var i=n("5acd");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.goods-list-top[data-v-5eb06a10]{position:relative;display:-webkit-box;display:flex;display:-webkit-flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.goods-list-bottom[data-v-5eb06a10]{width:96%;margin-top:%?16?%;color:#bebebe}.goods-list-bottom uni-text[data-v-5eb06a10]{border:%?1?% solid #dad8d8;border-radius:%?20?%;font-size:%?22?%;padding:%?6?% %?25?% %?6?% %?25?%}.img-blo[data-v-5eb06a10]{width:%?130?%;height:%?130?%;margin-right:%?20?%}.img-blo > uni-image[data-v-5eb06a10]{height:100%;width:100%}.goods-det[data-v-5eb06a10]{width:calc(100% - %?150?%);font-size:%?28?%}.goods-det .operate-wrap[data-v-5eb06a10]{display:-webkit-box;display:flex;display:-webkit-flex;-webkit-box-align:end;-webkit-align-items:flex-end;align-items:flex-end;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.goods-det .operate-icon-wrap[data-v-5eb06a10]{left:%?-20?%}.goods-det .goods-name[data-v-5eb06a10]{margin-bottom:%?10?%}.goods-det .goods-sales[data-v-5eb06a10]{color:#999;font-size:%?24?%}.goods-det .goods-price[data-v-5eb06a10]{color:#ff2842;font-weight:700}',""]),t.exports=e},5900:function(t,e,n){var i=n("5acd");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.app-content[data-v-3c1cd07d]{min-height:calc(100vh - %?80?%);background-color:#fff}uni-page-body[data-v-3c1cd07d]{background:#fff}body.?%PAGE?%[data-v-3c1cd07d]{background:#fff}[data-v-3c1cd07d]::-webkit-scrollbar{width:0;height:0;color:transparent}.tab-view[data-v-3c1cd07d]{height:100vh;width:%?200?%;position:fixed;left:0;z-index:10;background-color:#f0f2f6}.tab-view .tab-bar-item[data-v-3c1cd07d]{width:%?200?%;height:%?110?%;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:%?26?%;color:#444;font-weight:400}.tab-view .active[data-v-3c1cd07d]{position:relative;color:#3385ff;font-size:%?26?%;background:#fff}.tab-view .active[data-v-3c1cd07d]::before{content:"";position:absolute;border-left:%?8?% solid #3385ff;height:100%;left:0}.right-box[data-v-3c1cd07d]{width:100%;height:100vh;position:fixed;padding-left:%?220?%;padding-bottom:%?200?%;box-sizing:border-box;left:0}.right-box .page-view[data-v-3c1cd07d]{width:100%;overflow:hidden;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom)}.right-box .page-view .goods-list[data-v-3c1cd07d]{margin:%?40?% 0}.app-footer[data-v-3c1cd07d]{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.app-footer .btn-list[data-v-3c1cd07d]{width:100%}.app-footer .btn-list[data-v-3c1cd07d]:first-child{border-left:0}.app-footer .btn-list .admin-button-com[data-v-3c1cd07d]{width:%?160?%;padding-top:%?16?%;padding-bottom:%?16?%;float:right;margin-right:%?30?%}.app-footer .other-btn[data-v-3c1cd07d]{color:#666}.app-footer .other-btn .iconfont[data-v-3c1cd07d]{font-size:%?24?%;color:#999;-webkit-transform:scale(.4);transform:scale(.4)}.input-wrap[data-v-3c1cd07d]{padding:%?22?% %?20?% %?22?% %?30?%}.input-wrap .search-bar[data-v-3c1cd07d]{display:inline-block;width:%?410?%}.select-cmd_bx .kc[data-v-3c1cd07d]{color:#999;font-size:%?28?%;font-weight:400;margin-bottom:%?40?%;text-align:center;margin-top:%?30?%}.select-cmd_bx .kc .unit_price[data-v-3c1cd07d]{padding-right:%?25?%}.select-cmd_bx .num_bx[data-v-3c1cd07d]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-bottom:%?40?%}.select-cmd_bx .num_bx > uni-text[data-v-3c1cd07d]{width:%?100?%;font-size:%?30?%}.select-cmd_bx .num_bx > uni-input[data-v-3c1cd07d]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?80?%;border:%?1?% solid #ddd;border-radius:%?4?%;text-align:center;margin-right:%?24?%;font-size:%?32?%}',""]),t.exports=e},"6b9c":function(t,e,n){"use strict";var i=n("a3ff"),a=n.n(i);a.a},"6fdd":function(t,e,n){var i=n("5900");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("47af").default;a("9614a066",i,!0,{sourceMap:!1,shadowMode:!1})},7309:function(t,e,n){"use strict";n.r(e);var i=n("9767"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"82fd":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uniPopup:n("27c0").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"app-content"},[n("v-uni-view",{staticClass:"input-wrap"},[n("v-uni-view",{staticClass:"search-bar"},[n("app-search-module",{attrs:{placeholder:"输入拼音首字母搜索"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.searchFn.apply(void 0,arguments)}},model:{value:t.py,callback:function(e){t.py=e},expression:"py"}})],1),n("v-uni-view",{staticStyle:{float:"right"}},[n("v-uni-button",{staticClass:"admin-button-com middle blue",staticStyle:{"margin-right":"13upx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.selectFlowerNumFn()}}},[t._v("支数")]),n("v-uni-button",{staticClass:"admin-button-com middle blue",staticStyle:{"margin-right":"8upx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clearSelect()}}},[t._v("清除已选")])],1)],1),n("v-uni-view",{staticClass:"app-middle"},[n("v-uni-scroll-view",{staticClass:"tab-view",attrs:{"scroll-y":!0,"scroll-with-animation":!0,"scroll-top":t.scrollTop}},t._l(t.tabbar,(function(e,i){return n("v-uni-view",{key:i,staticClass:"tab-bar-item",class:[t.currentTab==i?"active":""],attrs:{"data-current":i},on:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.swichTab(n,e)}}},[n("v-uni-text",[t._v(t._s(e.categoryName||""))])],1)})),1),t._l(t.tabbar,(function(e,i){return[t.currentTab==i?n("v-uni-scroll-view",{key:i+"_0",staticClass:"right-box",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.goBottom.apply(void 0,arguments)}}},[t.$util.isEmpty(t.list.data)?[n("app-wrapper-empty",{attrs:{title:"暂无数据","is-empty":t.$util.isEmpty(t.list.data)}})]:[n("v-uni-view",{staticClass:"page-view"},t._l(t.list.data,(function(e,i){return n("v-uni-view",{key:i,staticClass:"goods-list"},[n("OrderItem",{attrs:{goodsInfo:e},on:{showAddModelFn:function(e){arguments[0]=e=t.$handleEvent(e),t.showAddModelFn.apply(void 0,arguments)},replaceItemFn:function(e){arguments[0]=e=t.$handleEvent(e),t.replaceItemFn.apply(void 0,arguments)}}})],1)})),1)]],2):t._e()]}))],2),n("uni-popup",{ref:"selectFlowerNumRef",attrs:{"background-color":"#fff",type:"center",animation:!1}},[n("v-uni-view",{staticStyle:{display:"flex",padding:"20upx",height:"25vh","justify-content":"space-between","align-items":"center","flex-wrap":"wrap"}},t._l(t.flowerNumList,(function(e,i){return n("v-uni-text",{key:i,staticStyle:{"margin-left":"25upx",border:"1upx solid #999999",width:"100upx",height:"100upx","border-radius":"20upx","justify-content":"center","align-items":"center",display:"flex"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.selectFlowerNum(e.num)}}},[t._v(t._s(e.name))])})),1)],1),n("modal-module",{attrs:{show:t.isAddModel,title:t.customData.name,color:"#333",size:32,padding:"30rpx 30rpx"},on:{cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.addItemModelHidden.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmAddItemModel.apply(void 0,arguments)}}},[n("template",{slot:"customContent"},[n("v-uni-view",{staticClass:"select-cmd_bx"},[n("v-uni-view",{staticClass:"kc"},[n("v-uni-text",{staticClass:"unit_price"},[t._v("库存 "+t._s(t.customData.stock))])],1),n("v-uni-view",{staticClass:"num_bx"},[n("v-uni-input",{attrs:{type:"digit",placeholder:"单价"},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.customData.userPrice=null}},model:{value:t.customData.userPrice,callback:function(e){t.$set(t.customData,"userPrice",e)},expression:"customData.userPrice"}}),n("v-uni-text",[t._v("¥"+t._s(t.customData.userPrice&&t.customData.bigCount?parseFloat((t.customData.userPrice*t.customData.bigCount).toFixed(2)):0))])],1)],1)],1)],2),n("FooterCart",{attrs:{price:t.allPrice,count:t.allCount},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmToSave.apply(void 0,arguments)}}})],1)},o=[]},"8e38":function(t,e,n){"use strict";n.r(e);var i=n("c74cb"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},9767:function(t,e,n){"use strict";var i=n("d669");n("589a"),n("b1d8"),n("e978"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("6c85"));function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.default={name:"order-item",components:{},mixins:[],props:{goodsInfo:{required:!0,type:Object,default:function(){return{}}}},methods:{delItemFn:function(){this.goodsInfo.bigCount=0,this.$emit("replaceItemFn",this.goodsInfo,1)},addItemFn:function(){this.$emit("replaceItemFn",this.goodsInfo,0,"add")},reduceItemFn:function(){this.$emit("replaceItemFn",this.goodsInfo,0,"sub")},showAddModelFn:function(){this.goodsInfo.userPrice="",this.goodsInfo.bigCount="",this.$emit("showAddModelFn",r({},this.goodsInfo))}}}},"994c":function(t,e,n){"use strict";var i=n("6fdd"),a=n.n(i);a.a},a3ff:function(t,e,n){var i=n("5093");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("47af").default;a("0da43bc4",i,!0,{sourceMap:!1,shadowMode:!1})},a5d6:function(t,e,n){"use strict";n.r(e);var i=n("0e36"),a=n("7309");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("6b9c");var r,s=n("8aaf"),c=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"5eb06a10",null,!1,i["a"],r);e["default"]=c.exports},c74cb:function(t,e,n){"use strict";var i=n("d669");n("589a"),n("b1d8"),n("e978"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("6c85")),o=i(n("80f2")),r=i(n("c563")),s=i(n("c078")),c=i(n("3a8f")),d=i(n("a5d6")),l=n("d084"),u=i(n("aee2")),f=n("1b62"),p=i(n("0809"));function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){(0,a.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}e.default={name:"addOrder",components:{OperateModule:r.default,AppWrapperEmpty:s.default,ModalModule:c.default,AppSearchModule:o.default,OrderItem:d.default,FooterCart:u.default},mixins:[f.list,p.default],data:function(){return{selectJobType:"addOrder",selectJobId:0,tabbar:[],height:0,currentTab:0,scrollTop:0,form:{catId:""},delModal:!1,operateData:{},operateShow:!1,operateIndex:null,operateTop:0,checkStock:!1,flowerNum:0,flowerNumList:[{num:6,name:6},{num:9,name:9},{num:11,name:11},{num:19,name:19},{num:33,name:33},{num:52,name:52},{num:66,name:66},{num:99,name:99},{num:0,name:"取消"}]}},computed:{},onLoad:function(){},methods:{selectFlowerNumFn:function(){this.$refs.selectFlowerNumRef.open("top")},selectFlowerNum:function(t){this.$refs.selectFlowerNumRef.close(),this.flowerNum=t,this.resetList(),this.getPlantList()},clearSelect:function(){var t=this;t.$util.confirmModal({content:"确认清除?"},(function(){t.removeFromSaveDirect()}))},confirmToSave:function(){if(this.$util.isEmpty(this.selectList))return this.$msg("请选择商品"),!1;this.$util.pageTo({url:"/admin/order/addOrderConfirm",type:2})},goBottom:function(){this.list.finished?uni.stopPullDownRefresh():this.getPlantList().then((function(t){uni.stopPullDownRefresh()}))},init:function(){this.getPlantClass()},getPlantClass:function(){var t=this;(0,l.categoryListInfo)().then((function(e){t.tabbar=e.data,t.tabbar&&t.tabbar[0]&&t.tabbar[0].id&&(t.form.catId=t.tabbar[0].id,t.getPlantList())}))},getPlantList:function(){var t=this;return(0,l.getCategoryToGoods)(v(v({status:1,page:this.list.page},this.form),{},{flowerNum:this.flowerNum})).then((function(e){t.completes(e)}))},swichTab:function(t,e){var n=t.currentTarget.dataset.current;if(this.currentTab==n)return!1;this.currentTab=n,this.form.catId=e.id,this.resetList(),this.getPlantList()},changeStatus:function(t){var e=this,n=0==t.status?1:0;(0,l.changeStatusB)({id:t.id,status:n}).then((function(i){1==i.code&&(e.$msg("修改成功"),t.status=n)}))}}}}}]);
|