|
@@ -52,6 +52,29 @@
|
|
<a-input v-model="queryParam.initNo" placeholder="模糊查询"/>
|
|
<a-input v-model="queryParam.initNo" placeholder="模糊查询"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
|
+ <a-form-item label="关联设备">
|
|
|
|
+ <a-input v-model="queryParam.model" placeholder="新号/旧号/名称/规格"/>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
|
|
+ <a-col :md="8" :sm="24">
|
|
|
|
+ <a-form-item
|
|
|
|
+ label="仓库"
|
|
|
|
+ :labelCol="BaseTool.Constant.labelCol"
|
|
|
|
+ :wrapperCol="BaseTool.Constant.wrapperCol"
|
|
|
|
+ >
|
|
|
|
+ <a-tree-select
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
|
+ :treeData="storeTreeDate"
|
|
|
|
+ :treeNodeFilterProp="'title'"
|
|
|
|
+ :showSearch="true"
|
|
|
|
+ v-model="queryParam.storeId"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ >
|
|
|
|
+ </a-tree-select>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </a-col>
|
|
<a-col :md="8 || 24" :sm="24">
|
|
<a-col :md="8 || 24" :sm="24">
|
|
<span class="table-page-search-submitButtons">
|
|
<span class="table-page-search-submitButtons">
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
@@ -98,6 +121,7 @@ import { STable, Ellipsis } from '@/components'
|
|
import Detail from './Detail'
|
|
import Detail from './Detail'
|
|
import { getSpareStorePage, fetchSpareStore } from '@/api/store/sparestore'
|
|
import { getSpareStorePage, fetchSpareStore } from '@/api/store/sparestore'
|
|
import { fetchSpareTypeTree } from '@/api/sqarepartmanage/sparetype'
|
|
import { fetchSpareTypeTree } from '@/api/sqarepartmanage/sparetype'
|
|
|
|
+import { fetchStoreTree } from '@/api/store/store'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'SpareStoreSelectModal',
|
|
name: 'SpareStoreSelectModal',
|
|
@@ -128,6 +152,7 @@ export default {
|
|
return {
|
|
return {
|
|
confirmLoading: false,
|
|
confirmLoading: false,
|
|
mdl: {},
|
|
mdl: {},
|
|
|
|
+ storeTreeDate: [],
|
|
modalTitle: null,
|
|
modalTitle: null,
|
|
visible: false,
|
|
visible: false,
|
|
record: null,
|
|
record: null,
|
|
@@ -227,6 +252,9 @@ export default {
|
|
fetchSpareTypeTree({}).then(res => {
|
|
fetchSpareTypeTree({}).then(res => {
|
|
this.spareTypeTreeData = res.data
|
|
this.spareTypeTreeData = res.data
|
|
})
|
|
})
|
|
|
|
+ fetchStoreTree({}).then(res => {
|
|
|
|
+ this.storeTreeDate = res.data
|
|
|
|
+ })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
tableOption () {
|
|
tableOption () {
|
|
@@ -284,6 +312,8 @@ export default {
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.queryParam.keyword = null
|
|
this.queryParam.keyword = null
|
|
this.queryParam.typeId = null
|
|
this.queryParam.typeId = null
|
|
|
|
+ this.queryParam.model = null
|
|
|
|
+ this.queryParam.storeId = null
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
base (record, queryParam = {}) {
|
|
base (record, queryParam = {}) {
|