detail.php 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799
  1. <?php
  2. use common\helpers\ComponentHelper;
  3. ComponentHelper::loadComponentView('component/order-shipping', __DIR__);
  4. ?>
  5. <div id="app" v-cloak>
  6. <el-card shadow="never" style="border: none;" body-style="background-color: #f3f3f3;padding: 10px 0 0;"
  7. v-loading="cardLoading">
  8. <div slot="header">
  9. <span>订单详情</span>
  10. </div>
  11. <el-card class="card-box step-box marign-b-20" shadow="never">
  12. <el-steps :active="stepArrActive">
  13. <el-step v-for="(item,index) in stepArr" :key="index" :title="item.title"
  14. :description="item.created_at|dateTimeFormat('Y-m-d H:i:s')">
  15. <template slot="icon">
  16. <div class="step-inactive" :class="item.is_step == 1 ? 'step-outside' : ''">
  17. <div class="step-inside" :class="item.is_step == 1 ? 'step-active' : ''">{{ index + 1 }}
  18. </div>
  19. </div>
  20. </template>
  21. </el-step>
  22. </el-steps>
  23. </el-card>
  24. <el-row :gutter="20" class="el-row-flex marign-b-20">
  25. <el-col :span="8">
  26. <el-card class="card-box" shadow="never">
  27. <div slot="header" class="clearfix row-card-header">
  28. <span>订单信息</span>
  29. </div>
  30. <div class="text-item">
  31. <span>订单状态</span><span>{{ orderDetail ? order_status_list[orderDetail.order_status] : '--' }}</span>
  32. </div>
  33. <div class="text-item">
  34. <span>订单编号</span><span>{{ orderDetail.order_no }}</span>
  35. </div>
  36. <div class="text-item">
  37. <span>交易单号</span><span>{{ orderDetail.out_trade_no || '--' }}</span>
  38. </div>
  39. <div class="text-item">
  40. <span>订单类型</span><span>普通订单</span>
  41. </div>
  42. <div class="text-item">
  43. <span>订单来源</span><span>{{marketing_type_map[orderDetail.marketing_type]? marketing_type_map[orderDetail.marketing_type] : '--' }}</span>
  44. </div>
  45. <div class="text-item">
  46. <span>支付方式</span><span>{{ payment_type_list[orderDetail.payment_type] }}</span>
  47. </div>
  48. <div class="text-item">
  49. <span>卖家备注</span>
  50. <span>{{ orderDetail.seller_remark || '--' }}</span>
  51. <!-- <span><el-button type="text" size="mini" @click="handle('remark')">备注</el-button></span>-->
  52. </div>
  53. </el-card>
  54. </el-col>
  55. <el-col :span="8">
  56. <el-card class="card-box " shadow="never">
  57. <div slot="header" class="clearfix row-card-header">
  58. <span>买家及收货信息</span>
  59. </div>
  60. <div class="text-item">
  61. <span>买家</span><span>{{ orderDetail.base_user.nickname }}</span>
  62. </div>
  63. <div class="text-item">
  64. <span>买家备注</span><span>{{ orderDetail.remark || '--' }}</span>
  65. </div>
  66. <div class="text-item">
  67. <span>配送方式</span><span>{{ shipping_type_list[orderDetail.shipping_type] }}</span>
  68. </div>
  69. <div class="text-item">
  70. <span>收货人</span><span>{{ orderDetail.receiver_name || '--' }}</span>
  71. </div>
  72. <div class="text-item">
  73. <span>收货地址</span><span>{{ orderDetail.region_name }} {{ orderDetail.address }}</span>
  74. </div>
  75. <div class="text-item">
  76. <span>手机号码</span><span>{{ orderDetail.mobile }}</span>
  77. </div>
  78. </el-card>
  79. </el-col>
  80. <el-col :span="8">
  81. <el-card class="card-box" shadow="never">
  82. <div slot="header" class="clearfix row-card-header">
  83. <span>结算信息</span>
  84. </div>
  85. <div class="text-item">
  86. <span>商品小计</span>
  87. <span>¥{{orderDetail.goods_price}}</span>
  88. </div>
  89. <div class="text-item">
  90. <span>运费</span>
  91. <span>¥{{orderDetail.shipping_money}}</span>
  92. </div>
  93. <div class="text-item" v-if="orderDetail.score_money > 0">
  94. <span>积分抵扣</span>
  95. <span>- ¥{{orderDetail.score_money}}</span>
  96. </div>
  97. <div class="text-item" v-if="orderDetail.coupon_money > 0">
  98. <span>优惠券抵扣</span>
  99. <span>¥{{orderDetail.coupon_money}}</span>
  100. </div>
  101. <div class="text-item">
  102. <span>实付款</span>
  103. <span>¥{{orderDetail.pay_money}}</span>
  104. </div>
  105. </el-card>
  106. </el-col>
  107. </el-row>
  108. <el-card class="card-box marign-b-20" shadow="never">
  109. <div slot="header" class="clearfix row-card-header">
  110. <span>商品信息</span>
  111. </div>
  112. <div v-if="orderDetail.detail" class="order-goods">
  113. <el-table :data="orderDetail.detail" style="width: 100%;"
  114. :header-cell-style="{background:'#F7F7F7','border-bottom': 0}">
  115. <el-table-column label="明细id" width="100">
  116. <template slot-scope="scope">
  117. <div>{{ scope.row.id }}
  118. </div>
  119. </template>
  120. </el-table-column>
  121. <el-table-column label="商品id" width="100">
  122. <template slot-scope="scope">
  123. <div>{{ scope.row.goods_id }}
  124. </div>
  125. </template>
  126. </el-table-column>
  127. <el-table-column label="商品" width="260">
  128. <template slot-scope="scope">
  129. <div style="position: relative;display: flex;align-items: center;">
  130. <el-image style="width: 66px; height: 50px;border-radius: 5px;"
  131. :src="scope.row.pic_url"></el-image>
  132. <span v-if="repeal_list[scope.row.is_feedback]" class="com-order-refund-status">{{ repeal_list[scope.row.is_feedback] }}</span>
  133. <com-ellipsis :line="2" style="margin-left: 10px;">
  134. {{ scope.row.goods_name }}
  135. </com-ellipsis>
  136. </div>
  137. </template>
  138. </el-table-column>
  139. <el-table-column label="单价" width="210">
  140. <template slot-scope="scope">
  141. <div>{{ getOrderPrice(scope.row) }}
  142. <span v-if="scope.row.adjust_money != 0">(调价:¥{{ scope.row.adjust_money }})</span>
  143. </div>
  144. </template>
  145. </el-table-column>
  146. <el-table-column label="购买数量" width="210">
  147. <template slot-scope="scope">
  148. <div>{{ scope.row.num }}</div>
  149. </template>
  150. </el-table-column>
  151. <el-table-column label="优惠" width="210">
  152. <template slot-scope="scope">
  153. <div>¥{{(scope.row.original_goods_price - scope.row.goods_price - orderDetail.score_money).toFixed(2)}}</div>
  154. </template>
  155. </el-table-column>
  156. <el-table-column label="小计" width="210">
  157. <template slot-scope="scope">
  158. <div>{{ getOrderPrice(orderDetail) }}</div>
  159. </template>
  160. </el-table-column>
  161. <el-table-column label="状态">
  162. <template slot-scope="scope">
  163. <div>{{ order_status_list[scope.row.order_status] }}</div>
  164. </template>
  165. </el-table-column>
  166. </el-table>
  167. </div>
  168. </el-card>
  169. <el-card v-if="orderDetail.express.length > 0" class="card-box marign-b-20" shadow="never">
  170. <div slot="header" class="clearfix row-card-header">
  171. <span>物流包裹</span>
  172. </div>
  173. <template>
  174. <el-tabs class="package" v-model="activePackage" type="card">
  175. <template v-for="(item,index) in orderDetail.express">
  176. <el-tab-pane :label="'包裹'+(index+1)" :key="index">
  177. <el-row style="width: 100%;">
  178. <el-col :span="24">
  179. <div class="package-item">
  180. <span>发货方式:</span><span
  181. class="text-color-primary">{{send_type[item.shipping_type]}}</span>
  182. </div>
  183. <div class="package-item">
  184. <span>发货人:</span><span>{{item.operator_username}}</span>
  185. </div>
  186. <div class="package-item">
  187. <span>发货时间:</span><span>{{ item.created_at|dateTimeFormat('Y-m-d H:i:s')}}</span>
  188. </div>
  189. <div class="package-item">
  190. <span>运单编号:</span><span v-if="item.express_no" class="range-right">{{item.express_no}}</span>
  191. <!-- <el-button-->
  192. <!-- v-if="orderDetail && orderDetail.order_status == 2 && item.created_at == item.updated_at"-->
  193. <!-- type="text" @click="handle('shipping', item)" style="padding: 0px;">修改物流-->
  194. <!-- </el-button>-->
  195. </div>
  196. <div class="package-item" flex="dir:left">
  197. <span style="line-height: 50px;">包裹商品:</span>
  198. <ul flex="dir:left cross:center" style="with=100%;overflow-y:auto;">
  199. <template v-for="val in (JSON.parse(item.order_detail_ids))">
  200. <li><el-image :src="goodDetails[val].pic_url"></el-image></li>
  201. <li class="range-right" style="width: 150px;padding-bottom:5px">
  202. <com-ellipsis :line="1" :text="goodDetails[val].goods_name"></com-ellipsis>
  203. 数量:<span style="color: red">{{goodDetails[val].num}}</span>
  204. <com-ellipsis :line="1">
  205. <template v-if="goodDetails[val].attr_list && goodDetails[val].attr_list.length > 0">
  206. <template v-for="(attrItem, attrIndex) in goodDetails[val].attr_list" size="small">
  207. {{ attrItem }}
  208. </template>
  209. </template>
  210. </com-ellipsis>
  211. </li>
  212. </template>
  213. </ul>
  214. </div>
  215. <div class="package-item">
  216. <span>商家备注:</span><span class="range-right">{{item.memo}}</span>
  217. </div>
  218. <div class="package-item" style="width:100%;">
  219. <span>物流状态:</span>
  220. <span class="text-color-success">{{item.now_state?item.now_state:'暂无物流信息'}}</span>
  221. <div v-if="item.express_log && item.express_log.length > 0" style="padding: 20px;font-size: 12px">
  222. <div style="padding: 2px;height:200px;overflow-y:auto;">
  223. <div>
  224. <el-timeline>
  225. <el-timeline-item
  226. v-for="(express_log, val) in item.express_log"
  227. :key="val"
  228. :size="normal"
  229. :color="val==0?'#409eff':''"
  230. :timestamp="express_log.AcceptTime">
  231. {{express_log.AcceptStation}}
  232. </el-timeline-item>
  233. </el-timeline>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. </el-col>
  239. </el-row>
  240. </el-tab-pane>
  241. </template>
  242. </el-tabs>
  243. </template>
  244. </el-card>
  245. <el-card v-if="orderAction.length > 0" class="card-box marign-b-20" shadow="never">
  246. <div slot="header" class="clearfix row-card-header">
  247. <span>订单操作日志</span>
  248. </div>
  249. <el-table :data="orderAction" v-loading="logLoading" style="width: 100%;" size="small" stripe>
  250. <el-table-column prop="member_name" label="用户" width="90">
  251. <template slot-scope="scope">
  252. <div>{{ scope.row.member_name }}</div>
  253. </template>
  254. </el-table-column>
  255. <el-table-column prop="created_at" label="操作时间" width="160">
  256. <template slot-scope="scope">
  257. <div>{{ scope.row.created_at|dateTimeFormat('Y-m-d H:i:s') }}</div>
  258. </template>
  259. </el-table-column>
  260. <el-table-column prop="action" label="详情">
  261. <template slot-scope="scope">
  262. <div>{{ scope.row.action }}</div>
  263. </template>
  264. </el-table-column>
  265. </el-table>
  266. </el-card>
  267. <!-- <el-card v-if="orderDetail">-->
  268. <!-- <el-button type="primary" v-if="orderDetail.order_status == 1" size="small"-->
  269. <!-- @click="handle('shipping', orderDetail)">发货-->
  270. <!-- </el-button>-->
  271. <!-- <el-button type="primary" v-if="orderDetail.order_status == 2" size="small"-->
  272. <!-- @click="handle('take-delivery', orderDetail)">确认收货-->
  273. <!-- </el-button>-->
  274. <!-- <el-button type="primary" v-if="orderDetail.order_status == 3" size="small"-->
  275. <!-- @click="handle('sales', orderDetail)">订单完成-->
  276. <!-- </el-button>-->
  277. <!-- </el-card>-->
  278. </el-card>
  279. <!-- 修改物流发货 -->
  280. <order-shipping :is_show="isShowChangeShipping" :change-shipping-loading="changeShippingLoading"
  281. :order_info="orderDetail" :shipping_form="shipping_form" @submit="handleShipping"
  282. @close="isShowChangeShipping = false"></order-shipping>
  283. <!-- 商家备注 -->
  284. <el-dialog title="商家备注" width="600px" :visible.sync="isShowRemark">
  285. <el-form :model="remark_form" label-width="80px" size="small">
  286. <el-form-item label="备注" prop="seller_remark">
  287. <el-input type="textarea" v-model="remark_form.seller_remark"></el-input>
  288. </el-form-item>
  289. </el-form>
  290. <div slot="footer" class="dialog-footer">
  291. <el-button @click="isShowRemark = false">取 消</el-button>
  292. <el-button type="primary" @click="handle('remark',remark_form,true)" :loading="remarkLoading">确 定</el-button>
  293. </div>
  294. </el-dialog>
  295. </div>
  296. <script>
  297. const app = new Vue({
  298. el: '#app',
  299. data() {
  300. return {
  301. id: 0,
  302. count: 6,
  303. detail: {},
  304. isShowChangeShipping: false,
  305. changeShippingLoading: false,
  306. remarkLoading: false,
  307. isShowRemark: false,
  308. shipping_form: {},
  309. remark_form: {
  310. seller_remark: null,
  311. },
  312. activePackage: '0',
  313. cardLoading: false,
  314. logLoading: false,
  315. goodDetails: [],
  316. orderAction: [],
  317. repeal_list: {
  318. '1': '售后中',
  319. '2': '售后完成',
  320. },
  321. marketing_type_map:{},
  322. stepArr: [
  323. {
  324. title: '买家下单',
  325. created_at: '0',
  326. is_step: 0,
  327. },
  328. {
  329. title: '买家付款',
  330. created_at: '0',
  331. is_step: 0,
  332. },
  333. {
  334. title: '商家发货',
  335. created_at: '0',
  336. is_step: 0,
  337. },
  338. {
  339. title: '交易完成',
  340. created_at: '0',
  341. is_step: 0,
  342. }
  343. ],
  344. stepArrActive: 0,
  345. orderDetail: {
  346. base_user: {},
  347. express: []
  348. },
  349. orderExpress: [],
  350. order_status_list: {
  351. '0': "待付款",
  352. '1': "待发货",
  353. '2': "已发货",
  354. '3': "已收货",
  355. '4': "已完成",
  356. '-1': "售后申请",
  357. '-2': "退款中",
  358. '-3': "售后完成",
  359. '-4': "已关闭",
  360. '-5': "撤销申请",
  361. },
  362. payment_type_list: {
  363. '0': "在线支付",
  364. '1': "微信",
  365. '2': "支付宝",
  366. '3': "银联卡",
  367. '5': "余额支付",
  368. '7': "汇聚支付",
  369. '8': "汇聚快捷支付",
  370. '100': "线下支付"
  371. },
  372. shipping_type_list: {
  373. '1': "物流配送",
  374. '2': "买家自提",
  375. '3': "货到付款",
  376. '4': "本地配送"
  377. },
  378. send_type: {
  379. '0': "无需物流",
  380. '1': "快递",
  381. },
  382. activities: [{
  383. content: '支持使用图标',
  384. timestamp: '2018-04-12 20:46',
  385. size: 'normal',
  386. color: '#409eff'
  387. }, {
  388. content: '支持自定义颜色',
  389. timestamp: '2018-04-03 20:46',
  390. }, {
  391. content: '支持自定义尺寸',
  392. timestamp: '2018-04-03 20:46',
  393. size: 'large'
  394. }, {
  395. content: '默认样式的节点',
  396. timestamp: '2018-04-03 20:46'
  397. }, {
  398. content: '默认样式的节点',
  399. timestamp: '2018-04-03 20:46'
  400. }, {
  401. content: '默认样式的节点',
  402. timestamp: '2018-04-03 20:46'
  403. }, {
  404. content: '默认样式的节点',
  405. timestamp: '2018-04-03 20:46'
  406. }, {
  407. content: '默认样式的节点',
  408. timestamp: '2018-04-03 20:46'
  409. }]
  410. };
  411. },
  412. created() {
  413. this.id = getQuery('id');
  414. },
  415. mounted() {
  416. this.getDetail();
  417. },
  418. methods: {
  419. load() {
  420. // this.count += 2
  421. },
  422. handleShipping(data) {
  423. this.handle('shipping', data, true);
  424. },
  425. getDetail() {
  426. let self = this;
  427. self.cardLoading = true;
  428. request({
  429. params: {
  430. r: 'mch/store-order/detail',
  431. id: self.id
  432. },
  433. method: 'get',
  434. }).then(e => {
  435. self.cardLoading = false;
  436. if (e.data.code == 0) {
  437. var data = e.data.data;
  438. self.orderDetail = data.order;
  439. self.orderAction = data.order_action;
  440. Object.keys(self.orderDetail.detail).forEach(function (item) {
  441. self.goodDetails[self.orderDetail.detail[item].id] = self.orderDetail.detail[item];
  442. });
  443. self.order_status_list = data.order_status_list;
  444. self.marketing_type_map = data.marketing_type_map;
  445. self.payment_type_list = data.payment_type_list;
  446. self.shipping_type_list = data.shipping_type_list;
  447. self.remark_form.seller_remark = self.orderDetail.seller_remark;
  448. if (!isEmpty(data.step_arr)) self.getStepArr(data.step_arr, data.order);
  449. } else {
  450. self.$message.error(e.data.msg);
  451. }
  452. }).catch(e => {
  453. console.log(e);
  454. });
  455. },
  456. getStepArr(stepArr, order) {
  457. var newStepArr = [];
  458. var index = 0;
  459. stepArr.forEach(function (item) {
  460. let step = {};
  461. var field_key = item.field;
  462. step['title'] = item.title;
  463. step['created_at'] = order[field_key];
  464. step['is_step'] = order[field_key] ? 1 : 0;
  465. newStepArr.push(step);
  466. if (step['is_step'] == 1) index++;
  467. });
  468. this.stepArrActive = index;
  469. this.stepArr = newStepArr;
  470. },
  471. handle(type, data = null, submit = false) {
  472. let id = data ? parseInt(data.id) : '';
  473. let url = 'mch/store-order/operate'
  474. switch (type) {
  475. // 订单详情
  476. case 'detail':
  477. let params = {
  478. r: 'mch/store-order/detail'
  479. };
  480. if (id) params = Object.assign(params, {
  481. id: id
  482. });
  483. navigateTo(params);
  484. break;
  485. // 删除订单
  486. case 'destroy':
  487. param = {
  488. id: data.id,
  489. type
  490. };
  491. this.$confirm('删除该条数据后不可以恢复, 是否继续?', '警告', {
  492. type: 'warning'
  493. }).then(() => {
  494. this.send(param)
  495. }).catch((err) => {
  496. })
  497. break;
  498. // 取消订单
  499. case 'cancel':
  500. param = {
  501. id: id
  502. };
  503. this.$confirm('确定关闭订单吗?', '警告', {
  504. type: 'warning'
  505. }).then(() => {
  506. this.send('mch/store-order/close', param)
  507. }).catch((err) => {
  508. })
  509. break;
  510. // 修改订单价格
  511. case 'change_price':
  512. if (submit) {
  513. this.changePriceLoading = true;
  514. this.send('mch/store-order/change-price', this.change_price_form, (resp) => {
  515. if (resp.code == 0) this.isShowChangePrice = false;
  516. });
  517. setTimeout(() => {
  518. this.changePriceLoading = false;
  519. }, 100);
  520. } else {
  521. this.isShowChangePrice = true
  522. var objString = JSON.stringify(data);
  523. this.change_price_form = JSON.parse(objString);
  524. }
  525. break;
  526. // 修改收货地址
  527. case 'change_address':
  528. if (submit) {
  529. this.changeAddressLoading = true;
  530. this.send('mch/store-order/change-address', data, (resp) => {
  531. if (resp.code == 0) this.isShowChangeAddress = false;
  532. });
  533. setTimeout(() => {
  534. this.changeAddressLoading = false;
  535. }, 100);
  536. } else {
  537. this.isShowChangeAddress = true
  538. var objString = JSON.stringify(data);
  539. this.change_address_form = JSON.parse(objString);
  540. }
  541. break;
  542. // 订单备注
  543. case 'remark':
  544. if (submit) {
  545. this.remarkLoading = true;
  546. this.remark_form.id = this.id;
  547. this.send('mch/store-order/remark', this.remark_form, (resp) => {
  548. if (resp.code == 0) this.isShowRemark = false;
  549. });
  550. setTimeout(() => {
  551. this.remarkLoading = false;
  552. }, 100);
  553. } else {
  554. this.isShowRemark = true
  555. }
  556. break;
  557. // 物流发货
  558. case 'shipping':
  559. if (submit) {
  560. this.changeShippingLoading = true;
  561. this.send('mch/store-order/shipping', data, (resp) => {
  562. if (resp.code == 0) this.isShowChangeShipping = false;
  563. });
  564. setTimeout(() => {
  565. this.changeShippingLoading = false;
  566. }, 100);
  567. } else {
  568. this.isShowChangeShipping = true
  569. var objString = JSON.stringify(data);
  570. this.shipping_form = JSON.parse(objString);
  571. }
  572. break;
  573. // 收货
  574. case 'take-delivery':
  575. param = {
  576. id: id
  577. };
  578. this.$confirm('确定收货吗?', '警告', {
  579. type: 'warning'
  580. }).then(() => {
  581. this.send('mch/store-order/take-delivery', param)
  582. }).catch((err) => {
  583. })
  584. break;
  585. // 订单完成
  586. case 'sales':
  587. param = {
  588. id: id
  589. };
  590. this.$confirm('确定完成订单吗?', '警告', {
  591. type: 'warning'
  592. }).then(() => {
  593. this.send('mch/store-order/sales-order', param)
  594. }).catch((err) => {
  595. })
  596. break;
  597. }
  598. },
  599. send(url, params, callback) {
  600. let self = this;
  601. request({
  602. params: {
  603. r: url,
  604. },
  605. method: 'post',
  606. data: params
  607. }).then(e => {
  608. if (e.data.code == 0) {
  609. self.$message.success(e.data.msg);
  610. self.getDetail();
  611. } else {
  612. self.$message.error(e.data.msg);
  613. }
  614. if (callback) callback(e.data);
  615. }).catch(e => {
  616. console.log(e);
  617. });
  618. },
  619. format(num){
  620. return num.toFixed(2);
  621. },
  622. getOrderPrice(data){
  623. let text = '';
  624. switch (data.marketing_type) {
  625. case 'ScoreMall' :
  626. text = data.extra_info;
  627. break;
  628. default :
  629. text = '¥'+data.goods_price;
  630. }
  631. return text;
  632. },
  633. }
  634. });
  635. </script>
  636. <style>
  637. .card-box {
  638. border: none;
  639. }
  640. .marign-b-20 {
  641. margin-bottom: 20px;
  642. }
  643. .step-box {
  644. margin-top: 10px;
  645. padding-top: 10px;
  646. }
  647. .step-inactive {
  648. position: absolute;
  649. top: 50%;
  650. left: 50%;
  651. width: 34px;
  652. height: 34px;
  653. border-radius: 50%;
  654. background-color: #e8e8e8;
  655. transform: translate(-50%, -50%);
  656. }
  657. .step-inside {
  658. position: absolute;
  659. top: 50%;
  660. left: 50%;
  661. width: 25px;
  662. height: 25px;
  663. border-radius: 50%;
  664. background-color: #cccbcb;
  665. transform: translate(-50%, -50%);
  666. text-align: center;
  667. line-height: 24px;
  668. z-index: 9;
  669. color: #fff;
  670. font-size: 12px;
  671. }
  672. .step-active {
  673. background-color: var(--primary, #fb6638);
  674. }
  675. .step-outside {
  676. background-color: transparent;
  677. }
  678. .step-box .el-step__title {
  679. font-size: 14px;
  680. }
  681. .text-item {
  682. padding: 10px 0;
  683. font-size: 12px;
  684. }
  685. .row-card-header {
  686. font-weight: 700;
  687. font-size: 14px;
  688. }
  689. .text-item > span:nth-child(1) {
  690. display: inline-block;
  691. width: 105px;
  692. padding-right: 20px;
  693. text-align: right;
  694. }
  695. .el-row-flex {
  696. display: flex;
  697. flex-flow: row wrap;
  698. }
  699. .el-row-flex .card-box {
  700. height: 100%;
  701. }
  702. .order-goods .el-table th > .cell,
  703. .order-goods .el-table {
  704. font-size: 13px;
  705. }
  706. .package-item {
  707. padding: 10px 0;
  708. font-size: 12px;
  709. }
  710. .package-item > span:nth-child(1) {
  711. display: inline-block;
  712. width: 105px;
  713. padding: 0 20px;
  714. text-align: left;
  715. }
  716. .package-item img {
  717. width: 55px;
  718. height: 55px;
  719. border-radius: 5px;
  720. margin-right: 10px;
  721. }
  722. .range-right {
  723. margin-right: 20px;
  724. }
  725. .com-order-refund-status {
  726. position: absolute;
  727. bottom: 0px;
  728. left: 0px;
  729. height: 20px;
  730. width: 50px;
  731. background-color: #FF7171;
  732. color: #fff;
  733. text-align: center;
  734. border-radius: 0 0 5px 5px;
  735. font-size: 12px;
  736. }
  737. .package .el-tab-pane {
  738. display: flex;
  739. }
  740. .package-item ::-webkit-scrollbar {
  741. width: 5px;
  742. }
  743. .el-timeline {
  744. font-size: 12px;
  745. }
  746. .com-order-count-price{
  747. float: right;
  748. margin-right: 100px;
  749. }
  750. .com-order-count-price .el-form-item{
  751. margin-bottom:0px;
  752. }
  753. </style>