detail.php 33 KB

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