Browse Source

修改发料功能

hella_vue3
niexiting 6 months ago
parent
commit
07082655da
  1. 36
      src/mycomponents/location/locationCompare.vue
  2. 2
      src/pages/putaway/coms/comPutawayJobCard.vue
  3. 4
      src/pages/putaway/job/putawayDetail.vue

36
src/mycomponents/location/locationCompare.vue

@ -7,12 +7,16 @@
<view class="uni-flex uni-row u-col-center" @click="showLocation">
<view>
<text style="font-size: 30rpx;">{{title}}</text>
<text style="font-size: 25rpx;color:#3FBAFF;">&nbsp {{recommendLocationCode}}</text>
<text v-if="locationCode" style="font-size: 25rpx;color:#3FBAFF;">&nbsp/&nbsp{{locationCode}}</text>
<!-- <text style="font-size: 35rpx;color:#3FBAFF;" v-if="locationCode==''&&isShowEdit==true">&nbsp 请扫描</text> -->
</view>
<image v-if="isShowEdit" style="width:45rpx;height: 45rpx;" src="/static/icons/icons_edit.svg"></image>
<view class="uni-flex uni-row center" style="vertical-align:center ;" v-if="isDevlement()">
<text style="font-size: 30rpx;color: #2979ff; " @click="copy">复制</text>
</view>
</view>
<win-scan-location ref="scanLocationCode" :title="title" @getLocation='getLocation'
:locationAreaTypeList="locationAreaTypeList"></win-scan-location>
@ -21,6 +25,7 @@
<script>
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue"
import config from '@/static/config.js'
export default {
components: {
@ -75,10 +80,37 @@
//
getLocation(location, code) {
this.$emit("getLocation", location, code)
},
copy() {
// HPQ;V1.0;ICE115F11161AG;PP20230427000026;B20230427002;Q100
var content = "HLB;V1.0;" + this.recommendLocationCode;
// #ifdef H5
this.$copyText(content).then(
res => {
uni.showToast({
title: '复制库位成功',
icon: 'none'
})
}
)
// #endif
// #ifndef H5
uni.setClipboardData({
data: content,
success: () => {
uni.showToast({
title: '复制库位成功'
})
}
})
// #endif
},
isDevlement() {
return config.isDevelopment;
}
}
}
</script>
<style>
</style>
</style>

2
src/pages/putaway/coms/comPutawayJobCard.vue

@ -12,7 +12,7 @@
<view class="task_item">
<view class="task_text">
<view class="">
客户代码 : {{dataContent.supplierCode}}
供应商代码 : {{dataContent.supplierCode}}
</view>
</view>
</view>

4
src/pages/putaway/job/putawayDetail.vue

@ -337,14 +337,14 @@
},
scanLocationCode(location, code) {
this.$refs.comMessage.showQuestionMessage("是否把所有的目标库位都变成默认库位[" + code + "]", res => {
// this.$refs.comMessage.showQuestionMessage("[" + code + "]", res => {
this.toLocationCode = code
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
detail.toLocationCode = code
})
})
})
// })
},
openDetail(item) {

Loading…
Cancel
Save