|
|
@@ -13,7 +13,7 @@
|
|
|
<view class="tui-title">小票机密钥:</view>
|
|
|
<input v-model="form.printKey" @focus="form.printKey=''" placeholder-class="phcolor" class="tui-input" name="printKey" placeholder="请填写密钥,KEY码" maxlength="50" type="text" />
|
|
|
</tui-list-cell>
|
|
|
-
|
|
|
+<view style="margin-top:50upx;">
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
<view class="tui-title">标签机编号:</view>
|
|
|
<input v-model="form.printLabelSn" @focus="form.printLabelSn=''" placeholder-class="phcolor" class="tui-input" name="printLabelSn" placeholder="请填写编号,SN码" maxlength="50" type="number" />
|
|
|
@@ -23,7 +23,7 @@
|
|
|
<view class="tui-title">标签机密钥:</view>
|
|
|
<input v-model="form.printLabelKey" @focus="form.printLabelKey=''" placeholder-class="phcolor" class="tui-input" name="printLabelKey" placeholder="请填写密钥,KEY码" maxlength="50" type="text" />
|
|
|
</tui-list-cell>
|
|
|
-
|
|
|
+</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="confirm-btn">
|
|
|
@@ -88,11 +88,13 @@ export default {
|
|
|
},
|
|
|
confirmFn() {
|
|
|
addCloudPrint(this.form).then((res) => {
|
|
|
- this.$msg(res.msg);
|
|
|
+ if(res.code == 1){
|
|
|
+ this.$msg(res.msg)
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateBack();
|
|
|
+ }, 1200)
|
|
|
+ }
|
|
|
})
|
|
|
- setTimeout(() => {
|
|
|
- uni.navigateBack();
|
|
|
- }, 1200)
|
|
|
},
|
|
|
formSubmit(e) {
|
|
|
let rules = [
|