|
|
@@ -73,6 +73,7 @@ interface ReceiptDto {
|
|
|
wyf: number // 物业费
|
|
|
sf: number // 水费
|
|
|
paymentReason: string // 付款事由
|
|
|
+ rzrq: string //入账日期
|
|
|
operator: string
|
|
|
}
|
|
|
|
|
|
@@ -165,7 +166,8 @@ const receiptForm = reactive<ReceiptDto>({
|
|
|
wyf: 0,
|
|
|
sf: 0,
|
|
|
paymentReason: '房屋租赁费用',
|
|
|
- operator: userInfo.value.personName,
|
|
|
+ rzrq: '',
|
|
|
+ operator: userInfo.value?.personName,
|
|
|
})
|
|
|
|
|
|
// 退据相关
|
|
|
@@ -652,6 +654,10 @@ const generateReceipt = async () => {
|
|
|
ElMessage.warning('总金额必须大于0')
|
|
|
return
|
|
|
}
|
|
|
+ if (!receiptForm.rzrq) {
|
|
|
+ ElMessage.warning('请填写入账日期')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
try {
|
|
|
await ElMessageBox.confirm(
|
|
|
@@ -1042,7 +1048,7 @@ onMounted(() => {
|
|
|
size="small"
|
|
|
text
|
|
|
:icon="Receipt"
|
|
|
- :disabled="!userInfo.isBusinessAtt"
|
|
|
+ :disabled="!userInfo?.isBusinessAtt"
|
|
|
@click="openReceiptDialog(row.id, row.contractNumber)"
|
|
|
>
|
|
|
获取收据
|
|
|
@@ -1054,7 +1060,7 @@ onMounted(() => {
|
|
|
size="small"
|
|
|
text
|
|
|
:icon="RotateCcw"
|
|
|
- :disabled="!userInfo.isBusinessAtt"
|
|
|
+ :disabled="!userInfo?.isBusinessAtt"
|
|
|
@click="openReturnReceiptDialog(row.id, row.contractNumber)"
|
|
|
>
|
|
|
获取退据
|
|
|
@@ -1319,6 +1325,15 @@ onMounted(() => {
|
|
|
@change="handleAmountChange"
|
|
|
/>
|
|
|
</ElFormItem>
|
|
|
+ <ElFormItem label="入账日期" required>
|
|
|
+ <ElDatePicker
|
|
|
+ v-model="receiptForm.rzrq"
|
|
|
+ type="date"
|
|
|
+ value-format="YYYY-MM-DD"
|
|
|
+ placeholder="请选择入账日期"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </ElFormItem>
|
|
|
</div>
|
|
|
|
|
|
<ElFormItem label="总金额(元)">
|