This commit is contained in:
zlwu committed 2026-06-03 17:53:48 +08:00
1 parent 09afdb1d65
commit afd517ce10
215 files changed
+32936 -23862

No files matched your search

@@ -171,199 +171,7 @@
</div>
</div>
<!-- Tab 2: 客户信息 -->
<div id="form-section-party" class="form-tab-pane">
<div class="section-card section-card--green">
<div class="section-title">
<div class="section-title-left"><h3>客户信息</h3></div>
</div>
<div class="client-sub-cards">
<!-- 母亲信息 -->
<div class="client-sub-card">
<div class="sub-card-header">
<span class="icon">🤱</span>
<h4>母亲信息</h4>
<span class="search-link">关联客户 ▸</span>
</div>
<el-form-item label="关联客户" style="margin-bottom: 12px">
<el-select
v-model="customerId"
class="w-full"
filterable
remote
clearable
reserve-keyword
:remote-method="remoteSearchCustomers"
:loading="customerLoading"
placeholder="输入姓名/电话/身份证号检索客户"
@change="onCustomerChange"
>
<el-option
v-for="c in customerOptions"
:key="c.id"
:label="formatCustomerLabel(c)"
:value="c.id"
/>
</el-select>
</el-form-item>
<div class="form-grid form-grid--col2">
<el-form-item label="母亲姓名">
<el-input v-model="formData.motherName" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲联系电话">
<el-input v-model="formData.motherPhone" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲身份证号" class="form-col-span-2">
<el-input v-model="formData.motherIdCard" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲出生年月">
<el-date-picker
v-model="formData.motherBirthYm"
type="month"
value-format="YYYYMM"
format="YYYY-MM"
placeholder="选择月份"
clearable
style="width: 100%"
/>
</el-form-item>
<el-form-item label="母亲民族">
<el-select
v-model="formData.motherEthnic"
class="w-full"
filterable
clearable
:loading="ethnicLoading"
placeholder="请选择或检索民族"
>
<el-option
v-for="e in ethnicOptions"
:key="e.ethnicCode"
:label="e.ethnicName"
:value="e.ethnicName"
/>
</el-select>
</el-form-item>
</div>
<el-form-item label="母亲家庭住址" style="margin-top: 12px">
<el-input v-model="formData.motherAddress" placeholder="请输入" />
</el-form-item>
</div>
<!-- 父亲信息 -->
<div class="client-sub-card">
<div class="sub-card-header">
<span class="icon">👨</span>
<h4>父亲信息</h4>
</div>
<div class="form-grid form-grid--col2">
<el-form-item label="父亲姓名">
<el-input v-model="formData.fatherName" placeholder="请输入" />
</el-form-item>
<el-form-item label="父亲电话">
<el-input v-model="formData.fatherPhone" placeholder="请输入" />
</el-form-item>
<el-form-item label="父亲身份证号" class="form-col-span-2">
<el-input v-model="formData.fatherIdCard" placeholder="请输入" />
</el-form-item>
</div>
</div>
<!-- 新生儿信息 -->
<div class="client-sub-card">
<div class="sub-card-header">
<span class="icon">👶</span>
<h4>新生儿信息</h4>
</div>
<div class="form-grid form-grid--col2">
<el-form-item label="新生儿姓名">
<el-input v-model="formData.newbornName" placeholder="请输入" />
</el-form-item>
<el-form-item label="新生儿性别">
<el-radio-group v-model="formData.newbornSex">
<el-radio label="1">男</el-radio>
<el-radio label="0">女</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="预产期">
<el-date-picker
v-model="formData.expectedDeliveryDate"
type="date"
value-format="YYYY-MM-DD"
placeholder="选择预产期"
clearable
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿分娩时间">
<el-date-picker
v-model="formData.newbornDeliveryTime"
type="datetime"
value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择分娩时间"
clearable
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿身份证" class="form-col-span-2">
<el-input v-model="formData.newbornIdCard" placeholder="请输入" />
</el-form-item>
<el-form-item label="分娩方式">
<el-select
v-model="formData.deliveryMode"
placeholder="请选择"
clearable
style="width: 100%"
>
<el-option label="顺产" value="sc" />
<el-option label="剖宫产" value="pgc" />
</el-select>
</el-form-item>
<el-form-item label="胎次">
<el-input
v-model="formData.birthOrder"
type="number"
step="any"
:min="1"
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿体重(克)">
<el-input
v-model="formData.newbornWeightGram"
type="number"
step="any"
:min="0"
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿评分1分钟">
<el-input
v-model="formData.apgar1min"
type="number"
step="any"
:min="0"
:max="10"
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿评分5分钟">
<el-input
v-model="formData.apgar5min"
type="number"
step="any"
:min="0"
:max="10"
style="width: 100%"
/>
</el-form-item>
</div>
</div>
</div>
</div>
</div>
<!-- Tab 3: 采集信息 -->
<!-- Tab 2: 采集信息 -->
<div id="form-section-collection" class="form-tab-pane">
<div class="section-card">
<div class="section-title">
@@ -462,7 +270,7 @@
</div>
</div>
<!-- Tab 4: 样本及运输信息 -->
<!-- Tab 3: 样本及运输信息 -->
<div id="form-section-sample" class="form-tab-pane">
<div class="section-card">
<div class="section-title">
@@ -709,6 +517,201 @@
</div>
</div>
<!-- Tab 4: 客户信息 -->
<div id="form-section-party" class="form-tab-pane">
<div class="section-card section-card--green">
<div class="section-title">
<div class="section-title-left"><h3>客户信息</h3></div>
</div>
<div class="client-sub-cards">
<!-- 母亲信息 -->
<div class="client-sub-card">
<div class="sub-card-header">
<span class="icon">🤱</span>
<h4>母亲信息</h4>
<span class="search-link">关联客户 ▸</span>
</div>
<el-form-item label="关联客户" style="margin-bottom: 12px">
<el-select
v-model="customerId"
class="w-full"
filterable
remote
clearable
reserve-keyword
:remote-method="remoteSearchCustomers"
:loading="customerLoading"
placeholder="输入姓名/电话/身份证号检索客户"
@change="onCustomerChange"
>
<el-option
v-for="c in customerOptions"
:key="c.id"
:label="formatCustomerLabel(c)"
:value="c.id"
/>
</el-select>
</el-form-item>
<div class="form-grid form-grid--col2">
<el-form-item label="母亲姓名">
<el-input v-model="formData.motherName" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲联系电话">
<el-input v-model="formData.motherPhone" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲身份证号" class="form-col-span-2">
<el-input v-model="formData.motherIdCard" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲出生年月">
<el-date-picker
v-model="formData.motherBirthYm"
type="month"
value-format="YYYYMM"
format="YYYY-MM"
placeholder="选择月份"
clearable
style="width: 100%"
/>
</el-form-item>
<el-form-item label="母亲民族">
<el-select
v-model="formData.motherEthnic"
class="w-full"
filterable
clearable
:loading="ethnicLoading"
placeholder="请选择或检索民族"
>
<el-option
v-for="e in ethnicOptions"
:key="e.ethnicCode"
:label="e.ethnicName"
:value="e.ethnicName"
/>
</el-select>
</el-form-item>
</div>
<el-form-item label="母亲邮箱" style="margin-top: 12px">
<el-input v-model="formData.motherEmail" placeholder="请输入" />
</el-form-item>
<el-form-item label="母亲家庭住址">
<el-input v-model="formData.motherAddress" placeholder="请输入" />
</el-form-item>
</div>
<!-- 父亲信息 -->
<div class="client-sub-card">
<div class="sub-card-header">
<span class="icon">👨</span>
<h4>父亲信息</h4>
</div>
<div class="form-grid form-grid--col2">
<el-form-item label="父亲姓名">
<el-input v-model="formData.fatherName" placeholder="请输入" />
</el-form-item>
<el-form-item label="父亲电话">
<el-input v-model="formData.fatherPhone" placeholder="请输入" />
</el-form-item>
<el-form-item label="父亲身份证号" class="form-col-span-2">
<el-input v-model="formData.fatherIdCard" placeholder="请输入" />
</el-form-item>
</div>
</div>
<!-- 新生儿信息 -->
<div class="client-sub-card">
<div class="sub-card-header">
<span class="icon">👶</span>
<h4>新生儿信息</h4>
</div>
<div class="form-grid form-grid--col2">
<el-form-item label="新生儿姓名">
<el-input v-model="formData.newbornName" placeholder="请输入" />
</el-form-item>
<el-form-item label="新生儿性别">
<el-radio-group v-model="formData.newbornSex">
<el-radio label="1">男</el-radio>
<el-radio label="0">女</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="预产期">
<el-date-picker
v-model="formData.expectedDeliveryDate"
type="date"
value-format="YYYY-MM-DD"
placeholder="选择预产期"
clearable
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿分娩时间">
<el-date-picker
v-model="formData.newbornDeliveryTime"
type="datetime"
value-format="YYYY-MM-DD HH:mm:ss"
placeholder="选择分娩时间"
clearable
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿身份证" class="form-col-span-2">
<el-input v-model="formData.newbornIdCard" placeholder="请输入" />
</el-form-item>
<el-form-item label="分娩方式">
<el-select
v-model="formData.deliveryMode"
placeholder="请选择"
clearable
style="width: 100%"
>
<el-option label="顺产" value="sc" />
<el-option label="剖宫产" value="pgc" />
</el-select>
</el-form-item>
<el-form-item label="胎次">
<el-input
v-model="formData.birthOrder"
type="number"
step="any"
:min="1"
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿体重(克)">
<el-input
v-model="formData.newbornWeightGram"
type="number"
step="any"
:min="0"
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿评分1分钟">
<el-input
v-model="formData.apgar1min"
type="number"
step="any"
:min="0"
:max="10"
style="width: 100%"
/>
</el-form-item>
<el-form-item label="新生儿评分5分钟">
<el-input
v-model="formData.apgar5min"
type="number"
step="any"
:min="0"
:max="10"
style="width: 100%"
/>
</el-form-item>
</div>
</div>
</div>
</div>
</div>
<!-- Tab 5: 缴费信息 -->
<div id="form-section-payment" class="form-tab-pane">
<div class="section-card">
@@ -1401,9 +1404,9 @@
/* ====== Tab 常量 ====== */
const formTabs = [
{ key: 'basic', label: '基本信息' },
{ key: 'party', label: '客户信息' },
{ key: 'collection', label: '采集信息' },
{ key: 'sample', label: '样本及运输信息' },
{ key: 'party', label: '客户信息' },
{ key: 'payment', label: '缴费信息' }
] as const
@@ -1441,6 +1444,7 @@
motherIdCard: '',
motherBirthYm: '',
motherEthnic: '',
motherEmail: '',
motherAddress: '',
fatherName: '',
fatherPhone: '',
@@ -1495,6 +1499,7 @@
motherIdCard: '',
motherBirthYm: '',
motherEthnic: '',
motherEmail: '',
motherAddress: '',
fatherName: '',
fatherPhone: '',
@@ -1837,6 +1842,7 @@
formData.motherBirthYm = String(pc.motherBirthYm || '')
formData.motherEthnic = String(pc.motherEthnic || '')
ensureEthnicOptionInList(formData.motherEthnic)
formData.motherEmail = String(pc.motherEmail || '')
formData.motherAddress = String(pc.motherAddress || '')
formData.fatherName = String(pc.fatherName || '')
formData.fatherPhone = String(pc.fatherPhone || '')
@@ -2014,6 +2020,7 @@
motherIdCard: formData.motherIdCard || undefined,
motherBirthYm: formData.motherBirthYm || undefined,
motherEthnic: formData.motherEthnic || undefined,
motherEmail: formData.motherEmail || undefined,
motherAddress: formData.motherAddress || undefined,
fatherName: formData.fatherName || undefined,
fatherPhone: formData.fatherPhone || undefined,
@@ -2318,6 +2325,7 @@
formData.motherPhone = ''
formData.motherIdCard = ''
formData.motherBirthYm = ''
formData.motherEmail = ''
return
}
const c = customerOptions.value.find((x) => x.id === val) || customerSnapshot.value