商品增加无理由退款等配置,去除专家单位限制
This commit is contained in:
@@ -209,6 +209,31 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="无理由退款(天):">
|
||||||
|
<div class="acea-row">
|
||||||
|
<el-input-number v-model="formValidate.config.withoutReason"></el-input-number>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="价保(天):" >
|
||||||
|
<div class="acea-row">
|
||||||
|
<el-input-number v-model="formValidate.config.confirmed"></el-input-number>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="无理由退款图标:" prop="image">
|
||||||
|
<single-pic v-model="formValidate.config.withoutReasonPic" type="image" :num="1" :width="150" :height="150" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="价保图标:" prop="image">
|
||||||
|
<single-pic v-model="formValidate.config.confirmedPic" type="image" :num="1" :width="150" :height="150" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
@@ -491,6 +516,12 @@ export default {
|
|||||||
id: 0,
|
id: 0,
|
||||||
spec_type: 0,
|
spec_type: 0,
|
||||||
temp_id: '',
|
temp_id: '',
|
||||||
|
config:{
|
||||||
|
withoutReason:null,
|
||||||
|
withoutReasonPic:'',
|
||||||
|
confirmed:null,
|
||||||
|
confirmedPic:'',
|
||||||
|
},
|
||||||
attrs: [],
|
attrs: [],
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
@@ -738,18 +769,26 @@ export default {
|
|||||||
size: 999,
|
size: 999,
|
||||||
sort: 'id,desc'
|
sort: 'id,desc'
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
console.log('dara', data);
|
// console.log('dara', data);
|
||||||
that.brandList=data.content
|
that.brandList=data.content
|
||||||
//若为编辑,应初始化一下品牌
|
//若为编辑,应初始化一下品牌
|
||||||
}),
|
}),
|
||||||
//查询商品规格和分类
|
//查询商品规格和分类
|
||||||
getInfo(id).then(async res => {
|
getInfo(id).then(async res => {
|
||||||
let data = res.productInfo;
|
let data = res.productInfo;
|
||||||
console.log('data:'+data,res)
|
|
||||||
if(data){
|
if(data){
|
||||||
|
console.log('data11111',data)
|
||||||
let cate_id = parseInt(data.cate_id) || 0;
|
let cate_id = parseInt(data.cate_id) || 0;
|
||||||
let brand_id = parseInt(data.brand_id) || 0;
|
let brand_id = parseInt(data.brand_id) || 0;
|
||||||
this.attrs = data.items || [];
|
this.attrs = data.items || [];
|
||||||
|
if (data.config==undefined){
|
||||||
|
data['config']={
|
||||||
|
withoutReason:null,
|
||||||
|
withoutReasonPic:'',
|
||||||
|
confirmed:null,
|
||||||
|
confirmedPic:'',
|
||||||
|
}
|
||||||
|
}
|
||||||
that.formValidate = data;
|
that.formValidate = data;
|
||||||
that.formValidate.cate_id = cate_id;
|
that.formValidate.cate_id = cate_id;
|
||||||
that.formValidate.brand_id = brand_id;
|
that.formValidate.brand_id = brand_id;
|
||||||
|
|||||||
@@ -219,6 +219,7 @@ export default {
|
|||||||
this.$refs.form.getCates()
|
this.$refs.form.getCates()
|
||||||
},
|
},
|
||||||
edit(data) {
|
edit(data) {
|
||||||
|
console.log('data.config',data.config)
|
||||||
this.isAdd = false
|
this.isAdd = false
|
||||||
const _this = this.$refs.form
|
const _this = this.$refs.form
|
||||||
_this.getCates()
|
_this.getCates()
|
||||||
@@ -234,6 +235,12 @@ export default {
|
|||||||
parameter:data.parameter,
|
parameter:data.parameter,
|
||||||
keyword: data.keyword,
|
keyword: data.keyword,
|
||||||
barCode: data.barCode,
|
barCode: data.barCode,
|
||||||
|
// config:data.config==null?{
|
||||||
|
// withoutReason:null,
|
||||||
|
// withoutReasonPic:'',
|
||||||
|
// confirmed:null,
|
||||||
|
// confirmedPic:'',
|
||||||
|
// }:data.config,
|
||||||
storeCategory: data.storeCategory || {id:null},
|
storeCategory: data.storeCategory || {id:null},
|
||||||
storeBrand:data.brandName || {id:null},
|
storeBrand:data.brandName || {id:null},
|
||||||
price: data.price,
|
price: data.price,
|
||||||
|
|||||||
@@ -119,7 +119,8 @@ export default {
|
|||||||
groupName: data.groupName,
|
groupName: data.groupName,
|
||||||
time: data.map.time>9?data.map.time+':00':'0'+data.map.time+':00',
|
time: data.map.time>9?data.map.time+':00':'0'+data.map.time+':00',
|
||||||
continued: data.map.continued,
|
continued: data.map.continued,
|
||||||
status:data.map.status
|
status:data.map.status,
|
||||||
|
rule:data.map.rule
|
||||||
}
|
}
|
||||||
_this.dialog = true
|
_this.dialog = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog :append-to-body="true" :close-on-click-modal="false" :before-close="cancel" :visible.sync="dialog"
|
<el-dialog :append-to-body="true" :close-on-click-modal="false" :before-close="cancel" :visible.sync="dialog"
|
||||||
:title="isAdd ? '新增' : '编辑'" width="500px">
|
:title="isAdd ? '新增' : '编辑'" width="900px">
|
||||||
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="150px">
|
||||||
<el-form-item label="开启时间(整数小时)">
|
<el-form-item label="开启时间(整数小时)">
|
||||||
<!-- <el-input v-model="form.time" style="width: 270px;"/>-->
|
<!-- <el-input v-model="form.time" style="width: 270px;"/>-->
|
||||||
@@ -23,6 +23,9 @@
|
|||||||
<el-radio :label="2">关闭</el-radio>
|
<el-radio :label="2">关闭</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="秒杀规则">
|
||||||
|
<editor v-model="form.rule" />
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<!--<el-input v-model="form.groupName" />-->
|
<!--<el-input v-model="form.groupName" />-->
|
||||||
@@ -35,9 +38,10 @@
|
|||||||
<script>
|
<script>
|
||||||
import {add, edit} from '@/api/bxg/yxSystemGroupData'
|
import {add, edit} from '@/api/bxg/yxSystemGroupData'
|
||||||
import picUpload from '@/components/pic-upload'
|
import picUpload from '@/components/pic-upload'
|
||||||
|
import editor from "@views/bxg/components/Editor";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {picUpload},
|
components: {picUpload,editor},
|
||||||
props: {
|
props: {
|
||||||
isAdd: {
|
isAdd: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -52,7 +56,8 @@ export default {
|
|||||||
groupName: 'yshop_seckill_time',
|
groupName: 'yshop_seckill_time',
|
||||||
time: '08:00',
|
time: '08:00',
|
||||||
status:2, //默认关闭
|
status:2, //默认关闭
|
||||||
continued: 2
|
continued: 2,
|
||||||
|
rule:''
|
||||||
},
|
},
|
||||||
rules: {}
|
rules: {}
|
||||||
}
|
}
|
||||||
@@ -121,7 +126,8 @@ export default {
|
|||||||
groupName: 'yshop_seckill_time',
|
groupName: 'yshop_seckill_time',
|
||||||
time: '08:00',
|
time: '08:00',
|
||||||
continued: 2,
|
continued: 2,
|
||||||
status:2 //默认关闭
|
status:2, //默认关闭
|
||||||
|
rule:''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ export default {
|
|||||||
initialFrameWidth: '100%', // 初始容器宽度
|
initialFrameWidth: '100%', // 初始容器宽度
|
||||||
UEDITOR_HOME_URL: '/UEditor/',
|
UEDITOR_HOME_URL: '/UEditor/',
|
||||||
serverUrl: '',
|
serverUrl: '',
|
||||||
zIndex:9999,
|
zIndex:5000
|
||||||
},
|
},
|
||||||
editableTabsValue: '1',
|
editableTabsValue: '1',
|
||||||
editableTabs:[],
|
editableTabs:[],
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ import MaterialList from "@/components/material";
|
|||||||
|
|
||||||
// crud交由presenter持有
|
// crud交由presenter持有
|
||||||
const defaultCrud = CRUD({ title: '专家', url: 'bxg/api/yxStoreExpert', sort: 'id,desc', crudMethod: { ...crudYxStoreExpert }})
|
const defaultCrud = CRUD({ title: '专家', url: 'bxg/api/yxStoreExpert', sort: 'id,desc', crudMethod: { ...crudYxStoreExpert }})
|
||||||
const defaultForm = { id: null, image: null, expertName: null, expertInfo: null,
|
const defaultForm = { id: null, image: null, expertName: null, expertInfo: null,isShow:1,
|
||||||
expertStatus: null, expertUnit: null, createTime: null, updateTime: null, isDel: null,sort:0 }
|
expertStatus: null, expertUnit: null, createTime: null, updateTime: null, isDel: null,sort:0 }
|
||||||
export default {
|
export default {
|
||||||
name: 'YxStoreExpert',
|
name: 'YxStoreExpert',
|
||||||
@@ -140,9 +140,9 @@ export default {
|
|||||||
expertStatus: [
|
expertStatus: [
|
||||||
{ required: true, message: '专家的职级不能为空', trigger: 'blur' }
|
{ required: true, message: '专家的职级不能为空', trigger: 'blur' }
|
||||||
],
|
],
|
||||||
expertUnit: [
|
// expertUnit: [
|
||||||
{ required: true, message: '专家所属单位不能为空', trigger: 'blur' }
|
// { required: true, message: '专家所属单位不能为空', trigger: 'blur' }
|
||||||
]
|
// ]
|
||||||
} }
|
} }
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in New Issue
Block a user