|
|
@@ -18,6 +18,10 @@
|
|
|
<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(detailsList)" />
|
|
|
</block>
|
|
|
</view>
|
|
|
+ <view style="position:fixed;bottom:100upx;font-size:32upx;z-index:9999;background-color:red;width:100%;height:85upx;text-align:center;line-height:85upx;color:white;"
|
|
|
+ v-if="!$util.isEmpty(unClear)" @click="goClear(unClear)">
|
|
|
+ <text>客户已有一个待结账单 ¥{{unClear.actPrice?parseFloat(unClear.actPrice):0}}</text><text style="font-weight:bold;margin-left:15upx;">查看</text>
|
|
|
+ </view>
|
|
|
<view :class="device == 'ios' ? 'ios-bar-view':'android-bar-view'">
|
|
|
<template>
|
|
|
<view class="info-view">
|
|
|
@@ -40,7 +44,8 @@
|
|
|
<script>
|
|
|
import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import DetailsItem from "./detailsItem";
|
|
|
-import { getDebtOrderList,clearOrderApi } from "@/api/arrears/index";
|
|
|
+import { getDebtOrderList,clearOrderApi } from "@/api/arrears";
|
|
|
+import { getUnClear } from "@/api/clear"
|
|
|
import DateSelect from "@/components/module/dateSelect";
|
|
|
import ModalModule from "@/components/plugin/modal";
|
|
|
export default {
|
|
|
@@ -59,7 +64,8 @@ export default {
|
|
|
searchTime:'',
|
|
|
startTime:'',
|
|
|
endTime:'',
|
|
|
- device:'android'
|
|
|
+ device:'android',
|
|
|
+ unClear:[]
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -74,6 +80,12 @@ export default {
|
|
|
|
|
|
this.device = uni.getSystemInfoSync().platform
|
|
|
|
|
|
+ getUnClear({customId:this.option.id}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ this.unClear = res.data.info
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
computed: {
|
|
|
selectList() {
|
|
|
@@ -110,6 +122,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ goClear(item){
|
|
|
+ this.$util.pageTo({url:'/admin/clear/customInfo?id='+item.id})
|
|
|
+ },
|
|
|
createOrder(){
|
|
|
let that = this
|
|
|
let price = parseFloat(that.modifyPrice)
|
|
|
@@ -278,7 +293,7 @@ export default {
|
|
|
margin-top:98upx;
|
|
|
padding: 20upx 30upx;
|
|
|
flex: 1;
|
|
|
- padding-bottom: 100upx;
|
|
|
+ padding-bottom: 170upx;
|
|
|
}
|
|
|
.ios-bar-view {
|
|
|
bottom: 0;
|