Browse Source

发票日期校验

master_hella_20240701
yufei0306 5 months ago
parent
commit
3341d2e147
  1. 5
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  2. 3
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

5
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -409,6 +409,11 @@ const handleImport = () => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type : string, row ?: number) => { const openForm = async (type : string, row ?: number) => {
if(type=='update'){
SupplierinvoiceRequestMainRules.invoiceTime[0].required = true
}else{
SupplierinvoiceRequestMainRules.invoiceTime[0].required = false
}
if(row&&row.procurementCreator) row.procurementCreator = Number(row.procurementCreator) if(row&&row.procurementCreator) row.procurementCreator = Number(row.procurementCreator)
// //
SupplierinvoiceRequestMainApi.checkInvoicingCalendar({}).then(res => { SupplierinvoiceRequestMainApi.checkInvoicingCalendar({}).then(res => {

3
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -765,6 +765,9 @@ export const SupplierinvoiceRequestMainRules = reactive({
supplierCode: [ supplierCode: [
{ required: true, message: '请选择供应商代码', trigger: 'change' } { required: true, message: '请选择供应商代码', trigger: 'change' }
], ],
invoiceTime:[
{ required: false, message: '请选择发票日期', trigger: 'blur' }
],
departmentCode: [ departmentCode: [
{ required: true, message: '请输入部门', trigger: 'blur' } { required: true, message: '请输入部门', trigger: 'blur' }
], ],

Loading…
Cancel
Save