|
@@ -16,13 +16,24 @@
|
|
|
<div class="table-page-search-wrapper" >
|
|
|
<a-form layout="inline">
|
|
|
<a-row :gutter="48">
|
|
|
- <a-col :md="8" :sm="24">
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
<a-form-item label="关键字">
|
|
|
<a-input v-model.trim="queryParam.keyword" placeholder="请输入名称/编码"/>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
-
|
|
|
- <a-col :md="8 || 24" :sm="24">
|
|
|
+ <a-col :md="6" :sm="24">
|
|
|
+ <a-form-item label="车间位置">
|
|
|
+ <a-select v-model="queryParam.positionId" placeholder="请选择">
|
|
|
+ <a-select-option
|
|
|
+ v-for="({id,name}) in sbPositionData"
|
|
|
+ :key="id"
|
|
|
+ :label="name"
|
|
|
+ :value="id">{{ name }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :md="6 || 24" :sm="24">
|
|
|
<span class="table-page-search-submitButtons">
|
|
|
<a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
|
|
|
<a-button style="margin-left: 8px" @click="resetSearchForm">重置</a-button>
|
|
@@ -92,6 +103,7 @@ import PreviewModal from '@/views/preview/PreviewModal'
|
|
|
import { getSbInfoPage, deleteSbInfos, fetchSbInfo, exportSbInfo } from '@/api/sb/info'
|
|
|
import { selectSpareInfoListByModelId } from '@/api/sb/modelbom'
|
|
|
import { fetchSbTypeTree } from '@/api/sb/type'
|
|
|
+import { querySbPosition } from '@/api/sb/position'
|
|
|
|
|
|
import BaseTool from '../../../utils/tool'
|
|
|
|
|
@@ -117,6 +129,7 @@ export default {
|
|
|
treeData: [],
|
|
|
expandedKeys: [],
|
|
|
selectedKeys: [],
|
|
|
+ sbPositionData: [],
|
|
|
unitMap: {},
|
|
|
sourceTypeMap: {},
|
|
|
visible: true,
|
|
@@ -233,6 +246,9 @@ export default {
|
|
|
fetchSbTypeTree().then(res => {
|
|
|
this.treeData = res.data
|
|
|
})
|
|
|
+ querySbPosition().then(res => {
|
|
|
+ this.sbPositionData = res.data
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
tableOption () {
|