408249787 2 anni fa
parent
commit
d9ffeeec47
1 ha cambiato i file con 17 aggiunte e 0 eliminazioni
  1. 17 0
      src/views/sb/info/modules/SbInfoSelectModal.vue

+ 17 - 0
src/views/sb/info/modules/SbInfoSelectModal.vue

@@ -30,6 +30,18 @@
                 </a-tree-select>
               </a-form-item>
             </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-form-item>
+            </a-col>
             <a-col :md="8 || 24" :sm="24">
               <span class="table-page-search-submitButtons">
                 <a-button type="primary" @click="$refs.table.refresh(true)">查询</a-button>
@@ -75,6 +87,7 @@
 <script>
 import { STable, Ellipsis } from '@/components'
 import { getSbInfoPage, fetchSbInfo, getSbInfoTree } from '@/api/sb/info'
+import { querySbPosition } from '@/api/sb/position'
 
 export default {
   name: 'SbInfoSelectModal',
@@ -118,6 +131,7 @@ export default {
       useTypeMap: {},
       sourceTypeMap: {},
       treeData: [],
+      sbPositionData: [],
       // 表头
       columns: [
         {
@@ -217,6 +231,9 @@ export default {
     this.unitMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_UNIT)
     this.sourceTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBTYPE_SOURCETYPE)
     this.useTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_UES_TYPE)
+    querySbPosition().then(res => {
+      this.sbPositionData = res.data
+    })
   },
   methods: {
     tableOption () {