From c50adfd648532ffd036174f7304ccefe0aceae5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Sat, 30 Aug 2025 17:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/vm/vue/index.vue.vm | 2 +- gear-ui3/src/api/oa/monthlyAccount.js | 44 +++ gear-ui3/src/api/oa/purchasePlanDetail.js | 44 +++ gear-ui3/src/api/oa/supplier.js | 44 +++ gear-ui3/src/api/oa/supplyType.js | 44 +++ .../src/views/purchase/category/index.vue | 264 ++++++++++++++ gear-ui3/src/views/purchase/month/index.vue | 265 ++++++++++++++ gear-ui3/src/views/purchase/shop/index.vue | 338 ++++++++++++++++++ .../src/views/purchase/supplier/index.vue | 316 ++++++++++++++++ 9 files changed, 1360 insertions(+), 1 deletion(-) create mode 100644 gear-ui3/src/api/oa/monthlyAccount.js create mode 100644 gear-ui3/src/api/oa/purchasePlanDetail.js create mode 100644 gear-ui3/src/api/oa/supplier.js create mode 100644 gear-ui3/src/api/oa/supplyType.js create mode 100644 gear-ui3/src/views/purchase/category/index.vue create mode 100644 gear-ui3/src/views/purchase/month/index.vue create mode 100644 gear-ui3/src/views/purchase/shop/index.vue create mode 100644 gear-ui3/src/views/purchase/supplier/index.vue diff --git a/gear-generator/src/main/resources/vm/vue/index.vue.vm b/gear-generator/src/main/resources/vm/vue/index.vue.vm index 1852c4b..cb185a6 100644 --- a/gear-generator/src/main/resources/vm/vue/index.vue.vm +++ b/gear-generator/src/main/resources/vm/vue/index.vue.vm @@ -368,7 +368,7 @@ const daterange${AttrName} = ref([]); #end #end -function formatterTime = (time) => { +const formatterTime = (time) => { return proxy.parseTime(time, '{y}-{m}-{d}') } diff --git a/gear-ui3/src/api/oa/monthlyAccount.js b/gear-ui3/src/api/oa/monthlyAccount.js new file mode 100644 index 0000000..b485747 --- /dev/null +++ b/gear-ui3/src/api/oa/monthlyAccount.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询月度记账列表 +export function listMonthlyAccount(query) { + return request({ + url: '/oa/monthlyAccount/list', + method: 'get', + params: query + }) +} + +// 查询月度记账详细 +export function getMonthlyAccount(accountId) { + return request({ + url: '/oa/monthlyAccount/' + accountId, + method: 'get' + }) +} + +// 新增月度记账 +export function addMonthlyAccount(data) { + return request({ + url: '/oa/monthlyAccount', + method: 'post', + data: data + }) +} + +// 修改月度记账 +export function updateMonthlyAccount(data) { + return request({ + url: '/oa/monthlyAccount', + method: 'put', + data: data + }) +} + +// 删除月度记账 +export function delMonthlyAccount(accountId) { + return request({ + url: '/oa/monthlyAccount/' + accountId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/api/oa/purchasePlanDetail.js b/gear-ui3/src/api/oa/purchasePlanDetail.js new file mode 100644 index 0000000..c37e12a --- /dev/null +++ b/gear-ui3/src/api/oa/purchasePlanDetail.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询采购计划明细列表 +export function listPurchasePlanDetail(query) { + return request({ + url: '/oa/purchasePlanDetail/list', + method: 'get', + params: query + }) +} + +// 查询采购计划明细详细 +export function getPurchasePlanDetail(detailId) { + return request({ + url: '/oa/purchasePlanDetail/' + detailId, + method: 'get' + }) +} + +// 新增采购计划明细 +export function addPurchasePlanDetail(data) { + return request({ + url: '/oa/purchasePlanDetail', + method: 'post', + data: data + }) +} + +// 修改采购计划明细 +export function updatePurchasePlanDetail(data) { + return request({ + url: '/oa/purchasePlanDetail', + method: 'put', + data: data + }) +} + +// 删除采购计划明细 +export function delPurchasePlanDetail(detailId) { + return request({ + url: '/oa/purchasePlanDetail/' + detailId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/api/oa/supplier.js b/gear-ui3/src/api/oa/supplier.js new file mode 100644 index 0000000..b469dcc --- /dev/null +++ b/gear-ui3/src/api/oa/supplier.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询供应商信息列表 +export function listSupplier(query) { + return request({ + url: '/oa/supplier/list', + method: 'get', + params: query + }) +} + +// 查询供应商信息详细 +export function getSupplier(supplierId) { + return request({ + url: '/oa/supplier/' + supplierId, + method: 'get' + }) +} + +// 新增供应商信息 +export function addSupplier(data) { + return request({ + url: '/oa/supplier', + method: 'post', + data: data + }) +} + +// 修改供应商信息 +export function updateSupplier(data) { + return request({ + url: '/oa/supplier', + method: 'put', + data: data + }) +} + +// 删除供应商信息 +export function delSupplier(supplierId) { + return request({ + url: '/oa/supplier/' + supplierId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/api/oa/supplyType.js b/gear-ui3/src/api/oa/supplyType.js new file mode 100644 index 0000000..c666307 --- /dev/null +++ b/gear-ui3/src/api/oa/supplyType.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询供货类型管理列表 +export function listSupplyType(query) { + return request({ + url: '/oa/supplyType/list', + method: 'get', + params: query + }) +} + +// 查询供货类型管理详细 +export function getSupplyType(typeId) { + return request({ + url: '/oa/supplyType/' + typeId, + method: 'get' + }) +} + +// 新增供货类型管理 +export function addSupplyType(data) { + return request({ + url: '/oa/supplyType', + method: 'post', + data: data + }) +} + +// 修改供货类型管理 +export function updateSupplyType(data) { + return request({ + url: '/oa/supplyType', + method: 'put', + data: data + }) +} + +// 删除供货类型管理 +export function delSupplyType(typeId) { + return request({ + url: '/oa/supplyType/' + typeId, + method: 'delete' + }) +} diff --git a/gear-ui3/src/views/purchase/category/index.vue b/gear-ui3/src/views/purchase/category/index.vue new file mode 100644 index 0000000..2def422 --- /dev/null +++ b/gear-ui3/src/views/purchase/category/index.vue @@ -0,0 +1,264 @@ + + + diff --git a/gear-ui3/src/views/purchase/month/index.vue b/gear-ui3/src/views/purchase/month/index.vue new file mode 100644 index 0000000..10bbd54 --- /dev/null +++ b/gear-ui3/src/views/purchase/month/index.vue @@ -0,0 +1,265 @@ + + + diff --git a/gear-ui3/src/views/purchase/shop/index.vue b/gear-ui3/src/views/purchase/shop/index.vue new file mode 100644 index 0000000..3c6cd54 --- /dev/null +++ b/gear-ui3/src/views/purchase/shop/index.vue @@ -0,0 +1,338 @@ + + + diff --git a/gear-ui3/src/views/purchase/supplier/index.vue b/gear-ui3/src/views/purchase/supplier/index.vue new file mode 100644 index 0000000..7c3dd89 --- /dev/null +++ b/gear-ui3/src/views/purchase/supplier/index.vue @@ -0,0 +1,316 @@ + + +