Browse Source

init

newStyle
lancer 3 years ago
parent
commit
5318a00f81
9 changed files with 67 additions and 13 deletions
  1. +5
    -1
      src/api/login.js
  2. +3
    -3
      src/page/check/chose.vue
  3. +18
    -2
      src/views/Customer/AgentManagement.vue
  4. +18
    -2
      src/views/Customer/CompanyRecord.vue
  5. +1
    -0
      src/views/Customer/Companymanagement.vue
  6. +1
    -1
      src/views/ReceivingRecords/index.vue
  7. +1
    -1
      src/views/admin/log/index.vue
  8. +1
    -1
      src/views/admin/log/log.vue
  9. +19
    -2
      src/views/building/index.vue

+ 5
- 1
src/api/login.js View File

@@ -82,7 +82,11 @@ export const getUserInfo = (query) => {
return request({
url: '/admin/user/info',
method: 'get',
params:query
params:{
orgCode:localStorage.getItem('orgCode'),
agentId:localStorage.getItem('agentId'),
...query,
}
})
}



+ 3
- 3
src/page/check/chose.vue View File

@@ -42,7 +42,7 @@
>{{ item.residueTime > 0 ? "服务中" : "已过期" }}</span
>
</div>
<div class="text-3">{{ item.provinceName+'-'+item.cityName|| "暂无" }}</div>
<div class="text-3">{{ (item.provinceName||'-')+'-'+(item.cityName|| "-") }}</div>
</div>
</div>
</div>
@@ -107,7 +107,7 @@
>{{ item.residueTime > 0 ? "服务中" : "已过期" }}</span
>
</div> -->
<div class="text-3">区域位置:{{ item.provinceName+'-'+item.cityName || "暂无" }}</div>
<div class="text-3">区域位置:{{ (item.provinceName||'-')+'-'+(item.cityName|| "-") }}</div>
</div>
</div>
</div>
@@ -172,7 +172,7 @@
>{{ item.residueTime > 0 ? "服务中" : "已过期" }}</span
>
</div>
<div class="text-3">{{ item.provinceName+'-'+item.cityName|| "暂无" }}</div>
<div class="text-3">{{ (item.provinceName||'-')+'-'+(item.cityName|| "-") }}</div>
</div>
</div>
</div>


+ 18
- 2
src/views/Customer/AgentManagement.vue View File

@@ -387,17 +387,19 @@ export default {
orgCode:localStorage.getItem('orgCode'),
})
.then(res1=>{
callback();

this.resetFlag=true
this.passFlag=true
if(this.dialogVisible3){
this.replaceagentobj.managerPassword=res.data.sysUser.resultPwd
}else{
this.addagentobj.managerPassword=res.data.sysUser.resultPwd
}
callback();
})
.catch(err=>{
console.log(err)
this.resetFlag=false
callback(new Error(err));
})
} else {
@@ -409,6 +411,7 @@ export default {
}else{
this.addagentobj.managerPassword=''
}
this.resetFlag=false
this.passFlag=false
callback();

@@ -434,6 +437,7 @@ export default {
passFlag:false,
dialogVisible:false,
dialogVisible2:false,
resetFlag:false,
dialogVisible3:false,
operaVisible:false,
timelist:'',
@@ -673,6 +677,10 @@ export default {
},
//确认编辑
editor(){
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.editoragentobj.validate((valid) => {
if (valid) {
this.$api.http.editorAgent(this.editoragentobj).then((res) => {
@@ -736,6 +744,10 @@ export default {
},
//确认更换
replace(){
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.replaceagentobj.validate((valid) => {
if (valid) {
this.$api.http.updateManagerPhone(this.replaceagentobj).then((res) => {
@@ -767,6 +779,10 @@ export default {
},
//确认新增
add(){
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.addagentobj.validate((valid) => {
if (valid) {
this.$api.http.AddAgent(this.addagentobj).then((res) => {


+ 18
- 2
src/views/Customer/CompanyRecord.vue View File

@@ -323,17 +323,19 @@ export default {
orgCode:localStorage.getItem('orgCode'),
})
.then(res1=>{
callback();
this.passFlag=true
this.resetFlag=false
if(this.dialogVisible3){
this.replaceagentobj.managerPassword=res.data.sysUser.resultPwd
}else{
this.addagentobj.managerPassword=res.data.sysUser.resultPwd
}
callback();
})
.catch(err=>{
console.log(err)
this.resetFlag=false
callback(new Error(err));
})
} else {
@@ -345,6 +347,7 @@ export default {
}else{
this.addagentobj.managerPassword=''
}
this.resetFlag=false
this.passFlag=false
callback();

@@ -432,6 +435,7 @@ export default {
dialogVisible3:false,
operaVisible:false,
agentVisible:false,
resetFlag:false,
passFlag:false,
currentPage4:1,
operatorName:'',//代理商名称
@@ -665,6 +669,10 @@ export default {
},
//确认编辑
editor(){
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.editoragentobj.validate((valid) => {
if (valid) {
this.$api.http.updateOrg(this.editoragentobj).then((res) => {
@@ -724,6 +732,10 @@ export default {
},
//确认更换
replace(){
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.replaceagentobj.validate((valid) => {
if (valid) {
this.$api.http.changeAccount(this.replaceagentobj).then((res) => {
@@ -853,6 +865,10 @@ export default {

//确认新增
add(){
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.addagentobj.validate((valid) => {
if (valid) {
this.addagentobj.pid=0;


+ 1
- 0
src/views/Customer/Companymanagement.vue View File

@@ -364,6 +364,7 @@ export default {
dialogVisible:false,
dialogVisible2:false,
dialogVisible3:false,
resetFlag:false,
operaVisible:false,
agentVisible:false,
currentPage4:1,


+ 1
- 1
src/views/ReceivingRecords/index.vue View File

@@ -528,11 +528,11 @@ export default {
if (idx == 2) {
num = 24 * 3600 * 1000 * 7;
}

this.time = [
this.timestampToTime(new Date().getTime() - num),
this.timestampToTime(new Date().getTime()),
];
this.houseChange();
},
timestampToTime(timestamp) {
var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000


+ 1
- 1
src/views/admin/log/index.vue View File

@@ -4,7 +4,7 @@
<div class="app-top">
<div class="app-titel" style="margin-top: 5px">
<div class="div-lab">
<div class="label">添加时间</div>
<div class="label">登录时间:</div>
<el-date-picker
v-model="time"
type="daterange"


+ 1
- 1
src/views/admin/log/log.vue View File

@@ -4,7 +4,7 @@
<div class="app-top">
<div class="app-titel" style="margin-top: 5px">
<div class="div-lab">
<div class="label">添加时间:</div>
<div class="label">登录时间:</div>
<el-date-picker
v-model="time"
type="daterange"


+ 19
- 2
src/views/building/index.vue View File

@@ -65,6 +65,8 @@
v-model="searchForm.houseType"
placeholder="请选择"
class="div-inp"
filterable
clearable
>
<el-option
v-for="item in options"
@@ -81,6 +83,8 @@
v-model="searchForm.serviceStatus"
placeholder="请选择"
class="div-inp"
filterable
clearable
>
<el-option
v-for="item in options1"
@@ -298,7 +302,7 @@
</el-select>
</el-form-item>
<el-form-item label="楼盘类型" prop="houseType" v-if="orgType != 2">
<el-radio-group v-model="ruleForm.houseType">
<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>
@@ -583,16 +587,19 @@ export default {
orgCode:localStorage.getItem('orgCode'),
})
.then(res1=>{
callback();
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 {
@@ -604,6 +611,7 @@ export default {
}else{
this.ruleForm.managerPassword=''
}
this.resetFlag=false
this.passFlag=false
callback();

@@ -647,6 +655,7 @@ export default {
editFlag: false,
changeFlag: false,
operaVisible: false,
resetFlag:false,
passFlag:false,
starTime: [],
searchForm: {
@@ -912,6 +921,10 @@ export default {
},
// 添加楼盘
addSure() {
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
// console.log(this.addressOptions)
this.$refs.ruleForm.validate((valid) => {
if (valid) {
@@ -1019,6 +1032,10 @@ export default {
this.accountForm.id = row.id;
},
changeSure() {
if(!this.resetFlag){
this.$message.error('平台用户与楼盘用户不能重复添加!')
return
}
this.$refs.accountForm.validate((valid) => {
if (valid) {
this.$api.api.updateManagerPhone(this.accountForm).then((res) => {


Loading…
Cancel
Save