| | |
| | | <cu-custom :bgColor="NavBarColor" :isBack="true" backRouterName="productionTask"> |
| | | <block slot="backText">返回</block> |
| | | <block slot="content">点检列表</block> |
| | | <block slot="right"> |
| | | <view @click="search"> |
| | | <image class="search" src="/static/icon/sear.png" style="width: 25px; height: 25px;" alt="" /> |
| | | </view> |
| | | </block> |
| | | </cu-custom> |
| | | |
| | | <view style="width: 100%;"> |
| | |
| | | <!-- 基础表单校验 --> |
| | | <uni-forms ref="form" :modelValue="formData" validate-trigger="bind" err-show-type="undertext"> |
| | | <uni-group title="" top="0"> |
| | | <uni-forms-item name="numbers" label="领料申请单号:"> |
| | | <uni-easyinput type="text" v-model="formData.num" placeholder="请输入领料申请单号检索" /> |
| | | <uni-forms-item name="orderNum" label="工单号:"> |
| | | <uni-easyinput type="text" v-model="formData.orderNum" placeholder="请输入领料申请单号检索" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="name" label="领料产品:"> |
| | | <uni-easyinput v-model="formData.partNumNameModel" placeholder="请输入领料产品" /> |
| | | <uni-forms-item name="name" label="设备编号:"> |
| | | <zxz-uni-data-select :localdata="equipmentList" dataKey="text" |
| | | field="value as value, text as text, title as label" dataValue="value" |
| | | emptyTips="暂无数据" :multiple="false" :filterable='true' @change="changeEquipmentList" |
| | | placeholder="请选择设备编号:" :clear='true' /> |
| | | </uni-forms-item> |
| | | </uni-group> |
| | | </uni-forms> |
| | |
| | | mixins: [MescrollMixin], // 使用mixin |
| | | data() { |
| | | return { |
| | | equipmentList:[], |
| | | type: 'top', |
| | | scrollLeft: 0, |
| | | formData: { |
| | | num: '', |
| | | partNumNameModel: '' |
| | | orderNum: '' |
| | | }, |
| | | NavBarColor: this.NavBarColor, |
| | | activeColor: '#5277A6', |
| | | url: { |
| | | stallList: "eam/eamInspectionOrder/list", |
| | | receive: "eam/eamInspectionOrder/receiveInspectionOrder" |
| | | receive: "eam/eamInspectionOrder/receiveInspectionOrder", |
| | | getEquipmentList: 'eam/equipment/list' |
| | | }, |
| | | upOption: { |
| | | page: { |
| | |
| | | } |
| | | }, |
| | | |
| | | created() {}, |
| | | created() { |
| | | this.getEquipment() |
| | | }, |
| | | methods: { |
| | | getEquipment() { |
| | | this.$http.get(this.url.getEquipmentList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 9999, |
| | | order: 'desc', |
| | | column: 'createTime' |
| | | }, |
| | | |
| | | }).then(res => { |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | this.equipmentList = res.data.result.records |
| | | } else { |
| | | uni.showToast({ |
| | | icon: "error", |
| | | title: res.data.message, |
| | | duration: 2000 |
| | | }); |
| | | |
| | | } |
| | | }).catch(() => { |
| | | this.$tip.error("联网失败") |
| | | }) |
| | | }, |
| | | changeEquipmentList(e) { |
| | | console.log(e.id) |
| | | this.formData.num = e.id; |
| | | }, |
| | | /** |
| | | * 领取 |
| | | */ |
| | |
| | | |
| | | |
| | | resetTask() { |
| | | this.formData.orderNum = '' |
| | | this.formData.num = '' |
| | | this.formData.partNumNameModel = '' |
| | | this.$refs.popup.close(); |
| | | this.mescroll.resetUpScroll() |
| | | |
| | |
| | | /* 检索 */ |
| | | getSera() { |
| | | this.$refs.popup.close(); |
| | | let keyword = this.TabCur |
| | | this.msgList = []; |
| | | |
| | | if (keyword == 0) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | num: '*' + this.formData.num + '*', |
| | | partNumNameModel: '*' + this.formData.partNumNameModel + '*', |
| | | status: 'published' |
| | | inspectionStatus: 'WAIT_INSPECTION', |
| | | equipmentId: this.formData.num, |
| | | orderNum: this.formData.orderNum |
| | | |
| | | } |
| | | }).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(); |
| | | }) |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | |
| | | |