Commit 607a25ba by cpa

商品审核通过

parent 3b839a2a
<template>
<div class="execution">
<basic-container v-loading="loading">
......@@ -140,10 +139,8 @@
</div>
<div class="layout_v">
<el-button class="self_center" @click="shipsImmediatelySub">立即发货</el-button>
<el-button class="self_center" @click="cancelOrderSub">取消订单</el-button>
<el-button class="self_center" @click="handleClose">返回</el-button>
</div>
</basic-container>
</div>
......@@ -153,6 +150,7 @@
<script>
import {getGoodsDetails, getGoodsInfo,shipsImmediatelyApi,cancelOrderSubApi} from '@/api/mall/merchantMallgoods'
import {ZmMixin} from '@/mixins/ZmMixin.js'
import {mock} from "@/views/businessGoods/goodsEdit/mock_data";
export default {
mixins: [ZmMixin],
data() {
......@@ -161,7 +159,23 @@
//选择的规格
specs: [],
info: {},
form: {}
form: {
goodsName: "",
goodsClassId: "",
listImage: "",
detailImage: "",
videoUrl: "",
authUrl: "",
details: "",
fakeNumber: 0,
needReal: true,
payWithA: true,
needVideo: true,
needContract: true,
needDelivery: true,
hireRate: 0,
skus: [],
}
}
},
mounted() {
......@@ -226,14 +240,17 @@
}
},
loadInfo() {
this.loading = true
getGoodsDetails({
id: this.id
}).then(r => {
getGoodsDetails({id:this.id}).then(r=>{
if(this.zmRes(r).skus){
this.form=this.zmRes(r)
}
}).catch(r => {
this.loading = false
this.refill(this.zmRes(r))
return getGoodsInfo({id: this.id})
}).then(r => {
this.error('加载信息失败')
})
getGoodsInfo({id: this.id}).then(r=>{
this.info = this.zmRes(r)
}).catch(r => {
this.loading = false
......@@ -244,20 +261,6 @@
handleClose() {
this.$router.go(-1)
},
shipsImmediatelySub() {
shipsImmediatelyApi().then(r=>{
}).catch(e=>{
})
},
cancelOrderSub() {
cancelOrderSubApi().then(r=>{
}).catch(e=>{
})
},
}
}
</script>
......
......@@ -167,6 +167,9 @@
if(a.search('平台下架') != -1){
this.$message.error('平台下架商品,无法操作')
return;
}else if(a.search('有效') != -1) {
this.$message.error('商品已经上架')
return;
}else {
let ids = d.map(r => { return r.id }).join(',')
this.$confirm('请确认是否上架已勾选的商品', '提示', {
......
......@@ -169,6 +169,7 @@
<script>
import {getOrderInfo,cancelOrderMethod} from '@/api/mall/merchantMallorder'
import {ZmMixin} from '@/mixins/ZmMixin.js'
import {cancelOrderSubApi, shipsImmediatelyApi} from "@/api/mall/merchantMallgoods";
export default {
name:"businessOrder",
mixins: [ZmMixin],
......@@ -336,6 +337,19 @@
this.error('加载信息失败')
})
},
shipsImmediatelySub() {
shipsImmediatelyApi().then(r=>{
}).catch(e=>{
})
},
cancelOrderSub() {
cancelOrderSubApi().then(r=>{
}).catch(e=>{
})
},
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment