|
@ -4,7 +4,10 @@ import * as CustomerApi from '@/api/wms/customer' |
|
|
import { Customer } from '../../../basicDataManage/customerManage/customer/customer.data' |
|
|
import { Customer } from '../../../basicDataManage/customerManage/customer/customer.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' |
|
|
|
|
|
import * as ProductionlineApi from '@/api/wms/productionline' |
|
|
|
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
|
|
|
import * as ItemBasicApi from '@/api/wms/itembasic' |
|
|
|
|
|
import { Itembasic } from '../../../basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
/** |
|
|
/** |
|
|
* @returns {Array} 发货记录主表 |
|
|
* @returns {Array} 发货记录主表 |
|
|
*/ |
|
|
*/ |
|
@ -199,7 +202,7 @@ export const DeliverRecordMain = useCrudSchemas( |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '生产线项', |
|
|
label: '类型', |
|
|
field: 'productionLine', |
|
|
field: 'productionLine', |
|
|
hiddenSearchHigh: true, |
|
|
hiddenSearchHigh: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
@ -697,6 +700,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '数量', |
|
|
field: 'qty', |
|
|
field: 'qty', |
|
@ -767,6 +771,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
|
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '金额', |
|
|
label: '金额', |
|
@ -780,6 +785,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
|
|
|
isTable: false, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '在途库库位', |
|
|
label: '在途库库位', |
|
@ -909,6 +915,68 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
isTable: false, |
|
|
isTable: false, |
|
|
isTableForm: false, |
|
|
isTableForm: false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '对账日期', |
|
|
|
|
|
field: 'reconciliationDate', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
search: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
type: 'daterange', |
|
|
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '顺引日期', |
|
|
|
|
|
field: 'billDate', |
|
|
|
|
|
formatter: dateFormatter2, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
search: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
type: 'daterange', |
|
|
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '备注', |
|
|
field: 'remark', |
|
|
field: 'remark', |
|
@ -963,7 +1031,7 @@ export const DeliverRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
valueFormat: 'x' |
|
|
valueFormat: 'x' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isSearch: true, |
|
|
isSearch: false, |
|
|
search: { |
|
|
search: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
@ -1136,7 +1204,7 @@ export const DeliverRecordImport = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '开始日期', |
|
|
label: '对账开始日期', |
|
|
field: 'startDate', |
|
|
field: 'startDate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
@ -1150,7 +1218,7 @@ export const DeliverRecordImport = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '结束日期', |
|
|
label: '对账结束日期', |
|
|
field: 'endDate', |
|
|
field: 'endDate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
form: { |
|
|
form: { |
|
@ -1301,3 +1369,241 @@ export const ImportLeadershipDocErrorData = useCrudSchemas(reactive<CrudSchema[] |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
/** |
|
|
|
|
|
* @returns {Array} 维护对账日期主 |
|
|
|
|
|
*/ |
|
|
|
|
|
export const MaintenanceBillDateMain = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '背番', |
|
|
|
|
|
field: 'backNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
multiple:true, |
|
|
|
|
|
isInpuFocusShow: false, // 开启查询弹窗
|
|
|
|
|
|
searchListPlaceholder: '请选择品番', |
|
|
|
|
|
searchField: 'backNumber', |
|
|
|
|
|
searchTitle: '物料基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItemBasicApi.selectItembasicPageToFgAndSemibasicPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}], |
|
|
|
|
|
verificationPage: ItemBasicApi.getItemListByCodes, // 校验数去焦点输入是否正确的方法
|
|
|
|
|
|
isShowTableFormSearch: true, |
|
|
|
|
|
verificationParams: [{ |
|
|
|
|
|
key: 'code', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true, |
|
|
|
|
|
}], // 失去焦点校验参数
|
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择品番', |
|
|
|
|
|
searchField: 'backNumber', |
|
|
|
|
|
searchTitle: '物料基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItemBasicApi.getBackNumberPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}], |
|
|
|
|
|
// verificationParams: [{
|
|
|
|
|
|
// key: 'code',
|
|
|
|
|
|
// action: '==',
|
|
|
|
|
|
// value: '',
|
|
|
|
|
|
// isMainValue: false,
|
|
|
|
|
|
// isSearch: true,
|
|
|
|
|
|
// isFormModel: true,
|
|
|
|
|
|
// }], // 失去焦点校验参数
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '生产线', |
|
|
|
|
|
field: 'productionLineCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
|
|
componentProps: { |
|
|
|
|
|
enterSearch: true, |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择生产线', |
|
|
|
|
|
searchField: 'code', |
|
|
|
|
|
searchTitle: '生产线信息', |
|
|
|
|
|
searchAllSchemas: Productionline.allSchemas, |
|
|
|
|
|
searchPage: ProductionlineApi.getProductionlinePage, |
|
|
|
|
|
searchCondition:[{ |
|
|
|
|
|
key: 'available', |
|
|
|
|
|
value: 'TRUE', |
|
|
|
|
|
isMainValue: false |
|
|
|
|
|
}], |
|
|
|
|
|
verificationParams: [{ |
|
|
|
|
|
key: 'code', |
|
|
|
|
|
action: '==', |
|
|
|
|
|
value: '', |
|
|
|
|
|
isMainValue: false, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isFormModel: true, |
|
|
|
|
|
}], // 失去焦点校验参数
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '顺引开始日期', |
|
|
|
|
|
field: 'startDueTime', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: { width: '100%' }, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '顺引结束日期', |
|
|
|
|
|
field: 'endDueTime', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: { width: '100%' }, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '开始序号', |
|
|
|
|
|
field: 'startSerialNo', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '结束序号', |
|
|
|
|
|
field: 'endSerialNo', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 0 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '对账日期', |
|
|
|
|
|
field: 'reconciliationDate', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: { width: '100%' }, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD', |
|
|
|
|
|
valueFormat: 'x' |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
search: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
type: 'daterange', |
|
|
|
|
|
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
// 维护对账日期主校验
|
|
|
|
|
|
export const MaintenanceBillDateMainRules = reactive({ |
|
|
|
|
|
backNumber: [ |
|
|
|
|
|
{ required: true, message: '请输入背番', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
productionLineCode: [ |
|
|
|
|
|
{ required: true, message: '请选择生产线', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
startDueTime: [ |
|
|
|
|
|
{ required: true, message: '请选择顺引开始日期', trigger: 'change' } |
|
|
|
|
|
], |
|
|
|
|
|
endDueTime: [ |
|
|
|
|
|
{ required: true, message: '请选择顺引结束日期', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
startSerialNo: [ |
|
|
|
|
|
{ required: true, message: '请输入开始序号', trigger: 'change' }, |
|
|
|
|
|
{ type: 'number', message: '开始序号必须为数字', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
endSerialNo: [ |
|
|
|
|
|
{ required: true, message: '请输入结束序号', trigger: 'change' }, |
|
|
|
|
|
{ type: 'number', message: '结束序号必须为数字', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
reconciliationDate: [ |
|
|
|
|
|
{ required: true, message: '请选择顺引结束日期', trigger: 'change' }, |
|
|
|
|
|
], |
|
|
|
|
|
}) |
|
|
|
|
|
/** |
|
|
|
|
|
* @returns {Array} 维护对账日期子 |
|
|
|
|
|
*/ |
|
|
|
|
|
export const MaintenanceBillDateDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '不包含顺引日期', |
|
|
|
|
|
field: 'billDate', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
tableForm: { |
|
|
|
|
|
type: 'FormDate', |
|
|
|
|
|
placeholder: '请选择维护对账日期', |
|
|
|
|
|
valueFormat: 'YYYYMMDD', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '不包含顺序号', |
|
|
|
|
|
field: 'serialNoShow', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
])) |
|
|
|
|
|
|
|
|
|
|
|
// 维护对账日期主校验
|
|
|
|
|
|
export const MaintenanceBillDateDetailRules = reactive({ |
|
|
|
|
|
billDate: [ |
|
|
|
|
|
{ required: true, message: '请输入不包含顺引日期', trigger: 'blur' }, |
|
|
|
|
|
], |
|
|
|
|
|
serialNoShow: [ |
|
|
|
|
|
{ required: true, message: '请输入不包含顺序号', trigger: 'blur' } |
|
|
|
|
|
], |
|
|
|
|
|
}) |