| | |
| | | <el-form-item label="不显示有发票行"> |
| | | <el-checkbox v-model="searchForm.status" @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="发票金额"> |
| | | <el-input-number v-model="searchForm.invoiceTotal" :min="0" :precision="2" placeholder="请输入" style="width: 180px" @change="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" @click="handleQuery"> 搜索 </el-button> |
| | | <el-button @click="resetForm"> 重置 </el-button> |
| | |
| | | invoiceDateStart: undefined, |
| | | invoiceDateEnd: undefined, |
| | | createTimeStart: "", // 录入日期 |
| | | invoiceTotal: undefined, // 发票金额 |
| | | }, |
| | | form: { |
| | | salesLedgerId: "", |
| | |
| | | }, |
| | | }); |
| | | const { form, rules } = toRefs(data); |
| | | const { form: searchForm, resetForm } = useFormData(data.searchForm); |
| | | const { form: searchForm } = useFormData(data.searchForm); |
| | | |
| | | // 自定义重置函数 |
| | | const resetForm = () => { |
| | | searchForm.searchText = ""; |
| | | searchForm.status = false; |
| | | searchForm.invoiceDate = null; |
| | | searchForm.invoiceDateStart = undefined; |
| | | searchForm.invoiceDateEnd = undefined; |
| | | searchForm.createTimeStart = ""; |
| | | searchForm.invoiceTotal = undefined; |
| | | handleQuery(); |
| | | }; |
| | | const currentId = ref(""); |
| | | const userStore = useUserStore(); |
| | | const maxInvoiceAmount = ref(0); // 发票金额最大值 |