Browse Source

YT-1181从库位应是必填项

intex
zhang_li 2 days ago
parent
commit
087f690aaf
  1. 7
      src/components/ImportForm/src/ImportFormOnlyAdd.vue
  2. 2
      src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts

7
src/components/ImportForm/src/ImportFormOnlyAdd.vue

@ -259,6 +259,11 @@ const props = defineProps({
type:Boolean,
default:false
},
rules:{
type:Object,
required: false,
default: () => ({})
},
})
const importTemplateData = ref(props.importTemplateData)
const accept = ref(props.accept)
@ -319,6 +324,8 @@ const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
if (!elForm) return
const valid = await elForm.validate()
console.log(valid)
console.log(props.r)
if (!valid) return
if (fileList.value.length == 0) {

2
src/views/wms/deliversettlementManage/ssSuppliesRecordMain/deliverRecordMain/deliverRecordMain.data.ts

@ -914,7 +914,7 @@ export const ExtendColumn = useCrudSchemas(
//表单校验
export const ExtendColumnRules = reactive({
requestNumber: [
fromLocationCode: [
{ required: true, message: '请选择从库位', trigger: 'change' }
],
})

Loading…
Cancel
Save