import request from '@/utils/request' export function createDealer(params) { return request({ url: '/api/stock/dealer/create', method: 'post', params: params }) } export function modifyDealer(params) { return request({ url: '/api/stock/dealer/modify', method: 'post', params: params }) } export function getDealersList(params) { return request({ url: '/api/stock/dealer/list', method: 'get', params: params }) } export function deleteDealer(params) { return request({ url: '/api/stock/dealer/delete', method: 'post', params: params }) } export function GetDealer(params) { return request({ url: '/api/stock/dealer/get', method: 'get', params: params }) } export function createManufacturer(params) { return request({ url: '/api/stock/manufacturer/create', method: 'post', params: params }) } export function modifyManufacturer(params) { return request({ url: '/api/stock/manufacturer/modify', method: 'post', params: params }) } export function getManufacturerList(params) { return request({ url: '/api/stock/manufacturer/list', method: 'get', params: params }) } export function deleteManufacturer(params) { return request({ url: '/api/stock/manufacturer/delete', method: 'post', params: params }) } export function GetManufacturer(params) { return request({ url: '/api/stock/manufacturer/get', method: 'get', params: params }) } export function createGoodType(params) { return request({ url: '/api/stock/good/type/create', method: 'post', params: params }) } export function modifyGoodType(params) { return request({ url: '/api/stock/good/type/modify', method: 'post', params: params }) } export function getGoodTypeList(params) { return request({ url: '/api/stock/good/type/list', method: 'get', params: params }) } export function deleteGoodType(params) { return request({ url: '/api/type/delete', method: 'post', params: params }) } export function GetGoodType(params) { return request({ url: '/api/stock/good/type/get', method: 'get', params: params }) } export function createGoodInfo(params) { console.log('prams', params) return request({ url: '/api/stock/good/info/create', method: 'post', params: params }) } export function modifyGoodInfo(params) { return request({ url: '/api/stock/good/info/modify', method: 'post', params: params }) } export function getGoodInfoList(params) { return request({ url: '/api/stock/good/info/list', method: 'get', params: params }) } export function deleteGoodInfo(params) { return request({ url: '/api/info/delete', method: 'post', params: params }) } export function GetGoodInfoByGoodId(params) { return request({ url: '/api/stock/good/info/get', method: 'get', params: params }) } export function GetGoodInfo(params) { return request({ url: '/api/stock/good/info', method: 'get', params: params }) } export function GetAllDeals(params) { return request({ url: '/api/stock/dealer/all', method: 'get', params: params }) } export function GetAllManufacturer(params) { return request({ url: '/api/stock/manufacturer/all', method: 'get', params: params }) } export function GetAllGoodType(params) { return request({ url: '/api/stock/good/type/all', method: 'get', params: params }) } export function GetAllGoodInfo(params) { return request({ url: '/api/stock/good/info/all', method: 'get', params: params }) } export function postWarehouse(data, warehousing_time, type, storehouse_id, warehousing_info_id) { return request({ url: '/api/warehouse/create?warehousing_time=' + warehousing_time + '&type=' + type + '&storehouse_id=' + storehouse_id + '&warehousing_info_id=' + warehousing_info_id, method: 'post', data: data }) } export function getWarehouseList(params) { return request({ url: '/api/warehouse/list', method: 'get', params: params }) } export function getWarehouseInfoList(params) { return request({ url: '/api/warehouseinfo/list', method: 'get', params: params }) } export function postSalesReturn(params, salesReturnTime, salesReturnTotal, dealer_id, manufacturer_id, type) { return request({ url: '/api/salesreturn/create?time=' + salesReturnTime + '&total=' + salesReturnTotal + '&dealer_id=' + dealer_id + '&manufacturer_id=' + manufacturer_id + '&type=' + type, method: 'post', data: params }) } export function getWarehouseInfo(params) { return request({ url: '/api/info/get', method: 'get', params: params }) } export function getSalesReturnList(params) { return request({ url: '/api/salesreturn/list', method: 'get', params: params }) } export function getSalesReturnInfoList(params) { return request({ url: '/api/return/info', method: 'get', params: params }) } export function getAllWarehouseInfo(params) { return request({ url: '/api/warehouseinfo', method: 'get', params: params }) } export function getWarehouseOutInfoList(params) { return request({ url: '/api/stock/out/info', method: 'get', params: params }) } export function postWarehouseOut(params, warehousing_time, dealer_id, manufacturer_id, type, storehouse_id,warehouseOut_id) { return request({ url: '/api/warehouseout/create?warehousing_out_time=' + warehousing_time + '&dealer_id=' + dealer_id + '&manufacturer_id=' + manufacturer_id + '&type=' + type + '&storehouse_id=' + storehouse_id+"&warehouseOut_id="+warehouseOut_id, method: 'post', data: params }) } export function getWarehouseInfoCountByGoodId(params) { return request({ url: '/api/info/count', method: 'get', params: params }) } export function getWarehouseInfoByGoodTypeId(params) { return request({ url: '/api/warehouse/type', method: 'get', params: params }) } export function getCancelStockInfoList(params) { return request({ url: '/api/cancel/info', method: 'get', params: params }) } export function getAllStockOutList(params) { return request({ url: '/api/out/list', method: 'get', params: params }) } export function getAllStockQueryList(params) { return request({ url: '/api/stock/query', method: 'get', params: params }) } export function getWarehouseInfoByOrdeNumber(params) { return request({ url: '/api/stock/warehouse/get', method: 'get', params: params }) } export function modifyWarehouseInfo(params) { return request({ url: '/api/warehouse/edit', method: 'post', params: params }) } export function deleteWarehouseInfo(params) { return request({ url: '/api/warehouse/delete', method: 'post', params: params }) } export function getWarehouseOutInfoByOrdeNumber(params) { return request({ url: '/api/stock/out/get', method: 'get', params: params }) } export function modifyWarehouseOutInfo(params) { return request({ url: '/api/stock/out/edit', method: 'post', params: params }) } export function GetAllConfig() { return request({ url: '/api/stock/config', method: 'get' }) } export function GetAllGoodInfoByID(params) { return request({ url: '/api/good/get', method: 'get', params: params }) } export function DeleteWarehouseInfoItem(params) { return request({ url: '/api/warehouseinfo/delete', method: 'post', params: params }) } export function EditWarehouse(params, warehousing_time, id, type, manufacturer_id, dealer_id, storehouse_id) { return request({ url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&storehouse_id=' + storehouse_id, method: 'post', data: params }) } export function getSalesReturnConfig(params) { return request({ url: '/api/return/config', method: 'get', params: params }) } export function deleteSalesReturn(params) { return request({ url: '/api/salesreturn/delete', method: 'post', params: params }) } export function getSaleReturnInfoList(params) { return request({ url: '/api/stock/salesReturn/list', method: 'get', params: params }) } export function getReturnList(params) { return request({ url: '/api/salesreturninfo/list', method: 'get', params: params }) } export function deleteSalesReturnInfo(params) { return request({ url: '/api/salesreturninfo/delete', method: 'post', params: params }) } export function editSalesReturnInfo(params, return_time, id, type, manufacturer_id, dealer_id) { return request({ url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id, method: 'post', data: params }) } export function deleteWarehouseOut(params) { return request({ url: '/api/warehouseout/delete', method: 'post', params: params }) } export function deleteWarehouseOutInfo(params) { return request({ url: '/api/warehouseoutinfo/delete', method: 'post', params: params }) } export function getWarehouseOutList(params) { return request({ url: '/api/warehouseout/list', method: 'get', params: params }) } export function getWarehouseOutInfo(params) { return request({ url: '/api/warehouseout/info', method: 'get', params: params }) } export function editWarehouseoutInfo(params, warehouse_out_time, id, type, manufacturer_id, dealer_id, storehouse_id) { return request({ url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&storehouse_id=' + storehouse_id, method: 'post', data: params }) } export function getCancelStockList(params) { return request({ url: '/api/cancelstock/list', method: 'get', params: params }) } export function editCancelStockInfo(params, cancel_stock_time, id, type, manufacturer_id, dealer_id, storehouse_id) { return request({ url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&storehouse_id=' + storehouse_id, method: 'post', data: params }) } export function getCancelStockInfo(params) { return request({ url: '/api/cancelstock/info', method: 'get', params: params }) } export function deleteCancelStock(params) { return request({ url: '/api/cancelstock/delete', method: 'post', params: params }) } export function deleteCancelStockInfo(params) { return request({ url: '/api/cancelstockinfo/delete', method: 'post', params: params }) } export function postCancelStock(params, cancelStockTime, manufacturer_id, dealer_id, type, storehouse_id, cancel_stock_id) { return request({ url: '/api/cancelstock/create?time=' + cancelStockTime + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&type=' + type + '&storehouse_id=' + storehouse_id + '&cancel_stock_id=' + cancel_stock_id, method: 'post', data: params }) } export function getCancelStockConfig(params) { return request({ url: '/api/cancelstockinfo/config', method: 'get', params: params }) } export function getStockDetail(params) { return request({ url: '/api/stock/detail', method: 'get', params: params }) } export function getPrintStockGood(params) { return request({ url: '/api/print/stock', method: 'get', params: params }) } export function getWarehouseOutUser(params) { return request({ url: '/api/warehouseout/user', method: 'get', params: params }) } export function PostSearchStock(keyword, params) { return request({ url: '/api/warehouseout/postsearchstock?keyword=' + keyword, method: 'get', params: params }) } export function GetOutStockTotalCount(params) { return request({ url: '/api/warehouseout/getoutstocktotalcount', method: 'get', params: params }) } export function postGoodInformation(params) { return request({ url: '/api/good/postgoodinformation', method: 'Post', data: params }) } export function postDrugInformation(params) { return request({ url: '/api/good/postdruginformation', method: 'post', data: params }) } export function getInitializtion(params) { return request({ url: '/api/good/initializtion', method: 'get', params: params }) } export function getWarehouseOrderInfoList(params) { return request({ url: '/api/good/getwarehouseorderinfolist', method: 'get', params: params }) } export function postSearchGoodList(keyword, storehouse_id, params) { return request({ url: '/api/good/postsearchgoodlist?keyword=' + keyword + '&storehouse_id=' + storehouse_id, method: 'Get', params: params }) } export function getAllStockList(params) { return request({ url: '/api/good/getallstocklist', method: 'get', params: params }) } export function getStockDrugCount(params) { return request({ url: '/api/good/getstockdrugcount', method: 'get', params: params }) } export function getOrderDetailByOrderId(params) { return request({ url: '/api/good/getorderdetialbyorderid', method: 'get', params: params }) } export function getOrderDetailById(params) { return request({ url: '/api/good/getorderdetaibyid', method: 'Get', params: params }) } export function getSingleOutOrderDetail(params) { return request({ url: '/api/good/getsingleoutorderdetail', method: 'get', params: params }) } export function getExportStockList(params) { return request({ url: '/api/stock/getexportstocklist', method: 'get', params: params }) } export function getOutExportList(params) { return request({ url: '/api/stock/getoutexprotlist', method: 'get', params: params }) } export function getSingCancelOrder(params) { return request({ url: '/api/stock/getsinglecancelorder', method: 'get', params: params }) } export function getCancelStockOrderPrint(params) { return request({ url: '/api/stock/getcancelstockorderprint', method: 'get', params: params }) } export function getStockBatchNumber(params) { return request({ url: '/api/stock/getstockbatchnumber', method: 'get', params: params }) } export function getStockFlow(params) { return request({ url: '/api/stock/getstockflow', method: 'Get', params: params }) } export function getCancelExportList(params) { return request({ url: '/api/cancel/getcancelexportlist', method: 'get', params: params }) } export function getGoodDetailPrintList(params) { return request({ url: '/api/stock/getgooddetailprintlist', method: 'get', params: params }) } export function postSearchGoodWarehouseList(params) { return request({ url: '/api/stock/postsearchgoodwarehouselist', method: 'get', params: params }) } export function saveAdjustPrice(data) { return request({ url: '/api/stock/saveadjustprice', method: 'post', data: data }) } export function getAllStockPrice(params) { return request({ url: '/api/stock/getallstockprice', method: 'get', params: params }) } export function getCheckedPrice(params) { return request({ url: '/api/stock/getcheckprice', method: 'get', params: params }) } export function SaveCheckedPrice(params) { return request({ url: '/api/stock/savecheckedprice', method: 'get', params: params }) } export function getAdjustPriceById(params) { return request({ url: '/api/stock/getadjustpriceinfo', method: 'get', params: params }) } export function saveReportStock(data) { return request({ url: '/api/stock/savereportstock', method: 'post', data: data }) } export function getReportStockList(params) { return request({ url: '/api/stock/getreportstocklist', method: 'get', params: params }) } export function SaveCheckedDamage(params) { return request({ url: '/api/stock/savecheckdamage', method: 'get', params: params }) } export function saveInventory(data) { return request({ url: '/api/stock/saveinventory', method: 'post', data: data }) } export function getInventoryList(params) { return request({ url: '/api/stock/getinventorylist', method: 'get', params: params }) } export function SaveCheckedInventory(params) { return request({ url: '/api/stock/savecheckinventory', method: 'Get', params: params }) } export function getModifyPriceDetail(id, params) { return request({ url: '/api/stock/getmodifypriceDetail?id=' + id, method: 'get', params: params }) } export function updateStockPrice(params) { return request({ url: '/api/stock/updatestockprice', method: 'get', params: params }) } export function deleteStockPrice(params) { return request({ url: '/api/stock/deletestockprice', method: 'Get', params: params }) } export function getStockDamageDetail(id, params) { return request({ url: '/api/stock/getstockdamagedetal?id=' + id, method: 'get', params: params }) } export function modifyPrice(params) { return request({ url: '/api/sotck/modifyprice', method: 'Get', params: params }) } export function deleteStockDamage(params) { return request({ url: '/api/stock/deletestockdamage', method: 'get', params: params }) } export function getStockDamageById(params) { return request({ url: '/api/stock/getstockdamagebyid', method: 'get', params: params }) } export function getInventoryDetail(id, params) { return request({ url: 'api/sotck/getinventorydetail?id=' + id, method: 'Get', params: params }) } export function modifyInventory(params) { return request({ url: '/api/stock/modifyinventory', method: 'Get', params: params }) } export function deleteInventory(id, params) { return request({ url: '/api/stock/deleteinventory?id=' + id, method: 'get', params: params }) } export function getInventoryDetailList(params) { return request({ url: '/api/stock/getinventorydetaillist', method: 'Get', params: params }) } export function getInventoryPrintList(params) { return request({ url: '/api/stock/getinventoryprintlist', method: 'Get', params: params }) } export function getInventoryDetailPrintList(params) { return request({ url: '/api/stock/getinventorydetailprintlist', method: 'Get', params: params }) } export function getGoodWarehouseList(params) { return request({ url: '/api/stock/getgoodwarehouselist', method: 'Get', params: params }) } export function proofInventory(params) { return request({ url: '/api/stock/proofinventory', method: 'get', params: params }) } export function getWarehouseTotal(params) { return request({ url: '/api/stock/getwarehousetotal', method: 'Get', params: params }) } export function getGoodInventoryWarehouseList(params) { return request({ url: '/api/stock/getgoodinventorywarehouselist', method: 'get', params: params }) } export function saveStockInentoryList(data) { return request({ url: '/api/stock/savestockinentorylist', method: 'post', data: data }) } export function getDamageDetailByGoodId(params) { return request({ url: '/api/sotck/getdamagedetailbygoodid', method: 'get', params: params }) } export function getInventoryExportList(params) { return request({ url: '/api/stock/getinventoryexportlist', method: 'get', params: params }) } export function getDrugDetailSummary(params) { return request({ url: '/api/stock/getdrugdetailsummary', method: 'get', params: params }) } export function getGoodDetailSummary(params) { return request({ url: '/api/stock/getgooddetialsummary', method: 'Get', params: params }) } export function getdealername(params) { return request({ url: '/api/stock/dealer/getdealername', method: 'Get', params: params }) } export function getmanufacturername(params) { return request({ url: '/api/stock/manufacturer/getmanufacturername', method: 'get', params: params }) } export function checkWarehouseOut(params) { return request({ url: '/api/stock/checkwarehouseout', method: 'get', params: params }) } export function returnCheckWarehouseOut(params) { return request({ url: '/api/stock/returncheckwarehouseout', method: 'get', params: params }) } export function toCheckWarehouseInfo(params) { return request({ url: '/api/stock/tocheckwarehouseinfo', method: 'get', params: params }) } export function toReturnCheckWarehouseInfo(params) { return request({ url: '/api/stock/returncheckwarehouseinfo', method: 'get', params: params }) } export function checkStockWarehouseInfo(params) { return request({ url: '/api/stock/checkstockwarehouseinfo', method: 'get', params: params }) } export function checkRturnStockWarehouseInfo(params) { return request({ url: '/api/stock/checkreturnstockwarehouseinfo', method: 'get', params: params }) } export function getPrintList(params) { return request({ url: '/api/stock/getprintlist', method: 'get', params: params }) } export function getwarehouseinfolist(params) { return request({ url: '/api/stock/getwarehouseinfolist', method: 'get', params: params }) } export function getNewGoodWarehouseInfo(params) { return request({ url: '/api/stock/getnewgoodwarehouseinfo', method: 'get', params: params }) } export function getNewWarehouseOutInfoList(params) { return request({ url: '/api/stock/getnewwarehouseoutinfolist', method: 'Get', params: params }) } export function getStockFlowOrderList(params){ return request({ url:"/api/stock/getstockfloworderlist", method:"Get", params:params, }) }