src/views/erp/finance/payment/modules/item-form.vue
@@ -180,11 +180,7 @@ /** 表单校验 */ const validate = () => { // 检查是否有明细 if (tableData.value.length === 0) { throw new Error('请先选择关联来票'); } // 检查每行的付款金额 // 检查每行的付款金额(允许无明细:不关联来票时直接保存) for (let i = 0; i < tableData.value.length; i++) { const item = tableData.value[i]; if (!item?.paymentPrice || item.paymentPrice <= 0) { @@ -240,7 +236,7 @@ v-if="!invoice && !disabled" class="mt-2 flex justify-center text-sm text-muted-foreground" > 请先在上方表单选择关联来票,系统将自动生成付款明细 选填:选择关联来票后,系统将自动生成付款明细 </div> </template> </Grid>