|
@@ -2,7 +2,7 @@
|
|
|
<view>
|
|
|
<form @submit="submit">
|
|
|
<form @submit="addMachine">
|
|
|
- <view class="title">机器</view>
|
|
|
+ <view class="title"> 机器</view>
|
|
|
<view class="body">
|
|
|
<input class="input" style="display:none;" name="coding" :value=coding />
|
|
|
机器编码:<input class="input" v-model="coding" />
|
|
@@ -25,6 +25,12 @@
|
|
|
<p class="p">确认</p>
|
|
|
</button>
|
|
|
</view>
|
|
|
+ <view class="body">
|
|
|
+ 设备编号:<input class="input" name="clientId" :value="clientId" />
|
|
|
+ <button type="primary" form-type="submit" class="button1">
|
|
|
+ <p class="p">确认</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
</form>
|
|
|
<view class="line"></view>
|
|
|
<form @submit="jike" @reset="jikeReset">
|
|
@@ -117,30 +123,30 @@
|
|
|
</view>
|
|
|
</form>
|
|
|
<view class="line"></view>
|
|
|
- <form @submit="shuibeng" @reset="shuibengReset">
|
|
|
+ <form @submit="jiareban" @reset="jiarebanReset">
|
|
|
<view class="modules">
|
|
|
- <view class="title">水泵</view>
|
|
|
+ <view class="title">加热板</view>
|
|
|
<view class="body">
|
|
|
- <input class="input" style="display:none;" name="shuibengCoding" :value=shuibengCoding />
|
|
|
- 编码:<input class="input" v-model="shuibengCoding" />
|
|
|
- <button type="primary" @click="saoma('shuibengCoding')" class="button1">
|
|
|
+ <input class="input" style="display:none;" name="jiarebanCoding" :value=jiarebanCoding />
|
|
|
+ 编码:<input class="input" v-model="jiarebanCoding" />
|
|
|
+ <button type="primary" @click="saoma('jiarebanCoding')" class="button1">
|
|
|
<p class="p">扫码</p>
|
|
|
</button>
|
|
|
- <button type="primary" @click="getMessage(shuibengCoding)" class="button1">
|
|
|
+ <button type="primary" @click="getMessage(jiarebanCoding)" class="button1">
|
|
|
<p class="p">获取</p>
|
|
|
</button>
|
|
|
</view>
|
|
|
<view class="body">
|
|
|
- 名称:<input class="input" name="shuibengName" :value="shuibengName" />
|
|
|
+ 名称:<input class="input" name="jiarebanName" :value="jiarebanName" />
|
|
|
</view>
|
|
|
<view class="body">
|
|
|
- 版本:<input class="input" name="shuibengVersion" :value="shuibengVersion" />
|
|
|
+ 版本:<input class="input" name="jiarebanVersion" :value="jiarebanVersion" />
|
|
|
</view>
|
|
|
<view class="modulesButton">
|
|
|
<button type="primary" form-type="submit" class="button1">
|
|
|
<p class="p">确认</p>
|
|
|
</button>
|
|
|
- <button type="primary" @click="updateModules(shuibengCoding,'shuibeng')" class="button1">
|
|
|
+ <button type="primary" @click="updateModules(jiarebanCoding,'jiareban')" class="button1">
|
|
|
<p class="p">更换</p>
|
|
|
</button>
|
|
|
</view>
|
|
@@ -207,60 +213,30 @@
|
|
|
</view>
|
|
|
</form>
|
|
|
<view class="line"></view>
|
|
|
- <form @submit="zidongdoor" @reset="zidongdoorReset">
|
|
|
- <view class="modules">
|
|
|
- <view class="title">自动门</view>
|
|
|
- <view class="body">
|
|
|
- <input class="input" style="display:none;" name="zidongdoorCoding" :value=zidongdoorCoding />
|
|
|
- 编码:<input class="input" v-model="zidongdoorCoding" />
|
|
|
- <button type="primary" @click="saoma('zidongdoorCoding')" class="button1">
|
|
|
- <p class="p">扫码</p>
|
|
|
- </button>
|
|
|
- <button type="primary" @click="getMessage(zidongdoorCoding)" class="button1">
|
|
|
- <p class="p">获取</p>
|
|
|
- </button>
|
|
|
- </view>
|
|
|
- <view class="body">
|
|
|
- 名称:<input class="input" name="zidongdoorName" :value="zidongdoorName" />
|
|
|
- </view>
|
|
|
- <view class="body">
|
|
|
- 版本:<input class="input" name="zidongdoorVersion" :value="zidongdoorVersion" />
|
|
|
- </view>
|
|
|
- <view class="modulesButton">
|
|
|
- <button type="primary" form-type="submit" class="button1">
|
|
|
- <p class="p">确认</p>
|
|
|
- </button>
|
|
|
- <button type="primary" @click="updateModules(zidongdoorCoding,'zidongdoor')" class="button1">
|
|
|
- <p class="p">更换</p>
|
|
|
- </button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </form>
|
|
|
- <view class="line"></view>
|
|
|
- <form @submit="shoudongdoor" @reset="shoudongdoorReset">
|
|
|
+ <form @submit="xiazai" @reset="xiazaiReset">
|
|
|
<view class="modules">
|
|
|
- <view class="title">手动门</view>
|
|
|
+ <view class="title">远程下载模块</view>
|
|
|
<view class="body">
|
|
|
- <input class="input" style="display:none;" name="shoudongdoorCoding" :value=shoudongdoorCoding />
|
|
|
- 编码:<input class="input" v-model="shoudongdoorCoding" />
|
|
|
- <button type="primary" @click="saoma('shoudongdoorCoding')" class="button1">
|
|
|
+ <input class="input" style="display:none;" name="xiazaiCoding" :value=xiazaiCoding />
|
|
|
+ 编码:<input class="input" v-model="xiazaiCoding" />
|
|
|
+ <button type="primary" @click="saoma('xiazaiCoding')" class="button1">
|
|
|
<p class="p">扫码</p>
|
|
|
</button>
|
|
|
- <button type="primary" @click="getMessage(shoudongdoorCoding)" class="button1">
|
|
|
+ <button type="primary" @click="getMessage(xiazaiCoding)" class="button1">
|
|
|
<p class="p">获取</p>
|
|
|
</button>
|
|
|
</view>
|
|
|
<view class="body">
|
|
|
- 名称:<input class="input" name="shoudongdoorName" :value="shoudongdoorName" />
|
|
|
+ 名称:<input class="input" name="xiazaiName" :value="xiazaiName" />
|
|
|
</view>
|
|
|
<view class="body">
|
|
|
- 版本:<input class="input" name="shoudongdoorVersion" :value="shoudongdoorVersion" />
|
|
|
+ 版本:<input class="input" name="xiazaiVersion" :value="xiazaiVersion" />
|
|
|
</view>
|
|
|
<view class="modulesButton">
|
|
|
<button type="primary" form-type="submit" class="button1">
|
|
|
<p class="p">确认</p>
|
|
|
</button>
|
|
|
- <button type="primary" @click="updateModules(shoudongdoorCoding,'shoudongdoor')" class="button1">
|
|
|
+ <button type="primary" @click="updateModules(xiazaiCoding,'xiazai')" class="button1">
|
|
|
<p class="p">更换</p>
|
|
|
</button>
|
|
|
</view>
|
|
@@ -373,9 +349,9 @@
|
|
|
<view class="body">
|
|
|
名称:<input class="input" name="anzhuopingName" :value="anzhuopingName" />
|
|
|
</view>
|
|
|
- <view class="body">
|
|
|
+ <!-- <view class="body">
|
|
|
版本:<input class="input" name="anzhuopingVersion" :value="anzhuopingVersion" />
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="modulesButton">
|
|
|
<button type="primary" form-type="submit" class="button1">
|
|
|
<p class="p">确认</p>
|
|
@@ -386,6 +362,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</form>
|
|
|
+
|
|
|
<view class="line"></view>
|
|
|
<form @submit="qibeng" @reset="yaxingdaoReset">
|
|
|
<view class="modules">
|
|
@@ -403,9 +380,9 @@
|
|
|
<view class="body">
|
|
|
名称:<input class="input" name="qibengName" :value="qibengName" />
|
|
|
</view>
|
|
|
- <view class="body">
|
|
|
+ <!-- <view class="body">
|
|
|
版本:<input class="input" name="qibengVersion" :value="qibengVersion" />
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="modulesButton">
|
|
|
<button type="primary" form-type="submit" class="button1">
|
|
|
<p class="p">确认</p>
|
|
@@ -416,6 +393,96 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</form>
|
|
|
+ <view class="line"></view>
|
|
|
+ <form @submit="zidongdoor" @reset="zidongdoorReset">
|
|
|
+ <view class="modules">
|
|
|
+ <view class="title">自动门</view>
|
|
|
+ <view class="body">
|
|
|
+ <input class="input" style="display:none;" name="zidongdoorCoding" :value=zidongdoorCoding />
|
|
|
+ 编码:<input class="input" v-model="zidongdoorCoding" />
|
|
|
+ <button type="primary" @click="saoma('zidongdoorCoding')" class="button1">
|
|
|
+ <p class="p">扫码</p>
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="getMessage(zidongdoorCoding)" class="button1">
|
|
|
+ <p class="p">获取</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ <view class="body">
|
|
|
+ 名称:<input class="input" name="zidongdoorName" :value="zidongdoorName" />
|
|
|
+ </view>
|
|
|
+ <view class="body">
|
|
|
+ 版本:<input class="input" name="zidongdoorVersion" :value="zidongdoorVersion" />
|
|
|
+ </view>
|
|
|
+ <view class="modulesButton">
|
|
|
+ <button type="primary" form-type="submit" class="button1">
|
|
|
+ <p class="p">确认</p>
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="updateModules(zidongdoorCoding,'zidongdoor')" class="button1">
|
|
|
+ <p class="p">更换</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </form>
|
|
|
+ <view class="line"></view>
|
|
|
+ <form @submit="shuibeng" @reset="shuibengReset">
|
|
|
+ <view class="modules">
|
|
|
+ <view class="title">水泵</view>
|
|
|
+ <view class="body">
|
|
|
+ <input class="input" style="display:none;" name="shuibengCoding" :value=shuibengCoding />
|
|
|
+ 编码:<input class="input" v-model="shuibengCoding" />
|
|
|
+ <button type="primary" @click="saoma('shuibengCoding')" class="button1">
|
|
|
+ <p class="p">扫码</p>
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="getMessage(shuibengCoding)" class="button1">
|
|
|
+ <p class="p">获取</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ <view class="body">
|
|
|
+ 名称:<input class="input" name="shuibengName" :value="shuibengName" />
|
|
|
+ </view>
|
|
|
+ <view class="body">
|
|
|
+ 版本:<input class="input" name="shuibengVersion" :value="shuibengVersion" />
|
|
|
+ </view>
|
|
|
+ <view class="modulesButton">
|
|
|
+ <button type="primary" form-type="submit" class="button1">
|
|
|
+ <p class="p">确认</p>
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="updateModules(shuibengCoding,'shuibeng')" class="button1">
|
|
|
+ <p class="p">更换</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </form>
|
|
|
+ <view class="line"></view>
|
|
|
+ <form @submit="shoudongdoor" @reset="shoudongdoorReset">
|
|
|
+ <view class="modules">
|
|
|
+ <view class="title">手动门</view>
|
|
|
+ <view class="body">
|
|
|
+ <input class="input" style="display:none;" name="shoudongdoorCoding" :value=shoudongdoorCoding />
|
|
|
+ 编码:<input class="input" v-model="shoudongdoorCoding" />
|
|
|
+ <button type="primary" @click="saoma('shoudongdoorCoding')" class="button1">
|
|
|
+ <p class="p">扫码</p>
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="getMessage(shoudongdoorCoding)" class="button1">
|
|
|
+ <p class="p">获取</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ <view class="body">
|
|
|
+ 名称:<input class="input" name="shoudongdoorName" :value="shoudongdoorName" />
|
|
|
+ </view>
|
|
|
+ <view class="body">
|
|
|
+ 版本:<input class="input" name="shoudongdoorVersion" :value="shoudongdoorVersion" />
|
|
|
+ </view>
|
|
|
+ <view class="modulesButton">
|
|
|
+ <button type="primary" form-type="submit" class="button1">
|
|
|
+ <p class="p">确认</p>
|
|
|
+ </button>
|
|
|
+ <button type="primary" @click="updateModules(shoudongdoorCoding,'shoudongdoor')" class="button1">
|
|
|
+ <p class="p">更换</p>
|
|
|
+ </button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </form>
|
|
|
|
|
|
<view class="">
|
|
|
<button type="primary" formType="submit" class="button">
|
|
@@ -448,6 +515,7 @@
|
|
|
jiashiqiName: null,
|
|
|
lutouName: null,
|
|
|
nameplate: null,
|
|
|
+ clientId:null,
|
|
|
producePersonnel: null,
|
|
|
jiashiqiVersion: null,
|
|
|
lutouVersion: null,
|
|
@@ -483,7 +551,14 @@
|
|
|
shoudongdoorVersion: null,
|
|
|
anzhuopingCoding:null,
|
|
|
anzhuopingName: null,
|
|
|
- anzhuopingVersion: null
|
|
|
+ anzhuopingVersion: null,
|
|
|
+ jiarebanCoding:null,
|
|
|
+ jiarebanName: null,
|
|
|
+ jiarebanVersion: null,
|
|
|
+ xiazaiCoding:null,
|
|
|
+ xiazaiName: null,
|
|
|
+ xiazaiVersion: null,
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -540,18 +615,67 @@
|
|
|
if (cod == 'anzhuopingCoding') {
|
|
|
that.anzhuopingCoding = res.result;
|
|
|
}
|
|
|
+ if (cod == 'jiarebanCoding') {
|
|
|
+ that.jiarebanCoding = res.result;
|
|
|
+ }
|
|
|
if (cod == 'jikeCoding') {
|
|
|
that.jikeCoding = res.result;
|
|
|
}
|
|
|
-
|
|
|
+ if (cod == 'xiazaiCoding') {
|
|
|
+ that.xiazaiCoding = res.result;
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
//获取机器详细信息
|
|
|
getMachine(coding) {
|
|
|
- // console.log("a");
|
|
|
-
|
|
|
var that = this;
|
|
|
+ that.jiashiqiName = null;
|
|
|
+ that.jiashiqiCoding = null;
|
|
|
+ that.jiashiqiVersion = null;
|
|
|
+ that.lutouName =null;
|
|
|
+ that.lutouCoding = null;
|
|
|
+ that.lutouVersion =null;
|
|
|
+ that.shuibengName = null;
|
|
|
+ that.shuibengCoding = null;
|
|
|
+ that.shuibengVersion = null;
|
|
|
+ that.chugunName = null;
|
|
|
+ that.chugunCoding = null;
|
|
|
+ that.chugunVersion = null;
|
|
|
+ that.dianguiName = null;
|
|
|
+ that.dianguiCoding = null;
|
|
|
+ that.dianguiVersion = null;
|
|
|
+ that.jikeName = null;
|
|
|
+ that.jikeCoding = null;
|
|
|
+ that.jikeVersion = null;
|
|
|
+ that.zidongdoorName = null;
|
|
|
+ that.zidongdoorCoding = null;
|
|
|
+ that.zidongdoorVersion = null;
|
|
|
+ that.shoudongdoorName = null;
|
|
|
+ that.shoudongdoorCoding = null;
|
|
|
+ that.shoudongdoorVersion = null;
|
|
|
+ that.jixieshouName = null;
|
|
|
+ that.jixieshouCoding = null;
|
|
|
+ that.jixieshouVersion = null;
|
|
|
+ that.yaxingdaoName = null;
|
|
|
+ that.yaxingdaoCoding = null;
|
|
|
+ that.yaxingdaoVersion = null;
|
|
|
+ that.songtangName = null;
|
|
|
+ that.songtangCoding = null;
|
|
|
+ that.songtangVersion = null;
|
|
|
+ that.songtangVersion = null;
|
|
|
+ that.qibengName = null;
|
|
|
+ that.qibengCoding = null;
|
|
|
+ that.qibengVersion = null;
|
|
|
+ that.anzhuopingName = null;
|
|
|
+ that.anzhuopingCoding = null;
|
|
|
+ that.anzhuopingVersion = null;
|
|
|
+ that.jiarebanName = null;
|
|
|
+ that.jiarebanCoding = null;
|
|
|
+ that.jiarebanVersion = null;
|
|
|
+ that.xiazaiName = null;
|
|
|
+ that.xiazaiCoding = null;
|
|
|
+ that.xiazaiVersion = null;
|
|
|
var serverUrl = that.serverurl;
|
|
|
var token = uni.getStorageSync("token");
|
|
|
uni.request({
|
|
@@ -561,7 +685,6 @@
|
|
|
'token': token
|
|
|
},
|
|
|
success: (Result) => {
|
|
|
- console.log(Result);
|
|
|
var res = Result;
|
|
|
if (res.data.code == true) {
|
|
|
//当机器已录入时,会先把所有录入模块给列出来
|
|
@@ -569,6 +692,7 @@
|
|
|
var tmachine = res.data.data.tmachine;
|
|
|
that.name = tmachine.name;
|
|
|
that.nameplate = tmachine.nameplate;
|
|
|
+ that.clientId = tmachine.clientId;
|
|
|
// that.producePersonnel = uni.getStorageSync("name");
|
|
|
var modulesList = res.data.data.modulesList;
|
|
|
var modules;
|
|
@@ -581,7 +705,6 @@
|
|
|
if (coding.substring(0, 2) == '15') {
|
|
|
//"加湿器"
|
|
|
if (coding.substring(5, 7) == '07') {
|
|
|
- that.lutouName = modulesList[i].name;
|
|
|
that.jiashiqiName = modulesList[i].name;
|
|
|
that.jiashiqiCoding = modulesList[i].coding;
|
|
|
that.jiashiqiVersion = modulesList[i].coding.substring(8, 10);
|
|
@@ -617,13 +740,13 @@
|
|
|
that.jikeVersion = modulesList[i].coding.substring(8, 10);
|
|
|
}
|
|
|
//自动门
|
|
|
- if (coding.substring(5, 7) == '11') {
|
|
|
+ if (coding.substring(5, 7) == '12') {
|
|
|
that.zidongdoorName = modulesList[i].name;
|
|
|
that.zidongdoorCoding = modulesList[i].coding;
|
|
|
that.zidongdoorVersion = modulesList[i].coding.substring(8, 10);
|
|
|
}
|
|
|
//手动门
|
|
|
- if (coding.substring(5, 7) == '12') {
|
|
|
+ if (coding.substring(5, 7) == '11') {
|
|
|
that.shoudongdoorName = modulesList[i].name;
|
|
|
that.shoudongdoorCoding = modulesList[i].coding;
|
|
|
that.shoudongdoorVersion = modulesList[i].coding.substring(8, 10);
|
|
@@ -646,28 +769,43 @@
|
|
|
that.songtangCoding = modulesList[i].coding;
|
|
|
that.songtangVersion = modulesList[i].coding.substring(8, 10);
|
|
|
}
|
|
|
-
|
|
|
+ //远程下载模块
|
|
|
+ if (coding.substring(5, 7) == '13') {
|
|
|
+ that.xiazaiName = modulesList[i].name;
|
|
|
+ that.xiazaiCoding = modulesList[i].coding;
|
|
|
+ that.xiazaiVersion = modulesList[i].coding.substring(8, 10);
|
|
|
+ }
|
|
|
+ //加热板
|
|
|
+ if (coding.substring(5, 7) == '14') {
|
|
|
+ that.jiarebanName = modulesList[i].name;
|
|
|
+ // that.qibengCoding = modulesList[i].coding.substring(0, 10);
|
|
|
+ that.jiarebanCoding = modulesList[i].coding;
|
|
|
+ that.jiarebanVersion = modulesList[i].coding.substring(8, 10);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}else{
|
|
|
//气泵
|
|
|
if (coding.substring(8, 10) == '39') {
|
|
|
that.qibengName = modulesList[i].name;
|
|
|
- that.qibengCoding = modulesList[i].coding.substring(0, 10);
|
|
|
+ // that.qibengCoding = modulesList[i].coding.substring(0, 10);
|
|
|
+ that.qibengCoding = modulesList[i].coding;
|
|
|
that.qibengVersion = modulesList[i].coding.substring(8, 10);
|
|
|
}
|
|
|
//安卓屏
|
|
|
- if (coding.substring(8, 10) == '71'||coding.substring(8, 10) == '72') {
|
|
|
+ if (coding.substring(8, 10) == '71'||coding.substring(8, 10) == '72'||coding.substring(7, 10) == '138'||coding.substring(7, 10) == '139') {
|
|
|
that.anzhuopingName = modulesList[i].name;
|
|
|
- that.anzhuopingCoding = modulesList[i].coding.substring(0, 10);
|
|
|
+ that.anzhuopingCoding = modulesList[i].coding;
|
|
|
that.anzhuopingVersion = modulesList[i].coding.substring(8, 10);
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
var codes = res.data.data;
|
|
|
that.name = codes.name;
|
|
|
that.nameplate = codes.nameplate;
|
|
|
+ that.clientId = codes.clientId;
|
|
|
that.producePersonnel = uni.getStorageSync("name");
|
|
|
}
|
|
|
|
|
@@ -691,7 +829,6 @@
|
|
|
'token': token
|
|
|
},
|
|
|
success: (Result) => {
|
|
|
- console.log("1");
|
|
|
var res = Result;
|
|
|
if (res.data.code == true) {
|
|
|
var codes = res.data.data;
|
|
@@ -702,7 +839,6 @@
|
|
|
if (coding.substring(0, 2) == '15') {
|
|
|
//"加湿器"
|
|
|
if (coding.substring(5, 7) == '07') {
|
|
|
- that.lutouName = codes.name;
|
|
|
that.jiashiqiName = codes.name;
|
|
|
that.jiashiqiCoding = codes.coding;
|
|
|
that.jiashiqiVersion = codes.code.substring(8, 10);
|
|
@@ -738,13 +874,13 @@
|
|
|
that.jikeVersion = codes.code.substring(8, 10);
|
|
|
}
|
|
|
//自动门
|
|
|
- if (coding.substring(5, 7) == '11') {
|
|
|
+ if (coding.substring(5, 7) == '12') {
|
|
|
that.zidongdoorName = codes.name;
|
|
|
that.zidongdoorCoding = codes.coding;
|
|
|
that.zidongdoorVersion = codes.code.substring(8, 10);
|
|
|
}
|
|
|
//手动门
|
|
|
- if (coding.substring(5, 7) == '12') {
|
|
|
+ if (coding.substring(5, 7) == '11') {
|
|
|
that.shoudongdoorName = codes.name;
|
|
|
that.shoudongdoorCoding = codes.coding;
|
|
|
that.shoudongdoorVersion = codes.code.substring(8, 10);
|
|
@@ -767,13 +903,24 @@
|
|
|
that.songtangCoding = codes.coding;
|
|
|
that.songtangVersion = codes.code.substring(8, 10);
|
|
|
}
|
|
|
-
|
|
|
+ //远程下载模块
|
|
|
+ if (coding.substring(5, 7) == '13') {
|
|
|
+ that.xiazaiName = codes.name;
|
|
|
+ that.xiazaiCoding = codes.coding;
|
|
|
+ that.xiazaiVersion = codes.code.substring(8, 10);
|
|
|
+ }
|
|
|
+ //加热板
|
|
|
+ if (coding.substring(5, 7) == '14') {
|
|
|
+ that.jiarebanName = codes.name;
|
|
|
+ that.jiarebanCoding = codes.coding;
|
|
|
+ that.jiarebanVersion =codes.code.substring(8, 10);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}else{
|
|
|
//安卓屏
|
|
|
- if (coding.substring(8, 10) == '71'||coding.substring(8, 10) == '72') {
|
|
|
- debugger;
|
|
|
+ if (coding.substring(8, 10) == '71'||coding.substring(8, 10) == '72'||coding.substring(7, 10) == '138'||coding.substring(7, 10) == '139') {
|
|
|
+ // debugger;
|
|
|
that.anzhuopingName = codes.name;
|
|
|
that.anzhuopingCoding = codes.coding;
|
|
|
that.anzhuopingVersion = codes.versions;
|
|
@@ -784,6 +931,7 @@
|
|
|
that.qibengCoding = codes.coding;
|
|
|
that.qibengVersion = codes.versions;
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
} else {
|
|
|
uni.showModal({
|
|
@@ -810,6 +958,7 @@
|
|
|
"coding": modules.coding,
|
|
|
"name": modules.name,
|
|
|
"nameplate": modules.nameplate,
|
|
|
+ "clientId":modules.clientId,
|
|
|
"createPersonnel": createPersonnel
|
|
|
},
|
|
|
header: {
|
|
@@ -830,7 +979,7 @@
|
|
|
const {
|
|
|
value: modules
|
|
|
} = event.detail;
|
|
|
- console.log(event.detail.value);
|
|
|
+ // console.log(event.detail.value);
|
|
|
|
|
|
var token = uni.getStorageSync("token");
|
|
|
var createPersonnel = uni.getStorageSync("name");
|
|
@@ -898,9 +1047,15 @@
|
|
|
anzhuoping(event){
|
|
|
this.tijiao(event,"anzhuoping");
|
|
|
},
|
|
|
+ jiareban(event){
|
|
|
+ this.tijiao(event,"jiareban");
|
|
|
+ },
|
|
|
jike(event){
|
|
|
this.tijiao(event,"jike");
|
|
|
},
|
|
|
+ xiazai(event){
|
|
|
+ this.tijiao(event,"xiazai");
|
|
|
+ },
|
|
|
tijiao(event,sname){
|
|
|
var serverUrl = this.serverurl;
|
|
|
var machineCoding = this.coding;
|
|
@@ -912,7 +1067,7 @@
|
|
|
var mapValue = this.objToStrMap(eValue);
|
|
|
var coding = mapValue.get(sname+"Coding");
|
|
|
var name = mapValue.get(sname+"Name");
|
|
|
- console.log(coding+"---"+name);
|
|
|
+ // console.log(coding+"---"+name);
|
|
|
var token = uni.getStorageSync("token");
|
|
|
var createPersonnel = uni.getStorageSync("name");
|
|
|
uni.request({
|
|
@@ -1011,11 +1166,21 @@
|
|
|
that.anzhuopingCoding = null;
|
|
|
that.anzhuopingVersion = null;
|
|
|
}
|
|
|
+ if (name == "jiareban") {
|
|
|
+ that.jiarebanName = null;
|
|
|
+ that.jiarebanCoding = null;
|
|
|
+ that.jiarebanVersion = null;
|
|
|
+ }
|
|
|
if (name == "jike") {
|
|
|
that.jikeName = null;
|
|
|
that.jikeCoding = null;
|
|
|
that.jikeVersion = null;
|
|
|
}
|
|
|
+ if (name == "xiazai") {
|
|
|
+ that.xiazaiName = null;
|
|
|
+ that.xiazaiCoding = null;
|
|
|
+ that.xiazaiVersion = null;
|
|
|
+ }
|
|
|
} else if (res.cancel) {}
|
|
|
}
|
|
|
});
|
|
@@ -1025,7 +1190,6 @@
|
|
|
submit(event){
|
|
|
var serverUrl = this.serverurl;
|
|
|
var machineCoding = this.coding;
|
|
|
- console.log("3");
|
|
|
const {
|
|
|
value: modules
|
|
|
} = event.detail;
|