51.8c9646c865a6eb3e44bd.js 14 KB

1
  1. webpackJsonp([51],{"/CMq":function(e,t,n){(e.exports=n("FZ+f")(!1)).push([e.i,'\n@charset "UTF-8";\n[data-v-3e5f3754] .el-table td:not(.is-left) {\n text-align: center;\n}\n.list-unstyled[data-v-3e5f3754] {\n font-size: 14px;\n}\n.list-unstyled li[data-v-3e5f3754] {\n padding-bottom: 5px;\n color: #3c8dbc;\n cursor: pointer;\n padding: 5.7px 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.list-unstyled .lis[data-v-3e5f3754] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n.list-unstyled a[data-v-3e5f3754] {\n color: #3c8dbc;\n text-decoration: none;\n}\n.list-unstyled a[data-v-3e5f3754]:hover {\n text-decoration: underline;\n}\n.menus[data-v-3e5f3754] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: space-evenly;\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n font-size: 13px;\n padding: 30px 0 110px 0;\n}\n.menus .ments-item[data-v-3e5f3754] {\n cursor: pointer;\n}\n.menus .ments-item img[data-v-3e5f3754] {\n width: 45px;\n padding-bottom: 10px;\n}\n.menus .ments-item a[data-v-3e5f3754] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.dashboard_images-container[data-v-3e5f3754] {\n height: 100%;\n}\n.dashboard_images-container .flex-center[data-v-3e5f3754] {\n height: 104px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n padding: 20px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.dashboard_images-container .flex-center .felx-left[data-v-3e5f3754] {\n width: 56px;\n margin-right: 16px;\n}\n.dashboard_images-container .flex-center .felx-left img[data-v-3e5f3754] {\n width: 100%;\n}\n.dashboard_images-container .flex-center .felx-right .num[data-v-3e5f3754] {\n font-size: 24px;\n}\n.dashboard_images-container .flex-center .felx-right .title[data-v-3e5f3754] {\n color: #747474;\n}\n.dashboard_images-container .shopping-info[data-v-3e5f3754] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: 20px 0;\n}\n.dashboard_images-container .shopping-info .shopping-info-item[data-v-3e5f3754] {\n -webkit-box-flex: 1;\n -ms-flex: 1;\n flex: 1;\n margin-right: 20px;\n margin-bottom: 20px;\n height: 68px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n color: #747474;\n}\n.dashboard_images-container .shopping-info .shopping-info-item .num[data-v-3e5f3754] {\n height: 48px;\n line-height: 48px;\n font-size: 16px;\n font-weight: 600;\n color: #333;\n}\n.dashboard_images-container .shopping-info .shopping-info-item[data-v-3e5f3754]:last-child {\n margin-right: 0px;\n}\n.dashboard_images-container[data-v-3e5f3754] .el-card .el-card__header {\n border-bottom: none !important;\n /* 去除底部边框 */\n}\n.dashboard_images-container[data-v-3e5f3754] .el-card__body {\n padding: 10px;\n}\n.dashboard_images-container .goods-statistics[data-v-3e5f3754] {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -ms-flex-pack: distribute;\n justify-content: space-around;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n text-align: center;\n}\n.dashboard_images-container .goods-statistics a[data-v-3e5f3754] {\n display: block;\n margin: 0;\n width: 75%;\n}\n.dashboard_images-container .goods-statistics a button[data-v-3e5f3754] {\n height: 50px;\n width: 400px;\n}\n.dashboard_images-container .yu-statistics[data-v-3e5f3754] .el-table__row > td {\n /* 去除表格线 */\n border: none;\n}\n.dashboard_images-container .goods-image[data-v-3e5f3754] {\n width: 50px;\n height: 50px;\n}\n.el-row[data-v-3e5f3754] {\n position: relative;\n margin-bottom: 20px;\n}\n.el-col[data-v-3e5f3754] {\n border-radius: 4px;\n}\n.goods-name[data-v-3e5f3754] {\n color: #606266;\n}\n.o2o-goods-name[data-v-3e5f3754] {\n color: #4183c4;\n}\n',""])},ARoL:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("Dd8w"),i=n.n(a),s=(n("qsHl"),n("NYxO")),o=n("FWz8"),r=n("ivlf"),l=(n("G+dR"),n("Ze8w")),d=n("dClm"),c=n("rySZ"),u=(n("IcnI"),{name:"dashboard_images",computed:i()({},Object(s.b)(["permission_routers"])),data:function(){return{purchaseList:[],stockList:[],listAll:[],OrderList:[],goodsLendListWaitReturnData:[],params:{page_no:1,page_size:9},loading:!1,goodsList:null,memberList:null,tableHeight:(document.body.clientHeight-250)/2,franchiseData:{},tableData:[],revenueChart:{},menuList:[],routerLIst:[],warehouseList:[],warehouse_id:""}},filters:{secrecyMobile:function(e){return e=String(e),/\d{11}/.test(e)?e.replace(/(\d{3})(\d{4})(\d{4})/,"$1****$3"):e}},activated:function(){window.onresize=this.countTableHeight},mounted:function(){var e=this;this.permission_routers.map(function(t){void 0!==t.name&&"dashboard"!==t.name&&e.menuList&&e.routerLIst.push(t)}),this.permission_routers.some(function(e){return"stock"===e.name})&&(this.stockList=this.permission_routers.find(function(e){return"stock"===e.name})),this.permission_routers.some(function(e){return"purchase"===e.name})&&(this.purchaseList=this.permission_routers.find(function(e){return"purchase"===e.name})),this.listAll=[],this.stockList.children&&this.purchaseList.children?this.listAll=this.stockList.children.concat(this.purchaseList.children):this.purchaseList.children?this.listAll=this.purchaseList.children:this.stockList.children&&(this.listAll=this.stockList.children),this.GET_WarehouseList(),this.GET_OrderList(),this.GET_GoodsLendList(),this.GET_menus()},methods:{addWarehouse:function(e){this.$router.push({name:"orderOutboundAdd",params:{id:e.id}})},warehouseName:function(e){var t=[];return this.warehouseList.map(function(n){e.map(function(e){if(n.id==e)return t.push(n.name)})}),t.join("/")},wareName:function(e){var t="";return this.warehouseList.map(function(n){if(n.id==e)return t=n.name}),t},cleanGoodsList:function(e){this.warehouse_id=e,this.GET_WarningGoodsList()},generateTitle:r.a,GET_GoodsLendList:function(){var e=this;this.loading=!0,o.i({page_no:1,page_size:10,selectType:"to_be_return"}).then(function(t){e.loading=!1,e.goodsLendListWaitReturnData=t}).catch(function(){e.loading=!1})},GET_OrderList:function(){var e=this;o.j({page_no:1,page_size:10,selectType:"to_be_send"}).then(function(t){e.OrderList=t})},checkIsauth:function(e){return this.listAll.some(function(t){return t.path===e})},GET_WarningGoodsList:function(){var e=this;c.g(this.warehouse_id).then(function(t){e.tableData=t})},countTableHeight:function(){this.tableHeight=(document.body.clientHeight-80-44-80-80-20-20-4)/2,setTimeout(this.sesalChart.resize)},GET_menus:function(){var e=this;l.e(0).then(function(t){t.map(function(t){t.children.map(function(t){1==t.show_home&&e.menuList.push(t)})})}),l.d(this.params).then(function(e){console.log(e)})},goList:function(e){var t=this;this.routerLIst.map(function(n){n.children.map(function(a){a.name==e.identifier&&(console.log(n),t.$router.push(n.name+"/"+a.path))})})},GET_WarehouseList:function(){var e=this;d.E().then(function(t){e.warehouse_id=t[0].id,e.warehouseList=t,e.GET_WarningGoodsList()})}}}),h=n("XyMi");var p=function(e){n("ptB+")},f=Object(h.a)(u,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"dashboard_images-container"},[n("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[n("el-col",{attrs:{span:24}},[n("el-card",{attrs:{shadow:"never"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("快捷起草")])]),e._v(" "),n("div",{staticClass:"menus"},e._l(e.menuList,function(t,a){return n("div",{key:a,staticClass:"ments-item"},[n("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center"},on:{click:function(n){return e.goList(t)}}},[n("div",[n("img",{attrs:{src:t.icon}})]),e._v(" "),n("div",[e._v(e._s(e.generateTitle(t.identifier)))])])])}),0)])],1)],1),e._v(" "),n("el-row",{staticStyle:{"margin-bottom":"0"},attrs:{gutter:20}},[e.checkPermission(["order"])?n("el-col",{attrs:{span:16}},[n("el-card",{staticStyle:{height:"350px"},attrs:{shadow:"never"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("待发货订单")]),e._v(" "),n("router-link",{attrs:{to:"/sales/order"}},[n("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"}},[e._v("查看更多")])],1)],1),e._v(" "),n("div",{staticClass:"goods-statistics"},[n("el-table",{attrs:{data:e.OrderList.records,loading:e.loading,"header-cell-style":{textAlign:"center"}}},[n("el-table-column",{attrs:{prop:"order_vo.sn",label:"订单编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"warehouse_name",label:"仓库名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.warehouseName(t.row.order_vo.warehouse_id)))]}}],null,!1,621231599)}),e._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"下单时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("unixToDate")(t.row.update_time)))]}}],null,!1,1033575770)}),e._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini"},on:{click:function(n){return e.addWarehouse(t.row)}}},[e._v("发货")])]}}],null,!1,4126592768)})],1)],1)])],1):e._e(),e._v(" "),e.checkIsauth("goods-understock")?n("el-col",{attrs:{span:8}},[n("el-card",{staticClass:"box-card",staticStyle:{height:"350px"},attrs:{shadow:"never"}},[n("div",{staticClass:"clearfix",staticStyle:{display:"flex","justify-content":"space-between","align-items":"center"},attrs:{slot:"header"},slot:"header"},[n("span",[e._v("库存预警")]),e._v(" "),n("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},on:{change:e.cleanGoodsList},model:{value:e.warehouse_id,callback:function(t){e.warehouse_id=t},expression:"warehouse_id"}},e._l(e.warehouseList,function(e){return n("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),n("div",{staticClass:"yu-statistics"},[n("el-table",{attrs:{data:e.tableData,height:"280",loading:e.loading,"header-cell-style":{textAlign:"center"}}},[n("el-table-column",{attrs:{prop:"sn",label:"商品编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.goods_vo.sn))]}}],null,!1,1110551992)}),e._v(" "),n("el-table-column",{attrs:{prop:"name",label:"商品名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.goods_vo.name))]}}],null,!1,1682646626)}),e._v(" "),n("el-table-column",{attrs:{prop:"stock_num",label:"库存数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.usable_stock))]}}],null,!1,1809124910)}),e._v(" "),n("el-table-column",{attrs:{prop:"stock_num",label:"预警数量"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.warning_stock))]}}],null,!1,3054905224)}),e._v(" "),n("el-table-column",{attrs:{prop:"warehouse_id",label:"仓库名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.wareName(t.row.warehouse_id)))]}}],null,!1,1668203277)})],1)],1)])],1):e._e()],1),e._v(" "),e.checkIsauth("goods-lend-add")&&e.checkIsauth("goods-lend")?n("el-row",{staticStyle:{"margin-top":"20px","padding-bottom":"40px"},attrs:{gutter:12}},[n("el-col",{attrs:{span:16}},[n("el-card",{staticClass:"box-card",staticStyle:{height:"350px"},attrs:{shadow:"never"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("待入库订单")]),e._v(" "),n("router-link",{attrs:{to:"/sales/order"}},[n("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"}},[e._v("查看更多")])],1)],1),e._v(" "),n("div",{staticClass:"goods-statistics"},[n("el-table",{attrs:{data:e.goodsLendListWaitReturnData.data,loading:e.loading,"header-cell-style":{textAlign:"center"}}},[n("el-table-column",{attrs:{prop:"sn",label:"订单编号"}}),e._v(" "),n("el-table-column",{attrs:{prop:"warehouse_name",label:"仓库名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.warehouseName(t.row.warehouse_id)))]}}],null,!1,1423921161)}),e._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"下单时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("unixToDate")(t.row.create_time)))]}}],null,!1,1362253999)})],1)],1)])],1)],1):e._e()],1)},[],!1,p,"data-v-3e5f3754",null);t.default=f.exports},"ptB+":function(e,t,n){var a=n("/CMq");"string"==typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);n("rjj0")("421b0f28",a,!0)}});