123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242 |
- <template>
- <view class="pos-order-list" ref="container">
- <!-- #ifdef MP || APP-PLUS -->
- <NavBar titleText="订单管理" bagColor="#f5f5f5" textSize="30rpx" :iconColor="iconColor" :textColor="iconColor" :isScrolling="isScrolling" showBack></NavBar>
- <!-- #endif -->
- <view class="searchCon acea-row">
- <view class="search acea-row row-middle">
- <text class="iconfont icon-ic_search"></text>
- <input class="inputs" placeholder='请输入用户手机号/用户昵称/订单号/商品名称' placeholder-class='placeholder' confirm-type='search' name="search" v-model="where.keyword" @confirm="searchSubmit"></input>
- </view>
- <view class="btn" @click="filterShow = true">
- <text class="iconfont icon-ic_sort"></text>
- </view>
- </view>
- <view :style="{ height: navHeight + 'px' }" v-if="isFixed"></view>
- <view class="nav acea-row row-around row-middle" :class="{ fixed: isFixed }" :style="{ top: isFixed?popupTop:0 }" id="nav">
- <view class="item" :class="state == -1 ? 'on' : ''" @click="changeStatus(-1)">
- 全部
- <image src="../static/adorn.png" v-if="state == -1"></image>
- </view>
- <view class="item" :class="state == 0 ? 'on' : ''" @click="changeStatus(0)">
- 待付款
- <image src="../static/adorn.png" v-if="state == 0"></image>
- </view>
- <view class="item" :class="state == 1 ? 'on' : ''" @click="changeStatus(1)">
- 待发货
- <image src="../static/adorn.png" v-if="state == 1"></image>
- </view>
- <view class="item" :class="state == 2 ? 'on' : ''" @click="changeStatus(2)">
- 待收货/核销
- <image src="../static/adorn.png" v-if="state == 2"></image>
- </view>
- <view class="item" :class="state == 3 ? 'on' : ''" @click="changeStatus(3)">
- 待评价
- <image src="../static/adorn.png" v-if="state == 3"></image>
- </view>
- <!-- <view class="item" :class="where.status == 4 ? 'on' : ''" @click="changeStatus(4)">
- 已完成
- </view>
- <view class="item" :class="where.status == -3 ? 'on' : ''" @click="changeStatus(-3)">
- 退款
- </view> -->
- </view>
- <view class="list" v-if="list.length">
- <view class="item" v-for="(item, index) in list" :key="index">
- <view class="order-num acea-row row-between-wrapper" @click="toDetail(item)">
- <view class="acea-row row-middle">
- <!-- <countDown v-if="item.status == 0 && item.paid == 0 && item.pay_type != 'offline'" tipText="剩余:" dayText=" " hourText="小时" minuteText="分钟" secondText=" " dotColor="#FF7E00"
- colors="#FF7E00" :datatime="item.stop_time" :isSecond="false">
- </countDown> -->
- <view>{{ item.order_id }}</view>
- <view class="label" v-if="item.pink_name && !storeNum">{{item.pink_name}}</view>
- <view class="label" v-if="item.plat_name && storeNum">{{item.plat_name}}</view>
- </view>
- <view class="state" :class="(item.refund_status==0 && where.status != 0 && item.refund.length)?'on':''">
- {{item.refund_status==1?'退款中':item.refund_status==2?'已退款':item.refund_status==3?'拒绝退款':item.status_name.status_name}}
- <text v-if="item.refund_status==0 && where.status != 0 && item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
- </view>
- </view>
- <view class="pos-order-goods">
- <view class="goods acea-row" :class="item.cart_id.length > 1?'row-middle':''" @click="toDetail(item)">
- <scroll-view class="picTxt scroll-view" scroll-x="true" v-if="item.cart_id.length > 1">
- <view class="pictrue" v-for="(val, key) in item._info" :key="key">
- <image :src="val.cart_info.productInfo.attrInfo?val.cart_info.productInfo.attrInfo.image:val.cart_info.productInfo.image" />
- </view>
- </scroll-view>
- <view class="picTxt" v-else>
- <view class="acea-row" v-for="(val, key) in item._info" :key="key">
- <view class="pictrue">
- <image :src="val.cart_info.productInfo.attrInfo?val.cart_info.productInfo.attrInfo.image:val.cart_info.productInfo.image" />
- </view>
- <view class="text">
- <view class="info line2">
- <!-- <text v-if="val.cart_info.is_gift == 1" class="label">[赠品]</text> -->
- {{ val.cart_info.productInfo.store_name }}
- </view>
- <view class="attr" v-if="val.cart_info.productInfo.attrInfo">
- {{ val.cart_info.productInfo.attrInfo.suk }}
- </view>
- </view>
- </view>
- </view>
- <view class="money">
- <!-- <view class="x-money">¥{{ item.pay_price }}</view> -->
- <BaseMoney :money="item.pay_price" symbolSize="20" integerSize="32" decimalSize="20"></BaseMoney>
- <view class="num">共{{ item.total_num }}件</view>
- <!-- <view class="y-money">
- ¥{{ val.cart_info.productInfo.ot_price }}
- </view> -->
- <!-- <view class="info" v-if="val.cart_info.refund_num && item._status._type !=-2">{{val.cart_info.refund_num}}件退款中</view> -->
- </view>
- </view>
- </view>
- <!-- <view class="public-total">
- 共{{ item.total_num }}件商品,实付款
- <span class="money">¥{{ item.pay_price }}</span> ( 邮费 ¥{{
- item.pay_postage
- }}
- )
- </view> -->
- <view class="operation acea-row row-between-wrapper">
- <view class="more">
- <!-- <view class="iconfont icon-gengduo" @click="more(index)"></view>-->
- <!-- <view class="order" v-show="current === index">-->
- <!-- <view class="items">-->
- <!-- {{ where.status > 0 ? "删除" : "取消" }}订单-->
- <!-- </view>-->
- <!-- <view class="arrow"></view>-->
- <!-- </view>-->
- </view>
- <view class="acea-row row-middle">
- <view class="bnt" @click="modify(item, 1)">订单备注</view>
- <view class="bnt" :class="openErp?'on':''" @click="modify(item, 0)" v-if="item._status == 1">
- 一键改价
- </view>
- <view class="bnt primary" :class="openErp?'on':''" v-if="item.status == 0 && item.paid == 0" @click="confirmPay(item)">
- 确认付款
- </view>
- <view class="bnt" v-if="item.supplier_id!==0 && item._status == 2" @click="btnClick(item)">提醒发货</view>
- <view class="bnt primary" :class="openErp?'on':''" v-if="item._status == 2" @click="goDelivery(item)">发送货
- </view>
- <navigator class="bnt primary" :url="'/pages/admin/logistics/index?orderId='+item.order_id" v-if="item._status == 4 && item.delivery_type == 'express'">查看物流</navigator>
- <view class="bnt primary" v-if="item.shipping_type == 2 &&
- (item.status == 0 || item.status == 5) &&
- item.paid == 1 &&
- item.refund_status === 0" @click="verify(item)">订单核销</view>
- </view>
- </view>
- </view>
- </view>
- <view v-else class="px-20 mt-20">
- <emptyPage title="暂无订单~" src="/statics/images/noOrder.gif"></emptyPage>
- </view>
- <Loading :loaded="loaded" :loading="loading"></Loading>
- <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund" v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
- :status="status"></PriceChange>
- <view class="mask" v-if="filterShow" @click="filterShow = false"></view>
- <view class="filter-popup" :class="{ on: filterShow }" :style="{top:popupTop}">
- <view class="search-box">
- <view class="search acea-row row-middle">
- <text class="iconfont icon-ic_search"></text>
- <input class="input" placeholder='请输入要查询的订单' placeholder-class='placeholder' confirm-type='search' name="search" v-model="where.keyword" @confirm="searchSubmit"></input>
- </view>
- </view>
- <view class="content">
- <view class="item">
- <view class="title">按下单时间</view>
- <view class="acea-row list">
- <view class="cell" v-for="(item, index) in dateList" :key="index" :class="{ on: item.val == dateSelected }" @click="dateChange(item.val)">{{ item.label }}</view>
- </view>
- </view>
- <view class="item">
- <view class="title">按支付方式</view>
- <view class="acea-row list">
- <view class="cell" v-for="(item, index) in payList" :key="index" :class="{ on: item.val == where.pay_type }" @click="payChange(item.val,0)">{{ item.label }}</view>
- </view>
- </view>
- <view class="item" v-if="storeNum">
- <view class="title">按订单来源</view>
- <view class="acea-row list">
- <view class="cell" v-for="(item, index) in orderList" :key="index" :class="{ on: item.val == currentOrder }" @click="payChange(item.val,1)">{{item.label}}</view>
- </view>
- </view>
- <view class="item">
- <view class="title">按订单类型</view>
- <view class="acea-row list">
- <view class="cell" v-for="(item, index) in typeList" :key="index" :class="{ on: item.val == where.type }" @click="payChange(item.val,2)">{{item.label}}</view>
- </view>
- </view>
- </view>
- </view>
- <view v-if="confirmShow" class="mask"></view>
- <view v-if="confirmShow" class="confirm-popup">
- <view class="title">确认付款</view>
- <view class="info">确认该订单用户已付款</view>
- <view class="acea-row btn-box">
- <view class="btn" @click="confirmShow = false">取消</view>
- <view class="btn primary" @click="offlinePay">确认</view>
- </view>
- </view>
- <view class="footerH"></view>
- <footerPage :isWork='storeNum'></footerPage>
- </view>
- </template>
- <script>
- import {
- mapGetters
- } from "vuex";
- import {
- getStoreOrderList,
- getAdminOrderList,
- setStoreOrderPrice,
- setAdminOrderPrice,
- setStoreOrderRemark,
- setAdminOrderRemark,
- setStoreRefundRemark,
- setAdminRefundRemark,
- setStoreOfflinePay,
- setOfflinePay,
- setStoreOrderRefund,
- setOrderRefund,
- storeOrderRefundAgree,
- orderRefundAgree,
- getDelivery
- } from "@/api/admin";
- import {
- erpConfig
- } from "@/api/esp.js";
- import Loading from '@/components/Loading/index'
- import PriceChange from '../components/PriceChange/index.vue'
- import footerPage from '../components/footerPage/index.vue'
- import countDown from '@/components/countDown/index.vue'
- import emptyPage from '@/components/emptyPage.vue'
- // #ifdef MP || APP-PLUS
- import NavBar from '@/components/NavBar.vue';
- // #endif
- import {
- isMoney
- } from '@/utils/validate.js';
- import {
- HTTP_REQUEST_URL
- } from '@/config/app';
- export default {
- name: "AdminOrderList",
- components: {
- Loading,
- PriceChange,
- footerPage,
- countDown,
- emptyPage,
- // #ifdef MP || APP-PLUS
- NavBar,
- // #endif
- },
- computed: mapGetters(["storeNum"]),
- data() {
- return {
- getHeight: this.$util.getWXStatusHeight(),
- iconColor: '#333333',
- isScrolling: false,
- top: 0,
- navHeight: 0,
- isFixed: false,
- filterShow: false,
- openErp: false,
- current: "",
- change: false,
- types: 0,
- where: {
- page: 1,
- limit: 10,
- status: '',
- keyword: '',
- data: '', // 时间筛选
- type: '', // 订单类型
- pay_type: '', // 支付方式
- },
- list: [],
- loaded: false,
- loading: false,
- orderInfo: {},
- status: "",
- state: -1,
- isRefund: 0, //1是仅退款;0是退货退款
- imgHost: HTTP_REQUEST_URL,
- dateSelected: '',
- dateList: [{
- label: '全部',
- val: '',
- },
- {
- label: '三天内',
- val: '1',
- },
- {
- label: '一个月内',
- val: '2',
- },
- {
- label: '三个月内',
- val: '3',
- },
- {
- label: '半年内',
- val: '4',
- },
- ],
- payList: [{
- label: '全部',
- val: '',
- },
- {
- label: '微信支付',
- val: '1'
- },
- {
- label: '支付宝支付',
- val: '4'
- },
- {
- label: '余额支付',
- val: '2'
- },
- {
- label: '线下支付',
- val: '3'
- },
- ],
- orderList:[
- {
- label: '全部',
- val: '-1'
- },
- {
- label: '平台订单',
- val: '0'
- },
- {
- label: '供应商订单',
- val: '2'
- },
- {
- label: '门店订单',
- val: '1'
- }
- ],
- typeList:[
- {
- label: '全部',
- val: ''
- },
- {
- label: '拼单订单',
- val: '9'
- },
- {
- label: '桌码订单',
- val: '10'
- },
- {
- label: '普通订单',
- val: '0'
- },
- {
- label: '秒杀订单',
- val: '1'
- },
- {
- label: '砍价订单',
- val: '2'
- },
- {
- label: '拼团订单',
- val: '3'
- },
- {
- label: '积分订单',
- val: '4'
- },
- {
- label: '套餐订单',
- val: '5'
- },
- {
- label: '预售订单',
- val: '6'
- },
- {
- label: '新人订单',
- val: '7'
- },
- {
- label: '抽奖订单',
- val: '8'
- }
- ],
- confirmOrder: {},
- confirmShow: false,
- popupTop:0,
- currentOrder:0
- };
- },
- onLoad(option) {
- // #ifdef MP
- this.popupTop = this.getHeight.barTop+this.getHeight.barHeight+'px'
- // #endif
- let type = option.types;
- this.where.status = type || '';
- this.state = type || -1;
- this.getErpConfig();
- },
- onShow() {
- this.init();
- },
- onPageScroll(option) {
- if (this.top - (this.getHeight.barTop + this.getHeight.barHeight) >= option.scrollTop) {
- this.isFixed = false;
- } else {
- this.isFixed = true;
- }
- // #ifdef MP
- if (option.scrollTop > 50) {
- this.isScrolling = true;
- } else if (option.scrollTop < 50) {
- this.isScrolling = false;
- }
- // #endif
- },
- mounted() {
- const query = uni.createSelectorQuery().in(this);
- query.select("#nav").boundingClientRect((data) => {
- this.top = data.top;
- this.navHeight = data.height;
- }).exec();
- },
- methods: {
- btnClick(item){
- getDelivery(item.id).then(res=>{
- this.$util.Tips({
- title: res.msg
- })
- }).catch(err=>{
- this.$util.Tips({
- title: err
- })
- })
- },
- verify(item) {
- if (item.product_type == 4) {
- uni.navigateTo({
- url: '/pages/admin/writeOffCard/index?id=' + item.id+'&storeNum='+this.storeNum
- })
- } else {
- uni.navigateTo({
- url: '/pages/admin/distribution/scanning/detail/index?auth=1&id=' + item.id + '&let=1&code=' + item.verify_code+'&storeNum='+this.storeNum
- })
- }
- },
- statusChange(e) {
- this.status = e;
- },
- goDelivery(item) {
- if (this.openErp) return
- uni.navigateTo({
- url: '/pages/admin/delivery/index?id=' + item.order_id + '&listId=' + item.id + '&totalNum=' + item.total_num + '&orderStatus=' + item._status + '&comeType=1&productType=' +
- item.product_type+'&storeNum='+this.storeNum
- })
- },
- getErpConfig() {
- let funApi = '';
- erpConfig().then(res => {
- this.openErp = res.data.open_erp;
- }).catch(err => {
- this.$util.Tips({
- title: err
- })
- })
- },
- // 获取数据
- getIndex: function() {
- let that = this;
- if (that.loading || that.loaded) return;
- that.loading = true;
- let funApi = ''
- if(this.storeNum){
- that.where.plat_type = this.currentOrder;
- funApi = getAdminOrderList(that.where);
- }else{
- funApi = getStoreOrderList(that.where);
- }
- funApi.then(
- res => {
- that.loading = false;
- that.loaded = res.data.length < that.where.limit;
- that.list.push.apply(that.list, res.data);
- that.where.page = that.where.page + 1;
- },
- err => {
- that.$util.Tips({
- title: err
- })
- }
- );
- },
- // 初始化
- init: function() {
- this.list = [];
- this.where.page = 1;
- this.loaded = false;
- this.loading = false;
- this.getIndex();
- this.current = "";
- },
- searchSubmit() {
- this.init();
- },
- // 导航切换
- changeStatus(val) {
- if (this.state != val) {
- this.state = val;
- this.where.status = val == -1 ? '' : val;
- this.init();
- }
- },
- // 商品操作
- modify: function(item, status, type) {
- if (this.openErp && status != 1) return
- this.change = true;
- this.status = status.toString();
- this.orderInfo = item;
- if (status == 2) {
- this.isRefund = type
- }
- },
- changeclose: function(msg) {
- this.change = msg;
- },
- objOrderRefund(data) {
- let that = this;
- let funApi = '';
- if(this.storeNum){
- funApi = setOrderRefund;
- }else{
- funApi = setStoreOrderRefund;
- }
- funApi(data).then(
- res => {
- that.change = false;
- that.$util.Tips({
- title: res.msg
- });
- that.init();
- },
- err => {
- that.change = false;
- that.$util.Tips({
- title: err
- });
- }
- );
- },
- async savePrice(opt) {
- let that = this,
- data = {},
- price = opt.price,
- refund_price = opt.refund_price,
- refund_status = that.orderInfo.refund_status,
- remark = opt.remark;
- data.order_id = that.orderInfo.order_id;
- if (that.status == 0) {
- if (!isMoney(price)) {
- return that.$util.Tips({
- title: '请输入正确的金额'
- });
- }
- data.price = price;
- let funApi = '';
- if(this.storeNum){
- funApi = setAdminOrderPrice;
- }else{
- funApi = setStoreOrderPrice;
- }
- funApi(data).then(
- res => {
- that.change = false;
- that.$util.Tips({
- title: '改价成功',
- icon: 'success'
- })
- that.init();
- },
- err => {
- that.change = false;
- that.$util.Tips({
- title: '改价失败',
- icon: 'none'
- })
- }
- );
- } else if (that.status == 2) {
- if (this.isRefund) {
- if (!isMoney(refund_price)) {
- return that.$util.Tips({
- title: '请输入正确的金额'
- });
- }
- data.price = refund_price;
- data.type = opt.type;
- this.objOrderRefund(data);
- // setOrderRefund(data).then(
- // res => {
- // that.change = false;
- // that.$util.Tips({title: res.msg});
- // that.init();
- // },
- // err => {
- // that.change = false;
- // that.$util.Tips({title: err});
- // }
- // );
- } else {
- if (opt.type == 1) {
- let funApi = '';
- if(this.storeNum){
- funApi = orderRefundAgree;
- }else{
- funApi = storeOrderRefundAgree;
- }
- funApi(this.orderInfo.id).then(res => {
- that.change = false;
- that.$util.Tips({
- title: res.msg
- });
- that.init();
- }).catch(err => {
- that.change = false;
- that.$util.Tips({
- title: err
- });
- })
- }
- // else{
- // data.type = opt.type;
- // data.refuse_reason = opt.refuse_reason;
- // this.objOrderRefund(data);
- // }
- }
- } else if (that.status == 8) {
- data.type = opt.type;
- data.refuse_reason = opt.refuse_reason;
- this.objOrderRefund(data);
- } else {
- if (!remark) {
- return this.$util.Tips({
- title: '请输入备注'
- })
- }
- data.remark = remark;
- let obj = '';
- if (that.where.status == -3) {
- let funApi = '';
- if(this.storeNum){
- funApi = setAdminRefundRemark(data);
- }else{
- funApi = setStoreRefundRemark(data);
- }
- obj = funApi;
- } else {
- let funApi = '';
- if(this.storeNum){
- funApi = setAdminOrderRemark(data);
- }else{
- funApi = setStoreOrderRemark(data);
- }
- obj = funApi;
- }
- obj.then(
- res => {
- that.change = false;
- this.$util.Tips({
- title: res.msg,
- icon: 'success'
- })
- that.init();
- },
- err => {
- that.change = false;
- that.$util.Tips({
- title: err
- });
- }
- );
- }
- },
- toDetail(item) {
- uni.navigateTo({
- url: `/pages/admin/orderDetail/index?id=${item.order_id}&types=${this.where.status}&storeNum=`+this.storeNum
- })
- },
- offlinePay: function() {
- if (this.openErp) return
- let funApi = '';
- if(this.storeNum){
- funApi = setOfflinePay;
- }else{
- funApi = setStoreOfflinePay;
- }
- funApi({
- order_id: this.confirmOrder.order_id
- }).then(
- res => {
- this.confirmShow = false;
- this.$util.Tips({
- title: res.msg,
- icon: "success"
- });
- this.init();
- },
- error => {
- this.$util.Tips(error);
- }
- );
- },
- confirmPay(item) {
- this.confirmOrder = item;
- this.confirmShow = true;
- },
- dateChange(value) {
- const date = new Date();
- const end = date.toLocaleString();
- let start = '';
- if (value == 1) {
- date.setDate(date.getDate() - 2)
- date.setHours(0, 0, 0, 0);
- } else if (value == 2) {
- date.setDate(1)
- date.setHours(0, 0, 0, 0);
- } else if (value == 3) {
- date.setMonth(date.getMonth() - 2)
- date.setDate(1)
- date.setHours(0, 0, 0, 0);
- } else if (value == 4) {
- date.setMonth(date.getMonth() - 5)
- date.setDate(1)
- date.setHours(0, 0, 0, 0);
- }
- start = date.toLocaleString();
- this.dateSelected = value;
- this.filterShow = false;
- this.where.data = start == end ? '' : `${start}-${end}`;
- this.init();
- },
- payChange(val,num) {
- this.filterShow = false;
- if(num == 0){
- this.where.pay_type = val;
- }else if(num == 1){
- this.currentOrder = val;
- }else{
- this.where.type = val;
- }
- this.init();
- },
- },
- onReachBottom() {
- this.getIndex()
- }
- }
- </script>
- <style lang="scss" scoped>
- .pos-order-list {
- padding-bottom: calc(0rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
- padding-bottom: calc(0rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
- /deep/.navbar {
- .content {
- background: #F5F5F5 !important;
- }
- }
- }
- .searchCon {
- padding: 10rpx 20rpx;
- .search {
- flex: 1;
- height: 72rpx;
- padding: 0 32rpx;
- border-radius: 36rpx;
- background: #FFFFFF;
- .iconfont {
- margin-right: 16rpx;
- font-size: 32rpx;
- color: #999999;
- }
- .inputs {
- flex: 1;
- font-size: 28rpx;
- color: #333;
- }
- .placeholder {
- font-size: 26rpx;
- color: #ccc;
- }
- }
- .btn {
- width: 72rpx;
- height: 72rpx;
- border-radius: 50%;
- margin-left: 20rpx;
- background: #FFFFFF;
- text-align: center;
- .iconfont {
- font-size: 32rpx;
- line-height: 72rpx;
- color: #666666;
- }
- }
- }
- .pos-order-list .nav {
- font-size: 26rpx;
- line-height: 42rpx;
- color: #333333;
- top: 0;
- left: 0;
- z-index: 99;
- &.fixed {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- background: #F5F5F5;
- }
- .item {
- position: relative;
- padding: 28rpx 0;
- image {
- width: 14rpx;
- height: 14rpx;
- display: block;
- position: absolute;
- bottom: 20rpx;
- right: -4rpx;
- }
- }
- }
- .pos-order-list .nav .item.on {
- font-weight: 500;
- font-size: 30rpx;
- color: #2A7EFB;
- }
- .pos-order-list .nav .item.on::after {
- // content: "";
- // position: absolute;
- // bottom: 20rpx;
- // right: -6rpx;
- // width: 28rpx;
- // height: 28rpx;
- // border: 4rpx solid #2A7EFB;
- // border-top-color: transparent;
- // border-left-color: transparent;
- // border-radius: 14rpx;
- // box-sizing: border-box;
- }
- .pos-order-list .list {
- padding: 0 20rpx;
- }
- .pos-order-list .nothing {
- margin-top: 120upx;
- text-align: center;
- color: #cfcfcf;
- }
- .pos-order-list .list .item {
- padding: 32rpx 24rpx;
- border-radius: 24rpx;
- background-color: #fff;
- /deep/.time {
- .title {
- color: #FF7E00;
- }
- }
- }
- .pos-order-list .list .item~.item {
- margin-top: 20rpx;
- }
- .pos-order-list .list .item .order-num {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- .label{
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 20rpx;
- color: #2A7EFB;
- height: 32rpx;
- line-height: 30rpx;
- border-radius: 6rpx;
- border: 1px solid #2A7EFB;
- padding: 0 4rpx;
- margin-left: 16rpx;
- }
- }
- .pos-order-list .list .item .order-num .state {
- color: #FF7E00;
- }
- .pos-order-list .list .item .order-num .state.on {
- font-size: 24rpx;
- width: 180rpx;
- text-align: right;
- }
- .pos-order-list .list .item .order-num .time {
- font-size: 26upx;
- font-weight: normal;
- color: #999;
- }
- .pos-order-list .list .item .operation {}
- .pos-order-list .list .item .operation .more {
- position: relative;
- }
- .pos-order-list .list .item .operation .icon-gengduo {
- font-size: 50upx;
- color: #aaa;
- }
- .pos-order-list .list .item .operation .order .arrow {
- width: 0;
- height: 0;
- border-left: 11upx solid transparent;
- border-right: 11upx solid transparent;
- border-top: 20upx solid #e5e5e5;
- position: absolute;
- left: 15upx;
- bottom: -18upx;
- }
- .pos-order-list .list .item .operation .order .arrow:before {
- content: '';
- width: 0;
- height: 0;
- border-left: 7upx solid transparent;
- border-right: 7upx solid transparent;
- border-top: 20upx solid #fff;
- position: absolute;
- left: -7upx;
- bottom: 0;
- }
- .pos-order-list .list .item .operation .order {
- width: 200upx;
- background-color: #fff;
- border: 1px solid #eee;
- border-radius: 10upx;
- position: absolute;
- top: -100upx;
- z-index: 9;
- }
- .pos-order-list .list .item .operation .order .items {
- height: 77upx;
- line-height: 77upx;
- text-align: center;
- }
- .pos-order-list .list .item .operation .order .items~.items {
- border-top: 1px solid #f5f5f5;
- }
- .pos-order-list .list .item .operation .bnt {
- width: 144rpx;
- height: 56rpx;
- border-radius: 28rpx;
- border: 1rpx solid #CCCCCC;
- text-align: center;
- font-size: 24rpx;
- line-height: 54rpx;
- color: #333333;
- &.primary {
- color: #FFFFFF !important;
- background-color: #2A7EFB !important;
- border-color: #2A7EFB !important;
- }
- }
- .pos-order-list .list .item .operation .bnt~.bnt {
- margin-left: 16rpx;
- }
- .pos-order-list .list .item .operation .wait {
- margin-left: 30rpx;
- }
- .pos-order-goods .goods {
- padding: 26rpx 0;
- }
- .pos-order-goods .goods~.goods {
- border-top: 1px dashed #e5e5e5;
- }
- .pos-order-goods .goods .picTxt {
- flex: 1;
- min-width: 0;
- }
- .pos-order-goods .goods .scroll-view {
- box-sizing: border-box;
- white-space: nowrap;
- .pictrue {
- display: inline-block;
- +.pictrue {
- margin-left: 16rpx;
- }
- }
- }
- .pos-order-goods .goods .picTxt .pictrue {
- width: 136rpx;
- height: 136rpx;
- }
- .pos-order-goods .goods .picTxt .pictrue image {
- width: 100%;
- height: 100%;
- border-radius: 16rpx;
- }
- .pos-order-goods .goods .picTxt .text {
- flex: 1;
- min-width: 0;
- padding-left: 20rpx;
- }
- .pos-order-goods .goods .picTxt .text .info {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- }
- .pos-order-goods .goods .picTxt .text .info .label {
- color: #ff4c3c;
- }
- .pos-order-goods .goods .picTxt .text .attr {
- margin-top: 12rpx;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- font-size: 24rpx;
- line-height: 34rpx;
- color: #999999;
- }
- .pos-order-goods .goods .money {
- padding-left: 16rpx;
- text-align: right;
- font-size: 28upx;
- }
- .pos-order-goods .goods .money .info {
- margin-top: 18rpx;
- font-size: 24rpx;
- }
- .pos-order-goods .goods .money .x-money {
- color: #282828;
- }
- .pos-order-goods .goods .money .num {
- margin-top: 10rpx;
- font-size: 24rpx;
- line-height: 34rpx;
- color: #999999;
- }
- .pos-order-goods .goods .money .y-money {
- color: #999;
- text-decoration: line-through;
- }
- .public-total {
- font-size: 28upx;
- color: #282828;
- border-top: 1px solid #eee;
- height: 92upx;
- line-height: 92upx;
- text-align: right;
- padding: 0 30upx;
- background-color: #fff;
- }
- .public-total .money {
- color: #ff4c3c;
- }
- .filter-popup {
- position: fixed;
- top: 0;
- left: 0;
- z-index: 100;
- width: 100%;
- border-radius: 0 0 32rpx 32rpx;
- background: #FFFFFF;
- transform: translateY(-100%);
- transition: transform 0.3s;
- &.on {
- transform: translateY(0);
- }
- .search-box {
- padding: 10rpx 32rpx;
- }
- .search {
- height: 58rpx;
- padding: 0 32rpx;
- border-radius: 29rpx;
- background: #F5F5F5;
- }
- .iconfont {
- font-size: 28rpx;
- color: #999999;
- }
- .input {
- flex: 1;
- height: 58rpx;
- padding-left: 16rpx;
- font-size: 24rpx;
- }
- .content {
- padding: 32rpx 30rpx 58rpx;
- }
- .item {
- margin-top: 36rpx;
- &:first-child {
- margin-top: 0;
- }
- }
- .title {
- font-size: 28rpx;
- line-height: 40rpx;
- color: #333333;
- }
- .list {
- padding: 0;
- margin-right: -24rpx;
- }
- .cell {
- width: 154rpx;
- height: 56rpx;
- border: 1rpx solid #F5F5F5;
- border-radius: 28rpx;
- margin: 24rpx 24rpx 0 0;
- background: #F5F5F5;
- text-align: center;
- font-size: 24rpx;
- line-height: 54rpx;
- color: #333333;
- &.on {
- border-color: #2A7EFB;
- background: #E9F2FE;
- color: #2A7EFB;
- }
- }
- }
- .footerH {
- height: 110rpx;
- height: calc(110rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
- height: calc(110rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
- }
- .mask {
- z-index: 21;
- }
- .confirm-popup {
- position: fixed;
- top: 50%;
- right: 75rpx;
- left: 75rpx;
- z-index: 21;
- transform: translateY(-50%);
- border-radius: 32rpx;
- background: #FFFFFF;
- text-align: center;
- .title {
- padding: 40rpx 32rpx 0;
- font-weight: 500;
- font-size: 32rpx;
- line-height: 52rpx;
- color: #333333;
- }
- .info {
- padding: 24rpx 40rpx 0;
- font-size: 30rpx;
- line-height: 42rpx;
- color: #666666;
- }
- .btn-box {
- padding: 40rpx;
- }
- .btn {
- flex: 1;
- height: 72rpx;
- border: 1rpx solid #2A7EFB;
- border-radius: 36rpx;
- margin-left: 32rpx;
- font-weight: 500;
- font-size: 26rpx;
- line-height: 70rpx;
- color: #2A7EFB;
- transform: rotateZ(360deg);
- &.primary {
- background: #2A7EFB;
- color: #FFFFFF;
- }
- }
- }
- </style>
|