lijingjia 2 weeks ago
commit 5e4022689f

@ -0,0 +1,31 @@
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
.line-feed() {
word-break: break-all;
word-wrap: break-word;
white-space: break-spaces;
hyphens: auto;
}
.ellipses() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-o-text-overflow: hidden;
-webkit-box-orient: vertical;
}
.text_ellipsis_rowX(@lineNum: 2) {
text-overflow: -o-ellipsis-lastline;
overflow: hidden; //溢出内容隐藏
text-overflow: ellipsis; //文本溢出部分用省略号表示
display: -webkit-box; //特别显示模式
-webkit-line-clamp: @lineNum; //行数
line-clamp: @lineNum;
-webkit-box-orient: vertical;
}

@ -294,35 +294,3 @@ h5 {
.anticon-exclamation-circle { .anticon-exclamation-circle {
// display: none!important; // display: none!important;
} }
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
.line-feed() {
word-break: break-all;
word-wrap: break-word;
white-space: break-spaces;
hyphens: auto;
}
.ellipses() {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
-o-text-overflow: hidden;
-webkit-box-orient: vertical;
}
.text_ellipsis_rowX(@lineNum: 2) {
text-overflow: -o-ellipsis-lastline;
overflow: hidden; //溢出内容隐藏
text-overflow: ellipsis; //文本溢出部分用省略号表示
display: -webkit-box; //特别显示模式
-webkit-line-clamp: @lineNum; //行数
line-clamp: @lineNum;
-webkit-box-orient: vertical;
}

@ -152,12 +152,6 @@
}) })
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
:deep(.ant-table.ant-table-bordered > .ant-table-container) { :deep(.ant-table.ant-table-bordered > .ant-table-container) {
border-left: none !important; border-left: none !important;
} }

@ -146,6 +146,13 @@ export const columns: BasicColumn[] = [
export const getDetailForm = (type: PageType): FormSchema[] => { export const getDetailForm = (type: PageType): FormSchema[] => {
return [ return [
{
field: 'infoClientBankId',
label: '',
component: 'Input',
colProps: { span: 4 },
show: false,
},
{ {
field: 'bankName', field: 'bankName',
label: '开户行', label: '开户行',
@ -167,9 +174,10 @@ export const getDetailForm = (type: PageType): FormSchema[] => {
const dataResult = res?.data || [] const dataResult = res?.data || []
const defaultData = dataResult.find((item) => item.isInvoiceDefault) const defaultData = dataResult.find((item) => item.isInvoiceDefault)
if (defaultData) { if (defaultData && type === 'ADD') {
formModel.payeeAccountNumber = defaultData.bankAccountNo formModel.payeeAccountNumber = defaultData.bankAccountNo
formModel.bankName = defaultData.bankName formModel.bankName = defaultData.bankName
formModel.infoClientBankId = defaultData.id
} }
resolve(res?.data || []) resolve(res?.data || [])
}) })
@ -180,9 +188,11 @@ export const getDetailForm = (type: PageType): FormSchema[] => {
onChange: (e, obj) => { onChange: (e, obj) => {
if (e && obj) { if (e && obj) {
formModel.payeeAccountNumber = obj.bankAccountNo formModel.payeeAccountNumber = obj.bankAccountNo
formModel.infoClientBankId = obj.id
} }
if (!e && !obj) { if (!e && !obj) {
formModel.payeeAccountNumber = '' formModel.payeeAccountNumber = ''
formModel.infoClientBankId = ''
} }
}, },
} }
@ -229,6 +239,7 @@ export const getDetailForm = (type: PageType): FormSchema[] => {
component: 'InputNumber', component: 'InputNumber',
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
precision: 2,
onChange: (e) => { onChange: (e) => {
nextTick(() => { nextTick(() => {
formModel.amountUppercase = digitUppercase(formModel?.amount || 0) formModel.amountUppercase = digitUppercase(formModel?.amount || 0)

@ -163,12 +163,6 @@
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
:deep(.ant-table-footer) { :deep(.ant-table-footer) {
padding: 0px !important; padding: 0px !important;
background: white; background: white;

@ -241,6 +241,7 @@
id: route.query.id as string, id: route.query.id as string,
}) })
setFieldsValue({ setFieldsValue({
infoClientBankId: res.data.infoClientBankId,
bankName: res.data.bankName, bankName: res.data.bankName,
payeeName: res.data.payeeName, payeeName: res.data.payeeName,
payeeAccountNumber: res.data.payeeAccountNumber, payeeAccountNumber: res.data.payeeAccountNumber,
@ -292,6 +293,10 @@
const saveFunc = async (callback?: Function | undefined) => { const saveFunc = async (callback?: Function | undefined) => {
await validate() await validate()
if (!getFieldsValue().bankName) {
createMessage.warning('请填写开户行信息')
return
}
if (!billTableData.value.length) { if (!billTableData.value.length) {
createMessage.warning('请至少引入一条发票') createMessage.warning('请至少引入一条发票')
return return
@ -431,12 +436,6 @@
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
.page-wrapper { .page-wrapper {
background: #ffffff; background: #ffffff;
.ant-divider-vertical { .ant-divider-vertical {

@ -186,12 +186,6 @@
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
.SvgImg { .SvgImg {
width: 18px; width: 18px;
height: 18px; height: 18px;

@ -212,11 +212,11 @@ export const columns: BasicColumn[] = [
export const getDisplayValLabel = (displayItem, detailInfo): string => { export const getDisplayValLabel = (displayItem, detailInfo): string => {
if (displayItem['key'] === 'reimbursementDesc') { if (displayItem['key'] === 'reimbursementDesc') {
return detailInfo.reimbursementId return detailInfo?.reimbursementId
? `报销单号${detailInfo.reimbursementId}使用,报销人:${ ? `报销单号${detailInfo.reimbursementId}使用,报销人:${
detailInfo.reimburser detailInfo.reimburser
}${moment(detailInfo.createTime).format('YYYY-MM-DD')} ${ }${moment(detailInfo.createTime).format('YYYY-MM-DD')} ${
detailInfo.reason ?? '-' detailInfo?.reason ?? '-'
}` }`
: '-' : '-'
} else { } else {

@ -181,18 +181,6 @@
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
.line-feed() {
word-break: break-all;
word-wrap: break-word;
white-space: break-spaces;
hyphens: auto;
}
.ds-income-invoice-wrapper { .ds-income-invoice-wrapper {
background: #ffffff; background: #ffffff;
:deep(.ant-table-title) { :deep(.ant-table-title) {

@ -145,12 +145,6 @@
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.flex_arrange(@direction: row, @justify: center, @align: center) {
display: flex;
flex-direction: @direction;
justify-content: @justify;
align-items: @align;
}
.ds-fee-settle-main-table { .ds-fee-settle-main-table {
.status-box { .status-box {
.flex_arrange; .flex_arrange;

@ -92,7 +92,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
preprocessorOptions: { preprocessorOptions: {
less: { less: {
modifyVars: generateModifyVars(), modifyVars: generateModifyVars(),
// additionalData: `@import "${pathResolve('src/design/public.less')}";`, additionalData: `@import "${pathResolve('src/design/common.less')}";`,
javascriptEnabled: true, javascriptEnabled: true,
}, },
}, },

Loading…
Cancel
Save