代码修改

This commit is contained in:
qiuyuan 2025-11-06 10:17:26 +08:00
parent a6aab0cafd
commit b86b647682
2 changed files with 25 additions and 5 deletions

View File

@ -21,3 +21,5 @@ export const createOrderItem=(params)=> request.basic.post('/api/v1/orders', par
//转入转出 //转入转出
export const inOutLogs=(params)=>request.basic.post('/api/v1/in-out-logs',params) export const inOutLogs=(params)=>request.basic.post('/api/v1/in-out-logs',params)
export const changeItem = (id, params) => request.basic.put(`/api/v1/customers/change/${id}`, params)

View File

@ -18,8 +18,8 @@
<!-- 身份证号 --> <!-- 身份证号 -->
<a-col :span="8"> <a-col :span="8">
<a-form-item label="身份证号" name="idNumber"> <a-form-item label="身份证号" name="identityNo">
<a-input v-model:value="searchFormData.idNumber" placeholder="请输入身份证号" /> <a-input v-model:value="searchFormData.identityNo" placeholder="请输入身份证号" />
</a-form-item> </a-form-item>
</a-col> </a-col>
@ -30,6 +30,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<a-col class="align-left" :span="8"> <a-col class="align-left" :span="8">
<a-space> <a-space>
@ -59,11 +60,19 @@
<template v-if="column.key === 'serialNumber'"> <template v-if="column.key === 'serialNumber'">
<span>{{ index + 1 }}</span> <span>{{ index + 1 }}</span>
</template> </template>
<template v-if="column.key === 'healthStatus'">
<span>{{ healthStatusMap[record.healthStatus]}}</span>
</template>
<template v-if="'action' === column.key"> <template v-if="'action' === column.key">
<x-action-button @click="$refs.editDialogRef.handleCreate(record)"> <x-action-button @click="$refs.editDialogRef.handleCreate(record)">
<span>分配</span> <span>分配</span>
</x-action-button> </x-action-button>
</template> </template>
</template> </template>
</a-table> </a-table>
</a-card> </a-card>
@ -88,6 +97,14 @@ defineOptions({
}) })
const dicsStore = useDicsStore() const dicsStore = useDicsStore()
const healthStatusMap = {
'Full_Capability': '能力完好',
'Mild_Disability': '轻度失能',
'Moderate_Disability': '中度失能',
'Severe_Disability': '重度失能',
'Total_Disability': '完全失能',
}
const columns = [ const columns = [
{ {
title: '序号', title: '序号',
@ -119,8 +136,8 @@ const columns = [
}, },
{ {
title: '身份证号', title: '身份证号',
dataIndex: 'idNumber', dataIndex: 'identityNo',
key: 'idNumber', key: 'identityNo',
align: 'center', align: 'center',
width: 180, width: 180,
}, },
@ -283,6 +300,7 @@ async function getPageList() {
.getProjectList({ .getProjectList({
pageSize, pageSize,
current: current, current: current,
status : "Initialize",
...searchFormData.value, ...searchFormData.value,
}) })
.catch(() => { .catch(() => {