|
|
@@ -1,13 +1,34 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
|
|
|
- <block v-if="loginInfo.staff && loginInfo.staff.identity == 2">
|
|
|
+ <block v-if="(loginInfo.staff && loginInfo.staff.identity == 2) || showSendPage == 1">
|
|
|
<view style="font-size:38upx;font-weight:bold;">
|
|
|
- <view @click="goBookAll()" style="margin-left:20upx;margin-top:20upx;">汇总统计</view>
|
|
|
+ <view style="margin-top:20upx;">
|
|
|
+ <text @click="goBookAll()" style="margin-left:20upx;">汇总统计</text>
|
|
|
+ <text @click="cancelSendPage()" style="float: right;margin-right:20upx;">返回</text>
|
|
|
+ </view>
|
|
|
+ <view style="height:70upx;width:100%;margin-top:10upx;">
|
|
|
+ <input v-model="val" type="text" style="border:1upx solid #CCCCCC;border-radius:10upx;height:94upx;padding-left:10upx;margin-left:20upx;width:540upx;float: left;" />
|
|
|
+ <button class="admin-button-com big blue" style="width:160upx;float:left;margin-left:15upx;" @click="clearSendSearch">清除</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:40upx;margin-left:20upx;font-size:34upx;">
|
|
|
+ <view v-for="(item, index) in sendOrderList" :key="index" style="margin-bottom:20upx;">
|
|
|
+ {{ item.addTime?item.addTime.substr(5,11):'' }} 【{{ item.customName }}】 ¥{{ item.actPrice?parseFloat(item.actPrice):0 }}
|
|
|
+ <text v-if="item.status == 1" style="color:#CCCCCC;margin-left:20upx;">待付款</text>
|
|
|
+ <text v-else-if="item.status == 2" style="color:blue;margin-left:20upx;">待发货</text>
|
|
|
+ <text v-else-if="item.status == 3" style="color:#CCCCCC;margin-left:20upx;">配送中</text>
|
|
|
+ <text v-else-if="item.status == 4" style="color:#CCCCCC;margin-left:20upx;">已完成</text>
|
|
|
+ <text v-else style="color:#CCCCCC;margin-left:20upx;">已取消</text>
|
|
|
+ <view v-if="item.status == 2" style="margin-top:8upx;height:110upx;">
|
|
|
+ <button class="admin-button-com big blue" @click="directFh(item)" style="float:right;width:200upx;margin-right:30upx;">发货</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+ <keyboard-module :show="keyShow" @comfirm="finishHit" @clickKey="clickKeyFn" @del="delFn" />
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
-
|
|
|
+
|
|
|
|
|
|
<block v-if="loginStyle == 0">
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
@@ -27,7 +48,7 @@
|
|
|
|
|
|
<div class="user-wrap">
|
|
|
<div class="user-top" style="position: relative;">
|
|
|
- <div class="app-size-28" @click="start()">今日概况</div>
|
|
|
+ <div class="app-size-28" @click="showSend()">今日概况</div>
|
|
|
<image :src="`${constant.imgUrl}/icon/notice_icon.png`" class="mind-item"></image>
|
|
|
<view class="red-mind" v-if="notifyNum>0">{{ notifyNum>9?9:notifyNum }}</view>
|
|
|
<view class="mind-mask" @click="toNotify()"> </view>
|
|
|
@@ -169,10 +190,14 @@ import { getWeixinId } from "@/api/invite/index";
|
|
|
import { getErrorPrice } from "@/api/item"
|
|
|
import { getStaffInfo } from "@/api/shop-admin"
|
|
|
import { renewShop,noRemind,needRemind } from "@/api/renew"
|
|
|
+import { getListB,orderFh} from "@/api/order";
|
|
|
import wexinPay from "@/utils/pay/wxPay";
|
|
|
+import keyboardModule from '@/components/keyboard'
|
|
|
export default {
|
|
|
name: "workbench",
|
|
|
- components: { },
|
|
|
+ components: {
|
|
|
+ keyboardModule
|
|
|
+ },
|
|
|
mixins: [productMins,autoUpdateMixins],
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -215,7 +240,11 @@ export default {
|
|
|
lookMoney:0,
|
|
|
notifyNum:0,
|
|
|
currentDeadline:'',
|
|
|
- newDeadline:''
|
|
|
+ newDeadline:'',
|
|
|
+ val: '',
|
|
|
+ keyShow:true,
|
|
|
+ sendOrderList:[],
|
|
|
+ showSendPage:0
|
|
|
};
|
|
|
},
|
|
|
onShareAppMessage(res) {
|
|
|
@@ -272,6 +301,44 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['setUserShopAll']),
|
|
|
+ directFh(info){
|
|
|
+ orderFh({id:info.id,fhType:0}).then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ info.status = 3
|
|
|
+ uni.showToast({ title: '已发货', icon: 'success' })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ cancelSendPage(){
|
|
|
+ this.showSendPage = 0
|
|
|
+ },
|
|
|
+ showSend(){
|
|
|
+ this.showSendPage = 1
|
|
|
+ },
|
|
|
+ clearSendSearch(){
|
|
|
+ this.sendOrderList = []
|
|
|
+ this.val = ''
|
|
|
+ },
|
|
|
+ finishHit() {
|
|
|
+ let that = this
|
|
|
+ this.sendOrderList = []
|
|
|
+ getListB({ name: this.val, searchType:1,onlySend:1,pageSize:5 }).then((res) => {
|
|
|
+ if(res.code == 1){
|
|
|
+ that.val = ''
|
|
|
+ if(res.data.list && !this.$util.isEmpty(res.data.list)){
|
|
|
+ this.sendOrderList = res.data.list
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ clickKeyFn(e) {
|
|
|
+ let total = this.val + e
|
|
|
+ this.val = total
|
|
|
+ },
|
|
|
+ delFn() {
|
|
|
+ let total = this.val.substr(0, this.val.length - 1)
|
|
|
+ this.val = total
|
|
|
+ },
|
|
|
toPhone(){
|
|
|
uni.makePhoneCall({ phoneNumber:'15280215347' })
|
|
|
},
|
|
|
@@ -435,7 +502,7 @@ export default {
|
|
|
this.pageTo({ url: '/admin/order/statBook'})
|
|
|
},
|
|
|
goBookAll(){
|
|
|
- this.pageTo({ url: '/admin/order/statBook'})
|
|
|
+ //this.pageTo({ url: '/admin/order/statBook'})
|
|
|
},
|
|
|
goBookCustom(){
|
|
|
this.pageTo({ url: '/admin/book/custom'})
|