1 line
38 KiB
JavaScript
1 line
38 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-nongKe-gather-select_warehouse"],{"1b5c":function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("99af");var i=n(o("c7eb")),a=n(o("1da1")),r=(o("bb67"),o("94e5")),s=o("7f7e"),c=o("d67f"),d={data:function(){return{goodsData:[{name:"",type:1,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/mingcheng.png"},{name:"扫码入库",type:2,src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/luzhou/static4/saoma.png"}],product_id:"",editGoodsCode:"",editGoodsName:"",editGoodsPrice:"",editGoodsStore:"",editGoodsShow:!1,mer_id:0,searchGoodsShow:!1,searchGoodsName:"",goods:[],item:[],addGoodsShow:!1,stype:""}},onLoad:function(t){return this.mer_id=t.mer_id,this.stype=t.stype,1==this.stype?this.goodsData[0].name="商品添加":2==this.stype?this.goodsData[0].name="商品名称添加":void 0},onShow:function(){},methods:{addGoods:function(t){this.addGoodsShow=!0,this.item=t},addGoodsopen:function(){var t=this;this.item&&(0,s.post_product_import)(this.item.product_id).then((function(e){200==e.status?((0,c.Toast)(e.data.msg),t.addGoodsShow=!1):((0,c.Toast)(e.message),t.addGoodsShow=!1)})).catch((function(e){"已经导入过该商品了"==e?((0,c.Toast)("已经导入过该商品了"),t.addGoodsShow=!1):((0,c.Toast)("导入出错"),t.addGoodsShow=!1)})),this.item=[]},addGoodsclose:function(){this.addGoodsShow=!1},openSearch:function(){},searchGoodsClose:function(){var t=this;return(0,a.default)((0,i.default)().mark((function e(){var o,n,a;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o={mer_id:t.mer_id,name:t.searchGoodsName},e.next=3,(0,s.seachBarCodeAPI)(o).catch((function(t){return(0,c.Toast)(t)}));case 3:if(n=e.sent,a=n.data,!(a.list.length<1)){e.next=10;break}return t.searchGoodsShow=!1,(0,c.Toast)("暂无搜索商品,请添加!"),setTimeout((function(){uni.navigateTo({url:"/pages/product/addGoods/index?mer_id=".concat(o.mer_id)})}),2e3),e.abrupt("return");case 10:t.goods=a.list,t.searchGoodsShow=!1;case 12:case"end":return e.stop()}}),e)})))()},editGoodsClose:function(){var t=this;return(0,a.default)((0,i.default)().mark((function e(){var o;return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o={price:t.editGoodsPrice,stock:t.editGoodsStore,id:t.product_id},e.prev=1,e.next=4,(0,r.microEadtProduct)(o);case 4:e.sent,(0,c.Toast)("更新成功"),t.editGoodsShow=!1,e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](1),(0,c.Toast)("更新失败"),t.editGoodsShow=!1;case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))()},navigato:function(t){if(1===t){if(1==this.stype)return void uni.navigateTo({url:"/pages/product/addGoods/index?mer_id=".concat(this.mer_id)});this.searchGoodsShow=!0}else this.scanCode()},scanCode:function(){var t=this;uni.scanCode({scanType:["qrCode","barCode","datamatrix","pdf417"],success:function(e){1==t.stype?uni.navigateTo({url:"/pages/product/addGoods/index?mer_id=".concat(t.mer_id,"&code=").concat(e.result)}):t.seachBarCode(e.result)},fail:function(t){}})},seachBarCode:function(t){var e=this;return(0,a.default)((0,i.default)().mark((function o(){return(0,i.default)().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,(0,s.seachBarCodeAPI)({code:t,mer_id:e.mer_id}).then((function(o){if(o.data){if(o.data.list.length<1)return void uni.navigateTo({url:"/pages/product/addGoods/index?mer_id=".concat(e.mer_id,"&code=").concat(t)});e.goods=o.data.list}else uni.showToast({title:o.message,duration:3e3,icon:"none"})}));case 2:case"end":return o.stop()}}),o)})))()}},onPullDownRefresh:function(){uni.stopPullDownRefresh()}};e.default=d},"1b75":function(t,e,o){"use strict";o.r(e);var n=o("ddf5"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"26b2":function(t,e,o){"use strict";o.r(e);var n=o("74a9"),i=o("1b75");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("710c");var r=o("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"3f114883",null,!1,n["a"],void 0);e["default"]=s.exports},"366e":function(t,e,o){var n=o("8d417");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("2f912652",n,!0,{sourceMap:!1,shadowMode:!1})},3717:function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-3f114883], uni-scroll-view[data-v-3f114883], uni-swiper-item[data-v-3f114883]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-modal[data-v-3f114883]{width:%?650?%;border-radius:6px;overflow:hidden}.u-modal__title[data-v-3f114883]{font-size:16px;font-weight:700;color:#606266;text-align:center;padding-top:25px}.u-modal__content[data-v-3f114883]{padding:12px 25px 25px 25px;display:flex;flex-direction:row;justify-content:center}.u-modal__content__text[data-v-3f114883]{font-size:15px;color:#606266;flex:1}.u-modal__button-group[data-v-3f114883]{display:flex;flex-direction:row}.u-modal__button-group--confirm-button[data-v-3f114883]{flex-direction:column;padding:0 25px 15px 25px}.u-modal__button-group__wrapper[data-v-3f114883]{flex:1;display:flex;flex-direction:row;justify-content:center;align-items:center;height:48px}.u-modal__button-group__wrapper--confirm[data-v-3f114883], .u-modal__button-group__wrapper--only-cancel[data-v-3f114883]{border-bottom-right-radius:6px}.u-modal__button-group__wrapper--cancel[data-v-3f114883], .u-modal__button-group__wrapper--only-confirm[data-v-3f114883]{border-bottom-left-radius:6px}.u-modal__button-group__wrapper--hover[data-v-3f114883]{background-color:#f3f4f6}.u-modal__button-group__wrapper__text[data-v-3f114883]{color:#606266;font-size:16px;text-align:center}',""]),t.exports=e},"3c89":function(t,e,o){"use strict";o.r(e);var n=o("1b5c"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"45cb":function(t,e,o){"use strict";o.r(e);var n=o("d85a"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"504f":function(t,e,o){"use strict";var n=o("366e"),i=o.n(n);i.a},"710c":function(t,e,o){"use strict";var n=o("f938"),i=o.n(n);i.a},"74a9":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={uPopup:o("8de3").default,uLine:o("af506").default,uLoadingIcon:o("3f45").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("u-popup",{attrs:{mode:"center",zoom:t.zoom,show:t.show,customStyle:{borderRadius:"6px",overflow:"hidden",marginTop:"-"+t.$u.addUnit(t.negativeTop)},closeOnClickOverlay:t.closeOnClickOverlay,safeAreaInsetBottom:!1,duration:400},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"u-modal",style:{width:t.$u.addUnit(t.width)}},[t.title?o("v-uni-text",{staticClass:"u-modal__title"},[t._v(t._s(t.title))]):t._e(),o("v-uni-view",{staticClass:"u-modal__content",style:{paddingTop:(t.title?12:25)+"px"}},[t._t("default",[o("v-uni-text",{staticClass:"u-modal__content__text"},[t._v(t._s(t.content))])])],2),t.$slots.confirmButton?o("v-uni-view",{staticClass:"u-modal__button-group--confirm-button"},[t._t("confirmButton")],2):[o("u-line"),o("v-uni-view",{staticClass:"u-modal__button-group",style:{flexDirection:t.buttonReverse?"row-reverse":"row"}},[t.showCancelButton?o("v-uni-view",{staticClass:"u-modal__button-group__wrapper u-modal__button-group__wrapper--cancel",class:[t.showCancelButton&&!t.showConfirmButton&&"u-modal__button-group__wrapper--only-cancel"],attrs:{"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelHandler.apply(void 0,arguments)}}},[o("v-uni-text",{staticClass:"u-modal__button-group__wrapper__text",style:{color:t.cancelColor}},[t._v(t._s(t.cancelText))])],1):t._e(),t.showConfirmButton&&t.showCancelButton?o("u-line",{attrs:{direction:"column"}}):t._e(),t.showConfirmButton?o("v-uni-view",{staticClass:"u-modal__button-group__wrapper u-modal__button-group__wrapper--confirm",class:[!t.showCancelButton&&t.showConfirmButton&&"u-modal__button-group__wrapper--only-confirm"],attrs:{"hover-stay-time":150,"hover-class":"u-modal__button-group__wrapper--hover"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmHandler.apply(void 0,arguments)}}},[t.loading?o("u-loading-icon"):o("v-uni-text",{staticClass:"u-modal__button-group__wrapper__text",style:{color:t.confirmColor}},[t._v(t._s(t.confirmText))])],1):t._e()],1)]],2)],1)},a=[]},"7f7e":function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ajcaptchaCheck=function(t){return i.default.post("ajcheck",t,{noAuth:!0})},e.appleAppAuth=function(t){return i.default.post("auth/apple",t,{noAuth:!0})},e.appletsDecrypt=function(t){return i.default.post("user/mp/binding",t)},e.bindingPhone=function(t){return i.default.post("user/binding",t)},e.brigade=function(t){return i.default.get("v2/system/brigade",t,{noAuth:!0})},e.cloudWarehouse=function(t){return i.default.get("store/product/cloudWarehouse",t)},e.getAjcaptcha=function(t){return i.default.get("ajcaptcha",t,{noAuth:!0})},e.getAppVersion=function(){return i.default.get("appVersion",{},{noAuth:!0})},e.getArticleBannerList=function(){return i.default.get("article/banner/list",{},{noAuth:!0})},e.getArticleCategoryList=function(){return i.default.get("article/category/lst",{},{noAuth:!0})},e.getArticleCategoryLists=function(){return i.default.get("article/category/lst?is_home=1",{},{noAuth:!0})},e.getArticleDetails=function(t){return i.default.get("article/detail/"+t,{},{noAuth:!0})},e.getArticleHotList=function(){return i.default.get("article/hot/list",{},{noAuth:!0})},e.getArticleList=function(t,e){return i.default.get("article/lst/"+t,e,{noAuth:!0})},e.getCity=function(){return i.default.get("system/city/lst",{},{noAuth:!0})},e.getCityCloundShop=function(t){return i.default.get("city/get_cloud_shop",t)},e.getCityList=function(t){return i.default.get("v2/system/city",{address:t},{noAuth:!0})},e.getCityV2=function(t){return i.default.get("v2/system/city/lst/"+t,{},{noAuth:!0})},e.getCoupons=function(t){return i.default.get("coupon/product",t,{noAuth:!0})},e.getDiy=function(t){return i.default.get("diy",t,{noAuth:!0})},e.getIndexData=function(){return i.default.get("common/home",{},{noAuth:!0})},e.getLiveList=function(t,e){return i.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})},e.getLogo=function(){return i.default.get("wechat/get_logo",{},{noAuth:!0})},e.getPageDiy=function(t){return i.default.get("micro",t,{noAuth:!0})},e.getProductSpuAPI=function(t,e){return i.default.get("product/spu/cloud_merchant/".concat(t),e,{noAuth:!0})},e.getShopCoupons=function(t){return i.default.get("coupon/store/"+t,{},{noAuth:!0})},e.getTemlIds=function(){return i.default.get("wechat/teml_ids",{},{noAuth:!0})},e.getUserCoupons=function(t){return i.default.get("coupon/list",t)},e.get_cloud_shop=function(t){return i.default.get("city/get_cloud_shop?street_code=".concat(t),{},{noAuth:!0})},e.loginMobile=function(t){return i.default.post("login/mobile",t,{noAuth:!0})},e.logout=function(){return i.default.get("logout")},e.modifyPassword=function(t){return i.default.post("user/change/password",t)},e.modifyPhone=function(t){return i.default.post("user/change/phone",t)},e.phoneLogin=function(t){return i.default.post("login",t,{noAuth:!0})},e.phoneRegister=function(t){return i.default.post("register",t,{noAuth:!0})},e.phoneRegisterReset=function(t){return i.default.post("register/reset",t,{noAuth:!0})},e.pink=function(){return i.default.get("pink",{},{noAuth:!0})},e.post_product_import=function(t){return i.default.post("micro/product_import",{id:t},{noAuth:!0})},e.registerVerify=function(t,e,o,n){return i.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:o,code:n},{noAuth:!0})},e.seachBarCodeAPI=function(t){return i.default.get("micro/seach_bar_code",t)},e.setCouponReceive=function(t){return i.default.post("coupon/receive/"+t)},e.setFormId=function(t){return i.default.post("wechat/set_form_id",{formId:t})},e.switchH5Login=function(t){return i.default.post("user/switch",t)},e.verifyCode=function(){return i.default.get("verify_code",{},{noAuth:!0})},e.village=function(t){return i.default.get("v2/system/geo/lst",t,{noAuth:!0})},e.wechatAppAuth=function(t){return i.default.post("auth/app",t,{noAuth:!0})};var i=n(o("095d"))},"82b6":function(t,e,o){"use strict";var n=o("c97d"),i=o.n(n);i.a},8818:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"u-line",style:[this.lineStyle]})},i=[]},"8d417":function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-2f0e5305], uni-scroll-view[data-v-2f0e5305], uni-swiper-item[data-v-2f0e5305]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-line[data-v-2f0e5305]{vertical-align:middle}',""]),t.exports=e},a925:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("a9e3");var n={props:{show:{type:Boolean,default:uni.$u.props.modal.show},title:{type:[String],default:uni.$u.props.modal.title},content:{type:String,default:uni.$u.props.modal.content},confirmText:{type:String,default:uni.$u.props.modal.confirmText},cancelText:{type:String,default:uni.$u.props.modal.cancelText},showConfirmButton:{type:Boolean,default:uni.$u.props.modal.showConfirmButton},showCancelButton:{type:Boolean,default:uni.$u.props.modal.showCancelButton},confirmColor:{type:String,default:uni.$u.props.modal.confirmColor},cancelColor:{type:String,default:uni.$u.props.modal.cancelColor},buttonReverse:{type:Boolean,default:uni.$u.props.modal.buttonReverse},zoom:{type:Boolean,default:uni.$u.props.modal.zoom},asyncClose:{type:Boolean,default:uni.$u.props.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:uni.$u.props.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:uni.$u.props.modal.negativeTop},width:{type:[String,Number],default:uni.$u.props.modal.width},confirmButtonShape:{type:String,default:uni.$u.props.modal.confirmButtonShape}}};e.default=n},af506:function(t,e,o){"use strict";o.r(e);var n=o("8818"),i=o("45cb");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("504f");var r=o("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"2f0e5305",null,!1,n["a"],void 0);e["default"]=s.exports},bb67:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.attrList=function(t,e){return i.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.categoryBrandlist=function(t){return i.default.get("server/".concat(t,"/category/brandlist"),{},{login:!0})},e.categoryList=function(t){return i.default.get("server/".concat(t,"/category/list"),{},{login:!0})},e.categorySelect=function(t){return i.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.getDeliveryType=function(t){return i.default.get("server/".concat(t,"/product/config"),{},{login:!0})},e.getProductDetailsAPI=void 0,e.merClassifyAdd=function(t,e){return i.default.post("server/".concat(t,"/category/create"),e,{login:!0})},e.merClassifyDetail=function(t,e){return i.default.get("server/".concat(t,"/category/detail/").concat(e),{},{login:!0})},e.merClassifyLst=function(t){return i.default.get("server/".concat(t,"/category/select"),{},{login:!0})},e.merClassifyUpdate=function(t,e,o){return i.default.post("server/".concat(t,"/category/update/").concat(e),o,{login:!0})},e.merchantUpdateAPI=e.merchantInfoAPI=void 0,e.postImport=function(t,e){return i.default.post("server/".concat(t,"/product/stockIn"),e)},e.productCreate=function(t,e){return i.default.post("server/".concat(t,"/product/create"),e,{login:!0})},e.productDeleteApi=function(t,e){return i.default.post("server/".concat(t,"/product/delete/").concat(e),{},{login:!0})},e.productDestory=function(t,e,o){return i.default.post("server/".concat(t,"/product/destory/").concat(e),o,{login:!0})},e.productDetail=function(t,e){return i.default.get("server/".concat(t,"/product/detail/").concat(e),{},{login:!0})},e.productLstApi=function(t,e){return i.default.get("server/".concat(t,"/product/lst"),e,{login:!0})},e.productOffApi=function(t,e,o){return i.default.post("server/".concat(t,"/product/status/").concat(e),o,{login:!0})},e.productRecommendApi=function(t,e,o){return i.default.post("server/".concat(t,"/product/good/").concat(e),o,{login:!0})},e.productRestore=function(t,e){return i.default.post("server/".concat(t,"/product/restore/").concat(e),{},{login:!0})},e.productTitle=function(t,e){return i.default.get("server/".concat(t,"/product/title"),e,{login:!0})},e.productUpdate=function(t,e,o){return i.default.post("server/".concat(t,"/product/update/").concat(e),o,{login:!0})},e.specificationAdd=function(t,e){return i.default.post("server/".concat(t,"/attr/create"),e,{login:!0})},e.specificationDel=function(t,e){return i.default.post("server/".concat(t,"/attr/delete"),e,{login:!0})},e.specificationDetail=function(t,e){return i.default.get("server/".concat(t,"/attr/detail/").concat(e),{},{login:!0})},e.specificationLst=function(t,e){return i.default.get("server/".concat(t,"/attr/lst"),e,{login:!0})},e.specificationUpdate=function(t,e,o){return i.default.post("server/".concat(t,"/attr/update/").concat(e),o,{login:!0})},e.spuInfo=void 0,e.storeClassifyDel=function(t,e){return i.default.post("server/".concat(t,"/category/delete/").concat(e),{},{login:!0})},e.storeClassifyLst=function(t){return i.default.get("server/".concat(t,"/category/lst"),{},{login:!0})},e.templateCreate=function(t,e){return i.default.post("server/".concat(t,"/template/create"),e,{login:!0})},e.templateDelete=function(t,e){return i.default.post("server/".concat(t,"/template/delete"),e,{login:!0})},e.templateDetail=function(t,e){return i.default.get("server/".concat(t,"/template/detail/").concat(e),{},{login:!0})},e.templateList=function(t,e){return i.default.get("server/".concat(t,"/template/lst"),e,{login:!0})},e.templateUpdate=function(t,e,o){return i.default.post("server/".concat(t,"/template/update/").concat(e),o,{login:!0})},o("99af");var i=n(o("095d"));e.getProductDetailsAPI=function(t){return i.default.get("micro/product_details",t)};e.spuInfo=function(t,e){return i.default.get("product/spu/street/"+t,e)};e.merchantInfoAPI=function(t){return i.default.get("store/merchant/info",t)};e.merchantUpdateAPI=function(t){return i.default.post("store/merchant/update",t)}},c97d:function(t,e,o){var n=o("da85");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("6e25d703",n,!0,{sourceMap:!1,shadowMode:!1})},d85a:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("e9f9")),a={name:"u-line",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],computed:{lineStyle:function(){var t={};return t.margin=this.margin,"row"===this.direction?(t.borderBottomWidth="1px",t.borderBottomStyle=this.dashed?"dashed":"solid",t.width=uni.$u.addUnit(this.length),this.hairline&&(t.transform="scaleY(0.5)")):(t.borderLeftWidth="1px",t.borderLeftStyle=this.dashed?"dashed":"solid",t.height=uni.$u.addUnit(this.length),this.hairline&&(t.transform="scaleX(0.5)")),t.borderColor=this.color,uni.$u.deepMerge(t,uni.$u.addStyle(this.customStyle))}}};e.default=a},da85:function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.select_warehouse[data-v-941f25bc]{padding-top:20px}.wrapper[data-v-941f25bc]{width:%?694.74?%;margin:0 auto}.goods-wrapper .item[data-v-941f25bc]{display:flex;height:%?175.44?%;width:100%;background-color:#fff;margin-top:%?21.05?%;border-radius:8px;padding:12px}.goods-wrapper .item .l_cont uni-image[data-v-941f25bc]{width:%?133.33?%;height:%?133.33?%;border-radius:8px}.goods-wrapper .item .r_cont[data-v-941f25bc]{margin-left:%?17.54?%}.select_item[data-v-941f25bc]{width:%?336.84?%;height:%?189.47?%;border-radius:8px;background-color:#eee;padding:%?35.09?% %?28.07?%;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background-size:cover;background-repeat:no-repeat}.select_item .title[data-v-941f25bc]{font-size:%?35.09?%}.search_goods_box[data-v-941f25bc]{width:%?694.74?%;padding:%?28.07?%;font-size:%?31.58?%}.search_goods_box .searchGoods[data-v-941f25bc]{height:%?87.72?%;border:1px solid #f5f5f5;border-radius:8px;padding:12px;margin:%?21.05?% 0}.search_goods_box .search_goods_btn[data-v-941f25bc]{margin-top:%?28.07?%;display:flex;justify-content:space-between}.search_goods_box .search_goods_btn .edit_btn[data-v-941f25bc]{color:#fff;border-radius:8px;text-align:center;line-height:%?70.18?%;height:%?70.18?%;width:%?210.53?%}.search_goods_box .search_goods_btn .cancel[data-v-941f25bc]{background-color:#f56c6c}.search_goods_box .search_goods_btn .search[data-v-941f25bc]{background-color:#3c9cff}.edit_goods_box[data-v-941f25bc]{width:%?694.74?%;padding:%?28.07?%;font-size:%?31.58?%}.edit_goods_box uni-text[data-v-941f25bc]{color:"#f8f9f9"}.edit_goods_box .edit_name[data-v-941f25bc],\r\n.edit_goods_box .edit_store[data-v-941f25bc]{height:%?105.26?%}.edit_goods_box .edit_name_no[data-v-941f25bc]{color:#a4a4a4}.edit_goods_box .edit_store[data-v-941f25bc]{margin-top:%?21.05?%}.edit_goods_box[data-v-941f25bc] .u-button{width:%?300?%}.edit_goods_box .edit_goods_btn[data-v-941f25bc]{margin-top:%?28.07?%;display:flex;justify-content:space-between}.edit_goods_box .edit_goods_btn .edit_btn[data-v-941f25bc]{width:%?210.53?%}.list-box[data-v-941f25bc]{display:flex;flex-wrap:wrap;justify-content:space-between;padding:%?20?% %?28?% 0}.list-box .item[data-v-941f25bc]{width:%?328?%;margin-bottom:%?20?%;overflow:hidden;position:relative;border-radius:8px;background-color:#fff}.list-box .item.on[data-v-941f25bc]{border-radius:0}.list-box .item .pictrue_log[data-v-941f25bc]{width:%?92?%;height:%?44?%;font-size:%?26?%;line-height:%?44?%}.list-box .item .pictrue[data-v-941f25bc],\r\n.list-box .item[data-v-941f25bc] uni-image,\r\n.list-box .item[data-v-941f25bc] .easy-loadimage,\r\n.list-box .item[data-v-941f25bc] uni-image{width:100%;display:block;position:relative}.list-box .item .pictrue .border-picture[data-v-941f25bc],\r\n.list-box .item[data-v-941f25bc] uni-image .border-picture,\r\n.list-box .item[data-v-941f25bc] .easy-loadimage .border-picture,\r\n.list-box .item[data-v-941f25bc] uni-image .border-picture{position:absolute;top:0;left:0;width:100%;height:100%;background:50%/cover no-repeat}.list-box .item .picture1[data-v-941f25bc],\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image,\r\n.list-box .item[data-v-941f25bc] .picture1 .easy-loadimage,\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image{height:%?346?%;position:relative}.list-box .item .picture1 .border-picture[data-v-941f25bc],\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image .border-picture,\r\n.list-box .item[data-v-941f25bc] .picture1 .easy-loadimage .border-picture,\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image .border-picture{position:absolute;top:0;left:0;width:100%;height:100%;background:50%/cover no-repeat}.list-box .item .picture1 .sell_out[data-v-941f25bc],\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image .sell_out,\r\n.list-box .item[data-v-941f25bc] .picture1 .easy-loadimage .sell_out,\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image .sell_out{display:flex;width:%?150?%;height:%?150?%;align-items:center;justify-content:center;border-radius:100%;background:rgba(0,0,0,.6);color:#fff;font-size:%?30?%;position:absolute;top:50%;left:50%;margin:%?-75?% 0 0 %?-75?%}.list-box .item .picture1 .sell_out[data-v-941f25bc]::before,\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image .sell_out::before,\r\n.list-box .item[data-v-941f25bc] .picture1 .easy-loadimage .sell_out::before,\r\n.list-box .item[data-v-941f25bc] .picture1 uni-image .sell_out::before{content:"";display:block;width:%?140?%;height:%?140?%;border-radius:100%;border:1px dashed #fff;position:absolute;top:%?5?%;left:%?5?%}.list-box .item .cont1[data-v-941f25bc],\r\n.list-box .item[data-v-941f25bc] .cont1 uni-image,\r\n.list-box .item[data-v-941f25bc] .cont1 .easy-loadimage,\r\n.list-box .item[data-v-941f25bc] .cont1 uni-image,\r\n.list-box .item .cont1 .border-picture[data-v-941f25bc]{border-radius:%?16?%}.list-box .item .text-info[data-v-941f25bc]{padding:%?10?% %?20?% %?15?%;display:flex;flex-direction:column}.list-box .item .text-info .add-btn[data-v-941f25bc]{align-self:flex-end;text-align:center;width:%?175.44?%;color:#fff;margin-top:auto;padding:%?7.02?% %?21.05?%;border-radius:100px;background:linear-gradient(180deg,#f98649,#f34e45)}.list-box .item .text-info .title[data-v-941f25bc]{font-size:%?31.58?%;margin-bottom:%?10.53?%;color:#222;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.list-box .item .text-info .old-price[data-v-941f25bc]{margin-top:%?4?%;font-size:%?26?%;color:#999;text-decoration:line-through}.list-box .item .text-info .old-price uni-text[data-v-941f25bc]{margin-right:2px;font-size:%?20?%}.list-box .item .text-info .price[data-v-941f25bc]{display:flex;margin-top:%?20?%;font-size:%?26?%;align-items:center}.list-box .item .text-info .price uni-text[data-v-941f25bc]{font-size:%?36?%;font-weight:550}.list-box .item .text-info .price .ot-price[data-v-941f25bc]{color:#aaa;font-size:%?26?%;text-decoration:line-through;margin-left:%?6?%;font-weight:400;margin-top:%?10?%}.list-box .item .pictrue[data-v-941f25bc]{position:relative}.list-box .item .border-picture[data-v-941f25bc]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:%?8?%;background:50%/cover no-repeat}.list-box .merchant_info[data-v-941f25bc]{display:flex;align-items:center;margin-top:%?20?%}.list-box .merchant_info .merchant_type[data-v-941f25bc]{color:#fff;line-height:%?30?%;padding:0 %?10?%;border-radius:%?2?%;font-size:%?22?%}.list-box .merchant_info .txt[data-v-941f25bc]{display:flex;align-items:center;justify-content:center;width:%?56?%;height:%?28?%;margin-left:%?15?%;border:1px solid #e93323;border-radius:%?4?%;font-size:%?20?%;font-weight:400}.list-box .merchant_info .txt.delivery[data-v-941f25bc]{margin-left:0;color:#ff9000;border-color:#ff9000}.list-box.on[data-v-941f25bc]{display:flex}.list-box.listA .item[data-v-941f25bc]{display:flex;width:100%}.list-box.listA .item .pictrue[data-v-941f25bc],\r\n.list-box.listA .item[data-v-941f25bc] uni-image,\r\n.list-box.listA .item[data-v-941f25bc] .easy-loadimage,\r\n.list-box.listA .item[data-v-941f25bc] uni-image{width:%?220?%;height:%?220?%}.list-box.listA .item .sell_out[data-v-941f25bc]{display:flex;width:%?110?%;height:%?110?%;align-items:center;justify-content:center;border-radius:100%;background:rgba(0,0,0,.6);color:#fff;font-size:%?24?%;position:absolute;top:50%;left:50%;margin:%?-55?% 0 0 %?-55?%}.list-box.listA .item .sell_out[data-v-941f25bc]::before{content:"";display:block;width:%?100?%;height:%?100?%;border-radius:100%;border:1px dashed #fff;position:absolute;top:%?5?%;left:%?5?%}.list-box.listA .item .text-info[data-v-941f25bc]{width:%?490?%}.list-box.listB[data-v-941f25bc]{justify-content:inherit}.list-box.listB .item[data-v-941f25bc]{width:31.3%;margin-right:3.05%}.list-box.listB .item .pictrue[data-v-941f25bc],\r\n.list-box.listB .item[data-v-941f25bc] uni-image,\r\n.list-box.listB .item[data-v-941f25bc] .easy-loadimage,\r\n.list-box.listB .item[data-v-941f25bc] uni-image{height:%?220?%}.list-box.listB .item .sell_out[data-v-941f25bc]{display:flex;width:%?110?%;height:%?110?%;align-items:center;justify-content:center;border-radius:100%;background:rgba(0,0,0,.6);color:#fff;font-size:%?24?%;position:absolute;top:50%;left:50%;margin:%?-55?% 0 0 %?-55?%}.list-box.listB .item .sell_out[data-v-941f25bc]::before{content:"";display:block;width:%?100?%;height:%?100?%;border-radius:100%;border:1px dashed #fff;position:absolute;top:%?5?%;left:%?5?%}.list-box.listB .item[data-v-941f25bc]:nth-child(3n){margin-right:0}.list-box.listB .item .price[data-v-941f25bc]{display:flex;align-items:center;justify-content:center;font-size:%?20?%}.list-box.listB .item .price uni-text[data-v-941f25bc]{font-size:%?28?%}.list-box.listB .item .text-info[data-v-941f25bc]{padding:%?10?% %?4?%}.list-box.listC .item[data-v-941f25bc]{width:100%}.list-box.listC .item .pictrue[data-v-941f25bc],\r\n.list-box.listC .item[data-v-941f25bc] uni-image,\r\n.list-box.listC .item[data-v-941f25bc] .easy-loadimage,\r\n.list-box.listC .item[data-v-941f25bc] uni-image{height:%?320?%}.list-box.listC .item .price[data-v-941f25bc]{margin-top:%?20?%;font-size:%?40?%;display:flex;align-items:center}.list-box.listC .item .price .old-price[data-v-941f25bc]{font-weight:400;font-size:%?22?%;margin-left:%?10?%}.list-box.listS .price[data-v-941f25bc]{font-size:%?40?%;display:flex;align-items:baseline}.list-box.listS .price .old-price[data-v-941f25bc]{font-weight:400;font-size:%?22?%;margin-left:%?10?%}',""]),t.exports=e},dcc6:function(t,e,o){"use strict";o.r(e);var n=o("f29d"),i=o("3c89");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("82b6");var r=o("f0c5"),s=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"941f25bc",null,!1,n["a"],void 0);e["default"]=s.exports},ddf5:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("a925")),a={name:"u-modal",mixins:[uni.$u.mpMixin,uni.$u.mixin,i.default],data:function(){return{loading:!1}},watch:{show:function(t){t&&this.loading&&(this.loading=!1)}},methods:{confirmHandler:function(){this.asyncClose&&(this.loading=!0),this.$emit("confirm")},cancelHandler:function(){this.$emit("cancel")},clickHandler:function(){this.closeOnClickOverlay&&this.$emit("close")}}};e.default=a},e9f9:function(t,e,o){"use strict";o("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("a9e3");var n={props:{color:{type:String,default:uni.$u.props.line.color},length:{type:[String,Number],default:uni.$u.props.line.length},direction:{type:String,default:uni.$u.props.line.direction},hairline:{type:Boolean,default:uni.$u.props.line.hairline},margin:{type:[String,Number],default:uni.$u.props.line.margin},dashed:{type:Boolean,default:uni.$u.props.line.dashed}}};e.default=n},f29d:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={easyLoadimage:o("0a72").default,uPopup:o("8de3").default,uButton:o("6721").default,uModal:o("26b2").default},i=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"select_warehouse"},[o("v-uni-view",{staticClass:"wrapper flex_a_c_j_sb"},[t._l(t.goodsData,(function(e){return[o("v-uni-view",{key:e.name+"_0",staticClass:"select_item",style:{"background-image":"url("+e.src+")"},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.navigato(e.type)}}},[o("v-uni-view",{staticClass:"title"},[t._v(t._s(e.name))]),o("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1)]}))],2),o("v-uni-view",{staticClass:"list-box listA",class:t.goods.length>0?"fadeIn on":""},t._l(t.goods,(function(e,n){return o("v-uni-view",{key:n,staticClass:"item"},[o("v-uni-view",{staticClass:"pictrue"},[o("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.image}})],1),o("v-uni-view",{staticClass:"text-info"},[o("v-uni-view",{staticClass:"title"},[t._v(t._s(e.store_name))]),o("v-uni-view",{staticClass:"price"},[t._v("¥"),o("v-uni-text",[t._v(t._s(e.price))])],1),o("v-uni-view",{staticClass:"add-btn",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.addGoods(e)}}},[t._v("加入仓库")])],1)],1)})),1),o("u-popup",{attrs:{show:t.editGoodsShow,round:18,mode:"center"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.editGoodsClose.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"edit_goods_box"},[o("v-uni-view",{staticClass:"edit_name flex_a_c edit_name_no"},[o("v-uni-text",[t._v("商品编号:")]),o("v-uni-input",{attrs:{type:"text",disabled:!0,placeholder:"请输入商品名称"},model:{value:t.editGoodsCode,callback:function(e){t.editGoodsCode=e},expression:"editGoodsCode"}})],1),o("v-uni-view",{staticClass:"edit_name flex_a_c edit_name_no"},[o("v-uni-text",[t._v("商品名称:")]),o("v-uni-input",{attrs:{type:"text",disabled:!0,placeholder:"请输入商品名称"},model:{value:t.editGoodsName,callback:function(e){t.editGoodsName=e},expression:"editGoodsName"}})],1),o("v-uni-view",{staticClass:"edit_name flex_a_c"},[t._v("编辑商品价格:"),o("v-uni-input",{attrs:{type:"text",placeholder:"请输入商品名称"},model:{value:t.editGoodsPrice,callback:function(e){t.editGoodsPrice=e},expression:"editGoodsPrice"}})],1),o("v-uni-view",{staticClass:"edit_store flex_a_c"},[t._v("编辑商品库存:"),o("v-uni-input",{attrs:{type:"text",placeholder:"请输入库存"},model:{value:t.editGoodsStore,callback:function(e){t.editGoodsStore=e},expression:"editGoodsStore"}})],1),o("v-uni-view",{staticClass:"edit_goods_btn"},[o("u-button",{staticClass:"edit_btn",attrs:{type:"error",text:"取消"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.editGoodsShow=!1}}}),o("u-button",{staticClass:"edit_btn",attrs:{type:"primary",text:"保存"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.editGoodsClose.apply(void 0,arguments)}}})],1)],1)],1),o("u-modal",{attrs:{show:t.addGoodsShow,content:"是否添加到你的仓库中?",closeOnClickOverlay:!0,showCancelButton:!0},on:{cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsclose()},close:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsclose()},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.addGoodsopen()}}}),o("u-popup",{attrs:{show:t.searchGoodsShow,round:18,mode:"center"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.searchGoodsClose.apply(void 0,arguments)}}},[o("v-uni-view",{staticClass:"search_goods_box"},[o("v-uni-input",{staticClass:"searchGoods",attrs:{type:"text",placeholder:"请输入商品名称"},model:{value:t.searchGoodsName,callback:function(e){t.searchGoodsName=e},expression:"searchGoodsName"}}),o("v-uni-view",{staticClass:"search_goods_btn"},[o("v-uni-view",{staticClass:"cancel edit_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchGoodsShow=!1}}},[t._v("取消")]),o("v-uni-view",{staticClass:"search edit_btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchGoodsClose.apply(void 0,arguments)}}},[t._v("搜索")])],1)],1)],1)],1)},a=[]},f938:function(t,e,o){var n=o("3717");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("a6f5e194",n,!0,{sourceMap:!1,shadowMode:!1})}}]); |