|
|
@@ -183,9 +183,14 @@
|
|
|
<template slot="index" slot-scope="scope">
|
|
|
<span>{{ scope.index + 1 }}</span>
|
|
|
</template>
|
|
|
- <!-- <template slot="accStatus" slot-scope="{row,size}">
|
|
|
- <span>{{ row.accStatus ? '是' : '否' }}</span>
|
|
|
- </template> -->
|
|
|
+ <template slot="auditStatus" slot-scope="{ row, size }">
|
|
|
+ <span v-if="row.auditStatus == 0">录入</span>
|
|
|
+ <span v-if="row.auditStatus == 1">提交审核</span>
|
|
|
+ <span v-if="row.auditStatus == 2">审核中</span>
|
|
|
+ <span v-if="row.auditStatus == 4" style="color:#409EFF;">审核通过</span>
|
|
|
+ <span v-if="row.auditStatus == 5" style="color:#67C23A;">申请修改</span>
|
|
|
+ <span v-if="row.auditStatus == 6" style="color:#F56C6C;">申请删除</span>
|
|
|
+ </template>
|
|
|
<template slot="corpType" slot-scope="{ row, index }">
|
|
|
<dic-select
|
|
|
v-if="row.edit"
|
|
|
@@ -385,6 +390,24 @@
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
</template>
|
|
|
+ <template slot="uninvoicedAmount" slot-scope="{ row }">
|
|
|
+ <el-popover trigger="click" v-if="Number(row.uninvoicedAmount)">
|
|
|
+ <avue-crud :data="fininvoicesData" :option="fininvoicesOption"></avue-crud>
|
|
|
+ <span style="color: #409eff; cursor: pointer" slot="reference" @click="viewFininvoices(row)">
|
|
|
+ {{ row.uninvoicedAmount }}
|
|
|
+ </span>
|
|
|
+ </el-popover>
|
|
|
+ <span v-else>{{ row.uninvoicedAmount }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="stlTtlAmount" slot-scope="{ row }">
|
|
|
+ <el-popover trigger="click" v-if="Number(row.stlTtlAmount)">
|
|
|
+ <avue-crud :data="finstlbillsData" :option="finstlbillsOption"></avue-crud>
|
|
|
+ <span style="color: #409eff; cursor: pointer" slot="reference" @click="viewFinstlbills(row)">
|
|
|
+ {{ row.stlTtlAmount }}
|
|
|
+ </span>
|
|
|
+ </el-popover>
|
|
|
+ <span v-else>{{ row.stlTtlAmount }}</span>
|
|
|
+ </template>
|
|
|
<template slot-scope="{ row, index }" slot="menu">
|
|
|
<el-button v-if="row.id" type="text" size="small" @click="rowView(row, index)">查看</el-button>
|
|
|
<!--<el-button v-if="scope.row.edit" type="text" size="small" @click="savefun(scope.row,scope.index,'D')">保存</el-button>-->
|
|
|
@@ -504,6 +527,14 @@
|
|
|
<template slot="index" slot-scope="scope">
|
|
|
<span>{{ scope.index + 1 }}</span>
|
|
|
</template>
|
|
|
+ <template slot="auditStatus" slot-scope="{ row, size }">
|
|
|
+ <span v-if="row.auditStatus == 0">录入</span>
|
|
|
+ <span v-if="row.auditStatus == 1">提交审核</span>
|
|
|
+ <span v-if="row.auditStatus == 2">审核中</span>
|
|
|
+ <span v-if="row.auditStatus == 4" style="color:#409EFF;">审核通过</span>
|
|
|
+ <span v-if="row.auditStatus == 5" style="color:#67C23A;">申请修改</span>
|
|
|
+ <span v-if="row.auditStatus == 6" style="color:#F56C6C;">申请删除</span>
|
|
|
+ </template>
|
|
|
<template slot="accStatus" slot-scope="{ row, size }">
|
|
|
<span>{{ row.accStatus ? "是" : "否" }}</span>
|
|
|
</template>
|
|
|
@@ -686,6 +717,24 @@
|
|
|
></el-input-number>
|
|
|
<span v-else>{{ row.taxRate }}</span>
|
|
|
</template>
|
|
|
+ <template slot="uninvoicedAmount" slot-scope="{ row }">
|
|
|
+ <el-popover trigger="click" v-if="Number(row.uninvoicedAmount)">
|
|
|
+ <avue-crud :data="fininvoicesData" :option="fininvoicesOption"></avue-crud>
|
|
|
+ <span style="color: #409eff; cursor: pointer" slot="reference" @click="viewFininvoices(row)">
|
|
|
+ {{ row.uninvoicedAmount }}
|
|
|
+ </span>
|
|
|
+ </el-popover>
|
|
|
+ <span v-else>{{ row.uninvoicedAmount }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="stlTtlAmount" slot-scope="{ row }">
|
|
|
+ <el-popover trigger="click" v-if="Number(row.stlTtlAmount)">
|
|
|
+ <avue-crud :data="finstlbillsData" :option="finstlbillsOption"></avue-crud>
|
|
|
+ <span style="color: #409eff; cursor: pointer" slot="reference" @click="viewFinstlbills(row)">
|
|
|
+ {{ row.stlTtlAmount }}
|
|
|
+ </span>
|
|
|
+ </el-popover>
|
|
|
+ <span v-else>{{ row.stlTtlAmount }}</span>
|
|
|
+ </template>
|
|
|
<template slot="remarks" slot-scope="{ row }">
|
|
|
<el-input v-if="row.edit" v-model="row.remarks" size="small" placeholder="请输入"></el-input>
|
|
|
<span v-else>{{ row.remarks }}</span>
|
|
|
@@ -1042,7 +1091,9 @@ import {
|
|
|
getFeeCenterCorpIds,
|
|
|
pleaseVerifyCost,
|
|
|
revokeCheckPleaseVerifyCost,
|
|
|
- synchronizationPrompt
|
|
|
+ synchronizationPrompt,
|
|
|
+ finstlbillsGetAccBillIdList,
|
|
|
+ fininvoicesGetAccBillIdList
|
|
|
} from "@/api/iosBasicData/feecenter";
|
|
|
import { getWorkDicts } from "@/api/system/dictbiz";
|
|
|
import { feecenterTemplateImport, listFeeCountByCorp, losbfeestemplateGetListTemplate, templateImportBatch } from "@/api/iosBasicData/bills";
|
|
|
@@ -1095,6 +1146,58 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ fininvoicesData: [],
|
|
|
+ fininvoicesOption: {
|
|
|
+ header: false,
|
|
|
+ menu: false,
|
|
|
+ align: "center",
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "发票号",
|
|
|
+ prop: "taxInvoiceNo",
|
|
|
+ width: "200",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票日期",
|
|
|
+ prop: "invoiceDate",
|
|
|
+ width: "150",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票人",
|
|
|
+ prop: "createUserName",
|
|
|
+ width: "100",
|
|
|
+ overHidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ finstlbillsData: [],
|
|
|
+ finstlbillsOption: {
|
|
|
+ header: false,
|
|
|
+ menu: false,
|
|
|
+ align: "center",
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "结算单号",
|
|
|
+ prop: "billNo",
|
|
|
+ width: "200",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "结算日期",
|
|
|
+ prop: "billDate",
|
|
|
+ width: "150",
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "结算人",
|
|
|
+ prop: "createUserName",
|
|
|
+ width: "100",
|
|
|
+ overHidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
amendsStatus: false,
|
|
|
amendOption: {
|
|
|
border: true,
|
|
|
@@ -2203,6 +2306,18 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ viewFininvoices(row) {
|
|
|
+ this.fininvoicesData = [];
|
|
|
+ fininvoicesGetAccBillIdList({ accBillId: row.accBillId }).then(res => {
|
|
|
+ this.fininvoicesData = res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ viewFinstlbills(row) {
|
|
|
+ this.finstlbillsData = [];
|
|
|
+ finstlbillsGetAccBillIdList({ accBillId: row.accBillId }).then(res => {
|
|
|
+ this.finstlbillsData = res.data.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
rowView(row, index) {
|
|
|
this.$refs.feeModifyView.openDialog(row);
|
|
|
},
|
|
|
@@ -3206,33 +3321,33 @@ export default {
|
|
|
// 计量单位
|
|
|
this.$set(row, name, value);
|
|
|
for (let item of this.unitNoData) {
|
|
|
- console.log(item.code,value,item,1111)
|
|
|
+ console.log(item.code, value, item, 1111);
|
|
|
if (item.code == value) {
|
|
|
// 按箱型
|
|
|
- if (item.quantityRule == '按箱量') {
|
|
|
+ if (item.quantityRule == "按箱量") {
|
|
|
// 选择的箱那边的数据
|
|
|
if (item.boxquantity) {
|
|
|
this.$set(row, "quantity", item.boxquantity);
|
|
|
}
|
|
|
}
|
|
|
// 按票
|
|
|
- if (item.quantityRule == '按票') {
|
|
|
+ if (item.quantityRule == "按票") {
|
|
|
this.$set(row, "quantity", 1);
|
|
|
}
|
|
|
// 按重量
|
|
|
- if (item.quantityRule =='按重量') {
|
|
|
+ if (item.quantityRule == "按重量") {
|
|
|
this.$set(row, "quantity", this.assemblyForm.grossWeight);
|
|
|
}
|
|
|
// 按TEU
|
|
|
- if (item.quantityRule == '按TEU') {
|
|
|
+ if (item.quantityRule == "按TEU") {
|
|
|
this.$set(row, "quantity", item.boxquantity);
|
|
|
}
|
|
|
// 按尺码
|
|
|
- if (item.quantityRule == '按尺码') {
|
|
|
+ if (item.quantityRule == "按尺码") {
|
|
|
this.$set(row, "quantity", this.assemblyForm.measurement);
|
|
|
}
|
|
|
// 按件数
|
|
|
- if (item.quantityRule == '按件数') {
|
|
|
+ if (item.quantityRule == "按件数") {
|
|
|
this.$set(row, "quantity", this.assemblyForm.quantity);
|
|
|
}
|
|
|
}
|
|
|
@@ -3453,16 +3568,16 @@ export default {
|
|
|
srcBillId = this.assemblyForm.id;
|
|
|
}
|
|
|
const res = await getBunitsPage({ srcBillId });
|
|
|
- console.log(res)
|
|
|
+ console.log(res);
|
|
|
this.unitNoData = [];
|
|
|
let boxarr40 = ["40HC", "40GP", "40FB", "40RF", "40RH"];
|
|
|
- let boxarr20 = ["20GP","20HC"];
|
|
|
+ let boxarr20 = ["20GP", "20HC"];
|
|
|
let teunum = 0;
|
|
|
for (let item of res.data.data) {
|
|
|
// 按箱型
|
|
|
- if (item.quantityRule != '按箱量') {
|
|
|
+ if (item.quantityRule != "按箱量") {
|
|
|
// TEU
|
|
|
- if (item.quantityRule == '按TEU') {
|
|
|
+ if (item.quantityRule == "按TEU") {
|
|
|
for (let data of this.assemblyForm.preContainersList) {
|
|
|
// 40*2 20*1
|
|
|
if (boxarr40.indexOf(data.cntrTypeCode) != -1) {
|
|
|
@@ -3479,16 +3594,16 @@ export default {
|
|
|
}
|
|
|
let arr = this.assemblyForm.preContainersList.map(item => {
|
|
|
return {
|
|
|
- quantityRule:'按箱量', // 1 是按箱量
|
|
|
+ quantityRule: "按箱量", // 1 是按箱量
|
|
|
code: item.cntrTypeCode,
|
|
|
boxquantity: item.quantity
|
|
|
};
|
|
|
});
|
|
|
this.unitNoData = [...arr, ...this.unitNoData];
|
|
|
- console.log(this.unitNoData)
|
|
|
+ console.log(this.unitNoData);
|
|
|
// 选择费用时带出第一条
|
|
|
if (type) {
|
|
|
- console.log()
|
|
|
+ console.log();
|
|
|
let feeunitNodata = [];
|
|
|
for (let item of this.unitNoData) {
|
|
|
if (item.quantityRule == feeRow.unitNo) {
|