ERP:初始化 receipt 收款单的逻辑 100%

This commit is contained in:
YunaiV
2024-02-16 08:13:25 +08:00
parent e07e19106c
commit c18b24e611
7 changed files with 1308 additions and 6 deletions

View File

@@ -43,7 +43,7 @@
</el-form-item>
<el-form-item label="退货时间" prop="orderTime">
<el-date-picker
v-model="queryParams.inTime"
v-model="queryParams.returnTime"
value-format="YYYY-MM-DD HH:mm:ss"
type="daterange"
start-placeholder="开始日期"
@@ -122,7 +122,7 @@ import { dateFormatter2 } from '@/utils/formatTime'
import { erpPriceInputFormatter, erpPriceTableColumnFormatter } from '@/utils'
import { ProductApi, ProductVO } from '@/api/erp/product/product'
import { PurchaseReturnApi, PurchaseReturnVO } from '@/api/erp/purchase/return'
import { PurchaseInVO } from '@/api/erp/purchase/in'
import { SaleReturnVO } from '@/api/erp/sale/return'
defineOptions({ name: 'PurchaseInPaymentEnableList' })
@@ -135,7 +135,7 @@ const queryParams = reactive({
pageSize: 10,
no: undefined,
productId: undefined,
inTime: [],
returnTime: [],
refundEnable: true,
supplierId: undefined
})
@@ -143,8 +143,8 @@ const queryFormRef = ref() // 搜索的表单
const productList = ref<ProductVO[]>([]) // 产品列表
/** 选中操作 */
const selectionList = ref<PurchaseInVO[]>([])
const handleSelectionChange = (rows: PurchaseInVO[]) => {
const selectionList = ref<SaleReturnVO[]>([])
const handleSelectionChange = (rows: SaleReturnVO[]) => {
selectionList.value = rows
}
@@ -162,7 +162,7 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交选择 */
const emits = defineEmits<{
(e: 'success', value: PurchaseInVO[]): void
(e: 'success', value: SaleReturnVO[]): void
}>()
const submitForm = () => {
try {