Browse Source

YT-2203从《客户对账单》创建开票申请时,以及从《销售开票申请》

intex_online20250327
张立 1 month ago
parent
commit
358807bb83
  1. 8
      src/components/BasicForm/src/BasicForm.vue
  2. 10
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue
  3. 45
      src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts

8
src/components/BasicForm/src/BasicForm.vue

@ -93,7 +93,7 @@
:fixedScrollHieght="fixedScrollHieght"
:maxHeight="fixedScrollHieght?'auto':490"
:tableFields="tableAllSchemas.tableFormColumns"
:tableData="tableData"
:tableData="showTypeList.length>0&&!showTypeList.includes('')?tableData.filter(aItem => showTypeList.some(bItem => aItem.invoiceType === bItem)):tableData"
:tableFormRules="tableFormRules"
:isShowButton="isShowButton"
:isShowReduceButton="isShowReduceButton"
@ -400,6 +400,12 @@ const props = defineProps({
required: false,
default: false
},
//
showTypeList:{
type: Array,
required: false,
default: []
},
})
const { t } = useI18n() //

10
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/CustomerSaleInvoiceBasicForm.vue

@ -10,6 +10,7 @@
:tableAllSchemas="CustomerSaleInvoiceDetail.allSchemas"
:tableFormRules="CustomerSaleInvoiceDetailRules"
:tableData="tableData"
:showTypeList="showTypeList"
:apiUpdate="CustomerSaleInvoiceMainApi.updateCustomerSaleInvoiceMain"
:apiCreate="CustomerSaleInvoiceMainApi.createCustomerSaleInvoiceMain"
:isBusiness="true"
@ -127,11 +128,9 @@ const openFormTable =async (type: string, row?: any, list?:any) => {
initTableDataPrice()
})
}
const showTypeList = ref([])
const onChange = (field, cur, formRef)=>{
console.log('onChange',field, cur, formRef)
if(field == 'taxRate'){
// taxAmount */100,2
tableData.value.forEach(item=>{
@ -139,6 +138,11 @@ const onChange = (field, cur, formRef)=>{
// = +,2
item['afterTaxAmount'] = item['beforeTaxAmount'] + item['taxAmount']
})
} else if (field == 'invoiceType') {
showTypeList.value = cur
// if (cur == '') {
// tableData.value =
// }
}
}
const inputNumberChange = (field, index, row, val) => {

45
src/views/wms/deliversettlementManage/customerSaleInvoiceRequestMain/customerSaleInvoiceRequestMain.data.ts

@ -252,7 +252,35 @@ export const CustomerSaleInvoiceMain = useCrudSchemas(reactive<CrudSchema[]>([
width:150
}
},
{
label: '开票种类',
field: 'invoiceType',
dictClass: 'string',
isTable: true,
sort: 'custom',
table: {
width: 150
},
form: {
component: 'Select',
componentProps: {
showAll: true,// 备用做全选
multiple: true,
// emptyValues:[null, undefined],
valueOnClear: null,
options: [{
label: '全部',
value: ''
}, {
label: '号口品',
value: '号口品'
}, {
label: '补给品',
value: '补给品'
}]
}
},
},
{
label: '创建时间',
field: 'createTime',
@ -415,6 +443,21 @@ form:{
disabled:true
}
},
{
label: '开票种类',
field: 'invoiceType',
dictType: DICT_TYPE.TAX_RATE_DICT,
dictClass: 'string',
isTable: true,
isTableForm: true,
sort: 'custom',
table: {
width: 150
},
tableForm: {
disabled:true
}
},
{
label: '品号',
field: 'articleNumber',

Loading…
Cancel
Save