|
@ -49,13 +49,7 @@ |
|
|
:apiCreate="BomApi.createBom" |
|
|
:apiCreate="BomApi.createBom" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
@searchTableSuccess="searchTableSuccess" |
|
|
:isBusiness="false" |
|
|
:isBusiness="false" |
|
|
> |
|
|
/> |
|
|
<template #productItemCode="form"> |
|
|
|
|
|
<div class="w-[100%] flex"> |
|
|
|
|
|
<el-input v-model="form['productItemCode']" :placeholder="'fffffffff'" @click="opensearchTable('productItemCode', 'code')" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
</BasicForm> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
<!-- 详情 --> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="Bom.allSchemas" /> |
|
|
<Detail ref="detailRef" :isBasic="true" :allSchemas="Bom.allSchemas" /> |
|
@ -161,17 +155,12 @@ const buttonTableClick = async (val, row) => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const form = ref() |
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
const opensearchTable = (formField, searchField) => { |
|
|
|
|
|
form.value = basicFormRef.value.formRef |
|
|
|
|
|
basicFormRef.value.opensearchTable(formField, searchField) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
// 查询页面返回 |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|
const searchTableSuccess = (formField, searchField, val, formRef) => { |
|
|