Browse Source

修改到货检验bug

wms3.0_pda
lijuncheng 12 months ago
parent
commit
9121f3e859
  1. 2
      mycomponents/job/jobDetailPopup.vue
  2. 2
      mycomponents/recommend/recommend.vue
  3. 43
      pages/inspect/coms/inspectComDetailCard.vue
  4. 3
      pages/inspect/coms/inspectEdit.vue
  5. 8
      pages/inspect/job/inspectDetail.vue
  6. 23
      pages/inspect/job/inspectResult.vue
  7. 4
      pages/inspect/request/inspectRequestDetail.vue

2
mycomponents/job/jobDetailPopup.vue

@ -1,7 +1,7 @@
<template> <template>
<view class=""> <view class="">
<uni-popup ref="popup"> <uni-popup ref="popup">
<detail-common-info :dataContent='dataContent'></detail-common-info> <detail-common-info :dataContent='dataContent' @onClose="closeScanPopup()" ></detail-common-info>
</uni-popup> </uni-popup>
</view> </view>
</template> </template>

2
mycomponents/recommend/recommend.vue

@ -11,7 +11,7 @@
</location> </location>
</view> </view>
<view> <view>
<recommend-qty v-if="detail.handleQty==null || detail.handleQty==undefined" :dataContent="detail" <recommend-qty v-if="detail.handleQty==null || detail.handleQty==undefined||detail.handleQty==0" :dataContent="detail"
:isShowStdPack="false"></recommend-qty> :isShowStdPack="false"></recommend-qty>
<compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)" <compare-qty v-else :dataContent="detail" :recommendQty="Number(detail.qty)"
:handleQty="Number(detail.handleQty)" :isShowStdPack="false"> :handleQty="Number(detail.handleQty)" :isShowStdPack="false">

43
pages/inspect/coms/inspectComDetailCard.vue

@ -1,23 +1,33 @@
<template> <template>
<view class="" style="background-color: #fff;"> <view class="" style="background-color: #fff;">
<view class=""> <view class="">
<view class="" style="font-size: 32rpx;margin-left: 20rpx;">
<view class=""> <view class="cen_card" style="padding: 20rpx;">
检验类型 : {{getInspectType(jobContent.inspectType)}} <view class="cell_box uni-flex uni-row">
</view> <view class="cell_info">
<view class=""> <view class="text_lightblue">类型</view>
收货数量 : {{jobContent.receiveQty}}{{getUnitInfo(jobContent.uom)}} <view>{{getInspectType(jobContent.inspectType)}}</view>
</view> </view>
<view class=""> <view class="cell_info">
检验数量 : {{jobContent.sampleQty}}{{getUnitInfo(jobContent.uom)}} <view class="text_lightblue">收货数</view>
</view> <view>{{jobContent.receiveQty}}{{getUnitInfo(jobContent.uom)}}</view>
<view class=""> </view>
不合格数量 : {{jobContent.failedQty}}{{getUnitInfo(jobContent.uom)}} <view class="cell_info">
</view> <view class="text_lightblue">检验数</view>
<view class=""> <view>{{jobContent.sampleQty}}{{getUnitInfo(jobContent.uom)}}</view>
报废数量 : {{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}} </view>
<view class="cell_info">
<view class="text_lightblue">不合格数</view>
<view>{{jobContent.failedQty}}{{getUnitInfo(jobContent.uom)}}</view>
</view>
<view class="cell_info">
<view class="text_lightblue">报废数</view>
<view>{{jobContent.crackQty}}{{getUnitInfo(jobContent.uom)}}</view>
</view>
</view> </view>
<u-line />
</view> </view>
</view> </view>
<u-line /> <u-line />
<uni-collapse ref="collapse1" @change=""> <uni-collapse ref="collapse1" @change="">
@ -168,7 +178,7 @@
detail(item) { detail(item) {
this.showItem = item; this.showItem = item;
this.$refs.receiptHint.openScanPopup() this.$refs.receiptHint.openScanPopup(item)
}, },
remove(item) { remove(item) {
this.$refs.message.showQuestionMessage("确定移除扫描信息?", this.$refs.message.showQuestionMessage("确定移除扫描信息?",
@ -181,6 +191,7 @@
item.notPassedQty = 0; item.notPassedQty = 0;
item.inspectResult ="" item.inspectResult =""
item.failedReason ="" item.failedReason =""
item.handleQty =0;
item.photos ="" item.photos =""
this.$forceUpdate() this.$forceUpdate()
this.$emit('remove', item) this.$emit('remove', item)

3
pages/inspect/coms/inspectEdit.vue

@ -100,7 +100,7 @@
openEditPopup(item) { openEditPopup(item) {
this.failedReasonArray = getInspectFailedReasonList(); this.failedReasonArray = getInspectFailedReasonList();
// //
Object.assign(this.dataContent, item) this.dataContent = Object.assign({}, item)
this.$refs['editPopup'].open("bottom"); this.$refs['editPopup'].open("bottom");
}, },
@ -138,6 +138,7 @@
this.dataContent.failedQty = failedQty; this.dataContent.failedQty = failedQty;
this.dataContent.crackQty = crackQty this.dataContent.crackQty = crackQty
this.dataContent.goodQty = this.dataContent.handleQty -failedQty-crackQty this.dataContent.goodQty = this.dataContent.handleQty -failedQty-crackQty
debugger
this.afterSave() this.afterSave()

8
pages/inspect/job/inspectDetail.vue

@ -291,8 +291,7 @@
']不一致,是否继续上架?', res => { ']不一致,是否继续上架?', res => {
if (res) { if (res) {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance itemDetail.handleQty = Number(result.balance.qty)
.qty) ? Number(result.balance.qty) : Number(result.label.qty);
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
this.calcHandleQty(); this.calcHandleQty();
} else { } else {
@ -302,8 +301,7 @@
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.balance = result.balance; itemDetail.balance = result.balance;
itemDetail.handleQty = Number(result.label.qty) > Number(result.balance.qty) ? Number( itemDetail.handleQty = Number(result.balance.qty)
result.balance.qty) : Number(result.label.qty);
this.calcHandleQty(); this.calcHandleQty();
} }
} }
@ -370,7 +368,7 @@
inspectJobSubmit(params).then(res => { inspectJobSubmit(params).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data) { if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data, ) this.showCommitSuccessMessage("提交成功<br>生成到货检验记录" + res.data)
} else { } else {
this.showErrorMessage("提交失败[" + res.msg + "]") this.showErrorMessage("提交失败[" + res.msg + "]")
} }

23
pages/inspect/job/inspectResult.vue

@ -51,7 +51,7 @@
<view class="uni-label">不合格数量</view> <view class="uni-label">不合格数量</view>
</view> </view>
<view class="pda-list-cell-db"> <view class="pda-list-cell-db">
<uni-easyinput :inputBorder="true" type="number" placeholder="请输入数字" v-model="jobContent.failedQty" <uni-easyinput :inputBorder="true" type="number" placeholder="请输入数字" v-model="jobContent.failedQty" @clear="clearFailedQty"
@blur="failedQtyConfirm" class="count-input"> @blur="failedQtyConfirm" class="count-input">
</uni-easyinput> </uni-easyinput>
</view> </view>
@ -63,7 +63,7 @@
<view class="uni-label">报废数量</view> <view class="uni-label">报废数量</view>
</view> </view>
<view class="pda-list-cell-db"> <view class="pda-list-cell-db">
<uni-easyinput placeholder="请输入数字" type="number" v-model="jobContent.crackQty" @blur="" <uni-easyinput placeholder="请输入数字" type="number" v-model="jobContent.crackQty" @blur="" @clear="clearCrackQty"
class="count-input"> class="count-input">
</uni-easyinput> </uni-easyinput>
</view> </view>
@ -155,6 +155,10 @@
getInspectType, getInspectType,
getUnitInfo getUnitInfo
} from '@/common/directory.js'; } from '@/common/directory.js';
import {
goHome
} from '@/common/basic.js';
export default { export default {
components: { components: {
@ -181,6 +185,12 @@
} }
}, },
//
onNavigationBarButtonTap(e) {
if (e.index === 0) {
goHome();
}
},
onLoad(option) { onLoad(option) {
this.id = option.id; this.id = option.id;
this.status = option.status; this.status = option.status;
@ -317,7 +327,14 @@
} }
} }
}, },
clearFailedQty(){
this.jobContent.failedQty = null;
},
clearCrackQty(){
this.jobContent.crackQty = null
},
commit() { commit() {

4
pages/inspect/request/inspectRequestDetail.vue

@ -5,10 +5,10 @@
<scroll-view scroll-y="true" class="page-main-scroll"> <scroll-view scroll-y="true" class="page-main-scroll">
<view class="" style="background-color: #fff; padding-left: 20rpx;padding-right: 20rpx; padding-top: 10rpx;padding-bottom: 10rpx;"> <view class="" style="background-color: #fff; padding-left: 20rpx;padding-right: 20rpx; padding-top: 10rpx;padding-bottom: 10rpx;">
<view class="" style="font-size: 35rpx;"> <view class="" style="font-size: 35rpx;">
发货单号 : : {{jobContent.number}}
</view> </view>
<view class="" style="font-size: 35rpx;"> <view class="" style="font-size: 35rpx;">
<text>供应商 : </text> <text>供应商代码 : {{jobContent.supplierCode}} </text>
</view> </view>
</view> </view>
<u-line /> <u-line />

Loading…
Cancel
Save