Commit 82b11fc7 authored by 黄奎's avatar 黄奎

代码优化

parent c35e61a1
......@@ -264,7 +264,6 @@ export default {
break;
}
}
console.log(JSON.stringify(items))
// 判断是否为图片数据
if (item && item.kind === "file" && item.type.match(/^image\//i)) {
// 读取该图片
......@@ -295,7 +294,6 @@ export default {
this.isCtrl = type == 0;
},
ctrlEnterPush() {
console.log(this.isCtrl + "___" + this.sendModel);
if (this.sendModel == 0 && !this.isCtrl) {
this.sendTextMsg();
} else if (this.sendModel == 0 && this.isCtrl) {
......
......@@ -474,7 +474,6 @@ export default {
beforeMount() {
this.imgs=[]
let item = Object.assign({}, this.rawMsg);
// console.log(item)
// 标记用户,区分聊天室、普通消息
if (this.type === "session") {
if (item.flow === "in") {
......@@ -503,7 +502,6 @@ export default {
// 标记发送的时间
item.showText = item.text;
this.timeIndex += 1;
//console.log(this.timeIndex)
} else if (item.type === "text") {
if (item.custom && JSON.parse(item.custom).layout === 3) {
item.showIcon = this.getFileIcon(JSON.parse(item.custom).extension);
......@@ -909,17 +907,6 @@ export default {
this.$store.dispatch("continueRobotMsg", robotAccid);
},
showFullImg(src) {
// console.log(src);
// // this.$store.dispatch('showFullscreenImg', {
// // src
// // })
// if (!this.isLoading) {
// this.isLoading = true;
// var img = new Image();
// img.src = src;
// var crt = this;
// }
console.log(src)
this.MsgBus.$emit('imgpreviewshowindex',src)
},
playAudio(src) {
......
......@@ -243,8 +243,6 @@ export default {
}
},
showRightMenu(e){
console.log(e)
if(e.button==2){
let id=''
e.path.forEach(x=>{
......@@ -323,12 +321,10 @@ export default {
this.currentTabName=this.tabs[index-1].name+"_"+(index-1)
}
}
// console.log(this.currentTabName)
this.tabs.splice(index,1)
}
},
mapObj(path,name){
//this.getMenuV2(path)
let obj={}
obj=this.getTitleByRouter(name)
if(obj.title=='')
......@@ -377,7 +373,6 @@ export default {
obj.history=[]
obj.type='d'
obj.hisIndex=0
// console.log(newName)
this.currentTabName=obj.name+'_'+this.tabs.length
this.tabs.push(obj)
}
......@@ -878,7 +873,6 @@ export default {
let that=this
this.$router.beforeEach((to, from, next) => {
document.title = to.meta.title ? to.meta.title+'-四川和平国际旅行社' : '四川和平国际旅行社'
// console.log("to.query.blank && to.query.blank=='y'",to.query,"666")
if(to.path=="/ModifyVisaProduct"){
this.reloadpage();
}
......@@ -892,17 +886,14 @@ export default {
})
if(isThreeNav){
// console.log(to)
if(!to.query.blank || to.query.blank!='y'){
let comp=that.getTitleByRouter(to.name)
if(that.tabs.length>0){
// console.log('in..........')
let tabs=that.tabs.filter(x=>{
let item=x
if(x.name==that.currentTabName.split('_')[0]&& x.path==that.currentTag.path){
if(that.type=='d'){
x.hisIndex=x.history.length
// console.log(x)
}
x.title=comp.title==''?x.title:comp.title
x.path=to.fullPath
......@@ -924,7 +915,6 @@ export default {
newPath+=x
}
})
// console.log(newPath)
let isExsit=false
let tabs=that.tabs.filter((x,i)=>{
if(x.path==newPath){
......@@ -933,7 +923,6 @@ export default {
}
return x
})
// console.log(newPath)
if(isExsit)
that.$set(that.tabs,tabs)
else{
......@@ -948,7 +937,6 @@ export default {
obj.hisIndex=0
that.tabs.push(obj)
that.currentTabName=obj.name+"_"+(that.tabs.length-1)
// console.log(that.tabs)
}
}
}
......@@ -957,7 +945,6 @@ export default {
}else if(that.openMode==0 && to.query.blank && to.query.blank=='y'){
let dom = document.querySelector("#blankLink")
dom.href=`http://${window.location.host}/#${to.fullPath}`
//console.log(that.$refs.blankLink.click())
dom.click()
}else{
next()
......
......@@ -770,11 +770,9 @@ export default {
this.msg.CostTypeIDslist.forEach(x=>{
this.msg.CostTypeIDs += x + ','
})
console.log(this.msg.CostTypeIDs)
}
this.loading= true;
this.apipost('Financial_post_GetExChangeDiffPageList',this.msg,res=>{
// console.log("res",res);
if(res.data.resultCode == 1) {
let data = res.data.data.pageData.list;
this.total = res.data.data.count;
......@@ -788,7 +786,6 @@ export default {
this.DataList=[];
}else{
data.forEach(x=>{
// this.columns[0].filters.push({label:x.FrID,value:x.FrID})
x.modelShow = false;
})
this.DataList = data;
......
......@@ -1293,7 +1293,6 @@ export default {
this.apipost('BankAccount_post_GetPlatformList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{
let obj = {
ID:x.ID,
......@@ -1315,7 +1314,6 @@ export default {
this.apipost('BankAccount_post_GetCashAccountList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{
let obj = {
ID:x.ID,
......@@ -1337,7 +1335,6 @@ export default {
this.apipost('BankAccount_post_GetCashPoolList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{
let obj = {
ID:x.ID,
......@@ -1427,7 +1424,6 @@ export default {
},
FinancialFlowTemplate_post_GetList(){ // 单据类型
this.apipost('Financial_post_GetList',{},res=>{
// console.log(res.data.data);
if(res.data.resultCode==1){
this.TemplateGetList = res.data.data;
}else{
......
......@@ -401,7 +401,6 @@ export default {
this.GetDetail = data;
this.loading=false
this.$set(this.$data,"GetDetail",data);
// console.log("sdfsaoifsjapof ",this.GetDetail)
let status=false;
if(this.GetDetail.DetailList && this.GetDetail.DetailList.length>0 && this.GetDetail.TCIDList.length>0){
this.GetDetail.DetailList.forEach(item=>{
......@@ -410,26 +409,13 @@ export default {
}
})
if(status){
// this.apipost('Financial_post_GetFinanceSwipingCard',{FrId:this.ID},res=>{
// if(res.data.resultCode==1){
// if(res.data.data.length>0){
// this.GetDetail.DetailList[0].Remark+=` `+"刷卡:"
// res.data.data.forEach(item=>{
// this.GetDetail.DetailList[0].Remark+=`${item.Name},`;
// })
// }
// }else{
// this.Error(res.data.message)
// }
// },err=>{})
}
}
}
}, err => {})
},
},mounted(){
// console.log(this.ID+"mounted")
const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
......@@ -442,8 +428,6 @@ export default {
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
// console.log(val)
// console.log(oldVal)
},
deep: true
},
......@@ -451,7 +435,6 @@ export default {
handler: function(val, oldVal) {
this.ID = val
this.Financial_post_GetDetail(this.ID)
// console.log(val)
},
deep: true
}
......
......@@ -167,8 +167,6 @@ export default {
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
// console.log(val)
// console.log(oldVal)
},
deep: true
},
......
......@@ -366,7 +366,6 @@
}, err => {})
},
},mounted(){
// console.log(this.ID+"mounted")
const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
......@@ -379,8 +378,6 @@
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
// console.log(val)
// console.log(oldVal)
},
deep: true
},
......@@ -388,7 +385,6 @@
handler: function(val, oldVal) {
this.ID = val
this.Financial_post_GetDetail(this.ID)
// console.log(val)
},
deep: true
}
......
......@@ -73,8 +73,6 @@ export default {
},watch: {
data: {
handler: function(val, oldVal) {
// console.log(oldVal)
// console.log(val)
this.dataList = val
},
deep: true
......
......@@ -394,15 +394,11 @@ export default {
data.Money = this.$commonUtils.addCommas(Math.round(data.Money * 100) / 100)
data.AuditSteps.reverse()
this.GetDetail = data;
console.log(this.GetDetail)
this.loading=false
// this.$set(this.$data,"GetDetail",data);
console.log(this.GetDetail)
}
}, err => {})
},
},mounted(){
// console.log(this.ID+"mounted")
const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
......@@ -415,8 +411,6 @@ export default {
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
// console.log(val)
// console.log(oldVal)
},
deep: true
},
......@@ -424,7 +418,6 @@ export default {
handler: function(val, oldVal) {
this.ID = val
this.Financial_post_GetDetail(this.ID)
// console.log(val)
},
deep: true
}
......
......@@ -302,12 +302,11 @@
this.GetDetail = data;
this.loading=false
this.$set(this.$data,"GetDetail",data);
console.log(this.GetDetail)
}
}, err => {})
},
},mounted(){
console.log(this.GetDetail,"mounted")
const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
......@@ -320,8 +319,6 @@
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
// console.log(val)
// console.log(oldVal)
},
deep: true
},
......@@ -329,7 +326,6 @@
handler: function(val, oldVal) {
this.ID = val
this.Financial_post_GetDetail(this.ID)
// console.log(val)
},
deep: true
}
......
......@@ -310,7 +310,6 @@ export default {
this.printTime = y + '' + m + '' + d + ' ' + h + ':' + min + ':' + s;
},methods:{
sendMsg(){
console.log(111)
this.$emit('helloPP','1')
},
jumpFreePage(path,id){
......@@ -373,12 +372,10 @@ export default {
this.GetDetail = data;
this.loading=false
this.$set(this.$data,"GetDetail",data);
console.log(this.GetDetail)
}
}, err => {})
},
},mounted(){
// console.log(this.ID+"mounted")
const myDate = new Date();
let yaer = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let month = myDate.getMonth()+1; //获取当前月份(0-11,0代表1月)
......@@ -391,24 +388,18 @@ export default {
},watch: { // 监听参数变化
GetDetail: {
handler: function(val, oldVal) {
// console.log(val)
// console.log(oldVal)
},
deep: true
},
ID:{
handler: function(val, oldVal) {
this.ID = val
// console.log(val+"watch")
this.Financial_post_GetDetail(this.ID)
// console.log(val)
},
deep: true
},
num: {
handler: function(val, oldVal) {
console.log(val)
console.log(oldVal)
},
deep: true
},
......
......@@ -886,16 +886,13 @@ export default {
this.AccountType_post_GetList();
},methods:{
customCompFunc(params){
console.log(params);
},
sortChange(param){
console.log(param)
//自己写实现
//{gender:"",name:"asc"}
},
// 数据筛选
filterMethod(filters){
console.log(filters)
// let tableData = this.DataList;
// if (filters.FrID && filters.FrID.length>0){
......@@ -954,7 +951,6 @@ export default {
this.msg.CostTypeIDslist.forEach(x=>{
this.msg.CostTypeIDs += x + ','
})
console.log(this.msg.CostTypeIDs)
}
this.loading= true;
this.apipost('Financial_post_GetALLPageList',this.msg,res=>{
......@@ -1108,7 +1104,6 @@ export default {
this.apipost('BankAccount_post_GetPlatformList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{RangeIds
let obj = {
ID:x.ID,
......@@ -1130,7 +1125,6 @@ export default {
this.apipost('BankAccount_post_GetCashAccountList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{
let obj = {
ID:x.ID,
......@@ -1152,7 +1146,6 @@ export default {
this.apipost('BankAccount_post_GetCashPoolList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{
let obj = {
ID:x.ID,
......@@ -1222,7 +1215,6 @@ export default {
},
FinancialFlowTemplate_post_GetList(){ // 单据类型
this.apipost('Financial_post_GetList',{},res=>{
// console.log(res.data.data);
if(res.data.resultCode==1){
this.TemplateGetList = res.data.data;
}else{
......
......@@ -135,7 +135,6 @@ import moment from "moment"
this.loading = false;
if(res.data.resultCode==1){
this.dataList = res.data.data.pageData;
// console.log(res);
this.total = res.data.data.count;
}else{
this.Error(res.data.message);
......
......@@ -992,7 +992,6 @@ export default {
Calculation() {
// 计算盈亏
this.SetProfitLossMsg.CostTypeID = "";
// console.log(11111111111)
this.moneyDate.Money = this.regNum(this.SetProfitLossMsg.Money, 1);
this.moneyDate.LastR = this.regNum(this.SetProfitLossMsg.initRate, 1);
this.moneyDate.currentR = this.regNum(this.SetProfitLossMsg.EndRate, 2);
......@@ -1009,7 +1008,6 @@ export default {
} else {
this.costType = [];
}
// console.log(((this.moneyDate.currentR-this.moneyDate.LastR)*this.moneyDate.Money).toFixed(2))
},
getTemplateCostTypeList(t) {
this.apipost(
......@@ -1144,7 +1142,6 @@ export default {
this.remoteMethod(data.InemName);
this.remoteMethod2(data.OutemName);
this.addMsg = data;
// console.log("this.addMsg",this.addMsg)
this.addMsg.HaveContract = this.addMsg.HaveContract.toString()
this.addMsg.SettlementType =this.addMsg.SettlementType.toString()
this.addMsg.BindBankID = this.addMsg.BindBankID==-1?null:this.addMsg.BindBankID
......@@ -1390,7 +1387,6 @@ export default {
this.SetProfitLoss();
}
} else {
console.log("error submit!!");
return false;
}
});
......@@ -1427,14 +1423,7 @@ export default {
});
},
InitTime() {
// if(this.inTime==1){
// this.getList()
// this.inTime
// clearInterval(this.InitTimeFun)
// }else{
// this.inTime--
// }
// console.log(this.inTime)
}
},
mounted() {
......
......@@ -434,7 +434,7 @@ export default {
}
},methods:{
goUrlNew (item) {
console.log(item);
let path="PoolAccDetail";
this.$router.push({ name: path,query:{"TypeId":item.TypeId,'ID':item.ID, blank: "y",}})
},
......@@ -484,7 +484,6 @@ export default {
},
Calculation(){ // 计算盈亏
this.SetProfitLossMsg.CostTypeID = '';
console.log(11111111111)
this.moneyDate.Money = this.regNum(this.SetProfitLossMsg.Money,1)
this.moneyDate.LastR = this.regNum(this.SetProfitLossMsg.initRate,1)
this.moneyDate.currentR = this.regNum(this.SetProfitLossMsg.EndRate,2)
......@@ -498,7 +497,6 @@ export default {
}else{
this.costType=[];
}
console.log(((this.moneyDate.currentR-this.moneyDate.LastR)*this.moneyDate.Money).toFixed(2))
},
getTemplateCostTypeList(t){
this.apipost('financeinfo_post_GetCostTypeList',{Type:t},res=>{
......@@ -725,7 +723,6 @@ export default {
this.SetProfitLoss()
}
} else {
console.log('error submit!!');
return false;
}
});
......
......@@ -227,7 +227,6 @@ export default {
this.loading=false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data;
console.log("this.dataList",this.dataList)
// allzb
let num=0;
this.dataList.forEach(item=>{
......
......@@ -1225,7 +1225,6 @@ export default {
this.apipost('BankAccount_post_GetCashAccountList',msg, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
// console.log(data)
data.forEach(x=>{
let obj = {
ID:x.ID,
......
......@@ -255,7 +255,6 @@
if (valid) {
this.addCashierWork();
} else {
console.log('error submit!!');
return false;
}
});
......
......@@ -425,7 +425,6 @@
let allWPrice = 0;
this.checkList.forEach(x=>{
if(x.FinanceId){
console.log(x)
count++;
allBPrice = allBPrice + x.Money;
allWPrice = allWPrice + x.OriginalMoney;
......@@ -509,7 +508,6 @@
this.allLoading = true
this.apipost('Financial_post_MergeFinance',this.addMsg,r=>{
if(r.data.resultCode === 1) {
console.log(r)
this.addChuNa = false
this.getList()
}else{
......@@ -599,15 +597,12 @@
Money = this.payMsg.OriginalMoney;
this.payMsg.allMoney = (Money*Rate)+fee;
}
// console.log(Rate+"+"+fee+"+"+Money)
},
setAccountName(i,type,index){
if(type===2){
this.accountList.forEach(x=>{
if(x.ID===i){
this.payMsg.Account = x.allName;
console.log(x);
this.payMsg.CurrenName =x.CurrencyName;
this.payMsg.Rate = x.CurrencyRate?x.CurrencyRate:x.CurrentRate;
this.payMsg.CurrencyId = x.CurrencyId;
......@@ -619,7 +614,6 @@
this.accountList.forEach(x=>{
if(x.ID===i){
this.payMsgList[index].Account = x.allName;
console.log(x);
this.payMsgList[index].CurrenName =x.CurrencyName;
this.payMsgList[index].Rate = x.CurrencyRate?x.CurrencyRate:x.CurrentRate;
this.payMsgList[index].CurrencyId = x.CurrencyId;
......
......@@ -665,7 +665,6 @@ export default {
this.accountList.forEach(x=>{
if(x.ID===i){
this.payMsg.Account = x.allName;
console.log(x);
this.payMsg.CurrenName =x.CurrencyName;
this.payMsg.Rate = x.CurrencyRate?x.CurrencyRate:x.CurrentRate;
this.payMsg.CurrencyId = x.CurrencyId;
......@@ -677,7 +676,6 @@ export default {
this.accountList.forEach(x=>{
if(x.ID===i){
this.payMsgList[index].Account = x.allName;
console.log(x);
this.payMsgList[index].CurrenName =x.CurrencyName;
this.payMsgList[index].Rate = x.CurrencyRate?x.CurrencyRate:x.CurrentRate;
this.payMsgList[index].CurrencyId = x.CurrencyId;
......@@ -798,7 +796,6 @@ export default {
this.allLoading = true
this.apipost('Financial_post_MergeFinance',this.addMsg,r=>{
if(r.data.resultCode === 1) {
console.log(r)
this.addChuNa = false
this.getList()
}else{
......@@ -808,10 +805,6 @@ export default {
},null)
},
addCheckbox(obj,index){
// if(obj.Is_Cashier===1){
// obj.check = false;
// return this.$message.error('请选择未审核的单据')
// }
this.DataList.forEach((x)=>{ // 循环改变check disabled 状态
if(x.FinanceId===obj.FinanceId){
x.disabled=false
......@@ -859,7 +852,6 @@ export default {
let allWPrice = 0;
this.checkList.forEach(x=>{
if(x.FinanceId){
console.log(x)
count++;
allBPrice = allBPrice + x.Money;
allWPrice = allWPrice + x.OriginalMoney;
......
......@@ -827,7 +827,6 @@ export default {
this.allLoading = true
this.apipost('Financial_post_MergeFinance',this.addMsg,r=>{
if(r.data.resultCode === 1) {
console.log(r)
this.addChuNa = false
this.getList()
}else{
......
......@@ -345,7 +345,6 @@ export default {
if (valid) {
this.addCashierWork();
} else {
console.log('error submit!!');
return false;
}
});
......
......@@ -672,7 +672,6 @@ export default {
this.$forceUpdate();
},
IsPublicChange(val){
console.log(123123)
this.showDisable=false;
this.msg.ClientType = '';
......@@ -895,7 +894,6 @@ export default {
this.msg.Type = this.$route.query.Type
}
if(this.orderObj!=null&&this.orderObj.OrderSource===10){
// console.log("getGuestInfo",this.$store.getters.getGuestInfo)
let guestInfo = JSON.parse(sessionStorage.getItem("saveGuestInfo"));
// return;
this.msg.GuestInfoList=[];
......@@ -911,8 +909,6 @@ export default {
this.loading = true;
this.msg.Description=this.Description;
this.apipost('Financial_post_Set',this.msg,res=>{
console.log("res",res);
console.log("this.msg",this.msg);
if(res.data.resultCode==1){
//清除旅客名单数据
sessionStorage.removeItem("saveGuestInfo");
......@@ -952,7 +948,6 @@ export default {
this.$set(this.msg.detailList,i,this.msg.detailList[i]);
},
addList(t,i){ // 添加
console.log('离开了tr................')
let list ={};
if(t==2&&i){
list = JSON.parse(JSON.stringify(this.msg.detailList[i-1]));
......@@ -1073,7 +1068,6 @@ export default {
this.$forceUpdate();
}
})
console.log("this.detailList.Rate",this.detailList.Rate)
this.Calculation(t,index+1)
},
financeinfo_post_GetClientTypeList(){ // 获取对象类型
......@@ -1190,23 +1184,13 @@ export default {
this.apipost('financeinfo_post_GetList',{Name:'', TCID: TCID}, res => {
if(res.data.resultCode == 1) {
this.coinGetList = res.data.data;
console.log("this.coinGetList 522555",this.coinGetList )
}
}, err => {})
},
Financial_post_Get(id,tempId){ //获取单据详情
this.loading = true;
// let TCID = '';
// console.log(this.orderObj.TCIDList)
// return
// this.orderObj.TCIDList.forEach(x=>{
// TCID = TCID + x +','
// })
// TCID.split(0,TCID.length-1)
this.apipost('Financial_post_Get',{ID:id,TempId:tempId,TCIDList:(this.orderObj&&this.orderObj.TCIDList)?this.orderObj.TCIDList:[]}, res => {
if(res.data.resultCode == 1) {
// console.log("res.data",res.data)
let data= res.data.data;
this.editTemplateId=data.TemplateId;
this.getCompany();
......@@ -1521,7 +1505,6 @@ export default {
this.apipost('financeinfo_post_GetList',{Name:'', TCID: TCID}, res => {
if(res.data.resultCode == 1) {
this.coinGetList = res.data.data;
console.log("this.coinGetList 522555",this.coinGetList )
}
}, err => {})
},
......
......@@ -899,7 +899,6 @@
this.$set(this.msg.detailList,i,this.msg.detailList[i]);
},
addList(t,i){ // 添加
console.log('离开了tr................')
let list ={};
if(t==2&&i){
list = JSON.parse(JSON.stringify(this.msg.detailList[i-1]));
......@@ -998,7 +997,6 @@
this.detailList.Rate=x.CurrentRate;
this.detailList.currenName = x.Name;
}else{
console.log(x)
this.msg.detailList[index].Rate =x.CurrentRate;
this.msg.detailList[index].currenName = x.Name;
}
......@@ -1129,15 +1127,7 @@
},
Financial_post_Get(id,tempId){ //获取单据详情
this.loading = true;
// let TCID = '';
// console.log(this.orderObj.TCIDList)
// return
// this.orderObj.TCIDList.forEach(x=>{
// TCID = TCID + x +','
// })
// TCID.split(0,TCID.length-1)
this.apipost('Financial_post_Get',{ID:id,TempId:tempId,TCIDList:(this.orderObj&&this.orderObj.TCIDList)?this.orderObj.TCIDList:[]}, res => {
// console.log(this.orderObj.TCIDList)
if(res.data.resultCode == 1) {
let data= res.data.data;
data.IsLeader = 1;
......@@ -1248,7 +1238,6 @@
},
},created(){
this.orderObj = this.$route.query.orderObj?JSON.parse(this.$route.query.orderObj):null;
console.log(this.$route.query.orderObj)
},mounted(){
let userInfo = this.getLocalStorage();
this.department = userInfo.DepartName;
......
......@@ -963,7 +963,6 @@ export default {
},err=>{})
},
addList(t,i){ // 添加
console.log('离开了tr................')
let list ={};
if(t==2&&i){
list = JSON.parse(JSON.stringify(this.msg.detailList[i-1]));
......@@ -1073,7 +1072,6 @@ export default {
this.detailList.Rate=x.CurrentRate;
this.detailList.currenName = x.Name;
}else{
console.log(x)
this.msg.detailList[index].Rate =x.CurrentRate;
this.msg.detailList[index].currenName = x.Name;
}
......@@ -1199,15 +1197,7 @@ export default {
},
Financial_post_Get(id,tempId){ //获取单据详情
this.loading = true;
// let TCID = '';
// console.log(this.orderObj.TCIDList)
// return
// this.orderObj.TCIDList.forEach(x=>{
// TCID = TCID + x +','
// })
// TCID.split(0,TCID.length-1)
this.apipost('Financial_post_Get',{ID:id,TempId:tempId,TCIDList:(this.orderObj&&this.orderObj.TCIDList)?this.orderObj.TCIDList:[]}, res => {
// console.log(this.orderObj.TCIDList)
if(res.data.resultCode == 1) {
let data= res.data.data;
data.IsLeader = 1;
......
......@@ -767,7 +767,6 @@ export default {
);
},
RadioShow(val){
console.log(val);
if(val==1){
this.addMsg.ShowEmployeeList=[];
......@@ -807,7 +806,6 @@ export default {
},
EditAudit(){
// console.log("myAuditList",this.myAuditList)
},
handleCheckAllChangeAcc(val) {
this.accListMsg = val ? [1,2,3,4] : [];
......@@ -1046,8 +1044,6 @@ export default {
},
handleNodeChange1(data, checked) { //抄送人操作选中
//myAuditUserList
//console.log(data)
data.IsCheck = checked;
if(data.Type == 2 && data.IsCheck) { //是员工且选中
let isExsit = false
......@@ -1086,7 +1082,6 @@ export default {
}
}
}
// console.log(this.myAuditUserList1)
},
addAuditUser(){ // 抄送人
let _arr=this.sysUserKeys.concat(this.memberSetCheckedUserKeys)
......@@ -1096,11 +1091,8 @@ export default {
this.apipost('WorkFlow_get_GetTempLateDepartMentEmployee', {}, res => {
if(res.data.resultCode==1){
this.userList = res.data.data
//console.log(_this.$refs.treeUser.setCheckedKeys)
// _this.$refs.treeUser.setCheckedKeys(_arr);
}
}, err => {})
//
},
checkedRole(data,checked){ // 岗位选择+
if(data.DepartmentId==0) return
......@@ -1130,7 +1122,6 @@ export default {
x.Disabled = false;
})
this.roleList = data;
//console.log(this.roleList)
}, err => {})
},
saveUpdateNode(){
......@@ -1310,7 +1301,6 @@ export default {
this.closeLayer()
},
getItemValue(obj,index){
console.log(obj)
this.SpecialNode = obj.SpecialNode
this.addBtn=false;
this.updateItemIndex=index;
......
......@@ -322,7 +322,6 @@ export default {
this.msg.eDate = this.productionDate[1];
},
getPageList: function () {
console.log(this.msg.BName)
this.loading = true
if (this.msg.OrderId === '') {
this.msg.OrderId = 0
......
......@@ -497,7 +497,6 @@ export default {
this.apipost('InvoiceApply_get_GetDetails', {ID: id}, res=>{
if (res.data.resultCode == 1) {
let detail = res.data.data
console.log(detail)
this.isChang = 2
this.msg.DutyParagraph = detail.DutyParagraph;
this.msg.CompanyName = detail.CompanyName;
......
......@@ -616,10 +616,8 @@ export default {
this.apipost('InvoiceApply_get_GetDetails', {ID: id}, res=>{
if (res.data.resultCode == 1) {
let detail = res.data.data
console.log(detail)
if(detail.ApplyPics && detail.ApplyPics.length>0){
detail.ApplyPics.forEach(x=>{
console.log(x,'1111111')
if(x.Type==='3'){
this.FuImgList.push(x.Url);
this.images.push(x.Url)
......
......@@ -323,8 +323,6 @@ export default {
allW = document.documentElement.clientWidth;
cW = allW-90;
cH = allH-255; //255 = 顶部导航 50 面包屑40 查询框75 table表头41 分页49
console.log(cW)
console.log(cH)
this.contenWidth = cW;
this.contenHeight = cH;
this.tableSize = this.msg.pageSize = parseInt(cH/45)-1;
......@@ -529,7 +527,6 @@ export default {
if (valid) {
this.OnlinePay_post_Set()
} else {
console.log('error submit!!');
return false;
}
});
......
......@@ -864,7 +864,6 @@ export default {
this.apipost('bus_get_ScreeningTravelForCarNum',msg, res => {
if(res.data.resultCode == 1) {
this.allTeamList = res.data.data;
console.log(this.allTeamList,'allTeamList');
}else{
this.Error(res.data.message);
}
......@@ -900,7 +899,6 @@ export default {
if (valid) {
this.saveInfo();
} else {
console.log("error submit!!");
return false;
}
});
......
......@@ -409,8 +409,6 @@
this.PostMsg.Lng = msg.lng;
this.PostMsg.Lat = msg.lat;
this.PostMsg.Address = msg.address;
console.log(msg, 'msssgggg');
console.log(msg.address);
},
},
......
......@@ -755,9 +755,7 @@
this.addMsg.CommissionShareMoney='0'
if((this.addMsg.CustomerType==1||this.addMsg.CustomerType==2)&&this.addMsg.CommissionSharePeople!='')
{
console.log(22)
if(this.addMsg.CommissionSharePeople!='-1'){
console.log(33)
if(this.addMsg.Commission>0){
this.addMsg.CommissionShareMoney=this.addMsg.Commission/2
this.addMsg.Commission=this.addMsg.Commission-this.addMsg.CommissionShareMoney
......@@ -779,8 +777,7 @@
this.addMsg.YSeatNum=(Number(this.addMsg.ManNum)+Number(this.addMsg.ChirdNum)+Number(this.addMsg.OldPeopleNum))
},
getTotalPrice(){
//
//console.log(this.addObj)
if(this.addObj.IsBirdDiscount==1){ //早鸟优惠
//this.addMsg.Unit_Price //成交单价
//BabyPrice 婴儿价
......@@ -818,7 +815,6 @@
yzBigBed2(){
let x=Number(this.addMsg.AirticketNum)+Number(this.addMsg.ManNum)+Number(this.addMsg.ChirdNeedBedNum)+Number(this.addMsg.OldPeopleNum)-Number(this.addMsg.SingleRoomNum)
let y=x-Number(this.addMsg.TripleRoomNum)*3-Number(this.addMsg.BigRoomNum)*2
console.log(y)
if(y<0){
this.addMsg.SingleRoomNum=0
}
......@@ -828,7 +824,6 @@
yzBigBed(){
let x=Number(this.addMsg.AirticketNum)+Number(this.addMsg.ManNum)+Number(this.addMsg.ChirdNeedBedNum)+Number(this.addMsg.OldPeopleNum)-Number(this.addMsg.SingleRoomNum)
let y=x-Number(this.addMsg.TripleRoomNum)*3-Number(this.addMsg.BigRoomNum)*2
console.log(y)
if(y<=-1){
this.addMsg.BigRoomNum=0
}
......@@ -837,7 +832,6 @@
yzBigBed1(){
let x=Number(this.addMsg.AirticketNum)+Number(this.addMsg.ManNum)+Number(this.addMsg.ChirdNeedBedNum)+Number(this.addMsg.OldPeopleNum)-Number(this.addMsg.SingleRoomNum)
let y=x-Number(this.addMsg.TripleRoomNum)*3-Number(this.addMsg.BigRoomNum)*2
console.log(y)
if(y<=-1){
this.addMsg.TripleRoomNum=0
}
......@@ -971,7 +965,6 @@
this.getMinPrice(obj.LineID);
this.getScenicRefund(obj.TCID);
this.clearMsg()
// console.log(this.addObj)
},
getScenicRefund(TCID){
this.apipost('sellorder_get_GetScenicRefundList',{TCID},res=>{
......@@ -994,9 +987,7 @@
this.apipost('Financial_post_GetByOrderCostTypeList', {Type:1}, res => {
if(res.data.resultCode == 1) {
this.fylxList = res.data.data
// console.log(res.data)
} else {
console.log(res.data.message)
}
}, err => {})
},
......@@ -1020,7 +1011,6 @@
if(res.data.resultCode == 1) {
this.addMsg.BrandId=''
this.ssptList=res.data.data
// console.log(this.ssptList)
}
},err=>{})
},
......@@ -1057,7 +1047,6 @@
this.apipost('sellorder_get_GetSellClientTypeEnumList',{},res=>{
if(res.data.resultCode == 1) {
this.khlxList=res.data.data
// console.log(res.data.data)
}
},err=>{})
},
......@@ -1098,7 +1087,6 @@
TCID: id
}, res => {
if(res.data.resultCode == 1) {
console.log(res.data.data)
this.tripDetails = res.data.data.FlightList
} else {
this.$message.error(res.data.message)
......@@ -1124,7 +1112,6 @@
if(res.data.resultCode == 1) {
this.startCityList = res.data.data;
} else {
console.log(res.data)
}
});
},
......@@ -1136,7 +1123,6 @@
if(res.data.resultCode == 1) {
this.startCityList1 = res.data.data;
} else {
console.log(res.data)
}
});
},
......@@ -1177,7 +1163,6 @@
this.apipost('travel_get_GetTravelSelectEnum', {}, res => {
if(res.data.resultCode == 1) {
this.salePlace = res.data.data.SalePlat
// console.log(this.salePlace)
}
}, err => {})
},
......
......@@ -636,7 +636,6 @@
this.getConvertMoney(x.SubtotalMoney) +
this.getCurrencyNumberTotalMoney(x.PeopleNumber)
).toFixed(2);
//console.log("价格计算",x.PeopleNumber, this.getCurrencyNumberTotalMoney(x.PeopleNumber))
});
},
//获取地接项目报价
......
......@@ -626,7 +626,6 @@
this.queryMsg.total = res.data.data.count;
this.queryMsg.noData = !this.queryMsg.total > 0;
this.queryCommonData.dataList = res.data.data.pageData;
console.log(this.queryCommonData.dataList,'datalist');
}
},
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