Commit 14f17310 authored by 吴春's avatar 吴春

1

parent 12b9bc81
...@@ -2699,6 +2699,7 @@ export const op = { ...@@ -2699,6 +2699,7 @@ export const op = {
opszje: 'OP set the amount', opszje: 'OP set the amount',
fgszjdb: 'New Japanese impression', fgszjdb: 'New Japanese impression',
IsSelfGuidedTour:'Is it a free trip', IsSelfGuidedTour:'Is it a free trip',
EnterpriseWeCh:'Enterprise WeCh',
} }
import invoicesManager from './EN/invoicesManager' import invoicesManager from './EN/invoicesManager'
......
...@@ -2651,6 +2651,7 @@ export const op={ ...@@ -2651,6 +2651,7 @@ export const op={
opszje:'OP設定金額', opszje:'OP設定金額',
fgszjdb:'日本印象を新たにする', fgszjdb:'日本印象を新たにする',
IsSelfGuidedTour:'行を自由にするかどうか', IsSelfGuidedTour:'行を自由にするかどうか',
EnterpriseWeCh:'企業のウィーチャット',
} }
import invoicesManager from './Japan/invoicesManager' import invoicesManager from './Japan/invoicesManager'
......
...@@ -2681,6 +2681,7 @@ export const op={ ...@@ -2681,6 +2681,7 @@ export const op={
opszje:'OP設定金額', opszje:'OP設定金額',
fgszjdb:'新增日本印象', fgszjdb:'新增日本印象',
IsSelfGuidedTour:'是否自由行', IsSelfGuidedTour:'是否自由行',
EnterpriseWeCh:'企業微信',
} }
import invoicesManager from './zhTW/invoicesManager' import invoicesManager from './zhTW/invoicesManager'
......
...@@ -2706,6 +2706,7 @@ export const op={ ...@@ -2706,6 +2706,7 @@ export const op={
IsSelfGuidedTour:'是否自由行', IsSelfGuidedTour:'是否自由行',
IsSelfGuidedTour:'实际成交单价', IsSelfGuidedTour:'实际成交单价',
smallteam:'小包团', smallteam:'小包团',
EnterpriseWeCh:'企业微信',
} }
import invoicesManager from './zhCN/invoicesManager' import invoicesManager from './zhCN/invoicesManager'
......
...@@ -81,6 +81,26 @@ ...@@ -81,6 +81,26 @@
<el-tooltip v-if="scope.row.CreateBy==EmployeeId" class="item" effect="dark" :content="$t('adm.adm_resetpd')" placement="top-start"> <el-tooltip v-if="scope.row.CreateBy==EmployeeId" class="item" effect="dark" :content="$t('adm.adm_resetpd')" placement="top-start">
<el-button @click.stop="EditPassword(scope.row)" style="padding:4px" type="success" icon="el-icon-refresh" circle></el-button> <el-button @click.stop="EditPassword(scope.row)" style="padding:4px" type="success" icon="el-icon-refresh" circle></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="scope.row.IsActivation==0" class="item" effect="dark" :content="$t('salesModule.ShareTrip')" placement="top-start" >
<el-popover width="180" trigger="click">
<div class="w150" v-loading="wxLoading">
<img style="
float: left;
width: 108px;
height: 108px;
margin: 10px 21px 3px;
" :src="
scope.row.wxImage === ''
? ''
: 'data:image/png;base64,' + scope.row.wxImage
" />
<p style="text-align: center; font-size: 12px; color: #666">
{{ $t("salesModule.XCX") }}
</p>
</div>
<el-button slot="reference" type="primary" style="padding:4px " icon="iconfont icon-fenxiang" @click="getWxCode(scope.$index)" circle></el-button>
</el-popover>
</el-tooltip>
<!-- <el-tooltip class="item" effect="dark" :content="$t('system.ph_shanchu')" placement="top-start"> <!-- <el-tooltip class="item" effect="dark" :content="$t('system.ph_shanchu')" placement="top-start">
<el-button @click.stop="EditMsg(scope.row)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button> <el-button @click.stop="EditMsg(scope.row)" style="padding:4px" type="danger" icon="el-icon-delete" circle></el-button>
</el-tooltip> --> </el-tooltip> -->
...@@ -128,6 +148,7 @@ ...@@ -128,6 +148,7 @@
data() { data() {
return { return {
loadingOut: false, loadingOut: false,
wxLoading: false,
pageIndex:1, pageIndex:1,
pageSize:8, pageSize:8,
currentPage: 1, currentPage: 1,
...@@ -209,6 +230,28 @@ ...@@ -209,6 +230,28 @@
this.loading = false this.loading = false
} }
}) })
},
// 获取微信二维码
getWxCode(key) {
this.wxLoading = false;
if (this.dataList[key].wxImage === "") {
this.wxLoading = true;
this.apipost(
"erp_post_ShareInviteCode", {
ID: this.dataList[key].ID,
},
(res) => {
if (res.data.resultCode == 1) {
let url = res.data.data;
this.dataList[key].wxImage = url;
this.wxLoading = false;
} else {
this.$message.error(this.$t('objFill.erwmhqsb'));
}
},
(err) => {}
);
}
}, },
EditPassword(row){ EditPassword(row){
this.PasswordData.ContactId=row.ID; this.PasswordData.ContactId=row.ID;
......
...@@ -147,6 +147,10 @@ ...@@ -147,6 +147,10 @@
<el-button type="primary" class="zidingyiFz" icon="iconfont icon-zhuanhuan2" circle <el-button type="primary" class="zidingyiFz" icon="iconfont icon-zhuanhuan2" circle
@click="goUrl('GetWOrkTransferPageLis', item.EmployeeId)"></el-button> @click="goUrl('GetWOrkTransferPageLis', item.EmployeeId)"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('op.EnterpriseWeCh')" placement="top">
<el-button type="primary" class="zidingyiFz" icon="iconfont el-icon-chat-round" circle
@click="EnterpriseWeChatBindShow=true;EnterpriseWeChatBindMsg.EmployeeId=item.EmployeeId;EnterpriseWeChatBindMsg.EnterpriseWeChatId=item.EnterpriseWeChatId;"></el-button>
</el-tooltip>
<!-- AlipayBind: '綁定支付寶帳號', <!-- AlipayBind: '綁定支付寶帳號',
AlipayUpdate: '更新支付寶帳號', --> AlipayUpdate: '更新支付寶帳號', -->
<template v-if="item.AlipayId&&item.AlipayId.length>0"> <template v-if="item.AlipayId&&item.AlipayId.length>0">
...@@ -415,6 +419,29 @@ ...@@ -415,6 +419,29 @@
</template> </template>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog custom-class="w400" :title="$t('objFill.AlipayBind')" :visible.sync="EnterpriseWeChatBindShow" center
append-to-body :before-close="closeChangeMachieulm">
<el-form :model="ulmMsg" label-width="120px" :rules="EnterpriseWeChatBindMsg" ref="EnterpriseWeChatBindMsg">
<el-form-item :label="$t('op.EnterpriseWeCh')" prop="Identity">
<el-input class="w217" type="text" v-model="EnterpriseWeChatBindMsg.EnterpriseWeChatId" :placeholder="$t('pub.pleaseImport')">
</el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="EnterpriseWeChatBindShow=false;EnterpriseWeChatBindMsg.EmployeeId=0;EnterpriseWeChatBindMsg.EnterpriseWeChatId=''">
{{ $t("pub.cancelBtn") }}
</button>
<template v-if="AlipayBindMsg.ShareCode.length==0">
<button class="normalBtn" @click="SetEnterpriseWeChat()">
{{ $t("pub.sureBtn") }}
</button>
</template>
</div>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -619,6 +646,11 @@ ...@@ -619,6 +646,11 @@
EmployeeMobile: "", //员工手机号 EmployeeMobile: "", //员工手机号
ShareCode: "", ShareCode: "",
}, },
EnterpriseWeChatBindShow: false,
EnterpriseWeChatBindMsg: {
EmployeeId: 0,
EnterpriseWeChatId: "", //企业微信号
},
leaves: { leaves: {
t1: this.$t('pub.jobSel') t1: this.$t('pub.jobSel')
} }
...@@ -677,6 +709,28 @@ ...@@ -677,6 +709,28 @@
err => {} err => {}
); );
}, },
SetEnterpriseWeChat() {
if (this.EnterpriseWeChatBindMsg.EnterpriseWeChatId.length == 0) {
this.$message.error("请输入企业微信信息");
return;
}
this.apipost(
"admin_get_SetEnterpriseWeChatId", this.EnterpriseWeChatBindMsg,
res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message);
this.EnterpriseWeChatBindShow=false;
this.EnterpriseWeChatBindMsg.EmployeeId=0;
this.EnterpriseWeChatBindMsg.EnterpriseWeChatId='';
this.getList();
} else {
this.$message.error(res.data.message);
}
},
err => {}
);
},
DelAlipayBind(item) { DelAlipayBind(item) {
this.$confirm("是否解绑支付宝账户信息?", this.$t('tips.tips'), { this.$confirm("是否解绑支付宝账户信息?", this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'), confirmButtonText: this.$t('pub.sureBtn'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment