| | |
| | | data, |
| | | count |
| | | } = await getUserStockRelation() |
| | | console.log('count: ', count); |
| | | if (count == 1) { |
| | | this.arrayHWHName = [] |
| | | this.HWHNameList = [] |
| | | Array.from(data).forEach(elem => { |
| | | console.log(elem.HItemID); |
| | | this.arrayHWHName.push(elem.HName) |
| | | this.HWHNameList.push({ |
| | | HItemID: elem.HItemID, |
| | | HName: elem.HName, |
| | | HNumber: elem.HNumber, |
| | | "仓库名称": elem.HName |
| | | }) |
| | | let WHIDList = [] |
| | | |
| | | Array.from(data).forEach(elem => { |
| | | WHIDList.push(elem.HItemID) |
| | | }) |
| | | |
| | | let sWhere = ` and HItemID in (${WHIDList.join(",")})` |
| | | this.getHBaseList({ |
| | | sWhere: sWhere |
| | | }) |
| | | |
| | | } else { |
| | | this.getHBaseList() |
| | | } |
| | |
| | | |
| | | }, |
| | | //基础仓库资料 |
| | | getHBaseList() { |
| | | getHBaseList({sWhere=""} = {}) { |
| | | uni.request({ |
| | | url: this.serverUrl + '/Gy_Warehouse/list', |
| | | data: { |
| | | sWhere: "", |
| | | sWhere: sWhere, |
| | | user: uni.getStorageSync('HUserName'), |
| | | Organization: uni.getStorageSync('Organization') |
| | | }, |
| | |
| | | // 通过单据类型获取源单类型 |
| | | async GetSourceBillType() { |
| | | CommonUtils.doRequest2({ |
| | | url: '/Web/GetHSourceBillType', |
| | | url: '/Web/GetHSourceBillTypeByBillType', |
| | | data: { |
| | | HName: this.HPageTitle, |
| | | HBillType: this.hform.HBillType, |
| | | Num: 2 |
| | | }, |
| | | resFunction: (res) => { |
| | |
| | | flex: 1; |
| | | border-radius: 22rpx; |
| | | border: 1px solid #acacac; |
| | | position: relative; |
| | | display: flex; |
| | | |
| | | .uni-combox { |
| | | width: 100%; |
| | | } |
| | | } |
| | | |
| | | .righton { |
| | |
| | | border-radius: 22rpx; |
| | | border: 1px solid #e4e4e4; |
| | | background-color: #e4e4e4; |
| | | |
| | | |
| | | } |
| | | |
| | | input { |