cd0cc6cd5dc2cc0dff7ba04173f174ef94fb3410d9727a6231bcff267e2478bc8cd4a04fd6508e3074eed9adcd4159c435df775aa7b1f12d91861d763ad0 41 KB

1
  1. {"code":"/*!\n * build: vue-admin-beautiful \n * copyright: chuzhixin 1204505056@qq.com \n * time: 2022-12-12 09:51:32\n */\n(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-3199902a\"],{\"01aa\":function(t,e,o){\"use strict\";o(\"8f9e\")},\"0647\":function(t,e,o){\"use strict\";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{title:\"库区库位\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1,visible:t.isShow,width:\"50%\"},on:{close:t.cancel}},[o(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:t.loading,expression:\"loading\"}],ref:\"warehouseTable\",attrs:{data:t.tableData,size:\"small\"},on:{\"row-dblclick\":t.dbSelect,\"selection-change\":t.selectionChange}},[o(\"el-table-column\",{attrs:{prop:\"storageLocationId\",label:\"ID\",\"min-width\":\"140px\"}}),o(\"el-table-column\",{attrs:{prop:\"areaName\",label:\"所属库区\",\"min-width\":\"140px\"}}),o(\"el-table-column\",{attrs:{prop:\"storageLocationName\",label:\"所属库位\",\"min-width\":\"140px\"}}),o(\"el-table-column\",{attrs:{prop:\"num\",label:\"商品数量\",\"min-width\":\"140px\"}}),o(\"el-table-column\",{attrs:{label:\"选择\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\"},on:{click:function(o){return t.dbSelect(e.row)}}})]}}])})],1)],1)},a=[],r=(o(\"3c48\"),o(\"478b\")),u={name:\"ClientListModal\",components:{},props:{isShow:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},warehouseId:{type:[Number,String],default:0},skuId:{type:[Number,String],default:0},materielId:{type:[Number,String],default:0}},data(){return{tableData:[],choose_data:[],pre_page:10,page:1,total:0,loading:!1,pageLayout:\"total, prev, pager, next\",areaId:\"\",area_list:[]}},created(){this.getAreaDateBySkuId()},methods:{async getAreaDateBySkuId(){const{data:t,pageTotal:e}=await Object(r[\"getAreaDateBySkuId\"])({warehouseId:this.warehouseId,skuId:this.skuId,basicGoodsId:this.materielId});t.length&&(this.tableData=t[0].areaDate)},searchClick(){this.page=1,this.getAreaDateBySkuId()},selectionChange(t){this.choose_data.length?this.choose_data=this.$_common.unique(this.choose_data.concat(t),[\"id\"]):this.choose_data=t},confirm(){this.cancel(),this.$emit(\"confirm\",this.choose_data)},dbSelect(t){this.choose_data=[t],this.$emit(\"confirm\",this.choose_data),this.cancel()},cancel(){this.$emit(\"cancel\")},pageChange(t){this.page=t,this.getAreaDateBySkuId()},sizeChange(t){this.pre_page=t,this.pageChange(1)}}},d=u,c=(o(\"ec72\"),o(\"2877\")),l=Object(c[\"a\"])(d,n,a,!1,null,\"71b59f73\",null);e[\"default\"]=l.exports},\"0918\":function(t,e,o){},\"478b\":function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getWarehouseInfo\",(function(){return a})),o.d(e,\"getAllWarehouse\",(function(){return r})),o.d(e,\"enableWarehouse\",(function(){return u})),o.d(e,\"updateWarehouse\",(function(){return d})),o.d(e,\"deleteWarehouse\",(function(){return c})),o.d(e,\"addWarehouse\",(function(){return l})),o.d(e,\"addWarehouseBeginning\",(function(){return s})),o.d(e,\"stockaddLogistics\",(function(){return i})),o.d(e,\"getAllSaleOut\",(function(){return f})),o.d(e,\"exportGetAllSaleOut\",(function(){return p})),o.d(e,\"getSaleOutInfo\",(function(){return h})),o.d(e,\"getSaleOutInfoT\",(function(){return g})),o.d(e,\"searchAllSaleOut\",(function(){return b})),o.d(e,\"updateSaleOutStatus\",(function(){return m})),o.d(e,\"saveOutInventory\",(function(){return y})),o.d(e,\"statisticsAllSaleOut\",(function(){return S})),o.d(e,\"rejectInventory\",(function(){return G})),o.d(e,\"deleteDetailByInventoryInId\",(function(){return k})),o.d(e,\"searchAllPurchaseIn\",(function(){return I})),o.d(e,\"getPurchaseInInfo\",(function(){return O})),o.d(e,\"getPurchaseInInfoT\",(function(){return v})),o.d(e,\"getAllPurchaseIn\",(function(){return j})),o.d(e,\"exportsGetAllPurchaseIn\",(function(){return A})),o.d(e,\"updatePurchaseInStatus\",(function(){return B})),o.d(e,\"statisticsAllPurchaseIn\",(function(){return C})),o.d(e,\"getInventoryAll\",(function(){return _})),o.d(e,\"exportGetInventoryAll\",(function(){return w})),o.d(e,\"getInventoryDetailsAll\",(function(){return L})),o.d(e,\"exportGetInventoryDetailsAll\",(function(){return x})),o.d(e,\"searchAllInventoryDetails\",(function(){return M})),o.d(e,\"exportSearchAllInventoryDetails\",(function(){return P})),o.d(e,\"getAllBatch\",(function(){return R})),o.d(e,\"searchAllInventoryBatch\",(function(){return D})),o.d(e,\"getStocktakingInfo\",(function(){return T})),o.d(e,\"updateStocktaking\",(function(){return N})),o.d(e,\"auditStocktaking\",(function(){return W})),o.d(e,\"getAllStocktaking\",(function(){return z})),o.d(e,\"exportGetAllStocktaking\",(function(){return $})),o.d(e,\"searchAllStocktaking\",(function(){return E})),o.d(e,\"exportSearchAllStocktaking\",(function(){return U})),o.d(e,\"addStocktaking\",(function(){return Q})),o.d(e,\"inventoryStatistics\",(function(){return F})),o.d(e,\"exportsInventoryStatistics\",(function(){return J})),o.d(e,\"searchInventoryStatistics\",(function(){return K})),o.d(e,\"StockGetAllPurchase\",(function(){return q})),o.d(e,\"PurchaseInGetAllPurchaseOut\",(function(){return H})),o.d(e,\"getWarehouseInventory\",(function(){return V})),o.d(e,\"addAllocate\",(function(){return X})),o.d(e,\"getInventoryByWarehouseId\",(function(){return Y})),o.d(e,\"getAllAllocate\",(function(){return Z})),o.d(e,\"deleteAllocate\",(function(){return tt})),o.d(e,\"getAllocateInfo\",(function(){return et})),o.d(e,\"updateAllocate\",(function(){return ot})),o.d(e,\"auditAllocate\",(function(){return nt})),o.d(e,\"searchAllocate\",(function(){return at})),o.d(e,\"getBatchByIds\",(function(){return rt})),o.d(e,\"getSkuNum\",(function(){return ut})),o.d(e,\"getMasterSkuNum\",(function(){return dt})),o.d(e,\"addReservoir\",(function(){return ct})),o.d(e,\"getReservoirInfo\",(function(){return lt})),o.d(e,\"getAllReservoir\",(function(){return st})),o.d(e,\"getListReservoir\",(function(){return it})),o.d(e,\"enableReservoir\",(function(){return ft})),o.d(e,\"updateReservoir\",(function(){return pt})),o.d(e,\"deleteReservoir\",(function(){return ht})),o.d(e,\"getAllStorageLocation\",(function(){return gt})),o.d(e,\"addStorageLocation\",(function(){return bt})),o.d(e,\"getStorageLocationInfo\",(function(){return mt})),o.d(e,\"enableStorageLocation\",(function(){return yt})),o.d(e,\"updateStorageLocation\",(function(){return St})),o.d(e,\"getAreaDateBySkuId\",(function(){return Gt})),o.d(e,\"addReportLoss\",(function(){return kt})),o.d(e,\"getAllReportLoss\",(function(){return It})),o.d(e,\"getReportLossInfo\",(function(){return Ot})),o.d(e,\"auditReportLoss\",(function(){return vt})),o.d(e,\"deleteReportLoss\",(function(){return jt})),o.d(e,\"countPurchaseCost\",(function(){return At})),o.d(e,\"exportgetInventoryByWarehouseId\",(function(){return Bt})),o.d(e,\"exportgetAllAllocate\",(function(){return Ct})),o.d(e,\"getPickingInfo\",(function(){return _t})),o.d(e,\"addPicking\",(function(){return wt})),o.d(e,\"getAllPicking\",(function(){return Lt})),o.d(e,\"getAllPickingGoodsDetail\",(function(){return xt}));var n=o(\"b775\");function a(t,e){return Object(n[\"default\"])({url:\"/Stock/Warehouse/getWarehouseInfo/\"+t,method:\"get\",data:e})}function r(t){return Object(n[\"default\"])({url:\"/Stock/Warehouse/getAllWarehouse\",method:\"post\",data:t})}function u(t){return Object(n[\"default\"])({url:\"/Stock/Warehouse/enableWarehouse\",method:\"post\",data:t})}function d(t,e){return Object(n[\"default\"])({url:\"/Stock/Warehouse/updateWarehouse/\"+t,method:\"put\",data:e})}function c(t,e){return Object(n[\"default\"])({url:\"/Stock/Warehouse/deleteWarehouse/\"+t,method:\"delete\",data:e})}function l(t){return Object(n[\"default\"])({url:\"/Stock/Warehouse/addWarehouse\",method:\"post\",data:t})}function s(t){return Object(n[\"default\"])({url:\"/Stock/Warehouse/addWarehouseBeginning\",method:\"post\",data:t})}function i(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/addLogistics\",method:\"post\",data:t})}function f(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/getAllInventoryOut\",method:\"post\",data:t})}function p(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/getAllInventoryOut\",method:\"post\",responseType:\"blob\",data:t})}function h(t,e){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/getInventoryOutInfo/\"+t,method:\"get\",data:e})}function g(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/getInventoryOutInfo\",method:\"post\",data:t})}function b(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/searchAllInventoryOut\",method:\"post\",data:t})}function m(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/updateInventoryOutStatus\",method:\"post\",data:t})}function y(t,e){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/saveOutInventory/\"+t,method:\"put\",data:e})}function S(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/statisticsAllInventoryOut\",method:\"post\",data:t})}function G(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/rejectInventory\",method:\"post\",data:t})}function k(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/deleteDetailByInventoryInId\",method:\"post\",data:t})}function I(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/searchAllInventoryIn\",method:\"post\",data:t})}function O(t,e){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo/\"+t,method:\"put\",data:e})}function v(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo\",method:\"put\",data:t})}function j(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryIn\",method:\"post\",data:t})}function A(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryIn\",method:\"post\",responseType:\"blob\",data:t})}function B(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/updateInventoryInStatus\",method:\"post\",data:t})}function C(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/statisticsAllInventoryIn\",method:\"post\",data:t})}function _(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getInventoryAll\",method:\"post\",data:t})}function w(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getInventoryAll\",responseType:\"blob\",method:\"post\",data:t})}function L(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",method:\"post\",data:t})}function x(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",responseType:\"blob\",method:\"post\",data:t})}function M(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",method:\"post\",data:t})}function P(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",responseType:\"blob\",method:\"post\",data:t})}function R(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getAllBatch\",method:\"post\",data:t})}function D(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryBatch\",method:\"post\",data:t})}function T(t,e){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/getStocktakingInfo/\"+t,method:\"get\",data:e})}function N(t,e){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/updateStocktaking/\"+t,method:\"put\",data:e})}function W(t,e){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/auditStocktaking/\"+t,method:\"put\",data:e})}function z(t){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",method:\"post\",data:t})}function $(t){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",responseType:\"blob\",method:\"post\",data:t})}function E(t){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/searchAllStocktaking\",method:\"post\",data:t})}function U(t){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/searchAllStocktaking\",method:\"post\",responseType:\"blob\",data:t})}function Q(t){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/addStocktaking\",method:\"post\",data:t})}function F(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/inventoryStatistics\",method:\"post\",data:t})}function J(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/inventoryStatistics\",method:\"post\",responseType:\"blob\",data:t})}function K(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/searchInventoryStatistics\",method:\"post\",data:t})}function q(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getAllPurchaseIn\",method:\"post\",data:t})}function H(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryInByAudit\",method:\"post\",data:t})}function V(t,e){return Object(n[\"default\"])({url:\"/Stock/Inventory/getWarehouseInventory/\"+t,method:\"get\",data:e})}function X(t){return Object(n[\"default\"])({url:\"/Stock/Allocate/addAllocate\",method:\"post\",data:t})}function Y(t){return Object(n[\"default\"])({url:\"/stock/Inventory/getInventoryByWarehouseId\",method:\"post\",data:t})}function Z(t){return Object(n[\"default\"])({url:\"/Stock/Allocate/getAllAllocate\",method:\"post\",data:t})}function tt(t,e){return Object(n[\"default\"])({url:\"/Stock/Allocate/deleteAllocate/\"+t,method:\"delete\",data:e})}function et(t,e){return Object(n[\"default\"])({url:\"/Stock/Allocate/getAllocateInfo/\"+t,method:\"get\",data:e})}function ot(t,e){return Object(n[\"default\"])({url:\"/Stock/Allocate/updateAllocate/\"+t,method:\"post\",data:e})}function nt(t,e){return Object(n[\"default\"])({url:\"/Stock/Allocate/auditAllocate/\"+t,method:\"put\",data:e})}function at(t){return Object(n[\"default\"])({url:\"/Stock/Allocate/searchAllocate\",method:\"post\",data:t})}function rt(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getBatchByIds\",method:\"post\",data:t})}function ut(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getSkuNum\",method:\"post\",data:t})}function dt(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getMasterSkuNum\",method:\"post\",data:t})}function ct(t){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/addReservoir\",method:\"post\",data:t})}function lt(t,e){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/getReservoirInfo/\"+t,method:\"get\",data:e})}function st(t){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/getAllReservoir\",method:\"post\",data:t})}function it(t){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/getListReservoir\",method:\"post\",data:t})}function ft(t,e){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/enableReservoir/\"+t,method:\"put\",data:e})}function pt(t,e){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/updateReservoir/\"+t,method:\"put\",data:e})}function ht(t,e){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/deleteReservoir/\"+t,method:\"get\",data:e})}function gt(t){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/getAllStorageLocation\",method:\"post\",data:t})}function bt(t){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/addStorageLocation\",method:\"post\",data:t})}function mt(t,e){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/getStorageLocationInfo/\"+t,method:\"post\",data:e})}function yt(t,e){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/enableStorageLocation/\"+t,method:\"post\",data:e})}function St(t,e){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/updateStorageLocation/\"+t,method:\"post\",data:e})}function Gt(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getAreaDateBySkuId\",method:\"post\",data:t})}function kt(t){return Object(n[\"default\"])({url:\"/Stock/ReportLoss/addReportLoss\",method:\"post\",data:t})}function It(t){return Object(n[\"default\"])({url:\"/Stock/ReportLoss/getAllReportLoss\",method:\"post\",data:t})}function Ot(t,e){return Object(n[\"default\"])({url:\"/Stock/ReportLoss/getReportLossInfo/\"+t,method:\"get\",data:e})}function vt(t,e){return Object(n[\"default\"])({url:\"/Stock/ReportLoss/auditReportLoss/\"+t,method:\"put\",data:e})}function jt(t,e){return Object(n[\"default\"])({url:\"/Stock/ReportLoss/deleteReportLoss/\"+t,method:\"delete\",data:e})}function At(t){return Object(n[\"default\"])({url:\"Stock/InventoryIn/countPurchaseCost\",method:\"post\",data:t})}function Bt(t){return Object(n[\"default\"])({url:\"stock/Inventory/getInventoryByWarehouseId\",responseType:\"blob\",method:\"post\",data:t})}function Ct(t){return Object(n[\"default\"])({url:\"Stock/Allocate/getAllAllocate\",responseType:\"blob\",method:\"post\",data:t})}function _t(t,e){return Object(n[\"default\"])({url:\"Stock/Picking/getPickingInfo/\"+t,method:\"post\",data:e})}function wt(t){return Object(n[\"default\"])({url:\"Stock/Picking/addPicking\",method:\"post\",data:t})}function Lt(t){return Object(n[\"default\"])({url:\"Stock/Picking/getAllPicking\",method:\"post\",data:t})}function xt(t){return Object(n[\"default\"])({url:\"Stock/Picking/getAllPickingGoodsDetail\",method:\"post\",data:t})}},\"4b63\":function(t,e,o){\"use strict\";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"el-dialog\",{attrs:{title:\"选择仓库\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1,visible:t.isShow,width:\"70%\"},on:{close:t.cancel}},[o(\"el-table\",{directives:[{name:\"loading\",rawName:\"v-loading\",value:t.loading,expression:\"loading\"}],ref:\"warehouseTable\",attrs:{data:t.tableData,size:\"small\"},on:{\"row-dblclick\":t.dbSelect,\"selection-change\":t.selectionChange}},[t.isCheck?o(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\",align:\"center\"}}):t._e(),o(\"el-table-column\",{attrs:{prop:\"warehouseCode\",\"show-overflow-tooltip\":\"\",\"min-width\":\"140\",label:\"仓库编码\"}}),o(\"el-table-column\",{attrs:{prop:\"warehouseName\",\"min-width\":\"130\",\"show-overflow-tooltip\":\"\",label:\"仓库名称\"}}),o(\"el-table-column\",{attrs:{prop:\"contactName\",label:\"联系人\",\"min-width\":\"100\"}}),o(\"el-table-column\",{attrs:{prop:\"contactMobile\",\"min-width\":\"100\",label:\"联系方式\"}}),o(\"el-table-column\",{attrs:{prop:\"address\",\"min-width\":\"160\",label:\"仓库地址\",\"show-overflow-tooltip\":\"\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(e.row.contactAddress)+\" \")]}}])}),o(\"el-table-column\",{attrs:{prop:\"status\",label:\"状态\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[5===e.row.enableStatus?o(\"span\",{staticClass:\"success-status\"},[t._v(\" 启用 \")]):o(\"span\",{staticClass:\"danger-status\"},[t._v(\"禁用\")])]}}])}),o(\"el-table-column\",{attrs:{label:\"选择\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\"},on:{click:function(o){return t.dbSelect(e.row)}}})]}}])})],1),o(\"FooterPage\",{attrs:{\"page-size\":t.pre_page,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}},[t.isCheck?o(\"div\",{attrs:{slot:\"btn-div\"},slot:\"btn-div\"},[o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1):t._e()])],1)},a=[],r=o(\"3c48\"),u=o(\"478b\"),d={name:\"ClientListModal\",components:{FooterPage:r[\"default\"]},props:{isShow:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},notId:{type:[Number,String],default:0}},data(){return{tableData:[],choose_data:[],searchForm:{},pre_page:10,page:1,total:0,loading:!1,pageLayout:\"total, prev, pager, next\"}},created(){this.getList()},methods:{async getList(){const{data:t,pageTotal:e}=await Object(u[\"getAllWarehouse\"])({page:this.page,pageSize:this.pre_page,notId:this.notId,enableStatus:5});this.tableData=t,this.total=e;for(let o=0;o<t.length;o++){const e=this.choose_data.find(e=>e.id===t[o].id);e&&this.$nextTick(()=>{this.$refs.warehouseTable.toggleRowSelection(t[o],!0)})}},searchClick(){this.page=1,this.getList()},selectionChange(t){this.choose_data.length?this.choose_data=this.$_common.unique(this.choose_data.concat(t),[\"id\"]):this.choose_data=t},confirm(){this.cancel(),this.$emit(\"confirm\",this.choose_data)},dbSelect(t){this.choose_data=[t],this.$emit(\"confirm\",this.choose_data),this.cancel()},cancel(){this.$emit(\"cancel\")},pageChange(t){this.page=t,this.getList()},sizeChange(t){this.pre_page=t,this.pageChange(1)}}},c=d,l=(o(\"01aa\"),o(\"2877\")),s=Object(l[\"a\"])(c,n,a,!1,null,\"9b04df50\",null);e[\"default\"]=s.exports},\"8f9e\":function(t,e,o){},abf3:function(t,e,o){\"use strict\";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"div\",[\"select\"===t.isType?o(\"el-cascader\",{style:{width:t.width+\"px\"},attrs:{disabled:t.disabled,clearable:t.clearable,filterable:t.filterable,placeholder:t.placeholder,value:t.value,options:t.categoryData,props:t.props,size:t.size},on:{\"expand-change\":t.expandChange,\"visible-change\":t.visibleChange,change:t.change},scopedSlots:t._u([{key:\"default\",fn:function(e){return o(\"div\",{on:{click:t.clickChange}},[t._v(\" \"+t._s(e.data.title)+\" \")])}}],null,!1,4170930534)}):t._e(),t.isShowAdd?o(\"el-button\",{attrs:{size:\"mini\",type:\"text\"},on:{click:t.getList}},[t._v(\" 【刷新】 \")]):t._e(),\"panel\"===t.isType?o(\"el-cascader-panel\",{style:{width:t.width+\"px\"},attrs:{value:t.value,options:t.categoryData,props:t.props,size:t.size},on:{\"expand-change\":t.expandChange,\"visible-change\":t.visibleChange,change:t.change},scopedSlots:t._u([{key:\"default\",fn:function(e){return o(\"div\",{on:{click:t.clickChange}},[t._v(\" \"+t._s(e.data.title)+\" \")])}}],null,!1,4170930534)}):t._e(),\"tree\"===t.isType?o(\"el-tree\",{ref:\"tree\",attrs:{data:t.categoryData,\"show-checkbox\":\"\",\"node-key\":\"id\",props:t.defaultProps},on:{check:t.checkChange}}):t._e()],1)},a=[],r=o(\"c40e\"),u={name:\"GoodsCategory\",model:{prop:\"value\",event:\"change\"},props:{categoryPath:{type:Array,default:()=>[]},num:{type:Number,default:1},value:{type:Array,default:()=>[]},checkedKeys:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},isShowAdd:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isType:{type:String,default:\"select\"},placeholder:{type:String,default:\"请选择商品分类\"},clearable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},width:{type:[Number,String],default:200},size:{type:String,default:\"small\"}},data(){return{add_show:!1,categoryData:[],props:{label:\"title\",value:\"id\"},defaultProps:{children:\"children\",label:\"title\"}}},async created(){this.props.checkStrictly=this.checkStrictly,this.props.multiple=this.multiple,await this.getList(),\"tree\"===this.isType&&this.$refs.tree.setCheckedKeys(this.checkedKeys)},methods:{del(){this.categoryPath.length>1?this.categoryPath.splice(this.num,1):this.$message.warning(\"至少保留一条商品\")},clickChange(t){t.target.parentElement.parentElement.firstChild.click()},async getList(){const{data:t}=await Object(r[\"getAllCategoryPost\"])({enableStatus:5});\"{}\"===JSON.stringify(t)?this.categoryData=[]:this.categoryData=t},checkChange(t,e){this.$emit(\"change\",t,e)},change(t){let e=[];e=this.multiple?t[0]:t;let o=[],n={},a={},r={},u={};e[0]&&(n=this.categoryData.find(t=>t.id===e[0]),o.push(n)),e[1]&&(a=n.children.find(t=>t.id===e[1]),o.push(a)),e[2]&&(r=a.children.find(t=>t.id===e[2]),o.push(r)),e[3]&&(u=r.children.find(t=>t.id===e[3]),o.push(u)),this.$emit(\"change\",t,o)},expandChange(t){this.$emit(\"expandChange\",t)},visibleChange(t){this.$emit(\"visibleChange\",t)}}},d=u,c=o(\"2877\"),l=Object(c[\"a\"])(d,n,a,!1,null,\"12aafc07\",null);e[\"default\"]=l.exports},c40e:function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getAllGoodsBasicBySku\",(function(){return a})),o.d(e,\"goodsImport\",(function(){return r})),o.d(e,\"goodsQuickImport\",(function(){return u})),o.d(e,\"searchBasic\",(function(){return d})),o.d(e,\"exportSearchBasic\",(function(){return c})),o.d(e,\"defineSpec\",(function(){return l})),o.d(e,\"addBasicAndPublishGoods\",(function(){return s})),o.d(e,\"editQuickGoods\",(function(){return i})),o.d(e,\"getQuickGoodsInfo\",(function(){return f})),o.d(e,\"addGoodsBasic\",(function(){return p})),o.d(e,\"getAllGoodsBasic\",(function(){return h})),o.d(e,\"exportGetAllGoodsBasic\",(function(){return g})),o.d(e,\"getGoodsBasicInfoById\",(function(){return b})),o.d(e,\"getGoodsByCategory\",(function(){return m})),o.d(e,\"updateEnableStatus\",(function(){return y})),o.d(e,\"delGoodsBasic\",(function(){return S})),o.d(e,\"editGoodsBasic\",(function(){return G})),o.d(e,\"getGoodsBasicOfShopId\",(function(){return k})),o.d(e,\"updateCategory\",(function(){return I})),o.d(e,\"BatchUnloading\",(function(){return O})),o.d(e,\"setTop\",(function(){return v})),o.d(e,\"setSalesNumBatch\",(function(){return j})),o.d(e,\"setSalesNum\",(function(){return A})),o.d(e,\"getAllUnit\",(function(){return B})),o.d(e,\"addUnit\",(function(){return C})),o.d(e,\"editUnit\",(function(){return _})),o.d(e,\"updateEnablesStatus\",(function(){return w})),o.d(e,\"delUnit\",(function(){return L})),o.d(e,\"SpecManageAdd\",(function(){return x})),o.d(e,\"SpecManageedit\",(function(){return M})),o.d(e,\"SpecManagedel\",(function(){return P})),o.d(e,\"SpecManageinfo\",(function(){return R})),o.d(e,\"SpecManagegetAll\",(function(){return D})),o.d(e,\"getAllGoodsBySku\",(function(){return T})),o.d(e,\"searchGood\",(function(){return N})),o.d(e,\"exportSearchGood\",(function(){return W})),o.d(e,\"addGoods\",(function(){return z})),o.d(e,\"getGoodsInfo\",(function(){return $})),o.d(e,\"delGoods\",(function(){return E})),o.d(e,\"editGoods\",(function(){return U})),o.d(e,\"getAllGoods\",(function(){return Q})),o.d(e,\"getAllGoodsList\",(function(){return F})),o.d(e,\"exportGetAllGoodsList\",(function(){return J})),o.d(e,\"exportGetAllGoods\",(function(){return K})),o.d(e,\"auditGoods\",(function(){return q})),o.d(e,\"getGoodsByCondition\",(function(){return H})),o.d(e,\"GoodsUpdateEnableStatus\",(function(){return V})),o.d(e,\"batchGoodsExpress\",(function(){return X})),o.d(e,\"addBrand\",(function(){return Y})),o.d(e,\"editBrand\",(function(){return Z})),o.d(e,\"getBrandInfoById\",(function(){return tt})),o.d(e,\"updateBrandStatus\",(function(){return et})),o.d(e,\"delBrand\",(function(){return ot})),o.d(e,\"getAllBrand\",(function(){return nt})),o.d(e,\"setBrand\",(function(){return at})),o.d(e,\"setSku\",(function(){return rt})),o.d(e,\"setNoSalesShop\",(function(){return ut})),o.d(e,\"addCategory\",(function(){return dt})),o.d(e,\"updateCategoryStatus\",(function(){return ct})),o.d(e,\"getCategoryInfoById\",(function(){return lt})),o.d(e,\"getAllCategory\",(function(){return st})),o.d(e,\"delCategory\",(function(){return it})),o.d(e,\"editCategory\",(function(){return ft})),o.d(e,\"getAllCategoryPost\",(function(){return pt})),o.d(e,\"getGoodsByBarCode\",(function(){return ht})),o.d(e,\"getRelMap\",(function(){return gt})),o.d(e,\"getPriceTrend\",(function(){return bt})),o.d(e,\"batchSetDistribution\",(function(){return mt})),o.d(e,\"addGoodsSupport\",(function(){return yt})),o.d(e,\"editGoodsSupport\",(function(){return St})),o.d(e,\"delGoodsSupport\",(function(){return Gt})),o.d(e,\"getAllGoodsSupport\",(function(){return kt})),o.d(e,\"getGoodsSupportInfo\",(function(){return It})),o.d(e,\"getAllGoodsGroups\",(function(){return Ot})),o.d(e,\"addGoodsGroups\",(function(){return vt})),o.d(e,\"enableGoodsGroups\",(function(){return jt})),o.d(e,\"updateGoodsGroups\",(function(){return At})),o.d(e,\"getReservoirInfo\",(function(){return Bt})),o.d(e,\"deleteGoodsGroups\",(function(){return Ct})),o.d(e,\"setSort\",(function(){return _t}));var n=o(\"b775\");function a(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasicBySku\",method:\"post\",data:t})}function r(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/goodsImport\",method:\"post\",data:t})}function u(t){return Object(n[\"default\"])({url:\"/Goods/QuickGoods/goodsQuickImport\",method:\"post\",data:t})}function d(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",data:t})}function c(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/search\",method:\"post\",responseType:\"blob\",data:t})}function l(t){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/defineSpec\",method:\"post\",data:t})}function s(t){return Object(n[\"default\"])({url:\"/Goods/QuickGoods/addBasicAndPublishGoods\",method:\"post\",data:t})}function i(t){return Object(n[\"default\"])({url:\"/Goods/QuickGoods/editQuickGoods\",method:\"post\",data:t})}function f(t,e){return Object(n[\"default\"])({url:\"/Goods/QuickGoods/getQuickGoodsInfo/\"+t,method:\"post\",data:e})}function p(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/addGoodsBasic\",method:\"post\",data:t})}function h(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",method:\"post\",data:t})}function g(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasic\",responseType:\"blob\",method:\"post\",data:t})}function b(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicInfoById/\"+t,method:\"post\",data:e})}function m(t){return Object(n[\"default\"])({url:\"/Goods/ApiGoods/getGoodsByCategory\",method:\"post\",data:t})}function y(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateEnableStatus\",method:\"put\",data:t})}function S(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/delGoodsBasic/\"+t,method:\"delete\",data:e})}function G(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/editGoodsBasic/\"+t,method:\"put\",data:e})}function k(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/getGoodsBasicOfShopId\",method:\"post\",data:t})}function I(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateCategory\",method:\"post\",data:t})}function O(t){return Object(n[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function v(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/setTop/\"+t,method:\"get\",data:e})}function j(t){return Object(n[\"default\"])({url:\"/Goods/Goods/setSalesNumBatch\",method:\"post\",data:t})}function A(t){return Object(n[\"default\"])({url:\"/Goods/Goods/setSalesNum\",method:\"post\",data:t})}function B(t){return Object(n[\"default\"])({url:\"/GoodsManage/Units/getAll\",method:\"post\",data:t})}function C(t){return Object(n[\"default\"])({url:\"/GoodsManage/Units/add\",method:\"post\",data:t})}function _(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/Units/edit/\"+t,method:\"put\",data:e})}function w(t){return Object(n[\"default\"])({url:\"/GoodsManage/Units/updateEnablesStatus\",method:\"put\",data:t})}function L(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/Units/del/\"+t,method:\"delete\",data:e})}function x(t){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/add\",method:\"post\",data:t})}function M(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/edit/\"+t,method:\"post\",data:e})}function P(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/del/\"+t,method:\"delete\",data:e})}function R(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/info/\"+t,method:\"get\",data:e})}function D(t){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/getAll\",method:\"post\",data:t})}function T(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getAllGoodsBySku\",method:\"post\",data:t})}function N(t){return Object(n[\"default\"])({url:\"/Goods/Goods/search\",method:\"post\",data:t})}function W(t){return Object(n[\"default\"])({url:\"/Goods/Goods/search\",responseType:\"blob\",method:\"post\",data:t})}function z(t){return Object(n[\"default\"])({url:\"/Goods/Goods/addGoods\",method:\"post\",data:t})}function $(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/getGoodsInfo/\"+t,method:\"post\",data:e})}function E(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/delGoods/\"+t,method:\"get\",data:e})}function U(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/editGoods/\"+t,method:\"put\",data:e})}function Q(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",data:t})}function F(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",data:t})}function J(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getAllGoodsList\",method:\"post\",responseType:\"blob\",data:t})}function K(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getAllGoods\",method:\"post\",responseType:\"blob\",data:t})}function q(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/audit/\"+t,method:\"put\",data:e})}function H(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getGoodsByCondition\",method:\"post\",data:t})}function V(t){return Object(n[\"default\"])({url:\"/Goods/Goods/updateEnableStatus\",method:\"post\",data:t})}function X(t){return Object(n[\"default\"])({url:\"/Goods/Goods/batchGoodsExpress\",method:\"post\",data:t})}function Y(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBrand/addBrand\",method:\"post\",data:t})}function Z(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBrand/editBrand/\"+t,method:\"put\",data:e})}function tt(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBrand/getBrandInfoById/\"+t,method:\"put\",data:e})}function et(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBrand/updateBrandStatus/\"+t,method:\"put\",data:e})}function ot(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBrand/delBrand/\"+t,method:\"delete\",data:e})}function nt(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBrand/getAllBrand\",method:\"post\",data:t})}function at(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/setBrand\",method:\"put\",data:t})}function rt(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/setSku\",method:\"put\",data:t})}function ut(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/setNoSalesShop\",method:\"put\",data:t})}function dt(t){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/addCategory\",method:\"post\",data:t})}function ct(t,e){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/updateCategoryStatus/\"+t,method:\"put\",data:e})}function lt(t,e){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getCategoryInfoById/\"+t,method:\"get\",data:e})}function st(t){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"get\",data:t})}function it(t,e){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/delCategory/\"+t,method:\"delete\",data:e})}function ft(t,e){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/editCategory/\"+t,method:\"put\",data:e})}function pt(t){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getAllCategory\",method:\"post\",data:t})}function ht(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getGoodsByBarCode\",method:\"post\",data:t})}function gt(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getRelMap\",method:\"post\",data:t})}function bt(t,e){return Object(n[\"default\"])({url:\"Goods/Goods/getPriceTrend/\"+t,method:\"POST\",data:e})}function mt(t){return Object(n[\"default\"])({url:\"Goods/Goods/batchSetDistribution\",method:\"POST\",data:t})}function yt(t){return Object(n[\"default\"])({url:\"Goods/GoodsSupport/addGoodsSupport\",method:\"post\",data:t})}function St(t){return Object(n[\"default\"])({url:\"/Goods/GoodsSupport/editGoodsSupport\",method:\"post\",data:t})}function Gt(t,e){return Object(n[\"default\"])({url:\"Goods/GoodsSupport/delGoodsSupport/\"+t,method:\"post\",data:e})}function kt(t){return Object(n[\"default\"])({url:\"Goods/GoodsSupport/getAllGoodsSupport\",method:\"post\",data:t})}function It(t,e){return Object(n[\"default\"])({url:\"/Goods/GoodsSupport/getGoodsSupportInfo/\"+t,method:\"post\",data:e})}function Ot(t){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/getAllGoodsGroups\",method:\"post\",data:t})}function vt(t){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/addGoodsGroups\",method:\"post\",data:t})}function jt(t,e){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/enableGoodsGroups/\"+t,method:\"post\",data:e})}function At(t,e){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/updateGoodsGroups/\"+t,method:\"post\",data:e})}function Bt(t,e){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/getReservoirInfo/\"+t,method:\"post\",data:e})}function Ct(t,e){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/deleteGoodsGroups/\"+t,method:\"post\",data:e})}function _t(t){return Object(n[\"default\"])({url:\"Goods/Goods/setSort\",method:\"post\",data:t})}},dc57c:function(t,e,o){\"use strict\";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o(\"div\",[o(\"el-dialog\",{attrs:{\"close-on-press-escape\":!1,\"close-on-click-modal\":!1,title:\"商品库\",visible:t.isShow,width:\"60%\"},on:{close:t.cancel}},[o(\"div\",{staticClass:\"clearfix\",staticStyle:{\"padding-bottom\":\"10px\"}},[o(\"el-input\",{staticStyle:{width:\"240px\"},attrs:{size:\"small\",clearable:\"\",placeholder:\"请输入商品名称\"},on:{clear:function(e){return t.pageChange(1)}},nativeOn:{keyup:function(e){return!e.type.indexOf(\"key\")&&t._k(e.keyCode,\"enter\",13,e.key,\"Enter\")?null:t.pageChange(1)}},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:\"keyword\"}},[o(\"el-button\",{attrs:{slot:\"append\"},on:{click:function(e){return t.pageChange(1)}},slot:\"append\"},[o(\"i\",{staticClass:\"el-icon-search\"})])],1),o(\"span\",{staticStyle:{display:\"inline-block\",\"margin-left\":\"10px\"}},[o(\"GoodsCategory\",{attrs:{width:160,\"check-strictly\":\"\",clearable:\"\",size:\"small\"},on:{change:t.goodsChane},model:{value:t.categoryId,callback:function(e){t.categoryId=e},expression:\"categoryId\"}})],1)],1),o(\"el-table\",{ref:\"goods_list\",attrs:{data:t.goods_list,size:\"small\"},on:{\"selection-change\":t.selectionChange,\"row-dblclick\":t.selGoods}},[t.isCheck?o(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\"}}):t._e(),o(\"el-table-column\",{attrs:{prop:\"materielCode\",label:\"商品编码\",\"min-width\":\"140\"}}),o(\"el-table-column\",{attrs:{label:\"商品名称\",fixed:\"left\",prop:\"materielName\",\"show-overflow-tooltip\":\"\",\"min-width\":\"140\"}}),o(\"el-table-column\",{attrs:{label:\"规格\",\"min-width\":\"140\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(e.row.unitName)+\"; \"+t._s(e.row.skuName)+\" \")]}}])}),o(\"el-table-column\",{attrs:{prop:\"inventoryNum\",label:\"库存数量\",\"min-width\":\"120\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.inventoryNum))+\" \")]}}])}),o(\"el-table-column\",{attrs:{prop:\"costPrice\",\"min-width\":\"120\",label:\"平均成本\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.costPrice))+\" \")]}}])}),o(\"el-table-column\",{attrs:{prop:\"total\",label:\"总成本\",\"min-width\":\"120\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.total))+\" \")]}}])}),o(\"el-table-column\",{attrs:{label:\"选择商品\",fixed:\"right\",width:\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"el-button\",{attrs:{size:\"mini\",icon:\"el-icon-check\"},on:{click:function(o){return t.selGoods(e.row)}}})]}}])})],1),o(\"div\",{staticClass:\"footer clearfix\",staticStyle:{\"padding-bottom\":\"10px\"}},[t.isCheck?o(\"div\",{staticClass:\"float_left\",staticStyle:{\"padding-top\":\"20px\"}},[o(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\" 确定 \")]),o(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1):t._e(),o(\"div\",{staticClass:\"float_right\"},[o(\"FooterPage\",{attrs:{\"page-size\":t.pre_page,\"total-page\":t.total,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total=e},\"update:total-page\":function(e){t.total=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}})],1)])],1)],1)},a=[],r=o(\"478b\"),u=o(\"abf3\"),d={name:\"GoodsWarehouse\",components:{GoodsCategory:u[\"default\"]},props:{isShow:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},warehouseId:{type:Number,default:0}},data(){return{choose_data:[],goods_list:[],loading:!1,total:0,pre_page:10,page:1,pageLayout:\"total, prev, pager, next\",keyword:\"\",categoryId:[]}},created(){this.warehouseId?this.getList():this.$message(\"请选择仓库\")},methods:{goodsChane(t){this.pageChange(1)},async getList(){const{data:t,pageTotal:e}=await Object(r[\"getInventoryByWarehouseId\"])({page:this.page,pageSize:this.pre_page,warehouseId:this.warehouseId,search:this.keyword,categoryId:this.categoryId[this.categoryId.length-1]});this.goods_list=t,this.total=e},pageChange(t){this.page=t,this.getList()},sizeChange(t){this.pre_page=t,this.pageChange(1)},selectionChange(t){this.choose_data=t},cancel(){this.$emit(\"cancel\")},confirm(){this.cancel(),this.$emit(\"confirm\",this.choose_data)},selGoods(t){this.cancel(),this.$emit(\"confirm\",[t])}}},c=d,l=o(\"2877\"),s=Object(l[\"a\"])(c,n,a,!1,null,\"59f077fe\",null);e[\"default\"]=s.exports},ec72:function(t,e,o){\"use strict\";o(\"0918\")}}]);","extractedComments":[]}