chunk-1f668e0a.b935f90b.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1f668e0a"],{4382:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",{staticClass:"ivu-mt box",attrs:{bordered:!1,"dis-hover":""}},[a("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[a("Row",[a("Col",{staticClass:"mr"},[a("FormItem",{attrs:{label:"时间选择:"}},[a("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,clearable:!0,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)],1),a("Col",{staticClass:"mr"},[a("FormItem",{attrs:{label:"交易类型:","label-for":"status1"}},[a("Select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择",clearable:"","element-id":"status1"},on:{"on-change":t.getList},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},t._l(t.financeTypeList,(function(e){return a("Option",{key:e.value,attrs:{value:e.value}},[t._v(t._s(e.label))])})),1)],1)],1),a("Col",{staticClass:"mr"},[a("FormItem",{attrs:{label:"订单搜索:","label-for":"status1"}},[a("Input",{staticClass:"input",staticStyle:{width:"200px"},attrs:{placeholder:"请输入交易单号/交易人"},model:{value:t.formValidate.keyword,callback:function(e){t.$set(t.formValidate,"keyword",e)},expression:"formValidate.keyword"}})],1)],1),a("Col",{staticClass:"mr"},[a("div",{staticClass:"search",on:{click:t.search}},[t._v("搜索")])]),a("Col",[a("div",{staticClass:"reset",on:{click:t.reset}},[t._v("重置")])])],1)],1)],1),a("Card",{staticClass:"ive-mt tablebox",attrs:{bordered:!1,"dis-hover":""}},[a("div",{staticClass:"btnbox"}),a("div",{staticClass:"table"},[a("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.orderList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"number",fn:function(e){var r=e.row;e.index;return[0==r.pm?a("span",{staticClass:"colorgreen"},[t._v("- "+t._s(r.number))]):t._e(),1==r.pm?a("span",{staticClass:"colorred"},[t._v("+ "+t._s(r.number))]):t._e()]}},{key:"user_nickname",fn:function(e){var r=e.row;e.index;return[a("span",[t._v(t._s(r.uid?r.user_nickname:"游客"))])]}},{key:"action",fn:function(e){var r=e.row;e.index;return[a("a",{on:{click:function(e){return t.remark(r)}}},[t._v("备注")])]}},{key:"mark",fn:function(e){var r=e.row;e.index;return[a("Tooltip",{attrs:{"max-width":"300",placement:"bottom"}},[a("span",{staticClass:"line2"},[t._v(t._s(r.mark))]),a("p",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(r.mark))])])]}}])})],1),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:{"update:current":function(e){return t.$set(t.formValidate,"page",e)},"on-change":t.getList}})],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:t.putRemark}},[t._v("提交")]),a("Button",{on:{click:t.cancel}},[t._v("取消")])],1)],1)],1)},n=[],i=a("2f62"),o=a("8745"),l=a("aad2");function s(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 c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(a,!0).forEach((function(e){u(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}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 m={name:"order",data:function(){return{modalmark:!1,remarks:{mark:""},financeTypeList:[],total:0,grid:{xl:7,lg:7,md:12,sm:24,xs:24},options:l["a"],loading:!1,columns:[{title:"交易单号",key:"order_id",minWidth:180},{title:"关联订单",key:"link_id",minWidth:180},{title:"交易时间",key:"trade_time",minWidth:150},{title:"交易金额",slot:"number",minWidth:80},{title:"交易人",slot:"user_nickname",ellipsis:!0,minWidth:80},{title:"交易类型",key:"type_name",minWidth:80},{title:"支付方式",key:"pay_type_name",minWidth:80},{title:"备注",slot:"mark",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:80,align:"center"}],orderList:[],formValidate:{type:"",keyword:"",data:"",page:1,limit:20},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"昨天",val:"yesterday"},{text:"今天",val:"today"},{text:"本周",val:"week"},{text:"本月",val:"month"},{text:"本季度",val:"quarter"},{text:"本年",val:"year"}]}}},computed:c({},Object(i["e"])("store/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),mounted:function(){this.getList(),this.supplierFinanceType()},methods:{getList:function(){var t=this;this.loading=!0,Object(o["h"])(this.formValidate).then((function(e){t.orderList=e.data.list,t.total=e.data.count,t.loading=!1}))},supplierFinanceType:function(){var t=this;Object(o["j"])().then((function(e){var a=e.data;t.financeTypeList=Object.keys(a).map((function(t){return{label:a[t],value:t}}))}))},search:function(){this.formValidate.page=1,this.getList()},reset:function(){this.formValidate={type:"",keyword:"",data:"",page:1,limit:15},this.timeVal=[],this.getList()},selectChange:function(t){this.formValidate.page=1,this.formValidate.data=t,this.timeVal=[]},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1},remark:function(t){this.remarkId=t.id,this.remarks.mark=t.mark,this.modalmark=!0},putRemark:function(){var t=this;this.modalmark=!1,Object(o["i"])(this.remarkId,this.remarks).then((function(e){t.$Message.success(e.msg),t.remarks={mark:""},t.modalmark=!1,t.getList()})).catch((function(e){t.$Message.error(e.msg),t.modalmark=!1}))},cancel:function(){this.remarks={mark:""},this.modalmark=!1}}},d=m,f=(a("c4c1"),a("2877")),p=Object(f["a"])(d,r,n,!1,null,"0c73a042",null);e["default"]=p.exports},"570f":function(t,e,a){},8745:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"d",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"e",(function(){return l})),a.d(e,"h",(function(){return s})),a.d(e,"i",(function(){return c})),a.d(e,"f",(function(){return u})),a.d(e,"g",(function(){return m})),a.d(e,"a",(function(){return d})),a.d(e,"j",(function(){return f}));var r=a("b6bd");function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get";return Object(r["a"])({url:"/finance/info",method:e,data:t})}function i(t){return Object(r["a"])({url:"/finance/supplier_extract/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/finance/supplier_extract/cash",method:"post",data:t})}function l(t,e){return Object(r["a"])({url:"/finance/supplier_extract/mark/".concat(t),method:"post",data:e})}function s(t){return Object(r["a"])({url:"finance/supplier_flowing_water/list",method:"get",params:t})}function c(t,e){return Object(r["a"])({url:"/finance/supplier_flowing_water/mark/".concat(t),method:"post",data:e})}function u(t){return Object(r["a"])({url:"/finance/supplier_flowing_water/fund_record",method:"get",params:t})}function m(t){return Object(r["a"])({url:"/finance/supplier_flowing_water/fund_record_info",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/export/financeRecord",method:"get",params:t})}function f(t){return Object(r["a"])({url:"/finance/supplier_flowing_water/type",method:"get",params:t})}},aad2:function(t,e,a){"use strict";var r=a("c1df"),n=a.n(r);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=n()(n()().quarter(n()().quarter()).startOf("quarter").valueOf()).format("YYYY-MM-DD"),e=n()(n()().quarter(n()().quarter()).endOf("quarter").valueOf()).format("YYYY-MM-DD");return[t,e]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},c4c1:function(t,e,a){"use strict";var r=a("570f"),n=a.n(r);n.a}}]);