|
@@ -3,22 +3,20 @@
|
|
|
<bs-table v-bind="tableOptions">
|
|
<bs-table v-bind="tableOptions">
|
|
|
<template #searchRight>
|
|
<template #searchRight>
|
|
|
<div>
|
|
<div>
|
|
|
- <a-button type="primary" >
|
|
|
|
|
|
|
+ <a-button type="primary" @click="openFlow">
|
|
|
<span>服务商入库登记</span>
|
|
<span>服务商入库登记</span>
|
|
|
</a-button>
|
|
</a-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <template #status="{ row, column }">
|
|
|
|
|
-
|
|
|
|
|
- </template>
|
|
|
|
|
</bs-table>
|
|
</bs-table>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script setup lang="jsx">
|
|
<script setup lang="jsx">
|
|
|
import { ref, reactive } from "vue"
|
|
import { ref, reactive } from "vue"
|
|
|
|
|
+import { useRouter } from "vue-router";
|
|
|
|
|
+
|
|
|
import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
|
|
import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
|
|
|
import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
|
|
import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
|
|
|
-import { useRouter } from "vue-router";
|
|
|
|
|
import useBsDict from "/@/utils/dict.js";
|
|
import useBsDict from "/@/utils/dict.js";
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const {
|
|
const {
|
|
@@ -42,11 +40,11 @@ const {
|
|
|
slots: {
|
|
slots: {
|
|
|
default: ({ row }) => {
|
|
default: ({ row }) => {
|
|
|
if (row.auditStatus === 0) {
|
|
if (row.auditStatus === 0) {
|
|
|
- return <span style={{color:'#ed8a94'}}>待审核</span>
|
|
|
|
|
- }else if (row.auditStatus === 1) {
|
|
|
|
|
- return <span style={{color:'#dc861f'}}>审核中</span>
|
|
|
|
|
- }else if (row.auditStatus === 2) {
|
|
|
|
|
- return <span style={{color:'#70b603'}}>审核完毕</span>
|
|
|
|
|
|
|
+ return <span style={{ color: '#ed8a94' }}>待审核</span>
|
|
|
|
|
+ } else if (row.auditStatus === 1) {
|
|
|
|
|
+ return <span style={{ color: '#dc861f' }}>审核中</span>
|
|
|
|
|
+ } else if (row.auditStatus === 2) {
|
|
|
|
|
+ return <span style={{ color: '#70b603' }}>审核完毕</span>
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -109,19 +107,22 @@ const {
|
|
|
title: '去审核',
|
|
title: '去审核',
|
|
|
code: 'view',
|
|
code: 'view',
|
|
|
display: ({ row }) => {
|
|
display: ({ row }) => {
|
|
|
- return DISPLAY_STATE.VISIBLE;
|
|
|
|
|
|
|
+ return row.auditStatus === 0 ? DISPLAY_STATE.VISIBLE : DISPLAY_STATE.HIDDEN;
|
|
|
},
|
|
},
|
|
|
disabled({ row }) {
|
|
disabled({ row }) {
|
|
|
return false;
|
|
return false;
|
|
|
},
|
|
},
|
|
|
- onClick({ row }) { },
|
|
|
|
|
|
|
+ onClick({ row }) {
|
|
|
|
|
+ openAudit(row)
|
|
|
|
|
+ },
|
|
|
extraProps: {},
|
|
extraProps: {},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '查看详情',
|
|
title: '查看详情',
|
|
|
code: 'view',
|
|
code: 'view',
|
|
|
display: ({ row }) => {
|
|
display: ({ row }) => {
|
|
|
- return DISPLAY_STATE.VISIBLE;
|
|
|
|
|
|
|
+ // return DISPLAY_STATE.VISIBLE
|
|
|
|
|
+ return row.auditStatus !== 0 ? DISPLAY_STATE.VISIBLE : DISPLAY_STATE.HIDDEN;
|
|
|
},
|
|
},
|
|
|
disabled({ row }) {
|
|
disabled({ row }) {
|
|
|
return false;
|
|
return false;
|
|
@@ -183,5 +184,11 @@ const {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
|
|
+function openFlow() {
|
|
|
|
|
+ window.open(import.meta.env.VITE_APP_API_BASE_URL + '/MvcSheet/formWork?flowCode=PROVIDER_REGISTER&tag=START')
|
|
|
|
|
+}
|
|
|
|
|
+function openAudit(row) {
|
|
|
|
|
+ window.open(import.meta.env.VITE_APP_API_BASE_URL + '/MvcSheet/formWork?flowCode=PROVIDER_REGISTER&tag=START')
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss" scoped></style>
|
|
<style lang="scss" scoped></style>
|