diff --git a/src/components/FinancialModule/ChoiceAddFinancialDocuments2.vue b/src/components/FinancialModule/ChoiceAddFinancialDocuments2.vue index ed1ffd35c92f5a452bb3500c87fa9eb3199d81d7..f124000ea4b7f2db931070d614bd442316f67a0a 100644 --- a/src/components/FinancialModule/ChoiceAddFinancialDocuments2.vue +++ b/src/components/FinancialModule/ChoiceAddFinancialDocuments2.vue @@ -128,8 +128,8 @@ let newList = []; if (this.templateID) { this.templateID.forEach(x=>{ - this.payList.forEach(y=>{ - if(x === y.Id) { + this.GetList.forEach(y=>{ + if(x == y.Id) { y.showYes = true newList.push(JSON.parse(JSON.stringify(y))) } else { @@ -144,8 +144,7 @@ Financial_post_GetList(){ //èŽ·å– this.apipost('Financial_post_GetList',{},res=>{ if(res.data.resultCode==1){ - let data = res.data.data; - console.log("data",data); + let data = res.data.data; if(data){ data.forEach(x => { // 5-8 OrderSource 为5 并且当å‰ç™»å½•人为å´çŠï¼Œåªæ˜¾ç¤º49å’Œ50 diff --git a/src/components/FinancialModule/addFinancialDocuments.vue b/src/components/FinancialModule/addFinancialDocuments.vue index fedc1f7eb4e203f06249e6e6d2bf28a49b4ac031..99582be0bf3e373cf0e349a31111dad11fb93201 100644 --- a/src/components/FinancialModule/addFinancialDocuments.vue +++ b/src/components/FinancialModule/addFinancialDocuments.vue @@ -1271,6 +1271,7 @@ export default { this.detailList.CostTypeId = this.orderObj.CostType?this.orderObj.CostType: ''; this.detailList.UnitPrice = this.orderObj.Money?this.orderObj.Money:0; this.detailList.Number = this.orderObj.CostType ? 1 : 0 + this.Description = this.orderObj.laRemark?this.orderObj.laRemark:''; } if(data.VorcherInos){ data.VorcherInos.forEach(x=>{ @@ -1455,7 +1456,7 @@ export default { }) var gj = guoji==''?'':'国际机票:'+guoji; var gn = guonei==''?'':'国内航段:'+guonei; - var gjzd = guojizhongduan==''?'':'国际䏿–:'+guojizhongduan; + var gjzd = guojizhongduan==''?'':'国际䏿®µ:'+guojizhongduan; var sj = shuijin==''?'':'税金:'+shuijin; var sc = shengcang==''?'':'å‡èˆ±:'+shengcang; this.Description= gj+' '+gn+' '+gjzd+ ' '+ sj+' '+sc diff --git a/src/components/FinancialModule/addReceivablesDocuments.vue b/src/components/FinancialModule/addReceivablesDocuments.vue index c58d3fd86efc123eac2de4b800dcd1c30769af20..87279ff3f6d802f7ef946c9b1749cf437854cfb2 100644 --- a/src/components/FinancialModule/addReceivablesDocuments.vue +++ b/src/components/FinancialModule/addReceivablesDocuments.vue @@ -1394,6 +1394,7 @@ export default { this.msg.Obj = this.orderObj.Obj?this.orderObj.Obj:''; this.msg.SourceID = this.orderObj.SourceID?this.orderObj.SourceID:0; this.msg.CallType=this.orderObj.CallType?this.orderObj.CallType:0; + this.Description = this.orderObj.laRemark?this.orderObj.laRemark:''; } if(data.VorcherInos){ data.VorcherInos.forEach(x=>{ @@ -1495,7 +1496,6 @@ export default { if(that.describeList){ that.describeList.forEach(item=>{ that.Description+=item.GuestName+" "; - }) } diff --git a/src/components/LeaderManagement/leaderReimbursement.vue b/src/components/LeaderManagement/leaderReimbursement.vue index eaec4d84c5ecc5675a765ab91bf2e0ed65d62635..daac9f7c986ed11dd9db8285b716ec4a58705920 100644 --- a/src/components/LeaderManagement/leaderReimbursement.vue +++ b/src/components/LeaderManagement/leaderReimbursement.vue @@ -538,7 +538,7 @@ </td> <td width="80" class="_zhidan"> <input type="button" v-if="item.TeamType == 1" value="日当费" class="normalBtn" @click="goZhiDan(item, 2)" /> - <input type="button" value="制å•" class="normalBtn" @click="goZhiDan(item)" /> + <input v-if="item.hideZDBtn" type="button" value="制å•" class="normalBtn" @click="goZhiDan(item)" /> </td> </tr> </table> @@ -842,6 +842,10 @@ if (str == 3) return '晚é¤' }, + CompareDate(d1, d2){ + console.log(d1, d2) + return ((new Date(d1.replace(/-/g,"\/"))) <= (new Date(d2.replace(/-/g,"\/")))); + }, getNav() { let _this = this this.apipost('dmcstatistics_post_GetHotelStaticsByTCIDs', { @@ -853,6 +857,11 @@ nav.forEach(x => { nav.LeaderGetPriceT = 0; num += x.LeaderGetPrice + let dd = this.CompareDate(x.DMCRemark, new Date().Format("yyyy-MM-dd")) + x.hideZDBtn = false + if(dd) { + x.hideZDBtn = true + } }) nav.forEach((x, i) => { if (i === 0) { diff --git a/src/components/SalesModule/investigationList.vue b/src/components/SalesModule/investigationList.vue index 26b06a3ab53e1c7c0bb14f1a2795390d1847e256..6a0a00cb54e7da1cfb78a3a8b9fc5f98f0e0c722 100644 --- a/src/components/SalesModule/investigationList.vue +++ b/src/components/SalesModule/investigationList.vue @@ -21,6 +21,7 @@ <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <tr> <th>订å•å·</th> + <th>客人åç§°</th> <th>销售åç§°</th> <th>客户åç§°</th> <th>分数</th> @@ -28,6 +29,7 @@ </tr> <tr v-for="item in dataList"> <td>{{item.OrderID}}</td> + <td>{{item.GuestName}}</td> <td>{{item.EnterName}}</td> <td>{{item.CustomerName}}</td> <td>{{item.ScoreNum}}</td> diff --git a/src/components/leaderPay2.vue b/src/components/leaderPay2.vue index 441c3105096d7ed33f85d0c21a49ed37026bad57..91858b44e693f936fbf8c5d5f7a4f56e59483900 100644 --- a/src/components/leaderPay2.vue +++ b/src/components/leaderPay2.vue @@ -490,6 +490,8 @@ input[type="number"] { <th>实付金é¢</th> <th>æŠ¥è´¦é‡‘é¢ <input + v-if="totalList.SelfPayingExpendTotalPrice>0 || totalList.SelfPayingIncomeTotalPrice>0 || (totalList.ExpendTotalPrice-totalScenicPrice-totalTrafficPrice-totalDinnerPrice-totalHotelPrice)>0 || + totalScenicPrice>0 || totalTrafficPrice>0 || totalDinnerPrice>0 || totalHotelPrice>0" type="button" value="ä¿å˜" class="leader2Btn" @@ -741,6 +743,66 @@ input[type="number"] { <td colspan="5">æš‚æ— æ•°æ®</td> </tr> </table> + <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" > + <tr> + <th width="140">团å·</th> + <th width="200">领款金é¢</th> + <th>出团汇率</th> + <th>用款计划汇率</th> + <th>汇兑æŸç›Šé‡‘é¢</th> + <th>æ“作</th> + </tr> + <tr v-for="(item, index) in TotalNav"> + <td>{{item.TCNUMS}}</td> + <td>{{item.LeaderGetPrice}}</td> + <td> + <p v-for="(f, fd) in item.FinanceIds">{{f.Fee}}</p> + </td> + <td> + <p v-for="(f, fd) in item.FinanceIds">{{f.Rate}}</p> + </td> + <td> + <p v-for="(f, fd) in item.FinanceIds">{{Math.round(f.OriginalMoney * (f.Rate - f.Fee) * 100) / 100}}</p> + </td> + <td width="80" class="_zhidan"> + <input + type="button" + value="制å•" + class="leader2Btn" + @click="huiDuiShouYi(item, item.FinanceIds)" + > + </td> + </tr> + <tr v-if="!TotalNav && !TotalNav.length"> + <td colspan="5">æš‚æ— æ•°æ®</td> + </tr> + </table> + <table class="leaderPayTable" border="0" cellspacing="1" cellpadding="0" > + <tr> + <th colspan="4">æ„è§è°ƒæŸ¥è¡¨</th> + </tr> + <tr> + <th width="140">团å·</th> + <th>总人数</th> + <th>已填写人数</th> + <th>明细</th> + </tr> + <tr v-for="(item, index) in TotalNav"> + <td>{{item.TCNUMS}}</td> + <td>{{item.CommonReport.HouseStatistics.RealityNum}}</td> + <td>{{item.TotalGuestsurvey}}</td> + <td> + <input + type="button" + value="明细" + class="leader2Btn" + @click="goDIaoCha(item)"> + </td> + </tr> + <tr v-if="!TotalNav && !TotalNav.length"> + <td colspan="5">æš‚æ— æ•°æ®</td> + </tr> + </table> <template v-if="dataList.LeaderApply && dataList.LeaderApply.Status && dataList.LeaderApply.Status==1" > @@ -816,6 +878,46 @@ export default { }; }, methods: { + // æ„è§è°ƒæŸ¥åˆ—表 + goDIaoCha: function (obj){ + let fullPath = `/investigationList?TCID=${obj.TCIDS}&blank=y&tab=问券调查列表`; + let dom = document.querySelector("#blankLink"); + dom.href = `http://${window.location.host}/#${fullPath}`; + dom.click(); + }, + // 汇兑收益金é¢åˆ¶å• + huiDuiShouYi: function (obj, list){ + if (obj.ExchangeEarningPrice>0) { + this.$message.error('å·²æœ‰è´¢åŠ¡å•æ®ï¼Œæ— 法制å•') + return + } + let money = 0; + for(let i = 0; i < list.length; i++) { + money = money + Math.round(list[i].OriginalMoney * (list[i].Rate - list[i].Fee) * 100) / 100 + } + console.log(money) + if (money <= 0) { + this.$message.error('金é¢å°äºŽ0ï¼Œæ— æ³•åˆ¶å•') + return + } else { + let userinfo = this.getLocalStorage() + let TCIDARR = [obj.TCIDS]; + let orderObj = { + OrderID: 0, + OrderSource: 8, + Obj: {}, + SourceID: 0, + CostType: 30, + TCIDList: TCIDARR, + Money: money, + laRemark: "å®žé™…é¢†æ¬¾é‡‘é¢ * (实际领款汇率 - 出团汇率)", + }; + let fullPath = `/ChoiceAddFinancialDocuments?Type=${0}&companyID=${userinfo.RB_Branch_id}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; + let dom = document.querySelector("#blankLink"); + dom.href = `http://${window.location.host}/#${fullPath}`; + dom.click(); + } + }, // ä¿å˜æŠ¥è´¦é‡‘é¢ saveBZPrice: function (){ let HotelPrice = this.BaoZhangPrice.HotelPrice ? parseFloat(this.BaoZhangPrice.HotelPrice) : 0 @@ -877,7 +979,8 @@ export default { this.$message.error('金颿œ‰è¯¯') return } - if (obj.Type == 1) { + // type 1 零件地 è‡ªåŠ¨ç”Ÿæˆ 2 领队人头费 跳转 + if (obj.Type == 2) { let id = [72, 73]; let TCIDARR = [obj.TCIDs]; let orderObj = { @@ -890,7 +993,7 @@ export default { Money: inputPrice, TCNUMS: '' }; - let fullPath = `/ChoiceAddFinancialDocuments?Type=${2}&templateID=${JSON.stringify(id)}&companyID=${userinfo.RB_Branch_id}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; + let fullPath = `/ChoiceAddFinancialDocuments?Type=${1}&templateID=${JSON.stringify(id)}&companyID=${userinfo.RB_Branch_id}&orderObj=${JSON.stringify(orderObj)}&blank=y&tab=领队报账`; let dom = document.querySelector("#blankLink"); dom.href = `http://${window.location.host}/#${fullPath}`; dom.click();