|
|
@@ -0,0 +1,158 @@
|
|
|
+<template>
|
|
|
+ <view class="app-select_customer">
|
|
|
+ <view class="select-left">
|
|
|
+ <view class="select-item_box">
|
|
|
+ <view class="title">结账方式</view>
|
|
|
+ <view class="item-list_box">
|
|
|
+ <view class="active">
|
|
|
+ 欠账
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 已付款
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 待付款
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="select-item_box">
|
|
|
+ <view class="title">收款方式</view>
|
|
|
+ <view class="item-list_box">
|
|
|
+ <view class="active">
|
|
|
+ 欠账
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 已付款
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 待付款
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="select-item_box">
|
|
|
+ <view class="title">收款人</view>
|
|
|
+ <view class="item-list_box">
|
|
|
+ <view class="active">
|
|
|
+ 欠账
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 已付款
|
|
|
+ </view>
|
|
|
+ <view>
|
|
|
+ 待付款
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="select-item_box">
|
|
|
+ <view class="title">打印小票</view>
|
|
|
+ <view class="item-list_box">
|
|
|
+ <view class="active">
|
|
|
+ 打印
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="line"></view>
|
|
|
+ <view class="select-right">
|
|
|
+ <AppInputAll v-model="shopVal" title="商品合计" disabled></AppInputAll>
|
|
|
+ <AppInputAll v-model="shopVal" title="运费" placeholder="没有运费留空"></AppInputAll>
|
|
|
+ <AppInputAll v-model="shopVal" title="总金额" placeholder="总金额"></AppInputAll>
|
|
|
+ <AppInputAll v-model="shopVal" title="实收金额" placeholder="实收金额"></AppInputAll>
|
|
|
+ <view class="shop-distoracn">优惠5</view>
|
|
|
+ </view>
|
|
|
+ <!-- <textarea @tap="activeKeyboard" disabled :value="input" placeholder="点击调起键盘输入"></textarea> -->
|
|
|
+ <VKeyboard ref="keyboard" :pointIsShow="true" :digital="false" :disorderly="false" @typing="typing" @enter="enter"></VKeyboard>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import VKeyboard from '@/components/plugin/vKeyboard/VKeyboard.vue'
|
|
|
+ import TuiListCell from "@/components/plugin/list-cell";
|
|
|
+ import AppInputAll from '@/components/app_input_all'
|
|
|
+ export default {
|
|
|
+ name:'selectCustomer',
|
|
|
+ components:{
|
|
|
+ VKeyboard,
|
|
|
+ AppInputAll
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ input: '',//键盘输入
|
|
|
+ shopVal: '¥100'
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ //键盘方法
|
|
|
+ activeKeyboard() {
|
|
|
+ this.$refs.keyboard.activate();
|
|
|
+ },
|
|
|
+ typing(e) {
|
|
|
+ if (e.backspace) {
|
|
|
+ if (this.input.length > 0) {
|
|
|
+ this.input = this.input.substring(0, this.input.length - 1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ this.input += e.char;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ enter() {
|
|
|
+ this.$refs.keyboard.deactivate();
|
|
|
+ },
|
|
|
+ //键盘方法end
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .app-select_customer {
|
|
|
+ background-color: #ffffff;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .select-left {
|
|
|
+ flex: 1;
|
|
|
+ padding: 10rpx;
|
|
|
+ & .select-item_box {
|
|
|
+ & > .title {
|
|
|
+ font-size: 14rpx;
|
|
|
+ }
|
|
|
+ & .item-list_box {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: flex-start;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ padding: 10rpx 0;
|
|
|
+ & > view {
|
|
|
+ width: 85rpx;
|
|
|
+ height: 35rpx;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 35rpx;
|
|
|
+ font-size: 12rpx;
|
|
|
+ border: 1px solid #eee;
|
|
|
+ margin: 0 8rpx 8rpx 0;
|
|
|
+ color: #333333;
|
|
|
+ border-radius: 3rpx;
|
|
|
+ &.active {
|
|
|
+ background-color: #468c71;
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ & .line {
|
|
|
+ width: 1px;
|
|
|
+ background-color: #eee;
|
|
|
+ }
|
|
|
+ .select-right {
|
|
|
+ flex: 1;
|
|
|
+ padding: 10rpx;
|
|
|
+ & .shop-distoracn {
|
|
|
+ text-align: right;
|
|
|
+ font-size: 14rpx;
|
|
|
+ margin-top: 10rpx;
|
|
|
+ color: #008000;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+</style>
|