签报接口

This commit is contained in:
‘huanghaiixia’
2025-12-24 17:38:00 +08:00
parent 03c943e4d6
commit 0387c2ca86
21 changed files with 3029 additions and 182 deletions

View File

@ -117,7 +117,7 @@
}
const handleSuccess = (val) => {
val.forEach(v => {
delete v.id
v.id = ''
v.diName = v.dI
v.typeName = v.typeCode
v.className = v.classCode
@ -129,6 +129,7 @@
let arr = []
val.forEach(v => {
dataList.value.forEach(i => {
v.id = ''
if (v.cuCode == i.cuCode){
message.warning(v.cuCode + '已重复')
} else {
@ -266,7 +267,7 @@
let list = JSON.parse(JSON.stringify(dataList.value));
list.forEach(v => {
!v.gsId && (v.gsId = values.gsId)
!v.id && (v.id = values.id)
// !v.id && (v.id = values.id)
})
let obj = {
...values,

View File

@ -12,9 +12,6 @@
<a style="margin-right: 10px" @click="btnCheck('edit', record, index)">编辑</a>
<a style="margin-right: 10px" @click="btnCheck('delete', record, index)">删除</a>
</template>
<template v-if="column.dataIndex === 'eDeptCode'">
{{ !record.id ? record.eDeptName : '' }}
</template>
</template>
</a-table>
<evaluateModal @register="registerEvaluate" @success="handleSuccessEvaluate"></evaluateModal>
@ -64,7 +61,7 @@
{ title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 100},
{ title: t('评价事项'), dataIndex: 'itemName', sorter: true, width:200},
{ title: t('评价标准'), dataIndex: 'itemDesc', sorter: true, },
{ title: t('评价部门'), dataIndex: 'eDeptCode', sorter: true, width: 200},
{ title: t('评价部门'), dataIndex: 'eDeptName', sorter: true, width: 200},
{ title: t('操作'), dataIndex: 'operation', width: 120},
]);
const curIdx = ref(null)
@ -82,6 +79,7 @@
}
}
const handleSuccessEvaluate = (val) => {
val.id = ''
if (curIdx.value != null) {
dataList.value[curIdx.value] = {...val}
return
@ -206,7 +204,7 @@
list.forEach(v => {
delete v.eDeptName
!v.gsId && (v.gsId = values.gsId)
!v.id && (v.id = values.id)
// !v.id && (v.id = values.id)
})
let obj = {
...values,

View File

@ -6,7 +6,7 @@
<a-row>
<a-col :span="8">
<a-form-item label="客户名称" name="cpName">
<a-input-search v-model:value="formState.cpName" placeholder="请选择客户" readonly @search="onSearch"/>
<a-input-search v-model:value="formState.cpName" placeholder="请选择客户" :disabled="isDisable" readonly @search="onSearch"/>
</a-form-item>
</a-col>
<a-col :span="8">
@ -29,7 +29,7 @@
</a-form-item>
</a-col>
<a-col :span="8">
<a-form-item label="分合计" name="score">
<a-form-item label="分合计" name="score">
<a-input v-model:value="formState.score" disabled/>
</a-form-item>
</a-col>
@ -48,10 +48,10 @@
<a-table :columns="columns" :data-source="dataList" >
<template #bodyCell="{ column, record, index }">
<template v-if="column.dataIndex === 'score'">
<a-input-number v-model:value="record.score" @change="numChagne('score', record, index)"/>
<a-input-number v-model:value="record.score" :disabled="isDisable" @change="numChagne('score', record, index)"/>
</template>
<template v-if="column.dataIndex === 'scoreDesc'">
<a-input v-model:value="record.scoreDesc" @change="numChagne('scoreDesc', record, index)"/>
<a-input v-model:value="record.scoreDesc" :disabled="isDisable" @change="numChagne('scoreDesc', record, index)"/>
</template>
</template>
</a-table>
@ -85,6 +85,7 @@
import customerListModal from '/@/components/common/customerListModal.vue';
import { getUserInfo } from '/@/api/system/login';
import { Modal } from 'ant-design-vue';
import { getCompDept } from '/@/api/approve/Appro';
const tableName = 'ScoreCustomer';
const columnName = 'ScoreCustomer'
@ -114,6 +115,7 @@
const curIdx = ref(null)
const { notification } = useMessage();
const { t } = useI18n();
const compDep = ref({})
const formState = reactive({
approCode: 'WTJ',
dateGrade: dayjs(new Date()),
@ -133,12 +135,12 @@
{ title: t('序号'), dataIndex: 'index', key: 'index', sorter: true, customRender: (column) => `${column.index + 1}` ,width: 80},
{ title: t('评价事项'), dataIndex: 'itemName', sorter: true},
{ title: t('评价标准'), dataIndex: 'itemDesc', sorter: true},
{ title: t('评价部门'), dataIndex: 'eDeptCode', sorter: true},
{ title: t('评价部门'), dataIndex: 'eDeptName', sorter: true},
{ title: t('评分'), dataIndex: 'score', sorter: true},
{ title: t('分数说明'), dataIndex: 'scoreDesc', sorter: true},
{ title: t('评价人'), dataIndex: 'aEmpCode', sorter: true},
{ title: t('评价人'), dataIndex: 'aEmpName', sorter: true},
{ title: t('评价时间'), dataIndex: 'aTime', sorter: true},
{ title: t('实际评价部门'), dataIndex: 'aDeptCode', sorter: true},
{ title: t('实际评价部门'), dataIndex: 'aDeptName', sorter: true},
]);
const dataList= ref([]);
const dataFile = ref([]);
@ -194,6 +196,7 @@
optionSelect.approCodeList = await getDictionary('LNG_APPRO')
let res = await getUserInfo()
Object.assign(userInfo, {...res})
compDep.value = await getCompDept(userInfo.id)
}
const onSearch = (val)=> {
openModal(true,{isUpdate: false})
@ -244,7 +247,10 @@
formState.score = null
dataList.value.forEach(v => {
v.aTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
v.aEmpCode = userInfo.name
v.aEmpCode = userInfo.id
v.aEmpName = userInfo.name
v.aDeptCode = compDep.value?.dept?.id
v.aDeptName = compDep.value?.dept?.name
v.gsiId = v.id
delete v.id