sunzehua 2 weeks ago
commit 71a9af34d9

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -3,11 +3,11 @@
<BasicTable class="ds-table-detail" @register="registerTable"> <BasicTable class="ds-table-detail" @register="registerTable">
<template #tableTitle> <template #tableTitle>
<span class="title">干系人列表</span> <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> <span class="iconfont icon-new_document"></span>
添加 添加
</a-button> </a-button>
<a-button type="link" @click="handleDel"> <a-button type="link" @click="handleDel" :disabled="props.disabled">
<span class="iconfont icon-shanchu2"></span> <span class="iconfont icon-shanchu2"></span>
删除 删除
</a-button> </a-button>
@ -26,7 +26,11 @@
</template> </template>
</template> </template>
</BasicTable> </BasicTable>
<TenantAuditStepModal @register="registerModal" @success="handleSuccess" /> <TenantAuditStepModal
@register="registerModal"
@success="handleSuccess"
:disabled="props.disabled"
/>
<a-modal <a-modal
:visible="visible" :visible="visible"
title="审批备注" title="审批备注"
@ -50,6 +54,10 @@
import TenantAuditStepModal from './TenantAuditStepModal.vue' import TenantAuditStepModal from './TenantAuditStepModal.vue'
const props = defineProps({ const props = defineProps({
clientId: { type: String }, clientId: { type: String },
disabled: {
type: Boolean,
default: false,
},
}) })
const visible = ref(false) const visible = ref(false)
const remark = ref('') 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" /> <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> <template #footer>
<a-button <a-button
@ -20,6 +25,7 @@
ghost ghost
style="margin-right: 0.8rem" style="margin-right: 0.8rem"
@click="closeModal" @click="closeModal"
:disabled="props.disabled"
> >
取消 取消
</a-button> </a-button>
@ -29,6 +35,7 @@
pre-icon="ant-design:check-outlined" pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem" style="margin-right: 0.8rem"
@click="handleSave(false)" @click="handleSave(false)"
:disabled="props.disabled"
> >
仅保存 仅保存
</a-button> </a-button>
@ -37,6 +44,7 @@
type="primary" type="primary"
:loading="loading" :loading="loading"
@click="handleSave(true)" @click="handleSave(true)"
:disabled="props.disabled"
> >
保存并关闭 保存并关闭
</a-button> </a-button>
@ -61,6 +69,10 @@
const props = defineProps({ const props = defineProps({
customerName: { type: String }, customerName: { type: String },
customerId: { type: String }, customerId: { type: String },
disabled: {
type: Boolean,
default: false,
},
}) })
// Emits // Emits
const emit = defineEmits(['success', 'register']) const emit = defineEmits(['success', 'register'])
@ -88,6 +100,7 @@
labelWidth: 100, labelWidth: 100,
schemas: formSchema, schemas: formSchema,
showActionButtonGroup: false, showActionButtonGroup: false,
disabled: props.disabled,
}) })
const unitArr = ref<any>([]) const unitArr = ref<any>([])
const BulkInfoArr = ref<any>([]) const BulkInfoArr = ref<any>([])

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -93,19 +93,6 @@
<span>{{ record.billNo }}</span> <span>{{ record.billNo }}</span>
</div> </div>
</template> </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'"> <template v-if="column.dataIndex == 'isLocking'">
<span v-if="record.isLocking"> <span v-if="record.isLocking">
<i class="iconfont icon-locksuo"></i> <i class="iconfont icon-locksuo"></i>
@ -126,6 +113,29 @@
<a-tag color="success" v-else></a-tag> <a-tag color="success" v-else></a-tag>
</template> </template>
</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> </BasicTable>
<!-- 合计 --> <!-- 合计 -->
<div class="static-box"> <div class="static-box">
@ -183,46 +193,10 @@
beforeFetch: (p) => { beforeFetch: (p) => {
return formatParams(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, columns,
formConfig: { formConfig: {
labelWidth: 120, labelWidth: 120,
//
schemas: searchFormSchema, schemas: searchFormSchema,
// ()
useAdvancedSearch: true,
}, },
isTreeTable: false, isTreeTable: false,
pagination: true, pagination: true,
@ -236,12 +210,11 @@
}, },
canResize: true, canResize: true,
resizeHeightOffset: 90, resizeHeightOffset: 90,
autoHeight: tbHeight,
immediate: true, immediate: true,
tableComponent: 'vxe', tableComponent: 'vxe',
autoHeight: tbHeight,
id: '1',
actionColumn: { actionColumn: {
width: 80, width: 60,
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
fixed: 'right', fixed: 'right',

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save