Browse Source

设备位号功能

hfxc226 2 years ago
parent
commit
9b37422dfc

+ 12 - 1
src/views/sb/info/modules/BaseForm.vue

@@ -43,6 +43,16 @@
               <a-button type="default" style="width: 20%" @click="clearParent">清空</a-button>
             </a-form-item>
           </a-col>
+          <a-col :lg="12" :md="24" :sm="24">
+            <a-form-item
+              label="父位号"
+              :labelCol="BaseTool.Constant.labelCol"
+              :wrapperCol="BaseTool.Constant.wrapperCol"
+            >
+              <a-input
+                v-decorator="['ppNo']"/>
+            </a-form-item>
+          </a-col>
 <!--          <a-col :lg="12" :md="24" :sm="24">
             <a-form-item
               label="是否子设备"
@@ -1150,6 +1160,7 @@ export default {
           'no',
           'parentId',
           'positionNo',
+          'ppNo',
           'parentSbName',
           'isChild',
           'isShow',
@@ -1478,7 +1489,7 @@ export default {
         setFieldsValue(Object.assign({
           'parentId': key,
           'parentSbName': row.name,
-          'isChild': this.DictCache.VALUE.SB_IS_CHILD.IS_CHILD
+          'ppNo': row.positionNo
         }))
       })
     },

+ 4 - 0
src/views/sb/info/modules/Detail.vue

@@ -144,6 +144,9 @@
               <a-descriptions-item label="设备位号">
                 {{ model.positionNo }}
               </a-descriptions-item>
+              <a-descriptions-item label="父设备位号">
+                {{ model.ppNo }}
+              </a-descriptions-item>
               <a-descriptions-item label="设备描述">
                 {{ model.name }}
               </a-descriptions-item>
@@ -364,6 +367,7 @@ export default {
       model: {
         'no': null,
         'positionNo': null,
+        'ppNo': null,
         'financingNo': null,
         'financingNoTwo': null,
         'financingNoThird': null,

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

@@ -130,6 +130,11 @@ export default {
           dataIndex: 'no',
           checked: true
         },
+        {
+          title: '设备位号',
+          checked: true,
+          dataIndex: 'positionNo'
+        },
         {
           title: '型号',
           checked: true,

+ 5 - 0
src/views/sb/info/modules/SbInfoSelectModalByFilter.vue

@@ -128,6 +128,11 @@ export default {
           dataIndex: 'no',
           checked: true
         },
+        {
+          title: '设备位号',
+          checked: true,
+          dataIndex: 'positionNo'
+        },
         {
           title: '自编号',
           checked: true,

+ 3 - 3
src/views/sb/info/modules/SbPositionNoModal.vue

@@ -99,18 +99,18 @@ export default {
       // 表头
       columns: [
         {
-          title: '部位名称',
+          title: '设备位号名称',
           checked: true,
           dataIndex: 'name'
         },
         {
-          title: '部位编号',
+          title: '设备位号编号',
           dataIndex: 'no',
           checked: true
         },
 
         {
-          title: '部位类型',
+          title: '设备位号类型',
           dataIndex: 'type',
           checked: true,
           width: 200,