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> </recommend>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
<u-line />
</view> </view>
<u-line />
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm"></balance-qty-edit> <balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm"></balance-qty-edit>

4
mycomponents/recommend/recommend.vue

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

2
pages.json

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

9
pages/count/job/countDetail.vue

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

10
pages/count/record/countRecord.vue

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

7
pages/inspect/job/inspectJob.vue

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

13
pages/inventoryMove/coms/comInventoryDetailCard.vue

@ -10,21 +10,10 @@
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item :right-options="item.scaned?scanOptions:detailOptions" <uni-swipe-action-item :right-options="item.scaned?scanOptions:detailOptions"
@click="swipeClick($event,item)"> @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> <recommend :detail="item" :isShowFromLocation="true" :isShowToLocation="true"></recommend>
<u-line />
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
<u-line />
</view> </view>
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>

1
pages/issue/js/issue.js

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

12
pages/scrap/job/scrapJobDetail.vue

@ -298,7 +298,7 @@
// 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)
// } // }
// }).catch(error => { // }).catch(error => {
// uni.hideLoading() // uni.hideLoading()
@ -381,7 +381,7 @@
closeCommitMessage() { closeCommitMessage() {
setTimeout(() => { setTimeout(() => {
uni.navigateTo({ uni.navigateTo({
url: './receipt' url: './scrapJob'
}) })
}) })
// //
@ -390,11 +390,9 @@
showCommitSuccessMessage(hint) { showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
setTimeout(() => { uni.navigateTo({
uni.navigateTo({ url: './scrapJob'
url: './receiptJob' })
})
}, 3000)
}) })
}, },
} }

12
pages/supplierDeliver/record/supplierDeliverRecordDetail.vue

@ -157,7 +157,6 @@
this.showMessage("箱码【" + packingNumber + "】已经扫描") this.showMessage("箱码【" + packingNumber + "】已经扫描")
} else { } else {
itemDetail.scaned = true; itemDetail.scaned = true;
itemDetail.record = this.createRecordInfo(itemDetail, result.label);
calcHandleQty(this.detailSource); 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) { getScanCount(closeScan) {
let items = this.subList.filter(r => { let items = this.subList.filter(r => {
if (r.scaned) { if (r.scaned) {

11
pages/transfer/coms/comTransferRecord.vue

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

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

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

2
pages/transfer/record/receiptRecord.vue

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

Loading…
Cancel
Save