Java多商戶代碼版本1.4(20240123),這個版本的用戶會出現(xiàn)在商戶端添加商品時輸入的金額低于10的時候消失的問題。在后面的版本中會優(yōu)化這個問題,如果是不更新的情況可以根據(jù)下面的方法來解決。
解決方法如下:
替換如下內容:
//返傭輸入
????keyupEventBrokerage(val,?index,?num)?{
??????switch?(num)?{
????????case?1:
??????????this.oneFormBatch[index][val]?=
????????????this.oneFormBatch[index][val]?>?0???parseInt(this.oneFormBatch[index][val])?:?0;
??????????break;
????????case?2:
??????????this.OneattrValue[index][val]?=
????????????this.OneattrValue[index][val]?>?0???parseInt(this.OneattrValue[index][val])?:?0;
??????????break;
????????default:
??????????this.ManyAttrValue[index][val]?=?this.ManyAttrValue[index][val]
??????????????parseInt(this.ManyAttrValue[index][val])
????????????:?0;
??????}
????},
????//價格輸入
????keyupEvent(key,?val,?index,?num)?{
??????if?(key?===?'barCode')?return;
??????const?regex?=?/^\d{1,6}(\.\d{1,2})?$/;
??????const?re?=?/^\D*([0-9](\d{1,5}(\.\d{1,2})?))?.*$/;
??????switch?(num)?{
????????case?1:
??????????if?(val?==?0)?{
????????????this.oneFormBatch[index][key]?=?key?===?'stock'?||?key?===?'weight'?||?key?===?'volume'???0?:?0.01;
??????????}?else?{
????????????this.oneFormBatch[index][key]?=
??????????????key?===?'stock'
??????????????????parseInt(val)
????????????????:?regex.test(val)
??????????????????val
????????????????:?this.$set(this.oneFormBatch[index],?key,?val.toString().replace(re,?'$1'));
??????????}
??????????break;
????????case?2:
??????????if?(val?==?0)?{
????????????this.OneattrValue[index][key]?=?key?===?'stock'?||?key?===?'weight'?||?key?===?'volume'???0?:?0.01;
??????????}?else?{
????????????this.OneattrValue[index][key]?=
??????????????key?===?'stock'
??????????????????parseInt(val)
????????????????:?regex.test(val)
??????????????????val
????????????????:?this.$set(this.OneattrValue[index],?key,?val.toString().replace(re,?'$1'));
??????????}
??????????break;
????????default:
??????????if?(val?==?0)?{
????????????this.ManyAttrValue[index][key]?=?key?===?'stock'?||?key?===?'weight'?||?key?===?'volume'???0?:?0.01;
??????????}?else?{
????????????this.ManyAttrValue[index][key]?=
??????????????key?===?'stock'
??????????????????parseInt(val)
????????????????:?regex.test(val)
??????????????????val
????????????????:?this.$set(this.ManyAttrValue[index],?key,?val.toString().replace(re,?'$1'));
??????????}
??????????break;
??????}
????},