Commit fe394f56 authored by 黄媛媛's avatar 黄媛媛

修改凭证打印

parent 33960426
...@@ -271,10 +271,10 @@ ...@@ -271,10 +271,10 @@
<td height="26px"></td> <td height="26px"></td>
</tr> </tr>
<tr v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail.length&&(GetDetail.Type!=1|| GetDetail.Type!=5)"> <tr v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail.length&&(GetDetail.Type!=1|| GetDetail.Type!=5)">
<td height="34px" class="">{{$t('tips.jiaoyifangshi')}}</td> <td height="34px" class="">交易方式</td>
<td height="34px" colspan="7" class="_color_b"> <td height="34px" colspan="7" class="_color_b">
<template v-for="(item,index) in GetDetail.CashierDetail"> <template v-for="(item,index) in GetDetail.CashierDetail">
<p class=" clearfix"><span class="_bold">{{item.Alias}}-</span><span class="">{{item.TypeName}}-</span><span >{{item.AccountType==""?$t('fnc.no'):item.AccountType}}</span> {{item.BankNo?'-':''}} <span>{{item.BankNo}}</span>{{item.Money}}</p> <p class="clearfix">{{item.CashierDes}}{{item.Money}}</p>
</template> </template>
</td> </td>
</tr> </tr>
...@@ -497,10 +497,12 @@ ...@@ -497,10 +497,12 @@
<td height="26px"></td> <td height="26px"></td>
</tr> </tr>
<tr v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail.length&&(GetDetail.Type!=1|| GetDetail.Type!=5)"> <tr v-if="GetDetail.CashierDetail&&GetDetail.CashierDetail.length&&(GetDetail.Type!=1|| GetDetail.Type!=5)">
<td height="34px" class="">{{$t('tips.jiaoyifangshi')}}</td> <td height="34px" class="">交易方式</td>
<td height="34px" colspan="7" class="_color_b"> <td height="34px" colspan="7" class="_color_b">
<template v-for="(item,index) in GetDetail.CashierDetail"> <template v-for="(item,index) in GetDetail.CashierDetail">
<p class=" clearfix"><span class="_bold">{{item.Alias}}-</span><span class="">{{item.TypeName}}-</span><span >{{item.AccountType==""?$t('fnc.no'):item.AccountType}}</span> {{item.BankNo?'-':''}} <span>{{item.BankNo}}</span>{{item.Money}}</p> <p class=" clearfix">
<el-input size="small" @input="CashierInput" style="width:auto" v-model="item.CashierDes" placeholder="请输入"></el-input>
{{item.Money}}</p>
</template> </template>
</td> </td>
</tr> </tr>
...@@ -583,6 +585,9 @@ export default { ...@@ -583,6 +585,9 @@ export default {
s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s; this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s;
},methods:{ },methods:{
CashierInput(){
this.$forceUpdate()
},
jumpPage(path,id,type){ jumpPage(path,id,type){
if(type==1){ if(type==1){
// let routeData = this.$router.resolve({ // let routeData = this.$router.resolve({
...@@ -642,6 +647,12 @@ export default { ...@@ -642,6 +647,12 @@ export default {
this.loading=false this.loading=false
this.$set(this.$data,"GetDetail",data); this.$set(this.$data,"GetDetail",data);
let status=false; let status=false;
if(this.GetDetail.CashierDetail){
this.GetDetail.CashierDetail.forEach(item=>{
item.CashierDes=`${item.Alias}-${item.TypeName}-${item.AccountType}-${item.BankNo}`
})
}
if(this.GetDetail.DetailList && this.GetDetail.DetailList.length>0 && this.GetDetail.TCIDList.length>0){ if(this.GetDetail.DetailList && this.GetDetail.DetailList.length>0 && this.GetDetail.TCIDList.length>0){
this.GetDetail.DetailList.forEach(item=>{ this.GetDetail.DetailList.forEach(item=>{
if(item.CostTypeName=="地接费(领取)"){ if(item.CostTypeName=="地接费(领取)"){
......
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