其他入库样式修改

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

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

Loading…
Cancel
Save