提单管理

feature-JimuReport-1106-yjl
sunzehua 1 month ago
parent 364e0df6fd
commit 7abb78127f

@ -170,3 +170,11 @@ export function CommonExcelExport(data) {
}
export function DownloadOpFile(params) {
return request({
url: '/mainApi/OpFile/DownloadOpFileInfo',
responseType: 'blob',
method: 'get',
params
})
}

@ -146,16 +146,20 @@
</BasicTable>
</div>
<div style="width: 38%">
<div class="title-bold">附件</div>
<div class="title-bold" style="display: flex">
<span>附件</span>
<DsFile @handleSuccess="fileSuccess" ref="dsFile" :showFileList="false" :id="bookid"
:show="false" height="300">
<i style="margin-left: 15px;color: #257afa;cursor: pointer;" @click="addFile"
class="iconfont icon-fujian"></i>
</DsFile>
</div>
<a-table size="small" :scroll="{ x: 200 }" :pagination="false" rowKey="id"
:columns="columnsFile" :data-source="fileData" bordered>
<template v-slot:bodyCell="{ column, record }">
<template v-if="column.dataIndex == 'fileName'">
<a @click="download(record)">{{ record.fileName }}</a>
</template>
<template v-if="column.dataIndex == 'caozuo'">
<a @click="lookFile(record)"></a>
</template>
</template>
</a-table>
</div>
@ -198,11 +202,11 @@ import { ref, reactive, onMounted, defineExpose, computed } from 'vue'
import {
GetList, GetOpFileList, BLCheckIn, ShipCertCheckInCancel, ShipCertCheckIn, BLModifyStatus, BLModify,
BLCheckInCancel, BLCheckOut, BLCheckOutCancel, BLCheckChangeEndorse, BLCheckChangeEndorseCancel, GetLogs,
BLRejectReleaseNotice, GetRelateInfo, GetOverdueFeeList, CommonExcelExport
BLRejectReleaseNotice, GetRelateInfo, GetOverdueFeeList, CommonExcelExport,DownloadOpFile
} from './api.js'
import { BasicTable, useTable } from '/@/components/Table'
import { formatParams } from '/@/hooks/web/common'
import DsFile from '/@/components/File/index.vue'
import { columns, searchFormSchema, detailColumns, feeColumns, feeColumnsSum } from './columns'
import { useMessage } from '/@/hooks/web/useMessage'
const { createMessage } = useMessage()
@ -243,7 +247,7 @@ const [registerTable, { reload, setLoading, getSelectRows, getForm, getColumns }
}
}
data.queryCondition = JSON.stringify(queryDataObj)
data.OtherQueryCondition = JSON.stringify(obj)
data.OtherQueryCondition = obj
return data
},
columns,
@ -315,11 +319,6 @@ const columnsFile = [
width: 100,
dataIndex: 'createUserName',
},
{
title: '操作',
width: 50,
dataIndex: 'caozuo',
},
]
function exportExcel() {
const list = [] as any
@ -357,7 +356,17 @@ function exportExcel() {
function radioChange(val) {
reload()
}
const dsFile = ref('')
function addFile() {
if (!bookid.value) {
createMessage.warning('请选择一条数据')
return false
}
dsFile.value.init()
}
function fileSuccess() {
getfileList()
}
const loading = ref(false)
const fileData = ref([]) as any
const queryTabCode = ref('BLQuery')
@ -375,6 +384,7 @@ function download(item) {
link.click()
})
}
const bookid = ref('')
const checkInfo = ref({}) as any
function handleClick(row) {
loading.value = true
@ -396,10 +406,11 @@ function handleClick(row) {
}
loading.value = false
})
// getfileList(row.id)
bookid.value = row.bookingId
getfileList()
}
const getfileList = (id) => {
GetOpFileList({ id: id }).then(res => {
const getfileList = () => {
GetOpFileList({ id: bookid.value }).then(res => {
res.data.forEach(item => {
if (item.createTime) {
item.createTime = new Date(item.createTime)
@ -720,7 +731,7 @@ function cancelCheckIn(type) {
.title-bold {
font-weight: bold;
font-size: 12px;
margin-bottom: 10px
margin-bottom: 10px;
}
</style>
<style lang="less"></style>

Loading…
Cancel
Save