|
|
@@ -1,241 +1,41 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<!--:row-style="{height:'20px',padding:'0px',fontSize:'12px'}"-->
|
|
|
- <el-table ref="tableRef" :header-cell-style="tableHeaderCellStyle" :data="tableData" border style="width: 100%"
|
|
|
- @selection-change="handleSelectionChange" @row-click="rowClick" :row-style="rowStyle"
|
|
|
- :row-class-name="rowClassName" :cell-style="cellStyle" @expand-change="expandChange">
|
|
|
- <el-table-column v-if="brfalse" fixed="left" type="selection" width="55">
|
|
|
- <!--<template slot-scope="scope">-->
|
|
|
- <!-- <el-checkbox v-model="scope.row.tableSelect"-->
|
|
|
- <!-- :true-label="1" :false-label="0"-->
|
|
|
- <!-- @change="toggleSelection([scope.row])">-->
|
|
|
- <!-- </el-checkbox>-->
|
|
|
- <!--</template>-->
|
|
|
- </el-table-column>
|
|
|
- <el-table-column type="expand" v-if="brfalse">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <costDetails :costDate="row.costDate || []"></costDetails>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="lineNo" label="行号" width="50px">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="dc" label="收付" width="50px">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <span v-if="row.dc == 'D'">收</span>
|
|
|
- <span v-if="row.dc == 'C'">付</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="isInvoice" label="开票状态" width="80px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span v-if="row.isInvoice == 0">开票</span>
|
|
|
- <span v-if="row.isInvoice == 3">禁止开票</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="billNo" label="原业务编号" width="120px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span class="textHide">{{ row.billNo }}</span>
|
|
|
- <!--<span class="textHide" v-if="row.businessBillDivideNo">{{row.businessBillDivideNo}}</span>-->
|
|
|
- <!--<span class="textHide" v-else>{{row.businessBillNo}}</span>-->
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="invoiceNo" label="发票号">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="feeCnName" label="费用名称">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="corpCnName" label="结算单位" width="130px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span class="textHide">{{ row.corpCnName }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="mblno" label="MB/L NO" width="120px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <avue-text-ellipsis :text="row.mblno" :height="50" :width="120">
|
|
|
- <small slot="more">...</small>
|
|
|
- </avue-text-ellipsis>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="currentStlAmountRMB" label="本次对账CNY" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input style="width: 100%;" v-model="scope.row.currentStlAmountRMB" v-if="brfalse" size="mini"
|
|
|
- autocomplete="off" :disabled="scope.row.currentStlCurCode != 'CNY'" clearable
|
|
|
- placeholder="请输入USD" @change="armbChange(scope.row)">
|
|
|
- </el-input>
|
|
|
- <span v-else>{{ scope.row.currentStlAmountRMB }}</span>
|
|
|
- <!--<span>{{scope.row.currentStlAmountRMB}}</span>-->
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="currentStlAmountUSD" label="本次对账USD" width="100">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input style="width: 100%;" v-model="scope.row.currentStlAmountUSD" v-if="brfalse" size="mini"
|
|
|
- autocomplete="off" :disabled="scope.row.currentStlCurCode != 'USD'" clearable
|
|
|
- placeholder="请输入USD" @change="ausdChange(scope.row)">
|
|
|
- </el-input>
|
|
|
- <span v-else>{{ scope.row.currentStlAmountUSD }}</span>
|
|
|
- <!--<span>{{scope.row.currentStlAmountUSD}}</span>-->
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="币种" prop="currentStlCurCode" width="100">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <!--<search-query v-if="!editSave"-->
|
|
|
- <!-- :datalist="curCodeData"-->
|
|
|
- <!-- :selectValue="row.currentStlCurCode"-->
|
|
|
- <!-- :filterable="true"-->
|
|
|
- <!-- :clearable="true"-->
|
|
|
- <!-- :remote="true"-->
|
|
|
- <!-- :buttonIf="false"-->
|
|
|
- <!-- :forParameter="{key:'id',label:'code',value:'code'}"-->
|
|
|
- <!-- @remoteMethod="getRateListfun"-->
|
|
|
- <!-- @corpChange="corpChange($event,row)"-->
|
|
|
- <!-- @corpFocus="getRateListfun">-->
|
|
|
- <!--</search-query>-->
|
|
|
- <!--<span v-else>{{row.currentStlCurCode}}</span>-->
|
|
|
- <span>{{ row.currentStlCurCode }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="currentStlExrate" label="汇率">
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column prop="stlAmountDr" label="已结算CNY" width="100px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span v-if="row.dc == 'D'">{{ row.stlAmountDr }}</span>
|
|
|
- <span v-if="row.dc == 'C'">{{ row.stlAmountCr }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="stlAmountDrUSD" label="已结算USD" width="100px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span v-if="row.dc == 'D'">{{ row.stlAmountDrUSD }}</span>
|
|
|
- <span v-if="row.dc == 'C'">{{ row.stlAmountCrUSD }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!--<el-table-column-->
|
|
|
- <!-- prop="tableSelect"-->
|
|
|
- <!-- label="选择" width="50px" v-if="brfalse">-->
|
|
|
- <!-- <template slot-scope="scope">-->
|
|
|
- <!-- <el-checkbox v-model="scope.row.tableSelect"-->
|
|
|
- <!-- :true-label="1" :false-label="0"-->
|
|
|
- <!-- @change="toggleSelection([scope.row])">-->
|
|
|
- <!-- </el-checkbox>-->
|
|
|
- <!-- </template>-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <el-table-column prop="isChecked" label="对账">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <span v-if="row.isChecked == item.dictKey" v-for="item in ifInvoiceData" :key="item.dictKey">
|
|
|
- {{ item.dictValue }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="isSignfor" label="签收">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span v-if="row.isSignfor == item.dictKey" v-for="item in ifInvoiceData" :key="item.dictKey">
|
|
|
- {{ item.dictValue }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="isInvoice" label="发票状态">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <span v-if="row.isInvoice == item.dictKey" v-for="item in invoicelosDara" :key="item.id">
|
|
|
- {{ item.dictValue }}
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="etd" label="ETD" width="120px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span class="textHide">{{ row.etd }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="accBillNo" label="账单编号" width="120px">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <span class="textHide">{{ row.accBillNo }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
- <el-table-column prop="signforName" label="签收人">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="signforDate" label="签收日期" width="160px">
|
|
|
- </el-table-column>
|
|
|
- <!-- <el-table-column prop="billDate" label="销账日期" width="150px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span>{{ row.etd }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
-
|
|
|
- <!--<el-table-column-->
|
|
|
- <!-- prop="accBillNo"-->
|
|
|
- <!-- label="操作(无参数)" width="120px">-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <el-table-column prop="bookingNo" label="BOOKINGNO" width="150px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span>{{ row.bookingNo }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="hblno" label="HB/L NO" width="150px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span class="textHide">{{ row.hblno }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="vesselCnName" label="船名">
|
|
|
- <template slot-scope="{row}">
|
|
|
- <span class="textHide">{{ row.vesselCnName }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="voyageNo" label="航次" width="100px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span class="textHide">{{ row.voyageNo }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="currentInvoiceAmountRMB" label="发票CNY">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="currentInvoiceAmountUSD" label="发票USD">
|
|
|
- </el-table-column>
|
|
|
- <!-- <el-table-column prop="quantityCntrTypesDescr" label="箱型">
|
|
|
- </el-table-column> -->
|
|
|
- <el-table-column prop="quantityCntrTypesDescr" label="箱量">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="billNo" label="编号" width="100px">
|
|
|
- <template slot-scope="{ row }">
|
|
|
- <span class="textHide">{{ row.billNo }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="unsettledAmountRMB" label="应对账CNY" width="100px">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="unsettledAmountUSD" label="应对账USD" width="100px">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="reconciliationAmount" label="已对账CNY" width="100px">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="reconciliationAmountUsd" label="已对账USD" width="100px">
|
|
|
- </el-table-column>
|
|
|
- <!--<el-table-column-->
|
|
|
- <!-- prop="voyageNo"-->
|
|
|
- <!-- label="结算单号(暂无字段)">-->
|
|
|
- <!-- <template slot-scope="{ row }">-->
|
|
|
- <!-- <span class="textHide" >{{row.voyageNo}}</span>-->
|
|
|
- <!-- </template>-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <!--paymode-->
|
|
|
- <!--<el-table-column-->
|
|
|
- <!-- prop="paymodeH"-->
|
|
|
- <!-- label="H付费方式">-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <!--<el-table-column-->
|
|
|
- <!-- prop="paymodeM"-->
|
|
|
- <!-- label="M付费方式">-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <!--<el-table-column-->
|
|
|
- <!-- prop="eta"-->
|
|
|
- <!-- label="三检单号(暂无字段)">-->
|
|
|
- <!-- <template slot-scope="{ row }">-->
|
|
|
- <!-- <span class="textHide" >{{row.voyageNo}}</span>-->
|
|
|
- <!-- </template>-->
|
|
|
- <!--</el-table-column>-->
|
|
|
- <el-table-column prop="remarkss" label="备注" width="100px">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input style="width: 100%;" v-model="scope.row.remarkss" v-if="brfalse" size="mini"
|
|
|
- autocomplete="off" clearable placeholder="请输入备注">
|
|
|
- </el-input>
|
|
|
- <span v-else>{{ scope.row.remarkss }}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ <avue-crud :option="option" :data="tableData" id="out-table" ref="crud"
|
|
|
+ @selection-change="handleSelectionChange" :header-cell-style="tableHeaderCellStyle"
|
|
|
+ :row-class-name="rowClassName" :cell-style="cellStyle"
|
|
|
+ @resetColumn="resetColumn('crud', 'option', 'optionBack', 455)"
|
|
|
+ @saveColumn="saveColumn('crud', 'option', 'optionBack', 455)">
|
|
|
+ <template slot="menuLeft">
|
|
|
+ <slot name="menuLeft"></slot>
|
|
|
+ </template>
|
|
|
+ <tempalte slot="currentStlAmountRMB" slot-scope="{ row }">
|
|
|
+ <el-input-number v-if="brfalse" v-model="row.currentStlAmountRMB" @change="armbChange(row)"
|
|
|
+ :controls="false" placeholder="请输入 本次对账CNY" size="mini" style="width: 100%;"
|
|
|
+ :disabled="row.currentStlCurCode != 'CNY'"></el-input-number>
|
|
|
+ <span v-else>{{ row.currentStlAmountRMB }}</span>
|
|
|
+ </tempalte>
|
|
|
+ <tempalte slot="currentStlAmountUSD" slot-scope="{ row }">
|
|
|
+ <el-input-number v-if="brfalse" v-model="row.currentStlAmountUSD" @change="ausdChange(row)"
|
|
|
+ :controls="false" placeholder="请输入 本次对账USD" size="mini" style="width: 100%;"
|
|
|
+ :disabled="row.currentStlCurCode != 'USD'"></el-input-number>
|
|
|
+ <span v-else>{{ row.currentStlAmountUSD }}</span>
|
|
|
+ </tempalte>
|
|
|
+ <template slot="stlAmountDr" slot-scope="{ row }">
|
|
|
+ <span v-if="row.dc == 'D'">{{ row.stlAmountDr }}</span>
|
|
|
+ <span v-if="row.dc == 'C'">{{ row.stlAmountCr }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="stlAmountDrUSD" slot-scope="{ row }">
|
|
|
+ <span v-if="row.dc == 'D'">{{ row.stlAmountDrUSD }}</span>
|
|
|
+ <span v-if="row.dc == 'C'">{{ row.stlAmountCrUSD }}</span>
|
|
|
+ </template>
|
|
|
+ <template slot="remarkss" slot-scope="{ row }">
|
|
|
+ <el-input style="width: 100%;" v-model="row.remarkss" v-if="brfalse" size="mini" autocomplete="off"
|
|
|
+ clearable placeholder="请输入 备注">
|
|
|
+ </el-input>
|
|
|
+ <span v-else>{{ row.remarkss }}</span>
|
|
|
+ </template>
|
|
|
+ </avue-crud>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -275,16 +75,254 @@ export default {
|
|
|
ifInvoiceData: [], // 是否数据
|
|
|
invoicelosDara: [],// 发票
|
|
|
curCodeData: [], // 币种
|
|
|
+ option: {},
|
|
|
+ optionBack: {
|
|
|
+ height: 'auto',
|
|
|
+ calcHeight: 30,
|
|
|
+ menuWidth: 60,
|
|
|
+ tip: false,
|
|
|
+ menu: false,
|
|
|
+ border: true,
|
|
|
+ addBtn: false,
|
|
|
+ viewBtn: false,
|
|
|
+ editBtn: false,
|
|
|
+ delBtn: false,
|
|
|
+ refreshBtn: false,
|
|
|
+ index: true,
|
|
|
+ selection: true,
|
|
|
+ align: 'center',
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: "收付",
|
|
|
+ prop: "dc",
|
|
|
+ width: 60,
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '收',
|
|
|
+ value: 'D'
|
|
|
+ }, {
|
|
|
+ label: '付',
|
|
|
+ value: 'C'
|
|
|
+ }],
|
|
|
+ overHidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "开票状态",
|
|
|
+ prop: "isInvoice",
|
|
|
+ width: 80,
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '开票',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '禁止开票',
|
|
|
+ value: 3
|
|
|
+ }],
|
|
|
+ overHidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "原业务编号",
|
|
|
+ prop: "billNo",
|
|
|
+ width: 120,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发票号",
|
|
|
+ prop: "invoiceNo",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "费用名称",
|
|
|
+ prop: "feeCnName",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "结算单位",
|
|
|
+ prop: "corpCnName",
|
|
|
+ width: 120,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "MB/L NO",
|
|
|
+ prop: "mblno",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "本次对账CNY",
|
|
|
+ prop: "currentStlAmountRMB",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "本次对账USD",
|
|
|
+ prop: "currentStlAmountUSD",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "币种",
|
|
|
+ prop: "currentStlCurCode",
|
|
|
+ width: 60,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "汇率",
|
|
|
+ prop: "currentStlExrate",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已结算CNY",
|
|
|
+ prop: "stlAmountDr",
|
|
|
+ width: 90,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已结算USD",
|
|
|
+ prop: "stlAmountDrUSD",
|
|
|
+ width: 90,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "对账",
|
|
|
+ prop: "isChecked",
|
|
|
+ width: 60,
|
|
|
+ overHidden: true,
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '否',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '是',
|
|
|
+ value: 1
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "签收",
|
|
|
+ prop: "isSignfor",
|
|
|
+ width: 60,
|
|
|
+ overHidden: true,
|
|
|
+ type: 'select',
|
|
|
+ dicData: [{
|
|
|
+ label: '否',
|
|
|
+ value: 0
|
|
|
+ }, {
|
|
|
+ label: '是',
|
|
|
+ value: 1
|
|
|
+ }],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "ETD",
|
|
|
+ prop: "etd",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "账单编号",
|
|
|
+ prop: "accBillNo",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "签收人",
|
|
|
+ prop: "signforName",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "签收日期",
|
|
|
+ prop: "signforDate",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "BOOKINGNO",
|
|
|
+ prop: "bookingNo",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "HB/L NO",
|
|
|
+ prop: "hblno",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "船名",
|
|
|
+ prop: "vesselCnName",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "航次",
|
|
|
+ prop: "voyageNo",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发票CNY",
|
|
|
+ prop: "currentInvoiceAmountRMB",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "发票USD",
|
|
|
+ prop: "currentInvoiceAmountUSD",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "箱量",
|
|
|
+ prop: "quantityCntrTypesDescr",
|
|
|
+ width: 80,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "应对账CNY",
|
|
|
+ prop: "unsettledAmountRMB",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "应对账USD",
|
|
|
+ prop: "unsettledAmountUSD",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已对账CNY",
|
|
|
+ prop: "reconciliationAmount",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "已对账USD",
|
|
|
+ prop: "reconciliationAmountUsd",
|
|
|
+ width: 100,
|
|
|
+ overHidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "备注",
|
|
|
+ prop: "remarkss",
|
|
|
+ width: 120,
|
|
|
+ overHidden: true
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ this.option = await this.getColumnData(this.getColumnName(455), this.optionBack);
|
|
|
this.isSignforWorkDicts()
|
|
|
this.invoicelosWorkDictsfun()
|
|
|
},
|
|
|
methods: {
|
|
|
armbChange(row) {
|
|
|
if (Number(row.amount - row.reconciliationAmount) > 0) {
|
|
|
- if (Number(row.currentStlAmountRMB)<0) {
|
|
|
+ if (Number(row.currentStlAmountRMB) < 0) {
|
|
|
row.currentStlAmountRMB = 0
|
|
|
return this.$message.error("本次对账金额不能输入负数");
|
|
|
}
|
|
|
@@ -294,7 +332,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (Number(row.amount - row.reconciliationAmount) < 0) {
|
|
|
- if(row.currentStlAmountRMB>=0){
|
|
|
+ if (row.currentStlAmountRMB >= 0) {
|
|
|
row.currentStlAmountRMB = Number(row.amount - row.reconciliationAmount)
|
|
|
return this.$message.error("本次对账金额不能输入非负数");
|
|
|
}
|
|
|
@@ -307,7 +345,7 @@ export default {
|
|
|
},
|
|
|
ausdChange(row) {
|
|
|
if (Number(row.amount - row.reconciliationAmount) > 0) {
|
|
|
- if (Number(row.currentStlAmountUSD)<0) {
|
|
|
+ if (Number(row.currentStlAmountUSD) < 0) {
|
|
|
row.currentStlAmountUSD = 0
|
|
|
return this.$message.error("本次对账金额不能输入负数");
|
|
|
}
|
|
|
@@ -317,12 +355,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (Number(row.amount - row.reconciliationAmount) < 0) {
|
|
|
- if(row.currentStlAmountUSD>=0){
|
|
|
- row.currentStlAmountUSD = Number(row.amount - row.reconciliationAmount)
|
|
|
+ if (row.currentStlAmountUSD >= 0) {
|
|
|
+ row.currentStlAmountUSD = Number(row.amount - row.reconciliationAmount)
|
|
|
return this.$message.error("本次对账金额不能输入非负数");
|
|
|
}
|
|
|
if (Number(row.currentStlAmountUSD) < Number(row.amount - row.reconciliationAmount)) {
|
|
|
- row.currentStlAmountUSD = Number(row.amount - row.reconciliationAmount)
|
|
|
+ row.currentStlAmountUSD = Number(row.amount - row.reconciliationAmount)
|
|
|
return this.$message.error("本次对账金额不能超过未对账金额");
|
|
|
}
|
|
|
}
|
|
|
@@ -512,9 +550,27 @@ export default {
|
|
|
rowStyle = 'color:#8cb24b;'
|
|
|
} else if (row.dc == 'C') {
|
|
|
rowStyle = 'color:#F56C6C;'
|
|
|
- } else { }
|
|
|
+ }
|
|
|
return rowStyle + 'padding:0px;fontSize:12px'
|
|
|
},
|
|
|
+ //自定义列保存
|
|
|
+ async saveColumn(ref, option, optionBack, code) {
|
|
|
+ const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ //关闭窗口
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //自定义列重置
|
|
|
+ async resetColumn(ref, option, optionBack, code) {
|
|
|
+ this[option] = this[optionBack];
|
|
|
+ const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
|
|
|
+ if (inSave) {
|
|
|
+ this.$message.success("重置成功");
|
|
|
+ this.$refs[ref].$refs.dialogColumn.columnBox = false;
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
// 按住ctrl实现多选 设置监听keydown事件,以及keyup事件,
|