优化进件查询
This commit is contained in:
@@ -51,8 +51,10 @@
|
||||
<div class="error_text" v-if="scope.row.alipayStatus == 'REJECTED'">
|
||||
{{ scope.row.alipayErrorMsg }}
|
||||
</div>
|
||||
<el-link type="primary" v-if="scope.row.alipayStatus == 'SIGN '"
|
||||
@click="singCodeDialogRef?.show(scope.row.alipaySignUrl, 1)">查看签约码</el-link>
|
||||
<div>
|
||||
<el-link type="primary" v-if="scope.row.alipayStatus == 'SIGN '"
|
||||
@click="singCodeDialogRef?.show(scope.row.alipaySignUrl, 1)">查看签约码</el-link>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -66,15 +68,20 @@
|
||||
<div class="error_text" v-if="scope.row.wechatStatus == 'REJECTED'">
|
||||
{{ scope.row.wechatErrorMsg }}
|
||||
</div>
|
||||
<el-link type="primary" v-if="scope.row.wechatStatus == 'SIGN '"
|
||||
@click="singCodeDialogRef?.show(scope.row.wechatSignUrl, 2)">查看签约码</el-link>
|
||||
<div>
|
||||
<el-link type="primary" v-if="scope.row.wechatStatus == 'SIGN'"
|
||||
@click="singCodeDialogRef?.show(scope.row.wechatSignUrl, 2)">查看签约码</el-link>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="更新时间" prop="updateTime" width="200"></el-table-column>
|
||||
<el-table-column label="创建时间" prop="createTime" width="200"></el-table-column>
|
||||
<el-table-column label="操作" fixed="right" width="150">
|
||||
<el-table-column label="操作" fixed="right" width="200">
|
||||
<template v-slot="scope">
|
||||
<el-button link type="primary"
|
||||
v-if="scope.row.wechatStatus == 'INIT' || scope.row.wechatStatus == 'AUDIT' || scope.row.wechatStatus == 'SIGN' || scope.row.alipayStatus == 'INIT' || scope.row.alipayStatus == 'AUDIT' || scope.row.alipayStatus == 'SIGN'"
|
||||
@click="checkStatusHandle(scope.row)">查询</el-button>
|
||||
<el-button link type="primary" @click="toDetail(scope.row, 'check')">详情</el-button>
|
||||
<el-button link type="primary" @click="toDetail(scope.row, 'editor')"
|
||||
v-if="scope.row.alipayStatus == 'REJECTED' || scope.row.wechatStatus == 'REJECTED'">修改</el-button>
|
||||
@@ -100,7 +107,7 @@ import { ref, reactive, onMounted } from "vue";
|
||||
import { useRouter } from 'vue-router';
|
||||
import selectShopsDialog from "./components/selectShopsDialog.vue";
|
||||
import singCodeDialog from "./components/singCodeDialog.vue";
|
||||
import { entryManagerList } from '@/api/common'
|
||||
import { entryManagerList, queryEntry } from '@/api/common'
|
||||
|
||||
const singCodeDialogRef = ref(null)
|
||||
|
||||
@@ -156,7 +163,7 @@ const statusList = ref([
|
||||
{
|
||||
value: 'SIGN',
|
||||
label: '待签约',
|
||||
type: 'warning'
|
||||
type: 'primary'
|
||||
},
|
||||
{
|
||||
value: 'FINISH',
|
||||
@@ -222,6 +229,22 @@ function handleCurrentChange(e) {
|
||||
getTableData();
|
||||
}
|
||||
|
||||
// 查询状态
|
||||
async function checkStatusHandle(row) {
|
||||
try {
|
||||
tableData.loading = true
|
||||
const businessLicenceInfo = JSON.parse(row.businessLicenceInfo)
|
||||
await queryEntry({
|
||||
shopId: row.shopId,
|
||||
licenceNo: businessLicenceInfo.licenceNo
|
||||
})
|
||||
getTableData()
|
||||
} catch (error) {
|
||||
tableData.loading = false
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
|
||||
// 获取表格数据
|
||||
async function getTableData() {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user