zhang_li 11 months ago
parent
commit
61a499ce9b
  1. 2
      src/views/wms/basicDataManage/itemManage/bom/bom.data.ts
  2. 6
      src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts
  3. 10
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  4. 1055
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

2
src/views/wms/basicDataManage/itemManage/bom/bom.data.ts

@ -262,9 +262,11 @@ export const BomRules = reactive({
{ max: 50, message: '不得超过50个字符', trigger: 'blur' },
],
version: [
{ required: true, message: '请输入版本', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
layer: [
{ required: true, message: '请输入层级', trigger: 'blur' },
{ max: 50, message: '不得超过50个字符', trigger: 'blur' }
],
remark: [

6
src/views/wms/basicDataManage/itemManage/itembasic/itembasic.data.ts

@ -439,6 +439,12 @@ export const rules = reactive({
name: [
{ required: true, message: '请输入名称', trigger: 'blur' }
],
desc1: [
{ required: true, message: '请输入描述1', trigger: 'blur' }
],
desc2: [
{ required: true, message: '请输入描述2', trigger: 'blur' }
],
status: [
{ required: true, message: '请选择状态', trigger: 'change' }
],

10
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue

@ -264,6 +264,7 @@ import * as RuleApi from '@/api/wms/rule'
import { isString } from '@/utils/is'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import { json } from 'stream/consumers'
const { t } = useI18n() //
const message = useMessage() //
@ -450,6 +451,10 @@ defineExpose({ open }) // 提供 open 方法,用于打开弹窗
/** 提交表单 */
const emit = defineEmits(['success']) // success
const hasSameData = (array)=>{
const set = new Set(array.map(JSON.stringify))
return set.size !== array.length
}
const submitForm = async () => {
//
inputBlur()
@ -460,6 +465,10 @@ const submitForm = async () => {
message.error('优先级不可以为0')
return
}
if (hasSameData( formData.value.configuration.ManagementPrecision)) {
message.error('规则配置数据重复,请重新填写')
return;
}
//
formLoading.value = true
try {
@ -480,6 +489,7 @@ const submitForm = async () => {
Value:str
}
})
let data = {
id: formData.value.id,
strategyCode: formData.value.strategyCode, //

1055
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

File diff suppressed because it is too large
Loading…
Cancel
Save