|
@@ -14,14 +14,15 @@
|
|
|
</a-col>
|
|
|
<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-tree-select
|
|
|
+ style="width: 100%"
|
|
|
+ :dropdownStyle="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
+ :treeData="positionTreeData"
|
|
|
+ :treeNodeFilterProp="'title'"
|
|
|
+ :showSearch="true"
|
|
|
+ v-model="queryParam.positionId"
|
|
|
+ placeholder="请选择">
|
|
|
+ </a-tree-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -366,7 +367,7 @@ import ImportFormAddStandard from './modules/ImportFormAddStandard'
|
|
|
import ImportFormUpdate2 from './modules/ImportFormUpdate2'
|
|
|
import PrintSbCode from '@/views/sb/info/modules/PrintSbCode'
|
|
|
import PrintInSbInfoBatch from '@/views/sb/info/modules/PrintInSbInfoBatch'
|
|
|
-import { querySbPosition } from '@/api/sb/position'
|
|
|
+import { getSbPositionTree } from '@/api/sb/position'
|
|
|
import SbChangeLogSelectModal from '@/views/sb/change-log/modules/SbChangeLogSelectModal'
|
|
|
export default {
|
|
|
name: 'SbInfoList',
|
|
@@ -467,6 +468,7 @@ export default {
|
|
|
selectedKeys: [],
|
|
|
sourceTypeMap: {},
|
|
|
treeData: [],
|
|
|
+ positionTreeData: [],
|
|
|
// 表头
|
|
|
columns: [
|
|
|
/* {
|
|
@@ -1118,6 +1120,9 @@ export default {
|
|
|
queryDept({ nature: this.DictCache.VALUE.SYS_DEPT_NATURE.JITUAN }).then((res) => {
|
|
|
this.areaList = res.data
|
|
|
})
|
|
|
+ getSbPositionTree().then((res) => {
|
|
|
+ this.positionTreeData = res.data
|
|
|
+ })
|
|
|
fetchSbTypeTree().then((res) => {
|
|
|
this.treeData = res.data
|
|
|
})
|