|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class="page-wraper"> |
|
|
<view class="page-wraper"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-blank-view @goScan='getBusinessType' v-if="detailSource.length==0"></com-blank-view> |
|
|
<com-blank-view @goScan="getBusinessType" v-if="detailSource.length == 0"></com-blank-view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="page-wraper" v-if="detailSource.length > 0"> |
|
|
<view class="page-wraper" v-if="detailSource.length > 0"> |
|
@ -9,73 +9,51 @@ |
|
|
<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"> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<record-com-detail-card :dataContent="item" @removeItem="removeItem(index,item)" |
|
|
<record-com-detail-card :dataContent="item" @removeItem="removeItem(index, item)" @updateData="updateData" @removePack="updateData" :isShowToLocation="false"> </record-com-detail-card> |
|
|
@updateData="updateData" @removePack='updateData' :isShowToLocation="false"> |
|
|
|
|
|
</record-com-detail-card> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-flex uni-row" style="margin-left: 30rpx;margin-top: 10rpx; "> |
|
|
<view class="uni-flex uni-row" style="margin-left: 30rpx; margin-top: 10rpx"> |
|
|
|
|
|
<text style="font-size: 35rpx; margin-right: 20rpx">拆出数量 :</text> |
|
|
<text style="font-size: 35rpx; margin-right: 20rpx;">拆出数量 :</text> |
|
|
<uni-number-box @change="calcQty($event, splitCount)" :value="splitCount"> </uni-number-box> |
|
|
<uni-number-box @change="calcQty($event,splitCount)" :value="splitCount"> |
|
|
|
|
|
</uni-number-box> |
|
|
|
|
|
<uom :uom="detailSource[0].uom"></uom> |
|
|
<uom :uom="detailSource[0].uom"></uom> |
|
|
</view> |
|
|
</view> |
|
|
</scroll-view> |
|
|
</scroll-view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<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> |
|
|
<view class=""> |
|
|
|
|
|
</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> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-scan-button @goScan="openScanPopup"></win-scan-button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<winComScanBalance ref="scanPopup" @getBalance='getScanResult' :bussinessCode="typeCode"> |
|
|
<winComScanBalance ref="scanPopup" @getBalance="getScanResult" :bussinessCode="typeCode"> </winComScanBalance> |
|
|
</winComScanBalance> |
|
|
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { goHome, showConfirmMsg } from '@/common/basic.js' |
|
|
goHome, |
|
|
import { splitPackageRecordSubmit } from '@/api/request2.js' |
|
|
showConfirmMsg |
|
|
|
|
|
} from '@/common/basic.js'; |
|
|
import { calc } from '@/common/calc.js' |
|
|
import { |
|
|
|
|
|
splitPackageRecordSubmit |
|
|
import { getInventoryStatusDesc, getDirectoryItemArray } from '@/common/directory.js' |
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
|
|
|
import { getBusinessType, createItemInfo, createDetailInfo, calcHandleQty } from '@/common/record.js' |
|
|
import { |
|
|
|
|
|
calc |
|
|
|
|
|
} from '@/common/calc.js'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getInventoryStatusDesc, |
|
|
|
|
|
getDirectoryItemArray |
|
|
|
|
|
} from '@/common/directory.js'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getBusinessType, |
|
|
|
|
|
createItemInfo, |
|
|
|
|
|
createDetailInfo, |
|
|
|
|
|
calcHandleQty |
|
|
|
|
|
} from '@/common/record.js'; |
|
|
|
|
|
|
|
|
|
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
import winScanPack from '@/mycomponents/scan/winScanPack.vue' |
|
|
import winScanPack from '@/mycomponents/scan/winScanPack.vue' |
|
|
import requiredLocation from '@/mycomponents/location/requiredLocation.vue' |
|
|
import requiredLocation from '@/mycomponents/location/requiredLocation.vue' |
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
|
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
|
|
import winScanLocation from '@/mycomponents/scan/winScanLocation.vue' |
|
|
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
|
|
import winScanPackAndLocation from '@/mycomponents/scan/winScanPackAndLocation.vue' |
|
|
import recommendBalance from '@/mycomponents/balance/recommendBalance.vue' |
|
|
import recommendBalance from '@/mycomponents/balance/recommendBalance.vue' |
|
|
import comPackageRecord from '@/pages/package/coms/comPackageRecord.vue' |
|
|
import comPackageRecord from '@/pages/package/coms/comPackageRecord.vue' |
|
|
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue' |
|
|
import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue' |
|
@ -99,43 +77,30 @@ |
|
|
return { |
|
|
return { |
|
|
id: '', |
|
|
id: '', |
|
|
detailSource: [], // 绑定在页面上的数据源 |
|
|
detailSource: [], // 绑定在页面上的数据源 |
|
|
fromLocationCode: "", |
|
|
fromLocationCode: '', |
|
|
toLocationCode: "", |
|
|
toLocationCode: '', |
|
|
fromLocationAreaTypeList: [], |
|
|
fromLocationAreaTypeList: [], |
|
|
inInventoryStatus: "", //目标入库库存状态 |
|
|
inInventoryStatus: '', // 目标入库库存状态 |
|
|
outInventoryStatus: "", //来源出库库存状态 |
|
|
outInventoryStatus: '', // 来源出库库存状态 |
|
|
businessType: {}, |
|
|
businessType: {}, |
|
|
dataContent: {}, |
|
|
dataContent: {}, |
|
|
currentItemCode: "", |
|
|
currentItemCode: '', |
|
|
toPackingNumber: "", |
|
|
toPackingNumber: '', |
|
|
itemCode:"", |
|
|
itemCode: '', |
|
|
splitCount: 1, |
|
|
splitCount: 1, |
|
|
typeCode:"SplitPackage" |
|
|
typeCode: 'SplitPackage' |
|
|
}; |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(option) { |
|
|
onLoad(option) { |
|
|
<<<<<<< Updated upstream |
|
|
|
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title: option.title |
|
|
title: option.title |
|
|
}) |
|
|
}) |
|
|
var typeCode = "SplitPackage" |
|
|
this.getBusinessType() |
|
|
getBusinessType(typeCode, res => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
this.businessType = res.businessType; |
|
|
|
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; |
|
|
|
|
|
this.showFromLocationPopup(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showErrorMessage(res.message) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
======= |
|
|
|
|
|
this.getBusinessType(); |
|
|
|
|
|
>>>>>>> Stashed changes |
|
|
|
|
|
}, |
|
|
}, |
|
|
// 返回首页 |
|
|
// 返回首页 |
|
|
onNavigationBarButtonTap(e) { |
|
|
onNavigationBarButtonTap(e) { |
|
|
if (e.index === 0) { |
|
|
if (e.index === 0) { |
|
|
goHome(); |
|
|
goHome() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
// 拦截返回按钮事件 |
|
|
// 拦截返回按钮事件 |
|
@ -146,28 +111,28 @@ |
|
|
mounted() {}, |
|
|
mounted() {}, |
|
|
methods: { |
|
|
methods: { |
|
|
getBusinessType() { |
|
|
getBusinessType() { |
|
|
getBusinessType(this.typeCode, res => { |
|
|
getBusinessType(this.typeCode, (res) => { |
|
|
if (res.success) { |
|
|
if (res.success) { |
|
|
this.businessType = res.businessType; |
|
|
this.businessType = res.businessType |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(res.fromInventoryStatuses); |
|
|
this.fromInventoryStatuses = getDirectoryItemArray(res.fromInventoryStatuses) |
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList |
|
|
this.fromLocationAreaTypeList = res.fromLocationAreaTypeList |
|
|
this.openScanPopup(); |
|
|
this.openScanPopup() |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage(res.message) |
|
|
this.showErrorMessage(res.message) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
openScanPopup() { |
|
|
openScanPopup() { |
|
|
if (this.businessType) { |
|
|
if (this.businessType) { |
|
|
if (this.detailSource.length > 0) { |
|
|
if (this.detailSource.length > 0) { |
|
|
showConfirmMsg("拆包信息还没提交,是否要重新扫描?",res=>{ |
|
|
showConfirmMsg('拆包信息还没提交,是否要重新扫描?', (res) => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
this.clearData(); |
|
|
this.clearData() |
|
|
this.$refs.scanPopup.openScanPopup(this.businessType); |
|
|
this.$refs.scanPopup.openScanPopup(this.businessType) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} else { |
|
|
} else { |
|
|
this.$refs.scanPopup.openScanPopup(this.businessType); |
|
|
this.$refs.scanPopup.openScanPopup(this.businessType) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.getBusinessType() |
|
|
this.getBusinessType() |
|
@ -175,82 +140,74 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getScanResult(result) { |
|
|
getScanResult(result) { |
|
|
this.setData(result); |
|
|
this.setData(result) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setData(result) { |
|
|
setData(result) { |
|
|
let balance = result.balance; |
|
|
const { balance } = result |
|
|
let label = result.label; |
|
|
const { label } = result |
|
|
let pack = result.package; |
|
|
const pack = result.package |
|
|
this.fromPackUnit = pack.packUnit; |
|
|
this.fromPackUnit = pack.packUnit |
|
|
this.fromPack = pack; |
|
|
this.fromPack = pack |
|
|
if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) { |
|
|
if (this.fromLocationCode && this.fromLocationCode != balance.locationCode) { |
|
|
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]在库位[" + this |
|
|
this.showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]在库位[${this.fromLocationCode}]没有库存余额`) |
|
|
.fromLocationCode + "]没有库存余额") |
|
|
return |
|
|
return; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var item = this.detailSource.find(res => { |
|
|
const item = this.detailSource.find((res) => { |
|
|
if (res.itemCode == balance.itemCode) { |
|
|
if (res.itemCode == balance.itemCode) { |
|
|
return res |
|
|
return res |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (item == undefined) { |
|
|
if (item == undefined) { |
|
|
if (this.itemCode != "" && this.itemCode != balance.itemCode) { |
|
|
if (this.itemCode != '' && this.itemCode != balance.itemCode) { |
|
|
this.showErrorMessage("请扫描物料为【" + this.itemCode + "】的箱码") |
|
|
this.showErrorMessage(`请扫描物料为【${this.itemCode}】的箱码`) |
|
|
return; |
|
|
return |
|
|
} |
|
|
} |
|
|
var itemp = createItemInfo(balance, pack); |
|
|
const itemp = createItemInfo(balance, pack) |
|
|
itemp.handleQty = 0 |
|
|
itemp.handleQty = 0 |
|
|
let newDetail = createDetailInfo(balance, pack); // |
|
|
const newDetail = createDetailInfo(balance, pack) // |
|
|
newDetail.handleQty = 0 |
|
|
newDetail.handleQty = 0 |
|
|
newDetail.scaned = false |
|
|
newDetail.scaned = false |
|
|
itemp.subList.push(newDetail); |
|
|
itemp.subList.push(newDetail) |
|
|
this.detailSource.push(itemp) |
|
|
this.detailSource.push(itemp) |
|
|
this.itemCode = balance.itemCode; |
|
|
this.itemCode = balance.itemCode |
|
|
this.fromLocationCode = balance.locationCode |
|
|
this.fromLocationCode = balance.locationCode |
|
|
this.closeScanPopup() |
|
|
this.closeScanPopup() |
|
|
} else { |
|
|
} else { |
|
|
var detail = item.subList.find(r => { |
|
|
const detail = item.subList.find((r) => { |
|
|
if (r.packingNumber == balance.packingNumber && |
|
|
if (r.packingNumber == balance.packingNumber && r.batch == balance.batch && r.locationCode == balance.locationCode && r.inventoryStatus == balance.inventoryStatus) { |
|
|
r.batch == balance.batch && |
|
|
return r |
|
|
r.locationCode == balance.locationCode && |
|
|
|
|
|
r.inventoryStatus == balance.inventoryStatus) { |
|
|
|
|
|
return r; |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
if (detail == undefined) { |
|
|
if (detail == undefined) { |
|
|
let newDetail = createDetailInfo(balance, pack); |
|
|
const newDetail = createDetailInfo(balance, pack) |
|
|
newDetail.handleQty = 0 |
|
|
newDetail.handleQty = 0 |
|
|
item.subList.push(newDetail); |
|
|
item.subList.push(newDetail) |
|
|
this.closeScanPopup() |
|
|
this.closeScanPopup() |
|
|
} else { |
|
|
} else if (detail.scaned == true) { |
|
|
if (detail.scaned == true) { |
|
|
this.showErrorMessage(`箱码[${balance.packingNumber}批次[${balance.batch}]已经在列表中`) |
|
|
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中") |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
calcHandleQty() { |
|
|
calcHandleQty() { |
|
|
calcHandleQty(this.detailSource) |
|
|
calcHandleQty(this.detailSource) |
|
|
this.$forceUpdate(); |
|
|
this.$forceUpdate() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showErrorMessage(message) { |
|
|
showErrorMessage(message) { |
|
|
this.$refs.comMessage.showErrorMessage(message, res => { |
|
|
this.$refs.comMessage.showErrorMessage(message, (res) => { |
|
|
if (res) { |
|
|
if (res) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}); |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
updateData() { |
|
|
updateData() { |
|
|
this.calcHandleQty(); |
|
|
this.calcHandleQty() |
|
|
for (var i = 0; i < this.detailSource.length; i++) { |
|
|
for (let i = 0; i < this.detailSource.length; i++) { |
|
|
let item = this.detailSource[i]; |
|
|
const item = this.detailSource[i] |
|
|
if (item.qty == 0) { |
|
|
if (item.qty == 0) { |
|
|
this.detailSource.splice(i, 1) |
|
|
this.detailSource.splice(i, 1) |
|
|
} |
|
|
} |
|
@ -262,34 +219,33 @@ |
|
|
|
|
|
|
|
|
closeScanPopup() { |
|
|
closeScanPopup() { |
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
this.$refs.scanPopup.closeScanPopup(); |
|
|
this.$refs.scanPopup.closeScanPopup() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
scanPopupGetFocus() { |
|
|
scanPopupGetFocus() { |
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
if (this.$refs.scanPopup != undefined) { |
|
|
this.$refs.scanPopup.getfocus(); |
|
|
this.$refs.scanPopup.getfocus() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { |
|
|
if (this.detailSource.length > 0 && this.detailSource[0].subList.length > 0) { |
|
|
|
|
|
|
|
|
if (this.splitCount == 0) { |
|
|
if (this.splitCount == 0) { |
|
|
this.showErrorMessage("拆出数量不能等于0") |
|
|
this.showErrorMessage('拆出数量不能等于0') |
|
|
return; |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.splitCount > this.detailSource[0].qty) { |
|
|
if (this.splitCount > this.detailSource[0].qty) { |
|
|
this.showErrorMessage("拆出数量不能大于库存数量") |
|
|
this.showErrorMessage('拆出数量不能大于库存数量') |
|
|
return; |
|
|
return |
|
|
} |
|
|
} |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title: "提交中....", |
|
|
title: '提交中....', |
|
|
mask: true |
|
|
mask: true |
|
|
}); |
|
|
}) |
|
|
|
|
|
|
|
|
var params = this.setParams(); |
|
|
const params = this.setParams() |
|
|
console.log("提交" + JSON.stringify(params)) |
|
|
console.log(`提交${JSON.stringify(params)}`) |
|
|
// splitPackageRecordSubmit(params).then(res => { |
|
|
// splitPackageRecordSubmit(params).then(res => { |
|
|
// uni.hideLoading() |
|
|
// uni.hideLoading() |
|
|
// if (res.data) { |
|
|
// if (res.data) { |
|
@ -323,96 +279,92 @@ |
|
|
// this.showErrorMessage(error) |
|
|
// this.showErrorMessage(error) |
|
|
// }) |
|
|
// }) |
|
|
} else { |
|
|
} else { |
|
|
this.showErrorMessage("没有要提交的数据") |
|
|
this.showErrorMessage('没有要提交的数据') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
setParams() { |
|
|
setParams() { |
|
|
var subList = [] |
|
|
const subList = [] |
|
|
var creator = this.$store.state.user.id |
|
|
const creator = this.$store.state.user.id |
|
|
this.detailSource.forEach(item => { |
|
|
this.detailSource.forEach((item) => { |
|
|
item.subList.forEach(detail => { |
|
|
item.subList.forEach((detail) => { |
|
|
var subItem = {}; |
|
|
const subItem = {} |
|
|
Object.assign(subItem, detail) |
|
|
Object.assign(subItem, detail) |
|
|
subItem.itemCode = subItem.itemCode; |
|
|
subItem.itemCode = subItem.itemCode |
|
|
subItem.itemName = detail.package.itemName; |
|
|
subItem.itemName = detail.package.itemName |
|
|
subItem.itemDesc1 = detail.package.itemDesc1; |
|
|
subItem.itemDesc1 = detail.package.itemDesc1 |
|
|
subItem.itemDesc2 = detail.package.itemDesc2; |
|
|
subItem.itemDesc2 = detail.package.itemDesc2 |
|
|
|
|
|
|
|
|
subItem.fromInventoryStatus = subItem.inventoryStatus; |
|
|
subItem.fromInventoryStatus = subItem.inventoryStatus |
|
|
subItem.toInventoryStatus = subItem.inventoryStatus; |
|
|
subItem.toInventoryStatus = subItem.inventoryStatus |
|
|
|
|
|
|
|
|
subItem.fromQty = subItem.qty |
|
|
subItem.fromQty = subItem.qty |
|
|
subItem.toQty = subItem.qty |
|
|
subItem.toQty = subItem.qty |
|
|
|
|
|
|
|
|
subItem.fromPackingNumber = subItem.packingNumber; |
|
|
subItem.fromPackingNumber = subItem.packingNumber |
|
|
subItem.toPackingNumber = subItem.packingNumber; |
|
|
subItem.toPackingNumber = subItem.packingNumber |
|
|
|
|
|
|
|
|
subItem.fromBatch = subItem.batch; |
|
|
subItem.fromBatch = subItem.batch |
|
|
subItem.toBatch = subItem.batch; |
|
|
subItem.toBatch = subItem.batch |
|
|
subItem.fromLocationCode = subItem.fromLocationCode; |
|
|
subItem.fromLocationCode = subItem.fromLocationCode |
|
|
subItem.package = "" |
|
|
subItem.package = '' |
|
|
subItem.Records = "" |
|
|
subItem.Records = '' |
|
|
subList.push(subItem) |
|
|
subList.push(subItem) |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
this.dataContent.subList = subList; |
|
|
this.dataContent.subList = subList |
|
|
this.dataContent.creator = creator; |
|
|
this.dataContent.creator = creator |
|
|
return this.dataContent; |
|
|
return this.dataContent |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showMessage(message) { |
|
|
showMessage(message) { |
|
|
this.$refs.comMessage.showMessage(message, res => { |
|
|
this.$refs.comMessage.showMessage(message, (res) => { |
|
|
if (res) {} |
|
|
if (res) { |
|
|
}); |
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showScanMessage(message) { |
|
|
showScanMessage(message) { |
|
|
this.$refs.comMessage.showScanMessage(message); |
|
|
this.$refs.comMessage.showScanMessage(message) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
afterCloseMessage() { |
|
|
afterCloseMessage() { |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
closeScanMessage() { |
|
|
closeScanMessage() { |
|
|
this.scanPopupGetFocus(); |
|
|
this.scanPopupGetFocus() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
showCommitSuccessMessage(hint, pointData) { |
|
|
showCommitSuccessMessage(hint, pointData) { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, res => { |
|
|
this.$refs.comMessage.showSuccessMessage(hint, (res) => { |
|
|
this.clearData(); |
|
|
this.clearData() |
|
|
if (pointData.length > 0) { |
|
|
if (pointData.length > 0) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: `/pages/point/index?points=${JSON.stringify(pointData)}` |
|
|
url: `/pages/point/index?points=${JSON.stringify(pointData)}` |
|
|
}); |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clearData() { |
|
|
clearData() { |
|
|
this.detailSource = [] |
|
|
this.detailSource = [] |
|
|
this.fromLocationCode = ''; |
|
|
this.fromLocationCode = '' |
|
|
this.currentItemCode = "" |
|
|
this.currentItemCode = '' |
|
|
this.dataContent = {} |
|
|
this.dataContent = {} |
|
|
this.itemCode="" |
|
|
this.itemCode = '' |
|
|
this.splitCount = 1 |
|
|
this.splitCount = 1 |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
calcQty(val) { |
|
|
calcQty(val) { |
|
|
this.splitCount =val; |
|
|
this.splitCount = val |
|
|
// if(val<=0){ |
|
|
// if(val<=0){ |
|
|
// this.showErrorMessage("数量必须大于0") |
|
|
// this.showErrorMessage("数量必须大于0") |
|
|
// } |
|
|
// } |
|
|
}, |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"></style> |
|
|
|
|
|
|
|
|
</style> |
|
|
|
|
|