baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)

This commit is contained in:
Gaussian committed 2026-11-06 18:38:38 +08:00
commit c2b0e7be0d
6522 files changed
+3530643

No files matched your search

+276
View File
@@ -0,0 +1,276 @@
<template>
<view>
<view class="top-row-class" style="height: 60rpx; justify-content: flex-end;">
<text class="top-row-title-class">查询条件:</text>
<view class="selCondition">
<picker @change="bindPickerChange" :value="selConditionIndex" :range="selCondition">
<view class="uni-input">{{selCondition[selConditionIndex]}}</view>
</picker>
</view>
<input class="top-row-input-class" placeholder="输入搜索内容"></input>
<image class="scanImg" src="../../../static/img/scanning.png"></image>
</view>
<view class="card-wrapper" style="padding-bottom: 24rpx;">
<view v-for="(i, k) in dataList" :key="k" class="inner">
<view class="left-content">
<view class="title-s">{{i.FName}}</view>
<view class="slave-s">物料代码: {{i.FBillNO}}</view>
<view class="slave-k">
<text>规格型号:{{i.FEqModel || '-'}}</text>
</view>
</view>
<view class="right-cintent" style="display: flex;">
<view class="min" @click="minClick(k)">
<image src="../../../static/icon/min.png" v-if="!i.minForbidden"
style="width: 40rpx;height: 40rpx;"></image>
<image src="../../../static/icon/min-gray.png" v-if="i.minForbidden"
style="width: 40rpx;height: 40rpx;"></image>
</view>
<input type="number" class="count-input" v-model="i.num"></input>
<view class="pluse" @click="pluseClick(k)">
<image src="../../../static/icon/plus.png" style="width: 40rpx;height: 40rpx;"></image>
</view>
</view>
</view>
</view>
<view class="confirmBtn" @click="confirm">确定</view>
</view>
</template>
<script>
import Vue from 'vue';
import {
mapState,
mapMutations
} from 'vuex';
export default {
computed: {
...mapState(['userInfo'])
},
onLoad(options) {
if(options.item && options.item.length>0){
this.pageKey = options.item;
}
this.userID = this.userInfo.ID;
this.orgid = uni.getStorageSync('orgid');
this.getPartList();
},
data() {
return {
dataList: [],
orgid:'',
commitList:[],
userID:'',
pageKey:'',
selCondition:['全部备件查询', '设备编号查询', '备件名称查询', '设备编号+备件名称查询'],
selConditionIndex:0,
basicType:0,
equipID:'',
sparePartName:''
};
},
methods: {
bindPickerChange: function(e) {
this.selConditionIndex = e.target.value;
this.basicType = e.target.value;
},
getPartList(){
let requestParams = {
"id": this.userInfo.UserID,
"basicType":this.basicType,
"equipID":this.equipID,
"sparePartName":this.sparePartName,
};
this.$request.post({
data: {
action: 'GetSparePart',
params: requestParams
}
}).then(res => {
let _self = this;
let data = JSON.parse(res);
_self.dataList = [];
if(data && data.length>0){
data.forEach(
function(el){
let arr = {
FBillNO:el.FBillNO,
FName:el.FName,
FEqModel:el.FEqModel,
FCount:el.FCount,
FItemID:el.FItemID,
num:0,
minForbidden:true
};
_self.dataList.push(arr);
}
);
}
});
},
minClick:function(k){
let index = k;
if(this.dataList[index].num<=0){
this.dataList[index].minForbidden = true
uni.showToast({
title:'数量不可小于0',
icon:'none'
})
return false
}else{
this.dataList[index].num = this.dataList[index].num - 1;
}
},
pluseClick:function(k){
let index = k;
this.dataList[index].minForbidden = false;
this.dataList[index].num = Number(this.dataList[index].num)+ 1;
},
confirm(){
let _self = this;
let FInterID = uni.getStorageSync('FInterID');
if(this.dataList && this.dataList.length>0){
this.dataList.forEach(
function(el){
if(el.num != 0){
let arr = {
FItemID:el.FItemID,
FCount:el.num,
FName:el.FName
};
_self.commitList.push(arr)
}
}
);
uni.setStorageSync('partInfo',this.commitList)
}else{
uni.showToast({
title:'当前未领用备件',
icon:'none'
})
uni.setStorageSync('partInfo',this.commitList)
}
let item = JSON.stringify(this.commitList);
}
},
}
</script>
<style lang="scss" scoped>
// @import './MESQS44/style.scss';
.top-row-class{
display: flex;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: center;
height: 50rpx;
line-height: 50rpx;
// padding-top: 10rpx;
// padding-bottom: 10rpx;
// padding-left: 24rpx;
// padding-right: 24rpx;
margin-left: 32rpx;
margin-right: 32rpx;
flex-shrink: 0;
flex-grow: 0;
background-color: #FFFFFF;
margin-top: 10rpx;
margin-bottom: 16rpx;
border-radius: 10rpx;
}
.uni-input{
display: flex;
border: 1px solid #D8D8D8;
color: #666666;
padding: 5rpx 10rpx;
border-radius: 10rpx;
flex-wrap: nowrap;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-break: break-all;
}
.top-row-title-class{
text-align: end;
font-size: 30rpx;
font-style: auto;
color: #666666;
flex-shrink: 0;
flex-grow: 0;
line-height: 50rpx;
height: 50rpx;
// width: 150rpx;
flex-wrap: nowrap;
}
.top-row-input-class{
position: relative;
font-size: 30rpx;
color: #6B6B6B;
// width: 100%;
padding-left: 15rpx;
padding-right: 15rpx;
border-radius: 10rpx;
border: 1px solid #D8D8D8;
height: 60rpx; line-height: 60rpx;
margin-left: 32rpx;
}
.scanImg{
height: 40rpx;
width: 40rpx;
position: absolute;
right: 48rpx;
}
.inner {
display: flex;
padding: 4rpx 5% 10rpx 5%;
border-bottom: 1px solid #F7F7F7;
align-items: center;
justify-content: space-between;
}
.title-s {
color: #222222;
font-size: 14px;
}
.slave-s {
color: #858585;
font-size: 12px;
}
.slave-k {
color: #858585;
font-size: 12px;
display: flex;
justify-content: space-between;
}
.count-input{
height: 40rpx;
line-height: 40rpx;
width: 100rpx;
border: 1px solid #6D6D72;
border-radius: 10rpx;
margin: 0 10rpx;
text-align: center;
}
.confirmBtn{
height: 80rpx;
line-height: 80rpx;
width: 100%;
position: fixed;
bottom: 0;
font-size: 32rpx;
color: #FFFFFF;
text-align: center;
background-color: #2560C9;
}
</style>