diff --git a/gear-ui3/src/App.vue b/gear-ui3/src/App.vue index c0c8864..4aa6b2c 100644 --- a/gear-ui3/src/App.vue +++ b/gear-ui3/src/App.vue @@ -5,11 +5,13 @@ diff --git a/gear-ui3/src/api/oa/otherIncome.js b/gear-ui3/src/api/oa/otherIncome.js new file mode 100644 index 0000000..1aee64e --- /dev/null +++ b/gear-ui3/src/api/oa/otherIncome.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询其他收入列表 +export function listOtherIncome(query) { + return request({ + url: '/oa/otherIncome/list', + method: 'get', + params: query + }) +} + +// 查询其他收入详细 +export function getOtherIncome(otherIncomeId) { + return request({ + url: '/oa/otherIncome/' + otherIncomeId, + method: 'get' + }) +} + +// 新增其他收入 +export function addOtherIncome(data) { + return request({ + url: '/oa/otherIncome', + method: 'post', + data: data + }) +} + +// 修改其他收入 +export function updateOtherIncome(data) { + return request({ + url: '/oa/otherIncome', + method: 'put', + data: data + }) +} + +// 删除其他收入 +export function delOtherIncome(otherIncomeId) { + return request({ + url: '/oa/otherIncome/' + otherIncomeId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/api/oa/returnExchange.js b/gear-ui3/src/api/oa/returnExchange.js new file mode 100644 index 0000000..0b86617 --- /dev/null +++ b/gear-ui3/src/api/oa/returnExchange.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询退换货管理列表 +export function listReturnExchange(query) { + return request({ + url: '/oa/returnExchange/list', + method: 'get', + params: query + }) +} + +// 查询退换货管理详细 +export function getReturnExchange(returnExchangeId) { + return request({ + url: '/oa/returnExchange/' + returnExchangeId, + method: 'get' + }) +} + +// 新增退换货管理 +export function addReturnExchange(data) { + return request({ + url: '/oa/returnExchange', + method: 'post', + data: data + }) +} + +// 修改退换货管理 +export function updateReturnExchange(data) { + return request({ + url: '/oa/returnExchange', + method: 'put', + data: data + }) +} + +// 删除退换货管理 +export function delReturnExchange(returnExchangeId) { + return request({ + url: '/oa/returnExchange/' + returnExchangeId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/api/system/oss.js b/gear-ui3/src/api/system/oss.js new file mode 100644 index 0000000..7d80026 --- /dev/null +++ b/gear-ui3/src/api/system/oss.js @@ -0,0 +1,27 @@ +import request from '@/utils/request' + +// 查询OSS对象存储列表 +export function listOss(query) { + return request({ + url: '/system/oss/list', + method: 'get', + params: query + }) +} + +// 查询OSS对象基于id串 +export function listByIds(ossId) { + return request({ + url: '/system/oss/listByIds/' + ossId, + method: 'get' + }) +} + +// 删除OSS对象存储 +export function delOss(ossId) { + return request({ + url: '/system/oss/' + ossId, + method: 'delete' + }) +} + diff --git a/gear-ui3/src/api/wms/customer.js b/gear-ui3/src/api/wms/customer.js new file mode 100644 index 0000000..7704bb7 --- /dev/null +++ b/gear-ui3/src/api/wms/customer.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询CRM 客户列表 +export function listCustomer(query) { + return request({ + url: '/oa/customer/list', + method: 'get', + params: query + }) +} + +// 查询CRM 客户详细 +export function getCustomer(customerId) { + return request({ + url: '/oa/customer/' + customerId, + method: 'get' + }) +} + +// 新增CRM 客户 +export function addCustomer(data) { + return request({ + url: '/oa/customer', + method: 'post', + data: data + }) +} + +// 修改CRM 客户 +export function updateCustomer(data) { + return request({ + url: '/oa/customer', + method: 'put', + data: data + }) +} + +// 删除CRM 客户 +export function delCustomer(customerId) { + return request({ + url: '/oa/customer/' + customerId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/assets/images/avatar.png b/gear-ui3/src/assets/images/avatar.png new file mode 100644 index 0000000..305ebdf Binary files /dev/null and b/gear-ui3/src/assets/images/avatar.png differ diff --git a/gear-ui3/src/assets/logo/logo.png b/gear-ui3/src/assets/logo/logo.png index e263760..3300251 100644 Binary files a/gear-ui3/src/assets/logo/logo.png and b/gear-ui3/src/assets/logo/logo.png differ diff --git a/gear-ui3/src/components/CustomerSelect/index.vue b/gear-ui3/src/components/CustomerSelect/index.vue index 0609f0d..ed1dafc 100644 --- a/gear-ui3/src/components/CustomerSelect/index.vue +++ b/gear-ui3/src/components/CustomerSelect/index.vue @@ -1,11 +1,11 @@ + diff --git a/gear-ui3/src/components/GearTable/index.vue b/gear-ui3/src/components/GearTable/index.vue index 1e8ff8d..8b44e57 100644 --- a/gear-ui3/src/components/GearTable/index.vue +++ b/gear-ui3/src/components/GearTable/index.vue @@ -6,30 +6,6 @@

{{ loadingText || "加载中..." }}

- - - - - - - - - - - - - import ColumnRender from './ColumnRender.vue'; import Eclipse from './renderer/eclipse.vue'; -import TableActionToolbar from './TableActionToolbar.vue'; export default { name: "KLPTable", components: { ColumnRender, Eclipse, - TableActionToolbar }, props: { // 基础扩展属性 diff --git a/gear-ui3/src/components/ProductSelect/BomPanel/BomItem.vue b/gear-ui3/src/components/ProductSelect/BomPanel/BomItem.vue index 82c18a4..d271397 100644 --- a/gear-ui3/src/components/ProductSelect/BomPanel/BomItem.vue +++ b/gear-ui3/src/components/ProductSelect/BomPanel/BomItem.vue @@ -5,8 +5,8 @@ 新增 @@ -14,8 +14,8 @@ 修改 @@ -24,8 +24,8 @@ 删除 @@ -34,8 +34,8 @@ 导出 @@ -48,17 +48,17 @@ - \ No newline at end of file + diff --git a/gear-ui3/src/components/VendorSelect/index.vue b/gear-ui3/src/components/VendorSelect/index.vue new file mode 100644 index 0000000..493da22 --- /dev/null +++ b/gear-ui3/src/components/VendorSelect/index.vue @@ -0,0 +1,59 @@ + + + \ No newline at end of file diff --git a/gear-ui3/src/store/modules/product.js b/gear-ui3/src/store/modules/product.js index e24c80d..4f3944c 100644 --- a/gear-ui3/src/store/modules/product.js +++ b/gear-ui3/src/store/modules/product.js @@ -27,11 +27,12 @@ const useProductStore = defineStore('product', { } }, fetchProductMap() { - listProduct().then(res => { + listProduct({ pageNum: 1, pageSize: 10000 }).then(res => { const map = {}; - res.data.forEach(item => { + res.rows.forEach(item => { map[item.productId] = item; }); + console.log(map, res, 'productMap'); this.productMap = map; }) }, diff --git a/gear-ui3/src/store/modules/user.js b/gear-ui3/src/store/modules/user.js index 38fed17..768543a 100644 --- a/gear-ui3/src/store/modules/user.js +++ b/gear-ui3/src/store/modules/user.js @@ -3,7 +3,7 @@ import { ElMessageBox, } from 'element-plus' import { login, logout, getInfo } from '@/api/login' import { getToken, setToken, removeToken } from '@/utils/auth' import { isHttp, isEmpty } from "@/utils/validate" -import defAva from '@/assets/images/profile.jpg' +import defAva from '@/assets/images/avatar.png' const useUserStore = defineStore( 'user', diff --git a/gear-ui3/src/views/info/construction/detail.vue b/gear-ui3/src/views/info/construction/detail.vue index c245243..5893f02 100644 --- a/gear-ui3/src/views/info/construction/detail.vue +++ b/gear-ui3/src/views/info/construction/detail.vue @@ -44,8 +44,8 @@ /> - 搜索 - 重置 + 搜索 + 重置 @@ -55,7 +55,7 @@ type="primary" plain icon="Plus" - size="mini" + size="small" @click="handleAdd" >新增 @@ -64,7 +64,7 @@ type="success" plain icon="Edit" - size="mini" + size="small" :disabled="single" @click="handleUpdate" >修改 @@ -74,7 +74,7 @@ type="danger" plain icon="Delete" - size="mini" + size="small" :disabled="multiple" @click="handleDelete" >删除 @@ -84,7 +84,7 @@ type="warning" plain icon="Download" - size="mini" + size="small" @click="handleExport" >导出 @@ -107,7 +107,7 @@