|
|
@ -6,6 +6,11 @@ const { t } = useI18n() // 国际化 |
|
|
|
import * as getRequestsettingApi from '@/api/wms/requestsetting/index' |
|
|
|
import * as ItembasicApi from '@/api/wms/itembasic' |
|
|
|
import { Itembasic } from '@/views/wms/basicDataManage/itemManage/itembasic/itembasic.data' |
|
|
|
import { PurchasePlanMain } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
|
import * as PurchasePlanMainApi from '@/api/wms/purchasePlanMain' |
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
const queryParams = { |
|
|
@ -32,6 +37,17 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, // 开启查询弹窗
|
|
|
|
searchListPlaceholder: '请选择要货计划单号', // 输入框占位文本
|
|
|
|
searchField: 'number', // 查询弹窗赋值字段
|
|
|
|
searchTitle: '要货计划信息', // 查询弹窗标题
|
|
|
|
searchAllSchemas: PurchasePlanMain.allSchemas, // 查询弹窗所需类
|
|
|
|
searchPage: PurchasePlanMainApi.getPurchasePlanMainPage // 查询弹窗所需分页方法
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '发货单号', |
|
|
@ -41,6 +57,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商代码', |
|
|
@ -93,6 +110,13 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
value: 'T1', |
|
|
|
componentProps: { |
|
|
|
disbaled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到仓库代码', |
|
|
@ -101,6 +125,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到月台代码', |
|
|
@ -109,6 +134,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '时间窗口', |
|
|
@ -117,6 +143,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '计划到货时间', |
|
|
@ -248,6 +275,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '截止时间', |
|
|
@ -269,6 +297,7 @@ export const SupplierdeliverRequestMain = useCrudSchemas(reactive<CrudSchema[]>( |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '部门', |
|
|
@ -466,22 +495,22 @@ export const SupplierdeliverRequestMainRules = reactive({ |
|
|
|
* @returns {Array} 供应商发货申请子表 |
|
|
|
*/ |
|
|
|
export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
{ |
|
|
|
label: '包装号', |
|
|
|
field: 'packingNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '器具号', |
|
|
|
field: 'containerNumber', |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '包装号',
|
|
|
|
// field: 'packingNumber',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// label: '器具号',
|
|
|
|
// field: 'containerNumber',
|
|
|
|
// sort: 'custom',
|
|
|
|
// table: {
|
|
|
|
// width: 150
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{ |
|
|
|
label: '批次', |
|
|
|
field: 'batch', |
|
|
@ -497,6 +526,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到货日期', |
|
|
@ -568,6 +599,25 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '订单行', |
|
|
@ -576,6 +626,25 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'lineNumber', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'lineNumber', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '标包数量', |
|
|
@ -590,6 +659,13 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -602,6 +678,11 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '供应商计量数量', |
|
|
@ -616,6 +697,13 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -628,6 +716,11 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '转换率', |
|
|
@ -641,6 +734,12 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
componentProps: { |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 0 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -699,6 +798,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '到货主代码', |
|
|
@ -707,6 +808,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品名称', |
|
|
@ -715,6 +818,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品描述1', |
|
|
@ -723,6 +828,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '物品描述2', |
|
|
@ -731,6 +838,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '数量', |
|
|
@ -745,6 +854,11 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'InputNumber', |
|
|
|
min: 1, |
|
|
|
precision: 6 |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -757,6 +871,9 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '项目代码', |
|
|
@ -765,6 +882,8 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
|
isForm: false |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '创建时间', |
|
|
@ -847,9 +966,9 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
|
|
|
|
//表单校验
|
|
|
|
export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
packingNumber: [ |
|
|
|
{ required: true, message: '请输入包装号', trigger: 'blur' } |
|
|
|
], |
|
|
|
// packingNumber: [
|
|
|
|
// { required: true, message: '请输入包装号', trigger: 'blur' }
|
|
|
|
// ],
|
|
|
|
batch: [ |
|
|
|
{ required: true, message: '请输入批次', trigger: 'blur' } |
|
|
|
], |
|
|
@ -863,10 +982,10 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
{ required: true, message: '请输入标包数量', trigger: 'blur' } |
|
|
|
], |
|
|
|
poNumber: [ |
|
|
|
{ required: true, message: '请输入订单号', trigger: 'blur' } |
|
|
|
{ required: true, message: '请选择订单号', trigger: 'change' } |
|
|
|
], |
|
|
|
poLine: [ |
|
|
|
{ required: true, message: '请输入订单行', trigger: 'blur' } |
|
|
|
{ required: true, message: '请选择订单行', trigger: 'change' } |
|
|
|
], |
|
|
|
stdPackUnit: [ |
|
|
|
{ required: true, message: '请选择标包单位', trigger: 'change' } |
|
|
@ -875,6 +994,6 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
{ required: true, message: '请输入转换率', trigger: 'blur' } |
|
|
|
], |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请输入物品代码', trigger: 'blur' } |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
|
], |
|
|
|
}) |