|
|
@ -6,11 +6,13 @@ 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 { PurchasePlanMain } from '../purchasePlanMain/purchasePlanMain.data'
|
|
|
|
import * as PurchasePlanMainApi from '@/api/wms/purchasePlanMain' |
|
|
|
import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail' |
|
|
|
import * as PurchaseMainApi from '@/api/wms/purchaseMain' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import { PurchaseDetail, PurchaseMain } from '../purchaseMain/purchaseMain.data' |
|
|
|
import { PurchasePlanDetail, PurchasePlanMain } from '../purchasePlanMain/purchasePlanMain.data' |
|
|
|
|
|
|
|
// 获取自动提交自动通过自动执行,跳过任务直接删生成记录的默认值
|
|
|
|
const queryParams = { |
|
|
@ -509,22 +511,6 @@ 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: 'batch', |
|
|
@ -634,20 +620,27 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage |
|
|
|
searchTitle: '要货计划信息', |
|
|
|
searchAllSchemas: PurchasePlanDetail.allSchemas, |
|
|
|
searchPage: PurchasePlanDetailApi.getPurchasePlanDetailPage |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
searchField: 'number', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage |
|
|
|
searchTitle: '要货计划信息', |
|
|
|
searchAllSchemas: PurchasePlanDetail.allSchemas, |
|
|
|
searchPage: PurchasePlanDetailApi.getPurchasePlanDetailPage, |
|
|
|
searchCondition: [ |
|
|
|
{ |
|
|
|
key: 'number', |
|
|
|
value: 'ppNumber', |
|
|
|
isMainValue: true |
|
|
|
}] |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '订单行', |
|
|
|
field: 'poLine', |
|
|
@ -656,23 +649,12 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'lineNumber', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
searchField: 'lineNumber', |
|
|
|
searchTitle: '采购订单信息', |
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -785,6 +767,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '物品代码', |
|
|
|
field: 'itemCode', |
|
|
@ -793,25 +776,15 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
|
componentProps: { |
|
|
|
isSearchList: true, |
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '物品基础信息', |
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
searchPage: ItembasicApi.getItembasicPage |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
isInpuFocusShow: true, |
|
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
|
searchField: 'code', |
|
|
|
searchTitle: '物品基础信息', |
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
searchPage: ItembasicApi.getItembasicPage |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
label: '备注', |
|
|
|
field: 'remark', |
|
|
@ -893,15 +866,21 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
{ |
|
|
|
label: '计量单位', |
|
|
|
field: 'uom', |
|
|
|
sort: 'custom', |
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
dictClass: 'string', |
|
|
|
isSearch: true, |
|
|
|
isTable: true, |
|
|
|
sort: 'custom', |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
componentProps: { |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
tableForm: { |
|
|
|
type: 'Select' |
|
|
|
disabled: true |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
@ -986,7 +965,7 @@ export const SupplierdeliverRequestDetail = useCrudSchemas(reactive<CrudSchema[] |
|
|
|
isDetail: false, |
|
|
|
isForm: false, |
|
|
|
table: { |
|
|
|
width: 150, |
|
|
|
width: 180, |
|
|
|
fixed: 'right' |
|
|
|
}, |
|
|
|
isTableForm: false, |
|
|
@ -1025,4 +1004,4 @@ export const SupplierdeliverRequestDetailRules = reactive({ |
|
|
|
itemCode: [ |
|
|
|
{ required: true, message: '请选择物品代码', trigger: 'change' } |
|
|
|
], |
|
|
|
}) |
|
|
|
}) |
|
|
|