其他入库样式修改

master
Mr.sun 2 years ago
parent 05155729b7
commit 9af39e80b5
  1. 13
      pages/payInto/index.scss
  2. 37
      pages/payInto/index.vue

@ -145,11 +145,11 @@
align-items: center;
width: 50%;
.goods-title {
font-size: 28rpx;
font-size: 32rpx;
color: #555555;
}
.goods-value {
font-size: 28rpx;
font-size: 32rpx;
color: #666666;
margin-left: 20rpx;
}
@ -178,16 +178,17 @@
// align-items: center;
// position: relative;
.item-title {
font-size: 28rpx;
font-size: 36rpx;
// font-family: '黑体';
color: #555555;
width: 130rpx;
width: 160rpx;
text-align: right;
// right: 0;
}
.item-value {
font-size: 30rpx;
font-size: 36rpx;
color: #666666;
margin-left: 14rpx; }
margin-left: 32rpx; }
}
.card-content-item:first-child{
width: 100%;

@ -4,22 +4,23 @@
<view class="sh-search">
<u-form labelPosition="left" :model="dataForm" class="sh-form">
<view style="display: flex;line-height:5vh;margin-bottom: 2vh;">
<text style="font-size: 34rpx;">台车编号:</text><input style="width: 72%; text-align: left;padding-left: 15rpx;" class="barNo"
v-model="dataForm.containerCode" @confirm="inputQuery()" :focus="firstFocus" ref="input"
type="text" placeholder="请扫描台车编号" :border="true" />
</view>
<view style="display: flex;line-height: 65rpx;" >
<text>选择物料:</text>
<select-lay :options="datalist1" style="width: 75%;margin-left: 2vh; "
<text style="font-size: 34rpx;margin-top: 3px;">选择物料:</text>
<select-lay :options="datalist1" style="width: 78%;padding-left: 1vh; "
smoldName="ptName" slabel="ptDesc" smodel="ptName" name="name3" svalue="id" @selectitem="queryList"
:value="dataForm.ptName" placeholder="请选择物料编码"> </select-lay>
</view>
<view style="display: flex;line-height:5vh;margin-top: 2.5vh;">
<text>台车编号:</text><input style="width: 72%; text-align: left;padding-left: 15rpx;" class="barNo"
v-model="dataForm.containerCode" @confirm="inputQuery()" :focus="firstFocus" ref="input"
type="text" placeholder="请扫描台车编号" :border="true" />
</view>
<view style="display: flex;line-height: 5vh; margin-top: 2.5vh;" >
<text>入库数量:</text><input style="width: 72%; text-align: left;padding-left: 15rpx;" v-model="dataForm.rerpQty"
<text style="font-size: 34rpx;">入库数量:</text><input style="width: 72%; text-align: left;padding-left: 15rpx;" v-model="dataForm.rerpQty"
class="barNo" type="text" placeholder="请输入入库数量" :border="true" />
</view>
@ -37,12 +38,11 @@
<view class="all-card">
<view class="sh-card" v-for="(item, index) in dataList" :keys="item.id" :index="item.id" v-if="dataList.length > 0"
style="border-radius: 20rpx;">
style="border-radius: 20rpx; margin-bottom: 2vh;">
<view class="sh-card-title" style="border-radius: 20rpx;">
<image src="@/static/icon/error.png" @click="delBtn(index)"
style="width: 2.5vh;height: 2.5vh;position: absolute;right: 1vh;" />
<view class="card-content">
style="width: 3vh;height: 3vh;position: absolute;right: 0.5vh;top:0.5vh" />
<view class="card-content" style="margin-top: 12px;">
<view class="card-content-item" width="60%">
<text class="item-title" >物料编号:</text>
<text class="item-value">{{item.rerpPart}}</text>
@ -62,7 +62,7 @@
</view>
</view>
<view class="card-content">
<view class="card-content"style="margin-bottom: 12px;">
<view class="card-content-item">
<text class="item-title">缴库数量:</text>
<text class="item-value">{{item.rerpQty}}</text>
@ -203,7 +203,6 @@
this.dataForm.ptPart=item.ptPart
this.dataForm.ptName=item.ptName
this.dataForm.ptDesc=item.ptDesc
console.log(this.dataForm.ptPart);
},
checkboxChange(){
this.checkFlag=!this.checkFlag
@ -214,10 +213,9 @@
},
/**搜索框查询*/
inputQuery() {
console.log(111);
if (this.dataForm.containerCode == '' || this.dataForm.containerCode == null || this.dataForm.containerCode ==
undefined ) {
console.log(222);
// console.log(222);
return
}else{
this.handleContainerId()
@ -236,7 +234,6 @@
},
//
delBtn(index){
console.log(JSON.stringify(this.pickUpObj));
this.dataList.splice(index,1)
},
@ -268,16 +265,13 @@
if(this.dataList.length>0){
let length=0
this.dataList.forEach(item=>{
console.log(item.rerpPart,this.dataForm.ptPart);
if(item.rerpPart==this.dataForm.ptPart){
this.$u.toast("条码重复,请重新添加");
}else{
length++
}
})
console.log('222',length);
if(length==this.dataList.length){
console.log('111');
this.dataList.push({rerpPart:this.dataForm.ptPart,ptName:this.dataForm.ptName,ptDesc:this.dataForm.ptDesc,inType:'1', rerpQty:this.dataForm.rerpQty,containerCode:this.dataForm.containerCode})
}
@ -299,7 +293,6 @@
flag = true
// let id=this.dataForm.containerId
this.$u.api.getItemInInfoByContainerType({containerCode:this.dataForm.containerCode}).then(res=>{
console.log(res);
this.datalist1=res.data
})
flag=false
@ -349,7 +342,6 @@
this.pickUpObj.containerCode=this.containerCode
setTimeout(()=>{
this.$u.api.saveInPlanAndItemIn(this.dataList).then(res=>{
console.log(res);
if(res.code=='200'){
this.$u.toast("入库已完成,请重新扫描");
this.dataForm={},
@ -369,7 +361,6 @@
},
//
abnormal(){
console.log('异常');
},
//
searchClick() {

Loading…
Cancel
Save