|
|
@ -7,10 +7,13 @@ import * as CustomerStatementMainApi from '@/api/wms/customerStatementMain' |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const CustomerSaleInvoiceMainRules = reactive({ |
|
|
|
beforeTaxAmount: [required], |
|
|
|
customerStatementNumber: [required], |
|
|
|
customerCode: [required], |
|
|
|
customerName: [required], |
|
|
|
mainBeforeTaxAmount: [required], |
|
|
|
taxRate: [required], |
|
|
|
taxAmount: [required], |
|
|
|
adTaxAmount: [required], |
|
|
|
mainTaxAmount: [required], |
|
|
|
mainAdTaxAmount: [required], |
|
|
|
}) |
|
|
|
|
|
|
|
export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
@ -185,9 +188,48 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
sort: 'custom', |
|
|
|
isSearch: true, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
disabled:true |
|
|
|
} |
|
|
|
// tableForm:{
|
|
|
|
// disabled:true,
|
|
|
|
// multiple:true,
|
|
|
|
// isInpuFocusShow: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择物料代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '物料基础信息',
|
|
|
|
// searchAllSchemas: Itembasic.allSchemas,
|
|
|
|
// searchPage: CustomerStatementDetailApi.getCustomerStatementDetailPage,
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }],
|
|
|
|
// verificationPage: ItembasicApi.getItemListByCodes, // 失去焦点校验输入框的数据内容存在
|
|
|
|
// isShowTableFormSearch: true,
|
|
|
|
// verificationParams: [{
|
|
|
|
// key: 'code',
|
|
|
|
// action: '==',
|
|
|
|
// value: '',
|
|
|
|
// isMainValue: false,
|
|
|
|
// isSearch: 'true',
|
|
|
|
// isFormModel: true
|
|
|
|
// }], // 失去焦点校验参数
|
|
|
|
// },
|
|
|
|
// form: {
|
|
|
|
// // labelMessage: '信息提示说明!!!',
|
|
|
|
// componentProps: {
|
|
|
|
// isSearchList: true, // 开启查询弹窗
|
|
|
|
// searchListPlaceholder: '请选择物料代码',
|
|
|
|
// searchField: 'code',
|
|
|
|
// searchTitle: '物料基础信息',
|
|
|
|
// searchAllSchemas: Itembasic.allSchemas,
|
|
|
|
// searchPage: ItembasicApi.getItembasicPage,
|
|
|
|
// searchCondition: [{
|
|
|
|
// key: 'available',
|
|
|
|
// value: 'TRUE',
|
|
|
|
// isMainValue: false
|
|
|
|
// }]
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '品号', |
|
|
@ -217,6 +259,10 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
precision: 2, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -228,6 +274,9 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -238,6 +287,9 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -248,12 +300,19 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
disabled: true, |
|
|
|
type: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '未税金额', |
|
|
|
field: 'beforeTaxAmount', |
|
|
|
sort: 'custom', |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '税额', |
|
|
@ -263,6 +322,9 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -273,6 +335,9 @@ export const CustomerSaleInvoiceDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|