Commit 33fbc538 authored by 华国豪's avatar 华国豪 🙄

修改财务单据问题

parent 028d4895
...@@ -375,9 +375,9 @@ ...@@ -375,9 +375,9 @@
<span v-if="GetDetail.TemplateId==48 || (GetDetail.TemplateId==43&&GetDetail.IsPublic==4)" class="sqs" @click="goUrl('Application',GetDetail.FrID)">申请书下载</span> <span v-if="GetDetail.TemplateId==48 || (GetDetail.TemplateId==43&&GetDetail.IsPublic==4)" class="sqs" @click="goUrl('Application',GetDetail.FrID)">申请书下载</span>
<p class="_tit">{{GetDetail.FinanceName}} <span :class="{color_shz:(GetDetail.StatusStr!=='通过' && GetDetail.StatusStr!=='驳回' && GetDetail.StatusStr!=='作废'),color_tg:GetDetail.StatusStr==='通过',color_bh:GetDetail.StatusStr==='驳回'}">{{GetDetail.StatusStr}}</span></p> <p class="_tit">{{GetDetail.FinanceName}} <span :class="{color_shz:(GetDetail.StatusStr!=='通过' && GetDetail.StatusStr!=='驳回' && GetDetail.StatusStr!=='作废'),color_tg:GetDetail.StatusStr==='通过',color_bh:GetDetail.StatusStr==='驳回'}">{{GetDetail.StatusStr}}</span></p>
<div class="_conten"> <div class="_conten">
<my-Bill v-if="GetDetail.Type===2 && GetDetail.Type!==5 && showModel" :isPrintPage="false" :GetDetail="GetDetail" :width="widthSon" :color="colorSon"></my-Bill> <my-Bill v-if="GetDetail.Type===2 && GetDetail.Type!==5" :isPrintPage="false" :ID="GetDetail.FrID" :width="widthSon" :color="colorSon"></my-Bill>
<my-RVB-Bill v-else-if="GetDetail.Type===1 && showModel" :GetDetail="GetDetail" :isPrintPage="false" :width="widthSon" :color="colorSon"></my-RVB-Bill> <my-RVB-Bill v-else-if="GetDetail.Type===1" :ID="GetDetail.FrID" :isPrintPage="false" :width="widthSon" :color="colorSon"></my-RVB-Bill>
<my-GZ-Bill v-else-if="GetDetail.Type===7 && showModel" :GetDetail="GetDetail" :width="widthSon" :color="colorSon"></my-GZ-Bill> <my-GZ-Bill v-else-if="GetDetail.Type===7" :ID="GetDetail.FrID" :width="widthSon" :color="colorSon"></my-GZ-Bill>
<div class="_explain"> <div class="_explain">
<p>附加说明: <span class="fr" v-if="GetDetail.ComplainID > 0" @click="goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)"> <span style="color:#000">投诉单号:</span> <span class="cursorpointer text-decoration">{{GetDetail.ComplainID}}</span></span> </p> <p>附加说明: <span class="fr" v-if="GetDetail.ComplainID > 0" @click="goComplain('ComplaintsDetail', GetDetail.ComplainID,GetDetail.OrderID)"> <span style="color:#000">投诉单号:</span> <span class="cursorpointer text-decoration">{{GetDetail.ComplainID}}</span></span> </p>
<table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-if="GetDetail.TCIDAndTCNUMList.length>0"> <table border="1" bordercolor="#D2D2D2" style="border-collapse:collapse;margin-top:15px;" width="100%" v-if="GetDetail.TCIDAndTCNUMList.length>0">
......
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
</template> </template>
<script> <script>
export default { export default {
props:["ID","width","color","isPrintPage","name","OrderSource","GetDetail"], //接收参数 ID width color props:["ID","width","color","isPrintPage","name","OrderSource"], //接收参数 ID width color
data(){ data(){
return{ return{
loading:false, loading:false,
...@@ -317,6 +317,7 @@ export default { ...@@ -317,6 +317,7 @@ export default {
printTime:'', printTime:'',
currentMoney:0, currentMoney:0,
benMoney:0, benMoney:0,
GetDetail:{}
} }
},created(){ },created(){
let date = new Date(), let date = new Date(),
...@@ -355,20 +356,19 @@ export default { ...@@ -355,20 +356,19 @@ export default {
}) })
} }
}, },
Financial_post_GetDetail(){ //获取单据详情 Financial_post_GetDetail(id){ //获取单据详情
// if(!id) return if(!id) return
this.loading = true; this.loading = true;
// this.apipost('Financial_post_GetDetail',{ID:id}, res => { this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
let data = this.GetDetail; let data= res.data.data;
console.log(data.DetailList) data.DetailList.forEach(x=>{
// this.GetDetail.DetailList.forEach(x=>{ x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
// x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100) x.Money = Math.round(x.Money * 100) / 100
// x.Money = Math.round(x.Money * 100) / 100 x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100
// x.OriginalMoney = Math.round(x.OriginalMoney * 100) / 100 this.currentMoney += parseFloat(x.OriginalMoney);
// this.currentMoney += parseFloat(x.OriginalMoney); this.benMoney += parseFloat(x.Money);
// this.benMoney += parseFloat(x.Money); })
// })
this.currentMoney = Math.round(this.currentMoney * 100) / 100; this.currentMoney = Math.round(this.currentMoney * 100) / 100;
this.benMoney = Math.round(this.benMoney * 100) / 100; this.benMoney = Math.round(this.benMoney * 100) / 100;
this.$emit('headCallBack', this.currentMoney); this.$emit('headCallBack', this.currentMoney);
...@@ -380,10 +380,10 @@ export default { ...@@ -380,10 +380,10 @@ export default {
this.GetDetail = data; this.GetDetail = data;
console.log(this.GetDetail) console.log(this.GetDetail)
this.loading=false this.loading=false
// this.$set(this.$data,"GetDetail",data); this.$set(this.$data,"GetDetail",data);
// console.log(this.GetDetail) console.log(this.GetDetail)
// } }
// }, err => {}) }, err => {})
}, },
},mounted(){ },mounted(){
// console.log(this.ID+"mounted") // console.log(this.ID+"mounted")
...@@ -395,24 +395,23 @@ export default { ...@@ -395,24 +395,23 @@ export default {
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(); this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { GetDetail: {
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// // console.log(val) // console.log(val)
// // console.log(oldVal) // console.log(oldVal)
// }, },
// deep: true deep: true
// }, },
// ID:{ ID:{
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// this.ID = val this.ID = val
// this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail(this.ID)
// // console.log(val) // console.log(val)
// }, },
// deep: true deep: true
// } }
} }
} }
</script> </script>
...@@ -332,11 +332,11 @@ ...@@ -332,11 +332,11 @@
}) })
} }
}, },
Financial_post_GetDetail(){ //获取单据详情 Financial_post_GetDetail(id){ //获取单据详情
// if(!id) return if(!id) return
this.loading = true; this.loading = true;
// this.apipost('Financial_post_GetDetail',{ID:id}, res => { this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
let data= this.GetDetail; let data= this.GetDetail;
data.DetailList.forEach(x=>{ data.DetailList.forEach(x=>{
x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100) x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
...@@ -360,10 +360,10 @@ ...@@ -360,10 +360,10 @@
data.AuditSteps.reverse() data.AuditSteps.reverse()
this.GetDetail = data; this.GetDetail = data;
this.loading=false this.loading=false
// this.$set(this.$data,"GetDetail",data); this.$set(this.$data,"GetDetail",data);
// console.log(this.GetDetail) console.log(this.GetDetail)
// } }
// }, err => {}) }, err => {})
}, },
},mounted(){ },mounted(){
// console.log(this.ID+"mounted") // console.log(this.ID+"mounted")
...@@ -375,23 +375,23 @@ ...@@ -375,23 +375,23 @@
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(); this.Financial_post_GetDetail(THIS.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { GetDetail: {
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// // console.log(val) // console.log(val)
// // console.log(oldVal) // console.log(oldVal)
// }, },
// deep: true deep: true
// }, },
// ID:{ ID:{
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// this.ID = val this.ID = val
// this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail(this.ID)
// // console.log(val) // console.log(val)
// }, },
// deep: true deep: true
// } }
} }
} }
</script> </script>
...@@ -372,11 +372,11 @@ export default { ...@@ -372,11 +372,11 @@ export default {
}) })
} }
}, },
Financial_post_GetDetail(){ //获取单据详情 Financial_post_GetDetail(id){ //获取单据详情
// if(!id) return if(!id) return
this.loading = true; this.loading = true;
// this.apipost('Financial_post_GetDetail',{ID:id}, res => { this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
let data= this.GetDetail; let data= this.GetDetail;
data.DetailList.forEach(x=>{ data.DetailList.forEach(x=>{
x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100) x.UnitPrice = this.$commonUtils.addCommas(Math.round(x.UnitPrice * 100) / 100)
...@@ -396,9 +396,9 @@ export default { ...@@ -396,9 +396,9 @@ export default {
console.log(this.GetDetail) console.log(this.GetDetail)
this.loading=false this.loading=false
// this.$set(this.$data,"GetDetail",data); // this.$set(this.$data,"GetDetail",data);
// console.log(this.GetDetail) console.log(this.GetDetail)
// } }
// }, err => {}) }, err => {})
}, },
},mounted(){ },mounted(){
// console.log(this.ID+"mounted") // console.log(this.ID+"mounted")
...@@ -410,23 +410,23 @@ export default { ...@@ -410,23 +410,23 @@ export default {
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(); this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { GetDetail: {
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// // console.log(val) // console.log(val)
// // console.log(oldVal) // console.log(oldVal)
// }, },
// deep: true deep: true
// }, },
// ID:{ ID:{
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// this.ID = val this.ID = val
// this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail(this.ID)
// // console.log(val) // console.log(val)
// }, },
// deep: true deep: true
// } }
} }
} }
</script> </script>
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
</template> </template>
<script> <script>
export default { export default {
props:["ID","width","color","isPrintPage","name","Num","OrderSource","GetDetail"], //接收参数 ID width color isPrintPage props:[" ","width","color","isPrintPage","name","Num","OrderSource","GetDetail"], //接收参数 ID width color isPrintPage
data(){ data(){
return{ return{
loading:false, loading:false,
...@@ -336,12 +336,12 @@ export default { ...@@ -336,12 +336,12 @@ export default {
}) })
} }
}, },
Financial_post_GetDetail(){ //获取单据详情 Financial_post_GetDetail(id){ //获取单据详情
// if(!id) return; if(!id) return;
this.loading = true; this.loading = true;
// this.apipost('Financial_post_GetDetail',{ID:id}, res => { this.apipost('Financial_post_GetDetail',{ID:id}, res => {
// if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
let data = this.GetDetail; let data= res.data.data;
let numberC = 0; let numberC = 0;
let price = 0; let price = 0;
let rate = 0; let rate = 0;
...@@ -354,7 +354,7 @@ export default { ...@@ -354,7 +354,7 @@ export default {
}) })
this.currentMoney = Math.round(this.currentMoney * 100) / 100; this.currentMoney = Math.round(this.currentMoney * 100) / 100;
this.benMoney = Math.round(this.benMoney * 100) / 100; this.benMoney = Math.round(this.benMoney * 100) / 100;
// let m = data.PayMoney?data.PayMoney:data.Money; let m = data.PayMoney?data.PayMoney:data.Money;
data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money); data.ChineseMoney = this.$commonUtils.changeMoneyToChinese(data.Money);
data.ChinesePayMoney = this.$commonUtils.changeMoneyToChinese(data.PayMoney) data.ChinesePayMoney = this.$commonUtils.changeMoneyToChinese(data.PayMoney)
data.PayMoney = this.$commonUtils.addCommas(Math.round(data.PayMoney * 100) / 100) data.PayMoney = this.$commonUtils.addCommas(Math.round(data.PayMoney * 100) / 100)
...@@ -362,10 +362,10 @@ export default { ...@@ -362,10 +362,10 @@ export default {
data.AuditSteps.reverse(); data.AuditSteps.reverse();
this.GetDetail = data; this.GetDetail = data;
this.loading=false this.loading=false
// this.$set(this.$data,"GetDetail",data); this.$set(this.$data,"GetDetail",data);
// console.log(this.GetDetail) console.log(this.GetDetail)
// } }
// }, err => {}) }, err => {})
}, },
},mounted(){ },mounted(){
// console.log(this.ID+"mounted") // console.log(this.ID+"mounted")
...@@ -377,25 +377,24 @@ export default { ...@@ -377,25 +377,24 @@ export default {
this.EndDate = yaer + '-' + month + '-' + dateS; this.EndDate = yaer + '-' + month + '-' + dateS;
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
this.Financial_post_GetDetail(); this.Financial_post_GetDetail(this.ID);
// this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { GetDetail: {
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// // console.log(val) // console.log(val)
// // console.log(oldVal) // console.log(oldVal)
// }, },
// deep: true deep: true
// }, },
// ID:{ ID:{
// handler: function(val, oldVal) { handler: function(val, oldVal) {
// this.ID = val this.ID = val
// // console.log(val+"watch") // console.log(val+"watch")
// this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail(this.ID)
// // console.log(val) // console.log(val)
// }, },
// deep: true deep: true
// }, },
num: { num: {
handler: function(val, oldVal) { handler: function(val, oldVal) {
console.log(val) console.log(val)
......
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