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

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

@ -269,7 +269,7 @@
<script lang="ts" setup>
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
const props = defineProps({
//
//
isShowButton: {
type: Boolean,
default: true,
@ -284,6 +284,7 @@ const props = defineProps({
type: Boolean,
default: false,
},
//
isShowReduceButton:{
type: Boolean,
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[]>([
{
label: '生产线代码',
label: '拆解生产线代码',
field: 'productionLineCode',
sort: 'custom',
table: {
@ -485,7 +485,7 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
}
},
{
label: '工位代码',
label: '拆解工位代码',
field: 'workStationCode',
sort: 'custom',
table: {
@ -610,6 +610,22 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
disabled: true
}
},
{
label: '成品库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps:{
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '数量',
field: 'qty',
@ -769,22 +785,6 @@ export const ProductdismantleRequestDetaila = useCrudSchemas(reactive<CrudSchema
isTableForm: false,
isForm: false,
},
{
label: '从库位代码',
field: 'fromLocationCode',
sort: 'custom',
table: {
width: 150
},
form: {
componentProps:{
disabled: true
}
},
tableForm: {
disabled: true
}
},
{
label: '单据号',
field: 'number',

Loading…
Cancel
Save