提交
This commit is contained in:
1 parent
771f010a39
commit
ee4abd361e
102 files changed
+8021
-4094
No files matched your search
@@ -188,7 +188,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint"
|
||||
>支持图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>支持图片、视频、PDF、Word、Excel等文件</span
|
||||
>
|
||||
</div>
|
||||
</el-form-item>
|
||||
@@ -585,12 +585,10 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="价格(元)">
|
||||
<el-input
|
||||
<AmountInput
|
||||
v-model="row.price"
|
||||
type="number"
|
||||
step="any"
|
||||
:min="0"
|
||||
style="width: 100%"
|
||||
placeholder="请输入价格"
|
||||
@change="onSamplePriceChange"
|
||||
/>
|
||||
</el-form-item>
|
||||
@@ -844,7 +842,7 @@
|
||||
class="detail-amount"
|
||||
:class="detail.payStatus === 'yjf' ? 'green' : 'amber'"
|
||||
>
|
||||
¥{{ detail.dueAmount }}
|
||||
{{ fmtMoney(detail.dueAmount) }}
|
||||
</span>
|
||||
<span
|
||||
v-if="detail.payStatus"
|
||||
@@ -896,12 +894,10 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="转账金额(元)">
|
||||
<el-input
|
||||
<AmountInput
|
||||
v-model="detail.transferAmount"
|
||||
type="number"
|
||||
step="any"
|
||||
:min="0"
|
||||
style="width: 100%"
|
||||
placeholder="请输入转账金额"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="转账时间">
|
||||
@@ -1010,7 +1006,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<span class="upload-hint"
|
||||
>支持图片、视频、PDF、Word、Excel等文件,单文件不超过 20MB</span
|
||||
>支持图片、视频、PDF、Word、Excel等文件</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1215,6 +1211,8 @@
|
||||
import { fetchEthnicList, type EthnicOption } from '@/api/ethnic'
|
||||
import { useUserStore } from '@/store/modules/user'
|
||||
import { syncFqPaymentDetailRowCount } from '@/utils/protocol-payment-installment'
|
||||
import AmountInput from '@/components/common/amount-input/index.vue'
|
||||
import { formatMoneyDisplay } from '@/utils/money-format'
|
||||
import {
|
||||
payModeLabel,
|
||||
newbornSexLabel,
|
||||
@@ -1225,6 +1223,12 @@
|
||||
payStatusLabel
|
||||
} from '@/utils/status-tag-registry'
|
||||
|
||||
/** 金额只读展示:千分位 + ¥ 前缀 */
|
||||
function fmtMoney(v: unknown): string {
|
||||
if (v == null || v === '') return '—'
|
||||
return '¥' + formatMoneyDisplay(v)
|
||||
}
|
||||
|
||||
const userStore = useUserStore()
|
||||
|
||||
const customerId = ref<string | null>(null)
|
||||
@@ -2738,13 +2742,6 @@
|
||||
const file = uploadFile.raw || uploadFile
|
||||
if (!file) return
|
||||
|
||||
const maxSizeMb = 20
|
||||
if (file.size / 1024 / 1024 > maxSizeMb) {
|
||||
ElMessage.error(`文件大小不能超过 ${maxSizeMb}MB`)
|
||||
attachmentUploadRef.value?.clearFiles()
|
||||
return
|
||||
}
|
||||
|
||||
const tempId = `temp_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`
|
||||
formData.attachments.push({
|
||||
id: tempId,
|
||||
@@ -2789,11 +2786,6 @@
|
||||
const file = uploadFile.raw || uploadFile
|
||||
if (!file) return
|
||||
|
||||
const maxSizeMb = 20
|
||||
if (file.size / 1024 / 1024 > maxSizeMb) {
|
||||
ElMessage.error(`文件大小不能超过 ${maxSizeMb}MB`)
|
||||
return
|
||||
}
|
||||
|
||||
const detail = formData.paymentDetails[detailIndex]
|
||||
if (!detail) return
|
||||
|
||||
Reference in new issue
Block a user