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

财务凭证打印

parent 8af92337
<style scoped>
.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.color_blur tr th{color: #106BAF}
.Receipt_boxNew.color_blur{color: #106BAF;}
......@@ -105,20 +105,26 @@
.Myprint .el-input__inner{
padding:0;
}
.Myprint ._border_1{
border: 1px solid #333333;
margin-bottom:30px;
padding: 15px;
}
</style>
<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="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">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip>
<p class="rb_tit" style="font-size: 16px !important;">{{GetDetail.CompanyName}}{{GetDetail.BranchName}}</p>
<p class="rb_stit">
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
<i v-if="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i>
<i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
</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>
......@@ -295,6 +301,7 @@
<tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td>
<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')}}
</td>
</tr>
......@@ -310,7 +317,9 @@
</template>
</div>
</div>
</div>
<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">
<span v-if="GetDetail.OtherType == 1" class="zhuiClass zhuiClassdetails"></span>
</el-tooltip>
......@@ -321,8 +330,8 @@
<span :class="isPrintPage?'_rb_stit_print':''">
<el-input size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input>
</span>
<i v-if="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i>
<i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
</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>
......@@ -518,7 +527,8 @@
<tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td>
<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>
</tr>
</table>
......@@ -534,13 +544,15 @@
</div>
</div>
</div>
</div>
</template>
<script>
import { connect } from 'net';
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(){
return{
loading:false,
EmployeeId:'',
EndDate:'',
......
......@@ -2,7 +2,7 @@
.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.color_blur tr th{color: #106BAF}
.Receipt_boxNew.color_blur{color: #106BAF;}
......@@ -89,16 +89,22 @@
.Myprint .el-input__inner{
padding-left:6px;
}
.Myprint ._border_1{
border: 1px solid #333333;
margin-bottom:30px;
padding: 15px;
}
</style>
<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 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_stit" style="position:relative">
<span :class="isPrintPage?'_rb_stit_print':''">{{GetDetail.FinanceName}}</span>
<!-- <i v-if="name===1">(客户联)</i> -->
<i v-if="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i>
<i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="name===1">{{$t('fnc.kuaijilian')}}</i>
<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==3">外交平台:</span>
......@@ -274,7 +280,10 @@
</template>
</div>
</div>
</div>
<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;">
<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>)
......@@ -284,8 +293,8 @@
<el-input :disabled="disabled" size="small" style="width:auto" v-model="GetDetail.FinanceName" placeholder="请输入"></el-input>
</span>
<!-- <i v-if="name===1">(客户联)</i> -->
<i v-if="name===1">{{$t('fnc.yewulian')}}</i>
<i v-if="name===2">{{$t('fnc.kuaijilian')}}</i>
<i v-if="index===0">{{$t('fnc.yewulian')}}</i>
<i v-if="index===1">{{$t('fnc.kuaijilian')}}</i>
<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==3">外交平台:</span>
......@@ -470,7 +479,9 @@
<tr v-if="isPrintPage">
<td height="26px">{{$t('hotel.hotel_remark')}}</td>
<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>
</tr>
</table>
......@@ -487,10 +498,12 @@
</div>
</div>
</div>
</template>
<script>
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(){
return{
loading: false,
......
......@@ -10,11 +10,11 @@
margin: 0 auto;
padding: 0 !important;
}
._border_1{
/* ._border_1{
border: 1px solid #333333;
margin-bottom:30px;
/* page-break-after: always; */
}
} */
/* @media print {
._PrintPage{
margin-left:-145px;
......@@ -37,13 +37,13 @@
<template v-loading="loading">
<div class="_PrintPage">
<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">
<span @click="disabled=false">编辑</span>
<span @click="disabled=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in loopNumT">
<my-Bill :disabled.sysc="disabled" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill>
<div class="_border_1" v-for="(item,index) in 1">
<my-Bill :loopNumN="loopNumN" :disabled.sysc="disabled" :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-Bill>
</div>
</template>
<template v-else-if="type==='1'&&(Merge==='0'||Merge===null)">
......@@ -51,8 +51,8 @@
<span @click="disabled1=false">编辑</span>
<span @click="disabled1=true">保存</span>
</div>
<div class="_border_1" v-for="(item,index) in loopNumN">
<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>
<div class="_border_1" v-for="(item,index) in 1">
<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>
</template>
<template v-if="type==='7'&&(Merge==='0'||Merge===null)">
......@@ -60,11 +60,11 @@
<my-GZ-Bill :ID="id" :width="widthSon" :isPrintPage="true" :color="colorSon" :OrderSource="OrderSource" :name='index+1'></my-GZ-Bill>
</div>
</template>
<template v-if="Merge==='1'">
<!-- <template v-if="Merge==='1'">
<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>
</div>
</template>
</template> -->
</div>
</div>
</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