dingdong-master/pages/order-manage/modal/new-serv-price-online.vue

95 lines
3.0 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<!-- 报价/客户支付模态框 -->
<view class="cu-modal" :class="show?'show':''">
<view class="cu-dialog">
<view class="cu-bar bg-white justify-end solid-bottom">
<view class="content">上门报价与加单</view>
<view class="action" data-modal="showNewServPriceModal" @click="hideModal">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<view class="padding padding-lr-xl bg-white text-left">
<view class="text-lg">上门后新增的报价</view>
<radio-group class="padding-tb-sm">
<view class="padding-tb-sm" @click="chooseCompanySize(0)">
<radio style="transform:scale(0.7)" class="main-color"
:checked="payAction === 0"></radio>
<text class="margin-left">无报价直接拍照完单</text>
</view>
<view class="padding-tb-sm flex justify-start align-start" @click="chooseCompanySize(0)">
<radio style="transform:scale(0.7)" class="main-color"
:checked="payAction === 1"></radio>
<view class="margin-left">
<view>上门有加单请客户支付</view>
<view class="flex justify-start margin-top-sm align-center">
<text>加单总额</text>
<input class="radius-input inline-input" v-model="newPrice"></input>
<text class="margin-left-xs"></text>
<view class="cu-btn line-main-color sm margin-left">修改报价</view>
</view>
</view>
</view>
<view class="padding-tb-sm flex justify-start align-start" @click="chooseCompanySize(0)">
<radio style="transform:scale(0.7)" class="main-color"
:checked="payAction === 2"></radio>
<view class="margin-left">
<view>上门报价类给下单方报价</view>
<view class="flex justify-start margin-top-sm align-center">
<text>报价总额</text>
<input class="radius-input inline-input" v-model="newPrice"></input>
<text class="margin-left-xs"></text>
<view class="cu-btn line-main-color sm margin-left">修改报价</view>
</view>
</view>
</view>
</radio-group>
</view>
<view class="cu-bar bg-white solid-top">
<view class="action margin-0 flex-sub text-black" data-modal="showNewServPriceOnlineModal"
@click="newServPrice">退出</view>
<view class="action margin-0 flex-sub text-main-color solid-left" data-modal="showNewServPriceOnlineModal"
@click="letCustomerPay">去完单</view>
</view>
</view>
</view>
</template>
<script>
export default {
nama: 'new-serv-price',
props: {
show: {
type: Boolean,
default: false
},
data: {
type: Object,
default: {}
}
},
data() {
return {
payAction: 0,
newPrice: ''
}
},
methods: {
hideModal(e) {
uni.$emit(this.$globalFun.HIDE_MODAL, e);
},
newServPrice(e) {
uni.$emit(this.$globalFun.NEW_SERV_PRICE, e)
},
letCustomerPay(e) {
uni.$emit(this.$globalFun.LET_CUSTOMER_PAY, e)
}
}
}
</script>
<style scoped>
.inline-input {
flex-basis: 25%;
}
</style>