zhengyiming
7 天以前 960c7f808d86dfb89dc128da51c78564475d719a
src/views/Reward/components/BatchRegisterDialog.vue
@@ -22,7 +22,12 @@
          />
        </div>
      </ProFormItemV2>
      <ProFormItemV2 label="登记类型:" prop="incomeType" required>
      <ProFormItemV2
        label="登记类型:"
        prop="incomeType"
        required
        :check-rules="[{ message: '请选择登记类型' }]"
      >
        <ProFormRadio
          v-model="form.incomeType"
          :value-enum="incomeTypeEnum"
@@ -45,11 +50,11 @@
      </ProFormItemV2>
      <ProFormItemV2
        label="上传登记凭证:"
        prop="certificateUrl"
        prop="fileUrl"
        :check-rules="[{ message: '请上传登记凭证', type: 'upload' }]"
      >
        <ProFormUpload
          v-model:file-url="form.certificateUrl"
          v-model:file-url="form.fileUrl"
          :limitFileSize="50"
          accept="doc,docx,pdf,xls,xlsx,jpg/jpeg,png"
        ></ProFormUpload>
@@ -102,15 +107,16 @@
  incomeType: IncomeTypeEnum;
  parkBountyApplyId: string;
  showSuportPlatRecharge: boolean;
  showSuportFiscalRecharge: boolean;
  certificateUrl: UploadUserFile[];
  fileUrl: UploadUserFile[];
};
const form = defineModel<Form>('form');
const incomeTypeEnum = computed(() => {
  return [
    {
    form.value.showSuportFiscalRecharge && {
      label: IncomeTypeEnumText[IncomeTypeEnum.Fiscal],
      value: IncomeTypeEnum.Fiscal,
    },
@@ -124,14 +130,18 @@
const deleteList = ref<string[]>([]);
watch(visible, (value, oldValue) => {
  if (value && !oldValue) {
  if (value && !oldValue && !form.value.incomeType) {
    getParkBountyApplyBatchFinanceEnterprise();
  } else {
    form.value.companyList = [];
    form.value.parkBountyApplyDetailIds = [];
    deleteList.value = [];
  }
});
async function getParkBountyApplyBatchTransferEnterprise() {
  try {
    let res = await parkBountyApplyServices.getParkBountyApplyBatchTransferEnterprise({
    let res = await parkBountyApplyServices.getParkBountyApplyBatchTransferRegEnterprise({
      parkBountyApplyId: form.value.parkBountyApplyId,
    });
    if (res) {
@@ -144,7 +154,7 @@
async function getParkBountyApplyBatchFinanceEnterprise() {
  try {
    let res = await parkBountyApplyServices.getParkBountyApplyBatchFinanceEnterprise({
    let res = await parkBountyApplyServices.getParkBountyApplyBatchFinanceRegEnterprise({
      parkBountyApplyId: form.value.parkBountyApplyId,
    });
    if (res) {