define({
name: "trade",
template: `
`,
data(){
return {
hide_day_arr: [
{
label:'当日',
value:0,
},
{
label:'次日',
value:1,
},
],
}
},
style: ``,
mounted() {
},
methods:{
extraDate(){
},
validate(){
if (this.form.hide_status==1 && this.form.begin_hide_day < 1) {
this.$message.error('隐藏售后天数不能小于1');return false;
}
if (this.form.auto_send==1 && this.form.auto_send_day < 1) {
this.$message.error('自动发货天数不能小于1');return false;
}
if (this.form.arrived_day < 1) {
this.$message.error('送达时间天数不能小于1');return false;
}
return {
hide_status:this.form.hide_status,
begin_hide_day:this.form.begin_hide_day,
begin_hide_time:this.form.begin_hide_time,
end_hide_day:this.form.end_hide_day,
end_hide_time:this.form.end_hide_time,
auto_send:this.form.auto_send,
auto_send_day:this.form.auto_send_day,
auto_send_time:this.form.auto_send_time,
arrived_day:this.form.arrived_day,
arrived_time:this.form.arrived_time,
arrived_word:this.form.arrived_word,
}
},
add(item){
this.form.arrived_word = this.form.arrived_word+`[${item}]`
},
},
props: {
form: {
type: Object,
default() {
return {}
}
}
}
})