2024-09-05 09:27:56 +08:00

1 line
41 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["h"],{"0871":function(e,t,a){},"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}},"1d8f":function(e,t,a){"use strict";a("7002")},2632: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:"btt 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-input",{attrs:{placeholder:"请输入商品名称",clearable:""},model:{value:e.searchFrom.goods,callback:function(t){e.$set(e.searchFrom,"goods",t)},expression:"searchFrom.goods"}})],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.state,callback:function(t){e.$set(e.searchFrom,"state",t)},expression:"searchFrom.state"}},[t("el-option",{attrs:{label:"未入库",value:0}}),t("el-option",{attrs:{label:"部分入库",value:1}}),t("el-option",{attrs:{label:"已入库",value:2}})],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-form-item",[t("el-date-picker",{attrs:{placeholder:"到货开始日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.startArrival,callback:function(t){e.$set(e.searchFrom,"startArrival",t)},expression:"searchFrom.startArrival"}})],1),t("el-form-item",[t("el-date-picker",{attrs:{placeholder:"到货结束日期","value-format":"yyyy-MM-dd",type:"date"},model:{value:e.searchFrom.endArrival,callback:function(t){e.$set(e.searchFrom,"endArrival",t)},expression:"searchFrom.endArrival"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"请选择仓库信息",multiple:"","collapse-tags":""},model:{value:e.searchFrom.warehouse,callback:function(t){e.$set(e.searchFrom,"warehouse",t)},expression:"searchFrom.warehouse"}},[e._l(e.store.warehouse,(function(e){return[t("el-option",{attrs:{label:e.name,value:e.id}})]}))],2)],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-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"}}),0==e.tableType?[t("el-table-column",{attrs:{prop:"frameData.name",label:"所属组织",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"supplierData.name",label:"供应商",align:"center",width:"160px"}}),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:"goodsData.name",label:"商品名称",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"attr",label:"辅助属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"warehouseData.name",label:"仓库",align:"center",width:"120px"}})]:e._e(),1==e.tableType?[t("el-table-column",{attrs:{prop:"goodsData.name",label:"商品名称",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"attr",label:"辅助属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"warehouseData.name",label:"仓库",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"frameData.name",label:"所属组织",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"supplierData.name",label:"供应商",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"time",label:"单据时间",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"number",label:"单据编号",align:"center",width:"180px"}})]:e._e(),t("el-table-column",{attrs:{prop:"unit",label:"单位",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"price",label:"单价",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"nums",label:"数量",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"money",label:"金额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"extension.state",label:"入库状态",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"nns",label:"未入库数量",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"nmy",label:"未入库金额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"arrival",label:"到货日期",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"data",label:"备注信息",align:"center",width:"200px"}})],2),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("a447"),l={name:"Btt",components:{NodList:o["a"]},data:function(){return{searchFrom:{supplier:null,goods:"",number:"",state:[],startTime:"",endTime:"",startArrival:"",endArrival:"",warehouse:[],type:0},tableData:[],tableType:0,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("brt/btt",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1,t.tableType=-1,t.$nextTick((function(){t.tableType=0==t.searchFrom.type?0:1,setTimeout((function(){t.$refs.table.doLayout()}),0)}))):"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+"brt/bttExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},n=l,i=(a("333b"),a("2877")),c=Object(i["a"])(n,r,s,!1,null,"c0b9ce7a",null);t["default"]=c.exports},2850:function(e,t,a){"use strict";a("0871")},"2c44":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:"blt 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-input",{attrs:{placeholder:"请输入商品名称",clearable:""},model:{value:e.searchFrom.goods,callback:function(t){e.$set(e.searchFrom,"goods",t)},expression:"searchFrom.goods"}})],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.warehouse,callback:function(t){e.$set(e.searchFrom,"warehouse",t)},expression:"searchFrom.warehouse"}},[e._l(e.store.warehouse,(function(e){return[t("el-option",{attrs:{label:e.name,value:e.id}})]}))],2)],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("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:"buy"}}),t("el-option",{attrs:{label:"采购退货单",value:"bre"}})],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"}],ref:"table",attrs:{data:e.tableData,height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{prop:"name",label:"单据类型",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"class.frameData.name",label:"所属组织",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"class.supplierData.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.goodsData.name",label:"商品名称",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"info.attr",label:"辅助属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"info.warehouseData.name",label:"仓库",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"info.unit",label:"单位",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"info.price",label:"单价",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"info.nums",label:"数量",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"info.dsc",label:"折扣额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"info.total",label:"金额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"info.tat",label:"税额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"info.tpt",label:"价税合计",align:"center",width:"90px"}}),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("b85c"),l=a("a447"),n=a("947e"),i={name:"Blt",components:{NodList:l["a"],PageStatus:n["a"]},data:function(){var e=this;return{searchFrom:{supplier:null,goods:"",number:"",warehouse:[],startTime:"",endTime:"",mold:[],data:""},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5,status:[{fun:function(){var t,a=0,r=0,s=Object(o["a"])(e.tableData);try{for(s.s();!(t=s.n()).done;){var l=t.value;"buy"==l.mold?a=e.$calc.chain(a).add(l.info.tpt).done():"bre"==l.mold&&(r=e.$calc.chain(r).add(l.info.tpt).done())}}catch(n){s.e(n)}finally{s.f()}return"采购总金额:"+a+" | 采购退货总金额:"+r}}]}}},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("brt/blt",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+"brt/bltExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},c=i,p=(a("c715"),a("2877")),u=Object(p["a"])(c,r,s,!1,null,"29682843",null);t["default"]=u.exports},"333b":function(e,t,a){"use strict";a("ee36")},7002:function(e,t,a){},73846:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"bbt 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-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("el-select",{attrs:{placeholder:"核销状态",multiple:"","collapse-tags":""},model:{value:e.searchFrom.nucleus,callback:function(t){e.$set(e.searchFrom,"nucleus",t)},expression:"searchFrom.nucleus"}},[t("el-option",{attrs:{label:"未核销",value:0}}),t("el-option",{attrs:{label:"部分核销",value:1}}),t("el-option",{attrs:{label:"已核销",value:2}})],1)],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:"buy"}}),t("el-option",{attrs:{label:"采购退货单",value:"bre"}})],1)],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:"frameData.name",label:"所属组织",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"supplierData.name",label:"供应商",align:"center",width:"160px"}}),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:"total",label:"单据金额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"actual",label:"实际金额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"money",label:"单据付款",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"balance",label:"应付款余额",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"rate",label:"付款率",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"extension.nucleus",label:"核销状态",align:"center",width:"90px"}}),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,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")),l=a("947e"),n={name:"Bbt",components:{NodList:o["a"],PageStatus:l["a"]},data:function(){return{searchFrom:{supplier:null,number:"",startTime:"",endTime:"",nucleus:[],mold:[]},tableData:[],page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5,status:[{text:"应付款总余额",type:"sum",key:"balance"}]}}},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("brt/bbt",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+"brt/bbtExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},i=n,c=(a("2850"),a("2877")),p=Object(c["a"])(i,r,s,!1,null,"7381c5a3",null);t["default"]=p.exports},"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(" | ")}}}},"841c":function(e,t,a){"use strict";var r=a("c65b"),s=a("d784"),o=a("825a"),l=a("7234"),n=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=n(this),s=l(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),l=a(t,r,s);if(l.done)return l.value;var n=r.lastIndex;i(n,0)||(r.lastIndex=0);var p=u(r,s);return i(r.lastIndex,n)||(r.lastIndex=n),null===p?-1:p.index}]}))},"86a5":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:"bot 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-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"}],attrs:{data:e.tableData,height:"calc(100% - 90px)",border:""}},[t("el-table-column",{attrs:{prop:"goodsData.name",label:"商品名称",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"attr",label:"辅助属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"goodsData.number",label:"商品编号",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"goodsData.spec",label:"规格型号",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"unit",label:"单位",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"nums",label:"数量",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"dsc",label:"折扣额",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"tat",label:"税额",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"tpt",label:"价税合计",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"uct",label:"成本",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"bct",label:"总成本",align:"center",width:"120px"}})],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={name:"Bot",data:function(){return{searchFrom:{name:"",number:"",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("brt/bot",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+"brt/botExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},l=o,n=(a("c180"),a("2877")),i=Object(n["a"])(l,r,s,!1,null,"15d05e1d",null);t["default"]=i.exports},"8d7d":function(e,t,a){"use strict";a("bd82")},"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"),l=o["a"],n=(a("1d8f"),a("2877")),i=Object(n["a"])(l,r,s,!1,null,"7c9bcf1f",null);t["a"]=i.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()}}}),l=o,n=(a("bdbf"),a("2877")),i=Object(n["a"])(l,r,s,!1,null,"404ad2bf",null);t["a"]=i.exports},bd82:function(e,t,a){},bdbf:function(e,t,a){"use strict";a("c54b")},c180:function(e,t,a){"use strict";a("f67b")},c54b:function(e,t,a){},c715:function(e,t,a){"use strict";a("d9bb")},d9bb:function(e,t,a){},de0c: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:"bsy 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.goods,callback:function(t){e.$set(e.searchFrom,"goods",t)},expression:"searchFrom.goods"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"请选择仓库信息",multiple:"","collapse-tags":""},model:{value:e.searchFrom.warehouse,callback:function(t){e.$set(e.searchFrom,"warehouse",t)},expression:"searchFrom.warehouse"}},[e._l(e.store.warehouse,(function(e){return[t("el-option",{attrs:{label:e.name,value:e.id}})]}))],2)],1),t("el-form-item",[t("nodList",{ref:"supplier",attrs:{placeholder:"请选择供应商",action:"service/supplierRecord",scene:"supplier",disabled:1!=e.searchFrom.type},model:{value:e.searchFrom.supplier,callback:function(t){e.$set(e.searchFrom,"supplier",t)},expression:"searchFrom.supplier"}})],1),t("el-form-item",[t("nodList",{ref:"user",attrs:{placeholder:"请选择用户",action:"service/userRecord",scene:"user",disabled:2!=e.searchFrom.type},model:{value:e.searchFrom.user,callback:function(t){e.$set(e.searchFrom,"user",t)},expression:"searchFrom.user"}})],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",{ref:"people",attrs:{placeholder:"请选择关联人员",action:"service/peopleRecord",scene:"people",disabled:3!=e.searchFrom.type},model:{value:e.searchFrom.people,callback:function(t){e.$set(e.searchFrom,"people",t)},expression:"searchFrom.people"}})],1),t("el-form-item",[t("el-select",{attrs:{placeholder:"查询类型"},on:{change:e.typeChange},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}}),t("el-option",{attrs:{label:"按用户",value:2}}),t("el-option",{attrs:{label:"按人员",value:3}})],1)],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:""}},[1==e.tableType?[t("el-table-column",{attrs:{prop:"supplier.name",label:"供应商",align:"center",width:"160px"}})]:e._e(),2==e.tableType?[t("el-table-column",{attrs:{prop:"user.name",label:"用户",align:"center",width:"160px"}})]:e._e(),3==e.tableType?[t("el-table-column",{attrs:{prop:"people.name",label:"关联人员",align:"center",width:"160px"}})]:e._e(),t("el-table-column",{attrs:{prop:"goodsData.name",label:"商品名称",align:"center",width:"160px"}}),t("el-table-column",{attrs:{prop:"attr",label:"辅助属性",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"warehouseData.name",label:"仓库",align:"center",width:"120px"}}),t("el-table-column",{attrs:{prop:"unit",label:"单位",align:"center",width:"90px"}}),t("el-table-column",{attrs:{label:"采购单",align:"center"}},[t("el-table-column",{attrs:{prop:"buy.price",label:"单价",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"buy.nums",label:"数量",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"buy.money",label:"金额",align:"center",width:"90px"}})],1),t("el-table-column",{attrs:{label:"采购退货单",align:"center"}},[t("el-table-column",{attrs:{prop:"bre.price",label:"单价",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"bre.nums",label:"数量",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"bre.money",label:"金额",align:"center",width:"90px"}})],1),t("el-table-column",{attrs:{label:"汇总",align:"center"}},[t("el-table-column",{attrs:{prop:"summary.nums",label:"数量",align:"center",width:"90px"}}),t("el-table-column",{attrs:{prop:"summary.money",label:"金额",align:"center",width:"90px"}})],1)],2),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("a447"),l=a("947e"),n={name:"Bsy",components:{NodList:o["a"],PageStatus:l["a"]},data:function(){return{searchFrom:{goods:"",warehouse:[],supplier:null,user:null,startTime:"",endTime:"",people:null,type:0},tableData:[],tableType:0,page:{current:1,total:0,size:30,sizes:[30,60,90,150,300],count:5,status:[{text:"采购总金额",type:"sum",key:"buy.money"},{text:"采购退货总金额",type:"sum",key:"bre.money"},{text:"汇总金额",type:"sum",key:"summary.money"}]}}},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("brt/bsy",a).then((function(e){"success"==e.state?(t.tableData=e.info,t.page.total=e.count,t.$refs["searchPopover"].showPopper=!1,t.tableType=-1,t.$nextTick((function(){t.tableType=[0,1,2,3][t.searchFrom.type],setTimeout((function(){t.$refs.table.doLayout()}),0)}))):"error"==e.state?t.$message({type:"warning",message:e.info}):t.$message({type:"error",message:"[ ERROR ] 服务器响应超时!"})}))},typeChange:function(){0==this.searchFrom.type?(this.$refs["supplier"].init(),this.$refs["user"].init(),this.$refs["people"].init()):1==this.searchFrom.type?(this.$refs["user"].init(),this.$refs["people"].init()):2==this.searchFrom.type?(this.$refs["supplier"].init(),this.$refs["people"].init()):(this.$refs["supplier"].init(),this.$refs["user"].init())},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+"brt/bsyExports?"+t)}),1e3)},reload:function(){this.$bus.emit("homeReload",this.$options.name),this.$message({type:"success",message:"页面刷新成功!"})}}},i=n,c=(a("8d7d"),a("2877")),p=Object(c["a"])(i,r,s,!1,null,"027c6d4f",null);t["default"]=p.exports},ee36:function(e,t,a){},f67b:function(e,t,a){}}]);