Commit e7c4a787 authored by liudong1993's avatar liudong1993

1

parent 153dfc35
......@@ -173,6 +173,7 @@
</td>
<td>
<template v-if="item.OrderList.length!=1"><i class="el-icon-edit" style="cursor: pointer;" @click="ClickBind(item.Id,item.CarNum,item.SDate,item.DepartAddress,item.ArriveAddress)"></i></template>
<template v-if="item.OrderList.length==1 && item.OrderList[0].FinanceIdList && item.OrderList[0].FinanceIdList.length>1"><i class="el-icon-share" style="cursor: pointer;" @click="ClickBind2(item.Id,item.CarNum,item.SDate,item.DepartAddress,item.ArriveAddress)"></i></template>
</td>
</tr>
</table>
......@@ -207,6 +208,18 @@
<el-button type="primary" @click="BindOrder()">确 定</el-button>
</div>
</el-dialog>
<el-dialog custom-class='w400' title="绑定单据" :visible.sync="dialogFormVisible2">
<div style="margin-bottom: 20px;">{{BindContent}}</div>
<el-form>
<el-form-item label="单据ID" label-width="110px">
<el-input v-model="BindOrderId" autocomplete="off" placeholder="请输入财务单号"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible2 = false">取 消</el-button>
<el-button type="primary" @click="BindOrder2()">确 定</el-button>
</div>
</el-dialog>
<el-dialog custom-class='w400' title="高速折扣" :visible.sync="dialogGS">
<el-form>
......@@ -239,6 +252,7 @@ export default {
TotalMoney:0,
dialogFormVisible:false,
dialogFormVisible2:false,
dialogGS:false,
BindId:0,
BindOrderId:'',
......@@ -344,6 +358,30 @@ export default {
}
},err=>{})
},
ClickBind2(Id,CarNum,SDate,DepartAddress,ArriveAddress){
this.BindContent = SDate +"、"+CarNum+"、"+DepartAddress+"->"+ArriveAddress;
this.BindId = Id;
this.BindOrderId='';
this.dialogFormVisible2 = true;
},
BindOrder2(){
if(this.BindId<=0){ this.$message.error('ID未抓取,请联系管理员'); return;}
if(this.BindOrderId==""){ this.$message.error('请输入需要绑定的单据ID'); return;}
this.apipost('Financial_post_SetETCOrder',{Id:this.BindId,BindFrId:this.BindOrderId},res=>{
if(res.data.resultCode==1){
this.dialogFormVisible2 = false;
this.$message({
message: '绑定成功',
type: 'success'
});
this.GetETCData();
}else{
this.dialogFormVisible2 = false;
this.$message.error('绑定失败,请联系管理员');
}
},err=>{})
},
downloadExcel() {
this.loadingDC=true;
this.GetLocalFile("Financial_post_GetNewCarETCPPDataListToExcel", {}, `ETC差额.xls`,x=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment