12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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,loading,_this) {
- return request({
- url: '/biz/shopin/pullShopInRecord',
- method: 'post',
- params: query,
- timeout: 3600 * 1000
- }).then(function (response) {
- loading.close();
- _this.$alert("拉取成功...");
- }).catch(function () {
- loading.close();
- _this.$alert("拉取异常...");
- })
- }
|