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. 11
      pages/issue/coms/comScanIssuePack.vue
  4. 13
      pages/issue/job/issueDetail.vue
  5. 23
      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(){
this.positionInfo= "请选择位置";
this.positionInfo = "请选择位置";
this.positionList = [];
this.productionLineCode = '';
this.rawLocationCode = "";

28
pages/issue/coms/comIssueRequestPopup.vue

@ -162,8 +162,11 @@
this.isModifiedPosition = false
} else {
this.itemCode = "";
this.isCheckItemCode = false;
this.show = false
this.uom = ""
this.qty = 0;
this.stdPackInfo =undefined;
this.counQty = undefined;
this.numberFocus = false
this.itemCodeGetFocus();
@ -171,6 +174,26 @@
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() {
this.$refs.popup.close()
},
@ -194,6 +217,11 @@
},
confirm() {
if (this.positionInfo == "请选择位置" ) {
this.showErrorMessage("请选择位置")
return
}
if (this.itemCode == "" || !this.isCheckItemCode) {
this.showErrorMessage("请输入物料", "itemCode")
return

11
pages/issue/coms/comScanIssuePack.vue

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

13
pages/issue/job/issueDetail.vue

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

23
pages/issue/record/issueRecord.vue

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

17
pages/issue/request/issueRequestCreate.vue

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

9
pages/unPlanned/coms/comReceiptRequestPopup.vue

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

Loading…
Cancel
Save