import request from '@/utils/request' // 查询商户门店进场记录,全部类型门店列表 export function listShopin(query) { return request({ url: '/biz/shopin/list', method: 'get', params: query }) } // 查询商户门店进场记录,全部类型门店详细 export function getShopin(shopInSn) { return request({ url: '/biz/shopin/' + shopInSn, method: 'get' }) } // 新增商户门店进场记录,全部类型门店 export function addShopin(data) { return request({ url: '/biz/shopin', method: 'post', data: data }) } // 修改商户门店进场记录,全部类型门店 export function updateShopin(data) { return request({ url: '/biz/shopin', method: 'put', data: data }) } // 删除商户门店进场记录,全部类型门店 export function delShopin(shopInSn) { return request({ url: '/biz/shopin/' + shopInSn, method: 'delete' }) } // 导出商户门店进场记录,全部类型门店 export function exportShopin(query) { return request({ url: '/biz/shopin/export', method: 'get', params: query }) } // 拉取门店进货记录 export function pullShopInRecord(query,_this) { return request({ url: '/biz/shopin/pullShopInRecord', method: 'post', params: query, timeout: 3600 * 1000, loading: document.body }).then(function (response) { _this.$alert("拉取成功..."); }).catch(function () { _this.$alert("拉取异常..."); }) }