|
@@ -13,6 +13,7 @@
|
|
|
bgColor="#F5F9FC"
|
|
|
@search="getCheckGoods"
|
|
|
@custom="getCheckGoods"
|
|
|
+ @clear="clearCode"
|
|
|
:inputStyle="{height:'88rpx'}"
|
|
|
:actionStyle="{'background-color':'#3ebbff',width:'88rpx',height:'88rpx','line-height':'88rpx',color:'#fff','border-radius':'16rpx'}"
|
|
|
v-model="exchangeCode">
|
|
@@ -83,7 +84,7 @@ import { LOG } from "@zxing/library/esm/core/datamatrix/encoder/constants";
|
|
|
mounted() {
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
+ this.exchangeCode = this.vuexExchangeCode;
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
|
|
@@ -111,6 +112,10 @@ import { LOG } from "@zxing/library/esm/core/datamatrix/encoder/constants";
|
|
|
console.log('getCheckGood',err);
|
|
|
})
|
|
|
},
|
|
|
+ clearCode(){
|
|
|
+ this.showEmpty = true;
|
|
|
+ this.showResult = true;
|
|
|
+ },
|
|
|
check(){//核销
|
|
|
this.$u.api.check({exchangeCode:this.exchangeCode}).then(res=>{
|
|
|
this.checkGoods = {};
|