Browse Source

Bom修改增加BomQty

master
zhaoxuebing 11 months ago
parent
commit
4bc7223508
  1. 3
      src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue
  2. 17
      src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

3
src/views/wms/productionManage/productrepair/productrepairRequestMain/index.vue

@ -86,6 +86,7 @@
class="w-[100%]"
:tableFields="BomDismantle.allSchemas.tableColumns"
:tableData="detatableDataBom.tableList"
:tableFormRules="ProductrepairBomDismantleRules"
:isShowButton="false"
:isShowReduceButton="false"
/>
@ -101,7 +102,7 @@
<script setup lang="ts">
import download from '@/utils/download'
import { ProductrepairRequestMain,ProductrepairRequestMainRules,ProductrepairRequestDetaila,ProductrepairRequestDetailaRules, ConsumereRequestDetailb, BomDismantle } from './productrepairRequestMain.data'
import { ProductrepairRequestMain,ProductrepairRequestMainRules,ProductrepairRequestDetaila,ProductrepairRequestDetailaRules, ConsumereRequestDetailb, BomDismantle,ProductrepairBomDismantleRules } from './productrepairRequestMain.data'
import * as ProductrepairRequestMainApi from '@/api/wms/productrepairRequestMain'
import * as ProductrepairRequestDetailApi from '@/api/wms/productrepairRequestDetaila'
import * as defaultButtons from '@/utils/disposition/defaultButtons'

17
src/views/wms/productionManage/productrepair/productrepairRequestMain/productrepairRequestMain.data.ts

@ -1152,6 +1152,16 @@ export const BomDismantle = useCrudSchemas(reactive<CrudSchema[]>([
disabled: true
}
},
{
label: 'Bom数量',
field: 'bomQty',
tableForm: {
disabled: true,
type: 'InputNumber',
min: 0,
precision: 6
}
},
{
label: '数量',
field: 'qty',
@ -1354,3 +1364,10 @@ export const BomDismantle = useCrudSchemas(reactive<CrudSchema[]>([
}
}
]))
//表单校验
export const ProductrepairBomDismantleRules = reactive({
qty: [
{ required: true, message: '请选择生产线代码', trigger: 'change'}
]
})

Loading…
Cancel
Save