|
|
@@ -32,7 +32,7 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="item" v-if="form.complete == 1">
|
|
|
- <text class="left">完成后打印</text>
|
|
|
+ <text class="left">打印条码</text>
|
|
|
<switch :checked="form.needPrint == 1 ? true : false" @change="changePrint" style="transform: scale(0.9,0.8)" />
|
|
|
</view>
|
|
|
|
|
|
@@ -156,11 +156,14 @@ export default {
|
|
|
this.$msg('请选择花材')
|
|
|
return false
|
|
|
}
|
|
|
+ if(this.form.complete == 0){
|
|
|
+ this.form.needPrint == 2
|
|
|
+ }
|
|
|
if(this.form.needPrint == 1){
|
|
|
// #ifdef MP-WEIXIN
|
|
|
- this.$msg('请在APP上操作')
|
|
|
- return false
|
|
|
+ this.$msg('小程序不支持打印条码')
|
|
|
// #endif
|
|
|
+ // #ifdef APP-PLUS
|
|
|
plug.state({},ret=>{
|
|
|
if(ret.code == 1){
|
|
|
//提醒连接标签机
|
|
|
@@ -169,6 +172,7 @@ export default {
|
|
|
this.commitCreate()
|
|
|
}
|
|
|
})
|
|
|
+ // #endif
|
|
|
}else{
|
|
|
this.commitCreate()
|
|
|
}
|