|
|
@@ -3,20 +3,19 @@
|
|
|
|
|
|
<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>
|
|
|
+ <view style="height:auto;font-size:33upx;margin-top:130upx;padding-left:25upx;color:#333333;">
|
|
|
+
|
|
|
+ <block v-if="!$util.isEmpty(searchList)">
|
|
|
+ <block v-for="(item, index) in searchList" :key="index">
|
|
|
+ <view style="margin-bottom:28upx;" @click="addData(item)">
|
|
|
+ <view>编号 {{item.orderSn}}</view>
|
|
|
+ <view>时间 {{item.entryTime.substr(5,11)}}</view>
|
|
|
+ <view>金额 ¥{{item.actPrice}}</view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
+ </block>
|
|
|
+
|
|
|
+ </view>
|
|
|
|
|
|
</uni-popup>
|
|
|
|
|
|
@@ -30,12 +29,15 @@
|
|
|
</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 v-if="!$util.isEmpty(selectDataList)">
|
|
|
+ <block v-for="(item, index) in selectDataList" :key="index">
|
|
|
+ <view style="margin-bottom:10upx;font-size:30upx;">
|
|
|
+ ID:{{item}}
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(detailsList)" />
|
|
|
+ <AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(selectDataList)" />
|
|
|
</block>
|
|
|
</view>
|
|
|
<view class="bar-view">
|
|
|
@@ -47,7 +49,7 @@
|
|
|
</view>
|
|
|
</template>
|
|
|
<view class="btn-view">
|
|
|
- <button :class="['admin-button-com', 'blue']" @click="clearSelectedOrder" >下一步</button>
|
|
|
+ <button :class="['admin-button-com', 'blue']" @click="nextStep">下一步</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -57,14 +59,14 @@
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import { getDebtList,clearOrderApi } from "@/api/gys/index";
|
|
|
-import AppSearchModule from "@/components/module/app-search";
|
|
|
+import AppSearchModule from "@/components/module/app-search-number";
|
|
|
export default {
|
|
|
components: { AppWrapperEmpty, AppSearchModule},
|
|
|
data() {
|
|
|
return {
|
|
|
totalAmount: "",
|
|
|
num: "",
|
|
|
- detailsList: [],
|
|
|
+ selectDataList: [],
|
|
|
searchList:[],
|
|
|
listLoading: false,
|
|
|
isAllCheck: false,
|
|
|
@@ -81,6 +83,19 @@ export default {
|
|
|
computed: {
|
|
|
},
|
|
|
methods: {
|
|
|
+ addData(item){
|
|
|
+ if (this.$util.isEmpty(this.selectDataList)) {
|
|
|
+ this.selectDataList.push(item.id)
|
|
|
+ }else{
|
|
|
+ if(this.selectDataList.indexOf(item.id) == -1){
|
|
|
+ this.selectDataList.push(item.id)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ uni.setStorageSync('select_ghs_clear_'+this.option.id, this.selectDataList)
|
|
|
+
|
|
|
+ this.$refs.searchShowRef.close()
|
|
|
+ },
|
|
|
searchFn(e) {
|
|
|
let that = this
|
|
|
if (this.$util.isEmpty(e)) {
|
|
|
@@ -106,14 +121,11 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
init(){
|
|
|
-
|
|
|
+ let cache = uni.getStorageSync('select_ghs_clear_'+this.option.id)
|
|
|
+ console.log(cache)
|
|
|
},
|
|
|
- clearSelectedOrder(){
|
|
|
- if (this.$util.isEmpty(this.selectList)) {
|
|
|
- this.$msg("请选择订单");
|
|
|
- return;
|
|
|
- }
|
|
|
- this.showClearModel = true;
|
|
|
+ nextStep(){
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -127,14 +139,9 @@ export default {
|
|
|
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;
|