Commit 199954d4 authored by wzy's avatar wzy

fix: 采购物料为空问题处理

parent b92031cd
......@@ -100,8 +100,8 @@ const Information = (props: any) => {
};
/* 时间选中 */
const onChange = (value: any) => {
let startTime = moment(Number(value[0])).format('YYYY-MM-DD')
let endTime = moment(Number(value[1])).format('YYYY-MM-DD')
let startTime = value ? moment(Number(value?.[0])).format('YYYY-MM-DD HH:mm:ss') : null
let endTime = value ? moment(Number(value?.[1])).format('YYYY-MM-DD HH:mm:ss') : null
getbasicsVO({
...basicsVO,
startTime,
......
......@@ -107,6 +107,10 @@ const ContractText = (props: any) => {
(await purchaseMate.current.length) != 0
? await purchaseMate.current.get()
: [];
if(!purchaseMaterielList?.data?.list?.length) {
message.info('采购物料不可以为空!')
return
}
getOtherInfo().then(datas => {
if (!isEmpty(picker) && !(picker.endTime && picker.startTime)) {
message.info('生成合同日期不可以为空!')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment