发票接收更改
This commit is contained in:
parent
9f6f375103
commit
999f2d487f
@ -23,7 +23,9 @@ public class InvoiceSaveReqVO {
|
|||||||
@Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "订单id", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotNull(message = "订单不能为空")
|
@NotNull(message = "订单不能为空")
|
||||||
private Long orderId;
|
private Long orderId;
|
||||||
|
@Schema(description = "订单编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotNull(message = "订单编码不能为空")
|
||||||
|
private String orderCode;
|
||||||
@Schema(description = "发票号码", requiredMode = Schema.RequiredMode.REQUIRED)
|
@Schema(description = "发票号码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
@NotEmpty(message = "发票号码不能为空")
|
@NotEmpty(message = "发票号码不能为空")
|
||||||
private String number;
|
private String number;
|
||||||
|
@ -96,7 +96,6 @@ public class InvoiceDO extends BaseDO {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String cancellerName;
|
private String cancellerName;
|
||||||
|
|
||||||
@TableField(exist = false)
|
|
||||||
private String orderCode;
|
private String orderCode;
|
||||||
|
|
||||||
public boolean canSave(){
|
public boolean canSave(){
|
||||||
|
@ -4,6 +4,7 @@ export interface InvoiceVO {
|
|||||||
id: number
|
id: number
|
||||||
businessType: string
|
businessType: string
|
||||||
orderId: number
|
orderId: number
|
||||||
|
orderCode:string
|
||||||
number: string
|
number: string
|
||||||
type: string
|
type: string
|
||||||
billingDate: Date
|
billingDate: Date
|
||||||
|
@ -156,7 +156,7 @@ const detailDisabled = ref(false)
|
|||||||
|
|
||||||
const formData: any = ref({
|
const formData: any = ref({
|
||||||
id: undefined,
|
id: undefined,
|
||||||
businessType: businessType.value,
|
businessType: "FINANCE_RECEIVE_INVOICE",
|
||||||
orderId: undefined,
|
orderId: undefined,
|
||||||
number: undefined,
|
number: undefined,
|
||||||
type: undefined,
|
type: undefined,
|
||||||
@ -189,7 +189,7 @@ const formRules = reactive({
|
|||||||
const resetForm = () => {
|
const resetForm = () => {
|
||||||
formData.value = {
|
formData.value = {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
businessType: businessType.value,
|
businessType: "FINANCE_RECEIVE_INVOICE",
|
||||||
projectId: undefined,
|
projectId: undefined,
|
||||||
number: undefined,
|
number: undefined,
|
||||||
type: undefined,
|
type: undefined,
|
||||||
@ -223,7 +223,8 @@ const queryData = async (id?: number) => {
|
|||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 99,
|
pageSize: 99,
|
||||||
businessId: id,
|
businessId: id,
|
||||||
businessType: businessType.value
|
businessType: businessType.value,
|
||||||
|
businessFileType:businessType.value
|
||||||
}
|
}
|
||||||
formData.value.attachments = (await getFilePage(attParams)).list
|
formData.value.attachments = (await getFilePage(attParams)).list
|
||||||
} finally {
|
} finally {
|
||||||
@ -273,7 +274,8 @@ const uploadRef = ref()
|
|||||||
const uploadFiles = ref<UploadUserFile[]>([])
|
const uploadFiles = ref<UploadUserFile[]>([])
|
||||||
const uploadData = ref({
|
const uploadData = ref({
|
||||||
businessType: businessType.value,
|
businessType: businessType.value,
|
||||||
businessId: formData.value.id
|
businessId: formData.value.id,
|
||||||
|
businessFileType:businessType.value
|
||||||
})
|
})
|
||||||
// 下载文件
|
// 下载文件
|
||||||
const downloadAttachment = async (name, url) => {
|
const downloadAttachment = async (name, url) => {
|
||||||
@ -323,11 +325,13 @@ const openOrderDialog = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleSelectedOrder = (order) => {
|
const handleSelectedOrder = (order) => {
|
||||||
|
|
||||||
formData.value.orderId = order.id
|
formData.value.orderId = order.id
|
||||||
formData.value.orderCode = order.code
|
formData.value.orderCode = order.code
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSelectedPurchaseOrder = (order) => {
|
const handleSelectedPurchaseOrder = (order) => {
|
||||||
|
|
||||||
formData.value.orderId = order.id
|
formData.value.orderId = order.id
|
||||||
formData.value.orderCode = order.purchaseNo
|
formData.value.orderCode = order.purchaseNo
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user