|
|
@ -5,15 +5,16 @@ import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/su |
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
|
import {getPurchaseDetailPagePoNumber} from "@/api/wms/purchaseDetail"; |
|
|
|
import { getPurchaseDetailPagePoNumber } from '@/api/wms/purchaseDetail' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import {Itembasic} from "@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data"; |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 要货计划主表 |
|
|
|
*/ |
|
|
|
export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const PurchasePlanMain = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '要货计划单号', |
|
|
|
field: 'number', |
|
|
@ -59,7 +60,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
field: 'supplierCode', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
sortTableDefault: 3, |
|
|
@ -74,19 +75,23 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'code', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
}, |
|
|
|
search: { |
|
|
@ -98,11 +103,13 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -137,7 +144,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 '), new Date('1 ')] |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '采购订单', |
|
|
@ -160,32 +167,39 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'type', |
|
|
|
value: 'SCHEDULE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填写供应商代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'status', |
|
|
|
value: 2, |
|
|
|
isMainValue: false |
|
|
|
}], |
|
|
|
verificationParams: [{ |
|
|
|
} |
|
|
|
], |
|
|
|
verificationParams: [ |
|
|
|
{ |
|
|
|
key: 'number', |
|
|
|
action: '==', |
|
|
|
value: '', |
|
|
|
isMainValue: false, |
|
|
|
isSearch: 'true', |
|
|
|
isFormModel: true |
|
|
|
}], // 失去焦点校验参数
|
|
|
|
} |
|
|
|
] // 失去焦点校验参数
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -202,12 +216,12 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
componentProps: { |
|
|
|
type: 'date', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
detail: { |
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '采购订单类型', |
|
|
@ -275,9 +289,9 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
form: { |
|
|
|
component:"TimePicker", |
|
|
|
component: 'TimePicker', |
|
|
|
componentProps: { |
|
|
|
format:"HH:mm", |
|
|
|
format: 'HH:mm' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -292,9 +306,9 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isForm: false, |
|
|
|
isDetail: false, |
|
|
|
form: { |
|
|
|
component:"TimePicker", |
|
|
|
component: 'TimePicker', |
|
|
|
componentProps: { |
|
|
|
format:"HH:mm", |
|
|
|
format: 'HH:mm' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -306,7 +320,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '月台代码', |
|
|
@ -316,7 +330,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isTable:false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '业务类型', |
|
|
@ -335,7 +349,6 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
// label: '自动发布',
|
|
|
|
// field: 'autoPublish',
|
|
|
@ -403,7 +416,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -425,7 +438,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
@ -436,7 +449,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
type: 'daterange', |
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新者', |
|
|
@ -446,7 +459,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTable: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -467,7 +480,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -480,7 +493,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
isTable: false, |
|
|
|
isForm: false, |
|
|
|
isDetail:false, |
|
|
|
isDetail: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
@ -492,40 +505,26 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
fixed: 'right' |
|
|
|
} |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const PurchasePlanMainRules = reactive({ |
|
|
|
available: [ |
|
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
|
], |
|
|
|
supplierCode: [ |
|
|
|
{ required: true, message: '请选择供应商代码', trigger: 'change' } |
|
|
|
], |
|
|
|
poNumber: [ |
|
|
|
{ required: true, message: '请选择采购订单号', trigger: 'change' } |
|
|
|
], |
|
|
|
deliveryDate: [ |
|
|
|
{ required: true, message: '请选择送达时间', trigger: 'change' } |
|
|
|
], |
|
|
|
status: [ |
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' } |
|
|
|
], |
|
|
|
number: [ |
|
|
|
{ required: true, message: '请输入单据号', trigger: 'blur' } |
|
|
|
], |
|
|
|
businessType: [ |
|
|
|
{ required: true, message: '请输入业务类型', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
available: [{ required: true, message: '请选择是否可用', trigger: 'change' }], |
|
|
|
supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }], |
|
|
|
poNumber: [{ required: true, message: '请选择采购订单号', trigger: 'change' }], |
|
|
|
deliveryDate: [{ required: true, message: '请选择送达时间', trigger: 'change' }], |
|
|
|
status: [{ required: true, message: '请选择状态', trigger: 'change' }], |
|
|
|
number: [{ required: true, message: '请输入单据号', trigger: 'blur' }], |
|
|
|
businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }], |
|
|
|
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }] |
|
|
|
}) |
|
|
|
|
|
|
|
/** |
|
|
|
* @returns {Array} 要货计划子表 |
|
|
|
*/ |
|
|
|
export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
export const PurchasePlanDetail = useCrudSchemas( |
|
|
|
reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '采购订单号', |
|
|
|
field: 'poNumber', |
|
|
@ -549,20 +548,24 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填写供应商代码!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'status', |
|
|
|
value: 2, |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -584,16 +587,19 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, |
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'number', |
|
|
|
value: 'poNumber', |
|
|
|
message: '请填写订单号!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
@ -605,16 +611,19 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, |
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'number', |
|
|
|
value: 'poNumber', |
|
|
|
message: '请填写订单号!', |
|
|
|
isMainValue: true |
|
|
|
},{ |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -646,30 +655,34 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
|
|
|
|
searchCondition: [{ |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'supplierCode', |
|
|
|
value: 'supplierCode', |
|
|
|
message: '请填写供应商代码!', |
|
|
|
isMainValue: true, |
|
|
|
},{ |
|
|
|
isMainValue: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
key: 'available', |
|
|
|
value: 'TRUE', |
|
|
|
isMainValue: false |
|
|
|
}] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '受入地', |
|
|
|
field: 'receivedLocation', |
|
|
|
label: '物料状态', |
|
|
|
field: 'itemStatus', |
|
|
|
sort: 'custom', |
|
|
|
sortTableDefault:6, |
|
|
|
sortSearchDefault:6, |
|
|
|
dictType: DICT_TYPE.ITEM_STATUS, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sortTableDefault: 10, |
|
|
|
sortSearchDefault: 10, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: true, |
|
|
|
isForm: true, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
@ -677,8 +690,29 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled:true, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '默认收货库区', |
|
|
|
field: 'defaultAreaCode', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
sortTableDefault: 7, |
|
|
|
isTableForm: true, |
|
|
|
isForm: true, |
|
|
|
isTable: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '库区描述', |
|
|
|
field: 'areaDescription', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: true, |
|
|
|
isForm: true, |
|
|
|
isTable: true |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '受入号', |
|
|
@ -698,8 +732,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled:true, |
|
|
|
}, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单数量', |
|
|
@ -718,14 +752,13 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
tableForm: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划数量', |
|
|
|
field: 'planQty', |
|
|
|
sort: 'custom', |
|
|
|
sortTableDefault:9, |
|
|
|
sortSearchDefault:9, |
|
|
|
sortTableDefault: 9, |
|
|
|
sortSearchDefault: 9, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -750,7 +783,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
isTable: false |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
@ -763,7 +796,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
sortTableDefault:7, |
|
|
|
sortTableDefault: 7 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
@ -772,8 +805,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isTable: true, |
|
|
|
sortTableDefault:10, |
|
|
|
sortSearchDefault:10, |
|
|
|
sortTableDefault: 10, |
|
|
|
sortSearchDefault: 10, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
@ -784,7 +817,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select', |
|
|
|
disabled:true, |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -814,7 +847,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
isTable: false, |
|
|
|
sortTableDefault:6, |
|
|
|
sortTableDefault: 6 |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
@ -852,7 +885,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '最后更新时间', |
|
|
@ -874,7 +907,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
style: { width: '100%' }, |
|
|
|
type: 'datetime', |
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
valueFormat: 'x', |
|
|
|
valueFormat: 'x' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -886,7 +919,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
isTableForm: false, |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作', |
|
|
@ -898,9 +931,10 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isTableForm: false |
|
|
|
} |
|
|
|
])) |
|
|
|
]) |
|
|
|
) |
|
|
|
const validatePlanQty = (rule, value, callback) => { |
|
|
|
console.log('validatePlanQty', value) |
|
|
|
const numReg = /^[\d]+$/ |
|
|
@ -915,17 +949,11 @@ export const PurchasePlanDetailRules = reactive({ |
|
|
|
// available: [
|
|
|
|
// { required: true, message: '请选择是否可用', trigger: 'change' }
|
|
|
|
// ],
|
|
|
|
shippedQty: [ |
|
|
|
{ required: true, message: '请输入已发货数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
uom: [ |
|
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' } |
|
|
|
], |
|
|
|
shippedQty: [{ required: true, message: '请输入已发货数量', trigger: 'blur' }], |
|
|
|
uom: [{ required: true, message: '请选择计量单位', trigger: 'change' }], |
|
|
|
planQty: [ |
|
|
|
{ required: true, message: '请输入计划数量', trigger: 'blur' }, |
|
|
|
{ validator: validatePlanQty, message: '计划数量不能小于0', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [ |
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
], |
|
|
|
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }] |
|
|
|
}) |
|
|
|