|
@@ -8,10 +8,10 @@
|
|
<ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
|
|
<ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
|
|
<ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
|
|
<ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
|
|
<ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
|
|
<ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
|
|
- <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlepass()">通过
|
|
|
|
- </ws-button>
|
|
|
|
- <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlereject()">驳回
|
|
|
|
|
|
+ <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlepass()">请款
|
|
</ws-button>
|
|
</ws-button>
|
|
|
|
+ <!-- <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlereject()">驳回
|
|
|
|
+ </ws-button> -->
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.payment`" @click="handlepayment">付款
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.payment`" @click="handlepayment">付款
|
|
</ws-button>
|
|
</ws-button>
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.draw`" @click="handleninvoice">开发票
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.draw`" @click="handleninvoice">开发票
|
|
@@ -44,8 +44,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<div style="color:red">注:审核时,同一运输阶段勾选任意复选框,当前运输阶段下所有条目都通过审核!</div>
|
|
<div style="color:red">注:审核时,同一运输阶段勾选任意复选框,当前运输阶段下所有条目都通过审核!</div>
|
|
</el-row>
|
|
</el-row>
|
|
- <el-table class="wenzi" :data="warehouseList.records" style="width: 100%; margin-top: 20px" ref="warehouseList"
|
|
|
|
- border :summary-method="getSummaries" show-summary @row-click="handleRowClick"
|
|
|
|
|
|
+ <el-table class="wenzi" :data="warehouseList.records" style="width: 100%; margin-top: 20px" ref="warehouseList" :summary-method="getSummaries" show-summary @row-click="handleRowClick"
|
|
@selection-change="handleSelectionChange">
|
|
@selection-change="handleSelectionChange">
|
|
<el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
|
|
<el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
<el-table-column type="index" label="序号" width="50"></el-table-column>
|
|
@@ -104,14 +103,14 @@
|
|
<!--改结算重量-->
|
|
<!--改结算重量-->
|
|
<i @click="changesettlementWeight(scope.row)" v-if="
|
|
<i @click="changesettlementWeight(scope.row)" v-if="
|
|
(scope.row.settlementWeightchange &&
|
|
(scope.row.settlementWeightchange &&
|
|
- scope.row.approveStatus == '待物流部审核') ||
|
|
|
|
|
|
+ scope.row.status == '待请款') ||
|
|
(scope.row.settlementWeightchange &&
|
|
(scope.row.settlementWeightchange &&
|
|
scope.row.status == '已驳回')
|
|
scope.row.status == '已驳回')
|
|
" class="iconfont icon-dui"></i>
|
|
" class="iconfont icon-dui"></i>
|
|
<img v-if="
|
|
<img v-if="
|
|
(!scope.row.settlementWeightchange &&
|
|
(!scope.row.settlementWeightchange &&
|
|
scope.row.settlementWeight &&
|
|
scope.row.settlementWeight &&
|
|
- scope.row.approveStatus == '待物流部审核') ||
|
|
|
|
|
|
+ scope.row.status == '待请款') ||
|
|
(!scope.row.settlementWeightchange &&
|
|
(!scope.row.settlementWeightchange &&
|
|
scope.row.settlementWeight &&
|
|
scope.row.settlementWeight &&
|
|
scope.row.status == '已驳回')
|
|
scope.row.status == '已驳回')
|
|
@@ -126,16 +125,14 @@
|
|
<!--改扣款-->
|
|
<!--改扣款-->
|
|
<i @click="changedeductionAmount(scope.row)" v-if="
|
|
<i @click="changedeductionAmount(scope.row)" v-if="
|
|
(scope.row.deductionAmountchange &&
|
|
(scope.row.deductionAmountchange &&
|
|
- scope.row.approveStatus == '待物流部审核') ||
|
|
|
|
|
|
+ scope.row.status == '待请款') ||
|
|
(scope.row.deductionAmountchange &&
|
|
(scope.row.deductionAmountchange &&
|
|
scope.row.status == '已驳回')
|
|
scope.row.status == '已驳回')
|
|
" class="iconfont icon-dui"></i>
|
|
" class="iconfont icon-dui"></i>
|
|
<img v-if="
|
|
<img v-if="
|
|
(!scope.row.deductionAmountchange &&
|
|
(!scope.row.deductionAmountchange &&
|
|
- scope.row.deductionAmount &&
|
|
|
|
- scope.row.approveStatus == '待物流部审核') ||
|
|
|
|
|
|
+ scope.row.status == '待请款') ||
|
|
(!scope.row.deductionAmountchange &&
|
|
(!scope.row.deductionAmountchange &&
|
|
- scope.row.deductionAmount &&
|
|
|
|
scope.row.status == '已驳回')
|
|
scope.row.status == '已驳回')
|
|
" width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
" width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
|
|
src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
|
|
src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
|
|
@@ -164,7 +161,14 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column width="150" class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
|
|
<el-table-column width="150" class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
|
|
- <el-table-column class="table_td" label="账户" prop="">
|
|
|
|
|
|
+ <el-table-column width="150" class="table_td" label="司机/车队" prop="name">
|
|
|
|
+ <template
|
|
|
|
+ slot-scope="scope">
|
|
|
|
+ {{ scope.row.name }}
|
|
|
|
+ <span v-if="scope.row.fleetFlag==1">(队)</span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <!-- <el-table-column class="table_td" label="账户" prop="">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div style="
|
|
<div style="
|
|
display: inline-block;
|
|
display: inline-block;
|
|
@@ -176,7 +180,7 @@
|
|
查看
|
|
查看
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column label="状态" prop="status" width="100px">
|
|
<el-table-column label="状态" prop="status" width="100px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-if="scope.row.approveStatus != null">{{
|
|
<span v-if="scope.row.approveStatus != null">{{
|
|
@@ -310,7 +314,7 @@
|
|
<!--付款截图 -->
|
|
<!--付款截图 -->
|
|
<WinseaContentModal v-model="paymentImg" title="付款截图信息" @on-cancel="handleClose2">
|
|
<WinseaContentModal v-model="paymentImg" title="付款截图信息" @on-cancel="handleClose2">
|
|
<p>查看付款截图</p>
|
|
<p>查看付款截图</p>
|
|
- <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
|
|
|
|
|
|
+ <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" :comp-id="compId" :appendix-ids="paymentScreenshot1" :size-limit="size"
|
|
/>
|
|
/>
|
|
<!-- <div v-for="item in paymentScreenshot1">
|
|
<!-- <div v-for="item in paymentScreenshot1">
|
|
<img style="width: 100px; height: 100px" :src="item" alt="" />
|
|
<img style="width: 100px; height: 100px" :src="item" alt="" />
|
|
@@ -326,6 +330,7 @@ import {
|
|
autocontract,
|
|
autocontract,
|
|
autopaymoney,
|
|
autopaymoney,
|
|
openinvoicelist,
|
|
openinvoicelist,
|
|
|
|
+ submitlogistics
|
|
// postaudit,
|
|
// postaudit,
|
|
// getselectctcontractno,
|
|
// getselectctcontractno,
|
|
} from '@/model/statisticalReport/index'
|
|
} from '@/model/statisticalReport/index'
|
|
@@ -404,7 +409,7 @@ export default {
|
|
deptBudgetTotal: 0,
|
|
deptBudgetTotal: 0,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 10,
|
|
pageSize: 10,
|
|
- searchType: '1',
|
|
|
|
|
|
+ searchType: '',
|
|
manualFlag: '',
|
|
manualFlag: '',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
startAddress:'',
|
|
startAddress:'',
|
|
@@ -482,6 +487,9 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ warehouseNameChange(){
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
onChange() {
|
|
onChange() {
|
|
this.$refs.upload
|
|
this.$refs.upload
|
|
.handleSaveBill()
|
|
.handleSaveBill()
|
|
@@ -864,7 +872,7 @@ export default {
|
|
(String(this.deductionAmount).indexOf('.') + 1) >
|
|
(String(this.deductionAmount).indexOf('.') + 1) >
|
|
2) ||
|
|
2) ||
|
|
(this.deductionAmount && this.deductionAmount > 100000) ||
|
|
(this.deductionAmount && this.deductionAmount > 100000) ||
|
|
- (this.deductionAmount && this.deductionAmount < 1)
|
|
|
|
|
|
+ (this.deductionAmount && this.deductionAmount < 0)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '扣款金额输入错误',
|
|
message: '扣款金额输入错误',
|
|
@@ -921,7 +929,7 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.paymentImg = true
|
|
this.paymentImg = true
|
|
}
|
|
}
|
|
- this.paymentScreenshot1 = row.paymentScreenshot.split('$')
|
|
|
|
|
|
+ this.paymentScreenshot1 = row.paymentScreenshot
|
|
},
|
|
},
|
|
//审核
|
|
//审核
|
|
audit(item, index, status, status2, reason) {
|
|
audit(item, index, status, status2, reason) {
|
|
@@ -1002,19 +1010,35 @@ export default {
|
|
if (this.modification.length == 0) {
|
|
if (this.modification.length == 0) {
|
|
this.$message.warning('请选择要通过的条目')
|
|
this.$message.warning('请选择要通过的条目')
|
|
} else {
|
|
} else {
|
|
- this.$confirm(`是否确定通过?`, {
|
|
|
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
|
+ if(this.modification[i].status=='待请款'&&this.modification[i].approveStatus||this.modification[i].status!='待请款'){
|
|
|
|
+ this.$message.warning('请选择待请款的条目')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if(!this.modification[i].unloadingWeight){
|
|
|
|
+ this.$message.warning('请选择已卸车的车辆')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ this.$confirm(`是否确定请款?`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
|
+ submitlogistics({tranSettlementReportList:this.modification}).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('请款成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
//批次通过 选中列表中 数据一个batchId, 选中列表去重
|
|
//批次通过 选中列表中 数据一个batchId, 选中列表去重
|
|
- var obj = {};
|
|
|
|
- that.modification = that.modification.reduce(function (item, next) {
|
|
|
|
- obj[next.batchId] ? '' : obj[next.batchId] = true && item.push(next);
|
|
|
|
- return item;
|
|
|
|
- }, []);
|
|
|
|
- console.log('去重后提交数据', that.modification);
|
|
|
|
- that.audit(this.modification[0], 0, true, 2)
|
|
|
|
|
|
+ // var obj = {};
|
|
|
|
+ // that.modification = that.modification.reduce(function (item, next) {
|
|
|
|
+ // obj[next.batchId] ? '' : obj[next.batchId] = true && item.push(next);
|
|
|
|
+ // return item;
|
|
|
|
+ // }, []);
|
|
|
|
+ // console.log('去重后提交数据', that.modification);
|
|
|
|
+ // that.audit(this.modification[0], 0, true, 2)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|