|
|
@ -62,6 +62,7 @@ |
|
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
|
@submitForm="submitForm" |
|
|
|
@formFormDateChange="formFormDateChange" |
|
|
|
@onEnter="onEnter" |
|
|
|
> |
|
|
|
<template v-slot="{row}"> |
|
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']).format('YYYY-MM-DD'):'2099-12-31'" |
|
|
@ -176,6 +177,8 @@ import * as SupplierdeliverInspectionDetailApi from '@/api/wms/supplierdeliverIn |
|
|
|
import * as PackageApi from '@/api/wms/package' |
|
|
|
import { PurchasePlanDetail } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
|
import { addDay } from '@/utils/formatTime' |
|
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
|
|
|
|
|
// 供应商发货申请 |
|
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
|
@ -258,6 +261,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) => |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
//供应商代码 回车搜索 |
|
|
|
const onEnter = async (field,value)=>{ |
|
|
|
console.log(field,value) |
|
|
|
formRef.value.opensearchTable('supplierCode', 'code', '供应商信息', Supplier.allSchemas, SupplierApi.getSupplierPage,[{ |
|
|
|
key:'code', |
|
|
|
value:value |
|
|
|
}]) |
|
|
|
} |
|
|
|
|
|
|
|
const getSearchTableData = async (number,formField,searchField)=>{ |
|
|
|
const {tableObject ,tableMethods} = useTable({ |
|
|
|
defaultParams:{number}, |
|
|
|