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

save

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