箱管 调整

szh-new
张同海 3 months ago
parent 215c80bd89
commit fc6da8109c

@ -243,10 +243,6 @@
}) })
submit() submit()
GetListDetail() GetListDetail()
// ViewlallCheck.value = false
// ViewlsomeCheck.value = false
// handleReset()
// GetViewListDetail('[]')
} }
} else { } else {
rowId.value = '' rowId.value = ''
@ -624,8 +620,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -644,7 +640,18 @@
}, },
] ]
const settings = { const settings = {
height: '163', height: 260,
// height: () => {
// // 28
// let RData = 260
// if (list.value.length) {
// RData = 28 + list.value.length * 26
// }
// console.log(RData)
// // list.value
// return RData
// },
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //
@ -741,7 +748,7 @@
if (ApiData.ids.length) { if (ApiData.ids.length) {
ApiDelDetail(ApiData).then((res) => { ApiDelDetail(ApiData).then((res) => {
if (res.succeeded) { if (res.succeeded) {
GetListDetail() refresh()
notification.success({ message: res.message, duration: 3 }) notification.success({ message: res.message, duration: 3 })
} }
}) })

@ -630,8 +630,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -655,7 +655,7 @@
// }, // },
] ]
const settings = { const settings = {
height: '163', height: '260',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //

@ -662,8 +662,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -677,8 +677,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -697,7 +697,7 @@
}, },
] ]
const settings = { const settings = {
height: '163', height: '260',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //
@ -959,8 +959,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -974,8 +974,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })

@ -674,8 +674,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -689,8 +689,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -704,8 +704,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -738,7 +738,7 @@
// }, // },
] ]
const settings = { const settings = {
height: '163', height: '260',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //

@ -115,12 +115,12 @@ export const columns: BasicColumn[] = [
return text return text
}, },
}, },
{ // {
title: '费用状态??', // title: '费用状态??',
dataIndex: 'accdate', // dataIndex: 'accdate',
sorter: true, // sorter: true,
width: 200, // width: 200,
}, // },
{ {
title: '备注', title: '备注',
dataIndex: 'remark', dataIndex: 'remark',

@ -689,8 +689,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -704,8 +704,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -719,8 +719,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -739,7 +739,7 @@
}, },
] ]
const settings = { const settings = {
height: '163', height: '260',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //
@ -1021,8 +1021,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -1036,8 +1036,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -1051,8 +1051,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -1071,7 +1071,7 @@
}, },
] ]
const settings2 = { const settings2 = {
height: '163', height: '260',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //

@ -575,87 +575,87 @@
process(dict) process(dict)
}, },
}, },
{
title: '箱来源',
width: 120,
data: 'ctnSource',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = ctnsourceDict.value.length
? ctnsourceDict.value
: await getDictOption('CM_CtnSource')
if (!ctnsourceDict.value.length) ctnsourceDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
readOnly: true,
},
{
title: '是否上线',
width: 120,
data: 'isOnline',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = isOnlineDict.value.length
? isOnlineDict.value
: await getDictOption('CM_IsOnlineEnum')
if (!isOnlineDict.value.length) isOnlineDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
},
{
title: '箱业务状态',
width: 120,
data: 'ctnBizState',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = ctnBizStateDict.value.length
? ctnBizStateDict.value
: await getDictOption('CM_CtnBizState')
if (!ctnBizStateDict.value.length) ctnBizStateDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
},
{
title: '箱状态',
width: 120,
data: 'ctnState',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = ctnStateDict.value.length
? ctnStateDict.value
: await getDictOption('CM_CtnState')
if (!ctnStateDict.value.length) ctnStateDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
},
// { // {
// title: '', // title: '',
// width: 120, // width: 120,
// data: 'ctnReleaseNo', // data: 'ctnSource',
// type: 'dropdown',
// // (process)
// source: async (query, process) => {
// const res = ctnsourceDict.value.length
// ? ctnsourceDict.value
// : await getDictOption('CM_CtnSource')
// if (!ctnsourceDict.value.length) ctnsourceDict.value = res
// const dict = res.map((res) => {
// return res.label
// })
// process(dict)
// },
// readOnly: true,
// },
// {
// title: '线',
// width: 120,
// data: 'isOnline',
// type: 'dropdown',
// // (process)
// source: async (query, process) => {
// const res = isOnlineDict.value.length
// ? isOnlineDict.value
// : await getDictOption('CM_IsOnlineEnum')
// if (!isOnlineDict.value.length) isOnlineDict.value = res
// const dict = res.map((res) => {
// return res.label
// })
// process(dict)
// },
// },
// {
// title: '',
// width: 120,
// data: 'ctnBizState',
// type: 'dropdown',
// // (process)
// source: async (query, process) => {
// const res = ctnBizStateDict.value.length
// ? ctnBizStateDict.value
// : await getDictOption('CM_CtnBizState')
// if (!ctnBizStateDict.value.length) ctnBizStateDict.value = res
// const dict = res.map((res) => {
// return res.label
// })
// process(dict)
// },
// }, // },
// { // {
// title: '', // title: '',
// width: 120, // width: 120,
// data: 'pickupDate', // data: 'ctnState',
// type: 'date', // type: 'dropdown',
// dateFormat: 'YYYY-MM-DD', // // (process)
// source: async (query, process) => {
// const res = ctnStateDict.value.length
// ? ctnStateDict.value
// : await getDictOption('CM_CtnState')
// if (!ctnStateDict.value.length) ctnStateDict.value = res
// const dict = res.map((res) => {
// return res.label
// })
// process(dict)
// },
// },
// {
// title: '',
// width: 120,
// data: 'ctnReleaseNo',
// }, // },
{
title: '提箱日期',
width: 120,
data: 'pickupDate',
type: 'date',
dateFormat: 'YYYY-MM-DD',
},
{ {
title: '当前状态', title: '当前状态',
width: 120, width: 120,
@ -723,8 +723,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -738,8 +738,8 @@
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data const res = (await GetClientPortSelectList({ queryKey: query }))?.data
if (!PortDict.value.length) PortDict.value = res PortDict.value = res
const dict = res.map((res) => { const dict = res.map((res) => {
return res.portName return res.portName
}) })
@ -764,7 +764,7 @@
// }, // },
] ]
const settings = { const settings = {
height: '163', height: '260',
autoWrapRow: true, autoWrapRow: true,
autoWrapCol: true, autoWrapCol: true,
// //

Loading…
Cancel
Save