|
@@ -20,59 +20,31 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="shop"> <i class="el-icon-s-shop"></i>{{ shop.name }}</el-col>
|
|
|
- <el-col :span="24" v-for="(item, index) in list" :key="index">
|
|
|
+ <el-col :span="24">
|
|
|
<el-col :span="24" class="goods bode">
|
|
|
- <el-col :span="6"><el-image :src="item.goods.file[0].url"></el-image></el-col>
|
|
|
+ <el-col :span="6"><el-image :src="url"></el-image></el-col>
|
|
|
<el-col :span="18">
|
|
|
<el-col :span="12">
|
|
|
<el-col>
|
|
|
- <p>{{ item.goods.name }}</p>
|
|
|
- </el-col>
|
|
|
- <el-col>
|
|
|
- <p>规格:{{ item.name }}</p>
|
|
|
+ <p>{{ goods.name }}</p>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="money">
|
|
|
<el-col>
|
|
|
- <p v-if="form.type == '0'">¥{{ item.sell_money }}</p>
|
|
|
- <p v-else-if="form.type == '1'">¥{{ item.group_config.money }}</p>
|
|
|
- </el-col>
|
|
|
- <el-col>
|
|
|
- <p>X{{ item.buy_num }}</p>
|
|
|
+ <p>尊荣:{{ goods.cost }}</p>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
- <span class="spanfour" style="color: blue" @click="toUrl(item.goods.url)"> 查看商品来源:{{ item.goods.source }}</span>
|
|
|
+ <p>X{{ form.buy_num }}</p>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="bode">
|
|
|
- <el-col :span="6">运费</el-col>
|
|
|
- <el-col :span="18" class="other" v-if="!item.goods.freight == '0'">{{ item.goods.freight }}</el-col>
|
|
|
- <el-col :span="18" class="other" v-else>包邮</el-col>
|
|
|
- </el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="bode">
|
|
|
<el-col :span="6">订单备注</el-col>
|
|
|
<el-col :span="18" class="other" v-if="form.remarks">{{ form.remarks }}</el-col>
|
|
|
<el-col :span="18" class="other" v-else>暂无备注</el-col>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="bode">
|
|
|
- <el-col :span="6">配送方式</el-col>
|
|
|
- <el-col :span="18" class="other">快递配送</el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="goods_total bode">
|
|
|
- <el-col :span="6">快递费</el-col>
|
|
|
- <el-col :span="18" class="other">
|
|
|
- <p>¥{{ total_detail.freight_total }}</p>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24" class="goods_total bode">
|
|
|
- <el-col :span="8">优惠后实付金额</el-col>
|
|
|
- <el-col :span="16" class="other">
|
|
|
- <p>¥{{ pay.pay_money }}</p>
|
|
|
- </el-col>
|
|
|
- </el-col>
|
|
|
<el-col :span="24" class="bode">
|
|
|
<el-col :span="6">下单时间</el-col>
|
|
|
<el-col :span="18" class="other">{{ form.buy_time }}</el-col>
|
|
@@ -155,7 +127,7 @@
|
|
|
const _ = require('lodash');
|
|
|
const moment = require('moment');
|
|
|
import { mapState, mapGetters, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions } = createNamespacedHelpers('orderDetail');
|
|
|
+const { mapActions } = createNamespacedHelpers('zrOrder');
|
|
|
const { mapActions: dictData } = createNamespacedHelpers('dictData');
|
|
|
const { mapActions: sot } = createNamespacedHelpers('sot');
|
|
|
|
|
@@ -175,8 +147,9 @@ export default {
|
|
|
// 运单号
|
|
|
transport: {},
|
|
|
pay: {},
|
|
|
+ url: '',
|
|
|
// 商品列表
|
|
|
- list: [],
|
|
|
+ goods: {},
|
|
|
// 物流
|
|
|
reverse: false,
|
|
|
activities: [],
|
|
@@ -190,7 +163,6 @@ export default {
|
|
|
},
|
|
|
async created() {
|
|
|
await this.searchOther();
|
|
|
-
|
|
|
await this.search();
|
|
|
},
|
|
|
methods: {
|
|
@@ -203,14 +175,12 @@ export default {
|
|
|
res = await this.fetch(this.id);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `form`, res.data);
|
|
|
- // 地址
|
|
|
+ // // 地址
|
|
|
this.$set(this, `address`, res.data.address);
|
|
|
this.$set(this, `shop`, res.data.shop);
|
|
|
- // 商品
|
|
|
- this.$set(this, `list`, res.data.goods);
|
|
|
- // 应付金额
|
|
|
- this.$set(this, `total_detail`, res.data.total_detail);
|
|
|
- this.$set(this, `pay`, res.data.order.pay);
|
|
|
+ // // 商品
|
|
|
+ this.$set(this, `goods`, res.data.goods);
|
|
|
+ this.$set(this, `url`, res.data.goods.file[0].url);
|
|
|
if (res.data.transport) {
|
|
|
let arr = await this.dictQuery({ code: 'transport_type', value: res.data.transport.shop_transport_type });
|
|
|
if (this.$checkRes(arr)) {
|
|
@@ -238,14 +208,7 @@ export default {
|
|
|
}
|
|
|
this.loading = false;
|
|
|
},
|
|
|
- toUrl(url) {
|
|
|
- if (url) {
|
|
|
- window.open(url, '_blank');
|
|
|
- } else {
|
|
|
- this.$message.error('该商品还未添加网址,无法跳转');
|
|
|
- }
|
|
|
- },
|
|
|
- handleSelect(value) {},
|
|
|
+ handleSelect() {},
|
|
|
// 提交
|
|
|
async onSubmit() {
|
|
|
let form = this.form;
|