|
@ -44,7 +44,8 @@ |
|
|
</ContentWrap> |
|
|
</ContentWrap> |
|
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
<BasicForm |
|
|
<supplierdeliverBasicForm ref="supplierdeliverFormRef" @getList="getList" ></supplierdeliverBasicForm> |
|
|
|
|
|
<!-- <BasicForm |
|
|
ref="formRef" |
|
|
ref="formRef" |
|
|
:isOpenSearchTable="true" |
|
|
:isOpenSearchTable="true" |
|
|
:indexTableColumn="0" |
|
|
:indexTableColumn="0" |
|
@ -63,15 +64,15 @@ |
|
|
@submitForm="submitForm" |
|
|
@submitForm="submitForm" |
|
|
@formFormDateChange="formFormDateChange" |
|
|
@formFormDateChange="formFormDateChange" |
|
|
@onEnter="onEnter" |
|
|
@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'" |
|
|
:clearable="true" |
|
|
:clearable="true" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
:disabled="true" |
|
|
:disabled="true" |
|
|
placeholder="选择日期"/> |
|
|
placeholder="选择日期"/> |
|
|
</template> |
|
|
</template> |
|
|
</BasicForm> |
|
|
</BasicForm> --> |
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail |
|
|
<Detail |
|
@ -179,7 +180,7 @@ import { PurchasePlanDetail } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
import { addDay } from '@/utils/formatTime' |
|
|
import { addDay } from '@/utils/formatTime' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
|
|
|
import supplierdeliverBasicForm from './supplierdeliverBasicForm.vue' |
|
|
// 供应商发货申请 |
|
|
// 供应商发货申请 |
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
|
|
|
|
|
|
@ -528,42 +529,45 @@ const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
} |
|
|
} |
|
|
//添加/修改操作 |
|
|
//添加/修改操作 |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
|
|
|
|
const supplierdeliverFormRef = ref() |
|
|
|
|
|
|
|
|
const openForm = async (type: string, row?: number) => { |
|
|
const openForm = async (type: string, row?: number) => { |
|
|
if(type == "update"){ |
|
|
supplierdeliverFormRef.value.openForm(type, row) |
|
|
SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
// if(type == "update"){ |
|
|
if(item.field == 'supplierCode'){ |
|
|
// SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
item.componentProps.isSearchList = false |
|
|
// if(item.field == 'supplierCode'){ |
|
|
item.componentProps.disabled = true |
|
|
// item.componentProps.isSearchList = false |
|
|
} |
|
|
// item.componentProps.disabled = true |
|
|
if(item.field == 'ppNumber'){ |
|
|
// } |
|
|
item.componentProps.isSearchList = false |
|
|
// if(item.field == 'ppNumber'){ |
|
|
item.componentProps.disabled = true |
|
|
// item.componentProps.isSearchList = false |
|
|
} |
|
|
// item.componentProps.disabled = true |
|
|
if(item.field == 'asnNumber'){ |
|
|
// } |
|
|
item.componentProps.disabled = true |
|
|
// if(item.field == 'asnNumber'){ |
|
|
} |
|
|
// item.componentProps.disabled = true |
|
|
if(item.field == 'planArriveTime'){ |
|
|
// } |
|
|
item.componentProps.disabled = true |
|
|
// if(item.field == 'planArriveTime'){ |
|
|
} |
|
|
// item.componentProps.disabled = true |
|
|
}) |
|
|
// } |
|
|
}else { |
|
|
// }) |
|
|
SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
// }else { |
|
|
if(item.field == 'supplierCode'){ |
|
|
// SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
item.componentProps.isSearchList = true |
|
|
// if(item.field == 'supplierCode'){ |
|
|
} |
|
|
// item.componentProps.isSearchList = true |
|
|
if(item.field == 'ppNumber'){ |
|
|
// } |
|
|
item.componentProps.isSearchList = true |
|
|
// if(item.field == 'ppNumber'){ |
|
|
} |
|
|
// item.componentProps.isSearchList = true |
|
|
if(item.field == 'asnNumber'){ |
|
|
// } |
|
|
item.componentProps.disabled = false |
|
|
// if(item.field == 'asnNumber'){ |
|
|
} |
|
|
// item.componentProps.disabled = false |
|
|
if(item.field == 'planArriveTime'){ |
|
|
// } |
|
|
item.componentProps.disabled = false |
|
|
// if(item.field == 'planArriveTime'){ |
|
|
} |
|
|
// item.componentProps.disabled = false |
|
|
}) |
|
|
// } |
|
|
} |
|
|
// }) |
|
|
tableData.value = [] // 重置明细数据 |
|
|
// } |
|
|
formRef.value.open(type, row) |
|
|
// tableData.value = [] // 重置明细数据 |
|
|
|
|
|
// formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
/** 删除按钮操作 */ |
|
|