pages-settle-debt.34c75412.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-settle-debt"],{"05e0":function(e,t,i){"use strict";var n;i.r(t);var a,o,r=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"app-content"},[i("v-uni-view",{staticClass:"order-page"},[i("v-uni-view",{staticClass:"top-view"},[i("v-uni-view",{staticClass:"top-row"},[i("v-uni-view",{staticClass:"info-item"},[i("v-uni-image",{staticClass:"logo",attrs:{src:e.hdInfo.smallAvatar}}),i("v-uni-text",{staticClass:"name"},[e._v(e._s(e.hdInfo.name))])],1),i("DateSelect",{staticClass:"bar",attrs:{top:"0",defaultShowName:"时间"},on:{selectDateFn:function(t){arguments[0]=t=e.$handleEvent(t),e.selectDateFn.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"shop-list",attrs:{"scroll-y":!0}},[e.$util.isEmpty(e.detailsList)?[i("AppWrapperEmpty",{attrs:{title:"暂无数据","is-empty":e.$util.isEmpty(e.detailsList)}})]:e._l(e.detailsList,(function(t,n){return i("debtItem",{key:n,attrs:{isEdit:!0,isCheck:t.checked,info:t},nativeOn:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.checkItemEvent(t)}}})}))],2),i("v-uni-view",{class:"ios"==e.device?"ios-bar-view":"android-bar-view"},[[i("v-uni-view",{staticClass:"info-view"},[i("v-uni-view",{staticClass:"details-select",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.checkAllFn.apply(void 0,arguments)}}},[e.isAllCheck?i("v-uni-button",{staticClass:"admin-button-com blue middle"},[e._v("全不选")]):i("v-uni-button",{staticClass:"admin-button-com blue middle"},[e._v("全选")])],1),e._v("已选"),i("v-uni-text",{staticClass:"price"},[e._v(e._s(e.selectList.length))]),e._v("笔,"),i("v-uni-text",{staticClass:"unit"},[e._v("¥")]),i("v-uni-text",{staticClass:"price"},[e._v(e._s(parseFloat(e.selectTotalAmount)))])],1)],i("v-uni-view",{staticClass:"btn-view"},[i("v-uni-button",{staticClass:"admin-button-com blue",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.batchConfirm.apply(void 0,arguments)}}},[e._v("付款结清")])],1)],2)],1)],1)},s=[],c=(i("589a"),i("e978"),i("dad1"),i("051d"),i("436b"),i("57af"),i("225b"),i("b1d8"),i("a794")),l=(i("34b3"),function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"details-item"},[e.isEdit?i("v-uni-view",{staticClass:"details-select"},[e.isCheck?i("v-uni-text",{staticClass:"iconfont iconxuanzhong"}):i("v-uni-text",{staticClass:"iconfont iconweixuanzhong"})],1):e._e(),i("v-uni-view",{staticClass:"details-main"},[i("v-uni-view",{staticClass:"item-header"},[i("v-uni-text",{staticClass:"name"},[e._v("订单 "+e._s(e.info.orderSn))])],1),i("v-uni-view",{staticClass:"item-row"},[i("v-uni-view",{staticClass:"mark"},[e._v(e._s(e.info.addTime.substr(5,11)))])],1),i("v-uni-view",{staticClass:"item-row"},[i("v-uni-view",{class:[Number(e.info.debtPrice)>Number(e.info.remainDebtPrice)?"price-del":"price"]},[e._v("¥"+e._s(parseFloat(e.info.debtPrice)))]),i("v-uni-view",{staticClass:"price",staticStyle:{border:"1upx solid #67a0f7","border-radius":"10upx","font-weight":"normal",color:"#3385FF","font-size":"32upx",width:"180upx",height:"80upx","justify-content":"center"},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.goToDetai(e.info)}}},[e._v("查看明细")])],1),Number(e.info.debtPrice)>Number(e.info.remainDebtPrice)?[i("v-uni-view",{staticClass:"item-row"},[i("v-uni-view",{staticClass:"price",staticStyle:{color:"red"}},[e._v("已清 ¥"+e._s(e.info.hasPayDebt)+",剩余欠款 ¥"+e._s(parseFloat(e.info.remainDebtPrice)))])],1)]:e._e()],2)],1)}),d=[],f={props:{info:{required:!0},isCheck:{type:Boolean,default:!1},isEdit:{type:Boolean,default:!1}},data:function(){return{}},methods:{goToDetai:function(e){this.$util.pageTo({url:"/pagesPurchase/purDetails",query:{id:e.id}})}}},b=f,u=(i("bf48"),i("8aaf")),p=Object(u["a"])(b,l,d,!1,null,"0f6bbb1e",null,!1,a,o),w=p.exports,v=i("7620"),h=i("63d4"),g=i("3a10"),m=i("c078"),k=i("f9d6");function y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?y(Object(i),!0).forEach((function(t){Object(c["a"])(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function C(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=j(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){s=!0,o=e},f:function(){try{r||null==i.return||i.return()}finally{if(s)throw o}}}}function j(e,t){if(e){if("string"==typeof e)return z(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?z(e,t):void 0}}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}var _,T={components:{debtItem:w,AppWrapperEmpty:m["a"],DateSelect:k["a"]},data:function(){return{checkShow:!0,detailsList:[],num:"",hdInfo:{},totalAmount:"",isAllCheck:!1,searchTime:"",startTime:"",endTime:"",hdId:0,device:"android"}},onPullDownRefresh:function(){this.initData().then((function(e){uni.stopPullDownRefresh()}))},computed:{selectList:function(){var e=[];if(this.detailsList){var t,i=C(this.detailsList);try{for(i.s();!(t=i.n()).done;){var n=t.value;n.checked&&e.push(n)}}catch(a){i.e(a)}finally{i.f()}}return e},selectTotalAmount:function(){var e=0;if(this.detailsList){var t,i=C(this.detailsList);try{for(i.s();!(t=i.n()).done;){var n=t.value;n.checked&&(e+=Number(n.remainDebtPrice))}}catch(a){i.e(a)}finally{i.f()}}return e.toFixed(2)}},watch:{selectList:function(){this.selectList.length===this.detailsList.length?this.isAllCheck=!0:this.isAllCheck=!1}},onLoad:function(){this.device=uni.getSystemInfoSync().platform},methods:{selectDateFn:function(e){this.searchTime=e.searchTime,this.startTime=e.startTime,this.endTime=e.endTime,this.initData().then((function(e){uni.stopPullDownRefresh()}))},checkAllFn:function(){this.isAllCheck=!this.isAllCheck,this.isAllCheck?this.detailsList.map((function(e){e.checked=!0})):this.detailsList.map((function(e){e.checked=!1}))},init:function(){this.initData()},initData:function(){var e=this,t=0;return this.option.id&&(t=this.option.id),this.hdId=t,this.getMyHdInfo(t),Object(g["f"])({id:t,searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime}).then((function(t){e.detailsList=t.data.list.map((function(e){return x(x({},e),{},{checked:!1})}))}))},getMyHdInfo:function(e){var t=this;return Object(h["a"])({id:e}).then((function(e){t.hdInfo=e.data}))},checkItemEvent:function(e){for(var t=0;t<this.detailsList.length;t++){var i=this.detailsList[t].id;if(i==e.id){this.$set(this.detailsList,t,x(x({},this.detailsList[t]),{},{checked:!this.detailsList[t].checked}));break}}},batchConfirm:function(){var e=[],t=this,i=this.option.account?this.option.account:0;return this.$util.isEmpty(this.selectList)?(this.$msg("请选择订单"),!1):this.selectList.length>100?(uni.showToast({title:"订单太多,点右上角选月份再结",duration:2e3,icon:"none"}),!1):void t.$util.confirmModal({content:"确认订单选好了?"},(function(){t.selectList.forEach((function(t){e.push(t.id)})),uni.showLoading({title:"加载中",mask:!0}),Object(v["b"])({ids:e.join(","),hdId:t.hdId}).then((function(e){uni.hideLoading(),1==e.code&&(e.data.hasUnComplete&&1==e.data.hasUnComplete?t.$util.confirmModal({content:"还有待完成的账单",okText:"查看"},(function(){t.pageTo({url:"/admin/clear/list",type:2})})):t.pageTo({url:"/pages/settle/pay?id="+e.data.id+"&account="+i,type:2}))}))}))},back:function(){uni.navigateBack({})}}},L=T,O=(i("7f12"),Object(u["a"])(L,r,s,!1,null,"3088e46a",null,!1,n,_));t["default"]=O.exports},"2c6b":function(e,t,i){var n=i("5acd");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.order-page[data-v-3088e46a]{height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background-color:#f9fbfc}.order-page .top-view[data-v-3088e46a]{padding:%?30?%;position:fixed;width:100%;background-color:#fff}.order-page .top-view .top-row[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.order-page .top-view .top-row[data-v-3088e46a]:not(:last-child){margin-bottom:%?10?%}.order-page .top-view .top-row .header-item[data-v-3088e46a]{font-size:%?24?%;font-weight:400;color:#999}.order-page .top-view .top-row .info-item[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.order-page .top-view .top-row .info-item .logo[data-v-3088e46a]{margin-right:%?10?%;width:%?35?%;height:%?35?%;border-radius:50%}.order-page .top-view .top-row .info-item .name[data-v-3088e46a]{font-size:%?28?%;font-weight:600;color:#333}.order-page .top-view .top-row .price-item[data-v-3088e46a]{font-size:%?34?%;font-weight:600;color:#333}.order-page .shop-list[data-v-3088e46a]{margin-top:%?98?%;padding:%?20?% 0;-webkit-box-flex:1;-webkit-flex:1;flex:1;padding-bottom:%?100?%}.order-page .ios-bar-view[data-v-3088e46a]{bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%;width:100%;height:%?100?%;background:#fff;box-shadow:%?0?% %?-1?% %?6?% %?0?% rgba(4,0,0,.06)}.order-page .ios-bar-view .info-view[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#333;font-size:%?24?%}.order-page .ios-bar-view .info-view .iconfont[data-v-3088e46a]{font-size:%?32?%;color:#ddd}.order-page .ios-bar-view .info-view .price[data-v-3088e46a]{margin:0 %?3?%;color:#ff3841;font-size:%?30?%}.order-page .ios-bar-view .info-view .unit[data-v-3088e46a]{margin:0 %?3?%;color:#ff3841;font-size:%?30?%}.order-page .ios-bar-view .btn-view[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex}.order-page .ios-bar-view .btn-view .admin-button-com[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;margin:0 %?6?%;width:%?200?%;height:%?70?%;font-size:%?30?%}.order-page .android-bar-view[data-v-3088e46a]{position:fixed;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%;width:100%;height:%?100?%;background:#fff;box-shadow:%?0?% %?-1?% %?6?% %?0?% rgba(4,0,0,.06)}.order-page .android-bar-view .info-view[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#333;font-size:%?24?%}.order-page .android-bar-view .info-view .iconfont[data-v-3088e46a]{font-size:%?32?%;color:#ddd}.order-page .android-bar-view .info-view .price[data-v-3088e46a]{margin:0 %?3?%;color:#ff3841;font-size:%?30?%}.order-page .android-bar-view .info-view .unit[data-v-3088e46a]{margin:0 %?3?%;color:#ff3841;font-size:%?30?%}.order-page .android-bar-view .btn-view[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex}.order-page .android-bar-view .btn-view .admin-button-com[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;margin:0 %?6?%;width:%?200?%;height:%?94?%;font-size:%?30?%}.order-page .bar-view[data-v-3088e46a]{position:fixed;bottom:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:0 %?30?%;width:100%;height:%?100?%;background:#fff;box-shadow:%?0?% %?-1?% %?6?% %?0?% rgba(4,0,0,.06)}.order-page .bar-view .info-view[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;color:#333;font-size:%?24?%}.order-page .bar-view .info-view .iconfont[data-v-3088e46a]{font-size:%?32?%;color:#ddd}.order-page .bar-view .info-view .price[data-v-3088e46a]{margin:0 %?3?%;color:#ff3841;font-size:%?30?%}.order-page .bar-view .info-view .unit[data-v-3088e46a]{margin:0 %?3?%;color:#ff3841;font-size:%?30?%}.order-page .bar-view .btn-view[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex}.order-page .bar-view .btn-view .admin-button-com[data-v-3088e46a]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?200?%;height:%?80?%;font-size:%?32?%}.order-page .bar-view .btn-view .cancel[data-v-3088e46a]{border:%?1?% solid #999;color:#666}.details-select[data-v-3088e46a]{margin-right:%?20?%;display:inline-block}.details-select .iconweixuanzhong[data-v-3088e46a],\n.details-select .iconxuanzhong[data-v-3088e46a]{font-size:%?40?%!important}.details-select .iconxuanzhong[data-v-3088e46a]{color:#ff2842!important}',""]),e.exports=t},"33cd":function(e,t,i){var n=i("5acd");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/***\n全局scss 变量和方法 存放处\n */\n/* 引入minxin */\n/* 颜色变量 */\n/*图片地址*/\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.details-item[data-v-0f6bbb1e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?30?% %?20?%;margin-bottom:%?20?%;background-color:#fff;border-radius:%?10?%}.details-item .details-select[data-v-0f6bbb1e]{margin-right:%?30?%}.details-item .details-select .iconfont[data-v-0f6bbb1e]{font-size:%?40?%;color:#ddd;color:#67a0f7}.details-item .details-select .iconxuanzhong[data-v-0f6bbb1e]{color:#ff2842}.details-item .details-main[data-v-0f6bbb1e]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.details-item .item-header[data-v-0f6bbb1e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.details-item .item-header .logo[data-v-0f6bbb1e]{margin-right:%?20?%;width:%?50?%;height:%?50?%;border-radius:50%}.details-item .item-header .name[data-v-0f6bbb1e]{font-size:%?28?%;font-family:PingFang SC;font-weight:600;color:#333}.details-item .item-row[data-v-0f6bbb1e]{margin-top:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.details-item .item-row .mark[data-v-0f6bbb1e]{font-size:%?28?%;font-weight:400;color:#666}.details-item .item-row .price[data-v-0f6bbb1e]{z-index:auto;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%;font-weight:600;color:#333}.details-item .item-row .price .iconfont[data-v-0f6bbb1e]{font-size:%?28?%;color:#999}.details-item .item-row .price-del[data-v-0f6bbb1e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%;font-weight:600;color:#333;text-decoration:line-through}.details-item .item-row .price-del .iconfont[data-v-0f6bbb1e]{font-size:%?28?%;color:#999}',""]),e.exports=t},"3a10":function(e,t,i){"use strict";i.d(t,"e",(function(){return a})),i.d(t,"b",(function(){return o})),i.d(t,"h",(function(){return r})),i.d(t,"g",(function(){return s})),i.d(t,"c",(function(){return c})),i.d(t,"d",(function(){return l})),i.d(t,"i",(function(){return d})),i.d(t,"a",(function(){return f})),i.d(t,"j",(function(){return b})),i.d(t,"f",(function(){return u}));var n=i("14bf"),a=function(e){return n["a"].get("/order/freight",e)},o=function(e){return n["a"].post("/order/buy-item",e)},r=function(e){return n["a"].get("/order/list",e)},s=function(e){return n["a"].get("/order/detail",e)},c=function(e){return n["a"].post("/order/comment",e)},l=function(e){return n["a"].post("/order/create-order",e)},d=function(e){return n["a"].get("/order/order-relate",e)},f=function(e){return n["a"].post("/order/balance-pay",e)},b=function(e){return n["a"].post("/order/wx-pay",e)},u=function(e){return n["a"].get("/order/debt-list",e)}},"63d4":function(e,t,i){"use strict";i.d(t,"c",(function(){return a})),i.d(t,"b",(function(){return o})),i.d(t,"a",(function(){return r}));var n=i("14bf"),a=function(e){return n["a"].get("/hd/list",e)},o=function(e){return n["a"].get("/hd/info",e)},r=function(e){return n["a"].get("/hd/detail",e)}},7620:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return s}));var n=i("14bf"),a=function(e){return n["a"].post("/settle/create-order",e)},o=function(e){return n["a"].get("/settle/get-list",e)},r=function(e){return n["a"].get("/settle/get-detail",e)},s=function(e){return n["a"].post("/settle/cancel-settle",e)}},"7f12":function(e,t,i){"use strict";var n=i("fda8"),a=i.n(n);a.a},"9ad6":function(e,t,i){var n=i("33cd");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("47af").default;a("3d42e014",n,!0,{sourceMap:!1,shadowMode:!1})},bf48:function(e,t,i){"use strict";var n=i("9ad6"),a=i.n(n);a.a},fda8:function(e,t,i){var n=i("2c6b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("47af").default;a("7b217e47",n,!0,{sourceMap:!1,shadowMode:!1})}}]);