فهرست منبع

feat: 新增物联产品key和物联编号字段

yusheng 2 ماه پیش
والد
کامیت
8587cc5177

+ 19 - 0
src/views/ledgerAssets/boat/edit.vue

@@ -53,6 +53,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <!-- <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -167,6 +181,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -300,6 +316,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -470,6 +487,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/material/edit.vue

@@ -52,6 +52,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -164,6 +178,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -299,6 +315,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -461,6 +478,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/meter/edit.vue

@@ -56,6 +56,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -168,6 +182,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -303,6 +319,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -473,6 +490,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/mould/edit.vue

@@ -53,6 +53,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -167,6 +181,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -299,6 +315,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -469,6 +486,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/office/edit.vue

@@ -52,6 +52,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -164,6 +178,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -299,6 +315,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -461,6 +478,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/sparepart/edit.vue

@@ -52,6 +52,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -164,6 +178,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -299,6 +315,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -461,6 +478,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/turnoverCar/edit.vue

@@ -53,6 +53,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -167,6 +181,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -302,6 +318,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -476,6 +493,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息

+ 19 - 0
src/views/ledgerAssets/turnoverDisks/edit.vue

@@ -52,6 +52,20 @@
               <el-form-item label="物联ID">{{ iotId }}</el-form-item>
             </el-col>
           </el-row>
+          <el-row>
+            <el-col :span="6">
+              <el-form-item label="物联产品key">
+                <el-input class="input" v-model="form.iotProductKey"></el-input>
+              </el-form-item>
+            </el-col>
+            <el-col :span="6">
+              <el-form-item label="物联编号">
+                <el-input
+                  class="input"
+                  v-model="form.iotSubstanceCode"
+                ></el-input></el-form-item>
+            </el-col>
+          </el-row>
           <div class="basic-details-title border-none">
             <span class="border-span">扩展信息</span>
           </div>
@@ -164,6 +178,8 @@
         form: {
           extInfoSelf: [],
           // 基本信息
+            iotSubstanceCode: '',
+          iotProductKey: '',
           code: '',
           name: '',
           productTime: '',
@@ -299,6 +315,7 @@
         this.form.categoryId = this.basicInfo.id;
         this.form.name = this.basicInfo.name;
         this.form.code = data.code; //Date.now(); //res.data[0].onlyCode;
+        this.form.iotProductKey = res.category.iotProductKey;
         this.initOtherMsg();
       },
       // 计算过保时间
@@ -469,6 +486,8 @@
         // 物联参数
         this.isIotEnable = data.isIotEnable;
         this.iotId = data.iotId;
+        this.form.iotProductKey =
+          this.form.iotProductKey || data.category.category.iotProductKey;
       },
       async initOtherMsg() {
         // 基本信息