Browse Source

发票需求

master_hella_20240701
songguoqiang 5 months ago
parent
commit
ae5fe7f768
  1. 121
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts
  2. 1
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  3. 50
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

121
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/supplierinvoiceRecordMain.data.ts

@ -82,16 +82,16 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ // {
label: '申请单号', // label: '申请单号',
field: 'requestNumber', // field: 'requestNumber',
sort: 'custom', // sort: 'custom',
table: { // table: {
width: 180, // width: 180,
}, // },
isTable: false, // isTable: false,
isSearch: true // isSearch: true
}, // },
{ {
label: '订单号', label: '订单号',
field: 'poNumber', field: 'poNumber',
@ -262,6 +262,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: 150 width: 150
}, },
isDetail:false,
isTable: false, isTable: false,
form: { form: {
component: 'InputNumber', component: 'InputNumber',
@ -272,6 +273,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'adjustingTaxAmount', field: 'adjustingTaxAmount',
formatter: accountantFormart, formatter: accountantFormart,
sort: 'custom', sort: 'custom',
isDetail:false,
table: { table: {
width: 150 width: 150
}, },
@ -342,26 +344,35 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
sortTableDefault:4, form:{
sort: 'custom', component: 'DatePicker',
table: { componentProps: {
width: 180 style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
}, },
}, sortTableDefault:4,
{
label: '采购审批人',
field: 'procurementCreatorName',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
}, },
isTable:true,
isDetail: false,
isTableForm: false,
isForm:false,
isSearch:false,
sortTableDefault:10
}, },
// {
// label: '采购审批人',
// field: 'procurementCreatorName',
// sort: 'custom',
// table: {
// width: 180
// },
// isTable:true,
// isDetail: true,
// isTableForm: false,
// isForm:false,
// isSearch:false,
// sortTableDefault:10
// },
{ {
label: '过账日期', label: '过账日期',
field: 'postingDate', field: 'postingDate',
@ -369,6 +380,15 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
form:{
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
isTable: true, isTable: true,
sortTableDefault:6, sortTableDefault:6,
sort: 'custom', sort: 'custom',
@ -404,6 +424,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
isTableForm:false, isTableForm:false,
isDetail:false,
table: { table: {
width: 150 width: 150
}, },
@ -414,6 +435,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
isTableForm:false, isTableForm:false,
isDetail:false,
table: { table: {
width: 150 width: 150
}, },
@ -423,6 +445,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'inTransactionType', field: 'inTransactionType',
isTable:false, isTable:false,
isTableForm:false, isTableForm:false,
isDetail:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -499,6 +522,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
field: 'code', field: 'code',
isTable:false, isTable:false,
isTableForm:false, isTableForm:false,
isDetail:false,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -510,6 +534,7 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
dictType: DICT_TYPE.INTERFACE_TYPE, dictType: DICT_TYPE.INTERFACE_TYPE,
dictClass: 'string', dictClass: 'string',
isTable:false, isTable:false,
isDetail:false,
isTableForm:false, isTableForm:false,
sort: 'custom', sort: 'custom',
table: { table: {
@ -549,16 +574,30 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
}, },
{ {
label: '采购审批人代码', label: '采购审批人',
field: 'procurementCreator', field: 'procurementCreatorName',
sortTableDefault:1002,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
isTable: false, isTable:true,
isForm: false, isDetail: true,
isTableForm: false,
isForm:false,
isSearch:false,
sortTableDefault:10
}, },
// {
// label: '采购审批人代码',
// field: 'procurementCreator',
// sortTableDefault:1002,
// sort: 'custom',
// table: {
// width: 150
// },
// isTable: false,
// isForm: false,
// },
{ {
label: '采购审批时间', label: '采购审批时间',
field: 'procurementCreateTime', field: 'procurementCreateTime',
@ -568,6 +607,15 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
form:{
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -593,6 +641,15 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
form:{
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -624,8 +681,8 @@ export const SupplierinvoiceRecordMain = useCrudSchemas(reactive<CrudSchema[]>([
// isDetail:false, // isDetail:false,
// }, // },
{ {
label: '供应商审批人代码', label: '供应商审批人',
field: 'supplierCreator', field: 'supplierCreatorName',
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
isTableForm:false, isTableForm:false,

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

@ -788,6 +788,7 @@ const handleImport = () => {
const formFinanceRef = ref() const formFinanceRef = ref()
const handleFinanceApp = async (row) => { const handleFinanceApp = async (row) => {
row.postingDate = dayjs().valueOf() row.postingDate = dayjs().valueOf()
row.voucherNumberRemark = '收到'+row.supplierName+'发票'+row.goldenTaxInvoiceNumber
formFinanceRef.value.open('update', row,null,'财务通过','财务通过') formFinanceRef.value.open('update', row,null,'财务通过','财务通过')
} }

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

@ -783,6 +783,15 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
form:{
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -832,6 +841,15 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
form:{
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -843,6 +861,21 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
field: 'supplierCreator', field: 'supplierCreator',
sort: 'custom', sort: 'custom',
isTable:false, isTable:false,
isTable:false,
isDetail:false,
sortTableDefault:1006,
table: {
width: 180
},
isForm: false,
},
{
label: '供应商审批人',
field: 'supplierCreatorName',
sort: 'custom',
isTable:false,
isTable:false,
isDetail:true,
sortTableDefault:1006, sortTableDefault:1006,
table: { table: {
width: 180 width: 180
@ -857,6 +890,15 @@ export const SupplierinvoiceRequestMain = useCrudSchemas(reactive<CrudSchema[]>(
detail: { detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' dateFormat: 'YYYY-MM-DD HH:mm:ss'
}, },
form:{
component: 'DatePicker',
componentProps: {
style: {width:'100%'},
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',//YYYY-MM-DD
valueFormat: 'x',//数据转成时间戳
}
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 180
@ -1065,7 +1107,7 @@ export const SupplierinvoiceRequestFinance = useCrudSchemas(reactive<CrudSchema[
style: {width:'100%'}, style: {width:'100%'},
type: 'datetime', type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss', dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x',
} }
}, },
}, },
@ -1087,9 +1129,9 @@ export const SupplierinvoiceRequestFinanceRules = reactive({
postingDate: [ postingDate: [
{ required: true, message: '请选择过账日期', trigger: 'change' } { required: true, message: '请选择过账日期', trigger: 'change' }
], ],
voucherNumberRemark: [ // voucherNumberRemark: [
{ max: 50, message: '不得超过40个字符', trigger: 'blur' } // { max: 50, message: '不得超过40个字符', trigger: 'blur' }
], // ],
}) })
/** /**
* @returns {Array} * @returns {Array}

Loading…
Cancel
Save