|
|
@@ -152,7 +152,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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> |
|
|
@@ -268,148 +268,181 @@ |
|
|
|
width="600px" |
|
|
|
:center="true" |
|
|
|
> |
|
|
|
<el-form |
|
|
|
:model="ruleForm" |
|
|
|
label-position="labelPosition" |
|
|
|
ref="ruleForm" |
|
|
|
label-width="150px" |
|
|
|
style="width: 80%" |
|
|
|
:rules="rules" |
|
|
|
<div |
|
|
|
style="margin: 0 auto; width: 90%; height: 500px; overflow-y: scroll" |
|
|
|
> |
|
|
|
<el-form-item label="公司" prop="orgCode" v-if="orgType != 2"> |
|
|
|
<el-select |
|
|
|
style="width: 100%" |
|
|
|
:disabled="editFlag == true" |
|
|
|
v-model="ruleForm.orgCode" |
|
|
|
filterable |
|
|
|
placeholder="请选择公司" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in houseList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.corporateName" |
|
|
|
:value="item.orgCode" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目类型" prop="houseType" v-if="orgType != 2"> |
|
|
|
<el-radio-group v-model="ruleForm.houseType" style="width: 400px"> |
|
|
|
<el-radio :label="0">正式</el-radio> |
|
|
|
<el-radio :label="1">试用</el-radio> |
|
|
|
<el-radio :label="2">演示</el-radio> |
|
|
|
<el-radio :label="3">测试</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目名称" prop="propertyName"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.propertyName" |
|
|
|
placeholder="项目名称" |
|
|
|
maxlength="30" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="合同起止日期" |
|
|
|
prop="startWorking" |
|
|
|
v-if="orgType != 2" |
|
|
|
<el-form |
|
|
|
:model="ruleForm" |
|
|
|
label-position="labelPosition" |
|
|
|
ref="ruleForm" |
|
|
|
label-width="150px" |
|
|
|
style="width: 80%" |
|
|
|
:rules="rules" |
|
|
|
> |
|
|
|
<el-date-picker |
|
|
|
v-model="time" |
|
|
|
style="width: 100%" |
|
|
|
@change="timeChange" |
|
|
|
type="daterange" |
|
|
|
range-separator="-" |
|
|
|
:default-time="['00:00:00', '23:59:59']" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="日报推送时间" prop="time"> |
|
|
|
<el-time-picker |
|
|
|
v-model="ruleForm.time" |
|
|
|
format="HH:mm" |
|
|
|
value-format="HH:mm" |
|
|
|
placeholder="日报推送时间" |
|
|
|
<el-form-item label="公司" prop="orgCode" v-if="orgType != 2"> |
|
|
|
<el-select |
|
|
|
style="width: 100%" |
|
|
|
:disabled="editFlag == true" |
|
|
|
v-model="ruleForm.orgCode" |
|
|
|
filterable |
|
|
|
placeholder="请选择公司" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in houseList" |
|
|
|
:key="item.id" |
|
|
|
:label="item.corporateName" |
|
|
|
:value="item.orgCode" |
|
|
|
> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目类型" prop="houseType" v-if="orgType != 2"> |
|
|
|
<el-radio-group class="houseType" v-model="ruleForm.houseType"> |
|
|
|
<el-radio :label="0">正式</el-radio> |
|
|
|
<el-radio :label="1">试用</el-radio> |
|
|
|
<el-radio :label="2">演示</el-radio> |
|
|
|
<el-radio :label="3">测试</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目名称" prop="propertyName"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.propertyName" |
|
|
|
placeholder="项目名称" |
|
|
|
maxlength="30" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="合同起止日期" |
|
|
|
prop="startWorking" |
|
|
|
v-if="orgType != 2" |
|
|
|
> |
|
|
|
</el-time-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="联系人" prop="linkman"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.linkman" |
|
|
|
maxlength="20" |
|
|
|
placeholder="联系人" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="接待时长" prop="linkman"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.closeTime" |
|
|
|
maxlength="10" |
|
|
|
placeholder="接待时长(分钟)" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="联系手机" prop="linkmanPhone"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.linkmanPhone" |
|
|
|
type="tel" |
|
|
|
placeholder="联系手机" |
|
|
|
maxlength="11" |
|
|
|
onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目地区" prop="provinceId"> |
|
|
|
<el-cascader |
|
|
|
:props="props" |
|
|
|
style="width: 100%" |
|
|
|
@change="locationsChange" |
|
|
|
:options="addressOptions" |
|
|
|
placeholder="省/市" |
|
|
|
size="small" |
|
|
|
separator="/" |
|
|
|
v-model="ruleForm.area" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="详细地址" prop="address"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.address" |
|
|
|
placeholder="详细地址" |
|
|
|
type="textarea" |
|
|
|
maxlength="60" |
|
|
|
show-word-limit |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="管理员账号" prop="managerPhone" v-if="!editFlag"> |
|
|
|
<el-input |
|
|
|
auto-complete="new-password" |
|
|
|
maxlength="11" |
|
|
|
placeholder="管理员账号" |
|
|
|
onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" |
|
|
|
v-model="ruleForm.managerPhone" |
|
|
|
<el-date-picker |
|
|
|
v-model="time" |
|
|
|
style="width: 100%" |
|
|
|
@change="timeChange" |
|
|
|
type="daterange" |
|
|
|
range-separator="-" |
|
|
|
:default-time="['00:00:00', '23:59:59']" |
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
start-placeholder="开始日期" |
|
|
|
end-placeholder="结束日期" |
|
|
|
> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="日报推送时间" prop="time"> |
|
|
|
<el-time-picker |
|
|
|
v-model="ruleForm.time" |
|
|
|
format="HH:mm" |
|
|
|
value-format="HH:mm" |
|
|
|
placeholder="日报推送时间" |
|
|
|
> |
|
|
|
</el-time-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目离线推送时间" prop="offLine"> |
|
|
|
<el-time-picker |
|
|
|
style="width: 100%" |
|
|
|
is-range |
|
|
|
v-model="ruleForm.offLine" |
|
|
|
range-separator="-" |
|
|
|
start-placeholder="开始时间" |
|
|
|
end-placeholder="结束时间" |
|
|
|
placeholder="选择时间范围" |
|
|
|
value-format="HH:mm" |
|
|
|
format="HH:mm" |
|
|
|
> |
|
|
|
</el-time-picker> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="优秀案例" prop="caseShow"> |
|
|
|
<el-radio-group v-model="ruleForm.caseShow"> |
|
|
|
<el-radio :label="0">全部可见</el-radio> |
|
|
|
<el-radio :label="1">团队可见</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="客户标签匹配" prop="tagMatching"> |
|
|
|
<el-radio-group v-model="ruleForm.tagMatching"> |
|
|
|
<el-radio :label="0">全部话术</el-radio> |
|
|
|
<el-radio :label="1">客户话术</el-radio> |
|
|
|
</el-radio-group> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item label="联系人" prop="linkman"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.linkman" |
|
|
|
maxlength="20" |
|
|
|
placeholder="联系人" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="接待时长" prop="linkman"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.closeTime" |
|
|
|
maxlength="10" |
|
|
|
placeholder="接待时长(分钟)" |
|
|
|
clearable |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="联系手机" prop="linkmanPhone"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.linkmanPhone" |
|
|
|
type="tel" |
|
|
|
placeholder="联系手机" |
|
|
|
maxlength="11" |
|
|
|
onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="项目地区" prop="provinceId"> |
|
|
|
<el-cascader |
|
|
|
:props="props" |
|
|
|
style="width: 100%" |
|
|
|
@change="locationsChange" |
|
|
|
:options="addressOptions" |
|
|
|
placeholder="省/市" |
|
|
|
size="small" |
|
|
|
separator="/" |
|
|
|
v-model="ruleForm.area" |
|
|
|
filterable |
|
|
|
clearable |
|
|
|
></el-cascader> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="详细地址" prop="address"> |
|
|
|
<el-input |
|
|
|
v-model="ruleForm.address" |
|
|
|
placeholder="详细地址" |
|
|
|
type="textarea" |
|
|
|
maxlength="60" |
|
|
|
show-word-limit |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="管理员账号" prop="managerPhone" v-if="!editFlag"> |
|
|
|
<el-input |
|
|
|
auto-complete="new-password" |
|
|
|
maxlength="11" |
|
|
|
placeholder="管理员账号" |
|
|
|
onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));" |
|
|
|
v-model="ruleForm.managerPhone" |
|
|
|
> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="管理员密码" |
|
|
|
prop="managerPassword" |
|
|
|
v-if="!editFlag" |
|
|
|
> |
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item |
|
|
|
label="管理员密码" |
|
|
|
prop="managerPassword" |
|
|
|
v-if="!editFlag" |
|
|
|
> |
|
|
|
<el-input |
|
|
|
auto-complete="new-password" |
|
|
|
placeholder="管理员密码" |
|
|
|
v-model="ruleForm.managerPassword" |
|
|
|
maxlength="18" |
|
|
|
type="passsword" |
|
|
|
show-password |
|
|
|
:disabled="passFlag" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-input |
|
|
|
auto-complete="new-password" |
|
|
|
placeholder="管理员密码" |
|
|
|
v-model="ruleForm.managerPassword" |
|
|
|
maxlength="18" |
|
|
|
type="passsword" |
|
|
|
show-password |
|
|
|
:disabled="passFlag" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
slot="footer" |
|
|
|
class="dialog-footer" |
|
|
@@ -841,6 +874,9 @@ export default { |
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
time: "22:00", // 日报推送时间 |
|
|
|
closeTime: "120", // 接待时长(自动结束) |
|
|
|
offLine: ["08:00", "20:00"], // 离线推送时间段 |
|
|
|
caseShow: '0', // 优秀案例 |
|
|
|
tagMatching: '0', // 客户标签匹配 |
|
|
|
}, |
|
|
|
ruleForm1: {}, |
|
|
|
optionsagentId: [], |
|
|
@@ -870,6 +906,15 @@ export default { |
|
|
|
provinceId: [ |
|
|
|
{ required: true, message: "请选择省市", trigger: "change" }, |
|
|
|
], |
|
|
|
offLine: [ |
|
|
|
{ required: true, message: "请选择离线推送时间", trigger: "change" }, |
|
|
|
], |
|
|
|
caseShow: [ |
|
|
|
{ required: true, message: "请选择优秀案例", trigger: "change" }, |
|
|
|
], |
|
|
|
tagMatching: [ |
|
|
|
{ required: true, message: "请选择客户标签匹配", trigger: "change" }, |
|
|
|
], |
|
|
|
}, |
|
|
|
operaForm: { |
|
|
|
operationalPeople: "", |
|
|
@@ -1168,7 +1213,7 @@ export default { |
|
|
|
addSurequxiao() { |
|
|
|
this.dialogVisible = false; |
|
|
|
}, |
|
|
|
// 添加项目 |
|
|
|
// 添加项目this.ruleForm.closeTim |
|
|
|
addSure() { |
|
|
|
this.$refs.ruleForm.validate((valid) => { |
|
|
|
if (valid) { |
|
|
@@ -1186,6 +1231,7 @@ export default { |
|
|
|
this.loadingFlag = false; |
|
|
|
return; |
|
|
|
} |
|
|
|
this.ruleForm.offLine = this.ruleForm.offLine.join("~"); |
|
|
|
// 编辑 |
|
|
|
if (this.editFlag) { |
|
|
|
this.$api.api |
|
|
@@ -1297,6 +1343,12 @@ export default { |
|
|
|
managerPassword: "", //密码 |
|
|
|
provinceId: "", //省id |
|
|
|
cityId: "", //市id |
|
|
|
agentId: localStorage.getItem("agentId"), |
|
|
|
time: "22:00", // 日报推送时间 |
|
|
|
closeTime: "120", // 接待时长(自动结束) |
|
|
|
offLine: ["08:00", "20:00"], // 离线推送时间段 |
|
|
|
caseShow: 0, // 优秀案例 |
|
|
|
tagMatching: 0, // 客户标签匹配 |
|
|
|
}; |
|
|
|
}, |
|
|
|
// 新增项目,弹框显示 |
|
|
@@ -1316,10 +1368,14 @@ export default { |
|
|
|
this.ruleForm = Object.assign({}, row); |
|
|
|
this.ruleForm.area = [this.ruleForm.provinceId, this.ruleForm.cityId]; |
|
|
|
this.ruleForm.time = row.time || "22:00"; |
|
|
|
if (row.offLine && row.offLine.indexOf('~') != -1) { |
|
|
|
this.ruleForm.offLine = row.offLine.split('~') |
|
|
|
} |
|
|
|
|
|
|
|
this.editFlag = true; |
|
|
|
|
|
|
|
this.dialogVisible = true; |
|
|
|
this.$forceUpdate() |
|
|
|
this.$forceUpdate(); |
|
|
|
}, |
|
|
|
// 更换账号 |
|
|
|
changeAccount(row) { |
|
|
@@ -1644,4 +1700,14 @@ export default { |
|
|
|
/deep/ .el-button--text { |
|
|
|
color: #2671e2; |
|
|
|
} |
|
|
|
|
|
|
|
/deep/.houseType { |
|
|
|
height: 32px; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
.el-radio { |
|
|
|
margin-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |