|
@@ -33,7 +33,7 @@
|
|
<view class="perItem" v-for="(item,index) in dataForm.detailFormList[0].checkInPersonList">
|
|
<view class="perItem" v-for="(item,index) in dataForm.detailFormList[0].checkInPersonList">
|
|
<text>{{item.checkInName}}</text>
|
|
<text>{{item.checkInName}}</text>
|
|
<text style="margin-left: 40px;">{{item.idCard}}</text>
|
|
<text style="margin-left: 40px;">{{item.idCard}}</text>
|
|
- <u-icon name="close-circle" color="#999" size="28" @click="delPer(index)"></u-icon>
|
|
|
|
|
|
+ <u-icon name="close-circle-fill" color="#ddd" size="30" @click="delPer(index)"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="box box1">
|
|
<view class="box box1">
|
|
@@ -46,8 +46,8 @@
|
|
<view class="dateNum">共{{dataForm.num}}晚</view>
|
|
<view class="dateNum">共{{dataForm.num}}晚</view>
|
|
<view class="end" v-if="dataForm.leaveDate">
|
|
<view class="end" v-if="dataForm.leaveDate">
|
|
<text>离店日期</text>
|
|
<text>离店日期</text>
|
|
- <text @click="leaveDateShow=true" class="txt">{{dataForm.leaveDate.substring(5,10)}}</text>
|
|
|
|
- <u-datetime-picker :show="leaveDateShow" mode="date"
|
|
|
|
|
|
+ <text @click="showPick()" class="txt">{{dataForm.leaveDate.substring(5,10)}}</text>
|
|
|
|
+ <u-datetime-picker :show="leaveDateShow" mode="date" ref="picker"
|
|
@cancel="leaveDateShow=false"
|
|
@cancel="leaveDateShow=false"
|
|
@confirm="credentialsConfirmtime" :defaultIndex="credentialsDefaulttime"></u-datetime-picker>
|
|
@confirm="credentialsConfirmtime" :defaultIndex="credentialsDefaulttime"></u-datetime-picker>
|
|
</view>
|
|
</view>
|
|
@@ -164,7 +164,7 @@
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- credentialsDefaulttime:[0],
|
|
|
|
|
|
+ credentialsDefaulttime:[10,1,0],
|
|
titleStyle: {
|
|
titleStyle: {
|
|
fontSize: '34rpx',
|
|
fontSize: '34rpx',
|
|
fontWeight: "bold",
|
|
fontWeight: "bold",
|
|
@@ -189,7 +189,7 @@
|
|
checkInPersonList: [],
|
|
checkInPersonList: [],
|
|
checkInType: 0,
|
|
checkInType: 0,
|
|
checkInTypeName: '',
|
|
checkInTypeName: '',
|
|
- id: 0,
|
|
|
|
|
|
+ id:0,
|
|
otherAmount: 0,
|
|
otherAmount: 0,
|
|
roomAmount: 0,
|
|
roomAmount: 0,
|
|
roomIds: "",
|
|
roomIds: "",
|
|
@@ -262,10 +262,14 @@
|
|
this.currentDate = year + '-' + mon + '-' + day;
|
|
this.currentDate = year + '-' + mon + '-' + day;
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ showPick(){
|
|
|
|
+ this.leaveDateShow=true;
|
|
|
|
+ this.$refs.picker.innerValue=new Date().getTime()
|
|
|
|
+ },
|
|
//i计算天数
|
|
//i计算天数
|
|
getDaysBetween(dateString1,dateString2){
|
|
getDaysBetween(dateString1,dateString2){
|
|
- var startDate = Date.parse(dateString1);
|
|
|
|
- var endDate = Date.parse(dateString2);
|
|
|
|
|
|
+ var startDate =Date.parse(dateString1);
|
|
|
|
+ var endDate =Date.parse(dateString2);
|
|
if (startDate>endDate){
|
|
if (startDate>endDate){
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
@@ -473,8 +477,8 @@
|
|
this.dataForm.detailFormList[0].checkInTypeName = this.checkInType[0].filter((item => item
|
|
this.dataForm.detailFormList[0].checkInTypeName = this.checkInType[0].filter((item => item
|
|
.val == res.data.data.checkInType))[0].label;
|
|
.val == res.data.data.checkInType))[0].label;
|
|
this.dataForm.detailFormList[0].roomAmount = res.data.data.roomAmount;
|
|
this.dataForm.detailFormList[0].roomAmount = res.data.data.roomAmount;
|
|
- this.dataForm.arriveDate = res.data.data.arriveDate.substring(0,10);
|
|
|
|
- this.dataForm.leaveDate = res.data.data.leaveDate.substring(0,10);
|
|
|
|
|
|
+ this.dataForm.arriveDate = res.data.data.arriveDate;
|
|
|
|
+ this.dataForm.leaveDate = res.data.data.leaveDate;
|
|
this.dataForm.houseBaseId = res.data.data.houseBaseId;
|
|
this.dataForm.houseBaseId = res.data.data.houseBaseId;
|
|
this.dataForm.houseBaseName = res.data.data.houseBaseName;
|
|
this.dataForm.houseBaseName = res.data.data.houseBaseName;
|
|
this.dataForm.num = res.data.data.num;
|
|
this.dataForm.num = res.data.data.num;
|
|
@@ -625,9 +629,11 @@
|
|
.perItem {
|
|
.perItem {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
- padding: 30rpx 0;
|
|
|
|
|
|
+ padding: 26rpx 0;
|
|
border-bottom: 1rpx solid #E1E1E1;
|
|
border-bottom: 1rpx solid #E1E1E1;
|
|
-
|
|
|
|
|
|
+ &:last-child{
|
|
|
|
+ border: 0;
|
|
|
|
+ }
|
|
text {
|
|
text {
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
color: #333;
|
|
color: #333;
|