Browse Source

修改半成品退库数量和发料承接

pda_nev
李俊城 11 months ago
parent
commit
b2d174e0c5
  1. 18
      fe/PDA/pages/return/productionReturnFg.vue
  2. 48
      fe/PDA/pages/task/assembleIssueJobDetail.vue
  3. 64
      fe/PDA/pages/task/assembleIssueJobDetailByQty.vue
  4. 45
      fe/PDA/pages/task/coatingIssuleJobDetail.vue
  5. 44
      fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue
  6. 52
      fe/PDA/pages/task/injectionIssueJobDetail.vue
  7. 63
      fe/PDA/pages/task/injectionIssueJobDetailByQty.vue
  8. 53
      fe/PDA/pages/task/kittingIssueJobDetail.vue
  9. 71
      fe/PDA/pages/task/kittingIssueJobDetailByQty.vue
  10. 49
      fe/PDA/pages/task/sparePartIssueJobDetail.vue
  11. 61
      fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

18
fe/PDA/pages/return/productionReturnFg.vue

@ -33,9 +33,9 @@
</view>
<view class="ljh_right">
<view class="uni-flex uni-row u-col-center">
<com-number-box :ref="'comNumberBox_'+index" v-model="item.qty"
:max="99999" :min="0"
@change="qtyChanged($event,item,index)">
<com-number-box :ref="label.itemCode+'comNumberBox_'+index"
v-model="item.qty" :max="99999" :min="0"
@change="qtyChanged($event,label,item,index)">
</com-number-box>
<text class="" style="margin-left: 8rpx;">{{item.uom}}</text>
</view>
@ -536,23 +536,29 @@
return item;
},
qtyChanged(value, item, index) {
qtyChanged(value, label, item, index) {
var test = label + 'comNumberBox_' + index
console.log(test);
if (value <= 0) {
this.showMessage('退数量必须大于0')
item.qty = item.totalQty
this.$refs['comNumberBox_' + index][0].setValue(item.qty);
value=item.qty
this.$refs[label.itemCode + 'comNumberBox_' + index][0].setValue(item.qty);
} else {
if (value > item.totalQty) {
this.showMessage("退货数量[" + value + "]不能大于库存数量[" + item.totalQty + "]");
item.qty = item.totalQty
this.$refs['comNumberBox_' + index][0].setValue(item.qty);
value=item.qty
this.$refs[label.itemCode + 'comNumberBox_' + index][0].setValue(item.qty);
}
}
this.itemList.forEach(res => {
if (res.itemCode == label.itemCode) {
res.scanQty = 0
res.labelList.forEach(item => {
res.scanQty = res.scanQty + value
})
}
})
this.$forceUpdate()
},

48
fe/PDA/pages/task/assembleIssueJobDetail.vue

@ -153,7 +153,7 @@
</view>
</scroll-view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -231,7 +231,8 @@
titleArray: ['箱标签'],
jobStatus: "",
toLocationInfo: {},
handleToPackingCodeLocationCode: ""
handleToPackingCodeLocationCode: "",
showBtn: true
}
},
props: {
@ -239,22 +240,14 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) {
//
cancelTakeAssembleIssueJob(this.id).then(res => {
}).catch(error => {
})
cancelTakeAssembleIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
@ -265,7 +258,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) {
//
cancelTakeAssembleIssueJob(this.id).then(res => {
uni.navigateBack();
@ -342,6 +335,7 @@
};
getAssembleIssueDetail(params)
.then(item => {
uni.hideLoading();
console.log('item', item);
that.datacontent = item;
that.jobStatus = item.jobStatus;
@ -369,15 +363,37 @@
);
that.ispending = item.jobStatus === 2;
this.allCount = that.details.length;
this.setReceived();
}
uni.hideLoading();
})
.catch(err => {
this.showMessage('未查找到详细信息')
uni.hideLoading();
this.showMessage('未查找到详细信息')
});
},
setReceived(){
//
//
if(this.datacontent.isClaims){
//
if(this.datacontent.claimsUserId==localStorage.getItem('userId')) {
this.showBtn=true
}else {
this.showBtn=false
}
}else {
//
this.receive((callback => {
if(callback){
this.showBtn=true
}else {
this.showBtn=false
}
}));
}
},
getScanResultTo(result) {
var fromData = result.data;

64
fe/PDA/pages/task/assembleIssueJobDetailByQty.vue

@ -3,16 +3,8 @@
<page-meta root-font-size="16px"></page-meta>
<view class="">
<view class="top_card">
<com-job-scan-detail
:jobContent="datacontent"
:allCount="allCount"
:isShowScanHint="true"
scanHint="已发数"
:scanCount="scanCount"
:isShowOther="true"
:isShowShouRong="true"
:shouRongCount="shouRongCount"
>
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :isShowScanHint="true" scanHint="已发数"
:scanCount="scanCount" :isShowOther="true" :isShowShouRong="true" :shouRongCount="shouRongCount">
</com-job-scan-detail>
</view>
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
@ -82,9 +74,9 @@
<uni-td width="120" align="center">
<view
style="display: flex;flex-direction: row;justify-content:center;align-items: center;">
<com-number-box ref="comNumberBoxRef" v-model="item.tempHandledToQty"
:max="999999" :min="0" style='width: 100px;'
@change="qtyChanged($event,item,index)">
<com-number-box ref="comNumberBoxRef"
v-model="item.tempHandledToQty" :max="999999" :min="0"
style='width: 100px;' @change="qtyChanged($event,item,index)">
</com-number-box>
</view>
</uni-td>
@ -126,7 +118,7 @@
</view>
</view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -204,7 +196,8 @@
jobStatus: "",
toLocationInfo: {},
singCode: "",
shouRongCount:null
shouRongCount: null,
showBtn: true
}
},
props: {
@ -212,17 +205,14 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeAssembleIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
window.location.reload();
@ -232,7 +222,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeAssembleIssueJob(this.id).then(res => {
uni.navigateBack();
@ -345,15 +335,39 @@
uni.hideLoading();
this.showMessage(error)
})
this.setReceived();
}
})
.catch(err => {
uni.hideLoading();
this.showMessage('未查找到详细信息')
uni.hideLoading();
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResult(result) {
let item = this.details.find(r => {
return r.itemCode == result.itemCode
@ -395,9 +409,7 @@
item.value = item.SHIFT_CODE
})
this.$refs.selectPopup.openScanPopup(list)
}
else {
} else {
this.showMessage("推荐列表为0")
}
}).catch(error => {

45
fe/PDA/pages/task/coatingIssuleJobDetail.vue

@ -153,7 +153,7 @@
</view>
</scroll-view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -231,7 +231,8 @@
titleArray: ['箱标签'],
jobStatus: "",
toLocationInfo: {},
handleToPackingCodeLocationCode: ""
handleToPackingCodeLocationCode: "",
showBtn:true
}
},
props: {
@ -239,18 +240,12 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) {
//
cancelTakeCoatingIssueJob(this.id).then(res => {
}).catch(error => {
@ -265,7 +260,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) {
//
cancelTakeCoatingIssueJob(this.id).then(res => {
uni.navigateBack();
@ -342,6 +337,7 @@
};
getCoatingIssueDetail(params)
.then(item => {
uni.hideLoading();
console.log('item', item);
that.datacontent = item;
that.jobStatus = item.jobStatus;
@ -369,15 +365,38 @@
);
that.ispending = item.jobStatus === 2;
this.allCount = that.details.length;
this.setReceived();
}
uni.hideLoading();
})
.catch(err => {
this.showMessage('未查找到详细信息')
uni.hideLoading();
this.showMessage('未查找到详细信息')
});
},
setReceived(){
//
//
if(this.datacontent.isClaims){
//
if(this.datacontent.claimsUserId==localStorage.getItem('userId')) {
this.showBtn=true
}else {
this.showBtn=false
}
}else {
//
this.receive((callback => {
if(callback){
this.showBtn=true
}else {
this.showBtn=false
}
}));
}
},
getScanResultTo(result) {
var fromData = result.data;

44
fe/PDA/pages/task/coatingIssuleJobDetailByQty.vue

@ -126,7 +126,7 @@
</view>
</view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -207,7 +207,8 @@
jobStatus: "",
toLocationInfo: {},
singCode: "",
shouRongCount:null
shouRongCount:null,
showBtn:true
}
},
props: {
@ -215,17 +216,16 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if(this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')){
cancelTakeCoatingIssueJob(this.id).then(res => {
}).catch(error => {
})
}
goHome();
} else if (e.index === 1) {
window.location.reload();
@ -235,7 +235,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims &&this.datacontent.claimsUserId==localStorage.getItem('userId')) {
//
cancelTakeCoatingIssueJob(this.id).then(res => {
uni.navigateBack();
@ -348,15 +348,39 @@
uni.hideLoading();
this.showMessage(error)
})
this.setReceived();
}
})
.catch(err => {
uni.hideLoading();
this.showMessage('未查找到详细信息')
uni.hideLoading();
});
},
setReceived(){
//
//
if(this.datacontent.isClaims){
//
if(this.datacontent.claimsUserId==localStorage.getItem('userId')) {
this.showBtn=true
}else {
this.showBtn=false
}
}else {
//
this.receive((callback => {
if(callback){
this.showBtn=true
}else {
this.showBtn=false
}
}));
}
},
getScanResult(result) {
let item = this.details.find(r => {
return r.itemCode == result.itemCode

52
fe/PDA/pages/task/injectionIssueJobDetail.vue

@ -6,6 +6,10 @@
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :isShowScanHint="false"
allCountHint="箱数">
</com-job-scan-detail>
<view class="" style="background-color: #fff; padding: 20rpx; font-size: 32rpx;">
承接人 : {{datacontent.claimsUserName}}
</view>
</view>
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
class="scroll-detail">
@ -153,7 +157,7 @@
</view>
</scroll-view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -231,7 +235,8 @@
titleArray: ['箱标签'],
jobStatus: "",
toLocationInfo: {},
handleToPackingCodeLocationCode: ""
handleToPackingCodeLocationCode: "",
showBtn: true
}
},
props: {
@ -239,20 +244,15 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
cancelTakeInjectionIssueJob(this.id).then(res => {
}).catch(error => {
})
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeInjectionIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
window.location.reload();
@ -262,7 +262,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeInjectionIssueJob(this.id).then(res => {
uni.navigateBack();
@ -339,6 +339,7 @@
};
getInjectionIssueDetail(params)
.then(item => {
uni.hideLoading();
console.log('item', item);
that.datacontent = item;
that.jobStatus = item.jobStatus;
@ -366,9 +367,9 @@
);
that.ispending = item.jobStatus === 2;
this.allCount = that.details.length;
this.setReceived();
}
uni.hideLoading();
})
.catch(err => {
this.showMessage('未查找到详细信息')
@ -376,6 +377,29 @@
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResultTo(result) {
var fromData = result.data;
var data = this.details.filter(r => r.itemCode == result.data.itemCode)

63
fe/PDA/pages/task/injectionIssueJobDetailByQty.vue

@ -3,16 +3,8 @@
<page-meta root-font-size="16px"></page-meta>
<view class="">
<view class="top_card">
<com-job-scan-detail
:jobContent="datacontent"
:allCount="allCount"
:isShowScanHint="true"
scanHint="已发数"
:scanCount="scanCount"
:isShowOther="true"
:isShowShouRong="true"
:shouRongCount="shouRongCount"
>
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :isShowScanHint="true" scanHint="已发数"
:scanCount="scanCount" :isShowOther="true" :isShowShouRong="true" :shouRongCount="shouRongCount">
</com-job-scan-detail>
</view>
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
@ -82,9 +74,9 @@
<uni-td width="120" align="center">
<view
style="display: flex;flex-direction: row;justify-content:center;align-items: center;">
<com-number-box ref="comNumberBoxRef" v-model="item.tempHandledToQty"
:max="999999" :min="0" style='width: 100px;'
@change="qtyChanged($event,item,index)">
<com-number-box ref="comNumberBoxRef"
v-model="item.tempHandledToQty" :max="999999" :min="0"
style='width: 100px;' @change="qtyChanged($event,item,index)">
</com-number-box>
</view>
</uni-td>
@ -126,7 +118,7 @@
</view>
</view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -201,7 +193,8 @@
jobStatus: "",
toLocationInfo: {},
singCode: "",
shouRongCount:null
shouRongCount: null,
showBtn: true
}
},
props: {
@ -209,17 +202,14 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeKittingIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
window.location.reload();
@ -229,7 +219,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
uni.navigateBack();
@ -343,15 +333,36 @@
uni.hideLoading();
this.showMessage(error)
})
this.setReceived()
}
})
.catch(err => {
uni.hideLoading();
this.showMessage('未查找到详细信息')
uni.hideLoading();
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResult(result) {
let item = this.details.find(r => {
return r.itemCode == result.itemCode
@ -393,9 +404,7 @@
item.value = item.SHIFT_CODE
})
this.$refs.selectPopup.openScanPopup(list)
}
else {
} else {
this.showMessage("推荐列表为0")
}
}).catch(error => {

53
fe/PDA/pages/task/kittingIssueJobDetail.vue

@ -153,7 +153,7 @@
</view>
</scroll-view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -231,7 +231,8 @@
titleArray: ['箱标签'],
jobStatus: "",
toLocationInfo: {},
handleToPackingCodeLocationCode: ""
handleToPackingCodeLocationCode: "",
showBtn: true
}
},
props: {
@ -239,22 +240,13 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
}).catch(error => {
})
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeKittingIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
@ -265,7 +257,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
uni.navigateBack();
@ -342,6 +334,7 @@
};
getKittingIssueDetail(params)
.then(item => {
uni.hideLoading();
console.log('item', item);
that.datacontent = item;
that.jobStatus = item.jobStatus;
@ -369,15 +362,37 @@
);
that.ispending = item.jobStatus === 2;
this.allCount = that.details.length;
this.setReceived();
}
uni.hideLoading();
})
.catch(err => {
this.showMessage('未查找到详细信息')
uni.hideLoading();
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResultTo(result) {
var fromData = result.data;
@ -435,7 +450,8 @@
item.handledFromQty = balancesItem.qty
item.handleToPackingCodeLocationCode = balancesItem.locationCode
} else {
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot + "]与推荐目标批次[" + item
showConfirmMsg("箱码[" + fromData.code + "]的批次[" + balancesItem.lot +
"]与推荐目标批次[" + item
.recommendToLot + "]不一致,是否继续发料", res => {
if (res) {
item.handledToContainerCode = balancesItem.containerCode
@ -458,7 +474,8 @@
item.handledFromLot = balancesItem.lot
item.handledFromWarehouseCode = balancesItem.warehouseCode
item.handledFromQty = balancesItem.qty
item.handleToPackingCodeLocationCode = balancesItem.locationCode
item.handleToPackingCodeLocationCode = balancesItem
.locationCode
}
})
}

71
fe/PDA/pages/task/kittingIssueJobDetailByQty.vue

@ -3,16 +3,8 @@
<page-meta root-font-size="16px"></page-meta>
<view class="">
<view class="top_card">
<com-job-scan-detail
:jobContent="datacontent"
:allCount="allCount"
:isShowScanHint="true"
scanHint="已发数"
:scanCount="scanCount"
:isShowOther="true"
:isShowShouRong="true"
:shouRongCount="shouRongCount"
>
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :isShowScanHint="true" scanHint="已发数"
:scanCount="scanCount" :isShowOther="true" :isShowShouRong="true" :shouRongCount="shouRongCount">
</com-job-scan-detail>
</view>
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
@ -82,9 +74,9 @@
<uni-td width="120" align="center">
<view
style="display: flex;flex-direction: row;justify-content:center;align-items: center;">
<com-number-box ref="comNumberBoxRef" v-model="item.tempHandledToQty"
:max="999999" :min="0" style='width: 100px;'
@change="qtyChanged($event,item,index)">
<com-number-box ref="comNumberBoxRef"
v-model="item.tempHandledToQty" :max="999999" :min="0"
style='width: 100px;' @change="qtyChanged($event,item,index)">
</com-number-box>
</view>
</uni-td>
@ -126,7 +118,7 @@
</view>
</view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -201,7 +193,8 @@
jobStatus: "",
toLocationInfo: {},
singCode: "",
shouRongCount:null
shouRongCount: null,
showBtn: true
}
},
props: {
@ -209,22 +202,13 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
}).catch(error => {
})
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeKittingIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
@ -236,7 +220,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeKittingIssueJob(this.id).then(res => {
uni.navigateBack();
@ -248,6 +232,7 @@
}
return true;
}
},
mounted() {
uni.setNavigationBarColor({
@ -349,15 +334,39 @@
uni.hideLoading();
this.showMessage(error)
})
this.setReceived();
}
})
.catch(err => {
this.showMessage('未查找到详细信息')
uni.hideLoading();
this.showMessage('未查找到详细信息')
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResult(result) {
let item = this.details.find(r => {
return r.itemCode == result.itemCode
@ -399,9 +408,7 @@
item.value = item.SHIFT_CODE
})
this.$refs.selectPopup.openScanPopup(list)
}
else {
} else {
this.showMessage("推荐列表为0")
}
}).catch(error => {

49
fe/PDA/pages/task/sparePartIssueJobDetail.vue

@ -153,7 +153,7 @@
</view>
</scroll-view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -231,7 +231,8 @@
titleArray: ['箱标签'],
jobStatus: "",
toLocationInfo: {},
handleToPackingCodeLocationCode: ""
handleToPackingCodeLocationCode: "",
showBtn: true
}
},
props: {
@ -239,22 +240,13 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.jobStatus == 2) {
//
cancelTakeSparePartIssueJob(this.id).then(res => {
}).catch(error => {
})
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeSparePartIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
@ -265,7 +257,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeSparePartIssueJob(this.id).then(res => {
uni.navigateBack();
@ -342,6 +334,7 @@
};
getSparePartIssueDetail(params)
.then(item => {
uni.hideLoading();
console.log('item', item);
that.datacontent = item;
that.jobStatus = item.jobStatus;
@ -369,15 +362,37 @@
);
that.ispending = item.jobStatus === 2;
this.allCount = that.details.length;
this.setReceived();
}
uni.hideLoading();
})
.catch(err => {
this.showMessage('未查找到详细信息')
uni.hideLoading();
this.showMessage('未查找到详细信息')
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResultTo(result) {
var fromData = result.data;

61
fe/PDA/pages/task/sparePartIssueJobDetailByQty.vue

@ -3,16 +3,8 @@
<page-meta root-font-size="16px"></page-meta>
<view class="">
<view class="top_card">
<com-job-scan-detail
:jobContent="datacontent"
:allCount="allCount"
:isShowScanHint="true"
scanHint="已发数"
:scanCount="scanCount"
:isShowOther="true"
:isShowShouRong="true"
:shouRongCount="shouRongCount"
>
<com-job-scan-detail :jobContent="datacontent" :allCount="allCount" :isShowScanHint="true" scanHint="已发数"
:scanCount="scanCount" :isShowOther="true" :isShowShouRong="true" :shouRongCount="shouRongCount">
</com-job-scan-detail>
</view>
<scroll-view scroll-y="true" @scrolltoupper="upper" @scrolltolower="lower" @scroll="scroll"
@ -82,9 +74,9 @@
<uni-td width="120" align="center">
<view
style="display: flex;flex-direction: row;justify-content:center;align-items: center;">
<com-number-box ref="comNumberBoxRef" v-model="item.tempHandledToQty"
:max="999999" :min="0" style='width: 100px;'
@change="qtyChanged($event,item,index)">
<com-number-box ref="comNumberBoxRef"
v-model="item.tempHandledToQty" :max="999999" :min="0"
style='width: 100px;' @change="qtyChanged($event,item,index)">
</com-number-box>
</view>
</uni-td>
@ -126,7 +118,7 @@
</view>
</view>
<view class="uni-flex uni-row new_btn_bot">
<view class="uni-flex uni-row new_btn_bot" v-if="showBtn">
<button class="new_clear_btn btn_double" @click="clear()">清空</button>
<button class="new_save_btn btn_double" @click="submit()">提交</button>
</view>
@ -201,7 +193,8 @@
jobStatus: "",
toLocationInfo: {},
singCode: "",
shouRongCount:null
shouRongCount: null,
showBtn: true
}
},
props: {
@ -209,17 +202,14 @@
},
onLoad(param) {
this.id = param.id;
if (param.jobStatus == 1) {
this.receive((callback => {
this.getDetail();
}));
} else {
this.getDetail();
}
},
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
cancelTakeSparePartIssueJob(this.id).then(res => {}).catch(error => {})
}
goHome();
} else if (e.index === 1) {
window.location.reload();
@ -229,7 +219,7 @@
onBackPress(e) {
//
if (e.from == 'backbutton') {
if (this.jobStatus == 2) {
if (this.datacontent.isClaims && this.datacontent.claimsUserId == localStorage.getItem('userId')) {
//
cancelTakeSparePartIssueJob(this.id).then(res => {
uni.navigateBack();
@ -343,6 +333,7 @@
uni.hideLoading();
this.showMessage(error)
})
this.setReceived();
}
})
@ -351,6 +342,28 @@
uni.hideLoading();
});
},
setReceived() {
//
//
if (this.datacontent.isClaims) {
//
if (this.datacontent.claimsUserId == localStorage.getItem('userId')) {
this.showBtn = true
} else {
this.showBtn = false
}
} else {
//
this.receive((callback => {
if (callback) {
this.showBtn = true
} else {
this.showBtn = false
}
}));
}
},
getScanResult(result) {
let item = this.details.find(r => {
return r.itemCode == result.itemCode
@ -392,9 +405,7 @@
item.value = item.SHIFT_CODE
})
this.$refs.selectPopup.openScanPopup(list)
}
else {
} else {
this.showMessage("推荐列表为0")
}
}).catch(error => {

Loading…
Cancel
Save