上传
This commit is contained in:
@@ -199,23 +199,23 @@
|
||||
</el-table>
|
||||
</el-col>
|
||||
<el-col :span="24" :offset="0" class="mb-18px">
|
||||
<el-divider direction="horizontal" content-position="left">额外支出</el-divider>
|
||||
<el-divider direction="horizontal" content-position="left">其他费用</el-divider>
|
||||
<el-button
|
||||
class="mb-5px"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="form.extraPay.push({ extraPayType: undefined, extraPayMoney: 0 })"
|
||||
>
|
||||
添加额外支出
|
||||
添加其他费用
|
||||
</el-button>
|
||||
<el-table :data="form.extraPay" border size="small">
|
||||
<el-table-column type="index" width="50" />
|
||||
<el-table-column prop="extraPayType" label="额外支出类型" width="200px">
|
||||
<el-table-column prop="extraPayType" label="费用类型" width="200px">
|
||||
<template #default="{ row }">
|
||||
<el-select
|
||||
v-model="row.extraPayType"
|
||||
size="small"
|
||||
placeholder="额外支出类型"
|
||||
placeholder="其他费用类型"
|
||||
filterable
|
||||
>
|
||||
<el-option
|
||||
@@ -227,7 +227,7 @@
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="extraPayMoney" label="额外支出金额" width="180px">
|
||||
<el-table-column prop="extraPayMoney" label="费用金额" width="180px">
|
||||
<template #default="{ row }">
|
||||
<el-input-number v-model="row.extraPayMoney" size="small" :controls="false" />
|
||||
</template>
|
||||
@@ -294,7 +294,6 @@ const info = ref({})
|
||||
const formLoading = ref(false)
|
||||
|
||||
const appStore = useAppStore()
|
||||
const { t } = useI18n() // 国际化
|
||||
const message = useMessage() // 消息弹窗
|
||||
|
||||
const props = defineProps({
|
||||
@@ -320,7 +319,7 @@ const showSchema = computed(() => {
|
||||
return [...props.schema, ...arr]
|
||||
})
|
||||
|
||||
const extraPayOptions = getDictOptions('extra_pay_type')
|
||||
const extraPayOptions = getDictOptions('other_pay_type')
|
||||
|
||||
async function open(id) {
|
||||
try {
|
||||
@@ -346,6 +345,7 @@ function resetForm(id) {
|
||||
}
|
||||
}
|
||||
|
||||
const emit = defineEmits(['success'])
|
||||
const formRef = ref()
|
||||
async function handleSave() {
|
||||
// 校验表单
|
||||
@@ -354,11 +354,11 @@ async function handleSave() {
|
||||
if (!valid) return
|
||||
|
||||
if (form.value.extraPay.some((it) => !it.extraPayType || it.extraPayMoney == null)) {
|
||||
message.info('请将支付类型及支出金额填写完整!')
|
||||
message.info('请将费用类型及费用金额填写完整!')
|
||||
return
|
||||
}
|
||||
|
||||
if (form.value.signProducts.some((it) => !it.productId || !item.specsId || !it.signNum)) {
|
||||
if (form.value.signProducts.some((it) => !it.productId || !it.specsId || !it.signNum)) {
|
||||
message.info('请将成交产品信息填写完整!')
|
||||
return
|
||||
}
|
||||
@@ -377,7 +377,7 @@ async function handleSave() {
|
||||
}
|
||||
}
|
||||
await createSign(params)
|
||||
message.success(t('common.createSuccess'))
|
||||
message.success('登记成功!')
|
||||
show.value = false
|
||||
// 发送操作成功的事件
|
||||
emit('success')
|
||||
|
||||
Reference in New Issue
Block a user