sunyadv 5 vuotta sitten
vanhempi
commit
ebe411582c

+ 1 - 0
target/classes/main/resources/mapper/MouldMapper.xml

@@ -69,6 +69,7 @@
         <result column="endTime" property="endTime"/>
         <result column="lastopentime" property="lastOpenTime"/>
         <result column="hillNumber" property="hillNumber"/>
+        <result column="temperature " property="temperature"/>
         <result column="ownerCompanyName" property="ownerCompanyName"/>
         <result column="companyName" property="companyName"/>
         <result column="is_maintain" property="isMaintain" />

+ 6 - 0
ys_int/src/i18n/lang/en.js

@@ -131,6 +131,9 @@ const lang = {
         maxOpenCycle: "Maximum Open Cycle",
         minOpenCycle: "Minimum Open Cycle",
         avgOpenCycle: "Average Open Cycle",
+        moldState: "Mold State",
+        remove: "Installation is removed",
+        temperature: "Temperature",
 	},
 	// 项目管理
     project: {
@@ -365,6 +368,9 @@ const lang = {
         chooseEquipment: "Please select the equipment you want to send.",
         issuedSuccess: "Issued Success",
         sim: "SIM Card Num",
+        proNum: "Product Num",
+        inputProNum: "Please input product num",
+        toWait: "Operation Success,Please wait for the data transmission",
     },
     // 后台翻译
     port: {

+ 6 - 0
ys_int/src/i18n/lang/zh.js

@@ -131,6 +131,9 @@ const lang = {
         maxOpenCycle: "最大开合周期",
         minOpenCycle: "最小开合周期",
         avgOpenCycle: "平均开合周期",
+        moldState: "模具状态",
+        remove: "安装被拆",
+        temperature: "温度",
 	},
 	// 项目管理
     project: {
@@ -366,6 +369,9 @@ const lang = {
         chooseEquipment: "请选择要下发的云模盒",
         issuedSuccess: "下发成功",
         sim: "SIM卡号",
+        proNum: "产品编号",
+        inputProNum: "请输入产品编号",
+        toWait: "操作成功,请等待数据传输",
     },
     ...locale
 }

+ 27 - 40
ys_int/src/views/base/allocation.vue

@@ -43,10 +43,14 @@
             <!-- <el-table-column type="selection" width="50"></el-table-column> -->
             <el-table-column type="index" width="60"></el-table-column>
             <el-table-column prop="equipmentNo" :label="$t('basic.equipmentNo')" width="180" sortable></el-table-column>
+            <el-table-column prop="equipmentName" :label="$t('basic.proNum')" width="180" sortable></el-table-column>
             <el-table-column prop="sim" :label="$t('basic.sim')" width="120" sortable></el-table-column>
             <el-table-column prop="hillNumber" :label="$t('mold.hillNumber')" width="80" align="center" sortable>
                 <template slot-scope="scope">{{scope.row.hillNumber}}<span v-if="scope.row.hillNumber">%</span></template>
             </el-table-column>
+            <el-table-column prop="temperature" :label="$t('runTest.temperature')" width="120" align="center" sortable>
+                <template slot-scope="scope">{{scope.row.temperature}}<span v-if="scope.row.temperature">℃</span></template>
+            </el-table-column>
             <el-table-column prop="alarmBattery" :label="$t('basic.alarmBattery')" width="130" align="center" sortable>
                 <template slot-scope="scope">{{scope.row.alarmBattery}}<span v-if="scope.row.alarmBattery">%</span></template>
             </el-table-column>
@@ -98,6 +102,9 @@
                 <el-form-item :label="$t('basic.equipmentNo')" prop="equipmentNo">
                     <el-input v-model="newAllocation.equipmentNo" autocomplete="off" :placeholder="$t('basic.inputequipmentNo')" style="width:505px;"></el-input>
                 </el-form-item>
+                <el-form-item :label="$t('basic.proNum')" prop="equipmentName">
+                    <el-input v-model="newAllocation.equipmentName" autocomplete="off" :placeholder="$t('basic.inputProNum')"></el-input>
+                </el-form-item>
                 <el-form-item :label="$t('project.company')" prop="belongCompanyId">
                     <el-select v-model="newAllocation.belongCompanyId" filterable clearable :placeholder="$t('project.inputCompany')" style="width:505px;">
                         <el-option v-for="item in companies" :key="item.id" :label="item.companyName" :value="item.id"></el-option>
@@ -122,6 +129,9 @@
                 <el-form-item :label="$t('basic.equipmentNo')" prop="equipmentNo">
                     <el-input v-model="newAllocation.equipmentNo" autocomplete="off" :placeholder="$t('basic.inputequipmentNo')" style="width:505px;"></el-input>
                 </el-form-item>
+                <el-form-item :label="$t('basic.proNum')" prop="equipmentName">
+                    <el-input v-model="newAllocation.equipmentName" autocomplete="off" :placeholder="$t('basic.inputProNum')"></el-input>
+                </el-form-item>
                 <el-form-item :label="$t('project.company')" prop="belongCompanyId">
                     <el-select v-model="newAllocation.belongCompanyId" filterable clearable :placeholder="$t('project.inputCompany')"  style="width:505px;" :disabled="newAllocation.usage">
                         <el-option v-for="item in companies" :key="item.id" :label="item.companyName" :value="item.id"></el-option>
@@ -142,15 +152,6 @@
 
         <!-- 启用弹窗 -->
         <el-dialog :title="$t('base.use')" :visible.sync="operateDialogVisible" width="450px">
-            <!-- <el-form label-width="100px" :rules="formRules" :inline="true" class="demo-form-inline">
-                <el-form-item label="某个参数">
-                    <el-input autocomplete="off" placeholder="填了也不会发生什么"></el-input>
-                </el-form-item>
-            </el-form>
-            <span slot="footer" class="dialog-footer">
-                <el-button @click="operateDialogVisible = false">{{$t('el.messagebox.cancel')}}</el-button>
-                <el-button type="primary" @click="enable">{{$t('base.use')}}</el-button>
-            </span> -->
             <el-form :model="issuedVal" label-width="130px" :rules="formRules" ref="issuedVal" :inline="true" class="demo-form-inline">
                 <el-form-item :label="$t('basic.alarmBattery')" prop="alarmBattery">
                     <el-input v-model.number="issuedVal.alarmBattery" type="age" autocomplete="off" :placeholder="$t('basic.inputAlarmBattery')" style="width:250px;"></el-input>
@@ -212,6 +213,9 @@
                         case "alarmDegree":
                             return callback(new Error(this.$t('basic.inputAlarmDegree')));
                             break;
+                        case "equipmentName":
+                            return callback(new Error(this.$t('basic.inputProNum')));
+                            break;
                         default:
                             callback();
                     } 
@@ -239,6 +243,9 @@
                     equipmentNo: [
                         { required: true, validator: msg , trigger: "blur" }
                     ],
+                    equipmentName: [
+                        { required: true, validator: msg , trigger: "blur" }
+                    ],
                     useLife: [
                         { required: true, validator: msg },
                         { type: 'number', message: this.$t('basic.inputUseLifeNum')}
@@ -365,6 +372,7 @@
                     id: "",
                     useLife: "",
                     equipmentNo: "",
+                    equipmentName: "",
                     belongCompanyId: "",
                     agent: ""
                 };
@@ -374,10 +382,9 @@
             addMould() {
                 this.$refs.newAllocation.validate(valid => {
                     if (valid) {
-                    this.addLoading = true;
-                    this.http.post(
-                        this.port.base.editMould,
-                        {
+                        this.addLoading = true;
+                        this.http.post( this.port.base.editMould, {
+                            equipmentName: this.newAllocation.equipmentName,
                             equipmentNo: this.newAllocation.equipmentNo,
                             belongCompanyId: this.newAllocation.belongCompanyId,
                             useLife: this.newAllocation.useLife,
@@ -406,8 +413,7 @@
                                 message: error,
                                 type: "error"
                             });
-                        }
-                    );
+                        });
                     }
                 });
             },
@@ -419,6 +425,7 @@
                     id: row.id,
                     useLife: row.useLife,
                     equipmentNo: row.equipmentNo,
+                    equipmentName: row.equipmentName,
                     belongCompanyId: row.belongCompanyId,
                     agent: row.agent,
                     usage: usageBoolean
@@ -476,18 +483,8 @@
 
             //启用设备
             enable() {
-                // if(this.allocations[this.activeIndex].belongCompanyId == null){
-                //     this.$message({
-                //         message: this.$t("basic.inputBlongComp"),
-                //         type: "error"
-                //     });
-                // }else{
                 this.allocations[this.activeIndex].isUse = 1;
                 this.operateDialogVisible = false;
-                // this.http.post( this.port.base.enableMould, {
-                //     id: this.allocations[this.activeIndex].id,
-                //     isUse: 1
-                // },
                 var str = this.allocations[this.activeIndex].equipmentNo;
                 this.http.post( this.port.base.setPacket, {
                     lowPowerLimit: this.issuedVal.alarmBattery,//.toString(16),
@@ -498,7 +495,7 @@
                 res => {
                     if (res.code == "ok") {
                         this.$message({
-                            message: this.$t("basic.inUse"),
+                            message: this.$t("basic.toWait"),
                             type: "success"
                         });
                         this.getMoulds();
@@ -519,28 +516,18 @@
 
             //停用云模盒
             disableEquipment(index) {
-                // if(this.allocations[index].belongCompanyId == null){
-                //     this.$message({
-                //         message: this.$t("basic.inputBlongComp"),
-                //         type: "error"
-                //     });
-                // }else{
                 this.allocations[index].isUse = 1;
-                // this.http.post( this.port.base.enableMould, {
-                //     id: this.allocations[index].id,
-                //     isUse: 0
-                // },
-                var str = this.allocations[this.activeIndex].equipmentNo;
+                var str = this.allocations[index].equipmentNo;
                 this.http.post( this.port.base.setPacket, {
-                    lowPowerLimit: this.issuedVal.alarmBattery,//.toString(16),
-                    hotAlarmLimit: this.issuedVal.alarmDegree,//.toString(16),
+                    lowPowerLimit: this.allocations[index].alarmBattery,//.toString(16),
+                    hotAlarmLimit: this.allocations[index].alarmDegree,//.toString(16),
                     isUse: 0,
                     equipmentNo: str
                 },
                 res => {
                     if (res.code == "ok") {
                         this.$message({
-                            message: this.$t("basic.offUse"),
+                            message: this.$t("basic.toWait"),
                             type: "success"
                         });
                         this.getMoulds();

+ 10 - 4
ys_int/src/views/detection/detection.vue

@@ -30,17 +30,23 @@
                 </template>
             </el-table-column>
             <el-table-column prop="equipmentNo" :label="$t('basic.equipmentNo')" width="180" sortable></el-table-column>
+            <el-table-column prop="equipmentName" :label="$t('basic.proNum')" width="180" sortable></el-table-column>
             <el-table-column prop="projectName" :label="$t('mold.projectName')" width="200" sortable></el-table-column>
             <el-table-column prop="factoryName" :label="$t('mold.factoryName')" width="200" sortable></el-table-column>
             <el-table-column prop="area" :label="$t('mold.area')" width="200" sortable></el-table-column>
             <el-table-column prop="runTimes" :label="$t('mold.runTimes')" align="center" width="100" sortable></el-table-column>
             <el-table-column prop="ocCycle" :label="$t('mold.ocCycle')" align="center" width="140" sortable></el-table-column>
-            <el-table-column prop="hillNumber" :label="$t('mold.hillNumber')" align="center" width="80" sortable></el-table-column>
+            <el-table-column prop="hillNumber" :label="$t('mold.hillNumber')" align="center" width="80" sortable>
+                <template slot-scope="scope">{{scope.row.hillNumber}}<span v-if="scope.row.hillNumber">%</span></template>
+            </el-table-column>
+            <el-table-column prop="temperature" :label="$t('runTest.temperature')" align="center" width="80" sortable>
+                <template slot-scope="scope">{{scope.row.temperature}}<span v-if="scope.row.temperature">℃</span></template>
+            </el-table-column>
             <el-table-column prop="lastOpenTime" :label="$t('runTest.lastOpenTime')" align="center" width="150" sortable></el-table-column>
-            <el-table-column :label="$t('runTest.state')" align="center" width="100" sortable>
+            <el-table-column :label="$t('runTest.moldState')" align="center" width="100" sortable>
                 <template slot-scope="scope">
                     <span v-if="scope.row.state == 0">{{$t('base.static')}}</span>
-                    <span v-else-if="scope.row.state == 1">{{$t('base.motion')}}</span>
+                    <span v-else-if="scope.row.state == 1">{{$t('base.run')}}</span>
                     <span v-else-if="scope.row.state == 2">{{$t('base.warning')}}</span>
                     <span v-else-if="scope.row.state == 3">{{$t('mold.beScrapped')}}</span>
                     <span v-else-if="scope.row.state == 4">{{$t('mold.scraped')}}</span>
@@ -51,7 +57,7 @@
                     <span v-if="scope.row.stage == 0">{{$t('runTest.stage0')}}</span>
                     <span v-else-if="scope.row.stage == 1">{{$t('runTest.stage1')}}</span>
                     <span v-else-if="scope.row.stage == 2">{{$t('runTest.stage2')}}</span>
-                    <span v-else-if="scope.row.stage == 3">{{$t('runTest.stage3')}}</span>
+                    <span v-else-if="scope.row.stage == 3">{{$t('runTest.remove')}}</span>
                     <span v-else>{{$t('runTest.stage4')}}</span>
                 </template>
             </el-table-column>

+ 12 - 6
ys_int/src/views/detection/maintenance.vue

@@ -67,17 +67,23 @@
             <el-table :data="records" highlight-current-row v-loading="listLoading" style="width: 100%;" :height="tableHeight">
                 <el-table-column type="index" width="60"></el-table-column>
                 <el-table-column prop="maintainUserName" :label="$t('runTest.maintainUser')" width="250" sortable></el-table-column>
-                <el-table-column prop="maintainType" :label="$t('runTest.maintainType')" sortable></el-table-column>
+                <el-table-column prop="maintainType" :label="$t('runTest.maintainType')" sortable>
+                    <template slot-scope="scope">
+                        <span v-if="scope.row.maintainType == 0">{{$t('runTest.spray')}}</span>
+                        <span v-else-if="scope.row.maintainType == 1">{{$t('runTest.check')}}</span>
+                        <span v-else="scope.row.maintainType == 2">{{$t('runTest.vulnerable')}}</span>
+                    </template>
+                </el-table-column>
                 <el-table-column prop="fileName" :label="$t('runTest.fileName')" width="200" sortable>
                     <template slot-scope="scope" v-if="scope.row.fileUrl != null">
-                        <a style="color: #409EFF; cursor: pointer; text-decoration: none;"
-                            :href="scope.row.fileUrl" :download="scope.row.fileName">
+                        <!-- <a style="color: #409EFF; cursor: pointer; text-decoration: none;"
+                            :href="scope.row.fileUrl" :download="scope.row.fileName"> -->
                             <!-- 大图加载 -->
                             <div class="demo-image__preview">
-                            <el-image style="width: 100px; height: 100px"
-                                :src="scope.row.fileUrl" :preview-src-list="scope.row.fileUrl"></el-image>
+                                <el-image style="width: 100px; height: 100px"
+                                    :src="scope.row.fileUrl" :preview-src-list="scope.row.fileUrl"></el-image>
                             </div>
-                        </a>
+                        <!-- </a> -->
                     </template>
                 </el-table-column>
                 <el-table-column prop="indate" :label="$t('runTest.closeTime')" width="200" sortable></el-table-column>

+ 1 - 0
ys_int/src/views/map/map.vue

@@ -323,6 +323,7 @@
                     var data = res.data;
                     distCluster.setData(data);
                     pointSimplifierIns.setData(data);
+                    map.setZoomAndCenter(5, [105.205467, 34.907761]);
                 },
                 error => {
                     _this.$message({

+ 10 - 5
ys_int/src/views/mold/moldDetail.vue

@@ -34,10 +34,7 @@
                     {{$t('mold.moldNo')}}:
                     <span class="info">{{moldDetail.modelNo}}</span>
                 </el-col>
-                <el-col :span="6" class="detail">
-                    {{$t('basic.equipmentNo')}}:
-                    <span class="info">{{moldDetail.equipmentNo}}</span>
-                </el-col>
+<!--                 
                 <el-col :span="6" class="detail">
                     {{$t('mold.hillNumber')}}:
                     <span class="info">{{moldDetail.hillNumber}}</span>
@@ -45,7 +42,7 @@
                 <el-col :span="6" class="detail">
                     {{$t('basic.diffTime')}}:
                     <span class="info">{{moldDetail.diffTime}}</span>
-                </el-col>
+                </el-col> -->
                 <el-col :span="6" class="detail">
                     {{$t('mold.initial')}}:
                     <span class="info">{{moldDetail.initialModulus}}</span>
@@ -66,6 +63,14 @@
                     {{$t('mold.projectName')}}:
                     <span class="info belongPro" @click="toPro(moldDetail.projectId)">{{moldDetail.projectName}}</span>
                 </el-col>
+                <el-col :span="24" class="detail">
+                    {{$t('basic.equipmentNo')}}:
+                    <span class="info">{{moldDetail.equipmentNo}}</span>
+                </el-col>
+                <el-col :span="24" class="detail">
+                    {{$t('basic.proNum')}}:
+                    <span class="info">{{moldDetail.equipmentName}}</span>
+                </el-col>
                 <el-col :span="24" class="detail">
                     {{$t('basic.producer')}}:
                     <span class="info">{{moldDetail.produceCompany}}</span>

+ 4 - 3
ys_int/src/views/mold/moldList.vue

@@ -39,9 +39,10 @@
                 </template>
             </el-table-column>
             <el-table-column prop="modelNo" :label="$t('mold.moldNo')" width="120" sortable></el-table-column>
-            <el-table-column prop="equipmentNo" :label="$t('basic.equipmentNo')" width="120" sortable></el-table-column>
-            <el-table-column prop="hillNumber" :label="$t('mold.hillNumber')" align="center" width="100" sortable></el-table-column>
-            <el-table-column prop="diffTime" :label="$t('basic.diffTime')" align="center" width="100" sortable></el-table-column>
+            <el-table-column prop="equipmentNo" :label="$t('basic.equipmentNo')" width="180" sortable></el-table-column>
+            <el-table-column prop="equipmentName" :label="$t('basic.proNum')" width="180" sortable></el-table-column>
+            <!-- <el-table-column prop="hillNumber" :label="$t('mold.hillNumber')" align="center" width="100" sortable></el-table-column>
+            <el-table-column prop="diffTime" :label="$t('basic.diffTime')" align="center" width="100" sortable></el-table-column> -->
             <el-table-column prop="projectName" :label="$t('mold.projectName')" width="140" sortable></el-table-column>
             <el-table-column prop="companyName" :label="$t('mold.factoryName1')" width="300" sortable></el-table-column>
             <el-table-column prop="produceCompany" :label="$t('mold.factoryName')" width="200" sortable></el-table-column>

+ 24 - 40
ys_vue/src/views/base/allocation.vue

@@ -43,6 +43,7 @@
             <!-- <el-table-column type="selection" width="50"></el-table-column> -->
             <el-table-column type="index" width="60"></el-table-column>
             <el-table-column prop="equipmentNo" label="云模盒编号" width="180" sortable></el-table-column>
+            <el-table-column prop="equipmentName" label="产品编号" width="180" sortable></el-table-column>
             <el-table-column prop="sim" label="SIM卡号" width="120" sortable></el-table-column>
             <el-table-column prop="hillNumber" label="电量" width="80" align="center" sortable>
                 <template slot-scope="scope">{{scope.row.hillNumber}}<span v-if="scope.row.hillNumber">%</span></template>
@@ -50,6 +51,9 @@
             <el-table-column prop="alarmBattery" label="报警电池电量" width="130" align="center" sortable>
                 <template slot-scope="scope">{{scope.row.alarmBattery}}<span v-if="scope.row.alarmBattery">%</span></template>
             </el-table-column>
+            <el-table-column prop="temperature" label="温度" width="120" align="center" sortable>
+                <template slot-scope="scope">{{scope.row.temperature}}<span v-if="scope.row.temperature">℃</span></template>
+            </el-table-column>
             <el-table-column prop="alarmDegree" label="热报警度数" width="120" align="center" sortable>
                 <template slot-scope="scope">{{scope.row.alarmDegree}}<span v-if="scope.row.alarmDegree">℃</span></template>
             </el-table-column>
@@ -98,6 +102,9 @@
                 <el-form-item label="云模盒编号" prop="equipmentNo">
                     <el-input v-model="newAllocation.equipmentNo" autocomplete="off" placeholder="请输入云模盒编号"></el-input>
                 </el-form-item>
+                <el-form-item label="产品编号" prop="equipmentName">
+                    <el-input v-model="newAllocation.equipmentName" autocomplete="off" placeholder="请输入产品编号"></el-input>
+                </el-form-item>
                 <el-form-item label="所属公司" prop="belongCompanyId">
                     <el-select v-model="newAllocation.belongCompanyId" filterable clearable placeholder="请选择所属公司" style="width: 202px">
                         <el-option v-for="item in companies" :key="item.id" :label="item.companyName" :value="item.id"></el-option>
@@ -122,6 +129,9 @@
                 <el-form-item label="云模盒编号" prop="equipmentNo">
                     <el-input v-model="newAllocation.equipmentNo" autocomplete="off" placeholder="请输入云模盒编号"></el-input>
                 </el-form-item>
+                <el-form-item label="产品编号" prop="equipmentName">
+                    <el-input v-model="newAllocation.equipmentName" autocomplete="off" placeholder="请输入产品编号"></el-input>
+                </el-form-item>
                 <el-form-item label="所属公司" prop="belongCompanyId">
                     <el-select v-model="newAllocation.belongCompanyId" filterable clearable placeholder="请选择所属公司" style="width: 202px" :disabled="newAllocation.usage">
                         <el-option v-for="item in companies" :key="item.id" :label="item.companyName" :value="item.id"></el-option>
@@ -142,15 +152,6 @@
 
         <!-- 启用弹窗 -->
         <el-dialog title="启用" :visible.sync="operateDialogVisible" width="450px">
-            <!-- <el-form label-width="100px" :rules="formRules" :inline="true" class="demo-form-inline">
-                <el-form-item label="某个参数">
-                    <el-input autocomplete="off" placeholder="填了也不会发生什么"></el-input>
-                </el-form-item>
-            </el-form>
-            <span slot="footer" class="dialog-footer">
-                <el-button @click="operateDialogVisible = false">取消</el-button>
-                <el-button type="primary" @click="enable">启用</el-button>
-            </span> -->
             <el-form :model="issuedVal" label-width="130px" :rules="formRules" ref="issuedVal" :inline="true" class="demo-form-inline">
                 <el-form-item label="报警电池电量" prop="alarmBattery">
                     <el-input v-model.number="issuedVal.alarmBattery" type="age" autocomplete="off" placeholder="请输入报警电池电量" style="width:250px;"></el-input>
@@ -211,6 +212,9 @@
                     equipmentNo: [
                         { required: true, message: "请输入云模盒编号", trigger: "blur" }
                     ],
+                    equipmentName: [
+                        { required: true, message: "请输入产品编号", trigger: "blur" }
+                    ],
                     useLife: [
                         { required: true, message: '请输入使用年限'},
                         { type: 'number', message: '使用年限必须为数字值'}
@@ -336,6 +340,7 @@
                     id: "",
                     useLife: "",
                     equipmentNo: "",
+                    equipmentName: "",
                     belongCompanyId: "",
                     agent: ""
                 };
@@ -345,10 +350,9 @@
             addMould() {
                 this.$refs.newAllocation.validate(valid => {
                     if (valid) {
-                    this.addLoading = true;
-                    this.http.post(
-                        this.port.base.editMould,
-                        {
+                        this.addLoading = true;
+                        this.http.post( this.port.base.editMould, {
+                            equipmentName: this.newAllocation.equipmentName,
                             equipmentNo: this.newAllocation.equipmentNo,
                             belongCompanyId: this.newAllocation.belongCompanyId,
                             useLife: this.newAllocation.useLife,
@@ -377,8 +381,7 @@
                                 message: error,
                                 type: "error"
                             });
-                        }
-                    );
+                        });
                     }
                 });
             },
@@ -390,6 +393,7 @@
                     id: row.id,
                     useLife: row.useLife,
                     equipmentNo: row.equipmentNo,
+                    equipmentName: row.equipmentName,
                     belongCompanyId: row.belongCompanyId,
                     agent: row.agent,
                     usage: usageBoolean
@@ -447,29 +451,19 @@
 
             //启用设备
             enable() {
-                // if(this.allocations[this.activeIndex].belongCompanyId == null){
-                //     this.$message({
-                //         message: "输入所属公司后才能启用模具",
-                //         type: "error"
-                //     });
-                // }else{
                 this.allocations[this.activeIndex].isUse = 1;
                 this.operateDialogVisible = false;
-                // this.http.post( this.port.base.enableMould, {
-                //     id: this.allocations[this.activeIndex].id,
-                //     isUse: 1
-                // },
-                var str = this.allocations[this.activeIndex].equipmentNo;
+                var str = this.allocations[index].equipmentNo;
                 this.http.post( this.port.base.setPacket, {
-                    lowPowerLimit: this.issuedVal.alarmBattery,//.toString(16),
-                    hotAlarmLimit: this.issuedVal.alarmDegree,//.toString(16),
+                    lowPowerLimit: this.allocations[index].alarmBattery,//.toString(16),
+                    hotAlarmLimit: this.allocations[index].alarmDegree,//.toString(16),
                     isUse: 1,
                     equipmentNo: str
                 },
                 res => {
                     if (res.code == "ok") {
                         this.$message({
-                            message: "设备已启用",
+                            message: "操作成功,请等待数据传输",
                             type: "success"
                         });
                         this.getMoulds();
@@ -490,17 +484,7 @@
 
             //停用云模盒
             disableEquipment(index) {
-                // if(this.allocations[index].belongCompanyId == null){
-                //     this.$message({
-                //         message: "输入所属公司后才能启用模具",
-                //         type: "error"
-                //     });
-                // }else{
                 this.allocations[index].isUse = 0;
-                // this.http.post( this.port.base.enableMould, {
-                //     id: this.allocations[index].id,
-                //     isUse: 0
-                // },
                 var str = this.allocations[this.activeIndex].equipmentNo;
                 this.http.post( this.port.base.setPacket, {
                     lowPowerLimit: this.issuedVal.alarmBattery,//.toString(16),
@@ -511,7 +495,7 @@
                 res => {
                     if (res.code == "ok") {
                         this.$message({
-                            message: "设备已停用",
+                            message: "操作成功,请等待数据传输",
                             type: "success"
                         });
                         this.getMoulds();

+ 10 - 4
ys_vue/src/views/detection/detection.vue

@@ -30,17 +30,23 @@
                 </template>
             </el-table-column>
             <el-table-column prop="equipmentNo" label="云模盒编号" width="180" sortable></el-table-column>
+            <el-table-column prop="equipmentName" label="产品编号" width="180" sortable></el-table-column>
             <el-table-column prop="projectName" label="所属项目" width="200" sortable></el-table-column>
             <el-table-column prop="factoryName" label="制造工厂" width="200" sortable></el-table-column>
             <el-table-column prop="area" label="位置" width="200" sortable></el-table-column>
             <el-table-column prop="runTimes" label="运行次数" align="center" width="100" sortable></el-table-column>
             <el-table-column prop="ocCycle" label="每模平均周期" align="center" width="140" sortable></el-table-column>
-            <el-table-column prop="hillNumber" label="电量" align="center" width="80" sortable></el-table-column>
+            <el-table-column prop="hillNumber" label="电量" align="center" width="80" sortable>
+                <template slot-scope="scope">{{scope.row.hillNumber}}<span v-if="scope.row.hillNumber">%</span></template>
+            </el-table-column>
+            <el-table-column prop="temperature" label="温度" align="center" width="80" sortable>
+                <template slot-scope="scope">{{scope.row.temperature}}<span v-if="scope.row.temperature">℃</span></template>
+            </el-table-column>
             <el-table-column prop="lastOpenTime" label="最后开模时间" align="center" width="150" sortable></el-table-column>
-            <el-table-column label="当前状态" align="center" width="100" sortable>
+            <el-table-column label="模具状态" align="center" width="100" sortable>
                 <template slot-scope="scope">
                     <span v-if="scope.row.state == 0">静止</span>
-                    <span v-else-if="scope.row.state == 1">运动</span>
+                    <span v-else-if="scope.row.state == 1">运</span>
                     <span v-else-if="scope.row.state == 2">告警</span>
                     <span v-else-if="scope.row.state == 3">待报废</span>
                     <span v-else-if="scope.row.state == 4">已报废</span>
@@ -51,7 +57,7 @@
                     <span v-if="scope.row.stage == 0">正常</span>
                     <span v-else-if="scope.row.stage == 1">温度过高</span>
                     <span v-else-if="scope.row.stage == 2">电量过低</span>
-                    <span v-else-if="scope.row.stage == 3">温度过高、电量过低</span>
+                    <span v-else-if="scope.row.stage == 3">安装被拆</span>
                     <span v-else>不明</span>
                 </template>
             </el-table-column>

+ 12 - 6
ys_vue/src/views/detection/maintenance.vue

@@ -61,17 +61,23 @@
             <el-table :data="records" highlight-current-row v-loading="listLoading" style="width: 100%;" :height="tableHeight">
                 <el-table-column type="index" width="60"></el-table-column>
                 <el-table-column prop="maintainUserName" label="保养人" width="100" sortable></el-table-column>
-                <el-table-column prop="maintainType" label="保养方案" sortable></el-table-column>
+                <el-table-column prop="maintainType" label="保养方案" sortable>
+                    <template slot-scope="scope">
+                        <span v-if="scope.row.maintainType == 0">喷漆</span>
+                        <span v-else-if="scope.row.maintainType == 1">检查</span>
+                        <span v-else="scope.row.maintainType == 2">易损件</span>
+                    </template>
+                </el-table-column>
                 <el-table-column prop="fileName" label="保养照片" width="200" sortable>
                     <template slot-scope="scope" v-if="scope.row.fileUrl != null">
-                        <a style="color: #409EFF; cursor: pointer; text-decoration: none;"
-                            :href="scope.row.fileUrl" :download="scope.row.fileName">
+                        <!-- <a style="color: #409EFF; cursor: pointer; text-decoration: none;"
+                            :href="scope.row.fileUrl" :download="scope.row.fileName"> -->
                             <!-- 大图加载 -->
                             <div class="demo-image__preview">
-                            <el-image style="width: 100px; height: 100px"
-                                :src="scope.row.fileUrl" :preview-src-list="scope.row.fileUrl"></el-image>
+                                <el-image style="width: 100px; height: 100px"
+                                    :src="scope.row.fileUrl" :preview-src-list="scope.row.fileUrl"></el-image>
                             </div>
-                        </a>
+                        <!-- </a> -->
                     </template>
                 </el-table-column>
                 <el-table-column prop="indate" label="关闭时间" width="200" sortable></el-table-column>

+ 1 - 0
ys_vue/src/views/map/map.vue

@@ -323,6 +323,7 @@
                     var data = res.data;
                     distCluster.setData(data);
                     pointSimplifierIns.setData(data);
+                    map.setZoomAndCenter(5, [105.205467, 34.907761]);
                 },
                 error => {
                     _this.$message({

+ 10 - 6
ys_vue/src/views/mold/moldDetail.vue

@@ -34,18 +34,14 @@
                     模具编号:
                     <span class="info">{{moldDetail.modelNo}}</span>
                 </el-col>
-                <el-col :span="6" class="detail">
-                    云模盒编号:
-                    <span class="info">{{moldDetail.equipmentNo}}</span>
-                </el-col>
-                <el-col :span="6" class="detail">
+                <!-- <el-col :span="6" class="detail">
                     设备电量:
                     <span class="info">{{moldDetail.hillNumber}}</span>
                 </el-col>
                 <el-col :span="6" class="detail">
                     倒计时:
                     <span class="info">{{moldDetail.diffTime}}</span>
-                </el-col>
+                </el-col> -->
                 <el-col :span="6" class="detail">
                     初始模次:
                     <span class="info">{{moldDetail.initialModulus}}</span>
@@ -66,6 +62,14 @@
                     所属项目:
                     <span class="info belongPro" @click="toPro(moldDetail.projectId)">{{moldDetail.projectName}}</span>
                 </el-col>
+                <el-col :span="24" class="detail">
+                    云模盒编号:
+                    <span class="info">{{moldDetail.equipmentNo}}</span>
+                </el-col>
+                <el-col :span="24" class="detail">
+                    生产编号:
+                    <span class="info">{{moldDetail.equipmentName}}</span>
+                </el-col>
                 <el-col :span="24" class="detail">
                     生产方:
                     <span class="info">{{moldDetail.produceCompany}}</span>

+ 4 - 3
ys_vue/src/views/mold/moldList.vue

@@ -39,9 +39,10 @@
                 </template>
             </el-table-column>
             <el-table-column prop="modelNo" label="模具编号" width="120" sortable></el-table-column>
-            <el-table-column prop="equipmentNo" label="云模盒编号" width="120" sortable></el-table-column>
-            <el-table-column prop="hillNumber" label="电量" align="center" width="100" sortable></el-table-column>
-            <el-table-column prop="diffTime" label="倒计时" align="center" width="100" sortable></el-table-column>
+            <el-table-column prop="equipmentNo" label="云模盒编号" width="180" sortable></el-table-column>
+            <el-table-column prop="equipmentName" label="产品编号" width="180" sortable></el-table-column>
+            <!-- <el-table-column prop="hillNumber" label="电量" align="center" width="100" sortable></el-table-column>
+            <el-table-column prop="diffTime" label="倒计时" align="center" width="100" sortable></el-table-column> -->
             <el-table-column prop="projectName" label="所属项目" width="140" sortable></el-table-column>
             <el-table-column prop="companyName" label="所属资产方" width="300" sortable></el-table-column>
             <el-table-column prop="produceCompany" label="所属生产方" width="200" sortable></el-table-column>