|
@ -75,6 +75,7 @@ |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
import { PurchaseDetail } from '../purchaseMain/purchaseMain.data' |
|
|
import { PurchaseDetail } from '../purchaseMain/purchaseMain.data' |
|
|
|
|
|
import dayjs from 'dayjs' |
|
|
|
|
|
|
|
|
// 要货计划 |
|
|
// 要货计划 |
|
|
defineOptions({ name: 'PurchasePlanMain' }) |
|
|
defineOptions({ name: 'PurchasePlanMain' }) |
|
@ -313,6 +314,11 @@ const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
const openForm = async (type : string, row ?: number) => { |
|
|
const openForm = async (type : string, row ?: number) => { |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
|
|
|
if('create'==type){ |
|
|
|
|
|
nextTick(async () => { |
|
|
|
|
|
formRef.value.formRef.setValues({deliveryDate:dayjs().format('YYYY-MM-DD')}) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
|
const { wsCache } = useCache() |
|
|
const { wsCache } = useCache() |
|
|