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.d26d32...

1 line
17 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-sell"],{1917:function(t,e,s){t.exports=s.p+"static/img/empty.f3782c52.png"},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")},3861: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("afca"),o={data:function(){return{page:1,limit:10,status:null,tableData:[],total:0,tool:"",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(t){uni.navigateTo({url:"/pages/OrderDetails/OrderDetails?id="+t.id+"&tool=sell"})},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},"49d8":function(t,e,s){var i=s("6cbc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=s("4f06").default;a("023f91e9",i,!0,{sourceMap:!1,shadowMode:!1})},"4de5":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))