|
@ -130,13 +130,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
<!-- <com-count-items ref='comcountItems' @selectedItem='selectedCountItem'> </com-count-items> --> |
|
|
<!-- <com-count-items ref='comcountItems' @selectedItem='selectedCountItem'> </com-count-items> --> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<winScanByCode ref="scanPopup" title="物料号" @getScanCode='getScanResult' @close='closeScanPopup()'></winScanByCode> |
|
|
<winScanByProductCode ref="scanPopup" title="单件码" @getScanResult='getScanResult' ></winScanByProductCode> |
|
|
<com-easy-input ref="descPopup" @confirm='closeEditCountDesc'></com-easy-input> |
|
|
<com-easy-input ref="descPopup" @confirm='closeEditCountDesc'></com-easy-input> |
|
|
<com-easy-input-count ref="countPopup" @confirm='closeEditCount'></com-easy-input-count> |
|
|
<com-easy-input-count ref="countPopup" @confirm='closeEditCount'></com-easy-input-count> |
|
|
<win-inventory-status ref="statusPopup"></win-inventory-status> |
|
|
<win-inventory-status ref="statusPopup"></win-inventory-status> |
|
|
<!-- com-message必须放在最下层 --> |
|
|
<!-- com-message必须放在最下层 --> |
|
|
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'></com-message> |
|
|
<com-message ref="comMessage" @afterCloseCommitMessage='closeCommitMessage()'></com-message> |
|
|
<!-- <uni-load-more :status="loadingType" v-if="details.length>0"></uni-load-more> --> |
|
|
<!-- <uni-load-more :status="loadingType" v-if="details.length>0"></uni-load-more> --> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -187,7 +188,7 @@ |
|
|
import comEasyInput from '@/mycomponents/common/comEasyInput.vue'; |
|
|
import comEasyInput from '@/mycomponents/common/comEasyInput.vue'; |
|
|
import comEasyInputCount from '@/mycomponents/common/comEasyInputCount.vue'; |
|
|
import comEasyInputCount from '@/mycomponents/common/comEasyInputCount.vue'; |
|
|
import winInventoryStatus from '@/mycomponents/wincom/winInventoryStatus.vue'; |
|
|
import winInventoryStatus from '@/mycomponents/wincom/winInventoryStatus.vue'; |
|
|
|
|
|
import winScanByProductCode from '@/mycomponents/wincom/winScanByProductCode.vue' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
@ -199,7 +200,8 @@ |
|
|
comNumberBox, |
|
|
comNumberBox, |
|
|
comEasyInput, |
|
|
comEasyInput, |
|
|
comEasyInputCount, |
|
|
comEasyInputCount, |
|
|
winInventoryStatus |
|
|
winInventoryStatus, |
|
|
|
|
|
winScanByProductCode |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -384,7 +386,8 @@ |
|
|
return list.slice(start, end) |
|
|
return list.slice(start, end) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
getScanResult(itemCode){ |
|
|
getScanResult(result){ |
|
|
|
|
|
var itemCode =result.itemCode; |
|
|
this.getitem(itemCode,res=>{ |
|
|
this.getitem(itemCode,res=>{ |
|
|
var result = res; |
|
|
var result = res; |
|
|
var itemScan = this.scanAllDetails.filter(r => |
|
|
var itemScan = this.scanAllDetails.filter(r => |
|
@ -407,6 +410,7 @@ |
|
|
this.addNewDetail(result) |
|
|
this.addNewDetail(result) |
|
|
} else if (items.length == 1) { |
|
|
} else if (items.length == 1) { |
|
|
var item = items[0]; |
|
|
var item = items[0]; |
|
|
|
|
|
item.isNew =true; |
|
|
this.setQty(item, item.inventoryQty, true); |
|
|
this.setQty(item, item.inventoryQty, true); |
|
|
} else { |
|
|
} else { |
|
|
this.showMessage('盘点数量异常,箱码【' + packingCode + '】的出现多条数据'); |
|
|
this.showMessage('盘点数量异常,箱码【' + packingCode + '】的出现多条数据'); |
|
@ -549,10 +553,12 @@ |
|
|
detail.inventoryQty = 0; |
|
|
detail.inventoryQty = 0; |
|
|
detail.countQty = 1; |
|
|
detail.countQty = 1; |
|
|
detail.status = 2; |
|
|
detail.status = 2; |
|
|
|
|
|
detail.uom =result.basicUom |
|
|
return detail; |
|
|
return detail; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setQty(item, qty, isAdd) { |
|
|
setQty(item, qty, isAdd) { |
|
|
|
|
|
|
|
|
item.countQty = Number(qty); |
|
|
item.countQty = Number(qty); |
|
|
item.countTime = new Date(); |
|
|
item.countTime = new Date(); |
|
|
item.IsDelete =false; |
|
|
item.IsDelete =false; |
|
@ -574,8 +580,13 @@ |
|
|
content: '是否移除选择的行?', |
|
|
content: '是否移除选择的行?', |
|
|
success: res => { |
|
|
success: res => { |
|
|
if (res.confirm) { |
|
|
if (res.confirm) { |
|
|
|
|
|
if(item.isNew){ |
|
|
|
|
|
this.showList.splice(index, 1) |
|
|
|
|
|
this.scanAllDetails.splice(index, 1) |
|
|
|
|
|
}else { |
|
|
item.IsDelete = true; |
|
|
item.IsDelete = true; |
|
|
item.modified = true; |
|
|
item.modified = true; |
|
|
|
|
|
} |
|
|
this.initList(); |
|
|
this.initList(); |
|
|
this.scanPopupGetfocus(); |
|
|
this.scanPopupGetfocus(); |
|
|
this.calcScanCount(); |
|
|
this.calcScanCount(); |
|
@ -670,7 +681,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
calcScanCount() { |
|
|
calcScanCount() { |
|
|
this.scanCount = this.scanAllDetails.length; |
|
|
this.scanCount = this.scanAllDetails.filter(r=>r.IsDelete==false).length; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
bindPickerChange(e, item) { |
|
|
bindPickerChange(e, item) { |
|
|