Browse Source

基础bom修改

master
陈薪名 1 year ago
parent
commit
1541c240cf
  1. 13
      src/views/wms/basicDataManage/itemManage/bom/index.vue

13
src/views/wms/basicDataManage/itemManage/bom/index.vue

@ -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) => {

Loading…
Cancel
Save