Commit 31e8c6de authored by 谢子梦's avatar 谢子梦

stage:签约账本样式优化

parent f012d899
...@@ -2,20 +2,10 @@ ...@@ -2,20 +2,10 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
<el-form-item label="企业名称" prop="companyName"> <el-form-item label="企业名称" prop="companyName">
<el-input <el-input v-model="queryParams.companyName" placeholder="请输入企业名称" clearable @keyup.enter.native="handleQuery" />
v-model="queryParams.companyName"
placeholder="请输入企业名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item label="信用代码" prop="companyCode"> <el-form-item label="信用代码" prop="companyCode">
<el-input <el-input v-model="queryParams.companyCode" placeholder="请输入信用代码" clearable @keyup.enter.native="handleQuery" />
v-model="queryParams.companyCode"
placeholder="请输入信用代码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
...@@ -25,33 +15,16 @@ ...@@ -25,33 +15,16 @@
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd"
type="primary" v-hasPermi="['business:companyInfo:add']">新增</el-button>
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['business:companyInfo:add']"
>新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="success" icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
type="success" v-hasPermi="['business:companyInfo:edit']">修改</el-button>
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['business:companyInfo:edit']"
>修改</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="danger" icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
type="danger" v-hasPermi="['business:companyInfo:remove']">删除</el-button>
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['business:companyInfo:remove']"
>删除</el-button>
</el-col> </el-col>
<!-- <el-col :span="1.5">--> <!-- <el-col :span="1.5">-->
<!-- <el-button--> <!-- <el-button-->
...@@ -71,58 +44,28 @@ ...@@ -71,58 +44,28 @@
<el-table-column label="信用代码" align="center" prop="companyCode" /> <el-table-column label="信用代码" align="center" prop="companyCode" />
<el-table-column label="法人姓名" align="center" prop="legalName" /> <el-table-column label="法人姓名" align="center" prop="legalName" />
<el-table-column label="法人电话" align="center" prop="legalPhone" /> <el-table-column label="法人电话" align="center" prop="legalPhone" />
<el-table-column label="归属部门" align="center" prop="deptName" v-if="tableFiledDeptName"/> <el-table-column label="归属部门" align="center" prop="deptName" v-if="tableFiledDeptName" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button v-if="scope.row.signetId == null" size="mini" type="text" icon="el-icon-info"
v-if="scope.row.signetId == null" @click="makeSealPre(scope.row)">生成电子签章
size="mini"
type="text"
icon="el-icon-info"
@click="makeSealPre(scope.row)"
>生成电子签章
</el-button> </el-button>
<el-button <el-button v-if="scope.row.signetId != null" size="mini" type="text" icon="el-icon-edit"
v-if="scope.row.signetId != null" @click="viewSealInfo(scope.row)">查看电子签章
size="mini"
type="text"
icon="el-icon-edit"
@click="viewSealInfo(scope.row)"
>查看电子签章
</el-button> </el-button>
<el-button <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
size="mini" v-hasPermi="['business:companyInfo:edit']">修改</el-button>
type="text" <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
icon="el-icon-edit" v-hasPermi="['business:companyInfo:remove']">删除</el-button>
@click="handleUpdate(scope.row)" <el-button size="mini" type="text" icon="el-icon-platform-eleme" @click="goPayChannel(scope.row)"
v-hasPermi="['business:companyInfo:edit']" v-hasPermi="['business:companyPayChannel:station']">支付通道</el-button>
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['business:companyInfo:remove']"
>删除</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-platform-eleme"
@click="goPayChannel(scope.row)"
v-hasPermi="['business:companyPayChannel:station']"
>支付通道</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
v-show="total>0" @pagination="getList" />
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改付款主体信息对话框 --> <!-- 添加或修改付款主体信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
...@@ -151,7 +94,7 @@ ...@@ -151,7 +94,7 @@
<script> <script>
import { listCompanyInfo, getCompanyInfo, delCompanyInfo, addCompanyInfo, updateCompanyInfo } from "@/api/business/companyInfo"; import { listCompanyInfo, getCompanyInfo, delCompanyInfo, addCompanyInfo, updateCompanyInfo } from "@/api/business/companyInfo";
import { deptTreeSelect } from '@/api/system/user'; import { deptTreeSelect } from '@/api/system/user';
import {makeSealPreCheck} from "@/api/business/sealCompanyInfo"; import { makeSealPreCheck } from "@/api/business/sealCompanyInfo";
import auth from '@/plugins/auth' import auth from '@/plugins/auth'
export default { export default {
...@@ -260,7 +203,7 @@ export default { ...@@ -260,7 +203,7 @@ export default {
// 多选框选中数据 // 多选框选中数据
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.id) this.ids = selection.map(item => item.id)
this.single = selection.length!==1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
...@@ -295,12 +238,12 @@ export default { ...@@ -295,12 +238,12 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除付款主体信息编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除付款主体信息编号为"' + ids + '"的数据项?').then(function () {
return delCompanyInfo(ids); return delCompanyInfo(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => { });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
...@@ -312,13 +255,13 @@ export default { ...@@ -312,13 +255,13 @@ export default {
makeSealPre(row) { makeSealPre(row) {
const type = "hr"; const type = "hr";
//是否确认生成电子签章 ,如果确认,调用接口生成电子签章,然后跳转到电子签章页面 //是否确认生成电子签章 ,如果确认,调用接口生成电子签章,然后跳转到电子签章页面
this.$modal.confirm('是否确认为【'+row.companyName+'】企业生成电子签章?').then(() => { this.$modal.confirm('是否确认为【' + row.companyName + '】企业生成电子签章?').then(() => {
makeSealPreCheck(row.id,type).then(response => { makeSealPreCheck(row.id, type).then(response => {
console.log(response.code == 200) console.log(response.code == 200)
if (response.code == 200) { if (response.code == 200) {
//校验完成 前往生成电子签章页面 sealCompanyInfo/index //校验完成 前往生成电子签章页面 sealCompanyInfo/index
this.$router.push({ path: '/seal/sealCompanyInfo', query: { bussinessId: row.id, bussinessType: type, showFlag:1 } }) this.$router.push({ path: '/seal/sealCompanyInfo', query: { bussinessId: row.id, bussinessType: type, showFlag: 1 } })
}else { } else {
this.$modal.msgError(response.msg) this.$modal.msgError(response.msg)
} }
}) })
...@@ -327,15 +270,17 @@ export default { ...@@ -327,15 +270,17 @@ export default {
/** 查看电子签章 */ /** 查看电子签章 */
viewSealInfo(row) { viewSealInfo(row) {
const type = "hr"; const type = "hr";
this.$router.push({ path: '/seal/sealCompanyInfo', query: { bussinessId: row.id, bussinessType: type, showFlag:0 } }) this.$router.push({ path: '/seal/sealCompanyInfo', query: { bussinessId: row.id, bussinessType: type, showFlag: 0 } })
}, },
goPayChannel(row) { goPayChannel(row) {
this.$router.push({ path: '/business/companyPayChannel', this.$router.push({
path: '/business/companyPayChannel',
query: { query: {
companyId: row.id, companyId: row.id,
unitType: 1, unitType: 1,
companyName: row.companyName companyName: row.companyName
} }) }
})
} }
} }
}; };
......
...@@ -2,12 +2,7 @@ ...@@ -2,12 +2,7 @@
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
<el-form-item label="通道名称" prop="channelName"> <el-form-item label="通道名称" prop="channelName">
<el-input <el-input v-model="queryParams.channelName" placeholder="请输入通道名称" clearable @keyup.enter.native="handleQuery" />
v-model="queryParams.channelName"
placeholder="请输入通道名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
...@@ -17,22 +12,12 @@ ...@@ -17,22 +12,12 @@
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd"
type="primary" v-hasPermi="['business:companyPayChannel:add']">新增</el-button>
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['business:companyPayChannel:add']"
>新增</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="warning" icon="el-icon-download" size="mini" @click="handleExport"
type="warning" v-hasPermi="['business:companyPayChannel:export']">导出</el-button>
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['business:companyPayChannel:export']"
>导出</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
...@@ -50,12 +35,8 @@ ...@@ -50,12 +35,8 @@
<el-table-column label="通道名称" align="center" prop="channelName" /> <el-table-column label="通道名称" align="center" prop="channelName" />
<el-table-column label="使用状态" align="center" prop="status"> <el-table-column label="使用状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-switch <el-switch v-model="scope.row.status" :active-value="1" :inactive-value="2"
v-model="scope.row.status" @change="handleStatusChange(scope.row)"></el-switch>
:active-value="1"
:inactive-value="2"
@change="handleStatusChange(scope.row)"
></el-switch>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="开通状态" align="center" prop="isEnter"> <el-table-column label="开通状态" align="center" prop="isEnter">
...@@ -63,33 +44,28 @@ ...@@ -63,33 +44,28 @@
<dict-tag :options="dict.type.pay_channel_use_status" :value="scope.row.isEnter" /> <dict-tag :options="dict.type.pay_channel_use_status" :value="scope.row.isEnter" />
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">--> <!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
<!-- icon="el-icon-edit"--> <!-- icon="el-icon-edit"-->
<!-- @click="handleUpdate(scope.row)"--> <!-- @click="handleUpdate(scope.row)"-->
<!-- v-hasPermi="['business:companyPayChannel:edit']"--> <!-- v-hasPermi="['business:companyPayChannel:edit']"-->
<!-- >修改</el-button>--> <!-- >修改</el-button>-->
<!-- <el-button--> <!-- <el-button-->
<!-- size="mini"--> <!-- size="mini"-->
<!-- type="text"--> <!-- type="text"-->
<!-- icon="el-icon-delete"--> <!-- icon="el-icon-delete"-->
<!-- @click="handleDelete(scope.row)"--> <!-- @click="handleDelete(scope.row)"-->
<!-- v-hasPermi="['business:companyPayChannel:remove']"--> <!-- v-hasPermi="['business:companyPayChannel:remove']"-->
<!-- >删除</el-button>--> <!-- >删除</el-button>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
</el-table> </el-table>
<pagination <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
v-show="total>0" @pagination="getList" />
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改企业支付通道对话框 --> <!-- 添加或修改企业支付通道对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
...@@ -105,7 +81,8 @@ ...@@ -105,7 +81,8 @@
</el-form-item> </el-form-item>
<el-form-item label="支付通道" prop="channelCode"> <el-form-item label="支付通道" prop="channelCode">
<el-select v-model="form.channelCode" placeholder="请选择支付通道"> <el-select v-model="form.channelCode" placeholder="请选择支付通道">
<el-option v-for="(item, index) in sysPayChannelList" :disabled="item.disabled" :label="item.channelName" :value="item.channelCode" /> <el-option v-for="(item, index) in sysPayChannelList" :key="index" :disabled="item.disabled"
:label="item.channelName" :value="item.channelCode" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -249,7 +226,7 @@ export default { ...@@ -249,7 +226,7 @@ export default {
// 多选框选中数据 // 多选框选中数据
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.id) this.ids = selection.map(item => item.id)
this.single = selection.length!==1 this.single = selection.length !== 1
this.multiple = !selection.length this.multiple = !selection.length
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
...@@ -295,12 +272,12 @@ export default { ...@@ -295,12 +272,12 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除企业支付通道编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除企业支付通道编号为"' + ids + '"的数据项?').then(function () {
return delCompanyPayChannel(ids); return delCompanyPayChannel(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");
}).catch(() => {}); }).catch(() => { });
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
...@@ -312,7 +289,7 @@ export default { ...@@ -312,7 +289,7 @@ export default {
handleStatusChange(row) { handleStatusChange(row) {
const _this = this; const _this = this;
let text = row.status === 1 ? "启用" : "停用"; let text = row.status === 1 ? "启用" : "停用";
_this.$modal.confirm('确认要"' + text + '""' + row.channelName + '"支付通道吗?').then(function() { _this.$modal.confirm('确认要"' + text + '""' + row.channelName + '"支付通道吗?').then(function () {
const updateForm = { const updateForm = {
id: row.id, id: row.id,
status: row.status status: row.status
...@@ -324,7 +301,7 @@ export default { ...@@ -324,7 +301,7 @@ export default {
}).catch(() => { }).catch(() => {
row.status = row.status === 2 ? 1 : 2; row.status = row.status === 2 ? 1 : 2;
}); });
}).catch(function() { }).catch(function () {
row.status = row.status === 2 ? 1 : 2; row.status = row.status === 2 ? 1 : 2;
}); });
}, },
......
...@@ -67,6 +67,41 @@ ...@@ -67,6 +67,41 @@
<el-button @click="bindAcc.codePanel = false">关 闭</el-button> <el-button @click="bindAcc.codePanel = false">关 闭</el-button>
</div> </div>
</el-dialog> </el-dialog>
<!-- 扫码签约新弹窗 -->
<el-dialog title="扫码签约" class="payThoroughfareDialogStyle" :visible.sync="openPayThoroughfareDialog" width="55%">
<div class="thoroughfareMain">
<div class="thoroughfareIntroduce">支付宝安全发是由支付宝提供的人力资源发薪通道,需要使用企业支付宝扫码授权,方可使用,具体授权步骤如下图所示:</div>
<!-- 开通主体信息部分 -->
<div class="thoroughfareConter">
<div class="thoroughfareInfo">
<div class="stapStyle">【步骤一】</div>
<div class="stapInfoStyle">
<span>使用</span>
<span class="stapInfoBlueStyle">{{ thoroughfareData }}</span>
<span>的企业支付宝扫描右侧二维码</span>
</div>
<div class="stapStyle">【步骤二】</div>
<div class="stapInfoStyle">
<span>在手机上确认</span>
<span class="stapInfoBlueStyle">同意协议并开通</span>
<span>此支付宝记账本</span>
</div>
<div class="stapStyle">【步骤三】</div>
<div class="stapInfoStyle">
<span>操作完成后大约5-10分钟可点击搜索查看结果</span>
</div>
</div>
<div class="thoroughfareDivider"></div>
<div class="thoroughfareQRcode">
<img class="QRcodeImg" :src="thoroughfareUrl" alt="">
<span class="QRcodeText">扫码签约</span>
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button class="cancelButton" type="primary" @click="openPayThoroughfareDialog = false">取 消</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -123,6 +158,10 @@ export default { ...@@ -123,6 +158,10 @@ export default {
companyName: '', companyName: '',
codeUrl: '', codeUrl: '',
}, },
// 开通通道参数
openPayThoroughfareDialog: false,
thoroughfareUrl: '',
thoroughfareData: {}
}; };
}, },
created() { created() {
...@@ -226,9 +265,13 @@ export default { ...@@ -226,9 +265,13 @@ export default {
} }
this.$modal.loading() this.$modal.loading()
signChannel(singForm).then(resp => { signChannel(singForm).then(resp => {
this.bindAcc.codePanel = true this.thoroughfareData = row.companyName
this.bindAcc.codeUrl = resp.data this.thoroughfareUrl = resp.data
this.bindAcc.companyName = row.companyName this.openPayThoroughfareDialog = true
console.log('当前通道信息', resp);
// this.bindAcc.codePanel = true
// this.bindAcc.codeUrl = resp.data
// this.bindAcc.companyName = row.companyName
}).finally(() => { }).finally(() => {
this.$modal.closeLoading() this.$modal.closeLoading()
}) })
...@@ -243,3 +286,105 @@ export default { ...@@ -243,3 +286,105 @@ export default {
} }
}; };
</script> </script>
<style lang="scss">
.payThoroughfareDialogStyle {
.el-dialog {
margin-top: 18vh !important;
border-radius: 6px !important;
}
.el-dialog__header {
display: none;
}
.el-dialog__body {
padding: 56px 38px 8px !important;
}
.thoroughfareMain {
background-color: #F7F8FA;
border-radius: 6px;
padding: 20px 32px 28px 30px;
.thoroughfareIntroduce {
font-weight: 400;
font-size: 16px;
color: #333333;
line-height: 24px;
letter-spacing: 1.5px;
padding-left: 8px;
}
.thoroughfareConter {
width: 100%;
margin-top: 20px;
padding-left: 12px;
// height: 400px;
// background-color: #8df;
display: flex;
align-items: center;
justify-content: space-between;
.thoroughfareInfo {
width: 60%;
font-size: 14px;
.stapStyle {
font-size: 16px;
color: #409EFF;
margin-bottom: 12px;
}
.stapInfoStyle {
font-size: 14px;
color: #333333;
margin-bottom: 32px;
margin-left: 6px;
.stapInfoBlueStyle {
color: #409EFF;
}
}
.stapInfoStyle:last-child {
margin-bottom: 0px !important;
}
}
.thoroughfareDivider {
width: 1px;
background-color: #E8E8E8;
height: 200px;
}
.thoroughfareQRcode {
width: 26%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.QRcodeImg {
width: 100%;
}
.QRcodeText {
color: #333;
font-size: 14px;
}
}
}
}
.dialog-footer {
// margin-top: -20px !important;
.el-button {
padding: 9px 26px;
font-size: 14px;
}
}
}
</style>
\ No newline at end of file
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