| 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-d6368b3e\"],{2477:function(t,e,o){\"use strict\";o(\"61da\")},\"478b\":function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getWarehouseInfo\",(function(){return r})),o.d(e,\"getAllWarehouse\",(function(){return a})),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 s})),o.d(e,\"addWarehouseBeginning\",(function(){return l})),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 y})),o.d(e,\"saveOutInventory\",(function(){return m})),o.d(e,\"statisticsAllSaleOut\",(function(){return G})),o.d(e,\"rejectInventory\",(function(){return S})),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 j})),o.d(e,\"getAllPurchaseIn\",(function(){return v})),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 M})),o.d(e,\"exportGetInventoryDetailsAll\",(function(){return P})),o.d(e,\"searchAllInventoryDetails\",(function(){return W})),o.d(e,\"exportSearchAllInventoryDetails\",(function(){return L})),o.d(e,\"getAllBatch\",(function(){return R})),o.d(e,\"searchAllInventoryBatch\",(function(){return x})),o.d(e,\"getStocktakingInfo\",(function(){return T})),o.d(e,\"updateStocktaking\",(function(){return D})),o.d(e,\"auditStocktaking\",(function(){return N})),o.d(e,\"getAllStocktaking\",(function(){return z})),o.d(e,\"exportGetAllStocktaking\",(function(){return E})),o.d(e,\"searchAllStocktaking\",(function(){return $})),o.d(e,\"exportSearchAllStocktaking\",(function(){return U})),o.d(e,\"addStocktaking\",(function(){return Q})),o.d(e,\"inventoryStatistics\",(function(){return q})),o.d(e,\"exportsInventoryStatistics\",(function(){return J})),o.d(e,\"searchInventoryStatistics\",(function(){return K})),o.d(e,\"StockGetAllPurchase\",(function(){return V})),o.d(e,\"PurchaseInGetAllPurchaseOut\",(function(){return F})),o.d(e,\"getWarehouseInventory\",(function(){return H})),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 rt})),o.d(e,\"getBatchByIds\",(function(){return at})),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 st})),o.d(e,\"getAllReservoir\",(function(){return lt})),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 yt})),o.d(e,\"enableStorageLocation\",(function(){return mt})),o.d(e,\"updateStorageLocation\",(function(){return Gt})),o.d(e,\"getAreaDateBySkuId\",(function(){return St})),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 jt})),o.d(e,\"deleteReportLoss\",(function(){return vt})),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 Mt})),o.d(e,\"getAllPickingGoodsDetail\",(function(){return Pt}));var n=o(\"b775\");function r(t,e){return Object(n[\"default\"])({url:\"/Stock/Warehouse/getWarehouseInfo/\"+t,method:\"get\",data:e})}function a(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 s(t){return Object(n[\"default\"])({url:\"/Stock/Warehouse/addWarehouse\",method:\"post\",data:t})}function l(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 y(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/updateInventoryOutStatus\",method:\"post\",data:t})}function m(t,e){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/saveOutInventory/\"+t,method:\"put\",data:e})}function G(t){return Object(n[\"default\"])({url:\"/Stock/InventoryOut/statisticsAllInventoryOut\",method:\"post\",data:t})}function S(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 j(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo\",method:\"put\",data:t})}function v(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 M(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",method:\"post\",data:t})}function P(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",responseType:\"blob\",method:\"post\",data:t})}function W(t){return Object(n[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",method:\"post\",data:t})}function L(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 x(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 D(t,e){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/updateStocktaking/\"+t,method:\"put\",data:e})}function N(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 E(t){return Object(n[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",responseType:\"blob\",method:\"post\",data:t})}function $(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 q(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 V(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getAllPurchaseIn\",method:\"post\",data:t})}function F(t){return Object(n[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryInByAudit\",method:\"post\",data:t})}function H(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 rt(t){return Object(n[\"default\"])({url:\"/Stock/Allocate/searchAllocate\",method:\"post\",data:t})}function at(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 st(t,e){return Object(n[\"default\"])({url:\"/Stock/ReservoirArea/getReservoirInfo/\"+t,method:\"get\",data:e})}function lt(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 yt(t,e){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/getStorageLocationInfo/\"+t,method:\"post\",data:e})}function mt(t,e){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/enableStorageLocation/\"+t,method:\"post\",data:e})}function Gt(t,e){return Object(n[\"default\"])({url:\"/Stock/StorageLocation/updateStorageLocation/\"+t,method:\"post\",data:e})}function St(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 jt(t,e){return Object(n[\"default\"])({url:\"/Stock/ReportLoss/auditReportLoss/\"+t,method:\"put\",data:e})}function vt(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 Mt(t){return Object(n[\"default\"])({url:\"Stock/Picking/getAllPicking\",method:\"post\",data:t})}function Pt(t){return Object(n[\"default\"])({url:\"Stock/Picking/getAllPickingGoodsDetail\",method:\"post\",data:t})}},\"61da\":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)},r=[],a=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(a[\"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={},r={},a={},u={};e[0]&&(n=this.categoryData.find(t=>t.id===e[0]),o.push(n)),e[1]&&(r=n.children.find(t=>t.id===e[1]),o.push(r)),e[2]&&(a=r.children.find(t=>t.id===e[2]),o.push(a)),e[3]&&(u=a.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\"),s=Object(c[\"a\"])(d,n,r,!1,null,\"12aafc07\",null);e[\"default\"]=s.exports},c40e:function(t,e,o){\"use strict\";o.r(e),o.d(e,\"getAllGoodsBasicBySku\",(function(){return r})),o.d(e,\"goodsImport\",(function(){return a})),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 s})),o.d(e,\"addBasicAndPublishGoods\",(function(){return l})),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 y})),o.d(e,\"updateEnableStatus\",(function(){return m})),o.d(e,\"delGoodsBasic\",(function(){return G})),o.d(e,\"editGoodsBasic\",(function(){return S})),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 j})),o.d(e,\"setSalesNumBatch\",(function(){return v})),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 M})),o.d(e,\"SpecManageAdd\",(function(){return P})),o.d(e,\"SpecManageedit\",(function(){return W})),o.d(e,\"SpecManagedel\",(function(){return L})),o.d(e,\"SpecManageinfo\",(function(){return R})),o.d(e,\"SpecManagegetAll\",(function(){return x})),o.d(e,\"getAllGoodsBySku\",(function(){return T})),o.d(e,\"searchGood\",(function(){return D})),o.d(e,\"exportSearchGood\",(function(){return N})),o.d(e,\"addGoods\",(function(){return z})),o.d(e,\"getGoodsInfo\",(function(){return E})),o.d(e,\"delGoods\",(function(){return $})),o.d(e,\"editGoods\",(function(){return U})),o.d(e,\"getAllGoods\",(function(){return Q})),o.d(e,\"getAllGoodsList\",(function(){return q})),o.d(e,\"exportGetAllGoodsList\",(function(){return J})),o.d(e,\"exportGetAllGoods\",(function(){return K})),o.d(e,\"auditGoods\",(function(){return V})),o.d(e,\"getGoodsByCondition\",(function(){return F})),o.d(e,\"GoodsUpdateEnableStatus\",(function(){return H})),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 rt})),o.d(e,\"setSku\",(function(){return at})),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 st})),o.d(e,\"getAllCategory\",(function(){return lt})),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 yt})),o.d(e,\"addGoodsSupport\",(function(){return mt})),o.d(e,\"editGoodsSupport\",(function(){return Gt})),o.d(e,\"delGoodsSupport\",(function(){return St})),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 jt})),o.d(e,\"enableGoodsGroups\",(function(){return vt})),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 r(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/getAllGoodsBasicBySku\",method:\"post\",data:t})}function a(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 s(t){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/defineSpec\",method:\"post\",data:t})}function l(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 y(t){return Object(n[\"default\"])({url:\"/Goods/ApiGoods/getGoodsByCategory\",method:\"post\",data:t})}function m(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/updateEnableStatus\",method:\"put\",data:t})}function G(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/delGoodsBasic/\"+t,method:\"delete\",data:e})}function S(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 j(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/setTop/\"+t,method:\"get\",data:e})}function v(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 M(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/Units/del/\"+t,method:\"delete\",data:e})}function P(t){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/add\",method:\"post\",data:t})}function W(t,e){return Object(n[\"default\"])({url:\"/GoodsManage/SpecManage/edit/\"+t,method:\"post\",data:e})}function L(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 x(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 D(t){return Object(n[\"default\"])({url:\"/Goods/Goods/search\",method:\"post\",data:t})}function N(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 E(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/getGoodsInfo/\"+t,method:\"post\",data:e})}function $(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 q(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 V(t,e){return Object(n[\"default\"])({url:\"/Goods/Goods/audit/\"+t,method:\"put\",data:e})}function F(t){return Object(n[\"default\"])({url:\"/Goods/Goods/getGoodsByCondition\",method:\"post\",data:t})}function H(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 rt(t){return Object(n[\"default\"])({url:\"/GoodsManage/GoodsBasic/setBrand\",method:\"put\",data:t})}function at(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 st(t,e){return Object(n[\"default\"])({url:\"/GoodsCategory/GoodsCategory/getCategoryInfoById/\"+t,method:\"get\",data:e})}function lt(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 yt(t){return Object(n[\"default\"])({url:\"Goods/Goods/batchSetDistribution\",method:\"POST\",data:t})}function mt(t){return Object(n[\"default\"])({url:\"Goods/GoodsSupport/addGoodsSupport\",method:\"post\",data:t})}function Gt(t){return Object(n[\"default\"])({url:\"/Goods/GoodsSupport/editGoodsSupport\",method:\"post\",data:t})}function St(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 jt(t){return Object(n[\"default\"])({url:\"Goods/GoodsGroups/addGoodsGroups\",method:\"post\",data:t})}function vt(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})}},cb56: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(\"ContainerQuery\",[t.$accessCheck(t.$Access.queryGetInventoryAll)?o(\"div\",{attrs:{slot:\"left\"},slot:\"left\"},[o(\"el-button\",{attrs:{size:\"small\",type:\"primary\",plain:\"\"},on:{click:function(e){return t.getInventoryByWarehouseId(1)}}},[t._v(\" 导出 \")])],1):t._e(),o(\"div\",{attrs:{slot:\"more\"},slot:\"more\"},[o(\"el-form\",{attrs:{inline:\"\",size:\"small\"}},[o(\"el-form-item\",[o(\"el-input\",{staticStyle:{width:\"220px\"},attrs:{placeholder:\"商品名称\",clearable:\"\"},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\",icon:\"el-icon-search\"},on:{click:function(e){return t.pageChange(1)}},slot:\"append\"})],1)],1),o(\"el-form-item\",[o(\"GoodsCategory\",{attrs:{\"check-strictly\":\"\",clearable:\"\",size:\"small\",width:\"150\"},on:{change:t.categoryChange},model:{value:t.searchCate.categoryPath,callback:function(e){t.$set(t.searchCate,\"categoryPath\",e)},expression:\"searchCate.categoryPath\"}})],1),o(\"el-form-item\",[o(\"el-select\",{attrs:{filterable:\"\",placeholder:\"请选择仓库\"},on:{change:function(e){return t.pageChange(1)}},model:{value:t.warehouseId,callback:function(e){t.warehouseId=e},expression:\"warehouseId\"}},t._l(t.warehouse_list,(function(t){return o(\"el-option\",{key:t.id,attrs:{label:t.warehouseName,value:t.id}})})),1)],1)],1)],1),o(\"el-table\",{attrs:{data:t.stock_list}},[o(\"el-table-column\",{attrs:{prop:\"materielCode\",label:\"商品编码\",fixed:\"left\",\"min-width\":\"140\"}}),o(\"el-table-column\",{attrs:{prop:\"image\",label:\"商品\",\"min-width\":\"210\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[o(\"div\",{staticClass:\"clearfix\"},[e.row.images&&e.row.images.length?o(\"div\",{staticClass:\"float_left\"},[o(\"el-image\",{attrs:{src:e.row.images[0],fit:\"cover\"}})],1):t._e(),o(\"div\",{staticClass:\"float_left goods-name-view\"},[t._v(\" \"+t._s(e.row.materielName)+\" \")])])]}}])}),o(\"el-table-column\",{attrs:{prop:\"unitName\",label:\"规格\",\"min-width\":\"80\"},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\":\"100\"},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:\"skuValue\",label:\"换算比例\",\"min-width\":\"120\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[4===e.row.isEq?o(\"span\",[t._v(\" \"+t._s(e.row.skuValue||\"--\")+\" \")]):o(\"span\",[t._v(\"--\")])]}}])}),o(\"el-table-column\",{attrs:{prop:\"skuNum\",label:\"换算库存\",\"min-width\":\"80\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[5===e.row.isEq?o(\"span\",[t._v(\" \"+t._s(t.$_common.formatNub(e.row.otherNum))+\" \")]):o(\"span\",[t._v(\" \"+t._s(e.row.skuNum)+\" \")])]}}])})],1),o(\"FooterPage\",{attrs:{\"page-size\":t.pageSize,\"total-page\":t.total_data,\"current-page\":t.page},on:{\"update:totalPage\":function(e){t.total_data=e},\"update:total-page\":function(e){t.total_data=e},\"update:currentPage\":function(e){t.page=e},\"update:current-page\":function(e){t.page=e},pageChange:t.pageChange,sizeChange:t.sizeChange}})],1)},r=[],a=o(\"abf3\"),u=o(\"478b\"),d=o(\"2f62\"),c={name:\"WarehouseInventory\",components:{GoodsCategory:a[\"default\"]},data(){return{queryId:0,goodsId:\"\",skuId:\"\",keyWord:\"\",warehouseId:\"\",categoryId:\"\",category_props:{value:\"category_id\",label:\"category_name\",children:\"children\"},searchCate:{categoryPath:[]},dialogVisible:!1,page:1,pageSize:10,total_data:1,amount:0,count:0,title_data:\"\",goods_list:{goodsId:\"\",goodsName:\"\"},stock_list:[],warehouse_list:[],checked:\"\",stockInquiryFlag:!1,stockInquiry_data:[],stockInquiry_loading:!1,merchantId:\"\"}},computed:{...Object(d[\"c\"])({storeData:\"MUser/storeData\"})},async created(){3===this.systemType&&(this.merchantId=this.storeData.merchantData.id),await this.getAllWarehouse(),await this.getInventoryByWarehouseId()},activated(){this.$_isInit()||this.getInventoryByWarehouseId()},methods:{categoryChange(t){this.categoryId=t[t.length-1],this.pageChange(1)},async getAllWarehouse(){const{data:t}=await Object(u[\"getAllWarehouse\"])({page:1,pageSize:999});this.warehouse_list=t,this.warehouseId=t[0].id},selMoreGoods(t){t.length>1?this.$message({type:\"error\",message:\"请选择一个品牌!\"}):(this.goods_list.goodsId=t[0].id,this.goods_list.goodsName=t[0].title)},pageChange(t){this.page=t,this.getInventoryByWarehouseId()},sizeChange(t){this.pageSize=t,this.pageChange(1)},async getInventoryByWarehouseId(t){let e={merchantId:this.merchantId,search:this.keyWord,warehouseId:this.warehouseId,page:this.page,pageSize:this.pageSize,categoryId:this.categoryId};if(t){e.export=1;await Object(u[\"exportgetInventoryByWarehouseId\"])({...e})}else{const t=await Object(u[\"getInventoryByWarehouseId\"])({...e});this.stock_list=t.data,this.total_data=t.pageTotal}}}},s=c,l=(o(\"2477\"),o(\"2877\")),i=Object(l[\"a\"])(s,n,r,!1,null,\"49470072\",null);e[\"default\"]=i.exports}}]);","extractedComments":[]}
|