diff --git a/src/api/base/company/index.js b/src/api/base/company/index.js index 538be6a..886eac5 100644 --- a/src/api/base/company/index.js +++ b/src/api/base/company/index.js @@ -102,3 +102,11 @@ export function getCompanyList(){ method: 'get' }) } + +// 当前登录用户的门店信息 +export function getNowCompany(){ + return request({ + url: "/base/company/now", + method: "get" + }) +} diff --git a/src/api/repair/stockTransfer/stockTransfer.js b/src/api/repair/stockTransfer/stockTransfer.js index 543ea86..38660b4 100644 --- a/src/api/repair/stockTransfer/stockTransfer.js +++ b/src/api/repair/stockTransfer/stockTransfer.js @@ -1 +1,21 @@ import request from '@/utils/request' + +const preUrl = '/repair/st' + +// 新增 +export function createSt(data){ + return request({ + url: preUrl + "/create", + method: "post", + data + }) +} + +// 分页查 +export function getStPage(params){ + return request({ + url: preUrl + "/page", + method: "get", + params + }) +} diff --git a/src/api/repair/stockTransfer/stockTransferItem.js b/src/api/repair/stockTransfer/stockTransferItem.js index 543ea86..02f16f2 100644 --- a/src/api/repair/stockTransfer/stockTransferItem.js +++ b/src/api/repair/stockTransfer/stockTransferItem.js @@ -1 +1,12 @@ import request from '@/utils/request' + +const preUrl = "/repair/sti" + +// 调拨单子表 分页 +export function getStiPage(params){ + return request({ + url: preUrl + "/page", + method: "get", + params + }) +} diff --git a/src/views/login.vue b/src/views/login.vue index 78eda5d..607ccb8 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -133,7 +133,8 @@ export default { }, data() { return { - tenantCode:"lighting", + tenantCode:"lighting", // TODO 这里手动改还是不太合理 + // tenantCode:"lanan", codeUrl: "", //是否开启图形验证码 captchaEnable: false, diff --git a/src/views/repair/Components/WarehouseChoose.vue b/src/views/repair/Components/WarehouseChoose.vue index 60d8870..18e6d9c 100644 --- a/src/views/repair/Components/WarehouseChoose.vue +++ b/src/views/repair/Components/WarehouseChoose.vue @@ -1,6 +1,6 @@