1 line
46 KiB
JavaScript
1 line
46 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["m"],{"129f":function(e,t,a){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}},"1aed":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cbf area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择客户",action:"service/customerRecord",scene:"customer"},model:{value:e.searchFrom.customer,callback:function(t){e.$set(e.searchFrom,"customer",t)},expression:"searchFrom.customer"}})],1),t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择供应商",action:"service/supplierRecord",scene:"supplier"},model:{value:e.searchFrom.supplier,callback:function(t){e.$set(e.searchFrom,"supplier",t)},expression:"searchFrom.supplier"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择制单人",action:"service/userRecord",scene:"user"},model:{value:e.searchFrom.user,callback:function(t){e.$set(e.searchFrom,"user",t)},expression:"searchFrom.user"}})],1),t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择资金账户",action:"service/accountRecord",scene:"account"},model:{value:e.searchFrom.account,callback:function(t){e.$set(e.searchFrom,"account",t)},expression:"searchFrom.account"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record(1)}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,"tree-props":{children:"node"},"row-key":"key",height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{align:"center",width:"44px"}}),t("el-table-column",{attrs:{prop:"name",label:"账户名称",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"extension.type",label:"单据类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"sourceData.frameData.name",label:"所属组织",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"current.name",label:"往来单位",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"sourceData.time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"sourceData.number",label:"单据编号",align:"center",width:"180px"}}),t("el-table-column",{attrs:{prop:"in",label:"收入",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"out",label:"支出",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"balance",label:"账户余额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"sourceData.userData.name",label:"制单人",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"sourceData.data",label:"备注",align:"center",width:"200px"}})],1),t("el-pagination",{staticClass:"tablePagination",attrs:{"current-page":e.page.current,total:e.page.total,"page-size":e.page.size,"page-sizes":e.page.sizes,"pager-count":e.page.count,layout:"prev,pager,next,jumper,sizes,total"},on:{"update:currentPage":function(t){return e.$set(e.page,"current",t)},"update:current-page":function(t){return e.$set(e.page,"current",t)},"update:pageSize":function(t){return e.$set(e.page,"size",t)},"update:page-size":function(t){return e.$set(e.page,"size",t)},"size-change":function(t){return e.record(1)},"current-change":function(t){return e.record(0)}}})],1)},s=[],o=(a("b0c0"),a("a447")),n={name:"Cbf",components:{NodList:o["a"]},data:function(){return{searchFrom:{customer:null,supplier:null,startTime:"",endTime:"",user:null,account:null},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5}}},created:function(){this.init(),this.record(1)},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(e){var t=this;0==e||(this.page.current=e);var a=Object.assign({page:this.page.current,limit:this.page.size},this.searchFrom);this.$axios.post("crt/cbf",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/cbfExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=n,i=(a("6a5d"),a("2877")),c=Object(i["a"])(l,r,s,!1,null,"7159cea8",null);t["default"]=c.exports},"1d8f":function(e,t,a){"use strict";a("7002")},2827:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cps area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择供应商",action:"service/supplierRecord",scene:"supplier"},model:{value:e.searchFrom.supplier,callback:function(t){e.$set(e.searchFrom,"supplier",t)},expression:"searchFrom.supplier"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"数据类型"},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[t("el-option",{attrs:{label:"全部供应商",value:0}}),t("el-option",{attrs:{label:"欠款供应商",value:1}})],1)],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record(1)}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,"tree-props":{children:"node"},"row-key":"key",height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{align:"center",width:"44px"}}),t("el-table-column",{attrs:{prop:"name",label:"供应商",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"bill",label:"单据类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"frameData.name",label:"所属组织",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"number",label:"单据编号",align:"center",width:"180px"}}),t("el-table-column",{attrs:{prop:"cw",label:"增加应付款",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"pia",label:"增加预付款",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"balance",label:"应付款余额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"data",label:"备注",align:"center",width:"200px"}})],1),t("el-pagination",{staticClass:"tablePagination",attrs:{"current-page":e.page.current,total:e.page.total,"page-size":e.page.size,"page-sizes":e.page.sizes,"pager-count":e.page.count,layout:"prev,pager,next,jumper,sizes,total"},on:{"update:currentPage":function(t){return e.$set(e.page,"current",t)},"update:current-page":function(t){return e.$set(e.page,"current",t)},"update:pageSize":function(t){return e.$set(e.page,"size",t)},"update:page-size":function(t){return e.$set(e.page,"size",t)},"size-change":function(t){return e.record(1)},"current-change":function(t){return e.record(0)}}})],1)},s=[],o=(a("b0c0"),a("a447")),n={name:"Cps",components:{NodList:o["a"]},data:function(){return{searchFrom:{supplier:null,type:0,startTime:"",endTime:""},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5}}},created:function(){this.init(),this.record(1)},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(e){var t=this;0==e||(this.page.current=e);var a=Object.assign({page:this.page.current,limit:this.page.size},this.searchFrom);this.$axios.post("crt/cps",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/cpsExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=n,i=(a("ddb7"),a("2877")),c=Object(i["a"])(l,r,s,!1,null,"8ce63a6e",null);t["default"]=c.exports},"305c":function(e,t,a){},"30e0":function(e,t,a){},3168:function(e,t,a){},"512f":function(e,t,a){},"5f2d":function(e,t,a){"use strict";a("30e0")},"6a5d":function(e,t,a){"use strict";a("305c")},7002:function(e,t,a){},"71a2":function(e,t,a){},"7bda":function(module,__webpack_exports__,__webpack_require__){"use strict";var C_dnmp_www_erp_community_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b85c"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("a15b"),core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("d81d"),core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_3__);__webpack_exports__["a"]={name:"PageStatus",props:{config:{default:function(){return[{text:"HELLO NODCLOUD",type:"text"}]}},model:{default:""}},data:function(){return{text:[]}},created:function(){this.handle()},watch:{model:function(e){this.handle()}},methods:{handle:function handle(){var _this=this,arr=[],_iterator=Object(C_dnmp_www_erp_community_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__["a"])(this.config),_step;try{var _loop=function _loop(){var configVo=_step.value,text="";if("text"==configVo.type)text=configVo.text;else if("count"==configVo.type)text=configVo.text+":"+_this.model.length;else if("sum"==configVo.type){var number=_this.$calc.chain(0);_this.model.map((function(modelVo){number.add(eval("modelVo."+configVo.key))})),text=configVo.text+":"+number.done()}else if("avg"==configVo.type){var _number=_this.$calc.chain(0);_this.model.map((function(modelVo){_number.add(eval("modelVo."+configVo.key))})),_number=_this.$calc.chain(_number.done()).divide(_this.model.length).round(4).done(),text=configVo.text+":"+_number}configVo.hasOwnProperty("fun")&&(text=configVo.fun(text)),arr.push(text)};for(_iterator.s();!(_step=_iterator.n()).done;)_loop()}catch(err){_iterator.e(err)}finally{_iterator.f()}this.text=arr.join(" | ")}}}},8391:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cit area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record()}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,height:"calc(100% - 60px)",border:""}},[t("el-table-column",{attrs:{type:"index",align:"center",width:"50px"}}),t("el-table-column",{attrs:{prop:"name",label:"项目",width:"200px"}}),t("el-table-column",{attrs:{prop:"money",label:"金额",align:"center",width:"120px"}})],1)],1)},s=[],o=(a("b0c0"),{name:"Cit",data:function(){return{searchFrom:{startTime:"",endTime:""},tableData:[]}},created:function(){this.init(),this.record(1)},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(){var e=this;this.$axios.post("crt/cit",this.searchFrom).then((function(t){"success"==t.state?(e.tableData=t.info,e.page.total=t.count,e.$refs["searchPopover"].showPopper=!1):"error"==t.state?e.$message({type:"warning",message:t.info}):e.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/citExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}}),n=o,l=(a("a7ea"),a("2877")),i=Object(l["a"])(n,r,s,!1,null,"de533efa",null);t["default"]=i.exports},"841c":function(e,t,a){"use strict";var r=a("c65b"),s=a("d784"),o=a("825a"),n=a("7234"),l=a("1d80"),i=a("129f"),c=a("577e"),p=a("dc4a"),u=a("14c3");s("search",(function(e,t,a){return[function(t){var a=l(this),s=n(t)?void 0:p(t,e);return s?r(s,t,a):new RegExp(t)[e](c(a))},function(e){var r=o(this),s=c(e),n=a(t,r,s);if(n.done)return n.value;var l=r.lastIndex;i(l,0)||(r.lastIndex=0);var p=u(r,s);return i(r.lastIndex,l)||(r.lastIndex=l),null===p?-1:p.index}]}))},"842e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"crs area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择客户",action:"service/customerRecord",scene:"customer"},model:{value:e.searchFrom.customer,callback:function(t){e.$set(e.searchFrom,"customer",t)},expression:"searchFrom.customer"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"数据类型"},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[t("el-option",{attrs:{label:"全部客户",value:0}}),t("el-option",{attrs:{label:"欠款客户",value:1}})],1)],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record(1)}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,"tree-props":{children:"node"},"row-key":"key",height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{align:"center",width:"44px"}}),t("el-table-column",{attrs:{prop:"name",label:"客户",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"bill",label:"单据类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"frameData.name",label:"所属组织",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"number",label:"单据编号",align:"center",width:"180px"}}),t("el-table-column",{attrs:{prop:"cw",label:"增加应收款",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"pia",label:"增加预收款",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"balance",label:"应收款余额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"data",label:"备注",align:"center",width:"200px"}})],1),t("el-pagination",{staticClass:"tablePagination",attrs:{"current-page":e.page.current,total:e.page.total,"page-size":e.page.size,"page-sizes":e.page.sizes,"pager-count":e.page.count,layout:"prev,pager,next,jumper,sizes,total"},on:{"update:currentPage":function(t){return e.$set(e.page,"current",t)},"update:current-page":function(t){return e.$set(e.page,"current",t)},"update:pageSize":function(t){return e.$set(e.page,"size",t)},"update:page-size":function(t){return e.$set(e.page,"size",t)},"size-change":function(t){return e.record(1)},"current-change":function(t){return e.record(0)}}})],1)},s=[],o=(a("b0c0"),a("a447")),n={name:"Cps",components:{NodList:o["a"]},data:function(){return{searchFrom:{customer:null,type:0,startTime:"",endTime:""},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5}}},created:function(){this.init(),this.record(1)},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(e){var t=this;0==e||(this.page.current=e);var a=Object.assign({page:this.page.current,limit:this.page.size},this.searchFrom);this.$axios.post("crt/crs",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/crsExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=n,i=(a("8e6b"),a("2877")),c=Object(i["a"])(l,r,s,!1,null,"0f10bd8d",null);t["default"]=c.exports},"8e6b":function(e,t,a){"use strict";a("3168")},"947e":function(e,t,a){"use strict";var r=function(){var e=this,t=e._self._c;return t("span",{staticClass:"pageStatus"},[e._v(" "+e._s(e.text)+" ")])},s=[],o=a("7bda"),n=o["a"],l=(a("1d8f"),a("2877")),i=Object(l["a"])(n,r,s,!1,null,"7c9bcf1f",null);t["a"]=i.exports},"9e7c":function(e,t,a){"use strict";a.r(t);a("b0c0");var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cds area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入单位名称",clearable:""},model:{value:e.searchFrom.name,callback:function(t){e.$set(e.searchFrom,"name",t)},expression:"searchFrom.name"}})],1),t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入单位编号",clearable:""},model:{value:e.searchFrom.number,callback:function(t){e.$set(e.searchFrom,"number",t)},expression:"searchFrom.number"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"单位类型",multiple:"","collapse-tags":""},model:{value:e.searchFrom.mold,callback:function(t){e.$set(e.searchFrom,"mold",t)},expression:"searchFrom.mold"}},[t("el-option",{attrs:{label:"客户",value:"customer"}}),t("el-option",{attrs:{label:"供应商",value:"supplier"}})],1)],1),t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入备注信息",clearable:""},model:{value:e.searchFrom.data,callback:function(t){e.$set(e.searchFrom,"data",t)},expression:"searchFrom.data"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record(1)}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],attrs:{data:e.tableData,height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{prop:"mold",label:"单位类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"name",label:"单位名称",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"number",label:"单位编号",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"collection",label:"应收款余额",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"payment",label:"应付款余额",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"data",label:"备注信息",align:"center",width:"160px"}})],1),t("el-pagination",{staticClass:"tablePagination",attrs:{"current-page":e.page.current,total:e.page.total,"page-size":e.page.size,"page-sizes":e.page.sizes,"pager-count":e.page.count,layout:"prev,pager,next,jumper,sizes,total,slot"},on:{"update:currentPage":function(t){return e.$set(e.page,"current",t)},"update:current-page":function(t){return e.$set(e.page,"current",t)},"update:pageSize":function(t){return e.$set(e.page,"size",t)},"update:page-size":function(t){return e.$set(e.page,"size",t)},"size-change":function(t){return e.record(1)},"current-change":function(t){return e.record(0)}}},[t("PageStatus",{attrs:{config:e.page.status,model:e.tableData}})],1)],1)},s=[],o=a("947e"),n={name:"Cds",components:{PageStatus:o["a"]},data:function(){return{searchFrom:{name:"",number:"",mold:[],data:""},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5,status:[{text:"总应收款余额",type:"sum",key:"collection"},{text:"总应付款余额",type:"sum",key:"payment"}]}}},created:function(){this.record(1)},computed:{store:function(){return this.$store.state}},methods:{record:function(e){var t=this;0==e||(this.page.current=e);var a=Object.assign({page:this.page.current,limit:this.page.size},this.searchFrom);this.$axios.post("crt/cds",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/cdsExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=n,i=(a("fbce"),a("2877")),c=Object(i["a"])(l,r,s,!1,null,"8cfd223a",null);t["default"]=c.exports},a447:function(e,t,a){"use strict";a("b0c0");var r=function(){var e=this,t=e._self._c;return t("el-popover",{ref:"nodList",staticClass:"nodList",attrs:{disabled:e.disabled}},[t("template",{slot:"reference"},[t("el-input",{ref:"label",attrs:{placeholder:e.placeholder,tabindex:"-1",disabled:e.disabled,readonly:""},nativeOn:{keydown:function(t){return e.inputEvent.apply(null,arguments)}},model:{value:e.label,callback:function(t){e.label=t},expression:"label"}},[t("template",{slot:"suffix"},[t("i",{class:["el-input__icon",""==e.label?"el-icon-arrow-down":"el-icon-circle-close"],on:{click:function(t){return t.stopPropagation(),e.delModel.apply(null,arguments)}}})])],2)],1),t("div",{staticClass:"selectBox"},[t("el-input",{ref:"search",attrs:{placeholder:"F1 输入内容回车搜索","prefix-icon":"el-icon-search",size:"mini",tagkey:"search"},nativeOn:{keydown:function(t){return t.stopPropagation(),e.searchEvent.apply(null,arguments)}},model:{value:e.query,callback:function(t){e.query=t},expression:"query"}}),e.optionList.length>0?[t("ul",{staticClass:"list"},[e._l(e.optionList,(function(a,r){return[t("li",{class:[{selected:a.id==e.value},{foucs:r==e.foucs}],on:{click:function(t){return e.setOption(a)}}},[e._v(e._s(a.name))])]}))],2)]:[t("p",{staticClass:"emptyList"},[e._v("未查询到数据")])],t("div",{staticClass:"operate"},[t("el-pagination",{attrs:{"current-page":e.page.current,total:e.page.total,"page-size":e.page.size,layout:"prev,next,total",background:""},on:{"update:currentPage":function(t){return e.$set(e.page,"current",t)},"update:current-page":function(t){return e.$set(e.page,"current",t)},"update:pageSize":function(t){return e.$set(e.page,"size",t)},"update:page-size":function(t){return e.$set(e.page,"size",t)},"current-change":function(t){return e.record(0)}}})],1)],2)],2)},s=[],o=(a("7db0"),a("d3b7"),a("ac1f"),a("841c"),{name:"NodList",props:{value:{required:!0},action:{required:!0},scene:{required:!0},parm:{default:function(){return{}}},disabled:{default:!1},placeholder:{default:"请点击选择数据"}},data:function(){return{id:null,label:"",query:"",optionList:[],foucs:0,page:{current:1,total:0,size:6}}},created:function(){this.record(1),this.get()},watch:{value:function(e,t){e==t||this.get()}},methods:{init:function(){this.id=null,this.label="",this.query="",this.page={current:1,total:0,size:6},this.record(1),this.$emit("input",null),this.$emit("change",null)},record:function(e){var t=this;0==e||(this.page.current=e);var a=Object.assign({},this.parm,{page:this.page.current,limit:this.page.size,query:this.query});this.$axios.post(this.action,a).then((function(e){"success"==e.state?(t.optionList=e.info,t.page.total=e.count,t.optionList.length>0&&"search"==document.activeElement.getAttribute("tagkey")&&(t.foucs=0,t.$refs.label.focus())):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},get:function(){var e=this;if(null!=this.value&&!this.$lib.validate("empty",this.value)){var t=this.optionList.find((function(t){return t.id==e.value}));void 0==t?this.$axios.post("service/getScene",{id:this.value,scene:this.scene}).then((function(t){"success"==t.state?null==t.info?e.$message({type:"warning",message:"[ NodList ]指定数据查询结果为空!"}):e.setOption(t.info):"error"==t.state?e.$message({type:"warning",message:t.info}):e.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})})):this.setOption(t)}},setOption:function(e){e.id!=this.id&&(this.id=e.id,this.label=e.name,this.$emit("input",e.id),this.$emit("change",e)),this.$refs["nodList"].showPopper=!1},delModel:function(){this.id=null,this.label="",this.$emit("input",null),this.$emit("change",null),this.$refs["nodList"].showPopper=!1},switchState:function(){this.$refs.label.focus(),this.$refs["nodList"].showPopper=!this.$refs["nodList"].showPopper},inputEvent:function(e){var t=e.keyCode;this.$refs["nodList"].showPopper?13==t?this.setOption(this.optionList[this.foucs]):27==t?e.stopPropagation():38==t?this.optionList.hasOwnProperty(this.foucs-1)&&this.foucs--:40==t?this.optionList.hasOwnProperty(this.foucs+1)&&this.foucs++:112==t&&(this.$refs.search.focus(),e.preventDefault(),e.stopPropagation()):13==t&&(this.$refs["nodList"].showPopper=!0),46==t&&this.delModel()},searchEvent:function(e){var t=e.keyCode;13==t?this.record(1):27==t?(this.$refs.label.focus(),this.$refs["nodList"].showPopper=!1):112==t&&e.preventDefault()}}}),n=o,l=(a("bdbf"),a("2877")),i=Object(l["a"])(n,r,s,!1,null,"404ad2bf",null);t["a"]=i.exports},a7ea:function(e,t,a){"use strict";a("71a2")},a8ae:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cct area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择客户",action:"service/customerRecord",scene:"customer"},model:{value:e.searchFrom.customer,callback:function(t){e.$set(e.searchFrom,"customer",t)},expression:"searchFrom.customer"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"显示明细"},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[t("el-option",{attrs:{label:"隐藏明细",value:0}}),t("el-option",{attrs:{label:"显示明细",value:1}})],1)],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record()}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,"tree-props":{children:"node"},"row-key":"key",height:"calc(100% - 60px)",border:""}},[1==e.tableType?[t("el-table-column",{attrs:{align:"center",width:"44px"}})]:e._e(),t("el-table-column",{attrs:{prop:"bill",label:"单据类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"frameData.name",label:"所属组织",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"number",label:"单据编号",align:"center",width:"180px"}}),1==e.tableType?[t("el-table-column",{attrs:{prop:"detail.name",label:"名称",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"detail.attr",label:"属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"detail.unit",label:"单位",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.price",label:"单价",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.nums",label:"数量",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.dsc",label:"折扣额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.total",label:"金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.tat",label:"税额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.tpt",label:"价税合计",align:"center",width:"100px"}})]:e._e(),t("el-table-column",{attrs:{prop:"total",label:"单据金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"discount",label:"优惠金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"actual",label:"应收金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"money",label:"实收金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"balance",label:"应收款余额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"data",label:"备注",align:"center",width:"200px"}})],2)],1)},s=[],o=(a("b0c0"),a("a447")),n={name:"Cct",components:{NodList:o["a"]},data:function(){return{searchFrom:{customer:null,type:0,startTime:"",endTime:""},tableData:[],tableType:0}},created:function(){this.init()},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(){var e=this;if(null==this.searchFrom.customer)this.$message({type:"warning",message:"请选择客户后搜索!"});else{var t=this.searchFrom;this.$axios.post("crt/cct",t).then((function(t){"success"==t.state?(e.tableData=t.info,e.$refs["searchPopover"].showPopper=!1,e.tableType=-1,e.$nextTick((function(){e.tableType=[0,1][e.searchFrom.type],setTimeout((function(){e.$refs.table.doLayout()}),0)}))):"error"==t.state?e.$message({type:"warning",message:t.info}):e.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))}},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/cctExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=n,i=(a("5f2d"),a("2877")),c=Object(i["a"])(l,r,s,!1,null,"4870089f",null);t["default"]=c.exports},acd8:function(e,t,a){},b03c:function(e,t,a){},b995:function(e,t,a){"use strict";a("fd58")},bdbf:function(e,t,a){"use strict";a("c54b")},c54b:function(e,t,a){},dbe2:function(e,t,a){"use strict";a("acd8")},ddb7:function(e,t,a){"use strict";a("512f")},f0d5:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cst area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择供应商",action:"service/supplierRecord",scene:"supplier"},model:{value:e.searchFrom.supplier,callback:function(t){e.$set(e.searchFrom,"supplier",t)},expression:"searchFrom.supplier"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"显示明细"},model:{value:e.searchFrom.type,callback:function(t){e.$set(e.searchFrom,"type",t)},expression:"searchFrom.type"}},[t("el-option",{attrs:{label:"隐藏明细",value:0}}),t("el-option",{attrs:{label:"显示明细",value:1}})],1)],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record()}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,"tree-props":{children:"node"},"row-key":"key",height:"calc(100% - 60px)",border:""}},[1==e.tableType?[t("el-table-column",{attrs:{align:"center",width:"44px"}})]:e._e(),t("el-table-column",{attrs:{prop:"bill",label:"单据类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"frameData.name",label:"所属组织",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"number",label:"单据编号",align:"center",width:"180px"}}),1==e.tableType?[t("el-table-column",{attrs:{prop:"detail.name",label:"名称",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"detail.attr",label:"属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"detail.unit",label:"单位",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.price",label:"单价",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.nums",label:"数量",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.dsc",label:"折扣额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.total",label:"金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.tat",label:"税额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"detail.tpt",label:"价税合计",align:"center",width:"100px"}})]:e._e(),t("el-table-column",{attrs:{prop:"total",label:"单据金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"discount",label:"优惠金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"actual",label:"应付金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"money",label:"实付金额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"balance",label:"应付款余额",align:"center",width:"100px"}}),t("el-table-column",{attrs:{prop:"data",label:"备注",align:"center",width:"200px"}})],2)],1)},s=[],o=(a("b0c0"),a("a447")),n={name:"Cst",components:{NodList:o["a"]},data:function(){return{searchFrom:{supplier:null,type:0,startTime:"",endTime:""},tableData:[],tableType:0}},created:function(){this.init()},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(){var e=this;if(null==this.searchFrom.supplier)this.$message({type:"warning",message:"请选择供应商后搜索!"});else{var t=this.searchFrom;this.$axios.post("crt/cst",t).then((function(t){"success"==t.state?(e.tableData=t.info,e.$refs["searchPopover"].showPopper=!1,e.tableType=-1,e.$nextTick((function(){e.tableType=[0,1][e.searchFrom.type],setTimeout((function(){e.$refs.table.doLayout()}),0)}))):"error"==t.state?e.$message({type:"warning",message:t.info}):e.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))}},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/cstExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=n,i=(a("dbe2"),a("2877")),c=Object(i["a"])(l,r,s,!1,null,"7f405991",null);t["default"]=c.exports},f2e9:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"cos area"},[t("div",{staticClass:"layout"},[t("el-popover",{ref:"searchPopover",attrs:{"popper-class":"searchPopover",placement:"bottom-start"}},[t("el-form",{ref:"searchFrom",staticClass:"searchFrom",attrs:{inline:""}},[t("el-form-item",[t("el-select",{attrs:{placeholder:"单据类型",multiple:"","collapse-tags":""},model:{value:e.searchFrom.mold,callback:function(t){e.$set(e.searchFrom,"mold",t)},expression:"searchFrom.mold"}},[t("el-option",{attrs:{label:"其它收入单",value:"ice"}}),t("el-option",{attrs:{label:"其它支出单",value:"oce"}})],1)],1),t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入单据编号",clearable:""},model:{value:e.searchFrom.number,callback:function(t){e.$set(e.searchFrom,"number",t)},expression:"searchFrom.number"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startTime,callback:function(t){e.$set(e.searchFrom,"startTime",t)},expression:"searchFrom.startTime"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"单据结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endTime,callback:function(t){e.$set(e.searchFrom,"endTime",t)},expression:"searchFrom.endTime"}})],1),t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择收支类别",action:"service/ietRecord",scene:"iet"},model:{value:e.searchFrom.iet,callback:function(t){e.$set(e.searchFrom,"iet",t)},expression:"searchFrom.iet"}})],1),t("el-form-item",[t("nodList",{attrs:{placeholder:"请选择资金账户",action:"service/accountRecord",scene:"account"},model:{value:e.searchFrom.account,callback:function(t){e.$set(e.searchFrom,"account",t)},expression:"searchFrom.account"}})],1),t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入备注信息",clearable:""},model:{value:e.searchFrom.data,callback:function(t){e.$set(e.searchFrom,"data",t)},expression:"searchFrom.data"}})],1),t("el-divider"),t("el-button",{staticClass:"searchBtn",attrs:{icon:"el-icon-search"},on:{click:function(t){return e.record(1)}}})],1),t("el-button",{attrs:{slot:"reference",icon:"el-icon-more"},slot:"reference"})],1),t("el-button-group",[t("el-button",{on:{click:e.exports}},[e._v("导出")]),t("el-button",{on:{click:e.reload}},[e._v("刷新")])],1)],1),t("el-divider"),t("el-table",{directives:[{name:"madeTable",rawName:"v-madeTable"}],ref:"table",attrs:{data:e.tableData,height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{prop:"name",label:"单据类型",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"class.frameData.name",label:"所属组织",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"current.name",label:"往来单位",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"class.time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"class.number",label:"单据编号",align:"center",width:"180px"}}),t("el-table-column",{attrs:{prop:"info.ietData.name",label:"收支类别",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"in",label:"收入",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"out",label:"支出",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"class.accountData.name",label:"结算账户",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"class.data",label:"备注信息",align:"center",width:"200px"}})],1),t("el-pagination",{staticClass:"tablePagination",attrs:{"current-page":e.page.current,total:e.page.total,"page-size":e.page.size,"page-sizes":e.page.sizes,"pager-count":e.page.count,layout:"prev,pager,next,jumper,sizes,total,slot"},on:{"update:currentPage":function(t){return e.$set(e.page,"current",t)},"update:current-page":function(t){return e.$set(e.page,"current",t)},"update:pageSize":function(t){return e.$set(e.page,"size",t)},"update:page-size":function(t){return e.$set(e.page,"size",t)},"size-change":function(t){return e.record(1)},"current-change":function(t){return e.record(0)}}},[t("PageStatus",{attrs:{config:e.page.status,model:e.tableData}})],1)],1)},s=[],o=(a("b0c0"),a("a447")),n=a("947e"),l={name:"Cos",components:{NodList:o["a"],PageStatus:n["a"]},data:function(){return{searchFrom:{mold:[],number:"",startTime:"",endTime:"",iet:null,account:null,data:""},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5,status:[{text:"总收入",type:"sum",key:"in"},{text:"总支出",type:"sum",key:"out"}]}}},created:function(){this.init(),this.record(1)},computed:{store:function(){return this.$store.state}},methods:{init:function(){this.searchFrom.startTime=this.$moment().subtract(this.store.sys.fun.days,"days").format("YYYY-MM-DD"),this.searchFrom.endTime=this.$moment().format("YYYY-MM-DD")},record:function(e){var t=this;0==e||(this.page.current=e);var a=Object.assign({page:this.page.current,limit:this.page.size},this.searchFrom);this.$axios.post("crt/cos",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},exports:function(){var e=this;this.$message({type:"success",message:"[ 导出数据 ] 请求中..."});var t=this.$lib.objToParm(this.searchFrom,!0);setTimeout((function(){window.open(e.$base.web+"crt/cosExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},i=l,c=(a("b995"),a("2877")),p=Object(c["a"])(i,r,s,!1,null,"0cbf5b1c",null);t["default"]=p.exports},fbce:function(e,t,a){"use strict";a("b03c")},fd58:function(e,t,a){}}]); |