|
@ -23,6 +23,7 @@ const queryParams = { |
|
|
// 获取当前操作人的部门
|
|
|
// 获取当前操作人的部门
|
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { useUserStore } from '@/store/modules/user' |
|
|
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data' |
|
|
import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data' |
|
|
|
|
|
import { type } from 'os' |
|
|
const userStore = useUserStore() |
|
|
const userStore = useUserStore() |
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
const userDept = userStore.userSelfInfo.dept |
|
|
|
|
|
|
|
@ -471,32 +472,92 @@ export const PurchasereturnRequestMainRules = reactive({ |
|
|
*/ |
|
|
*/ |
|
|
export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
{ |
|
|
{ |
|
|
label: '包装号', |
|
|
label: '订单号', |
|
|
field: 'packingNumber', |
|
|
field: 'poNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '订单行', |
|
|
|
|
|
field: 'poLine', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物品代码', |
|
|
|
|
|
field: 'itemCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物品名称', |
|
|
|
|
|
field: 'itemName', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物品描述1', |
|
|
|
|
|
field: 'itemDesc1', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '物品描述2', |
|
|
|
|
|
field: 'itemDesc2', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '器具号', |
|
|
label: '从批次', |
|
|
field: 'containerNumber', |
|
|
field: 'fromBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '批次', |
|
|
label: '到批次', |
|
|
field: 'batch', |
|
|
field: 'toBatch', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '替代批次', |
|
|
label: '替代批次', |
|
@ -505,111 +566,226 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '从包装号', |
|
|
|
|
|
field: 'fromPackingNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到库位代码', |
|
|
label: '到包装号', |
|
|
field: 'toLocationCode', |
|
|
field: 'toPackingNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '从器具号', |
|
|
|
|
|
field: 'fromContainerNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '到器具号', |
|
|
|
|
|
field: 'toContainerNumber', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '数量', |
|
|
|
|
|
field: 'qty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true, |
|
|
|
|
|
type:'InputNumber', |
|
|
|
|
|
min:0, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '计量单位', |
|
|
|
|
|
field: 'uom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '标包数量', |
|
|
|
|
|
field: 'stdPackQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '标包单位', |
|
|
|
|
|
field: 'stdPackUnit', |
|
|
|
|
|
dictType: DICT_TYPE.PACK_UNIT, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
|
label: '供应商计量数量', |
|
|
|
|
|
field: 'supplierQty', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'InputNumber', |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '供应商计量单位', |
|
|
|
|
|
field: 'supplierUom', |
|
|
|
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '库存状态', |
|
|
label: '库存状态', |
|
|
field: 'inventoryStatus', |
|
|
field: 'inventoryStatus', |
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
dictType: DICT_TYPE.INVENTORY_STATUS, |
|
|
dictClass: 'string', |
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
isTable: true, |
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
tableForm: { |
|
|
disabled:true |
|
|
type: 'Select' |
|
|
} |
|
|
}, |
|
|
|
|
|
isForm: false |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '订单号', |
|
|
label: '从库位代码', |
|
|
field: 'poNumber', |
|
|
field: 'fromLocationCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
tableForm:{ |
|
|
isInpuFocusShow: true, |
|
|
disabled:true |
|
|
searchListPlaceholder: '请选择订单号', |
|
|
} |
|
|
searchField: 'number', |
|
|
}, |
|
|
searchTitle: '采购订单信息', |
|
|
{ |
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
label: '到库位代码', |
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage |
|
|
field: 'toLocationCode', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
tableForm:{ |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
disabled:true |
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择订单号', |
|
|
|
|
|
searchField: 'number', |
|
|
|
|
|
searchTitle: '采购订单信息', |
|
|
|
|
|
searchAllSchemas: PurchaseMain.allSchemas, |
|
|
|
|
|
searchPage: PurchaseMainApi.getPurchaseMainPage |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '订单行', |
|
|
label: '从库位组代码', |
|
|
field: 'poLine', |
|
|
field: 'fromLocationGroupCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
tableForm:{ |
|
|
isInpuFocusShow: true, |
|
|
disabled:true |
|
|
searchListPlaceholder: '请选择订单行', |
|
|
} |
|
|
searchField: 'lineNumber', |
|
|
}, |
|
|
searchTitle: '采购订单信息', |
|
|
{ |
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
label: '到库位组代码', |
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, |
|
|
field: 'toLocationGroupCode', |
|
|
searchCondition: [{ |
|
|
sort: 'custom', |
|
|
key:'number', |
|
|
table: { |
|
|
value:'poNumber', |
|
|
width: 150 |
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
|
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
tableForm:{ |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
disabled:true |
|
|
componentProps: { |
|
|
|
|
|
isSearchList: true, |
|
|
|
|
|
searchListPlaceholder: '请选择订单行', |
|
|
|
|
|
searchField: 'lineNumber', |
|
|
|
|
|
searchTitle: '采购订单信息', |
|
|
|
|
|
searchAllSchemas: PurchaseDetail.allSchemas, |
|
|
|
|
|
searchPage: PurchaseDetailApi.getPurchaseDetailPage, |
|
|
|
|
|
searchCondition: [{ |
|
|
|
|
|
key:'number', |
|
|
|
|
|
value:'poNumber', |
|
|
|
|
|
isMainValue: true |
|
|
|
|
|
}] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '原因', |
|
|
label: '从库区代码', |
|
|
field: 'reason', |
|
|
field: 'fromAreaCodes', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
tableForm:{ |
|
|
dictClass: 'string', |
|
|
disabled:true |
|
|
tableForm: { |
|
|
} |
|
|
type: 'Select' |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '到库区代码', |
|
|
|
|
|
field: 'toAreaCodes', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '从货主代码', |
|
|
label: '从货主代码', |
|
@ -618,8 +794,9 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '到货主代码', |
|
|
label: '到货主代码', |
|
@ -628,178 +805,241 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '单据号', |
|
|
label: '到货日期', |
|
|
field: 'number', |
|
|
field: 'arriveDate', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
|
|
|
form: { |
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
disabled: true |
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品代码', |
|
|
label: '生产日期', |
|
|
field: 'itemCode', |
|
|
field: 'produceDate', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 180 |
|
|
|
|
|
}, |
|
|
|
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
tableForm:{ |
|
|
tableForm:{ |
|
|
isInpuFocusShow: true, |
|
|
disabled:true |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
} |
|
|
searchField: 'code', |
|
|
}, |
|
|
searchTitle: '物品基础信息', |
|
|
{ |
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
label: '过期日期', |
|
|
searchPage: ItembasicApi.getItembasicPage |
|
|
field: 'expireDate', |
|
|
|
|
|
formatter: dateFormatter, |
|
|
|
|
|
detail: { |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
|
}, |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 180 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
// labelMessage: '信息提示说明!!!',
|
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
isSearchList: true, |
|
|
type: 'datetime', |
|
|
searchListPlaceholder: '请选择物品代码', |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
searchField: 'code', |
|
|
valueFormat: 'x', |
|
|
searchTitle: '物品基础信息', |
|
|
|
|
|
searchAllSchemas: Itembasic.allSchemas, |
|
|
|
|
|
searchPage: ItembasicApi.getItembasicPage |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品名称', |
|
|
label: '转换率', |
|
|
field: 'itemName', |
|
|
field: 'convertRate', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
form: { |
|
|
isForm: false |
|
|
component: 'InputNumber', |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述1', |
|
|
label: '目检结果', |
|
|
field: 'itemDesc1', |
|
|
field: 'visualInspectResult', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '物品描述2', |
|
|
label: '目检照片', |
|
|
field: 'itemDesc2', |
|
|
field: 'visualInspectPhotos', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '项目代码', |
|
|
label: '不合格原因', |
|
|
field: 'projectCode', |
|
|
field: 'failedReason', |
|
|
|
|
|
dictType: DICT_TYPE.PURCHASE_RETURN_REASON, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '数量', |
|
|
label: '单价', |
|
|
field: 'qty', |
|
|
field: 'singlePrice', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
form: { |
|
|
form: { |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
componentProps: { |
|
|
|
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
tableForm:{ |
|
|
type: 'InputNumber', |
|
|
disabled:true |
|
|
min: 1, |
|
|
|
|
|
precision: 6 |
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '计量单位', |
|
|
label: '金额', |
|
|
field: 'uom', |
|
|
field: 'amount', |
|
|
dictType: DICT_TYPE.UOM, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isTable: true, |
|
|
|
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
tableForm: { |
|
|
form: { |
|
|
type: 'Select' |
|
|
component: 'InputNumber', |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '备注', |
|
|
label: '任务明细ID', |
|
|
field: 'remark', |
|
|
field: 'jobDetailId', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm:false, |
|
|
|
|
|
isForm:false |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '创建者', |
|
|
label: '项目代码', |
|
|
field: 'creator', |
|
|
field: 'projectCode', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false, |
|
|
disabled:true |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
{ |
|
|
{ |
|
|
label: '创建时间', |
|
|
label: '单据号', |
|
|
field: 'createTime', |
|
|
field: 'number', |
|
|
formatter: dateFormatter, |
|
|
sort: 'custom', |
|
|
detail: { |
|
|
table: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm:false, |
|
|
|
|
|
isForm:false |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '代码', |
|
|
|
|
|
field: 'code', |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 180 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false, |
|
|
disabled:true |
|
|
form: { |
|
|
|
|
|
component: 'DatePicker', |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
style: {width:'100%'}, |
|
|
|
|
|
type: 'datetime', |
|
|
|
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
|
|
valueFormat: 'x', |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
isTableForm:false, |
|
|
|
|
|
isForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新者', |
|
|
label: '接口类型', |
|
|
field: 'updater', |
|
|
field: 'interfaceType', |
|
|
|
|
|
dictType: DICT_TYPE.INTERFACE_TYPE, |
|
|
|
|
|
dictClass: 'string', |
|
|
|
|
|
isSearch: true, |
|
|
|
|
|
isTable: true, |
|
|
sort: 'custom', |
|
|
sort: 'custom', |
|
|
table: { |
|
|
table: { |
|
|
width: 150 |
|
|
width: 150 |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false, |
|
|
disabled:true |
|
|
|
|
|
}, |
|
|
|
|
|
isForm:false, |
|
|
|
|
|
isTableForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '最后更新时间', |
|
|
label: '备注', |
|
|
field: 'updateTime', |
|
|
field: 'remark', |
|
|
|
|
|
sort: 'custom', |
|
|
|
|
|
table: { |
|
|
|
|
|
width: 150 |
|
|
|
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '创建时间', |
|
|
|
|
|
field: 'createTime', |
|
|
formatter: dateFormatter, |
|
|
formatter: dateFormatter, |
|
|
detail: { |
|
|
detail: { |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
|
dateFormat: 'YYYY-MM-DD HH:mm:ss' |
|
@ -811,25 +1051,29 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive<CrudSchema[]> |
|
|
form: { |
|
|
form: { |
|
|
component: 'DatePicker', |
|
|
component: 'DatePicker', |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
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', |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
isTableForm: false, |
|
|
tableForm:{ |
|
|
isForm: false, |
|
|
disabled:true |
|
|
|
|
|
}, |
|
|
|
|
|
isTableForm:false, |
|
|
|
|
|
isForm:false |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
label: '操作', |
|
|
label: '创建者', |
|
|
field: 'action', |
|
|
field: 'creator', |
|
|
isDetail: false, |
|
|
sort: 'custom', |
|
|
isForm: false , |
|
|
|
|
|
table: { |
|
|
table: { |
|
|
width: 150, |
|
|
width: 150 |
|
|
fixed: 'right' |
|
|
}, |
|
|
|
|
|
tableForm:{ |
|
|
|
|
|
disabled:true |
|
|
}, |
|
|
}, |
|
|
isTableForm:false, |
|
|
isTableForm:false, |
|
|
|
|
|
isForm:false |
|
|
} |
|
|
} |
|
|
])) |
|
|
])) |
|
|
|
|
|
|
|
|