MrShi
2023-11-09 19d17f0f0fb02f46342d70b5180e40a0ad1b66d3
admin/src/components/business/BillDetailWindow.vue
@@ -4,7 +4,7 @@
    :visible.sync="visible"
    :confirm-working="isWorking"
  >
    <NoBikeBillDetail v-if="form.type==4" ref="noBikeBillDetail"/>
    <NoBikeBillDetail v-if="form.type == 4" ref="noBikeBillDetail"/>
    <BillDetail v-else ref="billDetail"/>
  </GlobalWindow>
</template>
@@ -26,7 +26,7 @@
        startDate: '',
        type: ''
      },
    }
  },
  created () {
@@ -42,14 +42,15 @@
      // 新建
      this.form = target
      this.$nextTick(() => {
        console.log(target)
        if (target.type == 4) {
          this.$refs.noBikeBillDetail.reload(target)
          this.$refs.noBikeBillDetail.reload({ ...target, isBikeFee: 1 })
        } else {
          this.$refs.billDetail.reload(target)
        }
      })
    },
  },
}
</script>