签报接口
This commit is contained in:
@ -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 supplierListModal from '/@/components/common/supplierListModal.vue';
|
||||
import { getUserInfo } from '/@/api/system/login';
|
||||
import { Modal } from 'ant-design-vue';
|
||||
import { getCompDept } from '/@/api/approve/Appro';
|
||||
|
||||
const tableName = 'ScoreSupplier';
|
||||
const columnName = 'ScoreSupplier'
|
||||
@ -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})
|
||||
@ -245,7 +248,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
|
||||
|
||||
Reference in New Issue
Block a user