|
|
|
@ -575,87 +575,87 @@
|
|
|
|
|
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,
|
|
|
|
|
// 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,
|
|
|
|
|
// data: 'pickupDate',
|
|
|
|
|
// type: 'date',
|
|
|
|
|
// dateFormat: 'YYYY-MM-DD',
|
|
|
|
|
// 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: '放箱单号',
|
|
|
|
|
// width: 120,
|
|
|
|
|
// data: 'ctnReleaseNo',
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
title: '提箱日期',
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'pickupDate',
|
|
|
|
|
type: 'date',
|
|
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '当前状态',
|
|
|
|
|
width: 120,
|
|
|
|
@ -723,8 +723,8 @@
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
// 下拉框数据,可以同步或者异步返回(异步需要process返回)
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data
|
|
|
|
|
if (!PortDict.value.length) PortDict.value = res
|
|
|
|
|
const res = (await GetClientPortSelectList({ queryKey: query }))?.data
|
|
|
|
|
PortDict.value = res
|
|
|
|
|
const dict = res.map((res) => {
|
|
|
|
|
return res.portName
|
|
|
|
|
})
|
|
|
|
@ -738,8 +738,8 @@
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
// 下拉框数据,可以同步或者异步返回(异步需要process返回)
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = PortDict.value.length ? PortDict.value : (await GetClientPortSelectList())?.data
|
|
|
|
|
if (!PortDict.value.length) PortDict.value = res
|
|
|
|
|
const res = (await GetClientPortSelectList({ queryKey: query }))?.data
|
|
|
|
|
PortDict.value = res
|
|
|
|
|
const dict = res.map((res) => {
|
|
|
|
|
return res.portName
|
|
|
|
|
})
|
|
|
|
@ -764,7 +764,7 @@
|
|
|
|
|
// },
|
|
|
|
|
]
|
|
|
|
|
const settings = {
|
|
|
|
|
height: '163',
|
|
|
|
|
height: '260',
|
|
|
|
|
autoWrapRow: true,
|
|
|
|
|
autoWrapCol: true,
|
|
|
|
|
// 每行的高度
|
|
|
|
|