Browse Source

采购收回退货申请主子表数据显示

master
zhang_li 1 year ago
parent
commit
04037a6bb5
  1. 5
      src/api/wms/purchasereceiptRecordDetail/index.ts
  2. 6
      src/components/TableForm/src/TableForm.vue
  3. 308
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts
  4. 25
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue
  5. 580
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

5
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 }) 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) => { export const getPurchasereceiptRecordDetail = async (id: number) => {
return await request.get({ url: `/wms/purchasereceipt-record-detail/get?id=` + id }) return await request.get({ url: `/wms/purchasereceipt-record-detail/get?id=` + id })

6
src/components/TableForm/src/TableForm.vue

@ -16,7 +16,7 @@
<el-table-column <el-table-column
fixed="left" fixed="left"
:width="50" :width="50"
v-if="isShowButton" v-if="isShowReduceButton"
v-slot="{ row, $index }" v-slot="{ row, $index }"
> >
<Icon icon="ep:remove" color="#757575" size="26" style="cursor: pointer;margin-top: -16px;" @click="handleDeleteTable (row, $index)" /> <Icon icon="ep:remove" color="#757575" size="26" style="cursor: pointer;margin-top: -16px;" @click="handleDeleteTable (row, $index)" />
@ -273,6 +273,10 @@ const props = defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
isShowReduceButton:{
type: Boolean,
default: true,
},
// //
tableLoading: { tableLoading: {
type: Boolean, type: Boolean,

308
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRecordMain/purchasereceiptRecordMain.data.ts

@ -389,32 +389,48 @@ export const PurchasereceiptRecordMainRules = reactive({
*/ */
export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '从包装号', label: '订单号',
field: 'fromPackingNumber', field: 'poNumber',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到包装号', label: '订单行',
field: 'toPackingNumber', field: 'poLine',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从器具号', label: '物品代码',
field: 'fromContainerNumber', field: 'itemCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到器具号', label: '物品名称',
field: 'toContainerNumber', field: 'itemName',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述1',
field: 'itemDesc1',
sort: 'custom',
table: {
width: 150
},
},
{
label: '物品描述2',
field: 'itemDesc2',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
@ -445,69 +461,52 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
}, },
}, },
{ {
label: '到货日期', label: '从包装号',
field: 'arriveDate', field: 'fromPackingNumber',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
},
form: {
component: 'DatePicker',
componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
}, },
}, },
{ {
label: '生产日期', label: '到包装号',
field: 'produceDate', field: 'toPackingNumber',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { },
component: 'DatePicker', {
componentProps: { label: '从器具号',
type: 'datetime', field: 'fromContainerNumber',
dateFormat: 'YYYY-MM-DD HH:mm:ss', sort: 'custom',
valueFormat: 'x', table: {
} width: 150
}, },
}, },
{ {
label: '过期日期', label: '到器具号',
field: 'expireDate', field: 'toContainerNumber',
formatter: dateFormatter, sort: 'custom',
detail: { table: {
dateFormat: 'YYYY-MM-DD HH:mm:ss' width: 150
}, },
},
{
label: '数量',
field: 'qty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 180 width: 150
}, },
form: { form: {
component: 'DatePicker', component: 'InputNumber',
componentProps: { }
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '库存状态', label: '计量单位',
field: 'inventoryStatus', field: 'uom',
dictType: DICT_TYPE.INVENTORY_STATUS, dictType: DICT_TYPE.UOM,
dictClass: 'string', dictClass: 'string',
isSearch: true, isSearch: true,
isTable: true, isTable: true,
@ -516,153 +515,189 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 width: 150
}, },
}, },
{ {
label: '从库位代码', label: '标包数量',
field: 'fromLocationCode', field: 'stdPackQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '到库位代码', label: '标包单位',
field: 'toLocationCode', field: 'stdPackUnit',
dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库位组代码', label: '供应商计量数量',
field: 'fromLocationGroupCode', field: 'supplierQty',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '到库位组代码', label: '供应商计量单位',
field: 'toLocationGroupCode', field: 'supplierUom',
dictType: DICT_TYPE.UOM,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从库区代码', label: '库存状态',
field: 'fromAreaCodes', field: 'inventoryStatus',
dictType: DICT_TYPE.INVENTORY_STATUS,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到库区代码', label: '从库位代码',
field: 'toAreaCodes', field: 'fromLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '从货主代码', label: '到库位代码',
field: 'fromOwnerCode', field: 'toLocationCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '到货主代码', label: '从库位组代码',
field: 'toOwnerCode', field: 'fromLocationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '订单号', label: '到库位组代码',
field: 'poNumber', field: 'toLocationGroupCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '订单行', label: '从库区代码',
field: 'poLine', field: 'fromAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '标包数量', label: '到库区代码',
field: 'stdPackQty', field: 'toAreaCodes',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '标包单位', label: '从货主代码',
field: 'stdPackUnit', field: 'fromOwnerCode',
dictType: DICT_TYPE.PACK_UNIT,
dictClass: 'string',
isSearch: true,
isTable: true,
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
}, },
{ {
label: '数量', label: '到货主代码',
field: 'qty', field: 'toOwnerCode',
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 150
}, },
form: {
component: 'InputNumber',
}
}, },
{ {
label: '计量单位', label: '到货日期',
field: 'uom', field: 'arriveDate',
dictType: DICT_TYPE.UOM, formatter: dateFormatter,
dictClass: 'string', detail: {
isSearch: true, dateFormat: 'YYYY-MM-DD HH:mm:ss'
isTable: true, },
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',
}
}, },
}, },
{ {
label: '供应商计量数量', label: '生产日期',
field: 'supplierQty', field: 'produceDate',
formatter: dateFormatter,
detail: {
dateFormat: 'YYYY-MM-DD HH:mm:ss'
},
sort: 'custom', sort: 'custom',
table: { table: {
width: 150 width: 180
}, },
form: { form: {
component: 'InputNumber', component: 'DatePicker',
} componentProps: {
type: 'datetime',
dateFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'x',
}
},
}, },
{ {
label: '供应商计量单位', label: '过期日期',
field: 'supplierUom', field: 'expireDate',
dictType: DICT_TYPE.UOM, formatter: dateFormatter,
dictClass: 'string', detail: {
isSearch: true, dateFormat: 'YYYY-MM-DD HH:mm:ss'
isTable: true, },
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',
}
}, },
}, },
{ {
@ -734,38 +769,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 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: '项目代码', label: '项目代码',
field: 'projectCode', field: 'projectCode',
@ -774,29 +778,7 @@ export const PurchasereceiptRecordDetail = useCrudSchemas(reactive<CrudSchema[]>
width: 150 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: '单据号', label: '单据号',
field: 'number', field: 'number',

25
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/index.vue

@ -50,6 +50,7 @@
:apiUpdate="PurchasereturnRequestMainApi.updatePurchasereturnRequestMain" :apiUpdate="PurchasereturnRequestMainApi.updatePurchasereturnRequestMain"
:apiCreate="PurchasereturnRequestMainApi.createPurchasereturnRequestMain" :apiCreate="PurchasereturnRequestMainApi.createPurchasereturnRequestMain"
:isBusiness="true" :isBusiness="true"
:isShowButton="false"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@ -80,6 +81,7 @@ import download from '@/utils/download'
import { PurchasereturnRequestMain,PurchasereturnRequestMainRules,PurchasereturnRequestDetail,PurchasereturnRequestDetailRules } from './purchasereturnRequestMain.data' import { PurchasereturnRequestMain,PurchasereturnRequestMainRules,PurchasereturnRequestDetail,PurchasereturnRequestDetailRules } from './purchasereturnRequestMain.data'
import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMain' import * as PurchasereturnRequestMainApi from '@/api/wms/purchasereturnRequestMain'
import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail' import * as PurchasereturnRequestDetailApi from '@/api/wms/purchasereturnRequestDetail'
import * as PurchasereceiptRecordDetailApi from '@/api/wms/purchasereceiptRecordDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' 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[formField] = val[0][searchField]
setV['purchaseReceiptRecordNumber'] = val[0]['number'] setV['purchaseReceiptRecordNumber'] = val[0]['number']
setV['supplierCode'] = val[0]['supplierCode'] 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) formRef.setValues(setV)
} }
}) })

580
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnRequestMain/purchasereturnRequestMain.data.ts

@ -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
} }
])) ]))

Loading…
Cancel
Save