| | |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/sbgl/dqby", |
| | | "style": { |
| | | "navigationBarTitleText": "宿ä¿å
»", |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | }, { |
| | | "path": "pages/sbgl/rcdj", |
| | | "style": { |
| | | "navigationBarTitleText": "æ¥å¸¸ç¹æ£", |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/sbgl/wxsq", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»´ä¿®ç³è¯·", |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/sbgl/sbwx", |
| | | "style": { |
| | | "navigationBarTitleText": "设å¤ç»´ä¿®", |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | }, { |
| | | "path": "pages/sbgl/wxyz", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»´ä¿®éªè¯", |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | } |
| | | ], |
| | | "globalStyle": { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="宿ä¿å
»"></page-nav> |
| | | |
| | | |
| | | <view v-show="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">æ«æä¿å
»å·¥ä½</div> |
| | | </div> |
| | | </view> |
| | | |
| | | |
| | | <view v-show="topContent.length!==0"> |
| | | <view class="mainContent"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ«æä¿å
»å·¥ä½ |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20"> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <view class="marginLeft20 marginRight20" style="max-height: 180rpx;overflow:scroll;"> |
| | | <u-radio-group v-model="radioValue" class="flex_column"> |
| | | <view class="marginBottom20 flex_between" @click="groupChange(item.code)" |
| | | v-for="item in topContent" :key="item.code"> |
| | | <view style="display: flex;"> |
| | | <view class="flex_column titleFont"> |
| | | <view>å·¥ä½ç¼ç ï¼</view> |
| | | <view>å·¥ä½åç§°ï¼</view> |
| | | <view>ç产车é´ï¼</view> |
| | | </view> |
| | | <view class="flex_column contentFont"> |
| | | <view>{{item.code}}</view> |
| | | <view>{{item.name}}</view> |
| | | <view>{{item.wksp_name}}</view> |
| | | </view> |
| | | </view> |
| | | <u-radio size='40' :key="item.code" :name="item.code" |
| | | @change="groupChange(item.code)" activeColor="red"></u-radio> |
| | | </view> |
| | | </u-radio-group> |
| | | </view> |
| | | |
| | | </view> |
| | | <u-gap height="12" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style="height:86rpx;"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ä¿å
»æ å |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20 marginTop10" style="width: 200rpx;"> |
| | | <!-- <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> --> |
| | | <uni-data-select v-model="selectValueBZ" :clear="false" :localdata="selectRangeBZ" |
| | | @change="selectChangeBZ"> |
| | | </uni-data-select> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | <u-gap height="12" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head"> |
| | | |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ä¿å
»é¡¹ç®å
容 |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20" style="width: 200rpx;"> |
| | | <uni-data-select v-model="selectValue" :clear="false" :localdata="selectRange" |
| | | @change="selectChange"> |
| | | </uni-data-select> |
| | | </view> |
| | | |
| | | </view> |
| | | <view :style="{maxHeight:'1000rpx',overflow: 'scroll'}"> |
| | | <view class="center_border flex_column" style="margin: 10rpx;" v-for="item in centerContent" |
| | | :key="item.code"> |
| | | |
| | | <view class="flex_between marginBottom10"> |
| | | <view class="center_title">{{item.name}}</view> |
| | | <view class="marginRight20" v-if="item.isscan==='Y'"> |
| | | <u-icon name="scan" @click="centerScanClick(item.code)" color="red" size="56"> |
| | | </u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="flex_between marginBottom10"> |
| | | <view class='inputClass marginTop10'> |
| | | <u--input :disabled='item.isDisabled' placeholder="请è¾å
¥" border="surround" |
| | | v-model="item.inputValue"></u--input> |
| | | </view> |
| | | |
| | | |
| | | <view class="flex_center"> |
| | | <u-button type="primary" :plain="item.isOK!=='OK'" :disabled="item.isDisabled" |
| | | text="æ£å¸¸" @click="bwClick(item,'OK')"> |
| | | </u-button> |
| | | <u-button type="warning" :plain="item.isOK!=='NG'" :disabled="item.isDisabled" |
| | | text="å¼å¸¸" @click="bwClick(item,'NG')"> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | <view class="titleFont"> |
| | | {{item.chkdesc}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="footer"> |
| | | <view class="head_block" style="align-items: center;padding: 0 23rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ç¹æ£ç»æ |
| | | </view> |
| | | </view> |
| | | <view class="flex_center"> |
| | | <u-button type="primary" :plain="resultValue!=='OK'" |
| | | :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0" |
| | | text="æ£å¸¸" @click="resultClick('OK')"></u-button> |
| | | <u-button type="warning" :plain="resultValue!=='NG'" |
| | | :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0" |
| | | text="å¼å¸¸" @click="resultClick('NG')"></u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-button size="large" :loading="isDisabledSubmitButton" loadingText="æ£å¨æäº¤,请ç¨ç..." type="primary" |
| | | @click="submit" :disabled="resultValue===''" text="确认æäº¤"> |
| | | </u-button> |
| | | |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | // RepairScanDeviceQrCodeData, |
| | | // RepairSelectScanDeviceQrCodeItem, |
| | | // RepairScanDeviceTemp, |
| | | // AppDeviceRepairSave |
| | | } from '../../config/api.js' |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("æ«æå°çå
容为:", content) |
| | | _this.getRepairScanDeviceQrCodeData(content) |
| | | }) |
| | | }, |
| | | onPullDownRefresh() { |
| | | setTimeout(() => { |
| | | this.init(() => { |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | }, 1000); |
| | | }, |
| | | data() { |
| | | return { |
| | | isDisabledSubmitButton: false, |
| | | |
| | | topContent: [], //æ«æä¿å
»å·¥ä½æå¸¦åºæ¥çå
容 |
| | | centerContent: [], //ä¿å
»é¡¹ç®å
容 |
| | | scanContent: '', //æ«ææ«åºæ¥çå¼ |
| | | radioValue: '', //åéæ¡çå¼ |
| | | resultValue: '', //ä¿å
»ç»æå¼ |
| | | |
| | | selectValueBZ: '', //æ åéæ©çå¼ |
| | | selectRangeBZ: [], //æ åéæ©ç䏿é项 |
| | | |
| | | selectValue: 'M', |
| | | selectRange: [{ |
| | | value: 'Y', |
| | | text: 'å¹´' |
| | | }, { |
| | | value: 'S', |
| | | text: 'å£' |
| | | }, { |
| | | value: 'M', |
| | | text: 'æ' |
| | | }, { |
| | | value: 'W', |
| | | text: 'å¨' |
| | | }, ] |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | |
| | | // this.getRepairScanDeviceQrCodeData('SB001') |
| | | // this.getRepairScanDeviceQrCodeData('SB002') |
| | | // setTimeout(() => { |
| | | // this.getRepairScanDeviceQrCodeData('SB003') |
| | | // }, 100) |
| | | }, |
| | | methods: { |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | selectChange(val) { |
| | | console.log(val) |
| | | }, |
| | | selectChangeBZ(val) { |
| | | console.log(val, 1) |
| | | this.selectValueBZ = val |
| | | this.getRepairSelectScanDeviceQrCodeItem(this.radioValue, this.selectValueBZ) |
| | | }, |
| | | // æ«ç å·¥ä½ çæ«ç æ¡ç¹å» |
| | | topScanClick() { |
| | | let that = this; |
| | | |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | that.scanContent = res.result; |
| | | let flag = false |
| | | that.topContent.forEach(item => { |
| | | if (item.code === res.result) { |
| | | flag = true |
| | | } |
| | | }) |
| | | if (flag) { |
| | | that.$u.toast('æ¤æ¡ç å·²æ«æï¼å·²å¨å表ä¸ï¼') |
| | | } else { |
| | | //å¤çæ«ç äºä»¶ |
| | | that.getRepairScanDeviceQrCodeData(that.scanContent); |
| | | } |
| | | }, |
| | | complete: function(res) { |
| | | |
| | | }, |
| | | fail: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // ä¿å
»é¡¹ç®å
容 çæ«ç æ¡ç¹å» |
| | | centerScanClick(val) { |
| | | let that = this; |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | // console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | // that.scanContent = res.result; |
| | | |
| | | |
| | | if (res.result === val) { |
| | | that.centerContent.find(item => item.code === val).isDisabled = false |
| | | that.centerContent.find(item => item.code === val).isOK = 'OK' |
| | | |
| | | if (that.centerContent.every(r => r.isOK === 'OK')) { |
| | | that.resultValue = 'OK' |
| | | } |
| | | if (that.centerContent.some(r => r.isOK === 'NG')) { |
| | | that.resultValue = 'NG' |
| | | } |
| | | if (that.centerContent.some(r => r.isOK === '')) { |
| | | that.resultValue = '' |
| | | } |
| | | |
| | | that.$forceUpdate() |
| | | } else { |
| | | uni.$u.toast('ææ«æ¡ç ä¸ç¹æ£é¨ä½ä¸ç¬¦åï¼') |
| | | } |
| | | |
| | | |
| | | //å¤çæ«ç äºä»¶ |
| | | // that.SearchBarcode(); |
| | | }, |
| | | complete: function(res) {}, |
| | | fail: function(res) {} |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // è·åä¿å
»å·¥ä½ |
| | | async getRepairScanDeviceQrCodeData(val) { |
| | | const data = { |
| | | eqpcode: val |
| | | } |
| | | |
| | | const res = await RepairScanDeviceQrCodeData(data) |
| | | |
| | | if (res.code === '200' && res.data[0].eapmai_code !== null) { //表示ç»å®äºæ å |
| | | this.topContent.unshift(res.data[0]) |
| | | this.radioValue = res.data[0].code |
| | | // this.selectValue = res.data[0].main_cycle |
| | | // this.getRepairSelectScanDeviceQrCodeItem(res.data[0].code, res.data[0].eapmai_code) |
| | | |
| | | this.getRepairScanDeviceTemp(res.data[0].code) |
| | | } else if (res.code === '200' && res.data[0].eapmai_code === null) { |
| | | uni.$u.toast('å½åè®¾å¤æªè®¾ç½®ç¹æ£æ åç»å®ç¹æ£é¡¹ç®ï¼') |
| | | // this.selectValueBZ = '' |
| | | // this.centerContent = [] |
| | | // this.$forceUpdate() |
| | | } |
| | | // else if (res.code === '200') { |
| | | // uni.$u.toast('å½åè®¾å¤æªè®¾ç½®ç¹æ£æ åç»å®ç¹æ£é¡¹ç®ï¼') |
| | | // this.$forceUpdate() |
| | | // } |
| | | }, |
| | | // è·åä¿å
»æ å |
| | | async getRepairScanDeviceTemp(eqpcode) { |
| | | const res = await RepairScanDeviceTemp({ |
| | | eqpcode |
| | | }) |
| | | |
| | | this.selectRangeBZ = res.data.map(({ |
| | | code, |
| | | name |
| | | }) => ({ |
| | | text: name, |
| | | value: code |
| | | })) |
| | | |
| | | this.selectValueBZ = this.selectRangeBZ[0].value |
| | | |
| | | this.getRepairSelectScanDeviceQrCodeItem(eqpcode, this.selectValueBZ) |
| | | }, |
| | | // è·åä¿å
»é¡¹ç®å
容 |
| | | async getRepairSelectScanDeviceQrCodeItem(eqpcode, repartempcode) { |
| | | |
| | | const data = { |
| | | eqpcode, |
| | | repartempcode |
| | | } |
| | | |
| | | const res = await RepairSelectScanDeviceQrCodeItem(data) |
| | | |
| | | if (res.code === '200') { |
| | | this.centerContent = res.data |
| | | |
| | | this.centerContent.forEach(item => { |
| | | item.inputValue = '' |
| | | item.isDisabled = item.isscan === 'Y' |
| | | item.isOK = item.isscan !== 'Y' ? 'OK' : '' |
| | | }) |
| | | |
| | | if (this.centerContent.every(r => r.isOK === 'OK')) { |
| | | this.resultValue = 'OK' |
| | | } |
| | | if (this.centerContent.some(r => r.isOK === 'NG')) { |
| | | this.resultValue = 'NG' |
| | | } |
| | | if (this.centerContent.some(r => r.isOK === '')) { |
| | | this.resultValue = '' |
| | | } |
| | | |
| | | this.radioValue = eqpcode |
| | | this.selectValue = this.centerContent[0].main_cycle |
| | | this.$forceUpdate() |
| | | } else if (res.code === '300') { |
| | | this.selectValueBZ = '' |
| | | this.centerContent = [] |
| | | this.$forceUpdate() |
| | | } |
| | | |
| | | |
| | | }, |
| | | // åéæé®ç¹å» |
| | | groupChange(val) { |
| | | this.radioValue = val |
| | | this.$forceUpdate() |
| | | // this.getRepairSelectScanDeviceQrCodeItem(val, this.topContent.find(i => i.code === val).eapmai_code) |
| | | this.getRepairScanDeviceTemp(val) |
| | | }, |
| | | |
| | | // é¨ä½æ£å¸¸ å¼å¸¸æé®ç¹å» |
| | | bwClick(item, val) { |
| | | item.isOK = val |
| | | if (this.centerContent.every(item => item.isOK !== '')) { |
| | | if (this.centerContent.every(item => item.isOK === 'OK')) { |
| | | this.resultValue = 'OK' |
| | | } else { |
| | | this.resultValue = 'NG' |
| | | } |
| | | } |
| | | this.$forceUpdate() //强å¶è§å¾æ´æ° |
| | | }, |
| | | // ç¹æ£ç»æç¹å» |
| | | resultClick(val) { |
| | | this.resultValue = val |
| | | this.$forceUpdate() //强å¶è§å¾æ´æ° |
| | | }, |
| | | // 确认æäº¤æé® |
| | | async submit() { |
| | | const children = [] |
| | | |
| | | |
| | | |
| | | this.centerContent.forEach(item => { |
| | | children.push({ |
| | | seq: item.seq, |
| | | itemcode: item.code, |
| | | cycle: item.main_cycle, |
| | | value: item.inputValue, |
| | | result: item.isOK |
| | | }) |
| | | |
| | | }) |
| | | const data = { |
| | | code: this.topContent.find(item => item.code === this.radioValue).code, |
| | | name: this.topContent.find(item => item.code === this.radioValue).name, |
| | | // standcode: this.topContent.find(item => item.code === this.radioValue).eapmai_code, |
| | | standcode: this.selectValueBZ, |
| | | result: this.resultValue, |
| | | children: children |
| | | } |
| | | // console.log(data) |
| | | this.isDisabledSubmitButton = true |
| | | const res = await AppDeviceRepairSave(data, uni.getStorageSync("username"), this.selectValue) |
| | | if (res.code === '200') { |
| | | uni.$u.toast('æäº¤æåï¼') |
| | | this.isDisabledSubmitButton = false |
| | | this.topContent.forEach((item, index) => { |
| | | if (item.code === this.radioValue) { |
| | | this.topContent.splice(index, 1) |
| | | } |
| | | }) |
| | | this.radioValue = this.topContent[0].code |
| | | if (this.radioValue.toString().length > 0) { |
| | | this.getRepairScanDeviceTemp(this.radioValue) |
| | | } |
| | | |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import url('@/style/global.css'); |
| | | |
| | | ::v-deep .uicon-arrow-left>span { |
| | | display: block; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="æ¥å¸¸ç¹æ£"></page-nav> |
| | | |
| | | <!-- <u-notify ref="uNotify"></u-notify> --> |
| | | |
| | | <view v-show="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">æ«æç¹æ£å·¥ä½</div> |
| | | </div> |
| | | </view> |
| | | |
| | | |
| | | <view v-show="topContent.length!==0"> |
| | | <view class="mainContent"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ«æç¹æ£å·¥ä½ |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20"> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="28"></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <view class="marginLeft20 marginRight20" style="max-height: 180rpx;overflow:auto;"> |
| | | <u-radio-group v-model="radioValue" class="flex_column"> |
| | | <view class="marginBottom20 flex_between" @click="groupChange(item.code)" |
| | | v-for="item in topContent" :key="item.code"> |
| | | <view style="display: flex;"> |
| | | <view class="flex_column titleFont"> |
| | | <view>å·¥ä½ç¼ç ï¼</view> |
| | | <view>å·¥ä½åç§°ï¼</view> |
| | | <view>ç产车é´ï¼</view> |
| | | </view> |
| | | <view class="flex_column contentFont"> |
| | | <view>{{item.code}}</view> |
| | | <view>{{item.name}}</view> |
| | | <view>{{item.wksp_name}}</view> |
| | | </view> |
| | | </view> |
| | | <u-radio style="line-height: 44rpx;" size='40' :key="item.code" :name="item.code" |
| | | @change="groupChange(item.code)" activeColor="red"></u-radio> |
| | | </view> |
| | | </u-radio-group> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <u-gap height="12" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style="height:82rpx;"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ç¹æ£æ å |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20 marginTop10" style="width: 200rpx;"> |
| | | <!-- <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> --> |
| | | <uni-data-select v-model="selectValueBZ" :clear="false" :localdata="selectRangeBZ" |
| | | @change="selectChangeBZ"> |
| | | </uni-data-select> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | <u-gap height="12" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style=""> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ç¹æ£é¡¹ç®å
容 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view :style="{maxHeight:(($DeviceInformation.screenHeight-530)*3)+'rpx',overflow: 'scroll'}"> --> |
| | | <view :style="{maxHeight:'1000rpx',overflow: 'scroll'}"> |
| | | |
| | | <view class="center_border flex_column" style="margin: 10rpx;" v-for="item in centerContent" |
| | | :key="item.code"> |
| | | |
| | | <view class="flex_between marginBottom10"> |
| | | <view class="center_title">{{item.name}}</view> |
| | | <view class="marginRight20" v-if="item.isscan==='Y'"> |
| | | <u-icon name="scan" @click="centerScanClick(item.code)" color="red" size="56"> |
| | | </u-icon> |
| | | </view> |
| | | </view> |
| | | <view class="flex_between marginBottom10"> |
| | | <view class='inputClass marginTop10'> |
| | | <u--input :disabled='item.isDisabled' placeholder="请è¾å
¥" border="surround" |
| | | v-model="item.inputValue"></u--input> |
| | | </view> |
| | | |
| | | |
| | | <view class="flex_center"> |
| | | <u-button type="primary" :plain="item.isOK!=='OK'" :disabled="item.isDisabled" |
| | | text="æ£å¸¸" @click="bwClick(item,'OK')"> |
| | | </u-button> |
| | | <u-button type="warning" :plain="item.isOK!=='NG'" :disabled="item.isDisabled" |
| | | text="å¼å¸¸" @click="bwClick(item,'NG')"> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | <view class="titleFont"> |
| | | {{item.chkdesc}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="footer"> |
| | | <view class="head_block" style="align-items: center;padding: 0 23rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ç¹æ£ç»æ |
| | | </view> |
| | | </view> |
| | | <view class="flex_center"> |
| | | <u-button type="primary" :plain="resultValue!=='OK'" |
| | | :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0" |
| | | text="æ£å¸¸" @click="resultClick('OK')"></u-button> |
| | | <u-button type="warning" :plain="resultValue!=='NG'" |
| | | :disabled="centerContent.some(item=>item.isDisabled===true)||centerContent.length===0" |
| | | text="å¼å¸¸" @click="resultClick('NG')"></u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-button size="large" :loading="isDisabledSubmitButton" loadingText="æ£å¨æäº¤,请ç¨ç..." type="primary" |
| | | @click="submit" :disabled="resultValue===''" text="确认æäº¤"> |
| | | </u-button> |
| | | |
| | | </view> |
| | | |
| | | <scan-code></scan-code> |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | // CheckScanDeviceQrCodeData, |
| | | // SelectScanDeviceQrCodeItem, |
| | | // CheckScanDeviceTemp, |
| | | // AppDeviceCheckSave |
| | | } from '../../config/api.js' |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | |
| | | const _this = this |
| | | uni.$off('scancodedate') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("æ«æå°çå
容为:", content) |
| | | _this.getCheckScanDeviceQrCodeData(content) |
| | | }) |
| | | }, |
| | | onPullDownRefresh() { |
| | | setTimeout(() => { |
| | | this.init(() => { |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | }, 1000); |
| | | }, |
| | | data() { |
| | | return { |
| | | isDisabledSubmitButton: false, |
| | | |
| | | selectValueBZ: '', |
| | | selectRangeBZ: [], |
| | | |
| | | topContent: [], //æ«æç¹æ£å·¥ä½æå¸¦åºæ¥çå
容 |
| | | centerContent: [], //ç¹æ£é¡¹ç®å
容 |
| | | scanContent: '', //æ«ææ«åºæ¥çå¼ |
| | | radioValue: '', //åéæ¡çå¼ |
| | | resultValue: '', //ç¹æ£ç»æå¼ |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | |
| | | // this.getCheckScanDeviceQrCodeData('SB001') |
| | | // this.getCheckScanDeviceQrCodeData('SB002') |
| | | // this.getCheckScanDeviceQrCodeData('SB003') |
| | | |
| | | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | // æ«ç ç¹æ£å·¥ä½ çæ«ç æ¡ç¹å» |
| | | topScanClick() { |
| | | let that = this; |
| | | |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | that.scanContent = res.result; |
| | | let flag = false |
| | | that.topContent.forEach(item => { |
| | | if (item.code === res.result) { |
| | | flag = true |
| | | } |
| | | }) |
| | | if (flag) { |
| | | that.$u.toast('æ¤æ¡ç å·²æ«æï¼å·²å¨å表ä¸ï¼') |
| | | } else { |
| | | //å¤çæ«ç äºä»¶ |
| | | that.getCheckScanDeviceQrCodeData(that.scanContent); |
| | | } |
| | | }, |
| | | complete: function(res) { |
| | | |
| | | }, |
| | | fail: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // ç¹æ£é¡¹ç®å
容 çæ«ç æ¡ç¹å» |
| | | centerScanClick(val) { |
| | | let that = this; |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | // that.scanContent = res.result; |
| | | |
| | | |
| | | if (res.result === val) { |
| | | that.centerContent.find(item => item.code === val).isDisabled = false |
| | | that.centerContent.find(item => item.code === val).isOK = 'OK' |
| | | |
| | | if (that.centerContent.every(r => r.isOK === 'OK')) { |
| | | that.resultValue = 'OK' |
| | | } |
| | | if (that.centerContent.some(r => r.isOK === 'NG')) { |
| | | that.resultValue = 'NG' |
| | | } |
| | | if (that.centerContent.some(r => r.isOK === '')) { |
| | | that.resultValue = '' |
| | | } |
| | | |
| | | |
| | | that.$forceUpdate() |
| | | } else { |
| | | uni.$u.toast('ææ«æ¡ç ä¸ç¹æ£é¨ä½ä¸ç¬¦åï¼') |
| | | } |
| | | |
| | | |
| | | //å¤çæ«ç äºä»¶ |
| | | // that.SearchBarcode(); |
| | | }, |
| | | complete: function(res) {}, |
| | | fail: function(res) {} |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // è·åç¹æ£å·¥ä½ |
| | | async getCheckScanDeviceQrCodeData(val) { |
| | | const data = { |
| | | eqpcode: val |
| | | } |
| | | const res = await CheckScanDeviceQrCodeData(data) |
| | | |
| | | if (res.code === '200' && res.data[0].eqpchkmain_code !== null) { //表示ç»å®äºæ å |
| | | this.topContent.unshift(res.data[0]) |
| | | // console.log(res.data[0],222); |
| | | this.getCheckScanDeviceTemp(res.data[0].code) |
| | | } else if (res.code === '200' && res.data[0].eqpchkmain_code === null) { |
| | | uni.$u.toast('å½åè®¾å¤æªè®¾ç½®ç¹æ£æ åç»å®ç¹æ£é¡¹ç®ï¼') |
| | | } |
| | | |
| | | }, |
| | | // è·åç¹æ£æ å |
| | | async getCheckScanDeviceTemp(eqpcode) { |
| | | const res = await CheckScanDeviceTemp({ |
| | | eqpcode |
| | | }) |
| | | this.selectRangeBZ = res.data.map(({ |
| | | code, |
| | | name |
| | | }) => ({ |
| | | text: name, |
| | | value: code |
| | | })) |
| | | |
| | | this.selectValueBZ = this.selectRangeBZ[0].value |
| | | |
| | | this.getSelectScanDeviceQrCodeItem(eqpcode, this.selectValueBZ) |
| | | |
| | | }, |
| | | //ç¹æ£æ å䏿鿩æ¹å |
| | | selectChangeBZ(val) { |
| | | this.selectValueBZ = val |
| | | |
| | | this.getSelectScanDeviceQrCodeItem(this.radioValue, this.selectValueBZ) |
| | | }, |
| | | // è·åç¹æ£é¡¹ç®å
容 |
| | | async getSelectScanDeviceQrCodeItem(eqpcode, checktempcode) { |
| | | |
| | | const data = { |
| | | eqpcode, |
| | | checktempcode |
| | | } |
| | | const res = await SelectScanDeviceQrCodeItem(data) |
| | | |
| | | if (res.code === '200') { |
| | | this.centerContent = res.data |
| | | |
| | | this.centerContent.forEach(item => { |
| | | item.inputValue = '' |
| | | item.isDisabled = item.isscan === 'Y' |
| | | item.isOK = item.isscan !== 'Y' ? 'OK' : '' |
| | | }) |
| | | |
| | | if (this.centerContent.every(r => r.isOK === 'OK')) { |
| | | this.resultValue = 'OK' |
| | | } |
| | | if (this.centerContent.some(r => r.isOK === 'NG')) { |
| | | this.resultValue = 'NG' |
| | | } |
| | | if (this.centerContent.some(r => r.isOK === '')) { |
| | | this.resultValue = '' |
| | | } |
| | | |
| | | this.radioValue = eqpcode |
| | | this.$forceUpdate() |
| | | } |
| | | |
| | | |
| | | }, |
| | | // åéæé®ç¹å» |
| | | groupChange(val) { |
| | | this.radioValue = val |
| | | this.$forceUpdate() |
| | | this.getCheckScanDeviceTemp(val) |
| | | }, |
| | | |
| | | // é¨ä½æ£å¸¸ å¼å¸¸æé®ç¹å» |
| | | bwClick(item, val) { |
| | | item.isOK = val |
| | | if (this.centerContent.every(item => item.isOK !== '')) { |
| | | if (this.centerContent.every(item => item.isOK === 'OK')) { |
| | | this.resultValue = 'OK' |
| | | } else { |
| | | this.resultValue = 'NG' |
| | | } |
| | | } |
| | | this.$forceUpdate() //强å¶è§å¾æ´æ° |
| | | }, |
| | | // ç¹æ£ç»æç¹å» |
| | | resultClick(val) { |
| | | this.resultValue = val |
| | | this.$forceUpdate() //强å¶è§å¾æ´æ° |
| | | }, |
| | | // 确认æäº¤æé® |
| | | async submit() { |
| | | const children = [] |
| | | this.centerContent.forEach(item => { |
| | | children.push({ |
| | | seq: item.seq, |
| | | itemcode: item.code, |
| | | cycle: item.cycle, |
| | | value: item.inputValue, |
| | | result: item.isOK |
| | | }) |
| | | |
| | | }) |
| | | const data = { |
| | | code: this.topContent.find(item => item.code === this.radioValue).code, |
| | | name: this.topContent.find(item => item.code === this.radioValue).name, |
| | | // standcode: this.topContent.find(item => item.code === this.radioValue).eqpchkmain_code, |
| | | standcode: this.selectValueBZ, |
| | | result: this.resultValue, |
| | | children: children |
| | | } |
| | | |
| | | // console.log(data, 8); |
| | | |
| | | |
| | | this.isDisabledSubmitButton = true |
| | | const res = await AppDeviceCheckSave(uni.getStorageSync("username"), data) |
| | | if (res.code === '200') { |
| | | |
| | | // this.$refs.uNotify.show({ |
| | | // top: 160, |
| | | // type: 'primary', |
| | | // color: '#fff', |
| | | // bgColor: '#436df5', |
| | | // message: 'æäº¤æå!', |
| | | // duration: 1000 * 3, |
| | | // fontSize: 30, |
| | | // safeAreaInsetTop: false |
| | | // }) |
| | | uni.$u.toast('æäº¤æåï¼') |
| | | this.isDisabledSubmitButton = false |
| | | this.topContent.forEach((item, index) => { |
| | | if (item.code === this.radioValue) { |
| | | this.topContent.splice(index, 1) |
| | | } |
| | | }) |
| | | this.radioValue = this.topContent[0].code |
| | | if (this.radioValue.toString().length > 0) { |
| | | // this.getSelectScanDeviceQrCodeItem(this.radioValue, this.topContent.find(i => i.code === this |
| | | // .radioValue).eqpchkmain_code) |
| | | this.getCheckScanDeviceTemp(val) |
| | | } |
| | | |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import url('@/style/global.css'); |
| | | |
| | | ::v-deep .uicon-arrow-left>span { |
| | | display: block; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="设å¤ç»´ä¿®"></page-nav> |
| | | |
| | | |
| | | <view v-show="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="boxImg"></div> |
| | | <div class="scanText">ææ è®¾å¤å¯ç»´ä¿®</div> |
| | | </div> |
| | | </view> |
| | | |
| | | |
| | | <view v-show="topContent.length!==0"> |
| | | <view class="mainContent" :style="{maxHeight:'1000rpx',overflow: 'scroll'}"> |
| | | |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ«æç»´ä¿®å·¥ä½ |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20"> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <view class=" marginLeft20 marginRight20 flex_column" |
| | | style="max-height: 420rpx;overflow:scroll;"> |
| | | <u-radio-group v-model="radioValue" class="flex_column"> |
| | | <view class="marginBottom20" style="position: relative" |
| | | @click="groupChange(item.docu_code)" v-for="item in topContent" |
| | | :key="item.docu_code"> |
| | | <view style="display: flex;float: left;"> |
| | | <view class="titleFont"> |
| | | <view>ç»´ä¿®ç³è¯·å:</view> |
| | | <view>å·¥ä½ç¼ç :</view> |
| | | <view>å·¥ä½åç§°:</view> |
| | | <view>ç产车é´:</view> |
| | | <view>ç³è¯·äººå:</view> |
| | | <view>ç³è¯·æ¶é´:</view> |
| | | <view>æ
鿥æº:</view> |
| | | <view>æ
éæè¿°:</view> |
| | | </view> |
| | | <view class="contentFont"> |
| | | <view>{{item.docu_code}}</view> |
| | | <view>{{item.eqpcode}}</view> |
| | | <view>{{item.eqpname}}</view> |
| | | <view>{{item.wksp_name}}</view> |
| | | <view>{{item.request_person}}</view> |
| | | <view>{{item.request_date}}</view> |
| | | <view>{{item.source}}</view> |
| | | <view style="width:400rpx;word-wrap:break-word"> |
| | | {{item.failure_descript}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-radio size='40' style='position: absolute;top: 45%;right: 0;' |
| | | :key="item.docu_code" :name="item.docu_code" |
| | | @change="groupChange(item.docu_code)" activeColor="red"></u-radio> |
| | | |
| | | </view> |
| | | </u-radio-group> |
| | | </view> |
| | | |
| | | </view> |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ
éæè¿° |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class='inputClass contentFont' style="margin: 0 20rpx; width: 95%;"> |
| | | <u--textarea placeholder="请è¾å
¥" confirm-type="send" border="surround" height='100' |
| | | v-model="descMessage"> |
| | | </u--textarea> |
| | | </view> |
| | | |
| | | <view style="display: flex;"> |
| | | <view v-for="(pic,index) in fileList" :key="pic.name"> |
| | | <view style="margin: 20rpx 0rpx 20rpx 20rpx;position: relative;"> |
| | | <u-icon name="close" color="#fff" size="26" |
| | | style="position: absolute;z-index: 10;right: 0;background-color: black;border-radius:50%;" |
| | | @click="deletePic(pic)"></u-icon> |
| | | |
| | | <image :src="pic.uri" @click="imgPreview(pic)" class="upLoadImg"></image> |
| | | </view> |
| | | </view> |
| | | <image v-if="fileList.length<3" src="../../static/img/uploadImg.png" style="width: 100rpx;height: 100rpx;border: 1rpx solid #eff0f1;border-radius: 20rpx; |
| | | margin: 20rpx;padding: 30rpx; |
| | | " @click="selectPics"> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | åæºç»´ä¿® |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20" style="width: 200rpx;display: flex;"> |
| | | <u-button type="primary" :plain="isStop!=='Y'" text="æ¯" @click="isStopClick('Y')"> |
| | | </u-button> |
| | | <u-button type="warning" :plain="isStop!=='N'" text="å¦" @click="isStopClick('N')"> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view v-show="isStop==='N'" class="head" style="padding-bottom: 10rpx;padding-bottom: 20rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ç»´ä¿®å
容 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class='inputClass contentFont' style="margin: 0 20rpx; width: 95%;"> |
| | | <u--textarea placeholder="请è¾å
¥" confirm-type="send" border="surround" height='100' |
| | | v-model="descMessage2"> |
| | | </u--textarea> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | <!-- margin-bottom: 110rpx; --> |
| | | <view v-show="isStop==='N'" class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ´æ¢å¤ä»¶ |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class='inputClass contentFont' style="margin: 0 20rpx; width: 95%;"> |
| | | <u--textarea placeholder="请è¾å
¥" confirm-type="send" border="surround" height='100' |
| | | v-model="descMessage3"> |
| | | </u--textarea> |
| | | </view> |
| | | |
| | | <view style="display: flex;"> |
| | | <view v-for="(pic,index) in fileList2" :key="pic.name"> |
| | | <view style="margin: 20rpx 0rpx 20rpx 20rpx;position: relative;"> |
| | | <u-icon name="close" color="#fff" size="26" |
| | | style="position: absolute;z-index: 10;right: 0;background-color: black;border-radius:50%;" |
| | | @click="deletePic(pic)"></u-icon> |
| | | |
| | | <image :src="pic.uri" @click="imgPreview2(pic)" class="upLoadImg"></image> |
| | | </view> |
| | | </view> |
| | | <image v-if="fileList2.length<3" src="../../static/img/uploadImg.png" style="width: 100rpx;height: 100rpx;border: 1rpx solid #eff0f1;border-radius: 20rpx; |
| | | margin: 20rpx;padding: 30rpx; |
| | | " @click="selectPics2"> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class="footer" style="min-height:62rpx;"> |
| | | <u-button size="large" :loading="isDisabledSubmitButton" loadingText="æ£å¨æäº¤,请ç¨ç..." type="primary" |
| | | @click="submit" |
| | | :disabled="isStop==='Y'?descMessage.toString().length===0:descMessage.toString().length===0||descMessage2.toString().length===0" |
| | | text="确认æäº¤"> |
| | | </u-button> |
| | | </view> |
| | | |
| | | |
| | | </view> |
| | | |
| | | <scan-code></scan-code> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | RepairScanDeviceQrCodeDataList, |
| | | } from '../../config/api.js' |
| | | import { |
| | | data |
| | | } from '../../uni_modules/uview-ui/libs/mixin/mixin.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("æ«æå°çå
容为:", content) |
| | | // _this.getCheckScanDeviceQrCodeData(content) |
| | | |
| | | let r = _this.topContent.find(i => i.docu_code === content) |
| | | |
| | | if (r === undefined) { |
| | | uni.$u.toast('ææ«çäºç»´ç ä¸å¨å表ä¸ï¼') |
| | | } else { |
| | | _this.topContent.forEach((item, index) => { |
| | | if (item.docu_code === content) { |
| | | _this.topContent.splice(index, 1) |
| | | } |
| | | }) |
| | | _this.topContent.unshift(r) |
| | | _this.radioValue = content |
| | | } |
| | | }) |
| | | }, |
| | | onPullDownRefresh() { |
| | | setTimeout(() => { |
| | | this.init(() => { |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | }, 1000); |
| | | }, |
| | | data() { |
| | | return { |
| | | isDisabledSubmitButton: false, |
| | | |
| | | topContent: [], //æ«æä¿å
»å·¥ä½æå¸¦åºæ¥çå
容 |
| | | centerContent: [], // |
| | | scanContent: '', //æ«ææ«åºæ¥çå¼ |
| | | radioValue: '', //åéæ¡çå¼ |
| | | descMessage: '', //æ
éæè¿° |
| | | imgPreviewSrcs: [], //å¾çé¢è§src æ
éæè¿° |
| | | fileList: [], //å¾çæ°ç» æ
éæè¿° |
| | | isStop: 'Y', |
| | | descMessage2: '', //ç»´ä¿®å
容 |
| | | descMessage3: '', //æ´æ¢å¤ä»¶ |
| | | fileList2: [], //æ´æ¢å¤ä»¶å¾ç |
| | | imgPreviewSrcs2: [], |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | this.getRepairScanDeviceQrCodeDataList() |
| | | }, |
| | | methods: { |
| | | // éæ©å¾ç |
| | | selectPics() { |
| | | var that = this; |
| | | uni.chooseImage({ |
| | | count: 3, |
| | | success: (res) => { |
| | | const files = res.tempFiles; |
| | | for (let i = 0; i < files.length; i++) { |
| | | let obj = new Object(); |
| | | obj.name = 'files1;' + i + new Date().getTime(); |
| | | obj.uri = files[i].path; |
| | | that.fileList.push(obj); |
| | | if (obj.src == null || obj.src == '' || obj.src == undefined) { |
| | | that.imgPreviewSrcs.push(obj.uri) |
| | | } else { |
| | | that.imgPreviewSrcs.push(obj.src) |
| | | } |
| | | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | selectPics2() { |
| | | var that = this; |
| | | uni.chooseImage({ |
| | | count: 3, |
| | | success: (res) => { |
| | | const files = res.tempFiles; |
| | | for (let i = 0; i < files.length; i++) { |
| | | let obj = new Object(); |
| | | obj.name = 'files2;' + i + new Date().getTime(); |
| | | obj.uri = files[i].path; |
| | | that.fileList2.push(obj); |
| | | if (obj.src == null || obj.src == '' || obj.src == undefined) { |
| | | that.imgPreviewSrcs2.push(obj.uri) |
| | | } else { |
| | | that.imgPreviewSrcs2.push(obj.src) |
| | | } |
| | | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // é¢è§å¾ç |
| | | imgPreview(img) { |
| | | uni.previewImage({ |
| | | current: this.fileList.findIndex(i => i.name === img.name), |
| | | indicator: "number", |
| | | loop: true, |
| | | urls: this.imgPreviewSrcs |
| | | }) |
| | | }, |
| | | imgPreview2(img) { |
| | | uni.previewImage({ |
| | | current: this.fileList2.findIndex(i => i.name === img.name), |
| | | indicator: "number", |
| | | loop: true, |
| | | urls: this.imgPreviewSrcs2 |
| | | }) |
| | | }, |
| | | // å é¤å¾ç |
| | | deletePic(img) { |
| | | this.fileList = this.fileList.filter(i => i.name !== img.name) |
| | | this.fileList2 = this.fileList2.filter(i => i.name !== img.name) |
| | | this.imgPreviewSrcs = this.imgPreviewSrcs.filter(i => i !== img.uri) |
| | | this.imgPreviewSrcs2 = this.imgPreviewSrcs2.filter(i => i !== img.uri) |
| | | }, |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | // åéæé®éä¸å¼æ¹å |
| | | groupChange(val) { |
| | | this.radioValue = val |
| | | this.descMessage = '' |
| | | this.imgPreviewSrcs = [] |
| | | this.fileList = [] |
| | | this.isStop = 'Y' |
| | | this.descMessage2 = '' |
| | | this.descMessage3 = '' |
| | | this.fileList2 = [] |
| | | this.imgPreviewSrcs2 = [] |
| | | this.$forceUpdate() |
| | | }, |
| | | // åæºç»´ä¿® |
| | | isStopClick(val) { |
| | | this.isStop = val |
| | | if (val === 'Y') { |
| | | this.descMessage2 = '' |
| | | this.descMessage3 = '' |
| | | this.fileList2 = [] |
| | | this.imgPreviewSrcs2 = [] |
| | | } |
| | | |
| | | }, |
| | | // æ«ç å·¥ä½ çæ«ç æ¡ç¹å» |
| | | topScanClick() { |
| | | let that = this; |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | that.scanContent = res.result; |
| | | |
| | | |
| | | |
| | | let r = that.topContent.find(i => i.docu_code === that.scanContent) |
| | | |
| | | if (r === undefined) { |
| | | uni.$u.toast('ææ«çäºç»´ç ä¸å¨å表ä¸ï¼') |
| | | } else { |
| | | that.topContent.forEach((item, index) => { |
| | | if (item.docu_code === that.scanContent) { |
| | | that.topContent.splice(index, 1) |
| | | } |
| | | }) |
| | | that.topContent.unshift(r) |
| | | that.radioValue = that.scanContent |
| | | } |
| | | |
| | | }, |
| | | complete: function(res) { |
| | | |
| | | }, |
| | | fail: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // è·åç»´ä¿®å·¥ä½ |
| | | async getRepairScanDeviceQrCodeDataList(val) { |
| | | const res = await RepairScanDeviceQrCodeDataList() |
| | | if (res.code === '200') { |
| | | this.topContent = res.data |
| | | this.radioValue = this.topContent.length > 0 ? this.topContent[0].docu_code : '' |
| | | } |
| | | }, |
| | | |
| | | // 确认æäº¤æé® |
| | | async submit() { |
| | | const header = { |
| | | // 'Content-Type': 'multipart/form-data', |
| | | 'Content-Type': 'application/x-www-form-urlencoded', |
| | | 'rediskey': uni.getStorageSync('rediskey'), |
| | | 'admin': uni.getStorageSync('usercode'), |
| | | 'username': encodeURIComponent(uni.getStorageSync('username')), |
| | | 'navTabId': uni.getStorageSync('usercode'), |
| | | 'userid': uni.getStorageSync('userid'), |
| | | 'guid': uni.getStorageSync('guid'), |
| | | 'usertype': 'APP' |
| | | } |
| | | |
| | | const result = this.topContent.find(item => item.docu_code === this.radioValue) |
| | | const formData = { |
| | | username: uni.getStorageSync('username'), |
| | | docu_code: result.docu_code, |
| | | eqpcode: result.eqpcode, |
| | | wkshpcode: result.wksp_code, |
| | | faultdescr: this.descMessage, |
| | | is_stoprepair: this.isStop, |
| | | // files1: this.fileList, |
| | | repaircontent: this.descMessage2, |
| | | replaceparts: this.descMessage3 |
| | | } |
| | | // console.log(formData) |
| | | // console.log([...this.fileList, ...this.fileList2].length) |
| | | this.isDisabledSubmitButton = true |
| | | uni.uploadFile({ |
| | | url: this.$baseUrl + '/AppDeviceManage/RepairScanDeviceSave', |
| | | files: [...this.fileList, ...this.fileList2].length === 0 ? [{ |
| | | "uri": "/" |
| | | }] : [...this.fileList, ...this.fileList2], |
| | | header: header, |
| | | formData: formData, |
| | | success: (res) => { |
| | | console.log(res) |
| | | let result = JSON.parse(res.data) |
| | | if (res.statusCode == 200 && result.code == '200') { |
| | | uni.$u.toast('æäº¤æåï¼') |
| | | this.topContent = this.topContent.filter(i => i.docu_code !== this.radioValue) |
| | | this.radioValue = this.topContent.length === 0 ? '' : this.topContent[0] |
| | | .docu_code |
| | | this.descMessage = '' |
| | | this.imgPreviewSrcs = [] |
| | | this.fileList = [] |
| | | this.isStop = 'Y' |
| | | this.descMessage2 = '' |
| | | this.descMessage3 = '' |
| | | this.fileList2 = [] |
| | | this.imgPreviewSrcs2 = [] |
| | | } else { |
| | | uni.$u.toast(result.Message) |
| | | } |
| | | this.isDisabledSubmitButton = false |
| | | }, |
| | | fail(res) { |
| | | uni.$u.toast('æäº¤å¤±è´¥ï¼') |
| | | this.isDisabledSubmitButton = false |
| | | }, |
| | | }) |
| | | |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import url('@/style/global.css'); |
| | | |
| | | .u-radio { |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | ::v-deep .uicon-arrow-left>span { |
| | | display: block; |
| | | } |
| | | |
| | | ::v-deep .uicon-camera-fill { |
| | | font-size: 60rpx !important; |
| | | } |
| | | |
| | | .uploader { |
| | | /deep/.u-add-tips { |
| | | display: none; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .uni-progress-bar { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | .upLoadImg { |
| | | width: 160rpx; |
| | | height: 160rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="设å¤ç»´ä¿®ç³è¯·"></page-nav> |
| | | |
| | | |
| | | <view v-show="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="scanImg" @click="topScanClick"></div> |
| | | <div class="scanText">æ«æç»´ä¿®å·¥ä½</div> |
| | | </div> |
| | | </view> |
| | | |
| | | |
| | | <view v-show="topContent.length!==0"> |
| | | <view class="mainContent"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head" style="max-height: 370rpx;overflow:scroll;"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ«æç»´ä¿®å·¥ä½ |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20"> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <view class="marginTop20 marginLeft20 marginRight20 flex_column"> |
| | | <!-- <u-radio-group class=""> --> |
| | | <view class="marginBottom20 flex_between" @click="groupChange(item.code)" |
| | | v-for="item in topContent" :key="item.code"> |
| | | <view style="display: flex;"> |
| | | <view class="flex_column titleFont"> |
| | | <view>å·¥ä½ç¼ç ï¼</view> |
| | | <view>å·¥ä½åç§°ï¼</view> |
| | | <view>ç产车é´ï¼</view> |
| | | </view> |
| | | <view class="flex_column contentFont"> |
| | | <view>{{item.code}}</view> |
| | | <view>{{item.name}}</view> |
| | | <view>{{item.wksp_name}}</view> |
| | | </view> |
| | | </view> |
| | | <!-- <u-radio size='40' :key="item.code" :name="item.code" |
| | | @change="groupChange(item.code)" activeColor="red"></u-radio> --> |
| | | </view> |
| | | <!-- </u-radio-group> --> |
| | | </view> |
| | | |
| | | </view> |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ
éæ¥æº |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20" style="width: 200rpx;"> |
| | | <uni-data-select v-model="selectValue" :clear="false" :localdata="selectRange" |
| | | @change="selectChange"> |
| | | </uni-data-select> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-gap height="20" bgColor="#eff0f1"></u-gap> |
| | | |
| | | <view class="head" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ
éæè¿° |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class='inputClass contentFont' style="margin: 0 20rpx; width: 95%;"> |
| | | <u--textarea placeholder="请è¾å
¥" confirm-type="send" border="surround" height='140' |
| | | v-model="descMessage"> |
| | | </u--textarea> |
| | | </view> |
| | | |
| | | |
| | | |
| | | <view style="display: flex;"> |
| | | <view v-for="(pic,index) in fileList" :key="pic.name"> |
| | | <view style="margin: 20rpx 0rpx 20rpx 20rpx;position: relative;"> |
| | | <u-icon name="close" color="#fff" size="26" |
| | | style="position: absolute;z-index: 10;right: 0;background-color: black;border-radius:50%;" |
| | | @click="deletePic(pic)"></u-icon> |
| | | |
| | | <image :src="pic.uri" @click="imgPreview(pic)" class="upLoadImg"></image> |
| | | </view> |
| | | </view> |
| | | <image v-if="fileList.length<3" src="../../static/img/uploadImg.png" style="width: 100rpx;height: 100rpx;border: 1rpx solid #eff0f1;border-radius: 20rpx; |
| | | margin: 20rpx;padding: 30rpx; |
| | | " @click="selectPics"> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | |
| | | <u-button size="large" :loading="isDisabledSubmitButton" loadingText="æ£å¨æäº¤,请ç¨ç..." type="primary" |
| | | @click="submit" :disabled="descMessage.toString().length===0" text="确认æäº¤"> |
| | | </u-button> |
| | | |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | MaintainScanDeviceApplyQrCodeData, |
| | | MaintainScanDeviceApplySave |
| | | } from '../../config/api.js' |
| | | import { |
| | | data |
| | | } from '../../uni_modules/uview-ui/libs/mixin/mixin.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("æ«æå°çå
容为:", content) |
| | | _this.getMaintainScanDeviceApplyQrCodeData(content) |
| | | }) |
| | | }, |
| | | onPullDownRefresh() { |
| | | setTimeout(() => { |
| | | this.init(() => { |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | }, 1000); |
| | | }, |
| | | data() { |
| | | return { |
| | | isDisabledSubmitButton: false, |
| | | |
| | | topContent: [], //æ«æä¿å
»å·¥ä½æå¸¦åºæ¥çå
容 |
| | | centerContent: [], //ä¿å
»é¡¹ç®å
容 |
| | | scanContent: '', //æ«ææ«åºæ¥çå¼ |
| | | // radioValue: '', //åéæ¡çå¼ |
| | | |
| | | selectValue: 'A', |
| | | selectRange: [{ |
| | | value: 'A', |
| | | text: '设å¤ç¹æ£' |
| | | }, { |
| | | value: 'B', |
| | | text: '设å¤ä¿å
»' |
| | | }, { |
| | | value: 'C', |
| | | text: 'å®ç¯å¼å«' |
| | | }, { |
| | | value: 'D', |
| | | text: 'æå·¥' |
| | | }], |
| | | descMessage: '', //æ
éæè¿° |
| | | |
| | | imgPreviewSrcs: [], //å¾çé¢è§src |
| | | fileList: [], //å¾çæ°ç» |
| | | } |
| | | }, |
| | | created() { |
| | | // const a = [{ |
| | | // name: 1 |
| | | // }] |
| | | // const b = [{ |
| | | // name: 1 |
| | | // }] |
| | | // console.log([...a, ...b]) |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | this.getMaintainScanDeviceApplyQrCodeData('SB001') |
| | | // this.getMaintainScanDeviceApplyQrCodeData('SB002') |
| | | // this.getMaintainScanDeviceApplyQrCodeData('SB003') |
| | | // this.getMaintainScanDeviceApplyQrCodeData('SB005') |
| | | }, |
| | | methods: { |
| | | // éæ©å¾ç |
| | | selectPics() { |
| | | var that = this; |
| | | uni.chooseImage({ |
| | | count: 3, |
| | | success: (res) => { |
| | | const files = res.tempFiles; |
| | | for (let i = 0; i < files.length; i++) { |
| | | let obj = new Object(); |
| | | obj.name = 'photo' + i + new Date().getTime(); |
| | | obj.uri = files[i].path; |
| | | that.fileList.push(obj); |
| | | if (obj.src == null || obj.src == '' || obj.src == undefined) { |
| | | that.imgPreviewSrcs.push(obj.uri) |
| | | } else { |
| | | that.imgPreviewSrcs.push(obj.src) |
| | | } |
| | | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | // é¢è§å¾ç |
| | | imgPreview(img) { |
| | | uni.previewImage({ |
| | | current: this.fileList.findIndex(i => i.name === img.name), |
| | | indicator: "number", |
| | | loop: true, |
| | | urls: this.imgPreviewSrcs |
| | | |
| | | }) |
| | | }, |
| | | // å é¤å¾ç |
| | | deletePic(img) { |
| | | console.log(img) |
| | | this.fileList = this.fileList.filter(i => i.name !== img.name) |
| | | this.imgPreviewSrcs = this.imgPreviewSrcs.filter(i => i !== img.uri) |
| | | }, |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | |
| | | selectChange(val) { |
| | | console.log(val) |
| | | }, |
| | | // æ«ç å·¥ä½ çæ«ç æ¡ç¹å» |
| | | topScanClick() { |
| | | // if (this.topContent.length > 0) { |
| | | // return uni.$u.toast('请å
æäº¤æ¤ç»´ä¿®ç³è¯·ï¼') |
| | | // } |
| | | |
| | | let that = this; |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | that.scanContent = res.result; |
| | | let flag = false |
| | | that.topContent.forEach(item => { |
| | | if (item.code === res.result) { |
| | | flag = true |
| | | } |
| | | }) |
| | | if (flag) { |
| | | that.$u.toast('æ¤æ¡ç å·²æ«æï¼å·²å¨å表ä¸ï¼') |
| | | } else { |
| | | //å¤çæ«ç äºä»¶ |
| | | that.getMaintainScanDeviceApplyQrCodeData(that.scanContent); |
| | | } |
| | | }, |
| | | complete: function(res) { |
| | | |
| | | }, |
| | | fail: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // è·åç»´ä¿®å·¥ä½ |
| | | async getMaintainScanDeviceApplyQrCodeData(val) { |
| | | const data = { |
| | | eqpcode: val |
| | | } |
| | | |
| | | const res = await MaintainScanDeviceApplyQrCodeData(data) |
| | | if (res.code === '200') { |
| | | this.topContent = [] |
| | | this.topContent.unshift(res.data[0]) |
| | | } |
| | | }, |
| | | |
| | | // 确认æäº¤æé® |
| | | async submit() { |
| | | const header = { |
| | | // 'Content-Type': 'multipart/form-data', |
| | | 'Content-Type': 'application/x-www-form-urlencoded', |
| | | 'rediskey': uni.getStorageSync('rediskey'), |
| | | 'admin': uni.getStorageSync('usercode'), |
| | | 'username': encodeURIComponent(uni.getStorageSync('username')), |
| | | 'navTabId': uni.getStorageSync('usercode'), |
| | | 'userid': uni.getStorageSync('userid'), |
| | | 'guid': uni.getStorageSync('guid'), |
| | | 'usertype': 'APP' |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | /* |
| | | å¨çµèä¸è¯·æ±æ¯éè¦H5ç代ç |
| | | ææºä¸è¯·æ±æ¯éè¦APP-PLUSç代ç |
| | | */ |
| | | // #ifdef H5 |
| | | // console.log('H5') |
| | | // let formData = new FormData() |
| | | // formData.append("username", uni.getStorageSync('username')) |
| | | // formData.append("eqpcode", this.topContent[0].code) |
| | | // formData.append("wkshpcode", this.topContent[0].wksp_code) |
| | | // formData.append("faultsourcecode", this.selectValue) |
| | | // formData.append("faultdescr", this.descMessage) |
| | | // this.fileList.forEach((item, index) => { |
| | | // formData.append('files1', item.file) |
| | | // }) |
| | | // MaintainScanDeviceApplySave(formData).then(res => { |
| | | // console.log(res, 1) |
| | | // }) |
| | | // #endif |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // #ifdef APP-PLUS ||MP |
| | | // const temp = [{ |
| | | // name: 'files1' |
| | | // }] |
| | | |
| | | let formData = { |
| | | username: uni.getStorageSync('username'), |
| | | eqpcode: this.topContent[0].code, |
| | | wkshpcode: this.topContent[0].wksp_code, |
| | | faultsourcecode: this.selectValue, |
| | | faultdescr: this.descMessage, |
| | | } |
| | | |
| | | |
| | | console.log(formData) |
| | | |
| | | |
| | | this.isDisabledSubmitButton = true |
| | | uni.uploadFile({ |
| | | url: this.$baseUrl + '/AppDeviceManage/MaintainScanDeviceApplySave', |
| | | files: this.fileList.length === 0 ? [{ |
| | | uri: '/' |
| | | }] : this.fileList, |
| | | // files: [{"uri": "/" }], |
| | | header: header, |
| | | formData: formData, |
| | | success: (res) => { |
| | | let result = JSON.parse(res.data) |
| | | if (res.statusCode == 200 && result.code == '200') { |
| | | uni.$u.toast('æäº¤æåï¼') |
| | | this.fileList = [] |
| | | this.imgPreviewSrcs = [] |
| | | this.descMessage = '' |
| | | this.topContent = [] |
| | | this.centerContent = [] |
| | | } else { |
| | | uni.$u.toast(result.Message) |
| | | } |
| | | this.isDisabledSubmitButton = false |
| | | }, |
| | | fail(res) { |
| | | uni.$u.toast('æäº¤å¤±è´¥ï¼') |
| | | this.isDisabledSubmitButton = false |
| | | }, |
| | | }) |
| | | |
| | | // #endif |
| | | |
| | | |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import url('@/style/global.css'); |
| | | |
| | | ::v-deep .uicon-arrow-left>span { |
| | | display: block; |
| | | } |
| | | |
| | | ::v-deep .uicon-camera-fill { |
| | | font-size: 60rpx !important; |
| | | } |
| | | |
| | | .uploader { |
| | | /deep/.u-add-tips { |
| | | display: none; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .uni-progress-bar { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | .upLoadImg { |
| | | width: 160rpx; |
| | | height: 160rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <page-nav title="ç»´ä¿®éªè¯"></page-nav> |
| | | |
| | | |
| | | <view v-show="topContent.length===0"> |
| | | <div class="sacnBody"> |
| | | <div class="boxImg"></div> |
| | | <div class="scanText">ææ ç»´ä¿®å¯éªè¯</div> |
| | | </div> |
| | | </view> |
| | | |
| | | |
| | | <view v-show="topContent.length!==0"> |
| | | <view class="mainContent"> |
| | | <view> |
| | | <u-gap height="10" bgColor="#eff0f1"></u-gap> |
| | | <view class="head"> |
| | | <view class="head_block"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ«æç»´ä¿®å·¥ä½ |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="marginRight20"> |
| | | <u-icon name="scan" @click="topScanClick" color="red" size="56"></u-icon> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | |
| | | |
| | | <view :style="{maxHeight:'1000rpx',overflow: 'scroll'}"> |
| | | <view class="marginTop20 marginLeft20 marginRight20 flex_column"> |
| | | |
| | | <u-radio-group v-model="radioValue" class="flex_column"> |
| | | <view class="marginBottom20 flex_column" style="width: 100%;" |
| | | @click="groupChange(item.repair_code)" v-for="item in topContent" |
| | | :key="item.repair_code"> |
| | | <view class="flex_between marginBottom20"> |
| | | <view style="display: flex;"> |
| | | <view class="flex_column titleFont"> |
| | | <view>维修维修åï¼</view> |
| | | <view>å·¥ä½ç¼ç ï¼</view> |
| | | <view>å·¥ä½åç§°ï¼</view> |
| | | <view>ç产车é´ï¼</view> |
| | | <view>维修人åï¼</view> |
| | | <view>ç»´ä¿®æ¶é´ï¼</view> |
| | | <view>åæºç»´ä¿®ï¼</view> |
| | | <view>æ
éæè¿°ï¼</view> |
| | | </view> |
| | | <view class="flex_column contentFont"> |
| | | <view>{{item.repair_code}}</view> |
| | | <view>{{item.eqpcode}}</view> |
| | | <view>{{item.eqpname}}</view> |
| | | <view>{{item.wksp_name}}</view> |
| | | <view>{{item.repair_person}}</view> |
| | | <view>{{item.repair_date}}</view> |
| | | <view>{{item.is_shutdown==='Y'?'æ¯':'å¦'}}</view> |
| | | <view style="width:400rpx;word-wrap:break-word"> |
| | | {{item.failure_descript}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <u-radio size='40' :key="item.repair_code" :name="item.repair_code" |
| | | @change="groupChange(item.repair_code)" activeColor="red"></u-radio> |
| | | </view> |
| | | |
| | | |
| | | <view v-show="!item.arrowType" class="repairDetail"> |
| | | 维修详æ
|
| | | </view> |
| | | <view class="head" v-show="!item.arrowType" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ
éæè¿° |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view style="margin: 0 20rpx; width: 95%;" class="contentFont"> |
| | | {{descMessage}} |
| | | </view> |
| | | <view style="display: flex;" v-show="fileList.length!==0"> |
| | | <view v-for="(pic,index) in fileList" :key="index"> |
| | | <view style="margin: 20rpx 0rpx 20rpx 20rpx;position: relative;"> |
| | | <!-- <u-icon name="close" color="#fff" size="26" |
| | | style="position: absolute;z-index: 10;right: 0;background-color: black;border-radius:50%;" |
| | | @click="deletePic(pic)"></u-icon> |
| | | --> |
| | | <image :src="baseUrl+ pic.img1url" @click="imgPreview(pic)" |
| | | class="upLoadImg"> |
| | | </image> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <u-gap height="5" v-show="!item.arrowType" bgColor="#eff0f1" |
| | | style='width: 106%;margin-left: -3%;'></u-gap> |
| | | <view class="head" v-show="!item.arrowType" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | åæºç»´ä¿® |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="" style="width: 90rpx;display: flex;"> |
| | | <u-button type="primary" disabled |
| | | :text="descMessage2.toString().length>0?'å¦':'æ¯'"> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <u-gap height="5" v-show="!item.arrowType&&descMessage2" bgColor="#eff0f1" |
| | | style='width: 106%;margin-left: -3%;'></u-gap> |
| | | |
| | | <view class="head" v-show="!item.arrowType&&descMessage2" |
| | | style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | ç»´ä¿®å
容 |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view style="margin: 0 20rpx; width: 95%;" class="contentFont"> |
| | | {{descMessage2}} |
| | | </view> |
| | | </view> |
| | | |
| | | <u-gap height="5" v-show="!item.arrowType&&descMessage3" bgColor="#eff0f1" |
| | | style='width: 106%;margin-left: -3%;'></u-gap> |
| | | |
| | | <view class="head" v-show="!item.arrowType&&descMessage3" |
| | | style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | æ´æ¢å¤ä»¶ |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view style="margin: 0 20rpx; width: 95%;" class="contentFont"> |
| | | {{descMessage3}} |
| | | </view> |
| | | <view style="display: flex;" v-show="fileList2.length!==0"> |
| | | <view v-for="(pic,index) in fileList2" :key="index"> |
| | | <view style="margin: 20rpx 0rpx 20rpx 20rpx;position: relative;"> |
| | | <!-- <u-icon name="close" color="#fff" size="26" |
| | | style="position: absolute;z-index: 10;right: 0;background-color: black;border-radius:50%;" |
| | | @click="deletePic(pic)"></u-icon> |
| | | --> |
| | | <image :src="baseUrl+ pic.img2url" @click="imgPreview2(pic)" |
| | | class="upLoadImg"> |
| | | </image> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <u-gap height="5" v-show="!item.arrowType" bgColor="#eff0f1" |
| | | style='width: 106%;margin-left: -3%;'></u-gap> |
| | | <view class="head" v-show="!item.arrowType" style="padding-bottom: 10rpx;"> |
| | | <view class="head_block" style="margin-bottom: 10rpx;margin-top:20rpx;"> |
| | | <view class="head_left"> |
| | | <view class="head_bar"></view> |
| | | <view class="head_title"> |
| | | éªè¯ç»æ |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <view class=" " style="width: 190rpx;display: flex;" |
| | | :key="Math.random()+item.repair_code"> |
| | | <u-button :plain="item.resultValue!=='OK'" text="æ£å¸¸" |
| | | @click="resultValueClick(item.repair_code,'OK')" |
| | | :key="Math.random()+item.repair_code+'OK'" type="primary"> |
| | | |
| | | </u-button> |
| | | <u-button type="warning" :plain="item.resultValue!=='NG'" |
| | | :key="Math.random()+item.repair_code+'NG'" text="å¼å¸¸" |
| | | @click="resultValueClick(item.repair_code,'NG')"> |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <u-gap height="16" v-show="!item.arrowType" bgColor="#eff0f1" |
| | | style='width: 106%;margin-left: -3%;'></u-gap> --> |
| | | |
| | | <view style="display: flex;justify-content: center;margin : 10rpx; 0"> |
| | | <view class="arrowClass" |
| | | @click="item.arrowType?arrowDownClick(item):arrowUpClick(item)"> |
| | | <u-icon :name="item.arrowType?'arrow-down':'arrow-up'" color="#c8c8c8" |
| | | size="50"></u-icon> |
| | | </view> |
| | | </view> |
| | | |
| | | |
| | | <u-gap height="16" bgColor="#eff0f1" style="width: 106%;margin-left: -3%;"> |
| | | </u-gap> |
| | | </view> |
| | | </u-radio-group> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="footer" style="min-height:62rpx;"> |
| | | <u-button size="large" :loading="isDisabledSubmitButton" loadingText="æ£å¨æäº¤,请ç¨ç..." type="primary" |
| | | @click="submit" |
| | | :disabled="topContent.length>0? topContent.find(i=>i.repair_code===radioValue).resultValue==='':true" |
| | | text="确认æäº¤"> |
| | | </u-button> |
| | | </view> |
| | | |
| | | |
| | | |
| | | </view> |
| | | |
| | | |
| | | <scan-code></scan-code> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | // RepairVerificationScanDeviceData, |
| | | // RepairVerificationScanDeviceDataSub |
| | | } from '../../config/api.js' |
| | | import { |
| | | data |
| | | } from '../../uni_modules/uview-ui/libs/mixin/mixin.js'; |
| | | import scanCode from '@/components/scan-code/scan-code.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | scanCode |
| | | }, |
| | | onLoad(option) { |
| | | const _this = this |
| | | uni.$off('scancodedate') // æ¯æ¬¡è¿æ¥å
ç§»é¤å
¨å±èªå®ä¹äºä»¶çå¬å¨ |
| | | uni.$on('scancodedate', function(content) { |
| | | console.log("æ«æå°çå
容为:", content) |
| | | |
| | | |
| | | let r = _this.topContent.find(i => i.repair_code === content) |
| | | |
| | | if (r === undefined) { |
| | | uni.$u.toast('ææ«çäºç»´ç ä¸å¨å表ä¸ï¼') |
| | | // return |
| | | } else { |
| | | _this.topContent.forEach((item, index) => { |
| | | if (item.repair_code === content) { |
| | | _this.topContent.splice(index, 1) |
| | | } |
| | | }) |
| | | _this.topContent.unshift(r) |
| | | _this.radioValue = content |
| | | } |
| | | }) |
| | | }, |
| | | onPullDownRefresh() { |
| | | setTimeout(() => { |
| | | this.init(() => { |
| | | uni.stopPullDownRefresh(); |
| | | }) |
| | | }, 1000); |
| | | }, |
| | | data() { |
| | | return { |
| | | isDisabledSubmitButton: false, |
| | | baseUrl: 'http://121.196.36.24:8001', |
| | | topContent: [], //æ«æä¿å
»å·¥ä½æå¸¦åºæ¥çå
容 |
| | | radioValue: '', //åéæ¡çå¼ |
| | | scanContent: '', //æ«ææ«åºæ¥çå¼ |
| | | |
| | | detailContent: [], //æ¾ç¤ºè¯¦æ
å
容 |
| | | |
| | | descMessage: '', // |
| | | descMessage2: '', // |
| | | descMessage3: '', // |
| | | imgPreviewSrcs: [], //å¾çé¢è§src æ
éæè¿° |
| | | fileList: [], //å¾çæ°ç» æ
éæè¿° |
| | | fileList2: [], //æ´æ¢å¤ä»¶å¾ç |
| | | imgPreviewSrcs2: [], |
| | | |
| | | |
| | | |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | this.getRepairVerificationScanDeviceData() |
| | | }, |
| | | methods: { |
| | | // é¢è§å¾ç |
| | | imgPreview(img) { |
| | | console.log(img) |
| | | uni.previewImage({ |
| | | current: this.fileList.findIndex(i => i.img1url === img.img1url), |
| | | indicator: "number", |
| | | loop: true, |
| | | urls: this.imgPreviewSrcs |
| | | }) |
| | | }, |
| | | imgPreview2(img) { |
| | | uni.previewImage({ |
| | | current: this.fileList2.findIndex(i => i.img2url === img.img2url), |
| | | indicator: "number", |
| | | loop: true, |
| | | urls: this.imgPreviewSrcs2 |
| | | }) |
| | | }, |
| | | init() { |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | // åéæé®éä¸å¼æ¹å |
| | | groupChange(repair_code) { |
| | | this.radioValue = repair_code |
| | | this.topContent.forEach(item => { |
| | | if (item.repair_code !== repair_code) { |
| | | item.resultValue = '' |
| | | } |
| | | }) |
| | | this.$forceUpdate() |
| | | |
| | | }, |
| | | |
| | | // æ«ç æ¡ç¹å» |
| | | topScanClick() { |
| | | let that = this; |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | // scanType: ['barCode', 'qrCode'], |
| | | scanType: ['qrCode'], |
| | | success: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | that.scanContent = res.result; |
| | | |
| | | |
| | | |
| | | let r = that.topContent.find(i => i.repair_code === that.scanContent) |
| | | |
| | | if (r === undefined) { |
| | | uni.$u.toast('ææ«çäºç»´ç ä¸å¨å表ä¸ï¼') |
| | | } else { |
| | | that.topContent.forEach((item, index) => { |
| | | if (item.repair_code === that.scanContent) { |
| | | that.topContent.splice(index, 1) |
| | | } |
| | | }) |
| | | that.topContent.unshift(r) |
| | | that.radioValue = that.scanContent |
| | | } |
| | | |
| | | }, |
| | | complete: function(res) { |
| | | |
| | | }, |
| | | fail: function(res) { |
| | | console.log('æ¡ç ç±»åï¼' + res.scanType); |
| | | console.log('æ¡ç å
容ï¼' + res.result); |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | |
| | | // è·åç»´ä¿®å表 |
| | | async getRepairVerificationScanDeviceData(val) { |
| | | const res = await RepairVerificationScanDeviceData() |
| | | if (res.code === '200') { |
| | | this.topContent = res.data |
| | | this.topContent.forEach(i => { |
| | | i.arrowType = true |
| | | i.resultValue = '' |
| | | }) |
| | | if (this.topContent.length > 0) { |
| | | this.getRepairVerificationScanDeviceDataSub(this.topContent[0].repair_code, this.topContent[0] |
| | | .eqpcode, this.topContent[0].wksp_code) |
| | | } |
| | | this.radioValue = this.topContent.length > 0 ? this.topContent[0].repair_code : '' |
| | | // console.log(this.topContent, 1) |
| | | this.$forceUpdate() |
| | | |
| | | } |
| | | }, |
| | | // è·åç»´ä¿®å表详æ
|
| | | async getRepairVerificationScanDeviceDataSub(repair_code, eqpcode, wkshpcode) { |
| | | const res = await RepairVerificationScanDeviceDataSub(repair_code, eqpcode, wkshpcode) |
| | | this.detailContent = res.data |
| | | |
| | | this.descMessage = this.detailContent.failure_descript |
| | | this.fileList = this.detailContent.failure_descriptimg ? this.detailContent.failure_descriptimg.filter( |
| | | i => i.img1url !== '') : [] |
| | | |
| | | this.imgPreviewSrcs = [] |
| | | this.fileList.forEach(i => { |
| | | this.imgPreviewSrcs.push(this.baseUrl + i.img1url) |
| | | }) |
| | | |
| | | this.descMessage2 = this.detailContent.repair_content ? this.detailContent.repair_content : '' |
| | | this.descMessage3 = this.detailContent.repair_part ? this.detailContent.repair_part : '' |
| | | this.fileList2 = this.detailContent.repair_partimage ? this.detailContent.repair_partimage.filter(i => |
| | | i.img2url !== '') : [] |
| | | this.imgPreviewSrcs2 = [] |
| | | this.fileList2.forEach(i => { |
| | | this.imgPreviewSrcs2.push(this.baseUrl + i.img2url) |
| | | }) |
| | | |
| | | this.$forceUpdate() |
| | | }, |
| | | // åä¸çç®å¤´ç¹å» |
| | | arrowDownClick(val) { |
| | | this.topContent.forEach(item => { |
| | | item.arrowType = true |
| | | if (item.repair_code === val.repair_code) { |
| | | item.arrowType = false |
| | | item.resultValue = item.resultValue ? item.resultValue : '' |
| | | this.descMessage = '' |
| | | this.descMessage2 = '' |
| | | this.descMessage3 = '' |
| | | this.fileList = [] |
| | | this.fileList2 = [] |
| | | this.imgPreviewSrcs = [] |
| | | this.imgPreviewSrcs2 = [] |
| | | this.getRepairVerificationScanDeviceDataSub(item.repair_code, item.eqpcode, item.wksp_code) |
| | | } |
| | | }) |
| | | this.$forceUpdate() |
| | | }, |
| | | //åä¸ä»ç®å¤´ç¹å» |
| | | arrowUpClick(val) { |
| | | this.topContent.forEach(item => { |
| | | item.arrowType = true |
| | | }) |
| | | this.$forceUpdate() |
| | | }, |
| | | // éªè¯ç»æç¹å» |
| | | resultValueClick(repair_code, val) { |
| | | console.log(repair_code, val) |
| | | this.topContent.forEach(item => { |
| | | if (item.repair_code === repair_code) { |
| | | item.resultValue = val |
| | | } |
| | | }) |
| | | console.log(this.topContent, 8) |
| | | this.$forceUpdate() |
| | | }, |
| | | // 确认æäº¤æé® |
| | | async submit() { |
| | | const header = { |
| | | // 'Content-Type': 'multipart/form-data', |
| | | 'Content-Type': 'application/x-www-form-urlencoded', |
| | | 'rediskey': uni.getStorageSync('rediskey'), |
| | | 'admin': uni.getStorageSync('usercode'), |
| | | 'username': encodeURIComponent(uni.getStorageSync('username')), |
| | | 'navTabId': uni.getStorageSync('usercode'), |
| | | 'userid': uni.getStorageSync('userid'), |
| | | 'guid': uni.getStorageSync('guid'), |
| | | 'usertype': 'APP' |
| | | } |
| | | |
| | | const result = this.topContent.find(item => item.repair_code === this.radioValue) |
| | | let formData = { |
| | | username: uni.getStorageSync('username'), |
| | | repairwo: result.repair_code, |
| | | eqpcode: result.eqpcode, |
| | | wkshpcode: result.wksp_code, |
| | | result: result.resultValue, |
| | | } |
| | | |
| | | // console.log(formData) |
| | | |
| | | // this.isDisabledSubmitButton = true |
| | | // uni.request({ |
| | | // url: this.$baseUrl + '/AppDeviceManage/RepairVerificationScanDeviceSave', //ä»
为示ä¾ï¼å¹¶éç宿¥å£å°åã |
| | | // data: formData, |
| | | // method: "POST", |
| | | // header: header, |
| | | // success: res => { |
| | | // if (res.statusCode == 200 && res.data.code == '200') { |
| | | // uni.$u.toast('æäº¤æåï¼') |
| | | // // this.topContent = this.topContent.filter(i => i.repair_code !== this |
| | | // // .radioValue) |
| | | // // this.radioValue = this.topContent.length === 0 ? '' : this.topContent[0] |
| | | // // .repair_code |
| | | // // console.log(this.radioValue) |
| | | // // console.log(this.topContent, 9) |
| | | // // this.groupChange(this.radioValue) |
| | | |
| | | // this.getRepairVerificationScanDeviceData() |
| | | // this.isDisabledSubmitButton = false |
| | | // this.$forceUpdate() |
| | | // } |
| | | // }, |
| | | // fail: res => { |
| | | // uni.$u.toast('æäº¤å¤±è´¥ï¼') |
| | | // this.isDisabledSubmitButton = false |
| | | // } |
| | | // }) |
| | | |
| | | |
| | | this.isDisabledSubmitButton = true |
| | | uni.uploadFile({ |
| | | url: this.$baseUrl + '/AppDeviceManage/RepairVerificationScanDeviceSave', |
| | | files: [{ |
| | | "uri": "/" |
| | | }], |
| | | header: header, |
| | | formData: formData, |
| | | success: (res) => { |
| | | let result = JSON.parse(res.data) |
| | | if (res.statusCode == 200 && result.code == '200') { |
| | | uni.$u.toast('æäº¤æåï¼') |
| | | this.topContent = this.topContent.filter(i => i.repair_code !== this |
| | | .radioValue) |
| | | this.radioValue = this.topContent.length === 0 ? '' : this.topContent[0] |
| | | .repair_code |
| | | } else { |
| | | uni.$u.toast(result.Message) |
| | | } |
| | | this.isDisabledSubmitButton = false |
| | | this.$forceUpdate() |
| | | }, |
| | | fail(res) { |
| | | uni.$u.toast('æäº¤å¤±è´¥ï¼') |
| | | this.isDisabledSubmitButton = false |
| | | }, |
| | | }) |
| | | |
| | | |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | @import url('@/style/global.css'); |
| | | |
| | | ::v-deep .uicon-arrow-left>span { |
| | | display: block; |
| | | } |
| | | |
| | | ::v-deep .uicon-camera-fill { |
| | | font-size: 60rpx !important; |
| | | } |
| | | |
| | | |
| | | ::v-deep .uni-progress-bar { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | | .upLoadImg { |
| | | width: 160rpx; |
| | | height: 160rpx; |
| | | border-radius: 20rpx; |
| | | } |
| | | |
| | | .repairDetail { |
| | | margin-top: 20rpx; |
| | | background-color: #eff0f1; |
| | | height: 80rpx; |
| | | font-size: 36rpx; |
| | | width: 106%; |
| | | margin-left: -3%; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | border-radius: 10rpx; |
| | | } |
| | | |
| | | .arrowClass { |
| | | display: flex; |
| | | justify-content: center; |
| | | // background-color: #efefef; |
| | | width: 100rpx; |
| | | // border-radius: 10rpx; |
| | | height: 56rpx; |
| | | } |
| | | </style> |
| | |
| | | <view> |
| | | <!-- <u-notify ref="uNotify" message="ç»å½æå!"></u-notify> --> |
| | | |
| | | <page-nav title="å·¥ä½å°" :topRightMessageCount="topRightMessageCount"></page-nav> |
| | | <page-nav title="å·¥ä½å°"></page-nav> |
| | | |
| | | <!-- :height="$DeviceInformation.screenHeight*6/9" --> |
| | | |
| | | <u-swiper :list="list1" style="margin: 0 0rpx;" indicator height='250' indicatorActiveColor='#436df5' |
| | | indicatorMode='dot' interval='3000' :autoplay='true'></u-swiper> |
| | | |
| | |
| | | break; |
| | | |
| | | |
| | | // 设å¤ç®¡ç |
| | | case '2400': |
| | | url = 'sbgl/rcdj' //æ¥å¸¸ç¹æ£ |
| | | break; |
| | | case '2401': |
| | | url = 'sbgl/dqby' //宿ä¿å
» |
| | | break; |
| | | case '2404': |
| | | url = 'sbgl/wxsq' //ç»´ä¿®ç³è¯· |
| | | break; |
| | | case '2402': |
| | | url = 'sbgl/sbwx' //设å¤ç»´ä¿® |
| | | break; |
| | | case '2403': |
| | | url = 'sbgl/wxyz' //ç»´ä¿®éªè¯ |
| | | break; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | case '2032': |
| | | url = 'zlgl/jyfh' //æ£éªå¤æ ¸ |
| | |
| | | break; |
| | | |
| | | |
| | | case '2042': |
| | | url = 'sbgl/wxsq' //ç»´ä¿®ç³è¯· |
| | | break; |
| | | case '2043': |
| | | url = 'sbgl/sbwx' //设å¤ç»´ä¿® |
| | | break; |
| | | case '2044': |
| | | url = 'sbgl/wxyz' //ç»´ä¿®éªè¯ |
| | | break; |
| | | |
| | | |
| | | // 模å
·ç®¡ç |