|
@@ -147,7 +147,8 @@
|
|
|
<view class="total"><text>订单金额:</text><text>¥{{totalMOney}}</text></view>
|
|
|
<view class="btns">
|
|
|
<text @click="confirmOrder(2)" v-if="today==1">直接入住</text>
|
|
|
- <text @click="confirmOrder(1)">提交</text>
|
|
|
+ <text @click="confirmOrder(1)" v-if="!orderStatus">保存</text>
|
|
|
+ <!-- 新增和编辑时由此按钮 -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-picker :itemHeight="88" :immediateChange="true" :show="showLaiyuan" :columns="laiyuan" title="来源选择"
|
|
@@ -223,6 +224,7 @@
|
|
|
}
|
|
|
]
|
|
|
],
|
|
|
+ flowTypeNames:['微信','支付宝','云闪付'],
|
|
|
roomId: '',
|
|
|
laiyuan: [
|
|
|
[]
|
|
@@ -459,6 +461,12 @@
|
|
|
this.dataForm.detailFormList[0].checkInTypeName = this.checkInType[0].filter((item => item
|
|
|
.val ==this.dataForm.detailFormList[0].checkInType))[0].label;
|
|
|
this.totalMOney = this.dataForm.orderAmount;
|
|
|
+ this.dataForm.flowRecord.forEach((i,index)=>{
|
|
|
+ let flowTypeName=i.flowType==1?'收款':'退款';
|
|
|
+ let payTypeName=this.flowTypeNames[i.payType];
|
|
|
+ this.$set(this.dataForm.flowRecord[index],'flowTypeName',flowTypeName)
|
|
|
+ this.$set(this.dataForm.flowRecord[index],'payTypeName',payTypeName)
|
|
|
+ })
|
|
|
|
|
|
}
|
|
|
})
|