| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-01-12 14:23:32 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-09-09 14:47:24 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\home.vue |
| | | --> |
| | | <template> |
| | | <!-- <div id="index" ref="appRef" class="index_home" :class="{ pageisScale: isScale }"> --> |
| | | <ScaleScreen |
| | | :width="1920" |
| | | :height="1080" |
| | |
| | | :selfAdaption="$store.state.setting.isScale" |
| | | > |
| | | <div class="bg"> |
| | | <!-- å
¨å±é®ç½©å± --> |
| | | <div v-if="showMask" class="fullscreen-mask" @click="enterFullscreen"> |
| | | <button class="fullscreen-button">ç¹å»å
¨å±æ¾ç¤º</button> |
| | | </div> |
| | | |
| | | <dv-loading v-if="loading">Loading...</dv-loading> |
| | | <div v-else class="host-body"> |
| | | <!-- å¤´é¨ s --> |
| | |
| | | </div> |
| | | <Setting ref="setting" /> |
| | | </ScaleScreen> |
| | | <!-- </div> --> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | dateYear: null, |
| | | dateWeek: null, |
| | | weekday: ["卿¥", "å¨ä¸", "å¨äº", "å¨ä¸", "å¨å", "å¨äº", "å¨å
"], |
| | | showMask: true // æ§å¶é®ç½©å±æ¾ç¤º |
| | | }; |
| | | }, |
| | | filters: { |
| | |
| | | mounted() { |
| | | this.timeFn(); |
| | | this.cancelLoading(); |
| | | |
| | | // çå¬å
¨å±åå |
| | | document.addEventListener('fullscreenchange', this.handleFullscreenChange); |
| | | }, |
| | | beforeDestroy() { |
| | | clearInterval(this.timing); |
| | | document.removeEventListener('fullscreenchange', this.handleFullscreenChange); |
| | | }, |
| | | methods: { |
| | | showSetting() { |
| | |
| | | cancelLoading() { |
| | | let timer = setTimeout(() => { |
| | | this.loading = false; |
| | | clearTimeout(timer); |
| | | }, 1500); |
| | | }, 100); |
| | | }, |
| | | // è¿å
¥å
¨å± |
| | | enterFullscreen() { |
| | | const element = document.documentElement; |
| | | if (element.requestFullscreen) { |
| | | element.requestFullscreen(); |
| | | } else if (element.webkitRequestFullscreen) { |
| | | element.webkitRequestFullscreen(); |
| | | } else if (element.msRequestFullscreen) { |
| | | element.msRequestFullscreen(); |
| | | } |
| | | }, |
| | | // å¤çå
¨å±åå |
| | | handleFullscreenChange() { |
| | | this.showMask = !document.fullscreenElement; |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import "./home.scss"; |
| | | </style> |
| | | |
| | | .fullscreen-mask { |
| | | position: fixed; |
| | | top: 0; |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: rgba(0, 0, 0, 0.8); |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | z-index: 9999; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .fullscreen-button { |
| | | padding: 15px 30px; |
| | | font-size: 18px; |
| | | background-color: #1a5cd7; |
| | | color: white; |
| | | border: none; |
| | | border-radius: 4px; |
| | | cursor: pointer; |
| | | transition: all 0.3s; |
| | | |
| | | &:hover { |
| | | background-color: #0d4bc2; |
| | | transform: scale(1.05); |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="centermap"> |
| | | <div class="mapwrap"> |
| | | <dv-border-box-13> |
| | | <video |
| | | ref="videoPlayer" |
| | | class="screen-video" |
| | | src="../../assets/img/2.mp4" |
| | | loop |
| | | autoplay |
| | | preload="auto" |
| | | muted |
| | | @click="handleVideoClick" |
| | | > |
| | | æ¨çæµè§å¨ä¸æ¯æè§é¢ææ¾ã |
| | | </video> |
| | | <div v-if="showUnmuteButton" class="unmute-button" @click="unmuteVideo"> |
| | | <span>ð ç¹å»åæ¶éé³</span> |
| | | </div> |
| | | </dv-border-box-13> |
| | | <ItemWrap title="è§é¢çæ§"> |
| | | <video id="video_left" autoplay muted controls playsinline width="100%" height="100%"></video> |
| | | </ItemWrap> |
| | | </div> |
| | | <div class="mapwrap"> |
| | | <ItemWrap title="è§é¢çæ§"> |
| | | <video id="video_right" autoplay muted controls playsinline width="100%" height="100%"></video> |
| | | </ItemWrap> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | showUnmuteButton: true, // æ¾ç¤ºåæ¶éé³æé® |
| | | hasUserInteracted: false, // è®°å½ç¨æ·æ¯å¦å·²äº¤äº |
| | | wasPlaying: false // è®°å½è§£é¤éé³åçææ¾ç¶æ |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.initVideo(); |
| | | this.adjustVideoSize(); |
| | | window.addEventListener('resize', this.adjustVideoSize); |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('resize', this.adjustVideoSize); |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.removeEventListener('error', this.handleVideoError); |
| | | } |
| | | }, |
| | | methods: { |
| | | async initVideo() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | // ç¡®ä¿è§é¢ä»¥éé³ç¶æå¼å§ |
| | | video.muted = true; |
| | | |
| | | // æ·»å é误çå¬ |
| | | video.addEventListener('error', this.handleVideoError); |
| | | |
| | | // å°è¯èªå¨ææ¾ï¼éé³ç¶æä¸é常å
è®¸ï¼ |
| | | try { |
| | | await video.play(); |
| | | this.wasPlaying = true; |
| | | } catch (error) { |
| | | console.log('èªå¨ææ¾è¢«é»æ¢:', error); |
| | | } |
| | | } |
| | | }, |
| | | |
| | | handleVideoClick() { |
| | | if (!this.hasUserInteracted) { |
| | | this.hasUserInteracted = true; |
| | | // ç¨æ·ç¬¬ä¸æ¬¡ç¹å»è§é¢æ¶å°è¯è§£é¤éé³ |
| | | this.unmuteVideo(); |
| | | } |
| | | }, |
| | | |
| | | async unmuteVideo() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (!video) return; |
| | | |
| | | // è®°å½å½åææ¾ç¶æ |
| | | this.wasPlaying = !video.paused; |
| | | |
| | | try { |
| | | // å
ç¡®ä¿è§é¢å¨ææ¾ |
| | | if (this.wasPlaying) { |
| | | await video.play(); |
| | | } |
| | | |
| | | // è§£é¤éé³ |
| | | video.muted = false; |
| | | |
| | | // éèåæ¶éé³æé® |
| | | this.showUnmuteButton = false; |
| | | } catch (error) { |
| | | console.error('è§£é¤éé³å¤±è´¥:', error); |
| | | // æ¾ç¤ºæç¤ºï¼åç¥ç¨æ·éè¦äº¤äºæè½ææ¾å£°é³ |
| | | this.showUnmuteButton = true; |
| | | } |
| | | }, |
| | | |
| | | handleVideoError(e) { |
| | | const video = e.target; |
| | | console.error('è§é¢é误:', video.error); |
| | | }, |
| | | |
| | | adjustVideoSize() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.style.width = '100%'; |
| | | video.style.height = '100%'; |
| | | video.style.objectFit = 'cover'; |
| | | } |
| | | } |
| | | <script setup> |
| | | import { ref, onMounted, onUnmounted, onActivated, onDeactivated } from 'vue' |
| | | |
| | | // WebRTC ææ¾å¨å®ä¾ |
| | | const webRtcServer_left = ref(null) |
| | | const webRtcServer_right = ref(null) |
| | | |
| | | // RTSP å°åï¼æ³¨æ URL ç¼ç ç¹æ®å符 |
| | | const rtspLeft = 'rtsp://admin:Mx202513@172.21.7.244:554/Streaming/Channels/102?rtsp_transport=tcp' |
| | | const rtspRight = 'rtsp://admin:Mx202513@172.21.7.244:554/Streaming/Channels/202?rtsp_transport=tcp' |
| | | |
| | | // WebRtcStreamer æå¡å°å |
| | | const serverUrl = 'http://172.21.1.139:8000' // â æ¹ä¸ºä½ è¿è¡ webrtcstreamer ççµè IP |
| | | |
| | | // åå§åè§é¢ææ¾ |
| | | const initVideo = () => { |
| | | try { |
| | | // å·¦æå头 |
| | | webRtcServer_left.value = new WebRtcStreamer('video_left', serverUrl) |
| | | webRtcServer_left.value.connect(rtspLeft) |
| | | |
| | | // 峿å头 |
| | | webRtcServer_right.value = new WebRtcStreamer('video_right', serverUrl) |
| | | webRtcServer_right.value.connect(rtspRight) |
| | | |
| | | console.log('è§é¢åå§å宿') |
| | | } catch (err) { |
| | | console.error('è§é¢åå§å失败: ' + err.message) |
| | | } |
| | | }; |
| | | } |
| | | |
| | | // 鿝è§é¢ææ¾ |
| | | const destroyVideo = () => { |
| | | if (webRtcServer_left.value) { |
| | | webRtcServer_left.value.disconnect() |
| | | webRtcServer_left.value = null |
| | | } |
| | | if (webRtcServer_right.value) { |
| | | webRtcServer_right.value.disconnect() |
| | | webRtcServer_right.value = null |
| | | } |
| | | } |
| | | |
| | | // 页颿¿æ´»æ¶ææ¾ |
| | | onActivated(() => { |
| | | ['video_left', 'video_right'].forEach(id => { |
| | | const video = document.getElementById(id) |
| | | if (video && video.paused) video.play() |
| | | }) |
| | | }) |
| | | |
| | | // 页é¢åç¨æ¶æå |
| | | onDeactivated(() => { |
| | | ['video_left', 'video_right'].forEach(id => { |
| | | const video = document.getElementById(id) |
| | | if (video && !video.paused) video.pause() |
| | | }) |
| | | }) |
| | | |
| | | // é¡µé¢æè½½åå§å |
| | | onMounted(() => { |
| | | initVideo() |
| | | }) |
| | | |
| | | // 页é¢å¸è½½éæ¯ |
| | | onUnmounted(() => { |
| | | destroyVideo() |
| | | }) |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .centermap { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | .mapwrap { |
| | | height: 960px; |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | position: relative; |
| | | margin-top: 10px; |
| | | |
| | | & > dv-border-box-13 { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: relative; |
| | | overflow: hidden; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .screen-video { |
| | | position: absolute; |
| | | top: 0; |
| | | left: 0; |
| | | .mapwrap { |
| | | height: 470px; |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; |
| | | cursor: pointer; |
| | | box-sizing: border-box; |
| | | position: relative; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .unmute-button { |
| | | position: absolute; |
| | | bottom: 20px; |
| | | right: 20px; |
| | | background: rgba(0, 0, 0, 0.7); |
| | | color: white; |
| | | padding: 8px 16px; |
| | | border-radius: 20px; |
| | | cursor: pointer; |
| | | z-index: 10; |
| | | font-size: 14px; |
| | | display: flex; |
| | | align-items: center; |
| | | gap: 8px; |
| | | transition: all 0.3s ease; |
| | | |
| | | &:hover { |
| | | background: rgba(0, 0, 0, 0.9); |
| | | } |
| | | } |
| | | </style> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | |
| | | <!--===============================第ä¸åè½®æå¾===============================--> |
| | | <div class="contents"> |
| | | <div class="contetn_center" style="border: 1px solid #fff;"> |
| | | <!-- <CenterMap class="contetn_center_top" /> --> |
| | | </div> |
| | | <div class="contetn_left"> |
| | | <div class="pagetab"> |
| | | </div> |
| | | |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item" title="åºä½ä¿¡æ¯"> |
| | | <!-- <stationone /> --> |
| | | </ItemWrap> |
| | | |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item2" title="åºåä¿¡æ¯"> |
| | | <!-- <stationtwo /> --> |
| | | </ItemWrap> |
| | | </div> |
| | | </div> |
| | | <!--===============================第ä¸åè½®æå¾===============================--> |
| | | |
| | | <!--===============================第äºåè½®æå¾===============================--> |
| | | <div> |
| | | 第äºåè½®æå¾ |
| | | </div> |
| | | <!--===============================第äºåè½®æå¾===============================--> |
| | | |
| | | <!--===============================第ä¸åè½®æå¾===============================--> |
| | | <div> |
| | | 第ä¸åè½®æå¾ |
| | | </div> |
| | | <!--===============================第ä¸åè½®æå¾===============================--> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import CenterMap from "./center-map.vue"; |
| | | import stationone from './station-one.vue' |
| | | import stationtwo from './station-two.vue' |
| | | export default { |
| | | components: { |
| | | CenterMap, |
| | | stationone, |
| | | stationtwo, |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | }; |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | }, |
| | | created() { |
| | | }, |
| | | |
| | | mounted() { }, |
| | | methods: { |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | // å
容 |
| | | .contents { |
| | | |
| | | .contetn_left, |
| | | .contetn_right { |
| | | width: 475px; |
| | | box-sizing: border-box; |
| | | // padding: 16px 0; |
| | | } |
| | | |
| | | .contetn_center { |
| | | width: 1400px; |
| | | } |
| | | |
| | | //å·¦å³ä¸¤ä¾§ ä¸ä¸ªå |
| | | .contetn_lr-item { |
| | | height: 310px; |
| | | } |
| | | |
| | | .contetn_lr-item2 { |
| | | height: 620px; |
| | | } |
| | | |
| | | .contetn_center_top { |
| | | width: 100%; |
| | | } |
| | | |
| | | // ä¸é´ |
| | | .contetn_center { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .contetn_center-bottom { |
| | | height: 315px; |
| | | } |
| | | |
| | | //左边 å³è¾¹ ç»æä¸æ · |
| | | .contetn_left, |
| | | .contetn_right { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: space-around; |
| | | position: relative; |
| | | |
| | | |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-04 09:23:59 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-05-07 11:05:02 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\index.vue |
| | | --> |
| | | <template> |
| | | <div class="contents"> |
| | | <div class="contetn_center"> |
| | | <CenterMap class="contetn_center_top" /> |
| | | |
| | | |
| | | </div> |
| | | <div class="contetn_left"> |
| | | <div class="pagetab"> |
| | | <!-- <div class="item">宿¶çæµ</div> --> |
| | | <div class="carousel-container"> |
| | | <!-- æ·»å transform æ ·å¼ç»å® --> |
| | | <div class="carousel" :style="{ transform: `translateX(-${currentIndex * 100}%)` }"> |
| | | <div class="carousel-item"> |
| | | |
| | | </div> |
| | | <!-- <ItemWrap class="contetn_left-top contetn_lr-item" title="æ
é--ç§ç±»é¢ç"> |
| | | <LeftCenter /> |
| | | </ItemWrap> --> |
| | | |
| | | <ItemWrap |
| | | class="contetn_left-bottom contetn_lr-item" |
| | | title="åºä½ä¿¡æ¯" |
| | | > |
| | | <stationone/> |
| | | </ItemWrap> |
| | | |
| | | <ItemWrap |
| | | class="contetn_left-bottom contetn_lr-item2" |
| | | title="åºåä¿¡æ¯" |
| | | > |
| | | <stationtwo/> |
| | | </ItemWrap> |
| | | <div class="carousel-item"> |
| | | <div class="contents"> |
| | | <div class="contetn_center" > |
| | | <CenterMap class="contetn_center_top" /> |
| | | </div> |
| | | <div class="contetn_left"> |
| | | <div class="pagetab"> |
| | | </div> |
| | | |
| | | <!-- <ItemWrap |
| | | class="contetn_left-bottom contetn_lr-item" |
| | | title="æ»ä½åºå
¥åºä¿¡æ¯" |
| | | > |
| | | <stationthree/> |
| | | |
| | | </ItemWrap> --> |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item" title="æç£¨ç¶æ"> |
| | | <rightcenter /> |
| | | </ItemWrap> |
| | | |
| | | |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item" title="æµéç¶æ"> |
| | | |
| | | </ItemWrap> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | <div class="carousel-item"> |
| | | <div class="contents2"> |
| | | <div class="contetn_left"> |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item" title="åºä½ä¿¡æ¯"> |
| | | <stationone /> |
| | | </ItemWrap> |
| | | <div class="station-container"> |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item2" title="åºåä¿¡æ¯"> |
| | | <stationtwo /> |
| | | </ItemWrap> |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item2" title="åºåä¿¡æ¯"> |
| | | <stationthree /> |
| | | </ItemWrap> |
| | | <ItemWrap class="contetn_left-bottom contetn_lr-item2" title="åºåä¿¡æ¯"> |
| | | <stationfour /> |
| | | </ItemWrap> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <button class="carousel-button prev" @click="prev">â</button> |
| | | <button class="carousel-button next" @click="next">â</button> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import LeftTop from './left-top.vue' |
| | | import LeftCenter from "./left-center.vue"; |
| | | import LeftBottom from "./left-bottom.vue"; |
| | | import CenterMap from "./center-map.vue"; |
| | | import CenterBottom from "./center-bottom.vue"; |
| | | import RightTop from "./right-top.vue"; |
| | | import RightCenter from "./right-center.vue"; |
| | | import RightBottom from "./right-bottom.vue"; |
| | | import LeftCenterRight from "./left-center-right.vue"; |
| | | import stationone from './station-one.vue' |
| | | import stationtwo from './station-two.vue' |
| | | import stationthree from './station-three.vue' |
| | | import passtwo from './pass-two.vue' |
| | | import plan from './plan.vue' |
| | | import stationfour from './station-four.vue' |
| | | import rightcenter from './right-center.vue' |
| | | export default { |
| | | components: { |
| | | LeftTop, |
| | | LeftCenter, |
| | | LeftCenterRight, |
| | | LeftBottom, |
| | | CenterMap, |
| | | RightTop, |
| | | RightCenter, |
| | | RightBottom, |
| | | CenterBottom, |
| | | stationone, |
| | | stationtwo, |
| | | stationthree, |
| | | passtwo, |
| | | plan |
| | | stationfour, |
| | | rightcenter |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | }; |
| | | currentIndex: 0, |
| | | interval: null |
| | | } |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | }, |
| | | created() { |
| | | }, |
| | | |
| | | mounted() {}, |
| | | methods: { |
| | | |
| | | next() { |
| | | this.currentIndex = (this.currentIndex + 1) % 3; |
| | | }, |
| | | prev() { |
| | | this.currentIndex = (this.currentIndex - 1 + 3) % 3; |
| | | }, |
| | | startAutoPlay() { |
| | | this.interval = setInterval(() => { |
| | | this.next(); |
| | | }, 300000); |
| | | }, |
| | | stopAutoPlay() { |
| | | clearInterval(this.interval); |
| | | } |
| | | }, |
| | | }; |
| | | mounted() { |
| | | this.startAutoPlay(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.stopAutoPlay(); |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .carousel-container { |
| | | position: relative; |
| | | width: 100%; |
| | | margin: 0 auto; |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .carousel { |
| | | display: flex; |
| | | transition: transform 0.5s ease; |
| | | } |
| | | |
| | | .carousel-item { |
| | | min-width: 100%; |
| | | padding: 20px; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 24px; |
| | | } |
| | | |
| | | .carousel-button { |
| | | position: absolute; |
| | | top: 50%; |
| | | transform: translateY(-50%); |
| | | background: rgba(0, 0, 0, 0.5); |
| | | color: white; |
| | | border: none; |
| | | padding: 10px 15px; |
| | | cursor: pointer; |
| | | z-index: 10; |
| | | } |
| | | |
| | | .carousel-button.prev { |
| | | left: 10px; |
| | | } |
| | | |
| | | .carousel-button.next { |
| | | right: 10px; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | // å
容 |
| | | .contents { |
| | | |
| | | .contetn_left, |
| | | .contetn_right { |
| | | width: 475px; |
| | |
| | | |
| | | //å·¦å³ä¸¤ä¾§ ä¸ä¸ªå |
| | | .contetn_lr-item { |
| | | height: 310px; |
| | | height: 450px; |
| | | } |
| | | |
| | | .contetn_lr-item2 { |
| | | height: 620px; |
| | | width: 30%; |
| | | } |
| | | |
| | | .contetn_center_top { |
| | |
| | | justify-content: space-around; |
| | | position: relative; |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | .labels { |
| | | flex-shrink: 0; |
| | | font-size: 24px; |
| | | color: rgba(255, 255, 255, 0.6); |
| | | float: left; |
| | | margin-right: 11.5%; |
| | | } |
| | | .labelsd { |
| | | flex-shrink: 0; |
| | | font-size: 24px; |
| | | color: rgba(255, 255, 255, 0.6); |
| | | float: left; |
| | | margin-left: 6%; |
| | | } |
| | | |
| | | @keyframes rotating { |
| | | 0% { |
| | | -webkit-transform: rotate(0) scale(1); |
| | | transform: rotate(0) scale(1); |
| | | } |
| | | 50% { |
| | | -webkit-transform: rotate(180deg) scale(1.1); |
| | | transform: rotate(180deg) scale(1.1); |
| | | } |
| | | 100% { |
| | | -webkit-transform: rotate(360deg) scale(1); |
| | | transform: rotate(360deg) scale(1); |
| | | } |
| | | // 第ä¸åå
容 |
| | | .contents2 { |
| | | width: 100%; |
| | | |
| | | .contetn_left { |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | // padding: 16px 0; |
| | | } |
| | | |
| | | //å·¦å³ä¸¤ä¾§ ä¸ä¸ªå |
| | | .contetn_lr-item { |
| | | height: 210px; |
| | | } |
| | | |
| | | .contetn_lr-item2 { |
| | | height: 700px; |
| | | } |
| | | |
| | | .contetn_center_top { |
| | | width: 100%; |
| | | } |
| | | |
| | | } |
| | | </style> |
| | | |
| | | |
| | | .station-container { |
| | | display: flex; /* ä½¿ç¨ Flex å¸å± */ |
| | | justify-content: space-between; /* åååå¸åå
ç´ */ |
| | | gap: 16px; /* 设置åå
ç´ ä¹é´çé´è· */ |
| | | width: 100%; /* ç¡®ä¿å®¹å¨å®½åº¦å¡«æ»¡ç¶å
ç´ */ |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </style> |
| | |
| | | <template> |
| | | <div id="centerLeft1"> |
| | | <div class="bg-color-black"> |
| | | <div class="d-flex pt-2 pl-2"> |
| | | <span> |
| | | <ul> |
| | | <li>åæ ¼ï¼{{container_data.qualified}}</li> |
| | | <li>å¾
æ£ï¼{{container_data.waitCheck}}</li> |
| | | <li>æ£ä¿®ä¸ï¼{{container_data.checkIng}}</li> |
| | | <li>空æï¼{{container_data.empty}}</li> |
| | | <li>宿ï¼{{container_data.full}}</li> |
| | | </ul> |
| | | </span> |
| | | <ul class="user_Overview flex"> |
| | | <li class="user_Overview-item"> |
| | | <div class="user_Overview_nums" :class="kst ? 'allnum' : 'online'"> |
| | | <dv-digital-flop style="width:100%;height:100%;" /> |
| | | </div> |
| | | <div class="d-flex jc-center" style="margin-left: 23%;"> |
| | | <CenterLeft1Chart /> |
| | | </div> |
| | | <!-- 4个主è¦çæ°æ® --> |
| | | <!-- <div class="bottom-data"> |
| | | <div |
| | | class="item-box mt-2" |
| | | v-for="(item, index) in numberData" |
| | | :key="index" |
| | | > |
| | | <div class="d-flex" style="margin-left:60px"> |
| | | <span class="coin">#</span> |
| | | <dv-digital-flop class="dv-digital-flop" :config="item.number" /> |
| | | </div> |
| | | <p class="text" style="text-align: center;"> |
| | | {{ item.text }} |
| | | <span class="colorYellow">(个)</span> |
| | | </p> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | </div> |
| | | <p>æ£å¸¸</p> |
| | | </li> |
| | | </ul> |
| | | </template> |
| | | |
| | | <script> |
| | | import CenterLeft1Chart from '@/components/echart/centerLeft1Chart' |
| | | import axios from 'axios' |
| | | export default { |
| | | data() { |
| | | return { |
| | | container_data:{}, |
| | | // numberData: [ |
| | | // { |
| | | // number: { |
| | | // number: [15], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: '仿¥æå»ºæ»é' |
| | | // }, |
| | | // { |
| | | // number: { |
| | | // number: [1144], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æ»å
±å®ææ°é' |
| | | // }, |
| | | // { |
| | | // number: { |
| | | // number: [361], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æ£å¨ç¼è¯æ°é' |
| | | // }, |
| | | // { |
| | | // number: { |
| | | // number: [157], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æªéè¿æ°é' |
| | | // } |
| | | // ] |
| | | } |
| | | kst: true, |
| | | }; |
| | | }, |
| | | components: { |
| | | CenterLeft1Chart |
| | | }, |
| | | mounted() { |
| | | this.changeTiming() |
| | | }, |
| | | methods: { |
| | | changeTiming() { |
| | | this.changeNumber() |
| | | setInterval(() => { |
| | | this.changeNumber() |
| | | }, 3000) |
| | | }, |
| | | changeNumber() { |
| | | // this.numberData.forEach((item, index) => { |
| | | // item.number.number[0] += ++index |
| | | // item.number = { ...item.number } |
| | | // }) |
| | | axios.post("http://192.168.12.189:8098/api/VV_Container/GetContainerMessage",null) |
| | | .then((res) => { |
| | | this.container_data = res; |
| | | |
| | | // this.numberData = [ |
| | | // { |
| | | // number: { |
| | | // number: [agvs.emptyNum], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æ»å
±ç©ºè´§ä½' |
| | | // }, |
| | | // { |
| | | // number: { |
| | | // number: [agvs.storedNum], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æ»å
±æè´§è´§ä½' |
| | | // }, |
| | | // { |
| | | // number: { |
| | | // number: [agvs.num], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æ»å
±ç¼åæ¶' |
| | | // }, |
| | | // { |
| | | // number: { |
| | | // number: [agvs.ngNum], |
| | | // toFixed: 1, |
| | | // textAlign: 'left', |
| | | // content: '{nt}', |
| | | // style: { |
| | | // fontSize: 24 |
| | | // } |
| | | // }, |
| | | // text: 'æçº¿ç¼åæ¶æ°é' |
| | | // } |
| | | // ] |
| | | // this.numberData = GetLocationData |
| | | }).catch((res) => { |
| | | console.log(res) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | $box-width: 610px; |
| | | $box-height: 410px; |
| | | <style lang='scss' scoped> |
| | | .user_Overview { |
| | | li { |
| | | flex: 1; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | |
| | | #centerLeft1 { |
| | | padding: 16px; |
| | | height: $box-height; |
| | | width: $box-width; |
| | | border-radius: 10px; |
| | | .bg-color-black { |
| | | height: $box-height - 30px; |
| | | border-radius: 10px; |
| | | } |
| | | .text { |
| | | color: #c3cbde; |
| | | } |
| | | .dv-dec-3 { |
| | | position: relative; |
| | | width: 100px; |
| | | height: 20px; |
| | | top: -3px; |
| | | } |
| | | p { |
| | | text-align: center; |
| | | font-size: 16px; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .bottom-data { |
| | | .item-box { |
| | | & > div { |
| | | padding-right: 5px; |
| | | } |
| | | font-size: 14px; |
| | | float: right; |
| | | .user_Overview_nums { |
| | | |
| | | width: 200px; /* æ¾å¤§å®¹å¨ */ |
| | | height: 200px; |
| | | text-align: center; |
| | | line-height: 250px; |
| | | font-size: 52px; |
| | | margin: 50px auto; |
| | | position: relative; |
| | | width: 50%; |
| | | color: #d3d6dd; |
| | | .dv-digital-flop { |
| | | width: 120px; |
| | | height: 30px; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | |
| | | &::before { |
| | | content: ''; |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |
| | | left: 0; |
| | | background-repeat: no-repeat; |
| | | background-position: center; |
| | | background-size: contain; /* å
³é®ä¿®æ¹ï¼çæ¯ä¾ç¼©æ¾ */ |
| | | z-index: 1; |
| | | } |
| | | // éå¸ |
| | | .coin { |
| | | |
| | | /* æ°åå
容å±çº§æé« */ |
| | | > * { |
| | | position: relative; |
| | | top: 6px; |
| | | font-size: 20px; |
| | | color: #ffc107; |
| | | z-index: 2; |
| | | } |
| | | .colorYellow { |
| | | color: yellowgreen; |
| | | |
| | | &.bgdonghua::before { |
| | | animation: rotating 14s linear infinite; |
| | | } |
| | | p { |
| | | text-align: center; |
| | | } |
| | | } |
| | | |
| | | /* ä¸åç±»å对åºä¸åèæ¯å¾ */ |
| | | .allnum::before { |
| | | background-image: url("../../assets/img/left_top_lan.png"); |
| | | } |
| | | |
| | | .online::before { |
| | | background-image: url("../../assets/img/left_top_lv.png"); |
| | | } |
| | | |
| | | .offline::before { |
| | | background-image: url("../../assets/img/left_top_huang.png"); |
| | | } |
| | | |
| | | .laramnum::before { |
| | | background-image: url("../../assets/img/left_top_hong.png"); |
| | | } |
| | | } |
| | | } |
| | | |
| | | ul li{ |
| | | float: left; |
| | | list-style-type: none; |
| | | margin-left: 8%; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-02-28 16:16:42 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-07-20 17:57:11 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\left-center.vue |
| | | --> |
| | | <template> |
| | | <ul class="user_Overview flex" v-if="pageflag"> |
| | | <li class="user_Overview-item" style="color: #00fdfa"> |
| | | <div class="user_Overview_nums allnum "> |
| | | <dv-digital-flop :config="onlineconfig" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <p>10å·æ£ä¿®å°</p> |
| | | <br> |
| | | <p>{{stationstate[9].station_state}}</p> |
| | | </li> |
| | | <li class="user_Overview-item" style="color: #07f7a8"> |
| | | <div class="user_Overview_nums online"> |
| | | <dv-digital-flop :config="config" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <p>11å·æ£ä¿®å°</p> |
| | | <br> |
| | | <p>{{stationstate[10].station_state}}</p> |
| | | </li> |
| | | <li class="user_Overview-item" style="color: #e3b337"> |
| | | <div class="user_Overview_nums offline"> |
| | | <dv-digital-flop :config="offlineconfig" style="width:100%;height:100%;" /> |
| | | |
| | | </div> |
| | | <p>12å·æ£ä¿®å°</p> |
| | | <br> |
| | | <p>{{stationstate[11].station_state}}</p> |
| | | </li> |
| | | </ul> |
| | | <Reacquire v-else @onclick="getData" line-height="200px"> |
| | | éæ°è·å |
| | | </Reacquire> |
| | | <div class="table-container"> |
| | | <table class="data-table"> |
| | | <thead> |
| | | <tr> |
| | | <th v-for="(header, index) in headers" :key="index"> |
| | | {{ header }} |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody ref="tableBody"> |
| | | <tr v-for="(row, rowIndex) in visibleData" :key="rowIndex"> |
| | | <td v-for="(cell, cellIndex) in row" :key="cellIndex"> |
| | | {{ cell }} |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <div v-if="loading" class="loading">å è½½ä¸...</div> |
| | | <div v-if="error" class="error">{{ error }}</div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from 'api/modules' |
| | | import {Floorfault} from "@/api/http.js" |
| | | let style = { |
| | | fontSize: 24 |
| | | } |
| | | import axios from 'axios'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | options: {}, |
| | | stationstate:[], |
| | | userOverview: { |
| | | alarmNum: 2, |
| | | offlineNum: 3, |
| | | onlineNum: 5, |
| | | totalNum: 10, |
| | | }, |
| | | pageflag: true, |
| | | timer: null, |
| | | config: { |
| | | number: [100], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | // stroke: "#00fdfa", |
| | | fill: "#00fdfa", |
| | | }, |
| | | }, |
| | | onlineconfig: { |
| | | number: [0], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | // stroke: "#07f7a8", |
| | | fill: "#07f7a8", |
| | | }, |
| | | }, |
| | | offlineconfig: { |
| | | number: [0], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | // stroke: "#e3b337", |
| | | fill: "#e3b337", |
| | | }, |
| | | }, |
| | | }; |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | return { |
| | | headers: ['车å', 'è½®å', 'æ°é'], |
| | | tableData: [], // åå¨APIè¿åçæææ°æ® |
| | | visibleData: [], // å½åæ¾ç¤ºçæ°æ® |
| | | loading: false, |
| | | error: null, |
| | | currentIndex: 0, // å½åæ¾ç¤ºæ°æ®çèµ·å§ç´¢å¼ |
| | | visibleRows: 12, // æ¯æ¬¡æ¾ç¤ºçè¡æ° |
| | | scrollInterval: null, // æ»å¨å®æ¶å¨ |
| | | scrollSpeed: 5000 // æ»å¨é度(毫ç§) |
| | | } |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | this.fetchData(); |
| | | }, |
| | | mounted() { |
| | | this.startAutoScroll(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData() |
| | | |
| | | this.stopAutoScroll(); |
| | | }, |
| | | methods: { |
| | | clearData() { |
| | | if (this.timer) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | } |
| | | }, |
| | | async getData() { |
| | | this.pageflag = true; |
| | | // currentGET("big2").then((res) => { |
| | | // if (!this.timer) { |
| | | // console.log("è®¾å¤æ»è§2", res); |
| | | // } |
| | | // if (res.success) { |
| | | // this.userOverview = res.data; |
| | | // this.onlineconfig = { |
| | | // ...this.onlineconfig, |
| | | // number: [1] |
| | | // } |
| | | // this.config = { |
| | | // ...this.config, |
| | | // number: [7] |
| | | // } |
| | | // this.offlineconfig = { |
| | | // ...this.offlineconfig, |
| | | // number: [4] |
| | | // } |
| | | // this.laramnumconfig = { |
| | | // ...this.laramnumconfig, |
| | | // number: [10] |
| | | // } |
| | | // this.switper(); |
| | | // } else { |
| | | // this.pageflag = false; |
| | | // this.$Message.warning(res.msg); |
| | | // } |
| | | // }); |
| | | let rep = await Floorfault((a)=>{ |
| | | }); |
| | | this.stationstate=rep; |
| | | this.onlineconfig = { |
| | | ...this.onlineconfig, |
| | | number: [rep[9].station_qty] |
| | | } |
| | | this.config = { |
| | | ...this.config, |
| | | number: [rep[10].station_qty] |
| | | } |
| | | this.offlineconfig = { |
| | | ...this.offlineconfig, |
| | | number: [rep[11].station_qty] |
| | | } |
| | | this.switper(); |
| | | }, |
| | | //轮询 |
| | | switper() { |
| | | if (this.timer) { |
| | | return |
| | | } |
| | | let looper = (a) => { |
| | | this.getData() |
| | | }; |
| | | this.timer = setInterval(looper, this.$store.state.setting.echartsAutoTime); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | .user_Overview { |
| | | li { |
| | | flex: 1; |
| | | |
| | | p { |
| | | text-align: center; |
| | | height: 16px; |
| | | font-size: 16px; |
| | | fetchData() { |
| | | this.loading = true; |
| | | axios.post("http://127.0.0.1:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.data.data.slice(25, 36).forEach(item => { |
| | | this.tableData.push([ |
| | | item.wheels_CarType, |
| | | item.wheels_ldxh, |
| | | item.count |
| | | ]); |
| | | }); |
| | | this.updateVisibleData(); |
| | | this.loading = false; |
| | | }) |
| | | .catch((error) => { |
| | | console.error("请æ±å¤±è´¥:", error); |
| | | this.tableData = [ |
| | | ['ææ æ°æ®', 'ææ æ°æ®', 'ææ æ°æ®'], |
| | | ]; |
| | | this.error = "æ°æ®å 载失败"; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | startAutoScroll() { |
| | | this.stopAutoScroll(); // å
忢已æç宿¶å¨ |
| | | this.scrollInterval = setInterval(() => { |
| | | if (this.tableData.length > this.visibleRows) { |
| | | this.currentIndex = (this.currentIndex + 1) % this.tableData.length; |
| | | this.updateVisibleData(); |
| | | } |
| | | }, this.scrollSpeed); |
| | | }, |
| | | stopAutoScroll() { |
| | | if (this.scrollInterval) { |
| | | clearInterval(this.scrollInterval); |
| | | this.scrollInterval = null; |
| | | } |
| | | |
| | | .user_Overview_nums { |
| | | width: 100px; |
| | | height: 100px; |
| | | text-align: center; |
| | | line-height: 100px; |
| | | font-size: 22px; |
| | | margin: 50px auto 30px; |
| | | background-size: cover; |
| | | background-position: center center; |
| | | position: relative; |
| | | |
| | | &::before { |
| | | content: ''; |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | |
| | | &.bgdonghua::before { |
| | | animation: rotating 14s linear infinite; |
| | | } |
| | | }, |
| | | updateVisibleData() { |
| | | if (this.tableData.length === 0) return; |
| | | |
| | | // è·åå½åå¯è§çæ°æ® |
| | | const endIndex = this.currentIndex + this.visibleRows; |
| | | if (endIndex <= this.tableData.length) { |
| | | this.visibleData = this.tableData.slice(this.currentIndex, endIndex); |
| | | } else { |
| | | // å¤çå¾ªç¯æ»å¨ |
| | | const firstPart = this.tableData.slice(this.currentIndex); |
| | | const secondPart = this.tableData.slice(0, endIndex - this.tableData.length); |
| | | this.visibleData = [...firstPart, ...secondPart]; |
| | | } |
| | | |
| | | .allnum { |
| | | |
| | | // background-image: url("../../assets/img/left_top_lan.png"); |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_lan.png"); |
| | | |
| | | } |
| | | } |
| | | |
| | | .online { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_lv.png"); |
| | | |
| | | } |
| | | } |
| | | |
| | | .offline { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_huang.png"); |
| | | |
| | | } |
| | | } |
| | | |
| | | .laramnum { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_hong.png"); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | position: relative; |
| | | min-height: 200px; |
| | | max-height: 700px; /* éå¶å®¹å¨é«åº¦ */ |
| | | overflow-y: hidden; /* éèåç´æ»å¨æ¡ */ |
| | | } |
| | | |
| | | .data-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | margin: 20px 0; |
| | | font-family: Arial, sans-serif; |
| | | } |
| | | |
| | | .data-table th { |
| | | font-weight: bold; |
| | | padding: 12px 15px; |
| | | text-align: left; |
| | | border-bottom: 2px solid #c5c5c5; |
| | | |
| | | position: sticky; |
| | | top: 0; |
| | | } |
| | | |
| | | .data-table td { |
| | | padding: 10px 15px; |
| | | height: 25px; |
| | | border-bottom: 1px solid #696969; |
| | | } |
| | | |
| | | |
| | | .loading, .error { |
| | | padding: 20px; |
| | | text-align: center; |
| | | color: #666; |
| | | } |
| | | |
| | | .error { |
| | | color: #f56c6c; |
| | | } |
| | | |
| | | /* æ·»å å¹³æ»æ»å¨ææ */ |
| | | .data-table tbody { |
| | | transition: transform 1s ease-in-out; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="table-container"> |
| | | <table class="data-table"> |
| | | <thead> |
| | | <tr> |
| | | <th v-for="(header, index) in headers" :key="index"> |
| | | {{ header }} |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr v-for="(row, rowIndex) in tableData" :key="rowIndex"> |
| | | <td v-for="(cell, cellIndex) in row" :key="cellIndex"> |
| | | {{ cell }} |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | <div class="table-container"> |
| | | <table class="data-table"> |
| | | <thead> |
| | | <tr> |
| | | <th>è´§ä½ä¿¡æ¯</th> |
| | | <th v-for="(status, index) in statusTypes" :key="index"> |
| | | {{ status }} |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr> |
| | | <td>æ°é</td> |
| | | <td v-for="(count, index) in statusCounts" :key="index"> |
| | | {{ count }} |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import axios from 'axios'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | headers: ['è´§ä½ä¿¡æ¯', 'æ°é'], |
| | | tableData: [] |
| | | statusTypes: ['æè´§', '空货ä½', 'æè´§ç¦ç¨', 'éå®'], // è¡¨å¤´ç¶æç±»å |
| | | statusCounts: [0, 0, 0,0] // 对åºç¶æçæ°é |
| | | }; |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | this.fetchData(); |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios.post("http://172.21.1.139:5000/api/LocationInfo/LocationStatus", null) |
| | | axios.post("http://127.0.0.1:5000/api/LocationInfo/LocationStatus", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.forEach(item => { |
| | | this.tableData.push([ |
| | | item.status, |
| | | item.count |
| | | ]); |
| | | }); |
| | | // å设APIè¿åçæ°æ®æ ¼å¼ä¸ºï¼[{status: 'æè´§', count: 9}, {status: '空货ä½', count: 2}, ...] |
| | | const newCounts = [0, 0, 0,0]; |
| | | console.log(response.data) |
| | | newCounts[0] = response.data.data[0].count; |
| | | newCounts[1] = response.data.data[1].count; |
| | | newCounts[2] = response.data.data[2].count; |
| | | newCounts[3] = response.data.data[3].count; |
| | | |
| | | this.statusCounts = newCounts; |
| | | }) |
| | | .catch((error) => { |
| | | console.error("请æ±å¤±è´¥:", error); |
| | | this.tableData = [ |
| | | ['空货ä½', 0], |
| | | ['æè´§', 0], |
| | | ['å ç¨', 0] |
| | | ]; |
| | | // 使ç¨é»è®¤æ°æ® |
| | | this.statusCounts = [0, 0, 0,0]; |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | } |
| | | |
| | | .data-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | margin: 20px 0; |
| | | font-family: Arial, sans-serif; |
| | | } |
| | | |
| | | .data-table th { |
| | | font-weight: bold; |
| | | padding: 12px 15px; |
| | | text-align: left; |
| | | border-bottom: 2px solid #c9aeae; |
| | | } |
| | | |
| | | .data-table td { |
| | | padding: 10px 15px; |
| | | border-bottom: 1px solid #ddd; |
| | | } |
| | | </style> |
| | | |
| | | <style scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | } |
| | | |
| | | .data-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | margin: 20px 0; |
| | | font-family: Arial, sans-serif; |
| | | } |
| | | |
| | | .data-table th { |
| | | font-weight: bold; |
| | | padding: 12px 15px; |
| | | text-align: center; |
| | | border-bottom: 2px solid #c5c5c5; |
| | | } |
| | | |
| | | .data-table td { |
| | | padding: 10px 15px; |
| | | border-bottom: 1px solid #696969; |
| | | text-align: center; |
| | | } |
| | | |
| | | .data-table th:first-child, |
| | | .data-table td:first-child { |
| | | text-align: left; |
| | | font-weight: bold; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <ul class="user_Overview flex"> |
| | | <li class="user_Overview-item" style="color: #00fdfa"> |
| | | <div class="user_Overview_nums allnum "> |
| | | <dv-digital-flop :config="onlineconfig" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <br> |
| | | <p>{{stationstate[0].station_state}}</p> |
| | | <p v-if="stationstate[0].station_state == 'æ£ä¿®ä¸'">{{stationstate[0].station_checkName}}</p> |
| | | </li> |
| | | <li class="user_Overview-item" style="color: #07f7a8"> |
| | | <div class="user_Overview_nums online"> |
| | | <dv-digital-flop :config="config" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <br> |
| | | <p>{{stationstate[1].station_state}}</p> |
| | | <p v-if="stationstate[1].station_state == 'æ£ä¿®ä¸'">{{stationstate[1].station_checkName}}</p> |
| | | </li> |
| | | <!-- <li class="user_Overview-item" style="color: #e3b337"> |
| | | <div class="user_Overview_nums offline"> |
| | | <dv-digital-flop :config="offlineconfig" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <p>7å·æ£ä¿®å°</p> |
| | | <br> |
| | | <p>{{stationstate[2].station_state}}</p> |
| | | <p v-if="stationstate[2].station_state == 'æ£ä¿®ä¸'">{{stationstate[2].station_checkName}}</p> |
| | | </li> |
| | | <li class="user_Overview-item" style="color: #e3b337"> |
| | | <div class="user_Overview_nums offline"> |
| | | <dv-digital-flop :config="offlineconfig" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <p>8å·æ£ä¿®å°</p> |
| | | <br> |
| | | <p>{{stationstate[3].station_state}}</p> |
| | | <p v-if="stationstate[3].station_state == 'æ£ä¿®ä¸'">{{stationstate[3].station_checkName}}</p> |
| | | </li> --> |
| | | </ul> |
| | | </template> |
| | | |
| | | <script> |
| | | let style = { |
| | | fontSize: 24 |
| | | } |
| | | export default { |
| | | data() { |
| | | return { |
| | | stationstate: [ |
| | | { station_state: 'å
¥åºé', station_checkName: '' }, |
| | | { station_state: 'åºåºé', station_checkName: '' }, |
| | | { station_state: 'å¾
æºä¸', station_checkName: '' }, |
| | | { station_state: 'æ
éä¸', station_checkName: '' } |
| | | ], |
| | | config: { |
| | | number: [7], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | fill: "#00fdfa", |
| | | }, |
| | | }, |
| | | onlineconfig: { |
| | | number: [1], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | fill: "#07f7a8", |
| | | }, |
| | | }, |
| | | offlineconfig: { |
| | | number: [4], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | fill: "#e3b337", |
| | | }, |
| | | }, |
| | | }; |
| | | <div class="table-container"> |
| | | <table class="data-table"> |
| | | <thead> |
| | | <tr> |
| | | <th v-for="(header, index) in headers" :key="index"> |
| | | {{ header }} |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody ref="tableBody"> |
| | | <tr v-for="(row, rowIndex) in visibleData" :key="rowIndex"> |
| | | <td v-for="(cell, cellIndex) in row" :key="cellIndex"> |
| | | {{ cell }} |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <div v-if="loading" class="loading">å è½½ä¸...</div> |
| | | <div v-if="error" class="error">{{ error }}</div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import axios from 'axios'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | headers: ['车å', 'è½®å', 'æ°é'], |
| | | tableData: [], // åå¨APIè¿åçæææ°æ® |
| | | visibleData: [], // å½åæ¾ç¤ºçæ°æ® |
| | | loading: false, |
| | | error: null, |
| | | currentIndex: 0, // å½åæ¾ç¤ºæ°æ®çèµ·å§ç´¢å¼ |
| | | visibleRows: 12, // æ¯æ¬¡æ¾ç¤ºçè¡æ° |
| | | scrollInterval: null, // æ»å¨å®æ¶å¨ |
| | | scrollSpeed: 5000 // æ»å¨é度(毫ç§) |
| | | } |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | }, |
| | | mounted() { |
| | | this.startAutoScroll(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.stopAutoScroll(); |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | this.loading = true; |
| | | axios.post("http://127.0.0.1:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.data.data.slice(13, 24).forEach(item => { |
| | | this.tableData.push([ |
| | | item.wheels_CarType, |
| | | item.wheels_ldxh, |
| | | item.count |
| | | ]); |
| | | }); |
| | | this.updateVisibleData(); |
| | | this.loading = false; |
| | | }) |
| | | .catch((error) => { |
| | | console.error("请æ±å¤±è´¥:", error); |
| | | this.tableData = [ |
| | | ['ææ æ°æ®', 'ææ æ°æ®', 'ææ æ°æ®'], |
| | | ]; |
| | | this.error = "æ°æ®å 载失败"; |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | startAutoScroll() { |
| | | this.stopAutoScroll(); // å
忢已æç宿¶å¨ |
| | | this.scrollInterval = setInterval(() => { |
| | | if (this.tableData.length > this.visibleRows) { |
| | | this.currentIndex = (this.currentIndex + 1) % this.tableData.length; |
| | | this.updateVisibleData(); |
| | | } |
| | | }, this.scrollSpeed); |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang='scss' scoped> |
| | | .user_Overview { |
| | | li { |
| | | flex: 1; |
| | | |
| | | p { |
| | | text-align: center; |
| | | height: 16px; |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .user_Overview_nums { |
| | | width: 100px; |
| | | height: 100px; |
| | | text-align: center; |
| | | line-height: 100px; |
| | | font-size: 22px; |
| | | margin: 50px auto 30px; |
| | | background-size: cover; |
| | | background-position: center center; |
| | | position: relative; |
| | | |
| | | &::before { |
| | | content: ''; |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | top: 0; |
| | | left: 0; |
| | | } |
| | | |
| | | &.bgdonghua::before { |
| | | animation: rotating 14s linear infinite; |
| | | } |
| | | } |
| | | |
| | | .allnum { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_lan.png"); |
| | | } |
| | | } |
| | | |
| | | .online { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_lv.png"); |
| | | } |
| | | } |
| | | |
| | | .offline { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_huang.png"); |
| | | } |
| | | } |
| | | |
| | | .laramnum { |
| | | &::before { |
| | | background-image: url("../../assets/img/left_top_hong.png"); |
| | | } |
| | | } |
| | | stopAutoScroll() { |
| | | if (this.scrollInterval) { |
| | | clearInterval(this.scrollInterval); |
| | | this.scrollInterval = null; |
| | | } |
| | | }, |
| | | updateVisibleData() { |
| | | if (this.tableData.length === 0) return; |
| | | |
| | | // è·åå½åå¯è§çæ°æ® |
| | | const endIndex = this.currentIndex + this.visibleRows; |
| | | if (endIndex <= this.tableData.length) { |
| | | this.visibleData = this.tableData.slice(this.currentIndex, endIndex); |
| | | } else { |
| | | // å¤çå¾ªç¯æ»å¨ |
| | | const firstPart = this.tableData.slice(this.currentIndex); |
| | | const secondPart = this.tableData.slice(0, endIndex - this.tableData.length); |
| | | this.visibleData = [...firstPart, ...secondPart]; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | position: relative; |
| | | min-height: 200px; |
| | | max-height: 700px; /* éå¶å®¹å¨é«åº¦ */ |
| | | overflow-y: hidden; /* éèåç´æ»å¨æ¡ */ |
| | | } |
| | | |
| | | .data-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | margin: 20px 0; |
| | | font-family: Arial, sans-serif; |
| | | } |
| | | |
| | | .data-table th { |
| | | font-weight: bold; |
| | | padding: 12px 15px; |
| | | text-align: left; |
| | | border-bottom: 2px solid #c5c5c5; |
| | | |
| | | position: sticky; |
| | | top: 0; |
| | | } |
| | | |
| | | .data-table td { |
| | | padding: 10px 15px; |
| | | height: 25px; |
| | | border-bottom: 1px solid #696969; |
| | | } |
| | | |
| | | |
| | | .loading, .error { |
| | | padding: 20px; |
| | | text-align: center; |
| | | color: #666; |
| | | } |
| | | |
| | | .error { |
| | | color: #f56c6c; |
| | | } |
| | | |
| | | /* æ·»å å¹³æ»æ»å¨ææ */ |
| | | .data-table tbody { |
| | | transition: transform 1s ease-in-out; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="table-container"> |
| | | <table class="data-table"> |
| | | <thead> |
| | | <tr> |
| | | <th v-for="(header, index) in headers" :key="index"> |
| | | {{ header }} |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | | <tr v-for="(row, rowIndex) in tableData" :key="rowIndex"> |
| | | <td v-for="(cell, cellIndex) in row" :key="cellIndex"> |
| | | {{ cell }} |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <div v-if="loading" class="loading">å è½½ä¸...</div> |
| | | <div v-if="error" class="error">{{ error }}</div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import axios from 'axios'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | headers: ['车å','è½®å', 'æ°é'], |
| | | tableData: [], // åå¨APIè¿åçæ°æ® |
| | | loading: false, |
| | | error: null |
| | | } |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | axios.post("http://172.21.1.139:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | <div class="table-container"> |
| | | <table class="data-table"> |
| | | <thead> |
| | | <tr> |
| | | <th v-for="(header, index) in headers" :key="index"> |
| | | {{ header }} |
| | | </th> |
| | | </tr> |
| | | </thead> |
| | | <tbody ref="tableBody"> |
| | | <tr v-for="(row, rowIndex) in visibleData" :key="rowIndex"> |
| | | <td v-for="(cell, cellIndex) in row" :key="cellIndex"> |
| | | {{ cell }} |
| | | </td> |
| | | </tr> |
| | | </tbody> |
| | | </table> |
| | | <div v-if="loading" class="loading">å è½½ä¸...</div> |
| | | <div v-if="error" class="error">{{ error }}</div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import axios from 'axios'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | headers: ['车å', 'è½®å', 'æ°é'], |
| | | tableData: [], // åå¨APIè¿åçæææ°æ® |
| | | visibleData: [], // å½åæ¾ç¤ºçæ°æ® |
| | | loading: false, |
| | | error: null, |
| | | currentIndex: 0, // å½åæ¾ç¤ºæ°æ®çèµ·å§ç´¢å¼ |
| | | visibleRows: 12, // æ¯æ¬¡æ¾ç¤ºçè¡æ° |
| | | scrollInterval: null, // æ»å¨å®æ¶å¨ |
| | | scrollSpeed: 5000 // æ»å¨é度(毫ç§) |
| | | } |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | }, |
| | | mounted() { |
| | | this.startAutoScroll(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.stopAutoScroll(); |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | this.loading = true; |
| | | axios.post("http://127.0.0.1:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.forEach(item => { |
| | | response.data.data.slice(0, 12).forEach(item => { |
| | | this.tableData.push([ |
| | | item.wheels_CarType, |
| | | item.wheels_ldxh, |
| | | item.count |
| | | item.wheels_CarType, |
| | | item.wheels_ldxh, |
| | | item.count |
| | | ]); |
| | | }); |
| | | this.updateVisibleData(); |
| | | this.loading = false; |
| | | }) |
| | | .catch((error) => { |
| | | console.error("请æ±å¤±è´¥:", error); |
| | | this.tableData = [ |
| | | ['ææ æ°æ®', 'ææ æ°æ®', 'ææ æ°æ®'], |
| | | ]; |
| | | this.error = "æ°æ®å 载失败"; |
| | | this.loading = false; |
| | | }); |
| | | } |
| | | }, |
| | | startAutoScroll() { |
| | | this.stopAutoScroll(); // å
忢已æç宿¶å¨ |
| | | this.scrollInterval = setInterval(() => { |
| | | if (this.tableData.length > this.visibleRows) { |
| | | this.currentIndex = (this.currentIndex + 1) % this.tableData.length; |
| | | this.updateVisibleData(); |
| | | } |
| | | }, this.scrollSpeed); |
| | | }, |
| | | stopAutoScroll() { |
| | | if (this.scrollInterval) { |
| | | clearInterval(this.scrollInterval); |
| | | this.scrollInterval = null; |
| | | } |
| | | }, |
| | | updateVisibleData() { |
| | | if (this.tableData.length === 0) return; |
| | | |
| | | // è·åå½åå¯è§çæ°æ® |
| | | const endIndex = this.currentIndex + this.visibleRows; |
| | | if (endIndex <= this.tableData.length) { |
| | | this.visibleData = this.tableData.slice(this.currentIndex, endIndex); |
| | | } else { |
| | | // å¤çå¾ªç¯æ»å¨ |
| | | const firstPart = this.tableData.slice(this.currentIndex); |
| | | const secondPart = this.tableData.slice(0, endIndex - this.tableData.length); |
| | | this.visibleData = [...firstPart, ...secondPart]; |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | position: relative; |
| | | min-height: 200px; |
| | | } |
| | | |
| | | .data-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | margin: 20px 0; |
| | | font-family: Arial, sans-serif; |
| | | } |
| | | |
| | | .data-table th { |
| | | font-weight: bold; |
| | | padding: 12px 15px; |
| | | text-align: left; |
| | | border-bottom: 2px solid #c9aeae; |
| | | } |
| | | |
| | | .data-table td { |
| | | padding: 10px 15px; |
| | | border-bottom: 1px solid #ddd; |
| | | } |
| | | |
| | | .loading, .error { |
| | | padding: 20px; |
| | | text-align: center; |
| | | color: #666; |
| | | } |
| | | |
| | | .error { |
| | | color: #f56c6c; |
| | | } |
| | | </style> |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .table-container { |
| | | width: 100%; |
| | | overflow-x: auto; |
| | | position: relative; |
| | | min-height: 200px; |
| | | max-height: 700px; /* éå¶å®¹å¨é«åº¦ */ |
| | | overflow-y: hidden; /* éèåç´æ»å¨æ¡ */ |
| | | } |
| | | |
| | | .data-table { |
| | | width: 100%; |
| | | border-collapse: collapse; |
| | | margin: 20px 0; |
| | | font-family: Arial, sans-serif; |
| | | } |
| | | |
| | | .data-table th { |
| | | font-weight: bold; |
| | | padding: 12px 15px; |
| | | text-align: left; |
| | | border-bottom: 2px solid #c5c5c5; |
| | | |
| | | position: sticky; |
| | | top: 0; |
| | | } |
| | | |
| | | .data-table td { |
| | | padding: 10px 15px; |
| | | height: 25px; |
| | | border-bottom: 1px solid #696969; |
| | | } |
| | | |
| | | |
| | | .loading, .error { |
| | | padding: 20px; |
| | | text-align: center; |
| | | color: #666; |
| | | } |
| | | |
| | | .error { |
| | | color: #f56c6c; |
| | | } |
| | | |
| | | /* æ·»å å¹³æ»æ»å¨ææ */ |
| | | .data-table tbody { |
| | | transition: transform 1s ease-in-out; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <transition name="yh-setting-fade"> |
| | | <div class="setting" :class="{ settingShow: settingShow }" v-show="settingShow"> |
| | | <div class="setting_dislog" @click="settingShow = false"> |
| | | |
| | | </div> |
| | | <div class="setting_dislog" @click="settingShow = false"></div> |
| | | <div class="setting_inner"> |
| | | <div class="setting_header"> |
| | | 设置 |
| | |
| | | <div class="setting_body"> |
| | | <!-- <div class="left_shu"> 宿¶çæµ</div> --> |
| | | <div class="left_shu"> å
¨å±è®¾ç½®</div> |
| | | <div class="setting_item"> |
| | | <div class="setting_item"> |
| | | <span class="setting_label"> |
| | | æ¯å¦è¿è¡èªå¨éé
<span class="setting_label_tip">(é»è®¤å辨ç1920*1080)</span>: |
| | | </span> |
| | |
| | | <el-radio :label="true">æ¯</el-radio> |
| | | <el-radio :label="false">å¦</el-radio> |
| | | </el-radio-group> |
| | | |
| | | </div> |
| | | </div> |
| | | <!-- <div class="left_shu"> 宿¶çæµ</div> |
| | | <div class="setting_item"> |
| | | <span class="setting_label"> |
| | | è®¾å¤æéèªå¨è½®è¯¢: <span class="setting_label_tip"></span> |
| | | </span> |
| | | <div class="setting_content"> |
| | | <el-radio-group v-model="sbtxradio" @change="(val) => radiochange(val, 'sbtxSwiper')"> |
| | | <el-radio :label="true">æ¯</el-radio> |
| | | <el-radio :label="false">å¦</el-radio> |
| | | </el-radio-group> |
| | | |
| | | </div> |
| | | </div> |
| | | <div class="setting_item"> |
| | | <span class="setting_label"> |
| | | 宿¶é¢è¦è½®æ: |
| | | </span> |
| | | <div class="setting_content"> |
| | | <el-radio-group v-model="ssyjradio" @change="(val) => radiochange(val, 'ssyjSwiper')"> |
| | | <el-radio :label="true">æ¯</el-radio> |
| | | <el-radio :label="false">å¦</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | </div> --> |
| | | |
| | | <div class="flex justify-center"> |
| | | <!-- <el-button type="primary" round size="mini">ç¡®å®</el-button> --> |
| | | <el-button |
| | | type="primary" |
| | | @click="toggleFullScreen" |
| | | class="fullscreen-btn" |
| | | > |
| | | {{ isFullScreen ? 'éåºå
¨å±' : 'å
¨å±æ¾ç¤º' }} |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | export default { |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | settingShow: false, |
| | | sbtxradio:true, |
| | | sbtxradio: true, |
| | | ssyjradio: true, |
| | | isScaleradio:true, |
| | | echartsAutoTime:3000 |
| | | isScaleradio: true, |
| | | echartsAutoTime: 3000, |
| | | isFullScreen: false |
| | | }; |
| | | }, |
| | | computed: {}, |
| | |
| | | }, |
| | | radiochange(val, type) { |
| | | this.$store.commit('setting/updateSwiper', { val, type }) |
| | | if(type==='isScale'){ |
| | | if(type === 'isScale'){ |
| | | // this.$router.go(0) |
| | | // location.reload() |
| | | // window.location.href=window.location.href+"?t="+Date.now() |
| | | } |
| | | }, |
| | | toggleFullScreen() { |
| | | if (!document.fullscreenElement) { |
| | | // è¿å
¥å
¨å± |
| | | document.documentElement.requestFullscreen().catch(err => { |
| | | console.error(`å
¨å±é误: ${err.message}`); |
| | | }); |
| | | } else { |
| | | // éåºå
¨å± |
| | | if (document.exitFullscreen) { |
| | | document.exitFullscreen(); |
| | | } |
| | | } |
| | | }, |
| | | handleFullScreenChange() { |
| | | this.isFullScreen = !!document.fullscreenElement; |
| | | } |
| | | }, |
| | | created() { |
| | | this.$store.commit('setting/initSwipers') |
| | |
| | | }, |
| | | mounted() { |
| | | document.body.appendChild(this.$el); |
| | | document.addEventListener('fullscreenchange', this.handleFullScreenChange); |
| | | }, |
| | | beforeDestroy() { |
| | | document.removeEventListener('fullscreenchange', this.handleFullScreenChange); |
| | | }, |
| | | destroyed() { |
| | | if (this.$el && this.$el.parentNode) { |
| | |
| | | </script> |
| | | |
| | | <style lang='scss' scoped> |
| | | .fullscreen-btn { |
| | | margin-top: 20px; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="title"></div> |
| | | <el-container> |
| | | <!-- <el-header>æ¥å¿</el-header> --> |
| | | <el-main> |
| | | <el-card v-for="(log, index) in logs" :key="index" class="log-card" :style="{ color: log.color }"> |
| | | <div :style="{ color: log.color }">{{ log.logEntry }}</div> |
| | | <div :style="{ color: log.color }">{{ log.time }}</div> |
| | | </el-card> |
| | | </el-main> |
| | | </el-container> |
| | | <div class="container"> |
| | | <div class="input-group"> |
| | | <span class="label">ç«å°ï¼</span> |
| | | <el-select v-model="value1" placeholder="è¯·éæ©" style="width: 40%;"> |
| | | <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="input-group" style="width:50%;"> |
| | | <span class="label">æ¡ç ï¼</span> |
| | | <el-input v-model="input2" placeholder="请è¾å
¥å
容"></el-input> |
| | | </div> |
| | | <div class="input-group"> |
| | | <el-button type="primary" style="width: 50%;" @click="setBorot()">åå
¥</el-button> |
| | | </div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { ref, onMounted } from 'vue' |
| | | import eventBus from "@/uitils/eventBus"; |
| | | |
| | | export default { |
| | | setup() { |
| | | const logs = ref([]); |
| | | onMounted(() => { |
| | | eventBus.on('Logs', eventData => { |
| | | if (logs.value.length > 500) { |
| | | logs.value = []; |
| | | } |
| | | const logEntry = "æ¥å¿ä¿¡æ¯ï¼" + eventData.log |
| | | const time = "æ¶é´ï¼" + eventData.time |
| | | logs.value.unshift({ logEntry: logEntry, time: time, color: eventData.color }); |
| | | |
| | | // logs.value.unshift(logEntry); |
| | | }); |
| | | }); |
| | | data() { |
| | | return { |
| | | logs |
| | | options: [{ |
| | | value: '1010', |
| | | label: '1010' |
| | | }, { |
| | | value: '2015', |
| | | label: '2015' |
| | | }, { |
| | | value: '2017', |
| | | label: '2017' |
| | | }, { |
| | | value: '2021', |
| | | label: '2021' |
| | | }], |
| | | value1: '', |
| | | input2: '', |
| | | } |
| | | }, |
| | | methods: { |
| | | setBorot() { |
| | | if (this.value1 == "") { |
| | | this.$message.error("è¯·éæ©è¦åå
¥çç«å°"); |
| | | } |
| | | if (this.input2 == "") { |
| | | this.$message.error("è¯·éæ©è¦åå
¥çæ¡ç "); |
| | | } |
| | | this.$confirm("æ¯å¦ç¡®å®éè¦å¯¹è¯¥ç«å°åå
¥æ¡ç ä¿¡æ¯ï¼ï¼ï¼", "æç¤º", { |
| | | // iconClass:"el-icon-success",//el-icon-removeèªå®ä¹å¾æ æ ·å¼ |
| | | confirmButtonText: "确认",//确认æé®æåæ´æ¢ |
| | | cancelButtonText: "åæ¶",//åæ¶æé®æåæ´æ¢ |
| | | // cancelBtn:"åæ¶",//åæ¶æé®æåæ´æ¢ |
| | | showClose: true,//æ¯å¦æ¾ç¤ºå³ä¸è§å
³éæé® |
| | | type: "warning",//æç¤ºç±»å success:æå/info:ä¿¡æ¯/warning:è¦å/error:æ¥é |
| | | }).then(() => { |
| | | var param = { |
| | | DelKeys: [this.value1,this.input2], |
| | | Extra: true |
| | | } |
| | | this.http |
| | | .post("api/Task/SetPlcPalletCode",param, "æ°æ®å¤çä¸...") |
| | | .then((x) => { |
| | | if (x.status) { |
| | | this.$Message.success('æå.'); |
| | | this.refresh(); |
| | | } else { |
| | | return this.$error(x.message); |
| | | } |
| | | }); |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .title { |
| | | line-height: 70vh; |
| | | text-align: center; |
| | | font-size: 28px; |
| | | color: orange; |
| | | .container { |
| | | font-size: 22px; |
| | | margin-top: 20px; |
| | | width: 50%; |
| | | } |
| | | |
| | | .log-card { |
| | | margin-bottom: 10px; |
| | | .input-group { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 15px; |
| | | } |
| | | |
| | | .label { |
| | | min-width: 60px; |
| | | /* 为æ ç¾è®¾ç½®æå°å®½åº¦ä¿æå¯¹é½ */ |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .el-input { |
| | | flex: 1; |
| | | /* è¾å
¥æ¡å æ®å©ä½ç©ºé´ */ |
| | | } |
| | | </style> |
| | |
| | | Task<WebResponseContent> RequestWheelsFlow(string palletCode); |
| | | |
| | | /// <summary> |
| | | /// 车轮æµå请æ±ï¼æ¥è¯¢åå²è¡¨ |
| | | /// </summary> |
| | | /// <param name="palletCode"></param> |
| | | /// <param name="stationManager"></param> |
| | | /// <returns></returns> |
| | | string RequestWheletHty(string czCode); |
| | | |
| | | /// <summary> |
| | | /// åºåºå ç§»åºæ£æµ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | |
| | | /// <returns></returns> |
| | | WebResponseContent GetPlcState(string TargetAddress); |
| | | |
| | | |
| | | /// <summary> |
| | | /// wcsé¦é¡µåå
¥å
容 |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent SetPlcPalletCode(SaveModel saveModel); |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | return Service.GetPlcState(TargetAddress); |
| | | } |
| | | |
| | | [HttpPost, Route("SetPlcPalletCode"), AllowAnonymous] |
| | | public WebResponseContent SetPlcPalletCode([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.SetPlcPalletCode(saveModel); |
| | | } |
| | | } |
| | | } |
| | |
| | | //"ConnectionString": "Data Source=192.168.20.251;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=123456@gy;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | |
| | | "ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | |
| | | //"ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.\\LIULEI;Initial Catalog=MX_LDY_WCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=127.0.0.1;Initial Catalog=WIDESEA_WCS2F08;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=True", |
| | | //"ConnectionString": "Data Source=192.168.20.251;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=123456@gy;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.5.251;Initial Catalog=WIDESEAWCS_TEST;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | |
| | | |
| | | //"ConnectionString": "Data Source=172.21.1.139;Initial Catalog=WIDESEA_WCSDB;User ID=sa;Password=Admin123;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 车轮æµååé
æ¥è¯¢åå²è¯·æ± |
| | | /// </summary> |
| | | /// <param name="czCode"></param> |
| | | /// <param name="stationManager"></param> |
| | | /// <returns></returns> |
| | | public string RequestWheletHty(string czCode) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | Dt_Task_Hty dt_Task_Hty = _taskHtyRepository.QueryFirst(x => x.task_CZInfo == czCode && x.CreateDate >= DateTime.Now.AddMinutes(-30)); |
| | | if (dt_Task_Hty == null) return null; |
| | | if (dt_Task_Hty.Towhereabouts == null && dt_Task_Hty.Towhereabouts == "") return null; |
| | | |
| | | return dt_Task_Hty.Towhereabouts; |
| | | } |
| | | |
| | | // æ£æ¥å½åæçæ¯å¦åå¨ä»»å¡ |
| | | private async Task<bool> HasTask(string palletCode) |
| | | { |
| | |
| | | private readonly IRouterRepository _routerRepository; |
| | | private readonly ITask_HtyRepository _taskHtyRepository; |
| | | private readonly IDt_needBarcodeRepository _taskNeedBarcodeRepository; |
| | | |
| | | |
| | | private Dictionary<string, OrderByType> _taskOrderBy = new() |
| | | { |
| | |
| | | |
| | | public WebResponseContent GetPlcState(string TargetAddress) |
| | | { |
| | | |
| | | Dt_StationManager dt_Station=_stationManagerRepository.QueryFirst(x => x.stationLocation == TargetAddress); |
| | | if(dt_Station == null) |
| | | return WebResponseContent.Instance.Error("æªæ¾å°åè£
ä½ä¿¡æ¯ï¼"); |
| | |
| | | |
| | | IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "1000"); |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)device; |
| | | |
| | | //DeviceProDTO? devicePr = conveyorLine.DeviceProDTOs.Find(x => x.DeviceChildCode == "2033" && x.DeviceProParamName == "ConveyorLineSingal"); |
| | | short agv20 = conveyorLine.Communicator.Read<short>("DB5.794"); |
| | | if (agv20 != 1) //è·åä¸è½´å¤æ¯å¦ææå ç¨ |
| | | { |
| | | return WebResponseContent.Instance.Error($"æªæ£æµå°agvåæç«å°æè´§ï¼ä¸å¯ä¸åä»»å¡ï¼è¯»åå°ï¼{agv20}"); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | DeviceProDTO? deviceProDTOt = conveyorLine.DeviceProDTOs.Find(x => x.DeviceChildCode == TargetAddress && x.DeviceProParamName == "ConveyorLineSingal"); |
| | | DeviceProDTO? deviceProDTOt2 = conveyorLine.DeviceProDTOs.Find(x => x.DeviceChildCode == TargetAddress && x.DeviceProParamName == "ResponState"); |
| | | if (conveyorLine.Communicator.Read<short>(deviceProDTOt.DeviceProAddress)==1) |
| | |
| | | return WebResponseContent.Instance.Error("读åå°åè£
ä½ä¿¡å·åé¦ä¸å¯æ¾è´§ï¼ä¸å¯çæagvä»»å¡"); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | public WebResponseContent SetPlcPalletCode(SaveModel saveModel) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | try |
| | | { |
| | | if (saveModel.DelKeys.Count != 2) |
| | | { |
| | | return webResponse.Error("wcsä¼ åé误ï¼"); |
| | | } |
| | | string AddStitic = saveModel.DelKeys[0].ToString(); |
| | | if (AddStitic == "") return webResponse.Error("éæ©çç«å°ä¸ºç©ºï¼è¯·éæ©éæ©ç«å°ï¼"); |
| | | string PalletCode = saveModel.DelKeys[1].ToString(); |
| | | if (PalletCode == "") return webResponse.Error("è¾å
¥çæ¡ç 为空ï¼è¯·è¾å
¥æ¡ç ä¿¡æ¯ï¼"); |
| | | |
| | | IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "1000"); |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)device; |
| | | |
| | | bool setplc = false; |
| | | switch (AddStitic) |
| | | { |
| | | case "1010": |
| | | setplc = conveyorLine.Communicator.Write("DB5.914", (string)PalletCode); |
| | | break; |
| | | case "2015": |
| | | setplc = conveyorLine.Communicator.Write("DB5.434", (string)PalletCode); |
| | | break; |
| | | case "2017": |
| | | setplc = conveyorLine.Communicator.Write("DB5.554", (string)PalletCode); |
| | | break; |
| | | case "2021": |
| | | setplc = conveyorLine.Communicator.Write("DB5.794", (string)PalletCode); |
| | | break; |
| | | } |
| | | |
| | | if (setplc) |
| | | { |
| | | return webResponse.OK($"对{AddStitic}ç«å°åå
¥æ¡ç ï¼{PalletCode}ï¼æå"); |
| | | } |
| | | else |
| | | { |
| | | return webResponse.Error($"对{AddStitic}ç«å°åå
¥æ¡ç ï¼{PalletCode}ï¼å¤±è´¥"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return webResponse.Error($"é误信æ¯ï¼{ex.Message}"); |
| | | throw; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | using Newtonsoft.Json; |
| | | using Quartz; |
| | | using SqlSugar; |
| | | using System.Net; |
| | | using System.Reflection; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | |
| | | using WIDESEAWCS_QuartzJob.Service; |
| | | using WIDESEAWCS_SignalR; |
| | | using WIDESEAWCS_Tasks.ConveyorLineJob; |
| | | using WIDESEAWCS_Tasks.StackerCraneJob; |
| | | using ICacheService = WIDESEAWCS_Core.Caches.ICacheService; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | |
| | | conveyorLine.SetValue(ConveyorLineDBName.WheelsDiameter, task.wheels_gkcc, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.WheelsLX, task.WheelsLX, stationInfo.stationChildCode); |
| | | |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | |
| | | _taskService.UpdatePosition(task.TaskNum, stationInfo.stationChildCode); |
| | | Dt_Task dt_Task = _taskService.UpdatePosition(task.TaskNum, stationInfo.stationChildCode); |
| | | if (dt_Task != null) |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 3, stationInfo.stationChildCode); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | var task = _taskService.QueryExecutingTaskByBarcode(command.Number, stationInfo.stationChildCode); |
| | | if (task != null) |
| | | { |
| | | //æ ¹æ®è½¦è½´ç¼åä½ç½® åå
¥å¯¹åºç®æ å°å |
| | | if (task.TargetAddress == stationInfo.stationChildCode) |
| | | if (task.TargetAddress == "2032" || task.TargetAddress == "2042") |
| | | { |
| | | //WebResponseContent content = _taskService.RequestWheelsFlow(task.task_CZInfo).Result; |
| | | |
| | | bool k1 = conveyorLine.SetValue(ConveyorLineDBName.SourceAddress, "2021", stationInfo.stationChildCode); |
| | | |
| | | bool k2 = conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.TargetAddress, stationInfo.stationChildCode); |
| | | bool k3 = conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | WebResponseContent k4 = _taskService.UpdateTaskStatusToNext(task); |
| | | |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼åé¦è³è¾é线信æ¯====èµ·å§å°åï¼{k1},ç®æ å°åâ{k2},åé¦ä¿¡å·ï¼{k3},ä»»å¡ä¿®æ¹ç¶æï¼{k4.Status}ï¼)"); |
| | | |
| | | } |
| | | else |
| | | { |
| | | WebResponseContent content = _taskService.RequestWheelsFlow(task.PalletCode).Result; |
| | | if (content.Status) |
| | | { |
| | | string taraddress = content.Data.ToString(); // "2032";SourceAddress |
| | | |
| | | bool k1 = conveyorLine.SetValue(ConveyorLineDBName.SourceAddress, "2021", stationInfo.stationChildCode); |
| | | |
| | | bool k2= conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taraddress, stationInfo.stationChildCode); |
| | | bool k3= conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | |
| | | bool k2 = conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.TargetAddress, stationInfo.stationChildCode); |
| | | bool k3 = conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | WebResponseContent k4 = _taskService.UpdateTaskStatusToNext(task); |
| | | |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼åé¦è³è¾é线信æ¯====èµ·å§å°åï¼{k1},ç®æ å°åâ{k2},åé¦ä¿¡å·ï¼{k3},ä»»å¡ä¿®æ¹ç¶æï¼{k4.Status}ï¼)"); |
| | |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼åWMSç³è¯·å»å失败ï¼åå ï¼{content.Message},åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | bool k1= conveyorLine.SetValue(ConveyorLineDBName.SourceAddress, "2021", stationInfo.stationChildCode); |
| | | bool k2 = conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.TargetAddress, stationInfo.stationChildCode); |
| | | bool k3 = conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | WebResponseContent k4 = _taskService.UpdateTaskStatusToNext(task); |
| | | |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼åé¦è³è¾é线信æ¯====èµ·å§å°åï¼{k1},ç®æ å°åâ{k2},åé¦ä¿¡å·ï¼{k3},ä»»å¡ä¿®æ¹ç¶æï¼{k4.Status}ï¼)"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 2, stationInfo.stationChildCode); |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼æªæ¾å°ä»»å¡ï¼ç³è¯·ä¸ä¸å°å为ï¼{stationInfo.stationChildCode},åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | |
| | | string taraddresspos = _taskService.RequestWheletHty(command.Number); |
| | | if (taraddresspos != null) |
| | | { |
| | | |
| | | bool k1 = conveyorLine.SetValue(ConveyorLineDBName.SourceAddress, "2021", stationInfo.stationChildCode); |
| | | |
| | | bool k2 = conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taraddresspos, stationInfo.stationChildCode); |
| | | bool k3 = conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | |
| | | Console.Out.WriteLine($"å岿¥è¯¢ä¿¡æ¯ï¼,ç³è¯·æ¡ç ï¼{command.Number}ï¼åé¦è³è¾é线信æ¯====èµ·å§å°åï¼{k1},ç®æ å°åâ{k2},åé¦ä¿¡å·ï¼{k3},åå
¥ç®æ å°å为ï¼{taraddresspos})"); |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 2, stationInfo.stationChildCode); |
| | | Console.Out.WriteLine($"读åå°è¾é线ç³è¯·,ç³è¯·æ¡ç ï¼{command.Number}ï¼æªæ¾å°ä»»å¡ï¼ç³è¯·ä¸ä¸å°å为ï¼{stationInfo.stationChildCode},åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | if (content.Status) |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.Number, content.Data.ToString(), stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.CarType,"001", stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.CarType, "001", stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | } |
| | | else |
| | |
| | | { |
| | | DeviceProDTO? deviceProDTOt = conveyorLine.DeviceProDTOs.Find(x => x.DeviceChildCode == "3022" && x.DeviceProParamName == "Number"); |
| | | string Number = conveyorLine.Communicator.Read<string>(deviceProDTOt.DeviceProAddress); |
| | | if (Number != "" && Number!=null) |
| | | if (Number != "" && Number != null) |
| | | { |
| | | //è°åwmsæ¥å£ç³è¯·agvä»»å¡ |
| | | WebResponseContent content = _taskService.GetAGVTaskdistribution(stationInfo.stationLocation); |
| | |
| | | _noticeService.Logs(userTokenIds, new { commonStackerCrane.DeviceName, log = log, time = DateTime.Now.ToString("G"), color = "red" }); |
| | | WriteInfo(commonStackerCrane.DeviceName, log); |
| | | |
| | | if (task == null) |
| | | { |
| | | task = _taskService.QueryStackerCraneInTask(commonStackerCrane.DeviceCode); |
| | | } |
| | | task = _taskService.QueryStackerCraneInTask(commonStackerCrane.DeviceCode); |
| | | } |
| | | else |
| | | { |
| | |
| | | //表åheaderãcontentãfooter对åºä½ç½®æ©å
çç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: { |
| | | render () { |
| | | return [ |
| | | h(resolveComponent('el-alert'), { |
| | | style: { 'margin-bottom': '12px' }, |
| | | 'show-icon': false, type: 'success', |
| | | closable: false, title: 'å
³äºTreeTable使ç¨' |
| | | }, ' treetableåæ ·å
¨é¨ä»£ç èªå¨çæï¼é¡µé¢çæå设置this.rowKe="xxx" tree主é®å段,å³å¯å®ææ å½¢tableé
ç½®,å
·ä½è¯´æè§Sys_Role1.js'), |
| | | ] |
| | | } |
| | | // render () { |
| | | // return [ |
| | | // h(resolveComponent('el-alert'), { |
| | | // style: { 'margin-bottom': '12px' }, |
| | | // 'show-icon': false, type: 'success', |
| | | // closable: false, title: 'å
³äºTreeTable使ç¨' |
| | | // }, ' treetableåæ ·å
¨é¨ä»£ç èªå¨çæï¼é¡µé¢çæå设置this.rowKe="xxx" tree主é®å段,å³å¯å®ææ å½¢tableé
ç½®,å
·ä½è¯´æè§Sys_Role1.js'), |
| | | // ] |
| | | // } |
| | | }, |
| | | |
| | | gridFooter: '', |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div style="margin: 0px auto;width: 600px;"> |
| | | <div> |
| | | <div style="color: brown;font-size: 25px;">车轮è¶
ææ°éï¼ <i style="font-size: 35px;">{{ wheelsCount }} 个</i></div> |
| | | </div> |
| | | <div> |
| | | <div style="color: brown;font-size: 25px;">å¶å¨çè¶
ææ°éï¼ <i style="font-size: 35px;">{{ zdpCount }} 个</i></div> |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | <script> |
| | | import axios from 'axios'; |
| | |
| | | data() { |
| | | return { |
| | | datalist: [], |
| | | zdpCount:0, |
| | | wheelsCount:0, |
| | | url: "http://192.168.12.189/:8098/api/", |
| | | |
| | | }; |
| | |
| | | mounted() { |
| | | // setInterval(() => { |
| | | this.AddTask(); |
| | | this.StockYx(); |
| | | // }, 5000); |
| | | |
| | | }, |
| | |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | StockYx() { |
| | | axios.post("http://172.21.1.139:5000/api/Task/GetStockStatue") |
| | | .then(response => { |
| | | console.log(response.data.data.zdpCount) |
| | | if(response.status){ |
| | | this.wheelsCount=response.data.data.wheelsCount; |
| | | this.zdpCount=response.data.data.zdpCount; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | }, |
| | |
| | | url: "/Sys_Config/", |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ "ParentId": [], "RoleName": "", "DeptName": "", "Enable": "", "Creator": "", "CreateDate": "", "Modifier": "", "ModifyDate": "" }); |
| | | const editFormOptions = ref([[{ "dataKey": "tree_roles", "data": [], "title": "ç¶çº§ID", "required": true, "field": "ParentId", "type": "cascader" }, |
| | | { "title": "è§è²åç§°", "required": true, "field": "RoleName" }], |
| | | [{ "title": "é¨é¨åç§°", "field": "DeptName" }, |
| | | { "dataKey": "enable", "data": [], "title": "æ¯å¦å¯ç¨", "field": "Enable", "type": "switch" }], |
| | | [{ "title": "å建人", "field": "Creator", "disabled": true }, |
| | | { "title": "å建æ¶é´", "field": "CreateDate", "disabled": true, "type": "datetime" }], |
| | | [{ "title": "ä¿®æ¹äºº", "field": "Modifier", "disabled": true }, |
| | | { "title": "ä¿®æ¹æ¶é´", "field": "ModifyDate", "disabled": true }]]); |
| | | const searchFormFields = ref({ "RoleName": "", "DeptName": "", "Enable": "", "CreateDate": "", "ModifyDate": "" }); |
| | | const searchFormOptions = ref([[{ "title": "è§è²åç§°", "field": "RoleName", "type": "text" }, { "title": "é¨é¨åç§°", "field": "DeptName", "type": "text" }, { "dataKey": "enable", "data": [], "title": "æ¯å¦å¯ç¨", "field": "Enable", "type": "select" }], [{ "title": "å建æ¶é´", "field": "CreateDate", "type": "datetime" }, { "title": "ä¿®æ¹æ¶é´", "field": "ModifyDate", "type": "datetime" }]]); |
| | | const editFormFields = ref({ "configValue": "" }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "天æ°", "field": "configValue", "required": true }, |
| | | ]]); |
| | | const searchFormFields = ref(); |
| | | const searchFormOptions = ref(); |
| | | const columns = ref([ |
| | | { field: 'id', title: '主é®', type: 'int', width: 70, readonly: true, hidden: true, require: true, align: 'left', sortable: true }, |
| | | { field: 'configKey', title: 'åæ°å', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'configValue', title: 'åæ°å¼', type: 'string', width: 200, require: true, align: 'left' }, |
| | | { field: 'category', title: 'ç±»å«', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'status', title: 'æ¯å¦å¯ç¨', type: 'byte', bind: { key: 'enable', data: [] }, width: 50, align: 'left' }, |
| | | { field: 'sortCode', title: 'æåº', type: 'int',hidden: true, width: 90, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 75, readonly: true, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', width: 90, readonly: true, align: 'left', sortable: true }, |
| | | { field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', width: 75, readonly: true, align: 'left' }, |
| | | { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', width: 90, readonly: true, align: 'left', sortable: true }]); |
| | | // { field: 'configKey', title: 'åæ°å', type: 'string', width: 100, require: true, align: 'left' }, |
| | | { field: 'remark', title: 'ç±»å', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'configValue', title: 'æ¶é´', type: 'string', width: 100, require: true, align: 'left' }, |
| | | // { field: 'category', title: 'ç±»å«', type: 'string', width: 90, align: 'left' }, |
| | | |
| | | // { field: 'status', title: 'æ¯å¦å¯ç¨', type: 'byte', bind: { key: 'enable', data: [] }, width: 50, align: 'left' }, |
| | | // { field: 'sortCode', title: 'æåº', type: 'int',hidden: true, width: 90, align: 'left' }, |
| | | // { field: 'creater', title: 'å建人', type: 'string', width: 75, readonly: true, align: 'left' }, |
| | | // { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', width: 90, readonly: true, align: 'left', sortable: true }, |
| | | // { field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', width: 75, readonly: true, align: 'left' }, |
| | | // { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', width: 90, readonly: true, align: 'left', sortable: true } |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | columns: [], |
| | |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/system/Sys_Role.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | </view-grid> |
| | | <template> |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend" |
| | | > |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/system/Sys_Role.jsx"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'Role_Id', |
| | | footer: "Foots", |
| | | cnName: 'è§è²ç®¡ç', |
| | | name: 'Sys_Role', |
| | | url: "/Sys_Role/", |
| | | sortName: "Role_Id" |
| | | }); |
| | | const editFormFields = ref({"ParentId":[],"RoleName":"","DeptName":"","Enable":"","Creator":"","CreateDate":"","Modifier":"","ModifyDate":""}); |
| | | const editFormOptions = ref([[{"dataKey":"tree_roles","data":[],"title":"ç¶çº§ID","required":true,"field":"ParentId","type":"cascader"}, |
| | | {"title":"è§è²åç§°","required":true,"field":"RoleName"}], |
| | | [{"title":"é¨é¨åç§°","field":"DeptName"}, |
| | | {"dataKey":"enable","data":[],"title":"æ¯å¦å¯ç¨","field":"Enable","type":"switch"}], |
| | | [{"title":"å建人","field":"Creator","disabled":true}, |
| | | {"title":"å建æ¶é´","field":"CreateDate","disabled":true,"type":"datetime"}], |
| | | [{"title":"ä¿®æ¹äºº","field":"Modifier","disabled":true}, |
| | | {"title":"ä¿®æ¹æ¶é´","field":"ModifyDate","disabled":true}]]); |
| | | const searchFormFields = ref({"RoleName":"","DeptName":"","Enable":"","CreateDate":"","ModifyDate":""}); |
| | | const searchFormOptions = ref([[{"title":"è§è²åç§°","field":"RoleName","type":"text"},{"title":"é¨é¨åç§°","field":"DeptName","type":"text"},{"dataKey":"enable","data":[],"title":"æ¯å¦å¯ç¨","field":"Enable","type":"select"}],[{"title":"å建æ¶é´","field":"CreateDate","type":"datetime"},{"title":"ä¿®æ¹æ¶é´","field":"ModifyDate","type":"datetime"}]]); |
| | | const columns = ref([{field:'roleId',title:'è§è²ID',type:'int',width:70,readonly:true,require:true,align:'left',sortable:true}, |
| | | {field:'parentId',title:'ç¶çº§ID',type:'int',bind:{ key:'tree_roles',data:[]},width:70,require:true,align:'left'}, |
| | | {field:'roleName',title:'è§è²åç§°',type:'string',link:true,width:90,require:true,align:'left'}, |
| | | {field:'deptId',title:'é¨é¨ID',type:'int',width:90,hidden:true,align:'left'}, |
| | | {field:'deptName',title:'é¨é¨åç§°',type:'string',width:90,align:'left'}, |
| | | {field:'enable',title:'æ¯å¦å¯ç¨',type:'byte',bind:{ key:'enable',data:[]},width:90,align:'left'}, |
| | | {field:'orderNo',title:'æåº',type:'int',width:90,hidden:true,align:'left'}, |
| | | {field:'creater',title:'å建人',type:'string',width:130,readonly:true,align:'left'}, |
| | | {field:'createDate',title:'å建æ¶é´',type:'datetime',width:90,readonly:true,align:'left',sortable:true}, |
| | | {field:'modifier',title:'ä¿®æ¹äºº',type:'string',width:130,readonly:true,align:'left'}, |
| | | {field:'modifyDate',title:'ä¿®æ¹æ¶é´',type:'datetime',width:90,readonly:true,align:'left',sortable:true}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | import extend from "@/extension/system/Sys_Role.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: "roleId", |
| | | footer: "Foots", |
| | | cnName: "è§è²ç®¡ç", |
| | | name: "Sys_Role", |
| | | url: "/Sys_Role/", |
| | | sortName: "roleId", |
| | | }); |
| | | const editFormFields = ref({ |
| | | parentId: [], |
| | | roleName: "", |
| | | deptId: "", |
| | | enable: "", |
| | | // creater: "", |
| | | // createDate: "", |
| | | // modifier: "", |
| | | // modifyDate: "", |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { |
| | | dataKey: "tree_roles", |
| | | data: [], |
| | | title: "ç¶çº§ID", |
| | | required: true, |
| | | field: "parentId", |
| | | type: "cascader", |
| | | }, |
| | | |
| | | ], |
| | | [ |
| | | { title: "è§è²åç§°", required: true, field: "roleName" }, |
| | | ], |
| | | [ |
| | | // { |
| | | // dataKey: "enable", |
| | | // data: [], |
| | | // title: "任塿鿝å¦å¯ç¨", |
| | | // field: "deptId", |
| | | // type: "switch", |
| | | // }, |
| | | { |
| | | dataKey: "enable", |
| | | data: [], |
| | | title: "æ¯å¦å¯ç¨", |
| | | field: "enable", |
| | | type: "switch", |
| | | }, |
| | | ], |
| | | // [ |
| | | // { title: "å建人", field: "creater", disabled: true }, |
| | | // { |
| | | // title: "å建æ¶é´", |
| | | // field: "createDate", |
| | | // disabled: true, |
| | | // type: "datetime", |
| | | // }, |
| | | // ], |
| | | // [ |
| | | // { title: "ä¿®æ¹äºº", field: "modifier", disabled: true }, |
| | | // { title: "ä¿®æ¹æ¶é´", field: "modifyDate", disabled: true }, |
| | | // ], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | roleName: "", |
| | | deptId: "", |
| | | enable: "", |
| | | createDate: "", |
| | | modifyDate: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "è§è²åç§°", field: "roleName", type: "text" }, |
| | | { |
| | | dataKey: "enable", |
| | | data: [], |
| | | title: "任塿鿝å¦å¯ç¨", |
| | | field: "deptId", |
| | | type: "select", |
| | | }, |
| | | { |
| | | dataKey: "enable", |
| | | data: [], |
| | | title: "æ¯å¦å¯ç¨", |
| | | field: "enable", |
| | | type: "select", |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | { title: "ä¿®æ¹æ¶é´", field: "modifyDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: "roleId", |
| | | title: "è§è²ID", |
| | | type: "int", |
| | | width: 70, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | sortable: true, |
| | | }, |
| | | { |
| | | field: "parentId", |
| | | title: "ç¶çº§ID", |
| | | type: "int", |
| | | bind: { key: "tree_roles", data: [] }, |
| | | width: 70, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roleName", |
| | | title: "è§è²åç§°", |
| | | type: "string", |
| | | link: true, |
| | | width: 90, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | |
| | | // { |
| | | // field: "deptId", |
| | | // title: "任塿鿝å¦å¯ç¨", |
| | | // type: "byte", |
| | | // bind: { key: "enable", data: [] }, |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | // { |
| | | // field: "deptName", |
| | | // title: "é¨é¨åç§°", |
| | | // type: "string", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "enable", |
| | | title: "æ¯å¦å¯ç¨", |
| | | type: "byte", |
| | | bind: { key: "enable", data: [] }, |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "orderNo", |
| | | title: "æåº", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 130, |
| | | readonly: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 90, |
| | | readonly: true, |
| | | align: "left", |
| | | sortable: true, |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 130, |
| | | readonly: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 90, |
| | | readonly: true, |
| | | align: "left", |
| | | sortable: true, |
| | | }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "", |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/system/Sys_User.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" |
| | | :table="table" :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/system/Sys_User.jsx"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'user_Id', |
| | | footer: "Foots", |
| | | cnName: 'ç¨æ·ç®¡ç', |
| | | name: 'Sys_User', |
| | | url: "/Sys_User/", |
| | | sortName: "user_Id" |
| | | }); |
| | | const editFormFields = ref({ "userName": "", "userTrueName": "", "role_Id": [], "deptIds": "", "enable": "", "gender": "", "remark": "", "headImageUrl": "", "systemType": "" }); |
| | | const editFormOptions = ref([[{ "title": "å¸å·", "required": true, "field": "userName", "disabled": true }], |
| | | [{ "title": "å§å", "required": true, "field": "userTrueName", "type": "text" }], |
| | | [{ "dataKey": "tree_roles", "data": [], "title": "è§è²", "required": true, "field": "role_Id", "type": "cascader" }], |
| | | [{ "dataKey": "ç»ç»æºæ", "data": [], "title": "ç»ç»ææ¶", "field": "deptIds", "colSize": 12, "type": "treeSelect" }], |
| | | [{ "dataKey": "enable", "data": [], "title": "æ¯å¦å¯ç¨", "required": true, "field": "enable", "type": "select" }], |
| | | [{ "dataKey": "gender", "data": [], "title": "æ§å«", "field": "gender", "type": "select" }], |
| | | [{ "title": "夿³¨", "field": "remark", "colSize": 12, "type": "textarea" }], |
| | | [{ "title": "头å", "field": "headImageUrl", "type": "img" }], |
| | | [{ "title": "ç³»ç»", "field": "systemType", "type": "text", "required": true }]]); |
| | | const searchFormFields = ref({ "UserName": "", "UserTrueName": "", "Gender": "", "DeptName": "", "Role_Id": [], "Token": "", "AppType": [], "CreateDate": "", "IsRegregisterPhone": "", "PhoneNo": "", "Enable": "", "LastLoginDate": "", "Address": "", "Email": "" }); |
| | | const searchFormOptions = ref([[{ "title": "å¸å·", "field": "UserName" }, { "title": "å§å", "field": "UserTrueName" }, { "dataKey": "gender", "data": [], "title": "æ§å«", "field": "Gender", "type": "select" }], [{ "title": "ä¸ç¨", "field": "DeptName" }, { "dataKey": "tree_roles", "data": [], "title": "è§è²", "field": "Role_Id", "type": "select" }, { "title": "Token", "field": "Token" }], [{ "dataKey": "ut", "data": [], "title": "ç±»å", "field": "AppType", "type": "selectList" }, { "dataKey": "isphone", "data": [], "title": "ææºç¨æ·", "field": "IsRegregisterPhone", "type": "select" }, { "title": "ææºå·", "field": "PhoneNo" }], [{ "dataKey": "enable", "data": [], "title": "æ¯å¦å¯ç¨", "field": "Enable", "type": "select" }, { "title": "å°å", "field": "Address" }, { "title": "Email", "field": "Email" }], [{ "title": "æ³¨åæ¶é´", "field": "CreateDate", "type": "datetime" }, { "title": "æåç»éæ¶é´", "field": "LastLoginDate", "type": "datetime" }]]); |
| | | const columns = ref([{ field: 'user_Id', title: 'User_Id', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'userName', title: 'å¸å·', type: 'string', link: true, width: 120, readonly: true, require: true, align: 'left', sort: true }, |
| | | { field: 'userTrueName', title: 'å§å', type: 'string', width: 120, require: true, align: 'left' }, |
| | | { field: 'gender', title: 'æ§å«', type: 'int', bind: { key: 'gender', data: [] }, width: 80, align: 'left' }, |
| | | { field: 'headImageUrl', title: '头å', type: 'img', width: 90, align: 'left' }, |
| | | { field: 'dept_Id', title: 'ä¸ç¨', type: 'int', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'deptName', title: 'ä¸ç¨', type: 'string', width: 150, hidden: true, align: 'left' }, |
| | | { field: 'role_Id', title: 'è§è²', type: 'int', bind: { key: 'tree_roles', data: [] }, width: 130, require: true, align: 'left' }, |
| | | { field: 'roleName', title: 'ä¸ç¨', type: 'string', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'token', title: 'Token', type: 'string', width: 180, hidden: true, align: 'left' }, |
| | | { field: 'appType', title: 'ç±»å', type: 'int', bind: { key: 'ut', data: [] }, width: 150, hidden: true, align: 'left' }, |
| | | { field: 'deptIds', title: 'ç»ç»ææ¶', type: 'string', bind: { key: 'ç»ç»æºæ', data: [] }, width: 140, hidden: true, align: 'left' }, |
| | | { field: 'createDate', title: 'æ³¨åæ¶é´', type: 'datetime', width: 150, readonly: true, align: 'left', sort: true }, |
| | | { field: 'isRegregisterPhone', title: 'ææºç¨æ·', type: 'int', bind: { key: 'isphone', data: [] }, width: 120, hidden: true, align: 'left' }, |
| | | { field: 'phoneNo', title: 'ææºå·', type: 'string', width: 150, hidden: true, align: 'left' }, |
| | | { field: 'tel', title: 'Tel', type: 'string', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'createID', title: 'CreateID', type: 'int', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 130, readonly: true, align: 'left' }, |
| | | { field: 'enable', title: 'æ¯å¦å¯ç¨', type: 'byte', bind: { key: 'enable', data: [] }, width: 90, require: true, align: 'left' }, |
| | | { field: 'modifyID', title: 'ModifyID', type: 'int', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', width: 130, hidden: true, readonly: true, align: 'left' }, |
| | | { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', width: 90, hidden: true, readonly: true, align: 'left', sort: true }, |
| | | { field: 'auditStatus', title: 'å®¡æ ¸ç¶æ', type: 'int', bind: { key: 'audit', data: [] }, width: 90, hidden: true, align: 'left' }, |
| | | { field: 'auditor', title: 'å®¡æ ¸äºº', type: 'string', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'auditDate', title: 'å®¡æ ¸æ¶é´', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true }, |
| | | { field: 'lastLoginDate', title: 'æåç»éæ¶é´', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true }, |
| | | { field: 'lastModifyPwdDate', title: 'æåå¯ç ä¿®æ¹æ¶é´', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true }, |
| | | { field: 'address', title: 'å°å', type: 'string', width: 190, hidden: true, align: 'left' }, |
| | | { field: 'mobile', title: 'çµè¯', type: 'string', width: 140, hidden: true, align: 'left' }, |
| | | { field: 'email', title: 'Email', type: 'string', width: 140, hidden: true, align: 'left' }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 180, hidden: true, align: 'left' }, |
| | | { field: 'orderNo', title: 'æåºå·', type: 'int', width: 90, hidden: true, align: 'left' }]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/system/Sys_User.jsæ¤å¤ç¼å |
| | | --> |
| | | |
| | | <template> |
| | | <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions" |
| | | :table="table" :extend="extend"> |
| | | </view-grid> |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend" |
| | | > |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/system/Sys_User.jsx"; |
| | | import extend from "@/extension/system/Sys_User.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'user_Id', |
| | | footer: "Foots", |
| | | cnName: 'ç¨æ·ç®¡ç', |
| | | name: 'Sys_User', |
| | | url: "/Sys_User/", |
| | | sortName: "user_Id" |
| | | }); |
| | | const editFormFields = ref({ "userName": "", "userTrueName": "", "role_Id": [], "deptIds": "", "enable": "", "gender": "", "remark": "", "headImageUrl": "", "systemType": "" }); |
| | | const editFormOptions = ref([[{ "title": "å¸å·", "required": true, "field": "userName", "disabled": true }], |
| | | [{ "title": "å§å", "required": true, "field": "userTrueName", "type": "text" }], |
| | | [{ "dataKey": "tree_roles", "data": [], "title": "è§è²", "required": true, "field": "role_Id", "type": "cascader" }], |
| | | [{ "dataKey": "ç»ç»æºæ", "data": [], "title": "ç»ç»ææ¶", "field": "deptIds", "colSize": 12, "type": "treeSelect" }], |
| | | [{ "dataKey": "enable", "data": [], "title": "æ¯å¦å¯ç¨", "required": true, "field": "enable", "type": "select" }], |
| | | [{ "dataKey": "gender", "data": [], "title": "æ§å«", "field": "gender", "type": "select" }], |
| | | [{ "title": "夿³¨", "field": "remark", "colSize": 12, "type": "textarea" }], |
| | | [{ "title": "头å", "field": "headImageUrl", "type": "img" }], |
| | | [{ "title": "ç³»ç»", "field": "systemType", "type": "text", "required": true }]]); |
| | | const searchFormFields = ref({ "UserName": "", "UserTrueName": "", "Gender": "", "DeptName": "", "Role_Id": [], "Token": "", "AppType": [], "CreateDate": "", "IsRegregisterPhone": "", "PhoneNo": "", "Enable": "", "LastLoginDate": "", "Address": "", "Email": "" }); |
| | | const searchFormOptions = ref([[{ "title": "å¸å·", "field": "UserName" }, { "title": "å§å", "field": "UserTrueName" }, { "dataKey": "gender", "data": [], "title": "æ§å«", "field": "Gender", "type": "select" }], [{ "title": "ä¸ç¨", "field": "DeptName" }, { "dataKey": "tree_roles", "data": [], "title": "è§è²", "field": "Role_Id", "type": "select" }, { "title": "Token", "field": "Token" }], [{ "dataKey": "ut", "data": [], "title": "ç±»å", "field": "AppType", "type": "selectList" }, { "dataKey": "isphone", "data": [], "title": "ææºç¨æ·", "field": "IsRegregisterPhone", "type": "select" }, { "title": "ææºå·", "field": "PhoneNo" }], [{ "dataKey": "enable", "data": [], "title": "æ¯å¦å¯ç¨", "field": "Enable", "type": "select" }, { "title": "å°å", "field": "Address" }, { "title": "Email", "field": "Email" }], [{ "title": "æ³¨åæ¶é´", "field": "CreateDate", "type": "datetime" }, { "title": "æåç»éæ¶é´", "field": "LastLoginDate", "type": "datetime" }]]); |
| | | const columns = ref([{ field: 'user_Id', title: 'User_Id', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'userName', title: 'å¸å·', type: 'string', link: true, width: 120, readonly: true, require: true, align: 'left', sort: true }, |
| | | { field: 'userTrueName', title: 'å§å', type: 'string', width: 120, require: true, align: 'left' }, |
| | | { field: 'gender', title: 'æ§å«', type: 'int', bind: { key: 'gender', data: [] }, width: 80, align: 'left' }, |
| | | { field: 'headImageUrl', title: '头å', type: 'img', width: 90, align: 'left' }, |
| | | { field: 'dept_Id', title: 'ä¸ç¨', type: 'int', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'deptName', title: 'ä¸ç¨', type: 'string', width: 150, hidden: true, align: 'left' }, |
| | | { field: 'role_Id', title: 'è§è²', type: 'int', bind: { key: 'tree_roles', data: [] }, width: 130, require: true, align: 'left' }, |
| | | { field: 'roleName', title: 'ä¸ç¨', type: 'string', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'token', title: 'Token', type: 'string', width: 180, hidden: true, align: 'left' }, |
| | | { field: 'appType', title: 'ç±»å', type: 'int', bind: { key: 'ut', data: [] }, width: 150, hidden: true, align: 'left' }, |
| | | { field: 'deptIds', title: 'ç»ç»ææ¶', type: 'string', bind: { key: 'ç»ç»æºæ', data: [] }, width: 140, hidden: true, align: 'left' }, |
| | | { field: 'createDate', title: 'æ³¨åæ¶é´', type: 'datetime', width: 150, readonly: true, align: 'left', sort: true }, |
| | | { field: 'isRegregisterPhone', title: 'ææºç¨æ·', type: 'int', bind: { key: 'isphone', data: [] }, width: 120, hidden: true, align: 'left' }, |
| | | { field: 'phoneNo', title: 'ææºå·', type: 'string', width: 150, hidden: true, align: 'left' }, |
| | | { field: 'tel', title: 'Tel', type: 'string', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'createID', title: 'CreateID', type: 'int', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 130, readonly: true, align: 'left' }, |
| | | { field: 'enable', title: 'æ¯å¦å¯ç¨', type: 'byte', bind: { key: 'enable', data: [] }, width: 90, require: true, align: 'left' }, |
| | | { field: 'modifyID', title: 'ModifyID', type: 'int', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', width: 130, hidden: true, readonly: true, align: 'left' }, |
| | | { field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', width: 90, hidden: true, readonly: true, align: 'left', sort: true }, |
| | | { field: 'auditStatus', title: 'å®¡æ ¸ç¶æ', type: 'int', bind: { key: 'audit', data: [] }, width: 90, hidden: true, align: 'left' }, |
| | | { field: 'auditor', title: 'å®¡æ ¸äºº', type: 'string', width: 90, hidden: true, align: 'left' }, |
| | | { field: 'auditDate', title: 'å®¡æ ¸æ¶é´', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true }, |
| | | { field: 'lastLoginDate', title: 'æåç»éæ¶é´', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true }, |
| | | { field: 'lastModifyPwdDate', title: 'æåå¯ç ä¿®æ¹æ¶é´', type: 'datetime', width: 150, hidden: true, align: 'left', sort: true }, |
| | | { field: 'address', title: 'å°å', type: 'string', width: 190, hidden: true, align: 'left' }, |
| | | { field: 'mobile', title: 'çµè¯', type: 'string', width: 140, hidden: true, align: 'left' }, |
| | | { field: 'email', title: 'Email', type: 'string', width: 140, hidden: true, align: 'left' }, |
| | | { field: 'remark', title: '夿³¨', type: 'string', width: 180, hidden: true, align: 'left' }, |
| | | { field: 'orderNo', title: 'æåºå·', type: 'int', width: 90, hidden: true, align: 'left' }]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | setup() { |
| | | const table = ref({ |
| | | key: "user_Id", |
| | | footer: "Foots", |
| | | cnName: "ç¨æ·ç®¡ç", |
| | | name: "Sys_User", |
| | | url: "/Sys_User/", |
| | | sortName: "user_Id", |
| | | }); |
| | | const editFormFields = ref({ |
| | | systemType: "0", |
| | | userName: "", |
| | | userTrueName: "", |
| | | role_Id: [], |
| | | //deptIds: "", |
| | | enable: "", |
| | | gender: "", |
| | | remark: "", |
| | | |
| | | //headImageUrl: "", |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [{ title: "å¸å·", required: true, field: "userName"}], |
| | | [{ title: "å§å", required: true, field: "userTrueName", type: "text" }], |
| | | [ |
| | | { |
| | | dataKey: "tree_roles", |
| | | data: [], |
| | | title: "è§è²", |
| | | required: true, |
| | | field: "role_Id", |
| | | type: "cascader", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | dataKey: "enable", |
| | | data: [], |
| | | title: "æ¯å¦å¯ç¨", |
| | | required: true, |
| | | field: "enable", |
| | | type: "select", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | dataKey: "gender", |
| | | data: [], |
| | | title: "æ§å«", |
| | | field: "gender", |
| | | type: "select", |
| | | }, |
| | | ], |
| | | [{ title: "夿³¨", field: "remark", colSize: 12, type: "textarea" }], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | systemType: "0", |
| | | userName: "", |
| | | userTrueName: "", |
| | | gender: "", |
| | | deptName: "", |
| | | role_Id: [], |
| | | token: "", |
| | | appType: [], |
| | | createDate: "", |
| | | isRegregisterPhone: "", |
| | | |
| | | enable: "", |
| | | lastLoginDate: "", |
| | | address: "", |
| | | email: "", |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "å¸å·", field: "userName" }, |
| | | { title: "å§å", field: "userTrueName" }, |
| | | { |
| | | dataKey: "gender", |
| | | data: [], |
| | | title: "æ§å«", |
| | | field: "gender", |
| | | type: "select", |
| | | }, |
| | | ], |
| | | [ |
| | | { |
| | | dataKey: "enable", |
| | | data: [], |
| | | title: "æ¯å¦å¯ç¨", |
| | | field: "enable", |
| | | type: "select", |
| | | }, |
| | | { title: "æ³¨åæ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: "user_Id", |
| | | title: "User_Id", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "userName", |
| | | title: "å¸å·", |
| | | type: "string", |
| | | link: true, |
| | | width: 120, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | |
| | | { |
| | | field: "userTrueName", |
| | | title: "å§å", |
| | | type: "string", |
| | | width: 120, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "gender", |
| | | title: "æ§å«", |
| | | type: "int", |
| | | bind: { key: "gender", data: [] }, |
| | | width: 80, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "headImageUrl", |
| | | // title: "头å", |
| | | // type: "img", |
| | | // width: 90, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "dept_Id", |
| | | title: "ä¸ç¨", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "deptName", |
| | | title: "ä¸ç¨", |
| | | type: "string", |
| | | width: 150, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "role_Id", |
| | | title: "è§è²", |
| | | type: "int", |
| | | bind: { key: "tree_roles", data: [] }, |
| | | width: 130, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "roleName", |
| | | title: "ä¸ç¨", |
| | | type: "string", |
| | | width: 90, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "token", |
| | | title: "Token", |
| | | type: "string", |
| | | width: 180, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "appType", |
| | | title: "ç±»å", |
| | | type: "int", |
| | | bind: { key: "ut", data: [] }, |
| | | width: 150, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "deptIds", |
| | | title: "ç»ç»ææ¶", |
| | | type: "string", |
| | | bind: { key: "ç»ç»æºæ", data: [] }, |
| | | width: 140, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "æ³¨åæ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | readonly: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "phoneNo", |
| | | title: "ææºå·", |
| | | type: "string", |
| | | width: 150, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "tel", |
| | | title: "Tel", |
| | | type: "string", |
| | | width: 90, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 130, |
| | | readonly: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "enable", |
| | | title: "æ¯å¦å¯ç¨", |
| | | type: "byte", |
| | | bind: { key: "enable", data: [] }, |
| | | width: 90, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 130, |
| | | hidden: true, |
| | | readonly: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 90, |
| | | hidden: true, |
| | | readonly: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "auditStatus", |
| | | title: "å®¡æ ¸ç¶æ", |
| | | type: "int", |
| | | bind: { key: "audit", data: [] }, |
| | | width: 90, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "auditor", |
| | | title: "å®¡æ ¸äºº", |
| | | type: "string", |
| | | width: 90, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "auditDate", |
| | | title: "å®¡æ ¸æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | hidden: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "lastModifyPwdDate", |
| | | title: "æåå¯ç ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | hidden: true, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "address", |
| | | title: "å°å", |
| | | type: "string", |
| | | width: 190, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "email", |
| | | title: "Email", |
| | | type: "string", |
| | | width: 140, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 180, |
| | | hidden: true, |
| | | align: "left", |
| | | }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "", |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | "upperValue": "", |
| | | "isCantainGK": "", |
| | | "lowerValue_gk": "", |
| | | "upperValue_gk": "" |
| | | "upperValue_gk": "", |
| | | "postContainer":"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "éç¨è½¦å", "field": "carType", "type": "textarea" }, |
| | | ], |
| | | [ |
| | | { "title": "卿屿§", "field": "mttype", "type": "text" }, |
| | | { "title": "卿屿§", "field": "mttype", "type": "select", dataKey: "dongtuoshux", data: [] }, |
| | | { "title": "æ°æ§å±æ§", "field": "neworold", "type": "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "æ¯åç级", "field": "gkdj", "type": "select", dataKey: "Level", data: [] }, |
| | | ], |
| | |
| | | [ |
| | | { "title": "æªé¢è¿çéä¸é", "field": "lowerValue_gk", "type": "decimal" }, |
| | | { "title": "æªé¢è¿çéä¸é", "field": "upperValue_gk", "type": "decimal" } |
| | | ], |
| | | [ |
| | | { "title": "å¶å¨çæ¹å", "field": "postContainer", "type": "select", dataKey: "", data: [{key:"ä¸",value:"ä¸"},{key:"ä¾§",value:"ä¾§"}] }, |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | |
| | | [ |
| | | { "title": "éç¨è½¦å", "field": "carType", type: "text" }, |
| | | //{ "title": "è´§ä½ç¶æ", "field": "locationStatus", "type": "select", dataKey: "LocationState", data: [] }, |
| | | { "title": "卿屿§", "field": "mttype", type: "text" }, |
| | | { "title": "卿屿§", "field": "mttype", "type": "select", dataKey: "dongtuoshux", data: [] }, |
| | | ], |
| | | [ |
| | | //{ "title": "æ¯å¦ç¦ç¨", "field": "enalbeStatus", "type": "select", dataKey: "EnalbeStatus", data: [] } |
| | |
| | | ]); |
| | | const columns = ref([{ field: 'id', title: 'ID', type: 'int', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'carType', title: 'éç¨è½¦å', type: 'string', width: 200, require: true, align: 'left' }, |
| | | { field: 'mttype', title: '卿屿§', type: 'string', width: 90, align: 'left' }, |
| | | { field: 'mttype', title: '卿屿§', type: 'string', width: 110, align: 'left', bind: { key: "dongtuoshux", data: [] } }, |
| | | { field: 'neworold', title: 'æ°æ§å±æ§', type: 'string', width: 90, require: true, align: 'left',bind: { key: "NewOld", data: []} }, |
| | | { field: 'gkdj', title: 'æ¯åç级', type: 'string', width: 90, align: 'left',bind: { key: "Level", data: []} }, |
| | | { field: 'lowerValue', title: 'è¿çéä¸é', type: 'decimal', width: 90, align: 'left' }, |
| | |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 90, align: 'left', sort: true }, |
| | | //{ field: 'modifier', title: 'ä¿®æ¹äºº', type: 'string', sort: true, width: 90, align: 'left' }, |
| | | //{ field: 'modifyDate', title: 'ä¿®æ¹æ¶é´', type: 'datetime', sort: true, width: 90, align: 'left', sort: true }, |
| | | { field: 'postContainer', title: 'å¶å¨çæ¹å', type: 'bool', width: 120, align: 'left', bind: { key: "", data: [{key:"ä¸",value:"ä¸"},{key:"ä¾§",value:"ä¾§"}]} }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: 'æµéæ°æ®', |
| | | cnName: '车轴信æ¯', |
| | | name: 'check/Dt_CheckResult', |
| | | url: "/Dt_CheckResult/", |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | cltm: "" |
| | | |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "cltm", type: "text" }, |
| | | ] |
| | | |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'id', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'equipNo', title: '设å¤ç¼å·', type: 'string', width: 110, align: 'left', hidden: true }, |
| | | //{ field: 'wheels_SequenceNum', title: 'åºåå·', type: 'string', width: 110, align: 'left', sort: true, link: true, }, |
| | | { field: 'cltm', title: '车轮æ¡ç ', type: 'string', width: 150, align: 'left' }, |
| | | { field: 'iD', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'cLTM', title: '车轮æ¡ç ', type: 'string', width: 150, align: 'left' }, |
| | | { field: 'checkType', title: 'ç±»å(è½®/ç)', type: 'string', width: 80, align: 'left', bind: { key: "IscheckType", data: [{key:"1",value:'è½®'},{key:"2",value:'ç'}] } }, |
| | | { field: 'gkzjI1', title: 'æ¯åA1', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'gkzjI2', title: 'æ¯åA2', type: 'string', width: 75, align: 'left' }, |
| | |
| | | { field: 'result', title: 'æ¯å¦åæ ¼', type: 'string', width: 70, align: 'left', bind: { key: "IsQuan", data: [] } }, |
| | | { field: 'inDate', title: 'æµéæ¶é´', type: 'dateTime', width: 100, align: 'left' }, |
| | | { field: 'isUploadMES', title: 'æ¯å¦å·²ä¸ä¼ æºç²¤', type: 'string', width: 110, align: 'left', bind: { key: "Cantain", data: [] } }, |
| | | //{ field: 'creater', title: 'å建人', type: 'string', width: 75, align: 'left' }, |
| | | //{ field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'ID', |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: '车轴信æ¯', |
| | | name: 'inbound/Dt_CZInfo_mes', |
| | |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "id": "", |
| | | id: "", |
| | | // "CHEXING": "", |
| | | // "MTTYPE": "", |
| | | "CZTM":"", |
| | |
| | | ], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | |
| | | CZTM: "" |
| | | |
| | | }); |
| | |
| | | ], |
| | | [ |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "text" }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "text" }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "select", dataKey: "dongtuoshux", data: [] }, |
| | | { "title": "ç级", "field": "wheelsProps", type: "select", dataKey: "shuxing", data: [] }, |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "ç级", "field": "wheels_level", type: "select", dataKey: "Level", data: [] }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | ] |
| | | ]); |
| | |
| | | { field: 'wheels_InDate', title: 'å
¥åºæ¥æ', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'creater', title: 'å建æ¶é´', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_Statue', title: 'åæç¶æ', type: 'string', width: 100, align: 'left',bind: { key: "wheelsStatueDet", data: [] }} , |
| | | { field: 'wheels_DateDet', title: 'å½ååºå天æ°', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | |
| | | { field: 'zdp_GKJZ', title: 'æ¯åç´å¾', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_LSCSYMH', title: 'èºæ ä¾§å©ä½ç£¨è', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'zdp_LMCSYMH', title: 'èºæ¯ä¾§å©ä½ç£¨è', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'zdp_rksj', title: 'å
¥åºæ¥æ', type: 'string', width: 100, align: 'left' } |
| | | { field: 'zdp_rksj', title: 'å
¥åºæ¥æ', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_Statue', title: 'åæç¶æ', type: 'string', width: 100, align: 'left',bind: { key: "wheelsStatueDet", data: [] }} , |
| | | { field: 'zdp_DateDet', title: 'å½ååºå天æ°', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | |
| | | ], |
| | | [ |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "text" }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "text" }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "select", dataKey: "dongtuoshux", data: [] }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "select", dataKey: "shuxing", data: [] }, |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "ç级", "field": "wheels_level", type: "select", dataKey: "Level", data: [] }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | { "title": "åºä½å·", "field": "wheels_Location", type: "text" }, |
| | | ] |
| | |
| | | { field: 'wheels_CarNo', title: '车ç»', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'wheels_ldh', title: '轮对å·', type: 'string', width: 100, align: 'left' }, |
| | | //{ field: 'wheels_WheelsType', title: 'è½®å', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'wheels_mttype', title: '卿屿§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'wheels_mttype', title: '卿屿§', type: 'string', width: 110, align: 'left', bind: { key: "dongtuoshux", data: [] } }, |
| | | |
| | | { field: 'wheels_NewOrOld', title: 'æ°æ§ç±»å', type: 'string', width: 100, align: 'left',bind: { key: "NewOld", data: [] }} , |
| | | { field: 'wheelsProps', title: '屿§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'wheels_level', title: 'ç级', type: 'string', width: 100, align: 'left' }, |
| | |
| | | |
| | | { field: 'wheels_ljz', title: 'è½®å¾å¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_ygljz', title: 'é¢ä¼°è½®å¾å¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_Statue', title: 'åæç¶æ', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_Statue', title: 'åæç¶æ', type: 'string', width: 100, align: 'left',bind: { key: "wheelsStatueDet", data: [] }} , |
| | | { field: 'wheels_DateDet', title: 'å½ååºå天æ°', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_InDate', title: 'å
¥åºæ¥æ', type: 'string',width: 100, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 100, align: 'left' }, |
| | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "wheel_code", type: "text" }, |
| | | { "title": "车轮æ¡ç ", "field": "wheel_code", type: "like" }, |
| | | { "title": "车å", "field": "model", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "è½®å", "field": "axes_type", type: "text" }, |
| | | { "title": "è½®å", "field": "axes_type", type: "like" }, |
| | | ], |
| | | [ |
| | | { "title": "æ°/æ§", "field": "repair_item", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "dqtz_state", type: "text" }, |
| | | { "title": "ç级", "field": "venderno", type: "text" }, |
| | | { "title": "æ°å/æ£ä¿®", "field": "repair_item", type: "select", dataKey: "", data: [{key:"æ°å",name:"æ°å"},{key:"æ£ä¿®",name:"æ£ä¿®"}] }, |
| | | { "title": "卿屿§", "field": "dqtz_state", type: "select", dataKey: "dongtuoshux", data: [] }, |
| | | { "title": "ç级", "field": "venderno", type: "select", dataKey: "shuxing", data: [] }, |
| | | ], |
| | | [ |
| | | { "title": "åºä½å·", "field": "wheels_Location", type: "text" }, |
| | | { "title": "åºä½å·", "field": "wheels_Location", type: "like" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | //{ field: 'wheels_SequenceNum', title: 'åºåå·', type: 'string', width: 110, align: 'left', sort: true, link: true, }, |
| | | //{ field: 'wheels_Num', title: '车轮å·', type: 'string', width: 110, align: 'left' }, |
| | | //{ field: 'wheels_Type', title: 'ç±»å(è½®/ç)', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'repair_item', title: 'æ°/æ§', type: 'string', width: 75, align: 'left' }, |
| | | { field: 'repair_item', title: 'æ°å/æ£ä¿®', type: 'string', width: 75, align: 'left' }, |
| | | //{ field: 'repair_item', title: 'æ°æ§ç±»å', type: 'string', width: 100, align: 'left',bind: { key: "NewOld", data: [] }} , |
| | | { field: 'dqtz_state', title: 'å¨/æ', type: 'int', width: 75, align: 'left' }, |
| | | { field: 'axes_type', title: 'è½®å', type: 'string', width: 100, align: 'left' }, |
| | |
| | | { field: 'zdp_LSCSYMH', title: 'èºæ ä¾§å©ä½ç£¨è', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'zdp_LMCSYMH', title: 'èºæ¯ä¾§å©ä½ç£¨è', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'zdp_rksj', title: 'å
¥åºæ¥æ', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_Statue', title: 'åæç¶æ', type: 'string', width: 100, align: 'left',bind: { key: "wheelsStatueDet", data: [] }} , |
| | | { field: 'zdp_DateDet', title: 'å½ååºå天æ°', type: 'int', sort: true, width: 100, align: 'left' }, |
| | | { field: 'creater', title: 'å建人', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | ]); |
| | |
| | | public static string CheckZdpPost(string Posttype) |
| | | { |
| | | string PostContainer = string.Empty; |
| | | if (Posttype=="左侧") |
| | | if (Posttype.Contains("å·¦")) |
| | | { |
| | | PostContainer = "left"; |
| | | } |
| | | else if (Posttype == "å³ä¾§") |
| | | else if (Posttype.Contains("å³")) |
| | | { |
| | | PostContainer = "right"; |
| | | } |
| | | else |
| | | else if(Posttype.Contains("ä¸")) |
| | | { |
| | | PostContainer = "middle"; |
| | | } |
| | |
| | | afterLevel = "æ£ä¿®ç级6"; |
| | | return afterLevel; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | [XmlElement] |
| | | public string WXRW { get; set; } |
| | | } |
| | | |
| | | |
| | | [XmlRoot("ROOT")] |
| | | public class WheelSetMeasurement : CZInfo_ZY |
| | | { |
| | | // Left disc seat diameters |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾A1 |
| | | /// </summary> |
| | | [XmlElement("ZPZA1")] |
| | | public string ZPZA1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾A2 |
| | | /// </summary> |
| | | [XmlElement("ZPZA2")] |
| | | public string ZPZA2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾A3 |
| | | /// </summary> |
| | | [XmlElement("ZPZA3")] |
| | | public string ZPZA3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾A |
| | | /// </summary> |
| | | [XmlElement("ZPZA")] |
| | | public string ZPZA { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾B1 |
| | | /// </summary> |
| | | [XmlElement("ZPZB1")] |
| | | public string ZPZB1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾B2 |
| | | /// </summary> |
| | | [XmlElement("ZPZB2")] |
| | | public string ZPZB2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾B3 |
| | | /// </summary> |
| | | [XmlElement("ZPZB3")] |
| | | public string ZPZB3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾B |
| | | /// </summary> |
| | | [XmlElement("ZPZB")] |
| | | public string ZPZB { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾C1 |
| | | /// </summary> |
| | | [XmlElement("ZPZC1")] |
| | | public string ZPZC1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾C2 |
| | | /// </summary> |
| | | [XmlElement("ZPZC2")] |
| | | public string ZPZC2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾C3 |
| | | /// </summary> |
| | | [XmlElement("ZPZC3")] |
| | | public string ZPZC3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾C |
| | | /// </summary> |
| | | [XmlElement("ZPZC")] |
| | | public string ZPZC { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¦ç座ç´å¾ |
| | | /// </summary> |
| | | [XmlElement("ZPZZJ")] |
| | | public string ZPZZJ { get; set; } |
| | | |
| | | // Middle disc seat diameters |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A1 |
| | | /// </summary> |
| | | [XmlElement("MPZA1")] |
| | | public string MPZA1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A2 |
| | | /// </summary> |
| | | [XmlElement("MPZA2")] |
| | | public string MPZA2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A3 |
| | | /// </summary> |
| | | [XmlElement("MPZA3")] |
| | | public string MPZA3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A |
| | | /// </summary> |
| | | [XmlElement("MPZA")] |
| | | public string MPZA { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B1 |
| | | /// </summary> |
| | | [XmlElement("MPZB1")] |
| | | public string MPZB1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B2 |
| | | /// </summary> |
| | | [XmlElement("MPZB2")] |
| | | public string MPZB2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B3 |
| | | /// </summary> |
| | | [XmlElement("MPZB3")] |
| | | public string MPZB3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B |
| | | /// </summary> |
| | | [XmlElement("MPZB")] |
| | | public string MPZB { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C1 |
| | | /// </summary> |
| | | [XmlElement("MPZC1")] |
| | | public string MPZC1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C2 |
| | | /// </summary> |
| | | [XmlElement("MPZC2")] |
| | | public string MPZC2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C3 |
| | | /// </summary> |
| | | [XmlElement("MPZC3")] |
| | | public string MPZC3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C |
| | | /// </summary> |
| | | [XmlElement("MPZC")] |
| | | public string MPZC { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾ |
| | | /// </summary> |
| | | [XmlElement("MPZZJ")] |
| | | public string MPZZJ { get; set; } |
| | | |
| | | // Right disc seat diameters |
| | | /// <summary> |
| | | /// å³ç座ç´å¾A1 |
| | | /// </summary> |
| | | [XmlElement("YPZA1")] |
| | | public string YPZA1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾A2 |
| | | /// </summary> |
| | | [XmlElement("YPZA2")] |
| | | public string YPZA2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾A3 |
| | | /// </summary> |
| | | [XmlElement("YPZA3")] |
| | | public string YPZA3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾A |
| | | /// </summary> |
| | | [XmlElement("YPZA")] |
| | | public string YPZA { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾B1 |
| | | /// </summary> |
| | | [XmlElement("YPZB1")] |
| | | public string YPZB1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾B2 |
| | | /// </summary> |
| | | [XmlElement("YPZB2")] |
| | | public string YPZB2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾B3 |
| | | /// </summary> |
| | | [XmlElement("YPZB3")] |
| | | public string YPZB3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾B |
| | | /// </summary> |
| | | [XmlElement("YPZB")] |
| | | public string YPZB { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾C1 |
| | | /// </summary> |
| | | [XmlElement("YPZC1")] |
| | | public string YPZC1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾C2 |
| | | /// </summary> |
| | | [XmlElement("YPZC2")] |
| | | public string YPZC2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾C3 |
| | | /// </summary> |
| | | [XmlElement("YPZC3")] |
| | | public string YPZC3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾C |
| | | /// </summary> |
| | | [XmlElement("YPZC")] |
| | | public string YPZC { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å³ç座ç´å¾ |
| | | /// </summary> |
| | | [XmlElement("YPZZJ")] |
| | | public string YPZZJ { get; set; } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | WebResponseContent DownLoadTemplate(); |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | // é对å¸å°ç±»ååæ®µè¿è¡ç²¾ç¡®æ¥è¯¢ |
| | | if (searchParametersList[i].Value.ToLower() == "true" || searchParametersList[i].Value.ToLower() == "false") |
| | | { |
| | | where += $" and {searchParametersList[i].Name} = '{searchParametersList[i].Value.ToLower()}'"; |
| | | where += $" and [{searchParametersList[i].Name}] = '{searchParametersList[i].Value.ToLower()}'"; |
| | | } |
| | | else |
| | | { |
| | | where += $" and {searchParametersList[i].Name} like '%{searchParametersList[i].Value}%'"; |
| | | where += $" and [{searchParametersList[i].Name}] like '%{searchParametersList[i].Value}%'"; |
| | | } |
| | | } |
| | | } |
| | |
| | | public interface IDt_CheckResultService : IService<Dt_CheckResult> |
| | | { |
| | | WebResponseContent HandUploadData(int id); |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | WebResponseContent LocationEnable(SaveModel saveModel); |
| | | WebResponseContent LocationStatus(); |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¾è´§ä½ |
| | | /// </summary> |
| | | /// <param name="RoadWayNo"></param> |
| | | /// <param name="locationInfos"></param> |
| | | /// <returns></returns> |
| | | DtLocationInfo RequestLocation(string RoadWayNo, List<DtLocationInfo> locationInfos = null); |
| | | } |
| | |
| | | /// <returns></returns> |
| | | WebResponseContent CreateAndSendOutboundTask(SaveModel saveModel); |
| | | |
| | | |
| | | |
| | | WebResponseContent GetStockStatue(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "agvç®æ å°å")] |
| | | public string AGVaddres { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A1 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾A1")] |
| | | public string MPZA1 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A2 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾A2")] |
| | | public string MPZA2 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A3 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾A3")] |
| | | public string MPZA3 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾A |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾A")] |
| | | public string MPZA { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B1 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾B1")] |
| | | public string MPZB1 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B2 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾B2")] |
| | | public string MPZB2 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B3 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾B3")] |
| | | public string MPZB3 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾B |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾B")] |
| | | public string MPZB { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C1 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾C1")] |
| | | public string MPZC1 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C2 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾C2")] |
| | | public string MPZC2 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C3 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾C3")] |
| | | public string MPZC3 { get; set; } |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾C |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾C")] |
| | | public string MPZC { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä¸ç座ç´å¾ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ä¸ç座ç´å¾")] |
| | | public string MPZZJ { get; set; } |
| | | } |
| | | } |
| | |
| | | |
| | | [SugarColumn(IsNullable = true, Length = 20, ColumnDescription = "æ¯åè¿çéä¸é")] |
| | | public decimal upperValue_gk { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å¶å¨çä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "å¶å¨çæ¹å")] |
| | | public string PostContainer { get; set; } |
| | | } |
| | | } |
| | |
| | | using WIDESEA_IRepository; |
| | | using WIDESEA_Core.BaseRepository; |
| | | using System.Net; |
| | | using AngleSharp.Dom; |
| | | using SqlSugar; |
| | | |
| | | namespace WIDESEA_Services |
| | | { |
| | |
| | | { |
| | | return BaseDal.QueryData(x => x.Category == category && x.ConfigKey == configKey).FirstOrDefault(); |
| | | } |
| | | |
| | | public virtual PageGridData<Sys_Config> GetPageData(PageDataOptions options) |
| | | { |
| | | string wheres = "(Category = 'SYS_Parameters')"; |
| | | //è·åæåºå段 |
| | | Dictionary<string, OrderByType> orderbyDic = options.GetPageDataSort(TProperties); |
| | | |
| | | PageGridData<Sys_Config> pageGridData = new PageGridData<Sys_Config>(); |
| | | pageGridData = BaseDal.QueryPage(wheres, options.Page, options.Rows, orderbyDic); |
| | | |
| | | return pageGridData; |
| | | } |
| | | } |
| | | } |
| | |
| | | string message = ""; |
| | | try |
| | | { |
| | | UserInfo user = App.User.GetCurrentUserInfo(); |
| | | if (!GetAllChildren(user.RoleId).Exists(x => x.Id == roleId)) |
| | | if (!GetAllChildren(App.User.RoleId).Exists(x => x.Id == roleId)) |
| | | return WebResponseContent.Instance.Error("没ææéä¿®æ¹æ¤è§è²çæéä¿¡æ¯"); |
| | | //å½åç¨æ·çæé |
| | | List<Permissions> permissions = _MenuRepository.GetPermissions(App.User.RoleId); |
| | |
| | | List<Sys_RoleAuth> updateAuths = new List<Sys_RoleAuth>(); |
| | | foreach (UserPermissionDTO x in userPermissions) |
| | | { |
| | | Permissions per = permissions.Where(p => p.MenuId == x.Id).FirstOrDefault(); |
| | | Permissions per = permissions.FirstOrDefault(p => p.MenuId == x.Id); |
| | | //ä¸è½åé
è¶
è¿å½åç¨æ·çæé |
| | | if (per == null) continue; |
| | | //per.UserAuthArr.Contains(a.Value)æ ¡éªæéèå´ |
| | |
| | | AuthValue = string.Join(",", arr), |
| | | AuthId = auth == null ? 0 : auth.AuthId, |
| | | ModifyDate = DateTime.Now, |
| | | Modifier = user.UserName, |
| | | Modifier = App.User.UserName, |
| | | CreateDate = DateTime.Now, |
| | | Creater = user.UserName |
| | | Creater = App.User.UserName |
| | | }); |
| | | } |
| | | else |
| | |
| | | x.AuthValue = ""; |
| | | }); |
| | | //å°åæ¶çæé设置为"" |
| | | _RoleAuthRepository.UpdateData(delAuths); |
| | | _RoleAuthRepository.DeleteData(delAuths); |
| | | |
| | | int addCount = updateAuths.Where(x => x.AuthId <= 0).Count(); |
| | | int updateCount = updateAuths.Where(x => x.AuthId > 0).Count(); |
| | |
| | | string _version = DateTime.Now.ToString("yyyyMMddHHMMssfff"); |
| | | |
| | | |
| | | content.OK($"ä¿åæåï¼æ°å¢å é
èåæé{addCount}æ¡,æ´æ°èå{updateCount}æ¡,å 餿é{delAuths.Count()}æ¡"); |
| | | content.OK($"ä¿åæåï¼æ°å¢å é
èåæé{addCount}æ¡,æ´æ°èå{updateCount}æ¡,å 餿é{delAuths.Count}æ¡"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | |
| | | var respon = HttpHelper.Post(wmsIpAddrss, JsonConvert.SerializeObject(TargetAddress)); //http://localhost:9291/api/Task/ReceiveTask, |
| | | |
| | | if (respon == null) return content.OK("çæä»»å¡æå"); |
| | | if (respon == null) return content.Error("失败ï¼è°åwcs失败"); |
| | | |
| | | WebResponseContent respone = JsonConvert.DeserializeObject<WebResponseContent>(respon.ToString()); |
| | | if (!respone.Status) |
| | |
| | | |
| | | RequestTaskDto input=new RequestTaskDto(); |
| | | input.Position = TargetAddress; |
| | | input.RequestType = "888"; |
| | | input.PalletCode = CZTM; |
| | | WebResponseContent agvtocon=genAgvSchedulingTask(input); |
| | | if(agvtocon.Status) |
| | | { |
| | |
| | | |
| | | //æ¥æ¾å½åå¨è½¦è½´çº¿æ«ç«¯éè¦agvæ¬è¿ç车轴 |
| | | |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" /*|| x.CurrentStatue == "4" || x.CurrentStatue == "5"*/ || x.CurrentStatue == "13"); |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "4" || x.CurrentStatue == "5" ); |
| | | |
| | | if (CZInfotlist.Count >= 2) { return content.Error($"å·²æagv任塿£å¨è¿è¡ä¸ï¼ä¸å失败ï¼ï¼ï¼"); } |
| | | |
| | | Dt_CZInfo_mes CZInfot = CZInfotlist.FirstOrDefault(x => x.CurrentStatue == "3" || x.CurrentStatue == "13"); |
| | | if (CZInfot == null) { return content.Error($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | Dt_CZInfo_mes CZInfot = null; |
| | | |
| | | if (input.RequestType == "888") |
| | | { |
| | | CZInfot = _task_CZInfoRepository.QueryFirst(x =>x.CZTM==input.PalletCode && (x.CurrentStatue == "11" || x.CurrentStatue == "12" || x.CurrentStatue == "13")); |
| | | if (CZInfot == null) { return content.Error($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | } |
| | | else |
| | | { |
| | | CZInfot = _task_CZInfoRepository.QueryFirst(x => x.CurrentStatue == "3"); |
| | | if (CZInfot == null) { return content.Error($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | } |
| | | |
| | | |
| | | CZInfot.CurrentStatue = "4"; |
| | | |
| | |
| | | if (string.IsNullOrEmpty(clCode) || string.IsNullOrEmpty(clh)) |
| | | throw new Exception($"车轮æ¡ç ä¸è½ä¸ºç©º"); |
| | | |
| | | if (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) throw new Exception($"车轮æ¡ç é误,è¯·éæ°æ ¸å¯¹"); |
| | | //if ((!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) || (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("BVV"))) throw new Exception($"车轮æ¡ç é误,è¯·éæ°æ ¸å¯¹"); |
| | | |
| | | var clinfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh); |
| | | if (clinfo != null) throw new Exception("车轮å½å
¥ä¿¡æ¯å·²åå¨"); |
| | |
| | | Creater = "admin", |
| | | CurrentStatue = "1", |
| | | CZH = czh, |
| | | CZXH = czxh, |
| | | CZXH = czxh, //车轴åå· |
| | | LDTM = ldtm, |
| | | MTTYPE = mttype, |
| | | ZLZA1 = zlzA1, |
| | |
| | | var hourpara = _configService.GetByConfigKey(CateGoryConst.CONFIG_SYS_Parameters, SysConfigConst.TempHour); |
| | | int hour = hourpara.ConfigValue.ObjToInt(); |
| | | |
| | | //æ¾åºææç¬¦åæ¡ä»¶çåºå车轮 |
| | | var WheelsList = _WheelsStockRepository.QueryData(x => x.Wheels_CurrentStatue == 1 && x.Wheels_mttype == CZInfo_Mes.MTTYPE && x.Wheels_ldxh == clxh && x.Wheels_NewOrOld == newOrOld && x.CreateDate.AddHours(hour) <= DateTime.Now && x.WheelsProps == wheelsProps); |
| | | List<Dt_WheelsStock> WheelsList = null; |
| | | |
| | | //ç¹æ®è½¦è½´åå·ï¼ï¼ |
| | | //M1A å¯¹åº è½¦å CRH1A CRH1A-200 |
| | | //M1B å¯¹åº è½¦å CRH1B CRHA1A-250 |
| | | //M1C å¯¹åº è½¦å CRH1C CRH1A-A |
| | | if (czxh == "M1A") |
| | | { |
| | | WheelsList = _WheelsStockRepository.QueryData(x => x.Wheels_CurrentStatue == 1 && x.Wheels_mttype == CZInfo_Mes.MTTYPE && x.Wheels_ldxh == clxh && x.Wheels_NewOrOld == newOrOld && x.CreateDate.AddHours(hour) <= DateTime.Now && x.WheelsProps == wheelsProps && (x.Wheels_CarType == "CRH1A" || x.Wheels_CarType == "CRH1A-200") && x.Wheels_Statue==0); |
| | | |
| | | } |
| | | else if(czxh == "M1B") |
| | | { |
| | | WheelsList = _WheelsStockRepository.QueryData(x => x.Wheels_CurrentStatue == 1 && x.Wheels_mttype == CZInfo_Mes.MTTYPE && x.Wheels_ldxh == clxh && x.Wheels_NewOrOld == newOrOld && x.CreateDate.AddHours(hour) <= DateTime.Now && x.WheelsProps == wheelsProps && (x.Wheels_CarType == "CRH1B" || x.Wheels_CarType == "CRHA1A-250") && x.Wheels_Statue == 0); |
| | | |
| | | } |
| | | else if (czxh == "M1C") |
| | | { |
| | | WheelsList = _WheelsStockRepository.QueryData(x => x.Wheels_CurrentStatue == 1 && x.Wheels_mttype == CZInfo_Mes.MTTYPE && x.Wheels_ldxh == clxh && x.Wheels_NewOrOld == newOrOld && x.CreateDate.AddHours(hour) <= DateTime.Now && x.WheelsProps == wheelsProps && (x.Wheels_CarType == "CRH1C" || x.Wheels_CarType == "CRH1A-A") && x.Wheels_Statue == 0); |
| | | } |
| | | else |
| | | { |
| | | //æ¾åºææç¬¦åæ¡ä»¶çåºå车轮 |
| | | WheelsList = _WheelsStockRepository.QueryData(x => x.Wheels_CurrentStatue == 1 && x.Wheels_mttype == CZInfo_Mes.MTTYPE && x.Wheels_ldxh == clxh && x.Wheels_NewOrOld == newOrOld && x.CreateDate.AddHours(hour) <= DateTime.Now && x.WheelsProps == wheelsProps && x.Wheels_Statue == 0); |
| | | } |
| | | |
| | | //x.Wheels_CarType == CZInfo_Mes.CHEXING && x.Wheels_ldtm == CZInfo_Mes.LDTM && selectionStandards.CarType.Contains(x.Wheels_CarType) |
| | | if (null != WheelsList && WheelsList.Count > 0) |
| | | { |
| | |
| | | |
| | | var responStr = HttpsClient.PostXml(ipaddress, dic); |
| | | |
| | | //CLInfo_ZY info = JsonConvert.DeserializeObject<CLInfo_ZY>(responStr); |
| | | //CLInfo_ZY info = JsonConvert.DeserializeObject<CLInfo_ZY>(responStr);1 |
| | | |
| | | CZInfo_ZY inf2o = XMLSerializationTool.DeserializeXmlToObject<CZInfo_ZY>(responStr); |
| | | WheelSetMeasurement inf2o = XMLSerializationTool.DeserializeXmlToObject<WheelSetMeasurement>(responStr); |
| | | |
| | | if (inf2o.FLAG != "S") throw new Exception($"è·åä¿¡æ¯å¤±è´¥:æ¥å£è¿å失败:{inf2o.ERROR}"); |
| | | //string info2 = XMLSerializationTool.SerializeObjectToXml<string>(responStr); |
| | | |
| | | //CLInfo_ZY info_ZY = new CLInfo_ZY() //æµè¯æ°æ® |
| | | //{ |
| | | // //level = "1", |
| | | // //InboundDate = "2020-04-10", |
| | | // //gkzjjz = "520.11", |
| | | // //gkjmz = "421.1", |
| | | // //czh = "100", |
| | | // //clh = "L E123-52 4A", |
| | | // //cartype = "CRH1A", |
| | | // //Ltype = "SDA", |
| | | // //lx = "DA", |
| | | // //mttype = "crh", |
| | | // //NewOrOld = "NEW", |
| | | // //psj = "å¨è½¦ç»", |
| | | // //sx = "da", |
| | | // //xlh = "1", |
| | | // //ygljz = "121" |
| | | //}; |
| | | |
| | | //inf2o.CHEXING = "CRH1A"; |
| | | //inf2o.MTTYPE = "M"; |
| | | |
| | | //CLInfo_ZY info_ZY = XmlToJson(responStr); |
| | | |
| | | content.OK(data: inf2o); |
| | | } |
| | | catch (Exception ex) |
| | |
| | | namespace WIDESEA_StorageBasicRepository |
| | | using WIDESEA_IStorageBasicRepository; |
| | | |
| | | namespace WIDESEA_StorageBasicRepository |
| | | { |
| | | public class Dt_CheckResultRepository : RepositoryBase<Dt_CheckResult>, IDt_CheckResultRepository |
| | | { |
| | |
| | | decimal lowerValue = Convert.ToDecimal(saveModel.MainData["lowerValue"]); |
| | | decimal upperValue = Convert.ToDecimal(saveModel.MainData["upperValue"]); |
| | | int isCantainGK = saveModel.MainData["isCantainGK"].ObjToInt(); |
| | | decimal lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | decimal upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | string PostContainer = saveModel.MainData["postContainer"].ToString(); |
| | | |
| | | |
| | | if (lowerValue < 0 || upperValue < 0) throw new Exception("è¿çéå¼å¼å¸¸"); |
| | | |
| | | decimal lowerValue_gk = 0; |
| | | decimal upperValue_gk = 0; |
| | | if (isCantainGK != 0) |
| | | { |
| | | if (lowerValue_gk < 0 || upperValue_gk < 0) throw new Exception("æªé¢è¿çéå¼å¼å¸¸"); |
| | | |
| | | lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | if (isCantainGK != 0) |
| | | { |
| | | if (lowerValue_gk < 0 || upperValue_gk < 0) throw new Exception("æªé¢è¿çéå¼å¼å¸¸"); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | Dt_SelectionStandards selectionStandards = new Dt_SelectionStandards |
| | | { |
| | |
| | | mttype = mttype, |
| | | neworold = neworold, |
| | | upperValue_gk = upperValue_gk, |
| | | upperValue = upperValue |
| | | upperValue = upperValue, |
| | | PostContainer = PostContainer, |
| | | }; |
| | | |
| | | if (BaseDal.AddData(selectionStandards) > 0) |
| | |
| | | string gkdj = saveModel.MainData["gkdj"].ToString(); |
| | | decimal lowerValue = Convert.ToDecimal(saveModel.MainData["lowerValue"]); |
| | | decimal upperValue = Convert.ToDecimal(saveModel.MainData["upperValue"]); |
| | | string PostContainer = saveModel.MainData["postContainer"].ToString(); |
| | | int isCantainGK = saveModel.MainData["isCantainGK"].ObjToInt(); |
| | | decimal lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | decimal upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | |
| | | Dt_SelectionStandards dt_Selection = BaseDal.QueryFirst(x => x.ID == id); |
| | | dt_Selection.CarType=carType; |
| | | dt_Selection.mttype=mttype; |
| | | |
| | | |
| | | |
| | | dt_Selection.CarType = carType; |
| | | dt_Selection.mttype = mttype; |
| | | dt_Selection.neworold = neworold; |
| | | dt_Selection.gkdj = gkdj; |
| | | dt_Selection.lowerValue = lowerValue; |
| | | dt_Selection.upperValue = upperValue; |
| | | dt_Selection.isCantainGK = isCantainGK != 0 ? true : false; |
| | | dt_Selection.lowerValue_gk = lowerValue_gk; |
| | | dt_Selection.upperValue_gk = upperValue_gk; |
| | | |
| | | dt_Selection.PostContainer = PostContainer; |
| | | |
| | | dt_Selection.isCantainGK = isCantainGK != 0 ? true : false; |
| | | if (isCantainGK != 0) |
| | | { |
| | | decimal lowerValue_gk = Convert.ToDecimal(saveModel.MainData["lowerValue_gk"]); |
| | | decimal upperValue_gk = Convert.ToDecimal(saveModel.MainData["upperValue_gk"]); |
| | | |
| | | dt_Selection.lowerValue_gk = lowerValue_gk; |
| | | dt_Selection.upperValue_gk = upperValue_gk; |
| | | } |
| | | |
| | | |
| | | if (BaseDal.UpdateData(dt_Selection)) |
| | | { |
| | |
| | | Dt_InWheels_mes wheels_Mes = new Dt_InWheels_mes |
| | | { |
| | | Wheels_code = DateTime.Now.ToString("yyyyMMddHHmmss") + clCode, |
| | | Wheels_Type = "1", |
| | | Wheels_Type = "车轮", |
| | | Wheels_Num = DateTime.Now.ToString("yyyyMMddHHmmss") + clCode, |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName == null ? "admin" : App.User.UserName, |
| | |
| | | using System.Collections.Generic; |
| | | using System.Drawing.Printing; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA.Common; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_StorageBasicRepository; |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | using WIDESEA.Common; |
| | | using WIDESEA_Common.ZY; |
| | | using Autofac.Core; |
| | | using NetTaste; |
| | | using AngleSharp.Io; |
| | | using WIDESEA_IStorageBasicRepository; |
| | | |
| | | namespace WIDESEA_StorageBasicService; |
| | | |
| | | public class Dt_CheckResultService : ServiceBase<Dt_CheckResult, IDt_CheckResultRepository>, IDt_CheckResultService |
| | | { |
| | | |
| | | public Dt_CheckResultService(IDt_CheckResultRepository BaseDal) : base(BaseDal) |
| | | { |
| | | |
| | | } |
| | | |
| | | public static string ZY_CheckResultInterface = "http://172.21.1.117/barcode/Webservice/WebService_ZY/Service_EQP.asmx"; |
| | | |
| | | public override PageGridData<Dt_CheckResult> GetPageData(PageDataOptions options) |
| | | { |
| | | return base.GetPageData(options); |
| | | } |
| | | |
| | | public WebResponseContent HandUploadData(int id) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | private readonly ITaskExecuteDetailRepository _taskExecuteDetailRepository; |
| | | private readonly ILocationStatusChangeRecordRepository _locationStatusChangeRecordRepository; |
| | | private readonly IDt_WheelsStockRepository _WheelsStockRepository; |
| | | private readonly IDt_ZdpStockRepository _zdpStockRepository; |
| | | private readonly IMapper _mapper; |
| | | |
| | | public LocationInfoService(ILocationInfoRepository BaseDal, |
| | |
| | | IStockInfoDetailRepository stockInfoDetailRepository, |
| | | IMapper mapper, |
| | | IDt_TaskService taskService, |
| | | IDt_WheelsStockRepository wheelsStockRepository) : base(BaseDal) |
| | | IDt_WheelsStockRepository wheelsStockRepository, |
| | | IDt_ZdpStockRepository zdpStockRepository) : base(BaseDal) |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | _taskRepository = taskRepository; |
| | |
| | | _mapper = mapper; |
| | | _taskService = taskService; |
| | | _WheelsStockRepository = wheelsStockRepository; |
| | | _zdpStockRepository = zdpStockRepository; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | // è·åæ°çåºä½çä»»å¡ |
| | | var internalTransferTask = await _taskRepository.QueryFirstAsync(x => x.SourceAddress == newLocationID && x.Roadway == outboundTask.Roadway && x.TaskState == (int)TaskOutStatusEnum.OutNew); |
| | | |
| | | |
| | | |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,è·åæ°åºä½çä»»å¡", $"æ°åºä½ä»»å¡ï¼{internalTransferTask}"); |
| | | // 妿æ°çåºä½æ²¡ææ¾å°å¯¹åºçä»»å¡ |
| | |
| | | // å¤æè¯¥ä½ç½®æ¯å¦æåºå |
| | | var stockInfo = await _WheelsStockRepository.QueryFirstAsync(x => x.Wheels_Location == newLocationID); |
| | | |
| | | // å¤æè¯¥ä½ç½®æ¯å¦æåºå |
| | | var zdpInfo = await _zdpStockRepository.QueryFirstAsync(x => x.Zdp_Location == newLocationID); |
| | | |
| | | |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°æ°åºä½ä»»å¡", $"该ä½ç½®æ¯å¦æåºåï¼{stockInfo}"); |
| | | if (stockInfo == null) |
| | | if (stockInfo == null && zdpInfo==null) |
| | | { |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°åºåæ°æ®", $"ç´æ¥è¿ååå
åºåºä»»å¡ï¼{outboundTask}"); |
| | | // å¦ææ²¡æåºåï¼ç´æ¥è¿åå½ååºåºä»»å¡ |
| | |
| | | { |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName == null ? "admin" : App.User.UserName, |
| | | CurrentAddress = stockInfo.Wheels_Location, |
| | | CurrentAddress = stockInfo != null ?stockInfo.Wheels_Location: zdpInfo.Zdp_Location, |
| | | Grade = 99, |
| | | MaterialNo = stockInfo.Wheels_Type, |
| | | MaterialNo = stockInfo != null ? stockInfo.Wheels_Type: "2", |
| | | NextAddress = emptyLocation.LocationCode, |
| | | PalletCode = stockInfo.Wheels_Num, |
| | | PalletCode = stockInfo != null ? stockInfo.Wheels_Num : zdpInfo.Zdp_code, |
| | | Remark = "ç§»åº", |
| | | Roadway = "SC1", |
| | | SourceAddress = stockInfo.Wheels_Location, |
| | | SourceAddress = stockInfo != null ? stockInfo.Wheels_Location : zdpInfo.Zdp_Location, |
| | | TaskNum = taskNo, |
| | | TargetAddress = emptyLocation.LocationCode, |
| | | TaskState = (int)TaskStatus.Created, |
| | |
| | | // å¤æè¯¥ä½ç½®æ¯å¦æåºå |
| | | var stockInfo = await _WheelsStockRepository.QueryFirstAsync(x => x.Wheels_Location == newLocationID); |
| | | |
| | | // å¤æè¯¥ä½ç½®æ¯å¦æåºå |
| | | var zdpInfo = await _zdpStockRepository.QueryFirstAsync(x => x.Zdp_Location == newLocationID); |
| | | |
| | | |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°æ°åºä½ä»»å¡", $"该ä½ç½®æ¯å¦æåºåï¼{stockInfo}"); |
| | | if (stockInfo == null) |
| | | if (stockInfo == null && zdpInfo == null) |
| | | { |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°åºåæ°æ®", $"ç´æ¥è¿ååå
åºåºä»»å¡ï¼{inboundTask}"); |
| | | // å¦ææ²¡æåºåï¼ç´æ¥è¿åå½ååºåºä»»å¡ |
| | |
| | | { |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName == null ? "admin" : App.User.UserName, |
| | | CurrentAddress = stockInfo.Wheels_Location, |
| | | CurrentAddress = stockInfo != null ? stockInfo.Wheels_Location : zdpInfo.Zdp_Location, |
| | | Grade = 99, |
| | | MaterialNo = stockInfo.Wheels_Type, |
| | | MaterialNo = stockInfo != null ? stockInfo.Wheels_Type : "2", |
| | | NextAddress = emptyLocation.LocationCode, |
| | | PalletCode = stockInfo.Wheels_Num, |
| | | PalletCode = stockInfo != null ? stockInfo.Wheels_Num : zdpInfo.Zdp_code, |
| | | Remark = "ç§»åº", |
| | | Roadway = "SC1", |
| | | SourceAddress = stockInfo.Wheels_Location, |
| | | SourceAddress = stockInfo != null ? stockInfo.Wheels_Location : zdpInfo.Zdp_Location, |
| | | TaskNum = taskNo, |
| | | TargetAddress = emptyLocation.LocationCode, |
| | | TaskState = (int)TaskStatus.Created, |
| | |
| | | //List<DtLocationInfo> locations = new List<DtLocationInfo>(); |
| | | if (locationInfos == null || locationInfos.Count == 0) |
| | | { |
| | | locationInfos = BaseDal.QueryData(x => x.LocationStatus == (int)LocationEnum.Free && x.RoadwayNo == "SC1" && x.EnalbeStatus == 1 && x.LocationType == 1); |
| | | locationInfos = BaseDal.QueryData(x => x.LocationStatus == 0 && x.RoadwayNo == "SC1" && x.EnalbeStatus == 1 && x.LocationType == 1); |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | locationInfos.Remove(location); |
| | | if (locationInfos.Count == 0) return null; |
| | | RequestLocation(RoadWayNo, locationInfos); |
| | | return RequestLocation(RoadWayNo, locationInfos); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | private DtLocationInfo GetEmptyLocation(List<DtLocationInfo> dtLocationInfos) |
| | | { |
| | | var locationinfo = dtLocationInfos.Where(x => x.LocationStatus == (int)LocationEnum.Free && x.RoadwayNo == "SC1" && x.EnalbeStatus == 1 && x.LocationType == 1).OrderBy(x => x.Layer).ThenByDescending(x => x.Depth).ThenBy(x => x.Row).ThenBy(x => x.Column).FirstOrDefault(); |
| | | var locationinfo = dtLocationInfos.Where(x => x.LocationStatus == 0 && x.RoadwayNo == "SC1" && x.EnalbeStatus == 1 && x.LocationType == 1).OrderBy(x => x.Layer).ThenByDescending(x => x.Depth).ThenBy(x => x.Row).ThenBy(x => x.Column).FirstOrDefault(); |
| | | |
| | | return locationinfo; |
| | | } |
| | |
| | | var deleteList = currentList.Except(oldWheels).ToList(); |
| | | //currentList.Where(x=>x.wheel_code) |
| | | |
| | | BaseDal.DeleteData(BaseDal.QueryData()); |
| | | |
| | | if (BaseDal.AddData(oldWheels) > 1) |
| | | { |
| | | return content.OK("æ§åºæ°æ®è·åæå"); |
| | | } |
| | | else |
| | | { |
| | | return content.Error(); |
| | | return content.Error("æ·»å 失败"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | using MailKit.Search; |
| | | using Mapster; |
| | | using Masuit.Tools; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Database; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.DateTime; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; |
| | | using System.Diagnostics; |
| | | using System.Reflection.Emit; |
| | |
| | | Wheels_mttype = stock.Wheels_mttype, |
| | | //Wheels_SequenceNum = "", |
| | | Wheels_ygljz = stock.Wheels_ygljz, |
| | | Wheels_DateDet = stock.Wheels_DateDet, |
| | | Wheels_Statue = stock.Wheels_Statue, |
| | | }; |
| | | |
| | | |
| | |
| | | Zdp_GKJZ = stock.Zdp_GKJZ, |
| | | Zdp_LSCSYMH = stock.Zdp_LSCSYMH, |
| | | Zdp_rksj = stock.Zdp_rksj, |
| | | Zdp_Statue= stock.Zdp_Statue, |
| | | Zdp_DateDet = stock.Zdp_DateDet, |
| | | }; |
| | | |
| | | // äºå¡å¤ç |
| | |
| | | |
| | | var wheels_Mes_Hty = inWheels_Mes.Adapt<Dt_InWheels_mes_hty>(); |
| | | |
| | | wheels_Mes_Hty.Wheels_Type = "è½®"; |
| | | wheels_Mes_Hty.Wheels_CurrentStatue = "2"; |
| | | wheels_Mes_Hty.FinishDate = DateTime.Now; |
| | | wheels_Mes_Hty.OperateType = (int)OperateTypeEnum.èªå¨å®æ; |
| | |
| | | #endregion ä»»å¡è¯·æ±æ¹æ³ |
| | | |
| | | #endregion private å
鍿¹æ³ |
| | | |
| | | |
| | | |
| | | public WebResponseContent GetStockStatue() |
| | | { |
| | | WebResponseContent content=new WebResponseContent(); |
| | | int Wherecount = _WheelsStockRepository.QueryData(x => x.Wheels_Statue == 1).Count(); |
| | | |
| | | int Zdpcount = _ZdpStockRepository.QueryData(x => x.Zdp_Statue == 1).Count(); |
| | | |
| | | content.Data = new |
| | | { |
| | | WheelsCount = Wherecount, |
| | | ZdpCount = Zdpcount |
| | | }; |
| | | return content; |
| | | } |
| | | } |
| | |
| | | using log4net.Core; |
| | | using Masuit.Tools; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Net; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core.Const; |
| | |
| | | if(cacheinfo.Towhereabouts =="" && cacheinfo.Towhereabouts == null) throw new Exception($"{input.PalletCode}è¿è¾ç®æ å°å为空"); |
| | | return content.OK(data: cacheinfo.Towhereabouts);*/ |
| | | |
| | | var task = await BaseDal.QueryFirstAsync(x => x.PalletCode == input.PalletCode); |
| | | if (task == null) throw new Exception($"æªæ¾å°{input.PalletCode}æçä¿¡æ¯"); |
| | | if (task.Towhereabouts == "" && task.Towhereabouts == null) throw new Exception($"{input.PalletCode}è¿è¾ç®æ å°å为空"); |
| | | return content.OK(data: task.Towhereabouts); |
| | | |
| | | |
| | | var task = await BaseDal.QueryFirstAsync(x => input.PalletCode.Contains(x.PalletCode)); |
| | | if (task != null) |
| | | { |
| | | if (task.Towhereabouts == "" && task.Towhereabouts == null) return content.Error($"{input.PalletCode}è¿è¾ç®æ å°å为空"); |
| | | return content.OK(data: task.Towhereabouts); |
| | | } |
| | | else |
| | | { |
| | | Dt_Task_Hty dt_Task_Hty = _task_HtyRepository.QueryFirst(x => input.PalletCode.Contains(x.PalletCode) && x.CreateDate >= DateTime.Now.AddHours(-2)); |
| | | if (dt_Task_Hty == null) return content.Error($"æªæ¾å°{input.PalletCode}æçåå²ä¿¡æ¯"); |
| | | if (dt_Task_Hty.Towhereabouts == null && dt_Task_Hty.Towhereabouts == "") return content.Error($"{input.PalletCode}æçåå²ä¿¡æ¯æ²¡æè®°å½ç®æ å°å"); |
| | | return content.OK(data: dt_Task_Hty.Towhereabouts); |
| | | } |
| | | } |
| | | catch (Exception err) |
| | | { |
| | |
| | | return Service.LocationStatus(); |
| | | } |
| | | |
| | | [HttpPost, AllowAnonymous, Route("RequestLocation")] |
| | | public DtLocationInfo RequestLocation(string RoadWayNo, List<DtLocationInfo> locationInfos = null) |
| | | { |
| | | return Service.RequestLocation(RoadWayNo); |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | return Service.UpWheelsFlow(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¾ç¤ºåºåæå¤å°è¶
æç |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("GetStockStatue")] |
| | | public WebResponseContent GetStockStatue() |
| | | { |
| | | return Service.GetStockStatue(); |
| | | } |
| | | } |
| | |
| | | using Swashbuckle.AspNetCore.SwaggerGen; |
| | | using Microsoft.OpenApi.Models; |
| | | using WIDESEA_StorageTaskServices; |
| | | using WIDESEA_StoragIntegrationServices.WMSJob; |
| | | |
| | | var builder = WebApplication.CreateBuilder(args); |
| | | |
| | |
| | | } |
| | | }); |
| | | |
| | | //builder.Services.AddHostedService<MyBackgroundService>(); |
| | | builder.Services.AddHostedService<WMSCruJob>(); |
| | | |
| | | |
| | | var app = builder.Build(); |
| | |
| | | //è¿æ¥å符串 |
| | | //"ConnectionString": "HTI6FB1H05Krd07mNm9yBCNhofW6edA5zLs9TY~MNthRYW3kn0qKbMIsGp~3yyPDF1YZUCPBQx8U0Jfk4PH~ajNFXVIwlH85M3F~v_qKYQ3CeAz3q1mLVDn8O5uWt1~3Ut2V3KRkEwYHvW2oMDN~QIDXPxDgXN0R2oTIhc9dNu7QNaLEknblqmHhjaNSSpERdDVZIgHnMKejU_SL49tralBkZmDNi0hmkbL~837j1NWe37u9fJKmv91QPb~16JsuI9uu0EvNZ06g6PuZfOSAeFH9GMMIZiketdcJG3tHelo=", |
| | | //"ConnectionString": "Data Source=192.168.5.251;Initial Catalog=WIDESEA_WMSDB_BBMain;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWMS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWMS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=.\\LIULEI;Initial Catalog=MX_LDY_WMS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.20.251;Initial Catalog=WIDESEA_WMSDB;User ID=sa;Password=123456@gy;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionStringWCS": "Data Source=192.168.5.251;Initial Catalog=WIDESEAWCS_TEST;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionStringWCS": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionStringWCS": "Data Source=.;Initial Catalog=ZCLDY_WIDESEAWCS;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | | "PolicyName": "CorsIpAccess", //çç¥åç§° |