Commit 78f2e106 authored by youjie's avatar youjie

no message

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