Commit 78f2e106 authored by youjie's avatar youjie

no message

parent 766f9089
<style scoped> <style scoped>
/deep/.el-form-item{
margin-bottom: 0;
}
.image-slot{ .image-slot{
height: 100%; height: 100%;
display: flex; display: flex;
...@@ -388,6 +391,11 @@ ...@@ -388,6 +391,11 @@
</el-form-item> </el-form-item>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" min-width="180">
<template slot-scope="scope">
<el-button size="small" type="primary" @click="deleteLine(props.$index)">删除</el-button>
</template>
</el-table-column>
</el-table> </el-table>
</div> </div>
</div> </div>
...@@ -490,67 +498,67 @@ ...@@ -490,67 +498,67 @@
rules:{ rules:{
UseCompName: [{ UseCompName: [{
required: true, required: true,
message: '请输入订车单位', // message: '请输入订车单位',
trigger: 'blur' trigger: 'blur'
}], }],
UseName: [{ UseName: [{
required: true, required: true,
message: '请输入订车人名称', // message: '请输入订车人名称',
trigger: 'blur' trigger: 'blur'
}], }],
PickUpInfo: [{ PickUpInfo: [{
required: true, required: true,
message: '请输入接机信息', // message: '请输入接机信息',
trigger: 'blur' trigger: 'blur'
}], }],
GoFlightInfo: [{ GoFlightInfo: [{
required: true, required: true,
message: '请输入去程航班', // message: '请输入去程航班',
trigger: 'change' trigger: 'change'
}], }],
BackFlightInfo: [{ BackFlightInfo: [{
required: true, required: true,
message: '请输入回程航班', // message: '请输入回程航班',
trigger: 'blur' trigger: 'blur'
}], }],
PeopleNum: [{ PeopleNum: [{
required: true, required: true,
message: '请输入用车人数', // message: '请输入用车人数',
trigger: 'blur' trigger: 'blur'
}], }],
UseDayNum: [{ UseDayNum: [{
required: true, required: true,
message: '请输入行程天数', // message: '请输入行程天数',
trigger: 'blur' trigger: 'blur'
}], }],
StartDate:[{ StartDate:[{
required: true, required: true,
message: '请选择开始日期', // message: '请选择开始日期',
trigger: 'change' trigger: 'change'
}], }],
BusType: [{ BusType: [{
required: true, required: true,
message: '请选择用车类型', // message: '请选择用车类型',
trigger: 'change' trigger: 'change'
}], }],
GuideInfo: [{ GuideInfo: [{
required: true, required: true,
message: '请输入导游信息', // message: '请输入导游信息',
trigger: 'blur' trigger: 'blur'
}], }],
TeamName: [{ TeamName: [{
required: true, required: true,
message: '请输入团队信息', // message: '请输入团队信息',
trigger: 'blur' trigger: 'blur'
}], }],
UseType: [{ UseType: [{
required: true, required: true,
message: '请选择用车类型', // message: '请选择用车类型',
trigger: 'change' trigger: 'change'
}], }],
TripInfo: [{ TripInfo: [{
required: true, required: true,
message: '请输入行程信息', // message: '请输入行程信息',
trigger: 'blur' trigger: 'blur'
}], }],
}, },
...@@ -563,6 +571,11 @@ ...@@ -563,6 +571,11 @@
}; };
}, },
methods: { methods: {
// 删除
deleteLine(index){
this.msg.details.details.splice(index,1)
this.msg.details.UseDayNum = this.msg.details.details.length
},
checkInteger() { checkInteger() {
let that= this let that= this
if(this.msg.UseDayNum<this.msg.details.length){ if(this.msg.UseDayNum<this.msg.details.length){
......
...@@ -719,7 +719,7 @@ ...@@ -719,7 +719,7 @@
</div> </div>
</el-dialog> </el-dialog>
<!-- 报价 --> <!-- 报价 -->
<el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="isShowPrice" center > <el-dialog custom-class='addCompany' :title="dialogTitle" :visible.sync="isShowPrice" center min-width="1000">
<span style="font-weight: bold;font-size: 16px; <span style="font-weight: bold;font-size: 16px;
display: inline-block; display: inline-block;
margin-bottom: 20px;"> margin-bottom: 20px;">
...@@ -985,6 +985,9 @@ ...@@ -985,6 +985,9 @@
}; };
}, },
watch: { watch: {
postMsg(val,oldval){
this.calcPrice()
},
pagesTitle(val,oldval){ pagesTitle(val,oldval){
this.Title = val this.Title = val
}, },
...@@ -1253,10 +1256,9 @@ ...@@ -1253,10 +1256,9 @@
if (this.postMsg.ShouPeiFee) { if (this.postMsg.ShouPeiFee) {
tempTotalPrice += Number(this.postMsg.ShouPeiFee); tempTotalPrice += Number(this.postMsg.ShouPeiFee);
} }
setTimeout(()=>{ this.$nextTick(() => {
this.postMsg.TotalPrice = tempTotalPrice.toFixed(2); this.postMsg.TotalPrice = (tempTotalPrice+this.totalMoney).toFixed(2);
},500) })
}, },
// 合计列 // 合计列
getSummaries(param) { getSummaries(param) {
...@@ -1274,7 +1276,6 @@ ...@@ -1274,7 +1276,6 @@
const value = Number(curr); const value = Number(curr);
if (!isNaN(value)&&index==7) { if (!isNaN(value)&&index==7) {
this.totalMoney = prev + curr this.totalMoney = prev + curr
this.postMsg.TotalPrice = this.postMsg.TotalPrice+this.totalMoney
return prev + curr; return prev + curr;
} else { } else {
return ''; return '';
...@@ -1284,8 +1285,8 @@ ...@@ -1284,8 +1285,8 @@
} else { } else {
sums[index] = ''; sums[index] = '';
} }
});
});
return sums; return sums;
}, },
//提交报价 //提交报价
......
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