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