Browse Source

销售开票申请

intex_online20241111
yufei_wang 2 weeks ago
parent
commit
a723e8cfda
  1. 77
      src/views/wms/deliversettlementManage/customerSaleInvoiceMain/customerSaleInvoiceMain.data.ts
  2. 22
      src/views/wms/deliversettlementManage/customerSaleInvoiceMain/index.vue

77
src/views/wms/deliversettlementManage/customerSaleInvoiceMain/customerSaleInvoiceMain.data.ts

@ -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',
}
},

22
src/views/wms/deliversettlementManage/customerSaleInvoiceMain/index.vue

@ -57,6 +57,15 @@
@tableSelectionDelete="tableSelectionDelete"
@searchTableSuccess="searchTableSuccess"
@submitForm="submitForm"
@inputNumberChange="inputNumberChange"
:sumFormDataByTableCustom="
(formRef, formModel, tableData) => {
tableData.forEach(item=>{
})
}
"
/>
<!-- 详情 -->
@ -134,7 +143,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row[formField] = item[searchField]
newRow['uom'] = item['customerUom']
newRow['id'] = item['id']
.push(newRow)
tableData.value.push(newRow)
})
}else{
row[formField] = val[0][searchField]
@ -156,7 +165,11 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
masterId:val[0]['id']
}).then((res) => {
console.log(55,res)
tableData.value = res.list && res.list.length > 0 ?res.list : []
tableData.value = res.list && res.list.length > 0 ?res.list : []
tableData.value.forEach(item=>{
item['sumPrice'] = item['price'] + item['allocationPrice']
})
})
// tableData.value = []
@ -406,6 +419,11 @@ const handleDeleteTable = (item, index) => {
const tableSelectionDelete = (selection) => {
tableData.value = tableData.value.filter(item => !selection.includes(item))
}
const inputNumberChange = (field, index, row, val) => {
console.log('inputNumberChange',field, index, row, val)
row['sumPrice'] = row['price'] + row['allocationPrice']
}
//true0
const flag = ref(false)

Loading…
Cancel
Save