|
@@ -15,9 +15,11 @@
|
|
|
>
|
|
>
|
|
|
<!-- 工具栏 -->
|
|
<!-- 工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
|
- <el-button type="primary" icon="el-icon-plus" @click="handleUpload()"
|
|
|
|
|
- v-if="$hasPermission('main:identityphoto:save')"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ @click="handleUpload()"
|
|
|
|
|
+ v-if="$hasPermission('main:identityphoto:save')"
|
|
|
>新建</el-button
|
|
>新建</el-button
|
|
|
>
|
|
>
|
|
|
<!-- <el-button type="primary" @click="handleUpload">导入</el-button> -->
|
|
<!-- <el-button type="primary" @click="handleUpload">导入</el-button> -->
|
|
@@ -54,17 +56,33 @@
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpload(row)"
|
|
@click="handleUpload(row)"
|
|
|
- v-if="$hasPermission('main:identityphoto:save')"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ [0, 3].includes(row.approvalStatus) &&
|
|
|
|
|
+ $hasPermission('main:identityphoto:save')
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
修改
|
|
修改
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ icon="el-icon-edit"
|
|
|
|
|
+ @click="submit(row)"
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ [0, 3].includes(row.approvalStatus) &&
|
|
|
|
|
+ $hasPermission('main:identityphoto:save')
|
|
|
|
|
+ "
|
|
|
|
|
+ >
|
|
|
|
|
+ 提交
|
|
|
|
|
+ </el-link>
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
|
class="ele-action"
|
|
class="ele-action"
|
|
|
title="确定要删除此信息吗?"
|
|
title="确定要删除此信息吗?"
|
|
|
@confirm="remove([row.id])"
|
|
@confirm="remove([row.id])"
|
|
|
- v-if="$hasPermission('main:identityphoto:delete')"
|
|
|
|
|
-
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ [0, 3].includes(row.approvalStatus) &&
|
|
|
|
|
+ $hasPermission('main:identityphoto:delete')
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
<template v-slot:reference>
|
|
<template v-slot:reference>
|
|
|
<el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
<el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
@@ -77,12 +95,20 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<addDialog ref="addDialogRef" @success="reload" />
|
|
<addDialog ref="addDialogRef" @success="reload" />
|
|
|
<detailDialog ref="detailDialogRef" />
|
|
<detailDialog ref="detailDialogRef" />
|
|
|
|
|
+ <process-submit-dialog
|
|
|
|
|
+ api-fun-name="purchaseinquiryStatusAPI"
|
|
|
|
|
+ :processSubmitDialogFlag.sync="processSubmitDialogFlag"
|
|
|
|
|
+ v-if="processSubmitDialogFlag"
|
|
|
|
|
+ ref="processSubmitDialogRef"
|
|
|
|
|
+ @reload="reload"
|
|
|
|
|
+
|
|
|
|
|
+ ></process-submit-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
-
|
|
|
|
|
|
|
+ import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import certificateSearch from './components/certificate-search';
|
|
import certificateSearch from './components/certificate-search';
|
|
|
import addDialog from './components/add-dialog.vue';
|
|
import addDialog from './components/add-dialog.vue';
|
|
|
import detailDialog from './components/detail-dialog.vue';
|
|
import detailDialog from './components/detail-dialog.vue';
|
|
@@ -92,12 +118,14 @@
|
|
|
import { deepClone } from '@/utils';
|
|
import { deepClone } from '@/utils';
|
|
|
import { holderTypeOptions } from '@/enum/dict.js';
|
|
import { holderTypeOptions } from '@/enum/dict.js';
|
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
import fileMain from '@/components/addDoc/index.vue';
|
|
|
|
|
+ import { reviewStatus } from '@/enum/dict';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
mixins: [dictMixins, tabMixins],
|
|
|
- components: { certificateSearch, addDialog, detailDialog, fileMain },
|
|
|
|
|
|
|
+ components: { certificateSearch, addDialog, detailDialog, fileMain,processSubmitDialog },
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ processSubmitDialogFlag:false,
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
|
label: '序号',
|
|
label: '序号',
|
|
@@ -166,6 +194,16 @@
|
|
|
minWidth: '100',
|
|
minWidth: '100',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '审核状态',
|
|
|
|
|
+ prop: 'approvalStatus',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 120,
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return reviewStatus[_row.approvalStatus];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
columnKey: 'action',
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
label: '操作',
|
|
@@ -199,6 +237,26 @@
|
|
|
});
|
|
});
|
|
|
return res;
|
|
return res;
|
|
|
},
|
|
},
|
|
|
|
|
+ async submit(row) {
|
|
|
|
|
+ this.processSubmitDialogFlag = true;
|
|
|
|
|
+
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ businessId: row.id,
|
|
|
|
|
+ businessKey: row.holderType==1?'profession_person_approve':row.holderType==4?'contact_qc_approve':'supplier_qc_approve',
|
|
|
|
|
+ formCreateUserId: row.createUserId,
|
|
|
|
|
+ variables: {
|
|
|
|
|
+ businessCode: row.code,
|
|
|
|
|
+ businessName: row.holder,
|
|
|
|
|
+ businessType:
|
|
|
|
|
+ row.holderType == 1
|
|
|
|
|
+ ? this.getDictValue('证件类型', row.type)
|
|
|
|
|
+ : this.getDictValue('客户/供应商资质类型', row.type)
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$refs.processSubmitDialogRef.init(params);
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
reload(where = {}) {
|
|
reload(where = {}) {
|
|
|
this.$refs.table.reload({ where });
|
|
this.$refs.table.reload({ where });
|
|
|
},
|
|
},
|