Commit d8e046a3 authored by lanbaoming's avatar lanbaoming
parents e9443b56 3ddf9bc0
...@@ -389,6 +389,18 @@ export function downloadLadingCopy(params) { ...@@ -389,6 +389,18 @@ export function downloadLadingCopy(params) {
}); });
} }
// 下载提单copy
export function cdAwbFile(params) {
return request({
url: "/ecw/box-preload-goods/cdAwbFile",
method: "get",
timeout: 3*60*1000,
params,
});
}
// 更新异常订单状态 // 更新异常订单状态
export function updateAbnormalOrder(data) { export function updateAbnormalOrder(data) {
return request({ return request({
......
...@@ -384,6 +384,13 @@ export default { ...@@ -384,6 +384,13 @@ export default {
hasPermi: "shipment:air:download:downloadAgentListFiles" hasPermi: "shipment:air:download:downloadAgentListFiles"
}, },
{ title: "soncap", serviceName: "downloadSoncapFiles", type: "url", hasPermi: "shipment:air:download:downloadSoncapFiles" }, { title: "soncap", serviceName: "downloadSoncapFiles", type: "url", hasPermi: "shipment:air:download:downloadSoncapFiles" },
{
title: this.$t("AWB文件"),
serviceName: "cdAwbFile",
type: "url",
hasPermi: "shipment:air:download:cdAwbFile"
},
{ {
title: this.$t("提单Copy"), title: this.$t("提单Copy"),
serviceName: "downloadLadingCopy", serviceName: "downloadLadingCopy",
......
<template> <template>
<div> <div>
<el-form ref="cDocForm" :model="cDocObj" label-width="100px"> <el-form ref="cDocForm" :model="cDocObj" label-width="100px">
<!--
<el-form-item :label="$t('出单方式')"> <el-form-item :label="$t('出单方式')">
{{method.find(item=>item.value == cDocObj.cdOutBillType).label}} {{method.find(item=>item.value == cDocObj.cdOutBillType).label}}
</el-form-item> </el-form-item>
...@@ -19,7 +20,7 @@ ...@@ -19,7 +20,7 @@
<el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="cDocObj.cdSendTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker> <el-date-picker type="datetime" :placeholder="$t('请选择日期')" v-model="cDocObj.cdSendTime" value-format="yyyy-MM-dd HH:mm:ss"></el-date-picker>
</el-form-item> </el-form-item>
</template> </template> -->
<el-form-item label="agent list"> <el-form-item label="agent list">
<el-radio-group v-model="cDocObj.cdAgentlistType"> <el-radio-group v-model="cDocObj.cdAgentlistType">
...@@ -33,6 +34,14 @@ ...@@ -33,6 +34,14 @@
<FileUpload :limit="1" :isShowTip=false v-model="cDocObj.cdAgentlistFile" :fileType="fileType" /> <FileUpload :limit="1" :isShowTip=false v-model="cDocObj.cdAgentlistFile" :fileType="fileType" />
</el-form-item> </el-form-item>
<el-form-item >
<ol style="margin-left:-35px;margin-top:-10px;margin-bottom: -10px;">AWB文件上传</ol>
<FileUpload :limit="1" :isShowTip=false v-model="cDocObj.cdAwbFile" :fileType="fileType" ></FileUpload>
</el-form-item>
<!-- <el-form-item label="soncap"> <!-- <el-form-item label="soncap">
<el-radio-group v-model="cDocObj.cdSoncapType"> <el-radio-group v-model="cDocObj.cdSoncapType">
<el-radio v-for="item in status" :key="item.value" :label="item.value">{{item.label}}</el-radio> <el-radio v-for="item in status" :key="item.value" :label="item.value">{{item.label}}</el-radio>
...@@ -64,7 +73,8 @@ import { ...@@ -64,7 +73,8 @@ import {
serviceMsg, serviceMsg,
} from "../utils"; } from "../utils";
import FileUpload from "@/components/FileUpload"; import FileUpload from "@/components/FileUpload";
import { uploadFile } from "@/api/infra/file";
import {getToken} from "@/utils/auth";
/** /**
* 清关文件 * 清关文件
*/ */
...@@ -82,6 +92,17 @@ export default { ...@@ -82,6 +92,17 @@ export default {
status: constantDict.isFile, status: constantDict.isFile,
// 文件类型 // 文件类型
fileType: fileTypes, fileType: fileTypes,
// 用户导入参数
fileList: [],
cdAwbFile: null,
upload: {
open: false, // 是否显示弹出层
title: "", // 弹出层标题
isUploading: false, // 是否禁用上传
url: process.env.VUE_APP_BASE_API + "/admin-api/infra/file/upload", // 请求地址
headers: { Authorization: "Bearer " + getToken() }, // 设置上传的请求头部
data: {} // 上传的额外数据,用于文件名
},
}; };
}, },
created() { created() {
...@@ -126,6 +147,20 @@ export default { ...@@ -126,6 +147,20 @@ export default {
cancel(type) { cancel(type) {
this.$emit("closeDialog", type); this.$emit("closeDialog", type);
}, },
/** 文件上传成功处理 */
handleFileSuccess(response, file, fileList) {
// 清理
this.upload.open = false;
this.upload.isUploading = false;
this.$refs.upload.clearFiles();
// 提示成功,并刷新
this.$modal.msgSuccess("上传成功");
console.log(fileList);
console.log(file);
this.$set(this.form, 'this.$refs.cdAwbFile', response.data);
console.log(cdAwbFile);
},
}, },
}; };
</script> </script>
......
...@@ -93,6 +93,46 @@ ...@@ -93,6 +93,46 @@
clearable clearable
></dict-selector> ></dict-selector>
</el-form-item> </el-form-item>
<el-form-item :label="$t('到港时间')" prop="daogangTime">
<el-date-picker
v-model="daogangTime"
type="datetimerange"
range-separator="-"
:start-placeholder="$t('开始日期')"
:end-placeholder="$t('结束日期')"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item :label="$t('卸柜/到仓时间')" prop="ulWarehouseTime">
<el-date-picker
v-model="ulWarehouseTime"
type="datetimerange"
range-separator="-"
:start-placeholder="$t('开始日期')"
:end-placeholder="$t('结束日期')"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item :label="$t('清关时间')" prop="qingguanTime">
<el-date-picker
v-model="qingguanTime"
type="datetimerange"
range-separator="-"
:start-placeholder="$t('开始日期')"
:end-placeholder="$t('结束日期')"
value-format="yyyy-MM-dd HH:mm:ss"
>
</el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
...@@ -322,6 +362,9 @@ export default { ...@@ -322,6 +362,9 @@ export default {
return { return {
loading: false, // 是否加载中 loading: false, // 是否加载中
dateFilter: [], // 筛选时间 dateFilter: [], // 筛选时间
qingguanTime:[],
daogangTime:[],
ulWarehouseTime:[],
list: [], list: [],
total: 0, total: 0,
queryParams: { queryParams: {
...@@ -425,6 +468,11 @@ export default { ...@@ -425,6 +468,11 @@ export default {
destWarehouseIdList: this.queryParams.destWarehouseIdList.join(","), destWarehouseIdList: this.queryParams.destWarehouseIdList.join(","),
}; };
this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false); this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false);
this.addBeginAndEndTime(params, this.ulWarehouseTime, "UlWarehouseTime", false);
this.addBeginAndEndTime(params, this.daogangTime, "DaogangTime", false);
this.addBeginAndEndTime(params, this.qingguanTime, "QingguanTime", false);
// 执行查询 // 执行查询
boxSettlementPage(params) boxSettlementPage(params)
.then((response) => { .then((response) => {
...@@ -500,6 +548,12 @@ export default { ...@@ -500,6 +548,12 @@ export default {
this.exporting = true; this.exporting = true;
let params = { ...this.queryParams }; let params = { ...this.queryParams };
this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false); this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false);
this.addBeginAndEndTime(params, this.ulWarehouseTime, "UlWarehouseTime", false);
this.addBeginAndEndTime(params, this.daogangTime, "DaogangTime", false);
this.addBeginAndEndTime(params, this.qingguanTime, "QingguanTime", false);
exportSettlementExcel(params) exportSettlementExcel(params)
.then((res) => { .then((res) => {
//this.$download.excel(res, 'shipment-summary.xls'); //this.$download.excel(res, 'shipment-summary.xls');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment