|
|
|
@ -18,7 +18,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts">
|
|
|
|
|
import { defineComponent } from 'vue'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { FormSchema } from '/@/components/Table'
|
|
|
|
|
// 表单编辑接口
|
|
|
|
|
import { editCodeGoodsType } from '/@/views/baseinfo/formset/api'
|
|
|
|
@ -56,7 +56,7 @@
|
|
|
|
|
name: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
setup(props, context) {
|
|
|
|
|
const { t } = useI18n()
|
|
|
|
@ -74,6 +74,7 @@
|
|
|
|
|
required: item.required || false,
|
|
|
|
|
colProps: item.colProps || { span: 24 },
|
|
|
|
|
component: item.component,
|
|
|
|
|
slot: item.slot,
|
|
|
|
|
}
|
|
|
|
|
// 定义默认显示字段
|
|
|
|
|
if (item.show !== false) {
|
|
|
|
@ -95,12 +96,11 @@
|
|
|
|
|
columns: columns,
|
|
|
|
|
}),
|
|
|
|
|
}
|
|
|
|
|
editCodeGoodsType(Apidata)
|
|
|
|
|
.then((res) => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('添加成功!')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
editCodeGoodsType(Apidata).then((res) => {
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
createMessage.success('添加成功!')
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
t,
|
|
|
|
|