|
|
@ -16,11 +16,13 @@ |
|
|
|
:rawLocationCode="toLocation.toLocationCode"></work-station> |
|
|
|
</view> |
|
|
|
<com-issue-detail-card ref='comIssueDetailCard' :dataContent="toLocation" |
|
|
|
@updateData='updateData'> |
|
|
|
@updateData='updateData' |
|
|
|
@removeItemCode ="removeItemCode" |
|
|
|
> |
|
|
|
</com-issue-detail-card> |
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
<button class="btn_add" @click="goScan(true)">+去添加</button> |
|
|
|
<button class="btn_add" @click="goScan(false)">+去添加</button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="page-footer"> |
|
|
@ -35,13 +37,15 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
<com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirm'></com-issue-request-popup> |
|
|
|
<win-scan-button v-if='detailSource.length>0' @goScan='openScanDetailPopup'></win-scan-button> |
|
|
|
<com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'> |
|
|
|
</com-scan-issue-pack> |
|
|
|
<com-message ref="comMessage"></com-message> |
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
@ -131,6 +135,7 @@ |
|
|
|
this.toInventoryStatuses = res.toInventoryStatuses |
|
|
|
this.goScan(true) |
|
|
|
} else { |
|
|
|
|
|
|
|
this.showErrorMessage(res.message) |
|
|
|
} |
|
|
|
}); |
|
|
@ -148,6 +153,7 @@ |
|
|
|
}); |
|
|
|
}, |
|
|
|
goScan(editPosition) { |
|
|
|
|
|
|
|
this.$refs.comIssueRequestPopup.openRequestPopup(editPosition); |
|
|
|
}, |
|
|
|
|
|
|
@ -267,6 +273,14 @@ |
|
|
|
// item.handleQty=itemHandleQty; |
|
|
|
// this.closeScan(); |
|
|
|
}, |
|
|
|
removeItemCode(){ |
|
|
|
var isClear =this.detailSource[0].Items.length==0 |
|
|
|
if(isClear){ |
|
|
|
this.clearData(); |
|
|
|
this.$refs.comIssueRequestPopup.initData() |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
setParams() { |
|
|
|
var subList = [] |
|
|
@ -381,10 +395,15 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
clearData() { |
|
|
|
this.detailSource = []; |
|
|
|
this.requestList = []; |
|
|
|
this.dataContent = {} |
|
|
|
this.managementList = [] |
|
|
|
this.subList= [], //接口返回的任务subList |
|
|
|
this.detailSource=[], //绑定在页面上的数据源 |
|
|
|
this.detailOptions=[], |
|
|
|
this.scanOptions= [], |
|
|
|
this.workShopCode="", |
|
|
|
this.requestList= [], |
|
|
|
this.dataContent= {}, |
|
|
|
this.managementList= [] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
showMessage(message) { |
|
|
|