|
@@ -149,10 +149,11 @@
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
:editable="false"
|
|
:editable="false"
|
|
v-model="time"
|
|
v-model="time"
|
|
- @change="timearr => {timearr ? (form.company_created_at = timearr + ' 00:00:00') : form.company_created_at = undefined}"
|
|
|
|
|
|
+ @change="timearr => {timearr ? (form.company_created_at = timearr) : form.company_created_at = undefined}"
|
|
clearable
|
|
clearable
|
|
type="date"
|
|
type="date"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
|
|
+ :picker-options="myPickerOptions"
|
|
placeholder="请选择企业成立日期">
|
|
placeholder="请选择企业成立日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -210,7 +211,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item
|
|
<el-form-item
|
|
prop="shop_type"
|
|
prop="shop_type"
|
|
- :rules="formRules.required"
|
|
|
|
|
|
+ :rules="formRules.selected"
|
|
label="农户类型:">
|
|
label="农户类型:">
|
|
<el-select
|
|
<el-select
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
@@ -304,6 +305,13 @@ export default {
|
|
},
|
|
},
|
|
arrShopType() {
|
|
arrShopType() {
|
|
return this.$store.state.common.arrShopType
|
|
return this.$store.state.common.arrShopType
|
|
|
|
+ },
|
|
|
|
+ myPickerOptions() {
|
|
|
|
+ return {
|
|
|
|
+ disabledDate: time => {
|
|
|
|
+ return time.getTime() > Date.now()
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -382,6 +390,9 @@ export default {
|
|
if (key === 'shop_address' && Object.prototype.toString.call(value) !== '[object Object]') {
|
|
if (key === 'shop_address' && Object.prototype.toString.call(value) !== '[object Object]') {
|
|
value = {}
|
|
value = {}
|
|
}
|
|
}
|
|
|
|
+ if (key === 'company_created_at') {
|
|
|
|
+ this.time = value
|
|
|
|
+ }
|
|
this.$set(this.form, key, value)
|
|
this.$set(this.form, key, value)
|
|
}
|
|
}
|
|
}
|
|
}
|