Browse Source

修改提交成功清空数据

wms3.0_pda
lijuncheng 11 months ago
parent
commit
e8389f9583
  1. 113
      mycomponents/scan/winScanProdline.vue
  2. 4
      pages/count/job/countDetail.vue
  3. 6
      pages/count/record/countRecord.vue
  4. 4
      pages/customerReturn/job/returnDetail.vue
  5. 11
      pages/customerReturn/record/returnRecord.vue
  6. 4
      pages/customerReturn/request/customerReturnRequest.vue
  7. 11
      pages/deliver/record/deliverRecord.vue
  8. 3
      pages/deliver/request/deliverRequest.vue
  9. 6
      pages/inventoryMove/coms/comMove.vue
  10. 3
      pages/issue-按批次推荐/job/issueDetail.vue
  11. 2
      pages/issue/record/issueRecord.vue
  12. 3
      pages/issue/request/issueRequest.vue
  13. 9
      pages/package/record/mergePackageRecord.vue
  14. 7
      pages/package/record/overPackageRecord.vue
  15. 7
      pages/package/record/splitPackageRecord.vue
  16. 2
      pages/pallet/record/bindPalletRecord.vue
  17. 4
      pages/pallet/record/unBindPalletRecord.vue
  18. 6
      pages/productDismantle/record/productDismantleRecord.vue
  19. 14
      pages/productPutaway/record/productPutawayRecord.vue
  20. 4
      pages/productPutaway/request/putawayRequest.vue
  21. 12
      pages/productReceipt/job/productReceiptDetail.vue
  22. 14
      pages/productReceipt/record/productReceiptRecord.vue
  23. 9
      pages/productionReceipt/record/productionReceiptRecord.vue
  24. 16
      pages/productionReturn/coms/comReturn.vue
  25. 3
      pages/productionReturn/coms/comReturnCommonRequest.vue
  26. 6
      pages/productionReturn/job/returnDetail.vue
  27. 22
      pages/productionReturn/record/returnToHold.vue
  28. 7
      pages/productionReturn/record/returnToStore.vue
  29. 4
      pages/purchaseReceipt/job/receiptDetail.vue
  30. 2
      pages/purchaseReturn/job/returnDetail.vue
  31. 2
      pages/purchaseReturn/record/returnRecord.vue
  32. 3
      pages/purchaseReturn/request/returnRequest.vue
  33. 2
      pages/purchaseReturn/request/returnRequestCreate.vue
  34. 4
      pages/putaway/record/putawayRecord.vue
  35. 4
      pages/putaway/request/putawayRequest.vue
  36. 11
      pages/query/container.vue
  37. 2
      pages/query/item.vue
  38. 12
      pages/query/item_copy.vue
  39. 3
      pages/query/location.vue
  40. 3
      pages/query/location_copy.vue
  41. 14
      pages/repleinsh/record/repleinshRecord.vue
  42. 22
      pages/scrap/record/scrapRecord.vue
  43. 6
      pages/scrap/request/scrapRequestCreate.vue
  44. 2
      pages/setter/index.vue
  45. 10
      pages/transfer/coms/comTransferRecord.vue
  46. 4
      pages/unPlanned/job/receiptJobDetail.vue
  47. 11
      pages/unPlanned/record/issueRecord.vue
  48. 7
      pages/unPlanned/record/receiptRecord.vue
  49. 4
      pages/unPlanned/request/issueRequest.vue
  50. 6
      pages/unPlanned/request/issueRequestCreate.vue
  51. 3
      pages/unPlanned/request/receiptRequest.vue

113
mycomponents/scan/winScanProdline.vue

@ -1,113 +0,0 @@
<template>
<uni-popup ref="popup" :maskClick='false'>
<view class="popup_box">
<view class="pop_title uni-flex space-between">
<view class="" style="font-size: 35rpx;">
扫描生产线
</view>
<view>
<image class=" icons_scan_close" src="/static/icons/icons_scan_close.svg" @click="closeScanPopup()">
</image>
</view>
</view>
<view class="">
<view class="">
<win-com-scan ref="scan" @getResultult="getScanResult" placeholder='生产线' :clearResult="false"
:boxFocus="true" :isShowHistory="false">
</win-com-scan>
</view>
</view>
</view>
</uni-popup>
<comMessage ref="comMessage"></comMessage>
</template>
<script>
import {
getProductionlineByCode,
} from '@/api/request.js';
import {
getListLocationTypeDesc,
checkDirectoryItemExist
} from '@/common/directory.js';
import winComScan from '@/mycomponents/scan/winComScan.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
export default {
components: {
winComScan,
comMessage
},
emits: ["getProdLine"],
props: {},
data() {
return {
code: '',
prodLine: {}
}
},
created() {
},
methods: {
openScanPopup() {
this.$refs.popup.open('bottom')
},
closeScanPopup() {
this.$refs.popup.close()
},
scanClick() {
this.$refs.scan.clickScanMsg();
},
cancelClick() {
this.$refs.scan.clearScanValue();
},
getScanResult(result) {
uni.showLoading({
title: '扫描中...',
mask: true
});
let label = result.label;
if (label.barType === 'QRCode') {
this.code = label.ProdLineCode;
} else if (label.barType === 'BarCode') {
this.code = label.Code;
}
getProductionlineByCode(this.code).then(res => {
if (res.data.total > 0) {
this.prodLine = res.data.list[0];
this.callBack();
} else {
this.showErrorMessage('未查询到生产线[' + this.code + ']')
}
uni.hideLoading();
}).catch(error => {
uni.hideLoading();
this.showErrorMessage(error)
})
},
callBack() {
this.closeScanPopup();
this.$emit("getProdLine", this.prodLine, this.code);
},
getfocus() {
this.$refs.scan.getfocus();
},
losefocus() {
this.$refs.scan.losefocus();
},
showErrorMessage(message) {
setTimeout(r => {
this.losefocus();
this.$refs.comMessage.showErrorMessage(message, res => {
this.code = '';
this.getfocus();
})
})
}
}
}
</script>
<style>
</style>

4
pages/count/job/countDetail.vue

@ -288,11 +288,15 @@
this.$refs.scanPopup.openScanPopupForJob(fromlocationCode, fromlocationList, this.jobContent); this.$refs.scanPopup.openScanPopupForJob(fromlocationCode, fromlocationList, this.jobContent);
}, },
closeScanPopup() { closeScanPopup() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.packGetFocus(); this.$refs.scanPopup.packGetFocus();
}
}, },
getScanResult(result) { getScanResult(result) {

6
pages/count/record/countRecord.vue

@ -116,7 +116,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message ); this.showErrorMessage(res.message)
} }
}); });
@ -218,11 +218,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.packGetFocus(); this.$refs.scanPopup.packGetFocus();
}
}, },
getScanResult(result) { getScanResult(result) {

4
pages/customerReturn/job/returnDetail.vue

@ -466,11 +466,15 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.packGetFocus(); this.$refs.scanPopup.packGetFocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.packLoseFocus(); this.$refs.scanPopup.packLoseFocus();
}
}, },
afterCloseMessage() { afterCloseMessage() {

11
pages/customerReturn/record/returnRecord.vue

@ -218,11 +218,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
@ -388,14 +392,17 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData()
})
},
clearData(){
this.fromLocationCode = ''; this.fromLocationCode = '';
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {} this.dataContent = {}
this.toWarehouseCode = "" this.toWarehouseCode = ""
})
}, },
updateData() { updateData() {

4
pages/customerReturn/request/customerReturnRequest.vue

@ -33,9 +33,7 @@
goHome, goHome,
updateTitle updateTitle
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getBusinessType,
} from '@/common/record.js';
import { import {
getCustomerReturnRequestList, getCustomerReturnRequestList,
} from '@/api/request2.js'; } from '@/api/request2.js';

11
pages/deliver/record/deliverRecord.vue

@ -251,11 +251,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
@ -423,14 +427,17 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.fromLocationCode = ''; this.fromLocationCode = '';
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {} this.dataContent = {}
this.toWarehouseCode = "" this.toWarehouseCode = ""
})
}, },
updateData() { updateData() {

3
pages/deliver/request/deliverRequest.vue

@ -33,9 +33,6 @@
goHome, goHome,
updateTitle updateTitle
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getBusinessType,
} from '@/common/record.js';
import { import {
getDeliverRequestList, getDeliverRequestList,
} from '@/api/request2.js'; } from '@/api/request2.js';

6
pages/inventoryMove/coms/comMove.vue

@ -271,14 +271,16 @@
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData()
})
},
clearData(){
this.fromLocationCode = ''; this.fromLocationCode = '';
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {} this.dataContent = {}
this.toWarehouseCode = "" this.toWarehouseCode = ""
})
}, },
commit() { commit() {

3
pages/issue-按批次推荐/job/issueDetail.vue

@ -597,10 +597,11 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showMessage(message, res => { this.$refs.comMessage.showMessage(message, res => {
if (res) { if (res) {

2
pages/issue/record/issueRecord.vue

@ -103,7 +103,7 @@
this.toInventoryStatuses = res.toInventoryStatuses this.toInventoryStatuses = res.toInventoryStatuses
this.goScan(true) this.goScan(true)
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });

3
pages/issue/request/issueRequest.vue

@ -36,9 +36,6 @@
clearTirmAndWrap clearTirmAndWrap
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getBusinessType,
} from '@/common/record.js';
import { import {
getIssueRequestList, getIssueRequestList,
issueRequestClose, issueRequestClose,

9
pages/package/record/mergePackageRecord.vue

@ -35,7 +35,8 @@
<win-scan-button @goScan='openScanPopup'></win-scan-button> <win-scan-button @goScan='openScanPopup'></win-scan-button>
</view> </view>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' allowModifyLocation="false"></win-scan-pack-and-location> <win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' allowModifyLocation="false">
</win-scan-pack-and-location>
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' <win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation'
:locationTypeList="fromlocationTypeList"></win-scan-location> :locationTypeList="fromlocationTypeList"></win-scan-location>
<com-message ref="comMessage"></com-message> <com-message ref="comMessage"></com-message>
@ -118,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
}, },
@ -219,11 +220,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {

7
pages/package/record/overPackageRecord.vue

@ -30,7 +30,8 @@
</view> </view>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' allowModifyLocation="false"></win-scan-pack-and-location> <win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' allowModifyLocation="false">
</win-scan-pack-and-location>
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' <win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation'
:locationTypeList="fromlocationTypeList"></win-scan-location> :locationTypeList="fromlocationTypeList"></win-scan-location>
<win-scan-button @goScan='showScanPopupPack'></win-scan-button> <win-scan-button @goScan='showScanPopupPack'></win-scan-button>
@ -243,11 +244,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {

7
pages/package/record/splitPackageRecord.vue

@ -29,7 +29,8 @@
</view> </view>
</view> </view>
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' allowModifyLocation="false"></win-scan-pack-and-location> <win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult' allowModifyLocation="false">
</win-scan-pack-and-location>
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' <win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation'
:locationTypeList="fromlocationTypeList"></win-scan-location> :locationTypeList="fromlocationTypeList"></win-scan-location>
<win-scan-button @goScan='showScanPopupPack'></win-scan-button> <win-scan-button @goScan='showScanPopupPack'></win-scan-button>
@ -243,11 +244,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {

2
pages/pallet/record/bindPalletRecord.vue

@ -111,7 +111,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
}, },

4
pages/pallet/record/unBindPalletRecord.vue

@ -246,11 +246,15 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },

6
pages/productDismantle/record/productDismantleRecord.vue

@ -119,7 +119,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
}, },
@ -214,11 +214,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {

14
pages/productPutaway/record/productPutawayRecord.vue

@ -43,7 +43,6 @@
</template> </template>
<script> <script>
import { import {
productPutawayRecordSubmit productPutawayRecordSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';
@ -133,8 +132,7 @@
onPullDownRefresh() {}, onPullDownRefresh() {},
mounted() { mounted() {},
},
methods: { methods: {
getScanResult(result) { getScanResult(result) {
let balance = result.balance; let balance = result.balance;
@ -214,11 +212,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
@ -381,13 +383,15 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.fromLocationCode = ''; this.fromLocationCode = '';
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {} this.dataContent = {}
})
}, },
updateData() { updateData() {

4
pages/productPutaway/request/putawayRequest.vue

@ -36,9 +36,7 @@
updateTitle, updateTitle,
clearTirmAndWrap clearTirmAndWrap
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getBusinessType,
} from '@/common/record.js';
import { import {
getProductPutawayRequestList, getProductPutawayRequestList,
productPutawayRequestClose, productPutawayRequestClose,

12
pages/productReceipt/job/productReceiptDetail.vue

@ -14,8 +14,7 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<comProductDetailCard :dataContent="item" :settingParam="jobContent" :isShowLocation="false" <comProductDetailCard :dataContent="item" :settingParam="jobContent" :isShowLocation="false"
@remove="updateData" @updateData="updateData" @remove="updateData" @updateData="updateData" :locationTypeList='tolocationTypeList'>
:locationTypeList='tolocationTypeList'>
</comProductDetailCard> </comProductDetailCard>
</view> </view>
<u-line /> <u-line />
@ -27,8 +26,9 @@
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<requiredLocation title="收货库位" :locationCode="toLocationCode" :isShowEdit="jobContent.allowModifyLocation=='TRUE'" <requiredLocation title="收货库位" :locationCode="toLocationCode"
@getLocation='scanLocationCode' :locationTypeList="tolocationTypeList"></requiredLocation> :isShowEdit="jobContent.allowModifyLocation=='TRUE'" @getLocation='scanLocationCode'
:locationTypeList="tolocationTypeList"></requiredLocation>
</view> </view>
<view class=" uni-flex uni-row"> <view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button> <button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
@ -373,11 +373,15 @@
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },
showMessage(message) { showMessage(message) {

14
pages/productReceipt/record/productReceiptRecord.vue

@ -8,8 +8,8 @@
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<com-product-record :dataContent="item" :index="index" <com-product-record :dataContent="item" :index="index" @removeItem="removeItem(index,item)"
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack"> @updateData="updateData" @removePack="removePack">
</com-product-record> </com-product-record>
</view> </view>
<u-line /> <u-line />
@ -362,11 +362,15 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },
afterCloseMessage() { afterCloseMessage() {
@ -379,14 +383,16 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {}; this.dataContent = {};
this.positionInfo = "请选择位置"; this.positionInfo = "请选择位置";
this.fgLocationCode = "" this.fgLocationCode = ""
})
}, },
removePack() { removePack() {
for (var i = 0; i < this.detailSource.length; i++) { for (var i = 0; i < this.detailSource.length; i++) {

9
pages/productionReceipt/record/productionReceiptRecord.vue

@ -115,7 +115,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message ); this.showErrorMessage(res.message)
} }
}); });
}, },
@ -130,8 +130,7 @@
onPullDownRefresh() {}, onPullDownRefresh() {},
mounted() { mounted() {},
},
methods: { methods: {
getScanResult(result) { getScanResult(result) {
let balance = result.balance; let balance = result.balance;
@ -207,11 +206,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {

16
pages/productionReturn/coms/comReturn.vue

@ -8,8 +8,8 @@
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<comReturnRecord :dataContent="item" :index="index" <comReturnRecord :dataContent="item" :index="index" @removeItem="removeItem(index,item)"
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack"> @updateData="updateData" @removePack="removePack">
</comReturnRecord> </comReturnRecord>
</view> </view>
<u-line /> <u-line />
@ -140,7 +140,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.openScanPopup(); this.openScanPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
getWorkShopLineStation().then(res => { getWorkShopLineStation().then(res => {
@ -415,23 +415,29 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {}; this.dataContent = {};
this.positionInfo = "请选择位置"; this.positionInfo = "请选择位置";
this.fgLocationCode = "" this.fgLocationCode = ""
})
}, },
confirmSelect(e) { confirmSelect(e) {
this.positionInfo = e[0].label + "-" + e[1].label + "-" + e[2].label this.positionInfo = e[0].label + "-" + e[1].label + "-" + e[2].label

3
pages/productionReturn/coms/comReturnCommonRequest.vue

@ -30,9 +30,6 @@
import requestInfoPopup from '@/pages/productionReturn/coms/requestInfoPopup.vue' import requestInfoPopup from '@/pages/productionReturn/coms/requestInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue' import requestButton from '@/mycomponents/button/requestButton.vue'
import {
getBusinessType,
} from '@/common/record.js';
import { import {
getProductionReturnRequestList, getProductionReturnRequestList,
productionReturnRequestHandle, productionReturnRequestHandle,

6
pages/productionReturn/job/returnDetail.vue

@ -497,15 +497,17 @@
// }, // },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },
showQuestionMessage(message, callback) { showQuestionMessage(message, callback) {
setTimeout(r => { setTimeout(r => {
this.scanPopupLoseFocus(); this.scanPopupLoseFocus();

22
pages/productionReturn/record/returnToHold.vue

@ -5,18 +5,16 @@
</view> </view>
<view class="page-wraper" v-if="detailSource.length>0"> <view class="page-wraper" v-if="detailSource.length>0">
<view class="page-header"> <view class="page-header">
<comReturnRecordTitle :workshopCode="workshopCode" <comReturnRecordTitle :workshopCode="workshopCode" :productionLineCode="productionLineCode"
:productionLineCode="productionLineCode" :workStationCode="workStationCode"></comReturnRecordTitle>
:workStationCode ="workStationCode"
></comReturnRecordTitle>
</view> </view>
<u-line /> <u-line />
<view class="page-main"> <view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<comReturnRecord :dataContent="item" :index="index" <comReturnRecord :dataContent="item" :index="index" @removeItem="removeItem(index,item)"
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack"> @updateData="updateData" @removePack="removePack">
</comReturnRecord> </comReturnRecord>
</view> </view>
<u-line /> <u-line />
@ -405,23 +403,29 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {}; this.dataContent = {};
this.positionInfo = "请选择位置"; this.positionInfo = "请选择位置";
}) }
},
} }
} }
</script> </script>

7
pages/productionReturn/record/returnToStore.vue

@ -456,12 +456,15 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {}; this.dataContent = {};
}) }
},
} }
} }
</script> </script>

4
pages/purchaseReceipt/job/receiptDetail.vue

@ -421,11 +421,15 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },

2
pages/purchaseReturn/job/returnDetail.vue

@ -428,7 +428,7 @@
showCommitSuccessMessage(number) { showCommitSuccessMessage(number) {
this.$refs.comMessage.showSuccessMessage('提交成功<br>生成退货记录:' + number, res => { this.$refs.comMessage.showSuccessMessage('提交成功<br>生成退货记录:' + number, res => {
navigateBack() navigateBack(1)
}) })
} }
} }

2
pages/purchaseReturn/record/returnRecord.vue

@ -108,7 +108,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
}, },

3
pages/purchaseReturn/request/returnRequest.vue

@ -30,9 +30,6 @@
import requestInfoPopup from '@/pages/purchaseReturn/coms/requestInfoPopup.vue' import requestInfoPopup from '@/pages/purchaseReturn/coms/requestInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue' import requestButton from '@/mycomponents/button/requestButton.vue'
import {
getBusinessType,
} from '@/common/record.js';
import { import {
goHome, goHome,
updateTitle, updateTitle,

2
pages/purchaseReturn/request/returnRequestCreate.vue

@ -101,7 +101,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
}, },

4
pages/putaway/record/putawayRecord.vue

@ -260,11 +260,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
// scanLocationCode(location, code) { // scanLocationCode(location, code) {

4
pages/putaway/request/putawayRequest.vue

@ -30,10 +30,6 @@
import requestInfoPopup from '@/pages/putaway/coms/requestInfoPopup.vue' import requestInfoPopup from '@/pages/putaway/coms/requestInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue' import requestButton from '@/mycomponents/button/requestButton.vue'
import {
getBusinessType,
} from '@/common/record.js';
import { import {
goHome, goHome,
updateTitle updateTitle

11
pages/query/container.vue

@ -95,8 +95,7 @@
goHome(); goHome();
} }
}, },
filters: { filters: {},
},
mounted() { mounted() {
this.openScanPopup() this.openScanPopup()
}, },
@ -238,10 +237,8 @@
}, },
upper: function(e) { upper: function(e) {},
}, lower: function(e) {},
lower: function(e) {
},
tabChange(index) { tabChange(index) {
this.tabIndex = index; this.tabIndex = index;
this.$refs.paging.reload(true); this.$refs.paging.reload(true);
@ -254,7 +251,9 @@
}); });
}, },
afterCloseMessage() { afterCloseMessage() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
queryList(pageNo, pageSize) { queryList(pageNo, pageSize) {
console.log("加载", pageNo) console.log("加载", pageNo)

2
pages/query/item.vue

@ -244,7 +244,9 @@
}); });
}, },
afterCloseMessage() { afterCloseMessage() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
tabChange(index) { tabChange(index) {
this.tabIndex = index; this.tabIndex = index;

12
pages/query/item_copy.vue

@ -17,8 +17,8 @@
<scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" <scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower"
@scroll="scroll"> @scroll="scroll">
<!-- 汇总 --> <!-- 汇总 -->
<comItemDetailCard v-if="tabIndex == 0" :itemList="summarys" :isShowPack="false" <comItemDetailCard v-if="tabIndex == 0" :itemList="summarys" :isShowPack="false" style='margin: 10rpx;'>
style='margin: 10rpx;'></comItemDetailCard> </comItemDetailCard>
</scroll-view> </scroll-view>
<!-- 明细 --> <!-- 明细 -->
<scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" <scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower"
@ -29,14 +29,14 @@
<!-- 预计入 --> <!-- 预计入 -->
<scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" <scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower"
@scroll="scroll"> @scroll="scroll">
<comItemDetailCard v-if="tabIndex == 2" :itemList="dataIn" <comItemDetailCard v-if="tabIndex == 2" :itemList="dataIn" :isShowLocation="false"
:isShowLocation="false"
:isShowBusiness="true"></comItemDetailCard> :isShowBusiness="true"></comItemDetailCard>
</scroll-view> </scroll-view>
<!-- 预计出 --> <!-- 预计出 -->
<scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" <scroll-view :scroll-top="scrollTop" scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower"
@scroll="scroll"> @scroll="scroll">
<comItemDetailCard v-if="tabIndex == 3" :itemList="dataOut" :isShowLocation="false" :isShowBusiness="true"> <comItemDetailCard v-if="tabIndex == 3" :itemList="dataOut" :isShowLocation="false"
:isShowBusiness="true">
</comItemDetailCard> </comItemDetailCard>
</scroll-view> </scroll-view>
</view> </view>
@ -303,9 +303,11 @@
}); });
}, },
afterCloseMessage() { afterCloseMessage() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
} }
} }
}
}; };
</script> </script>

3
pages/query/location.vue

@ -35,7 +35,6 @@
</template> </template>
<script> <script>
import { import {
getBalanceByLocationcode, getBalanceByLocationcode,
getBalanceByLocationcodeGroup getBalanceByLocationcodeGroup
@ -232,7 +231,9 @@
}); });
}, },
afterCloseMessage() { afterCloseMessage() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
tabChange(index) { tabChange(index) {
this.tabIndex = index; this.tabIndex = index;

3
pages/query/location_copy.vue

@ -56,7 +56,6 @@
</template> </template>
<script> <script>
import { import {
getBalanceByLocationcode, getBalanceByLocationcode,
getBalanceByLocationcodeGroup getBalanceByLocationcodeGroup
@ -263,9 +262,11 @@
}); });
}, },
afterCloseMessage() { afterCloseMessage() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
} }
} }
}
}; };
</script> </script>

14
pages/repleinsh/record/repleinshRecord.vue

@ -40,7 +40,6 @@
</template> </template>
<script> <script>
import { import {
repleinshRequestSubmit, repleinshRequestSubmit,
repleinshRecordSubmit repleinshRecordSubmit
@ -119,7 +118,11 @@
}, },
onLoad(option) { onLoad(option) {
this.fromType = option.fromType this.fromType = option.fromType
if(this.fromType=="requestType"){ updateTitle("补料申请") }else { updateTitle("补料记录") } if (this.fromType == "requestType") {
updateTitle("补料申请")
} else {
updateTitle("补料记录")
}
var typeCode = "Repleinment" var typeCode = "Repleinment"
getBusinessType(typeCode, res => { getBusinessType(typeCode, res => {
if (res.success) { if (res.success) {
@ -128,7 +131,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message ); this.showErrorMessage(res.message)
} }
}); });
}, },
@ -143,8 +146,7 @@
onPullDownRefresh() {}, onPullDownRefresh() {},
mounted() { mounted() {},
},
methods: { methods: {
getScanResult(result) { getScanResult(result) {
let balance = result.balance; let balance = result.balance;
@ -237,7 +239,9 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {

22
pages/scrap/record/scrapRecord.vue

@ -55,7 +55,6 @@
import { import {
goHome, goHome,
updateTitle,
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -232,17 +231,20 @@
}, },
closeScanPopup() { closeScanPopup() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if(this.$refs.scanPopup!=undefined){
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
commit() { commit() {
if(this.reasonText==""){ if(this.reasonText==""){
this.showMessage("请先选择报废原因") this.showErrorMessage("请先选择报废原因")
return; return;
} }
// //
@ -302,14 +304,6 @@
}, },
showMessage(message) {
this.$refs.comMessage.showMessage(message, res => {
if (res) {}
});
},
showErrorMessage(message) { showErrorMessage(message) {
this.$refs.comMessage.showErrorMessage(message, res => { this.$refs.comMessage.showErrorMessage(message, res => {
if (res) { if (res) {
@ -339,14 +333,16 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.reasonCode = "" this.reasonCode = ""
this.reasonText = ""; this.reasonText = "";
this.detailSource = []; this.detailSource = [];
this.subList =[]; this.subList =[];
this.managementList =[]; this.managementList =[];
this.dataContent ={} this.dataContent ={}
})
}, },
updateData() { updateData() {

6
pages/scrap/request/scrapRequestCreate.vue

@ -128,7 +128,7 @@
this.tolocationTypeList = res.tolocationTypeList; this.tolocationTypeList = res.tolocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });
@ -228,11 +228,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },

2
pages/setter/index.vue

@ -56,11 +56,11 @@
onLoad onLoad
} from "@dcloudio/uni-app"; } from "@dcloudio/uni-app";
const userName = ref(store.state.user.name); const userName = ref(store.state.user.name);
let test = ref("123"); let test = ref("123");
let userInfo = ref(null); let userInfo = ref(null);
onLoad(() => { onLoad(() => {
console.log(11)
getUserProfile().then(res => { getUserProfile().then(res => {
userInfo.value = res.data userInfo.value = res.data
// nextTick(()=>{ // nextTick(()=>{

10
pages/transfer/coms/comTransferRecord.vue

@ -221,11 +221,15 @@
}, },
closeScanPopup() { closeScanPopup() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.closeScanPopup(); this.$refs.scanPopup.closeScanPopup();
}
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanLocationCode(location, code) { scanLocationCode(location, code) {
@ -412,14 +416,16 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.fromLocationCode = ''; this.fromLocationCode = '';
this.subList = []; this.subList = [];
this.detailSource = []; this.detailSource = [];
this.toLocationCode = ''; this.toLocationCode = '';
this.dataContent = {} this.dataContent = {}
this.toWarehouseCode = "" this.toWarehouseCode = ""
})
}, },
updateData() { updateData() {

4
pages/unPlanned/job/receiptJobDetail.vue

@ -385,11 +385,15 @@
}, },
scanPopupGetFocus() { scanPopupGetFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.getfocus(); this.$refs.scanPopup.getfocus();
}
}, },
scanPopupLoseFocus() { scanPopupLoseFocus() {
if (this.$refs.scanPopup != undefined) {
this.$refs.scanPopup.losefocus(); this.$refs.scanPopup.losefocus();
}
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {

11
pages/unPlanned/record/issueRecord.vue

@ -54,10 +54,6 @@
unPlannedIssueRecordSubmit unPlannedIssueRecordSubmit
} from '@/api/request2.js'; } from '@/api/request2.js';
import {
getBalanceByUniquecode,
} from '@/api/request.js';
import { import {
getBusinessType, getBusinessType,
} from '@/common/record.js'; } from '@/common/record.js';
@ -278,13 +274,16 @@
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
})
},
clearData(){
this.reasonCode = "" this.reasonCode = ""
this.reasonText = ""; this.reasonText = "";
this.detailSource = []; this.detailSource = [];
this.managementList =[]; this.managementList =[];
this.dataContent ={} this.dataContent ={}
}) }
},
} }
} }

7
pages/unPlanned/record/receiptRecord.vue

@ -351,14 +351,17 @@
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData();
})
},
clearData(){
this.reasonCode = "" this.reasonCode = ""
this.reasonText = ""; this.reasonText = "";
this.detailSource = []; this.detailSource = [];
this.managementList=[]; this.managementList=[];
this.dataContent ={} this.dataContent ={}
this.toLocationCode ="" this.toLocationCode =""
}) }
},
} }

4
pages/unPlanned/request/issueRequest.vue

@ -36,9 +36,7 @@
updateTitle, updateTitle,
clearTirmAndWrap clearTirmAndWrap
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getBusinessType,
} from '@/common/record.js';
import { import {
getUnPlannedIssueRequestList, getUnPlannedIssueRequestList,
unPlannedIssueRequestApprove, unPlannedIssueRequestApprove,

6
pages/unPlanned/request/issueRequestCreate.vue

@ -60,10 +60,6 @@
unPlannedIssueRequestCreate, unPlannedIssueRequestCreate,
} from '@/api/request2.js'; } from '@/api/request2.js';
import {
getBalanceByUniquecode,
} from '@/api/request.js';
import { import {
getBusinessType, getBusinessType,
} from '@/common/record.js'; } from '@/common/record.js';
@ -128,7 +124,7 @@
this.fromLocationTypeArray = res.fromlocationTypeList; this.fromLocationTypeArray = res.fromlocationTypeList;
this.showFromLocationPopup(); this.showFromLocationPopup();
} else { } else {
this.$refs.comMessage.showBreakMessage(res.message); this.showErrorMessage(res.message)
} }
}); });

3
pages/unPlanned/request/receiptRequest.vue

@ -30,9 +30,6 @@
import requestRecInfoPopup from '@/pages/unPlanned/coms/requestRecInfoPopup.vue' import requestRecInfoPopup from '@/pages/unPlanned/coms/requestRecInfoPopup.vue'
import requestButton from '@/mycomponents/button/requestButton.vue' import requestButton from '@/mycomponents/button/requestButton.vue'
import {
getBusinessType,
} from '@/common/record.js';
import { import {
goHome, goHome,
updateTitle, updateTitle,

Loading…
Cancel
Save