盘点录入改

master
Mr.sun 2 years ago
parent 3e2bb7814a
commit 179552b7f5
  1. 14
      pages.json
  2. 2
      pages/index/index.vue
  3. 71
      pages/inventory/index.vue
  4. 3
      pages/receive/index.vue
  5. 11
      uni_modules/select-lay/components/select-lay/select-lay.vue

@ -42,7 +42,17 @@
"navigationBarTitleText": "收货界面",
"navigationBarBackgroundColor": "#228B22",
"enablePullDownRefresh": true,
"onReachBottomDistance": 300
"onReachBottomDistance": 300,
"app-plus": {
"titleNView": {
"buttons": [{
"text": "入库验收",
// "text": "+新增出库",
"fontSize": "15px",
"width": "70px"
}]
}
}
}
},
@ -69,7 +79,7 @@
{
"path": "pages/inventory/index",
"style": {
"navigationBarTitleText": "盘点计划",
"navigationBarTitleText": "盘点录入",
"navigationBarBackgroundColor": "#228B22"
}
},

@ -33,7 +33,7 @@
</u-grid-item>
<u-grid-item @click="PagerJump(2102)">
<image class="in-img" src="../../static/icon/10.png" alt="">
<view class="wk-text">盘点计划</view>
<view class="wk-text">盘点录入</view>
</u-grid-item>
<u-grid-item @click="PagerJump(10016)">
<image class="in-img" src="../../static/icon/shifang.png" alt="">

@ -15,7 +15,7 @@
</view>
<view class='recommend'>
<text class='recommend-title global-font'>盘点物料信息</text>
<text class='recommend-title global-font'>商品物料信息</text>
</view>
<!-- {{dataList}} -->
<view class="all-card">
@ -26,8 +26,8 @@
<!-- <button class="sh-button" @click="delBtn(index)">X</button> -->
<view class="card-content" >
<view class="card-content-item">
<text class="item-title">物料编号:</text>
<text class="item-value">{{item.ptPart}}</text>
<text class="item-title">商品编号:</text>
<text class="item-value">{{item.goodNo}}</text>
</view>
</view>
@ -40,47 +40,44 @@
<view class="card-content">
<view class="card-content-item">
<text class="item-title">物料名称:</text>
<text class="item-value">{{item.ptName}}</text>
<text class="item-title">商品名称:</text>
<text class="item-value">{{item.goodName}}</text>
</view>
</view>
<view class="card-content">
<view class="card-content-item">
<text class="item-title" style="width: 80px;">物料数量:</text>
<text class="item-value">{{item.qty}}</text>
<text class="item-title" style="width: 55px;">库存数量:</text>
<text class="item-value">{{item.quantity}}</text>
</view>
<view class="card-content-item">
<text class="item-title" style="width: 80px;">盘点数量:</text>
<text class="item-title" style="width: 55px;">盘点数量:</text>
<text class="item-value">{{item.invQty}}</text>
</view>
</view>
<u-popup v-model="show" width='90%' height="260px" :mask="true" @close="close" @open="open" mode="center">
<view style="height: 44px;text-align: center;line-height: 44px;font-size: 18px;margin-bottom: 18px;">
<text>物料修改</text>
<text>商品修改</text>
</view>
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">物料编码:</text> <input v-model="form.ptPart" placeholder="请扫描物料编码" style="border:1px solid #000;padding-right: 20px;"></u-input>
<text style="margin: 0px 20px 0px;">商品编码:</text> <input v-model="form.goodNo" placeholder="请扫描商品编码" style="border:1px solid #000;padding-right: 20px;"></u-input>
</view>
<view style="width: 100%;display: flex;align-items: baseline;">
<!-- <view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 10px 20px 10px;">批次日期:</text>
<u-input v-model="form.batch" style="padding-right: 30px;" type="select" placeholder="请选择批次日期" prop="batch" class="u-input"
<u-input v-model="form.batch" style="margin-right: 30px;" type="select" placeholder="请选择批次日期" prop="batch" class="u-input"
placeholder-style="color:#000000" @click="selShow = true" />
<u-select :mask-close-able="false" :safe-area-inset-bottom="true" v-model="selShow"
mode="single-column" :list="lockstockBatch" @confirm="confirm" />
<!-- <u-select v-model="selShow" placeholder="请选择批次日期" mode="single-column" :list="batchList" @confirm="confirm"></u-select> -->
<!-- <input v-model="selShow" placeholder="请选择批次日期" style="border:1px solid #000;padding-right: 20px;"></u-input> -->
</view>
</view> -->
<view style="width: 100%;display: flex;align-items: baseline;">
<text style="margin: 0px 20px 0px;">缴库数量:</text> <input v-model="form.invQty" style="border:1px solid #000;padding-right: 20px;"></u-input>
</view>
<view style="width: 100%; display: flex;margin-top: 40px;font-size: 14px;">
<button style="width: 30%; font-size: 16px;line-height: 44px;" class="btn1" type="default" @click="noEnter()">取消</button>
<button style="width: 30%;font-size: 16px;line-height: 44px;;" type="default" @click="enterUp(item)">确认</button>
<button style="width: 30%;font-size: 16px;line-height: 44px;" class="btn1" type="default" @click="noEnter()">取消</button>
</view>
</u-popup>
@ -124,13 +121,21 @@
containerId:'',
dtlAddBos:[]
},
dataList: [],
dataList: [
{
goodNo:'123',
containerCode:'2250',
goodName:'物品',
quantity:25,
invQty:20
}
],
query: {
current: 1,
size: 20
},
form:{
ptPart:'',
goodNo:'',
batch:'',
invQty:''
},
@ -210,12 +215,12 @@
},
qtyEnter(item){
this.show=true
this.form.batch=item.batchNo
this.form.ptPart=item.ptPart
this.form.invQty=item.qty
this.form.invOrderNo=item.invOrderNo
this.form.goodNo=item.goodNo
this.form.containerCode=item.containerCode
this.invQty=item.qty
this.form.quantity=item.quantity
this.form.goodName=item.goodName
this.form.invQty=item.invQty
// this.invQty=item.qty
this.invid=item.id
},
noEnter(){
@ -306,14 +311,14 @@
// this.$u.api.inv.entrySave(this.)
// item.qty=this.invQty
// console.log(item);
if(this.form.ptPart === null
|| this.form.ptPart === ''
|| this.form.ptPart === 0
|| this.form.ptPart === undefined
|| this.form.ptPart ==='undefined'){
this.$u.toast("请扫描物料编码");
return;
}
// if(this.form.ptPart === null
// || this.form.ptPart === ''
// || this.form.ptPart === 0
// || this.form.ptPart === undefined
// || this.form.ptPart ==='undefined'){
// this.$u.toast("");
// return;
// }
if(this.form.batch === null
|| this.form.batch === ''
|| this.form.batch === 0

@ -186,7 +186,7 @@ import { nextTick } from "vue";
},
//
onNavigationBarButtonTap(e){
console.log(e);
// console.log(e);
this.$u.route({
url: 'pages/checkAccept/index',
type: 'navigateTo',
@ -232,7 +232,6 @@ import { nextTick } from "vue";
})
}
})
}
},

@ -44,6 +44,10 @@
export default {
name: "select-lay",
props: {
pointNoChild: {
type: String, // prop
default: '' // prop
},
disabled: {
type: Boolean,
default: false
@ -101,6 +105,13 @@
this.itemcheck();
},
watch: {
//pointNoChild
pointNoChild(){
// console.log(this.pointNoChild);
if(this.pointNoChild === ''){
this.changevalue =this.pointNoChild
}
},
//value
value() {
this.itemcheck();

Loading…
Cancel
Save