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 line
24 KiB
1 line
24 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-warehouse-buy"],{"06ca":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=[]},"0843":function(t,e,n){"use strict";n.r(e);var a=n("0c67"),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},"0c67":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("5403")),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},1674: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("d3b7"),n("159b"),n("a9e3"),n("4de4"),n("14d9"),n("99af");var u=n("5d56"),l=n("4838"),d={data:function(){return{page:1,limit:10,status:[-2],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:6,name:"已完成"}],tabList:[{name:"全部",status:[-2]},{name:"待付款",status:[0]},{name:"已付款",status:[1]},{name:"待转售",status:[2]},{name:"提货中/已提货",status:[4,5]},{name:"已结束",status:[6]},{name:"已取消",status:[-1]}]}},onLoad:function(t){var e=t.type.split(",");e.length>0?e.forEach((function(t,n){e[n]=Number(t)})):e=[-2],console.log(e,"arr"),this.status=e,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:-2==this.status?"":this.status.join(",")};(0,l.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,u.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,l.orderPay)(n).then((function(t){e.getList()}))}else this.$refs.uToast.
|