| | |
| | | let BASE_URL = '' |
| | | let BASE_URL = 'http://192.168.1.68:9918/jeecg-boot' |
| | | if (process.env.NODE_ENV == 'development') { |
| | | |
| | | BASE_URL = '/jeecg-boot' // å¼åç¯å¢ |
| | | BASE_URL = 'http://192.168.1.68:9918/jeecg-boot' // å¼åç¯å¢ |
| | | } else { |
| | | BASE_URL = '/jeecg-boot' // ç产ç¯å¢ |
| | | BASE_URL = 'http://192.168.1.68:9918/jeecg-boot' // ç产ç¯å¢ |
| | | } |
| | | let staticDomainURL ='/sys/common/static'; |
| | | let staticURL ='http://125.76.225.53:8086/jeecg-boot/sys/common/static/'; |
| | |
| | | "mode" : "hash", |
| | | "base" : "/h5/" |
| | | }, |
| | | "devServer" : { |
| | | "port" : "8866", |
| | | "https" : false, |
| | | "proxy" : { |
| | | /**é
ç½®æå¡å¨è·¯å¾**/ |
| | | "/jeecg-boot" : { |
| | | "target" : "http://houjie.xalxzn.com:8866", // ç®æ æå¡å¨ |
| | | "changeOrigin" : true, |
| | | "secure": false |
| | | } |
| | | } |
| | | }, |
| | | // "devServer" : { |
| | | // "port" : "8866", |
| | | // "https" : false, |
| | | // "proxy" : { |
| | | // /**é
ç½®æå¡å¨è·¯å¾**/ |
| | | // "/jeecg-boot" : { |
| | | // "target" : "http://houjie.xalxzn.com:8866", |
| | | // "changeOrigin" : true, |
| | | // "secure": false |
| | | // } |
| | | // } |
| | | // }, |
| | | "optimization" : { |
| | | "treeShaking" : { |
| | | "enable" : false |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="container"> |
| | | <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-popup ref="popup" background-color="#fff" :type="type"> |
| | | <view class="popupView"> |
| | | <!-- åºç¡è¡¨åæ ¡éª --> |
| | | <uni-forms ref="form" :modelValue="formData" validate-trigger="bind" err-show-type="undertext"> |
| | | <uni-group title="" top="0"> |
| | | <uni-forms-item name="orderNum" label="å·¥åå·:"> |
| | | <uni-easyinput type="text" v-model="formData.orderNum" placeholder="请è¾å
¥é¢æç³è¯·åå·æ£ç´¢" /> |
| | | </uni-forms-item> |
| | | <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-forms-item name="name" label="ç¹æ£ç¶æ:"> |
| | | <zxz-uni-data-select :localdata="inspectionStatusList" dataKey="text" |
| | | field="value as value, text as text, title as label" dataValue="value" |
| | | emptyTips="ææ æ°æ®" :multiple="false" :filterable='true' @change="changeInspectionStatus" |
| | | placeholder="è¯·éæ©è®¾å¤ç¼å·:" :clear='true' /> |
| | | </uni-forms-item> |
| | | </uni-group> |
| | | </uni-forms> |
| | | <view class="flex"> |
| | | |
| | | <view |
| | | class="cuIcon-search flex-sub bg-blue padding-sm margin-xs margin-left-lg margin-right-lg text-sm text-center" |
| | | @click="getSera">æ¥è¯¢ |
| | | </view> |
| | | <view |
| | | class="cuIcon-refresh flex-sub bg-white solids padding-sm margin-xs radius text-sm text-center margin-left-lg margin-right-lg" |
| | | @click="resetTask">éç½®</view> |
| | | </view> |
| | | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | |
| | | <view class="container"> |
| | | |
| | | <mescroll-uni ref="mescrollRef" @init="mescrollInit" :top="top" @down="downCallback" @up="upCallback"> |
| | | <!-- å表信æ¯å¼å§ --> |
| | | <view class="content"> |
| | | <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 radius text-right"> |
| | | {{item.orderNum}} |
| | | </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-green 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 radius text-right"> |
| | | {{item.standardId_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-red radius text-right"> |
| | | {{item.inspectionStatus_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.inspectionDate}} |
| | | </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.expirationTime}} |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | </uni-card> |
| | | </view> |
| | | |
| | | </mescroll-uni> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; |
| | | export default { |
| | | mixins: [MescrollMixin], // 使ç¨mixin |
| | | data() { |
| | | return { |
| | | equipmentList: [], |
| | | type: 'top', |
| | | scrollLeft: 0, |
| | | inspectionStatusList:[], |
| | | formData: { |
| | | num: '', |
| | | orderNum: '', |
| | | inspectionStatus:'' |
| | | }, |
| | | NavBarColor: this.NavBarColor, |
| | | activeColor: '#5277A6', |
| | | url: { |
| | | stallList: "eam/eamInspectionOrder/list", |
| | | getEquipmentList: 'eam/equipment/list', |
| | | inspectionStatus:"/sys/dict/getDictItems/inspection_status" |
| | | }, |
| | | upOption: { |
| | | page: { |
| | | num: 0, // å½å页ç ,é»è®¤0,åè°ä¹åä¼å 1,å³callback(page)ä¼ä»1å¼å§ |
| | | size: 10 // æ¯é¡µæ°æ®çæ°é |
| | | }, |
| | | noMoreSize: 4, //妿åè¡¨å·²æ æ°æ®,å¯è®¾ç½®åè¡¨çæ»æ°éè¦å¤§äºåé¡µææ¾ç¤ºæ æ´å¤æ°æ®;é¿å
åè¡¨æ°æ®è¿å°(æ¯å¦åªæä¸æ¡æ°æ®),æ¾ç¤ºæ æ´å¤æ°æ®ä¼ä¸å¥½ç; é»è®¤5 |
| | | empty: { |
| | | tip: '~ ææ æ°æ® ~', // æç¤º |
| | | }, |
| | | loading: '', |
| | | text: 'å
¨é¨', |
| | | isShowNoMore: false, |
| | | textNoMore: 'ææ¯æåºçº¿ç >_<' |
| | | }, |
| | | styles: { |
| | | color: '#2979FF', |
| | | borderColor: '#2979FF' |
| | | }, |
| | | msgList: [], //åè¡¨æ°æ® |
| | | announcement1: [], |
| | | msg1Count: 0, |
| | | msg2Count: 0, |
| | | msg1Title: "", |
| | | equipmentId: '' |
| | | } |
| | | }, |
| | | computed: { |
| | | top() { |
| | | return this.CustomBar * 2 + 50 |
| | | }, |
| | | style() { |
| | | var StatusBar = this.StatusBar; |
| | | var CustomBar = this.CustomBar; |
| | | var style = `height:${CustomBar}px;padding-top:${StatusBar}px;`; |
| | | return style |
| | | }, |
| | | }, |
| | | |
| | | |
| | | onShow() { |
| | | if (this.mescroll) { |
| | | this.mescroll.resetUpScroll() |
| | | } |
| | | }, |
| | | onLoad: function(options) {}, |
| | | created() { |
| | | this.getEquipment() |
| | | this.getInspectionStatusList() |
| | | }, |
| | | methods: { |
| | | /** |
| | | * ç¹æ£ç¶æ |
| | | */ |
| | | getInspectionStatusList() { |
| | | this.$http.get(this.url.inspectionStatus).then(res => { |
| | | //设置åè¡¨æ°æ® |
| | | if (res.data.success) { |
| | | console.log(res) |
| | | this.inspectionStatusList = res.data.result |
| | | } |
| | | }).catch(() => { |
| | | //èç½å¤±è´¥, ç»æå è½½ |
| | | }) |
| | | |
| | | }, |
| | | changeInspectionStatus(e) { |
| | | this.formData.inspectionStatus = e.value; |
| | | }, |
| | | |
| | | |
| | | 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; |
| | | }, |
| | | |
| | | /** |
| | | * @param {Object} item |
| | | * 详æ
é¡µé¢ |
| | | */ |
| | | onClickProductionTask(item, flag = 'task', from = 'detils') { |
| | | let url = '/pages/ToDoList/ToDoListCheckSure/ToDoListCheckSure'; |
| | | uni.navigateTo({ |
| | | url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}&flag=${flag}&from=${from}` |
| | | }); |
| | | }, |
| | | // onClickProductionTask(item) { |
| | | |
| | | // uni.navigateTo({ |
| | | // url: '/pages/checkList/checkListDetils/checkListDetils?item=' + |
| | | // encodeURIComponent(JSON.stringify(item)) |
| | | |
| | | // }) |
| | | |
| | | // }, |
| | | |
| | | search() { |
| | | this.$refs.popup.open(); |
| | | }, |
| | | upCallback(page) { |
| | | // ç¡®ä¿ equipmentId å§ç»ä½ä¸ºåæ°ä¼ éï¼å¼ä¸ºææå符串æç©ºå符串 |
| | | const params = { |
| | | pageNo: page.num, |
| | | pageSize: page.size, |
| | | order: 'desc', |
| | | column: 'createTime' |
| | | |
| | | }; |
| | | |
| | | this.$http.get(this.url.stallList, { |
| | | params |
| | | }) |
| | | .then(res => { |
| | | if (!res.data.success) { |
| | | throw new Error('è·åæ°æ®å¤±è´¥: ' + res.data.message); |
| | | } |
| | | |
| | | const records = res.data.result.records || []; |
| | | const total = res.data.result.total || 0; |
| | | |
| | | // æ´æ°æ¶æ¯è®¡æ°åæ é¢ |
| | | this.msg1Count = total; |
| | | this.msg1Title = `éç¥(${total})`; |
| | | |
| | | // æ´æ°åè¡¨æ°æ® |
| | | this.msgList = page.num === 1 ? [...records] : [...this.msgList, ...records]; |
| | | |
| | | // ç»æå è½½ç¶æ |
| | | this.mescroll.endSuccess(records.length); |
| | | console.log('è¯·æ±æå', res.data); |
| | | }) |
| | | .catch(error => { |
| | | console.error('请æ±å¤±è´¥', error); |
| | | this.mescroll.endErr(); |
| | | }); |
| | | }, |
| | | |
| | | resetTask() { |
| | | this.formData.orderNum = '' |
| | | this.formData.num = '' |
| | | this.$refs.popup.close(); |
| | | this.mescroll.resetUpScroll() |
| | | |
| | | }, |
| | | /* æ£ç´¢ */ |
| | | getSera() { |
| | | this.$refs.popup.close(); |
| | | this.msgList = []; |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | equipmentId: this.formData.num, |
| | | orderNum: this.formData.orderNum, |
| | | inspectionStatus:this.formData.inspectionStatus |
| | | |
| | | } |
| | | }).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(); |
| | | }) |
| | | }, |
| | | |
| | | |
| | | mescrollInit(mescroll) { |
| | | console.log('mescrollInit') |
| | | this.mescroll = mescroll; |
| | | }, |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .is-hover { |
| | | color: rgba(255, 255, 255, 0.6); |
| | | background-color: #55aaff; |
| | | border-color: #55aaff; |
| | | } |
| | | |
| | | |
| | | |
| | | .content { |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | .content scroll-view { |
| | | scrollIndicator: "none" |
| | | } |
| | | |
| | | .popupView { |
| | | margin-top: 85px; |
| | | height: auto; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="container"> |
| | | <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-popup ref="popup" background-color="#fff" :type="type"> |
| | | <view class="popupView"> |
| | | <!-- åºç¡è¡¨åæ ¡éª --> |
| | | <uni-forms ref="form" :modelValue="formData" validate-trigger="bind" err-show-type="undertext"> |
| | | <uni-group title="" top="0"> |
| | | <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-data-select v-model="formData.InspectionFlagName" |
| | | :localdata="formData.randomInspectionFlagList" |
| | | @change="changehandlingInspectionFlag" placeholder="è¯·éæ©" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="name" label="ä¿å
»ç¶æ:"> |
| | | <uni-data-select v-model="formData.maintenanceStatus" :localdata="maintenanceStatusList" |
| | | @change="changeMaintenanceStatus" placeholder="è¯·éæ©" /> |
| | | </uni-forms-item> |
| | | </uni-group> |
| | | </uni-forms> |
| | | <view class="flex"> |
| | | |
| | | <view |
| | | class="cuIcon-search flex-sub bg-blue padding-sm margin-xs margin-left-lg margin-right-lg text-sm text-center" |
| | | @click="getSera">æ¥è¯¢ |
| | | </view> |
| | | <view |
| | | class="cuIcon-refresh flex-sub bg-white solids padding-sm margin-xs radius text-sm text-center margin-left-lg margin-right-lg" |
| | | @click="resetTask">éç½®</view> |
| | | </view> |
| | | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | |
| | | <view class="container"> |
| | | |
| | | <mescroll-uni ref="mescrollRef" @init="mescrollInit" :top="top" @down="downCallback" @up="upCallback"> |
| | | <!-- å表信æ¯å¼å§ --> |
| | | <view class="content"> |
| | | <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 radius text-right"> |
| | | {{item.orderNum}} |
| | | </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.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 radius text-right"> |
| | | {{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-bold text-green 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 bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.installationPosition}} |
| | | </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.standardId_dictText}} |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">æ½æ£æ è®°:</view> |
| | | <view v-if="item.randomInspectionFlag =='1'" class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | å·²æ½æ£ |
| | | </view> |
| | | <view v-else class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | æªæ½æ£ |
| | | </view> |
| | | </view> --> |
| | | |
| | | </uni-card> |
| | | </view> |
| | | |
| | | </mescroll-uni> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; |
| | | export default { |
| | | mixins: [MescrollMixin], // 使ç¨mixin |
| | | data() { |
| | | return { |
| | | type: 'top', |
| | | scrollLeft: 0, |
| | | maintenanceStatusList: '', |
| | | formData: { |
| | | orderNum: '', |
| | | maintenanceStatus: '', |
| | | InspectionFlagName: '', |
| | | randomInspectionFlagList: [{ |
| | | text: "å¦", |
| | | value: '0' |
| | | }, |
| | | { |
| | | text: "æ¯", |
| | | value: '1' |
| | | } |
| | | ] |
| | | }, |
| | | NavBarColor: this.NavBarColor, |
| | | activeColor: '#5277A6', |
| | | url: { |
| | | |
| | | stallList: "/eam/weekMaintenanceOrder/list", |
| | | collect: "eam/weekMaintenanceOrder/collect", |
| | | maintenanceStatus: 'sys/dict/getDictItems/week_maintenance_status' |
| | | }, |
| | | |
| | | upOption: { |
| | | page: { |
| | | num: 0, // å½å页ç ,é»è®¤0,åè°ä¹åä¼å 1,å³callback(page)ä¼ä»1å¼å§ |
| | | size: 10 // æ¯é¡µæ°æ®çæ°é |
| | | }, |
| | | noMoreSize: 4, //妿åè¡¨å·²æ æ°æ®,å¯è®¾ç½®åè¡¨çæ»æ°éè¦å¤§äºåé¡µææ¾ç¤ºæ æ´å¤æ°æ®;é¿å
åè¡¨æ°æ®è¿å°(æ¯å¦åªæä¸æ¡æ°æ®),æ¾ç¤ºæ æ´å¤æ°æ®ä¼ä¸å¥½ç; é»è®¤5 |
| | | empty: { |
| | | tip: '~ ææ æ°æ® ~', // æç¤º |
| | | }, |
| | | loading: '', |
| | | text: 'å
¨é¨', |
| | | isShowNoMore: false, |
| | | textNoMore: 'ææ¯æåºçº¿ç >_<' |
| | | }, |
| | | styles: { |
| | | color: '#2979FF', |
| | | borderColor: '#2979FF' |
| | | }, |
| | | msgList: [], //åè¡¨æ°æ® |
| | | announcement1: [], |
| | | msg1Count: 0, |
| | | msg2Count: 0, |
| | | msg1Title: "", |
| | | equipmentId: '' |
| | | } |
| | | }, |
| | | computed: { |
| | | top() { |
| | | return this.CustomBar * 2 + 50 |
| | | }, |
| | | style() { |
| | | var StatusBar = this.StatusBar; |
| | | var CustomBar = this.CustomBar; |
| | | var style = `height:${CustomBar}px;padding-top:${StatusBar}px;`; |
| | | return style |
| | | }, |
| | | }, |
| | | |
| | | |
| | | onShow() { |
| | | if (this.mescroll) { |
| | | this.mescroll.resetUpScroll() |
| | | } |
| | | }, |
| | | onLoad: function(options) {}, |
| | | created() { |
| | | this.getMaintenanceStatus(); |
| | | }, |
| | | methods: { |
| | | |
| | | /** |
| | | * ä¿å
»åç±»å表äºä»¶ |
| | | */ |
| | | getMaintenanceStatus() { |
| | | this.$http.get(this.url.maintenanceStatus).then(res => { |
| | | //设置åè¡¨æ°æ® |
| | | if (res.data.success) { |
| | | console.log(res) |
| | | this.maintenanceStatusList = res.data.result |
| | | } |
| | | }).catch(() => { |
| | | //èç½å¤±è´¥, ç»æå è½½ |
| | | }) |
| | | |
| | | }, |
| | | changeMaintenanceStatus(e) { |
| | | this.formData.maintenanceStatus = e; |
| | | }, |
| | | changehandlingInspectionFlag(e) { |
| | | this.formData.InspectionFlagName = e; |
| | | }, |
| | | |
| | | /** |
| | | * @param {Object} item |
| | | * 详æ
é¡µé¢ |
| | | */ |
| | | onClickProductionTask(item, flag = 'task', from = 'detils') { |
| | | let url = '/pages/ToDoList/ToDoBaoZhouSure/ToDoBaoZhouSure'; |
| | | uni.navigateTo({ |
| | | url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}&flag=${flag}&from=${from}` |
| | | }); |
| | | }, |
| | | |
| | | search() { |
| | | this.$refs.popup.open(); |
| | | }, |
| | | upCallback(page) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: page.num, |
| | | pageSize: page.size, |
| | | order: 'desc', |
| | | 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); //è¿½å æ°æ°æ® |
| | | } |
| | | |
| | | }).catch(() => { |
| | | //èç½å¤±è´¥, ç»æå è½½ |
| | | this.mescroll.endErr(); |
| | | }) |
| | | |
| | | }, |
| | | |
| | | |
| | | resetTask() { |
| | | this.formData.orderNum = '' |
| | | this.formData.randomInspectionFlag = '' |
| | | this.$refs.popup.close(); |
| | | this.mescroll.resetUpScroll() |
| | | |
| | | }, |
| | | /* æ£ç´¢ */ |
| | | getSera() { |
| | | this.$refs.popup.close(); |
| | | this.msgList = []; |
| | | |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | orderNum: this.formData.orderNum, |
| | | maintenanceStatus: this.formData.maintenanceStatus, |
| | | randomInspectionFlag: this.formData.InspectionFlagName |
| | | } |
| | | }).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(); |
| | | }) |
| | | }, |
| | | |
| | | mescrollInit(mescroll) { |
| | | console.log('mescrollInit') |
| | | this.mescroll = mescroll; |
| | | }, |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .is-hover { |
| | | color: rgba(255, 255, 255, 0.6); |
| | | background-color: #55aaff; |
| | | border-color: #55aaff; |
| | | } |
| | | |
| | | |
| | | |
| | | .content { |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | .content scroll-view { |
| | | scrollIndicator: "none" |
| | | } |
| | | |
| | | .popupView { |
| | | margin-top: 85px; |
| | | height: auto; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="container"> |
| | | <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-popup ref="popup" background-color="#fff" :type="type"> |
| | | <view class="popupView"> |
| | | <!-- åºç¡è¡¨åæ ¡éª --> |
| | | <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> |
| | | <uni-forms-item name="name" label="ç»´ä¿®ç¶æ:"> |
| | | <uni-data-select v-model="formData.repairStatus" :localdata="repairStatusList" |
| | | @change="changeRepairStatus" placeholder="è¯·éæ©" /> |
| | | </uni-forms-item> |
| | | </uni-group> |
| | | </uni-forms> |
| | | <view class="flex"> |
| | | |
| | | <view |
| | | class="cuIcon-search flex-sub bg-blue padding-sm margin-xs margin-left-lg margin-right-lg text-sm text-center" |
| | | @click="getSera">æ¥è¯¢ |
| | | </view> |
| | | <view |
| | | class="cuIcon-refresh flex-sub bg-white solids padding-sm margin-xs radius text-sm text-center margin-left-lg margin-right-lg" |
| | | @click="resetTask">éç½®</view> |
| | | </view> |
| | | |
| | | </view> |
| | | </uni-popup> |
| | | </view> |
| | | <view class="container"> |
| | | <mescroll-uni ref="mescrollRef" @init="mescrollInit" :top="top" @down="downCallback" @up="upCallback"> |
| | | <!-- å表信æ¯å¼å§ --> |
| | | <view class="content"> |
| | | <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 radius text-right"> |
| | | {{item.repairCode}} |
| | | </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.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.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.installationPosition}} |
| | | </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-green radius text-right"> |
| | | {{item.repairStatus_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.actualStartTime}} |
| | | </view> |
| | | </view> |
| | | </uni-card> |
| | | </view> |
| | | |
| | | </mescroll-uni> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; |
| | | export default { |
| | | mixins: [MescrollMixin], // 使ç¨mixin |
| | | data() { |
| | | return { |
| | | type: 'top', |
| | | scrollLeft: 0, |
| | | formData: { |
| | | num: '', |
| | | repairStatus: [], |
| | | partNumNameModel: '' |
| | | }, |
| | | repairStatusList: [], |
| | | NavBarColor: this.NavBarColor, |
| | | activeColor: '#5277A6', |
| | | url: { |
| | | stallList: "/eam/eamRepairOrder/list", |
| | | add: '/eam/eamRepairOrder/add', |
| | | repairStatus: 'sys/dict/getDictItems/report_repair_status' |
| | | }, |
| | | |
| | | upOption: { |
| | | page: { |
| | | num: 0, // å½å页ç ,é»è®¤0,åè°ä¹åä¼å 1,å³callback(page)ä¼ä»1å¼å§ |
| | | size: 10 // æ¯é¡µæ°æ®çæ°é |
| | | }, |
| | | noMoreSize: 4, //妿åè¡¨å·²æ æ°æ®,å¯è®¾ç½®åè¡¨çæ»æ°éè¦å¤§äºåé¡µææ¾ç¤ºæ æ´å¤æ°æ®;é¿å
åè¡¨æ°æ®è¿å°(æ¯å¦åªæä¸æ¡æ°æ®),æ¾ç¤ºæ æ´å¤æ°æ®ä¼ä¸å¥½ç; é»è®¤5 |
| | | empty: { |
| | | tip: '~ ææ æ°æ® ~', // æç¤º |
| | | }, |
| | | loading: '', |
| | | text: 'å
¨é¨', |
| | | isShowNoMore: false, |
| | | textNoMore: 'ææ¯æåºçº¿ç >_<' |
| | | }, |
| | | styles: { |
| | | color: '#2979FF', |
| | | borderColor: '#2979FF' |
| | | }, |
| | | msgList: [], //åè¡¨æ°æ® |
| | | announcement1: [], |
| | | msg1Count: 0, |
| | | msg2Count: 0, |
| | | msg1Title: "", |
| | | equipmentId: '' |
| | | } |
| | | }, |
| | | mounted() { |
| | | console.log('ä» store è·åç auth:', this.$store.getters.getAuth) |
| | | }, |
| | | computed: { |
| | | authList() { |
| | | return this.$store.getters.getAuth || [] |
| | | }, |
| | | top() { |
| | | return this.CustomBar * 2 + 50 |
| | | }, |
| | | style() { |
| | | var StatusBar = this.StatusBar; |
| | | var CustomBar = this.CustomBar; |
| | | var style = `height:${CustomBar}px;padding-top:${StatusBar}px;`; |
| | | return style |
| | | }, |
| | | }, |
| | | onShow() { |
| | | if (this.mescroll) { |
| | | this.mescroll.resetUpScroll() |
| | | } |
| | | }, |
| | | onLoad: function(options) { |
| | | this.equipmentId = options.equipmentId ? |
| | | decodeURIComponent(options.equipmentId) : |
| | | ''; |
| | | }, |
| | | created() { |
| | | this.getRepairStatus() |
| | | }, |
| | | methods: { |
| | | /** |
| | | * ä¿å
»åç±»å表äºä»¶ |
| | | */ |
| | | getRepairStatus() { |
| | | this.$http.get(this.url.repairStatus).then(res => { |
| | | //设置åè¡¨æ°æ® |
| | | if (res.data.success) { |
| | | console.log(res) |
| | | this.repairStatusList = res.data.result |
| | | } |
| | | }).catch(() => { |
| | | //èç½å¤±è´¥, ç»æå è½½ |
| | | }) |
| | | |
| | | }, |
| | | changeRepairStatus(e) { |
| | | this.formData.repairStatus = e; |
| | | }, |
| | | /** |
| | | * @param {Object} codeæé®æé |
| | | */ |
| | | authIncludes(code) { |
| | | return this.authList.some(auth => auth.action === code) |
| | | }, |
| | | /** |
| | | * @param {Object} item |
| | | * 详æ
é¡µé¢ |
| | | */ |
| | | onClickProductionTask(item, flag = 'task', from = 'detils') { |
| | | let url = '/pages/ToDoList/ToDoSpareParts/ToDoSpareParts'; |
| | | uni.navigateTo({ |
| | | url: `${url}?item=${encodeURIComponent(JSON.stringify(item))}&flag=${flag}&from=${from}` |
| | | }); |
| | | }, |
| | | search() { |
| | | this.$refs.popup.open(); |
| | | }, |
| | | |
| | | |
| | | upCallback(page) { |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: page.num, |
| | | pageSize: page.size, |
| | | order: 'desc', |
| | | 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); //è¿½å æ°æ°æ® |
| | | } |
| | | |
| | | }).catch(() => { |
| | | //èç½å¤±è´¥, ç»æå è½½ |
| | | this.mescroll.endErr(); |
| | | }) |
| | | |
| | | }, |
| | | |
| | | |
| | | resetTask() { |
| | | this.formData.num = '' |
| | | this.formData.partNumNameModel = '' |
| | | this.$refs.popup.close(); |
| | | this.mescroll.resetUpScroll() |
| | | |
| | | }, |
| | | /* æ£ç´¢ */ |
| | | getSera() { |
| | | this.$refs.popup.close(); |
| | | let keyword = this.TabCur |
| | | this.msgList = []; |
| | | |
| | | |
| | | this.$http.get(this.url.stallList, { |
| | | params: { |
| | | pageNo: 1, |
| | | pageSize: 999, |
| | | order: "desc", |
| | | column: "createTime", |
| | | num: this.formData.num, |
| | | repairStatus:this.formData.repairStatus |
| | | } |
| | | }).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(); |
| | | }) |
| | | }, |
| | | |
| | | |
| | | mescrollInit(mescroll) { |
| | | console.log('mescrollInit') |
| | | this.mescroll = mescroll; |
| | | }, |
| | | }, |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | .is-hover { |
| | | color: rgba(255, 255, 255, 0.6); |
| | | background-color: #55aaff; |
| | | border-color: #55aaff; |
| | | } |
| | | |
| | | |
| | | |
| | | .content { |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | .content scroll-view { |
| | | scrollIndicator: "none" |
| | | } |
| | | |
| | | .popupView { |
| | | margin-top: 85px; |
| | | height: auto; |
| | | } |
| | | </style> |