|
@@ -19,7 +19,7 @@
|
|
<el-input v-model="businessOpportunityForm.contactsName" clearable placeholder="请输入"></el-input>
|
|
<el-input v-model="businessOpportunityForm.contactsName" clearable placeholder="请输入"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="产品">
|
|
<el-form-item label="产品">
|
|
- <el-select v-model="businessOpportunityForm.product" placeholder="请选择" clearable>
|
|
|
|
|
|
+ <el-select v-model="businessOpportunityForm.productId" placeholder="请选择" clearable>
|
|
<el-option v-for="item in fixedData.ProductArr" :key="item.value" :label="item.label"
|
|
<el-option v-for="item in fixedData.ProductArr" :key="item.value" :label="item.label"
|
|
:value="item.value" />
|
|
:value="item.value" />
|
|
</el-select>
|
|
</el-select>
|
|
@@ -28,7 +28,8 @@
|
|
<!-- <el-select v-model="businessOpportunityForm.inchargerId" placeholder="请选择" clearable>
|
|
<!-- <el-select v-model="businessOpportunityForm.inchargerId" placeholder="请选择" clearable>
|
|
<el-option v-for="item in fixedData.Personnel" :key="item.id" :label="item.name" :value="item.id" />
|
|
<el-option v-for="item in fixedData.Personnel" :key="item.id" :label="item.name" :value="item.id" />
|
|
</el-select> -->
|
|
</el-select> -->
|
|
- <personnel-search v-model="businessOpportunityForm.inchargerId" :size="''" placeholder="请选择"></personnel-search>
|
|
|
|
|
|
+ <personnel-search v-model="businessOpportunityForm.inchargerId" :size="''"
|
|
|
|
+ placeholder="请选择"></personnel-search>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="创建时间">
|
|
<el-form-item label="创建时间">
|
|
<el-date-picker v-model="businessOpportunityForm.startTime" type="date" placeholder="请选择"
|
|
<el-date-picker v-model="businessOpportunityForm.startTime" type="date" placeholder="请选择"
|
|
@@ -42,61 +43,80 @@
|
|
</div>
|
|
</div>
|
|
<div class="w-full flex p-3 shadow-[0_-3px_5px_0px_rgba(0,0,0,0.2)]">
|
|
<div class="w-full flex p-3 shadow-[0_-3px_5px_0px_rgba(0,0,0,0.2)]">
|
|
<El-button class="w-full" @click="resetForm()">重置</El-Button>
|
|
<El-button class="w-full" @click="resetForm()">重置</El-Button>
|
|
- <El-button type="primary" class="w-full" @click="getBusinessTableList()">搜索</El-Button>
|
|
|
|
|
|
+ <El-button type="primary" class="w-full" @click="searchForBusinessOpportunities()">搜索</El-Button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="flex-1 p-5 overflow-auto">
|
|
<div class="flex-1 p-5 overflow-auto">
|
|
<div class="bg-white w-full h-full p-3 shadow-md rounded-md flex flex-col">
|
|
<div class="bg-white w-full h-full p-3 shadow-md rounded-md flex flex-col">
|
|
- <div class="flex justify-end pb-3">
|
|
|
|
- <el-button v-permission="['businessAddAnEdit']" type="primary"
|
|
|
|
- @click="editNewBusiness(false)">新建商机</el-button>
|
|
|
|
- <el-button type="primary" @click="showVisible('batchTransferVisible')"
|
|
|
|
- :disabled="batchTableData.length <= 0">批量转移</el-button>
|
|
|
|
- <el-button type="primary" v-permission="['businessDelete']" @click="batchDeteleItem()"
|
|
|
|
- :disabled="batchTableData.length <= 0">批量删除</el-button>
|
|
|
|
- <el-button type="primary" @click="showVisible('stageSetVisible')">阶段设置</el-button>
|
|
|
|
- <el-button type="primary" v-permission="['businessRecycle']"
|
|
|
|
- @click="showVisible('deteleBusinessVisible')">回收站</el-button>
|
|
|
|
- <el-button v-permission="['businessImport']" type="primary"
|
|
|
|
- @click="showVisible('importVisible')">导入</el-button>
|
|
|
|
- <el-button v-permission="['businessExport']" type="primary" @click="exportBusinessTableList()"
|
|
|
|
- :loading="allLoading.exoprtLoading">导出</el-button>
|
|
|
|
|
|
+ <div class="flex justify-between pb-3">
|
|
|
|
+ <div>
|
|
|
|
+ <el-radio-group v-model="layoutSingleChoice" @change="viewsSwitching">
|
|
|
|
+ <el-radio-button label="看板视图" :value="KANBAN_VIEW" />
|
|
|
|
+ <el-radio-button label="表格视图" :value="TABLE_VIEW" />
|
|
|
|
+ </el-radio-group>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="justify-end flex">
|
|
|
|
+ <el-button v-permission="['businessAddAnEdit']" type="primary"
|
|
|
|
+ @click="editNewBusiness(false)">新建商机</el-button>
|
|
|
|
+ <el-button type="primary" @click="showVisible('batchTransferVisible')"
|
|
|
|
+ :disabled="batchTableData.length <= 0">批量转移</el-button>
|
|
|
|
+ <el-button type="primary" v-permission="['businessDelete']" @click="batchDeteleItem()"
|
|
|
|
+ :disabled="batchTableData.length <= 0">批量删除</el-button>
|
|
|
|
+ <el-button type="primary" @click="showVisible('stageSetVisible')">阶段设置</el-button>
|
|
|
|
+ <el-button type="primary" v-permission="['businessRecycle']"
|
|
|
|
+ @click="showVisible('deteleBusinessVisible')">回收站</el-button>
|
|
|
|
+ <el-button v-permission="['businessImport']" type="primary"
|
|
|
|
+ @click="showVisible('importVisible')">导入</el-button>
|
|
|
|
+ <el-button v-permission="['businessExport']" type="primary" @click="exportBusinessTableList()"
|
|
|
|
+ :loading="allLoading.exoprtLoading">导出</el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div class="flex-1 w-full overflow-hidden">
|
|
|
|
- <el-table ref="businessTableRef" :data="businessTable" border v-loading="allLoading.businessTableLading"
|
|
|
|
- :show-overflow-tooltip="tableShowOverflowTooltip" @selection-change="changeBatch"
|
|
|
|
- style="width: 100%;height: 100%;">
|
|
|
|
- <el-table-column type="selection" width="55" />
|
|
|
|
- <el-table-column v-for="(item, index) in tableColumn" :prop="item.prop" :label="item.label" :key="index"
|
|
|
|
- :width="item.width">
|
|
|
|
- <template #default="scope">
|
|
|
|
- <div class="table-text-textnowrap" v-if="item.eventName"
|
|
|
|
- @click="dealWithTableColumn(scope.row, item.eventName)">{{ scope.row[item.prop] }}</div>
|
|
|
|
- <template v-else-if="['inchargerName', 'creatorName'].includes(item.prop)">
|
|
|
|
- <TextTranslation translationTypes="userName" :translationValue="scope.row[item.prop]"></TextTranslation>
|
|
|
|
|
|
+ <!-- 表格视图 -->
|
|
|
|
+ <template v-if="layoutSingleChoice == TABLE_VIEW">
|
|
|
|
+ <div class="flex-1 w-full overflow-hidden">
|
|
|
|
+ <el-table ref="businessTableRef" :data="businessTable" border v-loading="allLoading.businessTableLading"
|
|
|
|
+ :show-overflow-tooltip="tableShowOverflowTooltip" @selection-change="changeBatch"
|
|
|
|
+ style="width: 100%;height: 100%;">
|
|
|
|
+ <el-table-column type="selection" width="55" />
|
|
|
|
+ <el-table-column v-for="(item, index) in tableColumn" :prop="item.prop" :label="item.label" :key="index"
|
|
|
|
+ :width="item.width">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <div class="table-text-textnowrap" v-if="item.eventName"
|
|
|
|
+ @click="dealWithTableColumn(scope.row, item.eventName)">{{ scope.row[item.prop] }}</div>
|
|
|
|
+ <template v-else-if="['inchargerName', 'creatorName'].includes(item.prop)">
|
|
|
|
+ <TextTranslation translationTypes="userName" :translationValue="scope.row[item.prop]">
|
|
|
|
+ </TextTranslation>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-else>{{ scope.row[item.prop] }}</template>
|
|
</template>
|
|
</template>
|
|
- <template v-else>{{ scope.row[item.prop] }}</template>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="操作" fixed="right" width="200"
|
|
|
|
- v-permission="['businessAddAnEdit', 'tasksAdd', 'businessDelete']">
|
|
|
|
- <template #default="scope">
|
|
|
|
- <el-button link type="primary" size="large" @click="editNewBusiness(scope.row)"
|
|
|
|
- v-permission="['businessAddAnEdit']">编辑</el-button>
|
|
|
|
- <el-button link type="primary" size="large" @click="newTask(scope.row)"
|
|
|
|
- v-permission="['tasksAdd']">新建任务</el-button>
|
|
|
|
- <el-button link type="danger" size="large" @click="businessDeteleItem(scope.row.id, scope.row.name)"
|
|
|
|
- v-permission="['businessDelete']">删除</el-button>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- </el-table>
|
|
|
|
- </div>
|
|
|
|
- <div class="flex justify-end pt-3">
|
|
|
|
- <el-pagination layout="total, prev, pager, next, sizes" :page-size="businessOpportunityForm.pageFrom"
|
|
|
|
- @size-change="handleSizeChange" @current-change="handleCurrentChange" :total="businessTotalTable"
|
|
|
|
- :hide-on-single-page="true" />
|
|
|
|
- </div>
|
|
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" fixed="right" width="200"
|
|
|
|
+ v-permission="['businessAddAnEdit', 'tasksAdd', 'businessDelete']">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <el-button link type="primary" size="large" @click="editNewBusiness(scope.row)"
|
|
|
|
+ v-permission="['businessAddAnEdit']">编辑</el-button>
|
|
|
|
+ <el-button link type="primary" size="large" @click="newTask(scope.row)"
|
|
|
|
+ v-permission="['tasksAdd']">新建任务</el-button>
|
|
|
|
+ <el-button link type="danger" size="large" @click="businessDeteleItem(scope.row.id, scope.row.name)"
|
|
|
|
+ v-permission="['businessDelete']">删除</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="flex justify-end pt-3">
|
|
|
|
+ <el-pagination layout="total, prev, pager, next, sizes" :page-size="businessOpportunityForm.pageFrom"
|
|
|
|
+ @size-change="handleSizeChange" @current-change="handleCurrentChange" :total="businessTotalTable"
|
|
|
|
+ :hide-on-single-page="true" />
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
|
|
+ <!-- 看板视图 -->
|
|
|
|
+ <template v-else-if="layoutSingleChoice == KANBAN_VIEW">
|
|
|
|
+ <div class="flex-1 w-full h-full overflow-hidden">
|
|
|
|
+ <kanbanView ref="kanbanViewRef" @kanbanViewClick="kanbanViewClick" />
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 弹窗 -->
|
|
<!-- 弹窗 -->
|
|
@@ -179,7 +199,7 @@
|
|
<DeteleBusiness :visibles="allVisible.deteleBusinessVisible" @closeVisible="closeVisible" />
|
|
<DeteleBusiness :visibles="allVisible.deteleBusinessVisible" @closeVisible="closeVisible" />
|
|
|
|
|
|
<!-- 阶段设置 -->
|
|
<!-- 阶段设置 -->
|
|
- <StageSetting :visibles="allVisible.stageSetVisible" @closeVisible="closeVisible" />
|
|
|
|
|
|
+ <StageSetting :visibles="allVisible.stageSetVisible" @closeVisible="closeVisible" @change="searchForBusinessOpportunities" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -187,7 +207,7 @@
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
import { ref, reactive, onMounted, inject } from "vue";
|
|
import type { ElTable, FormInstance, FormRules, UploadRequestOptions } from 'element-plus'
|
|
import type { ElTable, FormInstance, FormRules, UploadRequestOptions } from 'element-plus'
|
|
import { useRouter, useRoute } from "vue-router";
|
|
import { useRouter, useRoute } from "vue-router";
|
|
-import { GETSYSFILED, MOD, GETPERSONNEL, GETGENERATEFOEM, GETBUSINESSLIST, UPDATEINSET, BUSINESSDETELE, BATCHTRANSFER, MODURL, tableColumn, BUSIESS_GETSATE, URL_IMPOERBUSINESS, BUSIESS_INFO, URL_EXPORTBUSINESS } from './api'
|
|
|
|
|
|
+import { GETSYSFILED, MOD, GETPERSONNEL, GETGENERATEFOEM, GETBUSINESSLIST, UPDATEINSET, BUSINESSDETELE, BATCHTRANSFER, MODURL, tableColumn, BUSIESS_GETSATE, URL_IMPOERBUSINESS, BUSIESS_INFO, URL_EXPORTBUSINESS, TABLE_VIEW, KANBAN_VIEW } from './api'
|
|
import { GETTABLELIST } from '@/pages/product/api'
|
|
import { GETTABLELIST } from '@/pages/product/api'
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, createTaskFromType, formatDate, confirmAction, downloadTemplate, downloadFile, judgmentaAmounteEqual } from '@/utils/tools'
|
|
import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, createTaskFromType, formatDate, confirmAction, downloadTemplate, downloadFile, judgmentaAmounteEqual } from '@/utils/tools'
|
|
@@ -201,6 +221,7 @@ import DeteleBusiness from './component/deteleTables.vue'
|
|
import StageSetting from './component/stageSetting.vue'
|
|
import StageSetting from './component/stageSetting.vue'
|
|
import { GETTABLELISTPRODUCT } from "../order/api";
|
|
import { GETTABLELISTPRODUCT } from "../order/api";
|
|
import personnelSearch from '@/components/translationComponent/personnelSearch/personnelSearch.vue';
|
|
import personnelSearch from '@/components/translationComponent/personnelSearch/personnelSearch.vue';
|
|
|
|
+import kanbanView from "./component/kanbanView.vue";
|
|
|
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
@@ -241,7 +262,7 @@ const allText = reactive({
|
|
|
|
|
|
const taskModalForm = ref({}) // 任务弹窗表单
|
|
const taskModalForm = ref({}) // 任务弹窗表单
|
|
const taskLoading = ref<saveLoadingType>("1");
|
|
const taskLoading = ref<saveLoadingType>("1");
|
|
-const batchTableData = ref([]) // 批量数据
|
|
|
|
|
|
+const batchTableData = ref<any>([]) // 批量数据
|
|
const transferPersonnel = ref('') // 转移人
|
|
const transferPersonnel = ref('') // 转移人
|
|
|
|
|
|
const businessOpportunityForm = reactive<businessOpportunityFormType>({
|
|
const businessOpportunityForm = reactive<businessOpportunityFormType>({
|
|
@@ -249,7 +270,7 @@ const businessOpportunityForm = reactive<businessOpportunityFormType>({
|
|
stageId: '',
|
|
stageId: '',
|
|
customerName: '',
|
|
customerName: '',
|
|
contactsName: '',
|
|
contactsName: '',
|
|
- product: '',
|
|
|
|
|
|
+ productId: '',
|
|
inchargerId: '',
|
|
inchargerId: '',
|
|
startTime: getFirstDayOfMonth(new Date()),
|
|
startTime: getFirstDayOfMonth(new Date()),
|
|
endTime: formatDate(new Date()),
|
|
endTime: formatDate(new Date()),
|
|
@@ -263,6 +284,8 @@ const fixedData = reactive({
|
|
})
|
|
})
|
|
const productTableList = ref([])
|
|
const productTableList = ref([])
|
|
const productTableListValue = ref([])
|
|
const productTableListValue = ref([])
|
|
|
|
+const layoutSingleChoice = ref(KANBAN_VIEW)
|
|
|
|
+const kanbanViewRef = ref<any>(null)
|
|
|
|
|
|
|
|
|
|
function editBusiness(visibles: boolean) {
|
|
function editBusiness(visibles: boolean) {
|
|
@@ -278,7 +301,7 @@ function editBusiness(visibles: boolean) {
|
|
})
|
|
})
|
|
let newForm = {
|
|
let newForm = {
|
|
...res,
|
|
...res,
|
|
- expectedTransactionDate: res.expectedTransactionDate ? formatDateTime(new Date(res.expectedTransactionDate)) : '',
|
|
|
|
|
|
+ expectedTransactionDate: res.expectedTransactionDate ? formatDate(new Date(res.expectedTransactionDate)) : '',
|
|
businessItemProductList: productTableListData ? JSON.stringify(productTableListData) : []
|
|
businessItemProductList: productTableListData ? JSON.stringify(productTableListData) : []
|
|
}
|
|
}
|
|
allLoading.businessSaveLading = true
|
|
allLoading.businessSaveLading = true
|
|
@@ -286,7 +309,7 @@ function editBusiness(visibles: boolean) {
|
|
post(UPDATEINSET, { ...businessTemplateValue.value, ...newForm }).then((_res) => {
|
|
post(UPDATEINSET, { ...businessTemplateValue.value, ...newForm }).then((_res) => {
|
|
allVisible.newBusinessisible = visibles
|
|
allVisible.newBusinessisible = visibles
|
|
globalPopup?.showSuccess('保存成功')
|
|
globalPopup?.showSuccess('保存成功')
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
allLoading.businessSaveLading = false
|
|
allLoading.businessSaveLading = false
|
|
})
|
|
})
|
|
@@ -348,7 +371,7 @@ function transferBusiness() {
|
|
transferPersonnel.value = ''
|
|
transferPersonnel.value = ''
|
|
globalPopup?.showSuccess('转移成功')
|
|
globalPopup?.showSuccess('转移成功')
|
|
closeVisible('batchTransferVisible')
|
|
closeVisible('batchTransferVisible')
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
allLoading.transferLoading = false
|
|
allLoading.transferLoading = false
|
|
})
|
|
})
|
|
@@ -369,7 +392,7 @@ function businessDeteleItem(value: string | number, label: string, batch: boolea
|
|
}
|
|
}
|
|
globalPopup?.showSuccess('删除成功')
|
|
globalPopup?.showSuccess('删除成功')
|
|
changeBatch(false)
|
|
changeBatch(false)
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
}).catch((err) => {
|
|
}).catch((err) => {
|
|
globalPopup?.showError(err.msg)
|
|
globalPopup?.showError(err.msg)
|
|
})
|
|
})
|
|
@@ -385,7 +408,7 @@ async function importBusiness(param: UploadRequestOptions) {
|
|
})
|
|
})
|
|
if (res.code == 'ok') {
|
|
if (res.code == 'ok') {
|
|
globalPopup?.showSuccess('导入成功' || '')
|
|
globalPopup?.showSuccess('导入成功' || '')
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
return
|
|
return
|
|
}
|
|
}
|
|
globalPopup?.showError(res.msg || '')
|
|
globalPopup?.showError(res.msg || '')
|
|
@@ -401,6 +424,34 @@ function exportBusinessTableList() {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function viewsSwitching() {
|
|
|
|
+ batchTableData.value = []
|
|
|
|
+ resetForm()
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function kanbanViewClick(type: 'multipleChoice' | 'delete' | 'edit' | 'addTask', data: any) {
|
|
|
|
+ if(type == 'multipleChoice') {
|
|
|
|
+ multipleChoiceBoxSwitching(Array.isArray(data) ? data : [])
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(type == 'delete') {
|
|
|
|
+ const { id, name = '' } = data
|
|
|
|
+ businessDeteleItem(id, name)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(type == 'edit') {
|
|
|
|
+ editNewBusiness(data)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(type == 'addTask') {
|
|
|
|
+ newTask(data)
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+function multipleChoiceBoxSwitching(list: any[] = []) {
|
|
|
|
+ batchTableData.value = Array.isArray(list) ? list : []
|
|
|
|
+}
|
|
|
|
+
|
|
function changeBatch(flag: boolean = true) {
|
|
function changeBatch(flag: boolean = true) {
|
|
if (flag) {
|
|
if (flag) {
|
|
batchTableData.value = businessTableRef.value && businessTableRef.value.getSelectionRows()
|
|
batchTableData.value = businessTableRef.value && businessTableRef.value.getSelectionRows()
|
|
@@ -431,12 +482,12 @@ function editBusinessData(item: any) {
|
|
function handleSizeChange(val: number) {
|
|
function handleSizeChange(val: number) {
|
|
businessOpportunityForm.pageIndex = 1
|
|
businessOpportunityForm.pageIndex = 1
|
|
businessOpportunityForm.pageFrom = val
|
|
businessOpportunityForm.pageFrom = val
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
}
|
|
}
|
|
|
|
|
|
function handleCurrentChange(val: number) {
|
|
function handleCurrentChange(val: number) {
|
|
businessOpportunityForm.pageIndex = val
|
|
businessOpportunityForm.pageIndex = val
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
}
|
|
}
|
|
|
|
|
|
function showVisible(type: keyof typeof allVisible) { // 显示弹窗
|
|
function showVisible(type: keyof typeof allVisible) { // 显示弹窗
|
|
@@ -451,6 +502,17 @@ function handleClose(done: () => void) {
|
|
done()
|
|
done()
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function searchForBusinessOpportunities() {
|
|
|
|
+ if(layoutSingleChoice.value == TABLE_VIEW) {
|
|
|
|
+ getBusinessTableList()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(layoutSingleChoice.value == KANBAN_VIEW) {
|
|
|
|
+ const formValue = getFromValue(businessOpportunityForm)
|
|
|
|
+ kanbanViewRef.value.searchDashboardView({...formValue})
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
function getBusinessTableList() {
|
|
function getBusinessTableList() {
|
|
const formValue = getFromValue(businessOpportunityForm)
|
|
const formValue = getFromValue(businessOpportunityForm)
|
|
allLoading.businessTableLading = true
|
|
allLoading.businessTableLading = true
|
|
@@ -477,7 +539,7 @@ function resetForm() {
|
|
}
|
|
}
|
|
let newBusinessOpportunityForm = resetFromValue(businessOpportunityForm, { ...reset })
|
|
let newBusinessOpportunityForm = resetFromValue(businessOpportunityForm, { ...reset })
|
|
Object.assign(businessOpportunityForm, newBusinessOpportunityForm)
|
|
Object.assign(businessOpportunityForm, newBusinessOpportunityForm)
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
}
|
|
}
|
|
|
|
|
|
async function getSystemField() {
|
|
async function getSystemField() {
|
|
@@ -560,7 +622,7 @@ function getProductTableList() {
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
getSystemField()
|
|
getSystemField()
|
|
getProductTableList()
|
|
getProductTableList()
|
|
- getBusinessTableList()
|
|
|
|
|
|
+ searchForBusinessOpportunities()
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
|
|
|