|
@@ -7,6 +7,7 @@
|
|
|
placeholder="请输入系统编号"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ style="width:200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -16,6 +17,7 @@
|
|
|
placeholder="请输入货权方"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ style="width:200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -25,6 +27,7 @@
|
|
|
filterable
|
|
|
remote
|
|
|
clearable
|
|
|
+ size="small"
|
|
|
style="width: 200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
:remote-method="corpsRemoteMethod"
|
|
@@ -42,7 +45,7 @@
|
|
|
<el-date-picker
|
|
|
type="daterange"
|
|
|
size="small"
|
|
|
- style="width: 300px"
|
|
|
+ style="width: 240px"
|
|
|
v-model="tableFilter.fAccbilldate"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
@@ -106,8 +109,8 @@
|
|
|
<el-table v-loading="loading" :data="chargeList" @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
|
<el-table-column label="序号" type="index" width="55" align="center"/>
|
|
|
- <el-table-column label="系统编号" :show-overflow-tooltip="true" align="center" prop="fBillno"/>
|
|
|
- <el-table-column label="货权方" :show-overflow-tooltip="true" align="center" prop="fCtrlcorpid"/>
|
|
|
+ <el-table-column label="系统编号" :show-overflow-tooltip="true" align="center" prop="fBillno" width="120"/>
|
|
|
+ <el-table-column label="货权方" :show-overflow-tooltip="true" align="center" prop="fCtrlcorpid" width="120"/>
|
|
|
<!-- <el-table-column label="账单日期" align="center" prop="fAccbilldate" width="180">-->
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
<!-- <span>{{ parseTime(scope.row.fAccbilldate, '{y}-{m}-{d}') }}</span>-->
|
|
@@ -115,12 +118,12 @@
|
|
|
<!-- </el-table-column>-->
|
|
|
<!-- <el-table-column label="制单部门" align="center" prop="fId"/>-->
|
|
|
<!-- <el-table-column label="结算单位" align="center" prop="fCorpid"/>-->
|
|
|
- <el-table-column label="对账日期" align="center" prop="fAccbilldate"/>
|
|
|
- <el-table-column label="提单号" align="center" prop="tMblno"/>
|
|
|
- <el-table-column label="应收合计" align="center" prop="fAmtdr"/>
|
|
|
- <el-table-column label="应付合计" align="center" prop="fAmtcr"/>
|
|
|
- <el-table-column label="备注" align="center" prop="fRemarks"/>
|
|
|
- <el-table-column label="状态" align="center" prop="fBillstatus">
|
|
|
+ <el-table-column label="对账日期" align="center" prop="fAccbilldate" width="120"/>
|
|
|
+ <el-table-column label="提单号" align="center" prop="tMblno" width="120"/>
|
|
|
+ <el-table-column label="应收合计" align="center" prop="fAmtdr" width="120"/>
|
|
|
+ <el-table-column label="应付合计" align="center" prop="fAmtcr" width="120"/>
|
|
|
+ <el-table-column label="备注" align="center" prop="fRemarks" width="120"/>
|
|
|
+ <el-table-column label="状态" align="center" prop="fBillstatus" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.fBillstatus == '1'">保存</span>
|
|
|
<span v-else-if="scope.row.fBillstatus == '2'">暂存</span>
|
|
@@ -130,7 +133,7 @@
|
|
|
<span v-else-if="scope.row.fBillstatus == '6'">审核完成</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width">
|
|
|
+ <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
size="mini"
|
|
@@ -138,7 +141,6 @@
|
|
|
icon="el-icon-view"
|
|
|
@click="check(scope.row,0)"
|
|
|
v-hasPermi="['finance:contrast:edit']"
|
|
|
- v-if="scope.row.fBillstatus == 6"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -209,6 +211,7 @@
|
|
|
clearable
|
|
|
size="small"
|
|
|
:disabled="notChange"
|
|
|
+ style="width:200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
|
</el-form-item>
|
|
@@ -218,6 +221,7 @@
|
|
|
filterable
|
|
|
remote
|
|
|
clearable
|
|
|
+ size="small"
|
|
|
style="width: 200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
:remote-method="corpsRemoteMethod"
|
|
@@ -248,6 +252,7 @@
|
|
|
placeholder="请输入系统编号"
|
|
|
clearable
|
|
|
disabled
|
|
|
+ style="width: 200px"
|
|
|
size="small"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
@@ -258,6 +263,7 @@
|
|
|
placeholder="请输入备注"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ style="width:200px"
|
|
|
:disabled="notChange"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
/>
|
|
@@ -267,15 +273,15 @@
|
|
|
<el-button type="warning" size="small" @click="charGe" :disabled="notChange" v-if="queryParams.fBillstatus < '4'">付费</el-button>
|
|
|
<el-button type="primary" size="small" @click="confirmCharge" :disabled="notChange" v-if="queryParams.fBillstatus < '4'">确认付费</el-button>
|
|
|
<el-button type="success" size="small" @click="revokeCharge" v-if="queryParams.fBillstatus === '6'">撤销付费</el-button>
|
|
|
- <el-button type="info" size="small" @click="printing" :disabled="notChange">打印</el-button>
|
|
|
+<!-- <el-button type="info" size="small" @click="printing">打印</el-button>-->
|
|
|
<!-- <el-button type="danger" size="small" :disabled="notChange" v-show="Lander == Operator">撤销审批</el-button>-->
|
|
|
<el-button type="danger" size="small" :disabled="tablefilter" @click="approvalRevocation" v-show="queryParams.fBillstatus === '4'">撤销审批</el-button>
|
|
|
</div>
|
|
|
<el-table v-loading="loading" :data="increase_s" @selection-change="handleSelectionChange_s">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center"/> -->
|
|
|
- <el-table-column label="序号" type="index" width="55" align="center"/>
|
|
|
+ <el-table-column label="序号" type="index" align="center"/>
|
|
|
<el-table-column label="提单号" align="center" prop="fMblno"/>
|
|
|
- <el-table-column label="存货单号" align="center" prop="fBscorpno"/>if
|
|
|
+ <el-table-column label="存货单号" align="center" prop="fBscorpno"/>
|
|
|
<el-table-column label="品名" align="center" prop="fProductName"/>
|
|
|
<el-table-column label="业务日期" align="center" prop="fBsdate">
|
|
|
<template slot-scope="scope">
|
|
@@ -314,10 +320,10 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button v-if="approve === true" @click="immediateApproval">审批</el-button>
|
|
|
- <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
|
|
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
|
|
<approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
|
|
|
+ <el-button v-if="approve === true" @click="immediateApproval">审批</el-button>
|
|
|
+ <el-button type="primary" v-if="notChange" @click="addOrUpdateHandle">查看审批流</el-button>
|
|
|
<el-button type="primary" @click="submitForm" :disabled="notChange">保 存</el-button>
|
|
|
<el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
|
|
|
<el-button v-if="cancelButton === false" @click="homePage">取 消</el-button>
|
|
@@ -333,6 +339,7 @@
|
|
|
filterable
|
|
|
remote
|
|
|
clearable
|
|
|
+ size="small"
|
|
|
style="width: 200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
:remote-method="corpsRemoteMethod"
|
|
@@ -352,6 +359,7 @@
|
|
|
filterable
|
|
|
remote
|
|
|
clearable
|
|
|
+ size="small"
|
|
|
style="width: 200px"
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
:remote-method="corpsRemoteMethod"
|
|
@@ -366,10 +374,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="提单号" prop="tMblno">
|
|
|
- <el-input v-model="queryParameter.fMblno" placeholder="请输入提单号" style="width: 200px;"/>
|
|
|
+ <el-input v-model="queryParameter.fMblno" placeholder="请输入提单号" style="width: 200px;" size="small"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="对账单号" prop="fStatementNo">
|
|
|
- <el-input v-model="queryParameter.fStatementNo" placeholder="请输入提单号" style="width: 200px;"/>
|
|
|
+ <el-input v-model="queryParameter.fStatementNo" placeholder="请输入提单号" size="small" style="width: 200px;"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="费用名称" prop="fFeeid">
|
|
|
<template>
|
|
@@ -377,6 +385,8 @@
|
|
|
v-model="queryParameter.fFeeid"
|
|
|
filterable
|
|
|
remote
|
|
|
+ size="small"
|
|
|
+ style="width:200px"
|
|
|
:remote-method="fWRemoteMethod"
|
|
|
placeholder="费用名称"
|
|
|
multiple
|
|
@@ -389,7 +399,7 @@
|
|
|
<el-form-item label="审核日期" prop="timeExamine">
|
|
|
<el-date-picker
|
|
|
size="small"
|
|
|
- style="width: 200px"
|
|
|
+ style="width: 240px"
|
|
|
v-model="queryParameter.timeExamine"
|
|
|
type="daterange"
|
|
|
start-placeholder="开始日期"
|
|
@@ -402,7 +412,7 @@
|
|
|
<el-form-item label="出入库日期" label-width="85px" prop="fAccbilldate">
|
|
|
<el-date-picker
|
|
|
size="small"
|
|
|
- style="width: 200px"
|
|
|
+ style="width: 240px"
|
|
|
v-model="queryParameter.timeInterval"
|
|
|
type="daterange"
|
|
|
start-placeholder="开始日期"
|
|
@@ -417,7 +427,7 @@
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery_s">重置</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <el-table v-loading="loading" :data="chargeList_s" ref="chargeList" show-summary :summary-method="getSummaries"
|
|
|
+ <el-table v-loading="loading" :data="chargeList_s" ref="chargeList" show-summary :summary-method="getSum"
|
|
|
@selection-change="handleSelectionChange_s"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
@@ -436,7 +446,7 @@
|
|
|
<el-table-column label="审核日期" align="center" prop="fReviewDate"/>
|
|
|
<el-table-column label="费用名称" align="center" prop="fFeeName"/>
|
|
|
<el-table-column label="金额" align="center" prop="fAmtdr"/>
|
|
|
- <el-table-column label="本次金额" align="center" prop="fAmt">
|
|
|
+ <el-table-column label="本次金额" align="center" prop="fAmt" width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-input
|
|
|
v-model="scope.row.fAmt"
|
|
@@ -455,6 +465,7 @@
|
|
|
placeholder="请输入备注"
|
|
|
clearable
|
|
|
size="small"
|
|
|
+ width="100"
|
|
|
/>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -465,6 +476,8 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <!-- 打印页面-->
|
|
|
<el-dialog
|
|
|
:visible.sync="printStatus"
|
|
|
width="80%"
|
|
@@ -472,23 +485,23 @@
|
|
|
>
|
|
|
<el-table id="print_area2" v-loading="loading" ref="table" :data="printObject" @selection-change="handleSelectionChange_s">
|
|
|
<!-- <el-table-column type="selection" width="55" align="center"/> -->
|
|
|
- <el-table-column label="序号" type="index" width="55" align="center"/>
|
|
|
- <el-table-column label="提单号" align="center" prop="fMblno"/>
|
|
|
- <el-table-column label="存货单号" align="center" prop="fBscorpno"/>
|
|
|
- <el-table-column label="品名" align="center" prop="fProductName"/>
|
|
|
- <el-table-column label="业务日期" align="center" prop="fBsdate">
|
|
|
+ <el-table-column label="序号" type="index" width="70" align="center"/>
|
|
|
+ <el-table-column label="提单号" align="center" prop="fMblno" width="120"/>
|
|
|
+ <el-table-column label="存货单号" align="center" prop="fBscorpno" width="120"/>
|
|
|
+ <el-table-column label="品名" align="center" prop="fProductName" width="120"/>
|
|
|
+ <el-table-column label="业务日期" align="center" prop="fBsdate" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.fBsdate.slice(0, 10)}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="费用名称" align="center" prop="fFeeName"/>
|
|
|
- <el-table-column label="收/付" align="center" prop="fSrcdc">
|
|
|
+ <el-table-column label="费用名称" align="center" prop="fFeeName" width="120"/>
|
|
|
+ <el-table-column label="收/付" align="center" prop="fSrcdc" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.fSrcdc =='D'">收</span>
|
|
|
<span v-else-if="scope.row.fSrcdc =='C'">付</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="业务类型" align="center" prop="fBilltype">
|
|
|
+ <el-table-column label="业务类型" align="center" prop="fBilltype" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="scope.row.fBilltype =='SJRK'">入库</span>
|
|
|
|
|
@@ -496,14 +509,13 @@
|
|
|
<span v-else>{{ scope.row.fBilltype }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="金额" align="center" prop="fAmtdr"/>
|
|
|
- <el-table-column label="本次金额" align="center" prop="fAmt"/>
|
|
|
- <el-table-column label="备注" align="center" prop="fRemarks"/>
|
|
|
+ <el-table-column label="金额" align="center" prop="fAmtdr" width="120"/>
|
|
|
+ <el-table-column label="本次金额" align="center" prop="fAmt" width="120"/>
|
|
|
</el-table>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="printStatus = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="printSomething">确 定</el-button>
|
|
|
- </span>
|
|
|
+ <el-button type="primary" style="marginTop:10px" @click="printSomething">打印</el-button>
|
|
|
+ <el-button @click="printStatus = false">取 消</el-button>
|
|
|
+ </span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -569,6 +581,8 @@ export default {
|
|
|
showSearch: true,
|
|
|
// 总条数
|
|
|
total: 0,
|
|
|
+ totAL:0,
|
|
|
+ Ttime:0,
|
|
|
//提单号暂存
|
|
|
fMblno: '',
|
|
|
// 财务数据主表格数据
|
|
@@ -591,8 +605,8 @@ export default {
|
|
|
empty: [],
|
|
|
//导入从表传主表
|
|
|
pass: {
|
|
|
- fAmtdr: '', //应收合计
|
|
|
- fAmtcr: '', //应付合计
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
fMblno: '', //提单号
|
|
|
fName: '' //货权方
|
|
|
},
|
|
@@ -648,6 +662,15 @@ export default {
|
|
|
},
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
+ fBilltype: [
|
|
|
+ { required: true, message: ' ', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ fBillstatus: [
|
|
|
+ { required: true, message: ' ', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ fDeptid: [
|
|
|
+ { required: true, message: ' ', trigger: 'blur' }
|
|
|
+ ],
|
|
|
fToCorpid: [
|
|
|
{ required: true, message: ' ', trigger: 'blur' }
|
|
|
],
|
|
@@ -664,7 +687,6 @@ export default {
|
|
|
created() {
|
|
|
this.getList()
|
|
|
this.register()
|
|
|
-
|
|
|
},
|
|
|
activated(){
|
|
|
this.adoPt()
|
|
@@ -682,12 +704,13 @@ export default {
|
|
|
if (data.code === 200){
|
|
|
this.$message.success('撤销成功');
|
|
|
this.open = false
|
|
|
+ this.getList()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
returnData(){
|
|
|
- this.open = false
|
|
|
this.addOrUpdateVisib = false
|
|
|
+ this.open = false
|
|
|
this.homepaGe()
|
|
|
},
|
|
|
getDataList(){
|
|
@@ -695,13 +718,13 @@ export default {
|
|
|
},
|
|
|
homepaGe(){
|
|
|
let view = {
|
|
|
- fullPath: "/finance/payment",
|
|
|
+ fullPath: "/finance/charge",
|
|
|
hash: "",
|
|
|
matched: Array(2),
|
|
|
meta: Object,
|
|
|
- name: "Payment",
|
|
|
+ name: "Charge",
|
|
|
params: Object,
|
|
|
- path: "/finance/payment",
|
|
|
+ path: "/finance/charge",
|
|
|
query: Object,
|
|
|
title: "付费"
|
|
|
}
|
|
@@ -713,7 +736,6 @@ export default {
|
|
|
})
|
|
|
Global.$emit("removeCache", "closeSelectedTag", view);
|
|
|
},
|
|
|
-
|
|
|
adoPt(){
|
|
|
this.approval = this.$route.query.data
|
|
|
if (this.approval){
|
|
@@ -725,8 +747,8 @@ export default {
|
|
|
this.cancelButton = false
|
|
|
this.reset()
|
|
|
this.pass = {
|
|
|
- fAmtdr: '', //应收合计
|
|
|
- fAmtcr: '', //应付合计
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
fMblno: '', //提单号
|
|
|
fName: '', //货权方
|
|
|
fFeesName: '', //结算单位
|
|
@@ -748,15 +770,15 @@ export default {
|
|
|
homePage(){
|
|
|
this.open = false
|
|
|
let view = {
|
|
|
- fullPath: "/finance/payment",
|
|
|
+ fullPath: "/finance/charge",
|
|
|
hash: "",
|
|
|
matched: Array(2),
|
|
|
meta: Object,
|
|
|
- name: "Payment",
|
|
|
+ name: "Charge",
|
|
|
params: Object,
|
|
|
- path: "/finance/payment",
|
|
|
+ path: "/finance/charge",
|
|
|
query: Object,
|
|
|
- title: "付费",
|
|
|
+ title: "付费"
|
|
|
}
|
|
|
this.$router.push({ path: '/index'})
|
|
|
this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
|
|
@@ -826,8 +848,8 @@ export default {
|
|
|
this.tablefilter = false
|
|
|
this.reset()
|
|
|
this.pass = {
|
|
|
- fAmtdr: '', //应收合计
|
|
|
- fAmtcr: '', //应付合计
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
fMblno: '', //提单号
|
|
|
fName: '', //货权方
|
|
|
fFeesName: '', //结算单位
|
|
@@ -852,8 +874,8 @@ export default {
|
|
|
this.notChange = true
|
|
|
this.reset()
|
|
|
this.pass = {
|
|
|
- fAmtdr: '', //应收合计
|
|
|
- fAmtcr: '', //应付合计
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
fMblno: '', //提单号
|
|
|
fName: '', //货权方
|
|
|
fFeesName: '', //结算单位
|
|
@@ -886,10 +908,11 @@ export default {
|
|
|
printSomething() {
|
|
|
console.log('22222')
|
|
|
// 此处的style即为打印时的样式
|
|
|
- const style ='table tr td,th { border-collapse: collapse;padding:15px;border:.5px #000 solid;text-align:center;}'
|
|
|
+ const style ='table tr td,th { border-collapse: collapse;padding:0px;border:.5px #000 solid;text-align:center;}'
|
|
|
print({
|
|
|
printable: 'print_area2',
|
|
|
type: 'html',
|
|
|
+ header:"付费表",
|
|
|
style: style, // 亦可使用引入的外部css;
|
|
|
scanStyles: false
|
|
|
})
|
|
@@ -904,7 +927,7 @@ export default {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
- // 确认收费
|
|
|
+ // 确认付费
|
|
|
confirmCharge() {
|
|
|
console.log(this.increase_s)
|
|
|
this.$refs['ruless'].validate(valid => {
|
|
@@ -930,28 +953,46 @@ export default {
|
|
|
this.queryParameter = {
|
|
|
fToCorpid: this.queryParams.fCorpid,
|
|
|
}
|
|
|
+ this.chargeList_s = []
|
|
|
// this.queryParameter.fToCorpid = this.queryParams.fCorpid
|
|
|
this.innerVisible = true
|
|
|
},
|
|
|
- getSummaries(param) {
|
|
|
- const { columns, data } = param
|
|
|
- const sums = []
|
|
|
+ getSum(param){
|
|
|
+ const {columns,data} = param;
|
|
|
+ const sums = [];
|
|
|
columns.forEach((column, index) => {
|
|
|
- const values = data.map(item => Number(item[column.property]))
|
|
|
- if (!values.every(value => isNaN(value))) {
|
|
|
- sums[index] = values.reduce((prev, curr) => {
|
|
|
- const value = Number(curr)
|
|
|
- if (!isNaN(value)) {
|
|
|
- return prev + curr
|
|
|
- } else {
|
|
|
- return prev
|
|
|
- }
|
|
|
- }, 0)
|
|
|
- sums[0] = '合计'
|
|
|
- sums[3] = ''
|
|
|
+ sums[0] = '合计'
|
|
|
+ sums[10] = this.totAL.toFixed(2)
|
|
|
+ sums[9] = this.Ttime.toFixed(2)
|
|
|
+ });
|
|
|
+ return sums;
|
|
|
+ },
|
|
|
+ // 导入多选框
|
|
|
+ handleSelectionChange_s(selection) {
|
|
|
+ this.totAL = 0
|
|
|
+ this.Ttime = 0
|
|
|
+ this.selection = selection
|
|
|
+ console.log(selection)
|
|
|
+ if(this.selection.length == 0){
|
|
|
+ for (let item in this.chargeList_s){
|
|
|
+ this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
+ this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
|
}
|
|
|
- })
|
|
|
- return sums
|
|
|
+ }else {
|
|
|
+ for (let index in selection){
|
|
|
+ this.totAL += Number(selection[index].fAmt)
|
|
|
+ this.Ttime += Number(selection[index].fAmtdr)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.getSummaries()
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ console.log(selection)
|
|
|
+ this.totAL = 0
|
|
|
+ this.ids = selection.map(item => item.fId)
|
|
|
+ this.single = selection.length !== 1
|
|
|
+ this.multiple = !selection.length
|
|
|
},
|
|
|
imgChangeI(row) {
|
|
|
if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
|
|
@@ -959,20 +1000,30 @@ export default {
|
|
|
this.state_s = true
|
|
|
}
|
|
|
console.log('数据:' + JSON.stringify(this.selection))
|
|
|
- // this.$refs.chargeList.clearSelection()
|
|
|
+ if (this.selection.length !== 0){
|
|
|
+ this.totAL = 0
|
|
|
+ this.Ttime = 0
|
|
|
+ for (let item in this.selection){
|
|
|
+ this.totAL += Number(this.selection[item].fAmt)
|
|
|
+ this.Ttime += Number(this.selection[item].fAmtdr)
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ this.totAL = 0
|
|
|
+ this.Ttime = 0
|
|
|
+ for (let item in this.chargeList_s){
|
|
|
+ this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
+ this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
//确认导入
|
|
|
confirmImport() {
|
|
|
this.hide = true
|
|
|
- console.log(this.state_s)
|
|
|
for (let item in this.selection) {
|
|
|
- this.pass.fAmtcr = Number(this.pass.fAmtcr)
|
|
|
- this.pass.fAmtdr = Number(this.pass.fAmtdr)
|
|
|
- this.pass.fAmtcr += Number(this.selection[item].fAmt)
|
|
|
- this.pass.fAmtdr += Number(this.selection[item].fAmtdr)
|
|
|
- console.log(this.pass.fAmtcr)
|
|
|
- console.log(this.pass.fAmtdr)
|
|
|
+ this.pass.fAmtcr += Number(this.selection[item].fAmt.toFixed(2))
|
|
|
+ this.pass.fAmtdr += Number(this.selection[item].fAmtdr.toFixed(2))
|
|
|
}
|
|
|
+ console.log(this.pass)
|
|
|
if (this.state_s == true) {
|
|
|
if (this.selection.length == '0') {
|
|
|
console.log('未选择')//写入提示
|
|
@@ -1002,7 +1053,6 @@ export default {
|
|
|
} else {
|
|
|
this.pass.fName = this.nothing[0] + '...'
|
|
|
}
|
|
|
-
|
|
|
this.increase_s = this.increase_s.concat(this.selection)
|
|
|
this.queryParams.tMblno = this.pass.fMblno //提单号
|
|
|
this.queryParams.fCtrlcorpid = this.pass.fName
|
|
@@ -1072,7 +1122,6 @@ export default {
|
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1
|
|
|
this.getList()
|
|
|
- console.log(this.tableFilter)
|
|
|
},
|
|
|
/** 导入搜索 */
|
|
|
importSearch() {
|
|
@@ -1084,14 +1133,18 @@ export default {
|
|
|
this.rules = {}
|
|
|
search(this.queryParameter).then(response => {
|
|
|
this.chargeList_s = response.rows
|
|
|
- this.$message.success('查询成功');
|
|
|
+ this.$message.success('查询成功1');
|
|
|
+ for (let item in this.chargeList_s){
|
|
|
+ this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
+ this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
|
+ }
|
|
|
})
|
|
|
}else {
|
|
|
this.rules = {
|
|
|
fToCorpid: [
|
|
|
{ required: true, message: ' ', trigger: 'blur' }
|
|
|
],
|
|
|
- timeExamine: [
|
|
|
+ timeExamine: [
|
|
|
{ required: true, message: ' ', trigger: 'blur' }
|
|
|
]
|
|
|
}
|
|
@@ -1100,7 +1153,13 @@ export default {
|
|
|
if (valid) {
|
|
|
search(this.queryParameter).then(response => {
|
|
|
this.chargeList_s = response.rows
|
|
|
- this.$message.success('查询成功');
|
|
|
+ this.$message.success('查询成功2');
|
|
|
+ this.totAL = 0
|
|
|
+ this.Ttime = 0
|
|
|
+ for (let item in this.chargeList_s){
|
|
|
+ this.totAL += Number(this.chargeList_s[item].fAmt)
|
|
|
+ this.Ttime += Number(this.chargeList_s[item].fAmtdr)
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -1163,25 +1222,14 @@ export default {
|
|
|
this.fWbuOptions = response.rows
|
|
|
})
|
|
|
},
|
|
|
- // 多选框选中数据
|
|
|
- handleSelectionChange(selection) {
|
|
|
- this.ids = selection.map(item => item.fId)
|
|
|
- this.single = selection.length !== 1
|
|
|
- this.multiple = !selection.length
|
|
|
- },
|
|
|
- // 导入多选框
|
|
|
- handleSelectionChange_s(selection) {
|
|
|
- console.log(selection)
|
|
|
- this.selection = selection
|
|
|
- },
|
|
|
/** 新增按钮操作 */
|
|
|
handleAdd() {
|
|
|
this.notChange = false
|
|
|
this.hide = true
|
|
|
this.reset()
|
|
|
this.pass = {
|
|
|
- fAmtdr: '', //应收合计
|
|
|
- fAmtcr: '', //应付合计
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
fMblno: '', //提单号
|
|
|
fName: '', //货权方
|
|
|
fFeesName: '', //结算单位
|
|
@@ -1216,8 +1264,8 @@ export default {
|
|
|
this.notChange = false
|
|
|
this.reset()
|
|
|
this.pass = {
|
|
|
- fAmtdr: '', //应收合计
|
|
|
- fAmtcr: '', //应付合计
|
|
|
+ fAmtdr: 0, //应收合计
|
|
|
+ fAmtcr: 0, //应付合计
|
|
|
fMblno: '', //提单号
|
|
|
fName: '', //货权方
|
|
|
fFeesName: '', //结算单位
|
|
@@ -1258,7 +1306,6 @@ export default {
|
|
|
})
|
|
|
} else {
|
|
|
console.log(this.queryParams)
|
|
|
- // this.chargeList.fBillstatus = '1'
|
|
|
this.queryParams.fBillstatus = '1'
|
|
|
let formData = new window.FormData()
|
|
|
formData.append('tFee', JSON.stringify(this.queryParams))
|
|
@@ -1335,7 +1382,6 @@ export default {
|
|
|
console.log(this.increase_s[item])
|
|
|
this.queryParams.fAmtcr += this.increase_s[item].fAmt
|
|
|
this.queryParams.fAmtdr += this.increase_s[item].fAmtdr
|
|
|
-
|
|
|
}
|
|
|
console.log(this.queryParams.fAmtdr)
|
|
|
console.log(this.queryParams.fAmtcr)
|