|
|
@@ -0,0 +1,274 @@
|
|
|
+<template>
|
|
|
+<view class="app-content">
|
|
|
+
|
|
|
+ <uni-popup ref="searchShowRef" :mask-click="false" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
+
|
|
|
+ <view style="height:auto;font-size:33upx;margin-top:130upx;padding-left:25upx;color:#333333;">
|
|
|
+ <view style="margin-bottom:28upx;">
|
|
|
+ <view>KD312702412 | 2023-06-17 00:21</view>
|
|
|
+ <view>金额 ¥23.5</view>
|
|
|
+ </view>
|
|
|
+ <view style="margin-bottom:28upx;">
|
|
|
+ <view>KD312702412 | 2023-06-17 00:21</view>
|
|
|
+ <view>金额 ¥23.5</view>
|
|
|
+ </view>
|
|
|
+ <view style="margin-bottom:28upx;">
|
|
|
+ <view>KD312702412 | 2023-06-17 00:21</view>
|
|
|
+ <view>金额 ¥23.5</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
+ <view class="input-wrap_box">
|
|
|
+ <view>
|
|
|
+ <AppSearchModule placeholder="输入编号" @input="searchFn"/>
|
|
|
+ </view>
|
|
|
+ <view style="padding:0 10upx 0 20upx;" >
|
|
|
+ <button class="admin-button-com middle blue" @click="">清空</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="order-page">
|
|
|
+ <view scroll-y class="shop-list">
|
|
|
+ <block v-if="!$util.isEmpty(detailsList)">
|
|
|
+ <view v-for="(item, index) in detailsList">
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ <block v-else>
|
|
|
+ <AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(detailsList)" />
|
|
|
+ </block>
|
|
|
+ </view>
|
|
|
+ <view class="bar-view">
|
|
|
+ <template>
|
|
|
+ <view class="info-view">
|
|
|
+ <view class="details-select">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ <view class="btn-view">
|
|
|
+ <button :class="['admin-button-com', 'blue']" @click="clearSelectedOrder" >下一步</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ </view>
|
|
|
+</view>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
+import { getDebtList,clearOrderApi } from "@/api/gys/index";
|
|
|
+import AppSearchModule from "@/components/module/app-search";
|
|
|
+export default {
|
|
|
+ components: { AppWrapperEmpty, AppSearchModule},
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ totalAmount: "",
|
|
|
+ num: "",
|
|
|
+ detailsList: [],
|
|
|
+ searchList:[],
|
|
|
+ listLoading: false,
|
|
|
+ isAllCheck: false,
|
|
|
+ showClearModel:false,
|
|
|
+ modifyPrice:0,
|
|
|
+ searchTime:'',
|
|
|
+ startTime:'',
|
|
|
+ endTime:'',
|
|
|
+ payWayData:{name:"线下微信",id:0},
|
|
|
+ payWayList:[{name:"线下微信",id:0},{name:"现金",id:4},{name:"线下支付宝",id:1},{name:"银行卡",id:5}],
|
|
|
+ payWay:0
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ searchFn(e) {
|
|
|
+ let that = this
|
|
|
+ if (this.$util.isEmpty(e)) {
|
|
|
+ that.$refs.searchShowRef.close()
|
|
|
+ that.searchList = [];
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if(e.length < 5){
|
|
|
+ that.$refs.searchShowRef.close()
|
|
|
+ that.searchList = [];
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ getDebtList({id:this.option.id,shortNo:e}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ if (res.data.list && !this.$util.isEmpty(res.data.list)) {
|
|
|
+ that.searchList = res.data.list
|
|
|
+ that.$refs.searchShowRef.open('top')
|
|
|
+ }else{
|
|
|
+ that.$refs.searchShowRef.close()
|
|
|
+ that.searchList = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ init(){
|
|
|
+
|
|
|
+ },
|
|
|
+ clearSelectedOrder(){
|
|
|
+ if (this.$util.isEmpty(this.selectList)) {
|
|
|
+ this.$msg("请选择订单");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.showClearModel = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.class-popup-style{
|
|
|
+ z-index:999999;
|
|
|
+}
|
|
|
+.input-wrap_box {
|
|
|
+ background-color: #fff;
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ z-index: 9999;
|
|
|
+ /* 手机mobile屏幕小于1000px */
|
|
|
+ @media screen and (max-width: 1100px) {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ /* 收银台cashier屏幕大于1000px */
|
|
|
+ @media screen and (min-width:1100px) {
|
|
|
+ width: 40%;
|
|
|
+ }
|
|
|
+ height: 100upx;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 30upx;
|
|
|
+ & > view:nth-child(1) {
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
+}
|
|
|
+.order-page {
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ background-color: #f9fbfc;
|
|
|
+ overflow: scroll;
|
|
|
+ .top-view {
|
|
|
+ position:fixed;
|
|
|
+ width:100%;
|
|
|
+ padding: 30upx;
|
|
|
+ background-color: #fff;
|
|
|
+ .top-row {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ &:not(:last-child) {
|
|
|
+ margin-bottom: 10upx;
|
|
|
+ }
|
|
|
+ .header-item {
|
|
|
+ font-size: 24upx;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
+ .info-item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .logo {
|
|
|
+ margin-right: 10upx;
|
|
|
+ width: 32upx;
|
|
|
+ height: 32upx;
|
|
|
+ border-radius: 50%;
|
|
|
+ }
|
|
|
+ .name {
|
|
|
+ font-size: 28upx;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .price-item {
|
|
|
+ font-size: 34upx;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .shop-list {
|
|
|
+ margin-top:98upx;
|
|
|
+ padding: 20upx 30upx;
|
|
|
+ flex: 1;
|
|
|
+ padding-bottom: 100upx;
|
|
|
+ }
|
|
|
+ .bar-view {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding: 0 30upx;
|
|
|
+ width: 100%;
|
|
|
+ height: 100upx;
|
|
|
+ background: #fff;
|
|
|
+ box-shadow: 0upx -1upx 6upx 0upx rgba(4, 0, 0, 0.06);
|
|
|
+ .info-view {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ color: #333;
|
|
|
+ font-size: 24upx;
|
|
|
+ .iconfont {
|
|
|
+ font-size: 32upx;
|
|
|
+ color: #dddddd;
|
|
|
+ }
|
|
|
+ .price {
|
|
|
+ margin: 0 3upx;
|
|
|
+ color: $redColor;
|
|
|
+ font-size: 30upx;
|
|
|
+ }
|
|
|
+ .unit {
|
|
|
+ margin: 0 3upx;
|
|
|
+ color: $redColor;
|
|
|
+ font-size: 30upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .btn-view {
|
|
|
+ display:flex;
|
|
|
+ .admin-button-com {
|
|
|
+ display:flex;
|
|
|
+ align-items:center;
|
|
|
+ justify-content:center;
|
|
|
+ margin:0 10upx;
|
|
|
+ width:200upx;
|
|
|
+ height:84upx;
|
|
|
+ font-size: 32upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .details-select {
|
|
|
+ font-size:30upx;
|
|
|
+ margin-right: 20upx;
|
|
|
+ display: inline-block;
|
|
|
+ .iconweixuanzhong,
|
|
|
+ .iconxuanzhong {
|
|
|
+ font-size: 40upx !important;
|
|
|
+ }
|
|
|
+ .iconxuanzhong {
|
|
|
+ color: $mainColor !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .select-cmd_bx {
|
|
|
+ .num_bx {
|
|
|
+ margin-top:30upx;
|
|
|
+ margin-bottom:50upx;
|
|
|
+ margin-left:80upx;
|
|
|
+ view{
|
|
|
+ height: 80upx;
|
|
|
+ font-size: 28upx;
|
|
|
+ }
|
|
|
+ input {
|
|
|
+ height: 70upx;
|
|
|
+ border: 1upx solid #dddddd;
|
|
|
+ border-radius: 4upx;
|
|
|
+ text-align: left;
|
|
|
+ margin-right: 24upx;
|
|
|
+ font-size: 35upx;
|
|
|
+ width:300upx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|