32439e1dd3169ce87904abceb47b37d7d55cbb4f2f6c2591fc03fc65784b6984616f777791f26340e898143ddd3dcc5a6ae56403543c1a26a9c3832da730 55 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-03bf24e5\"],{1244:function(t,e,r){\"use strict\";r.r(e),r.d(e,\"getAllPurchaseByFields\",(function(){return o})),r.d(e,\"exportgetAllPurchaseByFields\",(function(){return n})),r.d(e,\"addSupplier\",(function(){return u})),r.d(e,\"getSupplierInfoById\",(function(){return s})),r.d(e,\"editSupplier\",(function(){return i})),r.d(e,\"supplierEnableStatus\",(function(){return l})),r.d(e,\"delSupplier\",(function(){return c})),r.d(e,\"getAllSupplier\",(function(){return d})),r.d(e,\"retMoney\",(function(){return h})),r.d(e,\"reStockIn\",(function(){return f})),r.d(e,\"addPurchase\",(function(){return p})),r.d(e,\"getPurchaseInfoById\",(function(){return m})),r.d(e,\"updatePurchaseStatus\",(function(){return g})),r.d(e,\"delPurchase\",(function(){return b})),r.d(e,\"getAllPurchase\",(function(){return y})),r.d(e,\"exportGetAllPurchase\",(function(){return S})),r.d(e,\"editPurchase\",(function(){return I})),r.d(e,\"getAllPurchaseDetails\",(function(){return k})),r.d(e,\"exportGetAllPurchaseDetails\",(function(){return _})),r.d(e,\"searchAllPurchaseDetails\",(function(){return v})),r.d(e,\"exportSearchAllPurchaseDetails\",(function(){return O})),r.d(e,\"addPurchaseOut\",(function(){return N})),r.d(e,\"getPurchaseOutInfoById\",(function(){return A})),r.d(e,\"updatePurchaseOut\",(function(){return P})),r.d(e,\"delPurchaseOut\",(function(){return w})),r.d(e,\"getAllPurchaseOut\",(function(){return j})),r.d(e,\"exportGetAllPurchaseOut\",(function(){return C})),r.d(e,\"editPurchaseOut\",(function(){return D})),r.d(e,\"getAllData\",(function(){return x})),r.d(e,\"getAllPurchaseAndDetails\",(function(){return $})),r.d(e,\"getPurchaseAndBatchInfoById\",(function(){return B})),r.d(e,\"addSupplierUserCenter\",(function(){return R})),r.d(e,\"supplierImport\",(function(){return L}));var a=r(\"b775\");function o(t){return Object(a[\"default\"])({url:\"/purchase/purchase/getAllPurchaseByFields\",method:\"post\",data:t})}function n(t){return Object(a[\"default\"])({url:\"/purchase/purchase/getAllPurchaseByFields\",method:\"post\",responseType:\"blob\",data:t})}function u(t){return Object(a[\"default\"])({url:\"/Purchase/Supplier/addSupplier\",method:\"post\",data:t})}function s(t,e){return Object(a[\"default\"])({url:\"/Purchase/Supplier/getSupplierInfoById/\"+t,method:\"get\",data:e})}function i(t,e){return Object(a[\"default\"])({url:\"/Purchase/Supplier/editSupplier/\"+t,method:\"put\",data:e})}function l(t,e){return Object(a[\"default\"])({url:\"/Purchase/Supplier/updateEnableStatus/\"+t,method:\"put\",data:e})}function c(t,e){return Object(a[\"default\"])({url:\"/Purchase/Supplier/delSupplier/\"+t,method:\"delete\",data:e})}function d(t){return Object(a[\"default\"])({url:\"/Purchase/Supplier/getAllSupplier\",method:\"post\",data:t})}function h(t,e){return Object(a[\"default\"])({url:\"/Purchase/Purchase/retMoney/\"+t,method:\"post\",data:e})}function f(t,e){return Object(a[\"default\"])({url:\"/Purchase/Purchase/reStockIn/\"+t,method:\"post\",data:e})}function p(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/addPurchase\",method:\"post\",data:t})}function m(t,e){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getPurchaseInfoById/\"+t,method:\"get\",data:e})}function g(t,e){return Object(a[\"default\"])({url:\"/Purchase/Purchase/updateAuditStatus/\"+t,method:\"put\",data:e})}function b(t,e){return Object(a[\"default\"])({url:\"/Purchase/Purchase/delPurchase/\"+t,method:\"delete\",data:e})}function y(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getAllPurchase\",method:\"post\",data:t})}function S(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getAllPurchase\",responseType:\"blob\",method:\"post\",data:t})}function I(t,e){return Object(a[\"default\"])({url:\"/Purchase/Purchase/editPurchase/\"+t,method:\"put\",data:e})}function k(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getAllPurchaseDetails\",method:\"post\",data:t})}function _(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getAllPurchaseDetails\",responseType:\"blob\",method:\"post\",data:t})}function v(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/searchAllPurchaseDetails\",method:\"post\",data:t})}function O(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/searchAllPurchaseDetails\",method:\"post\",responseType:\"blob\",data:t})}function N(t){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/addPurchaseOut\",method:\"post\",data:t})}function A(t,e){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/getPurchaseOutInfoById/\"+t,method:\"get\",data:e})}function P(t,e){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/updateAuditStatus/\"+t,method:\"put\",data:e})}function w(t,e){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/delPurchaseOut/\"+t,method:\"delete\",data:e})}function j(t){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/getAllPurchaseOut\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/getAllPurchaseOut\",responseType:\"blob\",method:\"post\",data:t})}function D(t,e){return Object(a[\"default\"])({url:\"/Purchase/PurchaseOut/editPurchase/\"+t,method:\"put\",data:e})}function x(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getAllData\",method:\"get\",data:t})}function $(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getAllPurchaseAndDetails\",method:\"post\",data:t})}function B(t){return Object(a[\"default\"])({url:\"/Purchase/Purchase/getPurchaseAndBatchInfoById\",method:\"post\",data:t})}function R(t,e){return Object(a[\"default\"])({url:\"Purchase/Supplier/addSupplierUserCenter/\"+t,method:\"get\",data:e})}function L(t){return Object(a[\"default\"])({url:\"Purchase/Supplier/supplierImport\",method:\"post\",data:t})}},\"12b4\":function(t,e,r){},\"219a\":function(t,e,r){\"use strict\";r(\"99c0\")},2520:function(t,e,r){\"use strict\";r(\"2b53\")},\"2a18\":function(t,e,r){},\"2b53\":function(t,e,r){},\"478b\":function(t,e,r){\"use strict\";r.r(e),r.d(e,\"getWarehouseInfo\",(function(){return o})),r.d(e,\"getAllWarehouse\",(function(){return n})),r.d(e,\"enableWarehouse\",(function(){return u})),r.d(e,\"updateWarehouse\",(function(){return s})),r.d(e,\"deleteWarehouse\",(function(){return i})),r.d(e,\"addWarehouse\",(function(){return l})),r.d(e,\"addWarehouseBeginning\",(function(){return c})),r.d(e,\"stockaddLogistics\",(function(){return d})),r.d(e,\"getAllSaleOut\",(function(){return h})),r.d(e,\"exportGetAllSaleOut\",(function(){return f})),r.d(e,\"getSaleOutInfo\",(function(){return p})),r.d(e,\"getSaleOutInfoT\",(function(){return m})),r.d(e,\"searchAllSaleOut\",(function(){return g})),r.d(e,\"updateSaleOutStatus\",(function(){return b})),r.d(e,\"saveOutInventory\",(function(){return y})),r.d(e,\"statisticsAllSaleOut\",(function(){return S})),r.d(e,\"rejectInventory\",(function(){return I})),r.d(e,\"deleteDetailByInventoryInId\",(function(){return k})),r.d(e,\"searchAllPurchaseIn\",(function(){return _})),r.d(e,\"getPurchaseInInfo\",(function(){return v})),r.d(e,\"getPurchaseInInfoT\",(function(){return O})),r.d(e,\"getAllPurchaseIn\",(function(){return N})),r.d(e,\"exportsGetAllPurchaseIn\",(function(){return A})),r.d(e,\"updatePurchaseInStatus\",(function(){return P})),r.d(e,\"statisticsAllPurchaseIn\",(function(){return w})),r.d(e,\"getInventoryAll\",(function(){return j})),r.d(e,\"exportGetInventoryAll\",(function(){return C})),r.d(e,\"getInventoryDetailsAll\",(function(){return D})),r.d(e,\"exportGetInventoryDetailsAll\",(function(){return x})),r.d(e,\"searchAllInventoryDetails\",(function(){return $})),r.d(e,\"exportSearchAllInventoryDetails\",(function(){return B})),r.d(e,\"getAllBatch\",(function(){return R})),r.d(e,\"searchAllInventoryBatch\",(function(){return L})),r.d(e,\"getStocktakingInfo\",(function(){return M})),r.d(e,\"updateStocktaking\",(function(){return z})),r.d(e,\"auditStocktaking\",(function(){return W})),r.d(e,\"getAllStocktaking\",(function(){return T})),r.d(e,\"exportGetAllStocktaking\",(function(){return G})),r.d(e,\"searchAllStocktaking\",(function(){return E})),r.d(e,\"exportSearchAllStocktaking\",(function(){return U})),r.d(e,\"addStocktaking\",(function(){return q})),r.d(e,\"inventoryStatistics\",(function(){return F})),r.d(e,\"exportsInventoryStatistics\",(function(){return V})),r.d(e,\"searchInventoryStatistics\",(function(){return J})),r.d(e,\"StockGetAllPurchase\",(function(){return H})),r.d(e,\"PurchaseInGetAllPurchaseOut\",(function(){return K})),r.d(e,\"getWarehouseInventory\",(function(){return Q})),r.d(e,\"addAllocate\",(function(){return X})),r.d(e,\"getInventoryByWarehouseId\",(function(){return Y})),r.d(e,\"getAllAllocate\",(function(){return Z})),r.d(e,\"deleteAllocate\",(function(){return tt})),r.d(e,\"getAllocateInfo\",(function(){return et})),r.d(e,\"updateAllocate\",(function(){return rt})),r.d(e,\"auditAllocate\",(function(){return at})),r.d(e,\"searchAllocate\",(function(){return ot})),r.d(e,\"getBatchByIds\",(function(){return nt})),r.d(e,\"getSkuNum\",(function(){return ut})),r.d(e,\"getMasterSkuNum\",(function(){return st})),r.d(e,\"addReservoir\",(function(){return it})),r.d(e,\"getReservoirInfo\",(function(){return lt})),r.d(e,\"getAllReservoir\",(function(){return ct})),r.d(e,\"getListReservoir\",(function(){return dt})),r.d(e,\"enableReservoir\",(function(){return ht})),r.d(e,\"updateReservoir\",(function(){return ft})),r.d(e,\"deleteReservoir\",(function(){return pt})),r.d(e,\"getAllStorageLocation\",(function(){return mt})),r.d(e,\"addStorageLocation\",(function(){return gt})),r.d(e,\"getStorageLocationInfo\",(function(){return bt})),r.d(e,\"enableStorageLocation\",(function(){return yt})),r.d(e,\"updateStorageLocation\",(function(){return St})),r.d(e,\"getAreaDateBySkuId\",(function(){return It})),r.d(e,\"addReportLoss\",(function(){return kt})),r.d(e,\"getAllReportLoss\",(function(){return _t})),r.d(e,\"getReportLossInfo\",(function(){return vt})),r.d(e,\"auditReportLoss\",(function(){return Ot})),r.d(e,\"deleteReportLoss\",(function(){return Nt})),r.d(e,\"countPurchaseCost\",(function(){return At})),r.d(e,\"exportgetInventoryByWarehouseId\",(function(){return Pt})),r.d(e,\"exportgetAllAllocate\",(function(){return wt})),r.d(e,\"getPickingInfo\",(function(){return jt})),r.d(e,\"addPicking\",(function(){return Ct})),r.d(e,\"getAllPicking\",(function(){return Dt})),r.d(e,\"getAllPickingGoodsDetail\",(function(){return xt}));var a=r(\"b775\");function o(t,e){return Object(a[\"default\"])({url:\"/Stock/Warehouse/getWarehouseInfo/\"+t,method:\"get\",data:e})}function n(t){return Object(a[\"default\"])({url:\"/Stock/Warehouse/getAllWarehouse\",method:\"post\",data:t})}function u(t){return Object(a[\"default\"])({url:\"/Stock/Warehouse/enableWarehouse\",method:\"post\",data:t})}function s(t,e){return Object(a[\"default\"])({url:\"/Stock/Warehouse/updateWarehouse/\"+t,method:\"put\",data:e})}function i(t,e){return Object(a[\"default\"])({url:\"/Stock/Warehouse/deleteWarehouse/\"+t,method:\"delete\",data:e})}function l(t){return Object(a[\"default\"])({url:\"/Stock/Warehouse/addWarehouse\",method:\"post\",data:t})}function c(t){return Object(a[\"default\"])({url:\"/Stock/Warehouse/addWarehouseBeginning\",method:\"post\",data:t})}function d(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/addLogistics\",method:\"post\",data:t})}function h(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/getAllInventoryOut\",method:\"post\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/getAllInventoryOut\",method:\"post\",responseType:\"blob\",data:t})}function p(t,e){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/getInventoryOutInfo/\"+t,method:\"get\",data:e})}function m(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/getInventoryOutInfo\",method:\"post\",data:t})}function g(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/searchAllInventoryOut\",method:\"post\",data:t})}function b(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/updateInventoryOutStatus\",method:\"post\",data:t})}function y(t,e){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/saveOutInventory/\"+t,method:\"put\",data:e})}function S(t){return Object(a[\"default\"])({url:\"/Stock/InventoryOut/statisticsAllInventoryOut\",method:\"post\",data:t})}function I(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/rejectInventory\",method:\"post\",data:t})}function k(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/deleteDetailByInventoryInId\",method:\"post\",data:t})}function _(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/searchAllInventoryIn\",method:\"post\",data:t})}function v(t,e){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo/\"+t,method:\"put\",data:e})}function O(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/getInventoryInInfo\",method:\"put\",data:t})}function N(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryIn\",method:\"post\",data:t})}function A(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryIn\",method:\"post\",responseType:\"blob\",data:t})}function P(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/updateInventoryInStatus\",method:\"post\",data:t})}function w(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/statisticsAllInventoryIn\",method:\"post\",data:t})}function j(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getInventoryAll\",method:\"post\",data:t})}function C(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getInventoryAll\",responseType:\"blob\",method:\"post\",data:t})}function D(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",method:\"post\",data:t})}function x(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getInventoryDetailsAll\",responseType:\"blob\",method:\"post\",data:t})}function $(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",method:\"post\",data:t})}function B(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryDetails\",responseType:\"blob\",method:\"post\",data:t})}function R(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getAllBatch\",method:\"post\",data:t})}function L(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/searchAllInventoryBatch\",method:\"post\",data:t})}function M(t,e){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/getStocktakingInfo/\"+t,method:\"get\",data:e})}function z(t,e){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/updateStocktaking/\"+t,method:\"put\",data:e})}function W(t,e){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/auditStocktaking/\"+t,method:\"put\",data:e})}function T(t){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",method:\"post\",data:t})}function G(t){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/getAllStocktaking\",responseType:\"blob\",method:\"post\",data:t})}function E(t){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/searchAllStocktaking\",method:\"post\",data:t})}function U(t){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/searchAllStocktaking\",method:\"post\",responseType:\"blob\",data:t})}function q(t){return Object(a[\"default\"])({url:\"/Stock/Stocktaking/addStocktaking\",method:\"post\",data:t})}function F(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/inventoryStatistics\",method:\"post\",data:t})}function V(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/inventoryStatistics\",method:\"post\",responseType:\"blob\",data:t})}function J(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/searchInventoryStatistics\",method:\"post\",data:t})}function H(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/getAllPurchaseIn\",method:\"post\",data:t})}function K(t){return Object(a[\"default\"])({url:\"/Stock/InventoryIn/getAllInventoryInByAudit\",method:\"post\",data:t})}function Q(t,e){return Object(a[\"default\"])({url:\"/Stock/Inventory/getWarehouseInventory/\"+t,method:\"get\",data:e})}function X(t){return Object(a[\"default\"])({url:\"/Stock/Allocate/addAllocate\",method:\"post\",data:t})}function Y(t){return Object(a[\"default\"])({url:\"/stock/Inventory/getInventoryByWarehouseId\",method:\"post\",data:t})}function Z(t){return Object(a[\"default\"])({url:\"/Stock/Allocate/getAllAllocate\",method:\"post\",data:t})}function tt(t,e){return Object(a[\"default\"])({url:\"/Stock/Allocate/deleteAllocate/\"+t,method:\"delete\",data:e})}function et(t,e){return Object(a[\"default\"])({url:\"/Stock/Allocate/getAllocateInfo/\"+t,method:\"get\",data:e})}function rt(t,e){return Object(a[\"default\"])({url:\"/Stock/Allocate/updateAllocate/\"+t,method:\"post\",data:e})}function at(t,e){return Object(a[\"default\"])({url:\"/Stock/Allocate/auditAllocate/\"+t,method:\"put\",data:e})}function ot(t){return Object(a[\"default\"])({url:\"/Stock/Allocate/searchAllocate\",method:\"post\",data:t})}function nt(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getBatchByIds\",method:\"post\",data:t})}function ut(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getSkuNum\",method:\"post\",data:t})}function st(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getMasterSkuNum\",method:\"post\",data:t})}function it(t){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/addReservoir\",method:\"post\",data:t})}function lt(t,e){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/getReservoirInfo/\"+t,method:\"get\",data:e})}function ct(t){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/getAllReservoir\",method:\"post\",data:t})}function dt(t){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/getListReservoir\",method:\"post\",data:t})}function ht(t,e){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/enableReservoir/\"+t,method:\"put\",data:e})}function ft(t,e){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/updateReservoir/\"+t,method:\"put\",data:e})}function pt(t,e){return Object(a[\"default\"])({url:\"/Stock/ReservoirArea/deleteReservoir/\"+t,method:\"get\",data:e})}function mt(t){return Object(a[\"default\"])({url:\"/Stock/StorageLocation/getAllStorageLocation\",method:\"post\",data:t})}function gt(t){return Object(a[\"default\"])({url:\"/Stock/StorageLocation/addStorageLocation\",method:\"post\",data:t})}function bt(t,e){return Object(a[\"default\"])({url:\"/Stock/StorageLocation/getStorageLocationInfo/\"+t,method:\"post\",data:e})}function yt(t,e){return Object(a[\"default\"])({url:\"/Stock/StorageLocation/enableStorageLocation/\"+t,method:\"post\",data:e})}function St(t,e){return Object(a[\"default\"])({url:\"/Stock/StorageLocation/updateStorageLocation/\"+t,method:\"post\",data:e})}function It(t){return Object(a[\"default\"])({url:\"/Stock/Inventory/getAreaDateBySkuId\",method:\"post\",data:t})}function kt(t){return Object(a[\"default\"])({url:\"/Stock/ReportLoss/addReportLoss\",method:\"post\",data:t})}function _t(t){return Object(a[\"default\"])({url:\"/Stock/ReportLoss/getAllReportLoss\",method:\"post\",data:t})}function vt(t,e){return Object(a[\"default\"])({url:\"/Stock/ReportLoss/getReportLossInfo/\"+t,method:\"get\",data:e})}function Ot(t,e){return Object(a[\"default\"])({url:\"/Stock/ReportLoss/auditReportLoss/\"+t,method:\"put\",data:e})}function Nt(t,e){return Object(a[\"default\"])({url:\"/Stock/ReportLoss/deleteReportLoss/\"+t,method:\"delete\",data:e})}function At(t){return Object(a[\"default\"])({url:\"Stock/InventoryIn/countPurchaseCost\",method:\"post\",data:t})}function Pt(t){return Object(a[\"default\"])({url:\"stock/Inventory/getInventoryByWarehouseId\",responseType:\"blob\",method:\"post\",data:t})}function wt(t){return Object(a[\"default\"])({url:\"Stock/Allocate/getAllAllocate\",responseType:\"blob\",method:\"post\",data:t})}function jt(t,e){return Object(a[\"default\"])({url:\"Stock/Picking/getPickingInfo/\"+t,method:\"post\",data:e})}function Ct(t){return Object(a[\"default\"])({url:\"Stock/Picking/addPicking\",method:\"post\",data:t})}function Dt(t){return Object(a[\"default\"])({url:\"Stock/Picking/getAllPicking\",method:\"post\",data:t})}function xt(t){return Object(a[\"default\"])({url:\"Stock/Picking/getAllPickingGoodsDetail\",method:\"post\",data:t})}},\"4e2e\":function(t,e,r){\"use strict\";r(\"2a18\")},\"55bb\":function(t,e,r){\"use strict\";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"div\",{staticClass:\"dis-inline\"},[r(\"el-select\",{style:{width:t.width+\"px\"},attrs:{value:t.value,placeholder:t.placeholder,clearable:t.clearable,filterable:\"\",remote:\"\",size:t.size,multiple:t.multiple,disabled:t.disabled,\"remote-method\":t.remoteMethod,loading:t.loading},on:{change:t.selChange,clear:t.clearChange}},t._l(t.shop_list,(function(t,e){return r(\"el-option\",{key:e,attrs:{label:t.name,value:t.id}})})),1),r(\"span\",{staticClass:\"el-icon-arrow-down sel-icon\",staticStyle:{\"margin-right\":\"15px\"}})],1)},o=[],n=r(\"e1b7\"),u={name:\"SelectShop\",model:{prop:\"value\",event:\"change\"},props:{value:{type:[Number,String,Array],default:\"\"},width:{type:[Number,String],default:200},placeholder:{type:String,default:\"请输入店铺关键词\"},size:{type:String,default:\"\"},isDefault:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},enable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},action:{type:[Number,String],default:\"\"},materielId:{type:[Number,String],default:\"\"}},data(){return{shop_list:[],loading:!1,page:1,pre_page:999}},created(){this.getList()},methods:{remoteMethod(t){\"\"!==t?(this.loading=!0,this.searchList(t)):this.getList()},clearChange(){this.$emit(\"clear\")},selChange(t){if(!t)return;let e=[];e=this.multiple?this.shop_list.filter(e=>t.indexOf(e.id)>-1):this.shop_list.filter(e=>e.id===t),this.$emit(\"change\",t,e)},async getList(){const t={page:this.page,pageSize:this.pre_page,enableStatus:5,materielId:this.materielId,action:this.action},e=await Object(n[\"getAllShop\"])(t);this.loading=!1,this.shop_list=e.data,this.$emit(\"getAllShop\",e.data),this.isDefault&&this.$emit(\"default\",e.data[0].id,e.data[0])},async searchList(t){const e={page:this.page,pageSize:this.pre_page,name:t,shopPartnerId:\"\",shopType:\"\",enableStatus:5},r=await Object(n[\"search\"])(e);this.loading=!1,this.shop_list=r.data}}},s=u,i=(r(\"2520\"),r(\"2877\")),l=Object(i[\"a\"])(s,a,o,!1,null,\"b4ad8046\",null);e[\"default\"]=l.exports},\"64f1\":function(t,e,r){\"use strict\";r.r(e),r.d(e,\"getStaff\",(function(){return o})),r.d(e,\"updateStaffStaff\",(function(){return n})),r.d(e,\"addStaff\",(function(){return u})),r.d(e,\"deleteStaff\",(function(){return s})),r.d(e,\"updateStaff\",(function(){return i})),r.d(e,\"getAllStaff\",(function(){return l})),r.d(e,\"getStaffInfo\",(function(){return c})),r.d(e,\"updateStaffTargetAndReward\",(function(){return d})),r.d(e,\"getAllStaffRewardDesc\",(function(){return h})),r.d(e,\"addDepartment\",(function(){return f})),r.d(e,\"deleteDepartment\",(function(){return p})),r.d(e,\"updateDepartment\",(function(){return m})),r.d(e,\"getAllDepartment\",(function(){return g})),r.d(e,\"getDepartmentInfo\",(function(){return b})),r.d(e,\"getAllRole\",(function(){return y})),r.d(e,\"getRoleInfo\",(function(){return S})),r.d(e,\"updateRole\",(function(){return I})),r.d(e,\"deleteRole\",(function(){return k})),r.d(e,\"addRole\",(function(){return _})),r.d(e,\"getAllStaffStaff\",(function(){return v}));var a=r(\"b775\");function o(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/getStaffInfo/\"+t,method:\"post\",data:e})}function n(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/updateStaff/\"+t,method:\"post\",data:e})}function u(t){return Object(a[\"default\"])({url:\"/Department/Staff/addStaff\",method:\"post\",data:t})}function s(t){return Object(a[\"default\"])({url:\"/Department/Staff/deleteStaff\",method:\"post\",data:t})}function i(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/updateStaff/\"+t,method:\"put\",data:e})}function l(t){return Object(a[\"default\"])({url:\"/Department/Staff/getAllStaff\",method:\"post\",data:t})}function c(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/getStaffInfo/\"+t,method:\"get\",data:e})}function d(t,e){return Object(a[\"default\"])({url:\"/Department/Staff/updateStaffTargetAndReward/\"+t,method:\"post\",data:e})}function h(t){return Object(a[\"default\"])({url:\"/Department/Staff/getAllStaffRewardDesc\",method:\"post\",data:t})}function f(t){return Object(a[\"default\"])({url:\"/Department/Department/addDepartment\",method:\"post\",data:t})}function p(t,e){return Object(a[\"default\"])({url:\"/Department/Department/deleteDepartment/\"+t,method:\"delete\",data:e})}function m(t,e){return Object(a[\"default\"])({url:\"/Department/Department/updateDepartment/\"+t,method:\"put\",data:e})}function g(t){return Object(a[\"default\"])({url:\"/Department/Department/getAllDepartment\",method:\"post\",data:t})}function b(t,e){return Object(a[\"default\"])({url:\"/Department/Department/getDepartmentInfo/\"+t,method:\"get\",data:e})}function y(t){return Object(a[\"default\"])({url:\"/Department/Role/getAllRole\",method:\"post\",data:t})}function S(t,e){return Object(a[\"default\"])({url:\"/Department/Role/getRoleInfo/\"+t,method:\"get\",data:e})}function I(t,e){return Object(a[\"default\"])({url:\"/Department/Role/updateRole/\"+t,method:\"put\",data:e})}function k(t,e){return Object(a[\"default\"])({url:\"/Department/Role/deleteRole/\"+t,method:\"delete\",data:e})}function _(t){return Object(a[\"default\"])({url:\"/Department/Role/addRole\",method:\"post\",data:t})}function v(t){return Object(a[\"default\"])({url:\"/Department/Staff/getAllStaff\",method:\"post\",data:t})}},\"6c5a\":function(t,e,r){\"use strict\";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"div\",[r(\"el-dialog\",{attrs:{\"close-on-press-escape\":!1,\"close-on-click-modal\":!1,title:\"商品列表\",visible:t.isShow,width:\"60%\"},on:{close:t.cancel}},[r(\"el-table\",{attrs:{border:\"\",data:t.goods_list,size:\"small\"},on:{\"selection-change\":t.selectionChange,\"row-dblclick\":t.selGoods}},[t.isCheck?r(\"el-table-column\",{attrs:{type:\"selection\",width:\"55\"}}):t._e(),r(\"el-table-column\",{attrs:{prop:\"goodsName\",label:\"商品名称\"}}),r(\"el-table-column\",{attrs:{prop:\"goodsCode\",label:\"商品编码\"}}),r(\"el-table-column\",{attrs:{prop:\"categoryName\",label:\"分类\"}}),r(\"el-table-column\",{attrs:{prop:\"buyerUnitPrice\",label:\"采购单价\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.buyerUnitPrice,2))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"buyerNum\",label:\"采购数量\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.buyerNum,2))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"skuName\",label:\"规格\"}}),r(\"el-table-column\",{attrs:{label:\"选择商品\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[r(\"el-button\",{attrs:{size:\"mini\",icon:\"el-icon-check\"},on:{click:function(r){return t.selGoods(e.row)}}})]}}])})],1),t.isCheck?r(\"div\",{staticStyle:{width:\"100%\",\"border-top\":\"1px solid #eee\",\"padding-top\":\"10px\"},attrs:{slot:\"footer\"},slot:\"footer\"},[r(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确定\")]),r(\"el-button\",{attrs:{size:\"small\"},on:{click:t.cancel}},[t._v(\"取消\")])],1):t._e()],1)],1)},o=[],n=r(\"1244\"),u={name:\"GoodsWarehouse\",props:{isShow:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},id:{type:Number,default:0},shop:{type:[String,Number],default:0},goodsData:{type:Array,default:()=>[]}},data(){return{choose_data:[],goods_list:[]}},created(){this.getPurchaseAndBatchInfoById()},methods:{async getPurchaseAndBatchInfoById(){const{data:t}=await Object(n[\"getPurchaseAndBatchInfoById\"])({id:this.id,warehouseId:this.shop});this.goods_list=t},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])}}},s=u,i=r(\"2877\"),l=Object(i[\"a\"])(s,a,o,!1,null,\"a1a79ac4\",null);e[\"default\"]=l.exports},7549:function(t,e,r){\"use strict\";r(\"12b4\")},\"866f0\":function(t,e,r){},\"98ba\":function(t,e,r){\"use strict\";r(\"866f0\")},\"99c0\":function(t,e,r){},\"9cb2\":function(t,e,r){\"use strict\";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"ContainerTit\",{staticClass:\"PurchaseReturnOrderAdd\"},[r(\"div\",{staticStyle:{position:\"relative\"}},[r(\"div\",{staticClass:\"btn-top-div\"},[r(\"el-button\",{attrs:{loading:t.loading,disabled:!!t.$route.params.id},on:{click:function(e){return t.delPauseSave(1)}}},[t._v(\" 清除暂存 \")]),r(\"el-button\",{attrs:{loading:t.loading,disabled:!!t.$route.params.id},on:{click:t.addPauseSave}},[t._v(\" 暂存 \")]),r(\"el-button\",{attrs:{type:\"primary\",loading:t.loading,disabled:\"PurchaseReturnOrderLook\"===t.look_path},on:{click:t.addPurchaseOrder}},[t._v(\" 保存 \")])],1)]),r(\"div\",[r(\"el-form\",{ref:\"form\",attrs:{size:\"small\",inline:\"\",rules:t.rules,model:t.form,disabled:\"PurchaseReturnOrderLook\"===t.look_path}},[r(\"el-tabs\",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:\"activeName\"}},[r(\"el-tab-pane\",{staticStyle:{position:\"relative\"},attrs:{label:\"新增采购退货单\",name:\"one\"}},[r(\"el-row\",{staticStyle:{\"padding-bottom\":\"13px\"}},[r(\"el-col\",{attrs:{span:24}},[r(\"p\",{staticClass:\"order_midden_left_text el-icon-arrow-right\",staticStyle:{\"padding-left\":\"20px\"}},[t._v(\" 采购退货单信息 \")])]),t.pusrchaseOut_id?r(\"el-col\",{staticClass:\"form\",staticStyle:{\"margin-bottom\":\"0\"},attrs:{span:6}},[t.pusrchaseOut_id?r(\"el-form-item\",{attrs:{label:\"退货单号:\"}},[r(\"el-input\",{attrs:{placeholder:\"系统自动生成\",disabled:\"\"}})],1):t._e()],1):t._e(),r(\"el-col\",{staticClass:\"form\",staticStyle:{\"margin-bottom\":\"0\"},attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"关联采购单:\",prop:\"originNo\"}},[r(\"el-input\",{attrs:{placeholder:\"关联采购单\"},model:{value:t.form.originNo,callback:function(e){t.$set(t.form,\"originNo\",e)},expression:\"form.originNo\"}},[r(\"i\",{staticClass:\"el-input__icon el-icon-search\",attrs:{slot:\"suffix\"},on:{click:function(e){t.purchase_open=!0}},slot:\"suffix\"})])],1)],1),t.form.originNo?r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"退货仓库:\"}},[t._v(\" \"+t._s(t.form.warehouseName||\"--\")+\" \")])],1):t._e(),t.form.originNo?r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:5===t.ifMerchant?\"商户:\":\"供应商:\"}},[t._v(\" \"+t._s(5===t.ifMerchant?t.form.merchantName:t.form.supplierName)+\" \")])],1):t._e(),r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"制单人员:\"}},[t._v(\" \"+t._s(t.form.operatorName)+\" \")])],1),r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"制单时间:\"}},[r(\"span\",[t._v(t._s(t.$_common.getNowFormatDate()))])])],1),t.form.originNo?r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"采购人员:\"}},[t._v(\" \"+t._s(t.form.buyerName||\"--\")+\" \")])],1):t._e(),2===t.auditStatus?r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"审核人员:\"}},[r(\"el-input\",{attrs:{size:\"mini\",placeholder:\"输入审核人员\"},model:{value:t.auditName,callback:function(e){t.auditName=e},expression:\"auditName\"}})],1)],1):t._e(),2===t.auditStatus?r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{label:\"审核时间:\"}},[r(\"span\",[t._v(t._s(t.$_common.formatDate(t.auditTime)))])])],1):t._e(),t.pusrchaseOut_id?r(\"el-col\",{staticClass:\"form\",attrs:{span:6}},[r(\"el-form-item\",{attrs:{prop:\"auditStatus\",label:\"审核状态:\",\"min-width\":\"180\"}},[2===t.auditStatus?r(\"span\",{staticClass:\"open-span\"},[t._v(\"已审核\")]):t._e(),1===t.auditStatus?r(\"span\",{staticClass:\"disabled-span\"},[t._v(\" 未审核 \")]):t._e()])],1):t._e()],1)],1)],1),r(\"div\",{staticClass:\"order_bottom\"},[r(\"p\",{staticClass:\"text\"},[t._v(\"付款单明细\")]),r(\"el-table\",{attrs:{data:t.goods_list,size:\"small\",\"show-summary\":\"\",\"summary-method\":t.getSummaries}},[r(\"el-table-column\",{attrs:{prop:\"goodsId\",label:\"ID\",width:\"55\"}}),r(\"el-table-column\",{attrs:{prop:\"goodsCode\",label:\"编码\",\"min-width\":\"140\"}}),r(\"el-table-column\",{attrs:{prop:\"goodsName\",label:\"商品名称\",\"min-width\":\"140\",\"show-overflow-tooltip\":\"\"}}),r(\"el-table-column\",{attrs:{prop:\"unitName\",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)+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"purchaseNum\",label:\"采购数量\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.purchaseNum))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"inNum\",label:\"入库数量\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.inNum))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"inOfNum\",label:\"未入库数量\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.inOfNum))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"returnNum\",label:\"已退数量\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.returnNum))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"returnOnNum\",label:\"可退数量\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.returnOnNum))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"num\",label:\"剩余库存\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formatNub(e.row.inventoryNum))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"buyNum\",label:\"退货数量\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[r(\"el-input-number\",{staticStyle:{width:\"80px\"},attrs:{size:\"mini\",type:\"text\",max:Number(e.row.inventoryNum),min:0,placeholder:\"退货数量\",controls:!1},on:{change:function(r){return t.editNumChange(e.row,e.$index)}},model:{value:e.row.buyerNum,callback:function(r){t.$set(e.row,\"buyerNum\",r)},expression:\"scope.row.buyerNum\"}})]}}])}),r(\"el-table-column\",{attrs:{prop:\"otherNum\",label:\"其他单位\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[5===e.row.isEq?r(\"vxe-input\",{staticStyle:{width:\"80px\"},attrs:{size:\"mini\",min:0,placeholder:\"其他单位\",controls:!1,type:\"integer\"},model:{value:e.row.otherNum,callback:function(r){t.$set(e.row,\"otherNum\",r)},expression:\"scope.row.otherNum\"}}):r(\"span\",[t._v(\"--\")])]}}])}),r(\"el-table-column\",{attrs:{prop:\"buyerUnitPrice\",label:\"退货单价\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.buyerUnitPrice))+\" \")]}}])}),r(\"el-table-column\",{attrs:{prop:\"subtotalPrice\",label:\"小计金额\",\"min-width\":\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(t.$_common.formattedNumber(e.row.subtotalPrice))+\" \")]}}])}),r(\"el-table-column\",{attrs:{fixed:\"right\",label:\"操作\",width:\"100\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[r(\"el-button\",{attrs:{type:\"text\"},on:{click:function(r){return t.delData(e.$index,e.row)}}},[t._v(\" 删除 \")])]}}])})],1),r(\"div\",{staticClass:\"clearfix other-price-view\"},[r(\"div\",{staticClass:\"float_left\"},[r(\"el-form-item\",{attrs:{label:\"备注:\"}},[r(\"el-input\",{staticStyle:{width:\"360px\"},attrs:{placeholder:\"备注\"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,\"remark\",e)},expression:\"form.remark\"}})],1)],1),r(\"div\",{staticClass:\"float_right\"},[r(\"el-form-item\",{attrs:{label:\"其他金额:\"}},[r(\"el-input-number\",{staticStyle:{width:\"100px\"},attrs:{controls:!1,placeholder:\"其他金额\",min:0},model:{value:t.form.otherAmount,callback:function(e){t.$set(t.form,\"otherAmount\",e)},expression:\"form.otherAmount\"}})],1),r(\"el-form-item\",{attrs:{label:\"退货金额:\"}},[r(\"el-input\",{staticStyle:{width:\"100px\"},attrs:{placeholder:\"退货金额\"},model:{value:t.purchaseAmount,callback:function(e){t.purchaseAmount=e},expression:\"purchaseAmount\"}})],1)],1)])],1)],1)],1),t.show_selgoods?r(\"GoodsWarehouse\",{attrs:{id:t.form.originId,\"goods-data\":t.goodsArrData,\"is-show\":t.show_selgoods,shop:t.form.warehouseId},on:{cancel:function(e){t.show_selgoods=!1},confirm:t.selMoreGoods}}):t._e(),t.purchase_open?r(\"OrderReturn\",{attrs:{\"dialog-visible\":t.purchase_open,enable:!0,\"if-merchant\":t.ifMerchant},on:{close:function(e){t.purchase_open=!1},confirm:t.selpurchase}}):t._e()],1)},o=[],n=(r(\"caad\"),r(\"6c5a\")),u=r(\"e56d\"),s=(r(\"b314\"),r(\"64f1\")),i=r(\"2934\"),l=r(\"1244\"),c=(r(\"55bb\"),r(\"2f62\")),d=r(\"478b\"),h={name:\"PurchaseOrderAdd\",components:{GoodsWarehouse:n[\"default\"],OrderReturn:u[\"default\"]},data(){const t=(t,e,r)=>{e?r():r(new Error(\"请选择关联采购单号\"))},e=(t,e,r)=>{e?r():r(new Error(\"请选择采购仓库\"))},r=(t,e,r)=>{e?r():r(new Error(\"请选择供应商\"))},a=(t,e,r)=>{e?r():r(new Error(\"请选择采购人员\"))};return{ifMerchant:4,loading:!1,pusrchaseOut_id:\"\",no:\"\",auditName:\"\",auditTime:\"\",auditId:\"\",auditStatus:\"\",look_path:\"\",form:{originId:\"\",originNo:\"\",supplierId:\"\",supplierName:\"\",warehouseId:\"\",warehouseName:\"\",buyerId:\"\",buyerName:\"\",operatorName:\"\",couponAmount:\"\",otherAmount:\"\",remark:\"\",goodsData:[],shopId:\"\",shopName:\"\",merchantId:\"\",merchantName:\"\",purchaseStatus:\"\"},rules:{originNo:[{required:!0,validator:t}],warehouseName:[{required:!0,validator:e}],supplierName:[{required:!0,validator:r}],buyerId:[{required:!0,validator:a}]},supplier_show:!1,show_selgoods:!1,purchase_open:!1,purchase_list:[],purchase_rules:{},goods_list:[],goodsArrData:[],pusrchase_id:\"\",pusrchase_shopId:\"\",deleteArray:[],stock_list:[],num:\"\",activeName:\"one\"}},computed:{purchaseAmount(){let t=0;return this.goods_list.length>1?this.goods_list.forEach(e=>{t=this.$NP.plus(t,Number(e.subtotalPrice))}):t=1===this.goods_list.length?Number(this.goods_list[0].subtotalPrice):0,this.$NP.plus(t,this.form.otherAmount)},...Object(c[\"c\"])({storeData:\"MUser/storeData\"})},created(){if(this.$route.params.type&&(this.ifMerchant=Number(this.$route.params.type)),this.look_path=this.$route.name,this.$route.query.purchase_id)return this.ifMerchant=this.$route.query.ifMerchant?parseInt(this.$route.query.ifMerchant):4,this.pusrchase_id=parseInt(this.$route.query.purchase_id),void this.getPurchaseInfoById2(this.pusrchase_id);this.$route.params.id?(this.pusrchaseOut_id=this.$route.params.id,this.getPurchaseOutInfoById()):(this.form.operatorName=this.userName,this.getPauseSave(),[2,3].includes(this.systemType)&&(this.form.shopId=this.storeData.id,this.form.shopName=this.storeData.name))},activated(){this.$_isInit()||this.$route.query.purchase_id&&(this.ifMerchant=this.$route.query.ifMerchant?parseInt(this.$route.query.ifMerchant):4,this.pusrchase_id=parseInt(this.$route.query.purchase_id),this.getPurchaseInfoById2(this.pusrchase_id))},methods:{async getAllWarehouse(){const{data:t}=await Object(d[\"getAllWarehouse\"])({page:1,pageSize:999});this.stock_list=t},shopDefault(t,e){this.form.shopId=t,this.form.shopName=e.name},async addPauseSave(){const t={...this.form,goodsData:this.$_common.deepClone(this.goods_list).map(t=>(delete t.num,t))};this.loading=!0;await Object(i[\"addPauseSave\"])({key:this.look_path,data:t});this.loading=!1,this.$message({type:\"success\",message:\"暂存成功\"}),this.$closeCurrentGoEdit(\"/Purchase/ManageP/PurchaseReturnOrder\")},async delPauseSave(t){Object(i[\"delPauseSave\"])({key:this.look_path});t&&(this.$message({type:\"success\",message:\"清除暂存成功\"}),this.$closeCurrentGoEdit(\"/Purchase/ManageP/PurchaseReturnOrderAdd\"))},async getPauseSave(){const{data:t}=await Object(i[\"getPauseSave\"])({key:this.look_path});\"{}\"!==JSON.stringify(t)&&(this.form.warehouseName=t.warehouseName,this.form.warehouseId=t.warehouseId,this.form.originId=t.originId,this.form.originNo=t.originNo,this.form.shopId=t.shopId,this.form.shopName=t.shopName,this.form.supplierId=t.supplierId,this.form.supplierName=t.supplierName,this.form.merchantId=t.merchantId,this.form.merchantName=t.merchantName,this.form.buyerId=t.buyerId,this.form.buyerName=t.buyerName,this.form.operatorName=t.operatorName,this.form.couponAmount=t.couponAmount,this.form.otherAmount=t.otherAmount,this.form.remark=t.remark,this.auditId=t.auditId,this.auditName=t.auditName,this.auditStatus=t.auditStatus,this.no=t.no,this.goods_list=t.goodsData.map(t=>({id:t.id,goodsId:t.goodsId,goodsCode:t.goodsCode,goodsName:t.goodsName,unitName:t.unitName,skuName:t.skuName,buyerNum:t.buyerNum,purchaseNum:t.purchaseNum,buyerUnitPrice:t.buyerUnitPrice,subtotalPrice:this.$NP.times(t.buyerUnitPrice,t.buyerNum),couponAmount:t.couponAmount,skuId:t.skuId,otherAmount:t.otherAmount})))},async addPurchaseOrder(){this.form.otherAmount||(this.form.otherAmount=0),this.$refs[\"form\"].validate(async t=>{if(t){let t={};if(!this.goods_list.length)return void this.$message.warning(\"请选择商品\");const e=this.goods_list.some(t=>t.buyerNum<=0);if(e)return void this.$message.warning(\"退货数量不能为0,请检查\");this.form.purchaseStatus=this.ifMerchant;const r={...this.form,goodsData:this.$_common.deepClone(this.goods_list).map(t=>(delete t.num,this.pusrchaseOut_id||delete t.id,t))};this.loading=!0;try{this.pusrchaseOut_id?(r.deleteArray=this.deleteArray,r.buyerNum>=Number(this.num)&&(r.buyerNum=Number(this.num)),t=await Object(l[\"editPurchaseOut\"])(this.pusrchaseOut_id,r)):(r.deleteArray=this.deleteArray,t=await Object(l[\"addPurchaseOut\"])(r));this.loading=!1,this.goods_list=[],await this.$message({type:\"success\",message:\"提交成功\"}),await this.delPauseSave(),await this.$closeCurrentGoEdit(\"/Purchase/manageP/PurchaseReturnOrder\")}finally{this.loading=!1}}})},async getPurchaseOutInfoById(){const{data:t}=await Object(l[\"getPurchaseOutInfoById\"])(this.pusrchaseOut_id);this.form.warehouseName=t.warehouseName,this.form.warehouseId=t.warehouseId,this.form.originId=t.originId,this.form.originNo=t.originNo,this.form.shopId=t.shopId,this.form.shopName=t.shopName,this.form.supplierId=t.supplierId,this.form.supplierName=t.supplierName,this.form.merchantId=t.merchantId,this.form.merchantName=t.merchantName,this.form.buyerId=t.buyerId,this.form.buyerName=t.buyerName,this.form.operatorName=t.operatorName,this.form.couponAmount=t.couponAmount,this.form.otherAmount=t.otherAmount,this.form.remark=t.remark,this.auditId=t.auditId,this.auditName=t.auditName,this.auditTime=t.auditTime,this.auditStatus=t.auditStatus,this.no=t.no,this.goods_list=t.details},delData(t,e){e.id&&this.deleteArray.push(e.id),this.goods_list.splice(t,1)},editNumChange(t,e){t.buyerNum||this.$message.warning(\"退货数量为空,默认变成1\");const r=this.$_common.deepClone(this.goods_list);r[e].subtotalPrice=this.$NP.times(r[e].buyerNum,r[e].buyerUnitPrice),r[e].returnOnNum>Number(r[e.num])&&(r[e].returnOnNum=Number(r[e.num])),this.goods_list=r},selShop(t,e){this.form.shopName=e[0].name},async getPurchaseInfoById(t,e){const{data:r}=await Object(l[\"getPurchaseAndBatchInfoById\"])({id:t,warehouseId:e});this.goods_list=r.map(t=>({isEq:t.isEq,otherNum:t.otherNum,id:t.id,goodsId:t.basicGoodsId,goodsCode:t.goodsCode,goodsName:t.goodsName,unitName:t.unitName,skuName:t.skuName,skuId:t.skuId,purchaseNum:t.buyerNum,buyerNum:t.returnOnNum,inNum:t.inNum,inOfNum:t.inOfNum,returnOnNum:t.returnOnNum,returnNum:t.returnNum,inventoryNum:t.num,buyerUnitPrice:t.buyerUnitPrice,subtotalPrice:this.$NP.times(t.buyerUnitPrice,t.returnOnNum),couponAmount:t.couponAmount,otherAmount:t.otherAmount})),this.goodsArrData=r.map(t=>({...t,materielName:t.goodsName,materielCode:t.goodsCode}))},async getPurchaseInfoById2(){const{data:t}=await Object(l[\"getPurchaseInfoById\"])(this.pusrchase_id);this.form.originId=t.id,this.form.originNo=t.no,this.form.shopId=t.shopId,this.form.shopName=t.shopName,this.form.buyerId=t.buyerId,this.form.buyerName=t.buyerName,this.form.remark=t.remark,this.form.supplierId=5===this.ifMerchant?0:t.supplierId,this.form.supplierName=5===this.ifMerchant?\"\":t.supplierName,this.form.merchantId=5===this.ifMerchant?t.merchantId:0,this.form.merchantName=5===this.ifMerchant?t.merchantName:\"\",this.form.warehouseName=t.warehouseName,this.form.warehouseId=t.warehouseId,this.form.operatorName=t.operatorName,this.form.purchaseStatus=this.ifMerchant,await this.getPurchaseInfoById(this.pusrchase_id,t.warehouseId)},selpurchase(t){const e=t[0].id,r=t[0].warehouseId;this.getPurchaseInfoById(e,r),this.form.originId=t[0].id,this.form.originNo=t[0].no,this.form.shopId=t[0].shopId,this.form.shopName=t[0].shopName,this.form.buyerId=t[0].buyerId,this.form.buyerName=t[0].buyerName,this.form.remark=t[0].remark,this.form.supplierId=5===this.ifMerchant?0:t[0].supplierId,this.form.supplierName=5===this.ifMerchant?\"\":t[0].supplierName,this.form.merchantId=5===this.ifMerchant?t[0].merchantId:0,this.form.merchantName=5===this.ifMerchant?t[0].merchantName:\"\",this.form.warehouseName=t[0].warehouseName,this.form.warehouseId=t[0].warehouseId},selUnitSupplier(t,e){this.form.supplierName=e[0].title},async getAllStaff(){const t=await Object(s[\"getAllStaff\"])({page:1,pageSize:999});this.purchase_list=t.data},selMoreGoods(t){const e=t.map(t=>({goodsId:t.basicGoodsId,goodsCode:t.goodsCode,goodsName:t.goodsName,unitName:t.unitName,skuName:t.skuName,skuId:t.skuId,purchaseNum:t.num,buyerNum:t.num,num:t.num,buyerUnitPrice:t.buyerUnitPrice,subtotalPrice:this.$NP.times(t.buyerUnitPrice,t.num),couponAmount:t.couponAmount,otherAmount:t.otherAmount}));this.goods_list.length?this.goods_list=this.$_common.unique(this.goods_list.concat(e),[\"goodsId\",\"skuId\"]):this.goods_list=e},purchaseChange(t){const e=this.purchase_list.find(e=>e.id===t);this.form.buyerId=e.id,this.form.buyerName=e.staffName},warehouseChange(t){const e=this.stock_list.find(e=>e.id===t);this.form.warehouseId=e.id,this.form.warehouseName=e.warehouseName},getSummaries(t){return this.$_common.getSummaries(t,[\"退货数量\",\"小计金额\"])}}},f=h,p=(r(\"219a\"),r(\"4e2e\"),r(\"2877\")),m=Object(p[\"a\"])(f,a,o,!1,null,\"1bb3d1c6\",null);e[\"default\"]=m.exports},b314:function(t,e,r){\"use strict\";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"div\",{staticClass:\"dis-inline\"},[r(\"el-select\",{style:{width:t.width+\"px\"},attrs:{value:t.value,placeholder:t.placeholder,clearable:t.clearable,filterable:\"\",remote:\"\",size:t.size,multiple:t.multiple,disabled:t.disabled,\"remote-method\":t.remoteMethod,loading:t.loading},on:{change:t.selChange,clear:t.clearChange}},t._l(t.supplier_list,(function(t,e){return r(\"el-option\",{key:e,attrs:{label:t.title,value:t.id}})})),1),r(\"span\",{staticClass:\"sel-btn\",staticStyle:{\"margin-right\":\"15px\"},on:{click:t.openVisible}},[r(\"i\",{staticClass:\"el-icon-search\"})]),r(\"el-dialog\",{attrs:{title:\"供应商列表\",visible:t.supplier_show,width:\"60%\",modal:t.modal,\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{close:t.visibleCancel}},[r(\"div\",{staticClass:\"search-wrp clearfix\"},[r(\"el-input\",{staticStyle:{width:\"260px\"},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\"}},[r(\"el-button\",{attrs:{slot:\"append\",type:\"primary\",icon:\"el-icon-search\"},on:{click:function(e){return t.pageChange(1)}},slot:\"append\"})],1)],1),r(\"el-table\",{attrs:{data:t.supplier_list,size:\"small\"},on:{\"row-dblclick\":t.dbSelect,\"selection-change\":t.customerSel}},[r(\"el-table-column\",{attrs:{prop:\"title\",label:\"供应商名称\"}}),r(\"el-table-column\",{attrs:{prop:\"realName\",label:\"联系人\",align:\"center\"}}),r(\"el-table-column\",{attrs:{prop:\"mobile\",label:\"联系电话\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[t._v(\" \"+t._s(e.row.mobile)+\" \")]}}])}),r(\"el-table-column\",{attrs:{label:\"选择\",align:\"center\"},scopedSlots:t._u([{key:\"default\",fn:function(e){return[r(\"el-button\",{attrs:{icon:\"el-icon-check\",size:\"mini\"},on:{click:function(r){return t.dbSelect(e.row)}}})]}}])})],1),r(\"FooterPage\",{attrs:{layout:\"prev, pager, next, jumper\",\"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)},o=[],n=r(\"1244\"),u={name:\"SelectSupplier\",components:{},model:{prop:\"value\",event:\"change\"},props:{value:{type:[Number,String,Array],default:\"\"},placeholder:{type:String,default:\"供应商名称\"},size:{type:String,default:\"\"},width:{type:[String,Number],default:\"150\"},isDefault:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!0},enable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modal:{type:Boolean,default:!0}},data(){return{supplier_list:[],supplier_show:!1,loading:!1,total:0,page:1,pre_page:10,keyword:\"\"}},created(){this.getList()},methods:{remoteMethod(t){this.loading=!0,this.pre_page=999,this.keyword=t,this.getList()},clearChange(){this.$emit(\"clear\")},selChange(t){if(!t)return;let e=[];e=this.multiple?this.supplier_list.filter(e=>t.indexOf(e.id)>-1):this.supplier_list.filter(e=>e.id===t),this.$emit(\"change\",t,e)},async getList(){const t={page:this.page,pageSize:this.pre_page,enableStatus:5,keyword:this.keyword},e=await Object(n[\"getAllSupplier\"])(t);this.loading=!1,this.supplier_list=e.data,this.total=e.pageTotal,this.$emit(\"getAllSupplier\",e.data),this.isDefault&&this.$emit(\"default\",e.data[0].id,e.data[0])},dbSelect(t){this.selChange(t.id),this.visibleCancel()},customerSel(t){this.selChange(t[0].id),this.visibleCancel()},pageChange(t){this.page=t,this.getList()},sizeChange(t){this.pre_page=t,this.pageChange(1)},visibleCancel(){this.supplier_show=!1},openVisible(){this.keyword=\"\",this.supplier_show=!0,this.sizeChange(10)}}},s=u,i=(r(\"7549\"),r(\"2877\")),l=Object(i[\"a\"])(s,a,o,!1,null,\"fe7d45a4\",null);e[\"default\"]=l.exports},e56d:function(t,e,r){\"use strict\";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r(\"div\",[r(\"el-dialog\",{attrs:{title:\"采购订单\",visible:t.dialogVisible,width:\"60%\",\"close-on-press-escape\":!1,\"close-on-click-modal\":!1},on:{\"update:visible\":function(e){t.dialogVisible=e},close:t.close}},[r(\"div\",[r(\"div\",{staticStyle:{\"padding-bottom\":\"10px\"}},[r(\"el-input\",{staticStyle:{width:\"280px\"},attrs:{placeholder:\"请输入采购单号\",size:\"small\",clearable:\"\"},on:{clear:t.getAllPurchase},model:{value:t.search_key,callback:function(e){t.search_key=e},expression:\"search_key\"}},[r(\"el-button\",{attrs:{slot:\"append\",icon:\"el-icon-search\"},on:{click:t.getAllPurchase},slot:\"append\"})],1)],1),r(\"vxe-table\",{ref:\"orderReturn\",attrs:{data:t.table_data,border:\"inner\",\"auto-resize\":\"\",\"expand-config\":{accordion:!0}}},[t.isCheck?r(\"vxe-table-column\",{attrs:{type:\"checkbox\",width:\"60\"}}):t._e(),r(\"vxe-table-column\",{attrs:{\"min-width\":\"120\",field:\"no\",title:\"采购单号\"}}),r(\"vxe-table-column\",{attrs:{type:\"expand\",title:\"商品清单\",width:\"100\",fixed:t.expandFixed},scopedSlots:t._u([{key:\"content\",fn:function(e){var a=e.row;return[r(\"ul\",{staticClass:\"sku-ul\"},t._l(a.goodsData,(function(e,a){return r(\"li\",{key:a,staticClass:\"sku-li\"},[r(\"div\",{staticClass:\"sku-info float_left\"},[r(\"p\",[r(\"span\",{staticClass:\"label\"},[t._v(\"商品名称:\")]),t._v(\" \"+t._s(e.goodsName)+\" \")]),r(\"p\",[r(\"span\",{staticClass:\"label\"},[t._v(\"商品编码:\")]),t._v(\" \"+t._s(e.goodsCode)+\" \")]),r(\"p\",[r(\"span\",{staticClass:\"label\"},[t._v(\"规格:\")]),t._v(\" \"+t._s(e.unitName)+\";\"+t._s(e.skuName)+\" \")]),r(\"p\",[r(\"span\",{staticClass:\"label\"},[t._v(\"采购数量:\")]),r(\"span\",[t._v(\" \"+t._s(t.$_common.formatNub(e.buyerNum))+\" \")])]),r(\"p\",[r(\"span\",{staticClass:\"label\"},[t._v(\"可退数量:\")]),r(\"span\",[t._v(\" \"+t._s(t.$_common.formatNub(e.returnOnNum))+\" \")])])])])})),0)]}}])}),r(\"vxe-table-column\",{attrs:{\"min-width\":\"130\",field:\"warehouseName\",title:\"仓库名称\"}}),r(\"vxe-table-column\",{attrs:{\"min-width\":\"100\",field:5===parseInt(t.ifMerchant)?\"merchantName\":\"supplierName\",title:5===parseInt(t.ifMerchant)?\"商户\":\"供应商\"}}),r(\"vxe-table-column\",{attrs:{\"min-width\":\"120\",field:\"purchaseAmount\",title:\"采购价格\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var r=e.row;return[t._v(\" \"+t._s(t.$_common.formattedNumber(r.purchaseAmount))+\" \")]}}])}),r(\"vxe-table-column\",{attrs:{width:\"100\",title:\"选择\"},scopedSlots:t._u([{key:\"default\",fn:function(e){var a=e.row;return[r(\"el-button\",{staticStyle:{\"margin-left\":\"0\"},attrs:{size:\"mini\",icon:\"el-icon-check\"},on:{click:function(e){return t.dblclick(a)}}})]}}])})],1),r(\"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,sizeChage:t.sizeChange}})],1),t.isCheck?r(\"div\",{staticStyle:{\"text-align\":\"center\",\"padding-top\":\"10px\"}},[r(\"el-button\",{attrs:{size:\"small\",type:\"primary\"},on:{click:t.confirm}},[t._v(\"确认\")]),r(\"el-button\",{attrs:{size:\"small\"},on:{click:t.close}},[t._v(\"取消\")])],1):t._e()])],1)},o=[],n=r(\"1244\"),u={name:\"OrderReturn\",props:{dialogVisible:{type:Boolean,default:!1},isCheck:{type:Boolean,default:!1},ifMerchant:{type:[Number,String],default:4}},data(){return{search_key:\"\",pre_page:10,total:0,page:1,table_data:[],choose_data:[],expandFixed:null}},created(){this.getAllPurchase()},methods:{async getAllPurchase(){const t=await Object(n[\"getAllPurchase\"])({returnStatus:\"0,1\",inStatus:\"5,6\",auditStatus:2,deleteStatus:5,ifMerchant:this.ifMerchant,purchaseType:5===parseInt(this.ifMerchant)?5:4,page:this.page,pageSize:this.pre_page,keyword:this.search_key});this.table_data=t.data,this.total=t.pageTotal},dblclick(t){this.close(),this.$emit(\"confirm\",[t])},pageChange(t){this.page=t,this.getAllPurchase()},sizeChange(t){this.page=1,this.pageSize=t,this.getAllPurchase()},close(){this.$emit(\"close\")},confirm(){this.choose_data=this.$refs.orderReturn.getCheckboxRecords(),this.$emit(\"confirm\",this.choose_data),this.close()},handleSelectionChange(t){this.choose_data=t}}},s=u,i=(r(\"98ba\"),r(\"2877\")),l=Object(i[\"a\"])(s,a,o,!1,null,\"24964cfc\",null);e[\"default\"]=l.exports}}]);","extractedComments":[]}