公共组件

This commit is contained in:
‘huanghaiixia’
2025-12-19 09:11:04 +08:00
parent a1151e18a3
commit 13e7a928c7
7 changed files with 11 additions and 11 deletions

View File

@ -48,7 +48,7 @@ import { useI18n } from '/@/hooks/web/useI18n';
import type { Rule } from 'ant-design-vue/es/form'; import type { Rule } from 'ant-design-vue/es/form';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '/@/hooks/web/useMessage';
import { getDictionary } from '/@/api/sales/Customer'; import { getDictionary } from '/@/api/sales/Customer';
import bankListModal from './bankListModal.vue' import bankListModal from '/@/components/common/bankListModal.vue'
import { useModal } from '/@/components/Modal'; import { useModal } from '/@/components/Modal';
const { t } = useI18n(); const { t } = useI18n();

View File

@ -305,9 +305,9 @@
import useEventBus from '/@/hooks/event/useEventBus'; import useEventBus from '/@/hooks/event/useEventBus';
import type { Rule } from 'ant-design-vue/es/form'; import type { Rule } from 'ant-design-vue/es/form';
import { getDocCpList, getDictionary } from '/@/api/sales/Customer'; import { getDocCpList, getDictionary } from '/@/api/sales/Customer';
import certificateModal from './certificateModal.vue'; import certificateModal from '/@/components/common/certificateModal.vue';
import contactModal from './contactModal.vue'; import contactModal from '/@/components/common/contactModal.vue';
import bankModal from './bankModal.vue'; import bankModal from '/@/components/common/bankModal.vue';
import { useModal } from '/@/components/Modal'; import { useModal } from '/@/components/Modal';
import { addLngCustomer,updateLngCustomer,getLngCustomer } from '/@/api/sales/Customer'; import { addLngCustomer,updateLngCustomer,getLngCustomer } from '/@/api/sales/Customer';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@ -485,7 +485,7 @@
optionSelect.validList = await getDictionary('LNG_VALID') optionSelect.validList = await getDictionary('LNG_VALID')
optionSelect.approCodeList = await getDictionary('LNG_APPRO') optionSelect.approCodeList = await getDictionary('LNG_APPRO')
optionSelect.docCpList = await getDocCpList({'valid': 'Y'}) optionSelect.docCpList = await getDocCpList()
} }
function stateSignChange(val) { function stateSignChange(val) {
if (val!='Y'){ if (val!='Y'){
@ -621,7 +621,7 @@
arr.push(v) arr.push(v)
} }
}) })
if (arr.length > 1 || !arr.length) { if (arr.length !== 1) {
notification.warning({ notification.warning({
message: 'Tip', message: 'Tip',
description: '默认银行有且仅有一个' description: '默认银行有且仅有一个'

View File

@ -231,9 +231,9 @@
import useEventBus from '/@/hooks/event/useEventBus'; import useEventBus from '/@/hooks/event/useEventBus';
import type { Rule } from 'ant-design-vue/es/form'; import type { Rule } from 'ant-design-vue/es/form';
import { getDocCpList, getDictionary } from '/@/api/sales/Customer'; import { getDocCpList, getDictionary } from '/@/api/sales/Customer';
import certificateModal from '/@/views/sales/Customer/components/certificateModal.vue'; import certificateModal from '/@/components/common/certificateModal.vue';
import contactModal from '/@/views/sales/Customer/components/contactModal.vue'; import contactModal from '/@/components/common/contactModal.vue';
import bankModal from '/@/views/sales/Customer/components/bankModal.vue'; import bankModal from '/@/components/common/bankModal.vue';
import { useModal } from '/@/components/Modal'; import { useModal } from '/@/components/Modal';
import { addLngSupplier,updateLngSupplier,getLngSupplier } from '/@/api/supplier/Supplier'; import { addLngSupplier,updateLngSupplier,getLngSupplier } from '/@/api/supplier/Supplier';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
@ -399,7 +399,7 @@
optionSelect.signList = await getDictionary('LNG_YN') optionSelect.signList = await getDictionary('LNG_YN')
optionSelect.validList = await getDictionary('LNG_VALID') optionSelect.validList = await getDictionary('LNG_VALID')
optionSelect.approCodeList = await getDictionary('LNG_APPRO') optionSelect.approCodeList = await getDictionary('LNG_APPRO')
optionSelect.docCpList = await getDocCpList({'valid': 'Y'}) optionSelect.docCpList = await getDocCpList()
} }
const handleAdd = (val)=> { const handleAdd = (val)=> {
curIdx.value = null curIdx.value = null
@ -524,7 +524,7 @@
arr.push(v) arr.push(v)
} }
}) })
if (arr.length > 1 || !arr.length) { if (arr.length !== 1) {
notification.warning({ notification.warning({
message: 'Tip', message: 'Tip',
description: '默认银行有且仅有一个' description: '默认银行有且仅有一个'