|
@ -1,19 +1,20 @@ |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' |
|
|
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
import * as SupplierApi from '@/api/wms/supplier' |
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
import { Supplier } from '@/views/wms/basicDataManage/supplierManage/supplier/supplier.data' |
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
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 * 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() // 国际化
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 要货计划主表 |
|
|
* @returns {Array} 要货计划主表 |
|
|
*/ |
|
|
*/ |
|
|
export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const PurchasePlanMain = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '要货计划单号', |
|
|
label: '要货计划单号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -23,8 +24,8 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 180, |
|
|
width: 180, |
|
|
fixed: 'left' |
|
|
fixed: 'left' |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:1, |
|
|
sortTableDefault: 1, |
|
|
sortSearchDefault:4, |
|
|
sortSearchDefault: 4, |
|
|
isSearch: true |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -34,17 +35,17 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.PURCHASE_PLAN_STATUS, |
|
|
dictType: DICT_TYPE.PURCHASE_PLAN_STATUS, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:2, |
|
|
sortTableDefault: 2, |
|
|
sortSearchDefault:6, |
|
|
sortSearchDefault: 6, |
|
|
search:{ |
|
|
search: { |
|
|
value:[], |
|
|
value: [], |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
multiple:true |
|
|
multiple: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
@ -59,11 +60,11 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'supplierCode', |
|
|
field: 'supplierCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
sortTableDefault:3, |
|
|
sortTableDefault: 3, |
|
|
sortSearchDefault:1, |
|
|
sortSearchDefault: 1, |
|
|
form: { |
|
|
form: { |
|
|
labelMessage: '影响明细中物料代码,需在供应商物料中维护', |
|
|
labelMessage: '影响明细中物料代码,需在供应商物料中维护', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -74,19 +75,23 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
|
|
|
searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: 'true', |
|
|
isSearch: 'true', |
|
|
isFormModel: true |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
search: { |
|
|
search: { |
|
@ -98,11 +103,13 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
searchTitle: '供应商信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Supplier.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
|
|
|
searchPage: SupplierApi.getSupplierPageSCP, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -112,9 +119,9 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:4, |
|
|
sortTableDefault: 4, |
|
|
sortSearchDefault:1, |
|
|
sortSearchDefault: 1, |
|
|
isTable:true, |
|
|
isTable: true, |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
//仅是主列表页面的筛选搜索条件
|
|
|
//仅是主列表页面的筛选搜索条件
|
|
@ -122,12 +129,12 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '送达日期', |
|
|
label: '送达日期', |
|
|
field: 'deliveryDate', |
|
|
field: 'deliveryDate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isDetail:false, |
|
|
isDetail: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
isTableForm:false, |
|
|
isTableForm: false, |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
sortSearchDefault:3, |
|
|
sortSearchDefault: 3, |
|
|
formatter: dateFormatter2, |
|
|
formatter: dateFormatter2, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
@ -137,55 +144,62 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
defaultTime: [new Date('1 '), new Date('1 ')] |
|
|
defaultTime: [new Date('1 '), new Date('1 ')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采购订单', |
|
|
label: '采购订单', |
|
|
field: 'poNumber', |
|
|
field: 'poNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
sortSearchDefault:11, |
|
|
sortSearchDefault: 11, |
|
|
formatter: dateFormatter2, |
|
|
formatter: dateFormatter2, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
enterSearch:true, |
|
|
enterSearch: true, |
|
|
dialogWidth:'1085px',//搜索出来弹窗的宽度
|
|
|
dialogWidth: '1085px', //搜索出来弹窗的宽度
|
|
|
isSearchList: true, |
|
|
isSearchList: true, |
|
|
searchListPlaceholder: '请选择采购订单', |
|
|
searchListPlaceholder: '请选择采购订单', |
|
|
searchField: 'number', |
|
|
searchField: 'number', |
|
|
searchTitle: '采购订单信息', |
|
|
searchTitle: '采购订单信息', |
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'type', |
|
|
key: 'type', |
|
|
value: 'SCHEDULE', |
|
|
value: 'SCHEDULE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'supplierCode', |
|
|
key: 'supplierCode', |
|
|
value: 'supplierCode', |
|
|
value: 'supplierCode', |
|
|
message: '请填写供应商代码!', |
|
|
message: '请填写供应商代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'status', |
|
|
key: 'status', |
|
|
value: 2, |
|
|
value: 2, |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'number', |
|
|
key: 'number', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: 'true', |
|
|
isSearch: 'true', |
|
|
isFormModel: true |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -196,28 +210,28 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
formatter: dateFormatter2, |
|
|
formatter: dateFormatter2, |
|
|
sortTableDefault:13, |
|
|
sortTableDefault: 13, |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
type: 'date', |
|
|
type: 'date', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '采购订单类型', |
|
|
label: '采购订单类型', |
|
|
field: 'type', |
|
|
field: 'type', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
sortTableDefault:13, |
|
|
sortTableDefault: 13, |
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, |
|
|
dictType: DICT_TYPE.PURCHASE_ORDER_TYPE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isForm:true, |
|
|
isForm: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -231,7 +245,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '收货人', |
|
|
label: '收货人', |
|
|
field: 'contacts', |
|
|
field: 'contacts', |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -244,7 +258,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '联系电话', |
|
|
label: '联系电话', |
|
|
field: 'phone', |
|
|
field: 'phone', |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -261,7 +275,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
isForm: false |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -271,13 +285,13 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
isDetail:false, |
|
|
isDetail: false, |
|
|
form:{ |
|
|
form: { |
|
|
component:"TimePicker", |
|
|
component: 'TimePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
format:"HH:mm", |
|
|
format: 'HH:mm' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -288,13 +302,13 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
isDetail:false, |
|
|
isDetail: false, |
|
|
form:{ |
|
|
form: { |
|
|
component:"TimePicker", |
|
|
component: 'TimePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
format:"HH:mm", |
|
|
format: 'HH:mm' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -305,8 +319,8 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '月台代码', |
|
|
label: '月台代码', |
|
@ -316,7 +330,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable:false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
@ -326,7 +340,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
form: { |
|
|
form: { |
|
|
value: 'PurchaseReceipt', |
|
|
value: 'PurchaseReceipt', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -335,7 +349,6 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
// {
|
|
|
// label: '自动发布',
|
|
|
// label: '自动发布',
|
|
|
// field: 'autoPublish',
|
|
|
// field: 'autoPublish',
|
|
@ -400,18 +413,18 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'creator', |
|
|
field: 'creator', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
|
field: 'createTime', |
|
|
field: 'createTime', |
|
|
isTable:true, |
|
|
isTable: true, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
sortTableDefault:13, |
|
|
sortTableDefault: 13, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
}, |
|
|
}, |
|
@ -425,7 +438,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
@ -436,17 +449,17 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
type: 'daterange', |
|
|
type: 'daterange', |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
} |
|
|
} |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable:false, |
|
|
isTable: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -467,7 +480,7 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -479,8 +492,8 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
isDetail:false, |
|
|
isDetail: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
@ -492,56 +505,42 @@ export const PurchasePlanMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const PurchasePlanMainRules = reactive({ |
|
|
export const PurchasePlanMainRules = reactive({ |
|
|
available: [ |
|
|
available: [{ required: true, message: '请选择是否可用', trigger: 'change' }], |
|
|
{ required: true, message: '请选择是否可用', trigger: 'change' } |
|
|
supplierCode: [{ required: true, message: '请选择供应商代码', trigger: 'change' }], |
|
|
], |
|
|
poNumber: [{ required: true, message: '请选择采购订单号', trigger: 'change' }], |
|
|
supplierCode: [ |
|
|
deliveryDate: [{ required: true, message: '请选择送达时间', trigger: 'change' }], |
|
|
{ required: true, message: '请选择供应商代码', trigger: 'change' } |
|
|
status: [{ required: true, message: '请选择状态', trigger: 'change' }], |
|
|
], |
|
|
number: [{ required: true, message: '请输入单据号', trigger: 'blur' }], |
|
|
poNumber: [ |
|
|
businessType: [{ required: true, message: '请输入业务类型', trigger: 'blur' }], |
|
|
{ required: true, message: '请选择采购订单号', trigger: 'change' } |
|
|
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }] |
|
|
], |
|
|
|
|
|
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} 要货计划子表 |
|
|
* @returns {Array} 要货计划子表 |
|
|
*/ |
|
|
*/ |
|
|
export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const PurchasePlanDetail = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '采购订单号', |
|
|
label: '采购订单号', |
|
|
field: 'poNumber', |
|
|
field: 'poNumber', |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
isTable:true, |
|
|
isTable: true, |
|
|
sortTableDefault:11, |
|
|
sortTableDefault: 11, |
|
|
sortSearchDefault:11, |
|
|
sortSearchDefault: 11, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
isTableForm:false, |
|
|
isTableForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
search: { |
|
|
search: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
dialogWidth:'1085px',//搜索出来弹窗的宽度
|
|
|
dialogWidth: '1085px', //搜索出来弹窗的宽度
|
|
|
isSearchList: true, |
|
|
isSearchList: true, |
|
|
enterSearch: true, |
|
|
enterSearch: true, |
|
|
searchListPlaceholder: '请选择采购订单', |
|
|
searchListPlaceholder: '请选择采购订单', |
|
@ -549,20 +548,24 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '采购订单信息', |
|
|
searchTitle: '采购订单信息', |
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'supplierCode', |
|
|
key: 'supplierCode', |
|
|
value: 'supplierCode', |
|
|
value: 'supplierCode', |
|
|
message: '请填写供应商代码!', |
|
|
message: '请填写供应商代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'status', |
|
|
key: 'status', |
|
|
value: 2, |
|
|
value: 2, |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -573,7 +576,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:12, |
|
|
sortTableDefault: 12, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -584,20 +587,23 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '采购订单信息', |
|
|
searchTitle: '采购订单信息', |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'number', |
|
|
key: 'number', |
|
|
value: 'poNumber', |
|
|
value: 'poNumber', |
|
|
message: '请填写订单号!', |
|
|
message: '请填写订单号!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
multiple:true, |
|
|
multiple: true, |
|
|
disabled: true, |
|
|
disabled: true, |
|
|
isInpuFocusShow: false, |
|
|
isInpuFocusShow: false, |
|
|
searchListPlaceholder: '请选择订单行', |
|
|
searchListPlaceholder: '请选择订单行', |
|
@ -605,16 +611,19 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '采购订单信息', |
|
|
searchTitle: '采购订单信息', |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPagePoNumber, |
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'number', |
|
|
key: 'number', |
|
|
value: 'poNumber', |
|
|
value: 'poNumber', |
|
|
message: '请填写订单号!', |
|
|
message: '请填写订单号!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
@ -624,9 +633,9 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
sortTableDefault:5, |
|
|
sortTableDefault: 5, |
|
|
sortSearchDefault:5, |
|
|
sortSearchDefault: 5, |
|
|
isSearch:true, |
|
|
isSearch: true, |
|
|
form: { |
|
|
form: { |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
@ -646,30 +655,34 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
searchTitle: '物料基础信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
|
|
|
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'supplierCode', |
|
|
key: 'supplierCode', |
|
|
value: 'supplierCode', |
|
|
value: 'supplierCode', |
|
|
message: '请填写供应商代码!', |
|
|
message: '请填写供应商代码!', |
|
|
isMainValue: true, |
|
|
isMainValue: true |
|
|
},{ |
|
|
}, |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
|
}] |
|
|
} |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '受入地', |
|
|
label: '物料状态', |
|
|
field: 'receivedLocation', |
|
|
field: 'itemStatus', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
sortTableDefault:6, |
|
|
dictType: DICT_TYPE.ITEM_STATUS, |
|
|
sortSearchDefault:6, |
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sortTableDefault: 10, |
|
|
|
|
|
sortSearchDefault: 10, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: true, |
|
|
|
|
|
isForm: true, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
disabled: true |
|
@ -677,15 +690,36 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select', |
|
|
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: '受入号', |
|
|
label: '受入号', |
|
|
field: 'receivedNumber', |
|
|
field: 'receivedNumber', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
sortTableDefault:7, |
|
|
sortTableDefault: 7, |
|
|
sortSearchDefault:7, |
|
|
sortSearchDefault: 7, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -698,15 +732,15 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select', |
|
|
type: 'Select', |
|
|
disabled:true, |
|
|
disabled: true |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '订单数量', |
|
|
label: '订单数量', |
|
|
field: 'orderQty', |
|
|
field: 'orderQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
sortTableDefault:8, |
|
|
sortTableDefault: 8, |
|
|
sortSearchDefault:8, |
|
|
sortSearchDefault: 8, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -718,14 +752,13 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
disabled: true |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计划数量', |
|
|
label: '计划数量', |
|
|
field: 'planQty', |
|
|
field: 'planQty', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
sortTableDefault:9, |
|
|
sortTableDefault: 9, |
|
|
sortSearchDefault:9, |
|
|
sortSearchDefault: 9, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -750,7 +783,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
@ -763,7 +796,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
sortTableDefault:7, |
|
|
sortTableDefault: 7 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '计量单位', |
|
@ -772,8 +805,8 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictType: DICT_TYPE.UOM, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sortTableDefault:10, |
|
|
sortTableDefault: 10, |
|
|
sortSearchDefault:10, |
|
|
sortSearchDefault: 10, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
@ -784,7 +817,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm: { |
|
|
type: 'Select', |
|
|
type: 'Select', |
|
|
disabled:true, |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -793,7 +826,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'number', |
|
|
field: 'number', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
@ -814,7 +847,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
sortTableDefault:6, |
|
|
sortTableDefault: 6 |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '是否可用', |
|
|
label: '是否可用', |
|
@ -822,9 +855,9 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictType: DICT_TYPE.TRUE_FALSE, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isTableForm:false, |
|
|
isTableForm: false, |
|
|
isForm:false, |
|
|
isForm: false, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
@ -848,18 +881,18 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
field: 'updater', |
|
|
field: 'updater', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
|
field: 'updateTime', |
|
|
field: 'updateTime', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true, |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
@ -874,7 +907,7 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
style: { width: '100%' }, |
|
|
style: { width: '100%' }, |
|
|
type: 'datetime', |
|
|
type: 'datetime', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
valueFormat: 'x', |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -882,29 +915,30 @@ export const PurchasePlanDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
label: '备注', |
|
|
label: '备注', |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true, |
|
|
isTableForm:false, |
|
|
isTableForm: false, |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
|
field: 'action', |
|
|
field: 'action', |
|
|
isDetail: false, |
|
|
isDetail: false, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
hiddenInMain:true, |
|
|
hiddenInMain: true, |
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false |
|
|
} |
|
|
} |
|
|
])) |
|
|
]) |
|
|
|
|
|
) |
|
|
const validatePlanQty = (rule, value, callback) => { |
|
|
const validatePlanQty = (rule, value, callback) => { |
|
|
console.log('validatePlanQty',value) |
|
|
console.log('validatePlanQty', value) |
|
|
const numReg = /^[\d]+$/ |
|
|
const numReg = /^[\d]+$/ |
|
|
if (numReg.test(value)&&value>=0) { |
|
|
if (numReg.test(value) && value >= 0) { |
|
|
callback() |
|
|
callback() |
|
|
} else { |
|
|
} else { |
|
|
callback(new Error('计划数量不能小于0')) |
|
|
callback(new Error('计划数量不能小于0')) |
|
@ -915,17 +949,11 @@ export const PurchasePlanDetailRules = reactive({ |
|
|
// available: [
|
|
|
// available: [
|
|
|
// { required: true, message: '请选择是否可用', trigger: 'change' }
|
|
|
// { required: true, message: '请选择是否可用', trigger: 'change' }
|
|
|
// ],
|
|
|
// ],
|
|
|
shippedQty: [ |
|
|
shippedQty: [{ required: true, message: '请输入已发货数量', trigger: 'blur' }], |
|
|
{ required: true, message: '请输入已发货数量', trigger: 'blur' } |
|
|
uom: [{ required: true, message: '请选择计量单位', trigger: 'change' }], |
|
|
], |
|
|
|
|
|
uom: [ |
|
|
|
|
|
{ required: true, message: '请选择计量单位', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
planQty: [ |
|
|
planQty: [ |
|
|
{ required: true, message: '请输入计划数量', trigger: 'blur' }, |
|
|
{ required: true, message: '请输入计划数量', trigger: 'blur' }, |
|
|
{ validator:validatePlanQty, message: '计划数量不能小于0', trigger: 'blur'} |
|
|
{ validator: validatePlanQty, message: '计划数量不能小于0', trigger: 'blur' } |
|
|
], |
|
|
|
|
|
remark: [ |
|
|
|
|
|
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
], |
|
|
|
|
|
remark: [{ max: 50, message: '不得超过50个字符', trigger: 'blur' }] |
|
|
}) |
|
|
}) |
|
|