Commit 136c10a1 authored by 沈良进's avatar 沈良进

save

parent c77e38a5
......@@ -341,8 +341,8 @@
<!-- 金额小计 -->
<td style="white-space:nowrap;">
<div v-if="childItem.HouseType === 2">
<el-input class='w40' @keyup.native="checkInteger(childItem,'TotalPrice')"
v-model='childItem.TotalPrice' @input="calculationPrice(subItem)">
<el-input class='w40' @keyup.native="checkPrice(childItem,'TotalPrice')"
v-model='childItem.TotalPrice' @input="changeTotalPrice(subItem)">
</el-input>
</div>
</td>
......@@ -1079,8 +1079,13 @@
obj.NewTotalPrice = "";
}
}
// 将金额总计的值赋值给金额小计
obj.OrderDetailsList[0].TotalPrice = totalPrice.toFixed(2);
this.$forceUpdate();
},
changeTotalPrice(obj) {
obj.TotalPrice = obj.OrderDetailsList[0].TotalPrice.toFixed(2);
},
saveList(type) {
if (type == 0) {
this.list.forEach(item => {
......
......@@ -388,7 +388,7 @@
</div>
</td>
<td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0'>
<span>{{item.OfferId}}</span>
<span @click="showDialog(0, item.OfferId)" style="cursor: pointer">{{item.OfferId}}</span>
</td>
<td :rowspan="2*outItem.PriceCommonList.length" v-if='index==0' style="width: 150px;">
<el-popover width="100" trigger="click" popper-class="DMC_HotelPop">
......@@ -560,16 +560,24 @@
<el-dialog custom-class='ComTeamPlan_info_box' :title="tripTitle" :visible.sync="teamVisible" center>
<commonTeamInfo ref="comTeam"></commonTeamInfo>
</el-dialog>
<el-dialog :visible.sync="dialog.show" width="1400px" title="报价详情">
<price-dialog :ConfigId="dialog.ConfigId" :OfferId="dialog.OfferId" ref="dialog"></price-dialog>
</el-dialog>
</div>
</template>
<script>
import tripDownLoadCommon from "../../commonPage/TripDownLoadCommon.vue";
import commonHotelInfo from "../../commonPage/commonHotelInfo.vue";
import commonTeamInfo from "../../commonPage/commonTeamInfo.vue";
import priceDialog from '../../TravelManager/TravelNewQuotation/priceDialog.vue';
export default {
data() {
return {
dialog: {
show: false,
ConfigId: '',
OfferId: ''
},
IsDMCIsOpenHotel: 0, //1-有权限开启或关闭酒店操作
IsEditDinner: 0, //1有权限操作餐配
loading: false,
......@@ -690,9 +698,23 @@
components: {
tripDownLoadCommon,
commonHotelInfo,
commonTeamInfo
commonTeamInfo,
priceDialog
},
methods: {
showDialog(ConfigId, OfferId) {
if(!OfferId) {
return
}
this.dialog = {
show: true,
ConfigId,
OfferId
}
this.$nextTick(() => {
this.$refs.dialog.getPostData()
})
},
goDinnerUrl(obj, outItem) {
this.$router.push({
name: 'bookDinnerStatisticsDetails',
......
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