|
@ -6,7 +6,11 @@ import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
|
|
|
|
|
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' |
|
|
import * as DeliverPlanMainApi from '@/api/wms/deliverPlanMain' |
|
|
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' |
|
|
import * as DeliverPlanDetailApi from '@/api/wms/deliverPlanDetail' |
|
|
import { DeliverPlanMain ,DeliverPlanDetail,DeliverPlanDetailRequest} from '../../deliverplan/deliverPlanMain/deliverPlanMain.data' |
|
|
import { |
|
|
|
|
|
DeliverPlanMain, |
|
|
|
|
|
DeliverPlanDetail, |
|
|
|
|
|
DeliverPlanDetailRequest |
|
|
|
|
|
} from '../../deliverplan/deliverPlanMain/deliverPlanMain.data' |
|
|
|
|
|
|
|
|
import * as CustomerItemApi from '@/api/wms/customeritem' |
|
|
import * as CustomerItemApi from '@/api/wms/customeritem' |
|
|
import { Customeritem } from '@/views/wms/basicDataManage/customerManage/customeritem/customeritem.data' |
|
|
import { Customeritem } from '@/views/wms/basicDataManage/customerManage/customeritem/customeritem.data' |
|
@ -45,7 +49,8 @@ const userDeptArray:any = [userDept] |
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 发货申请主表 |
|
|
* @returns {Array} 发货申请主表 |
|
|
*/ |
|
|
*/ |
|
|
export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const DeliverRequestMain = useCrudSchemas( |
|
|
|
|
|
reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '单据号', |
|
|
field: 'number', |
|
|
field: 'number', |
|
@ -55,7 +60,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
fixed: 'left' |
|
|
fixed: 'left' |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false, |
|
|
isSearch: true, |
|
|
isSearch: true |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '状态', |
|
|
label: '状态', |
|
@ -68,7 +73,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '客户代码', |
|
|
label: '客户代码', |
|
@ -88,19 +93,23 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '客户信息', // 查询弹窗标题
|
|
|
searchTitle: '客户信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Customer.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
|
|
|
searchPage: CustomerApi.getCustomerPage, // 查询弹窗所需分页方法
|
|
|
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 |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -122,7 +131,8 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '客户月台信息', // 查询弹窗标题
|
|
|
searchTitle: '客户月台信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Customerdock.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法
|
|
|
searchPage: CustomerdockApi.getCustomerdockPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
@ -132,15 +142,18 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
value: 'customerCode', |
|
|
value: 'customerCode', |
|
|
message: '请填写客户代码!', |
|
|
message: '请填写客户代码!', |
|
|
isMainValue: true |
|
|
isMainValue: true |
|
|
}], |
|
|
} |
|
|
verificationParams: [{ |
|
|
], |
|
|
|
|
|
verificationParams: [ |
|
|
|
|
|
{ |
|
|
key: 'code', |
|
|
key: 'code', |
|
|
action: '==', |
|
|
action: '==', |
|
|
value: '', |
|
|
value: '', |
|
|
isMainValue: false, |
|
|
isMainValue: false, |
|
|
isSearch: true, |
|
|
isSearch: true, |
|
|
isFormModel: true, |
|
|
isFormModel: true |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -198,7 +211,8 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: true, |
|
|
|
|
|
isDetail: true, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -209,7 +223,8 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '发货计划信息', // 查询弹窗标题
|
|
|
searchTitle: '发货计划信息', // 查询弹窗标题
|
|
|
searchAllSchemas: DeliverPlanDetailRequest.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: DeliverPlanDetailRequest.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: DeliverPlanDetailApi.getDeliverPlanDetailPage, // 查询弹窗所需分页方法
|
|
|
searchPage: DeliverPlanDetailApi.getDeliverPlanDetailPage, // 查询弹窗所需分页方法
|
|
|
searchCondition: [{ |
|
|
searchCondition: [ |
|
|
|
|
|
{ |
|
|
key: 'available', |
|
|
key: 'available', |
|
|
value: 'TRUE', |
|
|
value: 'TRUE', |
|
|
isMainValue: false |
|
|
isMainValue: false |
|
@ -218,15 +233,18 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
key: 'status', |
|
|
key: 'status', |
|
|
value: '6', |
|
|
value: '6', |
|
|
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 |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -238,7 +256,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 180 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '承运商', |
|
|
label: '承运商', |
|
@ -258,19 +276,23 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
searchTitle: '承运商信息', // 查询弹窗标题
|
|
|
searchTitle: '承运商信息', // 查询弹窗标题
|
|
|
searchAllSchemas: Carrier.allSchemas, // 查询弹窗所需类
|
|
|
searchAllSchemas: Carrier.allSchemas, // 查询弹窗所需类
|
|
|
searchPage: CarrierApi.getCarrierPage, // 查询弹窗所需分页方法
|
|
|
searchPage: CarrierApi.getCarrierPage, // 查询弹窗所需分页方法
|
|
|
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 |
|
|
}], // 失去焦点校验参数
|
|
|
} |
|
|
|
|
|
] // 失去焦点校验参数
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -283,7 +305,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '车牌号', |
|
|
label: '车牌号', |
|
@ -292,7 +314,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable:false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '申请时间', |
|
|
label: '申请时间', |
|
@ -312,7 +334,7 @@ export const DeliverRequestMain = 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' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isForm: false |
|
|
isForm: false |
|
@ -335,9 +357,9 @@ export const DeliverRequestMain = 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' |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从仓库代码', |
|
|
label: '从仓库代码', |
|
@ -347,7 +369,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到仓库代码', |
|
|
label: '到仓库代码', |
|
@ -357,7 +379,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区类型范围', |
|
|
label: '从库区类型范围', |
|
@ -369,7 +391,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区类型范围', |
|
|
label: '到库区类型范围', |
|
@ -381,7 +403,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从库区代码范围', |
|
|
label: '从库区代码范围', |
|
@ -391,7 +413,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库区代码范围', |
|
|
label: '到库区代码范围', |
|
@ -401,7 +423,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从月台代码', |
|
|
label: '从月台代码', |
|
@ -411,7 +433,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '业务类型', |
|
|
label: '业务类型', |
|
@ -424,10 +446,10 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
form: { |
|
|
form: { |
|
|
value: 'Deliver', |
|
|
value: 'Deliver', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true, |
|
|
disabled: true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '部门', |
|
|
label: '部门', |
|
@ -545,7 +567,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '创建时间', |
|
@ -565,10 +587,10 @@ export const DeliverRequestMain = 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' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '创建者', |
|
@ -578,7 +600,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '最后更新时间', |
|
@ -598,10 +620,10 @@ export const DeliverRequestMain = 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' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '最后更新者', |
|
@ -611,7 +633,7 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isForm: false, |
|
|
isForm: false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '操作', |
|
@ -621,9 +643,10 @@ export const DeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
table: { |
|
|
table: { |
|
|
width: 300, |
|
|
width: 300, |
|
|
fixed: 'right' |
|
|
fixed: 'right' |
|
|
}, |
|
|
|
|
|
} |
|
|
} |
|
|
])) |
|
|
} |
|
|
|
|
|
]) |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
//表单校验
|
|
|
//表单校验
|
|
|
export const DeliverRequestMainRules = reactive({ |
|
|
export const DeliverRequestMainRules = reactive({ |
|
|