diff --git a/src/api/wms/purchasereceiptRecordDetail/index.ts b/src/api/wms/purchasereceiptRecordDetail/index.ts index 95fe8a300..2b97df643 100644 --- a/src/api/wms/purchasereceiptRecordDetail/index.ts +++ b/src/api/wms/purchasereceiptRecordDetail/index.ts @@ -58,7 +58,10 @@ export const getPurchasereceiptRecordDetailPage = async (params) => { return await request.get({ url: `/wms/purchasereceipt-record-detail/page`, params }) } } - +// 查询采购收货记录子列表 +export const getPurchasereceiptRecordDetailList = async (params) => { + return await request.get({ url: `/wms/purchasereceipt-record-detail/list`, params }) +} // 查询采购收货记录子详情 export const getPurchasereceiptRecordDetail = async (id: number) => { return await request.get({ url: `/wms/purchasereceipt-record-detail/get?id=` + id }) diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue index 0616da154..93e8260b4 100644 --- a/src/components/TableForm/src/TableForm.vue +++ b/src/components/TableForm/src/TableForm.vue @@ -16,7 +16,7 @@ @@ -273,6 +273,10 @@ const props = defineProps({ type: Boolean, default: false, }, + isShowReduceButton:{ + type: Boolean, + default: true, + }, // 加载状态 tableLoading: { type: Boolean, diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts index 068cec2ab..6e4b5991d 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts @@ -389,32 +389,48 @@ export const PurchasereceiptRecordMainRules = reactive({ */ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive([ { - label: '从包装号', - field: 'fromPackingNumber', + label: '订单号', + field: 'poNumber', sort: 'custom', table: { width: 150 }, }, { - label: '到包装号', - field: 'toPackingNumber', + label: '订单行', + field: 'poLine', sort: 'custom', table: { width: 150 }, }, { - label: '从器具号', - field: 'fromContainerNumber', + label: '物品代码', + field: 'itemCode', sort: 'custom', table: { width: 150 }, }, { - label: '到器具号', - field: 'toContainerNumber', + label: '物品名称', + field: 'itemName', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '物品描述1', + field: 'itemDesc1', + sort: 'custom', + table: { + width: 150 + }, + }, + { + label: '物品描述2', + field: 'itemDesc2', sort: 'custom', table: { width: 150 @@ -445,69 +461,52 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive }, }, { - label: '到货日期', - field: 'arriveDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, + label: '从包装号', + field: 'fromPackingNumber', sort: 'custom', table: { - width: 180 - }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } + width: 150 }, }, { - label: '生产日期', - field: 'produceDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, + label: '到包装号', + field: 'toPackingNumber', sort: 'custom', table: { - width: 180 + width: 150 }, - form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } + }, + { + label: '从器具号', + field: 'fromContainerNumber', + sort: 'custom', + table: { + width: 150 }, }, { - label: '过期日期', - field: 'expireDate', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' + label: '到器具号', + field: 'toContainerNumber', + sort: 'custom', + table: { + width: 150 }, + }, + { + label: '数量', + field: 'qty', sort: 'custom', table: { - width: 180 + width: 150 }, form: { - component: 'DatePicker', - componentProps: { - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } - }, + component: 'InputNumber', + } }, { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: true, isTable: true, @@ -516,153 +515,189 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive width: 150 }, }, + { - label: '从库位代码', - field: 'fromLocationCode', + label: '标包数量', + field: 'stdPackQty', sort: 'custom', table: { width: 150 }, + form: { + component: 'InputNumber', + } }, { - label: '到库位代码', - field: 'toLocationCode', + label: '标包单位', + field: 'stdPackUnit', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 }, }, + { - label: '从库位组代码', - field: 'fromLocationGroupCode', + label: '供应商计量数量', + field: 'supplierQty', sort: 'custom', table: { width: 150 }, + form: { + component: 'InputNumber', + } }, { - label: '到库位组代码', - field: 'toLocationGroupCode', + label: '供应商计量单位', + field: 'supplierUom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 }, }, + { - label: '从库区代码', - field: 'fromAreaCodes', + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 }, }, { - label: '到库区代码', - field: 'toAreaCodes', + label: '从库位代码', + field: 'fromLocationCode', sort: 'custom', table: { width: 150 }, }, { - label: '从货主代码', - field: 'fromOwnerCode', + label: '到库位代码', + field: 'toLocationCode', sort: 'custom', table: { width: 150 }, }, { - label: '到货主代码', - field: 'toOwnerCode', + label: '从库位组代码', + field: 'fromLocationGroupCode', sort: 'custom', table: { width: 150 }, }, { - label: '订单号', - field: 'poNumber', + label: '到库位组代码', + field: 'toLocationGroupCode', sort: 'custom', table: { width: 150 }, }, { - label: '订单行', - field: 'poLine', + label: '从库区代码', + field: 'fromAreaCodes', sort: 'custom', table: { width: 150 }, }, { - label: '标包数量', - field: 'stdPackQty', + label: '到库区代码', + field: 'toAreaCodes', sort: 'custom', table: { width: 150 }, - form: { - component: 'InputNumber', - } }, { - label: '标包单位', - field: 'stdPackUnit', - dictType: DICT_TYPE.PACK_UNIT, - dictClass: 'string', - isSearch: true, - isTable: true, + label: '从货主代码', + field: 'fromOwnerCode', sort: 'custom', table: { width: 150 }, }, { - label: '数量', - field: 'qty', + label: '到货主代码', + field: 'toOwnerCode', sort: 'custom', table: { width: 150 }, - form: { - component: 'InputNumber', - } }, { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isSearch: true, - isTable: true, + label: '到货日期', + field: 'arriveDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, sort: 'custom', table: { - width: 150 + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } }, }, { - label: '供应商计量数量', - field: 'supplierQty', + label: '生产日期', + field: 'produceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, sort: 'custom', table: { - width: 150 + width: 180 }, form: { - component: 'InputNumber', - } + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, }, { - label: '供应商计量单位', - field: 'supplierUom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isSearch: true, - isTable: true, + label: '过期日期', + field: 'expireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, sort: 'custom', table: { - width: 150 + width: 180 + }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } }, }, { @@ -734,38 +769,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive width: 150 }, }, - { - label: '物品代码', - field: 'itemCode', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '物品名称', - field: 'itemName', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '物品描述1', - field: 'itemDesc1', - sort: 'custom', - table: { - width: 150 - }, - }, - { - label: '物品描述2', - field: 'itemDesc2', - sort: 'custom', - table: { - width: 150 - }, - }, + { label: '项目代码', field: 'projectCode', @@ -774,29 +778,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive width: 150 }, }, - { - label: '数量', - field: 'qty', - sort: 'custom', - table: { - width: 150 - }, - form: { - component: 'InputNumber', - } - }, - { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isSearch: true, - isTable: true, - sort: 'custom', - table: { - width: 150 - }, - }, + { label: '单据号', field: 'number', diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue index 84b53ce4d..28390049f 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue @@ -50,6 +50,7 @@ :apiUpdate="PurchasereturnRequestMainApi.updatePurchasereturnRequestMain" :apiCreate="PurchasereturnRequestMainApi.createPurchasereturnRequestMain" :isBusiness="true" + :isShowButton="false" @handleAddTable="handleAddTable" @handleDeleteTable="handleDeleteTable" @searchTableSuccess="searchTableSuccess" @@ -80,6 +81,7 @@ import download from '@/utils/download' import { PurchasereturnRequestMain,PurchasereturnRequestMainRules,PurchasereturnRequestDetail,PurchasereturnRequestDetailRules } from './purchasereturnRequestMain.data' import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMain' import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' +import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail' import * as defaultButtons from '@/utils/disposition/defaultButtons' // 采购退货申请 @@ -109,6 +111,29 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => setV[formField] = val[0][searchField] setV['purchaseReceiptRecordNumber'] = val[0]['number'] setV['supplierCode'] = val[0]['supplierCode'] + // 获取子表数据 getBomDisassemble + PurchasereceiptRecordDetailApi.getPurchasereceiptRecordDetailList({ + masterId: val[0]['id']}).then(res => { + if (res) tableData.value = res + console.log(PurchasereturnRequestDetail.allSchemas.tableFormColumns) + + PurchasereturnRequestDetail.allSchemas.tableFormColumns.map(item => { + // if(item.field == 'qty') { + // item.tableForm.disabled = false + // tableData.value.forEach(cur=>{ + // item.tableForm.max = cur['qty'] + // }) + // } + if(item.field == 'remark') { + item.tableForm.disabled = false + } + if(item.field == 'failedReason') { + item.tableForm.disabled = false + } + }) + }).catch(err => { + console.log(err) + }) formRef.setValues(setV) } }) diff --git a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts index 6f679c041..bebff112a 100644 --- a/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts +++ b/src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts @@ -23,6 +23,7 @@ const queryParams = { // 获取当前操作人的部门 import { useUserStore } from '@/store/modules/user' import { PurchaseDetail, PurchaseMain } from '../../supplierdeliver/purchaseMain/purchaseMain.data' +import { type } from 'os' const userStore = useUserStore() const userDept = userStore.userSelfInfo.dept @@ -471,32 +472,92 @@ export const PurchasereturnRequestMainRules = reactive({ */ export const PurchasereturnRequestDetail = useCrudSchemas(reactive([ { - label: '包装号', - field: 'packingNumber', + label: '订单号', + field: 'poNumber', sort: 'custom', table: { width: 150 }, - isTableForm: false, - isForm: false + tableForm:{ + disabled:true + } }, { - label: '器具号', - field: 'containerNumber', + label: '订单行', + field: 'poLine', sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '批次', - field: 'batch', + 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', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '从批次', + field: 'fromBatch', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '到批次', + field: 'toBatch', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } }, { label: '替代批次', @@ -504,112 +565,227 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '到库位代码', - field: 'toLocationCode', + label: '从包装号', + field: 'fromPackingNumber', sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '库存状态', - field: 'inventoryStatus', - dictType: DICT_TYPE.INVENTORY_STATUS, - dictClass: 'string', - isTable: true, + label: '到包装号', + 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 }, - isTableForm: false, - tableForm: { - type: 'Select' + form: { + component: 'InputNumber', }, - isForm: false + tableForm:{ + disabled:true, + type:'InputNumber', + min:0, + } }, { - label: '订单号', - field: 'poNumber', + label: '计量单位', + field: 'uom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 - }, + }, tableForm:{ - isInpuFocusShow: true, - searchListPlaceholder: '请选择订单号', - searchField: 'number', - searchTitle: '采购订单信息', - searchAllSchemas: PurchaseMain.allSchemas, - searchPage: PurchaseMainApi.getPurchaseMainPage + disabled:true + } + }, + + { + label: '标包数量', + field: 'stdPackQty', + sort: 'custom', + table: { + width: 150 }, form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, - searchListPlaceholder: '请选择订单号', - searchField: 'number', - searchTitle: '采购订单信息', - searchAllSchemas: PurchaseMain.allSchemas, - searchPage: PurchaseMainApi.getPurchaseMainPage - } + component: 'InputNumber', + }, + tableForm:{ + disabled:true } }, { - label: '订单行', - field: 'poLine', + label: '标包单位', + field: 'stdPackUnit', + dictType: DICT_TYPE.PACK_UNIT, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 - }, + }, tableForm:{ - isInpuFocusShow: true, - searchListPlaceholder: '请选择订单行', - searchField: 'lineNumber', - searchTitle: '采购订单信息', - searchAllSchemas: PurchaseDetail.allSchemas, - searchPage: PurchaseDetailApi.getPurchaseDetailPage, - searchCondition: [{ - key:'number', - value:'poNumber', - isMainValue: true - }] + disabled:true + } + }, + + { + label: '供应商计量数量', + field: 'supplierQty', + sort: 'custom', + table: { + width: 150 }, form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - isSearchList: true, - searchListPlaceholder: '请选择订单行', - searchField: 'lineNumber', - searchTitle: '采购订单信息', - searchAllSchemas: PurchaseDetail.allSchemas, - searchPage: PurchaseDetailApi.getPurchaseDetailPage, - searchCondition: [{ - key:'number', - value:'poNumber', - isMainValue: true - }] - } + component: 'InputNumber', + }, + tableForm:{ + disabled:true } }, { - label: '原因', - field: 'reason', + label: '供应商计量单位', + field: 'supplierUom', + dictType: DICT_TYPE.UOM, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 - }, - dictType: DICT_TYPE.PURCHASE_RETURN_REASON, + }, + tableForm:{ + disabled:true + } + }, + + { + label: '库存状态', + field: 'inventoryStatus', + dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', - tableForm: { - type: 'Select' - }, + isSearch: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '从库位代码', + field: 'fromLocationCode', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '到库位代码', + field: 'toLocationCode', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '从库位组代码', + field: 'fromLocationGroupCode', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '到库位组代码', + field: 'toLocationGroupCode', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '从库区代码', + field: 'fromAreaCodes', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '到库区代码', + field: 'toAreaCodes', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } }, { label: '从货主代码', @@ -617,9 +793,10 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { label: '到货主代码', @@ -627,179 +804,242 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '单据号', - field: 'number', + label: '到货日期', + field: 'arriveDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, sort: 'custom', table: { - width: 150 + width: 180 }, - isTableForm: false, form: { + component: 'DatePicker', componentProps: { - disabled: true + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', } + }, + tableForm:{ + disabled:true } }, { - label: '物品代码', - field: 'itemCode', + label: '生产日期', + field: 'produceDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, sort: 'custom', table: { - width: 150 + width: 180 }, + form: { + component: 'DatePicker', + componentProps: { + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', + } + }, tableForm:{ - isInpuFocusShow: true, - searchListPlaceholder: '请选择物品代码', - searchField: 'code', - searchTitle: '物品基础信息', - searchAllSchemas: Itembasic.allSchemas, - searchPage: ItembasicApi.getItembasicPage + disabled:true + } + }, + { + label: '过期日期', + field: 'expireDate', + formatter: dateFormatter, + detail: { + dateFormat: 'YYYY-MM-DD HH:mm:ss' + }, + sort: 'custom', + table: { + width: 180 }, form: { - // labelMessage: '信息提示说明!!!', + component: 'DatePicker', componentProps: { - isSearchList: true, - searchListPlaceholder: '请选择物品代码', - searchField: 'code', - searchTitle: '物品基础信息', - searchAllSchemas: Itembasic.allSchemas, - searchPage: ItembasicApi.getItembasicPage + type: 'datetime', + dateFormat: 'YYYY-MM-DD HH:mm:ss', + valueFormat: 'x', } + }, + tableForm:{ + disabled:true } }, { - label: '物品名称', - field: 'itemName', + label: '转换率', + field: 'convertRate', sort: 'custom', table: { width: 150 }, - isTableForm: false, - isForm: false + form: { + component: 'InputNumber', + }, + tableForm:{ + disabled:true + } }, { - label: '物品描述1', - field: 'itemDesc1', + label: '目检结果', + field: 'visualInspectResult', sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '物品描述2', - field: 'itemDesc2', + label: '目检照片', + field: 'visualInspectPhotos', sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '项目代码', - field: 'projectCode', + label: '不合格原因', + field: 'failedReason', + dictType: DICT_TYPE.PURCHASE_RETURN_REASON, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false + }, + tableForm:{ + disabled:true + } }, { - label: '数量', - field: 'qty', + label: '单价', + field: 'singlePrice', sort: 'custom', table: { width: 150 }, form: { component: 'InputNumber', - componentProps: { - min: 1, - precision: 6 - }, - }, - tableForm: { - type: 'InputNumber', - min: 1, - precision: 6 + }, + tableForm:{ + disabled:true } }, { - label: '计量单位', - field: 'uom', - dictType: DICT_TYPE.UOM, - dictClass: 'string', - isTable: true, + label: '金额', + field: 'amount', sort: 'custom', table: { width: 150 }, - tableForm: { - type: 'Select' + form: { + component: 'InputNumber', + }, + tableForm:{ + disabled:true } }, { - label: '备注', - field: 'remark', + label: '任务明细ID', + field: 'jobDetailId', sort: 'custom', table: { width: 150 + }, + tableForm:{ + disabled:true }, + isTableForm:false, + isForm:false }, + { - label: '创建者', - field: 'creator', + label: '项目代码', + field: 'projectCode', sort: 'custom', table: { width: 150 - }, - isTableForm: false, - isForm: false, + }, + tableForm:{ + disabled:true + } }, + { - label: '创建时间', - field: 'createTime', - formatter: dateFormatter, - detail: { - dateFormat: 'YYYY-MM-DD HH:mm:ss' - }, + label: '单据号', + field: 'number', sort: 'custom', table: { - width: 180 + width: 150 + }, + tableForm:{ + disabled:true }, - isTableForm: false, - isForm: false, - form: { - component: 'DatePicker', - componentProps: { - style: {width:'100%'}, - type: 'datetime', - dateFormat: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - } + isTableForm:false, + isForm:false + }, + { + label: '代码', + field: 'code', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true }, + isTableForm:false, + isForm:false }, { - label: '最后更新者', - field: 'updater', + label: '接口类型', + field: 'interfaceType', + dictType: DICT_TYPE.INTERFACE_TYPE, + dictClass: 'string', + isSearch: true, + isTable: true, sort: 'custom', table: { width: 150 + }, + tableForm:{ + disabled:true }, - isTableForm: false, - isForm: false, + isForm:false, + isTableForm:false }, { - label: '最后更新时间', - field: 'updateTime', + label: '备注', + field: 'remark', + sort: 'custom', + table: { + width: 150 + }, + tableForm:{ + disabled:true + } + }, + { + label: '创建时间', + field: 'createTime', formatter: dateFormatter, detail: { dateFormat: 'YYYY-MM-DD HH:mm:ss' @@ -811,25 +1051,29 @@ export const PurchasereturnRequestDetail = useCrudSchemas(reactive form: { component: 'DatePicker', componentProps: { - style: {width:'100%'}, type: 'datetime', dateFormat: 'YYYY-MM-DD HH:mm:ss', valueFormat: 'x', } + }, + tableForm:{ + disabled:true }, - isTableForm: false, - isForm: false, + isTableForm:false, + isForm:false }, { - label: '操作', - field: 'action', - isDetail: false, - isForm: false , + label: '创建者', + field: 'creator', + sort: 'custom', table: { - width: 150, - fixed: 'right' + width: 150 + }, + tableForm:{ + disabled:true }, isTableForm:false, + isForm:false } ]))