|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
<div class="avue-crud"> |
|
|
|
<div class="avue-crud" v-loading="loadingObj.pageLoading"> |
|
|
|
<div v-h5uShow="!search"> |
|
|
|
<div v-h5uShow="!search"> |
|
|
|
<!-- 查询模块 --> |
|
|
|
<!-- 查询模块 --> |
|
|
|
<el-form :inline="true" :model="query" class="header_search"> |
|
|
|
<el-form :inline="true" :model="query" class="header_search"> |
|
|
@ -140,6 +140,9 @@ |
|
|
|
<el-dropdown-item command="7"> |
|
|
|
<el-dropdown-item command="7"> |
|
|
|
<el-text>开通账号</el-text> |
|
|
|
<el-text>开通账号</el-text> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
|
|
|
|
|
<el-dropdown-item command="8"> |
|
|
|
|
|
|
|
<el-text>日志</el-text> |
|
|
|
|
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-menu> |
|
|
|
</el-dropdown-menu> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-dropdown> |
|
|
|
</el-dropdown> |
|
|
@ -212,8 +215,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="文件校验" append-to-body v-model="Fileverification" width="555px"> |
|
|
|
<el-dialog title="文件校验" append-to-body v-model="Fileverification" width="555px"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-divider content-position="left">文件校验</el-divider> |
|
|
|
<el-divider content-position="left">文件校验</el-divider> |
|
|
@ -330,10 +331,18 @@ |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item>--> |
|
|
|
</el-form-item>--> |
|
|
|
<el-form-item label="联系人" prop="linkman" v-if="viewEntd"> |
|
|
|
<el-form-item label="联系人" prop="linkman" v-if="viewEntd"> |
|
|
|
<el-input v-model.trim="form.linkman" placeholder="请输入联系人" style="width: 100%" /> |
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model.trim="form.linkman" |
|
|
|
|
|
|
|
placeholder="请输入联系人" |
|
|
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="联系电话" prop="phone" v-if="viewEntd"> |
|
|
|
<el-form-item label="联系电话" prop="phone" v-if="viewEntd"> |
|
|
|
<el-input v-model.trim="form.phone" placeholder="请输入联系电话" style="width: 100%" /> |
|
|
|
<el-input |
|
|
|
|
|
|
|
v-model.trim="form.phone" |
|
|
|
|
|
|
|
placeholder="请输入联系电话" |
|
|
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="地址" prop="bladeRegionProvinceId"> |
|
|
|
<el-form-item label="地址" prop="bladeRegionProvinceId"> |
|
|
|
<!-- <el-input v-model="form.bladeRegionProvinceId" placeholder="请输入省份"/>--> |
|
|
|
<!-- <el-input v-model="form.bladeRegionProvinceId" placeholder="请输入省份"/>--> |
|
|
@ -510,6 +519,13 @@ |
|
|
|
<!-- <BasicShopSub :mainId="basicClientId"></BasicShopSub>--> |
|
|
|
<!-- <BasicShopSub :mainId="basicClientId"></BasicShopSub>--> |
|
|
|
<!-- </el-drawer>--> |
|
|
|
<!-- </el-drawer>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 日志 --> |
|
|
|
|
|
|
|
<el-dialog title="客户日志" width="50%" :align-center="true" v-model="popUpShow.logVisted"> |
|
|
|
|
|
|
|
<tablecmt ref="tableLogNode" class="mt10" :columnList="columnLogList" :tableData="logData"> |
|
|
|
|
|
|
|
<template #default="{ scope }"> </template> |
|
|
|
|
|
|
|
</tablecmt> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
</basic-container> |
|
|
|
</basic-container> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -523,6 +539,7 @@ import { |
|
|
|
remove, |
|
|
|
remove, |
|
|
|
getListCode, |
|
|
|
getListCode, |
|
|
|
$_getListlistName, |
|
|
|
$_getListlistName, |
|
|
|
|
|
|
|
getClientLogList, |
|
|
|
} from '@/api/basicdata/basicClient'; |
|
|
|
} from '@/api/basicdata/basicClient'; |
|
|
|
import option from '@/option/basicdata/basicClient'; |
|
|
|
import option from '@/option/basicdata/basicClient'; |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
|
import { mapGetters } from 'vuex'; |
|
|
@ -892,7 +909,68 @@ export default { |
|
|
|
submitLoading: false, |
|
|
|
submitLoading: false, |
|
|
|
/** 上传文件 */ |
|
|
|
/** 上传文件 */ |
|
|
|
UploadLoadong: false, |
|
|
|
UploadLoadong: false, |
|
|
|
|
|
|
|
pageLoading: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
popUpShow: { |
|
|
|
|
|
|
|
logVisted: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 日志 |
|
|
|
|
|
|
|
columnLogList: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: '', |
|
|
|
|
|
|
|
label: '序号', |
|
|
|
|
|
|
|
type: 12, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: 55, |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'clientName', |
|
|
|
|
|
|
|
label: '客户名称', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '150', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
head: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'operator', |
|
|
|
|
|
|
|
label: '操作人', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '150', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
head: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'content', |
|
|
|
|
|
|
|
label: '操作描述', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '500', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
head: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
prop: 'createTime', |
|
|
|
|
|
|
|
label: '操作时间', |
|
|
|
|
|
|
|
type: 2, |
|
|
|
|
|
|
|
values: '', |
|
|
|
|
|
|
|
width: '150', |
|
|
|
|
|
|
|
checkarr: [], |
|
|
|
|
|
|
|
fixed: false, |
|
|
|
|
|
|
|
sortable: true, |
|
|
|
|
|
|
|
head: false, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
logData: [], |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
created() {}, |
|
|
@ -1008,6 +1086,9 @@ export default { |
|
|
|
case 7: |
|
|
|
case 7: |
|
|
|
this.openAcount(row); |
|
|
|
this.openAcount(row); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case 8: |
|
|
|
|
|
|
|
this.handleShowLog(row); |
|
|
|
|
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
//远程校验 |
|
|
|
//远程校验 |
|
|
@ -1089,6 +1170,33 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 日志 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async handleShowLog(row) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
this.loadingObj.pageLoading = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const res = await getClientLogList({ clientId: row.id }); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
|
|
|
if (code !== 200) return; |
|
|
|
|
|
|
|
this.logData = data; |
|
|
|
|
|
|
|
// this.openAcountform.name = row.linkman; |
|
|
|
|
|
|
|
// this.openAcountform.phone = row.phone; |
|
|
|
|
|
|
|
// this.openAcountStatus = true; |
|
|
|
|
|
|
|
this.popUpShow.logVisted = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.$nextTick(); |
|
|
|
|
|
|
|
console.log(this.$refs.tableLogNode.$el); |
|
|
|
|
|
|
|
// getClientLogList |
|
|
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
|
|
console.log('error :>> ', error); |
|
|
|
|
|
|
|
} finally { |
|
|
|
|
|
|
|
this.loadingObj.pageLoading = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
|
// |
|
|
|
handleMall(row) { |
|
|
|
handleMall(row) { |
|
|
|
// console.log('>>>', row); |
|
|
|
// console.log('>>>', row); |
|
|
@ -1725,7 +1833,7 @@ export default { |
|
|
|
handleBeforeUpload(file) { |
|
|
|
handleBeforeUpload(file) { |
|
|
|
console.log('file :>> ', file); |
|
|
|
console.log('file :>> ', file); |
|
|
|
if (this.Fileverification) { |
|
|
|
if (this.Fileverification) { |
|
|
|
this.FileverificationLoadong=true |
|
|
|
this.FileverificationLoadong = true; |
|
|
|
// 文件校验 |
|
|
|
// 文件校验 |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.loadingObj.UploadLoadong = true; |
|
|
|
this.loadingObj.UploadLoadong = true; |
|
|
@ -1743,7 +1851,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
this.$message.warning('请传入xls或xlsx格式的文件'); |
|
|
|
this.$message.warning('请传入xls或xlsx格式的文件'); |
|
|
|
if (this.Fileverification) { |
|
|
|
if (this.Fileverification) { |
|
|
|
this.FileverificationLoadong=false |
|
|
|
this.FileverificationLoadong = false; |
|
|
|
// 文件校验 |
|
|
|
// 文件校验 |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.loadingObj.UploadLoadong = false; |
|
|
|
this.loadingObj.UploadLoadong = false; |
|
|
@ -1755,7 +1863,7 @@ export default { |
|
|
|
handleSuccess(res) { |
|
|
|
handleSuccess(res) { |
|
|
|
console.log('res :>> ', res); |
|
|
|
console.log('res :>> ', res); |
|
|
|
if (this.Fileverification) { |
|
|
|
if (this.Fileverification) { |
|
|
|
this.FileverificationLoadong=true |
|
|
|
this.FileverificationLoadong = true; |
|
|
|
// 文件校验 |
|
|
|
// 文件校验 |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.loadingObj.UploadLoadong = true; |
|
|
|
this.loadingObj.UploadLoadong = true; |
|
|
@ -1770,7 +1878,7 @@ export default { |
|
|
|
/** 上传失败 */ |
|
|
|
/** 上传失败 */ |
|
|
|
handleClose(res) { |
|
|
|
handleClose(res) { |
|
|
|
if (this.Fileverification) { |
|
|
|
if (this.Fileverification) { |
|
|
|
this.FileverificationLoadong=false |
|
|
|
this.FileverificationLoadong = false; |
|
|
|
// 文件校验 |
|
|
|
// 文件校验 |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.loadingObj.UploadLoadong = false; |
|
|
|
this.loadingObj.UploadLoadong = false; |
|
|
|