chunk-3ec22144.db5a055f.js 18 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3ec22144"],{"0b65":function(t,e,a){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,a=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,a))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},8794:function(t,e,a){},"885a":function(t,e,a){"use strict";var r=a("8794");a.n(r).a},"951f":function(t,e,a){"use strict";a.r(e);var r=a("2f62"),n=a("a6b9"),i=a("a584"),s=a("0b65");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function u(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var l={name:"bill",components:{cardsData:i.a},data:function(){return{id:0,modal:!1,modalmark:!1,formItem:{type:"1",message:""},remarkId:0,remarks:{mark:""},total:0,cardLists:[],extractStatistics:[],supplierList:[],loading:!1,columns:[{title:"ID",key:"id",width:60},{title:"供应商",slot:"supplier",minWidth:120},{title:"申请金额",key:"extract_price",minWidth:80},{title:"申请时间",key:"add_time",minWidth:150},{title:"收款方式",slot:"extract_type",minWidth:80},{title:"收款信息",slot:"type",minWidth:200},{title:"审核状态",slot:"status",minWidth:150},{title:"转账状态",slot:"pay_status",minWidth:180},{title:"管理员",key:"admin_name",minWidth:80},{title:"备注",key:"supplier_mark",minWidth:150},{title:"操作",slot:"action",fixed:"right",minWidth:120,align:"center"}],orderList:[],formValidate:{pay_status:"",extract_type:"",data:"",status:"",supplier_id:"",page:1,limit:15},timeVal:[],options:s.a,fromLists:{custom:!0,status:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"已通过",val:"1"},{text:"未通过",val:"-1"}]}}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(a,!0).forEach((function(e){u(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getSupplierList(),this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(n.C)(this.formValidate).then((function(e){t.orderList=e.data.list.list,t.total=e.data.list.count,t.extractStatistics=e.data.extract_statistics,t.cardLists=[{col:6,count:t.extractStatistics.unPayPrice,name:"待转账金额",className:"md-basket"},{col:6,count:t.extractStatistics.price,name:"待审核金额",className:"md-cash"},{col:6,count:t.extractStatistics.price_not,name:"可提现金额",className:"ios-cash"},{col:6,count:t.extractStatistics.paidPrice,name:"累计提现金额",className:"ios-cash"}],t.loading=!1}))},getSupplierList:function(){var t=this;Object(n.o)().then((function(e){t.supplierList=e.data}))},searchs:function(){this.formValidate.page=1,this.getList()},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[],this.getList()},payStatus:function(t){this.formValidate.page=1,this.formValidate.status=t,this.getList()},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1,this.getList()},pageChange:function(t){this.formValidate.page=t,this.getList()},remark:function(t){this.remarkId=t.id,this.remarks.mark=t.supplier_mark,this.modalmark=!0},examine:function(t){this.modal=!0,this.id=t.id},paying:function(t){var e=this;this.$modalForm(Object(n.L)(t.id)).then((function(){return e.getList()}))},ok:function(){var t=this;2!=this.formItem.type||""!=this.formItem.message?Object(n.E)(this.id,this.formItem).then((function(e){t.$Message.success(e.msg),t.formItem={type:"1",message:""},t.modal=!1,t.getList()})).catch((function(e){t.$Message.error(e.msg),t.modal=!1})):this.$Message.error("请填写拒绝原因")},cancel:function(){this.formItem={type:"1",message:""},this.remarks.mark="",this.modal=!1,this.modalmark=!1},putRemark:function(){var t=this;Object(n.D)(this.remarkId,this.remarks).then((function(e){t.$Message.success(e.msg),t.modalmark=!1,t.getList()})).catch((function(e){t.$Message.error(e.msg)}))}}},c=(a("885a"),a("2877")),d=Object(c.a)(l,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[a("div",{staticClass:"new_card_pd"},[a("Form",{ref:"formValidate",attrs:{inline:"",model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"选择供应商:"}},[a("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:"",filterable:""},model:{value:t.formValidate.supplier_id,callback:function(e){t.$set(t.formValidate,"supplier_id",e)},expression:"formValidate.supplier_id"}},t._l(t.supplierList,(function(e){return a("Option",{key:e.id,attrs:{value:e.id}},[t._v(t._s(e.supplier_name))])})),1)],1),a("FormItem",{attrs:{label:"创建时间:"}},[a("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),a("FormItem",{attrs:{label:"审核状态:"}},[a("Select",{staticClass:"input-add",model:{value:t.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},t._l(t.fromLists.status,(function(e,r){return a("Option",{key:r,attrs:{value:e.val}},[t._v(t._s(e.text))])})),1)],1),a("FormItem",{attrs:{label:"收款方式:","label-for":"status1"}},[a("Select",{staticClass:"input-add",attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},model:{value:t.formValidate.extract_type,callback:function(e){t.$set(t.formValidate,"extract_type",e)},expression:"formValidate.extract_type"}},[a("Option",{attrs:{value:"bank"}},[t._v("银行卡")]),a("Option",{attrs:{value:"weixin"}},[t._v("微信")]),a("Option",{attrs:{value:"alipay"}},[t._v("支付宝")])],1)],1),a("FormItem",{attrs:{label:"转账状态:","label-for":"status1"}},[a("Select",{staticClass:"input-add mr14",attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},model:{value:t.formValidate.pay_status,callback:function(e){t.$set(t.formValidate,"pay_status",e)},expression:"formValidate.pay_status"}},[a("Option",{attrs:{value:"0"}},[t._v("未转账")]),a("Option",{attrs:{value:"1"}},[t._v("已转账")])],1),a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.searchs()}}},[t._v("查询")])],1),a("FormItem")],1)],1)]),t.cardLists.length>=0?a("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),a("Card",{staticClass:"ive-mt",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"table"},[a("Table",{ref:"table",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"action",fn:function(e){var r=e.row;return[0==r.status?a("a",{on:{click:function(e){return t.examine(r)}}},[t._v("审核")]):t._e(),0==r.status?a("Divider",{attrs:{type:"vertical"}}):t._e(),1==r.status&&0==r.pay_status?a("a",{on:{click:function(e){return t.paying(r)}}},[t._v("转账")]):t._e(),1==r.status&&0==r.pay_status?a("Divider",{attrs:{type:"vertical"}}):t._e(),a("a",{on:{click:function(e){return t.remark(r)}}},[t._v("备注")])]}},{key:"supplier",fn:function(e){var r=e.row;return[a("div",[t._v(t._s(r.supplier.supplier_name))]),a("viewer")]}},{key:"extract_type",fn:function(e){var r=e.row;return["bank"==r.extract_type?a("span",[t._v("银行卡")]):t._e(),"weixin"==r.extract_type?a("span",[t._v("微信")]):t._e(),"alipay"==r.extract_type?a("span",[t._v("支付宝")]):t._e()]}},{key:"type",fn:function(e){var r=e.row;return["bank"==r.extract_type?a("div",[a("div",[t._v("姓名:"+t._s(r.bank_name))]),a("div",[t._v("开户地址:"+t._s(r.bank_address))]),a("div",[t._v("银行卡:"+t._s(r.bank_code))])]):t._e(),"weixin"==r.extract_type?a("div",[a("div",[t._v("微信号:"+t._s(r.wechat))]),a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.qrcode_url,expression:"row.qrcode_url"}]})])])],1):t._e(),"alipay"==r.extract_type?a("div",[a("div",[t._v("支付宝账号:"+t._s(r.alipay_account))]),a("viewer",[a("div",{staticClass:"tabBox_img"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:r.qrcode_url,expression:"row.qrcode_url"}]})])])],1):t._e()]}},{key:"status",fn:function(e){var r=e.row;return[0==r.status?a("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("未审核")]):t._e(),1==r.status?a("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已通过")]):t._e(),-1==r.status?a("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未通过")]):t._e()]}},{key:"pay_status",fn:function(e){var r=e.row;return[1==r.pay_status?a("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已转账")]):t._e(),0==r.pay_status?a("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未转账")]):t._e()]}}])}),a("div",{staticClass:"acea-row row-right page"},[a("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1)]),a("Modal",{staticClass:"order_box",attrs:{scrollable:"",title:"请修改内容",closable:!1,"mask-closable":!1},model:{value:t.modalmark,callback:function(e){t.modalmark=e},expression:"modalmark"}},[a("Form",{ref:"remarks",attrs:{model:t.remarks,"label-width":80},nativeOn:{submit:function(t){t.preventDefault()}}},[a("FormItem",{attrs:{label:"备注:"}},[a("Input",{staticStyle:{width:"100%"},attrs:{maxlength:"200","show-word-limit":"",type:"textarea",placeholder:"请填写备注~"},model:{value:t.remarks.mark,callback:function(e){t.$set(t.remarks,"mark",e)},expression:"remarks.mark"}})],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:function(e){return t.putRemark()}}},[t._v("提交")]),a("Button",{on:{click:function(e){return t.cancel()}}},[t._v("取消")])],1)],1),a("Modal",{attrs:{title:"审核","mask-closable":!1},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[a("Form",{attrs:{model:t.formItem,"label-width":80}},[a("FormItem",{attrs:{label:"审核状态:"}},[a("RadioGroup",{model:{value:t.formItem.type,callback:function(e){t.$set(t.formItem,"type",e)},expression:"formItem.type"}},[a("Radio",{attrs:{label:"1"}},[t._v("通过")]),a("Radio",{attrs:{label:"2"}},[t._v("拒绝")])],1)],1),2==t.formItem.type?a("FormItem",{attrs:{label:"拒绝原因:"}},[a("Input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:5},placeholder:"请输入拒绝原因"},model:{value:t.formItem.message,callback:function(e){t.$set(t.formItem,"message",e)},expression:"formItem.message"}})],1):t._e()],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{type:"primary"},on:{click:t.ok}},[t._v("提交")]),a("Button",{on:{click:t.cancel}},[t._v("取消")])],1)],1)],1)}),[],!1,null,"389ca811",null);e.default=d.exports},a584:function(t,e,a){"use strict";var r;function n(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var i=(n(r={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),n(r,"methods",{}),n(r,"created",(function(){})),r),s=(a("bcf5"),a("2877")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(e,r){return a("Col",{key:r,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:e.col}}},[a("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[e.type?a("span",{staticClass:"iconfont",class:e.className}):a("Icon",{attrs:{type:e.className}})],1)]),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"79aa0883",null);e.a=o.exports},a6b9:function(t,e,a){"use strict";a.d(e,"J",(function(){return n})),a.d(e,"n",(function(){return i})),a.d(e,"a",(function(){return s})),a.d(e,"y",(function(){return o})),a.d(e,"z",(function(){return u})),a.d(e,"o",(function(){return l})),a.d(e,"h",(function(){return c})),a.d(e,"b",(function(){return d})),a.d(e,"v",(function(){return m})),a.d(e,"c",(function(){return p})),a.d(e,"B",(function(){return f})),a.d(e,"j",(function(){return h})),a.d(e,"l",(function(){return g})),a.d(e,"w",(function(){return v})),a.d(e,"r",(function(){return b})),a.d(e,"s",(function(){return _})),a.d(e,"u",(function(){return w})),a.d(e,"x",(function(){return y})),a.d(e,"K",(function(){return k})),a.d(e,"t",(function(){return x})),a.d(e,"k",(function(){return O})),a.d(e,"m",(function(){return D})),a.d(e,"q",(function(){return j})),a.d(e,"A",(function(){return C})),a.d(e,"g",(function(){return V})),a.d(e,"f",(function(){return I})),a.d(e,"p",(function(){return L})),a.d(e,"i",(function(){return F})),a.d(e,"F",(function(){return T})),a.d(e,"G",(function(){return M})),a.d(e,"I",(function(){return P})),a.d(e,"d",(function(){return S})),a.d(e,"H",(function(){return $})),a.d(e,"e",(function(){return W})),a.d(e,"C",(function(){return z})),a.d(e,"E",(function(){return Y})),a.d(e,"L",(function(){return R})),a.d(e,"D",(function(){return B}));var r=a("b6bd");function n(t){return Object(r.a)({url:"supplier/supplier",method:"get",params:t})}function i(t){return Object(r.a)({url:"/supplier/supplier/".concat(t),method:"get"})}function s(t){return Object(r.a)({url:"supplier/supplier",method:"post",data:t})}function o(t,e){return Object(r.a)({url:"supplier/supplier/".concat(t),method:"put",data:e})}function u(t,e){return Object(r.a)({url:"/supplier/supplier/set_status/".concat(t,"/").concat(e),method:"put"})}function l(t){return Object(r.a)({url:"/supplier/list",method:"get",params:t})}function c(t){return Object(r.a)({url:"/supplier/order/list",method:"get",params:t})}function d(t){return Object(r.a)({url:"/supplier/order/deliver_remind/".concat(t.supplier_id,"/").concat(t.id),method:"put"})}function m(t){return Object(r.a)({url:"/supplier/order/info/".concat(t),method:"get"})}function p(t){return Object(r.a)({url:"/supplier/order/distribution_info",method:"get",params:{ids:t}})}function f(t,e){return Object(r.a)({url:"/supplier/order/split_order/"+t,method:"get",params:e})}function h(t){return Object(r.a)({url:"/supplier/order/status/".concat(t.id),method:"get",params:t.datas})}function g(t){return Object(r.a)({url:"/supplier/order/refund/".concat(t),method:"get"})}function v(t){return Object(r.a)({url:"/supplier/refund/list",method:"get",params:t})}function b(t){return Object(r.a)({url:"/supplier/home/header",method:"get",params:t})}function _(t){return Object(r.a)({url:"/supplier/home/order",method:"get",params:t})}function w(t){return Object(r.a)({url:"/supplier/home/order_channel",method:"get",params:t})}function y(t){return Object(r.a)({url:"/supplier/home/order_type",method:"get",params:t})}function k(t){return Object(r.a)({url:"/supplier/supplier/login/".concat(t),method:"get"})}function x(t){return Object(r.a)({url:"/supplier/home/supplier",method:"get",params:t})}function O(t){return Object(r.a)({url:"/supplier/refund/detail/".concat(t),method:"get"})}function D(t){return Object(r.a)({url:"/supplier/refund/refund/".concat(t),method:"get"})}function j(t){return Object(r.a)({url:"/supplier/order/no_refund/".concat(t),method:"get"})}function C(t){return Object(r.a)({url:"/supplier/order/refund_integral/".concat(t),method:"get"})}function V(t){return Object(r.a)({url:"/supplier/order/distribution/".concat(t),method:"get"})}function I(t){return Object(r.a)({url:"/supplier/apply/list",method:"get",params:t})}function L(t){return Object(r.a)({url:"/supplier/apply/verify/form/".concat(t),method:"get"})}function F(t){return Object(r.a)({url:"/supplier/apply/mark/form/".concat(t),method:"get"})}function T(t){return Object(r.a)({url:"/supplier/flowing_water/fund_record_info",method:"get",params:t})}function M(t){return Object(r.a)({url:"/supplier/flowing_water/list",method:"get",params:t})}function P(t,e){return Object(r.a)({url:"/supplier/flowing_water/mark/".concat(t),method:"put",params:e})}function S(t){return Object(r.a)({url:"/export/supplierWaterExport",method:"get",params:t})}function $(t){return Object(r.a)({url:"/supplier/flowing_water/fund_record",method:"get",params:t})}function W(t){return Object(r.a)({url:"/export/supplierWaterRecord",method:"get",params:t})}function z(t){return Object(r.a)({url:"/supplier/extract/list",method:"get",params:t})}function Y(t,e){return Object(r.a)({url:"/supplier/extract/verify/".concat(t),method:"post",data:e})}function R(t){return Object(r.a)({url:"/supplier/extract/transfer/".concat(t),method:"get"})}function B(t,e){return Object(r.a)({url:"/supplier/extract/mark/".concat(t),method:"post",data:e})}},bcf5:function(t,e,a){"use strict";var r=a("f052");a.n(r).a},f052:function(t,e,a){}}]);