add
This commit is contained in:
parent
e1427f488d
commit
5641321dcc
@ -56,7 +56,7 @@ export function apiOaWorkrcommentAdd(params: any) {
|
|||||||
}
|
}
|
||||||
// 汇报工作表列表
|
// 汇报工作表列表
|
||||||
export function apiOaWorkrcommentDelete(params: any) {
|
export function apiOaWorkrcommentDelete(params: any) {
|
||||||
return request.get({
|
return request.post({
|
||||||
url: "/works.rcbg.oa_work_comment/delete",
|
url: "/works.rcbg.oa_work_comment/delete",
|
||||||
params,
|
params,
|
||||||
});
|
});
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
{{ (+row.signed_amount) - (+row.total_refund_amount) }}
|
{{ (+row.signed_amount) - (+row.total_refund_amount) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column :render-header="pager.calcWidth" label="到账比例" prop="refund_rate"
|
||||||
|
show-overflow-tooltip />
|
||||||
<el-table-column :render-header="pager.calcWidth" label="回款日期" prop="refund_date"
|
<el-table-column :render-header="pager.calcWidth" label="回款日期" prop="refund_date"
|
||||||
show-overflow-tooltip />
|
show-overflow-tooltip />
|
||||||
<el-table-column label="操作" width="150" fixed="right">
|
<el-table-column label="操作" width="150" fixed="right">
|
||||||
|
@ -40,16 +40,26 @@
|
|||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column label="合同名称" prop="contract_name" :render-header="pager.calcWidth" />
|
<el-table-column label="合同名称" prop="contract_name" :render-header="pager.calcWidth" />
|
||||||
<el-table-column label="开票编号" prop="invoice_code" :render-header="pager.calcWidth" />
|
<el-table-column label="开票编号" prop="invoice_code" :render-header="pager.calcWidth" />
|
||||||
<el-table-column label="开票申请金额" prop="apply_amount" show-overflow-tooltip width="120" />
|
<el-table-column label="开票申请金额" prop="apply_amount" :render-header="pager.calcWidth"
|
||||||
<el-table-column label="开票单位名称" prop="apply_company" show-overflow-tooltip width="120" />
|
show-overflow-tooltip width="120" />
|
||||||
<el-table-column label="甲方签约单位" prop="part_a" show-overflow-tooltip width="120" />
|
<el-table-column label="开票单位名称" prop="apply_company" :render-header="pager.calcWidth"
|
||||||
<el-table-column label="乙方签约单位" prop="part_b" show-overflow-tooltip width="120" />
|
show-overflow-tooltip width="120" />
|
||||||
<el-table-column label="签订金额(元)" prop="sign_money" width="170" />
|
<el-table-column label="甲方签约单位" prop="part_a" :render-header="pager.calcWidth" show-overflow-tooltip
|
||||||
<el-table-column label="签约时间" prop="sign_time" show-overflow-tooltip width="120" />
|
width="120" />
|
||||||
<el-table-column label="发票类型" prop="invoice_type_text" show-overflow-tooltip />
|
<el-table-column label="乙方签约单位" prop="part_b" :render-header="pager.calcWidth" show-overflow-tooltip
|
||||||
<el-table-column label="到账状态" prop="is_refund" show-overflow-tooltip />
|
width="120" />
|
||||||
<el-table-column label="已到账金额" prop="refund_amount" show-overflow-tooltip />
|
<el-table-column label="签订金额(元)" :render-header="pager.calcWidth" prop="sign_money" width="170" />
|
||||||
<el-table-column label="开票时间" prop="create_time" show-overflow-tooltip />
|
<el-table-column label="签约时间" prop="sign_time" show-overflow-tooltip :render-header="pager.calcWidth"
|
||||||
|
width="120" />
|
||||||
|
<el-table-column label="发票类型" :render-header="pager.calcWidth" prop="invoice_type_text"
|
||||||
|
show-overflow-tooltip />
|
||||||
|
<el-table-column label="到账状态" :render-header="pager.calcWidth" prop="is_refund" show-overflow-tooltip />
|
||||||
|
<el-table-column :render-header="pager.calcWidth" label="到账比例" prop="refund_rate"
|
||||||
|
show-overflow-tooltip />
|
||||||
|
<el-table-column label="已到账金额" :render-header="pager.calcWidth" prop="refund_amount"
|
||||||
|
show-overflow-tooltip />
|
||||||
|
<el-table-column label="开票时间" :render-header="pager.calcWidth" prop="create_time"
|
||||||
|
show-overflow-tooltip />
|
||||||
<el-table-column label="到账时间" prop="refund_date" show-overflow-tooltip />
|
<el-table-column label="到账时间" prop="refund_date" show-overflow-tooltip />
|
||||||
<el-table-column label="操作" width="170" fixed="right">
|
<el-table-column label="操作" width="170" fixed="right">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
<el-table-column label="合同名称" prop="contract_name" :render-header="pager.calcWidth" />
|
<el-table-column label="合同名称" prop="contract_name" :render-header="pager.calcWidth" />
|
||||||
<el-table-column label="开票编号" prop="invoice_code" :render-header="pager.calcWidth" />
|
<el-table-column label="开票编号" prop="invoice_code" :render-header="pager.calcWidth" />
|
||||||
<el-table-column label="本次到账金额" prop="amount" show-overflow-tooltip />
|
<el-table-column label="本次到账金额" prop="amount" show-overflow-tooltip />
|
||||||
|
<el-table-column label="到账比例" prop="refund_rate" show-overflow-tooltip />
|
||||||
<el-table-column label="到账日期" prop="date" show-overflow-tooltip />
|
<el-table-column label="到账日期" prop="date" show-overflow-tooltip />
|
||||||
<el-table-column label="登记人" prop="create_user" show-overflow-tooltip />
|
<el-table-column label="登记人" prop="create_user" show-overflow-tooltip />
|
||||||
<el-table-column label="开票申请金额" prop="apply_amount" show-overflow-tooltip width="120" />
|
<el-table-column label="开票申请金额" prop="apply_amount" show-overflow-tooltip width="120" />
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
<el-button v-perms="['works.rcbg.oa_work/delete']" :disabled="!selectData.length"
|
<el-button v-perms="['works.rcbg.oa_work/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
|
||||||
@click="handleDelete(selectData)">
|
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@ -43,7 +42,6 @@
|
|||||||
<pagination v-model="pager" @change="getLists" />
|
<pagination v-model="pager" @change="getLists" />
|
||||||
</div>
|
</div>
|
||||||
<edit-popup v-if="showEdit" ref="editRef" @success="getLists" @close="showEdit = false" />
|
<edit-popup v-if="showEdit" ref="editRef" @success="getLists" @close="showEdit = false" />
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive } from 'vue';
|
import { ref, reactive } from 'vue';
|
||||||
|
@ -19,7 +19,7 @@ import sendReport from './components/sendReport.vue'
|
|||||||
import reciveReport from './components/reciveReport.vue'
|
import reciveReport from './components/reciveReport.vue'
|
||||||
|
|
||||||
|
|
||||||
const activeName = ref('first')
|
const activeName = ref('second')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="detail-popup">
|
<div class="detail-popup">
|
||||||
<popup ref="popupRef" title="汇报详情" :async="true" width="60vw" @confirm="handleSubmit" @close="handleClose">
|
<popup ref="popupRef" title="汇报详情" :async="true" width="60vw" @confirm="handleSubmit" @close="handleClose">
|
||||||
<el-descriptions :column="1" border>
|
<el-descriptions :column="3" border>
|
||||||
<el-descriptions-item label="汇报人" label-align="left" align="left" label-class-name="my-label">
|
<el-descriptions-item label="汇报人" label-align="left" align="left" label-class-name="my-label">
|
||||||
{{ formData.from_user_name }}
|
{{ formData.from_user_name }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@ -14,6 +14,8 @@
|
|||||||
<el-descriptions-item label="接受人" label-align="left" align="left" label-class-name="my-label">
|
<el-descriptions-item label="接受人" label-align="left" align="left" label-class-name="my-label">
|
||||||
{{ formData.work_info.type_user_names }}
|
{{ formData.work_info.type_user_names }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
</el-descriptions>
|
||||||
|
<el-descriptions :column="1" border>
|
||||||
<el-descriptions-item label="工作内容" label-align="left" align="left" label-class-name="my-label">
|
<el-descriptions-item label="工作内容" label-align="left" align="left" label-class-name="my-label">
|
||||||
{{ formData.work_info.works }}
|
{{ formData.work_info.works }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
@ -27,24 +29,37 @@
|
|||||||
<annexLink :annex="formData.work_info.annex"></annexLink>
|
<annexLink :annex="formData.work_info.annex"></annexLink>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
|
|
||||||
<el-card>
|
<el-card>
|
||||||
<template #header>
|
<template #header>
|
||||||
工作点评
|
工作点评
|
||||||
</template>
|
</template>
|
||||||
<div>评论零</div>
|
<div class="msg-content">
|
||||||
<div>
|
<div v-for="(item, index) in commentList" :key="item.id" class="flex mb-4">
|
||||||
<el-input v-model="msg" type='textarea' placeholder='请输入评论内容'></el-input>
|
<el-avatar :src="item.admin_avatar" class="avatar" shape="circle"></el-avatar>
|
||||||
<el-button class="mt-2 float-right" type="primary" @click="handleSend">
|
<div class="flex justify-between flex-col">
|
||||||
<template #icon>
|
<div>
|
||||||
<el-icon>
|
<strong class="name"> {{ item.admin_name }}</strong>
|
||||||
<Position />
|
<span class="time">
|
||||||
</el-icon>
|
{{ item.create_time || '2024-12-04' }}
|
||||||
</template>
|
</span>
|
||||||
发送</el-button>
|
<span class="del" @click="handleDelete(item.id)"
|
||||||
|
v-if="userStore.id == item.admin_id">删除</span>
|
||||||
|
</div>
|
||||||
|
<div>{{ item.content }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<el-input v-model="msg" type='textarea' placeholder='请输入评论内容'></el-input>
|
||||||
|
<el-button class="mt-2 float-right" type="primary" @click="handleSend">
|
||||||
|
<template #icon>
|
||||||
|
<el-icon>
|
||||||
|
<Position />
|
||||||
|
</el-icon>
|
||||||
|
</template>
|
||||||
|
发送
|
||||||
|
</el-button>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
</popup>
|
</popup>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -53,8 +68,11 @@
|
|||||||
import annexLink from './../../components/annexLink/index.vue'
|
import annexLink from './../../components/annexLink/index.vue'
|
||||||
import Popup from '@/components/popup/index.vue'
|
import Popup from '@/components/popup/index.vue'
|
||||||
import { apiOaWorkrcommentLists, apiOaWorkrcommentAdd, apiOaWorkrcommentDelete } from "@/api/oa_work";
|
import { apiOaWorkrcommentLists, apiOaWorkrcommentAdd, apiOaWorkrcommentDelete } from "@/api/oa_work";
|
||||||
|
import useUserStore from "@/stores/modules/user";
|
||||||
|
|
||||||
const emit = defineEmits(['close'])
|
const emit = defineEmits(['close'])
|
||||||
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
const popupRef = shallowRef<InstanceType<typeof Popup>>()
|
||||||
|
const userStore = useUserStore().userInfo;
|
||||||
|
|
||||||
// 表单数据
|
// 表单数据
|
||||||
const formData = reactive({
|
const formData = reactive({
|
||||||
@ -82,7 +100,7 @@ const getCommentList = async () => {
|
|||||||
let res = await apiOaWorkrcommentLists({
|
let res = await apiOaWorkrcommentLists({
|
||||||
work_id: formData.id
|
work_id: formData.id
|
||||||
})
|
})
|
||||||
commentList.value = res.data
|
commentList.value = res.lists
|
||||||
}
|
}
|
||||||
|
|
||||||
// 发送评论
|
// 发送评论
|
||||||
@ -142,3 +160,34 @@ defineExpose({
|
|||||||
setFormData,
|
setFormData,
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.msg-content {
|
||||||
|
overflow-y: auto;
|
||||||
|
max-height: 300px;
|
||||||
|
|
||||||
|
.avatar {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.time {
|
||||||
|
color: #969696;
|
||||||
|
font-size: 12px;
|
||||||
|
margin: 0 5px
|
||||||
|
}
|
||||||
|
|
||||||
|
.del {
|
||||||
|
cursor: pointer;
|
||||||
|
color: white;
|
||||||
|
font-size: 12px;
|
||||||
|
background-color: red;
|
||||||
|
padding: 2px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
@ -76,15 +76,15 @@ const detailConfig = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "监管部门",
|
label: "监管部门",
|
||||||
value: "supervision_department_text"
|
value: "supervision_department_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "实施部门",
|
label: "实施部门",
|
||||||
value: "implementation_department_text"
|
value: "implementation_department_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "项目部",
|
label: "项目部",
|
||||||
value: "project_department_text"
|
value: "project_department_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "工程状态",
|
label: "工程状态",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user