|
|
@@ -9,11 +9,11 @@
|
|
|
<CellGroup title="履约信息">
|
|
|
<Cell title="履约单号" :value="selectedRow.performanceplanid" />
|
|
|
<Cell title="当前步骤" :value="selectedRow.curstepname" />
|
|
|
- <Field name="ApplyRemark" label="备注" v-model="formData.ApplyRemark" placeholder="请输入银行卡账号"
|
|
|
+ <Field name="ApplyRemark" label="备注" v-model="formData.ApplyRemark" placeholder="请输入备注"
|
|
|
:rules="formRules.ApplyRemark" />
|
|
|
<Field name="Attachment" label="附件" :rules="formRules.Attachment" is-link>
|
|
|
<template #input>
|
|
|
- <Uploader v-model="formData.Attachment" placeholder="请选择开户银行" />
|
|
|
+ <app-uploader @success="onUploadSuccess" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
</CellGroup>
|
|
|
@@ -27,10 +27,11 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, PropType } from 'vue'
|
|
|
-import { CellGroup, Cell, Button, Form, FormInstance, FieldRule, Uploader } from 'vant'
|
|
|
+import { CellGroup, Cell, Button, Form, FormInstance, FieldRule } from 'vant'
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
import { usePerformanceContractedApply } from '@/business/performance'
|
|
|
|
|
|
+import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
|
|
|
const showModal = shallowRef(true)
|
|
|
@@ -47,6 +48,10 @@ const props = defineProps({
|
|
|
const { formData, formSubmit} = usePerformanceContractedApply(props.selectedRow.buyaccountid)
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
|
|
|
+const onUploadSuccess = (filePath: string) => {
|
|
|
+ formData.value.Attachment = filePath
|
|
|
+}
|
|
|
+
|
|
|
// 表单验证规则
|
|
|
const formRules: { [key in keyof Proto.PerformanceContractedApplyReq]?: FieldRule[] } = {
|
|
|
ApplyRemark: [{
|