From 7ecfeb3237a79240a21650689b404a7ccc7898e3 Mon Sep 17 00:00:00 2001 From: myTest383
Date: Mon, 25 Nov 2024 10:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=94=80=E5=94=AE=E5=8D=95?= =?UTF-8?q?=E5=BC=80=E7=A5=A8=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yxt-as-ui/src/api/Common/dictcommons.js | 2 + yxt-as-ui/src/api/operation/salesInvoice.js | 141 ++++++ yxt-as-ui/src/router/index.js | 34 ++ .../secondaryCooperativeStation.vue | 2 +- .../relation/selectSalesOrder.vue | 207 ++++++++ .../operation/salesInvoice/salesInvoice.vue | 401 +++++++++++++++ .../salesInvoice/salesInvoiceAdd.vue | 457 +++++++++++++++++ .../salesInvoice/salesInvoiceInfo.vue | 127 +++++ .../relation/selectSalesOrder.vue | 207 ++++++++ .../salesInvoiceFlow/salesInvoiceDaiBan.vue | 446 +++++++++++++++++ .../salesInvoiceFlow/salesInvoiceEdit.vue | 460 ++++++++++++++++++ .../salesInvoiceFlow/salesInvoiceYiBan.vue | 205 ++++++++ 12 files changed, 2688 insertions(+), 1 deletion(-) create mode 100644 yxt-as-ui/src/api/operation/salesInvoice.js create mode 100644 yxt-as-ui/src/views/operation/salesInvoice/relation/selectSalesOrder.vue create mode 100644 yxt-as-ui/src/views/operation/salesInvoice/salesInvoice.vue create mode 100644 yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceAdd.vue create mode 100644 yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceInfo.vue create mode 100644 yxt-as-ui/src/views/workFlow/salesInvoiceFlow/relation/selectSalesOrder.vue create mode 100644 yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceDaiBan.vue create mode 100644 yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceEdit.vue create mode 100644 yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceYiBan.vue diff --git a/yxt-as-ui/src/api/Common/dictcommons.js b/yxt-as-ui/src/api/Common/dictcommons.js index 8b9dc444db..0938596637 100644 --- a/yxt-as-ui/src/api/Common/dictcommons.js +++ b/yxt-as-ui/src/api/Common/dictcommons.js @@ -44,6 +44,7 @@ export function fetchBySid(sid) { } // 根据分公司全路径Sid获取分公司下开票信息(采购系统不能为空) +// 开票单位 export function getInvoicingList(data) { return request({ url: '/fin/v1/fincompanyinvoicing/getInvoicingList', @@ -276,6 +277,7 @@ export function getCounty(data) { } // 获取售后服务--基础信息--供应商信息 +// 开票名称 export function choiceSupplierInfo(data) { return request({ url: '/pms/v1/pmssupplierinfo/choiceSupplierInfo', diff --git a/yxt-as-ui/src/api/operation/salesInvoice.js b/yxt-as-ui/src/api/operation/salesInvoice.js new file mode 100644 index 0000000000..dcd49afef8 --- /dev/null +++ b/yxt-as-ui/src/api/operation/salesInvoice.js @@ -0,0 +1,141 @@ +import request from '@/utils/request' +// 销售单开票申请 +export default { + // 查询分页列表 + listPage: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/613533-0-default", + url: '/as/v1/salesInvoice/listPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + saveOrUpdate: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/613533-0-default", + url: '/as/v1/salesInvoice/saveOrUpdate', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + fetchBySid: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/613533-0-default", + url: '/as/v1/salesInvoice/fetchDetailsBySid/' + data, + method: 'get' + }) + }, + deleteBySids: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/613533-0-default", + url: '/as/v1/salesInvoice/delBySids', + method: 'DELETE', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + submit: function(data) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/613533-0-default", + url: '/as/v1/salesInvoice/submit', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + salesOrderListPage: function(params) { + return request({ + // baseURL: "http://127.0.0.1:4523/m1/613533-0-default", + url: '/as/v1/salesInvoice/salesOrderListPage', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + + + // 流程审批(同意) + complete: function(params) { + return request({ + url: '/as/v1/salesInvoice/complete', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(加签) + delegate: function(params) { + return request({ + url: '/as/v1/salesInvoice/delegate', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(驳回) + reject: function(params) { + return request({ + url: '/as/v1/salesInvoice/reject', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(终止) + breakProcess: function(params) { + return request({ + url: '/as/v1/salesInvoice/breakProcess', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 流程审批(撤回) + revokeProcess: function(params) { + return request({ + url: '/as/v1/salesInvoice/revokeProcess', + method: 'post', + data: params, + headers: { + 'Content-Type': 'application/json' + } + }) + }, + // 审批流程(同意)获取下一环节 + getNextNodesForSubmit: function(data) { + return request({ + url: '/as/v1/salesInvoice/getNextNodesForSubmit', + method: 'get', + params: data + }) + }, + // 审批流程(驳回)获取上一环节 + getPreviousNodesForReject: function(data) { + return request({ + url: '/as/v1/salesInvoice/getPreviousNodesForReject', + method: 'get', + params: data + }) + } +} diff --git a/yxt-as-ui/src/router/index.js b/yxt-as-ui/src/router/index.js index 52fa248a5f..528a2e7864 100644 --- a/yxt-as-ui/src/router/index.js +++ b/yxt-as-ui/src/router/index.js @@ -255,6 +255,15 @@ export const constantRoutes = [{ title: '工时提成抵顶配件费用管理', noCache: true } + }, + { + path: '/salesInvoice/salesInvoice', + component: () => import('@/views/operation/salesInvoice/salesInvoice.vue'), + name: 'SalesInvoice', + meta: { + title: '销售单开票申请管理', + noCache: true + } } ] }, @@ -1665,6 +1674,31 @@ export const constantRoutes = [{ }, + // 销售单申请开票 -- 编辑 + { + path: '/salesInvoiceFlow/salesInvoiceEdit', + component: () => + import('@/views/workFlow/salesInvoiceFlow/salesInvoiceEdit.vue'), + name: 'SalesInvoiceEdit' + }, + // 销售单申请开票 -- 待办 + { + path: '/salesInvoiceFlow/salesInvoiceDaiBan', + component: () => + import('@/views/workFlow/salesInvoiceFlow/salesInvoiceDaiBan.vue'), + name: 'SalesInvoiceDaiBan' + }, + // 销售单申请开票 -- 已办 + { + path: '/salesInvoiceFlow/salesInvoiceYiBan', + component: () => + import('@/views/workFlow/salesInvoiceFlow/salesInvoiceYiBan.vue'), + name: 'SalesInvoiceYiBan' + }, + + + + // 404 page must be placed at the end !!! // { path: '*', redirect: '/404', hidden: true } diff --git a/yxt-as-ui/src/views/basicinformation/secondaryCooperativeStation/secondaryCooperativeStation.vue b/yxt-as-ui/src/views/basicinformation/secondaryCooperativeStation/secondaryCooperativeStation.vue index c5a8cc7f8f..f2e75286e9 100644 --- a/yxt-as-ui/src/views/basicinformation/secondaryCooperativeStation/secondaryCooperativeStation.vue +++ b/yxt-as-ui/src/views/basicinformation/secondaryCooperativeStation/secondaryCooperativeStation.vue @@ -340,7 +340,7 @@ // } this.viewState = 3 - this.$refs['divAdd'].showEdit(row.sid) + this.$refs['divAdd'].showEdit(row) }, toInfo(row) { this.viewState = 4 diff --git a/yxt-as-ui/src/views/operation/salesInvoice/relation/selectSalesOrder.vue b/yxt-as-ui/src/views/operation/salesInvoice/relation/selectSalesOrder.vue new file mode 100644 index 0000000000..934e926c12 --- /dev/null +++ b/yxt-as-ui/src/views/operation/salesInvoice/relation/selectSalesOrder.vue @@ -0,0 +1,207 @@ + + + + diff --git a/yxt-as-ui/src/views/operation/salesInvoice/salesInvoice.vue b/yxt-as-ui/src/views/operation/salesInvoice/salesInvoice.vue new file mode 100644 index 0000000000..8f64922782 --- /dev/null +++ b/yxt-as-ui/src/views/operation/salesInvoice/salesInvoice.vue @@ -0,0 +1,401 @@ + + + + diff --git a/yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceAdd.vue b/yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceAdd.vue new file mode 100644 index 0000000000..85d9dc3cf2 --- /dev/null +++ b/yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceAdd.vue @@ -0,0 +1,457 @@ + + + + + diff --git a/yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceInfo.vue b/yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceInfo.vue new file mode 100644 index 0000000000..11c8a0bcb8 --- /dev/null +++ b/yxt-as-ui/src/views/operation/salesInvoice/salesInvoiceInfo.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/relation/selectSalesOrder.vue b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/relation/selectSalesOrder.vue new file mode 100644 index 0000000000..934e926c12 --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/relation/selectSalesOrder.vue @@ -0,0 +1,207 @@ + + + + diff --git a/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceDaiBan.vue b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceDaiBan.vue new file mode 100644 index 0000000000..7d94b56cd6 --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceDaiBan.vue @@ -0,0 +1,446 @@ + + + + + diff --git a/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceEdit.vue b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceEdit.vue new file mode 100644 index 0000000000..dafb24c19d --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceEdit.vue @@ -0,0 +1,460 @@ + + + + + diff --git a/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceYiBan.vue b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceYiBan.vue new file mode 100644 index 0000000000..0b3356488e --- /dev/null +++ b/yxt-as-ui/src/views/workFlow/salesInvoiceFlow/salesInvoiceYiBan.vue @@ -0,0 +1,205 @@ + + + + +