(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-buy"],{"07df":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("d2a2")),o={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=o},"0a55":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={uModal:n("c7b7").default,uUpload:n("c34a").default,uToast:n("e220").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"page"},[a("v-uni-view",{staticClass:"order-tab"},[a("v-uni-view",{staticClass:"tab",class:{action:-1==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(-1)}}},[a("v-uni-text",[t._v("我的仓库")]),a("v-uni-text",{staticClass:"line"})],1),a("v-uni-view",{staticClass:"tab",class:{action:0==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(0)}}},[a("v-uni-text",[t._v("付款确认")]),a("v-uni-text",{staticClass:"line"})],1),a("v-uni-view",{staticClass:"tab",class:{action:1==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(1)}}},[a("v-uni-text",[t._v("收款确认")]),a("v-uni-text",{staticClass:"line"})],1),a("v-uni-view",{staticClass:"tab",class:{action:3==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(3)}}},[a("v-uni-text",[t._v("投诉订单")]),a("v-uni-text",{staticClass:"line"})],1),a("v-uni-view",{staticClass:"tab",class:{action:4==t.status},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onOrderTab(4)}}},[a("v-uni-text",[t._v("发货状态")]),a("v-uni-text",{staticClass:"line"})],1)],1),a("v-uni-view",{staticClass:"order-list"},[t.tableData.length>0?a("v-uni-view",t._l(t.tableData,(function(e,n){return a("v-uni-view",{key:n,staticClass:"list",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.onOrderList(e)}}},[a("v-uni-view",{staticClass:"title-status"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",[t._v("订单号:"+t._s(e.order_sn))])],1),a("v-uni-view",{staticClass:"status"},[a("v-uni-text",[t._v(t._s(0==e.status?"待支付":1==e.status?"待确认":2==e.status?"待委托":3==e.status?"已投诉":4==e.status?"待发货":5==e.status?"待收货":-1==e.status?"已取消":""))])],1)],1),a("v-uni-view",{staticClass:"goods-list"},[a("v-uni-view",{staticClass:"cangku"},[t._v("所属仓库:"+t._s(e.warehouse?e.warehouse.title:"-"))]),a("v-uni-view",{staticClass:"goods"},[a("v-uni-view",{staticClass:"thumb"},[a("v-uni-image",{attrs:{src:e.order_goods[0]?e.order_goods[0].goods_image:"",mode:""}})],1),a("v-uni-view",{staticClass:"item"},[a("v-uni-view",{staticClass:"goods-name"},[a("v-uni-text",{staticClass:"two-omit"},[t._v(t._s(e.order_goods[0]?e.order_goods[0].goods_name:""))])],1),a("v-uni-view",{staticClass:"goods-price"},[a("v-uni-text",{staticClass:"min"},[t._v("¥"+t._s(e.order_goods[0]?e.order_goods[0].goods_price:""))])],1)],1)],1)],1),0==e.status?a("v-uni-view",{staticClass:"status-btn"},[a("v-uni-view",{staticClass:"btn",staticStyle:{margin:"0"},nativeOn:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.cancelOrderHandle(e)}}},[t._v("取消订单")]),a("v-uni-view",{staticClass:"btnGroup"},[a("v-uni-view",{staticClass:"btn",nativeOn:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.uploadPay(e,n)}}},[t._v("上传凭证")]),a("v-uni-view",{staticClass:"btn",nativeOn:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.goPay(e)}}},[t._v("去支付")]),a("v-uni-view",{staticClass:"btn",nativeOn:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.confirmPay(e)}}},[t._v("支付确认")])],1)],1):t._e(),2==e.status?a("v-uni-view",{staticClass:"status-btn"},[a("v-uni-view",{staticClass:"btn",staticStyle:{margin:"0"},nativeOn:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.changeStatusHandle(e)}}},[t._v("提取货物")]),a("v-uni-view",{staticClass:"btnGroup"},[a("v-uni-view",{staticClass:"btn",nativeOn:{click:function(n){n.stopPropagation(),arguments[0]=n=t.$handleEvent(n),t.weituoHandle(e)}}},[t._v("委托上架")])],1)],1):t._e()],1)})),1):a("v-uni-view",{staticClass:"empty"},[a("v-uni-image",{attrs:{src:n("ae930"),mode:"widthFix"}}),a("v-uni-view",{staticClass:"emptyText"},[t._v("暂无数据")])],1)],1),a("u-modal",{attrs:{show:t.show,content:t.content,title:"提示",showCancelButton:!0},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirmHandle.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.cancelHandle.apply(void 0,arguments)}}}),a("u-modal",{attrs:{show:t.tiqushow,content:"您确定要提取货物吗?提取后货物将无法上架!",title:"提示",showCancelButton:!0},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.tiquconfirmHandle.apply(void 0,arguments)},cancel:function(e){arguments[0]=e=t.$handleEvent(e),t.tiqucancelHandle.apply(void 0,arguments)}}}),a("u-upload",{ref:"uploadPay",staticStyle:{display:"none"},attrs:{previewFullImage:!1,width:"176",height:"176",name:"1"},on:{afterRead:function(e){arguments[0]=e=t.$handleEvent(e),t.afterRead.apply(void 0,arguments)}}}),a("u-toast",{ref:"uToast"})],1)},o=[]},"0d98":function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var a={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=a},"124d":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"u-line",style:[this.lineStyle]})},i=[]},"1a8b":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("14d9"),n("99af"),n("d3b7");var i=a(n("c7eb")),o=a(n("1da1")),s=a(n("2909")),r=a(n("5530")),l=n("a5ba"),u=n("2c89"),d={data:function(){return{page:1,limit:10,status:null,tableData:[],total:0,content:"确定取消订单",show:!1,tiqushow:!1,orderObj:{},selectedIndex:-1}},onLoad:function(t){this.status=t.type,this.getList()},methods:{goPay:function(t){console.log(t),uni.navigateTo({url:"/pages/warehouse/pay?num="+t.order_amount+"&id="+t.id})},getList:function(t){var e=this,n={page:this.page,limit:this.limit,status:-1==this.status?"":this.status};(0,u.getBuyerOrderList)((0,r.default)((0,r.default)({},n),{},{custom:{auth:!0}})).then((function(n){var a;t?(a=e.tableData).push.apply(a,(0,s.default)(n.data.data)):(e.tableData=n.data.data,e.total=n.data.total)}))},uploadPay:function(t,e){this.$refs.uploadPay.chooseFile(),this.selectedIndex=e},afterRead:function(t){var e=this;return(0,o.default)((0,i.default)().mark((function n(){var a,o,s;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:console.log(t),a=[].concat(t.file),o=0;case 3:if(!(o