You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
hezhiying/unpackage/dist/build/h5/static/js/pages-warehouse-sell.ee8462...

1 lines
17 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-sell"],{"1b1a":function(t,e,s){"use strict";s.r(e);var i=s("2712"),a=s.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},2712:function(t,e,s){"use strict";s("7a82");var i=s("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(s("2909")),r=i(s("5530"));s("4de4"),s("d3b7"),s("14d9");var n=s("5af7"),o={data:function(){return{page:1,limit:10,status:null,tableData:[],total:0,statusList:[{id:0,name:"待支付"},{id:1,name:"待确认"},{id:2,name:"待委托"},{id:3,name:"已投诉"},{id:4,name:"待发货"},{id:5,name:"待收货"},{id:-1,name:"已取消"},{id:7,name:"已上架"}]}},onLoad:function(t){this.status=t.type,this.getList()},methods:{getstatusLabel:function(t){var e=this.statusList.filter((function(e){return e.id==t}));return e.length>0?e[0].name:"-"},getList:function(t){var e=this,s={page:this.page,limit:this.limit,status:-1==this.status?"":this.status};(0,n.getSellerOrderList)((0,r.default)((0,r.default)({},s),{},{custom:{auth:!0}})).then((function(s){var i;t?(i=e.tableData).push.apply(i,(0,a.default)(s.data.data)):(e.tableData=s.data.data,e.total=s.data.total)}))},onOrderTab:function(t){this.status=4==t?"4,5":t,this.getList()},onOrderList:function(){uni.navigateTo({url:"/pages/OrderDetails/OrderDetails?id="+item.id})},confirmPay:function(t,e){var s=this,i={status:e,id:t.id};(0,n.orderPay)(i).then((function(t){s.getList()}))}},onReachBottom:function(){this.tableData.length<this.total&&(this.page++,this.getList("over"))}};e.default=o},2909:function(t,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(t)||(0,a.default)(t)||(0,r.default)(t)||(0,n.default)()};var i=o(s("6005")),a=o(s("db90")),r=o(s("06c5")),n=o(s("3427"));function o(t){return t&&t.__esModule?t:{default:t}}},3427:function(t,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},s("d9e2"),s("d401")},"5af7":function(t,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.userRegister=e.updateUserInfo=e.smsSend=e.smsCheck=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.getgoodsDetail=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var i=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/goodsDetail",{params:t},e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/orderPay",t,e)};e.bindInvitor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/user/bindInvitor",t,e)};e.payUpGoods=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return i.post("/api/order/payUpGoods",t,e)}},6005:function(t,e,s){"use strict";s("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,i.default)(t)};var i=function(t){return t&&t.__esModule?t:{default:t}}(s("6b75"))},7235:function(t,e,s){var i=s("24fb");e=i(!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/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-4979e16a]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f6f6f6}\r\n/* 订单tab */.order-tab[data-v-4979e16a]{position:fixed;left:0;top:%?88?%;z-index:10;display:flex;align-items:center;width:100%;height:%?90?%;background:#236030}.order-tab .tab[data-v-4979e16a]{position:relative;display:flex;align-items:center;justify-content:center;width:20%;height:80%}.order-tab .tab uni-text[data-v-4979e16a]{font-size:%?26?%;color:#4d9a5e}.order-tab .action uni-text[data-v-4979e16a]{color:#fff;font-weight:700}.order-tab .action .line[data-v-4979e16a]{position:absolute;left:50%;bottom:0;width:%?60?%;height:%?6?%;background:#fff;border-radius:3px;-webkit-transform:translate(-50%);transform:translate(-50%)}\r\n/* 订单列表 */.order-list[data-v-4979e16a]{margin:0 %?24?%;margin-top:%?110?%}.order-list .list[data-v-4979e16a]{padding:0 4%;min-height:%?390?%;background-color:#fff;border-radius:%?20?%;margin-bottom:%?20?%}.order-list .list .title-status[data-v-4979e16a]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?80?%;border-bottom:1px solid #eaeaee}.order-list .list .title-status .title[data-v-4979e16a]{display:flex;align-items:center}.order-list .list .title-status .title uni-text[data-v-4979e16a]{font-size:%?26?%;color:grey}.order-list .list .title-status .status[data-v-4979e16a]{display:flex;align-items:center}.order-list .list .title-status .status uni-text[data-v-4979e16a]{font-size:%?26?%;color:#236030}.order-list .list .goods-list[data-v-4979e16a]{width:100%}.order-list .list .goods-list .cangku[data-v-4979e16a]{text-align:left;color:grey;padding:%?10?% 0 0 0}.order-list .list .goods-list .goods[data-v-4979e16a]{display:flex;align-items:center;width:100%;height:%?180?%}.order-list .list .goods-list .goods .thumb[data-v-4979e16a]{display:flex;align-items:center;width:30%;height:100%}.order-list .list .goods-list .goods .thumb uni-image[data-v-4979e16a]{width:%?160?%;height:%?160?%;border-radius:%?10?%}.order-list .list .goods-list .goods .item[data-v-4979e16a]{display:flex;flex-direction:column;justify-content:space-around;margin-left:%?20?%;width:100%;height:100%}.order-list .list .goods-list .goods .item .goods-name uni-text[data-v-4979e16a]{font-size:%?26?%;color:#555}.order-list .list .goods-list .goods .item .goods-price[data-v-4979e16a]{display:flex;align-items:center}.order-list .list .goods-list .goods .item .goods-price uni-text[data-v-4979e16a]{color:#236030}.order-list .list .goods-list .goods .item .goods-price .min[data-v-4979e16a]{font-size:%?26?%}.order-list .list .goods-list .goods .item .goods-price .max[data-v-4979e16a]{font-size:%?34?%}.status-btn[data-v-4979e16a]{display:flex;align-items:center;justify-content:space-between;width:100%}.status-btn .btnGroup[data-v-4979e16a]{display:flex;align-items:center;justify-content:flex-end;width:100%}.status-btn .btn[data-v-4979e16a]{background-color:#236030;padding:%?10?% %?10?%;border-radius:%?10?%;font-size:%?24?%;color:#fff;text-align:center;margin-left:%?10?%}.empty[data-v-4979e16a]{text-align:center;margin-top:30%}.empty uni-image[data-v-4979e16a]{width:40%;height:auto}.empty .emptyText[data-v-4979e16a]{text-align:center;font-size:%?26?%;color:grey}',""]),t.exports=e},"809e":function(t,e,s){"use strict";var i=s("9ad4"),a=s.n(i);a.a},"9ad4":function(t,e,s){var i=s("7235");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=s("4f06").default;a("6255d5ca",i,!0,{sourceMap:!1,shadowMode:!1})},dfe0:function(t,e,s){"use strict";s.r(e);var i=s("f99d"),a=s("1b1a");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);s("809e");var n=s("f0c5"),o=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,"4979e16a",null,!1,i["a"],void 0);e["default"]=o.exports},f99d:function(t,e,s){"use strict";s.d(e,"b",(function(){return i})),s.d(e,"c",(function(){return a})),s.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page"},[i("v-uni-view",{staticClass:"order-tab"},[i("v-uni-view",{staticClass:"tab",class:{action:-1==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(-1)}}},[i("v-uni-text",[t._v("我的仓库")]),i("v-uni-text",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"tab",class:{action:0==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(0)}}},[i("v-uni-text",[t._v("付款确认")]),i("v-uni-text",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"tab",class:{action:1==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(1)}}},[i("v-uni-text",[t._v("收款确认")]),i("v-uni-text",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"tab",class:{action:3==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(3)}}},[i("v-uni-text",[t._v("投诉订单")]),i("v-uni-text",{staticClass:"line"})],1),i("v-uni-view",{staticClass:"tab",class:{action:4==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(4)}}},[i("v-uni-text",[t._v("发货状态")]),i("v-uni-text",{staticClass:"line"})],1)],1),i("v-uni-view",{staticClass:"order-list"},[t.tableData.length>0?i("v-uni-view",t._l(t.tableData,(function(e,s){return i("v-uni-view",{key:s,staticClass:"list",on:{click:function(s){arguments[0]=s=t.$handleEvent(s),t.onOrderList(e)}}},[i("v-uni-view",{staticClass:"title-status"},[i("v-uni-view",{staticClass:"title"},[i("v-uni-text",[t._v("订单号:"+t._s(e.order_sn))])],1),i("v-uni-view",{staticClass:"status"},[i("v-uni-text",[t._v(t._s(t.getstatusLabel(e.status)))])],1)],1),i("v-uni-view",{staticClass:"goods-list"},[i("v-uni-view",{staticClass:"cangku"},[t._v("所属仓库:"+t._s(e.warehouse.length>0?e.warehouse[0].title:"-"))]),i("v-uni-view",{staticClass:"goods"},[i("v-uni-view",{staticClass:"thumb"},[i("v-uni-image",{attrs:{src:e.order_goods[0]?e.order_goods[0].goods_image:"",mode:"aspectFill"}})],1),i("v-uni-view",{staticClass:"item"},[i("v-uni-view",{staticClass:"goods-name"},[i("v-uni-text",{staticClass:"two-omit"},[t._v(t._s(e.order_goods[0]?e.order_goods[0].goods_name:""))])],1),i("v-uni-view",{staticClass:"goods-price"},[i("v-uni-text",{staticClass:"min"},[t._v("¥"+t._s(e.order_goods[0]?e.order_goods[0].goods_price:""))])],1)],1)],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:1==e.status,expression:"item.status==1"}],staticClass:"status-btn"},[i("v-uni-view",{staticClass:"btnGroup"},[i("v-uni-view",{staticClass:"btn",nativeOn:{click:function(s){s.stopPropagation(),arguments[0]=s=t.$handleEvent(s),t.confirmPay(e,3)}}},[t._v("投诉")]),i("v-uni-view",{staticClass:"btn",nativeOn:{click:function(s){s.stopPropagation(),arguments[0]=s=t.$handleEvent(s),t.confirmPay(e,2)}}},[t._v("确认收款")])],1)],1),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:3==e.status,expression:"item.status==3"}],staticClass:"status-btn"},[i("v-uni-view",{staticClass:"btnGroup"},[i("v-uni-view",{staticClass:"btn",nativeOn:{click:function(s){s.stopPropagation(),arguments[0]=s=t.$handleEvent(s),t.confirmPay(e,2)}}},[t._v("取消投诉")])],1)],1)],1)})),1):i("v-uni-view",{staticClass:"empty"},[i("v-uni-image",{attrs:{src:s("fe0f"),mode:"widthFix"}}),i("v-uni-view",{staticClass:"emptyText"},[t._v("暂无数据")])],1)],1)],1)},a=[]},fe0f:function(t,e,s){t.exports=s.p+"static/img/empty.f3782c52.png"}}]);