Browse Source

init

newStyle
lancer 2 years ago
parent
commit
4383f635b8
11 changed files with 144 additions and 23 deletions
  1. +27
    -5
      src/views/Customer/AgentManagement.vue
  2. +26
    -5
      src/views/Customer/CompanyRecord.vue
  3. +7
    -1
      src/views/Customer/Companymanagement.vue
  4. +7
    -1
      src/views/Equipment/index.vue
  5. +7
    -1
      src/views/Scheduling/index.vue
  6. +7
    -1
      src/views/Template/Pinspeakwords.vue
  7. +11
    -1
      src/views/Template/taboo.vue
  8. +11
    -1
      src/views/Template/wrongword.vue
  9. +11
    -1
      src/views/building/area.vue
  10. +28
    -4
      src/views/building/index.vue
  11. +2
    -2
      vue.config.js

+ 27
- 5
src/views/Customer/AgentManagement.vue View File

@@ -285,7 +285,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="add()">保存</el-button>
<el-button type="primary" @click="add()" :loading="loadingFlag">保存</el-button>
</div>
</el-dialog>

@@ -364,7 +364,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible2 = false">取 消</el-button>
<el-button type="primary" @click="editor()">保存</el-button>
<el-button type="primary" @click="editor()" :loading="loadingFlag">保存</el-button>
</div>
</el-dialog>

@@ -381,7 +381,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible3 = false">取 消</el-button>
<el-button type="primary" @click="replace()">保存</el-button>
<el-button type="primary" @click="replace()" :loading="loadingFlag">保存</el-button>
</div>
</el-dialog>

@@ -401,7 +401,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="operaVisible = false">取 消</el-button>
<el-button type="primary" @click="saveOpera()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button>
</div>
</el-dialog>
</div>
@@ -568,6 +568,7 @@ export default {
resetFlag:false,
dialogVisible3:false,
operaVisible:false,
loadingFlag:false,
provinceId:'',
cityId:'',
areaList:[],
@@ -611,7 +612,8 @@ export default {
address:'',// 详细地址
// operationalPeople:'',// 运营人员id
linkmanPhone:'',// 联系人手机号
rulestimelist:[]
rulestimelist:[],

},
rules:{
agentName: [
@@ -761,6 +763,7 @@ export default {
this.$refs.operaForm.validate(valid=>{
if(valid){
// console.log(valid,this.operaForm);
this.loadingFlag=true
this.$api.api.zkoperationrecord({
orgType:1,
accountIds:this.operaForm.operationalPeople.join(','),
@@ -769,6 +772,10 @@ export default {
})
.then(res=>{
console.log(res);
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success('操作成功')
this.getAgentList()
this.operaVisible=false
@@ -868,9 +875,14 @@ export default {
if(!this.resetFlag){
return
}
this.loadingFlag=true
this.$api.http.editorAgent(this.editoragentobj).then((res) => {
if(res.code==0){
this.dialogVisible2=false;
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.editoragentobj.contractStartDate='';
this.editoragentobj.contractEndDate='';
this.editoragentobj.id='';
@@ -935,9 +947,14 @@ export default {
}
this.$refs.replaceagentobj.validate((valid) => {
if (valid) {
this.loadingFlag=true
this.$api.http.updateManagerPhone(this.replaceagentobj).then((res) => {
if(res.code==0){
this.dialogVisible3=false;
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$refs.replaceagentobj.resetFields();
this.Screeningofempty()
this.getAgentList()
@@ -973,9 +990,14 @@ export default {
if(!this.resetFlag){
return
}
this.loadingFlag=true
this.$api.http.AddAgent(this.addagentobj).then((res) => {
if(res.code==0){
this.dialogVisible=false;
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.addagentobj.contractStartDate='';
this.addagentobj.contractEndDate='';
this.$refs.addagentobj.resetFields();


+ 26
- 5
src/views/Customer/CompanyRecord.vue View File

@@ -296,7 +296,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="add()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="add()">保存</el-button>
</div>
</el-dialog>

@@ -382,7 +382,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible2 = false">取 消</el-button>
<el-button type="primary" @click="editor()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button>
</div>
</el-dialog>

@@ -415,7 +415,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible3 = false">取 消</el-button>
<el-button type="primary" @click="replace()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="replace()">保存</el-button>
</div>
</el-dialog>

@@ -449,7 +449,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="operaVisible = false">取 消</el-button>
<el-button type="primary" @click="saveOpera()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button>
</div>
</el-dialog>

@@ -481,7 +481,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="agentVisible = false">取 消</el-button>
<el-button type="primary" @click="saveAgent()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="saveAgent()">保存</el-button>
</div>
</el-dialog>
</div>
@@ -699,6 +699,7 @@ export default {
agentVisible: false,
resetFlag: false,
passFlag: false,
loadingFlag:false,
operatorName: "", //代理商名称
operationStaffName: "", //运营人员名称
name: "", //公司名称
@@ -834,6 +835,7 @@ export default {
saveAgent() {
this.$refs.agentForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
console.log(this.agentForm);
this.$api.api
.bindAgent({
@@ -841,6 +843,10 @@ export default {
orgCode: this.agentForm.orgCode,
})
.then((res) => {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("操作成功");
this.agentVisible = false;
this.Screeningofempty();
@@ -852,6 +858,7 @@ export default {
this.$refs.operaForm.validate((valid) => {
if (valid) {
// console.log(valid,this.operaForm);
this.loadingFlag=true
this.$api.api
.zkoperationrecordSaveCompany({
orgType: 2,
@@ -861,6 +868,10 @@ export default {
})
.then((res) => {
console.log(res);
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("操作成功");
this.operaVisible = false;
this.Screeningofempty();
@@ -1048,8 +1059,13 @@ export default {
}
this.$refs.replaceagentobj.validate((valid) => {
if (valid) {
this.loadingFlag=true
this.$api.http.changeAccount(this.replaceagentobj).then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible3 = false;
this.$refs.replaceagentobj.resetFields();
this.Screeningofempty();
@@ -1193,9 +1209,14 @@ export default {
if (!this.resetFlag) {
return;
}
this.loadingFlag=true
this.addagentobj.pid = 0;
this.$api.http.AddaddOrg(this.addagentobj).then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$refs.addagentobj.resetFields();
this.Screeningofempty();


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

@@ -366,7 +366,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="operaVisible = false">取 消</el-button>
<el-button type="primary" @click="saveOpera()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button>
</div>
</el-dialog>

@@ -523,6 +523,7 @@ export default {
resetFlag: false,
operaVisible: false,
agentVisible: false,
loadingFlag:false,
currentPage4: 1,
operatorName: "", //代理商名称
operationStaffName: "", //运营人员名称
@@ -664,6 +665,7 @@ export default {
this.$refs.operaForm.validate((valid) => {
if (valid) {
// console.log(valid,this.operaForm);
this.loadingFlag=true
this.$api.api
.zkoperationrecordSaveCompany({
// orgType:this.idx==0?'1':'2',
@@ -674,6 +676,10 @@ export default {
})
.then((res) => {
console.log(res);
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("操作成功");
this.operaVisible = false;
this.Screeningofempty();


+ 7
- 1
src/views/Equipment/index.vue View File

@@ -478,7 +478,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="addEquipment()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="addEquipment()">保存</el-button>
</div>
</el-dialog>

@@ -818,6 +818,7 @@ export default {
dialogVisible4: false,
dialogVisible5: false,
receiveVisible: false,
loadingFlag:false,
batchForm: {
batchId: "",
imeis: "",
@@ -1266,9 +1267,14 @@ export default {
addEquipment() {
this.$refs.addForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
console.log(this.addForm);
this.$api.api.equipmentAdd(this.addForm).then((res) => {
console.log(res);
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("添加成功");
this.dialogVisible = false;
this.equipmentManagement();


+ 7
- 1
src/views/Scheduling/index.vue View File

@@ -152,7 +152,7 @@
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="editor()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button>
</div>
</el-dialog>

@@ -196,6 +196,7 @@ export default {
orgType:localStorage.getItem("orgType"),
dialogVisible: false,
showVisible: false,
loadingFlag:false,
arr: [],
currentPage4: 1,
tableData: [],
@@ -601,6 +602,11 @@ export default {
changedArr:JSON.stringify(newlist),
};
this.$api.http.agentListsortUpdate(obj).then((res) => {
this.loadingFlag=true
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.reset()
});


+ 7
- 1
src/views/Template/Pinspeakwords.vue View File

@@ -63,7 +63,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取 消</el-button>
<el-button type="primary" @click="addSubmit">确 定</el-button>
<el-button type="primary" :loading="loadingFlag" @click="addSubmit">确 定</el-button>
</div>
</el-dialog>

@@ -196,6 +196,7 @@ export default {
deleteId: null, // 要删除的表单节点的ID
disabledcet: false,
Templateid:'',
loadingFlag:false,
};
},
components: {
@@ -846,6 +847,11 @@ export default {
// 点击添加节点确认按钮
addSubmit() {
if (this.addForm.name != "") {
this.loadingFlag=true
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogFormVisible = false;
this.addNode();
} else {


+ 11
- 1
src/views/Template/taboo.vue View File

@@ -105,7 +105,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="editor()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="editor()">保存</el-button>
</div>
</el-dialog>
</div>
@@ -123,6 +123,7 @@ export default {
tableData: [],
multipleSelection: [],
dialogVisible: false,
loadingFlag:false,
orgType:localStorage.getItem('orgType'),
ruleForm: {
words: "",
@@ -245,6 +246,7 @@ export default {
editor() {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
if (this.editFlag == false) {
this.$api.http
.tabooadd({
@@ -253,6 +255,10 @@ export default {
})
.then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$refs.ruleForm.resetFields();
this.Page = 1;
@@ -270,6 +276,10 @@ export default {
})
.then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$refs.ruleForm.resetFields();
this.Page = 1;


+ 11
- 1
src/views/Template/wrongword.vue View File

@@ -114,7 +114,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="addSure()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="addSure()">保存</el-button>
</div>
</el-dialog>

@@ -148,6 +148,7 @@ export default {
tableData: [],
multipleSelection: [],
dialogVisible: false,
loadingFlag: false,
houseList: [],
ruleForm: {
correctWord: "",
@@ -253,6 +254,7 @@ export default {
// console.log(this.addressOptions)
this.$refs.ruleForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
console.log(this.ruleForm);
// 编辑
// return;
@@ -261,6 +263,10 @@ export default {
this.$api.api.correctUpdate(this.ruleForm).then((res) => {
console.log(res);
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$message.success("编辑成功");
this.correctFindbypage();
@@ -278,6 +284,10 @@ export default {
.then((res) => {
console.log(res);
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.dialogVisible = false;
this.$message.success("新增常错词成功");
this.correctFindbypage();


+ 11
- 1
src/views/building/area.vue View File

@@ -92,7 +92,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="add">{{
<el-button type="primary" @click="add" :loading="loadingFlag">{{
editFlag ? "保 存" : "确 定"
}}</el-button>
</div>
@@ -115,6 +115,7 @@ export default {
currentPage: 1,
dialogVisible: false,
editFlag: false,
loadingFlag:false,
//公司列表
optionsOrg: [],
ruleForm: {
@@ -191,6 +192,7 @@ export default {
this.$refs.ruleForm.validate((valid) => {
if (valid) {
// console.log(this.ruleForm)
this.loadingFlag=true
if (this.editFlag) {
axios({
url: `/autoSR/areamanager`,
@@ -203,6 +205,10 @@ export default {
},
}).then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("编辑成功");
this.dialogVisible = false;
}
@@ -218,6 +224,10 @@ export default {
},
}).then((res) => {
if (res.code == 0) {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("添加成功");
this.dialogVisible = false;
}


+ 28
- 4
src/views/building/index.vue View File

@@ -531,7 +531,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="addSurequxiao()">取 消</el-button>
<el-button type="primary" @click="addSure">
<el-button type="primary" :loading="loadingFlag" @click="addSure">
<!-- {{
editFlag ? "编辑" : "保存"
}} -->
@@ -571,7 +571,7 @@
</el-form>
<div style="display: flex; justify-content: space-around">
<el-button @click="changeFlag = false">取 消</el-button>
<el-button type="primary" @click="changeSure">确 定</el-button>
<el-button type="primary" @click="changeSure" :loading="loadingFlag">确 定</el-button>
</div>
</el-dialog>

@@ -606,7 +606,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="operaVisible = false">取 消</el-button>
<el-button type="primary" @click="saveOpera()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="saveOpera()">保存</el-button>
</div>
</el-dialog>

@@ -638,7 +638,7 @@
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="agentVisible = false">取 消</el-button>
<el-button type="primary" @click="saveAgent()">保存</el-button>
<el-button type="primary" :loading="loadingFlag" @click="saveAgent()">保存</el-button>
</div>
</el-dialog>
</div>
@@ -865,6 +865,7 @@ export default {
dialogVisible: false,
dialogVisible1: false,
agentVisible: false,
loadingFlag:false,
time: [],
addressOptions: [],
accountForm: {
@@ -1020,6 +1021,7 @@ export default {
saveAgent() {
this.$refs.agentForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
console.log(this.agentForm);
this.$api.api
.saveAgent({
@@ -1027,6 +1029,10 @@ export default {
id: this.agentForm.houseId,
})
.then((res) => {
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("操作成功");
this.zkhousePage();
this.agentVisible = false;
@@ -1047,6 +1053,7 @@ export default {
this.$refs.operaForm.validate((valid) => {
if (valid) {
// console.log(valid,this.operaForm);
this.loadingFlag=true
this.$api.api
.zkoperationrecordSaveHouse({
orgType: 3,
@@ -1057,6 +1064,10 @@ export default {
})
.then((res) => {
console.log(res);
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("操作成功");
this.operaVisible = false;
this.zkhousePage();
@@ -1135,12 +1146,17 @@ export default {
if (!this.resetFlag) {
return;
}
this.loadingFlag=true
// 编辑
if (this.editFlag) {
this.$api.api.editZkhouse(this.ruleForm).then((res) => {
console.log(res);
if (res.code == 0) {
this.dialogVisible = false;
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("编辑成功");
this.zkhousePage();
}
@@ -1151,6 +1167,10 @@ export default {
console.log(res);
if (res.code == 0) {
this.dialogVisible = false;
setTimeout(() => {
this.loadingFlag=false
console.log('防重')
}, 1);
this.$message.success("新增楼盘成功");
this.zkhousePage();
}
@@ -1254,9 +1274,13 @@ export default {
}
this.$refs.accountForm.validate((valid) => {
if (valid) {
this.loadingFlag=true
this.$api.api.updateManagerPhone(this.accountForm).then((res) => {
if (res.code == 0) {
this.changeFlag = false;
setTimeout(() => {
this.loadingFlag=false
}, 1);
this.$message.success("编辑成功");
this.zkhousePage();
}


+ 2
- 2
vue.config.js View File

@@ -3,9 +3,9 @@
* https://cli.vuejs.org/zh/config/
*/
// const url = 'http://pigx-gateway'
// const url = 'http://39.97.167.65:9999' //测试
const url = 'http://39.97.167.65:9999' //测试
// const url = 'http://192.168.31.169:9999' //长龙
const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.134:9999' //嘉豪
// const url = 'http://192.168.31.100:9999' //王笑
// const url = 'http://62.234.122.43:9999' //正式



Loading…
Cancel
Save