|
@@ -43,12 +43,27 @@ |
|
|
</div> --> |
|
|
</div> --> |
|
|
|
|
|
|
|
|
<div class="div-lab"> |
|
|
<div class="div-lab"> |
|
|
<div class="label">合同结束日期:</div> |
|
|
|
|
|
|
|
|
<!-- <div class="label">合同结束日期:</div> --> |
|
|
|
|
|
<div class="label" style="min-width: 80px"> |
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="searchForm.timeType" |
|
|
|
|
|
placeholder="请选择" |
|
|
|
|
|
style="width: 100px" |
|
|
|
|
|
> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for="item in timeTypeList" |
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
:value="item.value" |
|
|
|
|
|
> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</div> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="starTime" |
|
|
v-model="starTime" |
|
|
class="div-inp" |
|
|
class="div-inp" |
|
|
@change="timeChange1" |
|
|
@change="timeChange1" |
|
|
style="width:250px;" |
|
|
|
|
|
|
|
|
style="width: 250px" |
|
|
type="daterange" |
|
|
type="daterange" |
|
|
range-separator="-" |
|
|
range-separator="-" |
|
|
:default-time="['00:00:00', '23:59:59']" |
|
|
:default-time="['00:00:00', '23:59:59']" |
|
@@ -95,7 +110,7 @@ |
|
|
</el-option> |
|
|
</el-option> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
<div class="div-lab"> |
|
|
|
|
|
|
|
|
<div class="div-lab"> |
|
|
<div class="label">地区:</div> |
|
|
<div class="label">地区:</div> |
|
|
<el-select |
|
|
<el-select |
|
|
v-model="searchForm.provinceId" |
|
|
v-model="searchForm.provinceId" |
|
@@ -162,21 +177,14 @@ |
|
|
</div> --> |
|
|
</div> --> |
|
|
<div class="app-titel" style="margin-top: 10px"> |
|
|
<div class="app-titel" style="margin-top: 10px"> |
|
|
<div class="label" style="color: #ffffff">筛选相关:</div> |
|
|
<div class="label" style="color: #ffffff">筛选相关:</div> |
|
|
<div style="margin-left: 5px;"> |
|
|
|
|
|
<el-button |
|
|
|
|
|
@click="screen" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
>筛选</el-button |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
<div style="margin-left: 5px"> |
|
|
|
|
|
<el-button @click="screen" type="primary">筛选</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-left: 20px"> |
|
|
<div style="margin-left: 20px"> |
|
|
<el-button @click="empty">清空筛选条件</el-button> |
|
|
<el-button @click="empty">清空筛选条件</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="margin-left: auto; margin-right: 20px" v-if="orgType != 2"> |
|
|
<div style="margin-left: auto; margin-right: 20px" v-if="orgType != 2"> |
|
|
<el-button |
|
|
|
|
|
v-if="cus_build_index_add" |
|
|
|
|
|
type="primary" |
|
|
|
|
|
@click="addHouse" |
|
|
|
|
|
|
|
|
<el-button v-if="cus_build_index_add" type="primary" @click="addHouse" |
|
|
>新增</el-button |
|
|
>新增</el-button |
|
|
> |
|
|
> |
|
|
</div> |
|
|
</div> |
|
@@ -185,13 +193,19 @@ |
|
|
|
|
|
|
|
|
<!-- 表格 --> |
|
|
<!-- 表格 --> |
|
|
<div class="cen-tab"> |
|
|
<div class="cen-tab"> |
|
|
<el-table :data="tableData" stripe style="width: 100%" > |
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="propertyName" :show-overflow-tooltip="true" width="120px" label="楼盘名称" align="center"> |
|
|
|
|
|
|
|
|
<el-table :data="tableData" stripe style="width: 100%"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="propertyName" |
|
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
|
width="120px" |
|
|
|
|
|
label="楼盘名称" |
|
|
|
|
|
align="center" |
|
|
|
|
|
> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
<el-table-column |
|
|
:show-overflow-tooltip="true" width="120px" |
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
|
width="120px" |
|
|
prop="agentName" |
|
|
prop="agentName" |
|
|
label="代理商" |
|
|
label="代理商" |
|
|
align="center" |
|
|
align="center" |
|
@@ -203,7 +217,8 @@ |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
<el-table-column |
|
|
:show-overflow-tooltip="true" width="120px" |
|
|
|
|
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
|
width="120px" |
|
|
prop="corporateName" |
|
|
prop="corporateName" |
|
|
label="公司" |
|
|
label="公司" |
|
|
align="center" |
|
|
align="center" |
|
@@ -211,15 +226,26 @@ |
|
|
> |
|
|
> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column :show-overflow-tooltip="true" width="120px" prop="address" label="楼盘地址" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
:show-overflow-tooltip="true" |
|
|
|
|
|
width="120px" |
|
|
|
|
|
prop="address" |
|
|
|
|
|
label="楼盘地址" |
|
|
|
|
|
align="center" |
|
|
|
|
|
> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column width="110px" prop='linkman' label="联系人信息" align="center"> |
|
|
|
|
|
<template slot-scope="{ row }"> |
|
|
|
|
|
{{ row.linkman +'-' +row.linkmanPhone || "-" }} |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
width="110px" |
|
|
|
|
|
prop="linkman" |
|
|
|
|
|
label="联系人信息" |
|
|
|
|
|
align="center" |
|
|
|
|
|
> |
|
|
|
|
|
<template slot-scope="{ row }"> |
|
|
|
|
|
{{ row.linkman + "-" + row.linkmanPhone || "-" }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<!-- <el-table-column prop='linkmanPhone' label="联系人手机号" align="center"> |
|
|
|
|
|
|
|
|
<!-- <el-table-column prop='linkmanPhone' label="联系人手机号" align="center"> |
|
|
</el-table-column> --> |
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
|
<el-table-column prop="managerPhone" label="管理员账号" align="center"> |
|
|
<el-table-column prop="managerPhone" label="管理员账号" align="center"> |
|
@@ -228,12 +254,21 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column prop="houseType" label="楼盘类型" align="center" v-if="orgType != 2"> |
|
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="houseType" |
|
|
|
|
|
label="楼盘类型" |
|
|
|
|
|
align="center" |
|
|
|
|
|
v-if="orgType != 2" |
|
|
|
|
|
> |
|
|
<template slot-scope="{ row }"> |
|
|
<template slot-scope="{ row }"> |
|
|
{{ |
|
|
{{ |
|
|
row.houseType == 0 ? "正式" : row.houseType == 1 ? "试用" :row.houseType == 2? "演示":'测试' |
|
|
|
|
|
|
|
|
row.houseType == 0 |
|
|
|
|
|
? "正式" |
|
|
|
|
|
: row.houseType == 1 |
|
|
|
|
|
? "试用" |
|
|
|
|
|
: row.houseType == 2 |
|
|
|
|
|
? "演示" |
|
|
|
|
|
: "测试" |
|
|
}} |
|
|
}} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
@@ -241,50 +276,91 @@ |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="startWorking" |
|
|
prop="startWorking" |
|
|
label="合同开始日期" |
|
|
label="合同开始日期" |
|
|
align="center" > |
|
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column prop="endWorking" label="合同结束日期" align="center"> |
|
|
<el-table-column prop="endWorking" label="合同结束日期" align="center"> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column label="添加日期" align="center"> |
|
|
|
|
|
<template slot-scope="{ row }"> |
|
|
|
|
|
{{row.createTime.substring(0,10)}} |
|
|
|
|
|
|
|
|
<el-table-column label="添加日期" align="center"> |
|
|
|
|
|
<template slot-scope="{ row }"> |
|
|
|
|
|
{{ row.createTime.substring(0, 10) }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column prop="residueTime" label="服务状态" align="center"> |
|
|
<el-table-column prop="residueTime" label="服务状态" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<div v-if="scope.row.residueTime >0">服务中({{scope.row.residueTime*1>=0?scope.row.residueTime:scope.row.residueTime*-1}})</div> |
|
|
|
|
|
<div v-if="scope.row.residueTime <=0">过期({{scope.row.residueTime*1>=0?scope.row.residueTime:scope.row.residueTime*-1}})</div> |
|
|
|
|
|
|
|
|
<div v-if="scope.row.residueTime > 0"> |
|
|
|
|
|
服务中({{ |
|
|
|
|
|
scope.row.residueTime * 1 >= 0 |
|
|
|
|
|
? scope.row.residueTime |
|
|
|
|
|
: scope.row.residueTime * -1 |
|
|
|
|
|
}}) |
|
|
|
|
|
</div> |
|
|
|
|
|
<div v-if="scope.row.residueTime <= 0"> |
|
|
|
|
|
过期({{ |
|
|
|
|
|
scope.row.residueTime * 1 >= 0 |
|
|
|
|
|
? scope.row.residueTime |
|
|
|
|
|
: scope.row.residueTime * -1 |
|
|
|
|
|
}}) |
|
|
|
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column prop="lockFlag" label="状态" align="center"> |
|
|
|
|
|
|
|
|
<el-table-column prop="lockFlag" label="状态" align="center"> |
|
|
<template slot-scope="{ row }"> |
|
|
<template slot-scope="{ row }"> |
|
|
{{row.lockFlag==1?'禁用':'启用'}} |
|
|
|
|
|
|
|
|
{{ row.lockFlag == 1 ? "禁用" : "启用" }} |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" fixed="right" width="200"> |
|
|
<el-table-column label="操作" align="center" fixed="right" width="200"> |
|
|
<template slot-scope="{ row }"> |
|
|
<template slot-scope="{ row }"> |
|
|
<el-button type="text" v-if="cus_build_index_edit" @click="edit(row)">编辑</el-button> |
|
|
|
|
|
<el-button |
|
|
<el-button |
|
|
type="text" |
|
|
type="text" |
|
|
v-if="orgType != 2&&cus_build_index_change" |
|
|
|
|
|
|
|
|
v-if="cus_build_index_edit" |
|
|
|
|
|
@click="edit(row)" |
|
|
|
|
|
>编辑</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
v-if="orgType != 2 && cus_build_index_change" |
|
|
@click="changeAccount(row)" |
|
|
@click="changeAccount(row)" |
|
|
>更换账号</el-button |
|
|
>更换账号</el-button |
|
|
> |
|
|
> |
|
|
<el-button type="text" size="small" v-if="cus_build_index_sys" @click="editOpera(row,0)">系统运营</el-button> |
|
|
|
|
|
<el-button type="text" size="small" v-if="cus_build_index_agent" @click="editOpera(row,1)">售后运营</el-button> |
|
|
|
|
|
<el-button type="text" size="small" v-if="cus_build_index_bindAgent" @click="bindAgent(row)">绑定代理商</el-button> |
|
|
|
|
|
<el-button type="text" v-if="cus_build_index_del" @click="del(row)">删除</el-button> |
|
|
|
|
|
<el-button type="text" v-if="cus_build_index_open" size="small" @click="toDisable(row)">{{row.lockFlag==0?'禁用':'启用'}}</el-button> |
|
|
|
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
size="small" |
|
|
|
|
|
v-if="cus_build_index_sys" |
|
|
|
|
|
@click="editOpera(row, 0)" |
|
|
|
|
|
>系统运营</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
size="small" |
|
|
|
|
|
v-if="cus_build_index_agent" |
|
|
|
|
|
@click="editOpera(row, 1)" |
|
|
|
|
|
>售后运营</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
size="small" |
|
|
|
|
|
v-if="cus_build_index_bindAgent" |
|
|
|
|
|
@click="bindAgent(row)" |
|
|
|
|
|
>绑定代理商</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button type="text" v-if="cus_build_index_del" @click="del(row)" |
|
|
|
|
|
>删除</el-button |
|
|
|
|
|
> |
|
|
|
|
|
<el-button |
|
|
|
|
|
type="text" |
|
|
|
|
|
v-if="cus_build_index_open" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="toDisable(row)" |
|
|
|
|
|
>{{ row.lockFlag == 0 ? "禁用" : "启用" }}</el-button |
|
|
|
|
|
> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
<div style="display: flex; justify-content: flex-end; margin-top: 10px"> |
|
|
<div style="display: flex; justify-content: flex-end; margin-top: 10px"> |
|
|
<el-pagination |
|
|
<el-pagination |
|
@@ -312,10 +388,14 @@ |
|
|
label-width="150px" |
|
|
label-width="150px" |
|
|
style="width: 60%" |
|
|
style="width: 60%" |
|
|
:rules="rules" |
|
|
:rules="rules" |
|
|
|
|
|
|
|
|
> |
|
|
> |
|
|
<el-form-item label="公司" prop="orgCode" v-if="orgType != 2"> |
|
|
<el-form-item label="公司" prop="orgCode" v-if="orgType != 2"> |
|
|
<el-select :disabled="editFlag==true" v-model="ruleForm.orgCode" filterable placeholder="请选择公司"> |
|
|
|
|
|
|
|
|
<el-select |
|
|
|
|
|
:disabled="editFlag == true" |
|
|
|
|
|
v-model="ruleForm.orgCode" |
|
|
|
|
|
filterable |
|
|
|
|
|
placeholder="请选择公司" |
|
|
|
|
|
> |
|
|
<el-option |
|
|
<el-option |
|
|
v-for="item in orgList" |
|
|
v-for="item in orgList" |
|
|
:key="item.id" |
|
|
:key="item.id" |
|
@@ -326,7 +406,7 @@ |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="楼盘类型" prop="houseType" v-if="orgType != 2"> |
|
|
<el-form-item label="楼盘类型" prop="houseType" v-if="orgType != 2"> |
|
|
<el-radio-group v-model="ruleForm.houseType" style="width:400px;"> |
|
|
|
|
|
|
|
|
<el-radio-group v-model="ruleForm.houseType" style="width: 400px"> |
|
|
<el-radio :label="0">正式</el-radio> |
|
|
<el-radio :label="0">正式</el-radio> |
|
|
<el-radio :label="1">试用</el-radio> |
|
|
<el-radio :label="1">试用</el-radio> |
|
|
<el-radio :label="2">演示</el-radio> |
|
|
<el-radio :label="2">演示</el-radio> |
|
@@ -334,7 +414,11 @@ |
|
|
</el-radio-group> |
|
|
</el-radio-group> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="楼盘名称" prop="propertyName"> |
|
|
<el-form-item label="楼盘名称" prop="propertyName"> |
|
|
<el-input v-model="ruleForm.propertyName" maxlength="30" clearable></el-input> |
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="ruleForm.propertyName" |
|
|
|
|
|
maxlength="30" |
|
|
|
|
|
clearable |
|
|
|
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="合同起止日期" |
|
|
label="合同起止日期" |
|
@@ -354,7 +438,11 @@ |
|
|
</el-date-picker> |
|
|
</el-date-picker> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="联系人" prop="linkman"> |
|
|
<el-form-item label="联系人" prop="linkman"> |
|
|
<el-input v-model="ruleForm.linkman" maxlength="20" clearable></el-input> |
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="ruleForm.linkman" |
|
|
|
|
|
maxlength="20" |
|
|
|
|
|
clearable |
|
|
|
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="联系手机" prop="linkmanPhone"> |
|
|
<el-form-item label="联系手机" prop="linkmanPhone"> |
|
|
<el-input |
|
|
<el-input |
|
@@ -377,10 +465,20 @@ |
|
|
></el-cascader> |
|
|
></el-cascader> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="详细地址" prop="address"> |
|
|
<el-form-item label="详细地址" prop="address"> |
|
|
<el-input v-model="ruleForm.address" type="textarea" maxlength="60" show-word-limit></el-input> |
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
v-model="ruleForm.address" |
|
|
|
|
|
type="textarea" |
|
|
|
|
|
maxlength="60" |
|
|
|
|
|
show-word-limit |
|
|
|
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="管理员账号" prop="managerPhone" v-if="!editFlag"> |
|
|
<el-form-item label="管理员账号" prop="managerPhone" v-if="!editFlag"> |
|
|
<el-input auto-complete="new-password" maxlength="11" onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" v-model="ruleForm.managerPhone"></el-input> |
|
|
|
|
|
|
|
|
<el-input |
|
|
|
|
|
auto-complete="new-password" |
|
|
|
|
|
maxlength="11" |
|
|
|
|
|
onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" |
|
|
|
|
|
v-model="ruleForm.managerPhone" |
|
|
|
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item |
|
|
<el-form-item |
|
|
label="管理员密码" |
|
|
label="管理员密码" |
|
@@ -388,12 +486,12 @@ |
|
|
v-if="!editFlag" |
|
|
v-if="!editFlag" |
|
|
> |
|
|
> |
|
|
<el-input |
|
|
<el-input |
|
|
auto-complete="new-password" |
|
|
|
|
|
|
|
|
auto-complete="new-password" |
|
|
v-model="ruleForm.managerPassword" |
|
|
v-model="ruleForm.managerPassword" |
|
|
maxlength="18" |
|
|
maxlength="18" |
|
|
type="passsword" |
|
|
type="passsword" |
|
|
show-password |
|
|
show-password |
|
|
:disabled='passFlag' |
|
|
|
|
|
|
|
|
:disabled="passFlag" |
|
|
></el-input> |
|
|
></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
@@ -403,7 +501,7 @@ |
|
|
<!-- {{ |
|
|
<!-- {{ |
|
|
editFlag ? "编辑" : "保存" |
|
|
editFlag ? "编辑" : "保存" |
|
|
}} --> |
|
|
}} --> |
|
|
保存 |
|
|
|
|
|
|
|
|
保存 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
@@ -431,7 +529,7 @@ |
|
|
<el-form-item label="管理员密码:" prop="managerPassword"> |
|
|
<el-form-item label="管理员密码:" prop="managerPassword"> |
|
|
<el-input |
|
|
<el-input |
|
|
style="width: 200px" |
|
|
style="width: 200px" |
|
|
:disabled='passFlag' |
|
|
|
|
|
|
|
|
:disabled="passFlag" |
|
|
show-password |
|
|
show-password |
|
|
v-model="accountForm.managerPassword" |
|
|
v-model="accountForm.managerPassword" |
|
|
></el-input> |
|
|
></el-input> |
|
@@ -443,8 +541,10 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :title="sysFlag==0?'绑定系统运营':'绑定售后运营'" :visible.sync="operaVisible"> |
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
|
:title="sysFlag == 0 ? '绑定系统运营' : '绑定售后运营'" |
|
|
|
|
|
:visible.sync="operaVisible" |
|
|
|
|
|
> |
|
|
<el-form |
|
|
<el-form |
|
|
:model="operaForm" |
|
|
:model="operaForm" |
|
|
label-position="labelPosition" |
|
|
label-position="labelPosition" |
|
@@ -534,56 +634,58 @@ export default { |
|
|
callback(new Error("请输入管理员账号")); |
|
|
callback(new Error("请输入管理员账号")); |
|
|
} else { |
|
|
} else { |
|
|
if (value) { |
|
|
if (value) { |
|
|
this.passFlag=false |
|
|
|
|
|
|
|
|
this.passFlag = false; |
|
|
if (!/^1[3456789]\d{9}$/.test(value)) { |
|
|
if (!/^1[3456789]\d{9}$/.test(value)) { |
|
|
// alert("手机号码不合法,请重新输入"); |
|
|
// alert("手机号码不合法,请重新输入"); |
|
|
callback(new Error("手机号格式错误,请重新输入")); |
|
|
callback(new Error("手机号格式错误,请重新输入")); |
|
|
}else{ |
|
|
|
|
|
// 验证电话号码 |
|
|
|
|
|
this.$api.api.verPhone(value).then((res) => { |
|
|
|
|
|
// console.log(res); |
|
|
|
|
|
// 判断数据是否已经有了 |
|
|
|
|
|
if (res.data) { |
|
|
|
|
|
// 由用户 |
|
|
|
|
|
this.$api.api.userVerify({ |
|
|
|
|
|
houseId:this.accountForm.id, |
|
|
|
|
|
orgType:3, |
|
|
|
|
|
accountId:res.data.sysUser.accountId, |
|
|
|
|
|
username:res.data.sysUser.username, |
|
|
|
|
|
agentId:localStorage.getItem('agentId'), |
|
|
|
|
|
orgCode:localStorage.getItem('orgCode'), |
|
|
|
|
|
}) |
|
|
|
|
|
.then(res1=>{ |
|
|
|
|
|
this.resetFlag=true |
|
|
|
|
|
this.passFlag=true |
|
|
|
|
|
if(this.changeFlag){ |
|
|
|
|
|
this.accountForm.managerPassword=res.data.sysUser.resultPwd |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.ruleForm.managerPassword=res.data.sysUser.resultPwd |
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
// 验证电话号码 |
|
|
|
|
|
this.$api.api.verPhone(value).then((res) => { |
|
|
|
|
|
// console.log(res); |
|
|
|
|
|
// 判断数据是否已经有了 |
|
|
|
|
|
if (res.data) { |
|
|
|
|
|
// 由用户 |
|
|
|
|
|
this.$api.api |
|
|
|
|
|
.userVerify({ |
|
|
|
|
|
houseId: this.accountForm.id, |
|
|
|
|
|
orgType: 3, |
|
|
|
|
|
accountId: res.data.sysUser.accountId, |
|
|
|
|
|
username: res.data.sysUser.username, |
|
|
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
|
|
orgCode: localStorage.getItem("orgCode"), |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res1) => { |
|
|
|
|
|
this.resetFlag = true; |
|
|
|
|
|
this.passFlag = true; |
|
|
|
|
|
if (this.changeFlag) { |
|
|
|
|
|
this.accountForm.managerPassword = |
|
|
|
|
|
res.data.sysUser.resultPwd; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.ruleForm.managerPassword = |
|
|
|
|
|
res.data.sysUser.resultPwd; |
|
|
|
|
|
} |
|
|
|
|
|
callback(); |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => { |
|
|
|
|
|
console.log(err); |
|
|
|
|
|
// |
|
|
|
|
|
this.resetFlag = false; |
|
|
|
|
|
callback(new Error(err)); |
|
|
|
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
// 没有用户 |
|
|
|
|
|
// console.log("没有用户"); |
|
|
|
|
|
// callback(new Error("没有管理员账号")); |
|
|
|
|
|
if (this.changeFlag) { |
|
|
|
|
|
this.accountForm.managerPassword = ""; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.ruleForm.managerPassword = ""; |
|
|
} |
|
|
} |
|
|
|
|
|
this.resetFlag = true; |
|
|
|
|
|
this.passFlag = false; |
|
|
callback(); |
|
|
callback(); |
|
|
}) |
|
|
|
|
|
.catch(err=>{ |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
// |
|
|
|
|
|
this.resetFlag=false |
|
|
|
|
|
callback(new Error(err)); |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
// 没有用户 |
|
|
|
|
|
// console.log("没有用户"); |
|
|
|
|
|
// callback(new Error("没有管理员账号")); |
|
|
|
|
|
if(this.changeFlag){ |
|
|
|
|
|
this.accountForm.managerPassword='' |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.ruleForm.managerPassword='' |
|
|
|
|
|
} |
|
|
|
|
|
this.resetFlag=true |
|
|
|
|
|
this.passFlag=false |
|
|
|
|
|
callback(); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
callback(); |
|
|
callback(); |
|
@@ -622,22 +724,23 @@ export default { |
|
|
editFlag: false, |
|
|
editFlag: false, |
|
|
changeFlag: false, |
|
|
changeFlag: false, |
|
|
operaVisible: false, |
|
|
operaVisible: false, |
|
|
resetFlag:false, |
|
|
|
|
|
passFlag:false, |
|
|
|
|
|
|
|
|
resetFlag: false, |
|
|
|
|
|
passFlag: false, |
|
|
starTime: [], |
|
|
starTime: [], |
|
|
searchForm: { |
|
|
searchForm: { |
|
|
corporateName: "", |
|
|
corporateName: "", |
|
|
propertyName: "", |
|
|
propertyName: "", |
|
|
provinceId:'', |
|
|
|
|
|
|
|
|
provinceId: "", |
|
|
serviceStatus: "", |
|
|
serviceStatus: "", |
|
|
houseType: "", |
|
|
houseType: "", |
|
|
|
|
|
timeType:'0', |
|
|
// residueTime: 7, |
|
|
// residueTime: 7, |
|
|
startWorking: "", |
|
|
startWorking: "", |
|
|
endWorking: "", |
|
|
endWorking: "", |
|
|
agentName: "", |
|
|
agentName: "", |
|
|
operationalPeople: "", |
|
|
operationalPeople: "", |
|
|
}, |
|
|
}, |
|
|
areaList:[], |
|
|
|
|
|
|
|
|
areaList: [], |
|
|
options1: [ |
|
|
options1: [ |
|
|
{ |
|
|
{ |
|
|
value: "0", |
|
|
value: "0", |
|
@@ -666,13 +769,23 @@ export default { |
|
|
label: "测试", |
|
|
label: "测试", |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
timeTypeList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
value: "0", |
|
|
|
|
|
label: "添加时间", |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
value: "1", |
|
|
|
|
|
label: "合同结束日期", |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
currentPage: 1, |
|
|
currentPage: 1, |
|
|
size: 10, |
|
|
size: 10, |
|
|
total: 10, |
|
|
total: 10, |
|
|
value: "", |
|
|
value: "", |
|
|
input: "", |
|
|
input: "", |
|
|
sysFlag:'0', |
|
|
|
|
|
idx:'0', |
|
|
|
|
|
|
|
|
sysFlag: "0", |
|
|
|
|
|
idx: "0", |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
optionsoperationalPeople: [], |
|
|
optionsoperationalPeople: [], |
|
|
orgType: "", |
|
|
orgType: "", |
|
@@ -680,7 +793,7 @@ export default { |
|
|
operationList: [], |
|
|
operationList: [], |
|
|
dialogVisible: false, |
|
|
dialogVisible: false, |
|
|
dialogVisible1: false, |
|
|
dialogVisible1: false, |
|
|
agentVisible:false, |
|
|
|
|
|
|
|
|
agentVisible: false, |
|
|
time: [], |
|
|
time: [], |
|
|
addressOptions: [], |
|
|
addressOptions: [], |
|
|
accountForm: { |
|
|
accountForm: { |
|
@@ -690,10 +803,16 @@ export default { |
|
|
accountRules: { |
|
|
accountRules: { |
|
|
managerPhone: [ |
|
|
managerPhone: [ |
|
|
{ required: true, message: "请填写账号", trigger: "blur" }, |
|
|
{ required: true, message: "请填写账号", trigger: "blur" }, |
|
|
{ validator: validatePass1, trigger: "blur" }], |
|
|
|
|
|
|
|
|
{ validator: validatePass1, trigger: "blur" }, |
|
|
|
|
|
], |
|
|
managerPassword: [ |
|
|
managerPassword: [ |
|
|
{ required: true, message: "请填写密码", trigger: "blur" }, |
|
|
{ required: true, message: "请填写密码", trigger: "blur" }, |
|
|
{ min: 6, max: 18, message: '请输入6~18位,数字或字母组合的密码', trigger: 'blur' } |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
min: 6, |
|
|
|
|
|
max: 18, |
|
|
|
|
|
message: "请输入6~18位,数字或字母组合的密码", |
|
|
|
|
|
trigger: "blur", |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
ruleForm: { |
|
|
ruleForm: { |
|
@@ -711,10 +830,10 @@ export default { |
|
|
managerPassword: "", //密码 |
|
|
managerPassword: "", //密码 |
|
|
provinceId: "", //省id |
|
|
provinceId: "", //省id |
|
|
cityId: "", //市id |
|
|
cityId: "", //市id |
|
|
agentId:localStorage.getItem('agentId') |
|
|
|
|
|
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
}, |
|
|
}, |
|
|
ruleForm1: {}, |
|
|
ruleForm1: {}, |
|
|
optionsagentId:[], |
|
|
|
|
|
|
|
|
optionsagentId: [], |
|
|
rules: { |
|
|
rules: { |
|
|
orgCode: [{ required: true, message: "请选择公司", trigger: "blur" }], |
|
|
orgCode: [{ required: true, message: "请选择公司", trigger: "blur" }], |
|
|
propertyName: [ |
|
|
propertyName: [ |
|
@@ -722,19 +841,24 @@ export default { |
|
|
], |
|
|
], |
|
|
managerPassword: [ |
|
|
managerPassword: [ |
|
|
{ required: true, message: "请填写密码", trigger: "blur" }, |
|
|
{ required: true, message: "请填写密码", trigger: "blur" }, |
|
|
{ min: 6, max: 18, message: '请输入6~18位,数字或字母组合的密码', trigger: 'blur' } |
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
min: 6, |
|
|
|
|
|
max: 18, |
|
|
|
|
|
message: "请输入6~18位,数字或字母组合的密码", |
|
|
|
|
|
trigger: "blur", |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
startWorking: [ |
|
|
startWorking: [ |
|
|
{ required: true, message: "请选择时间", trigger: "change" }, |
|
|
{ required: true, message: "请选择时间", trigger: "change" }, |
|
|
], |
|
|
], |
|
|
managerPhone: [ |
|
|
managerPhone: [ |
|
|
{ required: true, message: "请填写账号", trigger: "change" }, |
|
|
|
|
|
{ validator: validatePass1, trigger: "blur" } |
|
|
|
|
|
], |
|
|
|
|
|
|
|
|
{ required: true, message: "请填写账号", trigger: "change" }, |
|
|
|
|
|
{ validator: validatePass1, trigger: "blur" }, |
|
|
|
|
|
], |
|
|
linkmanPhone: [{ validator: validatePass, trigger: "blur" }], |
|
|
linkmanPhone: [{ validator: validatePass, trigger: "blur" }], |
|
|
provinceId:[ |
|
|
|
|
|
{ required: false, message: "请选择省市", trigger: "change" }, |
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
provinceId: [ |
|
|
|
|
|
{ required: false, message: "请选择省市", trigger: "change" }, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
operaForm: { |
|
|
operaForm: { |
|
|
operationalPeople: "", |
|
|
operationalPeople: "", |
|
@@ -748,11 +872,11 @@ export default { |
|
|
agentId: [{ required: true, message: "请选择代理商", trigger: "blur" }], |
|
|
agentId: [{ required: true, message: "请选择代理商", trigger: "blur" }], |
|
|
}, |
|
|
}, |
|
|
agentForm: { |
|
|
agentForm: { |
|
|
agentId:'', |
|
|
|
|
|
|
|
|
agentId: "", |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
|
|
|
|
|
|
computed: { |
|
|
...mapGetters(["permissions"]), |
|
|
...mapGetters(["permissions"]), |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@@ -761,36 +885,35 @@ export default { |
|
|
this.cus_build_index_change = this.permissions["cus_build_index_change"]; |
|
|
this.cus_build_index_change = this.permissions["cus_build_index_change"]; |
|
|
this.cus_build_index_sys = this.permissions["cus_build_index_sys"]; |
|
|
this.cus_build_index_sys = this.permissions["cus_build_index_sys"]; |
|
|
this.cus_build_index_agent = this.permissions["cus_build_index_agent"]; |
|
|
this.cus_build_index_agent = this.permissions["cus_build_index_agent"]; |
|
|
this.cus_build_index_bindAgent = this.permissions["cus_build_index_bindAgent"]; |
|
|
|
|
|
|
|
|
this.cus_build_index_bindAgent = |
|
|
|
|
|
this.permissions["cus_build_index_bindAgent"]; |
|
|
this.cus_build_index_del = this.permissions["cus_build_index_del"]; |
|
|
this.cus_build_index_del = this.permissions["cus_build_index_del"]; |
|
|
this.cus_build_index_open = this.permissions["cus_build_index_open"]; |
|
|
this.cus_build_index_open = this.permissions["cus_build_index_open"]; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
if(this.$route.query.serviceStatus){ |
|
|
|
|
|
this.starTime=this.$route.query.residueTime; |
|
|
|
|
|
this.searchForm.startWorking=this.starTime[0]; |
|
|
|
|
|
this.searchForm.endWorking=this.starTime[1]; |
|
|
|
|
|
this.searchForm.serviceStatus=this.$route.query.serviceStatus; |
|
|
|
|
|
this.searchForm.houseType='0' |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (this.$route.query.serviceStatus) { |
|
|
|
|
|
this.starTime = this.$route.query.residueTime; |
|
|
|
|
|
this.searchForm.startWorking = this.starTime[0]; |
|
|
|
|
|
this.searchForm.endWorking = this.starTime[1]; |
|
|
|
|
|
this.searchForm.serviceStatus = this.$route.query.serviceStatus; |
|
|
|
|
|
this.searchForm.houseType = "0"; |
|
|
|
|
|
} |
|
|
this.orgType = localStorage.getItem("orgType"); |
|
|
this.orgType = localStorage.getItem("orgType"); |
|
|
// 获取公司列表数据 |
|
|
// 获取公司列表数据 |
|
|
this.getOrgList(); |
|
|
this.getOrgList(); |
|
|
// 获取运营人员 |
|
|
// 获取运营人员 |
|
|
// this.getAllOperationsStaff(); |
|
|
// this.getAllOperationsStaff(); |
|
|
// 获取地区列表 |
|
|
// 获取地区列表 |
|
|
this.getCityList() |
|
|
|
|
|
|
|
|
this.getCityList(); |
|
|
// 获取列表数据 |
|
|
// 获取列表数据 |
|
|
this.zkhousePage(); |
|
|
this.zkhousePage(); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getCityList(){ |
|
|
|
|
|
this.$api.api.getAreaList({parentId:0}) |
|
|
|
|
|
.then(res=>{ |
|
|
|
|
|
|
|
|
getCityList() { |
|
|
|
|
|
this.$api.api.getAreaList({ parentId: 0 }).then((res) => { |
|
|
// console.log(res,'地区列表'); |
|
|
// console.log(res,'地区列表'); |
|
|
this.areaList=res.data |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.areaList = res.data; |
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
bindAgent(row) { |
|
|
bindAgent(row) { |
|
|
// console.log(row); |
|
|
// console.log(row); |
|
@@ -820,7 +943,7 @@ export default { |
|
|
this.optionsagentId = res.data; |
|
|
this.optionsagentId = res.data; |
|
|
this.agentForm.orgCode = row.orgCode; |
|
|
this.agentForm.orgCode = row.orgCode; |
|
|
this.agentForm.houseId = row.id; |
|
|
this.agentForm.houseId = row.id; |
|
|
this.agentForm.agentId=row.agentId |
|
|
|
|
|
|
|
|
this.agentForm.agentId = row.agentId; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
saveOpera() { |
|
|
saveOpera() { |
|
@@ -833,7 +956,7 @@ export default { |
|
|
accountIds: this.operaForm.operationalPeople.join(","), |
|
|
accountIds: this.operaForm.operationalPeople.join(","), |
|
|
orgId: this.operaForm.orgId, |
|
|
orgId: this.operaForm.orgId, |
|
|
orgCode: this.operaForm.orgCode, |
|
|
orgCode: this.operaForm.orgCode, |
|
|
operationType:this.idx==0?'1':'2' |
|
|
|
|
|
|
|
|
operationType: this.idx == 0 ? "1" : "2", |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
console.log(res); |
|
|
console.log(res); |
|
@@ -844,23 +967,23 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
editOpera(row,idx) { |
|
|
|
|
|
|
|
|
editOpera(row, idx) { |
|
|
// console.log(row,idx); |
|
|
// console.log(row,idx); |
|
|
// 获取运营人员列表 |
|
|
// 获取运营人员列表 |
|
|
this.operaForm.orgId = row.id; |
|
|
this.operaForm.orgId = row.id; |
|
|
this.operaForm.orgCode = row.orgCode; |
|
|
this.operaForm.orgCode = row.orgCode; |
|
|
this.sysFlag=idx |
|
|
|
|
|
this.idx=idx |
|
|
|
|
|
this.AllOperationsStaff(idx,row); |
|
|
|
|
|
this.zkoperationrecordFindByOrg(row.id,idx,row.agentId); |
|
|
|
|
|
|
|
|
this.sysFlag = idx; |
|
|
|
|
|
this.idx = idx; |
|
|
|
|
|
this.AllOperationsStaff(idx, row); |
|
|
|
|
|
this.zkoperationrecordFindByOrg(row.id, idx, row.agentId); |
|
|
}, |
|
|
}, |
|
|
zkoperationrecordFindByOrg(orgId,idx,agentId) { |
|
|
|
|
|
|
|
|
zkoperationrecordFindByOrg(orgId, idx, agentId) { |
|
|
this.$api.api |
|
|
this.$api.api |
|
|
.zkoperationrecordFindByOrg({ |
|
|
.zkoperationrecordFindByOrg({ |
|
|
orgType:3, |
|
|
|
|
|
|
|
|
orgType: 3, |
|
|
orgId, |
|
|
orgId, |
|
|
agentId, |
|
|
agentId, |
|
|
operationType:this.idx==0?'1':'2' |
|
|
|
|
|
|
|
|
operationType: this.idx == 0 ? "1" : "2", |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
// console.log(res); |
|
|
// console.log(res); |
|
@@ -878,30 +1001,32 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
//获取运营人员 |
|
|
//获取运营人员 |
|
|
AllOperationsStaff(idx,row) { |
|
|
|
|
|
|
|
|
AllOperationsStaff(idx, row) { |
|
|
console.log(idx); |
|
|
console.log(idx); |
|
|
this.optionsoperationalPeople = []; |
|
|
this.optionsoperationalPeople = []; |
|
|
if(idx==1){ |
|
|
|
|
|
this.$api.http.getAllOperationsStaffByAgent({ |
|
|
|
|
|
agentId:row.agentId |
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
this.optionsoperationalPeople= res.data |
|
|
|
|
|
this.operaVisible = true; |
|
|
|
|
|
}); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$api.http.getAllOperationsStaff().then((res) => { |
|
|
|
|
|
this.optionsoperationalPeople= res.data |
|
|
|
|
|
|
|
|
if (idx == 1) { |
|
|
|
|
|
this.$api.http |
|
|
|
|
|
.getAllOperationsStaffByAgent({ |
|
|
|
|
|
agentId: row.agentId, |
|
|
|
|
|
}) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
this.optionsoperationalPeople = res.data; |
|
|
this.operaVisible = true; |
|
|
this.operaVisible = true; |
|
|
}); |
|
|
}); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$api.http.getAllOperationsStaff().then((res) => { |
|
|
|
|
|
this.optionsoperationalPeople = res.data; |
|
|
|
|
|
this.operaVisible = true; |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// this.$api.api.getAllOperationsStaffByAgent({agentId}).then((res) => { |
|
|
// this.$api.api.getAllOperationsStaffByAgent({agentId}).then((res) => { |
|
|
// this.optionsoperationalPeople = res.data; |
|
|
// this.optionsoperationalPeople = res.data; |
|
|
// }); |
|
|
// }); |
|
|
}, |
|
|
}, |
|
|
screen(){ |
|
|
|
|
|
this.currentPage=1 |
|
|
|
|
|
this.zkhousePage() |
|
|
|
|
|
|
|
|
screen() { |
|
|
|
|
|
this.currentPage = 1; |
|
|
|
|
|
this.zkhousePage(); |
|
|
}, |
|
|
}, |
|
|
addSurequxiao() { |
|
|
addSurequxiao() { |
|
|
this.dialogVisible = false; |
|
|
this.dialogVisible = false; |
|
@@ -910,8 +1035,8 @@ export default { |
|
|
addSure() { |
|
|
addSure() { |
|
|
this.$refs.ruleForm.validate((valid) => { |
|
|
this.$refs.ruleForm.validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
if(!this.resetFlag){ |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
if (!this.resetFlag) { |
|
|
|
|
|
return; |
|
|
} |
|
|
} |
|
|
// 编辑 |
|
|
// 编辑 |
|
|
if (this.editFlag) { |
|
|
if (this.editFlag) { |
|
@@ -937,30 +1062,41 @@ export default { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
toDisable(row){ |
|
|
|
|
|
this.$confirm(`确定${row.lockFlag==0?'禁用'+'-'+row.propertyName+'-':'启用'+'-'+row.propertyName+'-'}楼盘吗?`, '提示', { |
|
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
|
toDisable(row) { |
|
|
|
|
|
this.$confirm( |
|
|
|
|
|
`确定${ |
|
|
|
|
|
row.lockFlag == 0 |
|
|
|
|
|
? "禁用" + "-" + row.propertyName + "-" |
|
|
|
|
|
: "启用" + "-" + row.propertyName + "-" |
|
|
|
|
|
}楼盘吗?`, |
|
|
|
|
|
"提示", |
|
|
|
|
|
{ |
|
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
|
type: "warning", |
|
|
|
|
|
} |
|
|
|
|
|
) |
|
|
|
|
|
.then(() => { |
|
|
// return |
|
|
// return |
|
|
// console.log(123); |
|
|
// console.log(123); |
|
|
this.$api.api.editZkhouse({id:row.id,lockFlag:row.lockFlag==0?1:0}).then((res) => { |
|
|
|
|
|
if(res.code==0){ |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
message: '操作成功!' |
|
|
|
|
|
}); |
|
|
|
|
|
this.zkhousePage(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$message.error(res.message); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
this.$api.api |
|
|
|
|
|
.editZkhouse({ id: row.id, lockFlag: row.lockFlag == 0 ? 1 : 0 }) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
if (res.code == 0) { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: "success", |
|
|
|
|
|
message: "操作成功!", |
|
|
|
|
|
}); |
|
|
|
|
|
this.zkhousePage(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(res.message); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
}) |
|
|
}) |
|
|
.catch(err=>{ |
|
|
|
|
|
|
|
|
.catch((err) => { |
|
|
// console.log('关闭'); |
|
|
// console.log('关闭'); |
|
|
// console.log(err); |
|
|
// console.log(err); |
|
|
}) |
|
|
|
|
|
|
|
|
}); |
|
|
}, |
|
|
}, |
|
|
dialogClose() { |
|
|
dialogClose() { |
|
|
this.restFrom(); |
|
|
this.restFrom(); |
|
@@ -989,11 +1125,11 @@ export default { |
|
|
addHouse() { |
|
|
addHouse() { |
|
|
this.editFlag = false; |
|
|
this.editFlag = false; |
|
|
this.dialogVisible = true; |
|
|
this.dialogVisible = true; |
|
|
this.passFlag=false |
|
|
|
|
|
|
|
|
this.passFlag = false; |
|
|
}, |
|
|
}, |
|
|
edit(row) { |
|
|
edit(row) { |
|
|
console.log(row); |
|
|
console.log(row); |
|
|
this.resetFlag=true |
|
|
|
|
|
|
|
|
this.resetFlag = true; |
|
|
this.time = [ |
|
|
this.time = [ |
|
|
row.startWorking.substring(0, 10), |
|
|
row.startWorking.substring(0, 10), |
|
|
row.endWorking.substring(0, 10), |
|
|
row.endWorking.substring(0, 10), |
|
@@ -1011,14 +1147,14 @@ export default { |
|
|
// 更换账号 |
|
|
// 更换账号 |
|
|
changeAccount(row) { |
|
|
changeAccount(row) { |
|
|
this.changeFlag = true; |
|
|
this.changeFlag = true; |
|
|
this.passFlag=false |
|
|
|
|
|
|
|
|
this.passFlag = false; |
|
|
this.accountForm.id = row.id; |
|
|
this.accountForm.id = row.id; |
|
|
}, |
|
|
}, |
|
|
changeSure() { |
|
|
changeSure() { |
|
|
if(!this.resetFlag){ |
|
|
|
|
|
this.$message.error('平台用户与楼盘用户不能重复添加!') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!this.resetFlag) { |
|
|
|
|
|
this.$message.error("平台用户与楼盘用户不能重复添加!"); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
this.$refs.accountForm.validate((valid) => { |
|
|
this.$refs.accountForm.validate((valid) => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
this.$api.api.updateManagerPhone(this.accountForm).then((res) => { |
|
|
this.$api.api.updateManagerPhone(this.accountForm).then((res) => { |
|
@@ -1066,7 +1202,7 @@ export default { |
|
|
this.$api.api |
|
|
this.$api.api |
|
|
.getCompanyList({ |
|
|
.getCompanyList({ |
|
|
orgType: this.orgType, |
|
|
orgType: this.orgType, |
|
|
agentId:localStorage.getItem('agentId') |
|
|
|
|
|
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
}) |
|
|
}) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
if (res.code == 0) { |
|
|
if (res.code == 0) { |
|
@@ -1164,24 +1300,25 @@ export default { |
|
|
corporateName: "", |
|
|
corporateName: "", |
|
|
propertyName: "", |
|
|
propertyName: "", |
|
|
serviceStatus: "", |
|
|
serviceStatus: "", |
|
|
provinceId:'', |
|
|
|
|
|
|
|
|
provinceId: "", |
|
|
houseType: "", |
|
|
houseType: "", |
|
|
|
|
|
timeType:'0', |
|
|
// residueTime: 7, |
|
|
// residueTime: 7, |
|
|
startWorking: "", |
|
|
startWorking: "", |
|
|
endWorking: "", |
|
|
endWorking: "", |
|
|
agentName: "", |
|
|
agentName: "", |
|
|
operationalPeople: "", |
|
|
operationalPeople: "", |
|
|
}; |
|
|
}; |
|
|
this.currentPage=1 |
|
|
|
|
|
this.zkhousePage() |
|
|
|
|
|
|
|
|
this.currentPage = 1; |
|
|
|
|
|
this.zkhousePage(); |
|
|
}, |
|
|
}, |
|
|
timeChange1(e) { |
|
|
timeChange1(e) { |
|
|
if(e){ |
|
|
|
|
|
this.searchForm.startWorking = e[0]; |
|
|
|
|
|
this.searchForm.endWorking = e[1]; |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.searchForm.startWorking = ''; |
|
|
|
|
|
this.searchForm.endWorking = ''; |
|
|
|
|
|
|
|
|
if (e) { |
|
|
|
|
|
this.searchForm.startWorking = e[0]; |
|
|
|
|
|
this.searchForm.endWorking = e[1]; |
|
|
|
|
|
} else { |
|
|
|
|
|
this.searchForm.startWorking = ""; |
|
|
|
|
|
this.searchForm.endWorking = ""; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tabtimetap(idx) { |
|
|
tabtimetap(idx) { |
|
@@ -1266,7 +1403,6 @@ export default { |
|
|
.div-lab { |
|
|
.div-lab { |
|
|
display: flex; |
|
|
display: flex; |
|
|
margin: 5px; |
|
|
margin: 5px; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
.div-inp { |
|
|
.div-inp { |
|
|
width: 250px; |
|
|
width: 250px; |
|
|