10.30禅道

feature-JimuReport-1106-yjl
lijingjia 4 weeks ago
parent d7a214a0aa
commit 94370b4237

@ -207,13 +207,14 @@
loading.value = false
res.data.forEach((item) => {
if (item.createTime) {
item.createTime = new Date(item.createTime)
const createTime = new Date(item.createTime)
item.createTime =
item.createTime.getFullYear() +
createTime.getFullYear() +
'-' +
(item.createTime.getMonth() + 1) +
(createTime.getMonth() + 1) +
'-' +
item.createTime.getDate()
createTime.getDate() +
' ' + item.createTime.split(' ')[1]
}
item['type'] = item?.filePath?.split('.')[1]
})

@ -557,13 +557,14 @@
const ctnInfo = RefgoodsTable.value.list
//
if (ctnInfo.length) {
ctnInfo.forEach(row => {
for (let key in row) {
if (!row[key] && row[key] !== 0) {
delete row[key]
for (let i = 0; i < ctnInfo.length; i++) {
if (!ctnInfo[i].ctn) return createMessage.warning(`请选择集装箱数据第${i + 1}行箱型字段!`)
for (let key in ctnInfo[i]) {
if (!ctnInfo[i][key] && ctnInfo[i][key] !== 0) {
delete ctnInfo[i][key]
}
}
})
}
}
// post
const postData = {

@ -1099,7 +1099,7 @@
id: editRemarkVal.value ? editRemarkVal.value.id : 0,
pId: props.id,
remark: v,
remarkType: '1'
remarkType: '3'
})
.then((res) => {
if (res.succeeded) {

Loading…
Cancel
Save