Commit 30da4ea5 authored by 黄媛媛's avatar 黄媛媛

财务凭证打印

parent 8af92337
<style scoped> <style scoped>
.Myprint p{margin: 0 !important;} .Myprint p{margin: 0 !important;}
.Receipt_boxNew{padding: 15px;color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;} .Receipt_boxNew{color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;}
.Receipt_boxNew tr th{color: #c94052} .Receipt_boxNew tr th{color: #c94052}
.Receipt_boxNew.color_blur tr th{color: #106BAF} .Receipt_boxNew.color_blur tr th{color: #106BAF}
.Receipt_boxNew.color_blur{color: #106BAF;} .Receipt_boxNew.color_blur{color: #106BAF;}
...@@ -105,20 +105,26 @@ ...@@ -105,20 +105,26 @@
.Myprint .el-input__inner{ .Myprint .el-input__inner{
padding:0; padding:0;
} }
.Myprint ._border_1{
border: 1px solid #333333;
margin-bottom:30px;
padding: 15px;
}
</style> </style>
<template v-if="GetDetail.DetailList.length>0"> <template v-if="GetDetail.DetailList.length>0">
<div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1 || GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'> <div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1 || GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<div class="11" v-show="disabled"> <div class="11" v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<el-tooltip class="item" effect="dark" content="追加团款" placement="top"> <el-tooltip class="item" effect="dark" content="追加团款" placement="top">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span> <span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip> </el-tooltip>
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p> <p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<p class="rb_stit"> <p class="rb_stit">
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span> <span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
<i v-if="name===1">{{$t('fnc.yewulian')}}</i> <i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i> <i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
</p> </p>
<!--<p class="_yewudanju">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>--> <!--<p class="_yewudanju">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p> <p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>
...@@ -295,6 +301,7 @@ ...@@ -295,6 +301,7 @@
<tr v-if="isPrintPage"> <tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td> <td height="26px">{{$t('hotel.hotel_remark')}}</td>
<td height="26px" colspan="7"> <td height="26px" colspan="7">
{{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : $t('fnc.no')}} {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : $t('fnc.no')}}
</td> </td>
</tr> </tr>
...@@ -310,7 +317,9 @@ ...@@ -310,7 +317,9 @@
</template> </template>
</div> </div>
</div> </div>
</div>
<div class="22" v-show="!disabled"> <div class="22" v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<el-tooltip class="item" effect="dark" content="追加团款" placement="top"> <el-tooltip class="item" effect="dark" content="追加团款" placement="top">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span> <span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip> </el-tooltip>
...@@ -321,8 +330,8 @@ ...@@ -321,8 +330,8 @@
<span :class="isPrintPage?'_rb_stit_print':''"> <span :class="isPrintPage?'_rb_stit_print':''">
<el-input size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input> <el-input size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input>
</span> </span>
<i v-if="name===1">{{$t('fnc.yewulian')}}</i> <i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i> <i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
</p> </p>
<!--<p class="_yewudanju">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>--> <!--<p class="_yewudanju">订单号:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:'无'}}</span></p>-->
<p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p> <p class="_yewudanju" v-if="GetDetail.OrderSource==8&&!isPrintPage">{{$t('hotel.order_Number')}}:<span class="_jump_page" @click="GetDetail.OrderID>0?jumpPage('RegistrationList',GetDetail.TCID,1):''">{{GetDetail.OrderID?GetDetail.OrderID:$t('fnc.no')}}</span></p>
...@@ -518,7 +527,8 @@ ...@@ -518,7 +527,8 @@
<tr v-if="isPrintPage"> <tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td> <td height="26px">{{$t('hotel.hotel_remark')}}</td>
<td height="26px" colspan="7"> <td height="26px" colspan="7">
{{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : $t('fnc.no')}} <el-input size="small" style="width:auto" v-model="GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark" placeholder="请输入"></el-input>
<!-- {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : $t('fnc.no')}} -->
</td> </td>
</tr> </tr>
</table> </table>
...@@ -534,13 +544,15 @@ ...@@ -534,13 +544,15 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
import { connect } from 'net'; import { connect } from 'net';
export default { export default {
props:["ID","width","color","isPrintPage","name","OrderSource","disabled"], //接收参数 ID width color props:["ID","width","color","isPrintPage","name","OrderSource","disabled","loopNumN"], //接收参数 ID width color
data(){ data(){
return{ return{
loading:false, loading:false,
EmployeeId:'', EmployeeId:'',
EndDate:'', EndDate:'',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
.Myprint p{ .Myprint p{
margin: 0 !important; margin: 0 !important;
} }
.Receipt_boxNew{padding: 15px;color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;} .Receipt_boxNew{color: #c94052;width: 100%;background-color: rgba(245, 245, 245, 1);position: relative;}
.Receipt_boxNew tr th{color: #c94052} .Receipt_boxNew tr th{color: #c94052}
.Receipt_boxNew.color_blur tr th{color: #106BAF} .Receipt_boxNew.color_blur tr th{color: #106BAF}
.Receipt_boxNew.color_blur{color: #106BAF;} .Receipt_boxNew.color_blur{color: #106BAF;}
...@@ -89,16 +89,22 @@ ...@@ -89,16 +89,22 @@
.Myprint .el-input__inner{ .Myprint .el-input__inner{
padding-left:6px; padding-left:6px;
} }
.Myprint ._border_1{
border: 1px solid #333333;
margin-bottom:30px;
padding: 15px;
}
</style> </style>
<template v-if="GetDetail.DetailList.length>0" > <template v-if="GetDetail.DetailList.length>0" >
<div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1|| GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'> <div class="Myprint Receipt_boxNew" :class="[GetDetail.Type==1|| GetDetail.Type==5?'':'color_blur',isPrintPage?'_PrintPageStyle':'']" :style="{width:width,backgroundColor:color}" @click.stop v-loading='loading'>
<div v-show="disabled"> <div v-show="disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p> <p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<p class="rb_stit" style="position:relative"> <p class="rb_stit" style="position:relative">
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span> <span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
<!-- <i v-if="name===1">(客户联)</i> --> <!-- <i v-if="name===1">(客户联)</i> -->
<i v-if="name===1">{{$t('fnc.yewulian')}}</i> <i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i> <i v-if="name===1">{{$t('fnc.kuaijilian')}}</i>
<a class="_yewudanju" style="right:0;top:0"> <a class="_yewudanju" style="right:0;top:0">
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span> <span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span>
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span> <span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span>
...@@ -274,7 +280,10 @@ ...@@ -274,7 +280,10 @@
</template> </template>
</div> </div>
</div> </div>
</div>
<div v-show="!disabled"> <div v-show="!disabled">
<div class="_border_1" v-for="(val,index) in loopNumN" :key="index">
<p class="rb_tit" style="font-size: 16px !important;"> <p class="rb_tit" style="font-size: 16px !important;">
<el-input :disabled="disabled" size="small" style="width:135px" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input> <el-input :disabled="disabled" size="small" style="width:135px" v-model="GetDetail.CompanyName" placeholder="请输入"></el-input>
(<el-input :disabled="disabled" size="small" style="width:80px" v-model="GetDetail.BranchName" placeholder="请输入"></el-input>) (<el-input :disabled="disabled" size="small" style="width:80px" v-model="GetDetail.BranchName" placeholder="请输入"></el-input>)
...@@ -284,8 +293,8 @@ ...@@ -284,8 +293,8 @@
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input> <el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input>
</span> </span>
<!-- <i v-if="name===1">(客户联)</i> --> <!-- <i v-if="name===1">(客户联)</i> -->
<i v-if="name===1">{{$t('fnc.yewulian')}}</i> <i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i> <i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
<a class="_yewudanju" style="right:0;top:0"> <a class="_yewudanju" style="right:0;top:0">
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span> <span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==1">平台:</span>
<span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span> <span style="border:none;padding:0" v-if="GetDetail.OrderTradeWay==3">外交平台:</span>
...@@ -470,7 +479,9 @@ ...@@ -470,7 +479,9 @@
<tr v-if="isPrintPage"> <tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td> <td height="26px">{{$t('hotel.hotel_remark')}}</td>
<td height="26px" colspan="7"> <td height="26px" colspan="7">
{{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} <el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark" placeholder="请输入"></el-input>
<!-- {{GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark ? GetDetail.AuditSteps[GetDetail.AuditSteps.length-1].AuditRecordList[0].Remark : '无'}} -->
</td> </td>
</tr> </tr>
</table> </table>
...@@ -487,10 +498,12 @@ ...@@ -487,10 +498,12 @@
</div> </div>
</div> </div>
</div>
</template> </template>
<script> <script>
export default { export default {
props:["ID","width","color","isPrintPage","name","Num","OrderSource","disabled"], //接收参数 ID width color isPrintPage props:["ID","width","color","isPrintPage","name","Num","OrderSource","disabled","loopNumN"], //接收参数 ID width color isPrintPage
data(){ data(){
return{ return{
loading: false, loading: false,
......
...@@ -10,11 +10,11 @@ ...@@ -10,11 +10,11 @@
margin: 0 auto; margin: 0 auto;
padding: 0 !important; padding: 0 !important;
} }
._border_1{ /* ._border_1{
border: 1px solid #333333; border: 1px solid #333333;
margin-bottom:30px; margin-bottom:30px;
/* page-break-after: always; */ } */
}
/* @media print { /* @media print {
._PrintPage{ ._PrintPage{
margin-left:-145px; margin-left:-145px;
...@@ -37,13 +37,13 @@ ...@@ -37,13 +37,13 @@
<template v-loading="loading"> <template v-loading="loading">
<div class="_PrintPage"> <div class="_PrintPage">
<div class="_PrintPage_box"> <div class="_PrintPage_box">
<template v-if="type==='2'&&(Merge==='0'||Merge===null)"> <template v-if="type==='2'&&(Merge==='0' || Merge==='1' ||Merge===null)">
<div class="SetDiv"> <div class="SetDiv">
<span @click="disabled=false">编辑</span> <span @click="disabled=false">编辑</span>
<span @click="disabled=true">保存</span> <span @click="disabled=true">保存</span>
</div> </div>
<div class="_border_1" v-for="(item,index) in loopNumT"> <div class="_border_1" v-for="(item,index) in 1">
<my-Bill :disabled.sysc="disabled" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill> <my-Bill :loopNumN="loopNumN" :disabled.sysc="disabled" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill>
</div> </div>
</template> </template>
<template v-else-if="type==='1'&&(Merge==='0'||Merge===null)"> <template v-else-if="type==='1'&&(Merge==='0'||Merge===null)">
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
<span @click="disabled1=false">编辑</span> <span @click="disabled1=false">编辑</span>
<span @click="disabled1=true">保存</span> <span @click="disabled1=true">保存</span>
</div> </div>
<div class="_border_1" v-for="(item,index) in loopNumN"> <div class="_border_1" v-for="(item,index) in 1">
<my-RVB-Bill :disabled.sysc="disabled1" v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill> <my-RVB-Bill :loopNumN="loopNumN" :disabled.sysc="disabled1" v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :OrderSource="OrderSource" :color="colorSon" :name='index+1'></my-RVB-Bill>
</div> </div>
</template> </template>
<template v-if="type==='7'&&(Merge==='0'||Merge===null)"> <template v-if="type==='7'&&(Merge==='0'||Merge===null)">
...@@ -60,11 +60,11 @@ ...@@ -60,11 +60,11 @@
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill> <my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill>
</div> </div>
</template> </template>
<template v-if="Merge==='1'"> <!-- <template v-if="Merge==='1'">
<div class="_border_1" v-for="(item,index) in loopNumN"> <div class="_border_1" v-for="(item,index) in loopNumN">
<my-HB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill> <my-HB-Bill v-on:helloPP="numAdd" :Num="num" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :name='index+1'></my-HB-Bill>
</div> </div>
</template> </template> -->
</div> </div>
</div> </div>
</template> </template>
......
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