Commit 72b8ab9a authored by 华国豪's avatar 华国豪 🙄

1

parent 495ab5eb
...@@ -355,12 +355,12 @@ export default { ...@@ -355,12 +355,12 @@ export default {
}) })
} }
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(){ //获取单据详情
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= res.data.data; 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)
x.Money = Math.round(x.Money * 100) / 100 x.Money = Math.round(x.Money * 100) / 100
...@@ -381,8 +381,8 @@ export default { ...@@ -381,8 +381,8 @@ export default {
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")
...@@ -394,9 +394,7 @@ export default { ...@@ -394,9 +394,7 @@ 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;
if (this.ID){ this.Financial_post_GetDetail();
this.Financial_post_GetDetail(this.ID);
}
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { // GetDetail: {
......
...@@ -136,11 +136,11 @@ export default { ...@@ -136,11 +136,11 @@ export default {
this.picIsShow= true; this.picIsShow= true;
}, },
Financial_post_GetDetail(id){ //获取单据详情 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= res.data.data; let data= this.GetDetail;
let Money = 0; let Money = 0;
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);
...@@ -158,11 +158,11 @@ export default { ...@@ -158,11 +158,11 @@ export default {
data.AuditSteps.reverse(); data.AuditSteps.reverse();
this.GetDetail = data; this.GetDetail = data;
this.loading=false; this.loading=false;
} // }
}, err => {}) // }, err => {})
}, },
},mounted(){ },mounted(){
// this.Financial_post_GetDetail(this.ID) this.Financial_post_GetDetail()
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { // GetDetail: {
// handler: function(val, oldVal) { // handler: function(val, oldVal) {
......
...@@ -332,12 +332,12 @@ ...@@ -332,12 +332,12 @@
}) })
} }
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(){ //获取单据详情
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= res.data.data; 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)
x.Money = Math.round(x.Money * 100) / 100 x.Money = Math.round(x.Money * 100) / 100
...@@ -362,8 +362,8 @@ ...@@ -362,8 +362,8 @@
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,7 +375,7 @@ ...@@ -375,7 +375,7 @@
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.ID); this.Financial_post_GetDetail();
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { // GetDetail: {
// handler: function(val, oldVal) { // handler: function(val, oldVal) {
......
...@@ -372,12 +372,12 @@ export default { ...@@ -372,12 +372,12 @@ export default {
}) })
} }
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(){ //获取单据详情
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= res.data.data; 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)
x.Money = Math.round(x.Money * 100) / 100 x.Money = Math.round(x.Money * 100) / 100
...@@ -397,8 +397,8 @@ export default { ...@@ -397,8 +397,8 @@ export default {
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,7 +410,7 @@ export default { ...@@ -410,7 +410,7 @@ 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.ID); this.Financial_post_GetDetail();
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { // GetDetail: {
// handler: function(val, oldVal) { // handler: function(val, oldVal) {
......
...@@ -282,12 +282,12 @@ ...@@ -282,12 +282,12 @@
}) })
} }
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(){ //获取单据详情
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= res.data.data; 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)
x.Money = Math.round(x.Money * 100) / 100 x.Money = Math.round(x.Money * 100) / 100
...@@ -302,8 +302,8 @@ ...@@ -302,8 +302,8 @@
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.GetDetail,"mounted") console.log(this.GetDetail,"mounted")
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
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.ID); this.Financial_post_GetDetail();
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { // GetDetail: {
// handler: function(val, oldVal) { // handler: function(val, oldVal) {
......
...@@ -336,12 +336,12 @@ export default { ...@@ -336,12 +336,12 @@ export default {
}) })
} }
}, },
Financial_post_GetDetail(id){ //获取单据详情 Financial_post_GetDetail(){ //获取单据详情
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= res.data.data; let data = this.GetDetail;
let numberC = 0; let numberC = 0;
let price = 0; let price = 0;
let rate = 0; let rate = 0;
...@@ -364,8 +364,8 @@ export default { ...@@ -364,8 +364,8 @@ export default {
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,9 +377,7 @@ export default { ...@@ -377,9 +377,7 @@ 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;
if (this.ID){ this.Financial_post_GetDetail();
this.Financial_post_GetDetail(this.ID);
}
// this.Financial_post_GetDetail(this.ID); // this.Financial_post_GetDetail(this.ID);
},watch: { // 监听参数变化 },watch: { // 监听参数变化
// GetDetail: { // GetDetail: {
......
This diff is collapsed.
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