index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065
  1. <template>
  2. <view class="pos-order-list pb-safe" ref="container">
  3. <!-- 固定在顶部的搜索栏和导航栏 -->
  4. <view class="fixed-header">
  5. <view class="searchCon acea-row">
  6. <view class="search acea-row row-middle">
  7. <text class="iconfont icon-ic_search"></text>
  8. <input class="inputs" placeholder='请输入用户手机号/用户昵称/订单号/商品名称' placeholder-class='placeholder' confirm-type='search' name="search" v-model="where.keyword" @confirm="searchSubmit"></input>
  9. </view>
  10. <view class="btn" @click="filterShow = true">
  11. <text class="iconfont icon-a-icon_filter1x"></text>
  12. </view>
  13. </view>
  14. <view class="nav acea-row row-around row-middle" id="nav">
  15. <view class="item" :class="state == -1 ? 'on' : ''" @click="changeStatus(-1)">
  16. 全部
  17. <image src="../static/adorn.png" v-if="state == -1"></image>
  18. </view>
  19. <view class="item" :class="state == 0 ? 'on' : ''" @click="changeStatus(0)">
  20. 待付款
  21. <image src="../static/adorn.png" v-if="state == 0"></image>
  22. </view>
  23. <view class="item" :class="state == 1 ? 'on' : ''" @click="changeStatus(1)">
  24. 待发货/核销
  25. <image src="../static/adorn.png" v-if="state == 1"></image>
  26. </view>
  27. <view class="item" :class="state == 2 ? 'on' : ''" @click="changeStatus(2)">
  28. 待收货
  29. <image src="../static/adorn.png" v-if="state == 2"></image>
  30. </view>
  31. <view class="item" :class="state == 3 ? 'on' : ''" @click="changeStatus(3)">
  32. 待评价
  33. <image src="../static/adorn.png" v-if="state == 3"></image>
  34. </view>
  35. </view>
  36. </view>
  37. <!-- 可滚动的列表区域 -->
  38. <scroll-view class="list-scroll" scroll-y @scrolltolower="getIndex">
  39. <view class="list" v-if="list.length">
  40. <view class="item" v-for="(item, index) in list" :key="index">
  41. <view class="order-num acea-row row-between-wrapper" @click="toDetail(item)">
  42. <view>
  43. <!-- <countDown v-if="item.status == 0 && item.paid == 0 && item.pay_type != 'offline'" tipText="剩余:" dayText=" " hourText="小时" minuteText="分钟" secondText=" " dotColor="#FF7E00"
  44. colors="#FF7E00" :datatime="item.stop_time" :isSecond="false">
  45. </countDown> -->
  46. <view>订单号:{{ item.order_id }}</view>
  47. </view>
  48. <view class="state" :class="(item.refund_status==0 && where.status != 0 && item.refund.length)?'on':''">
  49. {{item.refund_status==1?'退款中':item.refund_status==2?'已退款':item.refund_status==3?'拒绝退款':item.status_name.status_name}}
  50. <text v-if="item.refund_status==0 && where.status != 0 && item.refund.length">{{item.is_all_refund?',退款中':',部分退款中'}}</text>
  51. </view>
  52. </view>
  53. <view class="pos-order-goods">
  54. <view class="goods acea-row" @click="toDetail(item)">
  55. <scroll-view class="picTxt scroll-view" scroll-x="true" v-if="item.cart_id.length > 1">
  56. <view class="pictrue" v-for="(val, key) in item._info" :key="key">
  57. <image :src="val.cart_info.productInfo.attrInfo?val.cart_info.productInfo.attrInfo.image:val.cart_info.productInfo.image" />
  58. </view>
  59. </scroll-view>
  60. <view class="picTxt" v-else>
  61. <view class="acea-row" v-for="(val, key) in item._info" :key="key">
  62. <view class="pictrue">
  63. <image :src="val.cart_info.productInfo.attrInfo?val.cart_info.productInfo.attrInfo.image:val.cart_info.productInfo.image" />
  64. </view>
  65. <view class="text">
  66. <view class="info line2">
  67. <!-- <text v-if="val.cart_info.is_gift == 1" class="label">[赠品]</text> -->
  68. {{ val.cart_info.productInfo.store_name }}
  69. </view>
  70. <view class="attr" v-if="val.cart_info.productInfo.attrInfo">
  71. {{ val.cart_info.productInfo.attrInfo.suk }}
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="money">
  77. <!-- <view class="x-money">¥{{ item.pay_price }}</view> -->
  78. <BaseMoney :money="item.pay_price" symbolSize="20" integerSize="32" decimalSize="20"></BaseMoney>
  79. <view class="num">共{{ item.total_num }}件</view>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="operation acea-row row-between-wrapper">
  84. <view class="more">
  85. </view>
  86. <view class="acea-row row-middle">
  87. <view class="bnt" @click="modify(item, 1)">订单备注</view>
  88. <view class="bnt" :class="openErp?'on':''" @click="modify(item, 0)" v-if="item._status == 1 && item.is_cancel == 0">
  89. 一键改价
  90. </view>
  91. <view class="bnt primary" :class="openErp?'on':''" v-if="item.status == 0 && item.paid == 0 && item.is_cancel == 0" @click="confirmPay(item)">
  92. 确认付款
  93. </view>
  94. <view class="bnt primary" :class="openErp?'on':''"
  95. v-if="item._status == 2 && item.shipping_type == 1 && (item.pink_id == 0 || (item.pink_id > 0 && item.pinkStatus == 2))"
  96. @click="goDelivery(item)">发送货
  97. </view>
  98. <navigator class="bnt primary" :url="'/pages/admin/logistics/index?orderId='+item.order_id"
  99. v-if="item._status == 4 && item.delivery_type == 'express'">查看物流
  100. </navigator>
  101. <view class="bnt primary" v-if="item.shipping_type == 2 &&
  102. (item.status == 0 || item.status == 5) &&
  103. item.paid == 1 &&
  104. item.refund_status === 0" @click="verify(item)">订单核销</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <view v-else class="px-20 mt-20 empty-wrapper">
  110. <emptyPage title="暂无订单~" src="/statics/images/noOrder.gif"></emptyPage>
  111. </view>
  112. </scroll-view>
  113. <Loading :loaded="loaded" :loading="loading"></Loading>
  114. <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund" v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
  115. :status="status"></PriceChange>
  116. <view class="mask" v-if="filterShow" @click="filterShow = false"></view>
  117. <view class="filter-popup" :class="{ on: filterShow }">
  118. <view class="search-box">
  119. <view class="search acea-row row-middle">
  120. <text class="iconfont icon-ic_search"></text>
  121. <input class="input" placeholder='请输入要查询的订单' placeholder-class='placeholder' confirm-type='search' name="search" v-model="where.keyword" @confirm="searchSubmit"></input>
  122. </view>
  123. </view>
  124. <view class="content">
  125. <view class="item">
  126. <view class="title">按下单时间</view>
  127. <view class="acea-row list">
  128. <view class="cell" v-for="(item, index) in dateList" :key="index" :class="{ on: item.val == dateSelected }" @click="dateChange(item.val)">{{ item.label }}</view>
  129. </view>
  130. </view>
  131. <view class="item">
  132. <view class="title">按支付方式</view>
  133. <view class="acea-row list">
  134. <view class="cell" v-for="(item, index) in payList" :key="index" :class="{ on: item.val == where.pay_type }" @click="payChange(item.val)">{{ item.label }}</view>
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. <view v-if="confirmShow" class="mask"></view>
  140. <view v-if="confirmShow" class="confirm-popup">
  141. <view class="title">确认付款</view>
  142. <view class="info">确认该订单用户已付款</view>
  143. <view class="acea-row btn-box">
  144. <view class="btn" @click="confirmShow = false">取消</view>
  145. <view class="btn primary" @click="offlinePay">确认</view>
  146. </view>
  147. </view>
  148. <view class="footerH"></view>
  149. <footerPage></footerPage>
  150. </view>
  151. </template>
  152. <script>
  153. import {
  154. getAdminOrderList,
  155. setAdminOrderPrice,
  156. setAdminOrderRemark,
  157. setAdminRefundRemark,
  158. setOfflinePay,
  159. setOrderRefund,
  160. orderRefundAgree,
  161. adminRefundList,
  162. orderVerific
  163. } from "@/api/admin";
  164. // import {
  165. // erpConfig
  166. // } from "@/api/esp.js";
  167. import Loading from '@/components/Loading/index'
  168. import PriceChange from '../components/PriceChange/index.vue'
  169. import footerPage from '../components/footerPage/index.vue'
  170. import countDown from '@/components/countDown/index.vue'
  171. import emptyPage from '@/components/emptyPage.vue'
  172. // #ifdef MP || APP-PLUS
  173. import NavBar from '@/components/NavBar.vue';
  174. // #endif
  175. import {
  176. isMoney
  177. } from '@/utils/validate.js';
  178. import {
  179. HTTP_REQUEST_URL
  180. } from '@/config/app';
  181. export default {
  182. name: "AdminOrderList",
  183. components: {
  184. Loading,
  185. PriceChange,
  186. footerPage,
  187. countDown,
  188. emptyPage,
  189. // #ifdef MP || APP-PLUS
  190. NavBar,
  191. // #endif
  192. },
  193. data() {
  194. return {
  195. getHeight: this.$util.getWXStatusHeight(),
  196. iconColor: '#333333',
  197. isScrolling: false,
  198. top: 0,
  199. navHeight: 0,
  200. isFixed: false,
  201. filterShow: false,
  202. openErp: false,
  203. current: "",
  204. change: false,
  205. types: 0,
  206. where: {
  207. page: 1,
  208. limit: 10,
  209. status: '',
  210. keyword: '',
  211. data: '', // 时间筛选
  212. type: '', // 订单类型
  213. pay_type: '', // 支付方式
  214. },
  215. list: [],
  216. loaded: false,
  217. loading: false,
  218. orderInfo: {},
  219. status: "",
  220. state: -1,
  221. isRefund: 0, //1是仅退款;0是退货退款
  222. imgHost: HTTP_REQUEST_URL,
  223. dateSelected: '',
  224. dateList: [{
  225. label: '全部',
  226. val: '',
  227. },
  228. {
  229. label: '三天内',
  230. val: '1',
  231. },
  232. {
  233. label: '一个月内',
  234. val: '2',
  235. },
  236. {
  237. label: '三个月内',
  238. val: '3',
  239. },
  240. {
  241. label: '半年内',
  242. val: '4',
  243. },
  244. ],
  245. payList: [{
  246. label: '全部',
  247. val: '',
  248. },
  249. {
  250. label: '微信支付',
  251. val: '1'
  252. },
  253. {
  254. label: '支付宝支付',
  255. val: '4'
  256. },
  257. {
  258. label: '余额支付',
  259. val: '2'
  260. },
  261. {
  262. label: '线下支付',
  263. val: '3'
  264. },
  265. ],
  266. confirmOrder: {},
  267. confirmShow: false,
  268. };
  269. },
  270. onLoad(option) {
  271. let type = option.types;
  272. this.where.status = type || '';
  273. this.state = type || -1;
  274. // this.getErpConfig();
  275. },
  276. onShow() {
  277. this.init();
  278. },
  279. onPageScroll(option) {
  280. if (this.top - (this.getHeight.barTop + this.getHeight.barHeight) >= option.scrollTop) {
  281. this.isFixed = false;
  282. } else {
  283. this.isFixed = true;
  284. }
  285. // #ifdef MP
  286. if (option.scrollTop > 50) {
  287. this.isScrolling = true;
  288. } else if (option.scrollTop < 50) {
  289. this.isScrolling = false;
  290. }
  291. // #endif
  292. },
  293. mounted() {
  294. const query = uni.createSelectorQuery().in(this);
  295. query.select("#nav").boundingClientRect((data) => {
  296. this.top = data.top;
  297. this.navHeight = data.height;
  298. }).exec();
  299. },
  300. methods: {
  301. verify(item) {
  302. uni.showModal({
  303. title: '操作提示',
  304. content: '是否确认核销该订单?',
  305. success: (res) => {
  306. if (res.confirm) {
  307. orderVerific(item.verify_code, 1, 1)
  308. .then((res) => {
  309. item.status = 2;
  310. this.$util.Tips({
  311. title: res.msg
  312. });
  313. })
  314. .catch((res) => {
  315. // this.verify_code = '';
  316. return this.$util.Tips({
  317. title: res
  318. });
  319. });
  320. }
  321. }
  322. });
  323. },
  324. searchSubmit() {
  325. },
  326. statusChange(e) {
  327. this.status = e;
  328. },
  329. goDelivery(item) {
  330. if (this.openErp) return
  331. uni.navigateTo({
  332. url: '/pages/admin/delivery/index?id=' + item.order_id + '&listId=' + item.id + '&totalNum=' + item.total_num + '&orderStatus=' + item._status + '&comeType=1&productType=' +
  333. item.product_type
  334. })
  335. },
  336. getErpConfig() {
  337. erpConfig().then(res => {
  338. this.openErp = res.data.open_erp;
  339. }).catch(err => {
  340. this.$util.Tips({
  341. title: err
  342. })
  343. })
  344. },
  345. // 获取数据
  346. getIndex: function() {
  347. let that = this;
  348. if (that.loading || that.loaded) return;
  349. that.loading = true;
  350. let obj = '';
  351. if (this.where.status == -3) {
  352. obj = adminRefundList(that.where);
  353. } else {
  354. obj = getAdminOrderList(that.where);
  355. }
  356. obj.then(
  357. res => {
  358. that.loading = false;
  359. that.loaded = res.data.length < that.where.limit;
  360. that.list.push.apply(that.list, res.data);
  361. that.where.page = that.where.page + 1;
  362. },
  363. err => {
  364. that.$util.Tips({
  365. title: err
  366. })
  367. }
  368. );
  369. },
  370. // 初始化
  371. init: function() {
  372. this.list = [];
  373. this.where.page = 1;
  374. this.loaded = false;
  375. this.loading = false;
  376. this.getIndex();
  377. this.current = "";
  378. },
  379. searchSubmit() {
  380. this.init();
  381. },
  382. // 导航切换
  383. changeStatus(val) {
  384. if (this.state != val) {
  385. this.state = val;
  386. this.where.status = val == -1 ? '' : val;
  387. this.init();
  388. }
  389. },
  390. // 商品操作
  391. modify: function(item, status, type) {
  392. if (this.openErp && status != 1) return
  393. this.change = true;
  394. this.status = status.toString();
  395. this.orderInfo = item;
  396. if (status == 2) {
  397. this.isRefund = type
  398. }
  399. },
  400. changeclose: function(msg) {
  401. this.change = msg;
  402. },
  403. objOrderRefund(data) {
  404. let that = this;
  405. setOrderRefund(data).then(
  406. res => {
  407. that.change = false;
  408. that.$util.Tips({
  409. title: res.msg
  410. });
  411. that.init();
  412. },
  413. err => {
  414. that.change = false;
  415. that.$util.Tips({
  416. title: err
  417. });
  418. }
  419. );
  420. },
  421. async savePrice(opt) {
  422. let that = this,
  423. data = {},
  424. price = opt.price,
  425. refund_price = opt.refund_price,
  426. refund_status = that.orderInfo.refund_status,
  427. remark = opt.remark;
  428. data.order_id = that.orderInfo.order_id;
  429. if (that.status == 0) {
  430. if (!isMoney(price)) {
  431. return that.$util.Tips({
  432. title: '请输入正确的金额'
  433. });
  434. }
  435. data.price = price;
  436. setAdminOrderPrice(data).then(
  437. res => {
  438. that.change = false;
  439. that.$util.Tips({
  440. title: '改价成功',
  441. icon: 'success'
  442. })
  443. that.init();
  444. },
  445. err => {
  446. that.change = false;
  447. that.$util.Tips({
  448. title: '改价失败',
  449. icon: 'none'
  450. })
  451. }
  452. );
  453. } else if (that.status == 2) {
  454. if (this.isRefund) {
  455. if (!isMoney(refund_price)) {
  456. return that.$util.Tips({
  457. title: '请输入正确的金额'
  458. });
  459. }
  460. data.price = refund_price;
  461. data.type = opt.type;
  462. this.objOrderRefund(data);
  463. // setOrderRefund(data).then(
  464. // res => {
  465. // that.change = false;
  466. // that.$util.Tips({title: res.msg});
  467. // that.init();
  468. // },
  469. // err => {
  470. // that.change = false;
  471. // that.$util.Tips({title: err});
  472. // }
  473. // );
  474. } else {
  475. if (opt.type == 1) {
  476. orderRefundAgree(this.orderInfo.id).then(res => {
  477. that.change = false;
  478. that.$util.Tips({
  479. title: res.msg
  480. });
  481. that.init();
  482. }).catch(err => {
  483. that.change = false;
  484. that.$util.Tips({
  485. title: err
  486. });
  487. })
  488. }
  489. // else{
  490. // data.type = opt.type;
  491. // data.refuse_reason = opt.refuse_reason;
  492. // this.objOrderRefund(data);
  493. // }
  494. }
  495. } else if (that.status == 8) {
  496. data.type = opt.type;
  497. data.refuse_reason = opt.refuse_reason;
  498. this.objOrderRefund(data);
  499. } else {
  500. if (!remark) {
  501. return this.$util.Tips({
  502. title: '请输入备注'
  503. })
  504. }
  505. data.remark = remark;
  506. let obj = '';
  507. if (that.where.status == -3) {
  508. obj = setAdminRefundRemark(data);
  509. } else {
  510. obj = setAdminOrderRemark(data);
  511. }
  512. obj.then(
  513. res => {
  514. that.change = false;
  515. this.$util.Tips({
  516. title: res.msg,
  517. icon: 'success'
  518. })
  519. that.init();
  520. },
  521. err => {
  522. that.change = false;
  523. that.$util.Tips({
  524. title: err
  525. });
  526. }
  527. );
  528. }
  529. },
  530. toDetail(item) {
  531. uni.navigateTo({
  532. url: `/pages/admin/orderDetail/index?id=${item.order_id}&types=${this.where.status}`
  533. })
  534. },
  535. offlinePay: function() {
  536. if (this.openErp) return
  537. setOfflinePay({
  538. order_id: this.confirmOrder.order_id
  539. }).then(
  540. res => {
  541. this.confirmShow = false;
  542. this.$util.Tips({
  543. title: res.msg,
  544. icon: "success"
  545. });
  546. this.init();
  547. },
  548. error => {
  549. this.$util.Tips(error);
  550. }
  551. );
  552. },
  553. confirmPay(item) {
  554. this.confirmOrder = item;
  555. this.confirmShow = true;
  556. },
  557. dateChange(value) {
  558. const date = new Date();
  559. const end = date.toLocaleString();
  560. let start = '';
  561. if (value == 1) {
  562. date.setDate(date.getDate() - 2)
  563. date.setHours(0, 0, 0, 0);
  564. } else if (value == 2) {
  565. date.setDate(1)
  566. date.setHours(0, 0, 0, 0);
  567. } else if (value == 3) {
  568. date.setMonth(date.getMonth() - 2)
  569. date.setDate(1)
  570. date.setHours(0, 0, 0, 0);
  571. } else if (value == 4) {
  572. date.setMonth(date.getMonth() - 5)
  573. date.setDate(1)
  574. date.setHours(0, 0, 0, 0);
  575. }
  576. start = date.toLocaleString();
  577. this.dateSelected = value;
  578. this.filterShow = false;
  579. this.where.data = start == end ? '' : `${start}-${end}`;
  580. this.init();
  581. },
  582. payChange(val) {
  583. this.filterShow = false;
  584. this.where.pay_type = val;
  585. this.init();
  586. },
  587. },
  588. onReachBottom() {
  589. this.getIndex()
  590. }
  591. }
  592. </script>
  593. <style lang="scss" scoped>
  594. .pos-order-list {
  595. ::v-deep.navbar {
  596. .content {
  597. background: #F5F5F5 !important;
  598. }
  599. }
  600. }
  601. .fixed-header {
  602. position: fixed;
  603. top: 0;
  604. left: 0;
  605. width: 100%;
  606. z-index: 99;
  607. background: #F5F5F5;
  608. }
  609. .list-scroll {
  610. height: calc(100vh - 180rpx);
  611. margin-top: 180rpx;
  612. }
  613. .empty-wrapper {
  614. padding-top: 200rpx;
  615. }
  616. .searchCon {
  617. padding: 10rpx 20rpx;
  618. .search {
  619. flex: 1;
  620. height: 72rpx;
  621. padding: 0 32rpx;
  622. border-radius: 36rpx;
  623. background: #FFFFFF;
  624. .iconfont {
  625. margin-right: 16rpx;
  626. font-size: 32rpx;
  627. color: #999999;
  628. }
  629. .inputs {
  630. flex: 1;
  631. font-size: 28rpx;
  632. color: #333;
  633. }
  634. .placeholder {
  635. font-size: 26rpx;
  636. color: #ccc;
  637. }
  638. }
  639. .btn {
  640. width: 72rpx;
  641. height: 72rpx;
  642. border-radius: 50%;
  643. margin-left: 20rpx;
  644. background: #FFFFFF;
  645. text-align: center;
  646. .iconfont {
  647. font-size: 32rpx;
  648. line-height: 72rpx;
  649. color: #666666;
  650. }
  651. }
  652. }
  653. .pos-order-list .nav {
  654. font-size: 26rpx;
  655. line-height: 42rpx;
  656. color: #333333;
  657. .item {
  658. position: relative;
  659. padding: 28rpx 0;
  660. image {
  661. width: 14rpx;
  662. height: 14rpx;
  663. display: block;
  664. position: absolute;
  665. bottom: 20rpx;
  666. right: -4rpx;
  667. }
  668. }
  669. }
  670. .pos-order-list .nav .item.on {
  671. font-weight: 500;
  672. font-size: 30rpx;
  673. color: $primary-admin;
  674. }
  675. .pos-order-list .list {
  676. padding: 0 20rpx;
  677. }
  678. .pos-order-list .nothing {
  679. margin-top: 120upx;
  680. text-align: center;
  681. color: #cfcfcf;
  682. }
  683. .pos-order-list .list .item {
  684. padding: 32rpx 24rpx;
  685. border-radius: 24rpx;
  686. background-color: #fff;
  687. ::v-deep.time {
  688. .title {
  689. color: #FF7E00;
  690. }
  691. }
  692. }
  693. .pos-order-list .list .item~.item {
  694. margin-top: 20rpx;
  695. }
  696. .pos-order-list .list .item .order-num {
  697. font-size: 28rpx;
  698. line-height: 40rpx;
  699. color: #333333;
  700. }
  701. .pos-order-list .list .item .order-num .state {
  702. color: #FF7E00;
  703. }
  704. .pos-order-list .list .item .order-num .state.on {
  705. font-size: 24rpx;
  706. width: 180rpx;
  707. text-align: right;
  708. }
  709. .pos-order-list .list .item .order-num .time {
  710. font-size: 26upx;
  711. font-weight: normal;
  712. color: #999;
  713. }
  714. .pos-order-list .list .item .operation {}
  715. .pos-order-list .list .item .operation .more {
  716. position: relative;
  717. }
  718. .pos-order-list .list .item .operation .icon-gengduo {
  719. font-size: 50upx;
  720. color: #aaa;
  721. }
  722. .pos-order-list .list .item .operation .order .arrow {
  723. width: 0;
  724. height: 0;
  725. border-left: 11upx solid transparent;
  726. border-right: 11upx solid transparent;
  727. border-top: 20upx solid #e5e5e5;
  728. position: absolute;
  729. left: 15upx;
  730. bottom: -18upx;
  731. }
  732. .pos-order-list .list .item .operation .order .arrow:before {
  733. content: '';
  734. width: 0;
  735. height: 0;
  736. border-left: 7upx solid transparent;
  737. border-right: 7upx solid transparent;
  738. border-top: 20upx solid #fff;
  739. position: absolute;
  740. left: -7upx;
  741. bottom: 0;
  742. }
  743. .pos-order-list .list .item .operation .order {
  744. width: 200upx;
  745. background-color: #fff;
  746. border: 1px solid #eee;
  747. border-radius: 10upx;
  748. position: absolute;
  749. top: -100upx;
  750. z-index: 9;
  751. }
  752. .pos-order-list .list .item .operation .order .items {
  753. height: 77upx;
  754. line-height: 77upx;
  755. text-align: center;
  756. }
  757. .pos-order-list .list .item .operation .order .items~.items {
  758. border-top: 1px solid #f5f5f5;
  759. }
  760. .pos-order-list .list .item .operation .bnt {
  761. width: 144rpx;
  762. height: 56rpx;
  763. border-radius: 28rpx;
  764. border: 1rpx solid #CCCCCC;
  765. text-align: center;
  766. font-size: 24rpx;
  767. line-height: 54rpx;
  768. color: #333333;
  769. &.primary {
  770. color: #FFFFFF !important;
  771. background-color: $primary-admin !important;
  772. border-color: $primary-admin !important;
  773. }
  774. }
  775. .pos-order-list .list .item .operation .bnt~.bnt {
  776. margin-left: 16rpx;
  777. }
  778. .pos-order-list .list .item .operation .wait {
  779. margin-left: 30rpx;
  780. }
  781. .pos-order-goods .goods {
  782. padding: 26rpx 0;
  783. }
  784. .pos-order-goods .goods~.goods {
  785. border-top: 1px dashed #e5e5e5;
  786. }
  787. .pos-order-goods .goods .picTxt {
  788. flex: 1;
  789. min-width: 0;
  790. }
  791. .pos-order-goods .goods .scroll-view {
  792. box-sizing: border-box;
  793. white-space: nowrap;
  794. .pictrue {
  795. display: inline-block;
  796. +.pictrue {
  797. margin-left: 16rpx;
  798. }
  799. }
  800. }
  801. .pos-order-goods .goods .picTxt .pictrue {
  802. width: 136rpx;
  803. height: 136rpx;
  804. }
  805. .pos-order-goods .goods .picTxt .pictrue image {
  806. width: 100%;
  807. height: 100%;
  808. border-radius: 16rpx;
  809. }
  810. .pos-order-goods .goods .picTxt .text {
  811. flex: 1;
  812. min-width: 0;
  813. padding-left: 20rpx;
  814. }
  815. .pos-order-goods .goods .picTxt .text .info {
  816. font-size: 28rpx;
  817. line-height: 40rpx;
  818. color: #333333;
  819. }
  820. .pos-order-goods .goods .picTxt .text .info .label {
  821. color: #ff4c3c;
  822. }
  823. .pos-order-goods .goods .picTxt .text .attr {
  824. margin-top: 12rpx;
  825. overflow: hidden;
  826. white-space: nowrap;
  827. text-overflow: ellipsis;
  828. font-size: 24rpx;
  829. line-height: 34rpx;
  830. color: #999999;
  831. }
  832. .pos-order-goods .goods .money {
  833. padding-left: 16rpx;
  834. text-align: right;
  835. font-size: 28upx;
  836. }
  837. .pos-order-goods .goods .money .info {
  838. margin-top: 18rpx;
  839. font-size: 24rpx;
  840. }
  841. .pos-order-goods .goods .money .x-money {
  842. color: #282828;
  843. }
  844. .pos-order-goods .goods .money .num {
  845. margin-top: 10rpx;
  846. font-size: 24rpx;
  847. line-height: 34rpx;
  848. color: #999999;
  849. }
  850. .pos-order-goods .goods .money .y-money {
  851. color: #999;
  852. text-decoration: line-through;
  853. }
  854. .public-total {
  855. font-size: 28upx;
  856. color: #282828;
  857. border-top: 1px solid #eee;
  858. height: 92upx;
  859. line-height: 92upx;
  860. text-align: right;
  861. padding: 0 30upx;
  862. background-color: #fff;
  863. }
  864. .public-total .money {
  865. color: #ff4c3c;
  866. }
  867. .filter-popup {
  868. position: fixed;
  869. top: 0;
  870. left: 0;
  871. z-index: 100;
  872. width: 100%;
  873. border-radius: 0 0 32rpx 32rpx;
  874. background: #FFFFFF;
  875. transform: translateY(-120%);
  876. transition: transform 0.3s;
  877. &.on {
  878. padding-top: 20rpx;
  879. transform: translateY(0);
  880. }
  881. .search-box {
  882. padding: 10rpx 32rpx;
  883. }
  884. .search {
  885. height: 58rpx;
  886. padding: 0 32rpx;
  887. border-radius: 29rpx;
  888. background: #F5F5F5;
  889. }
  890. .iconfont {
  891. font-size: 28rpx;
  892. color: #999999;
  893. }
  894. .input {
  895. flex: 1;
  896. height: 58rpx;
  897. padding-left: 16rpx;
  898. font-size: 24rpx;
  899. }
  900. .content {
  901. padding: 32rpx 30rpx 58rpx;
  902. }
  903. .item {
  904. margin-top: 36rpx;
  905. &:first-child {
  906. margin-top: 0;
  907. }
  908. }
  909. .title {
  910. font-size: 28rpx;
  911. line-height: 40rpx;
  912. color: #333333;
  913. }
  914. .list {
  915. padding: 0;
  916. margin-right: -24rpx;
  917. }
  918. .cell {
  919. width: 154rpx;
  920. height: 56rpx;
  921. border: 1rpx solid #F5F5F5;
  922. border-radius: 28rpx;
  923. margin: 24rpx 24rpx 0 0;
  924. background: #F5F5F5;
  925. text-align: center;
  926. font-size: 24rpx;
  927. line-height: 54rpx;
  928. color: #333333;
  929. &.on {
  930. border-color: $primary-admin;
  931. background: $light-primary-admin;
  932. color: $primary-admin;
  933. }
  934. }
  935. }
  936. .footerH {
  937. height: 110rpx;
  938. height: calc(110rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  939. height: calc(110rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  940. }
  941. .mask {
  942. z-index: 21;
  943. }
  944. .confirm-popup {
  945. position: fixed;
  946. top: 50%;
  947. right: 75rpx;
  948. left: 75rpx;
  949. z-index: 21;
  950. transform: translateY(-50%);
  951. border-radius: 32rpx;
  952. background: #FFFFFF;
  953. text-align: center;
  954. .title {
  955. padding: 40rpx 32rpx 0;
  956. font-weight: 500;
  957. font-size: 32rpx;
  958. line-height: 52rpx;
  959. color: #333333;
  960. }
  961. .info {
  962. padding: 24rpx 40rpx 0;
  963. font-size: 30rpx;
  964. line-height: 42rpx;
  965. color: #666666;
  966. }
  967. .btn-box {
  968. padding: 40rpx;
  969. }
  970. .btn {
  971. flex: 1;
  972. height: 72rpx;
  973. border: 1rpx solid $primary-admin;
  974. border-radius: 36rpx;
  975. margin-left: 32rpx;
  976. font-weight: 500;
  977. font-size: 26rpx;
  978. line-height: 70rpx;
  979. color: $primary-admin;
  980. transform: rotateZ(360deg);
  981. &.primary {
  982. background: $primary-admin;
  983. color: #FFFFFF;
  984. }
  985. }
  986. }
  987. </style>