Commit bcf9b363 authored by huangyuanyuan's avatar huangyuanyuan
parents ba8bdc5a 86af2505
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</viewer> </viewer>
<chosen-open-mode v-if="haveOpenMode" :settingSys="settingSys"></chosen-open-mode> <chosen-open-mode v-if="haveOpenMode" :settingSys="settingSys"></chosen-open-mode>
<!-- --> <!-- -->
</div> </div>
</template> </template>
...@@ -58,12 +58,12 @@ export default { ...@@ -58,12 +58,12 @@ export default {
dataShow:false, dataShow:false,
haveOpenMode:false, haveOpenMode:false,
settingSys: false, settingSys: false,
// sessionStorage.getItem("mazip") ? sessionStorage.getItem("mazip") : true // sessionStorage.getItem("mazip") ? sessionStorage.getItem("mazip") : true
} }
}, },
methods: { methods: {
inited (viewer){ inited (viewer){
this.$viewer = viewer this.$viewer = viewer
}, },
...@@ -113,7 +113,7 @@ export default { ...@@ -113,7 +113,7 @@ export default {
} }
</script> </script>
<style> <style>
@import "//at.alicdn.com/t/font_635492_dxcl6yumgsq.css"; @import "//at.alicdn.com/t/font_635492_p5609mvb4qe.css";
@import "./assets/css/Semibold.css"; @import "./assets/css/Semibold.css";
@import "./assets/css/global/config.css"; @import "./assets/css/global/config.css";
@import "./assets/css/fileIcon.css"; @import "./assets/css/fileIcon.css";
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
<th width="100">车配号</th> <th width="100">车配号</th>
<th width="100">车辆号</th> <th width="100">车辆号</th>
<th width="60">用车方式</th> <th width="60">用车方式</th>
<th width="60">车费</th> <!-- <th width="60">车费</th>
<th width="120">车费付款方式</th> <th width="120">车费付款方式</th> -->
<th width="80">高速公路费</th> <th width="80">高速公路费</th>
<th width="120">高速费用付款方式</th> <th width="120">高速费用付款方式</th>
<th width="60">停车费</th> <th width="60">停车费</th>
...@@ -58,17 +58,17 @@ ...@@ -58,17 +58,17 @@
<span v-if='index!=0&&index!=list.BusList.length-1'>{{item.AirportPickUpStr}}</span> <span v-if='index!=0&&index!=list.BusList.length-1'>{{item.AirportPickUpStr}}</span>
<span v-if='index==list.BusList.length-1'>送机</span> <span v-if='index==list.BusList.length-1'>送机</span>
</td> </td>
<td> <!-- <td>
{{moneyFormat(item.CostPrice)}} {{ item.PayType === 1 ? moneyFormat(item.CostPrice) : 0}}
</td> </td>
<td> <td>
<span v-if="item.PayType === 1">现付</span> <span v-if="item.PayType === 1">现付</span>
<span v-else-if="item.PayType === 2">公司结算</span> <span v-else-if="item.PayType === 2">公司结算</span>
<span v-else-if="item.PayType === 3">预付</span> <span v-else-if="item.PayType === 3">预付</span>
<span v-else>暂无</span> <span v-else>暂无</span>
</td> </td> -->
<td> <td>
{{moneyFormat(item.HighSpeedPrice)}} {{item.HighSpeedPayType === 1 ? moneyFormat(item.HighSpeedPrice) : 0}}
</td> </td>
<td> <td>
<span v-if="item.HighSpeedPayType === 1">现付</span> <span v-if="item.HighSpeedPayType === 1">现付</span>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
{{moneyFormat(item.StopPrice)}} {{moneyFormat(item.StopPrice)}}
</td> </td>
<td> <td>
{{moneyFormat(Number(item.CostPrice)+Number(item.StopPrice))}} {{moneyFormat((item.PayType === 1 ? Number(item.CostPrice) : 0)+Number(item.StopPrice))}}
</td> </td>
<td v-if='index==0' :rowspan='list.BusList.length'> <td v-if='index==0' :rowspan='list.BusList.length'>
{{busTotalPrice(list.BusList)}} {{busTotalPrice(list.BusList)}}
...@@ -98,13 +98,13 @@ ...@@ -98,13 +98,13 @@
</tr> </tr>
<tr v-if="TotalNav.reimburseTotalPrice"> <tr v-if="TotalNav.reimburseTotalPrice">
<td>总金额</td> <td>总金额</td>
<td colspan="7"> <td colspan="13">
{{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingExpendTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingExpendTotalPrice)}}
</td> </td>
<td>签单/预付/抵扣总金额</td> <!-- <td>签单/预付/抵扣总金额</td>
<td colspan="7"> <td colspan="7">
{{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingIncomeTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.SelfPayingIncomeTotalPrice)}}
</td> </td> -->
</tr> </tr>
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
...@@ -189,13 +189,13 @@ ...@@ -189,13 +189,13 @@
</template> </template>
<tr v-if="TotalNav.reimburseTotalPrice"> <tr v-if="TotalNav.reimburseTotalPrice">
<td>总金额</td> <td>总金额</td>
<td colspan="6"> <td colspan="14">
{{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.ExpendTotalPrice)}}
</td> </td>
<td>签单/预付/抵扣总金额</td> <!-- <td>签单/预付/抵扣总金额</td>
<td colspan="7"> <td colspan="7">
{{moneyFormat(TotalNav.reimburseTotalPrice.BalanceTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.BalanceTotalPrice)}}
</td> </td> -->
</tr> </tr>
</table> </table>
<table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0"> <table class="leaderReimbursementTable" border="0" cellspacing="1" cellpadding="0">
...@@ -238,13 +238,13 @@ ...@@ -238,13 +238,13 @@
</p> </p>
</td> </td>
<td> <td>
{{moneyFormat((childItem.PeopleNum-childItem.Discount)*childItem.PeoplePrice)}} {{subItem.PayStyle === 1 ? moneyFormat((childItem.PeopleNum-childItem.Discount)*childItem.PeoplePrice) : 0}}
</td> </td>
<td> <td>
{{childItem.DiscountPrice}}% {{childItem.DiscountPrice}}%
</td> </td>
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
{{diningTotalPrice(subItem.DiningPriceList)}} {{diningTotalPrice(subItem, subItem.DiningPriceList)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
<span v-if="subItem.PayStyle === 1">现付</span> <span v-if="subItem.PayStyle === 1">现付</span>
...@@ -260,13 +260,13 @@ ...@@ -260,13 +260,13 @@
</template> </template>
<tr v-if="TotalNav.reimburseTotalPrice"> <tr v-if="TotalNav.reimburseTotalPrice">
<td>总金额</td> <td>总金额</td>
<td colspan="5"> <td colspan="11">
{{moneyFormat(TotalNav.reimburseTotalPrice.IncomeTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.IncomeTotalPrice)}}
</td> </td>
<td>签单/预付/抵扣总金额</td> <!-- <td>签单/预付/抵扣总金额</td>
<td colspan="5"> <td colspan="5">
{{moneyFormat(TotalNav.reimburseTotalPrice.TipTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.TipTotalPrice)}}
</td> </td> -->
</tr> </tr>
</table> </table>
...@@ -311,13 +311,13 @@ ...@@ -311,13 +311,13 @@
</p> </p>
</td> </td>
<td> <td>
{{moneyFormat((childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice)}} {{subItem.PayStyle === 1 ? moneyFormat((childItem.UsePeopleNum-childItem.Discount)*childItem.PeoplePrice) : 0}}
</td> </td>
<td> <td>
{{childItem.DiscountPrice}}% {{childItem.DiscountPrice}}%
</td> </td>
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
{{scenicTotalPrice(subItem.TicketPriceList)}} {{scenicTotalPrice(subItem, subItem.TicketPriceList)}}
</td> </td>
<td v-if="childIndex==0" :rowspan="3"> <td v-if="childIndex==0" :rowspan="3">
<span v-if="subItem.PayStyle === 1">现付</span> <span v-if="subItem.PayStyle === 1">现付</span>
...@@ -333,13 +333,13 @@ ...@@ -333,13 +333,13 @@
</template> </template>
<tr v-if="TotalNav.reimburseTotalPrice"> <tr v-if="TotalNav.reimburseTotalPrice">
<td>总金额</td> <td>总金额</td>
<td colspan="5"> <td colspan="11">
{{moneyFormat(TotalNav.reimburseTotalPrice.OtherTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.OtherTotalPrice)}}
</td> </td>
<td>签单/预付/抵扣总金额</td> <!-- <td>签单/预付/抵扣总金额</td>
<td colspan="5"> <td colspan="5">
{{moneyFormat(TotalNav.reimburseTotalPrice.PlanTotalPrice)}} {{moneyFormat(TotalNav.reimburseTotalPrice.PlanTotalPrice)}}
</td> </td> -->
</tr> </tr>
</table> </table>
...@@ -364,7 +364,7 @@ ...@@ -364,7 +364,7 @@
<span>{{item.HangingAccountsTypeStr}}</span> <span>{{item.HangingAccountsTypeStr}}</span>
</td> </td>
<td> <td>
<span>{{item.RemitterName}}{{item.AccountNumber}}</span> <span>{{item.RemitterName}}{{item.AccountNumber}}</span>
</td> </td>
<td> <td>
<span>{{item.StatusStr}}</span> <span>{{item.StatusStr}}</span>
...@@ -583,29 +583,39 @@ ...@@ -583,29 +583,39 @@
busTotalPrice(obj) { busTotalPrice(obj) {
let totalPrice = 0 let totalPrice = 0
obj.forEach(item => { obj.forEach(item => {
totalPrice += Number(item.CostPrice) + Number(item.HighSpeedPrice) + Number(item.StopPrice) totalPrice += (item.PayType === 1 ? Number(item.CostPrice) : 0) + (item.HighSpeedPayType === 1 ? Number(item.HighSpeedPrice) : 0) + Number(item.StopPrice)
}) })
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
hotelTotalPrice(obj) { hotelTotalPrice(obj) {
let totalPrice = 0 let totalPrice = 0
obj.forEach(x => { obj.forEach(x => {
totalPrice += x.UnitPrice * (x.BookNum - x.HotelDiscount) * (1 - x.RebateRatio / 100) if(x.PayStyle === 1){
totalPrice += x.UnitPrice * (x.BookNum - x.HotelDiscount) * (1 - x.RebateRatio / 100)
} else {
totalPrice += 0
}
}) })
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
diningTotalPrice(obj) { diningTotalPrice(sObj, obj) {
let totalPrice = 0 let totalPrice = 0
obj.forEach(x => { obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.PeopleNum - x.Discount) * (1 - x.DiscountPrice / 100) totalPrice += x.PeoplePrice * (x.PeopleNum - x.Discount) * (1 - x.DiscountPrice / 100)
}) })
if(sObj.PayStyle !== 1) {
totalPrice = 0
}
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
scenicTotalPrice(obj) { scenicTotalPrice(sObj, obj) {
let totalPrice = 0 let totalPrice = 0
obj.forEach(x => { obj.forEach(x => {
totalPrice += x.PeoplePrice * (x.UsePeopleNum - x.Discount) * (1 - x.DiscountPrice / 100) totalPrice += x.PeoplePrice * (x.UsePeopleNum - x.Discount) * (1 - x.DiscountPrice / 100)
}) })
if(sObj.PayStyle !== 1) {
totalPrice = 0
}
return this.moneyFormat(totalPrice) return this.moneyFormat(totalPrice)
}, },
otherTotalPrice(obj) { otherTotalPrice(obj) {
......
This diff is collapsed.
...@@ -10,13 +10,14 @@ import cookie from './assets/utils/cookie' ...@@ -10,13 +10,14 @@ import cookie from './assets/utils/cookie'
import commonUtils from './assets/utils/commonUtils' import commonUtils from './assets/utils/commonUtils'
import tripUtils from './assets/utils/tripUtils' import tripUtils from './assets/utils/tripUtils'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' import 'element-ui/lib/theme-chalk/index.css'
import vueQuillEditor from 'vue-quill-editor' import vueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css' import 'quill/dist/quill.snow.css'
import echarts from 'echarts' import echarts from 'echarts'
Vue.prototype.$echarts = echarts
// import VueWebsocket from "vue-websocket" // import VueWebsocket from "vue-websocket"
// import global_ from './components/Global' // import global_ from './components/Global'
//import VueAMap from 'vue-amap' //import VueAMap from 'vue-amap'
...@@ -66,11 +67,11 @@ Vue.prototype.lrz=lrz ...@@ -66,11 +67,11 @@ Vue.prototype.lrz=lrz
// Vue.use(htmlToPdf) // Vue.use(htmlToPdf)
Vue.use(VueI18n) // 通过插件的形式挂载 Vue.use(VueI18n) // 通过插件的形式挂载
Vue.use(ajaxPlug) Vue.use(ajaxPlug)
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(vueQuillEditor) Vue.use(vueQuillEditor)
//Vue.use(VueAMap); //Vue.use(VueAMap);
Vue.use(VueBarcode); //声明条形码组件 Vue.use(VueBarcode); //声明条形码组件
Vue.use(store); Vue.use(store);
Vue.use(Viewer,{ Vue.use(Viewer,{
defaultOptions: { defaultOptions: {
zIndex: 9999 zIndex: 9999
...@@ -82,21 +83,21 @@ Vue.use(Viewer,{ ...@@ -82,21 +83,21 @@ Vue.use(Viewer,{
// 时间扩展格式化 // 时间扩展格式化
Date.prototype.Format = function (fmt) { Date.prototype.Format = function (fmt) {
var o = { var o = {
"M+": this.getMonth() + 1, //月份 "M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日 "d+": this.getDate(), //日
"h+": this.getHours(), //小时 "h+": this.getHours(), //小时
"m+": this.getMinutes(), //分 "m+": this.getMinutes(), //分
"s+": this.getSeconds() //秒 "s+": this.getSeconds() //秒
}; };
if (/(y+)/.test(fmt)){ //根据y的长度来截取年 if (/(y+)/.test(fmt)){ //根据y的长度来截取年
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
} }
for (var k in o){ for (var k in o){
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length))); if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
} }
return fmt; return fmt;
}; };
// 数组对比 // 数组对比
......
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