|
@@ -14,10 +14,15 @@
|
|
|
action: () => newContract(),
|
|
|
},
|
|
|
]"
|
|
|
- @get-list="getList">
|
|
|
+ @get-list="getList"
|
|
|
+ >
|
|
|
<template #code="{ item }">
|
|
|
<div style="width: 100%">
|
|
|
- <a style="color: #409eff; cursor: pointer; word-break: break-all" @click="pushProcessApproval(item)">{{ item.code }}</a>
|
|
|
+ <a
|
|
|
+ style="color: #409eff; cursor: pointer; word-break: break-all"
|
|
|
+ @click="pushProcessApproval(item)"
|
|
|
+ >{{ item.code }}</a
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #amount="{ item }">
|
|
@@ -42,7 +47,16 @@
|
|
|
<span v-if="item.refundStatus && item.refundStatus !== 0">
|
|
|
{{ dictValueLabel(item.refundStatus, refundStatusNew) }}
|
|
|
</span>
|
|
|
- <span v-else>{{ dictValueLabel(item.refundStatusNew, refundStatusNew) }}</span>
|
|
|
+ <span v-else>{{
|
|
|
+ dictValueLabel(item.refundStatusNew, refundStatusNew)
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #status="{ item }">
|
|
|
+ <div>
|
|
|
+ <span :style="getStyle(item.status)">{{
|
|
|
+ dictValueLabel(item.status, status)
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</byTable>
|
|
@@ -50,14 +64,30 @@
|
|
|
|
|
|
<el-dialog title="打印" v-if="openPrint" v-model="openPrint" width="860">
|
|
|
<div id="printMe">
|
|
|
- <div id="pdfDom" style="width: 800px; padding: 16px; font-size: 12px !important">
|
|
|
+ <div
|
|
|
+ id="pdfDom"
|
|
|
+ style="width: 800px; padding: 16px; font-size: 12px !important"
|
|
|
+ >
|
|
|
<div style="font-size: 18px; text-align: center">
|
|
|
{{ printDetails.sellCorporationNameEn }}
|
|
|
</div>
|
|
|
<div style="text-align: center">
|
|
|
- {{ printDetails.sellCountryName }},{{ printDetails.sellProvinceName }},{{ printDetails.sellCityName }},{{ printDetails.sellDetailedAddress }}
|
|
|
+ {{ printDetails.sellCountryName }},{{
|
|
|
+ printDetails.sellProvinceName
|
|
|
+ }},{{ printDetails.sellCityName }},{{
|
|
|
+ printDetails.sellDetailedAddress
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ font-size: 14px;
|
|
|
+ color: #409eff;
|
|
|
+ text-align: center;
|
|
|
+ padding-top: 16px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ PROFORMA INVOICE
|
|
|
</div>
|
|
|
- <div style="font-size: 14px; color: #409eff; text-align: center; padding-top: 16px">PROFORMA INVOICE</div>
|
|
|
<div style="padding-top: 8px">
|
|
|
<div>PI NO. : {{ printDetails.contractCode }}</div>
|
|
|
<div>PI DATE: {{ printDetails.createTimeEn }}</div>
|
|
@@ -67,7 +97,11 @@
|
|
|
<div style="color: #409eff">VENDOR:</div>
|
|
|
<div>{{ printDetails.sellCorporationNameEn }}</div>
|
|
|
<div style="padding: 16px 0">
|
|
|
- {{ printDetails.sellCountryName }},{{ printDetails.sellProvinceName }},{{ printDetails.sellCityName }},{{ printDetails.sellDetailedAddress }}
|
|
|
+ {{ printDetails.sellCountryName }},{{
|
|
|
+ printDetails.sellProvinceName
|
|
|
+ }},{{ printDetails.sellCityName }},{{
|
|
|
+ printDetails.sellDetailedAddress
|
|
|
+ }}
|
|
|
</div>
|
|
|
<div>CONTACT: {{ printDetails.sellContactName }}</div>
|
|
|
<div>TEL.: {{ printDetails.sellContactNumber }}</div>
|
|
@@ -76,7 +110,11 @@
|
|
|
<div style="color: #409eff">BUYER:</div>
|
|
|
<div>{{ printDetails.buyCorporationName }}</div>
|
|
|
<div style="padding: 16px 0">
|
|
|
- {{ printDetails.buyDetailedAddress }},{{ printDetails.buyCityName }},{{ printDetails.buyProvinceName }},{{ printDetails.buyCountryName }}
|
|
|
+ {{ printDetails.buyDetailedAddress }},{{
|
|
|
+ printDetails.buyCityName
|
|
|
+ }},{{ printDetails.buyProvinceName }},{{
|
|
|
+ printDetails.buyCountryName
|
|
|
+ }}
|
|
|
</div>
|
|
|
<div>CONTACT: {{ printDetails.buyContactName }}</div>
|
|
|
<div>TEL.: {{ printDetails.buyContactNumber }}</div>
|
|
@@ -85,11 +123,23 @@
|
|
|
<div style="height: 16px"></div>
|
|
|
<div style="border: 1px solid black">
|
|
|
<div style="display: flex; width: 100%">
|
|
|
- <div style="width: 33%; border-bottom: 1px solid black; border-right: 1px solid black">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 33%;
|
|
|
+ border-bottom: 1px solid black;
|
|
|
+ border-right: 1px solid black;
|
|
|
+ "
|
|
|
+ >
|
|
|
<div style="color: #409eff">COUNTRY OF ORIGIN:</div>
|
|
|
<div>{{ printDetails.sellCountryName }}</div>
|
|
|
</div>
|
|
|
- <div style="width: 34%; border-bottom: 1px solid black; border-right: 1px solid black">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 34%;
|
|
|
+ border-bottom: 1px solid black;
|
|
|
+ border-right: 1px solid black;
|
|
|
+ "
|
|
|
+ >
|
|
|
<div style="color: #409eff">COUNTRY OF DESTINATION:</div>
|
|
|
<div>{{ printDetails.buyCountryName }}</div>
|
|
|
</div>
|
|
@@ -99,13 +149,25 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="display: flex; width: 100%">
|
|
|
- <div style="width: 33%; border-bottom: 1px solid black; border-right: 1px solid black">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 33%;
|
|
|
+ border-bottom: 1px solid black;
|
|
|
+ border-right: 1px solid black;
|
|
|
+ "
|
|
|
+ >
|
|
|
<div style="color: #409eff">TERMS OF DELIVERY:</div>
|
|
|
<div>
|
|
|
{{ dictValueLabel(printDetails.tradeMethods, tradeMethods) }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="width: 34%; border-bottom: 1px solid black; border-right: 1px solid black">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ width: 34%;
|
|
|
+ border-bottom: 1px solid black;
|
|
|
+ border-right: 1px solid black;
|
|
|
+ "
|
|
|
+ >
|
|
|
<div style="color: #409eff">CURRENCY:</div>
|
|
|
<div>
|
|
|
{{ printDetails.currency }}
|
|
@@ -114,7 +176,9 @@
|
|
|
<div style="width: 33%; border-bottom: 1px solid black">
|
|
|
<div style="color: #409eff">EXPORT BY/VIA:</div>
|
|
|
<div>
|
|
|
- {{ dictValueLabel(printDetails.transportMethod, shippingMethod) }}
|
|
|
+ {{
|
|
|
+ dictValueLabel(printDetails.transportMethod, shippingMethod)
|
|
|
+ }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -131,19 +195,47 @@
|
|
|
</div>
|
|
|
<div style="height: 16px"></div>
|
|
|
<div class="baseRow" style="display: flex; color: #409eff">
|
|
|
- <div class="contentRow" style="width: 50px; text-align: center">NO.</div>
|
|
|
- <div class="contentRow" style="width: calc(100% - 450px); text-align: center">COMMODITY, SPECIFICATION</div>
|
|
|
- <div class="contentRow" style="width: 100px; text-align: center">UNIT</div>
|
|
|
- <div class="contentRow" style="width: 100px; text-align: center">QUANTITY</div>
|
|
|
- <div class="contentRow" style="width: 100px; text-align: center">UNIT PRICE</div>
|
|
|
- <div class="contentRow" style="width: 100px; text-align: center">TOTAL PRICE</div>
|
|
|
+ <div class="contentRow" style="width: 50px; text-align: center">
|
|
|
+ NO.
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="width: calc(100% - 450px); text-align: center"
|
|
|
+ >
|
|
|
+ COMMODITY, SPECIFICATION
|
|
|
+ </div>
|
|
|
+ <div class="contentRow" style="width: 100px; text-align: center">
|
|
|
+ UNIT
|
|
|
+ </div>
|
|
|
+ <div class="contentRow" style="width: 100px; text-align: center">
|
|
|
+ QUANTITY
|
|
|
+ </div>
|
|
|
+ <div class="contentRow" style="width: 100px; text-align: center">
|
|
|
+ UNIT PRICE
|
|
|
+ </div>
|
|
|
+ <div class="contentRow" style="width: 100px; text-align: center">
|
|
|
+ TOTAL PRICE
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div v-if="printDetails.productInfoList && printDetails.productInfoList.length > 0">
|
|
|
- <div class="baseRow" style="display: flex" v-for="(item, index) in printDetails.productInfoList" :key="item.productId">
|
|
|
+ <div
|
|
|
+ v-if="
|
|
|
+ printDetails.productInfoList &&
|
|
|
+ printDetails.productInfoList.length > 0
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="baseRow"
|
|
|
+ style="display: flex"
|
|
|
+ v-for="(item, index) in printDetails.productInfoList"
|
|
|
+ :key="item.productId"
|
|
|
+ >
|
|
|
<div class="contentRow" style="width: 50px; text-align: center">
|
|
|
{{ index + 1 }}
|
|
|
</div>
|
|
|
- <div class="contentRow" style="width: calc(100% - 450px); text-align: center">
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="width: calc(100% - 450px); text-align: center"
|
|
|
+ >
|
|
|
{{ item.productName }}
|
|
|
</div>
|
|
|
<div class="contentRow" style="width: 100px; text-align: center">
|
|
@@ -161,12 +253,23 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="baseRow" style="display: flex; color: #409eff">
|
|
|
- <div class="contentRow" style="width: calc(100% - 400px); text-align: center">SUBTOTAL:</div>
|
|
|
- <div class="contentRow" style="width: 100px; text-align: center"></div>
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="width: calc(100% - 400px); text-align: center"
|
|
|
+ >
|
|
|
+ SUBTOTAL:
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="width: 100px; text-align: center"
|
|
|
+ ></div>
|
|
|
<div class="contentRow" style="width: 100px; text-align: center">
|
|
|
{{ statistics("productQuantity", 0) }}
|
|
|
</div>
|
|
|
- <div class="contentRow" style="width: 100px; text-align: center"></div>
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="width: 100px; text-align: center"
|
|
|
+ ></div>
|
|
|
<div class="contentRow" style="width: 100px; text-align: center">
|
|
|
{{ statistics("amount", 2) }}
|
|
|
</div>
|
|
@@ -178,42 +281,116 @@
|
|
|
</div>
|
|
|
</div> -->
|
|
|
<div class="baseRow" style="display: flex">
|
|
|
- <div class="contentRow" style="width: calc(100% - 100px); text-align: right; color: #409eff">FREIGHT COST:</div>
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="
|
|
|
+ width: calc(100% - 100px);
|
|
|
+ text-align: right;
|
|
|
+ color: #409eff;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ FREIGHT COST:
|
|
|
+ </div>
|
|
|
<div class="contentRow" style="width: 100px; text-align: center">
|
|
|
{{ statisticsTwo("amount", 2) }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="baseRow" style="display: flex">
|
|
|
- <div class="contentRow" style="width: calc(100% - 100px); text-align: right; color: #409eff">TOTAL PRICE:</div>
|
|
|
+ <div
|
|
|
+ class="contentRow"
|
|
|
+ style="
|
|
|
+ width: calc(100% - 100px);
|
|
|
+ text-align: right;
|
|
|
+ color: #409eff;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ TOTAL PRICE:
|
|
|
+ </div>
|
|
|
<div class="contentRow" style="width: 100px; text-align: center">
|
|
|
{{ printDetails.totalAmount }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="baseRow" style="display: flex; border-bottom: 1px solid black">
|
|
|
+ <div
|
|
|
+ class="baseRow"
|
|
|
+ style="display: flex; border-bottom: 1px solid black"
|
|
|
+ >
|
|
|
<div class="contentRow" style="width: 100%">
|
|
|
- {{ translateIntoEnglish(printDetails.totalAmount, printDetails.currency) }}
|
|
|
+ {{
|
|
|
+ translateIntoEnglish(
|
|
|
+ printDetails.totalAmount,
|
|
|
+ printDetails.currency
|
|
|
+ )
|
|
|
+ }}
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="height: 16px"></div>
|
|
|
<div class="baseRow" style="color: #409eff">
|
|
|
- <div class="contentRow" style="width: 100%">ACCOUNT INFORMATION:</div>
|
|
|
+ <div class="contentRow" style="width: 100%">
|
|
|
+ ACCOUNT INFORMATION:
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="baseRow" style="border-bottom: 1px solid black">
|
|
|
<div class="contentRow" style="width: 100%">
|
|
|
- <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 4px;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ "
|
|
|
+ >
|
|
|
Beneficiary Name: {{ printDetails.beneficiaryName }}
|
|
|
</div>
|
|
|
- <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 4px;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ "
|
|
|
+ >
|
|
|
Beneficiary Bank: {{ printDetails.beneficiaryBank }}
|
|
|
</div>
|
|
|
- <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
|
|
|
- Beneficiary Bank Address: {{ printDetails.beneficiaryBankAddress }}
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 4px;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ Beneficiary Bank Address:
|
|
|
+ {{ printDetails.beneficiaryBankAddress }}
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 4px;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ Beneficiary Account Number:
|
|
|
+ {{ printDetails.beneficiaryAccountNumber }}
|
|
|
</div>
|
|
|
- <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
|
|
|
- Beneficiary Account Number: {{ printDetails.beneficiaryAccountNumber }}
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 4px;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ Swift Code: {{ printDetails.swiftCode }}
|
|
|
</div>
|
|
|
- <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">Swift Code: {{ printDetails.swiftCode }}</div>
|
|
|
- <div style="line-height: 24px; padding-left: 4px; word-break: break-all; word-wrap: break-word">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ line-height: 24px;
|
|
|
+ padding-left: 4px;
|
|
|
+ word-break: break-all;
|
|
|
+ word-wrap: break-word;
|
|
|
+ "
|
|
|
+ >
|
|
|
Beneficiary Address: {{ printDetails.beneficiaryAddress }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -234,7 +411,9 @@
|
|
|
<template #footer>
|
|
|
<el-button @click="openPrint = false" size="large">取消</el-button>
|
|
|
<el-button v-print="printObj" size="large">打印</el-button>
|
|
|
- <el-button type="primary" @click="clickDownload()" size="large">下载PDF</el-button>
|
|
|
+ <el-button type="primary" @click="clickDownload()" size="large"
|
|
|
+ >下载PDF</el-button
|
|
|
+ >
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -412,10 +591,11 @@ const config = computed(() => {
|
|
|
label: "审批状态",
|
|
|
prop: "status",
|
|
|
width: 120,
|
|
|
+ slot: "status",
|
|
|
},
|
|
|
- render(type) {
|
|
|
- return proxy.dictValueLabel(type, status.value);
|
|
|
- },
|
|
|
+ // render(type) {
|
|
|
+ // return proxy.dictValueLabel(type, status.value);
|
|
|
+ // },
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
@@ -478,11 +658,15 @@ const config = computed(() => {
|
|
|
},
|
|
|
el: "button",
|
|
|
click() {
|
|
|
- ElMessageBox.confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning",
|
|
|
- }).then(() => {
|
|
|
+ ElMessageBox.confirm(
|
|
|
+ "此操作将永久删除该数据, 是否继续?",
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ }
|
|
|
+ ).then(() => {
|
|
|
proxy
|
|
|
.post("/contract/edit", {
|
|
|
id: row.id,
|
|
@@ -504,38 +688,46 @@ const config = computed(() => {
|
|
|
];
|
|
|
});
|
|
|
const getDict = () => {
|
|
|
- proxy.getDictOne(["contract_type", "account_currency", "trade_mode", "shipping_method", "unit"]).then((res) => {
|
|
|
- if (res.contract_type && res.contract_type.length > 0) {
|
|
|
- contractType.value = res.contract_type.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- }
|
|
|
- if (res.account_currency && res.account_currency.length > 0) {
|
|
|
- accountCurrency.value = res.account_currency.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- }
|
|
|
- if (res.trade_mode && res.trade_mode.length > 0) {
|
|
|
- tradeMethods.value = res.trade_mode.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- }
|
|
|
- if (res.shipping_method && res.shipping_method.length > 0) {
|
|
|
- shippingMethod.value = res.shipping_method.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- }
|
|
|
- if (res.unit && res.unit.length > 0) {
|
|
|
- productUnit.value = res.unit.map((x) => ({
|
|
|
- label: x.dictValue,
|
|
|
- value: x.dictKey,
|
|
|
- }));
|
|
|
- }
|
|
|
- });
|
|
|
+ proxy
|
|
|
+ .getDictOne([
|
|
|
+ "contract_type",
|
|
|
+ "account_currency",
|
|
|
+ "trade_mode",
|
|
|
+ "shipping_method",
|
|
|
+ "unit",
|
|
|
+ ])
|
|
|
+ .then((res) => {
|
|
|
+ if (res.contract_type && res.contract_type.length > 0) {
|
|
|
+ contractType.value = res.contract_type.map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ if (res.account_currency && res.account_currency.length > 0) {
|
|
|
+ accountCurrency.value = res.account_currency.map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ if (res.trade_mode && res.trade_mode.length > 0) {
|
|
|
+ tradeMethods.value = res.trade_mode.map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ if (res.shipping_method && res.shipping_method.length > 0) {
|
|
|
+ shippingMethod.value = res.shipping_method.map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ if (res.unit && res.unit.length > 0) {
|
|
|
+ productUnit.value = res.unit.map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ });
|
|
|
proxy.post("/corporation/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
corporationList.value = res.rows.map((item) => {
|
|
|
return {
|
|
@@ -609,7 +801,10 @@ const clickDownload = () => {
|
|
|
};
|
|
|
const statistics = (label, index) => {
|
|
|
let num = 0;
|
|
|
- if (printDetails.value.productInfoList && printDetails.value.productInfoList.length > 0) {
|
|
|
+ if (
|
|
|
+ printDetails.value.productInfoList &&
|
|
|
+ printDetails.value.productInfoList.length > 0
|
|
|
+ ) {
|
|
|
printDetails.value.productInfoList.map((item) => {
|
|
|
if (item[label]) {
|
|
|
num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
|
|
@@ -620,7 +815,10 @@ const statistics = (label, index) => {
|
|
|
};
|
|
|
const statisticsTwo = (label, index) => {
|
|
|
let num = 0;
|
|
|
- if (printDetails.value.contractProjectList && printDetails.value.contractProjectList.length > 0) {
|
|
|
+ if (
|
|
|
+ printDetails.value.contractProjectList &&
|
|
|
+ printDetails.value.contractProjectList.length > 0
|
|
|
+ ) {
|
|
|
printDetails.value.contractProjectList.map((item) => {
|
|
|
if (item[label]) {
|
|
|
num = parseFloat(Number(num) + Number(item[label])).toFixed(index);
|
|
@@ -631,8 +829,15 @@ const statisticsTwo = (label, index) => {
|
|
|
};
|
|
|
const computeScale = (item) => {
|
|
|
let text = 0;
|
|
|
- if (item.sumClaimMoney && Number(item.sumClaimMoney) > 0 && item.amount && Number(item.amount) > 0) {
|
|
|
- text = parseFloat((Number(item.sumClaimMoney) / Number(item.amount)) * 100).toFixed(2);
|
|
|
+ if (
|
|
|
+ item.sumClaimMoney &&
|
|
|
+ Number(item.sumClaimMoney) > 0 &&
|
|
|
+ item.amount &&
|
|
|
+ Number(item.amount) > 0
|
|
|
+ ) {
|
|
|
+ text = parseFloat(
|
|
|
+ (Number(item.sumClaimMoney) / Number(item.amount)) * 100
|
|
|
+ ).toFixed(2);
|
|
|
}
|
|
|
return text + "%";
|
|
|
};
|
|
@@ -657,7 +862,8 @@ const pushProcessApproval = (row) => {
|
|
|
const printObj = ref({
|
|
|
id: "printMe",
|
|
|
popTitle: "",
|
|
|
- extraCss: "https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css",
|
|
|
+ extraCss:
|
|
|
+ "https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css, https://cdn.bootcdn.net/ajax/libs/hover.css/2.3.1/css/hover-min.css",
|
|
|
extraHead: '<meta http-equiv="Content-Language"content="zh-cn"/>',
|
|
|
});
|
|
|
const clickAlteration = (row) => {
|
|
@@ -671,6 +877,24 @@ const clickAlteration = (row) => {
|
|
|
},
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+const getStyle = (status) => {
|
|
|
+ if (status == 10) {
|
|
|
+ return {
|
|
|
+ color: "#FF9315",
|
|
|
+ };
|
|
|
+ } else if (status == 30) {
|
|
|
+ return {
|
|
|
+ color: "#39C55A",
|
|
|
+ };
|
|
|
+ } else if (status == 20 || status == 99) {
|
|
|
+ return {
|
|
|
+ color: "#FF655B",
|
|
|
+ };
|
|
|
+ } else {
|
|
|
+ return {};
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|