多组织仓位
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<view class="mianheade mianheade2" @click="goback()">
|
||||
<image src="../../static/img/n_baiback.png" class="blacBackico"></image>
|
||||
<!-- /生产 -->
|
||||
<text class="pagetitle">采购上架入库</text>
|
||||
<text class="pagetitle">采购/生产上架入库</text>
|
||||
</view>
|
||||
<!-- 固定内容-->
|
||||
<view class="sh_gdInfo">
|
||||
@@ -231,6 +231,7 @@ export default {
|
||||
qktkTitle: '确定清空已收货数量?',
|
||||
qktkContent: '清空后页面数据将不保存',
|
||||
fid: '', // 来源单号
|
||||
instockType:null,
|
||||
orgCode: '', // 组织编码
|
||||
dqboxNO: '', //用来是否保存当前输入箱号的值
|
||||
APPdevice: uni.getStorageSync('devicePixelRatio'), // 缓存设备的像素比用来区分普通安卓normalAnroid还是pda
|
||||
@@ -254,10 +255,10 @@ export default {
|
||||
if (!n) {
|
||||
this.cwselectList = [];
|
||||
this.subStockCode = null;
|
||||
this.orgCode = null;
|
||||
// this.orgCode = null;
|
||||
} else {
|
||||
this.subStockCode = null;
|
||||
this.orgCode = null;
|
||||
// this.orgCode = null;
|
||||
this.getcwList(n);
|
||||
}
|
||||
},
|
||||
@@ -273,6 +274,7 @@ export default {
|
||||
this.$refs.wselect1.inputData = '';
|
||||
this.cwselectList = [];
|
||||
this.daiboxstrList = [];
|
||||
this.orgCode="";
|
||||
this.krcwInfo = {
|
||||
materialSubStocks: [],
|
||||
materialNumber: '',
|
||||
@@ -361,12 +363,11 @@ export default {
|
||||
if (!val) return;
|
||||
clearTimeout(this.timer);
|
||||
this.timer = setTimeout(() => {
|
||||
this.$api.get('/InStockTask/GetSourceOrder/' + val).then((res) => {
|
||||
this.$api.get('/InStockTask/GetSourceOrder/' + val +"&").then((res) => {
|
||||
if (res.status == 200) {
|
||||
this.lyselectList = [];
|
||||
this.lyselectList = res.data && res.data.length>0? res.data.filter(element => element.waitSlefQty > 0):[]
|
||||
|
||||
console.log(this.focusInput);
|
||||
if (this.lyselectList && this.lyselectList.length == 1) {
|
||||
this.lyOrderNo = this.lyselectList[0].sourceBillNo;
|
||||
this.$refs.wselectlydd.filterList = res.data;
|
||||
@@ -383,6 +384,7 @@ export default {
|
||||
this.$refs.wselectlydd.optionsShow = false;
|
||||
this.$refs.wselectlydd.isShow = false;
|
||||
}
|
||||
// console.log(this.instockType,'=this.instockType=')
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
@@ -392,13 +394,18 @@ export default {
|
||||
if (!this.lyOrderNo) {
|
||||
return;
|
||||
}
|
||||
console.log(1111111111111,'=============')
|
||||
// console.log(e,'===============>>>')
|
||||
this.setItemdata(e);
|
||||
},
|
||||
// 选中的来源订单号相关物料
|
||||
setItemdata(e) {
|
||||
console.log(e,'==============e==============')
|
||||
this.lyorderId = e.id;
|
||||
this.detailsId = e.detailsId;
|
||||
this.customerCode = e.customerCode;
|
||||
this.instockType = e.instockType;
|
||||
this.orgCode =e.orgCode;
|
||||
// 仓库名称
|
||||
this.warehouseName = e.stockName;
|
||||
this.warehouseCode = e.stockCode;
|
||||
@@ -461,6 +468,7 @@ export default {
|
||||
orgCode: this.orgCode,
|
||||
stockCode: this.warehouseCode,
|
||||
subStockCode: this.subStockCode,
|
||||
instockType:this.instockType,
|
||||
details: thedetails
|
||||
})
|
||||
.then((res) => {
|
||||
@@ -565,7 +573,8 @@ export default {
|
||||
this.$api
|
||||
.get('/SysConfig/GetSubUcStockByName', {
|
||||
name: val,
|
||||
stockCode: this.warehouseCode
|
||||
stockCode: this.warehouseCode,
|
||||
orgCode:this.orgCode,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.status == 200) {
|
||||
@@ -581,8 +590,10 @@ export default {
|
||||
},
|
||||
// 仓位下拉选择
|
||||
cwchange(e, type) {
|
||||
console.log(e,'=====================>')
|
||||
console.log(this.instockType,'===============>')
|
||||
this.subStockCode = e.code;
|
||||
this.orgCode = e.erpOrgCode;
|
||||
// this.orgCode = e.erpOrgCode;
|
||||
},
|
||||
// 輸入失去焦點
|
||||
inputblur(val, type) {
|
||||
|
||||
Reference in New Issue
Block a user