ProductInvoice.vue 1.51 KB
<template>
  <BasicModal
    v-bind="$attrs"
    @register="register"
    title="生产对账单"
    width="500px"
    :bodyStyle="{ height: '140px' }"
    @ok="handleOk"
  >
    <a-space direction="vertical">
      <div style="margin: 16px 0"></div>
      <div class="divAll">
        <div
          style="
            margin-left: 22px;
            margin-right: 5px;
            width: 100px;
            text-align: center;
            line-height: 30px;
          "
          >生产科对账单号</div
        ><a-input v-model:value="Input1" placeholder="请输入" style="width: 320px" />
      </div>
      <div class="divAll">
        <div
          style="
            margin-left: 0px;
            margin-right: 1px;
            width: 180px;
            text-align: center;
            line-height: 30px;
          "
          >生产科应付款日期</div
        ><a-input v-model:value="Input2" disabled />
      </div> </a-space
  ></BasicModal>
</template>
<script lang="ts" setup>
  import { BasicModal, useModalInner } from '@/components/Modal';
  import { computed, ref } from 'vue';
  import { getRefundDate } from '@/api/project/invoice';

  const Input1 = ref('');
  const Input2 = ref();

  const [register, { closeModal }] = useModalInner(async (data) => {
    Input2.value = getRefundDate(data.data);
    console.log(Input2.value, 5656);
  });
  async function handleOk() {
    closeModal();
  }
</script>
<style scoped>
  .divAll {
    display: flex;
    justify-content: center;
    align-items: center;
  }
</style>