sunzehua 1 week ago
commit 71a9af34d9

@ -74,7 +74,7 @@ export const formSchema: FormSchema[] = [
return {
api: () => {
return new Promise((resolve) => {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
resolve(res)
})
})

@ -242,7 +242,7 @@
type: 'dropdown',
visible: true,
source: async (query, process) => {
const results = await getDictOption('djy_cust_prop')
const results = await getDictOption('infoclient-ArrclientTag')
const dict = results.map((item) => {
return item.name + '-' + item.value
})
@ -672,7 +672,7 @@
}
}
//
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
const item = res.filter((item) => {
return list.value[changes[0][0]]['customerTypeText'] && list.value[changes[0][0]]['customerTypeText'].includes(item.name)
})
@ -701,7 +701,7 @@
}
//
if (changes[0][1] === 'customerTypeText') {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
const item = res.filter((item) => {
return changes[0][3].includes(item.name)
})

@ -222,7 +222,6 @@
...item,
})
})
console.log(ret)
return ret
}

@ -0,0 +1,64 @@
/*
* @Desc: hooks
* @Author: lijj
* @Date: 2024-11-14 09:57:21
*/
const domSymbol = Symbol('watermark-dom')
export function useWatermark(
op = 0.15,
appendEl: HTMLElement | null = document.body
) {
let func: any = () => {}
const id = domSymbol.toString()
const clear = () => {
const domId = document.getElementById(id)
if (domId) {
const el = appendEl
el && el.removeChild(domId)
}
window.removeEventListener('resize', func)
}
const createWatermark = (str: string) => {
clear()
const can = document.createElement('canvas')
can.width = 300
can.height = 240
const cans = can.getContext('2d')
if (cans) {
cans.rotate((-25 * Math.PI) / 120)
cans.font = '15px Vedana'
cans.fillStyle = `rgba(0, 0, 0, ${op})`
cans.textAlign = 'left'
cans.textBaseline = 'middle'
cans.fillText(str, can.width / 20, can.height)
}
const div = document.createElement('div')
div.id = id
div.style.pointerEvents = 'none'
div.style.top = '0px'
div.style.left = '0px'
div.style.position = 'absolute'
div.style.zIndex = '100000000'
div.style.width = document.documentElement.clientWidth + 'px'
div.style.height = document.documentElement.clientHeight - 80 + 'px'
div.style.background =
'url(' + can.toDataURL('image/png') + ') left top repeat'
const el = appendEl
el && el.appendChild(div)
return id
}
function setWatermark(str: string) {
createWatermark(str)
func = () => {
createWatermark(str)
}
window.addEventListener('resize', func)
}
return { setWatermark, clear }
}

@ -616,7 +616,7 @@
source: async (query, process) => {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const dict = res.map((res) => {
return res.pinYinCode
@ -753,7 +753,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]
@ -765,7 +765,7 @@
if (changes[0][1] === 'CtnFlowStateId') {
const res = CtnFlowStateDict.value.length
? CtnFlowStateDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!CtnFlowStateDict.value.length) CtnFlowStateDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -137,7 +137,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -232,7 +232,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -335,7 +335,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -229,7 +229,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -563,7 +563,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -516,7 +516,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -626,7 +626,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -136,7 +136,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -251,7 +251,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'id',

@ -679,7 +679,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -870,7 +870,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]
@ -991,7 +991,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -1172,7 +1172,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -198,7 +198,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -446,7 +446,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -541,7 +541,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'id',
@ -565,7 +565,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetCtnSelectList,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'ctnName',
showName: 'ctnName',
valueField: 'ctnName',

@ -623,7 +623,7 @@
source: async (query, process) => {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const dict = res.map((res) => {
return res.pinYinCode
@ -853,7 +853,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -170,7 +170,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -406,7 +406,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -501,13 +501,13 @@ export const formSearchBoxSchema: FormSchema[] = [
// required: false,
// dynamicDisabled: false,
// colProps: { span: 6 },
// // api: GetSupplierListByCode({ code: 'isLeasing' }),
// // api: GetSupplierListByCode({ code: 'leasing' }),
// componentProps: ({ formModel }) => {
// return {
// allowClear: true,
// showSearch: true,
// api: GetSupplierListByCode({ code: 'isLeasing' }),
// params: { code: 'isLeasing' },
// api: GetSupplierListByCode({ code: 'leasing' }),
// params: { code: 'leasing' },
// labelField: 'pinYinCode',
// showName: 'shortName',
// valueField: 'shortName',
@ -591,7 +591,7 @@ export const formSearchBoxSchema: FormSchema[] = [
// allowClear: true,
// showSearch: true,
// api: GetSupplierListByCode,
// params: { code: 'isLeasing' },
// params: { code: 'leasing' },
// labelField: 'pinYinCode',
// showName: 'shortName',
// valueField: 'shortName',

@ -569,7 +569,7 @@
source: async (query, process) => {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const dict = res.map((res) => {
return res.pinYinCode
@ -796,7 +796,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -174,7 +174,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -410,7 +410,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -504,7 +504,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -695,7 +695,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -897,7 +897,7 @@
if (changes[0][1] === 'ctnOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]
@ -1032,7 +1032,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -1234,7 +1234,7 @@
if (changes[0][1] === 'ctnOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -207,7 +207,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -454,7 +454,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -543,13 +543,13 @@ export const formSearchBoxSchema: FormSchema[] = [
required: false,
dynamicDisabled: false,
colProps: { span: 6 },
// api: GetSupplierListByCode({ code: 'isLeasing' }),
// api: GetSupplierListByCode({ code: 'leasing' }),
componentProps: ({ formModel }) => {
return {
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -198,7 +198,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -337,7 +337,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -11,7 +11,7 @@ const accountTypeDict = ref([])
getDictOption('account_type').then((data) => {
accountTypeDict.value = data
})
getDictOption('djy_cust_prop').then((data) => {
getDictOption('infoclient-ArrclientTag').then((data) => {
customTypeDict.value = data
})
// 客户名称下拉框数据

@ -58,7 +58,7 @@
const res: API.DataResult = await ApiList(p)
//
const adicts = await getDictOption('account_type')
const ddicts = await getDictOption('djy_cust_prop')
const ddicts = await getDictOption('infoclient-ArrclientTag')
res?.data.forEach((row) => {
adicts.forEach((item) => {
if (item.value == row.accountType) {

@ -17,6 +17,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>取消</a-button
>
<a-button
@ -25,6 +26,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>仅保存</a-button
>
<a-button
@ -32,6 +34,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>保存并关闭</a-button
>
</template>
@ -46,11 +49,17 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
const { notification } = useMessage()
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
const [registerForm, { resetFields, setProps, setFieldsValue, validate }] = useForm({
labelWidth: 100,
schemas: CADformSchema,
showActionButtonGroup: false,
@ -73,6 +82,7 @@
} else {
setFieldsValue({ clientId: data.record.id })
}
setProps({ disabled: props.disabled })
setModalProps({ loading: false })
})

@ -17,6 +17,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>取消</a-button
>
<a-button
@ -25,6 +26,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>仅保存</a-button
>
<a-button
@ -32,6 +34,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>保存并关闭</a-button
>
</template>
@ -47,6 +50,12 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
@ -55,6 +64,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {

@ -80,7 +80,7 @@ export const formSchema: FormSchema[] = [
field: 'userName',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 24 },
componentProps: ({ formModel }) => {
return {

@ -3,11 +3,11 @@
<BasicTable class="ds-table-detail" @register="registerTable">
<template #tableTitle>
<span class="title">干系人列表</span>
<a-button type="link" @click="handleCreate">
<a-button type="link" @click="handleCreate" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-button type="link" @click="handleDel">
<a-button type="link" @click="handleDel" :disabled="props.disabled">
<span class="iconfont icon-shanchu2"></span>
删除
</a-button>
@ -26,7 +26,11 @@
</template>
</template>
</BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<TenantAuditStepModal
@register="registerModal"
@success="handleSuccess"
:disabled="props.disabled"
/>
<a-modal
:visible="visible"
title="审批备注"
@ -50,6 +54,10 @@
import TenantAuditStepModal from './TenantAuditStepModal.vue'
const props = defineProps({
clientId: { type: String },
disabled: {
type: Boolean,
default: false,
},
})
const visible = ref(false)
const remark = ref('')

@ -1,23 +0,0 @@
[
{ "label": "船公司", "value": "isCarrier" },
{ "label": "订舱口", "value": "isBooking" },
{ "label": "场站", "value": "isYard" },
{ "label": "车队", "value": "isTruck" },
{ "label": "委托单位", "value": "isController" },
{ "label": "报关行", "value": "isCustom" },
{ "label": "代理(国外)", "value": "isAgent" },
{ "label": "代理(国内)", "value": "isAgentCn" },
{ "label": "快递公司", "value": "isExpress" },
{ "label": "航空公司", "value": "isAirLines" },
{ "label": "国外发货人", "value": "isShipper" },
{ "label": "通知人", "value": "isNotifyParty" },
{ "label": "仓库", "value": "isWareHouse" },
{ "label": "码头", "value": "isWharf" },
{ "label": "保险公司", "value": "isInsurer" },
{ "label": "租箱公司", "value": "isLeasing" },
{ "label": "贸易代理", "value": "isTradingAgency" },
{ "label": "其他", "value": "isOther" },
{ "label": "船代", "value": "isShipAgency" },
{ "label": "经营单位", "value": "isEnterprise" },
{ "label": "国内发货人", "value": "isShipperCn" }
]

@ -10,7 +10,12 @@
<!-- 费用模版表单 -->
<BasicForm @register="registerForm" />
<!-- 费用字段表格 -->
<FeeField ref="feeField" @success="handleSuccess" v-show="!isBulk"></FeeField>
<FeeField
ref="feeField"
@success="handleSuccess"
:disabled="props.disabled"
v-show="!isBulk"
></FeeField>
<!--右下角按钮-->
<template #footer>
<a-button
@ -20,6 +25,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>
取消
</a-button>
@ -29,6 +35,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>
仅保存
</a-button>
@ -37,6 +44,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>
保存并关闭
</a-button>
@ -61,6 +69,10 @@
const props = defineProps({
customerName: { type: String },
customerId: { type: String },
disabled: {
type: Boolean,
default: false,
},
})
// Emits
const emit = defineEmits(['success', 'register'])
@ -88,6 +100,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const unitArr = ref<any>([])
const BulkInfoArr = ref<any>([])

@ -440,7 +440,7 @@ export const searchFormSchema: FormSchema[] = [
// label: '客户名称',
// component: 'ApiSelect',
// required: false,
// dynamicDisabled: false,
//
// colProps: { span: 4 },
// componentProps: ({ formModel }) => {
// return {
@ -514,7 +514,7 @@ export const searchFormSchema: FormSchema[] = [
label: '起运港',
field: 'polCode',
component: 'ApiSelect',
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
@ -535,7 +535,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'podCode',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
@ -556,7 +556,7 @@ export const searchFormSchema: FormSchema[] = [
label: '航线',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: ({ formModel }) => {
return {
@ -575,7 +575,7 @@ export const searchFormSchema: FormSchema[] = [
field: 'sourceId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: ({ formModel }) => {
return {
@ -608,12 +608,12 @@ export const searchFormSchema: FormSchema[] = [
component: 'ApiSelect',
required: false,
// labelSlot: 'yardId',
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -629,7 +629,7 @@ export const searchFormSchema: FormSchema[] = [
label: '付费方式',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
@ -841,7 +841,7 @@ export const formSchema: FormSchema[] = [
label: '起运港',
field: 'polCode',
component: 'ApiSelect',
dynamicDisabled: false,
colProps: { span: 6 },
componentProps: () => {
return {
@ -862,7 +862,7 @@ export const formSchema: FormSchema[] = [
field: 'podCode',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 6 },
componentProps: () => {
return {
@ -883,7 +883,7 @@ export const formSchema: FormSchema[] = [
label: '航线',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 6 },
componentProps: ({ formModel }) => {
return {
@ -902,7 +902,7 @@ export const formSchema: FormSchema[] = [
field: 'sourceId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 6 },
componentProps: ({ formActionType, formModel }) => {
return {
@ -1001,12 +1001,12 @@ export const formSchema: FormSchema[] = [
component: 'ApiSelect',
required: false,
// labelSlot: 'yardId',
dynamicDisabled: false,
colProps: { span: 6 },
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -1022,7 +1022,7 @@ export const formSchema: FormSchema[] = [
label: '付费方式',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
defaultValue: null,
colProps: { span: 6 },
componentProps: ({ formModel, formActionType }) => {
@ -1151,7 +1151,7 @@ export const detailsFormSchema: FormSchema[] = [
label: '费用名称',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
defaultValue: null,
colProps: { span: 6 },
componentProps: ({ formModel }) => {
@ -1212,14 +1212,14 @@ export const detailsFormSchema: FormSchema[] = [
label: '客户类别',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
defaultValue: null,
colProps: { span: 6 },
componentProps: ({ formModel }) => {
return {
api: () => {
return new Promise((resolve) => {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
resolve(res)
})
})
@ -1258,7 +1258,7 @@ export const detailsFormSchema: FormSchema[] = [
label: '单位标准',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
defaultValue: null,
colProps: { span: 6 },
componentProps: ({ formModel }) => {
@ -1306,7 +1306,7 @@ export const detailsFormSchema: FormSchema[] = [
label: '币别',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
defaultValue: null,
colProps: { span: 6 },
componentProps: ({ formModel }) => {

@ -3,15 +3,15 @@
<div class="flex">
<span class="title">费用明细</span>
<div>
<a-button type="link" @click="OpenSetCondition">
<a-button type="link" @click="OpenSetCondition" :disabled="props.disabled">
<span class="iconfont icon-jichupeizhi"></span>
设置方案条件
</a-button>
<a-button type="link" @click="addRow">
<a-button type="link" @click="addRow" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-button type="link" @click="copyRow">
<a-button type="link" @click="copyRow" :disabled="props.disabled">
<span class="iconfont icon-fuzhi"></span>
复制
</a-button>
@ -25,7 +25,7 @@
cancel-text="否"
@confirm="deleteRow"
>
<a-button type="link">
<a-button type="link" :disabled="props.disabled">
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
@ -61,14 +61,7 @@
</div>
</template>
<script lang="ts" setup>
import {
ref,
onMounted,
watch,
nextTick,
defineComponent,
watchEffect
} from 'vue'
import { ref, onMounted, watch, nextTick, defineComponent, watchEffect } from 'vue'
//
import { GetFeeCodeSelectList, GetFeeCurrencySelectList } from '/@/api/common'
import { getColumns, DeleteDetails, ApiBulkEditDetails } from './api'
@ -90,7 +83,12 @@
})
registerAllModules()
const { createMessage, notification } = useMessage()
const props = defineProps({})
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
// -----------------------------------------
let Arr = ref([
@ -218,7 +216,7 @@
}
const SetData = async (data) => {
list.value.splice(0)
const customerTypeList: any = await getDictOption('djy_cust_prop')
const customerTypeList: any = await getDictOption('infoclient-ArrclientTag')
const unitList: any = await feeUnitDict2()
const unitList2: any = await getDictOption('fee_unit')
console.log(unitList, unitList2)
@ -324,7 +322,7 @@
data: 'customerTypeText',
type: 'dropdown',
source: async (query, process) => {
const results = await getDictOption('djy_cust_prop')
const results = await getDictOption('infoclient-ArrclientTag')
console.log(results)
const dict = results.map((item) => {
return item.value + '-' + item.name
@ -542,7 +540,7 @@
//
if (changes[0][1] === 'customerTypeText') {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
const item = res.filter((item) => {
return changes[0][3].includes(item.name)
})

@ -7,11 +7,11 @@
<a-switch @change="ChangeView" v-model:checked="ShowView" :loading="ShowViewLoading" />
<span class="ShowViewText">按费用显示</span>
</div>
<a-button type="link" @click="handleCreate">
<a-button type="link" @click="handleCreate" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
<a-button type="link" @click="BulkEdit">
<a-button type="link" @click="BulkEdit" :disabled="props.disabled">
<span class="iconfont icon-dengjizongshu"></span>
批量编辑
</a-button>
@ -21,7 +21,7 @@
cancel-text="否"
@confirm="handleDelete"
>
<a-button type="link">
<a-button type="link" :disabled="props.disabled">
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
@ -34,6 +34,7 @@
{
icon: 'ant-design:copy-outlined',
tooltip: '复制',
disabled: props.disabled,
onClick: () => {
copyBooking(record)
},
@ -53,6 +54,7 @@
@success="handleSuccess"
:customerName="props.customerName"
:customerId="props.clientId"
:disabled="props.disabled"
/>
</div>
</template>
@ -69,6 +71,10 @@
const props = defineProps({
clientId: { type: String },
customerName: { type: String },
disabled: {
type: Boolean,
default: false,
},
})
const [registerModal, { openModal }] = useModal()
const ShowView = ref(false)

@ -17,6 +17,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>取消</a-button
>
<a-button
@ -25,6 +26,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>仅保存</a-button
>
<a-button
@ -32,6 +34,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>保存并关闭</a-button
>
</template>
@ -46,6 +49,12 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
@ -54,6 +63,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {

@ -94,7 +94,7 @@ export const formSchema: FormSchema[] = [
labelSlot: 'carrierId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 20 },
componentProps: ({ formModel }) => {
return {
@ -134,7 +134,7 @@ export const formSchema: FormSchema[] = [
field: 'loadingPort',
component: 'ApiSelect',
required: true,
dynamicDisabled: false,
colProps: { span: 20 },
componentProps: () => {
return {

@ -3,7 +3,11 @@
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<span class="title">放舱方式设置</span>
<a-button type="link" @click="handleCreate" :disabled="checkPermissions('op:ctn:add')">
<a-button
type="link"
@click="handleCreate"
:disabled="checkPermissions('op:ctn:add') || props.disabled"
>
<span class="iconfont icon-new_document"></span>
添加
</a-button>
@ -13,7 +17,7 @@
cancel-text="否"
@confirm="handleDel"
>
<a-button type="link" :disabled="checkPermissions('op:ctn:del')">
<a-button type="link" :disabled="checkPermissions('op:ctn:del') || props.disabled">
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
@ -35,7 +39,11 @@
</template>
</template>
</BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<TenantAuditStepModal
@register="registerModal"
@success="handleSuccess"
:disabled="props.disabled"
/>
</div>
</template>
<script lang="ts" setup>
@ -60,6 +68,10 @@
customerName: {
type: String,
},
disabled: {
type: Boolean,
default: false,
},
})
const [registerTable, { reload, getForm, getSelectRows }] = useTable({
title: '',
@ -134,7 +146,7 @@
</script>
<style lang="less" scoped>
.ds-table-detail {
margin-top: -16px;
// margin-top: -16px;
.title {
font-size: 12px;
font-weight: 700;

@ -80,7 +80,12 @@
<Divider type="vertical" />
<span class="gradeClass">
<span>客户等级</span>
<a-select class="gradeSelect" :bordered="false" v-model:value="grade">
<a-select
class="gradeSelect"
:bordered="false"
v-model:value="grade"
:disabled="Fndisabled()"
>
<a-select-option value="A">A</a-select-option>
<a-select-option value="B">B</a-select-option>
<a-select-option value="C">C</a-select-option>
@ -95,6 +100,7 @@
:bordered="false"
v-model:value="CustomerOrSupplier"
@change="ChangeCustomerOrSupplier"
:disabled="Fndisabled()"
>
<a-select-option value="isCustomer">
<span class="iconfont icon-yonghu1"></span>
@ -154,6 +160,7 @@
v-model:checked="model.shortName"
placeholder="请输入"
style="flex: 1; margin-right: 5px"
:disabled="Rpermissions()"
/>
<div class="JiaoYan">
<span class="text" v-if="!IsAvailableDisabled"></span>
@ -185,6 +192,7 @@
:value="model.description"
v-model:checked="model.description"
placeholder="请输入"
:disabled="Rpermissions()"
/>
</template>
</BasicForm>
@ -236,20 +244,30 @@
</div>
</div>
<div>
<Tabs3 :client-id="clientId" :saleId="saleId" :sourceId="sourceId" />
<Tabs3
:client-id="clientId"
:saleId="saleId"
:sourceId="sourceId"
:disabled="Fndisabled()"
/>
</div>
</a-tab-pane>
<!-- 自动费用模板 -->
<a-tab-pane key="3" tab="自动费用模板">
<FeeCustTemplate :client-id="clientId" :customer-name="customerName" class="RUnit" />
<FeeCustTemplate
:client-id="clientId"
:customer-name="customerName"
:disabled="Fndisabled()"
class="RUnit"
/>
</a-tab-pane>
<!-- 联系人信息 -->
<a-tab-pane key="4" tab="联系人信息">
<Menus2 :client-id="clientId" class="RUnit" />
<Menus2 :client-id="clientId" :disabled="Fndisabled()" class="RUnit" />
</a-tab-pane>
<!-- 收发货人信息维护 -->
<a-tab-pane key="5" tab="收发货人信息维护">
<Menus3 :client-id="clientId" class="RUnit" />
<Menus3 :client-id="clientId" :disabled="Fndisabled()" class="RUnit" />
</a-tab-pane>
<!-- 合同管理 -->
<!-- <a-tab-pane key="7" tab="固定费用">
@ -257,15 +275,27 @@
</a-tab-pane> -->
<!-- 客户参数表格 -->
<a-tab-pane key="8" tab="客户参数">
<CustomerParams :client-id="clientId" :customer-name="customerName"></CustomerParams>
<ReleaseType :client-id="clientId" :customer-name="customerName"></ReleaseType>
<CustomerParams
:client-id="clientId"
:customer-name="customerName"
:disabled="Fndisabled()"
></CustomerParams>
<ReleaseType
:client-id="clientId"
:customer-name="customerName"
:disabled="Fndisabled()"
></ReleaseType>
</a-tab-pane>
<a-tab-pane key="9" tab="干系人">
<ClientStakeholder :client-id="clientId" />
<ClientStakeholder :client-id="clientId" :disabled="Fndisabled()" />
</a-tab-pane>
</a-tabs>
</div>
<ClientAccountDateModal @register="CADModal" @success="handleSuccess" />
<ClientAccountDateModal
@register="CADModal"
@success="handleSuccess"
:disabled="Fndisabled()"
/>
</div>
<ApproveBtns
agreeText="审核通过"
@ -346,6 +376,7 @@
//
import { getDictOption } from '/@/utils/dictUtil'
import { useAppStore } from '/@/store/modules/app'
import { checkPermissions } from '/@/hooks/Permissions/index'
const appStore = useAppStore()
// import Menus5 from './menu5/index.vue'
// import { tr } from 'node_modules/element-plus/es/locale'
@ -596,6 +627,7 @@
validateFields,
updateSchema,
appendSchemaByField,
setProps,
},
] = useForm({
labelWidth: 100,
@ -681,6 +713,7 @@
setFieldsValue: setFieldsValue1,
validate: validate1,
updateSchema: updateSchema1,
setProps: setProps1,
},
] = useForm({
labelWidth: 140,
@ -758,8 +791,29 @@
isUpdate: true,
})
}
function Rpermissions() {
let RData = false
if (auditStatusText.value == '审核通过') {
if (!checkPermissions('op:infoclient:approvalEdit')) {
RData = false
} else {
RData = true
}
}
return RData
}
function Fndisabled() {
return rowId.value ? false : true
let RData = true
if (auditStatusText.value == '审核通过') {
if (!checkPermissions('op:infoclient:approvalEdit')) {
RData = false
} else {
RData = true
}
} else {
RData = rowId.value ? false : true
}
return RData
}
function delboxLine() {
let ApiData: any = {
@ -848,6 +902,11 @@
activeKey.value = '1'
reload()
}
if (auditStatusText.value == '审核通过') {
setProps({ disabled: checkPermissions('op:infoclient:approvalEdit') })
setProps1({ disabled: checkPermissions('op:infoclient:approvalEdit') })
}
ApiGetUsage({ ids: [unref(rowId)] }).then((res) => {
if (res.data[0].isUsed) {
updateSchema({
@ -857,7 +916,7 @@
} else {
updateSchema({
field: 'shortName',
dynamicDisabled: false,
dynamicDisabled: false || Rpermissions(),
})
}
})

@ -19,6 +19,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>
取消
</a-button>
@ -28,6 +29,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>
仅保存
</a-button>
@ -36,6 +38,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>
保存并关闭
</a-button>
@ -55,6 +58,12 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
// loading
const loading = ref(false)
@ -64,6 +73,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const [registerModal, { setModalProps, closeModal, updateFormField }] = useModalInner(

@ -3,7 +3,7 @@
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleEdit">
<template #tableTitle>
<span class="title">客户参数列表</span>
<a-button type="link" @click="handleCreate">
<a-button type="link" @click="handleCreate" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
新建
</a-button>
@ -21,6 +21,7 @@
icon: 'ant-design:delete-outlined',
tooltip: '删除',
color: 'error',
disabled: props.disabled,
popConfirm: {
title: '是否要删除此条数据?',
okText: '是',
@ -33,7 +34,7 @@
</template>
</template>
</BasicTable>
<Modal @register="registerModal" @success="handleSuccess" />
<Modal @register="registerModal" @success="handleSuccess" :disabled="props.disabled" />
</div>
</template>
<script lang="ts" setup>
@ -56,10 +57,14 @@
customerName: {
type: String,
},
disabled: {
type: Boolean,
default: false,
},
})
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({
title: '',
maxHeight: 250,
maxHeight: 200,
api: async (p) => {
const res: API.DataResult = await GetClientParamList(p)
return new Promise((resolve) => {

@ -17,6 +17,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>取消</a-button
>
<a-button
@ -25,6 +26,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>仅保存</a-button
>
<a-button
@ -32,6 +34,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>保存并关闭</a-button
>
</template>
@ -46,6 +49,12 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
@ -54,6 +63,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {

@ -3,7 +3,7 @@
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<span class="title">客户联系人列表</span>
<a-button type="link" @click="handleCreate">
<a-button type="link" @click="handleCreate" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
@ -21,6 +21,7 @@
icon: 'ant-design:delete-outlined',
tooltip: '删除',
color: 'error',
disabled: props.disabled,
popConfirm: {
title: '是否要删除此条数据?',
okText: '是',
@ -33,7 +34,11 @@
</template>
</template>
</BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<TenantAuditStepModal
@register="registerModal"
@success="handleSuccess"
:disabled="props.disabled"
/>
</div>
</template>
<script lang="ts" setup>
@ -47,6 +52,10 @@
const { notification } = useMessage()
const props = defineProps({
clientId: { type: String },
disabled: {
type: Boolean,
default: false,
},
})
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getDataSource, getPaginationRef }] = useTable({

@ -17,6 +17,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>取消</a-button
>
<a-button
@ -25,6 +26,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>仅保存</a-button
>
<a-button
@ -32,6 +34,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>保存并关闭</a-button
>
</template>
@ -46,6 +49,12 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
@ -54,6 +63,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {

@ -3,7 +3,7 @@
<BasicTable class="ds-table-detail" @register="registerTable" @row-dbClick="handleAudit">
<template #tableTitle>
<span class="title">客户收发货人列表</span>
<a-button type="link" @click="handleCreate">
<a-button type="link" @click="handleCreate" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
@ -21,6 +21,7 @@
icon: 'ant-design:delete-outlined',
tooltip: '删除',
color: 'error',
disabled: props.disabled,
popConfirm: {
title: '是否要删除此条数据?',
okText: '是',
@ -33,7 +34,11 @@
</template>
</template>
</BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<TenantAuditStepModal
@register="registerModal"
@success="handleSuccess"
:disabled="props.disabled"
/>
</div>
</template>
<script lang="ts" setup>
@ -47,6 +52,10 @@
const { notification } = useMessage()
const props = defineProps({
clientId: { type: String },
disabled: {
type: Boolean,
default: false,
},
})
const [registerModal, { openModal }] = useModal()
const [registerTable, { reload, getForm, getPaginationRef }] = useTable({

@ -17,6 +17,7 @@
ghost
style="margin-right: 0.8rem"
@click="closeModal"
:disabled="props.disabled"
>取消</a-button
>
<a-button
@ -25,6 +26,7 @@
pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem"
@click="handleSave(false)"
:disabled="props.disabled"
>仅保存</a-button
>
<a-button
@ -32,6 +34,7 @@
type="primary"
:loading="loading"
@click="handleSave(true)"
:disabled="props.disabled"
>保存并关闭</a-button
>
</template>
@ -46,6 +49,12 @@
import { useMessage } from '/@/hooks/web/useMessage'
// Emits
const emit = defineEmits(['success', 'register'])
const props = defineProps({
disabled: {
type: Boolean,
default: false,
},
})
const isUpdate = ref(true)
const loading = ref(false)
const rowId = ref('')
@ -54,6 +63,7 @@
labelWidth: 100,
schemas: formSchema,
showActionButtonGroup: false,
disabled: props.disabled,
})
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
resetFields()

@ -3,7 +3,7 @@
<BasicTable class="ds-table-detail" @register="registerTable" :maxHeight="350">
<template #tableTitle>
<span class="title">账期信息</span>
<a-button type="link" @click="handleCreate" :disabled="Fndisabled()">
<a-button type="link" @click="handleCreate" :disabled="props.disabled">
<span class="iconfont icon-new_document"></span>
添加
</a-button>
@ -13,12 +13,12 @@
cancel-text="否"
@confirm="handleDel"
>
<a-button type="link" :disabled="Fndisabled()">
<a-button type="link" :disabled="props.disabled">
<span class="iconfont icon-shanchu21"></span>
删除
</a-button>
</a-popconfirm>
<a-button type="link" @click="FnAppendix" :disabled="Fndisabled()">
<a-button type="link" @click="FnAppendix" :disabled="props.disabled">
<span class="iconfont icon-fujian1"></span>
合同附件
</a-button>
@ -38,7 +38,11 @@
</template>
</template>
</BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" />
<TenantAuditStepModal
@register="registerModal"
@success="handleSuccess"
:disabled="props.disabled"
/>
<a-modal v-model:visible="visible" title="合同附件" @ok="handleOk">
<div style="width: 400px">
<DsFile ref="dsFile" fileType="infoclient" :id="props.clientId" />
@ -60,6 +64,10 @@
clientId: { type: String },
saleId: { type: String },
sourceId: { type: String },
disabled: {
type: Boolean,
default: false,
},
})
const [registerModal, { openModal }] = useModal()
const visible = ref(false)
@ -160,9 +168,9 @@
}
})
}
function Fndisabled() {
return props.clientId ? false : true
}
// function Fndisabled() {
// return props.clientId ? false : true
// }
function handleAudit(record: Recordable) {
openModal(true, {
record,

@ -638,7 +638,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -920,7 +920,7 @@ export const viewSearchFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -1321,7 +1321,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -1507,7 +1507,7 @@ export const detailsFormSchema: FormSchema[] = [
return {
api: () => {
return new Promise((resolve) => {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
resolve(res)
})
})

@ -218,7 +218,7 @@
}
const SetData = async (data) => {
list.value.splice(0)
const customerTypeList: any = await getDictOption('djy_cust_prop')
const customerTypeList: any = await getDictOption('infoclient-ArrclientTag')
const unitList: any = await feeUnitDict2()
const unitList2: any = await getDictOption('fee_unit')
console.log(unitList, unitList2)
@ -329,7 +329,7 @@
data: 'customerTypeText',
type: 'dropdown',
source: async (query, process) => {
const results = await getDictOption('djy_cust_prop')
const results = await getDictOption('infoclient-ArrclientTag')
const dict = results.map((item) => {
return item.value + '-' + item.name
})
@ -546,7 +546,7 @@
//
if (changes[0][1] === 'customerTypeText') {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
const item = res.filter((item) => {
return changes[0][3].includes(item.name)
})

@ -251,7 +251,7 @@ export const formSchema: FormSchema[] = [
return {
api: () => {
return new Promise((resolve) => {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
resolve(res)
})
})
@ -285,7 +285,7 @@ export const formSchema: FormSchema[] = [
return {
api: () => {
return new Promise((resolve) => {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
resolve(res)
})
})

@ -156,7 +156,7 @@
data: 'customerTypeText',
type: 'dropdown',
source: async (query, process) => {
const results = await getDictOption('djy_cust_prop')
const results = await getDictOption('infoclient-ArrclientTag')
console.log(results)
const dict = results.map((item) => {
return item.value + '-' + item.name
@ -462,7 +462,7 @@
}
//
if (changes[0][1] === 'customerTypeText') {
getDictOption('djy_cust_prop').then((res) => {
getDictOption('infoclient-ArrclientTag').then((res) => {
const item = res.filter((item) => {
return changes[0][3].includes(item.name)
})

@ -127,13 +127,14 @@ export const searchFormSchema: FormSchema[] = [
//列表
export const columns: BasicColumn[] = [
{ title: '对账编号', dataIndex: 'billNo', align: 'left' },
{ title: '对账客户', dataIndex: 'customerName', align: 'left' },
{ title: '对账单名称', dataIndex: 'billName', align: 'left' },
{ title: '对账编号', dataIndex: 'billNo', align: 'left', width: 150 },
{ title: '对账客户', dataIndex: 'customerName', align: 'left', width: 150 },
{ title: '对账单名称', dataIndex: 'billName', align: 'left', width: 150 },
{
title: '收付类型',
dataIndex: 'billType',
align: 'left',
width: 100,
// customRender: ({ text }) => {
// let RData = '-'
// billTypeData.forEach((e) => {
@ -148,11 +149,13 @@ export const columns: BasicColumn[] = [
title: '账单状态',
dataIndex: 'isLocking',
align: 'left',
width: 100,
},
{
title: '是否不含税',
dataIndex: 'isNoTax',
align: 'left',
width: 100,
// customRender: ({ text }) => {
// let RData = '-'
// if (text == 'true') {
@ -163,15 +166,15 @@ export const columns: BasicColumn[] = [
// return RData
// },
},
{ title: '应收RMB', dataIndex: 'rmbdr', align: 'left' },
{ title: '未收RMB', dataIndex: 'balrmbdr', align: 'left' },
{ title: '应收USD', dataIndex: 'usddr', align: 'left' },
{ title: '未收USD', dataIndex: 'balusddr', align: 'left' },
{ title: '应付RMB', dataIndex: 'rmbcr', align: 'left' },
{ title: '未付RMB', dataIndex: 'balrmbcr', align: 'left' },
{ title: '应付USD', dataIndex: 'usdcr', align: 'left' },
{ title: '未付USD', dataIndex: 'balusdcr', align: 'left' },
{ title: '对账时间', dataIndex: 'createTime', align: 'left' },
{ title: '对账人', dataIndex: 'createByName', align: 'left' },
{ title: '备注', dataIndex: 'note', align: 'left' },
{ title: '应收RMB', dataIndex: 'rmbdr', align: 'left', width: 100 },
{ title: '未收RMB', dataIndex: 'balrmbdr', align: 'left', width: 100 },
{ title: '应收USD', dataIndex: 'usddr', align: 'left', width: 100 },
{ title: '未收USD', dataIndex: 'balusddr', align: 'left', width: 100 },
{ title: '应付RMB', dataIndex: 'rmbcr', align: 'left', width: 100 },
{ title: '未付RMB', dataIndex: 'balrmbcr', align: 'left', width: 100 },
{ title: '应付USD', dataIndex: 'usdcr', align: 'left', width: 100 },
{ title: '未付USD', dataIndex: 'balusdcr', align: 'left', width: 100 },
{ title: '对账时间', dataIndex: 'createTime', align: 'left', width: 150 },
{ title: '对账人', dataIndex: 'createByName', align: 'left', width: 100 },
{ title: '备注', dataIndex: 'note', align: 'left', width: 150 },
]

@ -351,7 +351,7 @@ export const columnsR: BasicColumn[] = [
// { title: '对账Id', dataIndex: 'checkId', align: 'left' },
// { title: '业务Id', dataIndex: 'businessId', align: 'left' },
// { title: '费用记录Id', dataIndex: 'feeRecordId', align: 'left' },
{ title: '对账金额', dataIndex: 'checkBillAmount', align: 'left' },
// { title: '对账金额', dataIndex: 'checkBillAmount', align: 'left' },
// { title: '费用Id', dataIndex: 'feeId', align: 'left' },
{ title: '费用名称', dataIndex: 'feeName', align: 'left' },
{ title: '费用对象', dataIndex: 'customerName', align: 'left' },
@ -371,6 +371,8 @@ export const columnsR: BasicColumn[] = [
{ title: '排序', dataIndex: 'orderNo', align: 'left' },
{ title: '不含税金额', dataIndex: 'noTaxAmount', align: 'left' },
{ title: '未结算金额', dataIndex: 'balAmount', align: 'left' },
// { title: '对帐编号', dataIndex: 'debitNo', align: 'left' },
// { title: '是否对帐', dataIndex: 'isDebit', align: 'left' },
]
//附件列表
export const columnsFile: BasicColumn[] = [

@ -516,6 +516,7 @@
BatchDelCheckBillDetail(Apidata).then((res) => {
if (res.succeeded) {
notification.success({ message: '删除成功', duration: 3 })
setTableDataR([])
init()
}
})
@ -613,7 +614,7 @@
}
const RefInfo = ref()
//
async function AddDetailL(e) {
async function AddDetailL(e, RData) {
if (!id.value) {
setFieldsValue({
...getFieldsValue(),
@ -623,9 +624,18 @@
await Save()
}
e.id = id.value
AddCheckBillDetail(e).then((res) => {
AddCheckBillDetail(e).then(async (res) => {
if (res.succeeded) {
notification.success({ message: '添加成功', duration: 3 })
let RApiData: any = {
ids: [],
customerId: e.customerId,
customerName: e.customerName,
}
RData.forEach((item) => {
RApiData.ids.push(item.id)
})
await AddDetailR(RApiData)
init()
RefInfo.value.handleSubmit()
RefInfo.value.closeModal()
@ -634,6 +644,8 @@
}
//
async function AddDetailR(e) {
console.log(e)
if (!id.value) {
setFieldsValue({
...getFieldsValue(),
@ -645,10 +657,11 @@
console.log(
getSelectRowsL(),
getSelectRowsL().length,
getSelectRowsL()[getSelectRowsL().length - 1].checkId,
// getSelectRowsL()[getSelectRowsL().length - 1].checkId,
)
e.id = getSelectRowsL()[getSelectRowsL().length - 1].checkId
// e.id = getSelectRowsL()[getSelectRowsL().length - 1].checkId
e.id = id.value
AddCheckBillFeeRecords(e).then((res) => {
if (res.succeeded) {
notification.success({ message: '添加成功', duration: 3 })

@ -88,6 +88,8 @@
GetBusinessQueryList,
GetFeeRecordQueryList,
} from '/@/views/operation/CustomerReconciliation/api.js'
import { useMessage } from '/@/hooks/web/useMessage'
const { notification } = useMessage()
const spinningR = ref(false)
const spinningL = ref(false)
const emit = defineEmits(['AddDetailL', 'AddDetailR'])
@ -109,6 +111,11 @@
const res: API.DataResult = await GetBusinessQueryList(beforeFetch(getFieldsValue()))
if (res.succeeded) {
dataSourceL.value = res.data
clearSelectedRowKeysL()
if (res.data.length) {
setSelectedRowKeysL([res.data[0].id])
selectionChange({ rows: [{ id: res.data[0].id }] })
}
setTableData([...res.data])
setTableDataRT([])
// setTableDataRB([])
@ -119,12 +126,20 @@
//
const [
registerTableL,
{ getPaginationRef, setTableData, getSelectRows: getSelectRowsL, getDataSource },
{
getPaginationRef,
setTableData,
getSelectRows: getSelectRowsL,
getSelectRowKeys: getSelectRowKeysL,
setSelectedRowKeys: setSelectedRowKeysL,
clearSelectedRowKeys: clearSelectedRowKeysL,
},
] = useTable({
maxHeight: 360,
title: '',
dataSource: dataSourceL.value,
rowSelection: { type: 'checkbox' },
rowSelection: { type: 'radio' },
rowKey: 'id',
columns: columnsL,
pagination: true,
striped: true,
@ -137,7 +152,7 @@
function selectionChange(e) {
if (e.rows.length) {
spinningR.value = true
let ApiData = {
let ApiData: any = {
queryCondition: `[{"FieldName":"businessId","FieldValue":"${
e.rows[e.rows.length - 1].id
}","ConditionalType":1}]`,
@ -145,6 +160,17 @@
sortConditions: [],
},
}
RQueryArr.forEach((item) => {
if (getFieldsValue()[item]) {
ApiData.queryCondition = JSON.parse(ApiData.queryCondition)
ApiData.queryCondition.push({
FieldName: item,
FieldValue: getFieldsValue()[item],
ConditionalType: 1,
})
ApiData.queryCondition = JSON.stringify(ApiData.queryCondition)
}
})
GetFeeRecordQueryList(ApiData).then((res) => {
let Arr: any = [
{ currency: 'RMB', cr: 0, dr: 0 },
@ -249,6 +275,11 @@
const res: API.DataResult = await GetBusinessQueryList(beforeFetch(getFieldsValue()))
if (res.succeeded) {
dataSourceL.value = res.data
clearSelectedRowKeysL()
if (res.data.length) {
setSelectedRowKeysL([res.data[0].id])
selectionChange({ rows: [{ id: res.data[0].id }] })
}
setTableData([...res.data])
setTableDataRT([])
// setTableDataRB([])
@ -258,20 +289,22 @@
}, 100)
})
//
const [registerTableRT, { setTableData: setTableDataRT, getSelectRows: getSelectRowsR }] =
useTable({
maxHeight: 360,
title: '',
rowSelection: { type: 'checkbox' },
columns: columnsRT,
pagination: true,
striped: true,
showTableSetting: false,
bordered: true,
showIndexColumn: true,
const [
registerTableRT,
{ setTableData: setTableDataRT, getSelectRows: getSelectRowsR, getDataSource },
] = useTable({
maxHeight: 360,
title: '',
rowSelection: { type: 'checkbox' },
columns: columnsRT,
pagination: true,
striped: true,
showTableSetting: false,
bordered: true,
showIndexColumn: true,
immediate: false,
})
immediate: false,
})
// //
// const [registerTableRB, { setTableData: setTableDataRB }] = useTable({
// title: '',
@ -298,12 +331,16 @@
customerId: '',
customerName: '',
}
getSelectRowsL().forEach((item) => {
Apidata.ids.push(item.id)
getSelectRowKeysL().forEach((item) => {
Apidata.ids.push(item)
dataSourceL.value.forEach((e) => {
if (e.id == item) {
Apidata.customerId = e.customerId
Apidata.customerName = e.customerName
}
})
})
Apidata.customerId = getSelectRowsL()[0].customerId
Apidata.customerName = getSelectRowsL()[0].customerName
emit('AddDetailL', Apidata)
emit('AddDetailL', Apidata, getDataSource())
}
//
function addDetailR() {
@ -313,11 +350,16 @@
customerName: '',
}
getSelectRowsR().forEach((item) => {
console.log(item)
Apidata.ids.push(item.id)
})
Apidata.customerId = getSelectRowsL()[0].customerId
Apidata.customerName = getSelectRowsL()[0].customerName
getSelectRowKeysL().forEach((item) => {
dataSourceL.value.forEach((e) => {
if (e.id == item) {
Apidata.customerId = e.customerId
Apidata.customerName = e.customerName
}
})
})
emit('AddDetailR', Apidata)
}
defineExpose({

@ -26,6 +26,7 @@ export const RQueryArr = [
'isDebit',
'feeName',
'currency',
'feeType',
// 'createTime',
// // 'billType',
// 'isDebit',
@ -122,7 +123,7 @@ export const schemas: FormSchema[] = [
},
{
field: 'billType',
field: 'feeType',
component: 'Select',
componentProps: {
options: billTypeData,
@ -130,6 +131,15 @@ export const schemas: FormSchema[] = [
label: '收付类型',
colProps: { span: 4 },
},
// {
// field: 'billType',
// component: 'Select',
// componentProps: {
// options: billTypeData,
// },
// label: '收付类型',
// colProps: { span: 4 },
// },
{
field: 'isDebit',
component: 'Select',

@ -93,19 +93,6 @@
<span>{{ record.billNo }}</span>
</div>
</template>
<template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
tooltip: '编辑',
onClick: () => {
GoDetailed(true, record)
},
},
]"
/>
</template>
<template v-if="column.dataIndex == 'isLocking'">
<span v-if="record.isLocking">
<i class="iconfont icon-locksuo"></i>
@ -126,6 +113,29 @@
<a-tag color="success" v-else></a-tag>
</template>
</template>
<template v-slot:tableAction="{ record }">
<a-tooltip placement="top" :mouseEnterDelay="0.5">
<template #title>
<span>编辑</span>
</template>
<a-button type="link" @click="GoDetailed(true, record)">
<span class="iconfont icon-icon_519"></span>
</a-button>
</a-tooltip>
</template>
<!-- <template v-if="column.key === 'action'">
<TableAction
:actions="[
{
icon: 'clarity:note-edit-line',
tooltip: '编辑',
onClick: () => {
GoDetailed(true, record)
},
},
]"
/>
</template> -->
</BasicTable>
<!-- 合计 -->
<div class="static-box">
@ -183,46 +193,10 @@
beforeFetch: (p) => {
return formatParams(p)
},
// beforeFetch: () => {
// var currentPageInfo: any = getPaginationRef()
// var data = getForm().getFieldsValue()
// const postParam: API.PageRequest = {
// queryCondition: '',
// pageCondition: {
// pageIndex: currentPageInfo.current,
// pageSize: currentPageInfo.pageSize,
// sortConditions: [],
// },
// }
// postParam.pageCondition.sortConditions.push({
// sortField: 'createTime',
// listSortDirection: 1,
// })
// let condition: API.ConditionItem[] = []
// if (!!data.billNo) {
// condition.push({
// FieldName: 'billNo',
// FieldValue: data.billNo,
// ConditionalType: 1,
// })
// }
// if (!!data.customerName) {
// condition.push({
// FieldName: 'customerName',
// FieldValue: data.customerName,
// ConditionalType: 1,
// })
// }
// postParam.queryCondition = JSON.stringify(condition)
// return postParam
// },
columns,
formConfig: {
labelWidth: 120,
//
schemas: searchFormSchema,
// ()
useAdvancedSearch: true,
},
isTreeTable: false,
pagination: true,
@ -236,12 +210,11 @@
},
canResize: true,
resizeHeightOffset: 90,
autoHeight: tbHeight,
immediate: true,
tableComponent: 'vxe',
autoHeight: tbHeight,
id: '1',
actionColumn: {
width: 80,
width: 60,
title: '操作',
dataIndex: 'action',
fixed: 'right',

@ -302,7 +302,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: () => {
return {
api: GetSupplierListByCode,
params: { code: 'isContract' },
params: { code: 'contract' },
labelField: 'pinYinCode',
valueField: 'id',
showName: 'shortName',
@ -327,7 +327,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: () => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
valueField: 'forwarderId',
showName: 'description',

@ -4,7 +4,7 @@
* @Date: 2024-04-29 11:54:04
-->
<template>
<div class="sea-export-detail" :class="{ 'ds-view-box': source != 'edit' }">
<div ref="seaExportDetail" class="sea-export-detail" :class="{ 'ds-view-box': source != 'edit' }">
<a-tabs
size="small"
class="main-tab mt10"
@ -227,7 +227,9 @@
import { useMultipleTabStore } from '/@/store/modules/multipleTab'
import { Divider } from 'ant-design-vue'
import { useWatermark } from '/@/hooks/web/warterMark'
//
const seaExportDetail = ref(null)
const go = useGo()
// loading
const loading = ref(false)
@ -483,11 +485,8 @@
bookingDetails.value = res.data
//
inPageLoading.value = false
//
// if (res.data.formSetList && res.data.formSetList.length) {
// const formSetContent = JSON.parse(res.data.formSetList[0].content)
// RefbasicInfo.value.updateSchema()
// }
const { setWatermark, clear } = useWatermark(0.2, seaExportDetail.value)
// setWatermark('')
})
.catch(() => {
loading.value = false

@ -276,7 +276,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isTruck' },
params: { code: 'truck' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -488,7 +488,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -703,7 +703,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',

@ -437,7 +437,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -80,7 +80,7 @@
}
} else {
//
const arr = await getDictOption('djy_cust_prop')
const arr = await getDictOption('infoclient-ArrclientTag')
if (data.companyType) {
const res = arr.filter(item => {
return item.label == data.companyType

@ -214,7 +214,7 @@ export const basicInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel, formActionType }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isContract' },
params: { code: 'contract' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'shortName',
@ -327,7 +327,7 @@ export const basicInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -2748,7 +2748,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isTruck' },
params: { code: 'truck' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -2782,7 +2782,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isAgent' },
params: { code: 'agent' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -2811,7 +2811,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -2846,7 +2846,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isShipagency' },
params: { code: 'shipagency' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -2881,7 +2881,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isCustom' },
params: { code: 'custom' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -2994,7 +2994,7 @@ export const otherInfoFormSchema: FormSchema[] = [
// 客户类别下拉框数据
const customTypeDict = ref([])
const personList = ref([])
getDictOption('djy_cust_prop').then((data) => {
getDictOption('infoclient-ArrclientTag').then((data) => {
customTypeDict.value = data
})
// 关系人表单

@ -614,7 +614,7 @@ export const yardSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
placeholder: '场站',
showName: 'shortName',

@ -443,7 +443,7 @@ export const formSchema: FormSchema[] = [
{
field: 'IsSettlementOrg',
component: 'Switch',
label: '是否结算机构',
label: '是否分公司',
required: false,
componentProps: {
options: [

@ -374,7 +374,7 @@ export const formSchema1: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isAgent' },
params: { code: 'agent' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

Loading…
Cancel
Save