Handy_Cao 2 lat temu
rodzic
commit
100165058d

+ 2 - 2
src/business/performance/index.ts

@@ -15,9 +15,9 @@ export function usePerformanceContractedApply(buyaccountid: number) {
     const loading = shallowRef(false)
 
     const formData = ref<Partial<Proto.PerformanceContractedApplyReq>>({
-        BreachType
+        BreachType: buyaccountid === accountStore.accountId ? 2 : 1
     })
-    : buyaccountid === accountStore.accountId ? 2 : 1
+
     const formSubmit = async () => {
         try {
             loading.value = true

+ 8 - 3
src/packages/mobile/views/order/performance/components/breach/Index.vue

@@ -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: [{

+ 1 - 2
src/packages/mobile/views/order/performance/components/detail/Index.vue

@@ -98,9 +98,8 @@ const confirm = () => {
         message: '确认要立即执行吗?',
         showCancelButton: true,
     }).then(() => {
-        /// 市场ID
+        /// PerformancePlanStepID
         confirmFormData.value.PerformancePlanStepID = Number(props.selectedRow.curstepid)
-
         /// loding....
         fullloading((hideLoading) => {
             confirmSubmit().then(() => {