index.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531
  1. <template>
  2. <view>
  3. <!-- #ifdef MP || APP-PLUS -->
  4. <NavBar titleText="订单详情" :iconColor="iconColor" :textColor="iconColor" :isScrolling="isScrolling" showBack></NavBar>
  5. <!-- #endif -->
  6. <view class="headerBg">
  7. <view :style="{ height: `${getHeight.barTop}px` }"></view>
  8. <view :style="{ height: `${getHeight.barHeight}px` }"></view>
  9. <view class="inner"></view>
  10. </view>
  11. <view class="order-details pos-order-details">
  12. <view class="header">
  13. <view class="state">{{ title }}</view>
  14. <view v-if="orderInfo.status == 0 && orderInfo.paid == 0 && orderInfo.pay_type != 'offline'" class="data acea-row row-middle">
  15. 需付款:¥{{ orderInfo.pay_price }}
  16. <countDown :isDay="false" tipText="支付剩余:" dayText=" " hourText="时" minuteText="分" secondText=" " dotColor="#FFFFFF" colors="#FFFFFF" :datatime="orderInfo.stop_time"
  17. :isSecond="false">
  18. </countDown>
  19. </view>
  20. <view v-if="orderInfo._status._type == 1" class="data">用户已付款,需要您尽快发货哦~</view>
  21. <view v-if="orderInfo._status._type == 2" class="data">商家已发货,等待用户收货</view>
  22. <view v-if="orderInfo._status._type == 5" class="data">需用户出示二维码或数字即可核销</view>
  23. </view>
  24. <view class="remarks acea-row row-middle" v-if="goname != 'looks'">
  25. <text class="iconfont icon-ic_notes"></text>
  26. <input class="line1" style="text-align: left;" :value="
  27. orderInfo.remark ? orderInfo.remark : '订单未备注,点击添加备注信息'
  28. " disabled @click="modify('1')" />
  29. </view>
  30. <!-- <view class="orderingUser acea-row row-middle" v-if="orderInfo.nickname">
  31. <span class="iconfont icon-yonghu2"></span>{{ orderInfo.nickname }}
  32. </view> -->
  33. <view class="address" v-if="orderInfo.product_type==0 && orderInfo.uid&&orderInfo.type!=10">
  34. <view class="name">
  35. <text class="iconfont icon-ic_location4"></text>
  36. {{ orderInfo.real_name}}
  37. <text class="phone">{{ orderInfo.user_phone }}</text>
  38. <!-- #ifdef H5 -->
  39. <!-- <text class="copy copy-data" :data-clipboard-text="`${orderInfo.real_name} ${orderInfo.user_phone} ${orderInfo.user_address}`">复制</text> -->
  40. <!-- #endif -->
  41. <!-- #ifdef MP -->
  42. <!-- <text class="copy copy-data" @click="copyNum(`${orderInfo.real_name} ${orderInfo.user_phone} ${orderInfo.user_address}`)">复制</text> -->
  43. <!-- #endif -->
  44. </view>
  45. <view v-if="orderInfo.shipping_type == 1">地址:{{ orderInfo.user_address }}</view>
  46. <view class="line">
  47. <image src="/static/images/line.jpg" />
  48. </view>
  49. </view>
  50. <view class="acea-row row-middle user-box">
  51. <image v-if="orderInfo.uid" :src="userInfo.avatar" class="image"></image>
  52. <image v-else src="/static/images/f.png" class="image"></image>
  53. <view class="text">
  54. <view class="acea-row row-middle name">
  55. {{orderInfo.uid?userInfo.nickname:'游客'}}
  56. <view v-if="userInfo.isMember" class="svip">SVIP</view>
  57. <view v-if="userInfo.level_grade" class="grade acea-row row-middle"><text class="iconfont icon-huiyuandengji"></text>V{{userInfo.level_grade}}</view>
  58. </view>
  59. <view v-if="userInfo.phone" class="">{{userInfo.phone}}(ID:{{userInfo.uid}})</view>
  60. <view v-else class="">ID:{{userInfo.uid || 0}}</view>
  61. </view>
  62. </view>
  63. <!-- 拆单时 -->
  64. <view v-for="(j, indexw) in orderInfo.split" :key="indexw" v-if="orderInfo.split && orderInfo.split.length">
  65. <view class="splitTitle acea-row row-between-wrapper">
  66. <view>订单包裹{{indexw + 1}}</view>
  67. <view class="title">{{j._status._title}}</view>
  68. </view>
  69. <view class="pos-order-goods">
  70. <navigator :url="`/pages/admin/orderDetail/index?id=${j.order_id}`" hover-class="none" class="goods acea-row row-between-wrapper" v-for="(item, index) in j.cartInfo" :key="index">
  71. <view class="picTxt acea-row row-between-wrapper">
  72. <view class="pictrue">
  73. <image :src="item.productInfo.attrInfo?item.productInfo.attrInfo.image:item.productInfo.image" />
  74. </view>
  75. <view class="text acea-row row-between row-column">
  76. <view class="info line2">
  77. {{ item.productInfo.store_name }}
  78. </view>
  79. <view class="attr">{{ item.productInfo.attrInfo.suk }}</view>
  80. </view>
  81. </view>
  82. <view class="money">
  83. <view class="x-money">¥{{ item.productInfo.attrInfo?item.productInfo.attrInfo.price:item.productInfo.price }}</view>
  84. <view class="num">x {{ item.cart_num }}</view>
  85. <!-- <view class="y-money">¥{{ item.productInfo.ot_price }}</view> -->
  86. </view>
  87. </navigator>
  88. </view>
  89. </view>
  90. <!-- 结束 -->
  91. <!-- 未拆单时,正常单 -->
  92. <view class="pos-order-goods split" v-if="orderInfo.cartInfo && orderInfo.cartInfo.length">
  93. <view class="title acea-row row-between-wrapper"
  94. v-if="(orderInfo.status == 0 && orderInfo.paid == 1 && orderInfo.shipping_type == 2) || orderInfo.status == 5 || (orderInfo.status == 2 && orderInfo.shipping_type == 2)">
  95. <text>共{{totalNmu}}件商品</text>
  96. <!-- <navigator class="bnt" :url="'/pages/admin/delivery/index?id='+orderInfo.order_id+'&listId='+orderInfo.id+'&totalNum='+orderInfo.total_num+'&orderStatus='+orderInfo.status+'&comeType=2'">去发货</navigator> -->
  97. <navigator class="btn" :url="'/pages/admin/writeRecordList/index?id='+orderInfo.id" hover-class="none">
  98. 核销记录<text class="iconfont icon-ic_rightarrow"></text>
  99. </navigator>
  100. </view>
  101. <navigator :url="`/pages/goods_details/index?id=${item.product_id}`" hover-class="none" class="goods acea-row" v-for="(item, index) in orderInfo.cartInfo" :key="index">
  102. <view class="picTxt acea-row">
  103. <view class="pictrue">
  104. <image :src="item.productInfo.attrInfo?item.productInfo.attrInfo.image:item.productInfo.image" />
  105. </view>
  106. <view class="text">
  107. <view class="info line1">{{ item.productInfo.store_name }}</view>
  108. <view class="attr line1">{{ item.productInfo.attrInfo.suk }}</view>
  109. </view>
  110. </view>
  111. <view class="money">
  112. <!-- <view class="x-money">¥{{ item.productInfo.attrInfo?item.productInfo.attrInfo.price:item.productInfo.price }}</view> -->
  113. <BaseMoney :money="item.productInfo.attrInfo?item.productInfo.attrInfo.price:item.productInfo.price" symbolSize="20" integerSize="32" decimalSize="20"></BaseMoney>
  114. <view class="num">共{{ item.cart_num }}件</view>
  115. <view class="acea-row row-right">
  116. <view class="writeOff" v-if="item.refund_num && orderInfo.refund_type != 6">{{item.refund_num}}件退款中</view>
  117. <view class="writeOff" v-if="orderInfo._status._type==2 && orderInfo.delivery_type == 'send'">
  118. <text v-if="item.refund_num">,</text>
  119. <text class="on" v-if="item.is_writeoff">已核销</text>
  120. <text v-if="!item.is_writeoff && item.surplus_num<item.cart_num">已核销{{parseInt(item.cart_num)-parseInt(item.surplus_num)}}件</text>
  121. <text v-if="!item.is_writeoff && item.surplus_num==item.cart_num">未核销</text>
  122. </view>
  123. </view>
  124. </view>
  125. </navigator>
  126. <view class="giveGoods">
  127. <view class="item acea-row row-between-wrapper" v-for="(item,index) in giveCartInfo" :key="index">
  128. <view class="picTxt acea-row row-middle">
  129. <view class="pictrue">
  130. <image :src="item.productInfo.attrInfo.image" v-if="item.productInfo.attrInfo"></image>
  131. <image :src="item.productInfo.image" v-else></image>
  132. </view>
  133. <view class="texts">
  134. <view class="name line1">[赠品]{{item.productInfo.store_name}}</view>
  135. <view class="limit line1" v-if="item.productInfo.attrInfo">{{item.productInfo.attrInfo.suk}}</view>
  136. </view>
  137. </view>
  138. <view class="num">x{{item.cart_num}}</view>
  139. </view>
  140. <view class="item acea-row row-between-wrapper" v-for="(item,index) in giveData.give_coupon" :key="index" v-if="giveData.give_coupon.length">
  141. <view class="picTxt acea-row row-middle">
  142. <view class="pictrue acea-row row-center-wrapper">
  143. <text class="iconfont icon-pc-youhuiquan"></text>
  144. </view>
  145. <view class="texts">
  146. <view class="line1">[赠品]{{item.coupon_title}}</view>
  147. </view>
  148. </view>
  149. </view>
  150. <view class="item acea-row row-between-wrapper" v-if="giveData.give_integral>0">
  151. <view class="picTxt acea-row row-middle">
  152. <view class="pictrue acea-row row-center-wrapper">
  153. <text class="iconfont icon-pc-jifen"></text>
  154. </view>
  155. <view class="texts">
  156. <view class="line1">[赠品]{{giveData.give_integral}}积分</view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="mark acea-row" v-if="orderInfo.mark">
  162. <view class="name">留言</view>
  163. <view class="value line1">{{orderInfo.mark}}</view>
  164. </view>
  165. </view>
  166. <!-- <view class="public-total" v-if="!orderInfo.split || !orderInfo.split.length">
  167. 共{{ orderInfo.total_num }}件商品,实付款
  168. <span class="money">¥{{ orderInfo.pay_price }}</span> ( 邮费 ¥{{
  169. orderInfo.pay_postage
  170. }}
  171. )
  172. </view> -->
  173. <!-- 结束 -->
  174. <view class="wrapper" v-if="orderInfo.type == 10">
  175. <view class="item acea-row row-between">
  176. <view>桌台号</view>
  177. <view class='conter'>{{orderInfo.table_info.category.name+' ('+orderInfo.table_info.table_number+'号)'}}</view>
  178. </view>
  179. <view class="item acea-row row-between">
  180. <view>就餐人数</view>
  181. <view class='conter'>{{orderInfo.table_info.number_diners}}</view>
  182. </view>
  183. </view>
  184. <view class='wrapper' v-if='orderInfo.delivery_type=="fictitious" && orderInfo.product_type!=1'>
  185. <view class='item acea-row row-between' v-if="orderInfo.fictitious_content">
  186. <view>虚拟备注</view>
  187. <view class='conter'>{{orderInfo.fictitious_content}}</view>
  188. </view>
  189. </view>
  190. <view class='wrapper' v-if="orderInfo.virtual_info && orderInfo.product_type==1">
  191. <view class="title">卡密发货</view>
  192. <view v-for="(item,index) in orderInfo.virtual_info" :key="index" v-if="Array.isArray(orderInfo.virtual_info)">
  193. <view class='item acea-row row-between'>
  194. <view>卡号</view>
  195. <view class='conter'>{{item.card_no}}</view>
  196. </view>
  197. <view class='item acea-row row-between'>
  198. <view>密码</view>
  199. <view class='conter'>{{item.card_pwd}}</view>
  200. </view>
  201. </view>
  202. <view class="mt-16 bg--w111-f5f5f5 text--w111-999 rd-16rpx p-24 lh-36rpx">{{orderInfo.virtual_info}}</view>
  203. </view>
  204. <customForm :customForm="orderInfo.custom_form" class="customForm"></customForm>
  205. <view class="wrapper">
  206. <view class="item acea-row row-between">
  207. <view>订单编号</view>
  208. <view class="conter acea-row row-middle row-right">
  209. {{ orderInfo.order_id
  210. }}
  211. <!-- #ifdef H5 -->
  212. <text class="copy copy-data" :data-clipboard-text="orderInfo.order_id">复制</text>
  213. <!-- #endif -->
  214. <!-- #ifdef MP -->
  215. <text class="copy copy-data" @click="copyNum(orderInfo.order_id)">复制</text>
  216. <!-- #endif -->
  217. </view>
  218. </view>
  219. <view class="item acea-row row-between">
  220. <view>下单时间</view>
  221. <view class="conter">{{ orderInfo._add_time }}</view>
  222. </view>
  223. <view class="item acea-row row-between">
  224. <view>支付状态</view>
  225. <view class="conter">
  226. {{ orderInfo.paid == 1 ? "已支付" : "未支付" }}
  227. </view>
  228. </view>
  229. <view class="item acea-row row-between">
  230. <view>支付方式</view>
  231. <view class="conter">{{ payType }}</view>
  232. </view>
  233. <!-- <view class="item acea-row row-between" v-if="orderInfo.mark">
  234. <view v-if="statusType == -3">退款留言:</view>
  235. <view v-else>买家留言:</view>
  236. <view class="conter">{{ orderInfo.mark }}</view>
  237. </view> -->
  238. <view class="item acea-row row-between" v-if="orderInfo.refund_goods_explain">
  239. <view>退货留言</view>
  240. <view class='conter'>{{orderInfo.refund_goods_explain}}</view>
  241. </view>
  242. <view class="item acea-row row-between" v-if="orderInfo.refund_img && orderInfo.refund_img.length">
  243. <view>退款凭证</view>
  244. <view class="conter">
  245. <view class="pictrue" v-for="(item,index) in orderInfo.refund_img">
  246. <image :src="item" mode="aspectFill" @click='getpreviewImage(index,1)'></image>
  247. </view>
  248. </view>
  249. </view>
  250. <view class="item acea-row row-between" v-if="orderInfo.refund_goods_img && orderInfo.refund_goods_img.length">
  251. <view>退货凭证</view>
  252. <view class="conter">
  253. <view class="pictrue" v-for="(item,index) in orderInfo.refund_goods_img">
  254. <image :src="item" mode="aspectFill" @click='getpreviewImage(index,0)'></image>
  255. </view>
  256. </view>
  257. </view>
  258. </view>
  259. <view class="wrapper" v-if="
  260. orderInfo.delivery_type != 'fictitious' && orderInfo._status._type === 2 && (!orderInfo.split || !orderInfo.split.length)
  261. ">
  262. <view class="item acea-row row-between">
  263. <view>配送方式</view>
  264. <view class="conter" v-if="orderInfo.delivery_type === 'express'">
  265. 快递
  266. </view>
  267. <view class="conter" v-if="orderInfo.delivery_type === 'send'">送货</view>
  268. </view>
  269. <view class="item acea-row row-between">
  270. <view v-if="orderInfo.delivery_type === 'express'">快递公司</view>
  271. <view v-if="orderInfo.delivery_type === 'send'">送货人</view>
  272. <view class="conter">{{ orderInfo.delivery_name }}</view>
  273. </view>
  274. <view class="item acea-row row-between">
  275. <view v-if="orderInfo.delivery_type === 'express'">快递单号</view>
  276. <view v-if="orderInfo.delivery_type === 'send'">送货人电话</view>
  277. <view class="conter">
  278. {{ orderInfo.delivery_id}}
  279. <!-- #ifdef H5 -->
  280. <span class="copy copy-data" :data-clipboard-text="orderInfo.delivery_id">复制</span>
  281. <!-- #endif -->
  282. <!-- #ifdef MP -->
  283. <span class="copy copy-data" @click="copyNum(orderInfo.delivery_id)">复制</span>
  284. <!-- #endif -->
  285. </view>
  286. </view>
  287. </view>
  288. <view class="wrapper">
  289. <view class='item acea-row row-between'>
  290. <view>商品总价</view>
  291. <view class='conter' v-if="statusType == -3">
  292. ¥{{orderInfo.total_price}}</view>
  293. <view class='conter' v-else>
  294. ¥{{(parseFloat(orderInfo.total_price)+parseFloat(orderInfo.vip_true_price)).toFixed(2)}}</view>
  295. </view>
  296. <view class="item acea-row row-between" v-if="orderInfo.pay_postage > 0">
  297. <view>配送运费</view>
  298. <view class="conter">¥{{ orderInfo.pay_postage }}</view>
  299. </view>
  300. <view v-if="orderInfo.vip_true_price > 0" class='item acea-row row-between'>
  301. <view>会员商品优惠</view>
  302. <view class='conter'>-¥{{parseFloat(orderInfo.vip_true_price).toFixed(2)}}</view>
  303. </view>
  304. <view class="item acea-row row-between" v-if='orderInfo.coupon_id'>
  305. <view>优惠券抵扣</view>
  306. <view class="conter">-¥{{ orderInfo.coupon_price }}</view>
  307. </view>
  308. <view class='item acea-row row-between' v-if="orderInfo.use_integral > 0">
  309. <view>积分抵扣</view>
  310. <view class='conter'>-¥{{parseFloat(orderInfo.deduction_price).toFixed(2)}}</view>
  311. </view>
  312. <view class='item acea-row row-between' v-for="(item,index) in orderInfo.promotions_detail" :key="index" v-if="parseFloat(item.promotions_price)">
  313. <view>{{item.title}}</view>
  314. <view class='conter'>-¥{{parseFloat(item.promotions_price).toFixed(2)}}</view>
  315. </view>
  316. <view class="actualPay acea-row row-right">
  317. 实付款:
  318. <!-- <span class="money">¥{{ orderInfo.pay_price }}</span> -->
  319. <BaseMoney :money="orderInfo.pay_price" symbolSize="24" integerSize="40" decimalSize="24" color="#FF7E00"></BaseMoney>
  320. </view>
  321. </view>
  322. <view class="height-add"></view>
  323. <view class="footer acea-row row-right row-middle" v-if="goname != 'looks'">
  324. <view class="more"></view>
  325. <view class="bnt cancel" :class="openErp?'on':''" @click="modify('0')" v-if="types == 0">
  326. 一键改价
  327. </view>
  328. <!-- types == -1 -->
  329. <view class="bnt cancel" @click="modify('1')">订单备注</view>
  330. <view class="bnt cancel" :class="openErp?'on':''" @click="modify('2',1)"
  331. v-if="(!orderInfo.refund || !orderInfo.refund.length) && (orderInfo.refund_type == 0 || orderInfo.refund_type == 1 || orderInfo.refund_type == 5) && orderInfo.paid && parseFloat(orderInfo.pay_price) >= 0">
  332. 立即退款
  333. </view>
  334. <view class="bnt cancel" :class="openErp?'on':''" @click="modify('2',0)" v-if="orderInfo.refund_type == 2">
  335. 同意退货
  336. </view>
  337. <!-- <view class="wait" :class="openErp?'on':''" v-if="orderInfo.refund_type == 4">待用户发货</view> -->
  338. <!-- <view class="bnt cancel" :class="openErp?'on':''" v-if="orderInfo.pay_type === 'offline' && orderInfo.paid === 0" @click="offlinePay">
  339. 确认付款
  340. </view> -->
  341. <view class="bnt delivery" :class="openErp?'on':''" v-if="orderInfo.status == 0 && orderInfo.paid === 0" @click="confirmShow = true">
  342. 确认付款
  343. </view>
  344. <view class="bnt delivery" :class="openErp?'on':''" v-if="types == 1 && orderInfo.shipping_type === 1 && (orderInfo.pinkStatus === null || orderInfo.pinkStatus === 2)"
  345. @click="goDelivery(orderInfo)">发送货</view>
  346. <view class="bnt delivery" v-if="orderInfo.delivery_type == 'express' && orderInfo._status._type == 2" @click="goLogistics(orderInfo)">查看物流
  347. </view>
  348. <view v-if="orderInfo.shipping_type == 2 &&
  349. (orderInfo.status == 0 || orderInfo.status == 5) &&
  350. orderInfo.paid == 1 &&
  351. orderInfo.refund_status === 0" class="bnt delivery" @click="verify">立即核销</view>
  352. </view>
  353. <PriceChange :change="change" :orderInfo="orderInfo" :isRefund="isRefund" v-on:statusChange="statusChange($event)" v-on:closechange="changeclose($event)" v-on:savePrice="savePrice"
  354. :status="status"></PriceChange>
  355. </view>
  356. <view v-if="confirmShow" class="mask"></view>
  357. <view v-if="confirmShow" class="confirm-popup">
  358. <view class="title">确认付款</view>
  359. <view class="info">确认该订单用户已付款</view>
  360. <view class="acea-row btn-box">
  361. <view class="btn" @click="confirmShow = false">取消</view>
  362. <view class="btn primary" @click="offlinePay">确认</view>
  363. </view>
  364. </view>
  365. <home></home>
  366. </view>
  367. </template>
  368. <script>
  369. import PriceChange from "../components/PriceChange/index.vue";
  370. import home from '../components/home/index.vue';
  371. import customForm from "@/components/customForm";
  372. import countDown from '@/components/countDown/index.vue'
  373. // #ifdef MP || APP-PLUS
  374. import NavBar from "@/components/NavBar.vue";
  375. // #endif
  376. // #ifdef H5
  377. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  378. // #endif
  379. import {
  380. getStoreOrderDetail,
  381. getAdminOrderDetail,
  382. getStoreRefundDetail,
  383. getAdminRefundDetail,
  384. setStoreOrderPrice,
  385. setAdminOrderPrice,
  386. setStoreRefundRemark,
  387. setAdminRefundRemark,
  388. setStoreOrderRemark,
  389. setAdminOrderRemark,
  390. setStoreOfflinePay,
  391. setOfflinePay,
  392. setStoreOrderRefund,
  393. setOrderRefund,
  394. storeOrderRefundAgree,
  395. orderRefundAgree,
  396. getStoreUserInfo,
  397. getUserInfo,
  398. } from "@/api/admin";
  399. import {
  400. erpConfig
  401. } from "@/api/esp.js";
  402. import {
  403. isMoney
  404. } from '@/utils/validate.js'
  405. export default {
  406. name: "AdminOrder",
  407. components: {
  408. PriceChange,
  409. customForm,
  410. countDown,
  411. home,
  412. // #ifdef MP || APP-PLUS
  413. NavBar,
  414. // #endif
  415. },
  416. props: {},
  417. data: function() {
  418. return {
  419. openErp: false,
  420. giveData: {
  421. give_integral: 0,
  422. give_coupon: []
  423. },
  424. giveCartInfo: [],
  425. totalNmu: 0,
  426. order: false,
  427. change: false,
  428. order_id: "",
  429. orderInfo: {
  430. _status: {}
  431. },
  432. status: "",
  433. title: "",
  434. payType: "",
  435. types: "",
  436. statusType: '',
  437. clickNum: 1,
  438. goname: '',
  439. isRefund: 0, //1是仅退款;0是同意退货退款
  440. iconColor: '#FFFFFF',
  441. isScrolling: false,
  442. getHeight: this.$util.getWXStatusHeight(),
  443. confirmShow: false,
  444. userInfo: {},
  445. storeNum:1
  446. };
  447. },
  448. watch: {
  449. "$route.params.oid": function(newVal) {
  450. let that = this;
  451. if (newVal != undefined) {
  452. that.order_id = newVal;
  453. that.getIndex();
  454. }
  455. }
  456. },
  457. onLoad: function(option) {
  458. this.storeNum = parseInt(option.storeNum);
  459. this.order_id = option.id;
  460. this.goname = option.goname
  461. this.statusType = option.types
  462. },
  463. onShow() {
  464. let self = this
  465. this.getIndex();
  466. this.getErpConfig();
  467. // #ifdef H5
  468. this.$nextTick(function() {
  469. var clipboard = new ClipboardJS('.copy-data');
  470. // var copybtn = document.getElementsByClassName("copy-data");
  471. // var clipboard = new Clipboard(copybtn);
  472. clipboard.on('success', function(e) {
  473. self.$util.Tips({
  474. title: '复制成功'
  475. })
  476. });
  477. clipboard.on('error', function(e) {
  478. self.$util.Tips({
  479. title: '复制失败'
  480. })
  481. });
  482. });
  483. // #endif
  484. },
  485. onPageScroll(e) {
  486. // #ifdef MP || APP-PLUS
  487. if (e.scrollTop > 50) {
  488. this.iconColor = '#333333';
  489. this.isScrolling = true;
  490. } else {
  491. this.iconColor = '#FFFFFF';
  492. this.isScrolling = false;
  493. }
  494. // #endif
  495. },
  496. methods: {
  497. verify() {
  498. if (this.orderInfo.product_type == 4) {
  499. uni.navigateTo({
  500. url: '/pages/admin/writeOffCard/index?id=' + this.orderInfo.id
  501. })
  502. } else {
  503. uni.navigateTo({
  504. url: '/pages/admin/distribution/scanning/detail/index?auth=1&id=' + this.orderInfo.id + '&let=1&code=' + this.orderInfo.verify_code
  505. })
  506. }
  507. },
  508. statusChange(e) {
  509. this.status = e;
  510. },
  511. goLogistics(orderInfo) {
  512. uni.navigateTo({
  513. url: '/pages/admin/logistics/index?orderId=' + orderInfo.order_id
  514. })
  515. },
  516. goDelivery(orderInfo) {
  517. if (this.openErp) return
  518. uni.navigateTo({
  519. url: '/pages/admin/delivery/index?id=' + orderInfo.order_id + '&listId=' + orderInfo.id + '&totalNum=' + orderInfo.total_num + '&orderStatus=' + orderInfo.status +
  520. '&comeType=2&productType=' + orderInfo.product_type
  521. })
  522. },
  523. getErpConfig() {
  524. erpConfig().then(res => {
  525. this.openErp = res.data.open_erp;
  526. }).catch(err => {
  527. this.$util.Tips({
  528. title: err
  529. })
  530. })
  531. },
  532. getpreviewImage: function(index, num) {
  533. uni.previewImage({
  534. urls: num ? this.orderInfo.refund_img : this.orderInfo.refund_goods_img,
  535. current: num ? this.orderInfo.refund_img[index] : this.orderInfo.refund_goods_img[index]
  536. });
  537. },
  538. more: function() {
  539. this.order = !this.order;
  540. },
  541. modify: function(status, type) {
  542. if (status != 1 && this.openErp) return
  543. if (status == 2) {
  544. this.isRefund = type
  545. uni.navigateTo({
  546. url: '/pages/admin/refund/index?id=' + this.orderInfo.order_id + '&listId=' + this.orderInfo.id
  547. })
  548. } else {
  549. this.change = true;
  550. this.status = status;
  551. }
  552. },
  553. changeclose: function(msg) {
  554. this.change = msg;
  555. },
  556. getIndex: function() {
  557. let that = this;
  558. let obj = '';
  559. if (that.statusType == -3) {
  560. let funApi = '';
  561. if(this.storeNum){
  562. funApi = getAdminRefundDetail(that.order_id);
  563. }else{
  564. funApi = getStoreRefundDetail(that.order_id);
  565. }
  566. obj = funApi;
  567. } else {
  568. let funApi = '';
  569. if(this.storeNum){
  570. funApi = getAdminOrderDetail(that.order_id);
  571. }else{
  572. funApi = getStoreOrderDetail(that.order_id);
  573. }
  574. obj = funApi;
  575. }
  576. obj.then(res => {
  577. let num = 0;
  578. that.types = res.data._status._type;
  579. that.title = res.data._status._title;
  580. that.payType = res.data._status._payType;
  581. that.giveData.give_coupon = res.data.give_coupon;
  582. that.giveData.give_integral = res.data.give_integral;
  583. let cartObj = [],
  584. giftObj = [];
  585. res.data.cartInfo.forEach((item, index) => {
  586. num += item.cart_num
  587. if (item.is_gift == 1) {
  588. giftObj.push(item)
  589. } else {
  590. cartObj.push(item)
  591. }
  592. });
  593. this.totalNmu = num;
  594. res.data.cartInfo = cartObj;
  595. that.$set(that, 'giveCartInfo', giftObj);
  596. that.orderInfo = res.data;
  597. that.getUserInfo();
  598. }).catch(err => {
  599. return that.$util.Tips({
  600. title: err.msg
  601. });
  602. })
  603. },
  604. objOrderRefund(data) {
  605. let that = this;
  606. let funApi = '';
  607. if(this.storeNum){
  608. funApi = setOrderRefund;
  609. }else{
  610. funApi = setStoreOrderRefund;
  611. }
  612. funApi(data).then(
  613. res => {
  614. that.change = false;
  615. that.$util.Tips({
  616. title: res.msg
  617. });
  618. that.getIndex();
  619. },
  620. err => {
  621. that.change = false;
  622. that.$util.Tips({
  623. title: err
  624. });
  625. }
  626. );
  627. },
  628. async savePrice(opt) {
  629. let that = this,
  630. data = {},
  631. price = opt.price,
  632. refund_price = opt.refund_price,
  633. refund_status = that.orderInfo.refund_status,
  634. remark = opt.remark;
  635. data.order_id = that.orderInfo.order_id;
  636. if (that.status == 0) {
  637. if (!isMoney(price)) {
  638. return that.$util.Tips({
  639. title: '请输入正确的金额'
  640. });
  641. }
  642. data.price = price;
  643. let funApi = '';
  644. if(this.storeNum){
  645. funApi = setAdminOrderPrice;
  646. }else{
  647. funApi = setStoreOrderPrice;
  648. }
  649. funApi(data).then(
  650. function() {
  651. that.change = false;
  652. that.$util.Tips({
  653. title: '改价成功',
  654. icon: 'success'
  655. })
  656. that.getIndex();
  657. },
  658. function() {
  659. that.change = false;
  660. that.$util.Tips({
  661. title: '改价失败',
  662. icon: 'none'
  663. })
  664. }
  665. );
  666. } else if (that.status == 2) {
  667. if (this.isRefund) {
  668. if (!isMoney(refund_price)) {
  669. return that.$util.Tips({
  670. title: '请输入正确的金额'
  671. });
  672. }
  673. data.price = refund_price;
  674. data.type = opt.type;
  675. this.objOrderRefund(data);
  676. } else {
  677. if (opt.type == 1) {
  678. let funApi = '';
  679. if(this.storeNum){
  680. funApi = orderRefundAgree;
  681. }else{
  682. funApi = storeOrderRefundAgree;
  683. }
  684. funApi(this.orderInfo.id).then(res => {
  685. that.change = false;
  686. that.$util.Tips({
  687. title: res.msg
  688. });
  689. that.getIndex();
  690. }).catch(err => {
  691. that.change = false;
  692. that.$util.Tips({
  693. title: err
  694. });
  695. })
  696. }
  697. }
  698. } else if (that.status == 8) {
  699. data.type = opt.type;
  700. data.refuse_reason = opt.refuse_reason;
  701. this.objOrderRefund(data);
  702. } else {
  703. if (!remark) {
  704. return this.$util.Tips({
  705. title: '请输入备注'
  706. })
  707. }
  708. data.remark = remark;
  709. let obj = '';
  710. if (that.statusType == -3) {
  711. let funApi = '';
  712. if(this.storeNum){
  713. funApi = setAdminRefundRemark(data);
  714. }else{
  715. funApi = setStoreRefundRemark(data);
  716. }
  717. obj = funApi;
  718. } else {
  719. let funApi = '';
  720. if(this.storeNum){
  721. funApi = setAdminOrderRemark(data);
  722. }else{
  723. funApi = setStoreOrderRemark(data);
  724. }
  725. obj = funApi;
  726. }
  727. obj.then(
  728. res => {
  729. that.change = false;
  730. this.$util.Tips({
  731. title: res.msg,
  732. icon: 'success'
  733. })
  734. this.orderInfo.remark = remark;
  735. // that.getIndex();
  736. },
  737. err => {
  738. that.change = false;
  739. that.$util.Tips({
  740. title: err
  741. });
  742. }
  743. );
  744. }
  745. },
  746. offlinePay: function() {
  747. if (this.openErp) return
  748. let funApi = '';
  749. if(this.storeNum){
  750. funApi = setOfflinePay;
  751. }else{
  752. funApi = setStoreOfflinePay;
  753. }
  754. funApi({
  755. order_id: this.orderInfo.order_id
  756. }).then(
  757. res => {
  758. this.confirmShow = false;
  759. this.$util.Tips({
  760. title: res.msg,
  761. icon: 'success'
  762. });
  763. this.getIndex();
  764. },
  765. err => {
  766. this.$util.Tips({
  767. title: err
  768. });
  769. }
  770. );
  771. },
  772. // #ifdef MP
  773. copyNum(id) {
  774. uni.setClipboardData({
  775. data: id,
  776. success: function() {}
  777. });
  778. },
  779. // #endif
  780. // #ifdef H5
  781. webCopy(item, index) {
  782. let items = item
  783. let indexs = index
  784. let self = this
  785. if (self.clickNum == 1) {
  786. self.clickNum += 1
  787. self.webCopy(items, indexs)
  788. }
  789. },
  790. // #endif
  791. getUserInfo() {
  792. let funApi = '';
  793. if(this.storeNum){
  794. funApi = getUserInfo;
  795. }else{
  796. funApi = getStoreUserInfo;
  797. }
  798. funApi(this.orderInfo.uid).then(res => {
  799. this.userInfo = res.data;
  800. });
  801. },
  802. }
  803. };
  804. </script>
  805. <style lang="scss" scoped>
  806. .headerBg {
  807. position: absolute;
  808. top: 0;
  809. left: 0;
  810. width: 100%;
  811. background-image: linear-gradient(360deg, #F5F5F5 0%, rgba(245, 245, 245, 0) 100%),
  812. linear-gradient(270deg, #01ABF8 0%, #2A7EFB 100%);
  813. background-position: left bottom, left top;
  814. background-repeat: no-repeat;
  815. background-size: 100% 120rpx, 100% 100%;
  816. .inner {
  817. height: 356rpx;
  818. }
  819. }
  820. .order-details {
  821. position: absolute;
  822. width: 100%;
  823. padding: 0 20rpx;
  824. }
  825. .height-add {
  826. height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  827. height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  828. }
  829. .giveGoods {
  830. .item {
  831. padding: 14rpx 30rpx 14rpx 0;
  832. margin-left: 30rpx;
  833. border-top: 1px solid #eee;
  834. .picTxt {
  835. .pictrue {
  836. width: 76rpx;
  837. height: 76rpx;
  838. border-radius: 6rpx;
  839. background-color: #F5F5F5;
  840. color: #2a7efb;
  841. .iconfont {
  842. font-size: 34rpx;
  843. }
  844. image {
  845. width: 100%;
  846. height: 100%;
  847. border-radius: 6rpx;
  848. }
  849. margin-right: 16rpx;
  850. }
  851. .texts {
  852. width: 360rpx;
  853. color: #999999;
  854. font-size: 20rpx;
  855. .name {
  856. color: #333;
  857. }
  858. .limit {
  859. font-size: 20rpx;
  860. margin-top: 4rpx;
  861. }
  862. }
  863. }
  864. .num {
  865. color: #999999;
  866. font-size: 20rpx;
  867. }
  868. }
  869. }
  870. .splitTitle {
  871. width: 100%;
  872. height: 80rpx;
  873. background-color: #fff;
  874. margin-top: 17rpx;
  875. border-bottom: 1px solid #e5e5e5;
  876. padding: 0 30rpx;
  877. }
  878. .splitTitle .title {
  879. color: #2291f8;
  880. }
  881. /*商户管理订单详情*/
  882. .pos-order-details .header {
  883. // background: linear-gradient(270deg, #1cd1dc 0%, #2291f8 100%);
  884. }
  885. .pos-order-details .header .state {}
  886. .pos-order-details .header .data {}
  887. .pos-order-details .header .data .order-num {
  888. font-size: 26upx;
  889. margin-bottom: 8upx;
  890. }
  891. .pos-order-details .remarks {
  892. padding-left: 32rpx;
  893. border-radius: 24rpx;
  894. background: #FFFFFF;
  895. }
  896. .pos-order-details .remarks .iconfont {
  897. font-size: 32rpx;
  898. color: #000000;
  899. }
  900. .pos-order-details .remarks input {
  901. flex: 1;
  902. height: 100rpx;
  903. padding-left: 20rpx;
  904. font-size: 28rpx;
  905. }
  906. .pos-order-details .remarks input::placeholder {
  907. color: #CCCCCC;
  908. }
  909. .pos-order-details .orderingUser {
  910. font-size: 26upx;
  911. color: #282828;
  912. padding: 0 30upx;
  913. height: 67upx;
  914. background-color: #fff;
  915. margin-top: 16upx;
  916. border-bottom: 1px solid #f5f5f5;
  917. }
  918. .pos-order-details .orderingUser .iconfont {
  919. font-size: 40upx;
  920. color: #2a7efb;
  921. margin-right: 15upx;
  922. }
  923. .pos-order-details .address {
  924. margin-top: 0;
  925. }
  926. .pos-order-details .footer .more {
  927. font-size: 27upx;
  928. color: #aaa;
  929. width: 100upx;
  930. height: 64upx;
  931. text-align: center;
  932. line-height: 64upx;
  933. margin-right: 25upx;
  934. position: relative;
  935. }
  936. .pos-order-details .footer .delivery {
  937. border-color: #2A7EFB !important;
  938. background: #2A7EFB;
  939. color: #FFFFFF !important;
  940. }
  941. .pos-order-details .footer .more .order .arrow {
  942. width: 0;
  943. height: 0;
  944. border-left: 11upx solid transparent;
  945. border-right: 11upx solid transparent;
  946. border-top: 20upx solid #e5e5e5;
  947. position: absolute;
  948. left: 15upx;
  949. bottom: -18upx;
  950. }
  951. .pos-order-details .footer .more .order .arrow:before {
  952. content: '';
  953. width: 0;
  954. height: 0;
  955. border-left: 9upx solid transparent;
  956. border-right: 9upx solid transparent;
  957. border-top: 19upx solid #fff;
  958. position: absolute;
  959. left: -10upx;
  960. bottom: 0;
  961. }
  962. .pos-order-details .footer .more .order {
  963. width: 200upx;
  964. background-color: #fff;
  965. border: 1px solid #eee;
  966. border-radius: 10upx;
  967. position: absolute;
  968. top: -200upx;
  969. z-index: 9;
  970. }
  971. .pos-order-details .footer .more .order .item {
  972. height: 77upx;
  973. line-height: 77upx;
  974. }
  975. .pos-order-details .footer .more .order .item~.item {
  976. border-top: 1px solid #f5f5f5;
  977. }
  978. .pos-order-details .footer .more .moreName {
  979. width: 100%;
  980. height: 100%;
  981. }
  982. /*订单详情*/
  983. .order-details .header {
  984. padding: 48rpx 0 30rpx 12rpx;
  985. }
  986. .order-details .header.on {
  987. background-color: #666 !important;
  988. }
  989. .order-details .header .pictrue {
  990. width: 110upx;
  991. height: 110upx;
  992. }
  993. .order-details .header .pictrue image {
  994. width: 100%;
  995. height: 100%;
  996. }
  997. .order-details .header .state {
  998. font-weight: 500;
  999. font-size: 36rpx;
  1000. line-height: 50rpx;
  1001. color: #FFFFFF;
  1002. }
  1003. .order-details .header .data {
  1004. margin-top: 8rpx;
  1005. font-size: 26rpx;
  1006. line-height: 36rpx;
  1007. color: #FFFFFF;
  1008. }
  1009. .order-details .header.on .data {
  1010. margin-left: 0;
  1011. }
  1012. .order-details .header .data .time {
  1013. margin-left: 20rpx;
  1014. }
  1015. .order-details .header .data .state {
  1016. font-size: 30upx;
  1017. font-weight: bold;
  1018. color: #fff;
  1019. margin-bottom: 7upx;
  1020. }
  1021. /* .order-details .header .data .time{margin-left:20upx;} */
  1022. .order-details .nav {
  1023. background-color: #fff;
  1024. font-size: 26upx;
  1025. color: #282828;
  1026. padding: 25upx 0;
  1027. }
  1028. .order-details .nav .navCon {
  1029. padding: 0 40upx;
  1030. }
  1031. .order-details .nav .navCon .on {
  1032. font-weight: bold;
  1033. color: #e93323;
  1034. }
  1035. .order-details .nav .progress {
  1036. padding: 0 65upx;
  1037. margin-top: 10upx;
  1038. }
  1039. .order-details .nav .progress .line {
  1040. width: 100upx;
  1041. height: 2upx;
  1042. background-color: #939390;
  1043. }
  1044. .order-details .nav .progress .iconfont {
  1045. font-size: 25upx;
  1046. color: #939390;
  1047. margin-top: -2upx;
  1048. width: 30upx;
  1049. height: 30upx;
  1050. line-height: 33upx;
  1051. text-align: center;
  1052. margin-right: 0 !important;
  1053. }
  1054. .order-details .address {
  1055. position: relative;
  1056. padding: 32rpx 32rpx 40rpx;
  1057. border-radius: 24rpx;
  1058. margin-top: 20rpx;
  1059. background: #FFFFFF;
  1060. overflow: hidden;
  1061. font-size: 24rpx;
  1062. line-height: 34rpx;
  1063. color: #999999;
  1064. }
  1065. .order-details .address .name {
  1066. margin-bottom: 12rpx;
  1067. font-weight: 500;
  1068. font-size: 30rpx;
  1069. line-height: 42rpx;
  1070. color: #333333;
  1071. }
  1072. .order-details .address .name .iconfont {
  1073. margin-right: 8rpx;
  1074. font-size: 32rpx;
  1075. }
  1076. .order-details .address .name .phone {
  1077. margin-left: 40upx;
  1078. }
  1079. .order-details .line {
  1080. position: absolute;
  1081. bottom: 0;
  1082. left: 0;
  1083. width: 100%;
  1084. height: 4rpx;
  1085. }
  1086. .order-details .line image {
  1087. width: 100%;
  1088. height: 100%;
  1089. display: block;
  1090. }
  1091. .order-details .wrapper {
  1092. padding: 32rpx 24rpx;
  1093. border-radius: 24rpx;
  1094. margin-top: 20rpx;
  1095. background: #FFFFFF;
  1096. }
  1097. .order-details .wrapper .title{
  1098. font-family: PingFang SC, PingFang SC;
  1099. font-weight: 500;
  1100. font-size: 28rpx;
  1101. color: #3D3D3D;
  1102. margin-bottom: 32rpx;
  1103. }
  1104. .order-details .wrapper .item {
  1105. font-size: 28rpx;
  1106. line-height: 40rpx;
  1107. color: #333333;
  1108. }
  1109. .order-details .wrapper .item~.item {
  1110. margin-top: 24rpx;
  1111. }
  1112. .order-details .wrapper .item .conter {
  1113. // color: #868686;
  1114. // width: 468rpx;
  1115. // display: flex;
  1116. // flex-wrap: nowrap;
  1117. // justify-content: flex-end;
  1118. // text-align: right;
  1119. .pictrue {
  1120. width: 80rpx;
  1121. height: 80rpx;
  1122. margin-left: 6rpx;
  1123. image {
  1124. width: 100%;
  1125. height: 100%;
  1126. border-radius: 6rpx;
  1127. }
  1128. }
  1129. }
  1130. .order-details .wrapper .item .conter .copy {
  1131. height: 36rpx;
  1132. padding: 0 12rpx;
  1133. border: 0;
  1134. border-radius: 18rpx;
  1135. margin-left: 8rpx;
  1136. background: #F5F5F5;
  1137. font-size: 22rpx;
  1138. line-height: 36rpx;
  1139. color: #333333;
  1140. }
  1141. .order-details .wrapper .actualPay {
  1142. margin-top: 26rpx;
  1143. }
  1144. .order-details .wrapper .actualPay .money {
  1145. font-weight: bold;
  1146. font-size: 30upx;
  1147. color: #e93323;
  1148. }
  1149. .order-details .footer {
  1150. width: 100%;
  1151. height: 100upx;
  1152. position: fixed;
  1153. bottom: 0;
  1154. left: 0;
  1155. background-color: #fff;
  1156. padding: 0 30upx;
  1157. border-top: 1px solid #eee;
  1158. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1159. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1160. padding-bottom: calc(0rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1161. padding-bottom: calc(0rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1162. }
  1163. .order-details .footer .wait {
  1164. color: #2a7efb;
  1165. margin-right: 30rpx;
  1166. }
  1167. .order-details .footer .bnt {
  1168. width: 144rpx;
  1169. height: 56rpx;
  1170. border: 1rpx solid #CCCCCC;
  1171. line-height: 54rpx;
  1172. text-align: center;
  1173. border-radius: 28rpx;
  1174. font-size: 24rpx;
  1175. color: #333333;
  1176. transform: rotateZ(360deg);
  1177. &.on {
  1178. color: #c5c8ce !important;
  1179. background: #f7f7f7 !important;
  1180. border: 1px solid #dcdee2 !important;
  1181. }
  1182. }
  1183. .order-details .footer .bnt.cancel {
  1184. // color: #333333;
  1185. // border: 1px solid #CCCCCC;
  1186. }
  1187. .order-details .footer .bnt.default {
  1188. color: #444;
  1189. border: 1px solid #444;
  1190. }
  1191. .order-details .footer .bnt~.bnt {
  1192. margin-left: 16rpx;
  1193. }
  1194. .pos-order-goods {
  1195. padding: 32rpx 24rpx;
  1196. border-radius: 24rpx;
  1197. background: #FFFFFF;
  1198. }
  1199. .pos-order-goods.split {
  1200. margin-top: 20rpx;
  1201. }
  1202. .pos-order-goods .title {
  1203. height: 40rpx;
  1204. margin-bottom: 32rpx;
  1205. font-size: 28rpx;
  1206. color: #333333;
  1207. }
  1208. .pos-order-goods .title .btn {
  1209. font-size: 26rpx;
  1210. color: #999999;
  1211. }
  1212. .pos-order-goods .title .btn .iconfont {
  1213. font-size: 24rpx;
  1214. }
  1215. .pos-order-goods.split .goods {}
  1216. .pos-order-goods .goods~.goods {
  1217. margin-top: 32rpx;
  1218. }
  1219. .pos-order-goods .goods .picTxt {
  1220. flex: 1;
  1221. min-width: 0;
  1222. }
  1223. .pos-order-goods .goods .picTxt .pictrue {
  1224. width: 136rpx;
  1225. height: 136rpx;
  1226. }
  1227. .pos-order-goods .goods .picTxt .pictrue image {
  1228. width: 100%;
  1229. height: 100%;
  1230. border-radius: 16rpx;
  1231. }
  1232. .pos-order-goods .goods .picTxt .text {
  1233. flex: 1;
  1234. min-width: 0;
  1235. padding-left: 20rpx;
  1236. }
  1237. .pos-order-goods .goods .picTxt .text .info {
  1238. font-size: 28rpx;
  1239. line-height: 40rpx;
  1240. color: #333333;
  1241. }
  1242. .pos-order-goods .goods .picTxt .text .info .label {
  1243. color: #ff4c3c;
  1244. }
  1245. .pos-order-goods .goods .picTxt .text .attr {
  1246. margin-top: 8rpx;
  1247. font-size: 24rpx;
  1248. line-height: 34rpx;
  1249. color: #999999;
  1250. }
  1251. .pos-order-goods .goods .money {
  1252. width: 144rpx;
  1253. text-align: right;
  1254. }
  1255. .pos-order-goods .goods .money .writeOff {
  1256. font-size: 24upx;
  1257. margin-top: 17upx;
  1258. color: #1890FF;
  1259. }
  1260. .pos-order-goods .goods .money .writeOff .on {
  1261. color: #FF7E00;
  1262. }
  1263. .pos-order-goods .goods .money .x-money {
  1264. color: #282828;
  1265. }
  1266. .pos-order-goods .goods .money .num {
  1267. margin-top: 10rpx;
  1268. font-size: 24rpx;
  1269. line-height: 34rpx;
  1270. color: #999999;
  1271. }
  1272. .pos-order-goods .goods .money .y-money {
  1273. color: #999;
  1274. text-decoration: line-through;
  1275. }
  1276. .public-total {
  1277. font-size: 28upx;
  1278. color: #282828;
  1279. border-top: 1px solid #eee;
  1280. height: 92upx;
  1281. line-height: 92upx;
  1282. text-align: right;
  1283. padding: 0 30upx;
  1284. background-color: #fff;
  1285. }
  1286. .public-total .money {
  1287. color: #ff4c3c;
  1288. }
  1289. .copy-data {
  1290. font-size: 10px;
  1291. color: #333;
  1292. -webkit-border-radius: 1px;
  1293. border-radius: 1px;
  1294. border: 1px solid #666;
  1295. padding: 0px 7px;
  1296. margin-left: 12px;
  1297. height: 20px;
  1298. }
  1299. .pos-order-goods .mark {
  1300. margin-top: 32rpx;
  1301. font-size: 28rpx;
  1302. line-height: 40rpx;
  1303. color: #333333;
  1304. .name {
  1305. width: 136rpx;
  1306. }
  1307. .value {
  1308. flex: 1;
  1309. }
  1310. }
  1311. .mask {
  1312. z-index: 21;
  1313. }
  1314. .confirm-popup {
  1315. position: fixed;
  1316. top: 50%;
  1317. right: 75rpx;
  1318. left: 75rpx;
  1319. z-index: 21;
  1320. transform: translateY(-50%);
  1321. border-radius: 32rpx;
  1322. background: #FFFFFF;
  1323. text-align: center;
  1324. .title {
  1325. padding: 40rpx 32rpx 0;
  1326. font-weight: 500;
  1327. font-size: 32rpx;
  1328. line-height: 52rpx;
  1329. color: #333333;
  1330. }
  1331. .info {
  1332. padding: 24rpx 40rpx 0;
  1333. font-size: 30rpx;
  1334. line-height: 42rpx;
  1335. color: #666666;
  1336. }
  1337. .btn-box {
  1338. padding: 40rpx;
  1339. }
  1340. .btn {
  1341. flex: 1;
  1342. height: 72rpx;
  1343. border: 1rpx solid #2A7EFB;
  1344. border-radius: 36rpx;
  1345. margin-left: 32rpx;
  1346. font-weight: 500;
  1347. font-size: 26rpx;
  1348. line-height: 70rpx;
  1349. color: #2A7EFB;
  1350. transform: rotateZ(360deg);
  1351. &.primary {
  1352. background: #2A7EFB;
  1353. color: #FFFFFF;
  1354. }
  1355. }
  1356. }
  1357. .user-box {
  1358. padding: 24rpx;
  1359. border-radius: 24rpx;
  1360. margin-top: 20rpx;
  1361. background: #FFFFFF;
  1362. .image {
  1363. width: 80rpx;
  1364. height: 80rpx;
  1365. border-radius: 50%;
  1366. }
  1367. .text {
  1368. flex: 1;
  1369. padding-left: 20rpx;
  1370. font-size: 24rpx;
  1371. line-height: 34rpx;
  1372. color: #999999;
  1373. }
  1374. .name {
  1375. margin-bottom: 4rpx;
  1376. font-weight: 500;
  1377. font-size: 28rpx;
  1378. line-height: 40rpx;
  1379. color: #333333;
  1380. }
  1381. .svip {
  1382. width: 56rpx;
  1383. height: 26rpx;
  1384. border-radius: 14rpx;
  1385. margin-left: 12rpx;
  1386. background: linear-gradient(90deg, #484643 0%, #1F1B17 100%);
  1387. text-align: center;
  1388. font-weight: 600;
  1389. font-size: 18rpx;
  1390. line-height: 26rpx;
  1391. color: #FDDAA4;
  1392. }
  1393. .grade {
  1394. height: 26rpx;
  1395. padding: 0 10rpx;
  1396. border: 1rpx solid #FACC7D;
  1397. border-radius: 14rpx;
  1398. margin-left: 10rpx;
  1399. background: #FEF0D9;
  1400. font-weight: 500;
  1401. font-size: 18rpx;
  1402. line-height: 24rpx;
  1403. color: #DFA541;
  1404. transform: rotateZ(360deg);
  1405. .iconfont {
  1406. margin-right: 6rpx;
  1407. font-size: 18rpx;
  1408. }
  1409. }
  1410. }
  1411. .customForm /deep/ .wrapper .item .conter {
  1412. width: auto;
  1413. }
  1414. </style>