md
This commit is contained in:
parent
4f89ec10fa
commit
f8e6167069
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div >
|
<div >
|
||||||
<el-form ref="form" size="mini" :model="form" :rules="rules" label-width="100px" disabled>
|
<el-form ref="form" size="mini" :model="form" :rules="rules" label-width="100px">
|
||||||
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
<el-row :gutter="0" style="display: flex;flex-wrap: wrap;">
|
||||||
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
@ -74,6 +74,11 @@
|
|||||||
<el-input v-model="form.company" placeholder="请输入所属公司" />
|
<el-input v-model="form.company" placeholder="请输入所属公司" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<!-- <el-col :span="8">
|
||||||
|
<el-form-item label="登录账号" prop="userName">
|
||||||
|
<el-input v-model="form.userName" placeholder="请输入登录账号" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col> -->
|
||||||
<!-- <el-col :span="8">
|
<!-- <el-col :span="8">
|
||||||
<el-form-item label="真实姓名" prop="realName">
|
<el-form-item label="真实姓名" prop="realName">
|
||||||
<el-input v-model="form.realName" placeholder="请输入真实姓名" />
|
<el-input v-model="form.realName" placeholder="请输入真实姓名" />
|
||||||
@ -117,11 +122,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<!-- <el-col :span="8">
|
<!--
|
||||||
<el-form-item label="登录账号" prop="userName">
|
|
||||||
<el-input v-model="form.userName" placeholder="请输入登录账号" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="登录密码" prop="password">
|
<el-form-item label="登录密码" prop="password">
|
||||||
<el-input v-model="form.password" placeholder="请输入登录密码" />
|
<el-input v-model="form.password" placeholder="请输入登录密码" />
|
||||||
|
|||||||
@ -57,6 +57,7 @@
|
|||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
border
|
border
|
||||||
size="small"
|
size="small"
|
||||||
|
storageName="emisCustomerUserList_money"
|
||||||
:data="emisCustomerUserList"
|
:data="emisCustomerUserList"
|
||||||
:tbData="emisCustomerUserList"
|
:tbData="emisCustomerUserList"
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
@ -72,6 +73,28 @@
|
|||||||
|
|
||||||
<div slot="toolbar">
|
<div slot="toolbar">
|
||||||
<el-row :gutter="10" class="mb8">
|
<el-row :gutter="10" class="mb8">
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="success"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleUpdate"
|
||||||
|
v-hasPermi="['emis:emisCustomerUser:edit']"
|
||||||
|
>修改</el-button>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="el-icon-edit"
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleResetPwd"
|
||||||
|
|
||||||
|
>密码重置</el-button>
|
||||||
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@ -82,18 +105,7 @@
|
|||||||
v-hasPermi="['emis:emisCustomerUser:add']"
|
v-hasPermi="['emis:emisCustomerUser:add']"
|
||||||
>新增客户</el-button>
|
>新增客户</el-button>
|
||||||
</el-col> -->
|
</el-col> -->
|
||||||
<!--
|
|
||||||
<el-col :span="1.5">
|
|
||||||
<el-button
|
|
||||||
type="success"
|
|
||||||
plain
|
|
||||||
icon="el-icon-edit"
|
|
||||||
size="mini"
|
|
||||||
:disabled="single"
|
|
||||||
@click="handleUpdate"
|
|
||||||
v-hasPermi="['emis:emisCustomerUser:edit']"
|
|
||||||
>修改</el-button>
|
|
||||||
</el-col> -->
|
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -119,16 +131,25 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column :label="$t('客户编码')" align="center" prop="customerCode" min-width="100" >
|
<!-- <el-table-column :label="$t('客户编码')" align="center" prop="customerCode" min-width="100" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="link-type" @click="handleUpdate(scope.row)">{{scope.row.customerCode}}</div>
|
<div class="link-type" @click="handleUpdate(scope.row)">{{scope.row.customerCode}}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
<el-table-column :label="$t('寄件人')" align="left" prop="customerName" width="120" :show-overflow-tooltip="true" >
|
<el-table-column :label="$t('寄件人')" align="left" prop="customerName" width="120" :show-overflow-tooltip="true" >
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="link-type" @click="handleUpdate(scope.row)">{{scope.row.customerName}}</div>
|
<div class="link-type" @click="handleUpdate(scope.row)">{{scope.row.customerName}}</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column :label="$t('微信信息')" align="center" prop="avatar" min-width="100" >
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<div style="height:20px">
|
||||||
|
<span>{{ scope.row.nickName }}</span>
|
||||||
|
<img style="height: 100%;max-width:100%;cursor: pointer;" :src="scope.row.avatar" onerror="onerror=null;src='@../../../assets/images/plus.jpg'">
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column :label="$t('昵称')" align="center" prop="nickName" min-width="100" /> -->
|
||||||
<el-table-column :label="$t('所属公司')" align="left" prop="company" width="120" :show-overflow-tooltip="true"/>
|
<el-table-column :label="$t('所属公司')" align="left" prop="company" width="120" :show-overflow-tooltip="true"/>
|
||||||
<el-table-column :label="$t('手机号码')" align="center" prop="phone" width="100" />
|
<el-table-column :label="$t('手机号码')" align="center" prop="phone" width="100" />
|
||||||
|
|
||||||
@ -137,14 +158,14 @@
|
|||||||
<!-- <el-table-column :label="$t('客户类型')" align="center" prop="customerType" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('客户类型')" align="center" prop="customerType" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('结算类型')" align="center" prop="settledType" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('结算类型')" align="center" prop="settledType" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('用户类型')" align="center" prop="userType" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('用户类型')" align="center" prop="userType" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('头像')" align="center" prop="avatar" min-width="100" /> -->
|
|
||||||
<!-- <el-table-column :label="$t('性别')" align="center" prop="sex" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('性别')" align="center" prop="sex" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('邀请人')" align="center" prop="invitationInfo" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('邀请人')" align="center" prop="invitationInfo" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('最后登录ip')" align="center" prop="loginIp" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('最后登录ip')" align="center" prop="loginIp" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('最后登录日期')" align="center" prop="loginDate" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('最后登录日期')" align="center" prop="loginDate" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('union_id')" align="center" prop="unionId" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('微信OpenId')" align="center" prop="openid" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('月结卡号')" align="center" prop="monthlyPayCode" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('月结卡号')" align="center" prop="monthlyPayCode" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('登录账号')" align="center" prop="userName" min-width="100" /> -->
|
<el-table-column :label="$t('登录账号')" align="center" prop="userName" min-width="100" />
|
||||||
<!-- <el-table-column :label="$t('登录密码')" align="center" prop="password" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('登录密码')" align="center" prop="password" min-width="100" /> -->
|
||||||
<!-- <el-table-column :label="$t('所属站点')" align="center" prop="ownerSiteName" min-width="100" /> -->
|
<!-- <el-table-column :label="$t('所属站点')" align="center" prop="ownerSiteName" min-width="100" /> -->
|
||||||
<el-table-column :label="$t('国家')" align="left" prop="countryName" min-width="100" />
|
<el-table-column :label="$t('国家')" align="left" prop="countryName" min-width="100" />
|
||||||
@ -171,9 +192,6 @@
|
|||||||
<div v-if="scope.row.dataFrom" >
|
<div v-if="scope.row.dataFrom" >
|
||||||
{{ scope.row.dataFrom }}
|
{{ scope.row.dataFrom }}
|
||||||
</div>
|
</div>
|
||||||
<div v-else >
|
|
||||||
pc
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('最近下单时间')" align="center" prop="lastOrderTime" min-width="170" />
|
<el-table-column :label="$t('最近下单时间')" align="center" prop="lastOrderTime" min-width="170" />
|
||||||
@ -223,7 +241,7 @@
|
|||||||
|
|
||||||
import AirTable from '@/components/AirTable/demo.vue';
|
import AirTable from '@/components/AirTable/demo.vue';
|
||||||
|
|
||||||
import { listMoneyUser, delEmisCustomerUser } from "@/api/emis/emisCustomerUser";
|
import { listMoneyUser, delEmisCustomerUser,resetCustomerUserPwd } from "@/api/emis/emisCustomerUser";
|
||||||
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
import elDateSimplePicker from '@/components/DatePickerAdv/elDateSimplePicker';
|
||||||
import moneyUserForm from '@/views/emis/emisCustomerUser/moneyUserForm';
|
import moneyUserForm from '@/views/emis/emisCustomerUser/moneyUserForm';
|
||||||
|
|
||||||
@ -349,6 +367,21 @@ export default {
|
|||||||
this.currentId= row.id;
|
this.currentId= row.id;
|
||||||
this.openForm = true;
|
this.openForm = true;
|
||||||
this.titleForm = "现金客户";
|
this.titleForm = "现金客户";
|
||||||
|
},
|
||||||
|
/** 重置密码按钮操作 */
|
||||||
|
handleResetPwd(row) {
|
||||||
|
const id= row.id || this.ids[0];
|
||||||
|
|
||||||
|
this.$confirm('密码将重置为初始密码:888888 吗?', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
resetCustomerUserPwd(id,'888888').then(response => {
|
||||||
|
this.$modal.msgSuccess("重置成功");
|
||||||
|
});
|
||||||
|
}).catch(() => {
|
||||||
|
})
|
||||||
},
|
},
|
||||||
handleView(row) {
|
handleView(row) {
|
||||||
this.id=row.id;
|
this.id=row.id;
|
||||||
|
|||||||
@ -93,6 +93,9 @@
|
|||||||
border
|
border
|
||||||
size="small"
|
size="small"
|
||||||
:data="emisCustomerUserList"
|
:data="emisCustomerUserList"
|
||||||
|
|
||||||
|
storageName="emisCustomerUserList_month"
|
||||||
|
|
||||||
:showSearch.sync="showSearch"
|
:showSearch.sync="showSearch"
|
||||||
:queryParams="queryParams"
|
:queryParams="queryParams"
|
||||||
:total="total"
|
:total="total"
|
||||||
@ -456,12 +459,12 @@ export default {
|
|||||||
handleResetPwd(row) {
|
handleResetPwd(row) {
|
||||||
const id= row.id || this.ids[0];
|
const id= row.id || this.ids[0];
|
||||||
|
|
||||||
this.$confirm('密码将重置为初始密码:123456 吗?', '提示', {
|
this.$confirm('密码将重置为初始密码:888888 吗?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
resetCustomerUserPwd(id,'123456').then(response => {
|
resetCustomerUserPwd(id,'888888').then(response => {
|
||||||
this.$modal.msgSuccess("重置成功");
|
this.$modal.msgSuccess("重置成功");
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user