添加审批弹框
This commit is contained in:
1 parent
3a2e4342be
commit
c9c6b2ad1c
2 files changed
+20
-10
No files matched your search
@@ -148,16 +148,7 @@
|
|||||||
>
|
>
|
||||||
人脸管理
|
人脸管理
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button type="primary" size="small" link icon="VideoPlay" @click="deal(row)"> 开始处理 </el-button>
|
||||||
type="primary"
|
|
||||||
size="small"
|
|
||||||
v-if="row.isCheckUser && row.processStatus != '2'"
|
|
||||||
link
|
|
||||||
icon="VideoPlay"
|
|
||||||
@click="deal(row)"
|
|
||||||
>
|
|
||||||
开始处理
|
|
||||||
</el-button>
|
|
||||||
<!-- 删除用户 -->
|
<!-- 删除用户 -->
|
||||||
<el-tooltip content="admin 不允许被删除" :disabled="row.userId !== '1'" placement="top">
|
<el-tooltip content="admin 不允许被删除" :disabled="row.userId !== '1'" placement="top">
|
||||||
<span style="margin-left: 12px">
|
<span style="margin-left: 12px">
|
||||||
|
|||||||
@@ -88,11 +88,17 @@
|
|||||||
<el-button icon="delete" text type="primary" v-auth="'supermarket_smErpCgPlan_del'" @click="handleDelete([scope.row.id])">
|
<el-button icon="delete" text type="primary" v-auth="'supermarket_smErpCgPlan_del'" @click="handleDelete([scope.row.id])">
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button type="primary" size="small" v-if="scope.row.checkStatus != '2'" link icon="VideoPlay" @click="deal(scope.row)">
|
||||||
|
开始处理
|
||||||
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
|
<pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" v-bind="state.pagination" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- 审批抽屉 -->
|
||||||
|
<process-drawer ref="processDrawerRef" @task-submit-event="taskSubmitEvent" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -103,6 +109,7 @@ import { fetchList, delObjs } from "/@/api/supermarketerp/smErpCgPlan"
|
|||||||
import { useMessage, useMessageBox } from "/@/hooks/message"
|
import { useMessage, useMessageBox } from "/@/hooks/message"
|
||||||
import { useDict } from "/@/hooks/dict"
|
import { useDict } from "/@/hooks/dict"
|
||||||
import { usePurchase } from "/@/stores/purchase"
|
import { usePurchase } from "/@/stores/purchase"
|
||||||
|
import ProcessDrawer from "/@/components/processDrawer/index.vue"
|
||||||
|
|
||||||
const { check_status } = useDict("check_status")
|
const { check_status } = useDict("check_status")
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@@ -113,6 +120,7 @@ const showSearch = ref(true)
|
|||||||
const selectObjs = ref([]) as any
|
const selectObjs = ref([]) as any
|
||||||
const multiple = ref(true)
|
const multiple = ref(true)
|
||||||
const purchaseStore = usePurchase()
|
const purchaseStore = usePurchase()
|
||||||
|
const processDrawerRef = ref()
|
||||||
|
|
||||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||||
queryForm: {},
|
queryForm: {},
|
||||||
@@ -174,4 +182,15 @@ const handleDelete = async (ids: string[]) => {
|
|||||||
useMessage().error(err.msg)
|
useMessage().error(err.msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 点击开始处理
|
||||||
|
const deal = (row: any) => {
|
||||||
|
if (!row.processInstanceId) return useMessage().warning("流程id不存在")
|
||||||
|
processDrawerRef.value.openProcessDrawer(row)
|
||||||
|
}
|
||||||
|
|
||||||
|
// 审批提交事件
|
||||||
|
const taskSubmitEvent = () => {
|
||||||
|
getDataList()
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in new issue
Block a user