Commit 0f236456 authored by 吴春's avatar 吴春

区分入境和出境制单

parent c54cc4e9
......@@ -755,6 +755,7 @@
data() {
return {
isUpdate: 'false',
LineId:0,
loading: false,
defaultSelectValue: 0,
initialIndex: 0,
......@@ -972,10 +973,15 @@
CurrencyId: leadr.CurrencyId,
}
let id = [];
if (obj.OutBranchId === 0) {
id = [43, 48]
} else {
id = [56, 53]
if (obj.LineId==this.LineId){
id = [98, 99]
}
else{
if (obj.OutBranchId === 0) {
id = [43, 48]
} else {
id = [56, 53]
}
}
this.$router.push({
name: 'ChoiceAddFinancialDocuments',
......
......@@ -519,9 +519,9 @@
},
downloadTotal() {
if (this.picLyanzhengma.toLocaleUpperCase() == this.checkCode) {
// let pageData = document.getElementById('pdfNode').innerHTML
let urlObj = this.domainManager()
let _this = this
this.$http({
headers: {
'Content-Type': 'application/json'
......@@ -537,12 +537,12 @@
}).then(res => {
if (res.data.resultCode === 1) {
setTimeout(() => {
let sign = title
let sign = 'title'
const a = document.createElement('a');
a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.pdf&&fPath=' + res.data.data);
a.setAttribute('href', res.data.data);
a.click();
_this.deletePackageFile(res.data.data, urlObj.DomainUrl)
}, 1000)
} else {
this.Error('PDF获取失败');
......@@ -552,8 +552,22 @@
})
}
},
deletePackageFile: function (path, urlObj) {
console.log(path);
this.$http({
headers: {
'Content-Type': 'application/json'
},
method: 'post',
url: urlObj + '/api/file/DelPackageFile',
data: {
msg: {
"Path": path
}
}
}).then(res => {}).catch(err => {})
},
// this.yzmVisible=false
// this.$message.info('文件压缩中,请等待..')
......
......@@ -450,7 +450,7 @@
</el-tooltip>
<el-tooltip class="item" effect="dark" content="收付款" placement="top-start">
<el-button icon="iconfont icon-shoufukuan"
@click="goUrlT('teamRevenueExpenditure',item.TCID,'团队收支')" type="primary"
@click="goUrlF('teamRevenueExpenditure',item.TCID,item.LineId,'团队收支')" type="primary"
style="background:#00C6FF; border-color:#00C6FF"></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="联系OP" placement="top-start">
......@@ -852,6 +852,19 @@
name: path,
query: {
"id": obj,
"lineId": lineId,
NewCombinationNum: outItem.NewCombinationNum,
blank: 'y',
tab: title
}
})
},
goUrlF(path, obj,lineId, outItem, title) {
this.$router.push({
name: path,
query: {
"id": obj,
"lineId": lineId,
NewCombinationNum: outItem.NewCombinationNum,
blank: 'y',
tab: title
......
......@@ -346,6 +346,7 @@
export default {
data() {
return {
LineId:0,
picIsShow: false,
picObj: [],
msgList: [],
......@@ -440,18 +441,36 @@
goUrl(_orderSource, _type) {
let TCIDARR = []
let id = [];
// _orderSource 1 酒店 2餐厅 5 车资
if (_orderSource === 1 && _type === 2) {
id = [51, 52]
} else if (_orderSource === 2 && _type === 2) {
id = [54, 55]
} else if (_orderSource === 5 && _type === 2) {
id = [49, 50, 57, 58]
if( this.msgList[0].LineId==this.LineId){
if (_orderSource === 1 && _type === 2) {
id = [94]
} else if (_orderSource === 2 && _type === 2) {
id = [95]
} else if (_orderSource === 5 && _type === 2) {
id = [96]
}
// 门票
else if (_orderSource === 3 && _type === 2) {
id = [97]
}
}
// 门票
else if (_orderSource === 3 && _type === 2) {
id = [88, 89]
else{
// _orderSource 1 酒店 2餐厅 5 车资
if (_orderSource === 1 && _type === 2) {
id = [51, 52]
} else if (_orderSource === 2 && _type === 2) {
id = [54, 55]
} else if (_orderSource === 5 && _type === 2) {
id = [49, 50, 57, 58]
}
// 门票
else if (_orderSource === 3 && _type === 2) {
id = [88, 89]
}
}
TCIDARR.push(this.$route.query.id)
let orderObj = {
OrderID: 0,
......@@ -480,6 +499,7 @@
}, res => {
if (res.data.resultCode == 1) {
this.msgList = res.data.data
} else {}
}, err => {})
},
......@@ -516,6 +536,7 @@
}
},
mounted() {
this.LineId = this.$route.query.lineId
this.getList(1)
this.getList(2)
this.getList(3)
......
......@@ -1079,6 +1079,7 @@
export default {
data() {
return {
LineId:0,
planPriceList: [],
zhuijiaList: [],
zhuijiaMoney: 0,
......@@ -1438,7 +1439,13 @@
}, null)
},
goZhiDan: function (obj) {
let id = [59, 63, 78];
let id = [];
if (obj.LineId==this.LineId){
id = [75]
}
else{
id = [59, 63, 78];
}
let TCIDARR = [obj.TCIDS];
let orderObj = {
OrderID: 0,
......@@ -1473,6 +1480,7 @@
if (res.data.resultCode == 1) {
let TotalNav = res.data.data.list;
let listCost = res.data.data.listCost;
this.LineId=res.data.data.EntryId;
listCost.forEach(x => {
x.price = 0
})
......
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