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.
1 lines
25 KiB
1 lines
25 KiB
(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},"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},"1c70":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}}},3367: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/* 文章场景相关 */.page[data-v-5b946e41]{position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f6f6f6}\r\n/* 订单tab */.order-tab[data-v-5b946e41]{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-5b946e41]{position:relative;display:flex;align-items:center;justify-content:center;width:20%;height:80%}.order-tab .tab uni-text[data-v-5b946e41]{font-size:%?26?%;color:#4d9a5e}.order-tab .action uni-text[data-v-5b946e41]{color:#fff;font-weight:700}.order-tab .action .line[data-v-5b946e41]{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-5b946e41]{margin:0 %?24?%;margin-top:%?110?%}.order-list .list[data-v-5b946e41]{padding:0 4%;min-height:%?390?%;background-color:#fff;border-radius:%?20?%;margin-bottom:%?20?%}.order-list .list .title-status[data-v-5b946e41]{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-5b946e41]{display:flex;align-items:center}.order-list .list .title-status .title uni-text[data-v-5b946e41]{font-size:%?26?%;color:grey}.order-list .list .title-status .status[data-v-5b946e41]{display:flex;align-items:center}.order-list .list .title-status .status uni-text[data-v-5b946e41]{font-size:%?26?%;color:#236030}.order-list .list .goods-list[data-v-5b946e41]{width:100%}.order-list .list .goods-list .cangku[data-v-5b946e41]{text-align:left;color:grey;padding:%?10?% 0 0 0}.order-list .list .goods-list .goods[data-v-5b946e41]{display:flex;align-items:center;width:100%;height:%?180?%}.order-list .list .goods-list .goods .thumb[data-v-5b946e41]{display:flex;align-items:center;width:30%;height:100%}.order-list .list .goods-list .goods .thumb uni-image[data-v-5b946e41]{width:%?160?%;height:%?160?%;border-radius:%?10?%}.order-list .list .goods-list .goods .item[data-v-5b946e41]{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-5b946e41]{font-size:%?26?%;color:#555}.order-list .list .goods-list .goods .item .goods-price[data-v-5b946e41]{display:flex;align-items:center}.order-list .list .goods-list .goods .item .goods-price uni-text[data-v-5b946e41]{color:#236030}.order-list .list .goods-list .goods .item .goods-price .min[data-v-5b946e41]{font-size:%?26?%}.order-list .list .goods-list .goods .item .goods-price .max[data-v-5b946e41]{font-size:%?34?%}.order-list .list .status-btn[data-v-5b946e41]{display:flex;align-items:center;justify-content:space-between;width:100%}.order-list .list .status-btn .btnGroup[data-v-5b946e41]{display:flex;align-items:center;justify-content:space-between}.order-list .list .status-btn .btn[data-v-5b946e41]{background-color:#236030;padding:%?10?% %?10?%;border-radius:%?10?%;font-size:%?24?%;color:#fff;text-align:center;margin-left:%?10?%}.empty[data-v-5b946e41]{text-align:center;margin-top:30%}.empty uni-image[data-v-5b946e41]{width:40%;height:auto}.empty .emptyText[data-v-5b946e41]{text-align:center;font-size:%?26?%;color:grey}',""]),t.exports=e},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")},"3bca":function(t,e,n){var a=n("3367");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("4f06").default;i("ca0f30de",a,!0,{sourceMap:!1,shadowMode:!1})},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=[]},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("1c70"),i=n("b202");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("dcd6");var s=n("f0c5"),r=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,"5b946e41",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:{},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:{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<a.length)){n.next=12;break}return n.next=6,e.uploadFilePromise(a[o].url);case 6:s=n.sent,e.$refs.uToast.show({message:"上传成功"}),1==t.name&&(e.tableData[e.selectedIndex].pay_voucher=JSON.parse(s).data.url);case 9:o++,n.next=3;break;case 12:case"end":return n.stop()}}),n)})))()},uploadFilePromise:function(t){var e=this;return new Promise((function(n,a){uni.uploadFile({url:e.baseUrl+"api/common/upload",filePath:t,name:"file",header:{token:(0,l.getToken)()},formData:{},success:function(t){1==JSON.parse(t.data).code?setTimeout((function(){n(t.data)}),1e3):(uni.$u.toast(JSON.parse(t.data).msg),n(t.data))},fail:function(t){console.log(t,"rrr")}})}))},confirmPay:function(t){var e=this;if(t.pay_voucher){var n={pay_voucher:t.pay_voucher,id:t.id,status:1};(0,u.orderPay)(n).then((function(t){e.getList()}))}else this.$refs.uToast.show({message:"请上传支付凭证"})},changeStatusHandle:function(t){this.tiqushow=!0,this.tiquSelected=t},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=buy"})},cancelOrderHandle:function(t){this.orderObj=t,this.show=!0},confirmHandle:function(){var t=this;(0,u.cancelOrder)({id:this.orderObj.id,status:-1}).then((function(e){1==e.code&&(t.$refs.uToast.show({message:"取消订单成功"}),t.show=!1),t.getList()}))},tiquconfirmHandle:function(){var t=this;console.log(this.tiquSelected);var e={pay_voucher:this.tiquSelected.pay_voucher,id:this.tiquSelected.id,status:4};(0,u.orderPay)(e).then((function(e){t.getList(),t.tiqushow=!1}))},cancelHandle:function(){this.show=!1},tiqucancelHandle:function(){this.tiqushow=!1},weituoHandle:function(t){uni.navigateTo({url:"/pages/warehouse/weituo?id="+t.id})}},onReachBottom:function(){this.tableData.length<this.total&&(this.page++,this.getList("over"))}};e.default=d},cf55:function(t,e,n){"use strict";n.r(e);var a=n("f252"),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},cf97:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("a9e3");var a={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=a},dcd6:function(t,e,n){"use strict";var a=n("3bca"),i=n.n(a);i.a},edef: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},f252: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("edef")),o={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=o},f672: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-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},fe0f:function(t,e,n){t.exports=n.p+"static/img/empty.f3782c52.png"}}]); |