|
|
@@ -18,7 +18,6 @@
|
|
|
<ul class="nav nav-pills">
|
|
|
<b style="padding: 10px">请选择设备:</b>
|
|
|
<li v-for="measuringMachine in measuringMachines" @click="clickMeasuringMachine(measuringMachine.id)" :class="[measuringMachine.name==package.measuringMachine ? selectedMachine : otherMachine] " style="padding: 10px">
|
|
|
- {{--<span v-if="package.measuringMachine==measuringMachine.name" :class="[package.measuringMachine_status=='离线' ? off : on] " style="font-size:12px;"></span>--}}
|
|
|
<span :class="[measuringMachine.status=='离线' ? off : on] " style="font-size:12px;"></span>
|
|
|
<a style="text-decoration:none;cursor:pointer" class="text-dark" >@{{measuringMachine.name}}</a>
|
|
|
</li>
|
|
|
@@ -32,31 +31,31 @@
|
|
|
<tr>
|
|
|
<th class="tag" scope="row">货主</th>
|
|
|
<td style="border-right:thick double #aaaaaa;">@{{package.owner}}</td>
|
|
|
- <th class="tag" scope="row" scope="row">重量(KG)</th>
|
|
|
+ <th class="tag" scope="row">重量(KG)</th>
|
|
|
<td>@{{package.weight}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th class="tag" scope="row" scope="row">订单编号</th>
|
|
|
+ <th class="tag" scope="row">订单编号</th>
|
|
|
<td style="border-right:thick double #aaaaaa;">@{{package.orderno}}</td>
|
|
|
- <th class="tag" scope="row" scope="row">收件人</th>
|
|
|
+ <th class="tag" scope="row">收件人</th>
|
|
|
<td>@{{package.recipient}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th class="tag" scope="row" scope="row">承运商</th>
|
|
|
+ <th class="tag" scope="row">承运商</th>
|
|
|
<td style="border-right:thick double #aaaaaa;">@{{package.logistic_name}}</td>
|
|
|
- <th class="tag" scope="row" scope="row">快递单号</th>
|
|
|
+ <th class="tag" scope="row">快递单号</th>
|
|
|
<td>@{{package.logistic_number}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th class="tag" scope="row" scope="row">纸箱名称</th>
|
|
|
+ <th class="tag" scope="row">纸箱名称</th>
|
|
|
<td style="border-right:thick double #aaaaaa;">@{{package.paperBox}}</td>
|
|
|
- <th class="tag" scope="row" scope="row">体积(CM³)</th>
|
|
|
+ <th class="tag" scope="row">体积(CM³)</th>
|
|
|
<td>@{{package.bulk}}</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <th class="tag" scope="row" scope="row">状态</th>
|
|
|
+ <th class="tag" scope="row">状态</th>
|
|
|
<td style="border-right:thick double #aaaaaa;">@{{package.status}}</td>
|
|
|
- <th class="tag" scope="row" scope="row">操作时间</th>
|
|
|
+ <th class="tag" scope="row">操作时间</th>
|
|
|
<td>@{{package.weighed_at}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
@@ -136,31 +135,27 @@
|
|
|
audio.src=_this.logisticAudioURL[logistic_name];
|
|
|
audio.play();
|
|
|
}else {
|
|
|
- axios.post('/package/measureMonitor/speech',{logistic:logistic_name})
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
+ window.axios.post('/package/measureMonitor/speech',{logistic:logistic_name})
|
|
|
.then(function (response) {
|
|
|
if (response.data){
|
|
|
_this.logisticAudioURL[logistic_name]=response.data;
|
|
|
audio.src=response.data;
|
|
|
audio.play();
|
|
|
- }else {
|
|
|
- tempTip.setDuration(4000);
|
|
|
- tempTip.show('没有对应快递名称!');
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function (err) {
|
|
|
- tempTip.setDuration(4000);
|
|
|
- tempTip.show('语音合成发生错误:'+err);
|
|
|
+ }else window.tempTip.show('没有对应快递名称!');
|
|
|
+ }).catch(function (err) {
|
|
|
+ window.tempTip.show('语音合成发生错误:'+err);
|
|
|
});
|
|
|
}
|
|
|
- tempTip.setDuration(1000);
|
|
|
- tempTip.showSuccess('刷新成功!');
|
|
|
+ window.tempTip.setDuration(1000);
|
|
|
+ window.tempTip.showSuccess('刷新成功!');
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
methods:{
|
|
|
clickMeasuringMachine(e){
|
|
|
let _this=this;
|
|
|
- axios.post('{{url('package/measureMonitor/data')}}',{id:e})
|
|
|
+ window.axios.post('{{url('package/measureMonitor/data')}}',{id:e})
|
|
|
.then(function (response) {
|
|
|
if (response.data.id){
|
|
|
let orderPackage=response.data;
|