|
@@ -11,9 +11,9 @@
|
|
|
<app-search-module v-model="py" placeholder="请输入" @input="searchFn" />
|
|
<app-search-module v-model="py" placeholder="请输入" @input="searchFn" />
|
|
|
</view>
|
|
</view>
|
|
|
<view style="float:right">
|
|
<view style="float:right">
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-right:8upx;" @click="selectStaffFn()">员工</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-right:8upx;" @click="debtChangeFn()">欠款</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" @click="cancelFn()">全部</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" style="margin-right:8upx;" @click="selectStaffFn()">员工</button>
|
|
|
|
|
+ <button class="admin-button-com middle blue" style="margin-right:8upx;" @click="debtChangeFn()">赊账单</button>
|
|
|
|
|
+ <button class="admin-button-com middle blue" @click="cancelFn()">清空搜索</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="list-wrap">
|
|
<view class="list-wrap">
|
|
@@ -21,8 +21,8 @@
|
|
|
<view class="list" v-for="(item, index) in list.data" :key="index" @click="pageTo({ url: '/admin/order/detail', query: { id: item.id } })" >
|
|
<view class="list" v-for="(item, index) in list.data" :key="index" @click="pageTo({ url: '/admin/order/detail', query: { id: item.id } })" >
|
|
|
<view class="list-top flex-center-between" style="border-bottom:1upx solid #EEEEEE;">
|
|
<view class="list-top flex-center-between" style="border-bottom:1upx solid #EEEEEE;">
|
|
|
<view class="app-color-3" style="font-size:28upx;font-weight:bold;color:#333333;">编号 {{ item.sendNum }}<text v-if="item.bookName!=''" style="margin-left:12upx;">| {{item.bookName}}</text></view>
|
|
<view class="app-color-3" style="font-size:28upx;font-weight:bold;color:#333333;">编号 {{ item.sendNum }}<text v-if="item.bookName!=''" style="margin-left:12upx;">| {{item.bookName}}</text></view>
|
|
|
- <view style="border:1upx solid red;border-radius:18upx;font-size:19upx;color:red;padding:5upx 10upx;" v-if="item.debt == 1">有欠款</view>
|
|
|
|
|
- <view style="border:1upx solid red;border-radius:18upx;font-size:19upx;color:red;padding:5upx 10upx;" v-if="item.refund == 1">有退款</view>
|
|
|
|
|
|
|
+ <view style="border:1upx solid red;border-radius:18upx;font-size:19upx;padding:5upx 10upx;background-color: red;color:white;" v-if="item.debt == 1">赊账</view>
|
|
|
|
|
+ <view style="border:1upx solid #0e7ed8;border-radius:18upx;font-size:19upx;color:white;padding:5upx 10upx;background-color: #0e7ed8;" v-if="item.refund == 1">有售后</view>
|
|
|
<view style="font-size:28upx;" class='app-price app-green'>{{ item.status | constantfilter('ORDER_STATUS') }}</view>
|
|
<view style="font-size:28upx;" class='app-price app-green'>{{ item.status | constantfilter('ORDER_STATUS') }}</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="list-blo">
|
|
<view class="list-blo">
|
|
@@ -101,7 +101,8 @@ export default {
|
|
|
debt:2,
|
|
debt:2,
|
|
|
searchTypeName:'价格',
|
|
searchTypeName:'价格',
|
|
|
searchType:0,
|
|
searchType:0,
|
|
|
- searchOption:['价格', '单号','手机','名称']
|
|
|
|
|
|
|
+ searchOption:['价格', '单号','手机','名称'],
|
|
|
|
|
+ refreshPage:1
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh () {
|
|
onPullDownRefresh () {
|
|
@@ -139,6 +140,14 @@ export default {
|
|
|
this.staffList = res.data.list
|
|
this.staffList = res.data.list
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
|
|
+ if(this.refreshPage == 1){
|
|
|
|
|
+ this.resetList();
|
|
|
|
|
+ this.getOrderList()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.refreshPage = 1
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
setSearchType(){
|
|
setSearchType(){
|
|
@@ -364,7 +373,7 @@ export default {
|
|
|
height:110upx;
|
|
height:110upx;
|
|
|
.search-bar {
|
|
.search-bar {
|
|
|
display:inline-block;
|
|
display:inline-block;
|
|
|
- width:290upx;
|
|
|
|
|
|
|
+ width:190upx;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|