|
|
@ -48,10 +48,15 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
|
<win-scan-pack-and-location ref="scanPopup" :noShowBalanceMessage="true" @getCountScanResult='getScanResult'> |
|
|
|
<win-scan-pack-and-location |
|
|
|
ref="scanPopup" :noShowBalanceMessage="true" |
|
|
|
:isCount="true" |
|
|
|
@getCountScanResult='getScanResult'> |
|
|
|
</win-scan-pack-and-location> |
|
|
|
<count-qty-edit ref="countQtyEdit" @confirm="editConfirm" @close="editClose" :isShowStatus="true" |
|
|
|
:allowEditStatus="editInventoryStatus" :isShowBalance="jobContent.isOpenCount=='TRUE'"> |
|
|
|
:allowEditStatus="editInventoryStatus" |
|
|
|
|
|
|
|
:isShowBalance="jobContent.isOpenCount=='TRUE'"> |
|
|
|
</count-qty-edit> |
|
|
|
<balance-select ref="balanceSelect" @onSelectItem='selectBalanceItem'></balance-select> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
@ -69,7 +74,9 @@ |
|
|
|
calc |
|
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
import { Decimal } from 'decimal.js';//引入 |
|
|
|
import { |
|
|
|
Decimal |
|
|
|
} from 'decimal.js'; //引入 |
|
|
|
|
|
|
|
import { |
|
|
|
goHome, |
|
|
@ -570,7 +577,7 @@ |
|
|
|
if (res) { |
|
|
|
var item = this.createAddItemInfo(this.balance, this.package); |
|
|
|
let newDetail = this.createAddDetailInfo(qty, inventoryStatus); // |
|
|
|
item.subList.push(newDetail); |
|
|
|
item.subList.unshift(newDetail); |
|
|
|
this.detailSource.push(item) |
|
|
|
this.showMessage('添加成功'); |
|
|
|
this.updateData() |
|
|
@ -587,7 +594,7 @@ |
|
|
|
if (res) { |
|
|
|
// detail.qty = calc.add(qty, qty) |
|
|
|
let newDetail = that.createAddDetailInfo(qty, inventoryStatus); // |
|
|
|
detail.subList.push(newDetail); |
|
|
|
detail.subList.unshift(newDetail); |
|
|
|
this.showMessage('添加成功'); |
|
|
|
that.updateData() |
|
|
|
} |
|
|
|