(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-buy"],{"0170":function(t,e,n){var a=n("6449");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("0bce3406",a,!0,{sourceMap:!1,shadowMode:!1})},"04a7":function(t,e,n){"use strict";n.r(e);var a=n("a187"),i=n("cf55");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("7e4e");var s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"3f114883",null,!1,a["a"],void 0);e["default"]=r.exports},"052f":function(t,e,n){"use strict";var a=n("5715"),i=n.n(a);i.a},"0ceb":function(t,e,n){var a=n("f672");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("033ee711",a,!0,{sourceMap:!1,shadowMode:!1})},"1c0e":function(t,e,n){"use strict";var a=n("0ceb"),i=n.n(a);i.a},"1c48":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("04a7").default,uUpload:n("1ec1").default,uToast:n("2ce2").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(t.getstatusLabel(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:"aspectFill"}})],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(),4==e.status?a("v-uni-view",{staticClass:"status-btn"},[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.tixingHandle(e)}}},[t._v("提醒发货")])],1)],1):t._e()],1)})),1):a("v-uni-view",{staticClass:"empty"},[a("v-uni-image",{attrs:{src:n("fe0f"),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=[]},2558:function(t,e,n){"use strict";n.r(e);var a=n("7f5b"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},2909:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,a.default)(t)||(0,i.default)(t)||(0,o.default)(t)||(0,s.default)()};var a=r(n("6005")),i=r(n("db90")),o=r(n("06c5")),s=r(n("3427"));function r(t){return t&&t.__esModule?t:{default:t}}},3427:function(t,e,n){"use strict";n("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.")},n("d9e2"),n("d401")},4753: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=[]},5715:function(t,e,n){var a=n("d574");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("a2be4054",a,!0,{sourceMap:!1,shadowMode:!1})},6005:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,a.default)(t)};var a=function(t){return t&&t.__esModule?t:{default:t}}(n("6b75"))},6449:function(t,e,n){var a=n("24fb");e=a(!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/* 文章场景相关 */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},"7e4e":function(t,e,n){"use strict";var a=n("0170"),i=n.n(a);i.a},"7f5b":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("cf97")),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},"9e73":function(t,e,n){"use strict";n.r(e);var a=n("4753"),i=n("2558");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("1c0e");var s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"2f0e5305",null,!1,a["a"],void 0);e["default"]=r.exports},a014:function(t,e,n){"use strict";n.r(e);var a=n("1c48"),i=n("b202");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("052f");var s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"272570d2",null,!1,a["a"],void 0);e["default"]=r.exports},a187: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={uPopup:n("77c2").default,uLine:n("9e73").default,uLoadingIcon:n("611f").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("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)}}},[n("v-uni-view",{staticClass:"u-modal",style:{width:t.$u.addUnit(t.width)}},[t.title?n("v-uni-text",{staticClass:"u-modal__title"},[t._v(t._s(t.title))]):t._e(),n("v-uni-view",{staticClass:"u-modal__content",style:{paddingTop:(t.title?12:25)+"px"}},[t._t("default",[n("v-uni-text",{staticClass:"u-modal__content__text"},[t._v(t._s(t.content))])])],2),t.$slots.confirmButton?n("v-uni-view",{staticClass:"u-modal__button-group--confirm-button"},[t._t("confirmButton")],2):[n("u-line"),n("v-uni-view",{staticClass:"u-modal__button-group",style:{flexDirection:t.buttonReverse?"row-reverse":"row"}},[t.showCancelButton?n("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)}}},[n("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?n("u-line",{attrs:{direction:"column"}}):t._e(),t.showConfirmButton?n("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?n("u-loading-icon"):n("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)},o=[]},b202:function(t,e,n){"use strict";n.r(e);var a=n("cd94"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},cd94: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("c7eb")),o=a(n("1da1")),s=a(n("2909")),r=a(n("5530"));n("4de4"),n("d3b7"),n("14d9"),n("99af");var l=n("7e40"),u=n("5af7"),d={data:function(){return{page:1,limit:10,status:null,tableData:[],total:0,content:"确定取消订单",show:!1,tiqushow:!1,orderObj:{},selectedIndex:-1,tiquSelected:{},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:{tixingHandle:function(){this.$refs.uToast.show({message:"提醒发货成功"})},getstatusLabel:function(t){var e=this.statusList.filter((function(e){return e.id==t}));return e.length>0?e[0].name:"-"},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