Browse Source

修改error

wms3.0_pda
lijuncheng 10 months ago
parent
commit
9044f1637c
  1. 2
      mycomponents/detail/comDetailCard.vue
  2. 4
      mycomponents/recommend/recommend.vue
  3. 2
      pages.json
  4. 9
      pages/count/job/countDetail.vue
  5. 10
      pages/count/record/countRecord.vue
  6. 7
      pages/inspect/job/inspectJob.vue
  7. 13
      pages/inventoryMove/coms/comInventoryDetailCard.vue
  8. 1
      pages/issue/js/issue.js
  9. 12
      pages/scrap/job/scrapJobDetail.vue
  10. 12
      pages/supplierDeliver/record/supplierDeliverRecordDetail.vue
  11. 11
      pages/transfer/coms/comTransferRecord.vue
  12. 2
      pages/transfer/record/deliverRecord.vue
  13. 2
      pages/transfer/record/receiptRecord.vue

2
mycomponents/detail/comDetailCard.vue

@ -15,8 +15,8 @@
</recommend>
</uni-swipe-action-item>
</uni-swipe-action>
<u-line />
</view>
<u-line />
</uni-collapse-item>
</uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm"></balance-qty-edit>

4
mycomponents/recommend/recommend.vue

@ -5,7 +5,7 @@
<view>
<pack v-if="isShowPack" :packingCode="detail.packingNumber"></pack>
<batch v-if="isShowBatch" :batch="detail.batch"></batch>
<location v-if="isShowLocation" title="来源库位" :locationCode="detail.fromLocationCode">
<location v-if="isShowFromLocation" title="来源库位" :locationCode="detail.fromLocationCode">
</location>
<location v-if="isShowToLocation" title="目标库位" :locationCode="detail.toLocationCode">
</location>
@ -60,7 +60,7 @@
type: Boolean,
default: true
},
isShowLocation: {
isShowFromLocation: {
type: Boolean,
default: true
},

2
pages.json

@ -1020,7 +1020,7 @@
},
{
"path": "pages/transfer/record/issueRecord",
"path": "pages/transfer/record/deliverRecord",
"style": {
"navigationBarTitleText": "调拨发出记录",
"enablePullDownRefresh": true

9
pages/count/job/countDetail.vue

@ -1,8 +1,6 @@
<template>
<view class="page-wraper">
<requiredLocation title="盘点库位" :locationCode="fromLocationCode" :isShowEdit="jobContent.allowModifyLocation==1"
@getLocation='scanLocationCode' :locationTypeList="locationTypeList"></requiredLocation>
<u-line></u-line>
<view class="page-main">
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
@ -21,6 +19,9 @@
<view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; ">
<view class="">
<requiredLocation title="盘点库位" :locationCode="fromLocationCode" :isShowEdit="jobContent.allowModifyLocation==1"
@getLocation='scanLocationCode' :locationTypeList="locationTypeList"></requiredLocation>
<u-line></u-line>
</view>
<view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
@ -476,7 +477,7 @@
},
async submitJob() {
submitJob() {
uni.showLoading({
title: "提交中....",
mask: true

10
pages/count/record/countRecord.vue

@ -188,15 +188,11 @@
getfromLocationCode(location) {
this.fromLocationInfo = location;
this.fromLocationCode = location.Code;
this.fromLocationCode = location.code;
//
let param = {
locationCode: this.fromLocationCode,
inventoryStatus: []
};
balanceByLocation(param, res => {
this.subList = res.Data;
balanceByLocation(this.fromLocationCode, res => {
this.subList = res.data.list;
this.detailSource = getDataSource(this.subList);
});

7
pages/inspect/job/inspectJob.vue

@ -24,7 +24,6 @@
</template>
<script>
import {
cancleTakeInspectJob,
getInspectJobList,
@ -211,12 +210,12 @@
cancleJob(id) {
cancleTakeInspectJob(id).then(res => {
if(res.data){
if (res.data) {
this.getList("refresh")
uni.showToast({
title:"放弃任务成功"
title: "放弃任务成功"
})
}else {
} else {
this.showMessage("放弃任务失败")
}
}).catch(error => {

13
pages/inventoryMove/coms/comInventoryDetailCard.vue

@ -10,21 +10,10 @@
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item :right-options="item.scaned?scanOptions:detailOptions"
@click="swipeClick($event,item)">
<!-- <view class="uni-row ">
<view class="location_view uni-inline-item">
<text class="card_location">来源库位</text>
<text style="margin-left: 10px">{{item.fromLocationCode}}</text>
</view>
<view class="location_view uni-inline-item">
<text class="card_location">目标库位</text>
<text style="margin-right: 10px">{{item.toLocationCode}}</text>
</view>
</view> -->
<recommend :detail="item" :isShowFromLocation="true" :isShowToLocation="true"></recommend>
<u-line />
</uni-swipe-action-item>
</uni-swipe-action>
<u-line />
</view>
</uni-collapse-item>
</uni-collapse>

1
pages/issue/js/issue.js

@ -3,6 +3,7 @@ export function getDataSource(list,subList) {
let detail = subList[i];
var location = list.find(r =>
r.toLocationCode == detail.toLocationCode)
if (location == undefined) {
location = {
toLocationCode: detail.toLocationCode,

12
pages/scrap/job/scrapJobDetail.vue

@ -298,7 +298,7 @@
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + res.data )
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// this.showErrorMessage(""+res.msg)
// }
// }).catch(error => {
// uni.hideLoading()
@ -381,7 +381,7 @@
closeCommitMessage() {
setTimeout(() => {
uni.navigateTo({
url: './receipt'
url: './scrapJob'
})
})
//
@ -390,11 +390,9 @@
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
setTimeout(() => {
uni.navigateTo({
url: './receiptJob'
})
}, 3000)
uni.navigateTo({
url: './scrapJob'
})
})
},
}

12
pages/supplierDeliver/record/supplierDeliverRecordDetail.vue

@ -157,7 +157,6 @@
this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else {
itemDetail.scaned = true;
itemDetail.record = this.createRecordInfo(itemDetail, result.label);
calcHandleQty(this.detailSource);
}
}
@ -168,17 +167,6 @@
}
},
createRecordInfo(detail, label) {
var record = {}
detail.scaned = true;
// let record = JSON.parse(JSON.stringify(detail));
//
Object.assign(record, detail)
record.qty = Number(label.qty);
record.toLocationCode = this.toLocationCode;
return record;
},
getScanCount(closeScan) {
let items = this.subList.filter(r => {
if (r.scaned) {

11
pages/transfer/coms/comTransferRecord.vue

@ -18,13 +18,14 @@
</scroll-view>
</view>
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode'
:locationTypeList="tolocationTypeList"></requiredLocation>
<view class="page-footer">
<view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; ">
<view class="">
<requiredLocation title="目标库位" :locationCode="toLocationCode" @getLocation='getToLocationCode'
:locationTypeList="tolocationTypeList"></requiredLocation>
</view>
<view class=" uni-flex uni-row">
<button class="btn_single_commit" hover-class="btn_commit_after" @click="commit">提交</button>
@ -119,9 +120,9 @@
},
mounted(option) {
var typeCode =""
if(this.transferType=="transferIssue"){
typeCode = "Transfer"
}else if(this.transferType=="transferReceipt"){
if(this.transferType=="TransferDeliver"){
typeCode = "TransferDeliver"
}else if(this.transferType=="TransferReceipt"){
typeCode = "TransferReceipt"
}

2
pages/transfer/record/issueRecord.vue → pages/transfer/record/deliverRecord.vue

@ -1,6 +1,6 @@
<template>
<view class="page-wraper">
<comTransferRecord transferType="transferIssue"> </comTransferRecord>
<comTransferRecord transferType="TransferDeliver"> </comTransferRecord>
</view>
</template>

2
pages/transfer/record/receiptRecord.vue

@ -1,6 +1,6 @@
<template>
<view class="page-wraper">
<comTransferRecord transferType="transferReceipt"> </comTransferRecord>
<comTransferRecord transferType="TransferReceipt"> </comTransferRecord>
</view>
</template>

Loading…
Cancel
Save