Browse Source

基础表单 隐藏tableform 删除列按钮

master
陈薪名 11 months ago
parent
commit
77fc68316f
  1. 6
      src/components/BasicForm/src/BasicForm.vue
  2. 3
      src/components/TableForm/src/TableForm.vue
  3. 36
      src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

6
src/components/BasicForm/src/BasicForm.vue

@ -68,6 +68,7 @@
:tableData="tableData" :tableData="tableData"
:tableFormRules="tableFormRules" :tableFormRules="tableFormRules"
:isShowButton="isShowButton" :isShowButton="isShowButton"
:isShowReduceButton="isShowReduceButton"
@handleAddTable="handleAddTable" @handleAddTable="handleAddTable"
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
@tableSelectionChange="tableSelectionChange" @tableSelectionChange="tableSelectionChange"
@ -113,6 +114,11 @@ const props = defineProps({
type: Boolean, type: Boolean,
default: true default: true
}, },
// tableForm
isShowReduceButton: {
type: Boolean,
default: true
},
// rules // rules
rules: { rules: {
type: Object, type: Object,

3
src/components/TableForm/src/TableForm.vue

@ -269,7 +269,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
const props = defineProps({ const props = defineProps({
// //
isShowButton: { isShowButton: {
type: Boolean, type: Boolean,
default: true, default: true,
@ -284,6 +284,7 @@ const props = defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
//
isShowReduceButton:{ isShowReduceButton:{
type: Boolean, type: Boolean,
default: true, default: true,

36
src/views/wms/productionManage/productdismantle/productdismantleRequestMain/productdismantleRequestMain.data.ts

@ -440,7 +440,7 @@ export const ProductdismantleRequestMainRules = reactive({
*/ */
export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>([ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema[]>([
{ {
label: '生产线代码', label: '拆解生产线代码',
field: 'productionLineCode', field: 'productionLineCode',
sort: 'custom', sort: 'custom',
table: { table: {
@ -485,7 +485,7 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
} }
}, },
{ {
label: '工位代码', label: '拆解工位代码',
field: 'workStationCode', field: 'workStationCode',
sort: 'custom', sort: 'custom',
table: { table: {
@ -610,6 +610,22 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
disabled: true disabled: true
} }
}, },
{
label: '成品库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps:{
disabled: true
}
},
tableForm: {
disabled: true
}
},
{ {
label: '数量', label: '数量',
field: 'qty', field: 'qty',
@ -769,22 +785,6 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
isTableForm: false, isTableForm: false,
isForm: false, isForm: false,
}, },
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps:{
disabled: true
}
},
tableForm: {
disabled: true
}
},
{ {
label: '单据号', label: '单据号',
field: 'number', field: 'number',

Loading…
Cancel
Save