zhengyiming
3 天以前 fc6bbae5805da6c95fd675210999a03802cd62ad
src/components/commonView/SettlementMaterialInfoView.vue
@@ -1,14 +1,22 @@
<template>
  <ProFormItemV2 label="本次申报奖励金总额:" prop="applySumAmount">
  <ProFormItemV2 label="本次申报奖励金总额:" prop="applySumAmount" :mode="mode">
    <ProFormInputNumber v-model="form.applySumAmount" formatValue="money" unit="元" />
  </ProFormItemV2>
  <ProFormItemV2 label="财政拨付总额:" prop="financeSumAmount" :mode="mode">
    <ProFormInputNumber v-model="form.financeSumAmount" formatValue="money" unit="元" />
  </ProFormItemV2>
  <ProFormItemV2 label="平台拨付总额:" prop="settleSumAmount" :mode="mode">
    <ProFormInputNumber v-model="form.settleSumAmount" formatValue="money" unit="元" />
  </ProFormItemV2>
  <ProFormItemV2
    :label="`${item.fileTypeName}:`"
    :prop="`calculationFileList.${index}.listFiles`"
    :label-width="160"
    :mode="mode"
    :style="{ marginBottom: index === form.calculationFileList.length - 1 ? 0 : '22px' }"
    v-for="(item, index) in form.calculationFileList"
    :key="item.fileSearchTypeId"
    v-if="form.calculationFileList.length > 0"
  >
    <ProFormUpload
      v-model:file-url="item.listFiles"
@@ -35,13 +43,20 @@
});
type Props = {
  isEdit?: boolean;
  form: {
    applySumAmount: number;
    financeSumAmount: number;
    settleSumAmount: number;
    calculationFileList: CustomerApplyFileTypeListItem[];
  };
};
const props = withDefaults(defineProps<Props>(), {});
const props = withDefaults(defineProps<Props>(), {
  isEdit: false,
});
const mode = computed(() => (props.isEdit ? 'read' : 'edit'));
</script>
<style lang="scss" scoped>