小区加图片

master
CJYXTX\27961 7 months ago
parent 0fab591fa0
commit 5bb2d139af

@ -406,7 +406,7 @@ public class NxWalletController {
//organize表的json赋值出来 //organize表的json赋值出来
OrganizeCrModel organizeCrModel=new OrganizeCrModel(); OrganizeCrModel organizeCrModel=new OrganizeCrModel();
organizeCrModel= JSONObject.parseObject(organizeEntityList.get(0).getPropertyJson(),OrganizeCrModel.class); organizeCrModel= JSONObject.parseObject(organizeEntityList.get(0).getPropertyJson(),OrganizeCrModel.class);
organizeCrModel.getManagerTelePhone(); // organizeCrModel.getManagerTelePhone();
//修改人手机号是否等于商户创建人的手机号 //修改人手机号是否等于商户创建人的手机号
boolean areEqual = userUserAccountId.equals(organizeCrModel.getManagerTelePhone()); boolean areEqual = userUserAccountId.equals(organizeCrModel.getManagerTelePhone());
if (areEqual==false){ if (areEqual==false){

@ -18,6 +18,8 @@ public class HousingEstateEntity {
private String id; private String id;
@TableField(value = "NAME" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "NAME" , updateStrategy = FieldStrategy.IGNORED)
private String name; private String name;
@TableField(value = "IMAGES" , updateStrategy = FieldStrategy.IGNORED)
private String images;
@TableField(value = "ADDRESS" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "ADDRESS" , updateStrategy = FieldStrategy.IGNORED)
private String address; private String address;
@TableField(value = "LONGITUDE" , updateStrategy = FieldStrategy.IGNORED) @TableField(value = "LONGITUDE" , updateStrategy = FieldStrategy.IGNORED)

@ -25,6 +25,9 @@ public class HousingEstateForm {
/** 小区详细地址 **/ /** 小区详细地址 **/
@JsonProperty("address") @JsonProperty("address")
private String address; private String address;
/** 小区图片 **/
@JsonProperty("images")
private Object images;
/** 启用禁用 **/ /** 启用禁用 **/
@JsonProperty("enabledMark") @JsonProperty("enabledMark")
private Integer enabledMark; private Integer enabledMark;

@ -8,9 +8,8 @@
<el-button @click="goBack"></el-button> <el-button @click="goBack"></el-button>
</div> </div>
</div> </div>
<el-row :gutter="15" class=" main" :style="{margin: '0 auto',width: '100%'}"> <el-row :gutter="15" class=" main" :style="{ margin: '0 auto', width: '100%' }">
<el-form ref="formRef" :model="dataForm" size="default" label-width="100px" <el-form ref="formRef" :model="dataForm" size="default" label-width="100px" label-position="right">
label-position="right">
<template v-if="!loading"> <template v-if="!loading">
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item label-width="0"> <jnpf-form-tip-item label-width="0">
@ -20,17 +19,25 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="小区名" prop="name"> <jnpf-form-tip-item label="小区名" prop="name">
<p>{{dataForm.name}}</p> <p>{{ dataForm.name }}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="10"> <el-col :span="10">
<jnpf-form-tip-item label="小区详细地址" prop="address"> <jnpf-form-tip-item label="小区详细地址" prop="address">
<p>{{dataForm.address}}</p> <p>{{ dataForm.address }}</p>
</jnpf-form-tip-item>
</el-col>
<el-col :span="24">
<jnpf-form-tip-item label="小区图片" prop="images">
<JnpfUploadImg v-model="dataForm.images" disabled detailed :fileSize="10" sizeUnit="MB" :limit="1"
pathType="defaultPath" :isAccount="0">
</JnpfUploadImg>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="启用禁用" prop="enabledMark"> <jnpf-form-tip-item label="启用禁用" prop="enabledMark">
<p>{{dataForm.enabledMark}}</p> <p>{{ dataForm.enabledMark }}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<!-- <el-col :span="8"> <!-- <el-col :span="8">
@ -55,22 +62,22 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item label="定时定点回收" prop="hasSchedule"> <jnpf-form-tip-item label="定时定点回收" prop="hasSchedule">
<p>{{dataForm.hasSchedule}}</p> <p>{{ dataForm.hasSchedule }}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="回收地址" prop="recycleAddress"> <jnpf-form-tip-item label="回收地址" prop="recycleAddress">
<p>{{dataForm.recycleAddress}}</p> <p>{{ dataForm.recycleAddress }}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="回收时间起" prop="appointmentTimeStart"> <jnpf-form-tip-item label="回收时间起" prop="appointmentTimeStart">
<p>{{dataForm.appointmentTimeStart}}</p> <p>{{ dataForm.appointmentTimeStart }}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="回收时间止" prop="appointmentTimeEnd"> <jnpf-form-tip-item label="回收时间止" prop="appointmentTimeEnd">
<p>{{dataForm.appointmentTimeEnd}}</p> <p>{{ dataForm.appointmentTimeEnd }}</p>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">

@ -1,14 +1,8 @@
<template>
<template>
<transition name="el-zoom-in-center"> <transition name="el-zoom-in-center">
<div class="JNPF-preview-main"> <div class="JNPF-preview-main">
<div class="JNPF-common-page-header"> <div class="JNPF-common-page-header">
<el-page-header <el-page-header @back="goBack" :content="!dataForm.id ? '新建' : '编辑'" />
@back="goBack"
:content="!dataForm.id ? '新建' : '编辑'"
/>
<div class="options"> <div class="options">
<el-dropdown class="dropdown" placement="bottom"> <el-dropdown class="dropdown" placement="bottom">
<el-button style="width: 70px"> <el-button style="width: 70px">
@ -23,42 +17,21 @@
{{ "下一条" }} {{ "下一条" }}
</el-dropdown-item> </el-dropdown-item>
</template> </template>
<el-dropdown-item <el-dropdown-item type="primary" @click.native="dataFormSubmit(2)" :loading="continueBtnLoading"
type="primary" :disabled="btnLoading">
@click.native="dataFormSubmit(2)"
:loading="continueBtnLoading"
:disabled="btnLoading"
>
{{ {{
!dataForm.id ? "确定并新增" : "确定并继续" !dataForm.id ? "确定并新增" : "确定并继续"
}}</el-dropdown-item }}</el-dropdown-item>
>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-button <el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading" :disabled="continueBtnLoading">
type="primary" </el-button>
@click="dataFormSubmit()"
:loading="btnLoading"
:disabled="continueBtnLoading"
>
</el-button
>
<el-button @click="goBack"> </el-button> <el-button @click="goBack"> </el-button>
</div> </div>
</div> </div>
<el-row <el-row :gutter="15" class="main" :style="{ margin: '0 auto', width: '100%' }">
:gutter="15" <el-form ref="formRef" :model="dataForm" :rules="dataRule" size="default" label-width="100px"
class="main" label-position="right">
:style="{ margin: '0 auto', width: '100%' }"
>
<el-form
ref="formRef"
:model="dataForm"
:rules="dataRule"
size="default"
label-width="100px"
label-position="right"
>
<template v-if="!loading"> <template v-if="!loading">
<!-- 具体表单 --> <!-- 具体表单 -->
<el-col :span="24"> <el-col :span="24">
@ -69,29 +42,17 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="小区名" prop="name"> <jnpf-form-tip-item label="小区名" prop="name">
<JnpfInput <JnpfInput v-model="dataForm.name" @change="changeData('name', -1)" placeholder="请输入" clearable
v-model="dataForm.name" :style="{ width: '100%' }">
@change="changeData('name', -1)"
placeholder="请输入"
clearable
:style="{ width: '100%' }"
>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<!-- {{ this.$store.getters.userInfo.organizeId }} --> <!-- {{ this.$store.getters.userInfo.organizeId }} -->
<jnpf-form-tip-item label="所属商户" prop="enterpriseId"> <jnpf-form-tip-item label="所属商户" prop="enterpriseId">
<JnpfDepSelect <JnpfDepSelect v-model="dataForm.enterpriseId" @change="changeData('enterpriseId', -1)"
v-model="dataForm.enterpriseId" placeholder="请选择" selectType="all" :ableIds="ableAll.enterpriseIdableIds" clearable disabled="true"
@change="changeData('enterpriseId', -1)" :style="{ width: '100%' }">
placeholder="请选择"
selectType="all"
:ableIds="ableAll.enterpriseIdableIds"
clearable
disabled="true"
:style="{ width: '100%' }"
>
</JnpfDepSelect> </JnpfDepSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -110,33 +71,26 @@
</el-col> --> </el-col> -->
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item <jnpf-form-tip-item class="site-item" label="详细地址" prop="address">
class="site-item" <JnpfInput class="input" disabled v-model="dataForm.address" @change="changeData('address', -1)"
label="详细地址" placeholder="请选择详细地址" clearable :style="{ width: '100%' }">
prop="address"
>
<JnpfInput
class="input"
disabled
v-model="dataForm.address"
@change="changeData('address', -1)"
placeholder="请选择详细地址"
clearable
:style="{ width: '100%' }"
>
</JnpfInput> </JnpfInput>
<el-button @click="handleShowMap"></el-button> <el-button @click="handleShowMap"></el-button>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="24">
<jnpf-form-tip-item label="小区图片" prop="images">
<JnpfUploadImg v-model="dataForm.images" @change="changeData('images', -1)" :fileSize="10" sizeUnit="MB"
:limit="1" pathType="defaultPath" :isAccount="0">
</JnpfUploadImg>
</jnpf-form-tip-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="启用禁用" prop="enabledMark"> <jnpf-form-tip-item label="启用禁用" prop="enabledMark">
<JnpfSwitch <JnpfSwitch v-model="dataForm.enabledMark" @change="changeData('enabledMark', -1)" :active-value="1"
v-model="dataForm.enabledMark" :inactive-value="0">
@change="changeData('enabledMark', -1)"
:active-value="1"
:inactive-value="0"
>
</JnpfSwitch> </JnpfSwitch>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -162,73 +116,40 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<jnpf-form-tip-item label="定时定点回收" prop="hasSchedule"> <jnpf-form-tip-item label="定时定点回收" prop="hasSchedule">
<JnpfSwitch <JnpfSwitch v-model="dataForm.hasSchedule" @change="changeData('hasSchedule', -1)" :active-value="1"
v-model="dataForm.hasSchedule" :inactive-value="0">
@change="changeData('hasSchedule', -1)"
:active-value="1"
:inactive-value="0"
>
</JnpfSwitch> </JnpfSwitch>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="回收地址" prop="recycleAddress"> <jnpf-form-tip-item label="回收地址" prop="recycleAddress">
<JnpfInput <JnpfInput v-model="dataForm.recycleAddress" @change="changeData('recycleAddress', -1)"
v-model="dataForm.recycleAddress" placeholder="请输入" clearable :style="{ width: '100%' }">
@change="changeData('recycleAddress', -1)"
placeholder="请输入"
clearable
:style="{ width: '100%' }"
>
</JnpfInput> </JnpfInput>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item <jnpf-form-tip-item label="回收时间起" prop="appointmentTimeStart">
label="回收时间起" <JnpfTimePicker v-model="dataForm.appointmentTimeStart" @change="changeData('appointmentTimeStart', -1)"
prop="appointmentTimeStart" :startTime="time(false, 1, 1, '', 'HH:mm', '')" :endTime="time(false, 1, 1, '', 'HH:mm', '')"
> placeholder="请选择" clearable :style="{ width: '100%' }" format="HH:mm">
<JnpfTimePicker
v-model="dataForm.appointmentTimeStart"
@change="changeData('appointmentTimeStart', -1)"
:startTime="time(false, 1, 1, '', 'HH:mm', '')"
:endTime="time(false, 1, 1, '', 'HH:mm', '')"
placeholder="请选择"
clearable
:style="{ width: '100%' }"
format="HH:mm"
>
</JnpfTimePicker> </JnpfTimePicker>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="回收时间止" prop="appointmentTimeEnd"> <jnpf-form-tip-item label="回收时间止" prop="appointmentTimeEnd">
<JnpfTimePicker <JnpfTimePicker v-model="dataForm.appointmentTimeEnd" @change="changeData('appointmentTimeEnd', -1)"
v-model="dataForm.appointmentTimeEnd" :startTime="time(false, 1, 1, '', 'HH:mm', '')" :endTime="time(false, 1, 1, '', 'HH:mm', '')"
@change="changeData('appointmentTimeEnd', -1)" placeholder="请选择" clearable :style="{ width: '100%' }" format="HH:mm">
:startTime="time(false, 1, 1, '', 'HH:mm', '')"
:endTime="time(false, 1, 1, '', 'HH:mm', '')"
placeholder="请选择"
clearable
:style="{ width: '100%' }"
format="HH:mm"
>
</JnpfTimePicker> </JnpfTimePicker>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<jnpf-form-tip-item label="来源" prop="sourceType"> <jnpf-form-tip-item label="来源" prop="sourceType">
<JnpfSelect <JnpfSelect v-model="dataForm.sourceType" @change="changeData('sourceType', -1)" placeholder="请选择"
v-model="dataForm.sourceType" clearable :style="{ width: '100%' }" :options="sourceTypeOptions" :props="sourceTypeProps">
@change="changeData('sourceType', -1)"
placeholder="请选择"
clearable
:style="{ width: '100%' }"
:options="sourceTypeOptions"
:props="sourceTypeProps"
>
</JnpfSelect> </JnpfSelect>
</jnpf-form-tip-item> </jnpf-form-tip-item>
</el-col> </el-col>
@ -236,25 +157,12 @@
</template> </template>
</el-form> </el-form>
<mapComponent <mapComponent v-if="visibleMap" :visibleMap="visibleMap" :longitude="dataForm.longitude"
v-if="visibleMap" :latitude="dataForm.latitude" :address="dataForm.address" @chooseMapPoint="getCallMap" @cancel="cancelMap"
:visibleMap="visibleMap" @sure="sureMap"></mapComponent>
:longitude="dataForm.longitude"
:latitude="dataForm.latitude"
:address="dataForm.address"
@chooseMapPoint="getCallMap"
@cancel="cancelMap"
@sure="sureMap"
></mapComponent>
<SelectDialog <SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
v-if="selectDialogVisible" @select="addForSelect" @close="selectDialogVisible = false" />
:config="currTableConf"
:formData="dataForm"
ref="selectDialog"
@select="addForSelect"
@close="selectDialogVisible = false"
/>
</el-row> </el-row>
</div> </div>
</transition> </transition>
@ -307,6 +215,7 @@ export default {
Vmodel: "", Vmodel: "",
currVmodel: "", currVmodel: "",
dataForm: { dataForm: {
images: [],
enterpriseId: undefined, enterpriseId: undefined,
name: undefined, name: undefined,
address: undefined, address: undefined,
@ -356,6 +265,14 @@ export default {
trigger: "blur", trigger: "blur",
}, },
], ],
images: [
{
required: true,
message: '请至少选择一个',
trigger: 'change'
},
],
}, },
sourceTypeOptions: [ sourceTypeOptions: [
{ fullName: "系统导入", id: "1" }, { fullName: "系统导入", id: "1" },
@ -368,6 +285,7 @@ export default {
enterpriseId: [], enterpriseId: [],
name: [], name: [],
address: [], address: [],
images: [],
enabledMark: [], enabledMark: [],
latitude: [], latitude: [],
longitude: [], longitude: [],
@ -388,7 +306,7 @@ export default {
this.initDefaultData(); this.initDefaultData();
this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm)); this.dataValueAll = JSON.parse(JSON.stringify(this.dataForm));
}, },
mounted() {}, mounted() { },
methods: { methods: {
handleShowMap() { handleShowMap() {
this.visibleMap = true; this.visibleMap = true;
@ -482,7 +400,7 @@ export default {
} }
} }
}, },
dataAll() {}, dataAll() { },
goBack() { goBack() {
this.$emit("refresh"); this.$emit("refresh");
}, },

Loading…
Cancel
Save