+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
{{ $t('btn.search') }}
{{ $t('btn.reset') }}
@@ -82,12 +90,6 @@
-
-
-
-
-
-
@@ -102,7 +104,13 @@
-
+
+
+
@@ -121,20 +129,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -168,7 +162,7 @@ const queryParams = reactive({
})
const columns = ref([
// { visible: true, align: 'center', type: '', prop: 'id', label: '主键ID' },
- { visible: false, align: 'center', type: '', prop: 'typeCode', label: '类别编码', showOverflowTooltip: true },
+ { visible: true, align: 'center', type: '', prop: 'typeCode', label: '类别编码', showOverflowTooltip: true },
{ visible: true, align: 'center', type: '', prop: 'typeName', label: '类别名称', showOverflowTooltip: true },
{ visible: true, align: 'center', type: '', prop: 'transactionDirection', label: '操作方向', showOverflowTooltip: true },
{ visible: true, align: 'center', type: '', prop: 'description', label: '描述', showOverflowTooltip: true },
@@ -236,7 +230,7 @@ const state = reactive({
rules: {
typeCode: [{ required: true, message: '类别编码不能为空', trigger: 'blur' }],
typeName: [{ required: true, message: '类别名称不能为空', trigger: 'blur' }],
- transactionDirection: [{ required: true, message: '操作方向(入库/出库)不能为空', trigger: 'blur' }]
+ transactionDirection: [{ required: true, message: '操作方向不能为空', trigger: 'blur' }]
},
options: {
// 状态(停用/启用) 选项列表 格式 eg:{ dictLabel: '标签', dictValue: '0'}
@@ -249,9 +243,18 @@ const state = reactive({
dictValue: '启用',
dictLabel: '启用'
}
+ ],
+ transactionTypeOptions: [
+ {
+ dictValue: '入库',
+ dictLabel: '入库'
+ },
+ {
+ dictValue: '出库',
+ dictLabel: '出库'
+ }
]
- },
- transactionTypeOptions: []
+ }
})
const { form, rules, options, transactionTypeOptions, single, multiple } = toRefs(state)