| | |
| | | <uni-card margin="10px" spacing="1px" v-for="(item,index) in msgList" :key="index" |
| | | @click="onClickProductionTask(item)"> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">设备编号:</view> |
| | | <view |
| | | class="flex-sub bg-white padding-xs margin-xs text-bold text-blue radius text-right"> |
| | | {{item.equipmentCode}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">设备名称:</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs text-bold radius text-right"> |
| | | {{item.partName}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">设备类型:</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.partType}} |
| | | {{item.equipmentName}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">位置::</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs text-blue radius text-right"> |
| | | {{item.location}} |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">维修状态::</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs text-orange radius text-right"> |
| | | {{item.assetStatus_dictText}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">制造商::</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs text-blue radius text-right"> |
| | | {{item.manufacturer}} |
| | | <!-- <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">保养状态::</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs text-orange radius text-right"> |
| | | {{item.maintenanceStatus_dictText}} |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">型号:</view> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">使用车间:</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.model}} |
| | | {{item.orgId_dictText}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">负责人:</view> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">设备管理员:</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.assignee}} |
| | | {{item.equipmentManager_dictText}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">备注:</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.remark}} |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">设备分类:</view> |
| | | <view class="flex-sub bg-white padding-xs margin-xs text-bold radius text-right"> |
| | | {{item.equipmentCategory_dictText}} |
| | | </view> |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">状态:</view> |
| | | <view |
| | | class="flex-sub bg-white padding-xs margin-xs text-bold text-green radius text-right" |
| | | v-if="item.status == '1'"> |
| | | 待处理 |
| | | </view> |
| | | <view |
| | | class="flex-sub bg-white padding-xs margin-xs text-bold text-green radius text-right" |
| | | v-if="item.status == '3'"> |
| | | 已完成 |
| | | </view> |
| | | </view> |
| | | </view> --> |
| | | </uni-card> |
| | | </view> |
| | | |
| | |
| | | NavBarColor: this.NavBarColor, |
| | | url: { |
| | | |
| | | stallList: "/mom/partTakeRollingDetail/list" |
| | | stallList: "/eam/equipment/list" |
| | | }, |
| | | |
| | | upOption: { |
| | |
| | | color: '#2979FF', |
| | | borderColor: '#2979FF' |
| | | }, |
| | | msgList: [{ |
| | | partName: "设备A", |
| | | partType: "服务器", |
| | | location: "机房", |
| | | manufacturer: "灵秀", |
| | | model: "ModelX", |
| | | assignee: "张三", |
| | | remark: "演示", |
| | | status: 1 |
| | | }], //列表数据 |
| | | msgList: [], //列表数据 |
| | | announcement1: [], |
| | | msg1Count: 0, |
| | | msg2Count: 0, |
| | |
| | | * @param {Object} item |
| | | * 详情页面 |
| | | */ |
| | | // onClickProductionTask(item) { |
| | | // let keyword = this.TabCur |
| | | // uni.navigateTo({ |
| | | // url: '/pages/mes/om/workSheetOpToolingBorrowDeils/workSheetOpToolingBorrowDeils?keyword=' + keyword |
| | | // }) |
| | | |
| | | // }, |
| | | onClickProductionTask(item) { |
| | | uni.navigateTo({ |
| | | url: '/pages/device/deviceDeils/deviceDeils?item=' + encodeURIComponent(JSON.stringify(item)) |
| | | }) |
| | | }, |
| | | upCallback(page) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: page.num, |
| | | pageSize: page.size, |
| | | order: 'asc', |
| | | column: 'createTime', |
| | | |
| | | }, |
| | | |
| | | }).then(res => { |
| | | this.announcement1 = res.data.result.records |
| | | this.mescroll.endSuccess(this.announcement1.length); |
| | | console.log("url", res) |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | console.log("res", res.data) |
| | | this.msg1Count = res.data.result.total |
| | | this.msg1Title = "通知(" + res.data.result.total + ")"; |
| | | for (let annItem of this.announcement1) { |
| | | this.msgList.push(annItem) |
| | | } |
| | | } |
| | | if (page.num == 1) { |
| | | this.msgList = []; //如果是第一页需手动制空列表 |
| | | this.msgList = this.msgList.concat(this.announcement1); //追加新数据 |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | // upCallback(page) { |
| | | // let keyword = this.TabCur |
| | | // if (keyword == 0) { |
| | | |
| | | // this.$http.get(this.url.stallList, { |
| | | // params: { |
| | | // pageNo: page.num, |
| | | // pageSize: page.size, |
| | | // order: 'asc', |
| | | // column: 'createTime', |
| | | // status: 1 |
| | | // }, |
| | | |
| | | // }).then(res => { |
| | | // this.announcement1 = res.data.result.records |
| | | // this.mescroll.endSuccess(this.announcement1.length); |
| | | // console.log("url", res) |
| | | // //设置列表数据 |
| | | // if (res.data.success) { |
| | | // console.log("res", res.data) |
| | | // this.msg1Count = res.data.result.total |
| | | // this.msg1Title = "通知(" + res.data.result.total + ")"; |
| | | // for (let annItem of this.announcement1) { |
| | | // this.msgList.push(annItem) |
| | | // } |
| | | // } |
| | | // if (page.num == 1) { |
| | | // this.msgList = []; //如果是第一页需手动制空列表 |
| | | // this.msgList = this.msgList.concat(this.announcement1); //追加新数据 |
| | | // } |
| | | |
| | | // }).catch(() => { |
| | | // //联网失败, 结束加载 |
| | | // this.mescroll.endErr(); |
| | | // }) |
| | | // } else if (keyword == 1) { |
| | | |
| | | // this.$http.get(this.url.stallList, { |
| | | // params: { |
| | | // pageNo: page.num, |
| | | // pageSize: page.size, |
| | | // order: 'desc', |
| | | // status: 3, |
| | | // column: 'createTime' |
| | | // }, |
| | | |
| | | // }).then(res => { |
| | | // this.announcement1 = res.data.result.records |
| | | // this.mescroll.endSuccess(this.announcement1.length); |
| | | // console.log("url", res) |
| | | // //设置列表数据 |
| | | // if (res.data.success) { |
| | | // console.log("res", res.data) |
| | | // this.msg2Count = res.data.result.total |
| | | // this.msg1Title = "通知(" + res.data.result.total + ")"; |
| | | // for (let annItem of this.announcement1) { |
| | | // this.msgList.push(annItem) |
| | | // } |
| | | // } |
| | | // if (page.num == 1) { |
| | | // this.msgList = []; //如果是第一页需手动制空列表 |
| | | // this.msgList = this.msgList.concat(this.announcement1); //追加新数据 |
| | | // } |
| | | |
| | | // }).catch(() => { |
| | | // //联网失败, 结束加载 |
| | | // this.mescroll.endErr(); |
| | | // }) |
| | | |
| | | // } |
| | | |
| | | |
| | | // }, |
| | | }).catch(() => { |
| | | //联网失败, 结束加载 |
| | | this.mescroll.endErr(); |
| | | }) |
| | | }, |
| | | |
| | | |
| | | |
| | | /* 检索 */ |
| | | getSera(res) { |
| | | this.$refs.popup.close(); |
| | | let keyword = this.TabCur |
| | | this.msgList = []; |
| | | |
| | | if (keyword == 0) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | num: '*' + this.formData.num + '*', |
| | | partNumNameModel: '*' + this.formData.partNumNameModel + '*', |
| | | status: 'published' |
| | | equipmentCode: res |
| | | } |
| | | }).then(res => { |
| | | //联网成功的回调,隐藏下拉刷新和上拉加载的状态; |
| | |
| | | //联网失败, 结束加载 |
| | | this.mescroll.endErr(); |
| | | }) |
| | | |
| | | } else if (keyword == 1) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | status: 'training', |
| | | num: '*' + this.formData.num + '*', |
| | | partNumNameModel: '*' + this.formData.partNumNameModel + '*' |
| | | |
| | | } |
| | | }).then(res => { |
| | | //联网成功的回调,隐藏下拉刷新和上拉加载的状态; |
| | | |
| | | this.announcement1 = res.data.result.records |
| | | this.mescroll.endSuccess(this.announcement1.length); |
| | | console.log("url", res) |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | console.log("res", res.data) |
| | | this.msg1Count = res.data.result.total |
| | | this.msg2Title = "通知(" + res.data.result.total + ")"; |
| | | for (let annItem of this.announcement1) { |
| | | this.msgList.push(annItem) |
| | | } |
| | | } |
| | | if (page.num == 1) { |
| | | this.msgList = []; //如果是第一页需手动制空列表 |
| | | this.msgList = this.msgList.concat(this.announcement1); //追加新数据 |
| | | } |
| | | |
| | | }).catch(() => { |
| | | //联网失败, 结束加载 |
| | | this.mescroll.endErr(); |
| | | }) |
| | | |
| | | } else if (keyword == 2) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | status: 'completed', |
| | | num: '*' + this.formData.num + '*', |
| | | partNumNameModel: '*' + this.formData.partNumNameModel + '*' |
| | | |
| | | } |
| | | }).then(res => { |
| | | //联网成功的回调,隐藏下拉刷新和上拉加载的状态; |
| | | |
| | | this.announcement1 = res.data.result.records |
| | | this.mescroll.endSuccess(this.announcement1.length); |
| | | console.log("url", res) |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | console.log("res", res.data) |
| | | this.msg3Count = res.data.result.total |
| | | this.msg1Title = "通知(" + res.data.result.total + ")"; |
| | | for (let annItem of this.announcement1) { |
| | | this.msgList.push(annItem) |
| | | } |
| | | } |
| | | if (page.num == 1) { |
| | | this.msgList = []; //如果是第一页需手动制空列表 |
| | | this.msgList = this.msgList.concat(this.announcement1); //追加新数据 |
| | | } |
| | | |
| | | }).catch(() => { |
| | | //联网失败, 结束加载 |
| | | this.mescroll.endErr(); |
| | | }) |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | |
| | | |
| | | mescrollInit(mescroll) { |
| | | console.log('mescrollInit') |