|
@ -62,6 +62,7 @@ |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@formFormDateChange="formFormDateChange" |
|
|
@formFormDateChange="formFormDateChange" |
|
|
|
|
|
@onEnter="onEnter" |
|
|
> |
|
|
> |
|
|
<template v-slot="{row}"> |
|
|
<template v-slot="{row}"> |
|
|
<el-date-picker v-bind:modelValue="row['expireTime']?addDay(row['produceDate'],row['expireTime']).format('YYYY-MM-DD'):'2099-12-31'" |
|
|
<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 * as PackageApi from '@/api/wms/package' |
|
|
import { PurchasePlanDetail } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
import { PurchasePlanDetail } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
import { addDay } from '@/utils/formatTime' |
|
|
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' }) |
|
|
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 getSearchTableData = async (number,formField,searchField)=>{ |
|
|
const {tableObject ,tableMethods} = useTable({ |
|
|
const {tableObject ,tableMethods} = useTable({ |
|
|
defaultParams:{number}, |
|
|
defaultParams:{number}, |
|
|