Browse Source

init

newStyle
lancer 3 years ago
parent
commit
349ecac9d5
4 changed files with 51 additions and 48 deletions
  1. +8
    -2
      src/views/Customer/AgentManagement.vue
  2. +8
    -6
      src/views/Customer/CompanyRecord.vue
  3. +18
    -24
      src/views/Customer/index.vue
  4. +17
    -16
      src/views/ReceivingRecords/index.vue

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

@@ -162,7 +162,7 @@
</div>


<el-dialog title="新增代理" :visible.sync="dialogVisible" >
<el-dialog title="新增代理" :visible.sync="dialogVisible" @close='reset1'>
<el-form :model="addagentobj" label-position="labelPosition" :rules="rules" ref="addagentobj" label-width="140px" style="width:60%; margin: 0 auto;">
<el-form-item label="代理商名称:" prop="agentName">
<el-input v-model="addagentobj.agentName" maxlength="30" clearable></el-input>
@@ -239,7 +239,7 @@
</el-dialog>


<el-dialog title="编辑" :visible.sync="dialogVisible2" >
<el-dialog title="编辑" :visible.sync="dialogVisible2" @close='reset2'>
<el-form :model="editoragentobj" label-position="labelPosition" :rules="editorrules" ref="editoragentobj" label-width="140px" style="width:60%; margin: 0 auto;">
<el-form-item label="代理商名称:" prop="agentName">
<el-input v-model="editoragentobj.agentName" maxlength="30" clearable></el-input>
@@ -675,6 +675,12 @@ export default {
this.optionscityId= res.data
});
},
reset1(){
this.$refs.addagentobj.resetFields();
},
reset2(){
this.$refs.editoragentobj.resetFields();
},
//确认编辑
editor(){
if(!this.resetFlag){


+ 8
- 6
src/views/Customer/CompanyRecord.vue View File

@@ -120,7 +120,7 @@
</div>


<el-dialog title="新增公司" :visible.sync="dialogVisible" @close='reset'>
<el-dialog title="新增公司" :visible.sync="dialogVisible" @close='reset1'>
<el-form :model="addagentobj" label-position="labelPosition" :rules="rules" ref="addagentobj" label-width="140px" style="width:60%; margin: 0 auto;">
<!-- <el-form-item label="代理商名称:" prop="agentId"> -->
<!-- <el-select v-model="addagentobj.agentId" placeholder="请选择" @change='clickagentId()'> -->
@@ -183,7 +183,7 @@
</el-dialog>


<el-dialog title="编辑" :visible.sync="dialogVisible2" >
<el-dialog title="编辑" :visible.sync="dialogVisible2" @close='reset2'>
<el-form :model="editoragentobj" label-position="labelPosition" :rules="editorrules" ref="editoragentobj" label-width="140px" style="width:60%; margin: 0 auto;">
<!-- <el-form-item label="代理商名称:" prop="operator"> -->
<!-- <el-select v-model="editoragentobj.operator" placeholder="请选择" @change='clickagentId22()'> -->
@@ -563,9 +563,6 @@ export default {
}
})
},
reset(){
this.$refs.addagentobj.resetFields();
},
saveOpera(){
this.$refs.operaForm.validate(valid=>{
if(valid){
@@ -718,7 +715,12 @@ export default {




reset1(){
this.$refs.addagentobj.resetFields();
},
reset2(){
this.$refs.editoragentobj.resetFields();
},
//更换
inforeplace(row){
this.replaceagentobj.id=row.id;


+ 18
- 24
src/views/Customer/index.vue View File

@@ -527,13 +527,8 @@ export default {
}else{
this.searchForm.projectId = res.data[0].id;
}
// 获取接待记录列表
this.findbypage();
// 获取客户意向
// this.findKeywords();
// 获取置业顾问列表
this.findUserListByHouseId();
this.tabtimetap(0);
this.houseChange();
// this.tabtimetap(0);
});
},
// 置业顾问列表
@@ -560,23 +555,22 @@ export default {
this.searchForm.endDate = "";
// this.$set(this, "time", null);
this.searchForm.dateType = idx;
let num = 24 * 3600 * 1000;
// 获取当前时间戳转换为日期格式
if (idx == 0) {
num = 24 * 3600 * 1000 * 0;
}
if (idx == 2) {
num = 24 * 3600 * 1000 * 6;
}
if (idx == 6) {
num = 24 * 3600 * 1000 * 29;
}
this.time = [
this.timestampToTime(new Date().getTime() - num),
this.timestampToTime(new Date().getTime()),
];

this.findKeywords()
// let num = 24 * 3600 * 1000;
// // 获取当前时间戳转换为日期格式
// if (idx == 0) {
// num = 24 * 3600 * 1000 * 0;
// }
// if (idx == 2) {
// num = 24 * 3600 * 1000 * 6;
// }
// if (idx == 6) {
// num = 24 * 3600 * 1000 * 29;
// }
// 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


+ 17
- 16
src/views/ReceivingRecords/index.vue View File

@@ -484,8 +484,9 @@ export default {
} else {
this.searchForm.projectId = res.data[0].id;
}
this.houseChange();
// this.searchForm.projectId = res.data[0].id;
this.tabtimetap(0);
// this.tabtimetap(0);
// // 获取接待记录列表
// this.findbypage();
// // 获取客户意向
@@ -518,21 +519,21 @@ export default {
this.searchForm.endDate = "";
// this.$set(this, "time", null);
this.searchForm.dateType = idx;
let num = 24 * 3600 * 1000;
// 获取当前时间戳转换为日期格式
if (idx == 0) {
num = 24 * 3600 * 1000 * 0;
}
if (idx == 1) {
num = 24 * 3600 * 1000 * 1;
}
if (idx == 2) {
num = 24 * 3600 * 1000 * 7;
}
this.time = [
this.timestampToTime(new Date().getTime() - num),
this.timestampToTime(new Date().getTime()),
];
// let num = 24 * 3600 * 1000;
// // 获取当前时间戳转换为日期格式
// if (idx == 0) {
// num = 24 * 3600 * 1000 * 0;
// }
// if (idx == 1) {
// num = 24 * 3600 * 1000 * 1;
// }
// 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) {


Loading…
Cancel
Save