|
|
@@ -8,6 +8,8 @@ import { loginStore } from '@/stores'
|
|
|
|
|
|
const { userId } = loginStore.$mapGetters()
|
|
|
|
|
|
+export type OptionalType<T, K extends keyof T> = Omit<T, K> & { [key in K]: Partial<T[K]> } // 指定某个属性为可选
|
|
|
+
|
|
|
// 采购列表
|
|
|
export function useWrstandardList() {
|
|
|
const { dataList, total, pageIndex, pageSize, pageCount } = useDataTable<Model.THJWrstandardRsp>()
|
|
|
@@ -45,8 +47,6 @@ export function useWrstandardList() {
|
|
|
|
|
|
// 采购详细
|
|
|
export function useWrstandardDetails(wrstandardid: number) {
|
|
|
- type OptionalType<T, R extends keyof T> = Omit<T, R> & { [key in R]: Partial<T[R]> } // 指定某个属性为可选
|
|
|
-
|
|
|
const loading = shallowRef(false)
|
|
|
const details = shallowRef<OptionalType<Model.THJWrstandardDetailRsp, 'goodsinfo'>>({
|
|
|
deliverymodes: [],
|