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