|
|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<el-container>
|
|
|
<el-main>
|
|
|
+ <div style="margin-bottom: 10px;" v-if="formData.status==4">
|
|
|
+ <el-alert title="驳回原因" show-icon type="error" :closable="false">{{ formData.reason }}</el-alert>
|
|
|
+ </div>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="18">
|
|
|
<el-form ref="dialogForm" :model="formData" :rules="rules" label-width="140px" label-position="right">
|
|
|
@@ -633,14 +636,18 @@ export default {
|
|
|
label: "name"
|
|
|
},
|
|
|
typeData:null,
|
|
|
- categoryData:[]
|
|
|
+ categoryData:[],
|
|
|
+ optionData:null
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
|
this.getData()
|
|
|
var id = this.$route.query.id;
|
|
|
var product_id = this.$route.query.product_id;
|
|
|
- this.getDetail(id,product_id);
|
|
|
+ this.optionData = {
|
|
|
+ id:id,
|
|
|
+ product_id:product_id
|
|
|
+ };
|
|
|
// this.formData.sold_start_time = this.formattedCurrentDate();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -655,6 +662,7 @@ export default {
|
|
|
},
|
|
|
async getDetail(id,product_id){
|
|
|
var resp = await this.$API.merGoods.detail.get({"id":id,"product_id":product_id});
|
|
|
+ this.showNext = true;
|
|
|
if (resp.code == 0) {
|
|
|
this.$message.error(resp.msg);
|
|
|
setTimeout(function(){
|
|
|
@@ -741,12 +749,14 @@ export default {
|
|
|
},
|
|
|
async getData(){
|
|
|
this.channelLoad = true;
|
|
|
+ this.showNext = false;
|
|
|
var resp = await this.$API.merGoods.category.get();
|
|
|
this.channelLoad = false;
|
|
|
if (resp.code == 0) {
|
|
|
return this.$message.error(resp.msg)
|
|
|
}
|
|
|
this.categoryData = resp.data;
|
|
|
+ this.getDetail(this.optionData.id,this.optionData.product_id);
|
|
|
// this.getCate()
|
|
|
},
|
|
|
async getCate(){
|