+
+
@@ -53,6 +73,7 @@ import { SearchTable } from '@/components/SearchTable'
import * as defaultButtons from '@/utils/disposition/defaultButtons'
import ButtonBase from '@/components/XButton/src/ButtonBase.vue'
import TableForm from '@/components/TableForm/src/TableForm.vue'
+import TableFormCountPlan from '@/components/TableFormCountPlan/src/TableFormCountPlan.vue'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
const props = defineProps({
@@ -143,6 +164,11 @@ const props = defineProps({
type: String,
required: false,
default: ''
+ },
+ countScopeType: {
+ type: Array,
+ required: false,
+ default: null
}
})
@@ -156,7 +182,9 @@ const formType = ref('') // 表单的类型:create - 新增;update - 修改
const formRef = ref() // 表单 Ref
const formSchema = ref(props.formAllSchemas?.formSchema)
-console.log('props.formAllSchemas',props.formAllSchemas)
+const tableAllSchemas = ref(props.tableAllSchemas)
+const tableFormRules = ref(props.tableFormRules)
+console.log('tableAllSchemas', tableAllSchemas.value)
/** 弹层操作 */
// formField form表单中的字段
@@ -179,7 +207,7 @@ const opensearchTable = (
// 判断查询条件中,是否存在指向主表的数据
if (searchCondition && searchCondition.length > 0) {
// 转换筛选条件所需
- let filters:any[] = []
+ let filters: any[] = []
searchCondition.forEach((item) => {
// 查询条件为主表某字段,需要赋值主表数据,数据来源是详情的,赋值需要从row中获取
// 20231127 row[item.value]?row[item.value] 修改为 row?row[item.value] 返回'null' 为了查询不到任何数据
@@ -348,14 +376,15 @@ const emit = defineEmits([
'searchTableSuccess',
'opensearchTable',
'submitForm',
- 'selectChange'
+ 'selectChange',
+ 'tableFormChange'
])
//普通下拉改变事件
-const formSelectChange = (field, val,row) => {
- emit('formSelectChange', field, val,row)
+const formSelectChange = (field, val, row) => {
+ emit('formSelectChange', field, val, row)
}
-const formSelectvVisibleChange = (field, val,row) => {
- emit('formSelectvVisibleChange', field, val,row)
+const formSelectvVisibleChange = (field, val, row) => {
+ emit('formSelectvVisibleChange', field, val, row)
}
// 点击selection框
const tableSelectionChange = (val) => {
@@ -385,8 +414,6 @@ const handleAddTable = () => {
}
// 输入框聚焦
const inpuFocus = (headerItem, row, index) => {
- console.log(headerItem.tableForm.multiple)
-
opensearchTable(
headerItem.field,
headerItem.tableForm.searchField,
@@ -399,16 +426,56 @@ const inpuFocus = (headerItem, row, index) => {
row
)
}
+
// 修改盘点类型
-const selectChange=((field,val)=>{
-emit('selectChange',field,val)
-})
+const selectChange = (field, val) => {
+ emit('selectChange', field, val)
+}
+
+const tableFormChange = (field, val, row) => {
+ emit('tableFormChange', field, val, row)
+}
diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue
index a221dd247..0eddf4f7d 100644
--- a/src/components/Detail/src/Detail.vue
+++ b/src/components/Detail/src/Detail.vue
@@ -46,7 +46,7 @@
:columns="2"
/>