105 changed files with 2155 additions and 2192 deletions
@ -1,450 +1,456 @@ |
|||||
<!-- 收货任务详情 --> |
<template> |
||||
<template> |
<view class="page-wraper"> |
||||
<view class="page-wraper"> |
<view class=""> |
||||
<view class=""> |
<com-blank-view @goScan='getLocation' v-if="detailSource.length==0"></com-blank-view> |
||||
<com-blank-view @goScan='getLocation' 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"> |
<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"> |
<view class=""> |
||||
<view class=""> |
<record-com-detail-card :dataContent="item" :index="index" :settingParam="jobContent" |
||||
<record-com-detail-card :dataContent="item" :index="index" :settingParam="jobContent" |
:isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData" |
||||
:isShowLocation="true" @removeItem="removeItem(index,item)" @updateData="updateData" |
@removePack="removePack"> |
||||
@removePack="removePack"> |
</record-com-detail-card> |
||||
</record-com-detail-card> |
</view> |
||||
</view> |
<u-line /> |
||||
<u-line /> |
</view> |
||||
</view> |
</scroll-view> |
||||
</scroll-view> |
</view> |
||||
</view> |
|
||||
|
<view class="uni-flex uni-row u-col-center" style="width: 100%;"> |
||||
<view class="uni-flex uni-row u-col-center" style="width: 100%;"> |
<view class="" style=" text-align: center;font-size: 32rpx;font-weight: 700;margin-left: 10rpx;"> |
||||
<view class="" style=" text-align: center;font-size: 32rpx;font-weight: 700;margin-left: 10rpx;"> |
客户 : |
||||
客户 : |
</view> |
||||
</view> |
<uni-data-picker v-if="detailSource.length>0" style="padding: 20rpx; background-color:#fff;" |
||||
<uni-data-picker v-if="detailSource.length>0" style="padding: 20rpx; background-color:#fff;" |
class='uni-data-picker' placeholder="请选择客户" popup-title="选择客户" :localdata="customerList" |
||||
class='uni-data-picker' placeholder="请选择客户" popup-title="选择客户" :localdata="customerList" |
v-model="customer"> |
||||
v-model="customer"> |
</uni-data-picker> |
||||
</uni-data-picker> |
</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 class=""> |
</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> |
</view> |
||||
</view> |
</view> |
||||
</view> |
</view> |
||||
</view> |
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
||||
<win-scan-button @goScan='openScanPopup'></win-scan-button> |
</view> |
||||
</view> |
|
||||
|
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> |
||||
<win-scan-pack-and-location ref="scanPopup" @getResult='getScanResult'></win-scan-pack-and-location> |
<comMessage ref="comMessage"></comMessage> |
||||
<comMessage ref="comMessage"></comMessage> |
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' |
||||
<win-scan-location ref="scanLocationCode" title="来源库位" @getLocation='getLocation' |
:locationTypeList="fromlocationTypeList"></win-scan-location> |
||||
:locationTypeList="fromlocationTypeList"></win-scan-location> |
</view> |
||||
</view> |
|
||||
|
</template> |
||||
</template> |
|
||||
|
<script> |
||||
<script> |
import { |
||||
import { |
getBasicCustomerList, |
||||
getBasicCustomerList |
deliverRequestSubmit, |
||||
} from '@/api/request2.js'; |
deliverRecordSubmit |
||||
import { |
} from '@/api/request2.js'; |
||||
goHome, |
import { |
||||
updateTitle, |
goHome, |
||||
getInventoryStatusDesc, |
updateTitle |
||||
getDirectoryItemArray |
} from '@/common/basic.js'; |
||||
} from '@/common/basic.js'; |
|
||||
|
import { |
||||
import { |
getInventoryStatusDesc, |
||||
getBusinessType, |
getDirectoryItemArray |
||||
createItemInfo, |
} from '@/common/directory.js'; |
||||
createDetailInfo, |
|
||||
calcHandleQty |
import { |
||||
} from '@/common/record.js'; |
getBusinessType, |
||||
|
createItemInfo, |
||||
|
createDetailInfo, |
||||
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
calcHandleQty |
||||
import winScanPack from '@/mycomponents/scan/winScanPack.vue' |
} from '@/common/record.js'; |
||||
import requiredLocation from '@/mycomponents/location/requiredLocation.vue' |
|
||||
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
|
||||
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
||||
import comMessage from '@/mycomponents/common/comMessage.vue' |
import winScanPack from '@/mycomponents/scan/winScanPack.vue' |
||||
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
import requiredLocation from '@/mycomponents/location/requiredLocation.vue' |
||||
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
import comBlankView from '@/mycomponents/common/comBlankView.vue' |
||||
|
import winScanLocation from "@/mycomponents/scan/winScanLocation.vue" |
||||
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
||||
export default { |
import winScanPackAndLocation from "@/mycomponents/scan/winScanPackAndLocation.vue" |
||||
components: { |
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
||||
winScanButton, |
|
||||
winScanPack, |
|
||||
requiredLocation, |
export default { |
||||
comBlankView, |
components: { |
||||
winScanLocation, |
winScanButton, |
||||
comMessage, |
winScanPack, |
||||
winScanPackAndLocation, |
requiredLocation, |
||||
recordComDetailCard |
comBlankView, |
||||
}, |
winScanLocation, |
||||
data() { |
comMessage, |
||||
return { |
winScanPackAndLocation, |
||||
id: '', |
recordComDetailCard |
||||
receiptJob: {}, |
}, |
||||
received: false, |
data() { |
||||
isShowPackingCode: true, |
return { |
||||
scanCount: 0, |
id: '', |
||||
jobContent: {}, //任务内容 |
receiptJob: {}, |
||||
detailList: [], //接口返回的任务details |
received: false, |
||||
detailSource: [], //绑定在页面上的数据源 |
isShowPackingCode: true, |
||||
scrollTop: 0, |
scanCount: 0, |
||||
locationTypeList: [], |
jobContent: {}, //任务内容 |
||||
toLocationInfo: {}, |
subList: [], //接口返回的任务subList |
||||
businessTypeInfo: {}, |
detailSource: [], //绑定在页面上的数据源 |
||||
fromLocationInfo: {}, |
locationTypeList: [], |
||||
fromLocationCode: "", |
toLocationInfo: {}, |
||||
toLocationInfo: {}, |
businessTypeInfo: {}, |
||||
toLocationCode: "", |
fromLocationInfo: {}, |
||||
isShowLocation: false, |
fromLocationCode: "", |
||||
fromlocationTypeList: [], |
toLocationInfo: {}, |
||||
tolocationTypeList: [], |
toLocationCode: "", |
||||
allowModifyLocation: false, |
isShowLocation: false, |
||||
inInventoryStatus: "", //目标入库库存状态 |
fromlocationTypeList: [], |
||||
outInventoryStatus: "", //来源出库库存状态 |
tolocationTypeList: [], |
||||
businessType: {}, |
allowModifyLocation: false, |
||||
customerList: [], |
inInventoryStatus: "", //目标入库库存状态 |
||||
customer: "", |
outInventoryStatus: "", //来源出库库存状态 |
||||
fromType:"" |
businessType: {}, |
||||
}; |
customerList: [], |
||||
}, |
customer: "", |
||||
onLoad(option) { |
fromType: "" |
||||
this.fromType = option.fromType |
}; |
||||
if(this.fromType=="requestType"){
updateTitle("制品发货申请")
}else {
updateTitle("制品发货记录")
} |
}, |
||||
var typeCode = "Deliver" |
onLoad(option) { |
||||
getBusinessType(typeCode, res => { |
this.fromType = option.fromType |
||||
if (res.success) { |
if (this.fromType == "requestType") { |
||||
this.businessType = res.businessType; |
updateTitle("制品发货申请") |
||||
this.fromlocationTypeList = res.fromlocationTypeList; |
} else { |
||||
this.tolocationTypeList = res.tolocationTypeList; |
updateTitle("制品发货记录") |
||||
this.showFromLocationPopup(); |
} |
||||
} else { |
var typeCode = "Deliver" |
||||
this.$refs.comMessage.showBreakMessage(res.message ); |
getBusinessType(typeCode, res => { |
||||
} |
if (res.success) { |
||||
}); |
this.businessType = res.businessType; |
||||
|
this.fromlocationTypeList = res.fromlocationTypeList; |
||||
getBasicCustomerList().then(res => { |
this.tolocationTypeList = res.tolocationTypeList; |
||||
if (res.data.length > 0) { |
this.showFromLocationPopup(); |
||||
var list = res.data; |
} else { |
||||
list.forEach(item => { |
this.$refs.comMessage.showBreakMessage(res.message); |
||||
item.text = item.name |
} |
||||
item.value = item.code |
}); |
||||
}) |
|
||||
this.customerList = list; |
getBasicCustomerList().then(res => { |
||||
} |
if (res.data.length > 0) { |
||||
}).catch(error => { |
var list = res.data; |
||||
this.showErrorMessage(error) |
list.forEach(item => { |
||||
}) |
item.text = item.name |
||||
}, |
item.value = item.code |
||||
//返回首页 |
}) |
||||
onNavigationBarButtonTap(e) { |
this.customerList = list; |
||||
if (e.index === 0) { |
} |
||||
goHome(); |
}).catch(error => { |
||||
} |
this.showErrorMessage(error) |
||||
}, |
}) |
||||
//拦截返回按钮事件 |
}, |
||||
onBackPress(e) {}, |
//返回首页 |
||||
|
onNavigationBarButtonTap(e) { |
||||
onPullDownRefresh() {}, |
if (e.index === 0) { |
||||
|
goHome(); |
||||
mounted() { |
} |
||||
}, |
}, |
||||
methods: { |
//拦截返回按钮事件 |
||||
getScanResult(result) { |
onBackPress(e) {}, |
||||
let balance = result.balance; |
|
||||
let label = result.label; |
onPullDownRefresh() {}, |
||||
let pack = result.package; |
|
||||
var item = this.detailSource.find(res => { |
mounted() {}, |
||||
if (res.itemCode == balance.itemCode) { |
methods: { |
||||
return res |
getScanResult(result) { |
||||
} |
let balance = result.balance; |
||||
}) |
let label = result.label; |
||||
if (item == undefined) { |
let pack = result.package; |
||||
var itemp = createItemInfo(balance, pack); |
var item = this.detailSource.find(res => { |
||||
let newDetail = createDetailInfo(balance, pack); // |
if (res.itemCode == balance.itemCode) { |
||||
itemp.details.push(newDetail); |
return res |
||||
this.detailSource.push(itemp) |
} |
||||
} else { |
}) |
||||
var detail = item.details.find(r => { |
if (item == undefined) { |
||||
if (r.packingNumber == balance.packingNumber && |
var itemp = createItemInfo(balance, pack); |
||||
r.batch == balance.batch && |
let newDetail = createDetailInfo(balance, pack); // |
||||
r.locationCode == balance.locationCode && |
itemp.subList.push(newDetail); |
||||
r.inventoryStatus == balance.inventoryStatus) { |
this.detailSource.push(itemp) |
||||
return r; |
} else { |
||||
} |
var detail = item.subList.find(r => { |
||||
}) |
if (r.packingNumber == balance.packingNumber && |
||||
if (detail == undefined) { |
r.batch == balance.batch && |
||||
let newDetail =createDetailInfo(balance, pack); |
r.locationCode == balance.locationCode && |
||||
item.details.push(newDetail); |
r.inventoryStatus == balance.inventoryStatus) { |
||||
} else { |
return r; |
||||
if (detail.scaned == true) { |
} |
||||
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中") |
}) |
||||
} |
if (detail == undefined) { |
||||
} |
let newDetail = createDetailInfo(balance, pack); |
||||
} |
item.subList.push(newDetail); |
||||
this.calcHandleQty(); |
} else { |
||||
|
if (detail.scaned == true) { |
||||
}, |
this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + "]已经在列表中") |
||||
showErrorMessage(message) { |
} |
||||
this.$refs.comMessage.showErrorMessage(message, res => { |
} |
||||
if (res) { |
} |
||||
|
this.calcHandleQty(); |
||||
} |
|
||||
}); |
}, |
||||
}, |
showErrorMessage(message) { |
||||
calcHandleQty() { |
this.$refs.comMessage.showErrorMessage(message, res => { |
||||
calcHandleQty(this.detailSource); |
if (res) { |
||||
this.$forceUpdate(); |
|
||||
}, |
} |
||||
|
}); |
||||
updateData() { |
}, |
||||
this.calcHandleQty(); |
calcHandleQty() { |
||||
}, |
calcHandleQty(this.detailSource); |
||||
removeItem(index, item) { |
this.$forceUpdate(); |
||||
this.detailSource.splice(index, 1) |
}, |
||||
}, |
|
||||
removePack() { |
updateData() { |
||||
for (var i = 0; i < this.detailSource.length; i++) { |
this.calcHandleQty(); |
||||
var item = this.detailSource[i]; |
}, |
||||
if (item.details.length == 0) { |
removeItem(index, item) { |
||||
this.detailSource.splice(i, 1) |
this.detailSource.splice(index, 1) |
||||
} |
}, |
||||
} |
removePack() { |
||||
this.updateData(); |
for (var i = 0; i < this.detailSource.length; i++) { |
||||
}, |
var item = this.detailSource[i]; |
||||
|
if (item.subList.length == 0) { |
||||
openScanPopup() { |
this.detailSource.splice(i, 1) |
||||
|
} |
||||
if (this.fromLocationCode == "") { |
} |
||||
this.showFromLocationPopup(); |
this.updateData(); |
||||
return |
}, |
||||
} |
|
||||
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType); |
openScanPopup() { |
||||
}, |
|
||||
showFromLocationPopup() { |
if (this.fromLocationCode == "") { |
||||
this.$nextTick(() => { |
this.showFromLocationPopup(); |
||||
this.$refs.scanLocationCode.openScanPopup(); |
return |
||||
}) |
} |
||||
}, |
this.$refs.scanPopup.openScanPopupForType(this.fromLocationCode, this.businessType); |
||||
|
}, |
||||
closeScanPopup() { |
showFromLocationPopup() { |
||||
this.$refs.scanPopup.closeScanPopup(); |
this.$nextTick(() => { |
||||
}, |
this.$refs.scanLocationCode.openScanPopup(); |
||||
|
}) |
||||
scanPopupGetFocus() { |
}, |
||||
this.$refs.scanPopup.getfocus(); |
|
||||
}, |
closeScanPopup() { |
||||
|
this.$refs.scanPopup.closeScanPopup(); |
||||
scanLocationCode(location, code) { |
}, |
||||
this.toLocationCode = code |
|
||||
this.toLocationCode = location; |
scanPopupGetFocus() { |
||||
|
this.$refs.scanPopup.getfocus(); |
||||
}, |
}, |
||||
|
|
||||
commit() { |
scanLocationCode(location, code) { |
||||
if (this.customer == "") { |
this.toLocationCode = code |
||||
this.showMessage("请先选择客户") |
this.toLocationCode = location; |
||||
return; |
|
||||
} |
}, |
||||
console.log("客户", this.customer) |
|
||||
if (this.toLocationCode == "") { |
commit() { |
||||
this.showMessage("请先选择目标库位") |
if (this.customer == "") { |
||||
return; |
this.showMessage("请先选择客户") |
||||
} |
return; |
||||
//允许部分提交 |
} |
||||
uni.showLoading({ |
console.log("客户", this.customer) |
||||
title: "提交中....", |
if (this.toLocationCode == "") { |
||||
mask: true |
this.showMessage("请先选择目标库位") |
||||
}); |
return; |
||||
|
} |
||||
var params = this.setParams(); |
//允许部分提交 |
||||
console.log("提交" + JSON.stringify(params)) |
uni.showLoading({ |
||||
// (this.id, params).then(res => { |
title: "提交中....", |
||||
// uni.hideLoading() |
mask: true |
||||
// if (res.data) { |
}); |
||||
// var hint = res.data.Number; |
|
||||
// this.showCommitSuccessMessage("提交成功" + hint, ) |
var params = this.setParams(); |
||||
|
console.log("提交" + JSON.stringify(params)) |
||||
// } else { |
// (this.id, params).then(res => { |
||||
// this.showErrorMessage("提交失败") |
// uni.hideLoading() |
||||
// } |
// if (res.data) { |
||||
// }).catch(error => { |
// var hint = res.data.Number; |
||||
// uni.hideLoading() |
// this.showCommitSuccessMessage("提交成功" + hint, ) |
||||
// this.showErrorMessage(error) |
|
||||
// }) |
// } else { |
||||
|
// this.showErrorMessage("提交失败") |
||||
}, |
// } |
||||
|
// }).catch(error => { |
||||
setParams() { |
// uni.hideLoading() |
||||
var params = { |
// this.showErrorMessage(error) |
||||
requestNumber: this.jobContent.requestNumber, |
// }) |
||||
jobNumber: "", |
|
||||
asnNumber: this.jobContent.asnNumber, |
}, |
||||
ppNumber: this.jobContent.ppNumber, |
|
||||
supplierCode: this.jobContent.supplierCode, |
setParams() { |
||||
receiptDock: this.jobContent.receiptDock, |
var params = { |
||||
carrierCode: this.jobContent.carrierCode, |
requestNumber: this.jobContent.requestNumber, |
||||
transferMode: this.jobContent.transferMode, |
jobNumber: "", |
||||
vehiclePlateNumber: this.jobContent.vehiclePlateNumber, |
asnNumber: this.jobContent.asnNumber, |
||||
fromWarehouseCode: this.toLocationInfo.WarehouseCode, |
ppNumber: this.jobContent.ppNumber, |
||||
toWarehouseCode: this.toLocationInfo.WarehouseCode, |
supplierCode: this.jobContent.supplierCode, |
||||
OutTransaction: this.businessTypeInfo.OutTransactionType, //出库事务类型 |
receiptDock: this.jobContent.receiptDock, |
||||
InTransaction: this.businessTypeInfo.InTransactionType, //入库事务类型 |
carrierCode: this.jobContent.carrierCode, |
||||
executeTime: "2023-08-4 16:30:11", //执行时间 |
transferMode: this.jobContent.transferMode, |
||||
activeDate: "2023-08-4 16:30:11", //生效时间 |
vehiclePlateNumber: this.jobContent.vehiclePlateNumber, |
||||
available: "1", //是否可用 0不可用,1可用 |
fromWarehouseCode: this.toLocationInfo.WarehouseCode, |
||||
requestTime: this.jobContent.requestTime, |
toWarehouseCode: this.toLocationInfo.WarehouseCode, |
||||
dueTime: "2023-08-4 16:30:11", //截止时间 |
OutTransaction: this.businessTypeInfo.OutTransactionType, //出库事务类型 |
||||
departmentCode: this.jobContent.departmentCode, |
InTransaction: this.businessTypeInfo.InTransactionType, //入库事务类型 |
||||
UserPositionCode: "", //岗位 |
executeTime: "2023-08-4 16:30:11", //执行时间 |
||||
interfaceType: "jklxPURCHASE_RECEIPT", //接口类型 |
activeDate: "2023-08-4 16:30:11", //生效时间 |
||||
Number: this.jobContent.Number, |
available: "1", //是否可用 0不可用,1可用 |
||||
businessType: this.jobContent.businessType, |
requestTime: this.jobContent.requestTime, |
||||
remark: this.jobContent.remark, |
dueTime: "2023-08-4 16:30:11", //截止时间 |
||||
creationTime: this.jobContent.creationTime, |
departmentCode: this.jobContent.departmentCode, |
||||
Creatorld: this.jobContent.Creatorld, |
UserPositionCode: "", //岗位 |
||||
creatorName: this.jobContent.creatorName, |
interfaceType: "jklxPURCHASE_RECEIPT", //接口类型 |
||||
extraProperties: this.jobContent.extraProperties, |
Number: this.jobContent.Number, |
||||
Siteld: this.jobContent.Siteld, |
businessType: this.jobContent.businessType, |
||||
Code: "", |
remark: this.jobContent.remark, |
||||
details: [ |
creationTime: this.jobContent.creationTime, |
||||
|
Creatorld: this.jobContent.Creatorld, |
||||
], |
creatorName: this.jobContent.creatorName, |
||||
} |
extraProperties: this.jobContent.extraProperties, |
||||
|
Siteld: this.jobContent.Siteld, |
||||
this.detailSource.forEach(res => { |
Code: "", |
||||
res.details.forEach(res1 => { |
subList: [ |
||||
if (res1.scaned) { |
|
||||
res1.record.FromLocationGroupCode = ""; |
], |
||||
res1.record.FromAreaCode = ""; |
} |
||||
res1.record.ToLocationGroupCode = this.toLocationInfo.LocationGroupCode; |
|
||||
res1.record.ToAreaCode = this.toLocationInfo.AreaCode; |
this.detailSource.forEach(res => { |
||||
res1.record.VisualInspectResult = ""; //目检结果 |
res.subList.forEach(res1 => { |
||||
res1.record.VisualInspectPhotos = ""; //目检照片 |
if (res1.scaned) { |
||||
res1.record.FailedReason = ""; //不合格原因 |
res1.record.FromLocationGroupCode = ""; |
||||
res1.record.MassDefect = ""; //质量缺陷 |
res1.record.FromAreaCode = ""; |
||||
res1.record.SinglePrice = ""; //单价 |
res1.record.ToLocationGroupCode = this.toLocationInfo.LocationGroupCode; |
||||
res1.record.Amount = ""; //金额 |
res1.record.ToAreaCode = this.toLocationInfo.AreaCode; |
||||
res1.record.Code = ""; |
res1.record.VisualInspectResult = ""; //目检结果 |
||||
res1.record.JobDetailID = res1.record.id; |
res1.record.VisualInspectPhotos = ""; //目检照片 |
||||
res1.record.interfaceType = "jklxPURCHASE_RECEIPT"; |
res1.record.FailedReason = ""; //不合格原因 |
||||
params.details.push(res1.record) |
res1.record.MassDefect = ""; //质量缺陷 |
||||
} |
res1.record.SinglePrice = ""; //单价 |
||||
}) |
res1.record.Amount = ""; //金额 |
||||
}) |
res1.record.Code = ""; |
||||
|
res1.record.JobDetailID = res1.record.id; |
||||
return params; |
res1.record.interfaceType = "jklxPURCHASE_RECEIPT"; |
||||
}, |
params.subList.push(res1.record) |
||||
|
} |
||||
showMessage(message) { |
}) |
||||
this.$refs.comMessage.showMessage(message, res => { |
}) |
||||
if (res) {} |
|
||||
}); |
return params; |
||||
}, |
}, |
||||
showErrorMessage(message) { |
|
||||
this.$refs.comMessage.showErrorMessage(message, res => { |
showMessage(message) { |
||||
if (res) { |
this.$refs.comMessage.showMessage(message, res => { |
||||
|
if (res) {} |
||||
} |
}); |
||||
}); |
}, |
||||
}, |
showErrorMessage(message) { |
||||
|
this.$refs.comMessage.showErrorMessage(message, res => { |
||||
showScanMessage(message) { |
if (res) { |
||||
this.$refs.comMessage.showScanMessage(message); |
|
||||
}, |
} |
||||
|
}); |
||||
afterCloseMessage() { |
}, |
||||
this.scanPopupGetFocus(); |
|
||||
}, |
showScanMessage(message) { |
||||
|
this.$refs.comMessage.showScanMessage(message); |
||||
closeScanMessage() { |
}, |
||||
this.scanPopupGetFocus(); |
|
||||
}, |
afterCloseMessage() { |
||||
getLocation(location, code) { |
this.scanPopupGetFocus(); |
||||
this.getFromLocationCode(location, code) |
}, |
||||
}, |
|
||||
getFromLocationCode(location, code) { |
closeScanMessage() { |
||||
this.fromLocationInfo = location; |
this.scanPopupGetFocus(); |
||||
this.fromLocationCode = code; |
}, |
||||
this.openScanPopup(); |
getLocation(location, code) { |
||||
}, |
this.getFromLocationCode(location, code) |
||||
getToLocationCode(location, code) { |
}, |
||||
if (this.fromLocationCode == code) { |
getFromLocationCode(location, code) { |
||||
uni.showToast({ |
this.fromLocationInfo = location; |
||||
title: "来源库位[" + this.fromLocationCode + "]不能与目标库位[" + code + "]一致", |
this.fromLocationCode = code; |
||||
duration: 2000 |
this.openScanPopup(); |
||||
}) |
}, |
||||
return |
getToLocationCode(location, code) { |
||||
} |
if (this.fromLocationCode == code) { |
||||
this.ToLocationCodeInfo = location; |
uni.showToast({ |
||||
this.toLocationCode = code; |
title: "来源库位[" + this.fromLocationCode + "]不能与目标库位[" + code + "]一致", |
||||
}, |
duration: 2000 |
||||
|
}) |
||||
showCommitSuccessMessage(hint) { |
return |
||||
this.$refs.comMessage.showSuccessMessage(hint, res => { |
} |
||||
this.fromLocationCode = ''; |
this.ToLocationCodeInfo = location; |
||||
|
this.toLocationCode = code; |
||||
}) |
}, |
||||
}, |
|
||||
|
showCommitSuccessMessage(hint) { |
||||
updateData() { |
this.$refs.comMessage.showSuccessMessage(hint, res => { |
||||
this.calcHandleQty(); |
this.fromLocationCode = ''; |
||||
for (var i = 0; i < this.detailSource.length; i++) { |
|
||||
let item = this.detailSource[i]; |
}) |
||||
if (item.qty == 0) { |
}, |
||||
this.detailSource.splice(i, 1) |
|
||||
} |
updateData() { |
||||
} |
this.calcHandleQty(); |
||||
} |
for (var i = 0; i < this.detailSource.length; i++) { |
||||
} |
let item = this.detailSource[i]; |
||||
} |
if (item.qty == 0) { |
||||
</script> |
this.detailSource.splice(i, 1) |
||||
|
} |
||||
<style scoped lang="scss"> |
} |
||||
page { |
} |
||||
width: 100%; |
} |
||||
height: 100%; |
} |
||||
background-color: #fff; |
</script> |
||||
} |
|
||||
|
<style scoped lang="scss"> |
||||
.page-wraper { |
page { |
||||
display: flex; |
width: 100%; |
||||
flex-direction: column; |
height: 100%; |
||||
width: 100%; |
background-color: #fff; |
||||
height: 100%; |
} |
||||
} |
|
||||
|
.page-wraper { |
||||
|
display: flex; |
||||
.page-main { |
flex-direction: column; |
||||
flex: 1; |
width: 100%; |
||||
position: relative; |
height: 100%; |
||||
} |
} |
||||
|
|
||||
.page-main-scroll { |
|
||||
position: absolute; |
.page-main { |
||||
left: 0; |
flex: 1; |
||||
right: 0; |
position: relative; |
||||
top: 0; |
} |
||||
bottom: 0; |
|
||||
} |
.page-main-scroll { |
||||
|
position: absolute; |
||||
.page-main-list { |
left: 0; |
||||
/* height: 80rpx; |
right: 0; |
||||
line-height: 80rpx; */ |
top: 0; |
||||
text-align: center; |
bottom: 0; |
||||
background: #e0e0e0; |
} |
||||
|
|
||||
} |
.page-main-list { |
||||
</style> |
/* height: 80rpx; |
||||
|
line-height: 80rpx; */ |
||||
|
text-align: center; |
||||
|
background: #e0e0e0; |
||||
|
|
||||
|
} |
||||
|
</style> |
||||
|
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue