ProductInvoice.vue
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<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>