|
|
@@ -56,6 +56,9 @@
|
|
|
<button class="admin-button-com blue middle" @click="affirmFormSubmit">提交</button>
|
|
|
</view>
|
|
|
|
|
|
+ <view v-if="isScanEnv" @click="changeGet" style="width:125upx;height:125upx;display:flex;justify-content:center;align-items:center;font-size:60upx;
|
|
|
+ background:#3385ff;color:white;z-index:9999;position:fixed;bottom:160upx;right:40upx;border-radius:60upx;">{{calc=='add'?'+':'-'}}</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -116,6 +119,8 @@ export default {
|
|
|
money: "",
|
|
|
showCustomer: false,
|
|
|
selectJobType: "wastage",
|
|
|
+ calc:'add',
|
|
|
+ isScanEnv:false
|
|
|
};
|
|
|
},
|
|
|
onLoad (option) {
|
|
|
@@ -138,6 +143,12 @@ export default {
|
|
|
this.form.customName = option.customName
|
|
|
}
|
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
+ if(this.$util.isScanEnv()){
|
|
|
+ this.isScanEnv = true
|
|
|
+ }
|
|
|
+ // #endif
|
|
|
+
|
|
|
this.listenScanItem()
|
|
|
|
|
|
},
|
|
|
@@ -157,6 +168,9 @@ export default {
|
|
|
...mapActions(["initMerchantInfo"]),
|
|
|
init () {
|
|
|
this._getDet();
|
|
|
+ },
|
|
|
+ changeGet(){
|
|
|
+ this.calc = this.calc == 'add' ? 'sub' : 'add'
|
|
|
},
|
|
|
payWayChange(e){
|
|
|
let index = e.detail.value
|