| | |
| | | import { downloadStreamFile } from "/@/utils/download"; |
| | | import { useFBS_CusExtendApi } from '/@/api/Customer/fBS_CusExtend'; |
| | | import editDialog from '/@/views/Customer/fBS_CusExtend/component/editDialog.vue' |
| | | import userManagement from '/@/views/Customer/fBS_CusExtend/component/fBS_Customer/editDialog.vue' |
| | | import printDialog from '/@/views/system/print/component/hiprint/preview.vue' |
| | | import ModifyRecord from '/@/components/table/modifyRecord.vue'; |
| | | import ImportData from "/@/components/table/importData.vue"; |
| | |
| | | const fBS_ExRoleApi = useFBS_ExRoleApi(); |
| | | const printDialogRef = ref(); |
| | | const editDialogRef = ref(); |
| | | const userManagementRef = ref(); |
| | | const dialogVisible = ref(false); |
| | | const importDataRef = ref(); |
| | | const state = reactive({ |
| | | exportLoading: false, |
| | |
| | | state.exportLoading = false; |
| | | } |
| | | } |
| | | const openUser=()=>{ |
| | | console.log(dialogVisible.value,'dialogVisible.value'); |
| | | |
| | | dialogVisible.value = true |
| | | } |
| | | |
| | | handleQuery(); |
| | | </script> |
| | |
| | | <el-input v-model="state.tableQueryParams.customerId" clearable placeholder="请输入用户ID"/> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="4" class="mb10" v-if="state.showAdvanceQueryUI"> |
| | | <!-- <el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="4" class="mb10" v-if="state.showAdvanceQueryUI"> |
| | | <el-form-item label="企业类型 "> |
| | | <el-input v-model="state.tableQueryParams.enterpriseType" clearable placeholder="请输入企业类型 "/> |
| | | </el-form-item> |
| | |
| | | <el-form-item label="交易主体"> |
| | | <el-input v-model="state.tableQueryParams.transactionCode" clearable placeholder="请输入交易主体"/> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col> --> |
| | | <el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="4" class="mb10" v-if="state.showAdvanceQueryUI"> |
| | | <el-form-item label="企业名称"> |
| | | <el-input v-model="state.tableQueryParams.enterpriseName" clearable placeholder="请输入企业名称"/> |
| | |
| | | <el-button icon="ele-ZoomIn" @click="() => state.showAdvanceQueryUI = true" v-if="!state.showAdvanceQueryUI" style="margin-left:5px;"> 高级查询 </el-button> |
| | | <el-button icon="ele-ZoomOut" @click="() => state.showAdvanceQueryUI = false" v-if="state.showAdvanceQueryUI" style="margin-left:5px;"> 隐藏 </el-button> |
| | | <el-button type="danger" style="margin-left:5px;" icon="ele-Delete" @click="batchDelFBS_CusExtend" :disabled="state.selectData.length == 0" v-auth="'fBS_CusExtend:batchDelete'"> 删除 </el-button> |
| | | <el-button type="primary" style="margin-left:5px;" icon="ele-Plus" @click="editDialogRef.openDialog(null, '新增企业资料')" v-auth="'fBS_CusExtend:add'"> 新增 </el-button> |
| | | <!-- <el-button type="primary" style="margin-left:5px;" icon="ele-Plus" @click="editDialogRef.openDialog(null, '新增企业资料')" v-auth="'fBS_CusExtend:add'"> 新增 </el-button> --> |
| | | <el-dropdown :show-timeout="70" :hide-timeout="50" @command="exportFBS_CusExtendCommand"> |
| | | <el-button type="primary" style="margin-left:5px;" icon="ele-FolderOpened" v-reclick="20000" v-auth="'fBS_CusExtend:export'"> 导出 </el-button> |
| | | <template #dropdown> |
| | |
| | | <el-table-column type="selection" width="40" align="center" v-if="auth('fBS_CusExtend:batchDelete') || auth('fBS_CusExtend:export')" /> |
| | | <el-table-column type="index" label="序号" width="55" align="center"/> |
| | | <!-- <el-table-column prop='customerId' label='用户ID' show-overflow-tooltip /> --> |
| | | <el-table-column prop='enterpriseType' label='企业类型 ' show-overflow-tooltip /> |
| | | <!-- <el-table-column prop='enterpriseType' label='企业类型 ' show-overflow-tooltip /> |
| | | <el-table-column prop='transactionCode' label='交易主体' show-overflow-tooltip width="100"> |
| | | <template v-slot="scope"> |
| | | <span v-for="(item, index) in state.roleList" :key="index"> |
| | | <span v-if="item.code == scope.row.transactionCode">{{ item.name }}</span> |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <el-table-column prop='businessLicense' label='营业执照' show-overflow-tooltip width="120"> |
| | | <template v-slot="scope"> |
| | | <el-image |
| | |
| | | <el-table-column prop='operatorPhone' label='业务经办人电话' show-overflow-tooltip width="120"/> |
| | | <!-- <el-table-column prop='bankName' label='开户行名称' show-overflow-tooltip /> --> |
| | | <!-- <el-table-column prop='bankAccount' label='开户行账号' show-overflow-tooltip width="120"/> --> |
| | | <el-table-column prop='steps' label='审核步骤' show-overflow-tooltip> |
| | | <!-- <el-table-column prop='steps' label='审核步骤' show-overflow-tooltip> |
| | | <template v-slot="scope"> |
| | | <span v-for="(item, index) in state.shenheList" :key="index"> |
| | | <el-tag v-if="item.value == scope.row.steps">{{ item.description }}</el-tag> |
| | | </span> |
| | | </template> |
| | | <!-- <template #default="scope"> |
| | | |
| | | |
| | | <el-tag v-if="scope.row.steps==0" type='warning'> |
| | | 待审核 |
| | | </el-tag> |
| | | <el-tag v-else-if="scope.row.steps==1" type='primary'> |
| | | 更改 |
| | | </el-tag> |
| | | <el-tag v-else-if="scope.row.steps==2" type='success'> |
| | | 通过 |
| | | </el-tag> |
| | | <el-tag v-else-if="scope.row.steps==3" type='error'> |
| | | 未通过 |
| | | </el-tag> |
| | | </template> --> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | <!-- <el-table-column label="修改记录" width="100" align="center" show-overflow-tooltip> |
| | | <template #default="scope"> |
| | | <ModifyRecord :data="scope.row" /> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column label="操作" width="70" align="center" fixed="right" show-overflow-tooltip v-if="auth('fBS_CusExtend:update') || auth('fBS_CusExtend:delete')"> |
| | | <el-table-column label="操作" width="100" align="center" fixed="right" show-overflow-tooltip v-if="auth('fBS_CusExtend:update') || auth('fBS_CusExtend:delete')"> |
| | | <template #default="scope"> |
| | | <el-button icon="ele-Edit" size="small" text type="primary" @click="editDialogRef.openDialog(scope.row, '编辑企业资料', state.qiyeList,state.roleList)" v-auth="'fBS_CusExtend:update'"> </el-button> |
| | | <!-- <el-button icon="ele-Check" size="small" text type="primary" @click="editDialogRefApplyRef.openDialog(scope.row, '审核企业资料', state.qiyeList,state.roleList,state.shenheList)" v-auth="'fBS_CusExtend:update'"> </el-button> --> |
| | | <el-button icon="ele-User" size="small" text type="primary" @click="userManagementRef.openDialog(scope.row, '管理企业用户', state.qiyeList,state.roleList,state.shenheList)" v-auth="'fBS_CusExtend:update'"> </el-button> |
| | | <el-button icon="ele-Delete" size="small" text type="primary" @click="delFBS_CusExtend(scope.row)" v-auth="'fBS_CusExtend:delete'"> </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <ImportData ref="importDataRef" :import="fBS_CusExtendApi.importData" :download="fBS_CusExtendApi.downloadTemplate" v-auth="'fBS_CusExtend:import'" @refresh="handleQuery"/> |
| | | <printDialog ref="printDialogRef" :title="'打印企业资料'" @reloadTable="handleQuery" /> |
| | | <editDialog ref="editDialogRef" @reloadTable="handleQuery" /> |
| | | <userManagement ref="userManagementRef" @reloadTable="handleQuery"/> |
| | | |
| | | </el-card> |
| | | <el-dialog title="管理企业用户" :visible.sync="dialogVisible" width="width"> |
| | | <!-- <userManagement ref="userManagementRef"/> --> |
| | | <div slot="footer"> |
| | | <el-button @click="dialogVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="dialogVisible = false">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | <style scoped> |