baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)
This commit is contained in:
commit
c2b0e7be0d
6522 files changed
+3530643
No files matched your search
Executable
+258
@@ -0,0 +1,258 @@
|
||||
<!--物料拣货-->
|
||||
<template>
|
||||
<view class="content">
|
||||
<view style="width:100%; background-color: #007AFF; border: 2upx solid #007AFF; border-radius: 20upx; margin: 5upx;"></view>
|
||||
|
||||
<view class="inputContent">
|
||||
<p>任务单号</p>
|
||||
<input type="text" v-model="FICMONO" @confirm="CheckICMONO() ">
|
||||
</view>
|
||||
|
||||
<view class="btnList">
|
||||
<button @click="CheckICMONO()">检索</button> <button>发送</button> <button>退出</button>
|
||||
</view>
|
||||
|
||||
<view class="tbInfo">
|
||||
<p>源单信息</p>
|
||||
<z-table :tableData='sourceData' :columns='sourceColumns' emptyText='设置了showLoading=false才会看到我' showSelect @onClick='rowClick'
|
||||
@onSort='doSort'></z-table>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
var _self;
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from 'vuex';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
sourceData: [],
|
||||
sourceColumns: [{
|
||||
title: "源单编号",
|
||||
key: "FSourceBillNo",
|
||||
width: 350
|
||||
},
|
||||
{
|
||||
title: "物料编码",
|
||||
key: "FItemNumber",
|
||||
width: 350
|
||||
}, {
|
||||
title: "物料名称",
|
||||
key: "FItemName",
|
||||
width: 350
|
||||
}, {
|
||||
title: "批号",
|
||||
key: "FBatchNO",
|
||||
width: 350
|
||||
}, {
|
||||
title: "单位",
|
||||
key: "FUnitName",
|
||||
width: 350
|
||||
}, {
|
||||
title: "需求数量",
|
||||
key: "FQty",
|
||||
width: 350
|
||||
}, {
|
||||
title: "库存数量",
|
||||
key: "FStockQty",
|
||||
width: 350
|
||||
}, {
|
||||
title: "缺料数量",
|
||||
key: "FDiffQty",
|
||||
width: 350
|
||||
}, {
|
||||
title: "仓库",
|
||||
key: "FSCStockNumber",
|
||||
width: 350
|
||||
}, {
|
||||
title: "仓位",
|
||||
key: "FSCStockPlaceNumber",
|
||||
width: 350
|
||||
}, {
|
||||
title: "货架ID",
|
||||
key: "FDZShelfID",
|
||||
width: 350
|
||||
}
|
||||
],
|
||||
FICMONO: '',
|
||||
}
|
||||
},
|
||||
|
||||
onLoad() {
|
||||
_self = this;
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(["sysParameters", 'userInfo'])
|
||||
},
|
||||
|
||||
methods: {
|
||||
CheckICMONO() {
|
||||
_self.sourceData = [];
|
||||
if (this.FICMONO.length <= 0) {
|
||||
uni.showToast({
|
||||
title: "任务单号不可空白!",
|
||||
duration: 2500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
let requestParams = {
|
||||
"wUserID": this.$store.state.userInfo.UserID,
|
||||
"DBAias": this.$store.state.userInfo.dbAlise,
|
||||
"FICMONO": _self.FICMONO
|
||||
};
|
||||
|
||||
let tokenParam = uni.getStorageSync('tokenpara');
|
||||
|
||||
uni.showLoading({
|
||||
icon:'loading',
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
});
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'GetPD22SourceInfo',
|
||||
params: requestParams
|
||||
}
|
||||
},
|
||||
tokenParam
|
||||
).then(res => {
|
||||
uni.hideLoading();
|
||||
var resData = JSON.parse(res);
|
||||
if (resData.errType == '') {
|
||||
_self.sourceData = resData.data;
|
||||
} else {
|
||||
if (resData.errType == 'NoInput') {
|
||||
uni.showToast({
|
||||
title: "生产任务单" + _self.FICMONO + "未做投料单!",
|
||||
duration: 2500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
CommitRecords() {
|
||||
if (this.sourceData.length <= 0) {
|
||||
uni.showToast({
|
||||
title: "无扫描资料,不可发送!",
|
||||
duration: 2500,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定发送已扫描数据吗?',
|
||||
showCancel: true,
|
||||
cancelText: '取消',
|
||||
confirmText: '确定',
|
||||
success: res => {
|
||||
if (res.confirm) {
|
||||
let requestParams = {
|
||||
"wUserID": this.$store.state.userInfo.UserID,
|
||||
"DBAias": this.$store.state.userInfo.dbAlise,
|
||||
"ScanTable": JSON.stringify(this.sourceData)
|
||||
};
|
||||
|
||||
let tokenParam = uni.getStorageSync('tokenpara');
|
||||
|
||||
uni.showLoading({
|
||||
icon:'loading',
|
||||
title:'加载中……',
|
||||
mask:true
|
||||
});
|
||||
|
||||
this.$request.post(
|
||||
{
|
||||
data: {
|
||||
action: 'UpdateFASPD22',
|
||||
params: requestParams
|
||||
}
|
||||
},
|
||||
tokenParam
|
||||
).then(res => {
|
||||
uni.hideLoading();
|
||||
if (resData == '') {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '发送成功'
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: '发送失败'
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
} else if (res.cancel) {
|
||||
|
||||
}
|
||||
},
|
||||
fail: () => {},
|
||||
complete: () => {}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.content {
|
||||
padding: 20rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
|
||||
.inputContent {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 4rpx;
|
||||
background: #f7f9ff;
|
||||
|
||||
p {
|
||||
font-size: 15px;
|
||||
font-style: auto;
|
||||
color: #808080;
|
||||
font-weight: 1000;
|
||||
margin-bottom: 10px;
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
;
|
||||
|
||||
input {
|
||||
border-color: #007AFF;
|
||||
color: black;
|
||||
border: 2px solid #E8E8E8;
|
||||
caret-color: red;
|
||||
width: 80%;
|
||||
}
|
||||
}
|
||||
|
||||
.btnList {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
background: #f7f9ff;
|
||||
|
||||
button {
|
||||
font-size: 25rpx;
|
||||
background-color: #DDDDDD;
|
||||
border-radius: 0px;
|
||||
width: 30%;
|
||||
}
|
||||
}
|
||||
|
||||
.tbInfo {
|
||||
margin-top: 40upx;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user