فهرست منبع

维修页面添加车间位置搜索

1 سال پیش
والد
کامیت
003cdc9d8d
2فایلهای تغییر یافته به همراه19 افزوده شده و 0 حذف شده
  1. 17 0
      src/views/repair/application-form/RepairForm.vue
  2. 2 0
      src/views/sb/info/SbInfoC.vue

+ 17 - 0
src/views/repair/application-form/RepairForm.vue

@@ -103,6 +103,18 @@
                 </a-select>
               </a-form-item>
             </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-item label="车间位置">
+                <a-select v-model="queryParam.sbPositionId" 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="handleOk()">查询</a-button>
@@ -221,6 +233,7 @@ import {
 import DispatchBaseForm from '@/views/repair/application-form/modules/DispatchBaseForm'
 import CheckForm from './modules/CheckForm'
 import Vue from 'vue'
+import { querySbPosition } from '@/api/sb/position'
 
 export default {
   name: 'RepairForm',
@@ -252,6 +265,7 @@ export default {
   },
   data () {
     return {
+      sbPositionData: [],
       repairFormTypeMap: {},
       repairDeptMap: {},
       // 查询参数
@@ -443,6 +457,9 @@ export default {
     }
   },
   created () {
+    querySbPosition().then(res => {
+      this.sbPositionData = res.data
+    })
     this.dispatchFlag = false
     this.allocatedFlag = false
     this.editFlag = false

+ 2 - 0
src/views/sb/info/SbInfoC.vue

@@ -702,6 +702,8 @@ export default {
     this.queryParam.parentName = this.$route.query.parentName
     this.tableOption()
     this.otherTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SB_MEASURE_OTHER_TYPE)
+    console.log(11)
+    console.log(this.otherTypeMap)
 
     this.depreciationTypeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_DEPRECIATIONTYPE)
     this.levelMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.SBINFO_LEVEL)