Browse Source

修改盘点记录

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

4
pages/issue/coms/comScanIssuePack.vue

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

3
pages/issue/job/issueDetail.vue

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

46
pages/issue/record/issueRecord.vue

@ -28,8 +28,11 @@
</div> </div>
</view> </view>
</view> </view>
<comMessage ref="comMessage"></comMessage> <com-message ref="comMessage"></com-message>
<com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirm'></com-issue-request-popup> <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> </template>
<script> <script>
@ -57,6 +60,8 @@
import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue' import comIssueRequestCreator from '@/pages/issue/coms/comIssueRequestCreator.vue'
import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue' import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue'
import comIssueDetailCard from '@/pages/issue/coms/comIssueDetailCard.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 { export default {
name: 'issueRequestSubmit', name: 'issueRequestSubmit',
@ -67,7 +72,9 @@
comMessage, comMessage,
comIssueRequestCreator, comIssueRequestCreator,
comIssueRequestInfo, comIssueRequestInfo,
comIssueDetailCard comIssueDetailCard,
winScanButton,
comScanIssuePack
}, },
data() { data() {
return { return {
@ -117,7 +124,7 @@
} else { } else {
if (res.data.length > 0) { if (res.data.length > 0) {
this.workShopCode = item.workshopCode; this.workShopCode = item.workshopCode;
res.data.forEach(r => { res.data.forEach(r => {
r.toLocationCode = item.rawLocationCode; r.toLocationCode = item.rawLocationCode;
r.productionLineCode = item.productionLineCode; r.productionLineCode = item.productionLineCode;
r.workStationCode = item.workStationCode; r.workStationCode = item.workStationCode;
@ -197,7 +204,6 @@
}, },
caclcQty() { caclcQty() {
var totalQty = 0; var totalQty = 0;
this.detailSource.subList.forEach(res => { this.detailSource.subList.forEach(res => {
@ -206,6 +212,38 @@
this.detailSource.totalQty = totalQty; 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() { setParams() {
return this.detailSource return this.detailSource

Loading…
Cancel
Save