|
|
@@ -22,10 +22,10 @@
|
|
|
:controls="false"
|
|
|
v-model.number="actualMoney"></el-input-number>
|
|
|
</span>
|
|
|
- <span class="item">备注:
|
|
|
+ <span class="item">下单备注:
|
|
|
<el-input
|
|
|
clearable
|
|
|
- v-model="remark"
|
|
|
+ v-model="createOrderRemark"
|
|
|
style="width:200px"></el-input>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -160,10 +160,10 @@
|
|
|
style="width: 200px"
|
|
|
></el-input-number>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="说明">
|
|
|
+ <el-form-item label="优惠说明">
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
- v-model="discountInfo.description"
|
|
|
+ v-model="discountInfo.discountDescription"
|
|
|
:rows="3"
|
|
|
placeholder="请输入说明"
|
|
|
></el-input>
|
|
|
@@ -176,7 +176,7 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<Confirm
|
|
|
- :remark="remark"
|
|
|
+ :create-order-remark="createOrderRemark"
|
|
|
:tickets="tickets"
|
|
|
:order-items="value"
|
|
|
:form-data="formData"
|
|
|
@@ -258,7 +258,7 @@ export default {
|
|
|
return {
|
|
|
payChannel: '',
|
|
|
actualMoney: 0,
|
|
|
- remark: '',
|
|
|
+ createOrderRemark: '',
|
|
|
formData: {},
|
|
|
pictureRemarks: [{
|
|
|
idKey: randomString(),
|
|
|
@@ -272,7 +272,7 @@ export default {
|
|
|
discountInfo: {
|
|
|
ticketPrice: 0,
|
|
|
discountPrice: 0,
|
|
|
- description: ''
|
|
|
+ discountDescription: ''
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
@@ -288,17 +288,17 @@ export default {
|
|
|
this.currentItem = item
|
|
|
this.discountInfo.ticketPrice = item.currentTicket.price
|
|
|
this.discountInfo.discountPrice = item.discountPrice || 0
|
|
|
- this.discountInfo.description = item.description || ''
|
|
|
+ this.discountInfo.discountDescription = item.discountDescription || ''
|
|
|
this.showDiscountDialog = true
|
|
|
},
|
|
|
confirmDistinct () {
|
|
|
- const { discountPrice, description } = this.discountInfo
|
|
|
+ const { discountPrice, discountDescription } = this.discountInfo
|
|
|
this.$set(this.currentItem, 'discountPrice', discountPrice)
|
|
|
- this.$set(this.currentItem, 'description', description)
|
|
|
+ this.$set(this.currentItem, 'discountDescription', discountDescription)
|
|
|
this.currentItem.tickets.forEach(ticket => {
|
|
|
this.$set(ticket, 'discountPrice', discountPrice)
|
|
|
this.$set(ticket, 'price', ticket.originalPrice - discountPrice)
|
|
|
- this.$set(ticket, 'description', description)
|
|
|
+ this.$set(ticket, 'discountDescription', discountDescription)
|
|
|
})
|
|
|
this.showDiscountDialog = false
|
|
|
},
|
|
|
@@ -343,7 +343,7 @@ export default {
|
|
|
},
|
|
|
handleComplete () {
|
|
|
this.$emit('clear')
|
|
|
- this.remark = ''
|
|
|
+ this.createOrderRemark = ''
|
|
|
this.$localStore.get('defaultPayWay') && this.setPayWay()
|
|
|
this.$parent.$parent.$refs.orderRecord.getOrderList()
|
|
|
},
|