|
|
|
@ -1,5 +1,14 @@
|
|
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table'
|
|
|
|
|
import { GetClientListByCode } from '/@/api/common'
|
|
|
|
|
import { GetCheckBillTemplateList } from '../api'
|
|
|
|
|
export let CheckBillTemplateList: any = []
|
|
|
|
|
const res: API.DataResult = await GetCheckBillTemplateList()
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
CheckBillTemplateList = []
|
|
|
|
|
res.data.forEach((e) => {
|
|
|
|
|
CheckBillTemplateList.push({ label: e.name, value: e.id })
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
export const billTypeData = [
|
|
|
|
|
{ value: 0, label: '全部' },
|
|
|
|
|
{ value: 1, label: '应收' },
|
|
|
|
@ -83,6 +92,21 @@ export const schemas: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '对账模板',
|
|
|
|
|
field: 'checkBillTemplateId',
|
|
|
|
|
component: 'Select',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: () => {
|
|
|
|
|
return {
|
|
|
|
|
options: CheckBillTemplateList,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{ field: 'note', component: 'Input', label: '备注', colProps: { span: 8 } },
|
|
|
|
|
// {
|
|
|
|
|
// label: '对账客户',
|
|
|
|
|
// field: 'customerName',
|
|
|
|
@ -116,19 +140,19 @@ export const schemas: FormSchema[] = [
|
|
|
|
|
// // },
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
field: 'isNoTax',
|
|
|
|
|
component: 'Switch',
|
|
|
|
|
label: '是否不含税',
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
colProps: { span: 2 },
|
|
|
|
|
componentProps: {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'isNoTax',
|
|
|
|
|
// component: 'Switch',
|
|
|
|
|
// label: '是否不含税',
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// colProps: { span: 2 },
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// isLocking
|
|
|
|
|
// { field: 'billName', component: 'Input', label: '对账单名称', colProps: { span: 4 } },
|
|
|
|
|
// { field: 'field2', component: 'Input', label: '账单说明', colProps: { span: 4 } },
|
|
|
|
@ -138,7 +162,6 @@ export const schemas: FormSchema[] = [
|
|
|
|
|
// { field: 'field6', component: 'Input', label: '打印模板', colProps: { span: 4 } },
|
|
|
|
|
// { field: 'field7', component: 'Input', label: '账单类别', colProps: { span: 4 } },
|
|
|
|
|
// { field: 'field8', component: 'Input', label: '费用范围', colProps: { span: 4 } },
|
|
|
|
|
// { field: 'field9', component: 'Input', label: '备注', colProps: { span: 12 } },
|
|
|
|
|
]
|
|
|
|
|
// 表单
|
|
|
|
|
export const Editschemas: FormSchema[] = [
|
|
|
|
@ -236,6 +259,38 @@ export const Editschemas: FormSchema[] = [
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: '对账模板',
|
|
|
|
|
field: 'checkBillTemplateId',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
colProps: { span: 4 },
|
|
|
|
|
componentProps: (a) => {
|
|
|
|
|
return {
|
|
|
|
|
options: CheckBillTemplateList,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = a
|
|
|
|
|
formActionType ? formActionType.linkageForm(a) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'note',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
label: '备注',
|
|
|
|
|
colProps: { span: 8 },
|
|
|
|
|
componentProps: (a) => {
|
|
|
|
|
return {
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = a
|
|
|
|
|
formActionType ? formActionType.linkageForm(a) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// label: '对账客户',
|
|
|
|
|
// field: 'customerName',
|
|
|
|
@ -265,25 +320,25 @@ export const Editschemas: FormSchema[] = [
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: 'isNoTax',
|
|
|
|
|
component: 'DEdit',
|
|
|
|
|
label: '是否不含税',
|
|
|
|
|
defaultValue: false,
|
|
|
|
|
colProps: { span: 2 },
|
|
|
|
|
componentProps: (e) => {
|
|
|
|
|
return {
|
|
|
|
|
checkedChildren: '是',
|
|
|
|
|
checkedValue: true,
|
|
|
|
|
unCheckedChildren: '否',
|
|
|
|
|
unCheckedValue: false,
|
|
|
|
|
onEdit: () => {
|
|
|
|
|
const { formActionType } = e
|
|
|
|
|
formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: 'isNoTax',
|
|
|
|
|
// component: 'DEdit',
|
|
|
|
|
// label: '是否不含税',
|
|
|
|
|
// defaultValue: false,
|
|
|
|
|
// colProps: { span: 2 },
|
|
|
|
|
// componentProps: (e) => {
|
|
|
|
|
// return {
|
|
|
|
|
// checkedChildren: '是',
|
|
|
|
|
// checkedValue: true,
|
|
|
|
|
// unCheckedChildren: '否',
|
|
|
|
|
// unCheckedValue: false,
|
|
|
|
|
// onEdit: () => {
|
|
|
|
|
// const { formActionType } = e
|
|
|
|
|
// formActionType ? formActionType.linkageForm(e) : null
|
|
|
|
|
// },
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
//左侧列表
|
|
|
|
@ -308,7 +363,7 @@ export const columnsL: BasicColumn[] = [
|
|
|
|
|
{ title: '订舱编号', dataIndex: 'orderNo', align: 'left' },
|
|
|
|
|
{ title: '主提单号', dataIndex: 'mblno', align: 'left' },
|
|
|
|
|
{ title: '分提单号', dataIndex: 'hblno', align: 'left' },
|
|
|
|
|
{ title: '服务合同号', dataIndex: 'serviceContractNo', align: 'left' },
|
|
|
|
|
{ title: '约号', dataIndex: 'serviceContractNo', align: 'left' },
|
|
|
|
|
{ title: 'RMB应收', dataIndex: 'rmbdr', align: 'left' },
|
|
|
|
|
{ title: 'RMB应付', dataIndex: 'rmbcr', align: 'left' },
|
|
|
|
|
{ title: 'RMB未收', dataIndex: 'balrmbdr', align: 'left' },
|
|
|
|
|