Commit fd420d94 authored by liuzeheng's avatar liuzeheng
parents 57d30788 6d4a4433
...@@ -117,6 +117,8 @@ export function getLogList(params) { ...@@ -117,6 +117,8 @@ export function getLogList(params) {
} }
// 获得费用登记列表 // 获得费用登记列表
//先登记费用入表 ecw_box_cost 同时进应付款表,ecw_payable,
//用户在应收款列表中点击收款,生成付款单,入表 ecw_payment
export function getCostList(params) { export function getCostList(params) {
return request({ return request({
url: "/ecw/box-cost/list", url: "/ecw/box-cost/list",
...@@ -124,8 +126,8 @@ export function getCostList(params) { ...@@ -124,8 +126,8 @@ export function getCostList(params) {
params, params,
}); });
} }
// 付款单主表 SELECT * from ecw_payment // 收款单表 SELECT * from ecw_payment
// 付款单费用明细 SELECT * from ecw_payable // 应付款表 SELECT * from ecw_payable
// 根据明细获取主表ID // 根据明细获取主表ID
export function getPaymentId(id) { export function getPaymentId(id) {
return request({ return request({
...@@ -360,7 +362,7 @@ export function downloadPreloadGoodsList(params) { ...@@ -360,7 +362,7 @@ export function downloadPreloadGoodsList(params) {
}); });
} }
// 下载应收汇总 // 下载应收汇总 lanbm 2024-05-24 添加注释
export function downloadReceivableList(params) { export function downloadReceivableList(params) {
return request({ return request({
url: "/ecw/box-preload-goods/downloadReceivableList", url: "/ecw/box-preload-goods/downloadReceivableList",
......
...@@ -145,6 +145,7 @@ export function billCreate(data) { ...@@ -145,6 +145,7 @@ export function billCreate(data) {
/** /**
* 获得提单补料pdf * 获得提单补料pdf
* 空运提单补料 lanbm 2024-05-28 添加注释
*/ */
export function getBoxLadingBillPdf(params) { export function getBoxLadingBillPdf(params) {
return request({ return request({
......
...@@ -140,6 +140,14 @@ export function getReceivableItem(query) { ...@@ -140,6 +140,14 @@ export function getReceivableItem(query) {
}) })
} }
//lanbm 2024-06-05 add
export function getReceivableItem2(id) {
return request({
url: '/ecw/receipt-item/get?id=' + id,
method: 'get'
})
}
// 根据收款单ID获得收款账户细列表 // 根据收款单ID获得收款账户细列表
export function getReceiptAccountList(query) { export function getReceiptAccountList(query) {
return request({ return request({
...@@ -462,6 +470,15 @@ export function financeReceiptWriteOff(query) { ...@@ -462,6 +470,15 @@ export function financeReceiptWriteOff(query) {
}) })
} }
// lanbm 2024-05-29 add 批量收款单核销
export function financeReceiptWriteOff2(query) {
return request({
url: '/ecw/receipt/financeReceiptWriteOff2',
method: 'POST',
data: query
})
}
// 收款单银行明细核销 // 收款单银行明细核销
export function financeReceiptItemWriteOff(query) { export function financeReceiptItemWriteOff(query) {
return request({ return request({
...@@ -471,6 +488,15 @@ export function financeReceiptItemWriteOff(query) { ...@@ -471,6 +488,15 @@ export function financeReceiptItemWriteOff(query) {
}) })
} }
//批量 银行实收明细提交审核 lanbm 2024-05-30 add
export function financeReceiptItemWriteOff2(query) {
return request({
url: '/ecw/receipt-item/financeReceiptItemWriteOff2',
method: 'POST',
data: query
})
}
// 收款单银行明细核销反审核 // 收款单银行明细核销反审核
export function financeReceiptItemWriteOffNo(query) { export function financeReceiptItemWriteOffNo(query) {
...@@ -490,6 +516,16 @@ export function financeApproveNo(query) { ...@@ -490,6 +516,16 @@ export function financeApproveNo(query) {
}) })
} }
//lanbm 2024-05-29 添加的批量反审核功能
//参数query 为List
export function financeApproveNo2(query) {
return request({
url: '/ecw/receipt/financeApproveNo2',
method: 'POST',
data: query
})
}
// 收款单反核销 // 收款单反核销
export function financeReceiptWriteOffNo(query) { export function financeReceiptWriteOffNo(query) {
return request({ return request({
...@@ -499,7 +535,17 @@ export function financeReceiptWriteOffNo(query) { ...@@ -499,7 +535,17 @@ export function financeReceiptWriteOffNo(query) {
}) })
} }
// 收款单取消审核 //批量 收款单反核销 lanbm 2024-05-29 add
//query 为List
export function financeReceiptWriteOffNo2(query) {
return request({
url: '/ecw/receipt/financeReceiptWriteOffNo2',
method: 'POST',
data: query
})
}
//收款单取消审核
export function cancelFinanceReceiptApproval(query) { export function cancelFinanceReceiptApproval(query) {
return request({ return request({
url: '/ecw/receipt/cancelFinanceReceiptApproval', url: '/ecw/receipt/cancelFinanceReceiptApproval',
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<el-form <el-form
:ref="'form' + index" :ref="'form' + index"
:model="auditForms[index]" :model="auditForms[index]"
:rules="auditRule" :rules="auditRule2"
label-width="100px" label-width="100px"
> >
<el-form-item <el-form-item
...@@ -295,6 +295,22 @@ export default { ...@@ -295,6 +295,22 @@ export default {
BoxSplitDetail, BoxSplitDetail,
}, },
computed: { computed: {
auditRule2() {
if (this.isMust == true) {
var obj = {
comment: [
{
required: true,
message: this.$t("审批建议不能为空"),
trigger: "blur",
},
],
};
return obj;
} else {
return {};
}
},
matterNum() { matterNum() {
return this.$store.state.user.matterNum; return this.$store.state.user.matterNum;
}, },
...@@ -663,30 +679,27 @@ export default { ...@@ -663,30 +679,27 @@ export default {
// 流程实例 // 流程实例
id: undefined, // 流程实例的编号 id: undefined, // 流程实例的编号
processInstance: {}, processInstance: {},
// 流程表单详情 // 流程表单详情
detailForm: { detailForm: {
fields: [], fields: [],
}, },
isMust: true,
// BPMN 数据 // BPMN 数据
bpmnXML: null, bpmnXML: null,
bpmnControlForm: { bpmnControlForm: {
prefix: "activiti", prefix: "activiti",
}, },
activityList: [], activityList: [],
// 审批记录 // 审批记录
tasksLoad: true, tasksLoad: true,
tasks: [], tasks: [],
// 审批表单 // 审批表单
runningTasks: [], runningTasks: [],
auditForms: [], auditForms: [],
auditRule: { auditRule: {
comment: [ comment: [
{ {
required: true, required: this.isMust,
message: this.$t("审批建议不能为空"), message: this.$t("审批建议不能为空"),
trigger: "blur", trigger: "blur",
}, },
...@@ -743,6 +756,26 @@ export default { ...@@ -743,6 +756,26 @@ export default {
this.processInstance = response.data; this.processInstance = response.data;
console.log(this.processInstance); console.log(this.processInstance);
//银行实收明细核销不限制必填 lanbm 2024-05-24 add
if (
this.processInstance.processDefinition.formCustomViewPath ==
undefined ||
this.processInstance.processDefinition.formCustomViewPath == null ||
this.processInstance.processDefinition.formCustomViewPath == ""
) {
this.isMust = true;
} else {
if (
this.processInstance.processDefinition.formCustomViewPath.trim() ==
"finance_receipt_item_write_off"
) {
this.isMust = false;
} else {
this.isMust = true;
}
}
//end 银行实收明细核销不限制必填 lanbm 2024-05-24 add
// 设置表单信息 // 设置表单信息
if (this.processInstance.processDefinition.formType === 10) { if (this.processInstance.processDefinition.formType === 10) {
this.detailForm = { this.detailForm = {
......
...@@ -628,6 +628,7 @@ export default { ...@@ -628,6 +628,7 @@ export default {
); );
break; break;
case "downloadReceivableList": case "downloadReceivableList":
//下载空运应收款汇总单 lanbm 2024-05-25 添加注释
this.exportExcel( this.exportExcel(
downloadAirReceivableList, downloadAirReceivableList,
{shipmentId: row.id} {shipmentId: row.id}
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="downloadPreloadGoodsList" v-hasPermi="['shipment:box:download:downloadPreloadGoodsList']">{{$t('预装单')}}</el-dropdown-item> <el-dropdown-item command="downloadPreloadGoodsList" v-hasPermi="['shipment:box:download:downloadPreloadGoodsList']">{{$t('预装单')}}</el-dropdown-item>
<el-dropdown-item command="downloadLoadGoodsList" v-hasPermi="['shipment:box:download:downloadLoadGoodsList']">{{$t('已装单')}}</el-dropdown-item> <el-dropdown-item command="downloadLoadGoodsList" v-hasPermi="['shipment:box:download:downloadLoadGoodsList']">{{$t('已装单')}}</el-dropdown-item>
<!--应收汇总表,Manifest样式修改 lanbm 2024-05-24 -->
<el-dropdown-item command="downloadReceivableList" v-hasPermi="['shipment:box:download:downloadReceivableList']">{{$t('应收汇总表')}}</el-dropdown-item> <el-dropdown-item command="downloadReceivableList" v-hasPermi="['shipment:box:download:downloadReceivableList']">{{$t('应收汇总表')}}</el-dropdown-item>
<el-dropdown-item command="downloadAgentListFiles" v-hasPermi="['shipment:box:download:downloadAgentListFiles']">agent list</el-dropdown-item> <el-dropdown-item command="downloadAgentListFiles" v-hasPermi="['shipment:box:download:downloadAgentListFiles']">agent list</el-dropdown-item>
<el-dropdown-item command="downloadSoncapFiles" v-hasPermi="['shipment:box:download:downloadSoncapFiles']">soncap</el-dropdown-item> <el-dropdown-item command="downloadSoncapFiles" v-hasPermi="['shipment:box:download:downloadSoncapFiles']">soncap</el-dropdown-item>
......
...@@ -123,7 +123,9 @@ import { ...@@ -123,7 +123,9 @@ import {
getCapacity, getCapacity,
downloadFile, downloadFile,
} from "../shippingSea/utils"; } from "../shippingSea/utils";
//制作提单 lanbm 2024-05-24 添加注释
import makeLadingBill from "./makeLadingBill.vue"; import makeLadingBill from "./makeLadingBill.vue";
//预览提单
import previewBill from "./previewBill.vue"; import previewBill from "./previewBill.vue";
export default { export default {
......
<template> <template>
<el-row class="shipping-makeLadingBill"> <el-row class="shipping-makeLadingBill">
<el-row> <el-row>
<div class="title-orderNo">{{$t('订单号')}}{{orderNo}}</div> <div class="title-orderNo">{{ $t("订单号") }}{{ orderNo }}</div>
</el-row> </el-row>
<el-row class="ueditor-row"> <el-row class="ueditor-row">
<vue-ueditor-wrap v-model="billContent" :config="editorConfig" editor-id="billUeditor" /> <vue-ueditor-wrap
v-model="billContent"
:config="editorConfig"
editor-id="billUeditor"
/>
</el-row> </el-row>
<!-- 审核流程 --> <!-- 审核流程 -->
<el-row class="process-area"> <el-row class="process-area">
<div class="process"> <div class="process">
<div>{{$t('审批流程')}}</div> <div>{{ $t("审批流程") }}</div>
<work-flow xmlkey="bill_lading" v-model="selectedUsers"></work-flow> <work-flow xmlkey="bill_lading" v-model="selectedUsers"></work-flow>
</div> </div>
<div v-if="currRow.status === 1"> <div v-if="currRow.status === 1">
<el-button type="primary" @click="jumpReviewDetail">{{$t('审核中')}}</el-button> <el-button type="primary" @click="jumpReviewDetail">{{
<el-button plain type="primary" @click="canclAudit">{{$t('取消审核')}}</el-button> $t("审核中")
<el-button plain type="primary" @click="showLoaingTemplate">{{$t('提单预览')}}</el-button> }}</el-button>
<el-button plain type="primary" @click="canclAudit">{{
$t("取消审核")
}}</el-button>
<el-button plain type="primary" @click="showLoaingTemplate">{{
$t("提单预览")
}}</el-button>
</div> </div>
<div v-if="currRow.status !== 1"> <div v-if="currRow.status !== 1">
<el-button type="primary" @click="createPdf">{{
$t("提交完成")
}}</el-button>
<!--lanbm 2024-05-24 修改为提交完成,在后台不用审批直接,完成提单的制作
<el-button type="primary" @click="createPdf">{{$t('提交审核')}}</el-button> <el-button type="primary" @click="createPdf">{{$t('提交审核')}}</el-button>
<el-button type="primary" @click="showLoaingTemplate">{{$t('提单预览')}}</el-button> -->
<el-button type="primary" @click="showLoaingTemplate">{{
$t("提单预览")
}}</el-button>
</div> </div>
</el-row> </el-row>
<!-- htm2canvas 容器 --> <!-- htm2canvas 容器 -->
<div style="height:0; overflow: hidden;"> <div style="height: 0; overflow: hidden">
<div id="html2canvas-container" v-html="billContent"></div> <div id="html2canvas-container" v-html="billContent"></div>
</div> </div>
<el-dialog :title="dialogCfg.title" :visible.sync="visible" width="1000px" append-to-body class="shippingSea-dialog"> <el-dialog
<previewBill v-if="visible" :contentHtml="billContent" :currRow="currRow" :type="dialogCfg.type" /> :title="dialogCfg.title"
:visible.sync="visible"
width="1000px"
append-to-body
class="shippingSea-dialog"
>
<previewBill
v-if="visible"
:contentHtml="billContent"
:currRow="currRow"
:type="dialogCfg.type"
/>
</el-dialog> </el-dialog>
</el-row> </el-row>
</template> </template>
...@@ -46,12 +74,12 @@ import { ...@@ -46,12 +74,12 @@ import {
import { serviceMsg, toReviewDetail } from "../shippingSea/utils"; import { serviceMsg, toReviewDetail } from "../shippingSea/utils";
import previewBill from "./previewBill.vue"; import previewBill from "./previewBill.vue";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import html2canvas from 'html2canvas'; import html2canvas from "html2canvas";
import { jsPDF } from "jspdf"; import { jsPDF } from "jspdf";
import {uploadFile} from '@/api/infra/file' import { uploadFile } from "@/api/infra/file";
import FileSaver from 'file-saver' import FileSaver from "file-saver";
import {getOrder, getOrderDetail} from "@/api/ecw/order"; import { getOrder, getOrderDetail } from "@/api/ecw/order";
window.html2canvas = html2canvas window.html2canvas = html2canvas;
export default { export default {
name: "makeLadingBill", name: "makeLadingBill",
components: { components: {
...@@ -177,49 +205,69 @@ export default { ...@@ -177,49 +205,69 @@ export default {
this.visible = true; this.visible = true;
}, },
// 先获取订单信息,pdf用 订单号+唛头命名 // 先获取订单信息,pdf用 订单号+唛头命名
createPdf(){ createPdf() {
// 空运的由接口生成pdf,所以直接提交即可 // 空运的由接口生成pdf,所以直接提交即可
if(this.$route.fullPath.toLowerCase().indexOf('air') > -1){ if (this.$route.fullPath.toLowerCase().indexOf("air") > -1) {
return this.submit() return this.submit();
} }
getOrder(this.currRow.orderId).then(res => { // lanbm 2024-05-24 修改此后台接口
this.afterCreatePdf(res.data) getOrder(this.currRow.orderId).then((res) => {
}) this.afterCreatePdf(res.data);
});
}, },
afterCreatePdf(orderData){ afterCreatePdf(orderData) {
let loading = this.$loading() let loading = this.$loading();
html2canvas(document.querySelector("#html2canvas-container"), {dpi:144, useCORS: true}).then(canvas => { html2canvas(document.querySelector("#html2canvas-container"), {
const doc = new jsPDF('p','pt','a4',true); dpi: 144,
useCORS: true,
})
.then((canvas) => {
const doc = new jsPDF("p", "pt", "a4", true);
const imgWidth = canvas.width const imgWidth = canvas.width;
const imgHeight = canvas.height const imgHeight = canvas.height;
console.log(imgHeight, imgWidth) console.log(imgHeight, imgWidth);
let _w = 595.28; let _w = 595.28;
let _h = 595.28/imgWidth*imgHeight; let _h = (595.28 / imgWidth) * imgHeight;
if(_h>841.89){ if (_h > 841.89) {
_h = 841.89; _h = 841.89;
_w = _h/imgHeight*imgWidth _w = (_h / imgHeight) * imgWidth;
} }
const _left = (595.28-_w)/2; const _left = (595.28 - _w) / 2;
doc.addImage(canvas, 'PNG', _left, 0, _w,_h, '', 'FAST'); doc.addImage(canvas, "PNG", _left, 0, _w, _h, "", "FAST");
/* doc.save("a4.pdf"); /* doc.save("a4.pdf");
return Promise.reject() */ return Promise.reject() */
let form = new FormData() let form = new FormData();
const dst = this.$l(orderData.logisticsInfoDto, 'destTitle') const dst = this.$l(orderData.logisticsInfoDto, "destTitle");
let file = this.selfNo + "-" + this.currRow.tidanNo + ' ' + orderData.marks + '-' + dst + '.pdf' //this.selfNo + '-' + this.currRow.tidanNo + '.pdf' let file =
this.selfNo +
"-" +
this.currRow.tidanNo +
" " +
orderData.marks +
"-" +
dst +
".pdf"; //this.selfNo + '-' + this.currRow.tidanNo + '.pdf'
form.append('file', new File([doc.output('arraybuffer')], file, {type: 'application/pdf'})) form.append(
form.append('path', `admin/shipment/${this.selfNo}/pdf/${file}`) // 最前面不能有/,否则返回的url会有两个/ "file",
new File([doc.output("arraybuffer")], file, {
type: "application/pdf",
})
);
form.append("path", `admin/shipment/${this.selfNo}/pdf/${file}`); // 最前面不能有/,否则返回的url会有两个/
/* let blob = new Blob([doc.output('arraybuffer')], {type: "application/pdf"}) /* let blob = new Blob([doc.output('arraybuffer')], {type: "application/pdf"})
FileSaver.saveAs(blob, file); FileSaver.saveAs(blob, file);
return */ return */
return uploadFile(form) return uploadFile(form);
}).then(res => {
return this.submit(res.data)
}).finally(res => {
loading.close()
}) })
.then((res) => {
return this.submit(res.data);
})
.finally((res) => {
loading.close();
});
}, },
submit(imgUrl) { submit(imgUrl) {
let params = { let params = {
...@@ -228,10 +276,10 @@ export default { ...@@ -228,10 +276,10 @@ export default {
copyUserId: this.selectedUsers, copyUserId: this.selectedUsers,
}; };
// 有pdf地址则提交,没有则指定后端生成 // 有pdf地址则提交,没有则指定后端生成
if(imgUrl){ if (imgUrl) {
params.imgUrl = imgUrl params.imgUrl = imgUrl;
}else{ } else {
params.needBackend = true params.needBackend = true;
} }
if (["makeBill", "resetBill"].includes(this.dialogCfg.type)) { if (["makeBill", "resetBill"].includes(this.dialogCfg.type)) {
createBillService({ ...params, status: 1 }).then((res) => { createBillService({ ...params, status: 1 }).then((res) => {
...@@ -263,7 +311,7 @@ export default { ...@@ -263,7 +311,7 @@ export default {
this.$emit("closeDialog", type); this.$emit("closeDialog", type);
}, },
jumpReviewDetail() { jumpReviewDetail() {
this.close('close') this.close("close");
const { bpmProcessId } = this.currData; const { bpmProcessId } = this.currData;
toReviewDetail.apply(this, [bpmProcessId]); toReviewDetail.apply(this, [bpmProcessId]);
}, },
...@@ -281,14 +329,14 @@ export default { ...@@ -281,14 +329,14 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep #html2canvas-container{ ::v-deep #html2canvas-container {
padding: 3rem; padding: 3rem;
word-break:initial; word-break: initial;
p{ p {
margin: 0; margin: 0;
} }
td{ td {
word-break:initial; word-break: initial;
} }
} }
.shipping-makeLadingBill { .shipping-makeLadingBill {
...@@ -318,10 +366,9 @@ export default { ...@@ -318,10 +366,9 @@ export default {
justify-content: center; justify-content: center;
} }
} }
.shippingSea-dialog{ .shippingSea-dialog {
::v-deep .el-dialog__body{ ::v-deep .el-dialog__body {
padding-top: 0; padding-top: 0;
} }
} }
</style> </style>
...@@ -392,7 +392,7 @@ ...@@ -392,7 +392,7 @@
<el-table-column :label="$t('操作')" align="center"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary" :disabled="scope.row.paymentId!='-1'"
size="small" size="small"
@click="editCostClick(scope.row)" @click="editCostClick(scope.row)"
style="marginright: 10px" style="marginright: 10px"
...@@ -404,7 +404,7 @@ ...@@ -404,7 +404,7 @@
@confirm="deleteCostClick(scope.row)" @confirm="deleteCostClick(scope.row)"
> >
<el-button <el-button
type="danger" type="danger" :disabled="scope.row.paymentId!='-1'"
size="small" size="small"
slot="reference" slot="reference"
v-hasPermi="['ecw:box-cost:delete']" v-hasPermi="['ecw:box-cost:delete']"
......
...@@ -456,7 +456,7 @@ ...@@ -456,7 +456,7 @@
<el-table-column :label="$t('操作')" align="center"> <el-table-column :label="$t('操作')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
type="primary" type="primary" :disabled="scope.row.paymentId!='-1'"
size="small" size="small"
@click="editCostClick(scope.row)" @click="editCostClick(scope.row)"
style="marginright: 10px" style="marginright: 10px"
...@@ -468,7 +468,7 @@ ...@@ -468,7 +468,7 @@
@confirm="deleteCostClick(scope.row)" @confirm="deleteCostClick(scope.row)"
> >
<el-button <el-button
type="danger" type="danger" :disabled="scope.row.paymentId!='-1'"
size="small" size="small"
slot="reference" slot="reference"
v-hasPermi="['ecw:box-cost:delete']" v-hasPermi="['ecw:box-cost:delete']"
......
This diff is collapsed.
...@@ -368,8 +368,8 @@ ...@@ -368,8 +368,8 @@
:label="$t('客户经理ID')" :label="$t('客户经理ID')"
align="center" v-show="false" align="center" v-show="false"
prop="customerService" prop="customerService"
>--> >
</el-table-column> </el-table-column>-->
<el-table-column :label="$t('出货渠道')"> <el-table-column :label="$t('出货渠道')">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
{{ channel(row.transportType) }} {{ channel(row.transportType) }}
......
This diff is collapsed.
This diff is collapsed.
...@@ -343,6 +343,9 @@ import { getSupplierPage } from "@/api/ecw/supplier"; ...@@ -343,6 +343,9 @@ import { getSupplierPage } from "@/api/ecw/supplier";
import { getCurrencyPage } from "@/api/ecw/currency"; import { getCurrencyPage } from "@/api/ecw/currency";
import { getWarehouseList } from "@/api/ecw/warehouse"; import { getWarehouseList } from "@/api/ecw/warehouse";
/*
应付款
*/
export default { export default {
name: "EcwFinancialPayable", name: "EcwFinancialPayable",
components: {}, components: {},
......
...@@ -115,11 +115,11 @@ ...@@ -115,11 +115,11 @@
label="" label=""
label-width="0" label-width="0"
style="margin-bottom: 0" style="margin-bottom: 0"
prop="latestPayAt" prop="sjfkdate"
> >
<el-date-picker <el-date-picker
clearable clearable
v-model="form.latestPayAt" v-model="form.sjfkdate"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" format="yyyy-MM-dd"
type="date" type="date"
...@@ -299,11 +299,48 @@ ...@@ -299,11 +299,48 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('备注')">
<!--lanbm 2024-05-30 添加备注信息和附件上传功能-->
<el-form-item abel="" label-width="0" prop="editreason">
<el-input
v-model="form.editreason" disabled
></el-input>
</el-form-item>
</el-descriptions-item>
<el-descriptions-item :label="$t('附件')">
<el-form-item label="" label-width="0" prop="filelist">
<el-upload
v-if="!isView"
class="upload-demo"
:action="uploadFileUrl"
:headers="headers"
:on-success="handleUploadSuccess"
:before-upload="handleBeforeUpload"
:on-error="handleUploadError"
:before-remove="beforeRemove"
:file-list="form.filelist"
multiple
>
<!--filelist 是保存在数据库中的文件路径-->
<el-button size="small" type="primary">{{
$t("上传附件")
}}</el-button>
</el-upload>
<div v-else>
<div v-for="(v, i) in form.filelist" :key="i">
<el-link :href="v.url" type="primary" target="_blank">{{
v.name
}}</el-link>
</div>
</div>
</el-form-item>
</el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-form> </el-form>
</el-card> </el-card>
<div slot="footer" style="margin: 20px 0"> <div slot="footer" style="margin: 20px 0">
<!-- <el-button type="primary" @click="submitDraft">{{ $t('保 存') }}</el-button> -->
<el-button <el-button
type="primary" type="primary"
@click="$store.dispatch('tagsView/delCurrentView')" @click="$store.dispatch('tagsView/delCurrentView')"
...@@ -339,6 +376,8 @@ export default { ...@@ -339,6 +376,8 @@ export default {
}, },
data() { data() {
return { return {
//lanbm 2024-05-31 add
isView: true,
id: 0, id: 0,
payableId: 0, payableId: 0,
orderData: [], orderData: [],
......
...@@ -133,7 +133,8 @@ ...@@ -133,7 +133,8 @@
</el-card> </el-card>
<el-card class="card"> <el-card class="card">
<div slot="header" class="card-title">{{ $t("收款信息") }}</div> <!--收款信息 账单信息 lanbm 2024-05-29 update -->
<div slot="header" class="card-title">{{ $t("账单信息") }}</div>
<el-table :data="form.receiptAccountList" border> <el-table :data="form.receiptAccountList" border>
<el-table-column :label="$t('应收币种')" align="center"> <el-table-column :label="$t('应收币种')" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -327,6 +328,7 @@ ...@@ -327,6 +328,7 @@
v-hasPermi="['ecw:payment:detail:detail']" v-hasPermi="['ecw:payment:detail:detail']"
>{{ $t("详情") }}</el-button >{{ $t("详情") }}</el-button
> >
<!--核销 提交 lanbm 2024-05-29 -->
<el-button <el-button
v-if="scope.row.status == 0" v-if="scope.row.status == 0"
type="text" type="text"
...@@ -334,7 +336,7 @@ ...@@ -334,7 +336,7 @@
$router.push(`bankDetail?id=` + id + `&bankId=` + scope.row.id) $router.push(`bankDetail?id=` + id + `&bankId=` + scope.row.id)
" "
v-hasPermi="['ecw:payment:detail:writeOff']" v-hasPermi="['ecw:payment:detail:writeOff']"
>{{ $t("核销") }}</el-button >{{ $t("提交") }}</el-button
> >
<el-button <el-button
v-if="scope.row.status == 1" v-if="scope.row.status == 1"
...@@ -812,7 +814,8 @@ import NP from "number-precision"; ...@@ -812,7 +814,8 @@ import NP from "number-precision";
export default { export default {
data() { data() {
return { return {
uploadFileUrl: process.env.VUE_APP_BASE_API + "/app-api/file/upload", // 上传的图片服务器地址 uploadFileUrl: process.env.VUE_APP_BASE_API + "/app-api/file/upload",
//上传的图片服务器地址
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
}, },
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
<pdf-viewer id="pdfViewer" ref="viewer" v-if="pdfData" :url="pdfData" style="display:block; margin: 0 auto; max-height: 80vh; overflow:auto;" /> <pdf-viewer id="pdfViewer" ref="viewer" v-if="pdfData" :url="pdfData" style="display:block; margin: 0 auto; max-height: 80vh; overflow:auto;" />
<!-- <div v-if="detail" class="billcontent" v-html="detail.billContent"></div> --> <!-- <div v-if="detail" class="billcontent" v-html="detail.billContent"></div> -->
<p class="subs" style="text-align:center"> <p class="subs" style="text-align:center">
<el-button type="primary" @click="download" :disabled="!detail">{{$t('下载')}}</el-button> <!--lanbm 2024-06-04 添加审批状态控制逻辑-->
<el-button type="primary" @click="print" :disabled="!detail">{{$t('打印')}}</el-button> <el-button type="primary" @click="download" :disabled="detail.bpmStatus!='2'">{{$t('下载')}}</el-button>
<el-button type="primary" @click="print" :disabled="detail.bpmStatus!='2'">{{$t('打印')}}</el-button>
</p> </p>
</el-dialog> </el-dialog>
</template> </template>
......
...@@ -574,6 +574,7 @@ ...@@ -574,6 +574,7 @@
</el-card> </el-card>
<print-warehouse-receipt v-if="showWarehouseReceipt" :order-id="order.orderId" @close="showWarehouseReceipt=false" /> <print-warehouse-receipt v-if="showWarehouseReceipt" :order-id="order.orderId" @close="showWarehouseReceipt=false" />
<!--查看提货单 lanbm 2024-06-03-->
<print-lading-bill v-if="showLadingBill" :order-id="order.orderId" :transport-type="order.transportId" @close="showLadingBill=false" /> <print-lading-bill v-if="showLadingBill" :order-id="order.orderId" :transport-type="order.transportId" @close="showLadingBill=false" />
<warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" :type="type" @openPackHistory="openPackHistory" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" /> <warehouse-detail :order="order" :orderItemId="showWarehouseInItemId" :type="type" @openPackHistory="openPackHistory" v-if="showWarehouseInItemId" @close="showWarehouseInItemId=null" />
<el-dialog :title="$t('付款人')" :visible.sync="showDarweeDialog" v-if="order && order.customDraweeVOList"> <el-dialog :title="$t('付款人')" :visible.sync="showDarweeDialog" v-if="order && order.customDraweeVOList">
......
...@@ -1573,6 +1573,7 @@ export default { ...@@ -1573,6 +1573,7 @@ export default {
}, },
// 关联报价单 // 关联报价单
getOfferData() { getOfferData() {
//查询订单关联报价单下拉列表 lanbm 2024-05-29 添加注释
const that = this const that = this
const offParams = {} const offParams = {}
if (that.form.lineId) { if (that.form.lineId) {
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -68,9 +68,6 @@ ...@@ -68,9 +68,6 @@
<el-row :gutter="10" class="panel-group" style="margin: 5px"> <el-row :gutter="10" class="panel-group" style="margin: 5px">
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleGoTo"> <div class="card-panel" @click="handleGoTo">
<div class="card-panel-icon-wrapper icon-shopping">
<svg-icon icon-class="shopping" class-name="card-panel-icon" />
</div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
{{ $t("业绩总览 Total") }} {{ $t("业绩总览 Total") }}
...@@ -86,9 +83,6 @@ ...@@ -86,9 +83,6 @@
</el-col> </el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleGoTo"> <div class="card-panel" @click="handleGoTo">
<div class="card-panel-icon-wrapper icon-message">
<svg-icon icon-class="message" class-name="card-panel-icon" />
</div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
{{ $t("海运拼柜") }} {{ $t("海运拼柜") }}
...@@ -104,9 +98,6 @@ ...@@ -104,9 +98,6 @@
</el-col> </el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleGoTo"> <div class="card-panel" @click="handleGoTo">
<div class="card-panel-icon-wrapper icon-money">
<svg-icon icon-class="date" class-name="card-panel-icon" />
</div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
{{ $t("专线空运") }} {{ $t("专线空运") }}
...@@ -124,9 +115,6 @@ ...@@ -124,9 +115,6 @@
<el-row :gutter="10" class="panel-group" style="margin: 5px"> <el-row :gutter="10" class="panel-group" style="margin: 5px">
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleGoTo"> <div class="card-panel" @click="handleGoTo">
<div class="card-panel-icon-wrapper icon-people">
<svg-icon icon-class="peoples" class-name="card-panel-icon" />
</div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
{{ $t("成交总览 Total") }} {{ $t("成交总览 Total") }}
...@@ -142,9 +130,6 @@ ...@@ -142,9 +130,6 @@
</el-col> </el-col>
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col"> <el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleGoTo"> <div class="card-panel" @click="handleGoTo">
<div class="card-panel-icon-wrapper icon-shopping">
<svg-icon icon-class="time-range" class-name="card-panel-icon" />
</div>
<div class="card-panel-description"> <div class="card-panel-description">
<div class="card-panel-text"> <div class="card-panel-text">
{{ $t("首次成交") }} {{ $t("首次成交") }}
...@@ -379,7 +364,7 @@ export default { ...@@ -379,7 +364,7 @@ export default {
let vR = salesReportRespAll1.filter( let vR = salesReportRespAll1.filter(
(r) => r.strMonth === item.name (r) => r.strMonth === item.name
); );
result ="统计月份:"+ item.name + "<br/>"; result = "统计月份:" + item.name + "<br/>";
result += result +=
"Total:" + "Total:" +
vR[0].curValue + vR[0].curValue +
...@@ -694,8 +679,8 @@ export default { ...@@ -694,8 +679,8 @@ export default {
.card-panel-description { .card-panel-description {
font-weight: bold; font-weight: bold;
margin: 26px; margin: 10px;
margin-left: 0px; margin-left: 10px;
.card-panel-text { .card-panel-text {
line-height: 18px; line-height: 18px;
......
This diff is collapsed.
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