16 changed files with 1034 additions and 525 deletions
@ -0,0 +1,97 @@ |
|||||
|
<template> |
||||
|
<view> |
||||
|
<view class="detail-list margin_top" > |
||||
|
<!-- 单选卡片 --> |
||||
|
<view class="detail-content"> |
||||
|
<view class="choose_main"> |
||||
|
<view class="ljh_box"> |
||||
|
<view class="tit_ljh">{{ dataContent.itemCode }}</view> |
||||
|
<view class="ljh_left"> |
||||
|
<view class="font_xs text_lightblue">{{ dataContent.itemName }}</view> |
||||
|
<view class="font_xs text_lightblue">{{ dataContent.itemDesc1 }}</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="list_form hold_form"> |
||||
|
<view class="uni-container"> |
||||
|
<uni-table style="overflow-x: hidden;"> |
||||
|
<uni-tr> |
||||
|
<uni-th width="70"></uni-th> |
||||
|
<uni-th width="120" align="center">推荐</uni-th> |
||||
|
<uni-th width="120" align="center">实际</uni-th> |
||||
|
</uni-tr> |
||||
|
<uni-tr> |
||||
|
<uni-th width="70">数量</uni-th> |
||||
|
<uni-th width="120" align="center"> |
||||
|
<view class="text_black">{{dataContent.recommendQty}}({{dataContent.uom}})</text> |
||||
|
</view> |
||||
|
</uni-th> |
||||
|
<!-- --> |
||||
|
<uni-th width="120" align="center"> |
||||
|
<view class="" v-if="dataContent.scaned"> |
||||
|
<com-number-box :ref="'comNumberBox_'+index" v-model="dataContent.handledQty" |
||||
|
:max="99999" :min="0" @change="qtyChanged($event,dataContent,index)"> |
||||
|
</com-number-box> |
||||
|
</view> |
||||
|
<!-- <view v-if="dataContent.scaned" class="text_black"> |
||||
|
{{dataContent.handledQty}}({{dataContent.uom}}) |
||||
|
</view> --> |
||||
|
</uni-th> |
||||
|
</uni-tr> |
||||
|
<uni-tr> |
||||
|
<uni-th width="70">来源库位</uni-th> |
||||
|
<uni-th width="120" align="center"> |
||||
|
<view class="text_black">{{ dataContent.recommendFromLocationCode }}</view> |
||||
|
</uni-th> |
||||
|
<uni-th width="120" align="center"> |
||||
|
<view class=""> |
||||
|
<button v-if="dataContent.scaned" type="primary" size="mini" |
||||
|
style="margin-left: 30rpx;" @click="remove(dataContent,index)">移除</button> |
||||
|
</view> |
||||
|
</uni-th> |
||||
|
</uni-tr> |
||||
|
</uni-table> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
{{dataContent.scaned}} |
||||
|
<view class="choose_marked" v-if="dataContent.scaned"> |
||||
|
<image src="@/static/image_marked.svg"></image> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
|
||||
|
</view> |
||||
|
|
||||
|
|
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
export default { |
||||
|
data() { |
||||
|
return {} |
||||
|
}, |
||||
|
props: { |
||||
|
dataContent: { |
||||
|
type: Object, |
||||
|
value: {} |
||||
|
} |
||||
|
}, |
||||
|
watch:{ |
||||
|
dataContent: { |
||||
|
handler(newName, oldName) { |
||||
|
this.dataContent=newName; |
||||
|
}, |
||||
|
immediate: true, |
||||
|
deep: true |
||||
|
} |
||||
|
}, |
||||
|
methods: { |
||||
|
remove() { |
||||
|
this.$emit("remove", dataContent) |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
</style> |
@ -0,0 +1,68 @@ |
|||||
|
<!--发料任务卡片--> |
||||
|
<template> |
||||
|
<view class="device-detail"> |
||||
|
<view class="card_task nopad"> |
||||
|
<com-job-top-info :jobContent="dataContent"></com-job-top-info> |
||||
|
</view> |
||||
|
<view class="margin_xs_bottom"> |
||||
|
<view class="label_order"> |
||||
|
<image class="icon_normal" src="@/static/icons_ui/icon_apply_num.svg"></image> |
||||
|
<text>{{dataContent.requestNumber}}</text> |
||||
|
<!-- <text>申请单:{{dataContent.deliverRequestNumber}}</text> --> |
||||
|
</view> |
||||
|
<view class="label_order"> |
||||
|
<image class="icon_normal" src="@/static/icons_ui/icon_customer.svg"></image> |
||||
|
<text>{{dataContent.worker}}</text> |
||||
|
<!-- <text>客户:{{dataContent.customerCode}}</text> --> |
||||
|
</view> |
||||
|
</view> |
||||
|
<view class="uni-flex uni-row receipt_bot"> |
||||
|
<view class="label_order"> |
||||
|
<image class="icon_normal" src="@/static/icons_ui/icon_date.svg"> |
||||
|
</image> |
||||
|
<text |
||||
|
class="text_darkblue">{{dataContent.creationTime===null?'无':dataContent.creationTime| formatDate}}</text> |
||||
|
</view> |
||||
|
</view> |
||||
|
</view> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import { |
||||
|
getJobStatuStyle, |
||||
|
getJobStatuDesc, |
||||
|
dateFormat |
||||
|
} from '@/common/basic.js'; |
||||
|
import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue' |
||||
|
export default { |
||||
|
name: "comDeliver", |
||||
|
components: { |
||||
|
comJobTopInfo |
||||
|
}, |
||||
|
data() { |
||||
|
return {}; |
||||
|
}, |
||||
|
// 此处定义传入的数据 |
||||
|
props: { |
||||
|
dataContent: { |
||||
|
type: Object, |
||||
|
value: null |
||||
|
} |
||||
|
}, |
||||
|
filters: { |
||||
|
statusStyle: function(val) { |
||||
|
return getJobStatuStyle(val); |
||||
|
}, |
||||
|
statusColor: function(val) { |
||||
|
return getJobStatuDesc(val); |
||||
|
}, |
||||
|
formatDate: function(val) { |
||||
|
return dateFormat(val) |
||||
|
} |
||||
|
}, |
||||
|
} |
||||
|
</script> |
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
|
||||
|
</style> |
@ -1,176 +1,408 @@ |
|||||
<template> |
<template> |
||||
<view style="padding: 15rpx;"> |
<page-meta root-font-size="18px"></page-meta> |
||||
<uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="button" |
<view class=""> |
||||
activeColor="#007AFF"></uni-segmented-control> |
<win-blank-view @goScan='openScanPopup' v-if="itemList.length==0"></win-blank-view> |
||||
<view class="content"> |
<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltoupper="upper" |
||||
<view v-show="current === 0"> |
@scrolltolower="lower" @scroll="scroll" style="padding-bottom:150px"> |
||||
<win-empty-view v-if="dataList.length==0"></win-empty-view> |
<view class="detail-list " v-for="(item, index) in itemList" :key="index"> |
||||
<view class="" v-for="(item, index) in dataList"> |
<view class="detail-content"> |
||||
<view class="device-detail"> |
<view class="" style=""> |
||||
<view>物料:</view> |
<view class="uni-flex uni-row u-col-center"> |
||||
<view>零件:</view> |
<view class="" style="margin-top: 20rpx; margin-left: 10rpx; font-weight: bold;"> |
||||
<button type="primary" style="width: 140rpx; font-size: 32rpx; float: right;" >完成</button> |
({{index+1}}). |
||||
</view> |
</view> |
||||
</view> |
<comItemCode :itemData="item"></comItemCode> |
||||
选项卡1的内容 |
|
||||
</view> |
|
||||
<view v-show="current === 1"> |
|
||||
<win-empty-view v-if="dataList.length==0"></win-empty-view> |
|
||||
<view class="" v-for="(item, index) in dataList"> |
|
||||
<view class="" v-for="(item, index) in dataList"> |
|
||||
<view class="device-detail"> |
|
||||
<view>物料:</view> |
|
||||
<view>零件:</view> |
|
||||
<button type="primary" style="width: 140rpx; font-size: 32rpx; float: right;" >完成</button> |
|
||||
</view> |
</view> |
||||
|
|
||||
|
<uni-table border stripe style=""> |
||||
|
<!-- <uni-tr> |
||||
|
<uni-td align="center">物品代码</uni-td> |
||||
|
<uni-td>{{item.itemCode}}</uni-td> |
||||
|
</uni-tr> --> |
||||
|
<uni-tr> |
||||
|
<uni-td align="center">单位</uni-td> |
||||
|
<uni-td>{{item.uom}}</uni-td> |
||||
|
</uni-tr> |
||||
|
<uni-tr> |
||||
|
<uni-td align="center">标包数</uni-td> |
||||
|
<uni-td>{{item.stdPackQty}}</uni-td> |
||||
|
</uni-tr> |
||||
|
<uni-tr> |
||||
|
<uni-td align="center">来源库位</uni-td> |
||||
|
<uni-td>{{item.fromLocationCode}}</uni-td> |
||||
|
</uni-tr> |
||||
|
|
||||
|
<uni-tr> |
||||
|
<uni-td align="center">数量</uni-td> |
||||
|
<uni-td> |
||||
|
<view class="uni-flex uni-row"> |
||||
|
<view class="uni-flex uni-row space-between" style="width: 100%;"> |
||||
|
<view class=""> |
||||
|
<com-number-box :ref="'comNumberBox_'+index" v-model="item.qty" |
||||
|
:max="99999" :min="0" @change="qtyChanged($event,item,index)"> |
||||
|
</com-number-box> |
||||
|
</view> |
||||
|
|
||||
|
<view class=""> |
||||
|
<button type="primary" size="mini" style="margin-left: 30rpx;" |
||||
|
@click="remove(item,index)">移除</button> |
||||
|
</view> |
||||
|
|
||||
|
</view> |
||||
|
</view> |
||||
|
</uni-td> |
||||
|
</uni-tr> |
||||
|
</uni-table> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
选项卡2的内容 |
|
||||
</view> |
</view> |
||||
</view> |
</scroll-view> |
||||
<uni-load-more :status="loadingType" v-if="dataList.length>0" /> |
|
||||
|
<div class="new_bot_box" v-show="itemList.length>0"> |
||||
|
<win-collapse-location ref="location" @getLocationCode='getToLocation' @clear='clear'> |
||||
|
</win-collapse-location> |
||||
|
<view class="new_btn_bot bot_pos uni-flex"> |
||||
|
<button class="new_clear_btn btn_double" @click="cancel()">清空</button> |
||||
|
<button class="new_save_btn btn_double" @click="submit()">提交</button> |
||||
|
</view> |
||||
|
</div> |
||||
|
<win-scan-button @goScan='openScanPopup' v-if="itemList.length>0"></win-scan-button> |
||||
|
<winScanByProductCode ref="scanPackPopup" title="产品编码" @getScanResult='getScanResult'></winScanByProductCode> |
||||
|
<com-balance ref="balanceItems" @selectedItem='selectedBalanceItem'></com-balance> |
||||
|
<com-message ref="comMessage" @afterClose='afterCloseMessagg'></com-message> |
||||
|
</view> |
||||
</view> |
</view> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { |
import { |
||||
getPlasticsList, |
locations, |
||||
|
getBalancesByFilter, |
||||
|
completeTransfer |
||||
} from '@/api/index.js'; |
} from '@/api/index.js'; |
||||
|
|
||||
import { |
import { |
||||
goHome |
showConfirmMsg, |
||||
|
goHome, |
||||
|
getRemoveOption |
||||
} from '@/common/basic.js'; |
} from '@/common/basic.js'; |
||||
import winEmptyView from '@/mycomponents/wincom/winEmptyView.vue' |
|
||||
|
import winBlankView from '@/mycomponents/wincom/winBlankView.vue' |
||||
|
import comBalanceItem from '@/mycomponents/comItem/comBalanceItem.vue' |
||||
|
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' |
||||
|
import winScanByPack from '@/mycomponents/wincom/winScanByPack.vue' |
||||
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
||||
|
import comBalance from '@/mycomponents/common/comBalance.vue' |
||||
|
import winCollapseLocation from '@/mycomponents/wincom/winCollapseLocation.vue' |
||||
|
import winScanByProductCode from '@/mycomponents/wincom/winScanByProductCode.vue' |
||||
|
import comItemCode from '@/mycomponents/comItem/comItemCode.vue' |
||||
|
import comNumberBox from '@/mycomponents/common/comNumberBox.vue'; |
||||
|
|
||||
export default { |
export default { |
||||
|
name: 'comtransfer', |
||||
components: { |
components: { |
||||
winEmptyView |
winBlankView, |
||||
|
comBalanceItem, |
||||
|
comMessage, |
||||
|
winScanButton, |
||||
|
comBalance, |
||||
|
winCollapseLocation, |
||||
|
winScanByProductCode, |
||||
|
comItemCode, |
||||
|
comNumberBox |
||||
}, |
}, |
||||
data() { |
data() { |
||||
return { |
return { |
||||
items: ['已完成', '未完成'], |
options: [], |
||||
current: 0, |
itemList: [], |
||||
pageSize: this.modelConfig, |
fromLocationCode: '', |
||||
pageIndex: 1, |
toLocationCode: '', |
||||
loadingType: "nomore", |
scrollTop: 0, |
||||
dataList:[] |
old: { |
||||
|
scrollTop: 0 |
||||
|
}, |
||||
|
inventoryStatus: -1, |
||||
|
inventoryStatusArray: [], |
||||
|
isClearPackCode: false, //清除箱码 |
||||
|
isClearContainerCode: false, //清除托码 |
||||
|
isClearLot: false, //清除批次, |
||||
|
locationErpCode: '', |
||||
|
toLocationErpCode: '', |
||||
|
locationGotFocus: false |
||||
}; |
}; |
||||
}, |
}, |
||||
|
props: { |
||||
onShow() { |
// locationTypes: { |
||||
this.getList('refresh'); |
// type: [Array, String, Number], |
||||
}, |
// value: '' |
||||
onReachBottom() { |
// }, |
||||
//避免多次触发 |
byLocation: { |
||||
if (this.loadingType == 'loading' || this.loadingType == 'nomore') { |
type: Boolean, |
||||
return; |
value: false |
||||
} |
}, |
||||
this.getList("more"); |
transferType: { |
||||
}, |
type: String, |
||||
onPullDownRefresh() { |
value: 'Transfer_Inside' //Transfer_Inside:储位内 Transfer_Area:储位间 |
||||
this.getList('refresh'); |
|
||||
}, |
|
||||
//后退按钮 |
|
||||
onBackPress(options) { |
|
||||
if (options.from === 'navigateBack') { |
|
||||
return false; |
|
||||
} |
} |
||||
goHome(); |
|
||||
return true; |
|
||||
}, |
}, |
||||
//返回首页 |
|
||||
onNavigationBarButtonTap(e) { |
watch: {}, |
||||
if (e.index === 0) { |
mounted: function() { |
||||
goHome(); |
this.openScanPopup(); |
||||
} else if (e.index === 1) { |
this.options = getRemoveOption(); |
||||
window.location.reload(); |
|
||||
} |
|
||||
}, |
}, |
||||
|
|
||||
|
|
||||
methods: { |
methods: { |
||||
onClickItem(item){ |
|
||||
this.current = item.currentIndex; |
|
||||
console.log("点击",this.current) |
|
||||
this.getList("refresh"); |
|
||||
}, |
|
||||
openScanPopup() { |
openScanPopup() { |
||||
this.$refs.scanPopup.openScanPopup(); |
this.$refs.scanPackPopup.openScanPopup() |
||||
|
}, |
||||
|
//提示是否移除选择的行? |
||||
|
swipeClick(e, index) { |
||||
|
let { |
||||
|
content |
||||
|
} = e; |
||||
|
if (content.text === '移除') { |
||||
|
uni.showModal({ |
||||
|
title: '提示', |
||||
|
content: '是否移除选择的行?', |
||||
|
success: res => { |
||||
|
if (res.confirm) { |
||||
|
this.itemList.splice(index, 1); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
}, |
}, |
||||
|
|
||||
//查询发货任务 |
getScanResult(result) { |
||||
getList(type) { |
|
||||
let that = this; |
let that = this; |
||||
uni.showLoading({ |
let code = result.itemCode; |
||||
title: "加载中....", |
let datas = that.itemList.filter(r => { |
||||
mask: true |
return r.itemCode == code |
||||
}); |
}) |
||||
this.loadingType = "loading"; |
|
||||
if (type === "refresh") { |
if (datas.length > 0) { |
||||
this.pageIndex = 1; |
showConfirmMsg('物料【' + code + '】已经存在,是否要重新扫描?', confirm => { |
||||
this.dataList = []; |
if (confirm) { |
||||
} |
that.itemList.forEach((r, i) => { |
||||
let params = { |
if (r.packingCode == code) { |
||||
pageSize: that.pageSize, |
that.itemList.splice(i, 1); |
||||
pageIndex: that.pageIndex, |
return; |
||||
// isCreationTimeSorting: that.isTimeWindowSorting, |
} |
||||
// isToday: that.isToday |
}); |
||||
}; |
// that.getBalance(code); |
||||
getPlasticsList(params) |
|
||||
.then(res => { |
|
||||
uni.hideLoading(); |
|
||||
if (type === "refresh") { |
|
||||
uni.stopPullDownRefresh(); |
|
||||
} |
|
||||
var list = res.items; |
|
||||
this.loadingType = "loadmore"; |
|
||||
if (list == null || list.length == 0) { |
|
||||
//没数据了 |
|
||||
this.loadingType = "nomore"; |
|
||||
return; |
|
||||
} |
|
||||
// that.dataList = [...that.dataList, ...list]; |
|
||||
that.dataList = type === "refresh" ? list : this.dataList.concat(list); |
|
||||
that.pageIndex++; |
|
||||
}) |
|
||||
.catch(err => { |
|
||||
this.loadingType = ""; |
|
||||
this.showMessage(err.message); |
|
||||
uni.hideLoading(); |
|
||||
if (type === "refresh") { |
|
||||
uni.stopPullDownRefresh(); |
|
||||
} |
} |
||||
}); |
}); |
||||
|
} else { |
||||
|
var item ={ |
||||
|
itemCode: result.itemCode, |
||||
|
itemName: result.itemName, |
||||
|
itemDesc1: result.itemDesc1, |
||||
|
stdPackQty: result.stdPackQty, |
||||
|
uom: result.uom, |
||||
|
qty: result.stdPackQty, |
||||
|
fromLocationCode:"Z1C1" |
||||
|
} |
||||
|
|
||||
|
this.itemList.unshift(item); |
||||
|
} |
||||
}, |
}, |
||||
|
|
||||
getScanResult(type, result) { |
qtyChanged(value, item, index) { |
||||
if (type == '任务编号') { |
if (value <= 0) { |
||||
this.getByNumber(type, result.data.code); |
this.showMessage('退货数量必须大于0') |
||||
|
item.handledQty = item.qty |
||||
|
this.$refs['comNumberBox_' + index][0].setValue(item.handledQty); |
||||
} |
} |
||||
}, |
}, |
||||
|
|
||||
getByNumber(type, code) { |
getToLocation(code) { |
||||
let that = this; |
if (code == '') { |
||||
|
this.showMessage('目标库位不能为空'); |
||||
|
return; |
||||
|
} |
||||
uni.showLoading({ |
uni.showLoading({ |
||||
title: "加载中....", |
title: "扫描中", |
||||
mask: true |
mask: true |
||||
}); |
}); |
||||
getDeliverJobByNumber(code).then(res => { |
let that = this; |
||||
uni.hideLoading(); |
locations(code).then(res => { |
||||
if (res != null) { |
if (res == null) { |
||||
that.openDetail(res); |
that.toLocationCode = '' |
||||
|
that.showMessage('目标库位【' + code + '】不存在'); |
||||
|
this.$refs.location.clearLocation() |
||||
|
this.locationGotFocus = true; |
||||
} else { |
} else { |
||||
that.showMessage('未查找到' + type + '为【' + code + '】的盘点任务'); |
if (that.transferType == 'Transfer_Inside') //储位内调拨 |
||||
|
{ |
||||
|
if (that.locationErpCode != res.erpLocationCode) { |
||||
|
that.showMessage('目标库位的ERP储位【' + res.erpLocationCode + '】与【' + this |
||||
|
.locationErpCode + |
||||
|
'】不是同一ERP储位,请重新扫描目标库位'); |
||||
|
that.toLocationCode = '' |
||||
|
that.$refs.location.clearLocation(); |
||||
|
this.locationGotFocus = true; |
||||
|
} else { |
||||
|
that.toLocationCode = code; |
||||
|
that.toLocationErpCode = res.erpLocationCode; |
||||
|
} |
||||
|
|
||||
|
} else //储位调拨 |
||||
|
{ |
||||
|
let items = that.itemList.filter(r => { |
||||
|
return r.fromLocationErpCode == res.erpLocationCode; |
||||
|
}) |
||||
|
if (items.length > 0) { |
||||
|
let msg = ''; |
||||
|
for (var i = 0; i < items.length; i++) { |
||||
|
let r = items[i]; |
||||
|
msg += (i == 0 ? '' : ',') + r.fromPackingCode |
||||
|
} |
||||
|
that.showMessage('【' + msg + '】所在ERP储位与目标库位的ERP储位【' + res |
||||
|
.erpLocationCode + '】相同,请重新扫描目标库位'); |
||||
|
that.toLocationCode = '' |
||||
|
that.$refs.location.clearLocation(); |
||||
|
this.locationGotFocus = true; |
||||
|
} else { |
||||
|
that.toLocationCode = res.code; |
||||
|
that.toLocationErpCode = res.erpLocationCode; |
||||
|
} |
||||
|
} |
||||
} |
} |
||||
|
uni.hideLoading(); |
||||
}).catch(err => { |
}).catch(err => { |
||||
|
that.toLocationCode = '' |
||||
|
this.locationGotFocus = true; |
||||
that.showMessage(err.message); |
that.showMessage(err.message); |
||||
uni.hideLoading(); |
uni.hideLoading(); |
||||
}); |
}) |
||||
|
}, |
||||
|
|
||||
|
clear() { |
||||
|
this.location = null; |
||||
|
this.toLocationCode = ""; |
||||
}, |
}, |
||||
|
|
||||
openDetail(item) { |
submit() { |
||||
uni.navigateTo({ |
let that = this; |
||||
url: './plasticsInventoryMoveDetail?id=' + item.id + '&jobStatus=' + item.jobStatus |
if (that.itemList.length === 0) { |
||||
|
this.showMessage('请选择要提交的零件'); |
||||
|
return; |
||||
|
} |
||||
|
if (that.toLocationCode === '') { |
||||
|
this.showMessage('请扫描目标库位'); |
||||
|
return; |
||||
|
} |
||||
|
uni.showLoading({ |
||||
|
title: "提交中....", |
||||
|
mask: true |
||||
}); |
}); |
||||
|
let item = { |
||||
|
worker: localStorage.userName_CN ==""?localStorage.userName:localStorage.userName_CN, |
||||
|
warehouseCode: localStorage.warehouseCode, |
||||
|
jobNumber: "", |
||||
|
supplierCode: "", |
||||
|
company: localStorage.company, |
||||
|
number: "", |
||||
|
type: this.transferType, |
||||
|
details: [] |
||||
|
} |
||||
|
|
||||
|
that.itemList.forEach(r => { |
||||
|
r.toLocationCode = that.toLocationCode; |
||||
|
r.toLocationErpCode = this.toLocationErpCode |
||||
|
|
||||
|
r.worker = localStorage.userName_CN ==""?localStorage.userName:localStorage.userName_CN |
||||
|
item.details.push(r); |
||||
|
}) |
||||
|
|
||||
|
|
||||
|
let params = JSON.stringify(item); |
||||
|
console.log('params', params); |
||||
|
completeTransfer(params) |
||||
|
.then(res => { |
||||
|
that.showCommitSuccess(); |
||||
|
that.clearInfo(); |
||||
|
uni.hideLoading(); |
||||
|
}) |
||||
|
.catch(err => { |
||||
|
that.showMessage(err.message); |
||||
|
uni.hideLoading(); |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
cancel() { |
||||
|
let that = this; |
||||
|
showConfirmMsg('是否要清空已扫描的零件和目标库位信息?', confirm => { |
||||
|
if (confirm) { |
||||
|
that.clearInfo(); |
||||
|
} |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
clearInfo() { |
||||
|
let that = this; |
||||
|
that.itemList = []; |
||||
|
that.toLocationCode = ''; |
||||
|
that.inventoryStatus = -1; |
||||
|
}, |
||||
|
|
||||
|
afterCloseMessagg() { |
||||
|
if (this.locationGotFocus) { |
||||
|
this.$refs.location.gotFocus(); |
||||
|
} |
||||
|
}, |
||||
|
|
||||
|
clearPackCode() { |
||||
|
this.isClearPackCode = !this.isClearPackCode; |
||||
|
}, |
||||
|
|
||||
|
clearContainerCode() { |
||||
|
this.isClearContainerCode = !this.isClearContainerCode; |
||||
|
}, |
||||
|
|
||||
|
clearLot() { |
||||
|
this.isClearLot = !this.isClearLot; |
||||
|
}, |
||||
|
|
||||
|
upper: function(e) { |
||||
|
// console.log(e) |
||||
|
}, |
||||
|
lower: function(e) { |
||||
|
// console.log(e) |
||||
|
}, |
||||
|
scroll: function(e) { |
||||
|
// console.log(e) |
||||
|
this.old.scrollTop = e.detail.scrollTop; |
||||
}, |
}, |
||||
showMessage(message) { |
showMessage(message) { |
||||
this.$refs.comMessage.showMessage(message); |
this.$refs.comMessage.showMessage(message); |
||||
}, |
}, |
||||
|
showCommitSuccess() { |
||||
|
this.$refs.comMessage.showCommitSuccess(); |
||||
|
}, |
||||
} |
} |
||||
}; |
}; |
||||
</script> |
</script> |
||||
|
|
||||
|
<style scoped lang="scss"> |
||||
|
/deep/ .input-value { |
||||
|
font-size: 16px; |
||||
|
} |
||||
|
|
||||
|
/deep/ .uni-collapse-item__title-text { |
||||
|
font-size: 16px; |
||||
|
} |
||||
|
|
||||
|
/deep/ .uni-collapse-item--border { |
||||
|
border-bottom-width: 0px; |
||||
|
border-bottom-color: #ebeef5; |
||||
|
} |
||||
|
|
||||
|
/deep/ .uni-collapse-item--border { |
||||
|
border-bottom-width: 1px; |
||||
|
border-bottom-color: #ebeef5; |
||||
|
} |
||||
|
</style> |
||||
|
Loading…
Reference in new issue