Browse Source

YT-2722要货计划,新增,送达日期等于取货日期,应可以新增成功,不能早于取货日期

intex
张立 2 days ago
parent
commit
57bbf6ad0f
  1. 7
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

7
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -676,10 +676,11 @@ const openForm = async (type: string, row?: number) => {
if ('create' == type) {
nextTick(async () => {
formRef.value.formRef.setValues({
deliveryDate: dayjs().valueOf(),
schdShipDate: dayjs().valueOf()
deliveryDate: dayjs(dayjs().format('YYYY-MM-DD')).valueOf(),
schdShipDate: dayjs(dayjs().format('YYYY-MM-DD')).valueOf()
})
})
console.log(11,dayjs(dayjs().format('YYYY-MM-DD')).valueOf())
PurchasePlanMain.allSchemas.formSchema.forEach((item) => {
//
if (item.field == 'supplierCode') {
@ -1117,6 +1118,8 @@ const submitForm = async (formType, submitData) => {
data.id = data.masterId
}
data.subList = []
console.log(111,data.deliveryDate)
console.log(111,data.schdShipDate)
if (data.deliveryDate < data.schdShipDate) {
message.error(t('要货计划送达日期不能早于取货日期!'))
return

Loading…
Cancel
Save