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