表单弹出组件 工序流转卡弹出组件 添加 未查询到单据时清空缓存
| | |
| | | // this.exit() |
| | | }, |
| | | getBillList() { |
| | | this.HBillList = [] |
| | | this.length = 0 |
| | | this.page = 0 |
| | | this.curPage = 1 |
| | | CommonUtils.doRequest( |
| | | "/WEBSController/GetSourceBillList_Json", { |
| | | HBilltype: this.HBillType, |
| | |
| | | } |
| | | this.HBillList = result |
| | | this.page = result.length |
| | | console.log(this.page) |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | |
| | | // this.exit() |
| | | }, |
| | | getBillList() { |
| | | this.HBillList = [] |
| | | this.length = 0 |
| | | this.page = 0 |
| | | this.curPage = 1 |
| | | CommonUtils.doRequest( |
| | | "/WEBSController/GetMES_ProcessExchangeBillList_APP_HaiCheng", { |
| | | HBillNo: this.HBillNo || '', |
| | |
| | | "name" : "智云LMES", |
| | | "appid" : "__UNI__B002F49", |
| | | "description" : "", |
| | | "versionName" : "1.0.52", |
| | | "versionCode" : 152, |
| | | "versionName" : "1.0.53", |
| | | "versionCode" : 153, |
| | | "transformPx" : false, |
| | | /* 5+App特有相关 */ |
| | | "app-plus" : { |
| | |
| | | this.getHiddenItem() |
| | | }, |
| | | methods: { |
| | | checkCardShow(item) { |
| | | if(item.HMaker && item.HMaker != getUserInfo()['Czymc'] && item.hidden == true){ |
| | | return false |
| | | } |
| | | return true |
| | | }, |
| | | async getHiddenItem() { |
| | | // let itemCache = uni.getStorageSync('HIndexItemData') || '' |
| | | // console.log('itemCache: ',itemCache); |
| | |
| | | }) |
| | | Array.from(data).forEach(e => { |
| | | this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"]) |
| | | this.itemData[e["HIndex"]].HMaker = e["HMaker"] |
| | | }) |
| | | }, |
| | | switchHidden(index) { |
| | |
| | | // 调入仓库资料 |
| | | getHWarehouseInList(Organizaiton) { |
| | | Organizaiton = Organizaiton || uni.getStorageSync("Organization") |
| | | uni.request({ |
| | | url: this.serverUrl + '/Gy_Warehouse/list', |
| | | CommonUtils.doRequest2({ |
| | | url: '/Gy_Warehouse/list', |
| | | data: { |
| | | sWhere: "", |
| | | user: uni.getStorageSync('HUserName'), |
| | | Organization: Organizaiton |
| | | }, |
| | | success: (res) => { |
| | | resFunction: (res) => { |
| | | console.log('调入仓库 res: ', res.data.data); |
| | | if (res.data.count == 1) { |
| | | this.HWHInNameList = [] |
| | |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | }, |
| | | fail: (res) => { |
| | | console.log(res); |
| | | uni.showToast({ |
| | | title: '接口请求失败', |
| | | icon: 'none' |
| | | }) |
| | | }, |
| | | } |
| | | }); |
| | | |
| | | uni.request({ |