|
@@ -7,9 +7,10 @@
|
|
|
<textarea class="input" @input="inputEvent" /> -->
|
|
|
<!-- <button type="primary" @tap="sendData">发送(票据可使用)</button> -->
|
|
|
|
|
|
- <view style='margin-top:4%;display: flex;flex-direction: row;'>
|
|
|
+ <view style='margin-top:4%;display: flex;flex-direction: column;'>
|
|
|
<button type='primary' class="btn" @tap='receiptTest' :loading='isReceiptSend'
|
|
|
:disabled='isReceiptSend'>打印质检单小票</button>
|
|
|
+ <button type='primary' class="btn" @tap='goToList'>返回列表页</button>
|
|
|
<!-- <button type='primary' @tap='labelTest' :loading='isLabelSend' :disabled='isLabelSend'>标签测试</button> -->
|
|
|
</view>
|
|
|
|
|
@@ -71,15 +72,15 @@
|
|
|
deviceId: BLEInformation.deviceId,
|
|
|
serviceId: BLEInformation.notifyServiceId,
|
|
|
characteristicId: BLEInformation.notifyCharaterId,
|
|
|
- state: true,
|
|
|
+ state: true,
|
|
|
success(res) {
|
|
|
uni.onBLECharacteristicValueChange(function(r) {
|
|
|
console.log(`characteristic ${r.characteristicId} has changed, now is ${r}`)
|
|
|
})
|
|
|
},
|
|
|
- fail: function(e) {
|
|
|
+ fail: function(e) {
|
|
|
console.log(e)
|
|
|
- },
|
|
|
+ },
|
|
|
complete: function(e) {
|
|
|
console.log(e)
|
|
|
}
|
|
@@ -140,6 +141,11 @@
|
|
|
// })
|
|
|
},
|
|
|
methods: {
|
|
|
+ goToList(){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/erpbusiness/quality_testing?managementType=1'
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取输入内容
|
|
|
inputEvent(e) {
|
|
|
this.sendContent = e.detail.value;
|
|
@@ -510,12 +516,14 @@
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
}
|
|
|
- .btn{
|
|
|
+
|
|
|
+ .btn {
|
|
|
margin-top: 50rpx;
|
|
|
background: #22C572;
|
|
|
}
|
|
|
+
|
|
|
uni-button[loading][type=primary] {
|
|
|
- color: hsla(0,0%,100%,.6);
|
|
|
- background-color: #22C572;
|
|
|
+ color: hsla(0, 0%, 100%, .6);
|
|
|
+ background-color: #22C572;
|
|
|
}
|
|
|
</style>
|