| 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-2d2be6e6\"],{4699:function(t,e,n){},\"478b\":function(t,e,n){\"use strict\";n.r(e),n.d(e,\"getWarehouseInfo\",(function(){return a})),n.d(e,\"getAllWarehouse\",(function(){return r})),n.d(e,\"enableWarehouse\",(function(){return u})),n.d(e,\"updateWarehouse\",(function(){return l})),n.d(e,\"deleteWarehouse\",(function(){return c})),n.d(e,\"addWarehouse\",(function(){return s})),n.d(e,\"addWarehouseBeginning\",(function(){return i})),n.d(e,\"stockaddLogistics\",(function(){return d})),n.d(e,\"getAllSaleOut\",(function(){return f})),n.d(e,\"exportGetAllSaleOut\",(function(){return h})),n.d(e,\"getSaleOutInfo\",(function(){return p})),n.d(e,\"getSaleOutInfoT\",(function(){return g})),n.d(e,\"searchAllSaleOut\",(function(){return m})),n.d(e,\"updateSaleOutStatus\",(function(){return k})),n.d(e,\"saveOutInventory\",(function(){return b})),n.d(e,\"statisticsAllSaleOut\",(function(){return S})),n.d(e,\"rejectInventory\",(function(){return y})),n.d(e,\"deleteDetailByInventoryInId\",(function(){return I})),n.d(e,\"searchAllPurchaseIn\",(function(){return v})),n.d(e,\"getPurchaseInInfo\",(function(){return A})),n.d(e,\"getPurchaseInInfoT\",(function(){return O})),n.d(e,\"getAllPurchaseIn\",(function(){return _})),n.d(e,\"exportsGetAllPurchaseIn\",(function(){return j})),n.d(e,\"updatePurchaseInStatus\",(function(){return w})),n.d(e,\"statisticsAllPurchaseIn\",(function(){return L})),n.d(e,\"getInventoryAll\",(function(){return F})),n.d(e,\"exportGetInventoryAll\",(function(){return W})),n.d(e,\"getInventoryDetailsAll\",(function(){return x})),n.d(e,\"exportGetInventoryDetailsAll\",(function(){return P})),n.d(e,\"searchAllInventoryDetails\",(function(){return R})),n.d(e,\"exportSearchAllInventoryDetails\",(function(){return $})),n.d(e,\"getAllBatch\",(function(){return C})),n.d(e,\"searchAllInventoryBatch\",(function(){return D})),n.d(e,\"getStocktakingInfo\",(function(){return B})),n.d(e,\"updateStocktaking\",(function(){return N})),n.d(e,\"auditStocktaking\",(function(){return T})),n.d(e,\"getAllStocktaking\",(function(){return G})),n.d(e,\"exportGetAllStocktaking\",(function(){return z})),n.d(e,\"searchAllStocktaking\",(function(){return M})),n.d(e,\"exportSearchAllStocktaking\",(function(){return U})),n.d(e,\"addStocktaking\",(function(){return q})),n.d(e,\"inventoryStatistics\",(function(){return E})),n.d(e,\"exportsInventoryStatistics\",(function(){return J})),n.d(e,\"searchInventoryStatistics\",(function(){return Q})),n.d(e,\"StockGetAllPurchase\",(function(){return H})),n.d(e,\"PurchaseInGetAllPurchaseOut\",(function(){return K})),n.d(e,\"getWarehouseInventory\",(function(){return V})),n.d(e,\"addAllocate\",(function(){return X})),n.d(e,\"getInventoryByWarehouseId\",(function(){return Y})),n.d(e,\"getAllAllocate\",(function(){return Z})),n.d(e,\"deleteAllocate\",(function(){return tt})),n.d(e,\"getAllocateInfo\",(function(){return et})),n.d(e,\"updateAllocate\",(function(){return nt})),n.d(e,\"auditAllocate\",(function(){return ot})),n.d(e,\"searchAllocate\",(function(){return at})),n.d(e,\"getBatchByIds\",(function(){return rt})),n.d(e,\"getSkuNum\",(function(){return ut})),n.d(e,\"getMasterSkuNum\",(function(){return lt})),n.d(e,\"addReservoir\",(function(){return ct})),n.d(e,\"getReservoirInfo\",(function(){return st})),n.d(e,\"getAllReservoir\",(function(){return it})),n.d(e,\"getListReservoir\",(function(){return dt})),n.d(e,\"enableReservoir\",(function(){return ft})),n.d(e,\"updateReservoir\",(function(){return ht})),n.d(e,\"deleteReservoir\",(function(){return pt})),n.d(e,\"getAllStorageLocation\",(function(){return gt})),n.d(e,\"addStorageLocation\",(function(){return mt})),n.d(e,\"getStorageLocationInfo\",(function(){return kt})),n.d(e,\"enableStorageLocation\",(function(){return bt})),n.d(e,\"updateStorageLocation\",(function(){return St})),n.d(e,\"getAreaDateBySkuId\",(function(){return yt})),n.d(e,\"addReportLoss\",(function(){return It})),n.d(e,\"getAllReportLoss\",(function(){return vt})),n.d(e,\"getReportLossInfo\",(function(){return At})),n.d(e,\"auditReportLoss\",(function(){return Ot})),n.d(e,\"deleteReportLoss\",(function(){return _t})),n.d(e,\"countPurchaseCost\",(function(){return jt})),n.d(e,\"exportgetInventoryByWarehouseId\",(function(){return wt})),n.d(e,\"exportgetAllAllocate\",(function(){return Lt})),n.d(e,\"getPickingInfo\",(function(){return Ft})),n.d(e,\"addPicking\",(function(){return Wt})),n.d(e,\"getAllPicking\",(function(){return xt})),n.d(e,\"getAllPickingGoodsDetail\",(function(){return Pt}));var o=n(\"b775\");function a(t,e){return Object(o[\"default\"])({url:\"/Stock/Warehouse/getWarehouseInfo/\"+t,method:\"get\",data:e})}function r(t){return Object(o[\"default\"])({url:\"/Stock/Warehouse/getAllWarehouse\",method:\"post\",data:t})}function u(t){return Object(o[\"default\"])({url:\"/Stock/Warehouse/enableWarehouse\",method:\"post\",data:t})}function l(t,e){return Object(o[\"default\"])({url:\"/Stock/Warehouse/updateWarehouse/\"+t,method:\"put\",data:e})}function c(t,e){return Object(o[\"default\"])({url:\"/Stock/Warehouse/deleteWarehouse/\"+t,method:\"delete\",data:e})}function s(t){return Object(o[\"default\"])({url:\"/Stock/Warehouse/addWarehouse\",method:\"post\",data:t})}function i(t){return Object(o[\"default\"])({url:\"/Stock/Warehouse/addWarehouseBeginning\",method:\"post\",data:t})}function d(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/addLogistics\",method:\"post\",data:t})}function f(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/getAllInventoryOut\",method:\"post\",data:t})}function h(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/getAllInventoryOut\",method:\"post\",responseType:\"blob\",data:t})}function p(t,e){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/getInventoryOutInfo/\"+t,method:\"get\",data:e})}function g(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/getInventoryOutInfo\",method:\"post\",data:t})}function m(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/searchAllInventoryOut\",method:\"post\",data:t})}function k(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/updateInventoryOutStatus\",method:\"post\",data:t})}function b(t,e){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/saveOutInventory/\"+t,method:\"put\",data:e})}function S(t){return Object(o[\"default\"])({url:\"/Stock/InventoryOut/statisticsAllInventoryOut\",method:\"post\",data:t})}function y(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/rejectInventory\",method:\"post\",data:t})}function I(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/deleteDetailByInventoryInId\",method:\"post\",data:t})}function v(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/searchAllInventoryIn\",method:\"post\",data:t})}function A(t,e){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo/\"+t,method:\"put\",data:e})}function O(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo\",method:\"put\",data:t})}function _(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryIn\",method:\"post\",data:t})}function j(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryIn\",method:\"post\",responseType:\"blob\",data:t})}function w(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/updateInventoryInStatus\",method:\"post\",data:t})}function L(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/statisticsAllInventoryIn\",method:\"post\",data:t})}function F(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getInventoryAll\",method:\"post\",data:t})}function W(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getInventoryAll\",responseType:\"blob\",method:\"post\",data:t})}function x(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",method:\"post\",data:t})}function P(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",responseType:\"blob\",method:\"post\",data:t})}function R(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",method:\"post\",data:t})}function $(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",responseType:\"blob\",method:\"post\",data:t})}function C(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getAllBatch\",method:\"post\",data:t})}function D(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryBatch\",method:\"post\",data:t})}function B(t,e){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/getStocktakingInfo/\"+t,method:\"get\",data:e})}function N(t,e){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/updateStocktaking/\"+t,method:\"put\",data:e})}function T(t,e){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/auditStocktaking/\"+t,method:\"put\",data:e})}function G(t){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",method:\"post\",data:t})}function z(t){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",responseType:\"blob\",method:\"post\",data:t})}function M(t){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/searchAllStocktaking\",method:\"post\",data:t})}function U(t){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/searchAllStocktaking\",method:\"post\",responseType:\"blob\",data:t})}function q(t){return Object(o[\"default\"])({url:\"/Stock/Stocktaking/addStocktaking\",method:\"post\",data:t})}function E(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/inventoryStatistics\",method:\"post\",data:t})}function J(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/inventoryStatistics\",method:\"post\",responseType:\"blob\",data:t})}function Q(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/searchInventoryStatistics\",method:\"post\",data:t})}function H(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/getAllPurchaseIn\",method:\"post\",data:t})}function K(t){return Object(o[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryInByAudit\",method:\"post\",data:t})}function V(t,e){return Object(o[\"default\"])({url:\"/Stock/Inventory/getWarehouseInventory/\"+t,method:\"get\",data:e})}function X(t){return Object(o[\"default\"])({url:\"/Stock/Allocate/addAllocate\",method:\"post\",data:t})}function Y(t){return Object(o[\"default\"])({url:\"/stock/Inventory/getInventoryByWarehouseId\",method:\"post\",data:t})}function Z(t){return Object(o[\"default\"])({url:\"/Stock/Allocate/getAllAllocate\",method:\"post\",data:t})}function tt(t,e){return Object(o[\"default\"])({url:\"/Stock/Allocate/deleteAllocate/\"+t,method:\"delete\",data:e})}function et(t,e){return Object(o[\"default\"])({url:\"/Stock/Allocate/getAllocateInfo/\"+t,method:\"get\",data:e})}function nt(t,e){return Object(o[\"default\"])({url:\"/Stock/Allocate/updateAllocate/\"+t,method:\"post\",data:e})}function ot(t,e){return Object(o[\"default\"])({url:\"/Stock/Allocate/auditAllocate/\"+t,method:\"put\",data:e})}function at(t){return Object(o[\"default\"])({url:\"/Stock/Allocate/searchAllocate\",method:\"post\",data:t})}function rt(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getBatchByIds\",method:\"post\",data:t})}function ut(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getSkuNum\",method:\"post\",data:t})}function lt(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getMasterSkuNum\",method:\"post\",data:t})}function ct(t){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/addReservoir\",method:\"post\",data:t})}function st(t,e){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/getReservoirInfo/\"+t,method:\"get\",data:e})}function it(t){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/getAllReservoir\",method:\"post\",data:t})}function dt(t){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/getListReservoir\",method:\"post\",data:t})}function ft(t,e){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/enableReservoir/\"+t,method:\"put\",data:e})}function ht(t,e){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/updateReservoir/\"+t,method:\"put\",data:e})}function pt(t,e){return Object(o[\"default\"])({url:\"/Stock/ReservoirArea/deleteReservoir/\"+t,method:\"get\",data:e})}function gt(t){return Object(o[\"default\"])({url:\"/Stock/StorageLocation/getAllStorageLocation\",method:\"post\",data:t})}function mt(t){return Object(o[\"default\"])({url:\"/Stock/StorageLocation/addStorageLocation\",method:\"post\",data:t})}function kt(t,e){return Object(o[\"default\"])({url:\"/Stock/StorageLocation/getStorageLocationInfo/\"+t,method:\"post\",data:e})}function bt(t,e){return Object(o[\"default\"])({url:\"/Stock/StorageLocation/enableStorageLocation/\"+t,method:\"post\",data:e})}function St(t,e){return Object(o[\"default\"])({url:\"/Stock/StorageLocation/updateStorageLocation/\"+t,method:\"post\",data:e})}function yt(t){return Object(o[\"default\"])({url:\"/Stock/Inventory/getAreaDateBySkuId\",method:\"post\",data:t})}function It(t){return Object(o[\"default\"])({url:\"/Stock/ReportLoss/addReportLoss\",method:\"post\",data:t})}function vt(t){return Object(o[\"default\"])({url:\"/Stock/ReportLoss/getAllReportLoss\",method:\"post\",data:t})}function At(t,e){return Object(o[\"default\"])({url:\"/Stock/ReportLoss/getReportLossInfo/\"+t,method:\"get\",data:e})}function Ot(t,e){return Object(o[\"default\"])({url:\"/Stock/ReportLoss/auditReportLoss/\"+t,method:\"put\",data:e})}function _t(t,e){return Object(o[\"default\"])({url:\"/Stock/ReportLoss/deleteReportLoss/\"+t,method:\"delete\",data:e})}function jt(t){return Object(o[\"default\"])({url:\"Stock/InventoryIn/countPurchaseCost\",method:\"post\",data:t})}function wt(t){return Object(o[\"default\"])({url:\"stock/Inventory/getInventoryByWarehouseId\",responseType:\"blob\",method:\"post\",data:t})}function Lt(t){return Object(o[\"default\"])({url:\"Stock/Allocate/getAllAllocate\",responseType:\"blob\",method:\"post\",data:t})}function Ft(t,e){return Object(o[\"default\"])({url:\"Stock/Picking/getPickingInfo/\"+t,method:\"post\",data:e})}function Wt(t){return Object(o[\"default\"])({url:\"Stock/Picking/addPicking\",method:\"post\",data:t})}function xt(t){return Object(o[\"default\"])({url:\"Stock/Picking/getAllPicking\",method:\"post\",data:t})}function Pt(t){return Object(o[\"default\"])({url:\"Stock/Picking/getAllPickingGoodsDetail\",method:\"post\",data:t})}},8839:function(t,e,n){\"use strict\";n(\"4699\")},dbbe:function(t,e,n){\"use strict\";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(\"ContainerQuery\",[n(\"div\",{attrs:{slot:\"left\"},slot:\"left\"},[t.$accessCheck(t.$Access.AllocationFormAddAllocate)?n(\"el-dropdown\",{attrs:{type:\"primary\",\"split-button\":\"\"},on:{click:function(e){return t.$router.push(\"/stock/WarehouseManagement/AddAllocationForm\")}}},[t._v(\" 新建调拨 \"),n(\"el-dropdown-menu\",{attrs:{slot:\"dropdown\"},slot:\"dropdown\"},[n(\"el-dropdown-item\",[n(\"div\",{staticClass:\"dropdown-div\",on:{click:function(e){return t.getAllAllocate(1)}}},[t._v(\"导出\")])])],1)],1):t._e()],1),t.$accessCheck(t.$Access.AllocationFormSearchAllocate)?n(\"div\",{attrs:{slot:\"more\"},slot:\"more\"},[n(\"el-form\",{attrs:{inline:!0,size:\"small\"}},[n(\"el-form-item\",[n(\"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.search_form.keyword,callback:function(e){t.$set(t.search_form,\"keyword\",e)},expression:\"search_form.keyword\"}},[n(\"el-button\",{attrs:{slot:\"append\",icon:\"el-icon-search\"},on:{click:function(e){return t.pageChange(1)}},slot:\"append\"})],1)],1),n(\"el-form-item\",[n(\"el-select\",{staticStyle:{width:\"150px\"},attrs:{placeholder:\"调入仓库\",clearable:\"\"},on:{change:function(e){return t.pageChange(1)}},model:{value:t.search_form.inStatus,callback:function(e){t.$set(t.search_form,\"inStatus\",e)},expression:\"search_form.inStatus\"}},t._l(t.outWare,(function(t){return n(\"el-option\",{key:t.id,attrs:{label:t.warehouseName,value:t.id}})})),1)],1),n(\"el-form-item\",[n(\"el-select\",{staticStyle:{width:\"150px\"},attrs:{placeholder:\"调出仓库\",clearable:\"\"},on:{change:function(e){return t.pageChange(1)}},model:{value:t.search_form.outStatus,callback:function(e){t.$set(t.search_form,\"outStatus\",e)},expression:\"search_form.outStatus\"}},t._l(t.outWare,(function(t){return n(\"el-option\",{key:t.id,attrs:{label:t.warehouseName,value:t.id}})})),1)],1),n(\"el-form-item\",[n(\"el-select\",{staticStyle:{width:\"150px\"},attrs:{clearable:\"\",placeholder:\"审核状态\"},on:{change:function(e){return t.pageChange(1)}},model:{value:t.search_form.status,callback:function(e){t.$set(t.search_form,\"status\",e)},expression:\"search_form.status\"}},t._l(t.order_status,(function(t){return n(\"el-option\",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),n(\"el-form-item\",[n(\"el-date-picker\",{attrs:{clearable:\"\",type:\"daterange\",\"value-format\":\"timestamp\",\"range-separator\":\"-\",\"start-placeholder\":\"调拨开始日期\",\"end-placeholder\":\"调拨结束日期\"},on:{change:t.LocationFrom},model:{value:t.search_form.time,callback:function(e){t.$set(t.search_form,\"time\",e)},expression:\"search_form.time\"}})],1)],1)],1):t._e(),n(\"el-table\",{attrs:{border:\"\",data:t.stock_list,\"span-method\":t.objectSpanMethod},on:{\"row-dblclick\":t.goDetail}},[n(\"el-table-column\",{attrs:{prop:\"id\",align:\"left\",label:\"ID\",\"min-width\":\"50\"}}),n(\"el-table-column\",{attrs:{prop:\"no\",align:\"left\",label:\"单号\",\"min-width\":\"200\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t.$accessCheck(t.$Access.AllocationFormGetAllocateInfo)?n(\"span\",{staticClass:\"click-div\",on:{click:function(n){return t.goDetail(e.row)}}},[t._v(\" \"+t._s(e.row.no)+\" \")]):n(\"span\",[t._v(t._s(e.row.no))])]}}])}),n(\"el-table-column\",{attrs:{prop:\"materielCode\",align:\"left\",label:\"商品编码\",\"min-width\":\"140\"}}),n(\"el-table-column\",{attrs:{prop:\"materielName\",label:\"商品名称\",align:\"left\",\"min-width\":\"160\"}}),t.unitFlag?n(\"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)+\" \")]}}],null,!1,2637909152)}):t._e(),t.batchFlag?n(\"el-table-column\",{attrs:{align:\"left\",label:\"批次\",\"min-width\":\"160\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[e.row.batch&&e.row.batch.length>0?n(\"el-popover\",{attrs:{placement:\"right\",width:\"500\",trigger:\"hover\"}},[n(\"el-table\",{attrs:{border:\"\",data:e.row.batch}},[n(\"el-table-column\",{attrs:{property:\"batchNo\",label:\"批次\"}}),n(\"el-table-column\",{attrs:{property:\"num\",label:\"批次可用库存\"}})],1),n(\"el-button\",{attrs:{slot:\"reference\",size:\"mini\"},slot:\"reference\"},[t._v(\"查看\")])],1):n(\"span\",[t._v(\"--\")])]}}],null,!1,4084528240)}):t._e(),t.calloutFlag?n(\"el-table-column\",{attrs:{prop:\"warehouseName\",align:\"left\",label:\"调出仓库\",\"min-width\":\"140\",\"show-overflow-tooltip\":!0}}):t._e(),t.foldFlag?n(\"el-table-column\",{attrs:{prop:\"inWarehouseName\",align:\"left\",label:\"调入仓库\",\"min-width\":\"140\"}}):t._e(),t.quantityFlag?n(\"el-table-column\",{attrs:{prop:\"num\",align:\"left\",label:\"数量\",\"min-width\":\"80\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.num))+\" \")]}}],null,!1,2561361704)}):t._e(),t.unitPriceFlag?n(\"el-table-column\",{attrs:{prop:\"costUnitPrice\",align:\"left\",label:\"单价\",\"min-width\":\"80\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.costUnitPrice))+\" \")]}}],null,!1,3375244465)}):t._e(),t.moneyFlag?n(\"el-table-column\",{attrs:{prop:\"costUnitPrice\",align:\"left\",label:\"金额\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$NP.times(e.row.costUnitPrice,e.row.num))+\" \")]}}],null,!1,2935041908)}):t._e(),t.operationFlag?n(\"el-table-column\",{attrs:{prop:\"operatorName\",align:\"left\",label:\"操作人\",\"min-width\":\"120\"}}):t._e(),t.auditStatusFlag?n(\"el-table-column\",{attrs:{prop:\"auditId\",align:\"left\",label:\"审核状态\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[1===e.row.auditStatus?n(\"span\",{staticClass:\"info-status\"},[t._v(\" 待审核 \")]):t._e(),2===e.row.auditStatus?n(\"span\",{staticClass:\"success-status\"},[t._v(\" 已审核 \")]):t._e()]}}],null,!1,2979301581)}):t._e(),n(\"el-table-column\",{attrs:{\"header-align\":\"left\",align:\"left\",fixed:\"right\",label:\"操作\",\"min-width\":\"160\"},scopedSlots:t._u([{key:\"header\",fn:function(e){return[t._e(),n(\"span\",{staticClass:\"operation\"},[t._v(\"操作\")]),n(\"el-popover\",{attrs:{\"popper-class\":\"custom-table-checkbox\",trigger:\"click\"}},[n(\"el-checkbox-group\",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:\"checkList\"}},t._l(t.columns,(function(e,o){return n(\"el-checkbox\",{key:o,attrs:{label:e.label},on:{change:t.change}})})),1),n(\"el-button\",{attrs:{slot:\"reference\",icon:\"el-icon-setting\",type:\"text\"},slot:\"reference\"})],1)]}},{key:\"default\",fn:function(e){return[t.$accessCheck(t.$Access.AllocationFormAuditAllocate)?n(\"el-button\",{attrs:{disabled:2===parseInt(e.row.auditStatus),type:\"text\"},on:{click:function(n){return t.updateAuditStatus(e.row)}}},[t._v(\" 审核 \")]):t._e(),t.$accessCheck(t.$Access.AllocationFormUpdateAllocate)?n(\"el-button\",{attrs:{type:\"text\",disabled:2===parseInt(e.row.auditStatus)},on:{click:function(n){return t.$router.push(\"/stock/WarehouseManagement/EditAllocationForm/\"+e.row.id)}}},[t._v(\" 编辑 \")]):t._e(),t.$accessCheck(t.$Access.AllocationFormDeleteAllocate)?n(\"el-button\",{attrs:{disabled:2===parseInt(e.row.auditStatus),type:\"text\"},on:{click:function(n){return t.delData(e.row.id)}}},[t._v(\" 删除 \")]):t._e()]}}])})],1),n(\"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)},a=[],r=(n(\"caad\"),n(\"478b\")),u={name:\"AllocationForm\",data(){return{spanArr:[],pos:0,outWare:[],search_form:{keyword:\"\",status:\"\",inStatus:\"\",outStatus:\"\",singlestatus:\"\",start:\"\",end:\"\"},order_status:[{value:1,label:\"待审核\"},{value:2,label:\"已审核\"}],single_status:[{value:1,label:\"暂存\"},{value:2,label:\"未出库\"},{value:3,label:\"已出库\"},{value:4,label:\"已完成\"}],stock_status:\"\",search_key:\"\",stock_list:[],page:1,pre_page:10,total:0,checkList:[\"规格\",\"调出仓库\",\"调入仓库\",\"数量\",\"单价\",\"金额\",\"操作人\",\"审核状态\"],columns:[{label:\"规格\"},{label:\"批次\"},{label:\"调出仓库\"},{label:\"调入仓库\"},{label:\"数量\"},{label:\"单价\"},{label:\"金额\"},{label:\"操作人\"},{label:\"审核状态\"}],unitFlag:!0,batchFlag:!1,calloutFlag:!0,foldFlag:!0,quantityFlag:!0,unitPriceFlag:!0,moneyFlag:!0,operationFlag:!0,auditStatusFlag:!0,amount:\"\",count:1}},created(){this.getAllAllocate(),this.getAllWarehouse()},activated(){this.$_isInit()||this.getData()},methods:{LocationFrom(t){t&&t.length?(this.search_form.start=t[0]/1e3,this.search_form.end=t[1]/1e3+86399):(this.search_form.start=\"\",this.search_form.end=\"\"),this.pageChange(1)},async getAllWarehouse(){const t=await Object(r[\"getAllWarehouse\"])({page:1,pageSize:999});this.outWare=t.data},async getAllAllocate(t){let e={page:this.page,pageSize:this.pre_page};if(t){e.export=1;await Object(r[\"exportgetAllAllocate\"])({...e})}else{const t=await Object(r[\"getAllAllocate\"])({...e});this.stock_list=t.data,this.total=t.pageTotal}const n=this.$_common.getSpanArr(this.stock_list,\"no\");this.spanArr=n.spanArr,this.pos=n.pos},async searchAllocate(){const{data:t,pageTotal:e}=await Object(r[\"searchAllocate\"])({warehouseId:this.search_form.outStatus,inWarehouseId:this.search_form.inStatus,auditStatus:this.search_form.status,start:this.search_form.start,end:this.search_form.end,search:this.search_form.keyword,page:this.page,pageSize:this.pre_page});this.stock_list=t,this.total=e;const n=this.$_common.getSpanArr(this.stock_list,\"no\");this.spanArr=n.spanArr,this.pos=n.pos},getData(){const t=this.$_common.isSerch(this.search_form);t?this.searchAllocate():this.getAllAllocate()},objectSpanMethod({row:t,column:e,rowIndex:n,columnIndex:o}){if([\"ID\",\"单号\",\"调出仓库\",\"调入仓库\",\"操作人\",\"审核状态\",\"操作\"].includes(e.label)){const t=this.spanArr[n],e=t>0?1:0;return{rowspan:t,colspan:e}}},pageChange(t){this.page=t,this.getData()},sizeChange(t){this.pre_page=t,this.pageChange(1)},statusChange(){this.pageChange(1)},async updateAuditStatus(t){this.$confirm(\"确定要审核通过该单据吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{await Object(r[\"auditAllocate\"])(t.id,{auditName:this.userName});this.$message({type:\"success\",message:\"审核成功\"}),this.getAllAllocate()})},delData(t){this.$confirm(\"确定要删除该单据吗?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then(async()=>{await Object(r[\"deleteAllocate\"])(t);this.$message({type:\"success\",message:\"删除成功!\"}),this.getAllAllocate()})},goDetail(t){this.$accessCheck(this.$Access.AllocationFormGetAllocateInfo)&&this.$router.push({path:\"/stock/WarehouseManagement/DetailAllocationForm/\"+t.id})},change(){this.unitFlag=this.checkList.some(t=>\"规格\"===t),this.batchFlag=this.checkList.some(t=>\"批次\"===t),this.calloutFlag=this.checkList.some(t=>\"调出仓库\"===t),this.foldFlag=this.checkList.some(t=>\"调入仓库\"===t),this.quantityFlag=this.checkList.some(t=>\"数量\"===t),this.unitPriceFlag=this.checkList.some(t=>\"单价\"===t),this.moneyFlag=this.checkList.some(t=>\"金额\"===t),this.operationFlag=this.checkList.some(t=>\"操作人\"===t),this.auditStatusFlag=this.checkList.some(t=>\"审核状态\"===t)}}},l=u,c=(n(\"8839\"),n(\"2877\")),s=Object(c[\"a\"])(l,o,a,!1,null,\"5fdcecc0\",null);e[\"default\"]=s.exports}}]);","extractedComments":[]}
|