Compare commits
9 Commits
2e19a4c6f6
...
dev-cl
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f34778ee0 | |||
|
|
7df45d6703 | ||
| c4df756715 | |||
|
|
cb2deeb142 | ||
|
|
831c343448 | ||
|
|
c0be75b6fd | ||
|
|
9b323b68f9 | ||
|
|
6ebe33e48c | ||
|
|
c34623287c |
@@ -43,3 +43,19 @@ export const getMeetingPage = (params) => {
|
|||||||
// headers: { 'instance-id': 1016 }
|
// headers: { 'instance-id': 1016 }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 刷新微信群列表
|
||||||
|
export const refreshWxGroupList = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/system/wx/reFreshWeChatGroupList'
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 获取微信群聊列表
|
||||||
|
export const getWxGroupList = () => {
|
||||||
|
return request.get({
|
||||||
|
url: '/admin-api/system/wx/getWeChatGroupList'
|
||||||
|
// headers: { 'instance-id': 1016 }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default defineComponent({
|
|||||||
name: 'DictTag',
|
name: 'DictTag',
|
||||||
props: {
|
props: {
|
||||||
type: {
|
type: {
|
||||||
type: String as PropType<string>,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
@@ -42,7 +42,7 @@ export default defineComponent({
|
|||||||
return (
|
return (
|
||||||
<ElTag
|
<ElTag
|
||||||
style={dictData.value?.cssClass ? 'color: #fff' : ''}
|
style={dictData.value?.cssClass ? 'color: #fff' : ''}
|
||||||
type={dictData.value?.colorType}
|
type={dictData.value?.colorType || 'primary'}
|
||||||
color={
|
color={
|
||||||
dictData.value?.cssClass && isHexColor(dictData.value?.cssClass)
|
dictData.value?.cssClass && isHexColor(dictData.value?.cssClass)
|
||||||
? dictData.value?.cssClass
|
? dictData.value?.cssClass
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const props = defineProps({
|
|||||||
height: propTypes.oneOfType([Number, String]).def('40vh'),
|
height: propTypes.oneOfType([Number, String]).def('40vh'),
|
||||||
editorConfig: {
|
editorConfig: {
|
||||||
type: Object as PropType<Partial<IEditorConfig>>,
|
type: Object as PropType<Partial<IEditorConfig>>,
|
||||||
default: () => undefined
|
default: () => ({})
|
||||||
},
|
},
|
||||||
readonly: propTypes.bool.def(false),
|
readonly: propTypes.bool.def(false),
|
||||||
modelValue: propTypes.string.def(''),
|
modelValue: propTypes.string.def(''),
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export const useRenderRadio = () => {
|
|||||||
return item?.options?.map((option) => {
|
return item?.options?.map((option) => {
|
||||||
const { ...other } = option
|
const { ...other } = option
|
||||||
return (
|
return (
|
||||||
<Com {...other} label={option[valueAlias || 'value']}>
|
<Com {...other} label={option[valueAlias || 'value']} value={option[valueAlias || 'value']}>
|
||||||
{option[labelAlias || 'label']}
|
{option[labelAlias || 'label']}
|
||||||
</Com>
|
</Com>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -183,7 +183,7 @@ initSearch()
|
|||||||
virtual-triggering
|
virtual-triggering
|
||||||
>
|
>
|
||||||
<el-checkbox-group v-model="checkedSchema" @change="changeSearch">
|
<el-checkbox-group v-model="checkedSchema" @change="changeSearch">
|
||||||
<el-checkbox v-for="item in schema" :key="item.id" :label="item.id">
|
<el-checkbox v-for="item in schema" :key="item.id" :label="item.id" :value="item.id">
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
|
|||||||
@@ -276,6 +276,7 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[
|
|||||||
}
|
}
|
||||||
if (schemaItem.form?.component == 'Editor') {
|
if (schemaItem.form?.component == 'Editor') {
|
||||||
descriptionsSchemaItem.span = 2
|
descriptionsSchemaItem.span = 2
|
||||||
|
descriptionsSchemaItem.isEditor = true
|
||||||
}
|
}
|
||||||
if (schemaItem.dictType) {
|
if (schemaItem.dictType) {
|
||||||
descriptionsSchemaItem.dictType = schemaItem.dictType
|
descriptionsSchemaItem.dictType = schemaItem.dictType
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog v-model="dialogVisible" :title="dialogTitle" width="800px">
|
<Dialog v-if="dialogVisible" v-model="dialogVisible" :title="dialogTitle" width="800px">
|
||||||
<el-form
|
<el-form
|
||||||
ref="formRef"
|
ref="formRef"
|
||||||
v-loading="formLoading"
|
v-loading="formLoading"
|
||||||
@@ -30,7 +30,12 @@
|
|||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12" :offset="0">
|
<el-col :span="12" :offset="0">
|
||||||
<el-form-item label="负责人" prop="leaderUserId">
|
<el-form-item label="负责人" prop="leaderUserId">
|
||||||
<el-select v-model="formData.leaderUserId" clearable placeholder="请输入负责人">
|
<el-select
|
||||||
|
v-model="formData.leaderUserId"
|
||||||
|
clearable
|
||||||
|
multiple
|
||||||
|
placeholder="请输入负责人"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in userList"
|
v-for="item in userList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@@ -59,7 +64,7 @@
|
|||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="24" :offset="0">
|
<el-col :span="24" :offset="0">
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
<Editor v-model:modelValue="formData.remark" />
|
<Editor v-model="formData.remark" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|||||||
@@ -78,20 +78,62 @@
|
|||||||
<el-table-column type="expand" fixed="left">
|
<el-table-column type="expand" fixed="left">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div class="p-10px flex justify-center">
|
<div class="p-10px flex justify-center">
|
||||||
<VueDraggable
|
<!-- <VueDraggable
|
||||||
target="tbody"
|
target="tbody"
|
||||||
v-model="row.signProducts"
|
v-model="row.signProducts"
|
||||||
:animation="150"
|
:animation="150"
|
||||||
@end="onDragEnd"
|
@end="onDragEnd"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
> -->
|
||||||
|
<el-table
|
||||||
|
:data="row.signProducts"
|
||||||
|
row-key="id"
|
||||||
|
stripe
|
||||||
|
style="width: 90%; margin: 0 auto"
|
||||||
>
|
>
|
||||||
<el-table
|
<el-table-column prop="" label="子订单号" />
|
||||||
:data="row.signProducts"
|
<el-table-column prop="" label="登记人" width="120px" />
|
||||||
row-key="id"
|
<el-table-column prop="" label="成交日期" width="120px" />
|
||||||
stripe
|
<el-table-column prop="" label="成交价" width="120px" />
|
||||||
style="width: 80%; margin: 0 auto"
|
<el-table-column prop="" label="支付金额" width="120px" />
|
||||||
>
|
<el-table-column prop="" label="已到账金额" width="120px" />
|
||||||
<el-table-column prop="productName" label="成交产品" width="120px" />
|
<el-table-column prop="" label="提成状态" width="120px" />
|
||||||
|
<el-table-column prop="" label="备注" />
|
||||||
|
<el-table-column label="操作" width="200px" fixed="right">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="mr-10px"
|
||||||
|
link
|
||||||
|
style="padding: 0; margin-left: 0"
|
||||||
|
v-hasPermi="['clue:order:after-sale']"
|
||||||
|
@click="sellAfter(scope.row)"
|
||||||
|
>
|
||||||
|
售后
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="mr-10px"
|
||||||
|
link
|
||||||
|
style="padding: 0; margin-left: 0"
|
||||||
|
v-hasPermi="['clue:order:return']"
|
||||||
|
@click="feeBack(scope.row)"
|
||||||
|
>
|
||||||
|
回款
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
class="mr-10px"
|
||||||
|
link
|
||||||
|
style="padding: 0; margin-left: 0"
|
||||||
|
v-hasPermi="['clue:pool:enroll']"
|
||||||
|
@click="cancelDeal(scope.row)"
|
||||||
|
>
|
||||||
|
取消登记
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<!-- <el-table-column prop="productName" label="成交产品" width="120px" />
|
||||||
<el-table-column prop="specsName" label="产品规格" width="120px" />
|
<el-table-column prop="specsName" label="产品规格" width="120px" />
|
||||||
<el-table-column prop="signNum" label="成交数量" width="90px" />
|
<el-table-column prop="signNum" label="成交数量" width="90px" />
|
||||||
<el-table-column prop="remark" label="成交备注" width="100px" />
|
<el-table-column prop="remark" label="成交备注" width="100px" />
|
||||||
@@ -157,9 +199,9 @@
|
|||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column> -->
|
||||||
</el-table>
|
</el-table>
|
||||||
</VueDraggable>
|
<!-- </VueDraggable> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -184,7 +226,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="240px" fixed="right">
|
<el-table-column label="操作" width="120px" fixed="right">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@@ -196,27 +238,6 @@
|
|||||||
>
|
>
|
||||||
详情
|
详情
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="mr-10px"
|
|
||||||
link
|
|
||||||
style="padding: 0; margin-left: 0"
|
|
||||||
v-hasPermi="['clue:order:after-sale']"
|
|
||||||
@click="sellAfter(scope.row)"
|
|
||||||
>
|
|
||||||
售后
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="mr-10px"
|
|
||||||
link
|
|
||||||
style="padding: 0; margin-left: 0"
|
|
||||||
v-if="scope.row.isPayoff == '未结清'"
|
|
||||||
v-hasPermi="['clue:order:return']"
|
|
||||||
@click="feeBack(scope.row)"
|
|
||||||
>
|
|
||||||
回款
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
class="mr-10px"
|
class="mr-10px"
|
||||||
@@ -227,26 +248,6 @@
|
|||||||
>
|
>
|
||||||
添加支出
|
添加支出
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="mr-10px"
|
|
||||||
link
|
|
||||||
style="padding: 0; margin-left: 0"
|
|
||||||
v-hasPermi="['clue:pool:enroll']"
|
|
||||||
@click="cancelDeal(scope.row)"
|
|
||||||
>
|
|
||||||
取消登记
|
|
||||||
</el-button>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
class="mr-10px"
|
|
||||||
link
|
|
||||||
style="padding: 0; margin-left: 0"
|
|
||||||
v-hasPermi="['clue:order:add-product']"
|
|
||||||
@click="handleAddProduct(scope.row)"
|
|
||||||
>
|
|
||||||
添加产品
|
|
||||||
</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</SSTable>
|
</SSTable>
|
||||||
@@ -277,8 +278,8 @@ import DialogAddProduct from './DialogAddProduct.vue'
|
|||||||
import { removeNullField } from '@/utils'
|
import { removeNullField } from '@/utils'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
import { ElMessageBox, ElOption, ElSelect } from 'element-plus'
|
import { ElMessageBox, ElOption, ElSelect } from 'element-plus'
|
||||||
import { VueDraggable } from 'vue-draggable-plus'
|
// import { VueDraggable } from 'vue-draggable-plus'
|
||||||
import { checkPermi } from '@/utils/permission'
|
// import { checkPermi } from '@/utils/permission'
|
||||||
|
|
||||||
const userOptions = ref([])
|
const userOptions = ref([])
|
||||||
const allUserOptions = ref([])
|
const allUserOptions = ref([])
|
||||||
@@ -421,14 +422,14 @@ async function getOptions() {
|
|||||||
getCurdSchemas()
|
getCurdSchemas()
|
||||||
}
|
}
|
||||||
const deliveryDialog = ref()
|
const deliveryDialog = ref()
|
||||||
function handleDelivery(row) {
|
// function handleDelivery(row) {
|
||||||
deliveryDialog.value.open(row)
|
// deliveryDialog.value.open(row)
|
||||||
}
|
// }
|
||||||
|
|
||||||
const addProductDialog = ref()
|
// const addProductDialog = ref()
|
||||||
function handleAddProduct(row) {
|
// function handleAddProduct(row) {
|
||||||
addProductDialog.value.open(row.signId, prodOptions.value)
|
// addProductDialog.value.open(row.signId, prodOptions.value)
|
||||||
}
|
// }
|
||||||
|
|
||||||
const batchIds = ref([])
|
const batchIds = ref([])
|
||||||
function handleSelectionChange(val) {
|
function handleSelectionChange(val) {
|
||||||
@@ -486,51 +487,51 @@ function handleBatchUpdateInstall() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function handleRemoveProduct(row) {
|
// async function handleRemoveProduct(row) {
|
||||||
try {
|
// try {
|
||||||
// 修改状态的二次确认
|
// // 修改状态的二次确认
|
||||||
await message.confirm(`确认要删除${row.productName}吗?`)
|
// await message.confirm(`确认要删除${row.productName}吗?`)
|
||||||
// 发起修改状态
|
// // 发起修改状态
|
||||||
await SignApi.removeOrderProduct(row.id)
|
// await SignApi.removeOrderProduct(row.id)
|
||||||
message.success('删除成功')
|
// message.success('删除成功')
|
||||||
// 刷新列表
|
// // 刷新列表
|
||||||
getTableList()
|
// getTableList()
|
||||||
} catch {}
|
// } catch {}
|
||||||
}
|
// }
|
||||||
|
|
||||||
async function handleChangeProdoce(row) {
|
// async function handleChangeProdoce(row) {
|
||||||
try {
|
// try {
|
||||||
// 修改状态的二次确认
|
// // 修改状态的二次确认
|
||||||
await message.confirm('确认要修改生产状态吗?')
|
// await message.confirm('确认要修改生产状态吗?')
|
||||||
// 发起修改状态
|
// // 发起修改状态
|
||||||
await SignApi.updateProduceStatus({
|
// await SignApi.updateProduceStatus({
|
||||||
signId: row.signId,
|
// signId: row.signId,
|
||||||
id: row.id,
|
// id: row.id,
|
||||||
isProduced: row.isProduced
|
// isProduced: row.isProduced
|
||||||
})
|
// })
|
||||||
message.success('修改成功')
|
// message.success('修改成功')
|
||||||
// 刷新列表
|
// // 刷新列表
|
||||||
getTableList()
|
// // getTableList()
|
||||||
} catch {
|
// } catch {
|
||||||
// 取消后,进行恢复按钮
|
// // 取消后,进行恢复按钮
|
||||||
row.isProduced = !row.isProduced
|
// row.isProduced = !row.isProduced
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
const expendRows = ref([])
|
// const expendRows = ref([])
|
||||||
async function onDragEnd(ev) {
|
// async function onDragEnd(ev) {
|
||||||
try {
|
// try {
|
||||||
expendRows.value = [ev.data.signId]
|
// expendRows.value = [ev.data.signId]
|
||||||
const list = tableObject.value.tableList.find((it) => it.signId == ev.data.signId).signProducts
|
// const list = tableObject.value.tableList.find((it) => it.signId == ev.data.signId).signProducts
|
||||||
await SignApi.updateProduceSort(list.map((it) => it.id))
|
// await SignApi.updateProduceSort(list.map((it) => it.id))
|
||||||
message.success('修改成功')
|
// message.success('修改成功')
|
||||||
// 刷新列表
|
// // 刷新列表
|
||||||
getTableList()
|
// getTableList()
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.log(error)
|
// console.log(error)
|
||||||
getTableList()
|
// getTableList()
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped></style>
|
<style lang="scss" scoped></style>
|
||||||
|
|||||||
@@ -246,6 +246,16 @@
|
|||||||
<el-form-item label="结算金额">
|
<el-form-item label="结算金额">
|
||||||
{{ settleAmount }}
|
{{ settleAmount }}
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="结算日期">
|
||||||
|
<el-date-picker
|
||||||
|
v-model="form.settlementDate"
|
||||||
|
type="date"
|
||||||
|
placeholder="选择日期时间"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
:clearable="false"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="结算备注" prop="remark">
|
<el-form-item label="结算备注" prop="remark">
|
||||||
<Editor v-model:modelValue="form.remark" />
|
<Editor v-model:modelValue="form.remark" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -269,7 +279,7 @@ import * as SettleApi from '@/api/clue/settle'
|
|||||||
|
|
||||||
import { getSupplierSimpleList } from '@/api/school/setting/supplier'
|
import { getSupplierSimpleList } from '@/api/school/setting/supplier'
|
||||||
import { removeNullField } from '@/utils/index'
|
import { removeNullField } from '@/utils/index'
|
||||||
import { dateFormatter } from '@/utils/formatTime'
|
import { dateFormatter, formatDate } from '@/utils/formatTime'
|
||||||
|
|
||||||
const message = useMessage() // 消息弹窗
|
const message = useMessage() // 消息弹窗
|
||||||
|
|
||||||
@@ -394,6 +404,7 @@ function batchSettle() {
|
|||||||
showDailog.value = true
|
showDailog.value = true
|
||||||
form.value = {
|
form.value = {
|
||||||
settlementIds: selectList.value.map((it) => it.settlementId),
|
settlementIds: selectList.value.map((it) => it.settlementId),
|
||||||
|
settlementDate: formatDate(new Date(), 'YYYY-MM-DD'),
|
||||||
reamrk: undefined
|
reamrk: undefined
|
||||||
}
|
}
|
||||||
settleAmount.value = selectList.value.reduce((pre, cur) => pre + cur.settlementMoney, 0)
|
settleAmount.value = selectList.value.reduce((pre, cur) => pre + cur.settlementMoney, 0)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<Dialog title="成交登记" v-model="show" width="900px">
|
<Dialog title="成交登记" v-model="show" width="1000px">
|
||||||
<template #btn>
|
<template #btn>
|
||||||
<el-button class="mr-20px" type="primary" size="small" @click="handleSave">保存</el-button>
|
<el-button class="mr-20px" type="primary" size="small" @click="handleSave">保存</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
:defaultShow="false"
|
:defaultShow="false"
|
||||||
/>
|
/>
|
||||||
<el-form :model="form" ref="formRef" :rules="rules" label-width="100px" class="mt-20px">
|
<el-form :model="form" ref="formRef" :rules="rules" label-width="100px" class="mt-20px">
|
||||||
<el-row :gutter="20">
|
<el-row>
|
||||||
<!-- 驾校招生模式 -->
|
<!-- 驾校招生模式 -->
|
||||||
<template v-if="appStore.getAppInfo?.instanceType == 1">
|
<template v-if="appStore.getAppInfo?.instanceType == 1">
|
||||||
<el-col :span="8" :offset="0">
|
<el-col :span="8" :offset="0">
|
||||||
@@ -95,8 +95,8 @@
|
|||||||
<el-col :span="8" :offset="0">
|
<el-col :span="8" :offset="0">
|
||||||
<el-form-item label="是否全款">
|
<el-form-item label="是否全款">
|
||||||
<el-radio-group v-model="form.isPayoff">
|
<el-radio-group v-model="form.isPayoff">
|
||||||
<el-radio :label="true"> 全款 </el-radio>
|
<el-radio :label="true" :value="true"> 全款 </el-radio>
|
||||||
<el-radio :label="false"> 非全款 </el-radio>
|
<el-radio :label="false" :value="false"> 非全款 </el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@@ -113,8 +113,8 @@
|
|||||||
<el-col :span="8" :offset="0">
|
<el-col :span="8" :offset="0">
|
||||||
<el-form-item label="公司收款" prop="isCompanyReceipts">
|
<el-form-item label="公司收款" prop="isCompanyReceipts">
|
||||||
<el-radio-group v-model="form.isCompanyReceipts">
|
<el-radio-group v-model="form.isCompanyReceipts">
|
||||||
<el-radio :label="true">是</el-radio>
|
<el-radio :label="true" :value="true">是</el-radio>
|
||||||
<el-radio :label="false">否</el-radio>
|
<el-radio :label="false" :value="false">否</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
link
|
link
|
||||||
:disabled="scope.row.state == '成交'"
|
:disabled="appStore.getAppInfo?.instanceType == 1 && scope.row.state == '成交'"
|
||||||
@click="handleSuccess(scope.row)"
|
@click="handleSuccess(scope.row)"
|
||||||
v-hasPermi="['clue:pool:enroll']"
|
v-hasPermi="['clue:pool:enroll']"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -33,9 +33,9 @@
|
|||||||
<el-select v-model="form.supplier" placeholder="选择供应商" filterable>
|
<el-select v-model="form.supplier" placeholder="选择供应商" filterable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in opts.supplier"
|
v-for="item in opts.supplier"
|
||||||
:key="item.value"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.supplierName"
|
||||||
:value="item.value"
|
:value="item.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<!-- <el-affix postion="top" :offset="95" target="#app" v-if="!isDetail"> -->
|
<!-- <el-affix postion="top" :offset="95" v-if="!isDetail"> -->
|
||||||
<div class="flex justify-between mb-4 bg-white" v-if="!isDetail">
|
<div class="flex justify-between mb-4 bg-white" v-if="!isDetail">
|
||||||
<b class="text-20px">{{ form.meetingId ? '修改会议' : '新增会议' }}</b>
|
<b class="text-20px">{{ form.meetingId ? '修改会议' : '新增会议' }}</b>
|
||||||
<el-button type="success" @click="submit()">保存</el-button>
|
<div>
|
||||||
|
<el-button @click="submit(true)">保存至草稿</el-button>
|
||||||
|
<el-button type="success" @click="submit(false)">保存</el-button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- </el-affix> -->
|
<!-- </el-affix> -->
|
||||||
<el-form
|
<el-form
|
||||||
@@ -76,7 +79,6 @@
|
|||||||
<el-select
|
<el-select
|
||||||
v-model="form.expectUsers"
|
v-model="form.expectUsers"
|
||||||
placeholder="选择参会人员"
|
placeholder="选择参会人员"
|
||||||
clearable
|
|
||||||
filterable
|
filterable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
multiple
|
multiple
|
||||||
@@ -87,7 +89,7 @@
|
|||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
:value="item.id"
|
:value="item.id"
|
||||||
:disabled="item.status == 1"
|
:disabled="item.status == 1 || item.id == userStore.getUser.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -106,7 +108,7 @@
|
|||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24" :offset="0" v-if="!isAllActived">
|
<el-col :span="24" :offset="0" v-if="form.meetingId && !isAllActived">
|
||||||
<el-form-item label="缺席原因" prop="absentReason">
|
<el-form-item label="缺席原因" prop="absentReason">
|
||||||
<el-input v-model="form.absentReason" placeholder="请输入缺席原因" />
|
<el-input v-model="form.absentReason" placeholder="请输入缺席原因" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -114,26 +116,106 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :xl="16" :lg="16" :md="24" :sm="24" :xs="24">
|
<el-col :xl="16" :lg="16" :md="24" :sm="24" :xs="24">
|
||||||
<el-form-item label="会议内容" prop="meetingContent">
|
<el-tabs v-model="currentUserId" tab-position="top" @tab-click="userTabChange">
|
||||||
<div v-if="!!isDetail" v-dompurify-html="form.meetingContent" class="w-full"></div>
|
<el-tab-pane
|
||||||
<Editor v-else v-model="form.meetingContent" height="500px" style="width: 100%" />
|
v-for="item in form.meetingContentList"
|
||||||
</el-form-item>
|
:key="item.userId"
|
||||||
|
:label="item.userName"
|
||||||
|
:name="item.userId + ''"
|
||||||
|
/>
|
||||||
|
</el-tabs>
|
||||||
|
<el-tabs v-model="currentContentId" tab-position="left" addable @edit="handleTabsEdit">
|
||||||
|
<el-tab-pane
|
||||||
|
v-for="(item, index) in form.meetingContentList.find(
|
||||||
|
(it) => it.userId == currentUserId
|
||||||
|
)?.userMeetingContentList"
|
||||||
|
:key="index"
|
||||||
|
:label="'内容' + (index + 1)"
|
||||||
|
:name="index"
|
||||||
|
:closable="index > 0"
|
||||||
|
>
|
||||||
|
<div v-if="!!isDetail" v-dompurify-html="item.content" class="w-full"></div>
|
||||||
|
<Editor v-else v-model="item.content" height="500px" style="width: 100%" />
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" v-if="!!form.meetingId">
|
<el-col :xl="8" :lg="8" :md="24" :sm="24" :xs="24" v-if="!!form.meetingId">
|
||||||
<el-form-item label="会议纪要" prop="meetingSummary" label-width="80px">
|
<div v-if="!!isDetail" v-dompurify-html="form.meetingSummary" class="w-full"></div>
|
||||||
<!-- <div v-if="!!isDetail" v-dompurify-html="form.meetingSummary" class="w-full"></div>
|
<div v-else>
|
||||||
<Editor v-else v-model="form.meetingSummary" height="500px" /> -->
|
<el-tabs v-model="summaryIdx" addable @edit="meetingSummaryEdit">
|
||||||
<div v-if="!!isDetail" class="w-full">{{ form.meetingSummary }}</div>
|
<el-tab-pane
|
||||||
<el-input
|
v-for="(item, index) in form.meetingSummaryList"
|
||||||
v-else
|
:key="index"
|
||||||
v-model="form.meetingSummary"
|
:label="`会议纪要${index || ''}`"
|
||||||
type="textarea"
|
:name="index"
|
||||||
placeholder="请输入会议纪要"
|
:closable="index > 0"
|
||||||
:maxlength="-1"
|
>
|
||||||
:show-word-limit="false"
|
<Editor
|
||||||
:autosize="{ minRows: 20 }"
|
v-model="item.summary"
|
||||||
/>
|
:toolbarConfig="toolbarConfig"
|
||||||
</el-form-item>
|
height="350px"
|
||||||
|
placeholder="请输入会议纪要"
|
||||||
|
style="width: 100%"
|
||||||
|
/>
|
||||||
|
<div class="mt-10px">
|
||||||
|
<el-form-item label="是否创建待办" label-width="auto">
|
||||||
|
<el-radio-group v-model="item.isCreateAgentWork">
|
||||||
|
<el-radio :label="true" :value="true"> 创建待办 </el-radio>
|
||||||
|
<el-radio :label="false" :value="false"> 不创建待办 </el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center" v-if="item.isCreateAgentWork">
|
||||||
|
<el-select
|
||||||
|
class="flex-1"
|
||||||
|
v-model="item.agentUserList"
|
||||||
|
placeholder="选择执行人"
|
||||||
|
clearable
|
||||||
|
filterable
|
||||||
|
multiple
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="it in userOptions"
|
||||||
|
:key="it.id"
|
||||||
|
:label="it.name"
|
||||||
|
:value="it.id"
|
||||||
|
:disabled="it.status == 1"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
<el-date-picker
|
||||||
|
class="flex-1 ml-10px"
|
||||||
|
v-model="item.endDate"
|
||||||
|
type="date"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
placeholder="选择截止时间"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</el-tab-pane>
|
||||||
|
</el-tabs>
|
||||||
|
<el-divider />
|
||||||
|
<div class="text-black text-12px">
|
||||||
|
注:如果选择创建待办,请选择执行人及截止日期,默认每天9:00循环提醒,可于待办中修改
|
||||||
|
</div>
|
||||||
|
<div class="mt-10px">
|
||||||
|
<el-form-item label="会议纪要发送至群聊:" label-width="auto">
|
||||||
|
<el-select
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
v-model="form.wxId"
|
||||||
|
placeholder="请输入群聊名称"
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in groupOptions"
|
||||||
|
:key="item.wxGroupId"
|
||||||
|
:label="item.wxGroupName"
|
||||||
|
:value="item.wxGroupId"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
@@ -143,14 +225,17 @@
|
|||||||
<script setup name="MeetingInfo">
|
<script setup name="MeetingInfo">
|
||||||
import { listToTree } from '@/utils/tree'
|
import { listToTree } from '@/utils/tree'
|
||||||
import { getAllNodeTree } from '@/api/okr/okr'
|
import { getAllNodeTree } from '@/api/okr/okr'
|
||||||
|
import { getWaitPage } from '@/api/okr/wait'
|
||||||
import * as MeetingApi from '@/api/okr/meeting'
|
import * as MeetingApi from '@/api/okr/meeting'
|
||||||
import { formatDate } from '@/utils/formatTime'
|
import { formatDate } from '@/utils/formatTime'
|
||||||
import { getEmployeeSimpleList } from '@/api/pers/employee'
|
import { getEmployeeSimpleList } from '@/api/pers/employee'
|
||||||
import { useTagsViewStore } from '@/store/modules/tagsView'
|
import { useTagsViewStore } from '@/store/modules/tagsView'
|
||||||
|
import { useUserStore } from '@/store/modules/user'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
const tagsViewStore = useTagsViewStore()
|
const tagsViewStore = useTagsViewStore()
|
||||||
|
const userStore = useUserStore()
|
||||||
|
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
value: 'nodeId',
|
value: 'nodeId',
|
||||||
@@ -159,14 +244,34 @@ const defaultProps = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const isDetail = route.query.isDetail
|
const isDetail = route.query.isDetail
|
||||||
|
const currentUserId = ref(undefined)
|
||||||
|
const currentContentId = ref(0) // 默认选中第一个标签页
|
||||||
|
const summaryIdx = ref(0) // 会议纪要的索引
|
||||||
|
|
||||||
|
const toolbarConfig = {
|
||||||
|
toolbarKeys: []
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
getWxGroupOptions()
|
||||||
await getOptions()
|
await getOptions()
|
||||||
if (route.params.id && route.params.id != 0) {
|
if (route.params.id && route.params.id != 0) {
|
||||||
// 这里可以调用API获取会议详情数据
|
// 这里可以调用API获取会议详情数据
|
||||||
getMeetingInfo(route.params.id)
|
getMeetingInfo(route.params.id)
|
||||||
} else {
|
} else {
|
||||||
console.error('会议不存在')
|
form.value.meetingContentList = [
|
||||||
|
{
|
||||||
|
userId: userStore.getUser.id + '',
|
||||||
|
userName: userStore.getUser.nickname,
|
||||||
|
userMeetingContentList: [
|
||||||
|
{
|
||||||
|
content: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
currentContentId.value = 0
|
||||||
|
searchUserWait([userStore.getUser.id])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -180,23 +285,13 @@ function getOptions() {
|
|||||||
children: 'children'
|
children: 'children'
|
||||||
})
|
})
|
||||||
userOptions.value = employeeResp.map((it) => ({ ...it, id: it.id + '' }))
|
userOptions.value = employeeResp.map((it) => ({ ...it, id: it.id + '' }))
|
||||||
// handleUserChange()
|
form.value.expectUsers = [userStore.getUser.id + ''] // 默认添加当前用户为预约参会人员
|
||||||
|
// form.value.actualUsers = [userStore.getUser.id + '']
|
||||||
|
currentUserId.value = userStore.getUser.id + '' // 默认选中当前用户
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.error('获取数据失败:', error)
|
console.error('获取数据失败:', error)
|
||||||
})
|
})
|
||||||
// // 获取OKR节点数据
|
|
||||||
// getAllNodeTree().then((resp) => {
|
|
||||||
// peroidList.value = listToTree(resp?.tree || [], {
|
|
||||||
// id: 'nodeId',
|
|
||||||
// pid: 'parentId',
|
|
||||||
// children: 'children'
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
// // 获取人员数据
|
|
||||||
// getEmployeeSimpleList().then((data) => {
|
|
||||||
// userOptions.value = data.map((it) => ({ ...it, id: it.id + '' }))
|
|
||||||
// })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const form = ref({
|
const form = ref({
|
||||||
@@ -211,7 +306,9 @@ const form = ref({
|
|||||||
status: '1',
|
status: '1',
|
||||||
meetingContent: '',
|
meetingContent: '',
|
||||||
meetingSummary: '',
|
meetingSummary: '',
|
||||||
absentReason: ''
|
absentReason: '',
|
||||||
|
meetingContentList: [],
|
||||||
|
meetingSummaryList: []
|
||||||
})
|
})
|
||||||
const rules = {
|
const rules = {
|
||||||
meetingSubject: [{ required: true, message: '请输入会议主题', trigger: 'blur' }],
|
meetingSubject: [{ required: true, message: '请输入会议主题', trigger: 'blur' }],
|
||||||
@@ -239,15 +336,37 @@ const getMeetingInfo = async (meetingId) => {
|
|||||||
const resp = await MeetingApi.getMeetingDetail({ meetingId })
|
const resp = await MeetingApi.getMeetingDetail({ meetingId })
|
||||||
loading.value = false
|
loading.value = false
|
||||||
if (resp) {
|
if (resp) {
|
||||||
|
let summaryList = []
|
||||||
|
if (resp.meetingSummaryList && resp.meetingSummaryList.length > 0) {
|
||||||
|
summaryList = resp.meetingSummaryList.map((item) => ({
|
||||||
|
...item,
|
||||||
|
isCreateAgentWork: !!item.isCreateAgentWork,
|
||||||
|
agentUserList: item.agentUserList ? item.agentUserList.map((it) => it + '') : []
|
||||||
|
}))
|
||||||
|
} else {
|
||||||
|
summaryList = [
|
||||||
|
{
|
||||||
|
summary: resp.meetingSummary || '',
|
||||||
|
agentUserList: [],
|
||||||
|
endDate: '',
|
||||||
|
isCreateAgentWork: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
form.value = {
|
form.value = {
|
||||||
...form.value,
|
...form.value,
|
||||||
...resp,
|
...resp,
|
||||||
startTime: formatDate(resp.startTime, 'YYYY-MM-DD HH:mm'),
|
startTime: formatDate(resp.startTime, 'YYYY-MM-DD HH:mm'),
|
||||||
expectEndTime: formatDate(resp.expectEndTime, 'YYYY-MM-DD HH:mm'),
|
expectEndTime: formatDate(resp.expectEndTime, 'YYYY-MM-DD HH:mm'),
|
||||||
expectUsers: resp.expectUsers || [],
|
expectUsers: resp.expectUsers || [],
|
||||||
actualUsers: resp.actualUsers || []
|
actualUsers: resp.actualUsers || [],
|
||||||
|
meetingSummaryList: summaryList
|
||||||
}
|
}
|
||||||
handleUserChange()
|
currentContentId.value = 0
|
||||||
|
expectUserOptions.value = userOptions.value.filter((user) =>
|
||||||
|
form.value.expectUsers.some((it) => it == user.id)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
loading.value = false
|
loading.value = false
|
||||||
@@ -255,7 +374,62 @@ const getMeetingInfo = async (meetingId) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleUserChange() {
|
const groupOptions = ref([])
|
||||||
|
|
||||||
|
function getWxGroupOptions() {
|
||||||
|
MeetingApi.refreshWxGroupList().then(() => {
|
||||||
|
MeetingApi.getWxGroupList()
|
||||||
|
.then((resp) => {
|
||||||
|
groupOptions.value = resp || []
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
console.error('获取微信群列表失败:', error)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function userTabChange() {
|
||||||
|
currentContentId.value = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleTabsEdit(targetName, action) {
|
||||||
|
if (action === 'add') {
|
||||||
|
form.value.meetingContentList.forEach((item) => {
|
||||||
|
if (item.userId == currentUserId.value) {
|
||||||
|
item.userMeetingContentList.push({
|
||||||
|
content: ''
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (action === 'remove') {
|
||||||
|
form.value.meetingContentList.forEach((item) => {
|
||||||
|
if (item.userId == currentUserId.value) {
|
||||||
|
item.userMeetingContentList.splice(targetName, 1)
|
||||||
|
// 如果删除的是当前选中的标签页,则切换到下一个标签页
|
||||||
|
if (currentContentId.value == targetName) {
|
||||||
|
currentContentId.value = targetName - 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function meetingSummaryEdit(targetName, action) {
|
||||||
|
if (action === 'add') {
|
||||||
|
form.value.meetingSummaryList.push({
|
||||||
|
summary: '',
|
||||||
|
agentUserList: [],
|
||||||
|
endDate: '',
|
||||||
|
isCreateAgentWork: true
|
||||||
|
})
|
||||||
|
} else if (action === 'remove') {
|
||||||
|
form.value.meetingSummaryList.splice(targetName, 1)
|
||||||
|
summaryIdx.value = targetName - 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const checkedUsers = ref([])
|
||||||
|
function handleUserChange(val) {
|
||||||
// 当预约参会人员变化时,更新实际参会人员选项
|
// 当预约参会人员变化时,更新实际参会人员选项
|
||||||
expectUserOptions.value = userOptions.value.filter((user) =>
|
expectUserOptions.value = userOptions.value.filter((user) =>
|
||||||
form.value.expectUsers.some((it) => it == user.id)
|
form.value.expectUsers.some((it) => it == user.id)
|
||||||
@@ -263,30 +437,101 @@ function handleUserChange() {
|
|||||||
if (!isDetail) {
|
if (!isDetail) {
|
||||||
form.value.actualUsers = [...form.value.expectUsers]
|
form.value.actualUsers = [...form.value.expectUsers]
|
||||||
}
|
}
|
||||||
|
// 先过滤掉不存在的参会人员
|
||||||
|
form.value.meetingContentList = form.value.meetingContentList.filter((item) => {
|
||||||
|
return val.some((it) => it == item.userId)
|
||||||
|
})
|
||||||
|
// 再补充新增的
|
||||||
|
val.map((item) => {
|
||||||
|
if (!form.value.meetingContentList.some((it) => it.userId == item)) {
|
||||||
|
form.value.meetingContentList.push({
|
||||||
|
userId: item,
|
||||||
|
userName: userOptions.value.find((it) => it.id == item).name,
|
||||||
|
userMeetingContentList: [
|
||||||
|
{
|
||||||
|
content: ''
|
||||||
|
}
|
||||||
|
]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (!form.value.meetingId) {
|
||||||
|
searchUserWait(val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchUserWait(val) {
|
||||||
|
val.map((item) => {
|
||||||
|
if (!checkedUsers.value.includes(item)) {
|
||||||
|
checkedUsers.value.push(item)
|
||||||
|
// 新增会议时,根据参会人员拉取代办事项
|
||||||
|
getWaitPage({
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: -1,
|
||||||
|
workUserId: item,
|
||||||
|
creator: userStore.getUser.id,
|
||||||
|
completeStatus: 1
|
||||||
|
}).then((resp) => {
|
||||||
|
joinContent(resp.list)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function joinContent(arr) {
|
||||||
|
arr.map((wait) => {
|
||||||
|
let text = '<p>未完成事项:' + wait.title + '</p>'
|
||||||
|
text += wait.content
|
||||||
|
text += `<p>执行人:${wait.userNameStr}</p>`
|
||||||
|
text += `<p>截止日期:${formatDate(wait.endDate, 'YYYY-MM-DD')}</p>`
|
||||||
|
text += '<p><br></p>'
|
||||||
|
form.value.meetingContentList[0].userMeetingContentList[0].content =
|
||||||
|
text + form.value.meetingContentList[0].userMeetingContentList[0].content
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
async function submit() {
|
async function submit(isDraft = false) {
|
||||||
// 校验表单
|
// 校验表单
|
||||||
if (!formRef.value) return
|
if (!formRef.value) return
|
||||||
const valid = await formRef.value.validate()
|
const valid = await formRef.value.validate()
|
||||||
if (!valid) return
|
if (!valid) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
form.value.isDraft = isDraft
|
||||||
// 提交表单数据
|
// 提交表单数据
|
||||||
if (form.value.meetingId) {
|
if (form.value.meetingId) {
|
||||||
if (form.value.status == 2 && !form.value.meetingSummary) {
|
if (
|
||||||
|
form.value.status == 2 &&
|
||||||
|
form.value.meetingSummaryList.some((it) => it.summary.trim() == '')
|
||||||
|
) {
|
||||||
message.error('会议结束时,会议纪要不能为空')
|
message.error('会议结束时,会议纪要不能为空')
|
||||||
return
|
return
|
||||||
|
} else {
|
||||||
|
let text = ''
|
||||||
|
form.value.meetingSummaryList.map((item, index) => {
|
||||||
|
if (form.value.meetingSummaryList.length > 1) {
|
||||||
|
text += '<p>会议纪要' + (index + 1) + ':</p>'
|
||||||
|
}
|
||||||
|
text += item.summary
|
||||||
|
if (item.isCreateAgentWork) {
|
||||||
|
text += `<p>执行人:`
|
||||||
|
item.agentUserList.map((it) => {
|
||||||
|
if (it) {
|
||||||
|
text += `${userOptions.value.find((user) => user.id == it).name} `
|
||||||
|
}
|
||||||
|
})
|
||||||
|
text += '</p>'
|
||||||
|
text += `<p>截止日期:${item.endDate}</p>`
|
||||||
|
}
|
||||||
|
text += '<p><br></p>'
|
||||||
|
})
|
||||||
|
form.value.meetingSummary = text
|
||||||
}
|
}
|
||||||
// 更新会议
|
// 更新会议
|
||||||
await MeetingApi.updateMeeting(form.value)
|
await MeetingApi.updateMeeting(form.value)
|
||||||
message.success('会议更新成功')
|
message.success('会议更新成功')
|
||||||
} else {
|
} else {
|
||||||
if (form.value.status == 1 && !form.value.meetingContent) {
|
|
||||||
message.error('预约会议时,会议内容不能为空')
|
|
||||||
return
|
|
||||||
}
|
|
||||||
form.value.actualUsers = []
|
form.value.actualUsers = []
|
||||||
// 新增会议
|
// 新增会议
|
||||||
await MeetingApi.createMeeting(form.value)
|
await MeetingApi.createMeeting(form.value)
|
||||||
|
|||||||
@@ -11,6 +11,15 @@
|
|||||||
@keyup.enter="handleSearch"
|
@keyup.enter="handleSearch"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-input
|
||||||
|
v-model="searchForm.creator"
|
||||||
|
placeholder="发起人"
|
||||||
|
style="width: 120px"
|
||||||
|
clearable
|
||||||
|
@keyup.enter="handleSearch"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="searchForm.status"
|
v-model="searchForm.status"
|
||||||
@@ -58,6 +67,7 @@
|
|||||||
<el-table-column prop="meetingSubject" label="会议主题" />
|
<el-table-column prop="meetingSubject" label="会议主题" />
|
||||||
<el-table-column prop="startTime" label="会议时间" width="170px" />
|
<el-table-column prop="startTime" label="会议时间" width="170px" />
|
||||||
<el-table-column prop="meetingRoom" label="会议地点" width="140px" />
|
<el-table-column prop="meetingRoom" label="会议地点" width="140px" />
|
||||||
|
<el-table-column prop="creatorName" label="发起人" width="100px" />
|
||||||
<el-table-column prop="expectEndTime" label="预计结束时间" width="170px" />
|
<el-table-column prop="expectEndTime" label="预计结束时间" width="170px" />
|
||||||
<el-table-column prop="expectUserName" label="预约参会人员" />
|
<el-table-column prop="expectUserName" label="预约参会人员" />
|
||||||
<el-table-column prop="actualUserName" label="实际参会人员" />
|
<el-table-column prop="actualUserName" label="实际参会人员" />
|
||||||
@@ -117,6 +127,7 @@ const message = useMessage()
|
|||||||
|
|
||||||
const searchForm = ref({
|
const searchForm = ref({
|
||||||
meetingSubject: undefined,
|
meetingSubject: undefined,
|
||||||
|
creator: undefined,
|
||||||
status: '1',
|
status: '1',
|
||||||
dateRange: [],
|
dateRange: [],
|
||||||
nodeId: undefined,
|
nodeId: undefined,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<el-form
|
<el-form
|
||||||
:model="form"
|
:model="form"
|
||||||
ref="formRef"
|
ref="formRef"
|
||||||
:disabled="formType == 'do'"
|
:disabled="['do', 'detail'].includes(formType)"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
label-width="80px"
|
label-width="80px"
|
||||||
class="flex-1"
|
class="flex-1"
|
||||||
@@ -239,7 +239,9 @@ const followList = ref([])
|
|||||||
|
|
||||||
function open(type, id) {
|
function open(type, id) {
|
||||||
show.value = true
|
show.value = true
|
||||||
title.value = { create: '新增待办', update: '修改待办', do: '更新待办进度' }[type]
|
title.value = { create: '新增待办', update: '修改待办', do: '更新待办进度', detail: '待办详情' }[
|
||||||
|
type
|
||||||
|
]
|
||||||
formType.value = type
|
formType.value = type
|
||||||
resetForm()
|
resetForm()
|
||||||
if (id) {
|
if (id) {
|
||||||
|
|||||||
@@ -139,6 +139,15 @@
|
|||||||
>
|
>
|
||||||
修改
|
修改
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-if="row.completeStatus == 2"
|
||||||
|
style="padding: 0; margin-right: 10px; margin-left: 0"
|
||||||
|
type="primary"
|
||||||
|
text
|
||||||
|
@click="handleDetail(row)"
|
||||||
|
>
|
||||||
|
详情
|
||||||
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="row.creator == currentUserId && row.completeStatus == 1"
|
v-if="row.creator == currentUserId && row.completeStatus == 1"
|
||||||
style="padding: 0; margin-right: 10px; margin-left: 0"
|
style="padding: 0; margin-right: 10px; margin-left: 0"
|
||||||
@@ -271,6 +280,10 @@ function handleEdit(row) {
|
|||||||
waitDialogRef.value.open('update', row.workId)
|
waitDialogRef.value.open('update', row.workId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function handleDetail(row) {
|
||||||
|
waitDialogRef.value.open('detail', row.workId)
|
||||||
|
}
|
||||||
|
|
||||||
function handleDelete(row) {
|
function handleDelete(row) {
|
||||||
message.confirm('确定删除待办事项吗?').then(() => {
|
message.confirm('确定删除待办事项吗?').then(() => {
|
||||||
deleteWait(row.workId).then(() => {
|
deleteWait(row.workId).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user