Commit 18cf613b authored by 华国豪's avatar 华国豪 🙄

修改领队用款计划,新增发票申请上传附件、修改创建财务单据数据自动填充等问题...

parent 5f3d7918
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"author": "VIITTO", "author": "VIITTO",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", "dev": "node --max-old-space-size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev", "start": "npm run dev",
"lint": "eslint --ext .js,.vue src", "lint": "eslint --ext .js,.vue src",
"serve": "node --max_old_space_size=4096 node_modules/.bin/vue-cli-service serve --open", "serve": "node --max_old_space_size=4096 node_modules/.bin/vue-cli-service serve --open",
......
...@@ -139,7 +139,7 @@ var commonUtils = { ...@@ -139,7 +139,7 @@ var commonUtils = {
// 小数点前进行转化 // 小数点前进行转化
for (var i = part[0].length - 1; i >= 0; i--) { for (var i = part[0].length - 1; i >= 0; i--) {
if (part[0].length > 10) { if (part[0].length > 10) {
alertWarning("位数过大,无法计算"); // alertWarning("位数过大,无法计算");
return ""; return "";
} // 若数量超过拾亿单位,提示 } // 若数量超过拾亿单位,提示
let tmpnewchar = ""; let tmpnewchar = "";
...@@ -219,7 +219,7 @@ var commonUtils = { ...@@ -219,7 +219,7 @@ var commonUtils = {
// 小数点之后进行转化 // 小数点之后进行转化
if (Num.indexOf(".") != -1) { if (Num.indexOf(".") != -1) {
if (part[1].length > 2) { if (part[1].length > 2) {
alertWarning("小数点之后只能保留两位,系统将自动截段"); // alertWarning("小数点之后只能保留两位,系统将自动截段");
part[1] = part[1].substr(0, 2); part[1] = part[1].substr(0, 2);
} }
for (var i = 0; i < part[1].length; i++) { for (var i = 0; i < part[1].length; i++) {
......
...@@ -282,6 +282,7 @@ ...@@ -282,6 +282,7 @@
<td v-if="OrderSource==9&&GetDetail.SourceID>0" @click="jumpPage('SettlementOrder',GetDetail.SourceID,2)"> <span class="_jump_page _font_bold">国内票务</span> </td> <td v-if="OrderSource==9&&GetDetail.SourceID>0" @click="jumpPage('SettlementOrder',GetDetail.SourceID,2)"> <span class="_jump_page _font_bold">国内票务</span> </td>
<td v-else-if="OrderSource==10&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail.SourceID,3)"> <span class="_jump_page _font_bold">签证收支</span> </td> <td v-else-if="OrderSource==10&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail.SourceID,3)"> <span class="_jump_page _font_bold">签证收支</span> </td>
<td v-else-if="OrderSource==4&&GetDetail.SourceID>0"@click="jumpPage('FinancialOrder',GetDetail,4)"> <span class="_jump_page _font_bold">机票收支</span> </td> <td v-else-if="OrderSource==4&&GetDetail.SourceID>0"@click="jumpPage('FinancialOrder',GetDetail,4)"> <span class="_jump_page _font_bold">机票收支</span> </td>
<td v-if="GetDetail.TemplateId === 43" @click="jumpPlanPage('leaderReimbursement',o.TCID)"> <span class="_jump_page _font_bold">用款计划</span> </td>
</tr> </tr>
</table> </table>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-else-if="OrderSource==10"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-else-if="OrderSource==10">
...@@ -1336,6 +1337,12 @@ export default { ...@@ -1336,6 +1337,12 @@ export default {
this.loading = false; this.loading = false;
},null) },null)
}, },
jumpPlanPage(path, id){
this.$router.push({
name: path,
query: { id: id, isUpdate: false, blank: 'y'}
})
},
jumpPage(path,id,type){ jumpPage(path,id,type){
if(type==1){ if(type==1){
// let routeData = this.$router.resolve({ // let routeData = this.$router.resolve({
......
...@@ -383,7 +383,7 @@ ...@@ -383,7 +383,7 @@
<button class="normalBtn" v-if="checkboxShow" @click="Financial_post_SetBatch">{{$t('fnc.piltijiao')}}</button> <button class="normalBtn" v-if="checkboxShow" @click="Financial_post_SetBatch">{{$t('fnc.piltijiao')}}</button>
<button class="normalBtn" @click="method5()">{{$t('visa.v_daochu')}}</button> <button class="normalBtn" @click="method5()">{{$t('visa.v_daochu')}}</button>
<button class="hollowFixedBtn" @click="goUrl('WorkEntrustmentMy')">{{$t('fnc.gzweituo')}}</button> <button class="hollowFixedBtn" @click="goUrl('WorkEntrustmentMy')">{{$t('fnc.gzweituo')}}</button>
<button class="hollowFixedBtn" @click="BOSSBtn = !BOSSBtn, checkList = [], getPageList(1)" v-if="msg.Conditon === 3 && !userMenuCode">{{BOSSBtn ? '关闭一键审批' : '一键审批'}}</button> <button class="hollowFixedBtn" @click="BOSSBtn = !BOSSBtn, checkList = [], getPageList(1)" v-if="msg.Conditon === 3 && userMenuCode">{{BOSSBtn ? '关闭一键审批' : '一键审批'}}</button>
<button class="hollowFixedBtn" v-if="msg.Conditon === 3 && BOSSBtn" @click="BOSSBtnClick">{{$t('ios.shenpi')}}</button> <button class="hollowFixedBtn" v-if="msg.Conditon === 3 && BOSSBtn" @click="BOSSBtnClick">{{$t('ios.shenpi')}}</button>
</li> </li>
</ul> </ul>
......
...@@ -351,7 +351,7 @@ ...@@ -351,7 +351,7 @@
<td v-if="OrderSource==9&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,2)"> <span class="_jump_page _font_bold">国内票务</span> </td> <td v-if="OrderSource==9&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,2)"> <span class="_jump_page _font_bold">国内票务</span> </td>
<td v-else-if="OrderSource==10&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,3)"> <span class="_jump_page _font_bold">签证收支</span> </td> <td v-else-if="OrderSource==10&&GetDetail.SourceID>0" @click="jumpPage('FinancialOrder',GetDetail,3)"> <span class="_jump_page _font_bold">签证收支</span> </td>
<td v-else-if="OrderSource==4&&GetDetail.SourceID>0"@click="jumpPage('FinancialOrder',GetDetail,4)"> <span class="_jump_page _font_bold">机票收支</span> </td> <td v-else-if="OrderSource==4&&GetDetail.SourceID>0"@click="jumpPage('FinancialOrder',GetDetail,4)"> <span class="_jump_page _font_bold">机票收支</span> </td>
<td v-if="GetDetail.TemplateId === 42" @click="jumpPlanPage('leaderReimbursement',o.TCID)"> <span class="_jump_page _font_bold">用款计划</span> </td> <td v-if="GetDetail.TemplateId === 43" @click="jumpPlanPage('leaderReimbursement',o.TCID)"> <span class="_jump_page _font_bold">用款计划</span> </td>
</tr> </tr>
</table> </table>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-else-if="OrderSource==10"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-else-if="OrderSource==10">
......
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
<th rowspan="2">{{$t('fnc.a_zhaiyao')}}</th> <th rowspan="2">{{$t('fnc.a_zhaiyao')}}</th>
<th rowspan="2">{{$t('fnc.a_hkrfkduixiang')}}</th> <th rowspan="2">{{$t('fnc.a_hkrfkduixiang')}}</th>
<th rowspan="2">{{$t('fnc.a_hkfkshijian')}}</th> <th rowspan="2">{{$t('fnc.a_hkfkshijian')}}</th>
<th>{{$t('fnc.jylshuihao')}}</th> <!-- <th>{{$t('fnc.jylshuihao')}}</th> -->
<th colspan="3">{{$t('fnc.waibi')}}{{TypeName}}</th> <th colspan="3">{{$t('fnc.waibi')}}{{TypeName}}</th>
<th rowspan="2">{{$t('fnc.a_dhuanlv')}}</th> <th rowspan="2">{{$t('fnc.a_dhuanlv')}}</th>
<th colspan="3">{{$t('fnc.a_rminbi')}}</th> <th colspan="3">{{$t('fnc.a_rminbi')}}</th>
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
<td></td> <td></td>
<td> {{ moneyFormat(StartMoney) }} </td> <td> {{ moneyFormat(StartMoney) }} </td>
</tr> </tr>
<tr v-for=" ( item , index ) in DataList "> <tr v-for=" ( item , index ) in DataList " v-if=" item.Type !== 4">
<td> {{ item.BName }} </td> <td> {{ item.BName }} </td>
<td> <td>
<span class="cursorpointer" :class=" item.Type == 1 ? '_bg_green' : '_bg_red'" @click="goUrl('FinancialDocumentsDetail',item.FinanceId)">{{ item.FinanceId }}</span> <span class="cursorpointer" :class=" item.Type == 1 ? '_bg_green' : '_bg_red'" @click="goUrl('FinancialDocumentsDetail',item.FinanceId)">{{ item.FinanceId }}</span>
...@@ -526,12 +526,12 @@ export default { ...@@ -526,12 +526,12 @@ export default {
endRStartMoney = endStartMoney + x.OriginalMoney; endRStartMoney = endStartMoney + x.OriginalMoney;
endStartMoney = endStartMoney + x.Money; endStartMoney = endStartMoney + x.Money;
x.enRSMoney = endRStartMoney; x.enRSMoney = endRStartMoney;
x.enSMoney = endRStartMoney; x.enSMoney = endStartMoney;
}else if(x.Type==2){ }else if(x.Type==2){
endRStartMoney = endStartMoney - x.OriginalMoney; endRStartMoney = endStartMoney - x.OriginalMoney;
endStartMoney = endStartMoney - x.Money; endStartMoney = endStartMoney - x.Money;
x.enRSMoney = endRStartMoney; x.enRSMoney = endRStartMoney;
x.enSMoney = endRStartMoney; x.enSMoney = endStartMoney;
} }
}); });
this.endStartMoney = endStartMoney; this.endStartMoney = endStartMoney;
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<span>{{item.DpreadPrice - item.ApplyTotalPrice}}</span> <span>{{item.DpreadPrice - item.ApplyTotalPrice}}</span>
<span v-if="(item.DpreadPrice - item.ApplyTotalPrice) < 0" class="_zhuihui" @click="zhuihui(item.OrderId)"></span> <span v-if="(item.DpreadPrice - item.ApplyTotalPrice) < 0" class="_zhuihui" @click="zhuihui(item.OrderId)"></span>
</td> </td>
<td>{{item.InvoiceApplyList[0].CreateDate}}</td> <td>{{item.InvoiceApplyList[0].CreateDate.replace('T', ' ')}}</td>
<td> <td>
<span v-if="item.InvoiceApplyList[0].InvoiceApplyState === 1" class="status_Application">申请中</span> <span v-if="item.InvoiceApplyList[0].InvoiceApplyState === 1" class="status_Application">申请中</span>
<span v-else-if="item.InvoiceApplyList[0].InvoiceApplyState === 2" class="status_Cancle">已取消</span> <span v-else-if="item.InvoiceApplyList[0].InvoiceApplyState === 2" class="status_Cancle">已取消</span>
...@@ -192,7 +192,7 @@ ...@@ -192,7 +192,7 @@
</td> </td>
</tr> </tr>
<tr v-for="(item2, index2) in item.InvoiceApplyList" :key="index2" v-if="index2!==0"> <tr v-for="(item2, index2) in item.InvoiceApplyList" :key="index2" v-if="index2!==0">
<td>{{item2.CreateDate}}</td> <td>{{item2.CreateDate.replace('T', ' ')}}</td>
<td> <td>
<span v-if="item2.InvoiceApplyState === 1" class="status_Application">申请中</span> <span v-if="item2.InvoiceApplyState === 1" class="status_Application">申请中</span>
<span v-else-if="item2.InvoiceApplyState === 2" class="status_Cancle">已取消</span> <span v-else-if="item2.InvoiceApplyState === 2" class="status_Cancle">已取消</span>
......
<style scoped> <style>
.page_iisMgadd { .page_iisMgadd {
width: 830px; width: 830px;
background-color: white; background-color: white;
...@@ -17,16 +17,85 @@ ...@@ -17,16 +17,85 @@
.page_iisMgadd .page_iisMgadd_table td { .page_iisMgadd .page_iisMgadd_table td {
padding: 10px; padding: 10px;
} }
.page_iisMgadd .page_iisMgadd_table .page_iisMgadd_bank td._bank_td{ .page_iisMgadd .page_iisMgadd_table .page_iisMgadd_bank td._bank_td {
width: 679px; width: 679px;
} }
.iis_save{ .page_iisMgadd .iis_save {
text-align: right; text-align: right;
padding: 10px 0 0 0; padding: 10px 0 0 0;
} }
.page_iisMgadd .page_iisMgadd_table tr td.text-align-left{ .page_iisMgadd .page_iisMgadd_table tr td.text-align-left {
font-weight: 800; font-weight: 800;
} }
.page_iisMgadd ._addUpload_tips {
margin-top: 20px;
font-size: 12px;
color: #999999;
}
.page_iisMgadd ._addUpload_box {
display: block;
margin-top: 15px;
}
.page_iisMgadd ._addUpload_box img {
width: 100%;
height: 100%;
}
.page_iisMgadd ._addUpload_box > div {
float: left;
width: 138px;
height: 92px;
border: 1px dashed rgba(210, 210, 210, 1);
border-radius: 2px;
cursor: pointer;
margin-bottom: 10px;
padding: 5px;
margin-right: 10px;
position: relative;
}
.page_iisMgadd ._addUpload_box > div:hover {
background-color: #f5f5f5;
}
.page_iisMgadd ._addFile_name {
padding-left: 15px;
max-width: 450px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.page_iisMgadd ._addUpload_box .icon-guanbi1 {
font-size: 12px;
color: white;
display: inline-block;
margin-left: 15px;
position: absolute;
right: -6px;
top: -9px;
background-color: #f56c6c;
border-radius: 50%;
height: 20px;
width: 20px;
text-align: center;
line-height: 20px;
}
.page_iisMgadd ._addUpload_box .icon-guanbi1:hover {
font-size: 12px;
color: #c94052;
}
.page_iisMgadd ._addUpload_box .icon-excel,
.page_iisMgadd ._addUpload_box .icon-pdf {
text-align: center;
font-size: 38px;
color: green;
line-height: 75px;
}
.page_iisMgadd .el-upload-dragger {
font-size: 28px;
color: #8c939d;
width: 126px;
height: 80px;
line-height: 41px;
text-align: center;
}
</style> </style>
<template> <template>
<div class="page_iisMgadd"> <div class="page_iisMgadd">
...@@ -49,9 +118,7 @@ ...@@ -49,9 +118,7 @@
<el-input placeholder v-model="msg.ApplyMoney"></el-input> <el-input placeholder v-model="msg.ApplyMoney"></el-input>
</td> </td>
<td>到账金额</td> <td>到账金额</td>
<td> <td>{{orderList.moneyStr}}</td>
{{orderList.moneyStr}}
</td>
</tr> </tr>
<tr class="page_iisMgadd_bank"> <tr class="page_iisMgadd_bank">
<td>到账银行</td> <td>到账银行</td>
...@@ -59,42 +126,45 @@ ...@@ -59,42 +126,45 @@
{{orderList.AccountNumber}} {{orderList.AccountNumber}}
<!-- <el-select v-model="msg.AccountInfo" class="width100b"> <!-- <el-select v-model="msg.AccountInfo" class="width100b">
<el-option v-for="(a, i) in accountList" :key="i" :value="a.ID" :label="a.allName"></el-option> <el-option v-for="(a, i) in accountList" :key="i" :value="a.ID" :label="a.allName"></el-option>
</el-select> --> </el-select>-->
</td> </td>
</tr> </tr>
<tr> <tr>
<td>申请日期</td> <td>申请日期</td>
<td> <td>{{new Date().Format('yyyy-MM-dd')}}</td>
{{new Date().Format('yyyy-MM-dd')}}
</td>
<td>到账日期</td> <td>到账日期</td>
<td> <td>{{orderList.TradeDateStr}}</td>
{{orderList.TradeDateStr}}
</td>
</tr> </tr>
<tr> <tr>
<td>团号</td> <td>团号</td>
<td colspan="3" class="w600 text-align-left"> <td colspan="3" class="w600 text-align-left">{{msg.TCID}}</td>
{{msg.TCID}}
</td>
</tr> </tr>
<tr> <tr>
<td>订单号</td> <td>订单号</td>
<td colspan="3" class="w600 text-align-left"> <td colspan="3" class="w600 text-align-left">{{msg.OrderId}}</td>
{{msg.OrderId}}
</td>
</tr> </tr>
<tr> <tr>
<td rowspan="6">开具内容</td> <td rowspan="6">开具内容</td>
<td>公司名称 <td>
<el-select v-model="isChang" placeholder="" class="w150" @change="clearInfo"> 公司名称
<el-option :key="1" :value='1' label='常用公司'></el-option> <el-select v-model="isChang" placeholder class="w150" @change="clearInfo">
<el-option :key="2" :value='2' label='非常用公司'></el-option> <el-option :key="1" :value="1" label="常用公司"></el-option>
<el-option :key="2" :value="2" label="非常用公司"></el-option>
</el-select> </el-select>
</td> </td>
<td colspan="2"> <td colspan="2">
<el-select v-model="CompanyID" placeholder="" v-if="isChang === 1" @change="setDutyParagraph"> <el-select
<el-option v-for="item in CustomerList" :key="item.ID" :value='item.ID' :label='item.CompanyName' ></el-option> v-model="CompanyID"
placeholder
v-if="isChang === 1"
@change="setDutyParagraph"
>
<el-option
v-for="item in CustomerList"
:key="item.ID"
:value="item.ID"
:label="item.CompanyName"
></el-option>
</el-select> </el-select>
<template v-else> <template v-else>
<span style="display:flex;align-items: center;"> <span style="display:flex;align-items: center;">
...@@ -142,9 +212,54 @@ ...@@ -142,9 +212,54 @@
</td> </td>
</tr> </tr>
</table> </table>
<div>
<div>
<p>
{{$t('fnc.scfujian')}}
<span class="_addUpload_tips">{{$t('tips.wjdxbncgsz')}}</span>
</p>
<div class="_addUpload_box clearfix">
<template v-for="(file,fIndex) in saveMsg">
<div v-if="file.Type==3">
<div style="width:100%;height:100%;overflow: hidden;">
<img :src="file.Url?file.Url:file.Content" @click="showUpLoadFile(file)">
</div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
</div>
<div v-if="file.Type==1">
<div
class="iconfont"
:class="file.Content.substring(file.Content.lastIndexOf('.')+1,file.Content.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"
@click="showUpLoadFile(file)"
></div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
</div>
<div v-if="file.Type==2">
<div class="iconfont icon-excel" @click="showUpLoadFile(file)"></div>
<span class="iconfont icon-guanbi1" @click="deleteUploadFile(fIndex)"></span>
</div>
</template>
<div class="_pic_upload">
<el-upload
drag
:http-request="uploadFileBtn"
:multiple="true"
:show-file-list="false"
action
>
<i class="el-icon-plus avatar-uploader-icon"></i>
<div class="el-upload__text">{{$t('active.ld_djscwj')}}</div>
</el-upload>
</div>
</div>
</div>
</div>
<div class="iis_save"> <div class="iis_save">
<button class="normalBtn" @click="Addiis()">{{$t('fnc.tijiao')}}</button> <button class="normalBtn" @click="Addiis()">{{$t('fnc.tijiao')}}</button>
</div> </div>
<viewer :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer">
<img v-for="src in images" :src="src" :key="src">
</viewer>
</div> </div>
</template> </template>
<script> <script>
...@@ -156,11 +271,12 @@ export default { ...@@ -156,11 +271,12 @@ export default {
OrderId: 0, OrderId: 0,
ApplyMoney: 0, ApplyMoney: 0,
AactualMoney: 0, AactualMoney: 0,
CompanyName: '', CompanyName: "",
DutyParagraph: '', DutyParagraph: "",
InvoiceApplyState: 1, InvoiceApplyState: 1,
CustomerId: 0, CustomerId: 0,
IsDefaultInfo: 1, IsDefaultInfo: 1,
ApplyPics: [],
}, },
DepartName: "", DepartName: "",
emName: "", emName: "",
...@@ -169,51 +285,134 @@ export default { ...@@ -169,51 +285,134 @@ export default {
isChang: 1, isChang: 1,
checked: true, checked: true,
CustomerList: [], CustomerList: [],
CompanyID: '', CompanyID: "",
images: [],
imageOptions:{
navbar:false,
title:false
},
saveMsg: [],
}; };
}, },
methods: { methods: {
clearInfo: function () { // 清除数据 inited (viewer){
this.msg.DutyParagraph = '' this.$viewer = viewer
this.msg.CompanyName = '' },
showImg(src){
src = this.domainManager().ViittoFileUrl + src;
let isExsit=false
this.images.forEach(x=>{
if(x==src)
isExsit=true
})
if(!isExsit) {
this.images.push(src)
} else {
this.$viewer.view(this.images.indexOf(src))
}
this.$viewer.show()
},
showUpLoadFile(i){ // 预览上传文件
if(i.Type==3){
this.showImg(i.Url);
}else{
if(i.Content.substring(i.Content.lastIndexOf('.')+1,i.Content.length).toUpperCase()=='PDF'){
this.previewPDF(i.Url)
}else{
window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url)
}
}
},
deleteUploadFile(i){ // 删除上传文件
this.saveMsg.splice(i,1);
},
uploadFileBtn(file) { //上传
if(file.file.size > 1024 * 1024 * 10) {
this.$message.warning(this.$t('tips.wjdxbncgsz'))
return
}
// 1 文档 2 数据 3 图片
let typeArr=[
{stringArr:'GIF|JPG|JPEG|PNG|BMP',type:3},
{stringArr:'DOCX|DOC|XLSX|XLS|PPT|PPTX|PDF',type:1},
]
let ft=file.file.name.substring(file.file.name.lastIndexOf('.')+1,file.file.name.length).toUpperCase();
let fileTypeNumber = 2;
let typeOk = false;
typeArr.forEach(x=>{
if(x.stringArr.indexOf(ft)!='-1')
{
fileTypeNumber=x.type;
typeOk = true;
}
})
if (!typeOk) return this.$message.error(this.$t('tips.qscWEfile'));
let newArr = [];
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => {
let fileSize = file.file.size<1024? file.file.size:(file.file.size / 1024).toFixed(0);
this.saveMsg.push({
Content: x.data.FilePath,
ID:0,
Type: fileTypeNumber,
Url: this.domainManager().ViittoFileUrl + x.data.FilePath,
})
this.$message.success(this.$t('tips.scchenggong'))
}, 1);
},
clearInfo: function() {
// 清除数据
this.msg.DutyParagraph = "";
this.msg.CompanyName = "";
}, },
setDutyParagraph: function () { // 绑定数据 setDutyParagraph: function() {
this.CustomerList.forEach(x=>{ // 绑定数据
this.CustomerList.forEach(x => {
if (x.ID === this.CompanyID) { if (x.ID === this.CompanyID) {
this.msg.DutyParagraph = x.DutyParagraph this.msg.DutyParagraph = x.DutyParagraph;
this.msg.CompanyName = x.CompanyName this.msg.CompanyName = x.CompanyName;
this.msg.Address = x.Address;
this.msg.BankNo = x.BankNo;
this.msg.CompanyPhone = x.CompanyPhone;
this.msg.OpeningBank = x.OpeningBank;
} }
}) });
}, },
Addiis: function () { // 新增接口 Addiis: function() {
if (this.msg.CompanyName === '') return this.$message.error('请填写公司名称!') // 新增接口
if (this.msg.DutyParagraph === '') return this.$message.error('请填写税号!') if (this.msg.CompanyName === "")
return this.$message.error("请填写公司名称!");
if (this.msg.DutyParagraph === "")
return this.$message.error("请填写税号!");
if (this.checked) { if (this.checked) {
this.msg.IsDefaultInfo = 1 this.msg.IsDefaultInfo = 1;
} else { } else {
this.msg.IsDefaultInfo = 0 this.msg.IsDefaultInfo = 0;
} }
this.msg.ApplyPics = this.saveMsg
this.apipost( this.apipost(
"InvoiceApply_get_SetInvoiceApply", "InvoiceApply_get_SetInvoiceApply",
this.msg, this.msg,
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.$message.success(res.data.message) this.$message.success(res.data.message);
setTimeout(()=>{ setTimeout(() => {
this.$router.push({ this.$router.push({
name: 'groupTourOrder' name: "groupTourOrder"
}); });
// this.$router.go(-1) // this.$router.go(-1)
},1000) }, 1000);
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message);
} }
}, },
err => {} err => {}
); );
}, },
getAccountList: function () { getAccountList: function() {
//获取账户类型对应下的账户列表 //获取账户类型对应下的账户列表
this.apipost( this.apipost(
"FinancialInstitutions_post_GetALLAccountList", "FinancialInstitutions_post_GetALLAccountList",
...@@ -222,7 +421,7 @@ export default { ...@@ -222,7 +421,7 @@ export default {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let data = res.data.data; let data = res.data.data;
data.forEach(x => { data.forEach(x => {
x.allName = `${x.Alias}-${x.BackNo}` x.allName = `${x.Alias}-${x.BackNo}`;
}); });
this.accountList = data; this.accountList = data;
} }
...@@ -230,25 +429,31 @@ export default { ...@@ -230,25 +429,31 @@ export default {
err => {} err => {}
); );
}, },
getOrderDetail: function () { // 获取订单详情 getOrderDetail: function() {
// 获取订单详情
this.apipost( this.apipost(
'InvoiceApply_get_GetOrderFinanceList', "InvoiceApply_get_GetOrderFinanceList",
{OrderId: this.msg.OrderId, OrderResource: 8, IsTravelMoney: 1}, { OrderId: this.msg.OrderId, OrderResource: 8, IsTravelMoney: 1 },
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.orderList = res.data.data this.orderList = res.data.data;
} }
}, },
err => { err => {}
} );
)
}, },
getCustomerInvoiceList: function () { // 根据客户id 获取对应发票信息 getCustomerInvoiceList: function() {
this.apipost('InvoiceApply_get_GetCustomerInvoiceList', {CustomerID: this.msg.CustomerId}, res=>{ // 根据客户id 获取对应发票信息
if (res.data.resultCode == 1) { this.apipost(
this.CustomerList = res.data.data "InvoiceApply_get_GetCustomerInvoiceList",
} { CustomerID: this.msg.CustomerId },
}, null) res => {
if (res.data.resultCode == 1) {
this.CustomerList = res.data.data;
}
},
null
);
} }
}, },
mounted() { mounted() {
......
...@@ -10,6 +10,12 @@ ...@@ -10,6 +10,12 @@
text-align: center; text-align: center;
padding-bottom: 15px; padding-bottom: 15px;
} }
.page_iisMgdetail p.iisMgdetail_status {
position: absolute;
right: 10px;
top: 10px;
font-size: 14px;
}
.page_iisMgdetail .page_iisMgadd_table { .page_iisMgdetail .page_iisMgadd_table {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
...@@ -31,22 +37,121 @@ ...@@ -31,22 +37,121 @@
.page_iisMgdetail .cursorpointer{ .page_iisMgdetail .cursorpointer{
text-decoration: underline; text-decoration: underline;
} }
.imd_img_box { .page_iisMgdetail .imd_img_box {
position: absolute; position: absolute;
right: -400px; right: -400px;
top: 0; top: 0;
width: 400px; width: 400px;
background-color: #eaeaea; /* background-color: #eaeaea; */
}
.page_iisMgdetail .imd_img_box .querenhan,.page_iisMgdetail .bg_white{
background-color: white;
} }
.imd_img_box>p{ .page_iisMgdetail .imd_img_box .querenhan{
margin-top: 50px;
}
.page_iisMgdetail .imd_img_box .querenhan>p{
padding: 10px 25px 15px 25px; padding: 10px 25px 15px 25px;
font-size: 14px; font-size: 14px;
} }
.page_iisMgdetail_red {
color: #FF0000;
}
.page_iisMgdetail_blue {
color: #0000FF;
}
.page_iisMgdetail_green {
color: #008000;
}
.page_iisMgdetail_black {
color: #000000;
}
.page_iisMgdetail ._fujian_zhankai{
color: white;
width: 64px;
height: 0;
font-size: 12px;
border-top: 26px solid #E95252;
border-right: 15px solid transparent;
border-left: 15px solid transparent;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
position: relative;
left: -18px;
bottom: -27px;
}
.page_iisMgdetail ._fujian_zhankai>span{
display: inline-block;
height: 100%;
width: 50%;
position: absolute;
left: 25px;
bottom: 15px;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.page_iisMgdetail ._fujian_zhankai>span:nth-child(2){
left: 18px;
bottom: 3px;
}
.page_iisMgdetail ._fujian_box_tit{
display: flex;
justify-content:space-between;
font-size: 14px;
color: #333333;
}
.page_iisMgdetail ._fujian_box_tit .iconfont{
font-size: 14px;
display: inline-block;
margin-right: 8px;
}
.page_iisMgdetail ._fujian_box_tit .iconfont.icon-bangdingzhagnhuxinxi{
color: #E95252;
}
.page_iisMgdetail ._fujian_box_tit .iconfont.icon-gengduo{
transform:rotate(90deg);
font-size: 12px;
}
.page_iisMgdetail ._addUpload_box_btm .icon-excel{
text-align: center;
font-size: 38px;
color: green;
line-height: 75px;
}
.page_iisMgdetail ._wenjian{
padding: 15px;
width: 91px;
height: 80px;
border:1px solid rgba(221,221,221,1);
float: left;
cursor: pointer;
margin-right: 10px;
margin-top: 10px;
}
.page_iisMgdetail ._wenjian_P{
font-size: 30px;
text-align: center;
color: #41D2A1;
}
.page_iisMgdetail .el-carousel__item{
align-items: center;
justify-content: center;
display: flex;
}
</style> </style>
<template> <template>
<div class="page_iisMgdetail" v-loading="loading"> <div class="page_iisMgdetail" v-loading="loading">
<p>{{$t('ios.fpkjsqdan')}}</p> <p>{{$t('ios.fpkjsqdan')}} </p>
<p class="iisMgdetail_status">
<span v-if="detail.InvoiceApplyState === 1" class="page_iisMgdetail_green">申请中</span>
<span v-if="detail.InvoiceApplyState === 2" class="page_iisMgdetail_black">取消</span>
<span v-if="detail.InvoiceApplyState === 3" class="page_iisMgdetail_green">通过</span>
<span v-if="detail.InvoiceApplyState === 4" class="groupTourOrder_tickets_red">拒绝</span>
<span v-if="detail.InvoiceApplyState === 5" class="groupTourOrder_tickets_red">欠票</span>
<span v-if="detail.InvoiceApplyState === 6" class="page_iisMgdetail_blue">发票追回</span>
</p>
<table <table
data-v-ca5157c2 data-v-ca5157c2
border="1" border="1"
...@@ -69,6 +174,16 @@ ...@@ -69,6 +174,16 @@
{{orderList.moneyStr}} {{orderList.moneyStr}}
</td> </td>
</tr> </tr>
<tr>
<td>应收总额</td>
<td class="w600 font-weight cursorpointer">
<span @click="goUrlO(detail.OrderId)">{{detail.PreferPrice}}</span>
</td>
<td>待收金额</td>
<td class="w600 font-weight cursorpointer">
<span @click="goUrlO(detail.OrderId)">{{detail.DueInMoney}}</span>
</td>
</tr>
<tr class="page_iisMgadd_bank"> <tr class="page_iisMgadd_bank">
<td>{{$t('ios.dzyinhang')}}</td> <td>{{$t('ios.dzyinhang')}}</td>
<td colspan="3" class="_bank_td"> <td colspan="3" class="_bank_td">
...@@ -174,14 +289,55 @@ ...@@ -174,14 +289,55 @@
<button class="normalBtn" @click="setStatus(2)">{{$t('pub.cancelBtn')}}</button> <button class="normalBtn" @click="setStatus(2)">{{$t('pub.cancelBtn')}}</button>
</div> </div>
<div class="imd_img_box"> <div class="imd_img_box">
<p v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0">确认函</p> <div class="_fujian_box" >
<div style="width:100%;" v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0"> <div v-if="detail.ApplyPics&&detail.ApplyPics.length>0">
<el-carousel trigger="click" height="293px" width="440px" :interval="5000"> <div class="_fujian_zhankai cursorpointer" v-if="!fujianShow" @click="fujianShow = true">
<el-carousel-item style="height: 293px;" v-for="(item, index) in detail.ConfirmFileList" :key="index"> <span>附件</span>
<img @click="showImg(item.Url)" :src="domainManager().ViittoFileUrl + item.Url" alt="" style="width: 100%;"> <span>></span>
</el-carousel-item> </div>
</el-carousel> <p class="_fujian_box_tit" v-if="fujianShow">
<span>
<i class="iconfont icon-bangdingzhagnhuxinxi"></i>
<span>附件</span>
</span>
<span class="cursorpointer" @click="fujianShow = false">收起 <i class="iconfont icon-gengduo"></i></span>
</p>
<div class="_addUpload_box" v-if="fujianShow">
<div style="width:100%;" v-if="FuImgList.length>0">
<el-carousel trigger="click" height="293px" width="440px" :interval="5000">
<el-carousel-item style="height: 293px;" v-for="item in FuImgList" :key="item">
<img @click="showImg(item, 2)" :src="item" alt="" style="width: 100%;">
</el-carousel-item>
</el-carousel>
</div>
<div class="clearfix bg_white" v-if="detail.ApplyPics && detail.ApplyPics.length">
<template v-for="(file,fIndex) in detail.ApplyPics" v-if="file.Type==='1'">
<div class="_wenjian" @click="showUpLoadFile(file)">
<p v-if="file.Type==='1'" class="_wenjian_P iconfont" :class="file.Url.substring(file.Url.lastIndexOf('.')+1,file.Url.length).toUpperCase()=='PDF'? 'icon-pdf' : 'icon-excel'"></p>
</div>
</template>
</div>
</div>
</div>
<div class="querenhan">
<p >确认函</p>
<div style="width:100%;" >
<div v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0">
<el-carousel trigger="click" height="293px" width="440px" :interval="5000" v-if="detail.ConfirmFileList[0].Url.indexOf('.png')!=-1 || detail.ConfirmFileList[0].Url.indexOf('.jp')!=-1">
<el-carousel-item style="height: 293px;">
<img @click="showImg(detail.ConfirmFileList[0].Url)" :src="domainManager().ViittoFileUrl + detail.ConfirmFileList[0].Url" alt="" style="width: 100%;">
</el-carousel-item>
</el-carousel>
<div v-else>
<p style="padding-top: 5px;padding-left: 20px;font-size: 14px;margin-bottom: 10px;" class="cursorpointer">
<a target="_blank" :href="detail.ConfirmFileList[0].Url">下载文件</a>
</p>
</div>
</div>
</div>
</div>
</div> </div>
<!-- v-if="detail.ConfirmFileList && detail.ConfirmFileList.length>0" -->
</div> </div>
<el-dialog title="提示信息" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" > <el-dialog title="提示信息" width="400px" :visible.sync="dialogFormVisible" center :before-close="closeChangeMachie" >
<el-form label-width="110px"> <el-form label-width="110px">
...@@ -218,18 +374,27 @@ export default { ...@@ -218,18 +374,27 @@ export default {
noDetail: false, noDetail: false,
EmployeeId: 0, EmployeeId: 0,
images: [], images: [],
FuImgList: [],
imageOptions:{ imageOptions:{
navbar:false, navbar:false,
title:false title:false
}, },
fujianShow:true,
}; };
}, },
methods: { methods: {
showUpLoadFile(i){ // 预览上传文件
if(i.Url.substring(i.Url.lastIndexOf('.')+1,i.Url.length).toUpperCase()=='PDF'){
this.previewPDF(i.Url)
}else{
window.open("https://view.officeapps.live.com/op/view.aspx?src="+i.Url)
}
},
inited (viewer){ inited (viewer){
this.$viewer = viewer this.$viewer = viewer
}, },
showImg(src){ showImg(src ,t){
src = this.domainManager().ViittoFileUrl + src; src = t ? src : this.domainManager().ViittoFileUrl + src;
let isExsit=false let isExsit=false
this.images.forEach(x=>{ this.images.forEach(x=>{
if(x==src) if(x==src)
...@@ -288,7 +453,18 @@ export default { ...@@ -288,7 +453,18 @@ export default {
getDetail: function (id) { // 获取详情 getDetail: function (id) { // 获取详情
this.apipost('InvoiceApply_get_GetDetails', {ID: id}, res=>{ this.apipost('InvoiceApply_get_GetDetails', {ID: id}, res=>{
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.detail = res.data.data let detail = res.data.data
console.log(detail)
if(detail.ApplyPics && detail.ApplyPics.length>0){
detail.ApplyPics.forEach(x=>{
console.log(x,'1111111')
if(x.Type==='3'){
this.FuImgList.push(x.Url);
this.images.push(x.Url)
}
})
}
this.detail = detail
this.getOrderDetail(); this.getOrderDetail();
} }
this.loading = false this.loading = false
......
...@@ -40,15 +40,18 @@ ...@@ -40,15 +40,18 @@
</tr> </tr>
<template v-for="(item,index) in list"> <template v-for="(item,index) in list">
<tr v-for="(subItem,subIndex) in item.HotelOrderList" v-loading="loading"> <tr v-for="(subItem,subIndex) in item.HotelOrderList" v-loading="loading">
<!-- 入住时间 -->
<td :rowspan="item.HotelOrderList.length" v-if="subIndex==0"> <td :rowspan="item.HotelOrderList.length" v-if="subIndex==0">
<div class="w100">{{item.UseTimeStr}}</div> <div class="w100">{{item.UseTimeStr}}</div>
</td> </td>
<!-- 酒店名称 -->
<td> <td>
<div class="w200 padding10"> <div class="w200 padding10">
<p class="link" style="word-break: normal;" :class="{'Hotel_red':subItem.HotelChangeState==3}" <p class="link" style="word-break: normal;" :class="{'Hotel_red':subItem.HotelChangeState==3}"
@click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">{{subItem.HotelName}}</p> @click="goUrlR('HotelManagement',subItem.HotelId,'酒店管理')">{{subItem.HotelName}}</p>
</div> </div>
</td> </td>
<!-- 机位总数/(Y/E/F) -->
<td> <td>
<div class="w120"> <div class="w120">
<p class="link" @click="goUrlT('RegistrationList',item.TCID,'报名清单')"> <p class="link" @click="goUrlT('RegistrationList',item.TCID,'报名清单')">
...@@ -56,15 +59,18 @@ ...@@ -56,15 +59,18 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 占床/不占床 -->
<td> <td>
<div class="w120"> <div class="w120">
<p class="link" @click="goUrlT('passengerHouse',item.TCIDS,'房间分配')"> <p class="link" @click="goUrlT('passengerHouse',item.TCIDS,'房间分配')">
{{subItem.HouseStatistics.NeedBed}}/{{subItem.HouseStatistics.NoNeedBed}}</p> {{subItem.HouseStatistics.NeedBed}}/{{subItem.HouseStatistics.NoNeedBed}}</p>
</div> </div>
</td> </td>
<!-- 实际用房数 -->
<td> <td>
<div class="w80">{{subItem.HouseStatistics.RealityRoomNum}}</div> <div class="w80">{{subItem.HouseStatistics.RealityRoomNum}}</div>
</td> </td>
<!-- 房间类型 -->
<td> <td>
<div class="w150"> <div class="w150">
<p class="pHouseStyle" v-for="o in subItem.HouseStatistics.HouseTypeList"> <p class="pHouseStyle" v-for="o in subItem.HouseStatistics.HouseTypeList">
...@@ -72,6 +78,7 @@ ...@@ -72,6 +78,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 房间数 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" v-for="o in subItem.HouseStatistics.HouseTypeList"> <p class="pHouseStyle" v-for="o in subItem.HouseStatistics.HouseTypeList">
...@@ -79,6 +86,7 @@ ...@@ -79,6 +86,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 房间人数 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" v-for="o in subItem.HouseStatistics.HouseTypeList"> <p class="pHouseStyle" v-for="o in subItem.HouseStatistics.HouseTypeList">
...@@ -86,6 +94,7 @@ ...@@ -86,6 +94,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 修改酒店 -->
<td> <td>
<div class="w150"> <div class="w150">
<el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')" <el-select class='w120 sel' v-model='subItem.NewHotelId' filterable :placeholder="$t('pub.pleaseSel')"
...@@ -104,6 +113,7 @@ ...@@ -104,6 +113,7 @@
</el-upload> </el-upload>
</div> </div>
</td> </td>
<!-- 房间预定数 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" v-for="o in subItem.OrderDetailsList"> <p class="pHouseStyle" v-for="o in subItem.OrderDetailsList">
...@@ -112,6 +122,7 @@ ...@@ -112,6 +122,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 预定人数 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" v-for="o in subItem.OrderDetailsList"> <p class="pHouseStyle" v-for="o in subItem.OrderDetailsList">
...@@ -120,6 +131,7 @@ ...@@ -120,6 +131,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 尚差房间数 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" <p class="pHouseStyle"
...@@ -129,6 +141,7 @@ ...@@ -129,6 +141,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 单价/每人 -->
<td> <td>
<div class="w120"> <div class="w120">
<p class="pHouseStyle" v-for="(o,index) in subItem.OrderDetailsList" @input="calculationPrice(subItem)"> <p class="pHouseStyle" v-for="(o,index) in subItem.OrderDetailsList" @input="calculationPrice(subItem)">
...@@ -137,6 +150,7 @@ ...@@ -137,6 +150,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 免减人数 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" v-for="(o,index) in subItem.OrderDetailsList" @input="calculationPrice(subItem)"> <p class="pHouseStyle" v-for="(o,index) in subItem.OrderDetailsList" @input="calculationPrice(subItem)">
...@@ -145,6 +159,7 @@ ...@@ -145,6 +159,7 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 金额小计 -->
<td> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle" v-for="(o,index) in subItem.OrderDetailsList"> <p class="pHouseStyle" v-for="(o,index) in subItem.OrderDetailsList">
...@@ -153,8 +168,8 @@ ...@@ -153,8 +168,8 @@
</div> </div>
</td> </td>
<td> <!--返佣-->
<!--返佣--> <td>
<div class="w80"> <div class="w80">
<p class="pHouseStyle link" v-for="(o,index) in subItem.OrderDetailsList" <p class="pHouseStyle link" v-for="(o,index) in subItem.OrderDetailsList"
@input="calculationPrice(subItem)"> @input="calculationPrice(subItem)">
...@@ -163,11 +178,13 @@ ...@@ -163,11 +178,13 @@
</p> </p>
</div> </div>
</td> </td>
<!-- 金额总计 -->
<td> <td>
<div class="w120"> <div class="w120">
{{subItem.TotalPrice}} {{subItem.TotalPrice}}
</div> </div>
</td> </td>
<!-- 付款方式 -->
<td> <td>
<div class="w120"> <div class="w120">
<el-select class='w100 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')"> <el-select class='w100 sel' v-model='subItem.PayStyle' :placeholder="$t('pub.pleaseSel')">
...@@ -179,22 +196,27 @@ ...@@ -179,22 +196,27 @@
</el-select> </el-select>
</div> </div>
</td> </td>
<!-- 联系电话 -->
<td> <td>
<div class="w120">{{subItem.Tel}}</div> <div class="w120">{{subItem.Tel}}</div>
</td> </td>
<!-- 地址 -->
<td> <td>
<div class="w200 padding10">{{subItem.Address}}</div> <div class="w200 padding10">{{subItem.Address}}</div>
</td> </td>
<!-- 备注 -->
<td> <td>
<div class="w150"> <div class="w150">
<el-input class='w120' v-model='subItem.ReserveNo'></el-input> <el-input class='w120' v-model='subItem.ReserveNo'></el-input>
</div> </div>
</td> </td>
<!-- 订团号 -->
<td> <td>
<div class="w150"> <div class="w150">
<el-input type='textarea' class='w120' v-model='subItem.Remarks'></el-input> <el-input type='textarea' class='w120' v-model='subItem.Remarks'></el-input>
</div> </div>
</td> </td>
<!-- 操作 -->
<td> <td>
<div class="w200"> <div class="w200">
<el-button-group> <el-button-group>
......
...@@ -43,12 +43,14 @@ ...@@ -43,12 +43,14 @@
<td width="100">车辆号</td> <td width="100">车辆号</td>
<td width="60">用车方式</td> <td width="60">用车方式</td>
<td width="60">车费</td> <td width="60">车费</td>
<td width="120">车费付款方式</td>
<td width="80">高速公路费</td> <td width="80">高速公路费</td>
<td width="120">高速费用付款方式</td> <td width="120">高速费用付款方式</td>
<td width="60">停车费</td> <td width="60">停车费</td>
<td width="60">金额小计</td> <td width="60">金额小计</td>
<td width="60">总金额</td> <td width="60">总金额</td>
<td width="100">备注</td> <td width="100">备注</td>
<td width="60">凭证</td>
</tr> </tr>
<tr v-for='(item,index) in list.BusList'> <tr v-for='(item,index) in list.BusList'>
<td>{{item.PlanDateStr}}</td> <td>{{item.PlanDateStr}}</td>
...@@ -65,18 +67,25 @@ ...@@ -65,18 +67,25 @@
{{moneyFormat(item.CostPrice)}} {{moneyFormat(item.CostPrice)}}
</td> </td>
<td> <td>
<span v-if="item.HighSpeedPayType === 1">现付</span> <span v-if="item.PayType === 1">现付</span>
<span v-if="item.HighSpeedPayType === 2">公司结算</span> <span v-else-if="item.PayType === 2">公司结算</span>
<span v-if="item.HighSpeedPayType === 3">预付</span> <span v-else-if="item.PayType === 3">预付</span>
<span v-else>暂无</span>
</td> </td>
<td> <td>
{{moneyFormat(item.HighSpeedPrice)}} {{moneyFormat(item.HighSpeedPrice)}}
</td> </td>
<td>
<span v-if="item.HighSpeedPayType === 1">现付</span>
<span v-else-if="item.HighSpeedPayType === 2">公司结算</span>
<span v-else-if="item.HighSpeedPayType === 3">预付</span>
<span v-else>暂无</span>
</td>
<td> <td>
{{moneyFormat(item.StopPrice)}} {{moneyFormat(item.StopPrice)}}
</td> </td>
<td> <td>
{{moneyFormat(Number(item.CostPrice)+Number(item.HighSpeedPrice)+Number(item.StopPrice))}} {{moneyFormat(Number(item.CostPrice)+Number(item.StopPrice))}}
</td> </td>
<td v-if='index==0' :rowspan='list.BusList.length'> <td v-if='index==0' :rowspan='list.BusList.length'>
{{busTotalPrice(list.BusList)}} {{busTotalPrice(list.BusList)}}
...@@ -94,11 +103,11 @@ ...@@ -94,11 +103,11 @@
</tr> </tr>
<tr> <tr>
<td>总金额</td> <td>总金额</td>
<td colspan="6"> <td colspan="7">
{{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingExpendTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingExpendTotalPrice)}}
</td> </td>
<td>签单/预付/抵扣总金额</td> <td>签单/预付/抵扣总金额</td>
<td colspan="6"> <td colspan="7">
{{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingIncomeTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingIncomeTotalPrice)}}
</td> </td>
</tr> </tr>
...@@ -207,10 +216,11 @@ ...@@ -207,10 +216,11 @@
</div> </div>
</td> </td>
<td> <td>
<div v-for="subItem in outItem.HotelOrderList"> <div v-for="subItem in outItem.HotelOrderList">
<span v-if="subItem.HighSpeedPayType === 1">现付</span> <span v-if="subItem.PayStyle === 1">现付</span>
<span v-if="subItem.HighSpeedPayType === 2">公司结算</span> <span v-else-if="subItem.PayStyle === 2">公司结算</span>
<span v-if="subItem.HighSpeedPayType === 3">预付</span> <span v-else-if="subItem.PayStyle === 3">预付</span>
<span v-else>暂无</span>
</div> </div>
</td> </td>
<td> <td>
...@@ -306,9 +316,10 @@ ...@@ -306,9 +316,10 @@
</td> </td>
<td> <td>
<div v-for="subItem in item.DiningSummaryList"> <div v-for="subItem in item.DiningSummaryList">
<span v-if="subItem.HighSpeedPayType === 1">现付</span> <span v-if="subItem.PayStyle === 1">现付</span>
<span v-if="subItem.HighSpeedPayType === 2">公司结算</span> <span v-else-if="subItem.PayStyle === 2">公司结算</span>
<span v-if="subItem.HighSpeedPayType === 3">预付</span> <span v-else-if="subItem.PayStyle === 3">预付</span>
<span v-else>暂无</span>
</div> </div>
</td> </td>
<td> <td>
...@@ -397,9 +408,10 @@ ...@@ -397,9 +408,10 @@
</td> </td>
<td> <td>
<div v-for="subItem in item.ScenicStatisticsList"> <div v-for="subItem in item.ScenicStatisticsList">
<span v-if="subItem.HighSpeedPayType === 1">现付</span> <span v-if="subItem.PayStyle === 1">现付</span>
<span v-if="subItem.HighSpeedPayType === 2">公司结算</span> <span v-else-if="subItem.PayStyle === 2">公司结算</span>
<span v-if="subItem.HighSpeedPayType === 3">预付</span> <span v-else-if="subItem.PayStyle === 3">预付</span>
<span v-else>暂无</span>
</div> </div>
</td> </td>
<td> <td>
...@@ -425,6 +437,7 @@ ...@@ -425,6 +437,7 @@
<th>预付合计</th> <th>预付合计</th>
<th>团号</th> <th>团号</th>
<th>实际领款</th> <th>实际领款</th>
<th>财务单号</th>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for='(item, index) in nav' > <tr v-for='(item, index) in nav' >
...@@ -434,6 +447,9 @@ ...@@ -434,6 +447,9 @@
<p v-if="item.LeaderGetPrice>0">已领款:{{moneyFormat(item.LeaderGetPrice)}}</p> <p v-if="item.LeaderGetPrice>0">已领款:{{moneyFormat(item.LeaderGetPrice)}}</p>
<el-input v-if="item.LeaderGetPrice>0 || item.LeaderGetPrice < (TotalNav.reimburseTotalPrice.PlanPrice * 0.98)" class="w300" type="number" v-model="item.LeaderGetPriceT"></el-input> <el-input v-if="item.LeaderGetPrice>0 || item.LeaderGetPrice < (TotalNav.reimburseTotalPrice.PlanPrice * 0.98)" class="w300" type="number" v-model="item.LeaderGetPriceT"></el-input>
</td> </td>
<td>
<span v-for="(subItem, subIndex) in item.FinanceIds" class="cursorpointer text-decoration" @click="goFncUrl('FinancialDocumentsDetail', subItem)">{{subItem}}</span>
</td>
<td width="80" class="_zhidan"> <td width="80" class="_zhidan">
<input type="button" v-if="isUpdate=='true'" value="制单" class="normalBtn" @click="goZhiDan(item)" /> <input type="button" v-if="isUpdate=='true'" value="制单" class="normalBtn" @click="goZhiDan(item)" />
</td> </td>
...@@ -478,6 +494,9 @@ ...@@ -478,6 +494,9 @@
} }
}, },
methods: { methods: {
goFncUrl: function (path, id) {
this.$router.push({ name: path,query:{"id":id,blank:'y'} })
},
goHotelDetail: function (id, num, TCNUM, path) { goHotelDetail: function (id, num, TCNUM, path) {
this.$router.push({ this.$router.push({
name: path, name: path,
...@@ -495,6 +514,7 @@ ...@@ -495,6 +514,7 @@
let totailMoney = 0 let totailMoney = 0
this.nav.forEach(x=>{ this.nav.forEach(x=>{
totailMoney += parseFloat(x.LeaderGetPriceT) totailMoney += parseFloat(x.LeaderGetPriceT)
totailMoney += x.LeaderGetPrice
}) })
console.log(allMoney, totailMoney) console.log(allMoney, totailMoney)
if ((allMoney - totailMoney)<0) return this.$message.error('总制单金额已大于等于总金额,无法制单!') if ((allMoney - totailMoney)<0) return this.$message.error('总制单金额已大于等于总金额,无法制单!')
...@@ -510,7 +530,7 @@ ...@@ -510,7 +530,7 @@
Money: obj.LeaderGetPriceT, Money: obj.LeaderGetPriceT,
TCNUMS: obj.TCNUMS TCNUMS: obj.TCNUMS
} }
let id = [42] let id = [43]
this.$router.push({ this.$router.push({
name: 'ChoiceAddFinancialDocuments', name: 'ChoiceAddFinancialDocuments',
query:{ query:{
......
...@@ -301,8 +301,8 @@ ...@@ -301,8 +301,8 @@
</div> </div>
</div> </div>
</td> </td>
<td colspan="8" class="groupTourOrder_tickets" style="height: 40px;cursor: pointer;" @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)"> <td colspan="8" class="groupTourOrder_tickets" style="height: 40px;cursor: pointer;">
<div> <div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>收款单据:</div> <div>收款单据:</div>
<div> <div>
<span v-for="(item2,index2) in item.financeList" :key="index2"> <span v-for="(item2,index2) in item.financeList" :key="index2">
...@@ -314,7 +314,7 @@ ...@@ -314,7 +314,7 @@
<span v-if="item.financeList.length===0" style="cursor: default;">暂无数据</span> <span v-if="item.financeList.length===0" style="cursor: default;">暂无数据</span>
</div> </div>
</div> </div>
<div> <div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>付款单据:</div> <div>付款单据:</div>
<div> <div>
<span v-for="(item2,index2) in item.refundFinanceList" :key="index2"> <span v-for="(item2,index2) in item.refundFinanceList" :key="index2">
...@@ -330,10 +330,10 @@ ...@@ -330,10 +330,10 @@
<div>发票单据:</div> <div>发票单据:</div>
<div> <div>
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2"> <span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
<span v-if="item2.invoiceApplyState===6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===1" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===5" class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 " class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===3" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span>
</span> </span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span> <span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span>
</div> </div>
......
...@@ -1845,10 +1845,10 @@ ...@@ -1845,10 +1845,10 @@
<div>发票单据:</div> <div>发票单据:</div>
<div> <div>
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2"> <span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
<span v-if="item2.invoiceApplyState===6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===1" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===5" class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 " class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===3" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span>
</span> </span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span> <span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span>
</div> </div>
......
...@@ -1828,10 +1828,10 @@ ...@@ -1828,10 +1828,10 @@
<div>发票单据:</div> <div>发票单据:</div>
<div> <div>
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2"> <span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
<span v-if="item2.invoiceApplyState===6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===1" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===5" class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 " class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===3" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span>
</span> </span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span> <span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span>
</div> </div>
...@@ -2073,10 +2073,10 @@ ...@@ -2073,10 +2073,10 @@
<div>发票单据:</div> <div>发票单据:</div>
<div> <div>
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2"> <span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
<span v-if="item2.invoiceApplyState===6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===1" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===5" class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 " class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState===3" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span>
</span> </span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span> <span v-if="item.invoiceApplyList.length===0" style="cursor: default;">暂无数据</span>
</div> </div>
......
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
</td> </td>
<td> <td>
<div class="w150"> <div class="w150">
<el-input class="w135" @blur='getBusPrice(item)' v-model="item.HighSpeedPrice" placeholder="请输入费用"></el-input> <el-input class="w135" v-model="item.HighSpeedPrice" placeholder="请输入费用"></el-input>
</div> </div>
</td> </td>
<td> <td>
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
</td> </td>
<td> <td>
<div class="w80"> <div class="w80">
{{item.CostPrice*(Number(item.TransferNum)+1)}} {{item.CostPrice*(Number(item.TransferNum)+1) + Number(item.HighSpeedPrice)}}
</div> </div>
</td> </td>
</tr> </tr>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
车辆状态&nbsp;&nbsp;&nbsp;已确定:<span style="color:#4BCA81 ;"></span>未确定:<span 车辆状态&nbsp;&nbsp;&nbsp;已确定:<span style="color:#4BCA81 ;"></span>未确定:<span
style="color: #ff6600;">O</span>未分配:<span style="color:#E95252 ;">X</span> style="color: #ff6600;">O</span>未分配:<span style="color:#E95252 ;">X</span>
</div> </div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; " class="ownScrollbarStyle"> <div style="width: 100%; overflow-x: auto;padding-bottom: 10px; margin-top: 10px; " class="ownScrollbarStyle" :style="{height: boxHeight + 'px'}">
<table border="0" cellspacing="1" cellpadding="0" class="busStatisticsTalbe" v-loading='loading'> <table border="0" cellspacing="1" cellpadding="0" class="busStatisticsTalbe" v-loading='loading'>
<tr> <tr>
<th class="w100">序号</th> <th class="w100">序号</th>
...@@ -218,6 +218,7 @@ ...@@ -218,6 +218,7 @@
list: [], list: [],
colspanTotal: 0, colspanTotal: 0,
isCha: 0, isCha: 0,
boxHeight: 0,
} }
}, },
...@@ -398,6 +399,7 @@ ...@@ -398,6 +399,7 @@
} }
}) })
}) })
this.$forceUpdate()
} else { } else {
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -413,6 +415,11 @@ ...@@ -413,6 +415,11 @@
"-" + "-" +
myDate.getDate(); myDate.getDate();
this.msg.StartDate = nowDate; this.msg.StartDate = nowDate;
let width = window.innerWidth - 50
let height = window.innerHeight - 65 - 210
console.log(height)
this.boxHeight = height;
this.offsetwidth = width
this.getList(); this.getList();
this.getLineTeamList(); this.getLineTeamList();
}, },
......
...@@ -117,10 +117,10 @@ export default { ...@@ -117,10 +117,10 @@ export default {
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = ''; let domainUrl = '';
let locationName = window.location.hostname; let locationName = window.location.hostname;
// domainUrl = "http://192.168.2.65:8025"; //214主域名 domainUrl = "http://192.168.2.65:8025"; //214主域名
// domainUrl = "http://192.168.2.214:8082"; //214主域名 // domainUrl = "http://192.168.2.214:8082"; //214主域名
// domainUrl = "http://192.168.0.119:8082"; // domainUrl = "http://192.168.0.119:8082";
domainUrl = "http://192.168.2.106:8082"; // domainUrl = "http://192.168.2.106:8082";
if (locationName.indexOf('oytour') !== -1) { if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com"; domainUrl = "http://reborn.oytour.com";
} else if (locationName.indexOf('viitto') !== -1) { } else if (locationName.indexOf('viitto') !== -1) {
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
//google地图图片地址 //google地图图片地址
GoogleMapImageUrl: "http://super.oytour.com", GoogleMapImageUrl: "http://super.oytour.com",
//上传站点 //上传站点
UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://upload.oytour.com" : "http://192.168.2.106:8120", UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://upload.oytour.com" : "http://192.168.2.214:8120",
//文件站点 //文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.2.214:8130', ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.2.214:8130',
javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000", javaUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000",
......
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