Commit 607a25ba by cpa

商品审核通过

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