Browse Source

修改发料记录清除数据

wms3.0_pda
lijuncheng 10 months ago
parent
commit
f3630945de
  1. 2
      mycomponents/scan/winScanPackAndPosition.vue
  2. 28
      pages/issue/coms/comIssueRequestPopup.vue
  3. 13
      pages/issue/coms/comScanIssuePack.vue
  4. 15
      pages/issue/job/issueDetail.vue
  5. 25
      pages/issue/record/issueRecord.vue
  6. 17
      pages/issue/request/issueRequestCreate.vue
  7. 9
      pages/unPlanned/coms/comReceiptRequestPopup.vue

2
mycomponents/scan/winScanPackAndPosition.vue

@ -112,7 +112,7 @@
}, },
initData(){ initData(){
this.positionInfo= "请选择位置"; this.positionInfo = "请选择位置";
this.positionList = []; this.positionList = [];
this.productionLineCode = ''; this.productionLineCode = '';
this.rawLocationCode = ""; this.rawLocationCode = "";

28
pages/issue/coms/comIssueRequestPopup.vue

@ -162,8 +162,11 @@
this.isModifiedPosition = false this.isModifiedPosition = false
} else { } else {
this.itemCode = ""; this.itemCode = "";
this.isCheckItemCode = false;
this.show = false
this.uom = "" this.uom = ""
this.qty = 0; this.qty = 0;
this.stdPackInfo =undefined;
this.counQty = undefined; this.counQty = undefined;
this.numberFocus = false this.numberFocus = false
this.itemCodeGetFocus(); this.itemCodeGetFocus();
@ -171,6 +174,26 @@
this.$refs.popup.open('bottom') this.$refs.popup.open('bottom')
}, },
initData(){
this.positionList = [];
this.itemCode = "请扫描物料信息";
this.isCheckItemCode = false;
this.rawLocationCode =""
this.positionInfo ="请选择位置"
this.workshopCode= "" //
this.workShopName= ""
this.productionLineCode="" //线
this.productionLineName=""
this.workStationCode= "" //
this.workStationName= ""
this.show = false
this.uom = ""
this.qty = 0;
this.stdPackInfo =undefined;
this.counQty = undefined;
this.numberFocus = false
},
closeRequestPopup() { closeRequestPopup() {
this.$refs.popup.close() this.$refs.popup.close()
}, },
@ -194,6 +217,11 @@
}, },
confirm() { confirm() {
if (this.positionInfo == "请选择位置" ) {
this.showErrorMessage("请选择位置")
return
}
if (this.itemCode == "" || !this.isCheckItemCode) { if (this.itemCode == "" || !this.isCheckItemCode) {
this.showErrorMessage("请输入物料", "itemCode") this.showErrorMessage("请输入物料", "itemCode")
return return

13
pages/issue/coms/comScanIssuePack.vue

@ -3,9 +3,16 @@
<uni-popup ref="popup" :maskClick='false'> <uni-popup ref="popup" :maskClick='false'>
<view class=""> <view class="">
<view class="popup_box"> <view class="popup_box">
<view class="pop_title">
扫描箱码 <view class="pop_title uni-flex space-between">
<text class="fr" @click="closeScanPopup()">关闭</text> <view class="" style="font-size: 35rpx;">
扫描箱码
</view>
<view class="">
<image class="fr icons_scan_close" src="/static/icons/icons_scan_close.svg"
@click="closeScanPopup()"></image>
</view>
</view> </view>
<!-- <view class="uni-flex uni-row" style="align-items: center; <!-- <view class="uni-flex uni-row" style="align-items: center;
background-color: #fff; background-color: #fff;

15
pages/issue/job/issueDetail.vue

@ -20,15 +20,18 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<div class="btn_bottom"> <view class="page-footer">
<view class="" style="display: flex;flex-direction: row;"> <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<!-- <button class="btn_commit" hover-class="btn_commit_after" @click="resizeCollapse()">刷新UI</button> --> </view>
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button> <view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="submit()">提交</button>
</view> </view>
</view> </view>
</div> </view>
<win-scan-button @goScan='openScanDetailPopup'></win-scan-button> <win-scan-button @goScan='openScanDetailPopup'></win-scan-button>
<com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'> <com-scan-issue-pack ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'>
</com-scan-issue-pack> </com-scan-issue-pack>

25
pages/issue/record/issueRecord.vue

@ -22,21 +22,26 @@
</scroll-view> </scroll-view>
<button class="btn_add" @click="goScan(true)">+去添加</button> <button class="btn_add" @click="goScan(true)">+去添加</button>
</view> </view>
<div class="btn_bottom"> <view class="page-footer">
<view class="" style="display: flex;flex-direction: row;"> <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button> </view>
<view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="submit()">提交</button>
</view> </view>
</view> </view>
</div> </view>
</view> </view>
</view> </view>
<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 v-if='detailSource.length>0' @goScan='openScanDetailPopup'></win-scan-button> <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 ref="comScanIssuePack" @closeScan='closeScan' @updateData='updateData'>
</com-scan-issue-pack> </com-scan-issue-pack>
<com-message ref="comMessage"></com-message>
</template> </template>
<script> <script>
@ -182,7 +187,6 @@
if (res.data == null) { if (res.data == null) {
that.showMessage('未获取到推荐信息'); that.showMessage('未获取到推荐信息');
} else { } else {
if (res.data.length > 0) { if (res.data.length > 0) {
that.workShopCode = item.workshopCode; that.workShopCode = item.workshopCode;
res.data.forEach(r => { res.data.forEach(r => {
@ -190,7 +194,8 @@
r.productionLineCode = item.productionLineCode; r.productionLineCode = item.productionLineCode;
r.workStationCode = item.workStationCode; r.workStationCode = item.workStationCode;
// r.itemCode = item.itemCode; // r.itemCode = item.itemCode;
// r.uom = item.uom; r.itemName = item.itemName
r.uom = item.uom;
that.subList.push(r); that.subList.push(r);
}) })
that.detailSource = getDataSource(that.detailSource, that.subList) that.detailSource = getDataSource(that.detailSource, that.subList)
@ -355,13 +360,12 @@
submitJob() { submitJob() {
var params = this.setParams() var params = this.setParams()
console.log("提交参数", JSON.stringify(params)); console.log("提交参数", JSON.stringify(params));
issueRecordSubmit(params).then(res => { issueRecordSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成发料记录<br>" + res.data) this.showCommitSuccessMessage("提交成功<br>生成发料记录<br>" + res.data)
} else { } else {
this.showErrorMessage("提交失败:" + res.msg) this.showErrorMessage("提交失败:" + res.msg+"】")
} }
}).catch(error => { }).catch(error => {
uni.hideLoading() uni.hideLoading()
@ -372,6 +376,7 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
this.clearData(); this.clearData();
this.$refs.comIssueRequestPopup.initData()
}) })
}, },

17
pages/issue/request/issueRequestCreate.vue

@ -9,14 +9,16 @@
</comIssueRequestCreator> </comIssueRequestCreator>
<button class="btn_add" @click="goScan(false)">+去添加</button> <button class="btn_add" @click="goScan(false)">+去添加</button>
</view> </view>
<view class="page-footer">
<div class="btn_bottom"> <view class="uni-flex u-col-center space-between padding_10"
<view class="" style="display: flex;flex-direction: row;"> style="background-color:ghostwhite; width: 100%; ">
<view class=""> <view class="">
<button class="btn_commit" hover-class="btn_commit_after" @click="submit()">提交</button> </view>
<view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="submit()">提交</button>
</view> </view>
</view> </view>
</div> </view>
<com-scan-issue-pack ref="comScanIssuePack"> <com-scan-issue-pack ref="comScanIssuePack">
</com-scan-issue-pack> </com-scan-issue-pack>
@ -39,6 +41,7 @@
goHome, goHome,
updateTitle, updateTitle,
getRemoveOption, getRemoveOption,
navigateBack,
getCurrDateOneMonthsTimes getCurrDateOneMonthsTimes
} from '@/common/basic.js'; } from '@/common/basic.js';
@ -176,9 +179,7 @@
}, },
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
uni.navigateTo({ navigateBack(1)
url: './issueRequest'
})
}) })
}, },
showErrorMessage(message) { showErrorMessage(message) {

9
pages/unPlanned/coms/comReceiptRequestPopup.vue

@ -108,7 +108,7 @@
itemCodeFocus: false, itemCodeFocus: false,
requestInfo: null, requestInfo: null,
isCheckItemCode: false, isCheckItemCode: false,
counQty: 0, counQty: undefined,
numberFocus: false, numberFocus: false,
uom: "", uom: "",
show: false, show: false,
@ -149,7 +149,7 @@
this.itemCode = ""; this.itemCode = "";
this.uom = "" this.uom = ""
this.qty = 0 this.qty = 0
this.count = 0; this.counQty = undefined;
this.itemCodeGetFocus(); this.itemCodeGetFocus();
} }
this.$refs.popup.open('bottom') this.$refs.popup.open('bottom')
@ -190,6 +190,11 @@
this.showErrorMessage("请输入物料", "itemCode") this.showErrorMessage("请输入物料", "itemCode")
return return
} }
if (this.counQty == undefined) {
this.showErrorMessage("请输入数量")
return
}
if (this.qty == 0) { if (this.qty == 0) {
this.showErrorMessage("数量必须大于0") this.showErrorMessage("数量必须大于0")
return return

Loading…
Cancel
Save