File was renamed from Web/src/views/Customer/fBS_CusExtendExamine/component/editDialog.vue |
| | |
| | | <script lang="ts" name="fBS_CusExtend" setup> |
| | | import { ref, reactive, onMounted } from "vue"; |
| | | import { ElMessage } from "element-plus"; |
| | | import { formatDate } from '/@/utils/formatTime'; |
| | | import { useFBS_CusExtendApi } from '/@/api/Customer/fBS_CusExtend'; |
| | | |
| | |
| | | stores: {}, |
| | | dropdownData: {} as any, |
| | | enterpriseList:[], |
| | | roleList:[], |
| | | shenheList:[], |
| | | srcList:[] |
| | | roleList:[] as any[], |
| | | shenheList:[] as any[], |
| | | srcList:[], |
| | | listRow:{} |
| | | }); |
| | | |
| | | // 页面加载时 |
| | |
| | | state.title = title; |
| | | row = row ?? { }; |
| | | state.ruleForm = row.id ? await fBS_CusExtendApi.detail(row.id).then(res => res.data.result) : JSON.parse(JSON.stringify(row)); |
| | | state.ruleForm.exRole = row.exRole |
| | | state.listRow = row |
| | | // state.ruleForm.enterpriseType = state.ruleForm.enterpriseType.split(","); |
| | | state.showDialog = true; |
| | | }; |
| | |
| | | |
| | | // 提交 |
| | | const submit = async (val:any) => { |
| | | let values = state.ruleForm; |
| | | await fBS_CusExtendApi.changeSteps(values.id,val); |
| | | // let values = state.ruleForm; |
| | | let res = await fBS_CusExtendApi.changeSteps(state.listRow.coutomerExRoleId,val); |
| | | if(res.data.code==200){ |
| | | ElMessage({ |
| | | message: `审核成功!`, |
| | | type: "success", |
| | | }); |
| | | }else{ |
| | | ElMessage({ |
| | | message: res.message||`审核失败!`, |
| | | type: "error", |
| | | }); |
| | | } |
| | | closeDialog(); |
| | | }; |
| | | const showPreview = ref(false) |
| | |
| | | <template #label> |
| | | <div class="cell-item">交易主体</div> |
| | | </template> |
| | | <!-- {{ state.ruleForm.transactionName }} --> |
| | | <span v-for="(item, index) in state.roleList" :key="index"> |
| | | <span v-if="item.code == state.ruleForm.transactionCode">{{ item.name }}</span> |
| | | </span> |
| | | {{ state.ruleForm.exRole.name}} |
| | | <!-- <span v-for="(item, index) in state.roleList" :key="index"> |
| | | <span v-if="item.code == state.ruleForm.transactionCode">{{ item.name }}</span> |
| | | </span> --> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | | <div class="cell-item">开户银行</div> |
| | | </template> |
| | | {{ state.ruleForm.bankName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | | <div class="cell-item">银行账号</div> |
| | | </template> |
| | | {{ state.ruleForm.bankAccount }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | | <div class="cell-item">银行收款二维码</div> |
| | | </template> |
| | | <span @click="showImg('bankAccountIMG')"> |
| | | <el-link type="primary" underline>查看银行收款二维码</el-link> |
| | | </span> |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | | <div class="cell-item">法定代表人</div> |
| | | </template> |
| | | {{ state.ruleForm.legalRepresentativeName }} |
| | |
| | | </template> |
| | | {{ state.ruleForm.operatorPhone }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | | <div class="cell-item">开户银行</div> |
| | | </template> |
| | | {{ state.ruleForm.bankName }} |
| | | </el-descriptions-item> |
| | | <el-descriptions-item> |
| | | <template #label> |
| | | <div class="cell-item">银行账号</div> |
| | | </template> |
| | | {{ state.ruleForm.bankAccount }} |
| | | </el-descriptions-item> |
| | | |
| | | </el-descriptions> |
| | | |
| | | <template #footer> |