Commit 2c229cfe authored by 黄奎's avatar 黄奎
parents 5313f70d f2c45599
...@@ -1394,7 +1394,7 @@ ...@@ -1394,7 +1394,7 @@
name: "ChoiceAddFinancialDocuments", name: "ChoiceAddFinancialDocuments",
query: { query: {
Type: 2, Type: 2,
companyID: this.msgList[0].OutBranchId, companyID: this.msgList&&this.msgList.length>0&&this.msgList[0].OutBranchId?this.msgList[0].OutBranchId:this.$route.query.OutBranchId,
'blank': 'y', 'blank': 'y',
'orderObj': JSON.stringify(orderObj) 'orderObj': JSON.stringify(orderObj)
} }
...@@ -1460,7 +1460,7 @@ ...@@ -1460,7 +1460,7 @@
} }
let TCIDARR = [] let TCIDARR = []
let id = []; let id = [];
if( this.msgList[0].LineId==this.myLineId){ if((this.msgList&&this.msgList.length>0&&this.msgList[0].LineId==this.myLineId)||this.myLineId){
if (_orderSource === 1 && _type === 2) { if (_orderSource === 1 && _type === 2) {
id = [94] id = [94]
...@@ -1506,7 +1506,7 @@ ...@@ -1506,7 +1506,7 @@
query: { query: {
'Type': _type, 'Type': _type,
'path': 'teamRevenueExpenditure', 'path': 'teamRevenueExpenditure',
'companyID': this.msgList[0].OutBranchId, 'companyID': this.msgList&&this.msgList.length>0&&this.msgList[0].OutBranchId?this.msgList[0].OutBranchId:this.$route.query.OutBranchId,
'templateID': id, 'templateID': id,
'blank': 'y', 'blank': 'y',
'orderObj': JSON.stringify(orderObj), 'orderObj': JSON.stringify(orderObj),
......
...@@ -363,7 +363,7 @@ ...@@ -363,7 +363,7 @@
} }
}, },
methods: { methods: {
//跳转到财务页面 //跳转到财务页面
goFinaceURL(id) { goFinaceURL(id) {
this.$router.push({ this.$router.push({
name: 'FinancialDocumentsDetail', name: 'FinancialDocumentsDetail',
...@@ -441,7 +441,7 @@ ...@@ -441,7 +441,7 @@
goUrl(_orderSource, _type) { goUrl(_orderSource, _type) {
let TCIDARR = [] let TCIDARR = []
let id = []; let id = [];
if( this.msgList[0].LineId==this.LineId){ if((this.msgList&&this.msgList.length>0&&this.msgList[0].LineId==this.LineId)||this.LineId){
if (_orderSource === 1 && _type === 2) { if (_orderSource === 1 && _type === 2) {
id = [94] id = [94]
...@@ -470,7 +470,7 @@ ...@@ -470,7 +470,7 @@
id = [88, 89] id = [88, 89]
} }
} }
TCIDARR.push(this.$route.query.id) TCIDARR.push(this.$route.query.id)
let orderObj = { let orderObj = {
OrderID: 0, OrderID: 0,
...@@ -485,7 +485,7 @@ ...@@ -485,7 +485,7 @@
query: { query: {
'Type': _type, 'Type': _type,
'path': 'teamRevenueExpenditure', 'path': 'teamRevenueExpenditure',
'companyID': this.msgList[0].OutBranchId, 'companyID': this.msgList&&this.msgList.length>0&&this.msgList[0].OutBranchId?this.msgList[0].OutBranchId:this.$route.query.OutBranchId,
'templateID': id, 'templateID': id,
'blank': 'y', 'blank': 'y',
'orderObj': JSON.stringify(orderObj), 'orderObj': JSON.stringify(orderObj),
...@@ -499,7 +499,7 @@ ...@@ -499,7 +499,7 @@
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.msgList = res.data.data this.msgList = res.data.data
} else {} } else {}
}, err => {}) }, err => {})
}, },
......
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