Browse Source

修改盘点记录

wms3.0_pda
niexiting 1 year ago
parent
commit
c7f7528259
  1. 4
      pages/issue/coms/comScanIssuePack.vue
  2. 3
      pages/issue/job/issueDetail.vue
  3. 44
      pages/issue/record/issueRecord.vue

4
pages/issue/coms/comScanIssuePack.vue

@ -158,8 +158,8 @@
this.dataContent = content;
this.jobContent = jobcontent;
this.initData();
this.positionInfo = this.jobContent.workShopCode + "-" + this.jobContent.subList[0].productionLineCode +
"-" + this.jobContent.subList[0].workStationCode
// this.positionInfo = this.jobContent.workShopCode + "-" + this.jobContent.subList[0].productionLineCode +
// "-" + this.jobContent.subList[0].workStationCode
this.$refs.popup.open('bottom');
},

3
pages/issue/job/issueDetail.vue

@ -55,10 +55,9 @@
getManagementPrecisions
} from '@/common/balance.js';
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import comIssueDetailCard from '@/pages/issue/coms/comIssueDetailCard.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import comScanIssuePack from '@/pages/issue/coms/comScanIssuePack.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue'

44
pages/issue/record/issueRecord.vue

@ -28,8 +28,11 @@
</div>
</view>
</view>
<comMessage ref="comMessage"></comMessage>
<com-message ref="comMessage"></com-message>
<com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirm'></com-issue-request-popup>
<win-scan-button @goScan='openScanDetailPopup'></win-scan-button>
<com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'>
</com-scan-issue-pack>
</template>
<script>
@ -57,6 +60,8 @@
import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue'
import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue'
import comIssueDetailCard from '@/pages/issue/coms/comIssueDetailCard.vue'
import winScanButton from '@/mycomponents/scan/winScanButton.vue'
import comScanIssuePack from '@/pages/issue/coms/comScanIssuePack.vue'
export default {
name: 'issueRequestSubmit',
@ -67,7 +72,9 @@
comMessage,
comIssueRequestCreator,
comIssueRequestInfo,
comIssueDetailCard
comIssueDetailCard,
winScanButton,
comScanIssuePack
},
data() {
return {
@ -197,7 +204,6 @@
},
caclcQty() {
var totalQty = 0;
this.detailSource.subList.forEach(res => {
@ -206,6 +212,38 @@
this.detailSource.totalQty = totalQty;
},
openScanDetailPopup() {
var datacontent = {}
//
// Object.assign(datacontent, this.detailSource);
this.$refs.comScanIssuePack.openScanPopup(this.detailSource, this.jobContent);
},
closeScanPopup() {
this.updateCommitBtn();
},
updateData(record) {
let requestLocation = this.detailSource.find(r => r.toLocationCode == record.toLocationCode);
let item = requestLocation.Items.find(r => r.itemCode == record.itemCode);
let itemHandleQty = 0;
if (item != undefined) {
item.Locations.forEach(l => {
let batch = l.Batchs.find(b => (b.packingNumber == record.packingNumber || b
.packingNumber == null || b.packingNumber == '') && b.batch ==
record.batch);
let handleQty = 0;
if (batch != undefined) {
batch.Records.forEach(res => {
handleQty += Number(res.qty)
})
batch.handleQty = handleQty;
itemHandleQty += handleQty;
}
})
}
// item.handleQty=itemHandleQty;
},
setParams() {
return this.detailSource

Loading…
Cancel
Save