Commit ffb785b8 authored by zhangjianqian's avatar zhangjianqian

增加营业网点字段

parent b2c1ee2b
...@@ -44,6 +44,10 @@ public class TBusiness extends BaseEntity ...@@ -44,6 +44,10 @@ public class TBusiness extends BaseEntity
@Excel(name = "所属市") @Excel(name = "所属市")
private String cityName; private String cityName;
/** 营业网点 */
@Excel(name = "营业网点", dictType = "t_branch")
private String branch;
/** 所属区(县) */ /** 所属区(县) */
@Excel(name = "所属区") @Excel(name = "所属区")
private String countyName; private String countyName;
...@@ -114,6 +118,14 @@ public class TBusiness extends BaseEntity ...@@ -114,6 +118,14 @@ public class TBusiness extends BaseEntity
private Integer selectFrom; private Integer selectFrom;
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch;
}
public Integer getSelectFrom() { public Integer getSelectFrom() {
return selectFrom; return selectFrom;
} }
......
...@@ -54,6 +54,10 @@ public class TIndustry extends BaseEntity ...@@ -54,6 +54,10 @@ public class TIndustry extends BaseEntity
@Excel(name = "具体地址") @Excel(name = "具体地址")
private String address; private String address;
/** 营业网点 */
@Excel(name = "营业网点", dictType = "t_branch")
private String branch;
/** 经度 */ /** 经度 */
@Excel(name = "经度") @Excel(name = "经度")
private BigDecimal longitude; private BigDecimal longitude;
...@@ -112,6 +116,14 @@ public class TIndustry extends BaseEntity ...@@ -112,6 +116,14 @@ public class TIndustry extends BaseEntity
private String soutext; private String soutext;
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch;
}
public String getSoutext() { public String getSoutext() {
return soutext; return soutext;
} }
......
...@@ -28,10 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -28,10 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="direction" column="direction" /> <result property="direction" column="direction" />
<result property="taskId" column="task_id" /> <result property="taskId" column="task_id" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="branch" column="branch"/>
</resultMap> </resultMap>
<sql id="selectTBusinessVo"> <sql id="selectTBusinessVo">
select t.id, t.usernum, t.contract, t.city, t.county, t.street, t.village, t.address, t.longitude, t.latitude, select t.id, t.usernum, t.contract, t.city, t.county, t.street, t.village, t.address, t.longitude, t.latitude,t.branch,
t.company, t.username, t.company, t.username,
t.phone, t.type, t.status, t.starttime, t.device, t.meter_type, t.meter_company, t.meter_model, t.direction, t.phone, t.type, t.status, t.starttime, t.device, t.meter_type, t.meter_company, t.meter_model, t.direction,
t.task_id, t.remark,IFNULL(tp.status,-1)as ajstatus, t.task_id, t.remark,IFNULL(tp.status,-1)as ajstatus,
...@@ -109,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -109,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="direction != null">direction,</if> <if test="direction != null">direction,</if>
<if test="taskId != null">task_id,</if> <if test="taskId != null">task_id,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="branch !=null">branch,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="usernum != null">#{usernum},</if> <if test="usernum != null">#{usernum},</if>
...@@ -133,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -133,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="direction != null">#{direction},</if> <if test="direction != null">#{direction},</if>
<if test="taskId != null">#{taskId},</if> <if test="taskId != null">#{taskId},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="branch !=null">#{branch},</if>
</trim> </trim>
</insert> </insert>
...@@ -161,6 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -161,6 +164,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="direction != null">direction = #{direction},</if> <if test="direction != null">direction = #{direction},</if>
<if test="taskId != null">task_id = #{taskId},</if> <if test="taskId != null">task_id = #{taskId},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="branch !=null">branch = #{branch},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
...@@ -29,10 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -29,10 +29,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="satisfy" column="satisfy" /> <result property="satisfy" column="satisfy" />
<result property="inspectSign" column="inspect_sign" /> <result property="inspectSign" column="inspect_sign" />
<result property="inspectTime" column="inspect_time" /> <result property="inspectTime" column="inspect_time" />
<result property="branch" column="branch" />
</resultMap> </resultMap>
<sql id="selectTIndustryVo"> <sql id="selectTIndustryVo">
select u.id, u.usernum, u.contract, u.city, u.county, u.street, u.village, u.address, select u.id, u.usernum, u.contract, u.city, u.county, u.street, u.village, u.address,u.branch,
u.longitude, u.latitude, u.company, u.username, u.phone, u.type, u.status, u.starttime, u.longitude, u.latitude, u.company, u.username, u.phone, u.type, u.status, u.starttime,
u.task_inspect_id, u.remark, u.create_time,t.`area_name` AS countyName, u.task_inspect_id, u.remark, u.create_time,t.`area_name` AS countyName,
ts.`area_name` AS streetName,IFNULL(tp.status,-1)as ajstatus ts.`area_name` AS streetName,IFNULL(tp.status,-1)as ajstatus
...@@ -58,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -58,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="selectTIndustryById" parameterType="Long" resultMap="TIndustryResult"> <select id="selectTIndustryById" parameterType="Long" resultMap="TIndustryResult">
select u.id, u.usernum, u.contract, u.city, u.county, u.street, u.village, u.address, select u.id, u.usernum, u.contract, u.city, u.county, u.street, u.village, u.address,u.branch,
u.longitude, u.latitude, u.company, u.username, u.phone, u.type, u.status, u.starttime, u.longitude, u.latitude, u.company, u.username, u.phone, u.type, u.status, u.starttime,
u.task_inspect_id, u.remark, u.create_time,t.`area_name` AS countyName, u.task_inspect_id, u.remark, u.create_time,t.`area_name` AS countyName,
ts.`area_name` AS streetName ts.`area_name` AS streetName
...@@ -89,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -89,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="taskInspectId!= null">task_inspect_id,</if> <if test="taskInspectId!= null">task_inspect_id,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="branch !=null">branch,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="usernum != null">#{usernum},</if> <if test="usernum != null">#{usernum},</if>
...@@ -109,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -109,6 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="taskInspectId != null">#{taskInspectId},</if> <if test="taskInspectId != null">#{taskInspectId},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="branch !=null"> #{branch},</if>
</trim> </trim>
</insert> </insert>
...@@ -133,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -133,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="taskInspectId != null">task_inspect_id = #{taskInspectId},</if> <if test="taskInspectId != null">task_inspect_id = #{taskInspectId},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="branch !=null">branch = #{branch},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
...@@ -55,7 +55,11 @@ ...@@ -55,7 +55,11 @@
<span>{{ detailInfo.phone }}</span> <span>{{ detailInfo.phone }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24">
<el-form-item label="营业网点">
<span>{{$parent.branchFormat(this.detailInfo)}}</span>
</el-form-item>
</el-col>
<!--<el-col :span="12"> <!--<el-col :span="12">
<el-form-item label="表计类型"> <el-form-item label="表计类型">
<span>{{ $parent.typeFormatter(detailInfo) }}</span> <span>{{ $parent.typeFormatter(detailInfo) }}</span>
...@@ -97,7 +101,7 @@ ...@@ -97,7 +101,7 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="表具型号"> <el-form-item label="表具型号">
<span v-if="detailInfo.meterModel">{{ $parent.meterModelFormatter(detailInfo) }}</span> <span v-if="detailInfo.meterModel">{{ $parent.branchFormat(detailInfo,null) }}</span>
<span v-else>-</span> <span v-else>-</span>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -268,6 +268,18 @@ ...@@ -268,6 +268,18 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="营业网点" prop="branch">
<el-select v-model="form.branch" placeholder="请选择营业网点">
<el-option
v-for="dict in sceneOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
<!--<el-col :span="12"> <!--<el-col :span="12">
<el-form-item label="表计类型" prop="type"> <el-form-item label="表计类型" prop="type">
<el-select v-model="form.type" placeholder="请选择表计类型" style="width: 100%"> <el-select v-model="form.type" placeholder="请选择表计类型" style="width: 100%">
...@@ -516,6 +528,7 @@ export default { ...@@ -516,6 +528,7 @@ export default {
total: 0, total: 0,
// 商业用户表格数据 // 商业用户表格数据
businessList: [], businessList: [],
sceneOptions:[],
// 弹出层标题 // 弹出层标题
title: "", title: "",
// 是否显示弹出层 // 是否显示弹出层
...@@ -635,6 +648,9 @@ export default { ...@@ -635,6 +648,9 @@ export default {
this.getMeterModel(); this.getMeterModel();
this.getMeterCompany(); this.getMeterCompany();
this.getAddressInfo(); this.getAddressInfo();
this.getDicts("t_branch").then(response => {
this.sceneOptions = response.data;
});
}, },
methods: { methods: {
/** 查询商业用户列表 */ /** 查询商业用户列表 */
...@@ -909,6 +925,9 @@ export default { ...@@ -909,6 +925,9 @@ export default {
row.status row.status
); );
}, },
branchFormat(row, column) {
return this.selectDictLabel(this.sceneOptions, row.branch);
},
//详情 //详情
handleDetail(row){ handleDetail(row){
this.$refs.detail.getDetailInfo(row.id); this.$refs.detail.getDetailInfo(row.id);
......
...@@ -52,6 +52,14 @@ ...@@ -52,6 +52,14 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="20">
<el-form-item label="营业网点">
<span>{{ $parent.branchFormat(detailInfo,null) }}</span>
</el-form-item>
</el-col>
</el-row>
<el-row> <el-row>
<el-col :span="20"> <el-col :span="20">
<el-form-item label="所属区域"> <el-form-item label="所属区域">
......
...@@ -216,6 +216,18 @@ ...@@ -216,6 +216,18 @@
<el-input v-model="form.phone" placeholder="请输入联系电话" /> <el-input v-model="form.phone" placeholder="请输入联系电话" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12">
<el-form-item label="营业网点" prop="branch">
<el-select v-model="form.branch" placeholder="请选择营业网点">
<el-option
v-for="dict in sceneOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
/>
</el-select>
</el-form-item>
</el-col>
</el-row> </el-row>
<!-- 市区县镇 --> <!-- 市区县镇 -->
<el-row> <el-row>
...@@ -365,6 +377,8 @@ export default { ...@@ -365,6 +377,8 @@ export default {
open: false, open: false,
// 用气场景字典 // 用气场景字典
typeOptions: [], typeOptions: [],
//营业网点
sceneOptions:[],
// 开通状态字典 // 开通状态字典
statusOptions: [], statusOptions: [],
// 查询参数 // 查询参数
...@@ -443,6 +457,9 @@ export default { ...@@ -443,6 +457,9 @@ export default {
this.getDicts("t_business_factory_meter_type").then(response => { this.getDicts("t_business_factory_meter_type").then(response => {
this.meterCompanyOptions = response.data; this.meterCompanyOptions = response.data;
}); });
this.getDicts("t_branch").then(response => {
this.sceneOptions = response.data;
});
}, },
methods: { methods: {
/** 查询工业用户列表 */ /** 查询工业用户列表 */
...@@ -645,6 +662,9 @@ export default { ...@@ -645,6 +662,9 @@ export default {
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); }).catch(() => {});
}, },
branchFormat(row, column) {
return this.selectDictLabel(this.sceneOptions, row.branch);
},
meterModelCompanyFormatter(row){ meterModelCompanyFormatter(row){
return this.selectDictLabel( return this.selectDictLabel(
this.meterCompanyOptions, this.meterCompanyOptions,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment