Browse Source

上传质量检测修改展示字段

master_hella_20240701
chenfang 7 months ago
parent
commit
77ca10be62
  1. 8
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
  2. 37
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts
  3. 5
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue
  4. 24
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

8
src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue

@ -185,10 +185,10 @@ const butttondata = (row,$index) => {
return [] return []
} }
return [ return [
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), // // defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
] ]
} }

37
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data.ts

@ -1,13 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
// 表单校验
export const SupplierdeliverInspectionDetailRules = reactive({
itemCode: [required],
uom: [required],
concurrencyStamp: [required],
})
export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '上传质检报告', label: '上传质检报告',
@ -20,14 +13,16 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
componentProps: { componentProps: {
upData:{ upData:{
tableId: '', tableId: '',
tableName: 'SupplierdeliverInspectionDetail' tableName: 'SupplierdeliverInspectionDetail',
}, },
limit:1, limit:1,
fileType:['apk'],
fileSize:100
} }
}, },
}, },
{ {
label: '代码', label: '物料代码',
field: 'itemCode', field: 'itemCode',
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
@ -49,14 +44,14 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
} }
}, },
{ {
label: '批次', label: '供应商批次',
field: 'batch', field: 'batch',
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
isSearch: true, isSearch: true,
}, },
{ {
label: '计划数量', label: '发货数量',
field: 'planQty', field: 'planQty',
sort: 'custom', sort: 'custom',
isForm:false, isForm:false,
@ -109,3 +104,23 @@ export const SupplierdeliverInspectionDetail = useCrudSchemas(reactive<CrudSchem
} }
} }
])) ]))
//表单校验
export const SupplierdeliverInspectionDetailRules = reactive({
uploadFile: [
{ required: true, message: '请上传文件', trigger: 'blur' }
],
itemCode: [
{ required: true, message: '请输入物料代码', trigger: 'blur' }
],
uom: [
{ required: true, message: '请输入计量单位', trigger: 'blur' }
],
batch: [
{ required: true, message: '请输入供应商批次', trigger: 'blur' }
],
planQty: [
{ required: true, message: '请输入发货数量', trigger: 'blur' }
],
})

5
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -138,6 +138,7 @@
@success="getList" @success="getList"
:formAllSchemas="SupplierdeliverInspectionDetail.allSchemas" :formAllSchemas="SupplierdeliverInspectionDetail.allSchemas"
:tableAllSchemas="SupplierdeliverInspectionDetail.allSchemas" :tableAllSchemas="SupplierdeliverInspectionDetail.allSchemas"
:tableFormRules="SupplierdeliverInspectionDetailRules"
:tableData="ploadQualityReportTableData" :tableData="ploadQualityReportTableData"
@handleAddTable="SupplierdeliverInspectionDetailApi.createSupplierdeliverInspectionDetail" @handleAddTable="SupplierdeliverInspectionDetailApi.createSupplierdeliverInspectionDetail"
@handleDeleteTable="SupplierdeliverInspectionDetailApi.deleteSupplierdeliverInspectionDetail" @handleDeleteTable="SupplierdeliverInspectionDetailApi.deleteSupplierdeliverInspectionDetail"
@ -165,9 +166,9 @@ import {
SupplierdeliverRequestDetail, SupplierdeliverRequestDetail,
SupplierdeliverRequestDetailRules, SupplierdeliverRequestDetailRules,
SupplierdeliverRequestDetailLabel, SupplierdeliverRequestDetailLabel,
SupplierdeliverRequestPackage SupplierdeliverRequestPackage,
} from './supplierdeliverRequestMain.data' } from './supplierdeliverRequestMain.data'
import {   SupplierdeliverInspectionDetail} from '../supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data' import {   SupplierdeliverInspectionDetail,SupplierdeliverInspectionDetailRules} from '../supplierdeliverInspectionDetail/supplierdeliverInspectionDetail.data'
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain'
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'

24
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverRequestMain.data.ts

@ -1649,7 +1649,9 @@ export const UploadQualityReport = useCrudSchemas(reactive<CrudSchema[]>([
componentProps: { componentProps: {
upData:{ upData:{
tableId: '', tableId: '',
tableName: 'UploadQualityReport' tableName: 'UploadQualityReport',
fileType:['apk'],
fileSize:100
}, },
limit:1, limit:1,
} }
@ -1681,7 +1683,16 @@ export const UploadQualityReport = useCrudSchemas(reactive<CrudSchema[]>([
} }
}, },
{ {
label: '数量', label: '供应商批次',
field: 'batch',
sort: 'custom',
isForm:false,
table: {
width: 150
},
},
{
label: '发货数量',
field: 'planQty', field: 'planQty',
table: { table: {
width: 150 width: 150
@ -1693,15 +1704,6 @@ export const UploadQualityReport = useCrudSchemas(reactive<CrudSchema[]>([
precision: 6 precision: 6
} }
}, },
{
label: '批次',
field: 'batch',
sort: 'custom',
isForm:false,
table: {
width: 150
},
},
])) ]))
export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([ export const SupplierdeliverRequestPackage = useCrudSchemas(reactive<CrudSchema[]>([
{ {

Loading…
Cancel
Save