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 @@ + + + + + 选择配件销售单 + + 确定 + 关闭 + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + + + + + 至 + + + + + 至 + + + + + 查询 + 重置 + + + + + 商品列表 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + + + + + 至 + + + + + 至 + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 配件销售单开票申请列表 + + + + + + + + + + 办理 + 查看 + + + + + 待提交 + {{ scope.row.nodeState }} + + + + + + + + + + + + + + + 查看 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + {{ viewTitle }} + + 保存 + 提交 + 关闭 + + + + + + + 申请部门 + {{ formobj.deptName }} + + + 申请人 + {{ formobj.createByName }} + + + 申请日期 + {{ formobj.createTime }} + + + + + *开票单位 + + + + + + + + + *开票名称 + + + + + + + *开票类型 + + + + + + + + 开票金额 + {{settleAmount}} + + + + + 备注 + + + + + + 附件 + + + + + + + + 销售单列表 + 选择销售单 + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + {{ viewTitle }} + + 关闭 + + + + + + + 申请部门 + {{ formobj.deptName }} + + + 申请人 + {{ formobj.createByName }} + + + 申请日期 + {{ formobj.createTime }} + + + + + 开票单位 + {{ formobj.invoiceOrg }} + + + + + 开票名称 + {{ formobj.invoiceName }} + + + 开票类型 + {{ formobj.invoiceType }} + + + 开票金额 + {{ formobj.invoicePrice }} + + + + + 备注 + {{ formobj.remarks }} + + + + + 附件 + + + + + 配件销售开票申请列表 + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + 选择配件销售单 + + 确定 + 关闭 + + + + + {{ searchxianshitit }} + + + + + + + + + + + + + + + + + 至 + + + + + 至 + + + + + 查询 + 重置 + + + + + 商品列表 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + {{ viewTitle }} + + 加 签 + 同 意 + 驳 回 + 终 止 + + + + + + + 申请部门 + {{ formobj.deptName }} + + + 申请人 + {{ formobj.createByName }} + + + 申请日期 + {{ formobj.createTime }} + + + + + 开票单位 + {{ formobj.invoiceOrg }} + + + + + 开票名称 + {{ formobj.invoiceName }} + + + 开票类型 + {{ formobj.invoiceType }} + + + 开票金额 + {{ formobj.invoicePrice }} + + + + + 备注 + {{ formobj.remarks }} + + + + + 附件 + + + + + 配件销售开票申请列表 + + + + + + + + + + + + + + + + + + + + + + + + + + *加签人员: + + + + + + + + + + + + + 当前环节: + + + {{ current.taskName }}->{{ nextNode.name }} + + + + + 意见: + + + + + + + 确 定 + 取 消 + + + + + + + + + + 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 @@ + + + + + {{ viewTitle }} + + 保存 + 提交 + + + + + + + 申请部门 + {{ formobj.deptName }} + + + 申请人 + {{ formobj.createByName }} + + + 申请日期 + {{ formobj.createTime }} + + + + + *开票单位 + + + + + + + + + *开票名称 + + + + + + + *开票类型 + + + + + + + + 开票金额 + {{settleAmount}} + + + + + 备注 + + + + + + 附件 + + + + + + + + 销售单列表 + 选择销售单 + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + {{ viewTitle }} + + 撤回 + + + + + + + 申请部门 + {{ formobj.deptName }} + + + 申请人 + {{ formobj.createByName }} + + + 申请日期 + {{ formobj.createTime }} + + + + + 开票单位 + {{ formobj.invoiceOrg }} + + + + + 开票名称 + {{ formobj.invoiceName }} + + + 开票类型 + {{ formobj.invoiceType }} + + + 开票金额 + {{ formobj.invoicePrice }} + + + + + 备注 + {{ formobj.remarks }} + + + + + 附件 + + + + + 配件销售开票申请列表 + + + + + + + + + + + + + + + + + + + + + + + + + +