|
@@ -2,35 +2,22 @@
|
|
<div class="tenant">
|
|
<div class="tenant">
|
|
<!-- <Banner /> -->
|
|
<!-- <Banner /> -->
|
|
<div class="content">
|
|
<div class="content">
|
|
- <byTable
|
|
|
|
- :source="sourceList.data"
|
|
|
|
- :pagination="sourceList.pagination"
|
|
|
|
- :config="config"
|
|
|
|
- :loading="loading"
|
|
|
|
- highlight-current-row
|
|
|
|
- :selectConfig="selectConfig"
|
|
|
|
- :table-events="{
|
|
|
|
|
|
+ <byTable :source="sourceList.data" :pagination="sourceList.pagination" :config="config" :loading="loading" highlight-current-row
|
|
|
|
+ :selectConfig="selectConfig" :table-events="{
|
|
//element talbe事件都能传
|
|
//element talbe事件都能传
|
|
select: (data) => selectRow(data, 'row'),
|
|
select: (data) => selectRow(data, 'row'),
|
|
'select-all': (data) => selectAll(data, 'all'),
|
|
'select-all': (data) => selectAll(data, 'all'),
|
|
'sort-change': sortChange,
|
|
'sort-change': sortChange,
|
|
- }"
|
|
|
|
- :action-list="[
|
|
|
|
|
|
+ }" :action-list="[
|
|
{
|
|
{
|
|
text: '采购',
|
|
text: '采购',
|
|
disabled: selectData.length === 0 && selectAllData.length === 0,
|
|
disabled: selectData.length === 0 && selectAllData.length === 0,
|
|
action: () => start(20),
|
|
action: () => start(20),
|
|
},
|
|
},
|
|
- ]"
|
|
|
|
- @get-list="getList"
|
|
|
|
- >
|
|
|
|
|
|
+ ]" @get-list="getList">
|
|
<template #pic="{ item }">
|
|
<template #pic="{ item }">
|
|
<div v-if="item.fileList.length > 0">
|
|
<div v-if="item.fileList.length > 0">
|
|
- <img
|
|
|
|
- :src="item.fileList[0].fileUrl"
|
|
|
|
- class="pic"
|
|
|
|
- @click="handleClickFile(item.fileList[0])"
|
|
|
|
- />
|
|
|
|
|
|
+ <img :src="item.fileList[0].fileUrl" class="pic" @click="handleClickFile(item.fileList[0])" />
|
|
</div>
|
|
</div>
|
|
<div v-else></div>
|
|
<div v-else></div>
|
|
</template>
|
|
</template>
|
|
@@ -364,6 +351,7 @@ const start = (type) => {
|
|
query: {
|
|
query: {
|
|
flowKey: "wdly_purchase",
|
|
flowKey: "wdly_purchase",
|
|
ids,
|
|
ids,
|
|
|
|
+ teamId: deptId,
|
|
flowName: "采购申请",
|
|
flowName: "采购申请",
|
|
random: proxy.random(),
|
|
random: proxy.random(),
|
|
},
|
|
},
|
|
@@ -384,11 +372,13 @@ const start = (type) => {
|
|
ids = selectData.value.map((x) => x.id).join();
|
|
ids = selectData.value.map((x) => x.id).join();
|
|
row = selectData.value[0];
|
|
row = selectData.value[0];
|
|
}
|
|
}
|
|
|
|
+ let deptId = row.deptId;
|
|
proxy.$router.replace({
|
|
proxy.$router.replace({
|
|
path: "/platform_manage/process/processApproval",
|
|
path: "/platform_manage/process/processApproval",
|
|
query: {
|
|
query: {
|
|
flowKey: "wdly_purchase",
|
|
flowKey: "wdly_purchase",
|
|
ids,
|
|
ids,
|
|
|
|
+ teamId: deptId,
|
|
flowName: "采购申请",
|
|
flowName: "采购申请",
|
|
random: proxy.random(),
|
|
random: proxy.random(),
|
|
},
|
|
},
|