已添加113个文件
已修改83个文件
已删除51个文件
已重命名248个文件
已复制44个文件
¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "presets": [["es2015", { "modules": false }]], |
| | | "plugins": [ |
| | | [ |
| | | "component", |
| | | { |
| | | "libraryName": "element-ui", |
| | | "styleLibraryName": "theme-chalk" |
| | | } |
| | | ] |
| | | ] |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | # å¼åç¯å¢ï¼å¼åæ¶æ£å¸¸é½ç¨è¿ä¸ª |
| | | NODE_ENV = development |
| | | # å½åç¯å¢ï¼å¼åç¯å¢ï¼å¯ä»¥é便修æ¹ï¼é
åæå
å¤é
ç½®ä¸æ¤æä»¶åå |
| | | VUE_APP_URL_ENV = development |
| | | # æå
åæä»¶å¤¹åå |
| | | VUE_APP_outputDir = development |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | # æ£å¼ç¯å¢ï¼æå
é½ç¨è¿ä¸ªæ£å¸¸çå°±è¡ï¼ä¸ç¨æ¹ |
| | | NODE_ENV = production |
| | | # å½åç¯å¢ï¼æ£å¼å
ï¼testæ£å¼å
ï¼å¯ä»¥é便修æ¹ï¼é
åæå
å¤é
ç½®ä¸æ¤æä»¶åå å¯ä»¥æ¹ |
| | | VUE_APP_URL_ENV = production |
| | | # æå
åæä»¶å¤¹åå |
| | | VUE_APP_outputDir = dist-production |
¶Ô±ÈÐÂÎļþ |
| | |
| | | # ç .env.development éé¢ç注é |
| | | NODE_ENV = production |
| | | VUE_APP_URL_ENV = test |
| | | VUE_APP_outputDir = dist-test |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .DS_Store |
| | | node_modules |
| | | /dist |
| | | /dist-* |
| | | |
| | | |
| | | # local env files |
| | | .env.local |
| | | .env.*.local |
| | | |
| | | # Log files |
| | | npm-debug.log* |
| | | yarn-debug.log* |
| | | yarn-error.log* |
| | | pnpm-debug.log* |
| | | |
| | | # Editor directories and files |
| | | .idea |
| | | .vscode |
| | | *.suo |
| | | *.ntvs* |
| | | *.njsproj |
| | | *.sln |
| | | *.sw? |
¶Ô±ÈÐÂÎļþ |
| | |
| | | MIT License |
| | | |
| | | Copyright (c) 2022 daidai |
| | | |
| | | Permission is hereby granted, free of charge, to any person obtaining a copy |
| | | of this software and associated documentation files (the "Software"), to deal |
| | | in the Software without restriction, including without limitation the rights |
| | | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| | | copies of the Software, and to permit persons to whom the Software is |
| | | furnished to do so, subject to the following conditions: |
| | | |
| | | The above copyright notice and this permission notice shall be included in all |
| | | copies or substantial portions of the Software. |
| | | |
| | | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| | | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| | | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| | | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| | | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| | | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| | | SOFTWARE. |
¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | |
| | | ## é¡¹ç®æè¿° |
| | | |
| | | |
| | | |
| | | æ ¹æ®å¥è·å§é¢æ¡ç**[vue-big-screen](https://gitee.com/MTrun/big-screen-vue-datav)**弿ºæ¡æ¶åºç¡ä¸è¿è¡ä¿®æ¹ã |
| | | |
| | | - 项ç®éè¦å
¨å±å±ç¤ºï¼æ F11ï¼ã |
| | | |
| | | - 项ç®é¨ååºå使ç¨äºå
¨å±æ³¨åæ¹å¼ï¼å¢å äºæå
ä½ç§¯ï¼å¨å®é
è¿ç¨ä¸è¯·ä½¿ç¨ **æéå¼å
¥**ã |
| | | |
| | | - 项ç®ç¯å¢ï¼Vue-cliãDataVãEchartsãWebpackãNpmãNodeï¼axios,mockã |
| | | |
| | | - 请æå master 忝ç代ç ï¼å
¶ä½åæ¯æ¯å¼å忝ã |
| | | |
| | | - å¨é¡¹ç®publicç®å½ä¸åæ¾å°å¾æ°æ®åéï¼æ ¹æ®å°å¸ç¼åæ¾ã |
| | | |
| | | |
| | | åæ
龿¥ï¼ |
| | | |
| | | 1. [Vue 宿¹ææ¡£](https://gitee.com/link?target=https%3A%2F%2Fcn.vuejs.org%2Fv2%2Fguide%2Finstance.html) |
| | | 2. [DataV 宿¹ææ¡£](https://gitee.com/link?target=http%3A%2F%2Fdatav.jiaminghi.com%2Fguide%2F) |
| | | 3. [echarts å®ä¾](https://gitee.com/link?target=https%3A%2F%2Fecharts.apache.org%2Fexamples%2Fzh%2Findex.html)ï¼[echarts API ææ¡£](https://gitee.com/link?target=https%3A%2F%2Fecharts.apache.org%2Fzh%2Fapi.html%23echarts) |
| | | 4. [mock.jså®ç½](http://mockjs.com/examples.html) |
| | | 5. [axioså®ç½](https://axios-http.com/) |
| | | |
| | | **项ç®å±ç¤º** |
| | | |
| | |  |
| | | |
| | | ### 项ç®é¢è§å°å |
| | | |
| | | [https://www.daidaibg.com/bigscreen](https://www.daidaibg.com/bigscreen) |
| | | |
| | | ### 项ç®ä»åºå°å |
| | | |
| | | **githubå°å** |
| | | |
| | | [https://github.com/daidaibg/IofTV-Screen](https://github.com/daidaibg/IofTV-Screen) |
| | | |
| | | **Giteeå°å** |
| | | |
| | | [https://gitee.com/daidaibg/IofTV-Screen](https://gitee.com/daidaibg/IofTV-Screen) |
| | | |
| | | ### vue3+viteçæ¬å°å |
| | | |
| | | **githubå°å** |
| | | |
| | | [https://github.com/daidaibg/IofTV-Screen-Vue3](https://github.com/daidaibg/IofTV-Screen-Vue3) |
| | | |
| | | **Giteeå°å** |
| | | |
| | | [https://gitee.com/daidaibg/IofTV-Screen-Vue3](https://gitee.com/daidaibg/IofTV-Screen-Vue3) |
| | | |
| | | ### 1.1.0çæ¬å¼å§éç¨èªéåºç»ä»¶æ¹å¼ï¼ä¸å使ç¨mixinæ¹å¼ã |
| | | |
| | | ### æ»å¨è®¾ç½®ï¼èªéåºè®¾ç½® |
| | | |
| | | 项ç®ä¸å¯ä»¥è¿è¡æ»å¨é
ç½®ï¼å
容æ¯å¦æ»å¨ |
| | | |
| | | ç¹å»å³ä¸è§è®¾ç½®æé® |
| | |  |
| | | |
| | | |
| | | |
| | | å¯ä»¥è¿è¡ä»¥ä¸é
ç½®ï¼å¯ä»¥èªè¡ä»£ç ä¸è¿è¡ä¿®æ¹æå¢å é
ç½® |
| | | |
| | | |
| | | |
| | |  |
| | | |
| | | |
| | | |
| | | ## 2ãä¸»è¦æä»¶ä»ç» |
| | | |
| | | | æä»¶ | ä½ç¨/åè½ | |
| | | | ----------------- | ------------------------------------------------------------ | |
| | | | main.js | 主ç®å½æä»¶ï¼å¼å
¥ Echart/DataV çæä»¶ | |
| | | | utils | å·¥å
·å½æ°ä¸ mixins 彿°ç | |
| | | | views/ home.vue | 项ç®ä¸»ç»æ | |
| | | | views/å
¶ä½æä»¶ | çé¢å个åºåç»ä»¶ï¼æç
§ä½ç½®æ¥å½åï¼ | |
| | | | assets | éæèµæºç®å½ï¼æ¾ç½® logo ä¸èæ¯å¾ç | |
| | | | assets / css/ | éç¨ CSS æä»¶ï¼å
¨å±é¡¹ç®å¿«æ·æ ·å¼è°è | |
| | | | components/echart | ææ echart å¾è¡¨ï¼æç
§ä½ç½®æ¥å½åï¼ | |
| | | | common/... | å
¨å±å°è£
ç ECharts å flexible æä»¶ä»£ç ï¼éé
å±å¹å°ºå¯¸ï¼å¯å®å¶åä¿®æ¹ï¼ | |
| | | | api/api.js | æ¥å£å°è£
æä»¶ | |
| | | | mock | æ¨¡ææ°æ®æ¥å£å°å | |
| | | |
| | | ### |
| | | |
| | | ## 使ç¨ä»ç» |
| | | |
| | | ### å®è£
|
| | | |
| | | ```npm |
| | | npm install |
| | | ``` |
| | | ### å¯å¨ |
| | | |
| | | ```npm |
| | | npm start |
| | | ``` |
| | | |
| | | [æ¥ä¸æ¥è·é¢æ¡çå·®ä¸å¤è¿æ¯ç颿¡çææ¡£å§](https://gitee.com/MTrun/big-screen-vue-datav/tree/master#%E4%B8%89%E4%BD%BF%E7%94%A8%E4%BB%8B%E7%BB%8D) |
| | | |
| | | https://gitee.com/MTrun/big-screen-vue-datav/tree/master#%E4%B8%89%E4%BD%BF%E7%94%A8%E4%BB%8B%E7%BB%8D |
| | | |
| | | ### åæ¶mockæ¨¡ææ°æ® |
| | | |
| | | ```javascript |
| | | // src\main.jsæä»¶ |
| | | æä¸é¢è¿å¥è¯æ³¨éæå°±å¯ä»¥äºã |
| | | require('./mock/mock')//æ¯å¦ä½¿ç¨mock |
| | | ``` |
| | | |
| | | ## èªéåºç¼©æ¾ç»ä»¶ |
| | | |
| | | ### 注æ |
| | | |
| | | éç¨Scaleæ¹å¼ï¼ä¼èªå¨ç»ç»ä»¶ç¶å
ç´ æ·»å overflow:hidden |
| | | |
| | | ### ä½¿ç¨ |
| | | |
| | | ```vue |
| | | <template> |
| | | <scale-screen width="1920" height="1080"> |
| | | <div> |
| | | <v-chart>....</v-chart> |
| | | <v-chart>....</v-chart> |
| | | <v-chart>....</v-chart> |
| | | <v-chart>....</v-chart> |
| | | <v-chart>....</v-chart> |
| | | </div> |
| | | </scale-screen> |
| | | </template> |
| | | |
| | | <script> |
| | | import ScaleScreen from 'scale-screen' |
| | | |
| | | export default { |
| | | name:'Demo', |
| | | components:{ |
| | | VScaleScreen |
| | | } |
| | | } |
| | | </script> |
| | | ``` |
| | | ### API |
| | | | 屿§ | 说æ | ç±»å | é»è®¤å¼ | |
| | | | ------------ | ------------------------------------------------------------ | -------------------------------- | ------ | |
| | | | selfAdaption | æ¯å¦è¿è¡èªéåº | Boolean | true | |
| | | | width | 大å±å®½åº¦ | `Number` or `String` | 1920 | |
| | | | height | 大å±é«åº¦ | `Number` or `String` | 1080 | |
| | | | autoScale | èªéåºé
ç½®ï¼é
置为booleanç±»åæ¶ï¼ä¸ºå¯å¨æè
å
³éèªéåºï¼é
置为对象æ¶ï¼è¥x为trueï¼x轴产çè¾¹è·ï¼y为trueæ¶ï¼y轴产çè¾¹è·ï¼å¯ç¨fullScreenæ¶æ¤é
置失æ | Boolean or {x:boolean,y:boolean} | true | |
| | | | delay | çªå£ååé²æå»¶è¿æ¶é´ | Number | 500 | |
| | | | fullScreen | å
¨å±èªéåºï¼å¯ç¨æ¤é
置项æ¶ä¼å卿伏ææï¼åæ¶autoScale失æï¼éå¿
è¦æ
åµä¸ä¸å»ºè®®å¼å¯ | Boolean | false | |
| | | | boxStyle | ä¿®æ¹å®¹å¨æ ·å¼ï¼å¦å±
ä¸å±ç¤ºæ¶ä¾§è¾¹èæ¯è²ï¼ç¬¦åVueååç»å®styleæ åæ ¼å¼ | Object | null | |
| | | | wrapperStyle | ä¿®æ¹èªéåºåºåæ ·å¼ï¼ç¬¦åVueååç»å®styleæ åæ ¼å¼ | Object | null | |
| | | |
| | | ## å
¬ç¨ç»ä»¶ |
| | | |
| | | å°è£
äºé¤é¢æ¡å¤ä¸ªå«ç¨å°çç»ä»¶ |
| | | |
| | | ### 5.1 messageæ¶æ¯æç¤º |
| | | |
| | | å 为åå¼å§æ²¡æ³çç¨ç¬¬ä¸æ¹æç¤ºåºï¼èªå·±ç®åå°è£
äºä¸ä¸ªã |
| | | |
| | | 注ï¼ç»ä»¶å
é¨ç®ååªæwarningï¼ç±»åï¼å¦æéè¦å
¶ä»ç±»åèªå·±ç»ä»¶å
æ·»å ã |
| | | |
| | | å å¨main.js注åå
¨å±å¯ä»¥ç´æ¥ä½¿ç¨ï¼ä¸éè¦å¼å
¥ |
| | | |
| | | ```js |
| | | this.$Message({ |
| | | text: res.msg, |
| | | type: 'warning' |
| | | }) |
| | | //ä¹å¯ä»¥è¿æ · |
| | | this.$Message.warning(res.msg) |
| | | ``` |
| | | |
| | | | åæ° | æè¿° | é»è®¤å¼ | ç±»å | å¯éå¼ | |
| | | | :--: | :------: | :-----: | :----: | :-----: | |
| | | | text | æç¤ºæå | - | string | - | |
| | | | type | å¼¹çªç±»å | warning | string | warning | |
| | | |
| | | ### 5.2 å¤è¾¹æ¡ |
| | | |
| | | å 为æç项ç®å¤è¾¹æ¡å ä¹ä¸æ ·ï¼è¿ætitle,æä»¥å°è£
äºæ¤ç»ä»¶ã |
| | | |
| | | æ ¹æ®èªå·±éæ±æ´æ¹ï¼æ´æ¢å¤è¾¹æ¡ï¼src\components\item-wrap\item-wrap.vueï¼ä¸æ´æ¢ã |
| | | |
| | | ```vue |
| | | <ItemWrap |
| | | title="ææ¯title" |
| | | > |
| | | <div>ææ¯è°ï¼</div> |
| | | </ItemWrap> |
| | | ``` |
| | | |
| | | | åæ° | æè¿° | é»è®¤å¼ | ç±»å | å¯éå¼ | |
| | | | :---: | :--: | :----: | :----: | :----: | |
| | | | title | æ 头 | - | string | - | |
| | | |
| | | ## ä¸é´å°å¾ |
| | | |
| | | ### åæµ·æ¾éæ§å¶ |
| | | |
| | | æ ¹æ®éæ±æ¥ï¼**ä¿®æ¹æ¤å¼è¯·å·æ°é¡µé¢** |
| | | |
| | | ```indexs/center-map.vue``` æä»¶ä¸```isSouthChinaSea```åé é»è®¤ä¸æ¾ç¤ºåæµ·(false),为```true```çæ¶åæ¾ç¤ºåæµ· |
| | | |
| | | ``` |
| | | isSouthChinaSea:false,//é»è®¤ä¸æ¾ç¤ºåæµ·ï¼æ¹ä¸ºtrue坿¾ç¤ºåæµ· |
| | | ``` |
| | | |
| | | ## å
¨å±åæ° |
| | | |
| | | ### filter |
| | | |
| | | çæµæ°æ®é¡¹ç»ä¸è¿æ»¤ï¼ä¿ç两ä½å°æ°ã |
| | | |
| | | ```vue |
| | | {{10.23123|montionFilter }} |
| | | ``` |
| | | |
| | | ## 大å±äº¤æµåé¦ï¼é¢æ¡çç¾¤ï¼ |
| | | |
| | | ### 大å±QQ群 |
| | | |
| | | QQ群å·ï¼713105837 |
| | | |
| | | ### 大å±äºç»´ç |
| | | |
| | | QQ群äºç»´ç ï¼ |
| | | |
| | |  |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-01-12 14:06:47 |
| | | * @LastEditors: daidai |
| | | * @LastEditTime: 2022-03-01 17:55:49 |
| | | * @FilePath: \web-pc\src\pages\big-screen\App.vue |
| | | --> |
| | | <template> |
| | | <div id="app"> |
| | | <router-view/> |
| | | </div> |
| | | </template> |
| | | |
| | | <style lang="scss" scoped> |
| | | #app { |
| | | width: 100vw; |
| | | height: 100vh; |
| | | background-color: #03050C; |
| | | // overflow: hidden; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | @import "./modules/reset.scss"; |
| | | @import "./modules/variables.scss"; |
| | | @import './theme/index.css'; |
| | | @import '../iconfont//iconfont.css'; |
| | | |
| | | [class*=" blq-icon-"], |
| | | [class^=blq-icon-] { |
| | | font-family: iconfont !important; |
| | | speak: none; |
| | | font-style: normal; |
| | | font-weight: 400; |
| | | font-variant: normal; |
| | | text-transform: none; |
| | | line-height: 1; |
| | | vertical-align: middle; |
| | | display: inline-block; |
| | | -webkit-font-smoothing: antialiased; |
| | | -moz-osx-font-smoothing: grayscale |
| | | } |
| | | |
| | | *, |
| | | :after, |
| | | :before { |
| | | box-sizing: content-box; |
| | | } |
| | | |
| | | .clearfix { |
| | | &::after { |
| | | content: ""; |
| | | display: table; |
| | | height: 0; |
| | | line-height: 0; |
| | | visibility: hidden; |
| | | clear: both; |
| | | } |
| | | } |
| | | |
| | | .contents { |
| | | width: 100%; |
| | | display: flex; |
| | | min-height: calc(100% - 60px); |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .beautify-scroll-def { |
| | | overflow-y: auto; |
| | | |
| | | &::-webkit-scrollbar-thumb { |
| | | //æ»å¨æ¡ç设置 |
| | | background-color: rgba(14, 59, 150, 0); |
| | | background-clip: padding-box; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | &:hover { |
| | | &::-webkit-scrollbar-thumb { |
| | | //æ»å¨æ¡ç设置 |
| | | background-color: rgba(14, 59, 150, 0.5); |
| | | background-clip: padding-box; |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | |
| | | &::-webkit-scrollbar-track-piece { |
| | | //æ»å¨æ¡å¹æ§½çé¢è²ï¼è¿å¯ä»¥è®¾ç½®è¾¹æ¡å±æ§ |
| | | background-color: transparent; |
| | | } |
| | | |
| | | &::-webkit-scrollbar { |
| | | //æ»å¨æ¡ç宽度 |
| | | width: 8px; |
| | | height: 8px; |
| | | } |
| | | |
| | | |
| | | |
| | | &::-webkit-scrollbar-thumb:hover { |
| | | background-color: rgba(14, 59, 150, .8); |
| | | } |
| | | } |
| | | |
| | | |
| | | .orderNum { |
| | | // min-width: 22px; |
| | | // height: 22px; |
| | | // background: #00b8ff; |
| | | // border-radius: 50%; |
| | | // text-align: center; |
| | | // line-height: 22px; |
| | | // font-size: 13px; |
| | | // font-weight: 900; |
| | | // color: #0f2854; |
| | | color: #00b8ff; |
| | | } |
| | | |
| | | .yh-big-input { |
| | | width: 253px; |
| | | height: 14px; |
| | | background: transparent; |
| | | border: 1px solid rgba(255, 255, 255, .53); |
| | | border-radius: 4px; |
| | | color: #fff; |
| | | padding: 6px 10px; |
| | | font-size: 14px; |
| | | transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); |
| | | |
| | | &:focus { |
| | | outline: none; |
| | | border-color: #31abe3; |
| | | } |
| | | } |
| | | |
| | | .yh-big-el-input { |
| | | width: 253px; |
| | | font-size: 14px; |
| | | |
| | | .el-input__inner { |
| | | padding: 6px 10px; |
| | | border: 1px solid rgba(255, 255, 255, .53); |
| | | background-color: transparent; |
| | | font-size: 14px; |
| | | line-height: 1; |
| | | color: #fff; |
| | | &:hover{ |
| | | border-color: rgba(255, 255, 255, .8); |
| | | } |
| | | &:focus { |
| | | outline: none; |
| | | border-color: #31abe3; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | .yh-big-button { |
| | | width: 53px; |
| | | height: 26px; |
| | | background: #00b1d6; |
| | | border-radius: 4px; |
| | | // border-color: #00b1d6; |
| | | border-width: 1px; |
| | | border: none; |
| | | cursor: pointer; |
| | | color: #fff; |
| | | font-size: 15px; |
| | | |
| | | &:hover, |
| | | &:focus { |
| | | // border-color: #0597b4; |
| | | background: #0597b4; |
| | | } |
| | | } |
| | | |
| | | |
| | | //æµ®å¨ |
| | | .float-r { |
| | | float: right; |
| | | } |
| | | |
| | | //æµ®å¨ |
| | | .float-l { |
| | | float: left; |
| | | } |
| | | |
| | | // åä½å ç² |
| | | .fw-b { |
| | | font-weight: bold; |
| | | } |
| | | |
| | | //æç« ä¸è¡æ¾ç¤ºï¼å¤ä½çç¥å·æ¾ç¤º |
| | | .title-item { |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | } |
| | | |
| | | //è¡¨æ ¼æ ·å¼éç½® |
| | | .ve-table { |
| | | $border-color: #525371; |
| | | // $border-color: rgba(255, 255, 255, .43); |
| | | box-sizing: border-box; |
| | | |
| | | .ve-table-container { |
| | | &::-webkit-scrollbar-track-piece { |
| | | //æ»å¨æ¡å¹æ§½çé¢è²ï¼è¿å¯ä»¥è®¾ç½®è¾¹æ¡å±æ§ |
| | | background-color: transparent; |
| | | } |
| | | |
| | | &::-webkit-scrollbar { |
| | | //æ»å¨æ¡ç宽度 |
| | | width: 8px; |
| | | height: 8px; |
| | | } |
| | | |
| | | &::-webkit-scrollbar-thumb { |
| | | //æ»å¨æ¡ç设置 |
| | | background-color: rgba(14, 59, 150, 0.5); |
| | | background-clip: padding-box; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | &::-webkit-scrollbar-thumb:hover { |
| | | background-color: rgba(14, 59, 150, .8); |
| | | } |
| | | |
| | | .ve-table-content { |
| | | &::after { |
| | | content: ""; |
| | | position: absolute; |
| | | top: 0; |
| | | right: 0px; |
| | | width: 1px; |
| | | height: 100%; |
| | | background-color: $border-color; |
| | | z-index: 20; |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | &.ve-table-border-around { |
| | | border-color: $border-color; |
| | | } |
| | | |
| | | .ve-table-container table.ve-table-content thead.ve-table-header tr.ve-table-header-tr { |
| | | height: 34px; |
| | | box-sizing: border-box; |
| | | |
| | | th.ve-table-header-th { |
| | | background: #04004E; |
| | | color: #FFF; |
| | | border-color: $border-color; |
| | | box-sizing: border-box; |
| | | line-height: 1; |
| | | } |
| | | } |
| | | |
| | | .ve-table-container table.ve-table-content tbody.ve-table-body { |
| | | |
| | | tr.ve-table-body-tr td.ve-table-body-td, |
| | | tr.ve-table-expand-tr td.ve-table-body-td, |
| | | tr.ve-table-body-tr td.ve-table-expand-td, |
| | | tr.ve-table-expand-tr td.ve-table-expand-td { |
| | | background: transparent; |
| | | color: #FFF; |
| | | border-color: $border-color; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | tr.ve-table-body-tr, |
| | | tr.ve-table-expand-tr { |
| | | height: 34px; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | &.ve-table-row-hover tr.ve-table-body-tr:hover td { |
| | | background-color: rgba(0, 0, 0, .22); |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | .ve-table-container .ve-table-border-x th, |
| | | .ve-table-container .ve-table-border-x td { |
| | | border-color: $border-color; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | //é¢è² |
| | | @each $colorkey, |
| | | $color in $colors { |
| | | .text-#{$colorkey} { |
| | | color: $color; |
| | | } |
| | | |
| | | .bg-#{$colorkey} { |
| | | background-color: $color; |
| | | } |
| | | } |
| | | |
| | | //å¯¹é½ |
| | | @each $var in (left, center, right) { |
| | | .text-#{$var} { |
| | | text-align: $var !important; |
| | | } |
| | | } |
| | | |
| | | //flex |
| | | @each $key, |
| | | $value in $flex-jc { |
| | | .jc-#{$key} { |
| | | justify-content: $value; |
| | | } |
| | | } |
| | | |
| | | @each $key, |
| | | $value in $flex-ai { |
| | | .ai-#{$key} { |
| | | align-items: $value; |
| | | } |
| | | } |
| | | |
| | | //åä½ |
| | | @each $fontkey, |
| | | $fontvalue in $font-sizes { |
| | | .fs-#{$fontkey} { |
| | | font-size: $fontvalue * $base-font-size; |
| | | } |
| | | } |
| | | |
| | | //.mt-1 => margin top |
| | | //spacing |
| | | |
| | | @each $typekey, |
| | | $type in $spacing-types { |
| | | |
| | | //.m-1 |
| | | @each $sizekey, |
| | | $size in $spacing-sizes { |
| | | .#{$typekey}-#{$sizekey} { |
| | | #{$type}: $size * $spacing-base-size; |
| | | } |
| | | } |
| | | |
| | | //.mx-1 |
| | | @each $sizekey, |
| | | $size in $spacing-sizes { |
| | | .#{$typekey}x-#{$sizekey} { |
| | | #{$type}-left: $size * $spacing-base-size; |
| | | #{$type}-right: $size * $spacing-base-size; |
| | | } |
| | | |
| | | .#{$typekey}y-#{$sizekey} { |
| | | #{$type}-top: $size * $spacing-base-size; |
| | | #{$type}-bottom: $size * $spacing-base-size; |
| | | } |
| | | } |
| | | |
| | | //.mt-1 |
| | | @each $directionkey, |
| | | $direction in $spacing-directions { |
| | | |
| | | @each $sizekey, |
| | | $size in $spacing-sizes { |
| | | .#{$typekey}#{$directionkey}-#{$sizekey} { |
| | | #{$type}-#{$direction}: $size * $spacing-base-size; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .#{$typekey} { |
| | | #{$type}: 0; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/) |
| | | * http://cssreset.com |
| | | */ |
| | | html, |
| | | body, |
| | | div, |
| | | span, |
| | | applet, |
| | | object, |
| | | iframe, |
| | | h1, |
| | | h2, |
| | | h3, |
| | | h4, |
| | | h5, |
| | | h6, |
| | | p, |
| | | blockquote, |
| | | pre, |
| | | a, |
| | | abbr, |
| | | acronym, |
| | | address, |
| | | big, |
| | | cite, |
| | | code, |
| | | del, |
| | | dfn, |
| | | em, |
| | | img, |
| | | ins, |
| | | kbd, |
| | | q, |
| | | s, |
| | | samp, |
| | | small, |
| | | strike, |
| | | strong, |
| | | sub, |
| | | sup, |
| | | tt, |
| | | var, |
| | | b, |
| | | u, |
| | | i, |
| | | center, |
| | | dl, |
| | | dt, |
| | | dd, |
| | | ol, |
| | | ul, |
| | | li, |
| | | fieldset, |
| | | form, |
| | | label, |
| | | legend, |
| | | table, |
| | | caption, |
| | | tbody, |
| | | tfoot, |
| | | thead, |
| | | tr, |
| | | th, |
| | | td, |
| | | article, |
| | | aside, |
| | | canvas, |
| | | details, |
| | | embed, |
| | | figure, |
| | | figcaption, |
| | | footer, |
| | | header, |
| | | menu, |
| | | nav, |
| | | output, |
| | | ruby, |
| | | section, |
| | | summary, |
| | | time, |
| | | mark, |
| | | audio, |
| | | video, |
| | | input { |
| | | margin: 0; |
| | | padding: 0; |
| | | border: 0; |
| | | font-size: 100%; |
| | | font-weight: normal; |
| | | vertical-align: baseline; |
| | | } |
| | | |
| | | /* HTML5 display-role reset for older browsers */ |
| | | article, |
| | | aside, |
| | | details, |
| | | figcaption, |
| | | figure, |
| | | footer, |
| | | header, |
| | | menu, |
| | | nav, |
| | | section { |
| | | display: block; |
| | | } |
| | | |
| | | body { |
| | | line-height: 1; |
| | | } |
| | | |
| | | blockquote, |
| | | q { |
| | | quotes: none; |
| | | } |
| | | |
| | | blockquote:before, |
| | | blockquote:after, |
| | | q:before, |
| | | q:after { |
| | | content: none; |
| | | } |
| | | |
| | | table { |
| | | border-collapse: collapse; |
| | | border-spacing: 0; |
| | | } |
| | | |
| | | /* custom */ |
| | | |
| | | a { |
| | | color: #7e8c8d; |
| | | -webkit-backface-visibility: hidden; |
| | | text-decoration: none; |
| | | } |
| | | |
| | | li { |
| | | list-style: none; |
| | | } |
| | | |
| | | body { |
| | | -webkit-text-size-adjust: none; |
| | | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
| | | } |
| | | |
| | | .olControlScaleLineBottom { |
| | | display: none; |
| | | } |
| | | |
| | | .olControlScaleLineTop { |
| | | color: #000 !important; |
| | | border-bottom: solid 3px #000 !important; |
| | | border-left: solid 2px #000 !important; |
| | | border-right: solid 2px #000 !important; |
| | | background-color: rgba(255, 255, 255, .4); |
| | | font-size: 10px; |
| | | text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff; |
| | | } |
| | | |
| | | .olControlScaleLine { |
| | | z-index: 900 !important; |
| | | } |
| | | /*æ¸
餿µ®å¨*/ |
| | | .clearfix:after { |
| | | content: "."; |
| | | display: block; |
| | | height: 0; |
| | | clear: both; |
| | | visibility: hidden; |
| | | } |
| | | .clearfix {display: inline-block;} |
| | | /* ç¹å»æç´¢æ¡è·åç¦ç¹ placeholderæ¶å¤±-å¼å§ */ |
| | | /* WebKit browsers */ |
| | | |
| | | // input:focus::-webkit-input-placeholder { |
| | | // color: transparent; |
| | | // } |
| | | |
| | | |
| | | // /* Mozilla Firefox 4 to 18 */ |
| | | |
| | | // input:focus:-moz-placeholder { |
| | | // color: transparent; |
| | | // } |
| | | |
| | | |
| | | // /* Mozilla Firefox 19+ */ |
| | | |
| | | // input:focus::-moz-placeholder { |
| | | // color: transparent; |
| | | // } |
| | | |
| | | |
| | | // /* Internet Explorer 10+ */ |
| | | |
| | | // input:focus:-ms-input-placeholder { |
| | | // color: transparent; |
| | | // } |
| | | |
| | | /* ç¹å»æç´¢æ¡è·åç¦ç¹ placeholderæ¶å¤±-ç»æ */ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // é¢è² |
| | | $colors: ( |
| | | "primary": #1A5CD7, |
| | | "info-1": #4394e4, |
| | | "info": #4b67af, |
| | | "white": #ffffff, |
| | | "light": #f9f9f9, |
| | | "grey-1": #999999, |
| | | "grey": #666666, |
| | | "dark-1": #5f5f5f, |
| | | "dark": #222222, |
| | | "black-1": #171823, |
| | | "black": #000000, |
| | | "icon": #5cd9e8 |
| | | ); |
| | | |
| | | // åä½å¤§å° |
| | | $base-font-size: 0.2rem; |
| | | $font-sizes: ( |
| | | xxs: 0.1, |
| | | //8px |
| | | xs: 0.125, |
| | | //10px |
| | | sm: 0.2875, |
| | | //12px |
| | | md: 0.1625, |
| | | //13px |
| | | lg: 0.175, |
| | | //14px |
| | | xl: 0.2, |
| | | //16px |
| | | xxl: 0.225, |
| | | //18px |
| | | xxxl: 0.25 //20px,,,, |
| | | ); |
| | | |
| | | // å®½é« |
| | | .w-100 { |
| | | width: 100%; |
| | | } |
| | | .h-100 { |
| | | height: 100%; |
| | | } |
| | | |
| | | //flex |
| | | .flex { |
| | | display: flex; |
| | | } |
| | | .flex-column { |
| | | flex-direction: column; |
| | | } |
| | | .flex-wrap { |
| | | flex-wrap: wrap; |
| | | } |
| | | .flex-nowrap { |
| | | flex-wrap: nowrap; |
| | | } |
| | | $flex-jc: ( |
| | | start: flex-start, |
| | | end: flex-end, |
| | | center: center, |
| | | between: space-between, |
| | | around: space-around, |
| | | evenly: space-evenly, |
| | | ); |
| | | |
| | | $flex-ai: ( |
| | | start: flex-start, |
| | | end: flex-end, |
| | | center: center, |
| | | stretch: stretch, |
| | | ); |
| | | |
| | | .flex-1 { |
| | | flex: 1; |
| | | } |
| | | |
| | | //.mt-1 => margin top |
| | | //spacing |
| | | $spacing-types: ( |
| | | m: margin, |
| | | p: padding, |
| | | ); |
| | | $spacing-directions: ( |
| | | t: top, |
| | | r: right, |
| | | b: bottom, |
| | | l: left, |
| | | ); |
| | | $spacing-base-size: 0.5rem; |
| | | $spacing-sizes: ( |
| | | 0: 0, |
| | | 1: 0.5, |
| | | 2: 1, |
| | | 3: 1.5, |
| | | 4: 2, |
| | | 5: 2.5, |
| | | ); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .flex { |
| | | display: flex; |
| | | } |
| | | |
| | | .flex-direction { |
| | | flex-direction: column; |
| | | } |
| | | |
| | | .flex-wrap { |
| | | flex-wrap: wrap; |
| | | } |
| | | |
| | | .align-start { |
| | | align-items: flex-start; |
| | | } |
| | | |
| | | .align-end { |
| | | align-items: flex-end; |
| | | } |
| | | |
| | | .align-center { |
| | | align-items: center; |
| | | } |
| | | |
| | | .align-stretch { |
| | | align-items: stretch; |
| | | } |
| | | |
| | | .self-start { |
| | | align-self: flex-start; |
| | | } |
| | | |
| | | .self-center { |
| | | align-self: flex-center; |
| | | } |
| | | |
| | | .self-end { |
| | | align-self: flex-end; |
| | | } |
| | | |
| | | .self-stretch { |
| | | align-self: stretch; |
| | | } |
| | | |
| | | .align-stretch { |
| | | align-items: stretch; |
| | | } |
| | | |
| | | .justify-start { |
| | | justify-content: flex-start; |
| | | } |
| | | |
| | | .justify-end { |
| | | justify-content: flex-end; |
| | | } |
| | | |
| | | .justify-center { |
| | | justify-content: center; |
| | | } |
| | | |
| | | .justify-between { |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .justify-around { |
| | | justify-content: space-around; |
| | | } |
| | | @for $i from 0 through 12 { |
| | | .rdx-flex-#{$i} { |
| | | flex: $i; |
| | | } |
| | | } |
| | | |
| | | @for $i from 9 to 50 { |
| | | .rdx-font-#{$i} { |
| | | font-size: $i + px; |
| | | } |
| | | } |
| | | |
| | | @for $i from 2 to 50 { |
| | | .rdx-radius-#{$i} { |
| | | border-radius: $i + px; |
| | | } |
| | | } |
| | | @for $i from 10 to 50 { |
| | | .rdx-line-height-#{$i} { |
| | | line-height: $i + px; |
| | | } |
| | | } |
| | | |
| | | // å®ä¹å
å¤è¾¹è·ï¼åé1-80 |
| | | @for $i from 0 through 80 { |
| | | // åªè¦åæ°åè½è¢«5é¤å°½çæ° |
| | | @if $i % 2 == 0 or $i % 5 == 0 { |
| | | // å¾åºï¼u-margin-30æè
u-m-30 |
| | | .rdx-m-#{$i} { |
| | | margin: $i + px !important; |
| | | } |
| | | // å¾åºï¼u-padding-30æè
u-p-30 |
| | | .rdx-p-#{$i} { |
| | | padding: $i + px !important; |
| | | } |
| | | |
| | | @each $short, $long in l left, t top, r right, b bottom { |
| | | // 缩åçï¼ç»æå¦ï¼ u-m-l-30 |
| | | // å®ä¹å¤è¾¹è· |
| | | .rdx-m-#{$short}-#{$i} { |
| | | margin-#{$long}: $i + px !important; |
| | | } |
| | | |
| | | // å®ä¹å
è¾¹è· |
| | | .rdx-p-#{$short}-#{$i} { |
| | | padding-#{$long}: $i + px !important; |
| | | } |
| | | |
| | | //èªå®ä¹å·¦å³å
è¾¹è· |
| | | .rdx-p-lr-#{$i} { |
| | | padding-left:$i + px !important; |
| | | padding-right:$i + px !important; |
| | | } |
| | | //èªå®ä¹ä¸ä¸å
è¾¹è· |
| | | .rdx-p-tb-#{$i} { |
| | | padding-top:$i + px !important; |
| | | padding-bottom:$i + px !important; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | i{font-style: normal;} |
| | | .position-re{position: relative;} |
| | | .position-ab{position: absolute; z-index: 9;} |
| | | .position-fixed{position: fixed; background: rgba(92, 116, 143, 0.45); width: 100%; height: 100%; left: 0px; top: 0px; z-index: 10;} |
| | | .round{border-radius: 50%;} |
| | | .font-strong{font-weight: bold;} |
| | | .color-del{color:$del-color} |
| | | .color-primary{color: $primary-color;} |
| | | .color-remark{color: #666666;} |
| | | .color-9{color: #999999;} |
| | | .color-green{color: #38a800;} |
| | | .bg-white{background-color: white;} |
| | | .line-bottom{border-bottom: 1px solid #eeeeee;} |
| | | .button-pointer{cursor: pointer;} |
| | | .box-shadow-item{box-shadow: 0px 0px 4px 0px rgba(45, 45, 46, 0.1);} |
| | | .search-form .search-form-item label {text-align: right; padding-right: 6px;} |
| | | |
| | | |
| | | .break-all{ |
| | | word-break: break-all; |
| | | } |
| | | .blocks{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | .cursor-pointer{ |
| | | cursor: pointer; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | // é¢è² |
| | | $primary-color: #1890ff; |
| | | $primary-color-hl: rgb(41, 52, 67); |
| | | $default-color: #006569; |
| | | $link: #1890ff; |
| | | $active-color: rgb(0, 101, 105); |
| | | $del-color: #ff1839; |
| | | $content-background: #f3f5fa; |
| | | $table-header-background: #d8eaff; |
| | | |
| | | $primary-color-rgba: rgba($color: $primary-color, |
| | | $alpha: 0.1, |
| | | ); |
| | | //è¡¨æ ¼ä¸é¢buttonæé®é¢è² |
| | | $table-header-button: #18d1ff; |
| | | // é´å½± |
| | | $primary-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), |
| | | 0 0 6px rgba(0, 0, 0, 0.04); |
| | | $primary-shadow-light: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
| | | $baidu-shadow: 1px 2px 1px rgba(0, 0, 0, 0.15); |
| | | $gaode-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.2), |
| | | 0 2px 6px 0 rgba(0, 0, 0, 0.19); |
| | | |
| | | // box-shadow: 0 2px 6px 0 rgb(114 124 245 / 50%); |
| | | |
| | | $primary-border: $primary-color solid 1px; |
| | | |
| | | $tool-top: 20px; |
| | | |
| | | //header çé«åº¦ |
| | | $index-height: 60px; |
| | | $index-content-height: calc(100% - 60px); |
| | | $index-tags-height: 36px; |
| | | // 宽度侧边æ |
| | | $aside-width: 200px; |
| | | $content-padding: 16px; |
| | | |
| | | $default-zindex: 99; |
| | | |
| | | /*ææ¬æ ¼å¼åï¼è¶
åºèå´ï¼æ¾ç¤ºçç¥å·*/ |
| | | @mixin text-overflow($num: 1) { |
| | | word-break: break-all; |
| | | text-overflow: ellipsis; |
| | | overflow: hidden; |
| | | display: -webkit-box; |
| | | -webkit-line-clamp: $num; |
| | | -webkit-box-orient: vertical; |
| | | } |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <Echart |
| | | :options="options" |
| | | id="centreLeft1Chart" |
| | | height="220px" |
| | | width="360px" |
| | | ></Echart> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | export default { |
| | | data () { |
| | | return { |
| | | options: {}, |
| | | }; |
| | | }, |
| | | components: { |
| | | echarts, |
| | | }, |
| | | props: { |
| | | cdata: { |
| | | type: Object, |
| | | default: () => ({}) |
| | | }, |
| | | }, |
| | | watch: { |
| | | cdata: { |
| | | handler (newData) { |
| | | this.options = { |
| | | color: [ |
| | | "#37a2da", |
| | | "#32c5e9", |
| | | "#9fe6b8", |
| | | "#ffdb5c", |
| | | "#ff9f7f", |
| | | "#fb7293", |
| | | "#e7bcf3", |
| | | "#8378ea" |
| | | ], |
| | | legend:{ |
| | | textStyle:{ |
| | | color:"#ffffff", |
| | | fontSize:18 |
| | | } |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | formatter: "{a} <br/>{b} : {c} ({d}%)" |
| | | }, |
| | | toolbox: { |
| | | show: true |
| | | }, |
| | | calculable: true, |
| | | legend: { |
| | | orient: "horizontal", |
| | | icon: "circle", |
| | | bottom: 0, |
| | | x: "center", |
| | | data: newData.xData, |
| | | textStyle: { |
| | | color: "#fff" |
| | | } |
| | | }, |
| | | series: [ |
| | | { |
| | | name: "éè¿çç»è®¡", |
| | | type: "pie", |
| | | radius: [20, 60], |
| | | roseType: "area", |
| | | center: ["50%", "50%"], |
| | | data: newData.seriesData |
| | | } |
| | | ] |
| | | } |
| | | }, |
| | | immediate: true, |
| | | deep: true |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <Chart :cdata="cdata" /> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import Chart from './chart.vue'; |
| | | import axios from 'axios'; |
| | | export default { |
| | | data () { |
| | | return { |
| | | cdata: { |
| | | xData: ["空æ", "宿", "å¾
æ£", "åæ ¼", "æ£ä¿®ä¸"], |
| | | seriesData: [] |
| | | } |
| | | } |
| | | }, |
| | | components: { |
| | | Chart, |
| | | }, |
| | | mounted () { |
| | | this.changeTiming() |
| | | }, |
| | | methods: { |
| | | changeTiming() { |
| | | this.changeNumber() |
| | | setInterval(() => { |
| | | this.changeNumber() |
| | | }, 3000) |
| | | }, |
| | | changeNumber() { |
| | | axios.post("http://192.168.12.189:8098/api/VV_Container/GetContainerMessage", { |
| | | MainData: { |
| | | AGVName: "è´æ" |
| | | } |
| | | }).then((res) => { |
| | | let GetLocationEmptyOrStored = [ |
| | | {value:res.empty+1,name:'空æ'}, |
| | | {value:res.full+1,name:"宿"}, |
| | | {value:res.waitCheck+1,name:"å¾
æ£"}, |
| | | {value:res.qualified+1,name:"åæ ¼"}, |
| | | {value:res.checkIng+1,name:"æ£ä¿®ä¸"} |
| | | ] |
| | | this.cdata.seriesData = GetLocationEmptyOrStored |
| | | }).catch((res) => { |
| | | console.log(res) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-02-28 16:29:08 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-09-27 15:05:45 |
| | | * @FilePath: \web-pc\src\pages\big-screen\components\echart\index.vue |
| | | --> |
| | | <template> |
| | | <div :id="id" :class="className" :style="{ height: height, width: width }" /> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts'; |
| | | export default { |
| | | name: 'echart', |
| | | props: { |
| | | className: { |
| | | type: String, |
| | | default: 'chart' |
| | | }, |
| | | id: { |
| | | type: String, |
| | | default: 'chart' |
| | | }, |
| | | width: { |
| | | type: String, |
| | | default: '100%' |
| | | }, |
| | | height: { |
| | | type: String, |
| | | default: '100%' |
| | | }, |
| | | options: { |
| | | type: Object, |
| | | default: ()=>({}) |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | chart: null |
| | | } |
| | | }, |
| | | watch: { |
| | | options: { |
| | | handler (options) { |
| | | // 设置trueæ¸
空echartç¼å |
| | | this.chart.setOption(options, true) |
| | | }, |
| | | deep: true |
| | | } |
| | | }, |
| | | mounted () { |
| | | this.initChart(); |
| | | }, |
| | | beforeDestroy () { |
| | | this.chart.dispose() |
| | | this.chart = null |
| | | }, |
| | | methods: { |
| | | initChart () { |
| | | // åå§åechart |
| | | this.chart = echarts.init(this.$el) |
| | | this.chart.setOption(this.options, true) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-01 09:16:22 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-09-29 15:12:34 |
| | | * @FilePath: \web-pc\src\pages\big-screen\components\item-wrap\item-wrap.vue |
| | | --> |
| | | <template> |
| | | <dv-border-box-13 class="lr_titles"> |
| | | <div class="item_title" v-if="title !== ''"> |
| | | <div class="zuo"></div> |
| | | <span class="title-inner"> {{ title }} </span> |
| | | <div class="you"></div> |
| | | </div> |
| | | <div |
| | | :class="title !== '' ? 'item_title_content' : 'item_title_content_def'" |
| | | > |
| | | <slot></slot> |
| | | </div> |
| | | </dv-border-box-13> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return {}; |
| | | }, |
| | | props: { |
| | | title: { |
| | | type: String, |
| | | default: () => "", |
| | | }, |
| | | }, |
| | | created() {}, |
| | | |
| | | mounted() {}, |
| | | methods: {}, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | $item-title-height: 38px; |
| | | $item_title_content-height: calc(100% - 38px); |
| | | |
| | | .lr_titles { |
| | | box-sizing: border-box; |
| | | |
| | | :deep(.border-box-content) { |
| | | box-sizing: border-box; |
| | | padding: 6px 16px 0px; |
| | | } |
| | | |
| | | .item_title { |
| | | height: $item-title-height; |
| | | line-height: $item-title-height; |
| | | width: 100%; |
| | | color: #31abe3; |
| | | text-align: center; |
| | | // background: linear-gradient(to right, transparent, #0f0756, transparent); |
| | | position: relative; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | |
| | | .zuo, |
| | | .you { |
| | | width: 58px; |
| | | height: 14px; |
| | | background-image: url("../../assets/img/titles/zuo.png"); |
| | | } |
| | | |
| | | .you { |
| | | transform: rotate(180deg); |
| | | } |
| | | .title-inner { |
| | | font-weight: 900; |
| | | letter-spacing: 2px; |
| | | background: linear-gradient( |
| | | 92deg, |
| | | #0072ff 0%, |
| | | #00eaff 48.8525390625%, |
| | | #01aaff 100% |
| | | ); |
| | | -webkit-background-clip: text; |
| | | -webkit-text-fill-color: transparent; |
| | | } |
| | | } |
| | | |
| | | .item_title_content { |
| | | height: $item_title_content-height; |
| | | } |
| | | |
| | | .item_title_content_def { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class='kong'> |
| | | <slot></slot> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | export default { |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | |
| | | }; |
| | | }, |
| | | props:{ |
| | | data:{ |
| | | type:Array, |
| | | default:()=>[] |
| | | } |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | init(){ |
| | | }, |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | beforeDestroy() { |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang='scss' scoped> |
| | | .kong{ |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-02 17:07:40 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-04-26 11:41:27 |
| | | * @FilePath: \web-pc\src\pages\big-screen\components\message\message.vue |
| | | --> |
| | | <template> |
| | | <div class="messages" v-if="visible"> |
| | | <svg fill="none" viewBox="0 0 16 16" width="1em" height="1em" class="message-icon"> |
| | | <path fill="currentColor" d="M15 8A7 7 0 101 8a7 7 0 0014 0zM8.5 4v5.5h-1V4h1zm-1.1 7h1.2v1.2H7.4V11z" |
| | | fill-opacity="0.9" v-if="'warning'==type"></path> |
| | | </svg> |
| | | {{ text }} |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | visible: false, |
| | | text: "", |
| | | type:'warning' |
| | | }; |
| | | }, |
| | | props: {}, |
| | | created() { }, |
| | | |
| | | mounted() { }, |
| | | methods: { |
| | | init(param) { |
| | | clearTimeout(this.timer); |
| | | this.visible = true; |
| | | this.text = param.text || ""; |
| | | this.type = param.type || "success"; |
| | | this.timer = setTimeout(() => { |
| | | this.visible = false; |
| | | clearTimeout(this.timer); |
| | | }, 2000); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | .messages { |
| | | position: fixed; |
| | | min-width: 200px; |
| | | top: 160px; |
| | | left: 50%; |
| | | transform: translate(-50%, 0); |
| | | border: solid 1px #4b4b4b; |
| | | // box-shadow: 0 16px 24px rgba(0, 0, 0, 0.14), 0 6px 30px rgba(0, 0, 0, 12%), |
| | | // 0 8px 10px rgba(0, 0, 0, 20%), inset 0 0.5px 0 #5e5e5e, |
| | | // inset 0.5px 0 0 #5e5e5e, inset 0 -0.5px 0 #5e5e5e, inset -0.5px 0 0 #5e5e5e; |
| | | width: fit-content; |
| | | border-radius: 6px; |
| | | display: flex; |
| | | align-items: center; |
| | | z-index: 999; |
| | | color: rgba(255, 255, 255, 0.9); |
| | | background-color: #242424; |
| | | line-height: 22px; |
| | | font-size: 14px; |
| | | padding: 13px 16px; |
| | | |
| | | .message-icon { |
| | | color: #cf6e2d; |
| | | font-size: 20px; |
| | | margin-right: 8px; |
| | | fill: currentColor; |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class='reacquire flex justify-center blocks cursor-pointer' :style="{ lineHeight: lineHeight }" |
| | | @click="getData"> |
| | | <span> |
| | | éæ°è·å |
| | | </span> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | export default { |
| | | components: {}, |
| | | props: { |
| | | lineHeight: { |
| | | type: String, |
| | | default: '200px' |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | |
| | | }; |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | init() { |
| | | }, |
| | | getData(e){ |
| | | this.$emit("onclick",e) |
| | | } |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | mounted() { |
| | | |
| | | }, |
| | | beforeDestroy() { |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang='scss' scoped> |
| | | .reacquire { |
| | | |
| | | user-select:none; |
| | | color: rgb(168, 168, 168); |
| | | span:hover{ |
| | | color:$primary-color ; |
| | | text-decoration: underline; |
| | | } |
| | | } |
| | | |
| | | .blocks { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .cursor-pointer { |
| | | cursor: pointer; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: wei |
| | | * @description: 大å±èªéåºå®¹å¨ç»ä»¶ |
| | | * @LastEditTime: 2022-09-09 16:42:40 |
| | | --> |
| | | <template> |
| | | <!-- <section class="screen-box" :style="boxStyle"> --> |
| | | <div class="screen-wrapper" ref="screenWrapper" :style="wrapperStyle"> |
| | | <slot></slot> |
| | | </div> |
| | | <!-- </section> --> |
| | | </template> |
| | | <script> |
| | | /** |
| | | * 鲿彿° |
| | | * @param {T} fn |
| | | * @param {number} delay |
| | | * @return |
| | | */ |
| | | function debounce(fn, delay) { |
| | | let timer = null; |
| | | return function (...args) { |
| | | timer = setTimeout( |
| | | () => { |
| | | typeof fn === "function" && fn.apply(null, args); |
| | | clearTimeout(timer); |
| | | }, |
| | | delay > 0 ? delay : 100 |
| | | ); |
| | | }; |
| | | } |
| | | |
| | | export default { |
| | | name: "VScaleScreen", |
| | | props: { |
| | | width: { |
| | | type: [String, Number], |
| | | default: 1920, |
| | | }, |
| | | height: { |
| | | type: [String, Number], |
| | | default: 1080, |
| | | }, |
| | | fullScreen: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | autoScale: { |
| | | type: [Object, Boolean], |
| | | default: true, |
| | | }, |
| | | selfAdaption: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | delay: { |
| | | type: Number, |
| | | default: 500, |
| | | }, |
| | | boxStyle: { |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | wrapperStyle: { |
| | | type: Object, |
| | | default: () => ({}), |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | currentWidth: 0, |
| | | currentHeight: 0, |
| | | originalWidth: 0, |
| | | originalHeight: 0, |
| | | onResize: null, |
| | | observer: null, |
| | | }; |
| | | }, |
| | | watch: { |
| | | selfAdaption(val) { |
| | | if (val) { |
| | | this.resize(); |
| | | this.addListener(); |
| | | } else { |
| | | this.clearListener(); |
| | | this.clearStyle(); |
| | | } |
| | | }, |
| | | }, |
| | | computed: { |
| | | screenWrapper() { |
| | | return this.$refs["screenWrapper"]; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initSize() { |
| | | return new Promise((resolve, reject) => { |
| | | // console.log("åå§åæ ·å¼"); |
| | | //ç»ç¶å
ç´ è®¾ç½® overflow:hidden |
| | | this.screenWrapper.parentNode.style.overflow = "hidden"; |
| | | this.screenWrapper.parentNode.scrollLeft = 0; |
| | | this.screenWrapper.parentNode.scrollTop = 0; |
| | | |
| | | this.$nextTick(() => { |
| | | // region è·å大å±çå®å°ºå¯¸ |
| | | if (this.width && this.height) { |
| | | this.currentWidth = this.width; |
| | | this.currentHeight = this.height; |
| | | } else { |
| | | this.currentWidth = this.screenWrapper.clientWidth; |
| | | this.currentHeight = this.screenWrapper.clientHeight; |
| | | } |
| | | // endregion |
| | | // region è·åç»å¸å°ºå¯¸ |
| | | if (!this.originalHeight || !this.originalWidth) { |
| | | this.originalWidth = window.screen.width; |
| | | this.originalHeight = window.screen.height; |
| | | } |
| | | // endregion |
| | | resolve(); |
| | | }); |
| | | }); |
| | | }, |
| | | updateSize() { |
| | | if (this.currentWidth && this.currentHeight) { |
| | | this.screenWrapper.style.width = `${this.currentWidth}px`; |
| | | this.screenWrapper.style.height = `${this.currentHeight}px`; |
| | | } else { |
| | | this.screenWrapper.style.width = `${this.originalWidth}px`; |
| | | this.screenWrapper.style.height = `${this.originalHeight}px`; |
| | | } |
| | | }, |
| | | handleAutoScale(scale) { |
| | | if (!this.autoScale) return; |
| | | const screenWrapper = this.screenWrapper; |
| | | const domWidth = screenWrapper.clientWidth; |
| | | const domHeight = screenWrapper.clientHeight; |
| | | const currentWidth = document.body.clientWidth; |
| | | const currentHeight = document.body.clientHeight; |
| | | screenWrapper.style.transform = `scale(${scale},${scale}) `; |
| | | let mx = Math.max((currentWidth - domWidth * scale) / 2, 0); |
| | | let my = Math.max((currentHeight - domHeight * scale) / 2, 0); |
| | | if (typeof this.autoScale === "object") { |
| | | // @ts-ignore |
| | | !this.autoScale.x && (mx = 0); |
| | | // @ts-ignore |
| | | !this.autoScale.y && (my = 0); |
| | | } |
| | | // console.log({ |
| | | // mx, |
| | | // my, |
| | | // currentWidth, |
| | | // currentHeight, |
| | | // domWidth, |
| | | // domHeight, |
| | | // scale, |
| | | // }); |
| | | this.screenWrapper.style.margin = `${my}px ${mx}px`; |
| | | }, |
| | | updateScale() { |
| | | const screenWrapper = this.screenWrapper; |
| | | // è·åçå®è§å£å°ºå¯¸ |
| | | const currentWidth = document.body.clientWidth; |
| | | const currentHeight = document.body.clientHeight; |
| | | // è·å大屿ç»ç宽é«onResize |
| | | const realWidth = this.currentWidth || this.originalWidth; |
| | | const realHeight = this.currentHeight || this.originalHeight; |
| | | // 计ç®ç¼©æ¾æ¯ä¾ |
| | | const widthScale = currentWidth / realWidth; |
| | | const heightScale = currentHeight / realHeight; |
| | | // console.log({currentWidth, currentHeight,realWidth,realHeight}); |
| | | |
| | | // è¥è¦éºæ»¡å
¨å±ï¼åæç
§åèªæ¯ä¾ç¼©æ¾ |
| | | if (this.fullScreen) { |
| | | screenWrapper.style.transform = `scale(${widthScale},${heightScale})`; |
| | | return false; |
| | | } |
| | | // æç
§å®½é«æå°æ¯ä¾è¿è¡ç¼©æ¾ |
| | | const scale = Math.min(widthScale, heightScale); |
| | | this.handleAutoScale(scale); |
| | | }, |
| | | initMutationObserver() { |
| | | const screenWrapper = this.screenWrapper; |
| | | const observer = (this.observer = new MutationObserver(() => { |
| | | this.onResize(); |
| | | })); |
| | | |
| | | observer.observe(screenWrapper, { |
| | | attributes: true, |
| | | attributeFilter: ["style"], |
| | | attributeOldValue: true, |
| | | }); |
| | | }, |
| | | clearListener() { |
| | | window.removeEventListener("resize", this.onResize); |
| | | }, |
| | | addListener() { |
| | | window.addEventListener("resize", this.onResize); |
| | | }, |
| | | clearStyle() { |
| | | // console.log("æ¸
é¤"); |
| | | const screenWrapper = this.screenWrapper; |
| | | screenWrapper.parentNode.style.overflow = "auto"; |
| | | |
| | | screenWrapper.style = ""; |
| | | }, |
| | | async resize() { |
| | | if (!this.selfAdaption) { |
| | | return; |
| | | } |
| | | await this.initSize(); |
| | | this.updateSize(); |
| | | this.updateScale(); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.onResize = debounce(() => { |
| | | this.resize(); |
| | | }, this.delay); |
| | | this.$nextTick(() => { |
| | | if (this.selfAdaption) { |
| | | this.resize(); |
| | | this.addListener(); |
| | | } |
| | | }); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearListener(); |
| | | // this.observer.disconnect() |
| | | }, |
| | | }; |
| | | // |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .screen-box { |
| | | overflow: hidden; |
| | | background-size: 100% 100%; |
| | | background: #000; |
| | | width: 100vw; |
| | | height: 100vh; |
| | | } |
| | | |
| | | .screen-wrapper { |
| | | transition-property: all; |
| | | transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); |
| | | transition-duration: 500ms; |
| | | position: relative; |
| | | overflow: hidden; |
| | | z-index: 100; |
| | | transform-origin: left top; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | .scale-wrap { |
| | | color: #d3d6dd; |
| | | width: 1920px; |
| | | height: 1080px; |
| | | overflow: hidden; |
| | | // &.pageisScale { |
| | | // position: absolute; |
| | | // top: 50%; |
| | | // left: 50%; |
| | | // transform: translate(-50%, -50%); |
| | | // transform-origin: left top; |
| | | // } |
| | | .bg { |
| | | width: 100%; |
| | | height: 100%; |
| | | padding: 16px 16px 10px 16px; |
| | | box-sizing: border-box; |
| | | background-image: url("../assets/img/pageBg.png"); |
| | | background-size: cover; |
| | | background-position: center center; |
| | | } |
| | | |
| | | .host-body { |
| | | height: 100%; |
| | | |
| | | .title_wrap { |
| | | height: 60px; |
| | | background-image: url("../assets/img/top.png"); |
| | | background-size: cover; |
| | | background-position: center center; |
| | | position: relative; |
| | | margin-bottom: 4px; |
| | | |
| | | .guang { |
| | | position: absolute; |
| | | bottom: -26px; |
| | | background-image: url("../assets/img/guang.png"); |
| | | background-position: 80px center; |
| | | width: 100%; |
| | | height: 56px; |
| | | } |
| | | |
| | | .zuojuxing, |
| | | .youjuxing { |
| | | position: absolute; |
| | | top: -2px; |
| | | width: 140px; |
| | | height: 6px; |
| | | background-image: url("../assets/img/headers/juxing1.png"); |
| | | } |
| | | |
| | | .zuojuxing { |
| | | |
| | | left: 11%; |
| | | } |
| | | |
| | | .youjuxing { |
| | | right: 11%; |
| | | transform: rotate(180deg); |
| | | } |
| | | |
| | | .timers { |
| | | position: absolute; |
| | | right: 0; |
| | | top: 30px; |
| | | font-size: 18px; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .blq-icon-shezhi02 { |
| | | cursor: pointer; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .title { |
| | | position: relative; |
| | | // width: 500px; |
| | | text-align: center; |
| | | background-size: cover; |
| | | color: transparent; |
| | | height: 60px; |
| | | line-height: 46px; |
| | | |
| | | .title-text { |
| | | font-size: 38px; |
| | | font-weight: 900; |
| | | letter-spacing: 6px; |
| | | width: 100%; |
| | | background: linear-gradient(92deg, #0072FF 0%, #00EAFF 48.8525390625%, #01AAFF 100%); |
| | | -webkit-background-clip: text; |
| | | -webkit-text-fill-color: transparent; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | .scale-wrap { |
| | | .pagetab { |
| | | position: absolute; |
| | | top: -35px; |
| | | display: flex; |
| | | |
| | | .item { |
| | | width: 130px; |
| | | height: 36px; |
| | | border-radius: 18px 0px 0px 18px; |
| | | color: #00FBF8; |
| | | text-indent: 26px; |
| | | line-height: 36px; |
| | | font-size: 16px; |
| | | margin-right: 20px; |
| | | background: linear-gradient(to right, rgba(76, 245, 255, .5), rgba(76, 245, 255, 0)); |
| | | } |
| | | } |
| | | } |
| | | |
| | | .setting { |
| | | position: fixed; |
| | | width: 100%; |
| | | height: 100%; |
| | | z-index: 999; |
| | | top: 0; |
| | | left: 0; |
| | | |
| | | .left_shu { |
| | | color: #000; |
| | | font-weight: 900; |
| | | position: relative; |
| | | text-indent: 10px; |
| | | padding:16px 0 10px 0 ; |
| | | &::before { |
| | | display: block; |
| | | content: " "; |
| | | height: 16px; |
| | | width: 4px; |
| | | border-radius: 2px; |
| | | background: #0072FF; |
| | | position: absolute; |
| | | left: 0px; |
| | | } |
| | | } |
| | | |
| | | .setting_dislog { |
| | | background-color: rgba($color: #000000, $alpha: .5); |
| | | position: absolute; |
| | | width: 100%; |
| | | height: 100%; |
| | | z-index: 0; |
| | | right: 0; |
| | | top: 0; |
| | | } |
| | | |
| | | .setting_inner { |
| | | box-sizing: border-box; |
| | | background: #FFF; |
| | | width: 340px; |
| | | height: 100%; |
| | | position: absolute; |
| | | right: 0px; |
| | | top: 0; |
| | | z-index: 1; |
| | | color: #000000; |
| | | box-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12); |
| | | |
| | | .setting_header { |
| | | font-size: 20px; |
| | | color: rgb(0, 0, 0); |
| | | font-weight: 900; |
| | | text-align: center; |
| | | line-height: 40px; |
| | | } |
| | | |
| | | .setting_body { |
| | | padding: 0px 16px; |
| | | box-sizing: border-box; |
| | | position: relative; |
| | | } |
| | | |
| | | .setting_item { |
| | | font-size: 14px; |
| | | line-height: 1.5; |
| | | |
| | | // display: flex; |
| | | .setting_label { |
| | | color: #555454; |
| | | } |
| | | .setting_label_tip{ |
| | | font-size: 12px; |
| | | color: #838282; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .setting_inner { |
| | | animation: rtl-drawer-out .3s; |
| | | } |
| | | } |
| | | |
| | | |
| | | .settingShow { |
| | | .setting_inner { |
| | | animation: rtl-drawer-in .3s 1ms; |
| | | } |
| | | |
| | | } |
| | | |
| | | .yh-setting-fade-enter-active { |
| | | animation: yh-setting-fade-in .3s; |
| | | } |
| | | |
| | | .yh-setting-fade-leave-active { |
| | | |
| | | animation: yh-setting-fade-out .3s; |
| | | |
| | | } |
| | | |
| | | @keyframes yh-setting-fade-in { |
| | | 0% { |
| | | opacity: 0; |
| | | } |
| | | |
| | | 100% { |
| | | opacity: 1; |
| | | } |
| | | } |
| | | |
| | | @keyframes yh-setting-fade-out { |
| | | 0% { |
| | | opacity: 1; |
| | | |
| | | } |
| | | |
| | | 100% { |
| | | opacity: 0; |
| | | } |
| | | } |
| | | |
| | | |
| | | @keyframes rtl-drawer-in { |
| | | 0% { |
| | | transform: translate(100%, 0) |
| | | } |
| | | |
| | | 100% { |
| | | -webkit-transform: translate(0, 0); |
| | | transform: translate(0, 0) |
| | | } |
| | | } |
| | | |
| | | @keyframes rtl-drawer-out { |
| | | 0% { |
| | | transform: translate(0, 0) |
| | | } |
| | | |
| | | 100% { |
| | | transform: translate(100%, 0) |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @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" |
| | | class="scale-wrap" |
| | | :selfAdaption="$store.state.setting.isScale" |
| | | > |
| | | <div class="bg"> |
| | | <dv-loading v-if="loading">Loading...</dv-loading> |
| | | <div v-else class="host-body"> |
| | | <!-- å¤´é¨ s --> |
| | | <div class="d-flex jc-center title_wrap"> |
| | | <div class="zuojuxing"></div> |
| | | <div class="youjuxing"></div> |
| | | <div class="guang"></div> |
| | | <div class="d-flex jc-center"> |
| | | <div class="title"> |
| | | <span class="title-text">轮对åè£
æºè½éé
ç³»ç»</span> |
| | | </div> |
| | | </div> |
| | | <div class="timers"> |
| | | {{ dateYear }} {{ dateWeek }} {{ dateDay }} |
| | | <i |
| | | class="blq-icon-shezhi02" |
| | | style="margin-left: 10px" |
| | | @click="showSetting" |
| | | ></i> |
| | | </div> |
| | | </div> |
| | | <!-- å¤´é¨ e--> |
| | | <!-- å
容 s--> |
| | | <router-view></router-view> |
| | | <!-- å
容 e --> |
| | | </div> |
| | | </div> |
| | | <Setting ref="setting" /> |
| | | </ScaleScreen> |
| | | <!-- </div> --> |
| | | </template> |
| | | |
| | | <script> |
| | | import { formatTime } from "../utils/index.js"; |
| | | import Setting from "./setting.vue"; |
| | | import ScaleScreen from "@/components/scale-screen/scale-screen.vue"; |
| | | export default { |
| | | components: { Setting, ScaleScreen }, |
| | | data() { |
| | | return { |
| | | timing: null, |
| | | loading: true, |
| | | dateDay: null, |
| | | dateYear: null, |
| | | dateWeek: null, |
| | | weekday: ["卿¥", "å¨ä¸", "å¨äº", "å¨ä¸", "å¨å", "å¨äº", "å¨å
"], |
| | | }; |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | }, |
| | | computed: {}, |
| | | created() {}, |
| | | mounted() { |
| | | this.timeFn(); |
| | | this.cancelLoading(); |
| | | }, |
| | | beforeDestroy() { |
| | | clearInterval(this.timing); |
| | | }, |
| | | methods: { |
| | | showSetting() { |
| | | this.$refs.setting.init(); |
| | | }, |
| | | timeFn() { |
| | | this.timing = setInterval(() => { |
| | | this.dateDay = formatTime(new Date(), "HH: mm: ss"); |
| | | this.dateYear = formatTime(new Date(), "yyyy-MM-dd"); |
| | | this.dateWeek = this.weekday[new Date().getDay()]; |
| | | }, 1000); |
| | | }, |
| | | cancelLoading() { |
| | | let timer = setTimeout(() => { |
| | | this.loading = false; |
| | | clearTimeout(timer); |
| | | }, 500); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import "./home.scss"; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="center_bottom"> |
| | | <Echart |
| | | :options="options" |
| | | id="bottomLeftChart" |
| | | class="echarts_bottom" |
| | | ></Echart> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | // import { currentGET } from "api/modules"; |
| | | import { graphic } from "echarts"; |
| | | import {Timefault} from "@/api/http.js" |
| | | import axios from 'axios' |
| | | export default { |
| | | data() { |
| | | return { |
| | | options: { |
| | | tooltip: { |
| | | trigger: "axis", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | formatter: function (params) { |
| | | // æ·»å åä½ |
| | | var result = params[0].name + "<br>"; |
| | | params.forEach(function (item) { |
| | | if (item.value) { |
| | | result += |
| | | item.marker + |
| | | " " + |
| | | "åæ ¼äº§é" + |
| | | " : " + |
| | | item.value + |
| | | "æ</br>"; |
| | | } else { |
| | | result += item.marker + " " + item.seriesName + " : - </br>"; |
| | | } |
| | | }); |
| | | return result; |
| | | }, |
| | | }, |
| | | legend: { |
| | | data: ["åä½ï¼æ"], |
| | | textStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | top: "-5", |
| | | }, |
| | | grid: { |
| | | left: "50px", |
| | | right: "40px", |
| | | bottom: "30px", |
| | | top: "20px", |
| | | }, |
| | | xAxis: { |
| | | data: ['8/12','8/13','8/14','8/15','8/16','8/17','8/18'], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | yAxis: [ |
| | | { |
| | | splitLine: { show: true }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | formatter: "{value}", |
| | | }, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "åä½ï¼æ", |
| | | type: "bar", |
| | | barWidth: 20, |
| | | itemStyle: { |
| | | normal: { |
| | | borderRadius: 5, |
| | | color: new graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#956FD4" }, |
| | | { offset: 1, color: "#3EACE5" }, |
| | | ]), |
| | | // label: { |
| | | // show: true, //å¼å¯æ¾ç¤º |
| | | // position: 'top', //å¨ä¸æ¹æ¾ç¤º |
| | | // textStyle: { //æ°å¼æ ·å¼ |
| | | // color: '#bdbae2', |
| | | // fontSize: 10 |
| | | // } |
| | | // } |
| | | } |
| | | }, |
| | | data: ['200','180','190','185','190','188','195'], |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | props: {}, |
| | | mounted() { |
| | | this.getData(); |
| | | this.changeTiming(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData() |
| | | }, |
| | | methods: { |
| | | clearData() { |
| | | if (this.timer) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | } |
| | | }, |
| | | changeTiming() { |
| | | this.timer=setInterval(() => { |
| | | this.getData(); |
| | | }, 30000); |
| | | }, |
| | | getData() { |
| | | // this.numberData.forEach((item, index) => { |
| | | // item.number.number[0] += ++index |
| | | // item.number = { ...item.number } |
| | | // }) |
| | | axios.post("http://192.168.12.189:8098/api/Dt_taskinfo/GetDateTimeData", null) |
| | | .then((res) => { |
| | | this.init(res); |
| | | }).catch((res) => { |
| | | }) |
| | | }, |
| | | // async getData() { |
| | | // this.pageflag = true; |
| | | // let rep = await Timefault((a)=>{ |
| | | // console.log(a); |
| | | // }); |
| | | |
| | | // this.init(rep); |
| | | // currentGET("big6", { companyName: this.companyName }).then((res) => { |
| | | // console.log("æ
éæ¶é¿ç»è®¡", res); |
| | | |
| | | // // if (res.success) { |
| | | // // this.init(res.data); |
| | | // // console.log("æµè¯2",res.data); |
| | | // // } else { |
| | | // // this.pageflag = false; |
| | | // // this.$Message({ |
| | | // // text: res.msg, |
| | | // // type: "warning", |
| | | // // }); |
| | | // // } |
| | | // }); |
| | | // }, |
| | | init(val) { |
| | | |
| | | this.options = { |
| | | tooltip: { |
| | | trigger: "axis", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | formatter: function (params) { |
| | | // æ·»å åä½ |
| | | var result = params[0].name + "<br>"; |
| | | params.forEach(function (item) { |
| | | if (item.value) { |
| | | result += |
| | | item.marker + |
| | | " " + |
| | | "åæ ¼äº§é" + |
| | | " : " + |
| | | item.value + |
| | | "æ</br>"; |
| | | } else { |
| | | result += item.marker + " " + item.seriesName + " : - </br>"; |
| | | } |
| | | }); |
| | | return result; |
| | | }, |
| | | }, |
| | | legend: { |
| | | data: ["åä½ï¼æ"], |
| | | textStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | top: "-5", |
| | | }, |
| | | grid: { |
| | | left: "50px", |
| | | right: "40px", |
| | | bottom: "30px", |
| | | top: "20px", |
| | | }, |
| | | xAxis: { |
| | | data: [val[6].datetime,val[5].datetime,val[4].datetime,val[3].datetime, |
| | | val[2].datetime,val[1].datetime,val[0].datetime], |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | yAxis: [ |
| | | { |
| | | min: 0, // å»åº¦æå°å¼ |
| | | |
| | | splitLine: { show: true }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | formatter: "{value}", |
| | | }, |
| | | } |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "åä½ï¼æ", |
| | | type: "bar", |
| | | barWidth: 20, |
| | | itemStyle: { |
| | | borderRadius: 5, |
| | | color: new graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { offset: 0, color: "#956FD4" }, |
| | | { offset: 1, color: "#3EACE5" }, |
| | | ]), |
| | | }, |
| | | data: [val[6].qty,val[5].qty,val[4].qty,val[3].qty, |
| | | val[2].qty,val[1].qty,val[0].qty], |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .center_bottom { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | .echarts_bottom { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | </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="unmuteVideo" |
| | | > |
| | | æ¨çæµè§å¨ä¸æ¯æè§é¢ææ¾ã |
| | | </video> |
| | | <div v-if="isMuted" class="mute-hint" @click="unmuteVideo"> |
| | | <span>ç¹å»åæ¶éé³ï¼5ç§åèªå¨ææ¾å£°é³ï¼</span> |
| | | </div> |
| | | </dv-border-box-13> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | isMuted: false, |
| | | unmuteTimeout: null // åå¨å®æ¶å¨ä»¥ä¾¿æ¸
ç |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.initVideo(); |
| | | this.adjustVideoSize(); |
| | | window.addEventListener('resize', this.adjustVideoSize); |
| | | |
| | | // 5ç§åèªå¨åæ¶éé³ |
| | | this.unmuteTimeout = setTimeout(() => { |
| | | this.unmuteVideo(); |
| | | }, 5000); |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('resize', this.adjustVideoSize); |
| | | if (this.unmuteTimeout) { |
| | | clearTimeout(this.unmuteTimeout); // æ¸
é¤å®æ¶å¨é¿å
å
åæ³æ¼ |
| | | } |
| | | }, |
| | | methods: { |
| | | initVideo() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.addEventListener('ended', () => { |
| | | video.currentTime = 0; |
| | | video.play(); |
| | | }); |
| | | } |
| | | document.addEventListener('click', this.unmuteVideo, { once: true }); |
| | | }, |
| | | unmuteVideo() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.muted = false; |
| | | video.volume = 1.0; |
| | | this.isMuted = false; |
| | | } |
| | | }, |
| | | adjustVideoSize() { |
| | | const video = this.$refs.videoPlayer; |
| | | if (video) { |
| | | video.style.width = '100%'; |
| | | video.style.height = '100%'; |
| | | video.style.objectFit = 'cover'; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </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; |
| | | width: 100%; |
| | | height: 100%; |
| | | object-fit: cover; |
| | | } |
| | | |
| | | .mute-hint { |
| | | position: absolute; |
| | | top: 50%; |
| | | left: 50%; |
| | | transform: translate(-50%, -50%); |
| | | background: rgba(0,0,0,0.7); |
| | | color: white; |
| | | padding: 10px 20px; |
| | | border-radius: 5px; |
| | | cursor: pointer; |
| | | z-index: 10; |
| | | } |
| | | </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> |
| | | <!-- <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> |
| | | |
| | | <!-- <ItemWrap |
| | | class="contetn_left-bottom contetn_lr-item" |
| | | title="æ»ä½åºå
¥åºä¿¡æ¯" |
| | | > |
| | | <stationthree/> |
| | | |
| | | </ItemWrap> --> |
| | | |
| | | |
| | | </div> |
| | | |
| | | |
| | | </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' |
| | | export default { |
| | | components: { |
| | | LeftTop, |
| | | LeftCenter, |
| | | LeftCenterRight, |
| | | LeftBottom, |
| | | CenterMap, |
| | | RightTop, |
| | | RightCenter, |
| | | RightBottom, |
| | | CenterBottom, |
| | | stationone, |
| | | stationtwo, |
| | | stationthree, |
| | | passtwo, |
| | | plan |
| | | }, |
| | | 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; |
| | | |
| | | |
| | | } |
| | | } |
| | | .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); |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-01 09:43:37 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-09-09 11:40:22 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\left-bottom.vue |
| | | --> |
| | | <template> |
| | | <div |
| | | v-if="pageflag" |
| | | class="left_boottom_wrap beautify-scroll-def" |
| | | :class="{ 'overflow-y-auto': !sbtxSwiperFlag }" |
| | | > |
| | | <component :is="components" :data="list" :class-option="defaultOption"> |
| | | <ul class="left_boottom"> |
| | | <li class="left_boottom_item" v-for="(item, i) in list" :key="i"> |
| | | <div class="inner_right"> |
| | | <div class="dibu"></div> |
| | | <div class="flex" style="width: 100%;"> |
| | | <div class="info"> |
| | | <!-- <span class="labels">设å¤IDï¼</span> --> |
| | | <span class="contents zhuyao doudong wangguan"> |
| | | {{ item.alarmposition }}</span |
| | | > |
| | | </div> |
| | | <div class="info" style="margin-left: 8%;"> |
| | | <!-- <span class="labels">å°åï¼</span> --> |
| | | <span class="contents ciyao" style="font-size: 10px;width: 30px;"> |
| | | {{ item.devicename }}</span |
| | | > |
| | | </div> |
| | | <div class="info" style="margin-left: 7%;"> |
| | | <!-- <span class="labels">å°åï¼</span> --> |
| | | <span class="contents ciyao" style="font-size: 10px;width: 180px;"> |
| | | {{ item.alarmname }}</span |
| | | > |
| | | </div> |
| | | <div class="info"> |
| | | <!-- <span class="labels">æ¶é´ï¼</span> --> |
| | | <span class="contents " style="font-size: 10px;width: 180px;"> |
| | | {{ item.starttime }}</span |
| | | > |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <span |
| | | class="types doudong" |
| | | :class="{ |
| | | typeRed: item.onlineState == 0, |
| | | typeGreen: item.onlineState == 1, |
| | | }" |
| | | >{{ item.onlineState == 1 ? "ä¸çº¿" : "ä¸çº¿" }}</span |
| | | > --> |
| | | |
| | | |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </component> |
| | | </div> |
| | | |
| | | <Reacquire v-else @onclick="getData" style="line-height: 200px" /> |
| | | </template> |
| | | |
| | | <script> |
| | | // import { currentGET } from "api"; |
| | | import {FaultInformation} from "@/api/http.js" |
| | | import vueSeamlessScroll from "vue-seamless-scroll"; // vue2å¼å
¥æ¹å¼ |
| | | import Kong from "../../components/kong.vue"; |
| | | export default { |
| | | components: { vueSeamlessScroll, Kong }, |
| | | data() { |
| | | return { |
| | | list: [], |
| | | pageflag: true, |
| | | components: vueSeamlessScroll, |
| | | defaultOption: { |
| | | ...this.$store.state.setting.defaultOption, |
| | | singleHeight: 240, |
| | | limitMoveNum: 5, |
| | | step: 0, |
| | | }, |
| | | }; |
| | | }, |
| | | computed: { |
| | | sbtxSwiperFlag() { |
| | | let sbtxSwiper = this.$store.state.setting.sbtxSwiper; |
| | | if (sbtxSwiper) { |
| | | this.components = vueSeamlessScroll; |
| | | } else { |
| | | this.components = Kong; |
| | | } |
| | | return sbtxSwiper; |
| | | }, |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getData(); |
| | | this.changeTiming(); |
| | | }, |
| | | methods: { |
| | | changeTiming() { |
| | | setInterval(() => { |
| | | this.getData(); |
| | | }, 5000); |
| | | }, |
| | | addressHandle(item) { |
| | | let name = item.provinceName; |
| | | if (item.cityName) { |
| | | name += "/" + item.cityName; |
| | | if (item.countyName) { |
| | | name += "/" + item.countyName; |
| | | } |
| | | } |
| | | return name; |
| | | }, |
| | | async getData() { |
| | | this.pageflag = true; |
| | | // this.pageflag =false |
| | | // currentGET("big3", { limitNum: 20 }).then((res) => { |
| | | // console.log("è®¾å¤æé", res); |
| | | // if (res.success) { |
| | | // this.countUserNumData = res.data; |
| | | // this.list = res.data.list; |
| | | |
| | | // let timer = setTimeout(() => { |
| | | // clearTimeout(timer); |
| | | // this.defaultOption.step = |
| | | // this.$store.state.setting.defaultOption.step; |
| | | // }, this.$store.state.setting.defaultOption.waitTime); |
| | | // } else { |
| | | // this.pageflag = false; |
| | | // this.$Message({ |
| | | // text: res.msg, |
| | | // type: "warning", |
| | | // }); |
| | | // } |
| | | // }); |
| | | let rep = await FaultInformation((a)=>{ |
| | | console.log(a); |
| | | }); |
| | | |
| | | this.list=rep; |
| | | let timer = setTimeout(() => { |
| | | clearTimeout(timer); |
| | | this.defaultOption.step = |
| | | this.$store.state.setting.defaultOption.step; |
| | | }, this.$store.state.setting.defaultOption.waitTime); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | .left_boottom_wrap { |
| | | overflow: hidden; |
| | | width: 100%; |
| | | height: 230px; |
| | | } |
| | | |
| | | .doudong { |
| | | // vertical-align:middle; |
| | | overflow: hidden; |
| | | -webkit-backface-visibility: hidden; |
| | | -moz-backface-visibility: hidden; |
| | | -ms-backface-visibility: hidden; |
| | | backface-visibility: hidden; |
| | | } |
| | | |
| | | .overflow-y-auto { |
| | | overflow-y: auto; |
| | | } |
| | | |
| | | .left_boottom { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | .left_boottom_item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | padding: 8px; |
| | | font-size: 14px; |
| | | margin: 10px 0; |
| | | .orderNum { |
| | | margin: 0 16px 0 -20px; |
| | | } |
| | | |
| | | .info { |
| | | margin-right: 8%; |
| | | display: flex; |
| | | align-items: center; |
| | | color: #fff; |
| | | .labels { |
| | | flex-shrink: 0; |
| | | font-size: 12px; |
| | | color: rgba(255, 255, 255, 0.6); |
| | | } |
| | | |
| | | .zhuyao { |
| | | color: $primary-color; |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .ciyao { |
| | | color: rgba(255, 255, 255, 0.8); |
| | | } |
| | | |
| | | .warning { |
| | | color: #e6a23c; |
| | | font-size: 15px; |
| | | } |
| | | } |
| | | |
| | | .inner_right { |
| | | position: relative; |
| | | height: 100%; |
| | | width: 650px; |
| | | flex-shrink: 0; |
| | | line-height: 1; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | flex-wrap: wrap; |
| | | .dibu { |
| | | position: absolute; |
| | | height: 2px; |
| | | width: 104%; |
| | | background-image: url("../../assets/img/zuo_xuxian.png"); |
| | | bottom: -10px; |
| | | left: -2%; |
| | | background-size: cover; |
| | | } |
| | | .addresswrap { |
| | | width: 200px; |
| | | display: flex; |
| | | margin-top: 8px; |
| | | } |
| | | } |
| | | |
| | | .wangguan { |
| | | color: #1890ff; |
| | | font-weight: 900; |
| | | font-size: 15px; |
| | | width: 80px; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | |
| | | .time { |
| | | font-size: 12px; |
| | | // color: rgba(211, 210, 210,.8); |
| | | color: #fff; |
| | | } |
| | | |
| | | .address { |
| | | font-size: 12px; |
| | | cursor: pointer; |
| | | // @include text-overflow(1); |
| | | } |
| | | |
| | | .types { |
| | | width: 30px; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .typeRed { |
| | | color: #fc1a1a; |
| | | } |
| | | |
| | | .typeGreen { |
| | | color: #29fc29; |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-02-28 16:16:42 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-10-25 09:18:22 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\left-center.vue |
| | | --> |
| | | <template> |
| | | <Echart id="leftcenterright" :options="options" class="left_center_inner" v-if="pageflag" ref="charts" /> |
| | | <Reacquire v-else @onclick="getData" style="line-height:200px"> |
| | | éæ°è·å |
| | | </Reacquire> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentPOST } from 'api/modules' |
| | | import {Equipmentfault} from "@/api/http.js" |
| | | export default { |
| | | data() { |
| | | return { |
| | | options: {}, |
| | | countUserNumData: { |
| | | HoistNum: 0, |
| | | decoderNum: 0, |
| | | uncoderNum: 0, |
| | | elevatorNum:0, |
| | | TransmissionlineNum:0, |
| | | totalNum: 0 |
| | | }, |
| | | pageflag: true, |
| | | timer: null |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | mounted() { |
| | | this.changeTiming(); |
| | | }, |
| | | beforeDestroy() { |
| | | // this.clearData() |
| | | |
| | | }, |
| | | methods: { |
| | | changeTiming() { |
| | | setInterval(() => { |
| | | this.getData(); |
| | | }, 5000); |
| | | }, |
| | | // clearData() { |
| | | // if (this.timer) { |
| | | // clearInterval(this.timer) |
| | | // this.timer = null |
| | | // } |
| | | // }, |
| | | async getData() { |
| | | this.pageflag = true |
| | | // this.pageflag =false |
| | | |
| | | // currentPOST('big1').then(res => { |
| | | |
| | | // //åªæå°ä¸æ¬¡ |
| | | // if (!this.timer) { |
| | | // console.log("è®¾å¤æ»è§", res); |
| | | // } |
| | | // if (res.success) { |
| | | // // this.countUserNumData = res.data |
| | | // this.$nextTick(() => { |
| | | // this.init() |
| | | // }) |
| | | |
| | | // } else { |
| | | // this.pageflag = false |
| | | // this.$Message({ |
| | | // text: res.msg, |
| | | // type: 'warning' |
| | | // }) |
| | | // } |
| | | // }) |
| | | |
| | | |
| | | let rep = await Equipmentfault((a)=>{ |
| | | console.log(a); |
| | | }); |
| | | |
| | | this.countUserNumData = rep; |
| | | this.$nextTick(() => { |
| | | this.init() |
| | | }) |
| | | }, |
| | | //轮询 |
| | | switper() { |
| | | if (this.timer) { |
| | | return |
| | | } |
| | | let looper = (a) => { |
| | | this.getData() |
| | | }; |
| | | this.timer = setInterval(looper, this.$store.state.setting.echartsAutoTime); |
| | | let myChart = this.$refs.charts.chart |
| | | myChart.on('mouseover', params => { |
| | | this.clearData() |
| | | }); |
| | | myChart.on('mouseout', params => { |
| | | this.timer = setInterval(looper, this.$store.state.setting.echartsAutoTime); |
| | | }); |
| | | }, |
| | | init() { |
| | | let total = this.countUserNumData.total; |
| | | let colors = ["#ECA444", "#33A1DB", "#56B557","#ffb8c6","#FF21FA"]; |
| | | let piedata = { |
| | | name: "æ
é设å¤é¢ç", |
| | | type: "pie", |
| | | radius: ["40%", "70%"], |
| | | avoidLabelOverlap: false, |
| | | itemStyle: { |
| | | borderRadius: 4, |
| | | borderColor: "rgba(0,0,0,0)", |
| | | borderWidth: 2, |
| | | }, |
| | | |
| | | color: colors, |
| | | data: [ |
| | | // { |
| | | // value: 0, |
| | | // name: "åè¦", |
| | | // label: { |
| | | // shadowColor: colors[0], |
| | | // }, |
| | | // }, |
| | | { |
| | | value: this.countUserNumData.elevator, |
| | | name: "æåæºæ
é", |
| | | label: { |
| | | shadowColor: colors[0], |
| | | }, |
| | | }, |
| | | { |
| | | value: this.countUserNumData.discremover, |
| | | name: "æç æºæ
é", |
| | | label: { |
| | | shadowColor: colors[2], |
| | | }, |
| | | }, |
| | | { |
| | | value: this.countUserNumData.rgVcCar, |
| | | name: "åå车æ
é", |
| | | label: { |
| | | shadowColor: colors[1], |
| | | }, |
| | | }, |
| | | { |
| | | value: this.countUserNumData.pipeline, |
| | | name: "è¾é线æ
é", |
| | | label: { |
| | | shadowColor: colors[4], |
| | | }, |
| | | } |
| | | ], |
| | | }; |
| | | this.options = { |
| | | title: { |
| | | // zlevel: 0, |
| | | text: ["{value|" + total + "}", "{name|æ»æ°}"].join("\n"), |
| | | top: "center", |
| | | left: "center", |
| | | textStyle: { |
| | | rich: { |
| | | value: { |
| | | color: "#ffffff", |
| | | fontSize: 24, |
| | | fontWeight: "bold", |
| | | lineHeight: 20, |
| | | }, |
| | | name: { |
| | | color: "#ffffff", |
| | | lineHeight: 20, |
| | | }, |
| | | }, |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | }, |
| | | legend: { |
| | | show: false, |
| | | top: "5%", |
| | | left: "center", |
| | | }, |
| | | series: [ |
| | | //å±ç¤ºåç¹ |
| | | { |
| | | ...piedata, |
| | | tooltip: { show: true }, |
| | | label: { |
| | | formatter: " {b|{b}}", |
| | | // formatter: " {b|{b}} \n {c|{c}个} {per|{d}%} ", |
| | | // position: "outside", |
| | | rich: { |
| | | b: { |
| | | color: "#fff", |
| | | fontSize: 12, |
| | | lineHeight: 26, |
| | | }, |
| | | c: { |
| | | color: "#31ABE3", |
| | | fontSize: 14, |
| | | }, |
| | | per: { |
| | | color: "#31ABE3", |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | labelLine: { |
| | | length: 30, // ç¬¬ä¸æ®µçº¿ é¿åº¦ |
| | | length2: 46, // ç¬¬äºæ®µçº¿ é¿åº¦ |
| | | show: true, |
| | | |
| | | }, |
| | | emphasis: { |
| | | show: true, |
| | | }, |
| | | }, |
| | | { |
| | | ...piedata, |
| | | tooltip: { show: true }, |
| | | itemStyle: {}, |
| | | label: { |
| | | backgroundColor: "inherit", //åç¹é¢è²ï¼autoï¼æ å°çç³»åè² |
| | | height: 0, |
| | | width: 0, |
| | | lineHeight: 0, |
| | | borderRadius: 2.5, |
| | | shadowBlur: 8, |
| | | shadowColor: "auto", |
| | | padding: [2.5, -2.5, 2.5, -2.5], |
| | | }, |
| | | labelLine: { |
| | | length: 30, // ç¬¬ä¸æ®µçº¿ é¿åº¦ |
| | | length2: 46, // ç¬¬äºæ®µçº¿ é¿åº¦ |
| | | show: false, |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-02-28 16:16:42 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-10-25 09:18:22 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\left-center.vue |
| | | --> |
| | | <template> |
| | | <Echart id="leftCenter" :options="options" class="left_center_inner" v-if="pageflag" ref="charts" /> |
| | | <Reacquire v-else @onclick="getData" style="line-height:200px"> |
| | | éæ°è·å |
| | | </Reacquire> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from 'api/modules' |
| | | import {Failuremode} from "@/api/http.js" |
| | | export default { |
| | | data() { |
| | | return { |
| | | options: {}, |
| | | countUserNumData: { |
| | | lockNum: 0, |
| | | onlineNum: 0, |
| | | offlineNum: 0, |
| | | totalNum: 0 |
| | | }, |
| | | pageflag: true, |
| | | timer: null |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | mounted() { |
| | | this.changeTiming(); |
| | | |
| | | }, |
| | | beforeDestroy() { |
| | | // this.clearData() |
| | | }, |
| | | methods: { |
| | | changeTiming() { |
| | | setInterval(() => { |
| | | this.getData(); |
| | | }, 5000); |
| | | }, |
| | | // clearData() { |
| | | // if (this.timer) { |
| | | // clearInterval(this.timer) |
| | | // this.timer = null |
| | | // } |
| | | // }, |
| | | async getData() { |
| | | // this.pageflag = true |
| | | let rep = await Failuremode((a)=>{ |
| | | console.log(a); |
| | | }); |
| | | this.countUserNumData = { |
| | | offlineNum: rep.overtime, |
| | | onlineNum: rep.sensitization, |
| | | lockNum: rep.rgVcCar, |
| | | totalNum: rep.total |
| | | }, |
| | | this.$nextTick(() => { |
| | | this.init() |
| | | }) |
| | | // this.pageflag =false |
| | | |
| | | // currentGET('big1').then(res => { |
| | | // //åªæå°ä¸æ¬¡ |
| | | // if (!this.timer) { |
| | | // console.log("è®¾å¤æ»è§", res); |
| | | // } |
| | | // if (res.success) { |
| | | // this.countUserNumData = res.data |
| | | // this.$nextTick(() => { |
| | | // this.init() |
| | | // }) |
| | | |
| | | // } else { |
| | | // this.pageflag = false |
| | | // this.$Message({ |
| | | // text: res.msg, |
| | | // type: 'warning' |
| | | // }) |
| | | // } |
| | | // }) |
| | | |
| | | }, |
| | | //轮询 |
| | | switper() { |
| | | if (this.timer) { |
| | | return |
| | | } |
| | | let looper = (a) => { |
| | | this.getData() |
| | | }; |
| | | this.timer = setInterval(looper, this.$store.state.setting.echartsAutoTime); |
| | | let myChart = this.$refs.charts.chart |
| | | myChart.on('mouseover', params => { |
| | | this.clearData() |
| | | }); |
| | | myChart.on('mouseout', params => { |
| | | this.timer = setInterval(looper, this.$store.state.setting.echartsAutoTime); |
| | | }); |
| | | }, |
| | | init() { |
| | | let total = this.countUserNumData.totalNum; |
| | | let colors = ["#ECA444", "#33A1DB", "#56B557","#ffb8c6"]; |
| | | let piedata = { |
| | | name: "æ
éç§ç±»é¢ç", |
| | | type: "pie", |
| | | radius: ["42%", "65%"], |
| | | avoidLabelOverlap: false, |
| | | itemStyle: { |
| | | borderRadius: 4, |
| | | borderColor: "rgba(0,0,0,0)", |
| | | borderWidth: 2, |
| | | }, |
| | | |
| | | color: colors, |
| | | data: [ |
| | | // { |
| | | // value: 0, |
| | | // name: "åè¦", |
| | | // label: { |
| | | // shadowColor: colors[0], |
| | | // }, |
| | | // }, |
| | | { |
| | | value: this.countUserNumData.onlineNum, |
| | | name: "å
çµæ
é", |
| | | label: { |
| | | shadowColor: colors[0], |
| | | }, |
| | | }, |
| | | { |
| | | value: this.countUserNumData.lockNum, |
| | | name: "åå车æ
é", |
| | | label: { |
| | | shadowColor: colors[2], |
| | | }, |
| | | }, |
| | | // { |
| | | // value: this.countUserNumData.onlineNum, |
| | | // name: "è¶
é使
é", |
| | | // label: { |
| | | // shadowColor: colors[1], |
| | | // }, |
| | | // }, |
| | | { |
| | | value: this.countUserNumData.offlineNum, |
| | | name: "è¶
æ¶æ
é", |
| | | label: { |
| | | shadowColor: colors[3], |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | this.options = { |
| | | title: { |
| | | // zlevel: 0, |
| | | text: ["{value|" + total + "}", "{name|æ»æ°}"].join("\n"), |
| | | top: "center", |
| | | left: "center", |
| | | textStyle: { |
| | | rich: { |
| | | value: { |
| | | color: "#ffffff", |
| | | fontSize: 24, |
| | | fontWeight: "bold", |
| | | lineHeight: 20, |
| | | }, |
| | | name: { |
| | | color: "#ffffff", |
| | | lineHeight: 20, |
| | | }, |
| | | }, |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "item", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | }, |
| | | legend: { |
| | | show: false, |
| | | top: "5%", |
| | | left: "center", |
| | | }, |
| | | series: [ |
| | | //å±ç¤ºåç¹ |
| | | { |
| | | ...piedata, |
| | | tooltip: { show: true }, |
| | | label: { |
| | | formatter: " {b|{b}}", |
| | | // position: "outside", |
| | | rich: { |
| | | b: { |
| | | color: "#fff", |
| | | fontSize: 12, |
| | | lineHeight: 26, |
| | | }, |
| | | c: { |
| | | color: "#31ABE3", |
| | | fontSize: 14, |
| | | }, |
| | | per: { |
| | | color: "#31ABE3", |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | labelLine: { |
| | | length: 30, // ç¬¬ä¸æ®µçº¿ é¿åº¦ |
| | | length2: 46, // ç¬¬äºæ®µçº¿ é¿åº¦ |
| | | show: true, |
| | | |
| | | }, |
| | | emphasis: { |
| | | show: true, |
| | | }, |
| | | }, |
| | | { |
| | | ...piedata, |
| | | tooltip: { show: true }, |
| | | itemStyle: {}, |
| | | label: { |
| | | backgroundColor: "inherit", //åç¹é¢è²ï¼autoï¼æ å°çç³»åè² |
| | | height: 0, |
| | | width: 0, |
| | | lineHeight: 0, |
| | | borderRadius: 2.5, |
| | | shadowBlur: 8, |
| | | shadowColor: "auto", |
| | | padding: [2.5, -2.5, 2.5, -2.5], |
| | | }, |
| | | labelLine: { |
| | | length: 30, // ç¬¬ä¸æ®µçº¿ é¿åº¦ |
| | | length2: 46, // ç¬¬äºæ®µçº¿ é¿åº¦ |
| | | show: false, |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | </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>䏿¥¼è´§æ¶</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>äºæ¥¼è´§æ¶</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>å
楼货æ¶</p> |
| | | </li> |
| | | <li class="user_Overview-item" style="color: #f5023d"> |
| | | <div class="user_Overview_nums laramnum"> |
| | | <dv-digital-flop :config="laramnumconfig" style="width:100%;height:100%;" /> |
| | | </div> |
| | | <p>䏿¥¼è´§æ¶</p> |
| | | </li> |
| | | </ul> |
| | | <Reacquire v-else @onclick="getData" line-height="200px"> |
| | | éæ°è·å |
| | | </Reacquire> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from 'api/modules' |
| | | import {Floorfault} from "@/api/http.js" |
| | | let style = { |
| | | fontSize: 24 |
| | | } |
| | | export default { |
| | | data() { |
| | | return { |
| | | options: {}, |
| | | 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", |
| | | }, |
| | | }, |
| | | laramnumconfig: { |
| | | number: [0], |
| | | content: '{nt}', |
| | | style: { |
| | | ...style, |
| | | // stroke: "#f5023d", |
| | | fill: "#f5023d", |
| | | }, |
| | | } |
| | | |
| | | }; |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | mounted() { |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData() |
| | | |
| | | }, |
| | | 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)=>{ |
| | | console.log(a); |
| | | }); |
| | | this.onlineconfig = { |
| | | ...this.onlineconfig, |
| | | number: [rep.threefloor] |
| | | } |
| | | this.config = { |
| | | ...this.config, |
| | | number: [rep.fivefloor] |
| | | } |
| | | this.offlineconfig = { |
| | | ...this.offlineconfig, |
| | | number: [rep.sixfloor] |
| | | } |
| | | this.laramnumconfig = { |
| | | ...this.laramnumconfig, |
| | | number: [rep.sevenfloor] |
| | | } |
| | | 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; |
| | | } |
| | | |
| | | .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 { |
| | | |
| | | // 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"); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="echart" id="mychart" :style="myChartStyle"> |
| | | <Echart |
| | | :options="options" |
| | | id="bottomLeftChart" |
| | | class="echarts_bottom" |
| | | ></Echart> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from "echarts"; |
| | | import axios from "axios"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | myChart: {}, |
| | | xData: [ |
| | | "1æ", |
| | | "2æ", |
| | | "3æ", |
| | | "4æ", |
| | | "5æ", |
| | | "6æ", |
| | | "7æ", |
| | | "8æ", |
| | | "9æ", |
| | | "10æ", |
| | | "11æ", |
| | | "12æ", |
| | | ], //æ¨ªåæ |
| | | qualified: [], //åæ ¼ |
| | | unqualified: [], //ä¸åæ ¼ |
| | | myChartStyle: { float: "left", width: "100%", height: "250px" }, //å¾è¡¨æ ·å¼ |
| | | options:{ |
| | | xAxis: { |
| | | name:'åä½:æ', |
| | | nameTextStyle:{ |
| | | color: ["#B4B4B4"], |
| | | padding:[0,0,0,-10], |
| | | fontSize:14 |
| | | }, |
| | | min:0, |
| | | max:11, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | data: [ |
| | | "1", |
| | | "2", |
| | | "3", |
| | | "4", |
| | | "5", |
| | | "6", |
| | | "7", |
| | | "8", |
| | | "9", |
| | | "10", |
| | | "11", |
| | | "12", |
| | | ], |
| | | }, |
| | | legend: { |
| | | // å¾ä¾ |
| | | data: ["åæ ¼ç", "ä¸åæ ¼ç"], |
| | | bottom: "0%", |
| | | textStyle: { |
| | | color: "#ffffff", |
| | | fontSize: 18, |
| | | }, |
| | | }, |
| | | yAxis: [{ |
| | | type:"value", |
| | | min: 0, // å»åº¦æå°å¼ |
| | | max: 100, // å»åº¦æå¤§å¼ï¼éè¦å¨æè·åæå¤§å¼,å¹¶ä¸è½è¢«3æ´é¤ï¼åä¸åæ´åä¹åæ¥ï¼ï¼ |
| | | splitNumber: 5, // æ¨ªçº¿æ° |
| | | name: "åä½:%", |
| | | nameTextStyle: { |
| | | color: "#B4B4B4", |
| | | nameLocation: "start", |
| | | padding:[0,0,12,-20], |
| | | fontSize:14 |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | } |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "åæ ¼ç", |
| | | data: [50, 80, 50, 72, 75, 78, 72, 70, 80, 76, 78, 74], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | show: true, |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | name: "ä¸åæ ¼ç", |
| | | data: [0, 11, 9, 17, 14, 13, 14, 9, 17, 14, 13, 14], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | show: true, |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | } |
| | | }; |
| | | }, |
| | | mounted() { |
| | | // this.initEcharts(); |
| | | this.getData(); |
| | | this.changeTiming(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData() |
| | | }, |
| | | methods: { |
| | | clearData() { |
| | | if (this.timer) { |
| | | clearInterval(this.timer) |
| | | this.timer = null |
| | | } |
| | | }, |
| | | changeTiming() { |
| | | this.timer = setInterval(() => { |
| | | this.getData(); |
| | | }, 60000); |
| | | }, |
| | | getData() { |
| | | // this.numberData.forEach((item, index) => { |
| | | // item.number.number[0] += ++index |
| | | // item.number = { ...item.number } |
| | | // }) |
| | | axios.post("http://192.168.12.189:8098/api/Dt_CheckResult/GetPassRate",null) |
| | | .then((res) => { |
| | | this.init(res); |
| | | }) |
| | | .catch((res) => { |
| | | }); |
| | | }, |
| | | init(val){ |
| | | this.options={ |
| | | xAxis: { |
| | | name:'åä½:æ', |
| | | nameTextStyle:{ |
| | | color: ["#B4B4B4"], |
| | | padding:[0,0,0,-10], |
| | | fontSize:14 |
| | | }, |
| | | min:0, |
| | | max:11, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | data: [ |
| | | "1", |
| | | "2", |
| | | "3", |
| | | "4", |
| | | "5", |
| | | "6", |
| | | "7", |
| | | "8", |
| | | "9", |
| | | "10", |
| | | "11", |
| | | "12", |
| | | ], |
| | | }, |
| | | legend: { |
| | | // å¾ä¾ |
| | | data: ["åæ ¼ç", "ä¸åæ ¼ç"], |
| | | bottom: "0%", |
| | | textStyle: { |
| | | color: "#ffffff", |
| | | fontSize: 18, |
| | | }, |
| | | }, |
| | | yAxis: [{ |
| | | type:"value", |
| | | min: 0, // å»åº¦æå°å¼ |
| | | max: 100, // å»åº¦æå¤§å¼ï¼éè¦å¨æè·åæå¤§å¼,å¹¶ä¸è½è¢«3æ´é¤ï¼åä¸åæ´åä¹åæ¥ï¼ï¼ |
| | | splitNumber: 5, // æ¨ªçº¿æ° |
| | | name: "åä½:%", |
| | | nameTextStyle: { |
| | | color: "#B4B4B4", |
| | | nameLocation: "start", |
| | | padding:[0,0,12,-20], |
| | | fontSize:14 |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | } |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "åæ ¼ç", |
| | | data:[val[0].qualified,val[1].qualified,val[2].qualified,val[3].qualified,val[4].qualified,val[5].qualified, |
| | | val[6].qualified,val[7].qualified,val[8].qualified,val[9].qualified,val[10].qualified,val[11].qualified], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | show: true, |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | name: "ä¸åæ ¼ç", |
| | | data:[val[0].unqualified,val[1].unqualified,val[2].unqualified,val[3].unqualified,val[4].unqualified,val[5].unqualified, |
| | | val[6].unqualified,val[7].unqualified,val[8].unqualified,val[9].unqualified,val[10].unqualified,val[11].unqualified], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | show: true, |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | } |
| | | }, |
| | | // initEcharts() { |
| | | // const option = { |
| | | // xAxis: { |
| | | // axisLine: { |
| | | // lineStyle: { |
| | | // color: "#B4B4B4", |
| | | // }, |
| | | // }, |
| | | // data: this.xData, |
| | | // }, |
| | | // legend: { |
| | | // // å¾ä¾ |
| | | // data: ["åæ ¼ç", "ä¸åæ ¼ç"], |
| | | // bottom: "0%", |
| | | // textStyle: { |
| | | // color: "#ffffff", |
| | | // fontSize: 18, |
| | | // }, |
| | | // }, |
| | | // yAxis: [{ |
| | | // name: "åä½:%", |
| | | // nameTextStyle: { |
| | | // color: "#B4B4B4", |
| | | // nameLocation: "start", |
| | | // padding:[0,0,12,-20], |
| | | // fontSize:14 |
| | | // }, |
| | | // axisLine: { |
| | | // lineStyle: { |
| | | // color: "#B4B4B4", |
| | | // }, |
| | | // }, |
| | | // } |
| | | // ], |
| | | // series: [ |
| | | // { |
| | | // name: "åæ ¼ç", |
| | | // data: this.qualified, |
| | | // type: "line", // ç±»å设置为æçº¿å¾ |
| | | // label: { |
| | | // show: true, |
| | | // position: "top", |
| | | // textStyle: { |
| | | // fontSize: 14, |
| | | // }, |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "ä¸åæ ¼ç", |
| | | // data: this.unqualified, |
| | | // type: "line", // ç±»å设置为æçº¿å¾ |
| | | // label: { |
| | | // show: true, |
| | | // position: "top", |
| | | // textStyle: { |
| | | // fontSize: 14, |
| | | // }, |
| | | // }, |
| | | // }, |
| | | // ], |
| | | // }; |
| | | // this.myChart = echarts.init(document.getElementById("mychart")); |
| | | // this.myChart.setOption(option); |
| | | // //éçå±å¹å¤§å°è°èå¾è¡¨ |
| | | // window.addEventListener("resize", () => { |
| | | // this.myChart.resize(); |
| | | // }); |
| | | // }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="container_plan echart" id="mychart" :style="myChartStyle"> |
| | | <Echart |
| | | :options="option" |
| | | id="bottomLeftChart" |
| | | class="echarts_bottom" |
| | | ></Echart> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from "api/modules"; |
| | | import { Floorfault } from "@/api/http.js"; |
| | | import axios from "axios"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | isInterval: false, |
| | | myChartStyle: { float: "left", width: "100%", height: "250px" }, |
| | | option: { |
| | | tooltip: { |
| | | trigger: "axis", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | }, |
| | | xAxis: { |
| | | name: "åä½:天", |
| | | nameTextStyle: { |
| | | color: ["#B4B4B4"], |
| | | padding: [0, 0, 0, -10], |
| | | fontSize: 14, |
| | | }, |
| | | min: 0, |
| | | max: 30, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | data: [ |
| | | |
| | | ], |
| | | }, |
| | | legend: { |
| | | // å¾ä¾ |
| | | data: ["å
¥åºé", "åºåºé"], |
| | | bottom: "0%", |
| | | textStyle: { |
| | | color: "#ffffff", |
| | | fontSize: 18, |
| | | }, |
| | | }, |
| | | yAxis: [ |
| | | { |
| | | name: "åä½:个", |
| | | nameTextStyle: { |
| | | color: "#B4B4B4", |
| | | nameLocation: "start", |
| | | padding: [0, 0, 12, -20], |
| | | fontSize: 14, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "å
¥åºé", |
| | | data: [ |
| | | 50, 80, 50, 72, 75, 78, 72, 70, 80, 76, 78, 74, 50, 80, 50, 72, |
| | | 75, 78, 72, 70, 80, 76, 78, 74, 50, 80, 50, 72, 75, 78, |
| | | ], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | name: "åºåºé", |
| | | data: [ |
| | | 0, 11, 9, 17, 14, 13, 14, 9, 17, 14, 13, 14, 0, 11, 9, 17, 14, 13, |
| | | 14, 9, 17, 14, 13, 14, 0, 11, 9, 17, 14, 13, |
| | | ], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.$nextTick((x) => { |
| | | this.getData(); |
| | | }); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData(); |
| | | }, |
| | | methods: { |
| | | clearData() { |
| | | if (this.timer) { |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | } |
| | | }, |
| | | getData() { |
| | | axios.post("http://192.168.12.189:8098/api/Dt_taskinfo/GetPlanRealData",null) |
| | | .then((res) => { |
| | | this.init(res); |
| | | }) |
| | | .catch((res) => { |
| | | }); |
| | | if (!this.isInterval) { |
| | | this.isInterval = true; |
| | | this.timer = setInterval(() => { |
| | | this.$nextTick((x) => { |
| | | this.getData(); |
| | | }); |
| | | }, 10000); |
| | | } |
| | | }, |
| | | init(val) { |
| | | console.log('123') |
| | | console.log(val); |
| | | this.option={ |
| | | tooltip: { |
| | | trigger: "axis", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | }, |
| | | xAxis: { |
| | | name: "åä½:天", |
| | | nameTextStyle: { |
| | | color: ["#B4B4B4"], |
| | | padding: [0, 0, 0, -10], |
| | | fontSize: 14, |
| | | }, |
| | | min: 0, |
| | | max: 6, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | data: [ |
| | | val[0].datetime, |
| | | val[1].datetime, |
| | | val[2].datetime, |
| | | val[3].datetime, |
| | | val[4].datetime, |
| | | val[5].datetime, |
| | | val[6].datetime, |
| | | ], //è·å该æçå¤©æ° |
| | | }, |
| | | legend: { |
| | | // å¾ä¾ |
| | | data: ["å
¥åºé", "åºåºé"], |
| | | bottom: "0%", |
| | | textStyle: { |
| | | color: "#ffffff", |
| | | fontSize: 18, |
| | | }, |
| | | }, |
| | | yAxis: [ |
| | | { |
| | | name: "åä½:个", |
| | | nameTextStyle: { |
| | | color: "#B4B4B4", |
| | | nameLocation: "start", |
| | | padding: [0, 0, 12, -20], |
| | | fontSize: 14, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "#B4B4B4", |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | series: [ |
| | | { |
| | | name: "å
¥åºé", //è·å计å产é |
| | | data: [ |
| | | val[0].qty, |
| | | val[1].qty, |
| | | val[2].qty, |
| | | val[3].qty, |
| | | val[4].qty, |
| | | val[5].qty, |
| | | val[6].qty, |
| | | ], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | { |
| | | name: "åºåºé", |
| | | data: [ |
| | | val[0].qty2, |
| | | val[1].qty2, |
| | | val[2].qty2, |
| | | val[3].qty2, |
| | | val[4].qty2, |
| | | val[5].qty2, |
| | | val[6].qty2, |
| | | ], |
| | | type: "line", // ç±»å设置为æçº¿å¾ |
| | | label: { |
| | | position: "top", |
| | | textStyle: { |
| | | fontSize: 14, |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | .container_plan { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-01 15:27:58 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-05-07 11:24:14 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\right-center.vue |
| | | --> |
| | | <template> |
| | | <div v-if="pageflag" class="right_center_wrap beautify-scroll-def" :class="{ 'overflow-y-auto': !sbtxSwiperFlag }"> |
| | | <component :is="components" :data="list" :class-option="defaultOption"> |
| | | <ul class="right_center "> |
| | | <li class="right_center_item" v-for="(item, i) in list" :key="i"> |
| | | <span class="orderNum">{{ i + 1 }}</span> |
| | | <div class="inner_right"> |
| | | <div class="dibu"></div> |
| | | <div class="flex"> |
| | | <div class="info"> |
| | | <span class="labels ">设å¤IDï¼</span> |
| | | <span class="contents zhuyao"> {{ item.gatewayno }}</span> |
| | | </div> |
| | | <div class="info"> |
| | | <span class="labels">åå·ï¼</span> |
| | | <span class="contents "> {{ item.terminalno }}</span> |
| | | </div> |
| | | <div class="info"> |
| | | <span class="labels">åè¦å¼ï¼</span> |
| | | <span class="contents warning"> {{ item.alertvalue | montionFilter }}</span> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="flex"> |
| | | |
| | | <div class="info"> |
| | | <span class="labels"> å°åï¼</span> |
| | | <span class="contents ciyao" style="font-size:12px"> {{ item.provinceName }}/{{ item.cityName }}/{{ item.countyName }}</span> |
| | | </div> |
| | | <div class="info time"> |
| | | <span class="labels">æ¶é´ï¼</span> |
| | | <span class="contents" style="font-size:12px"> {{ item.createtime }}</span> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="flex"> |
| | | |
| | | <div class="info"> |
| | | <span class="labels">æ¥è¦å
容ï¼</span> |
| | | <span class="contents ciyao" :class="{ warning: item.alertdetail }"> {{ item.alertdetail || 'æ ' |
| | | }}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </component> |
| | | </div> |
| | | <Reacquire v-else @onclick="getData" style="line-height:200px" /> |
| | | |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from 'api/modules' |
| | | import vueSeamlessScroll from 'vue-seamless-scroll' // vue2å¼å
¥æ¹å¼ |
| | | import Kong from '../../components/kong.vue' |
| | | export default { |
| | | components: { vueSeamlessScroll, Kong }, |
| | | |
| | | data() { |
| | | return { |
| | | list: [], |
| | | pageflag: true, |
| | | defaultOption: { |
| | | ...this.$store.state.setting.defaultOption, |
| | | limitMoveNum: 3, |
| | | singleHeight: 250, |
| | | step:0, |
| | | } |
| | | |
| | | }; |
| | | }, |
| | | computed: { |
| | | sbtxSwiperFlag() { |
| | | let ssyjSwiper = this.$store.state.setting.ssyjSwiper |
| | | if (ssyjSwiper) { |
| | | this.components = vueSeamlessScroll |
| | | } else { |
| | | this.components = Kong |
| | | } |
| | | return ssyjSwiper |
| | | } |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | |
| | | mounted() { }, |
| | | methods: { |
| | | getData() { |
| | | this.pageflag = true |
| | | // this.pageflag =false |
| | | currentGET('big5', { limitNum: 50 }).then(res => { |
| | | console.log('宿¶é¢è¦', res); |
| | | if (res.success) { |
| | | this.list = res.data.list |
| | | let timer = setTimeout(() => { |
| | | clearTimeout(timer) |
| | | this.defaultOption.step=this.$store.state.setting.defaultOption.step |
| | | }, this.$store.state.setting.defaultOption.waitTime); |
| | | } else { |
| | | this.pageflag = false |
| | | this.$Message.warning(res.msg) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | .right_center { |
| | | width: 100%; |
| | | height: 100%; |
| | | |
| | | .right_center_item { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | height: auto; |
| | | padding: 10px; |
| | | font-size: 14px; |
| | | color: #fff; |
| | | |
| | | .orderNum { |
| | | margin: 0 20px 0 -20px; |
| | | } |
| | | |
| | | |
| | | .inner_right { |
| | | position: relative; |
| | | height: 100%; |
| | | width: 400px; |
| | | flex-shrink: 0; |
| | | line-height: 1.5; |
| | | |
| | | .dibu { |
| | | position: absolute; |
| | | height: 2px; |
| | | width: 104%; |
| | | background-image: url("../../assets/img/zuo_xuxian.png"); |
| | | bottom: -12px; |
| | | left: -2%; |
| | | background-size: cover; |
| | | } |
| | | } |
| | | |
| | | .info { |
| | | margin-right: 10px; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .labels { |
| | | flex-shrink: 0; |
| | | font-size: 12px; |
| | | color: rgba(255, 255, 255, 0.6); |
| | | } |
| | | |
| | | .zhuyao { |
| | | color: $primary-color; |
| | | font-size: 15px; |
| | | } |
| | | |
| | | .ciyao { |
| | | color: rgba(255, 255, 255, 0.8); |
| | | } |
| | | |
| | | .warning { |
| | | color: #E6A23C; |
| | | font-size: 15px; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | .right_center_wrap { |
| | | overflow: hidden; |
| | | width: 100%; |
| | | height: 250px; |
| | | } |
| | | |
| | | .overflow-y-auto { |
| | | overflow-y: auto; |
| | | } |
| | | </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> |
| | | </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> |
| | | </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: 'æªéè¿æ°é' |
| | | // } |
| | | // ] |
| | | } |
| | | }, |
| | | 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; |
| | | |
| | | #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; |
| | | } |
| | | |
| | | .bottom-data { |
| | | .item-box { |
| | | & > div { |
| | | padding-right: 5px; |
| | | } |
| | | font-size: 14px; |
| | | float: right; |
| | | position: relative; |
| | | width: 50%; |
| | | color: #d3d6dd; |
| | | .dv-digital-flop { |
| | | width: 120px; |
| | | height: 30px; |
| | | } |
| | | // éå¸ |
| | | .coin { |
| | | position: relative; |
| | | top: 6px; |
| | | font-size: 20px; |
| | | color: #ffc107; |
| | | } |
| | | .colorYellow { |
| | | color: yellowgreen; |
| | | } |
| | | p { |
| | | text-align: center; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | ul li{ |
| | | float: left; |
| | | list-style-type: none; |
| | | margin-left: 8%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-01 14:13:04 |
| | | * @LastEditors: Please set LastEditors |
| | | * @LastEditTime: 2022-09-27 15:04:49 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\indexs\right-top.vue |
| | | --> |
| | | <template> |
| | | <Echart |
| | | id="rightTop" |
| | | :options="option" |
| | | class="right_top_inner" |
| | | v-if="pageflag" |
| | | ref="charts" |
| | | /> |
| | | <Reacquire v-else @onclick="getData" style="line-height: 200px"> |
| | | éæ°è·å |
| | | </Reacquire> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from "api/modules"; |
| | | import {graphic} from "echarts" |
| | | export default { |
| | | data() { |
| | | return { |
| | | option: {}, |
| | | pageflag: false, |
| | | timer: null, |
| | | }; |
| | | }, |
| | | created() { |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getData(); |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData(); |
| | | }, |
| | | methods: { |
| | | clearData() { |
| | | if (this.timer) { |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | } |
| | | }, |
| | | getData() { |
| | | this.pageflag = true; |
| | | // this.pageflag =false |
| | | currentGET("big4").then((res) => { |
| | | if (!this.timer) { |
| | | console.log("æ¥è¦æ¬¡æ°", res); |
| | | } |
| | | if (res.success) { |
| | | this.countUserNumData = res.data; |
| | | this.$nextTick(() => { |
| | | this.init(res.data.dateList, res.data.numList, res.data.numList2), |
| | | this.switper(); |
| | | }); |
| | | } else { |
| | | this.pageflag = false; |
| | | this.$Message({ |
| | | text: res.msg, |
| | | type: "warning", |
| | | }); |
| | | } |
| | | }); |
| | | }, |
| | | //轮询 |
| | | switper() { |
| | | if (this.timer) { |
| | | return; |
| | | } |
| | | let looper = (a) => { |
| | | this.getData(); |
| | | }; |
| | | this.timer = setInterval( |
| | | looper, |
| | | this.$store.state.setting.echartsAutoTime |
| | | ); |
| | | let myChart = this.$refs.charts.chart; |
| | | myChart.on("mouseover", (params) => { |
| | | this.clearData(); |
| | | }); |
| | | myChart.on("mouseout", (params) => { |
| | | this.timer = setInterval( |
| | | looper, |
| | | this.$store.state.setting.echartsAutoTime |
| | | ); |
| | | }); |
| | | }, |
| | | init(xData, yData, yData2) { |
| | | this.option = { |
| | | xAxis: { |
| | | type: "category", |
| | | data: xData, |
| | | boundaryGap: false, // ä¸çç½ï¼ä»åç¹å¼å§ |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: "rgba(31,99,163,.2)", |
| | | }, |
| | | }, |
| | | axisLine: { |
| | | // show:false, |
| | | lineStyle: { |
| | | color: "rgba(31,99,163,.1)", |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | color: "#7EB7FD", |
| | | fontWeight: "500", |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | type: "value", |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: "rgba(31,99,163,.2)", |
| | | }, |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: "rgba(31,99,163,.1)", |
| | | }, |
| | | }, |
| | | axisLabel: { |
| | | color: "#7EB7FD", |
| | | fontWeight: "500", |
| | | }, |
| | | }, |
| | | tooltip: { |
| | | trigger: "axis", |
| | | backgroundColor: "rgba(0,0,0,.6)", |
| | | borderColor: "rgba(147, 235, 248, .8)", |
| | | textStyle: { |
| | | color: "#FFF", |
| | | }, |
| | | }, |
| | | grid: { |
| | | //å¸å± |
| | | show: true, |
| | | left: "10px", |
| | | right: "30px", |
| | | bottom: "10px", |
| | | top: "28px", |
| | | containLabel: true, |
| | | borderColor: "#1F63A3", |
| | | }, |
| | | series: [ |
| | | { |
| | | data: yData, |
| | | type: "line", |
| | | smooth: true, |
| | | symbol: "none", //å»é¤ç¹ |
| | | name: "æ¥è¦1次æ°", |
| | | color: "rgba(252,144,16,.7)", |
| | | areaStyle: { |
| | | //å³ï¼ä¸ï¼å·¦ï¼ä¸ |
| | | color: new graphic.LinearGradient( |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 1, |
| | | [ |
| | | { |
| | | offset: 0, |
| | | color: "rgba(252,144,16,.7)", |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "rgba(252,144,16,.0)", |
| | | }, |
| | | ], |
| | | false |
| | | ), |
| | | }, |
| | | markPoint: { |
| | | data: [ |
| | | { |
| | | name: "æå¤§å¼", |
| | | type: "max", |
| | | valueDim: "y", |
| | | symbol: "rect", |
| | | symbolSize: [60, 26], |
| | | symbolOffset: [0, -20], |
| | | itemStyle: { |
| | | color: "rgba(0,0,0,0)", |
| | | }, |
| | | label: { |
| | | color: "#FC9010", |
| | | backgroundColor: "rgba(252,144,16,0.1)", |
| | | borderRadius: 6, |
| | | padding: [7, 14], |
| | | borderWidth: 0.5, |
| | | borderColor: "rgba(252,144,16,.5)", |
| | | formatter: "æ¥è¦1ï¼{c}", |
| | | }, |
| | | }, |
| | | { |
| | | name: "æå¤§å¼", |
| | | type: "max", |
| | | valueDim: "y", |
| | | symbol: "circle", |
| | | symbolSize: 6, |
| | | itemStyle: { |
| | | color: "#FC9010", |
| | | shadowColor: "#FC9010", |
| | | shadowBlur: 8, |
| | | }, |
| | | label: { |
| | | formatter: "", |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | }, |
| | | { |
| | | data: yData2, |
| | | type: "line", |
| | | smooth: true, |
| | | symbol: "none", //å»é¤ç¹ |
| | | name: "æ¥è¦2次æ°", |
| | | color: "rgba(9,202,243,.7)", |
| | | areaStyle: { |
| | | //å³ï¼ä¸ï¼å·¦ï¼ä¸ |
| | | color: new graphic.LinearGradient( |
| | | 0, |
| | | 0, |
| | | 0, |
| | | 1, |
| | | [ |
| | | { |
| | | offset: 0, |
| | | color: "rgba(9,202,243,.7)", |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: "rgba(9,202,243,.0)", |
| | | }, |
| | | ], |
| | | false |
| | | ), |
| | | }, |
| | | markPoint: { |
| | | data: [ |
| | | { |
| | | name: "æå¤§å¼", |
| | | type: "max", |
| | | valueDim: "y", |
| | | symbol: "rect", |
| | | symbolSize: [60, 26], |
| | | symbolOffset: [0, -20], |
| | | itemStyle: { |
| | | color: "rgba(0,0,0,0)", |
| | | }, |
| | | label: { |
| | | color: "#09CAF3", |
| | | backgroundColor: "rgba(9,202,243,0.1)", |
| | | |
| | | borderRadius: 6, |
| | | borderColor: "rgba(9,202,243,.5)", |
| | | padding: [7, 14], |
| | | formatter: "æ¥è¦2ï¼{c}", |
| | | borderWidth: 0.5, |
| | | }, |
| | | }, |
| | | { |
| | | name: "æå¤§å¼", |
| | | type: "max", |
| | | valueDim: "y", |
| | | symbol: "circle", |
| | | symbolSize: 6, |
| | | itemStyle: { |
| | | color: "#09CAF3", |
| | | shadowColor: "#09CAF3", |
| | | shadowBlur: 8, |
| | | }, |
| | | label: { |
| | | formatter: "", |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | .right_top_inner { |
| | | margin-top: -8px; |
| | | } |
| | | </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> |
| | | </template> |
| | | |
| | | <script> |
| | | import { currentGET } from 'api/modules' |
| | | import {Floorfault} from "@/api/http.js" |
| | | let style = { |
| | | fontSize: 24 |
| | | } |
| | | 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; |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | mounted() { |
| | | }, |
| | | beforeDestroy() { |
| | | this.clearData() |
| | | |
| | | }, |
| | | 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; |
| | | } |
| | | |
| | | .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 { |
| | | |
| | | // 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"); |
| | | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </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> |
| | | import axios from 'axios'; |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | headers: ['è´§ä½ä¿¡æ¯', 'æ°é'], |
| | | tableData: [] |
| | | }; |
| | | }, |
| | | created() { |
| | | this.fetchData(); |
| | | }, |
| | | methods: { |
| | | fetchData() { |
| | | 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 |
| | | ]); |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | console.error("请æ±å¤±è´¥:", error); |
| | | this.tableData = [ |
| | | ['空货ä½', 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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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", |
| | | }, |
| | | }, |
| | | }; |
| | | }, |
| | | filters: { |
| | | numsFilter(msg) { |
| | | return msg || 0; |
| | | }, |
| | | }, |
| | | }; |
| | | </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"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </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://127.0.0.1:5000/api/Dt_WheelsStock/InventoryStatistics", null) |
| | | .then((response) => { |
| | | this.tableData = []; |
| | | response.forEach(item => { |
| | | this.tableData.push([ |
| | | item.wheels_CarType, |
| | | item.wheels_ldxh, |
| | | item.count |
| | | ]); |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | console.error("请æ±å¤±è´¥:", error); |
| | | this.tableData = [ |
| | | ['ææ æ°æ®', 'ææ æ°æ®', 'ææ æ°æ®'], |
| | | ]; |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | </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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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_inner"> |
| | | <div class="setting_header"> |
| | | 设置 |
| | | </div> |
| | | <div class="setting_body"> |
| | | <!-- <div class="left_shu"> 宿¶çæµ</div> --> |
| | | <div class="left_shu"> å
¨å±è®¾ç½®</div> |
| | | <div class="setting_item"> |
| | | <span class="setting_label"> |
| | | æ¯å¦è¿è¡èªå¨éé
<span class="setting_label_tip">(é»è®¤å辨ç1920*1080)</span>: |
| | | </span> |
| | | <div class="setting_content"> |
| | | <el-radio-group v-model="isScaleradio" @change="(val) => radiochange(val, 'isScale')"> |
| | | <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> --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </transition> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | export default { |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | settingShow: false, |
| | | sbtxradio:true, |
| | | ssyjradio: true, |
| | | isScaleradio:true, |
| | | echartsAutoTime:3000 |
| | | }; |
| | | }, |
| | | computed: {}, |
| | | methods: { |
| | | init() { |
| | | this.settingShow = true |
| | | }, |
| | | radiochange(val, type) { |
| | | this.$store.commit('setting/updateSwiper', { val, type }) |
| | | if(type==='isScale'){ |
| | | // this.$router.go(0) |
| | | // location.reload() |
| | | // window.location.href=window.location.href+"?t="+Date.now() |
| | | } |
| | | }, |
| | | }, |
| | | created() { |
| | | this.$store.commit('setting/initSwipers') |
| | | this.sbtxradio = this.$store.state.setting.sbtxSwiper, |
| | | this.ssyjradio = this.$store.state.setting.ssyjSwiper, |
| | | this.isScaleradio = this.$store.state.setting.isScale; |
| | | }, |
| | | mounted() { |
| | | document.body.appendChild(this.$el); |
| | | }, |
| | | beforeDestroy() { |
| | | }, |
| | | destroyed() { |
| | | if (this.$el && this.$el.parentNode) { |
| | | this.$el.parentNode.removeChild(this.$el); |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang='scss' scoped> |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | * @Author: daidai |
| | | * @Date: 2022-03-04 09:52:25 |
| | | * @LastEditors: daidai |
| | | * @LastEditTime: 2022-03-04 11:03:40 |
| | | * @FilePath: \web-pc\src\pages\big-screen\view\tjfx\tjfx.vue |
| | | --> |
| | | <template> |
| | | <div> |
| | | |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | }, |
| | | } |
| | | </script> |
| | | <style lang='scss' scoped> |
| | | |
| | | |
| | | </style> |
copy from "\351\241\271\347\233\256\344\273\243\347\240\201/PDA/LDY_PDA/pages/Inbound/InboundInfo.vue"
copy to "\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Inbound/ClboundInfo.vue"
Îļþ´Ó ÏîÄ¿´úÂë/PDA/LDY_PDA/pages/Inbound/InboundInfo.vue ¸´ÖÆ |
| | |
| | | |
| | | <view style="padding: 20rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">æä½æ¹å¼</u-td> |
| | | <u-td> |
| | | <xfl-select :list="OperationList" :initValue="'è¯·éæ©'" :clearable="false" @change="OperationChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">车轴æ¡ç </u-td> |
| | | <u-td> |
| | |
| | | CurrentUser: '', //å½åç¨æ· |
| | | cztm: '', |
| | | machine: '', |
| | | operateType:'', |
| | | OperationList: [{ |
| | | label: '1', |
| | | value: 'ç»å®' |
| | | }, { |
| | | label: '2', |
| | | value: 'è§£ç»' |
| | | }, ], |
| | | //operateType:'', |
| | | // OperationList: [{ |
| | | // label: '1', |
| | | // value: 'ç»å®' |
| | | // }, { |
| | | // label: '2', |
| | | // value: 'è§£ç»' |
| | | // }, ], |
| | | |
| | | MachineArray: [{ |
| | | label: '1000', |
| | | label: '2033', |
| | | value: '1å·åè£
ä½' |
| | | }, { |
| | | label: '2000', |
| | | label: '2043', |
| | | value: '2å·åè£
ä½' |
| | | }, ], |
| | | } |
| | |
| | | MachineChange(value) { |
| | | this.machine = value.orignItem.label; |
| | | }, |
| | | OperationChange(value) { |
| | | this.operateType = value.orignItem.label; |
| | | }, |
| | | // OperationChange(value) { |
| | | // this.operateType = value.orignItem.label; |
| | | // }, |
| | | SaveInfomation() { |
| | | if (_this.cztm.length == 0) { |
| | | uni.showToast({ |
| | |
| | | if (res.confirm) { |
| | | let data = { |
| | | MainData: { |
| | | operateType:_this.operateType, |
| | | cztm: _this.cztm, |
| | | machine: _this.machine, |
| | | //operateType:_this.operateType, |
| | | CZTM: _this.cztm, |
| | | TargetAddress: _this.machine, |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'Dt_CacheInfo/AddCacheInfoByAPP', |
| | | _this.$AjaxRequest.Params('post', 'Task/UpWheelsFlow', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
ÎļþÃû´Ó ÏîÄ¿´úÂë/PDA/LDY_PDA/pages/Inbound/InboundInfo.vue ÐÞ¸Ä |
| | |
| | | |
| | | <view style="padding: 20rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">æä½æ¹å¼</u-td> |
| | | <u-td> |
| | | <xfl-select :list="OperationList" :initValue="'è¯·éæ©'" :clearable="false" @change="OperationChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">车轴æ¡ç </u-td> |
| | | <u-td> |
| | |
| | | CurrentUser: '', //å½åç¨æ· |
| | | cztm: '', |
| | | machine: '', |
| | | operateType:'', |
| | | OperationList: [{ |
| | | label: '1', |
| | | value: 'ç»å®' |
| | | }, { |
| | | label: '2', |
| | | value: 'è§£ç»' |
| | | }, ], |
| | | //operateType:'', |
| | | // OperationList: [{ |
| | | // label: '1', |
| | | // value: 'ç»å®' |
| | | // }, { |
| | | // label: '2', |
| | | // value: 'è§£ç»' |
| | | // }, ], |
| | | |
| | | MachineArray: [{ |
| | | label: '1000', |
| | | label: '2033', |
| | | value: '1å·åè£
ä½' |
| | | }, { |
| | | label: '2000', |
| | | label: '2043', |
| | | value: '2å·åè£
ä½' |
| | | }, ], |
| | | } |
| | |
| | | MachineChange(value) { |
| | | this.machine = value.orignItem.label; |
| | | }, |
| | | OperationChange(value) { |
| | | this.operateType = value.orignItem.label; |
| | | }, |
| | | // OperationChange(value) { |
| | | // this.operateType = value.orignItem.label; |
| | | // }, |
| | | SaveInfomation() { |
| | | if (_this.cztm.length == 0) { |
| | | uni.showToast({ |
| | |
| | | if (res.confirm) { |
| | | let data = { |
| | | MainData: { |
| | | operateType:_this.operateType, |
| | | cztm: _this.cztm, |
| | | machine: _this.machine, |
| | | //operateType:_this.operateType, |
| | | CZTM: _this.cztm, |
| | | TargetAddress: _this.machine, |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'Dt_CacheInfo/AddCacheInfoByAPP', |
| | | _this.$AjaxRequest.Params('post', 'ToAgv/UntieStation', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <view> |
| | | <u-table font-size="25"> |
| | | <u-tr> |
| | | <u-td> |
| | | <xfl-select :list="UserArray" :initValue="this.$UserTool.UserInfo.userName" :clearable="false" |
| | | :disabled="true"> |
| | | </xfl-select> |
| | | </u-td> |
| | | <u-td width="25%">ç°å¨æ¶é´:</u-td> |
| | | <u-td width="25%">{{date}}</u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | |
| | | <view style="padding: 20rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td width="30%">车轮æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="value_cltm" :border="true" :focus="qrcodeFocus" @input="barcodeChange" |
| | | placeholder="车轮æ¡ç " /> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">åºåå·</u-td> |
| | | <u-td> |
| | | <u-input v-model="xlh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">车轮å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="clh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">轮对æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="ldtm" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">卿屿§(å¨/æ)</u-td> |
| | | <u-td> |
| | | <u-input v-model="mttype" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">轮对å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="ldh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车å</u-td> |
| | | <u-td> |
| | | <u-input v-model="chexing" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">è½®å</u-td> |
| | | <u-td> |
| | | <u-input v-model="ldxh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ°/æ§</u-td> |
| | | <u-td> |
| | | <u-input v-model="neworold" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ¯åç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="gkdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ¯åaçé¢åå¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="gkzja" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ¯åbçé¢åå¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="gkzjb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ¯åcçé¢åå¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="gkzjc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">æ¯ååå¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="gkcc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">è½®å¾å¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="ljz" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">é¢ä¼°è½®å¾å¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="yglj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">屿§</u-td> |
| | | <u-td> |
| | | <u-input v-model="clsx" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">å
¥åºæ¥æ</u-td> |
| | | <u-td> |
| | | <u-input v-model="rksj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">é
å±å±</u-td> |
| | | <u-td> |
| | | <u-input v-model="psj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车ç»å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="lcch" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">è½®ç¼</u-td> |
| | | <u-td> |
| | | <u-input v-model="lyh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">åè£
æºå·</u-td> |
| | | <u-td> |
| | | <xfl-select :list="MachineArray" :initValue="'è¯·éæ©'" :clearable="false" @change="MachineChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | <view style="padding: 0rpx 0rpx;"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td> |
| | | <u-button style="width:100px" type="primary" @click="SaveInfomation">车轮ç´èµ°ç¡®è®¤</u-button> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | var _this; |
| | | var _user; |
| | | export default { |
| | | data() { |
| | | return { |
| | | date: '', |
| | | CurrentUser: '', //å½åç¨æ· |
| | | |
| | | //车轮ç |
| | | value_cltm: '', |
| | | |
| | | //åºåå· |
| | | //xlh: '', |
| | | //è½¦è½®å· |
| | | clh: '', |
| | | //è½¦ç±»å« |
| | | mttype: '', |
| | | //轮对æ¡ç |
| | | ldtm: '', |
| | | //轮类å |
| | | ldh: '', |
| | | //车å |
| | | chexing: '', |
| | | //è½®å |
| | | ldxh: '', |
| | | //屿§ |
| | | clsx: '', |
| | | //车ç»å· |
| | | lcch: '', |
| | | //è½®ç¼ |
| | | lyh:'', |
| | | //ç级 |
| | | gkdj: '', |
| | | //æ¯åç´å¾åå¼ |
| | | ljz: '', |
| | | //é¢ä¼°è½®å¾å¼ |
| | | yglj: '', |
| | | //æ¯åaçé¢åå¼ |
| | | gkzja: '', |
| | | //æ¯åbçé¢åå¼ |
| | | gkzjb: '', |
| | | //æ¯åcçé¢åå¼ |
| | | gkzjc: '', |
| | | //å
¥åºæ¥æ |
| | | rksj: '', |
| | | //é
å±å± |
| | | psj: '', |
| | | //æ°/æ§ |
| | | neworold: '', |
| | | //æ¯ååå¼ |
| | | gkcc:'', |
| | | machine: '', |
| | | qrcodeFocus: true, |
| | | MachineArray: [{ |
| | | label: '2032', |
| | | value: '1å·åè£
ä½' |
| | | }, { |
| | | label: '2042', |
| | | value: '2å·åè£
ä½' |
| | | }, ], |
| | | } |
| | | }, |
| | | methods: { |
| | | UserChange(value) { |
| | | |
| | | }, |
| | | MachineChange(value) { |
| | | this.machine = value.orignItem.label; |
| | | }, |
| | | setTimer() { |
| | | if (this.timer == null) { |
| | | this.timer = setInterval(() => { |
| | | this.date = this.$DateTool.getDate(); |
| | | }, 1000) |
| | | } |
| | | |
| | | }, |
| | | barcodeChange() { |
| | | if (_this.value_cltm == '') { |
| | | _this.initInfo(); |
| | | return; |
| | | } |
| | | let data = { |
| | | MainData: { |
| | | cltm: _this.value_cltm |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToZY/ZY_GetCLInfo', data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | console.log(result); |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | //åºåå· |
| | | //_this.xlh = obj.xlh; |
| | | //è½¦è½®å· |
| | | _this.clh = obj.clh; |
| | | //轮对æ¡ç |
| | | _this.ldtm = obj.ldtm; |
| | | //è½¦ç±»å« |
| | | _this.mttype = obj.mttype; |
| | | //轮类å |
| | | _this.ldh = obj.ldh; |
| | | //车å |
| | | _this.chexing = obj.chexing; |
| | | //è½®å |
| | | _this.ldxh = obj.ldxh; |
| | | //æ°/æ§ |
| | | _this.neworold = obj.newold; |
| | | //é¢ä¼°è½®å¾å¼ |
| | | _this.yglj = obj.yglj; |
| | | //æ¯åaçé¢åå¼ |
| | | _this.gkzja = obj.gkzja; |
| | | //æ¯åbçé¢åå¼ |
| | | _this.gkzjb = obj.gkzjb; |
| | | //æ¯åcçé¢åå¼ |
| | | _this.gkzjc = obj.gkzjc; |
| | | //è½®å¾å¼ |
| | | _this.ljz = obj.ljz; |
| | | //屿§ |
| | | _this.clsx = obj.clsx; |
| | | //å
¥åºæ¥æ |
| | | _this.rksj = obj.rksj; |
| | | //é
å±å± |
| | | _this.psj = obj.psj; |
| | | //车ç»å· |
| | | _this.lcch = obj.lcch; |
| | | //è½®ç¼ |
| | | _this.lyh=obj.lyh; |
| | | //ç级 |
| | | _this.gkdj = obj.gkdj; |
| | | //æ¯ååå¼ |
| | | _this.gkcc=obj.gkcc; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 2000 |
| | | }); |
| | | _this.initInfo(); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 2000 |
| | | }); |
| | | _this.initInfo(); |
| | | }); |
| | | }, |
| | | initInfo() { |
| | | //åºåå· |
| | | //_this.xlh = ''; |
| | | //è½¦è½®å· |
| | | _this.clh = ''; |
| | | _this.ldtm = ''; |
| | | //è½¦ç±»å« |
| | | _this.mttype = ''; |
| | | //轮类å |
| | | _this.ldh = ''; |
| | | //车å |
| | | _this.chexing = ''; |
| | | //è½®å |
| | | _this.ldxh = ''; |
| | | //æ°/æ§ |
| | | _this.neworold = ''; |
| | | //é¢ä¼°è½®å¾å¼ |
| | | _this.yglj = ''; |
| | | //æ¯åaçé¢åå¼ |
| | | _this.gkzja = ''; |
| | | //æ¯åbçé¢åå¼ |
| | | _this.gkzjb = ''; |
| | | //æ¯åcçé¢åå¼ |
| | | _this.gkzjc = ''; |
| | | //è½®å¾å¼ |
| | | _this.ljz = ''; |
| | | //屿§ |
| | | _this.clsx = ''; |
| | | //å
¥åºæ¥æ |
| | | _this.rksj = ''; |
| | | //é
å±å± |
| | | _this.psj = ''; |
| | | //车ç»å· |
| | | _this.lcch = ''; |
| | | _this.lyh=''; |
| | | //ç级 |
| | | _this.gkdj = ''; |
| | | |
| | | _this.gkcc=''; |
| | | |
| | | }, |
| | | SaveInfomation() { |
| | | //_this.LotNumber == '' || _this.value_rfid.length == 0 || |
| | | |
| | | if (_this.value_cltm.length == 0 ) { |
| | | |
| | | uni.showToast({ |
| | | title: "车轮信æ¯ä¸è½ä¸ºç©º", |
| | | duration: 2000, |
| | | icon: 'none', |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'æ¯å¦ç¡®è®¤ç»ç?', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | let data = { |
| | | MainData: { |
| | | code: _this.value_cltm, |
| | | //xlh: _this.xlh, |
| | | clh: _this.clh, |
| | | ldtm: _this.ldtm, |
| | | mttype: _this.mttype, |
| | | ldh: _this.ldh, |
| | | chexing: _this.chexing, |
| | | ldxh: _this.ldxh, |
| | | neworold: _this.neworold, |
| | | yglj: _this.yglj, |
| | | gkzja: _this.gkzja, |
| | | gkzjb: _this.gkzjb, |
| | | gkzjc: _this.gkzjc, |
| | | clsx: _this.clsx, |
| | | rksj: _this.rksj, |
| | | psj: _this.psj, |
| | | lcch: _this.lcch, |
| | | lyh:_this.lyh, |
| | | gkdj: _this.gkdj, |
| | | ljz:_this.ljz, |
| | | gkcc:_this.gkcc, |
| | | machine:_this.machine, |
| | | user: _this.$UserTool.UserInfo.userName |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveCLStraight', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | uni.showToast({ |
| | | title: "ä¿åæå!", |
| | | duration: 2000 |
| | | }); |
| | | _this.value_cltm = ""; |
| | | _this.initInfo(); |
| | | _this.qrcodeFocus = true; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯:" + err.errMsg, |
| | | duration: 2000 |
| | | }); |
| | | }); |
| | | } else if (res.cancel) {} |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | created: function() { |
| | | // æ¯æ¬¡è¿å
¥ç颿¶ï¼å
æ¸
é¤ä¹åçææå®æ¶å¨ï¼ç¶åå¯å¨æ°ç宿¶å¨ |
| | | clearInterval(this.timer) |
| | | this.timer = null; |
| | | this.setTimer(); |
| | | _user = this.$UserTool.UserInfo; |
| | | this.CurrentUser = _user.userName; |
| | | this.UserArray = [this.$UserTool.AllUserInfo]; |
| | | }, |
| | | destroyed: function() { |
| | | // æ¯æ¬¡ç¦»å¼å½åç颿¶ï¼æ¸
é¤å®æ¶å¨ |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | }, |
| | | mounted() { |
| | | _this = this; |
| | | _this.rfidFocus = true; |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .tdHeight { |
| | | height: 80rpx; |
| | | } |
| | | |
| | | .loopView { |
| | | height: 160px; |
| | | background-color: #f0f0f0; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .loopItem { |
| | | margin-top: 5px; |
| | | margin-left: 15px; |
| | | |
| | | } |
| | | |
| | | .deleteBtn { |
| | | margin-top: 25px; |
| | | margin-left: 10px; |
| | | width: 120px; |
| | | background-color: orangered; |
| | | } |
| | | </style> |
ÎļþÃû´Ó ÏîÄ¿´úÂë/PDA/LDY_PDA/pages/Inbound/ZDPInbound.vue ÐÞ¸Ä |
| | |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | //è½¦è½®å· |
| | | _this.ZPH = obj.ZPH; |
| | | _this.POS = obj.POS; |
| | | _this.LSXH = obj.LSXH; |
| | | _this.MAT = obj.MAT; |
| | | _this.ZPH = obj.zph; |
| | | _this.POS = obj.pos; |
| | | _this.LSXH = obj.lsxh; |
| | | _this.MAT = obj.mat; |
| | | _this.chexing = obj.chexing; |
| | | _this.SITE = obj.SITE; |
| | | _this.SITE = obj.site; |
| | | //æ°/æ§ |
| | | _this.neworold = obj.newold; |
| | | _this.GKA1 = obj.GKA1; |
| | | _this.GKA2 = obj.GKA2; |
| | | _this.GKA3 = obj.GKA3; |
| | | _this.GKA = obj.GKA; |
| | | _this.GKB1 = obj.GKB1; |
| | | _this.GKB2 = obj.GKB2; |
| | | _this.GKB3 = obj.GKB3; |
| | | _this.GKB = obj.GKB; |
| | | _this.GKC1 = obj.GKC1; |
| | | _this.GKC2 = obj.GKC2; |
| | | _this.GKC3 = obj.GKC3; |
| | | _this.GKC = obj.GKC; |
| | | _this.GKJZ = obj.GKJZ; |
| | | _this.LMCSYMH = obj.LMCSYMH; |
| | | _this.GKA1 = obj.gkA1; |
| | | _this.GKA2 = obj.gkA2; |
| | | _this.GKA3 = obj.gkA3; |
| | | _this.GKA = obj.gka; |
| | | _this.GKB1 = obj.gkB1; |
| | | _this.GKB2 = obj.gkB2; |
| | | _this.GKB3 = obj.gkB2; |
| | | _this.GKB = obj.gkb; |
| | | _this.GKC1 = obj.gkC1; |
| | | _this.GKC2 = obj.gkC2; |
| | | _this.GKC3 = obj.gkC2; |
| | | _this.GKC = obj.gkc; |
| | | _this.GKJZ = obj.gkjz; |
| | | _this.LMCSYMH = obj.lmcsymh; |
| | | //å
¥åºæ¥æ |
| | | _this.rksj = obj.rksj; |
| | | _this.LSCSYMH=obj.LSCSYMH; |
| | | _this.LSCSYMH=obj.lscsymh; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | |
| | | GKC3: _this.GKC3, |
| | | GKC: _this.GKC, |
| | | GKJZ: _this.GKJZ, |
| | | clsx: _this.clsx, |
| | | //clsx: _this.clsx, |
| | | rksj: _this.rksj, |
| | | LMCSYMH:_this.LMCSYMH, |
| | | LSCSYMH:_this.LSCSYMH, |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveCLinfo', |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveZDPInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <view> |
| | | <u-table font-size="25"> |
| | | <u-tr> |
| | | <u-td> |
| | | <xfl-select :list="UserArray" :initValue="this.$UserTool.UserInfo.userName" :clearable="false" |
| | | :disabled="true"> |
| | | </xfl-select> |
| | | </u-td> |
| | | <u-td width="25%">ç°å¨æ¶é´:</u-td> |
| | | <u-td width="25%">{{date}}</u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | |
| | | <view style="padding: 0rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td width="30%">车轴æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="cztm" :focus="qrcodeFocus" :border="true" placeholder="è¯·æ«æè½¦è½´æ¡ç " |
| | | @input="cztmChange" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轴å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="czh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">轮对æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="ldtm" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车å</u-td> |
| | | <u-td> |
| | | <u-input v-model="chexing" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">卿屿§</u-td> |
| | | <u-td> |
| | | <u-input v-model="mttype" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轴åå·</u-td> |
| | | <u-td> |
| | | <u-input v-model="czxh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">å³è½®åº§ç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">维修任å¡</u-td> |
| | | <u-td> |
| | | <u-input v-model="wxrw" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzzj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzzj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlza" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylza" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">车轮轮å</u-td> |
| | | <u-td> |
| | | <u-input v-model="x" :border="true" placeholder="请è¾å
¥è½¦è½®è½®å" /> |
| | | </u-td> |
| | | </u-tr> --> |
| | | |
| | | <!-- <u-tr> |
| | | <u-td width="30%">è½´æ¿ç±»å«:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="StateArray" :initValue="'è¯·éæ©'" :clearable="false" @change="StateChange" |
| | | ref="StateSelect"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">åå®¶:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="ManufacturerArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="ManufacturerChange" ref="ManufacturerSelect"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">å·¥ä½:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="StationArray" :initValue="'è¯·éæ©'" :clearable="false" @change="StationChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | </u-table> |
| | | </view> |
| | | <view style="padding: 0rpx 0rpx;"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td> |
| | | <u-button style="width:100px" type="primary" @click="SaveInfomation">é¢é确认</u-button> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | var _this; |
| | | var _user; |
| | | export default { |
| | | data() { |
| | | return { |
| | | date: '', |
| | | CurrentUser: '', //å½åç¨æ· |
| | | cztm: '', |
| | | czh: '', |
| | | chexing: '', |
| | | czxh: '', |
| | | zlzdj: '', |
| | | ylzdj: '', |
| | | wxrw:'', |
| | | ldtm: '', |
| | | mttype: '', |
| | | zlzzj: '', |
| | | ylzzj: '', |
| | | zlzA1: '', |
| | | ylzA1: '', |
| | | zlzA2: '', |
| | | ylzA2: '', |
| | | zlzA3: '', |
| | | ylzA3: '', |
| | | zlzB1: '', |
| | | ylzB1: '', |
| | | zlzB2: '', |
| | | ylzB2: '', |
| | | zlzB3: '', |
| | | ylzB3: '', |
| | | zlzC1: '', |
| | | ylzC1: '', |
| | | zlzC2: '', |
| | | ylzC2: '', |
| | | zlzC3: '', |
| | | ylzC3: '', |
| | | zlza: '', |
| | | ylza: '', |
| | | zlzb: '', |
| | | ylzb: '', |
| | | zlzc: '', |
| | | ylzc: '', |
| | | // zzjAVG: '', |
| | | // yzjAVG: '', |
| | | // zfcbAVG: '', |
| | | // yfcbAVG: '', |
| | | // zydAVG: '', |
| | | // yydAVG: '', |
| | | //StateArray: [], |
| | | //ManufacturerArray: [], |
| | | StationArray: [{ |
| | | label: '左侧åè£
ä½', |
| | | value: '1左侧åè£
ä½' |
| | | }, |
| | | { |
| | | label: 'å³ä¾§åè£
ä½', |
| | | value: '2å³ä¾§åè£
ä½' |
| | | } |
| | | ], |
| | | |
| | | |
| | | //zcState: '', |
| | | //Manufacturer: '', |
| | | //targetStation: '', |
| | | |
| | | //è½´æ¿æ¹å |
| | | //è½´æ¿å· |
| | | //ldCode: '', |
| | | //ortherData: '', |
| | | qrcodeFocus: false, |
| | | } |
| | | }, |
| | | methods: { |
| | | setTimer() { |
| | | if (this.timer == null) { |
| | | this.timer = setInterval(() => { |
| | | this.date = this.$DateTool.getDate(); |
| | | }, 1000) |
| | | } |
| | | }, |
| | | // ManufacturerChange(value) { |
| | | // this.Manufacturer = value.orignItem.label; |
| | | // }, |
| | | // StateChange(value) { |
| | | // this.zcState = value.orignItem.label; |
| | | // }, |
| | | // StationChange(value) { |
| | | // this.targetStation = value.orignItem.label; |
| | | // }, |
| | | cztmChange() { |
| | | if (_this.cztm == '' || _this.cztm == null) { |
| | | return; |
| | | } |
| | | let data = { |
| | | MainData: { |
| | | cztm: _this.cztm |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToZY/getCZInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | //console.log(result); |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | // _this.yfcbAVG = obj.yfcbAVG; |
| | | // _this.zfcbAVG = obj.zfcbAVG; |
| | | // _this.zydAVG = obj.zydAVG; |
| | | // _this.yydAVG = obj.yydAVG; |
| | | // _this.zzjAVG = obj.zzjAVG; |
| | | // _this.yzjAVG = obj.yzjAVG; |
| | | _this.chexing = obj.chexing; |
| | | _this.czh = obj.czh; |
| | | _this.czxh = obj.czxh; |
| | | _this.zlzdj = obj.zlzdj; |
| | | _this.ylzdj = obj.ylzdj; |
| | | _this.wxrw=obj.wxrw; |
| | | _this.ldtm = obj.ldtm; |
| | | _this.zlzzj = obj.zlzzj; |
| | | _this.ylzzj = obj.ylzzj; |
| | | _this.zlzA1 = obj.zlzA1; |
| | | _this.ylzA1 = obj.ylzA1; |
| | | _this.zlzA2 = obj.zlzA2; |
| | | _this.ylzA2 = obj.ylzA2; |
| | | _this.zlzA3 = obj.zlzA3; |
| | | _this.ylzA3 = obj.ylzA3; |
| | | _this.zlzB1 = obj.zlzB1; |
| | | _this.ylzB1 = obj.ylzB1; |
| | | _this.zlzB2 = obj.zlzB2; |
| | | _this.ylzB2 = obj.ylzB2; |
| | | _this.zlzB3 = obj.zlzB3; |
| | | _this.ylzB3 = obj.ylzB3; |
| | | _this.zlzC1 = obj.zlzC1; |
| | | _this.ylzC1 = obj.ylzC1; |
| | | _this.zlzC2 = obj.zlzC2; |
| | | _this.ylzC2 = obj.ylzC2; |
| | | _this.zlzC3 = obj.zlzC3; |
| | | _this.ylzC3 = obj.ylzC3; |
| | | _this.zlza = obj.zlza; |
| | | _this.ylza = obj.ylza; |
| | | _this.zlzb = obj.zlzb; |
| | | _this.ylzb = obj.ylzb; |
| | | _this.zlzc = obj.zlzc; |
| | | _this.ylzc = obj.ylzc; |
| | | _this.mttype = obj.mttype; |
| | | //_this.ldCode = obj.ldCode; |
| | | //_this.ortherData = obj.ortherData; |
| | | // if (null != obj.manufacturerArray) |
| | | // obj.manufacturerArray.forEach(function(item, index, arr) { |
| | | // _this.ManufacturerArray.push({ |
| | | // label: item, |
| | | // value: item |
| | | // }) |
| | | // }); |
| | | // if (null != obj.neworold) |
| | | // obj.neworold.forEach(function(item, index, arr) { |
| | | // let name = 'æ£ä¿®'; |
| | | // if (item.indexOf('0') > -1) { |
| | | // name = 'æ°å'; |
| | | // } |
| | | |
| | | // if (null == _this.StateArray.find(r => r.value == name)) { |
| | | // _this.StateArray.push({ |
| | | // label: item, |
| | | // value: name |
| | | // }) |
| | | // } |
| | | // }); |
| | | //console.log(obj); |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | }); |
| | | }, |
| | | initInfo() { |
| | | // _this.yfcbAVG = ''; |
| | | // _this.zfcbAVG = ''; |
| | | // _this.zydAVG = ''; |
| | | // _this.yydAVG = ''; |
| | | // _this.zzjAVG = ''; |
| | | // _this.yzjAVG = ''; |
| | | _this.cztm = ''; |
| | | _this.czh = ''; |
| | | _this.chexing = ''; |
| | | _this.czxh = ''; |
| | | _this.zlzdj = ''; |
| | | _this.ylzdj = ''; |
| | | _this.wxrw=''; |
| | | _this.ldtm = ''; |
| | | _this.zlzzj = ''; |
| | | _this.ylzzj = ''; |
| | | _this.zlzA1 = ''; |
| | | _this.ylzA1 = ''; |
| | | _this.zlzA2 = ''; |
| | | _this.ylzA2 = ''; |
| | | _this.zlzA3 = ''; |
| | | _this.ylzA3 = ''; |
| | | _this.zlzB1 = ''; |
| | | _this.ylzB1 = ''; |
| | | _this.zlzB2 = ''; |
| | | _this.ylzB2 = ''; |
| | | _this.zlzB3 = ''; |
| | | _this.ylzB3 = ''; |
| | | _this.zlzC1 = ''; |
| | | _this.ylzC1 = ''; |
| | | _this.zlzC2 = ''; |
| | | _this.ylzC2 = ''; |
| | | _this.zlzC3 = ''; |
| | | _this.ylzC3 = ''; |
| | | _this.zlza = ''; |
| | | _this.ylza = ''; |
| | | _this.zlzb = ''; |
| | | _this.ylzb = ''; |
| | | _this.zlzc = ''; |
| | | _this.ylzc = ''; |
| | | _this.mttype = ''; |
| | | //_this.wheelsPosition = ''; |
| | | //_this.NOdirection = '' |
| | | //_this.Manufacturer = ''; |
| | | //_this.zcState = ''; |
| | | //_this.StateArray = []; |
| | | //_this.ldCode = ''; |
| | | //_this.ortherData = ''; |
| | | //_this.ManufacturerArray = []; |
| | | //_this.$refs.StateSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.StateSelect.clearItemActive(); |
| | | //_this.$refs.ManufacturerSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.ManufacturerSelect.clearItemActive(); |
| | | }, |
| | | SaveInfomation() { |
| | | if (_this.cztm == '') { |
| | | uni.showToast({ |
| | | title: "è¯·æ«æè½¦è½´ä¿¡æ¯.", |
| | | duration: 5000 |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'è¯·æ ¸å¯¹è½¦è½´æ¡ç æ¯å¦æ£ç¡®?', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | let data = { |
| | | MainData: { |
| | | czh: _this.czh, |
| | | chexing: _this.chexing, |
| | | cztm: _this.cztm, |
| | | czxh: _this.czxh, |
| | | zlzdj: _this.zlzdj, |
| | | ylzdj: _this.ylzdj, |
| | | wxrw:_this.wxrw, |
| | | ldtm: _this.ldtm, |
| | | zlzzj: _this.zlzzj, |
| | | ylzzj: _this.ylzzj, |
| | | zlzA1: _this.zlzA1, |
| | | ylzA1: _this.ylzA1, |
| | | zlzA2: _this.zlzA2, |
| | | ylzA2: _this.ylzA2, |
| | | zlzA3: _this.zlzA3, |
| | | ylzA3: _this.ylzA3, |
| | | zlzB1: _this.zlzB1, |
| | | ylzB1: _this.ylzB1, |
| | | zlzB2: _this.zlzB2, |
| | | ylzB2: _this.ylzB2, |
| | | zlzB3: _this.zlzB3, |
| | | ylzB3: _this.ylzB3, |
| | | zlzC1: _this.zlzC1, |
| | | ylzC1: _this.ylzC1, |
| | | zlzC2: _this.zlzC2, |
| | | ylzC2: _this.ylzC2, |
| | | zlzC3: _this.zlzC3, |
| | | ylzC3: _this.ylzC3, |
| | | zlza: _this.zlza, |
| | | ylza: _this.ylza, |
| | | zlzb: _this.zlzb, |
| | | ylzb: _this.ylzb, |
| | | zlzc: _this.zlzc, |
| | | ylzc: _this.ylzc, |
| | | mttype: _this.mttype, |
| | | //targetStation: _this.targetStation, |
| | | |
| | | //ldCode: _this.ldCode, |
| | | //ortherData: _this.ortherData |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveCZStraight', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | uni.showToast({ |
| | | title: "车轴ç´èµ°ä¿¡æ¯æ·»å æå!", |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | _this.qrcodeFocus = true; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 5000 |
| | | }); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 5000 |
| | | }); |
| | | }); |
| | | } else if (res.cancel) {} |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | created: function() { |
| | | // æ¯æ¬¡è¿å
¥ç颿¶ï¼å
æ¸
é¤ä¹åçææå®æ¶å¨ï¼ç¶åå¯å¨æ°ç宿¶å¨ |
| | | clearInterval(this.timer) |
| | | this.timer = null; |
| | | this.setTimer(); |
| | | _user = this.$UserTool.UserInfo; |
| | | this.CurrentUser = _user.userName; |
| | | this.UserArray = [this.$UserTool.AllUserInfo]; |
| | | }, |
| | | destroyed: function() { |
| | | // æ¯æ¬¡ç¦»å¼å½åç颿¶ï¼æ¸
é¤å®æ¶å¨ |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | }, |
| | | mounted() { |
| | | _this = this; |
| | | _this.qrcodeFocus = true; |
| | | //_this.queryOrder(); |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .tdHeight { |
| | | height: 80rpx; |
| | | } |
| | | |
| | | .loopView { |
| | | height: 160px; |
| | | background-color: #f0f0f0; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .loopItem { |
| | | margin-top: 5px; |
| | | margin-left: 15px; |
| | | |
| | | } |
| | | |
| | | .deleteBtn { |
| | | margin-top: 25px; |
| | | margin-left: 10px; |
| | | width: 120px; |
| | | background-color: orangered; |
| | | } |
| | | </style> |
copy from "\351\241\271\347\233\256\344\273\243\347\240\201/PDA/LDY_PDA/pages/Inbound/ZDPInbound.vue"
copy to "\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/Outbound/OutbundZdpStraight.vue"
Îļþ´Ó ÏîÄ¿´úÂë/PDA/LDY_PDA/pages/Inbound/ZDPInbound.vue ¸´ÖÆ |
| | |
| | | <u-input v-model="rksj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">åè£
æºå·</u-td> |
| | | <u-td> |
| | | <xfl-select :list="MachineArray" :initValue="'è¯·éæ©'" :clearable="false" @change="MachineChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | <view style="padding: 0rpx 0rpx;"> |
| | |
| | | neworold: '', |
| | | LSCSYMH:'', |
| | | qrcodeFocus: true, |
| | | MachineArray: [{ |
| | | label: '2032', |
| | | value: '1å·åè£
ä½' |
| | | }, { |
| | | label: '2042', |
| | | value: '2å·åè£
ä½' |
| | | }, ], |
| | | machine: '', |
| | | } |
| | | }, |
| | | methods: { |
| | | UserChange(value) { |
| | | |
| | | }, |
| | | MachineChange(value) { |
| | | this.machine = value.orignItem.label; |
| | | }, |
| | | setTimer() { |
| | | if (this.timer == null) { |
| | |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | //è½¦è½®å· |
| | | _this.ZPH = obj.ZPH; |
| | | _this.POS = obj.POS; |
| | | _this.LSXH = obj.LSXH; |
| | | _this.MAT = obj.MAT; |
| | | _this.ZPH = obj.zph; |
| | | _this.POS = obj.pos; |
| | | _this.LSXH = obj.lsxh; |
| | | _this.MAT = obj.mat; |
| | | _this.chexing = obj.chexing; |
| | | _this.SITE = obj.SITE; |
| | | _this.SITE = obj.site; |
| | | //æ°/æ§ |
| | | _this.neworold = obj.newold; |
| | | _this.GKA1 = obj.GKA1; |
| | | _this.GKA2 = obj.GKA2; |
| | | _this.GKA3 = obj.GKA3; |
| | | _this.GKA = obj.GKA; |
| | | _this.GKB1 = obj.GKB1; |
| | | _this.GKB2 = obj.GKB2; |
| | | _this.GKB3 = obj.GKB3; |
| | | _this.GKB = obj.GKB; |
| | | _this.GKC1 = obj.GKC1; |
| | | _this.GKC2 = obj.GKC2; |
| | | _this.GKC3 = obj.GKC3; |
| | | _this.GKC = obj.GKC; |
| | | _this.GKJZ = obj.GKJZ; |
| | | _this.LMCSYMH = obj.LMCSYMH; |
| | | _this.GKA1 = obj.gkA1; |
| | | _this.GKA2 = obj.gkA2; |
| | | _this.GKA3 = obj.gkA3; |
| | | _this.GKA = obj.gka; |
| | | _this.GKB1 = obj.gkB1; |
| | | _this.GKB2 = obj.gkB2; |
| | | _this.GKB3 = obj.gkB2; |
| | | _this.GKB = obj.gkb; |
| | | _this.GKC1 = obj.gkC1; |
| | | _this.GKC2 = obj.gkC2; |
| | | _this.GKC3 = obj.gkC2; |
| | | _this.GKC = obj.gkc; |
| | | _this.GKJZ = obj.gkjz; |
| | | _this.LMCSYMH = obj.lmcsymh; |
| | | //å
¥åºæ¥æ |
| | | _this.rksj = obj.rksj; |
| | | _this.LSCSYMH=obj.LSCSYMH; |
| | | _this.LSCSYMH=obj.lscsymh; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | |
| | | _this.GKJZ = ''; |
| | | _this.LMCSYMH = ''; |
| | | _this.rksj = ''; |
| | | |
| | | _this.machine=''; |
| | | _this.LSCSYMH=''; |
| | | |
| | | }, |
| | |
| | | GKC3: _this.GKC3, |
| | | GKC: _this.GKC, |
| | | GKJZ: _this.GKJZ, |
| | | clsx: _this.clsx, |
| | | //clsx: _this.clsx, |
| | | rksj: _this.rksj, |
| | | LMCSYMH:_this.LMCSYMH, |
| | | LSCSYMH:_this.LSCSYMH, |
| | | machine:_this.machine, |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveCLinfo', |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveZDPStraight', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <view> |
| | | <u-table font-size="25"> |
| | | <u-tr> |
| | | <u-td> |
| | | <xfl-select :list="UserArray" :initValue="this.$UserTool.UserInfo.userName" :clearable="false" |
| | | :disabled="true"> |
| | | </xfl-select> |
| | | </u-td> |
| | | <u-td width="25%">ç°å¨æ¶é´:</u-td> |
| | | <u-td width="25%">{{date}}</u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | |
| | | <view style="padding: 0rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td width="30%">车轴æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="cztm" :focus="qrcodeFocus" :border="true" placeholder="è¯·æ«æè½¦è½´æ¡ç " |
| | | @input="cztmChange" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轴å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="czh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">轮对æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="ldtm" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车å</u-td> |
| | | <u-td> |
| | | <u-input v-model="chexing" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">卿屿§</u-td> |
| | | <u-td> |
| | | <u-input v-model="mttype" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轴åå·</u-td> |
| | | <u-td> |
| | | <u-input v-model="czxh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">éé
è½®å(*)</u-td> |
| | | <u-td> |
| | | <u-input v-model="clxh" :border="false" :focus="clxhFocus" placeholder="请è¾å
¥éé
è½®å" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">å³è½®åº§ç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">维修任å¡</u-td> |
| | | <u-td> |
| | | <u-input v-model="wxrw" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzzj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzzj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlza" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylza" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轮æ¹å:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="wheelsPositionArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="wheelsPositionChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">车轮轮å</u-td> |
| | | <u-td> |
| | | <u-input v-model="x" :border="true" placeholder="请è¾å
¥è½¦è½®è½®å" /> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">æ°æ§ç±»å«:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="NOdirectionArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="NOdirectionChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">è½´æ¿ç±»å«:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="StateArray" :initValue="'è¯·éæ©'" :clearable="false" @change="StateChange" |
| | | ref="StateSelect"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">åå®¶:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="ManufacturerArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="ManufacturerChange" ref="ManufacturerSelect"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">å·¥ä½:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="StationArray" :initValue="'è¯·éæ©'" :clearable="false" @change="StationChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | </u-table> |
| | | </view> |
| | | <view style="padding: 0rpx 0rpx;"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td> |
| | | <u-button style="width:100px" type="primary" @click="SaveInfomation">é¢é确认</u-button> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | var _this; |
| | | var _user; |
| | | export default { |
| | | data() { |
| | | return { |
| | | date: '', |
| | | CurrentUser: '', //å½åç¨æ· |
| | | cztm: '', |
| | | czh: '', |
| | | chexing: '', |
| | | czxh: '', |
| | | clxh: '', |
| | | zlzdj: '', |
| | | ylzdj: '', |
| | | wxrw:'', |
| | | ldtm: '', |
| | | mttype: '', |
| | | zlzzj: '', |
| | | ylzzj: '', |
| | | zlzA1: '', |
| | | ylzA1: '', |
| | | zlzA2: '', |
| | | ylzA2: '', |
| | | zlzA3: '', |
| | | ylzA3: '', |
| | | zlzB1: '', |
| | | ylzB1: '', |
| | | zlzB2: '', |
| | | ylzB2: '', |
| | | zlzB3: '', |
| | | ylzB3: '', |
| | | zlzC1: '', |
| | | ylzC1: '', |
| | | zlzC2: '', |
| | | ylzC2: '', |
| | | zlzC3: '', |
| | | ylzC3: '', |
| | | zlza: '', |
| | | ylza: '', |
| | | zlzb: '', |
| | | ylzb: '', |
| | | zlzc: '', |
| | | ylzc: '', |
| | | // zzjAVG: '', |
| | | // yzjAVG: '', |
| | | // zfcbAVG: '', |
| | | // yfcbAVG: '', |
| | | // zydAVG: '', |
| | | // yydAVG: '', |
| | | //StateArray: [], |
| | | //ManufacturerArray: [], |
| | | StationArray: [{ |
| | | label: '左侧åè£
ä½', |
| | | value: '1左侧åè£
ä½' |
| | | }, |
| | | { |
| | | label: 'å³ä¾§åè£
ä½', |
| | | value: '2å³ä¾§åè£
ä½' |
| | | } |
| | | ], |
| | | wheelsPositionArray: [{ |
| | | label: 'all', |
| | | value: '两侧' |
| | | }, { |
| | | label: 'left', |
| | | value: '左侧' |
| | | }, |
| | | { |
| | | label: 'right', |
| | | value: 'å³ä¾§' |
| | | } |
| | | ], |
| | | NOdirectionArray: [{ |
| | | label: '0', |
| | | value: 'æ°é ' |
| | | }, { |
| | | label: '1', |
| | | value: 'æ£ä¿®' |
| | | }, ], |
| | | //zcState: '', |
| | | //Manufacturer: '', |
| | | //targetStation: '', |
| | | |
| | | //è½´æ¿æ¹å |
| | | wheelsPosition: '', |
| | | //è½´æ¿å· |
| | | //ldCode: '', |
| | | //ortherData: '', |
| | | qrcodeFocus: false, |
| | | clxhFocus: false |
| | | } |
| | | }, |
| | | methods: { |
| | | setTimer() { |
| | | if (this.timer == null) { |
| | | this.timer = setInterval(() => { |
| | | this.date = this.$DateTool.getDate(); |
| | | }, 1000) |
| | | } |
| | | }, |
| | | // ManufacturerChange(value) { |
| | | // this.Manufacturer = value.orignItem.label; |
| | | // }, |
| | | // StateChange(value) { |
| | | // this.zcState = value.orignItem.label; |
| | | // }, |
| | | // StationChange(value) { |
| | | // this.targetStation = value.orignItem.label; |
| | | // }, |
| | | wheelsPositionChange(value) { |
| | | this.wheelsPosition = value.orignItem.label; |
| | | }, |
| | | NOdirectionChange(value) { |
| | | this.NOdirection = value.orignItem.label; |
| | | }, |
| | | cztmChange() { |
| | | if (_this.cztm == '' || _this.cztm == null) { |
| | | return; |
| | | } |
| | | let data = { |
| | | MainData: { |
| | | cztm: _this.cztm |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToZY/getCZInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | //console.log(result); |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | // _this.yfcbAVG = obj.yfcbAVG; |
| | | // _this.zfcbAVG = obj.zfcbAVG; |
| | | // _this.zydAVG = obj.zydAVG; |
| | | // _this.yydAVG = obj.yydAVG; |
| | | // _this.zzjAVG = obj.zzjAVG; |
| | | // _this.yzjAVG = obj.yzjAVG; |
| | | _this.chexing = obj.chexing; |
| | | _this.czh = obj.czh; |
| | | _this.czxh = obj.czxh; |
| | | _this.clxhFocus = true; |
| | | _this.zlzdj = obj.zlzdj; |
| | | _this.ylzdj = obj.ylzdj; |
| | | _this.wxrw=obj.wxrw; |
| | | _this.ldtm = obj.ldtm; |
| | | _this.zlzzj = obj.zlzzj; |
| | | _this.ylzzj = obj.ylzzj; |
| | | _this.zlzA1 = obj.zlzA1; |
| | | _this.ylzA1 = obj.ylzA1; |
| | | _this.zlzA2 = obj.zlzA2; |
| | | _this.ylzA2 = obj.ylzA2; |
| | | _this.zlzA3 = obj.zlzA3; |
| | | _this.ylzA3 = obj.ylzA3; |
| | | _this.zlzB1 = obj.zlzB1; |
| | | _this.ylzB1 = obj.ylzB1; |
| | | _this.zlzB2 = obj.zlzB2; |
| | | _this.ylzB2 = obj.ylzB2; |
| | | _this.zlzB3 = obj.zlzB3; |
| | | _this.ylzB3 = obj.ylzB3; |
| | | _this.zlzC1 = obj.zlzC1; |
| | | _this.ylzC1 = obj.ylzC1; |
| | | _this.zlzC2 = obj.zlzC2; |
| | | _this.ylzC2 = obj.ylzC2; |
| | | _this.zlzC3 = obj.zlzC3; |
| | | _this.ylzC3 = obj.ylzC3; |
| | | _this.zlza = obj.zlza; |
| | | _this.ylza = obj.ylza; |
| | | _this.zlzb = obj.zlzb; |
| | | _this.ylzb = obj.ylzb; |
| | | _this.zlzc = obj.zlzc; |
| | | _this.ylzc = obj.ylzc; |
| | | _this.mttype = obj.mttype; |
| | | //_this.ldCode = obj.ldCode; |
| | | //_this.ortherData = obj.ortherData; |
| | | // if (null != obj.manufacturerArray) |
| | | // obj.manufacturerArray.forEach(function(item, index, arr) { |
| | | // _this.ManufacturerArray.push({ |
| | | // label: item, |
| | | // value: item |
| | | // }) |
| | | // }); |
| | | // if (null != obj.neworold) |
| | | // obj.neworold.forEach(function(item, index, arr) { |
| | | // let name = 'æ£ä¿®'; |
| | | // if (item.indexOf('0') > -1) { |
| | | // name = 'æ°å'; |
| | | // } |
| | | |
| | | // if (null == _this.StateArray.find(r => r.value == name)) { |
| | | // _this.StateArray.push({ |
| | | // label: item, |
| | | // value: name |
| | | // }) |
| | | // } |
| | | // }); |
| | | //console.log(obj); |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | }); |
| | | }, |
| | | initInfo() { |
| | | // _this.yfcbAVG = ''; |
| | | // _this.zfcbAVG = ''; |
| | | // _this.zydAVG = ''; |
| | | // _this.yydAVG = ''; |
| | | // _this.zzjAVG = ''; |
| | | // _this.yzjAVG = ''; |
| | | _this.cztm = ''; |
| | | _this.czh = ''; |
| | | _this.chexing = ''; |
| | | _this.czxh = ''; |
| | | _this.clxh = ''; |
| | | _this.zlzdj = ''; |
| | | _this.ylzdj = ''; |
| | | _this.wxrw=''; |
| | | _this.ldtm = ''; |
| | | _this.zlzzj = ''; |
| | | _this.ylzzj = ''; |
| | | _this.zlzA1 = ''; |
| | | _this.ylzA1 = ''; |
| | | _this.zlzA2 = ''; |
| | | _this.ylzA2 = ''; |
| | | _this.zlzA3 = ''; |
| | | _this.ylzA3 = ''; |
| | | _this.zlzB1 = ''; |
| | | _this.ylzB1 = ''; |
| | | _this.zlzB2 = ''; |
| | | _this.ylzB2 = ''; |
| | | _this.zlzB3 = ''; |
| | | _this.ylzB3 = ''; |
| | | _this.zlzC1 = ''; |
| | | _this.ylzC1 = ''; |
| | | _this.zlzC2 = ''; |
| | | _this.ylzC2 = ''; |
| | | _this.zlzC3 = ''; |
| | | _this.ylzC3 = ''; |
| | | _this.zlza = ''; |
| | | _this.ylza = ''; |
| | | _this.zlzb = ''; |
| | | _this.ylzb = ''; |
| | | _this.zlzc = ''; |
| | | _this.ylzc = ''; |
| | | _this.mttype = ''; |
| | | //_this.wheelsPosition = ''; |
| | | //_this.NOdirection = '' |
| | | //_this.Manufacturer = ''; |
| | | //_this.zcState = ''; |
| | | //_this.StateArray = []; |
| | | //_this.ldCode = ''; |
| | | //_this.ortherData = ''; |
| | | //_this.ManufacturerArray = []; |
| | | //_this.$refs.StateSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.StateSelect.clearItemActive(); |
| | | //_this.$refs.ManufacturerSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.ManufacturerSelect.clearItemActive(); |
| | | }, |
| | | SaveInfomation() { |
| | | if (_this.cztm == '') { |
| | | uni.showToast({ |
| | | title: "è¯·æ«æè½¦è½´ä¿¡æ¯.", |
| | | duration: 5000 |
| | | }); |
| | | return; |
| | | } |
| | | if (_this.clxh == '') { |
| | | uni.showToast({ |
| | | title: "请è¾å
¥éé
è½®å.", |
| | | duration: 5000 |
| | | }); |
| | | return; |
| | | } |
| | | // if (_this.yfcbAVG == '' && _this.zfcbAVG == '' && |
| | | // _this.zydAVG == '' && _this.yydAVG == '' && _this.zzjAVG == '' && |
| | | // _this.yzjAVG == '') { |
| | | // uni.showToast({ |
| | | // title: "è¯·éæ°è·å轮对éé
ä¿¡æ¯.", |
| | | // duration: 5000 |
| | | // }); |
| | | // return; |
| | | // } |
| | | |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'è¯·æ ¸å¯¹è½¦è½´æ¡ç æ¯å¦æ£ç¡®?', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | let data = { |
| | | MainData: { |
| | | czh: _this.czh, |
| | | chexing: _this.chexing, |
| | | cztm: _this.cztm, |
| | | czxh: _this.czxh, |
| | | clxh: _this.clxh, |
| | | zlzdj: _this.zlzdj, |
| | | ylzdj: _this.ylzdj, |
| | | wxrw:_this.wxrw, |
| | | ldtm: _this.ldtm, |
| | | zlzzj: _this.zlzzj, |
| | | ylzzj: _this.ylzzj, |
| | | zlzA1: _this.zlzA1, |
| | | ylzA1: _this.ylzA1, |
| | | zlzA2: _this.zlzA2, |
| | | ylzA2: _this.ylzA2, |
| | | zlzA3: _this.zlzA3, |
| | | ylzA3: _this.ylzA3, |
| | | zlzB1: _this.zlzB1, |
| | | ylzB1: _this.ylzB1, |
| | | zlzB2: _this.zlzB2, |
| | | ylzB2: _this.ylzB2, |
| | | zlzB3: _this.zlzB3, |
| | | ylzB3: _this.ylzB3, |
| | | zlzC1: _this.zlzC1, |
| | | ylzC1: _this.ylzC1, |
| | | zlzC2: _this.zlzC2, |
| | | ylzC2: _this.ylzC2, |
| | | zlzC3: _this.zlzC3, |
| | | ylzC3: _this.ylzC3, |
| | | zlza: _this.zlza, |
| | | ylza: _this.ylza, |
| | | zlzb: _this.zlzb, |
| | | ylzb: _this.ylzb, |
| | | zlzc: _this.zlzc, |
| | | ylzc: _this.ylzc, |
| | | mttype: _this.mttype, |
| | | //targetStation: _this.targetStation, |
| | | wheelsPosition: _this.wheelsPosition, |
| | | NOdirection: _this.NOdirection, |
| | | //ldCode: _this.ldCode, |
| | | //ortherData: _this.ortherData |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveCZInfo2', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | uni.showToast({ |
| | | title: "é¢éé
æå!", |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | _this.qrcodeFocus = true; |
| | | _this.clxhFocus = false; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 5000 |
| | | }); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 5000 |
| | | }); |
| | | }); |
| | | } else if (res.cancel) {} |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | created: function() { |
| | | // æ¯æ¬¡è¿å
¥ç颿¶ï¼å
æ¸
é¤ä¹åçææå®æ¶å¨ï¼ç¶åå¯å¨æ°ç宿¶å¨ |
| | | clearInterval(this.timer) |
| | | this.timer = null; |
| | | this.setTimer(); |
| | | _user = this.$UserTool.UserInfo; |
| | | this.CurrentUser = _user.userName; |
| | | this.UserArray = [this.$UserTool.AllUserInfo]; |
| | | }, |
| | | destroyed: function() { |
| | | // æ¯æ¬¡ç¦»å¼å½åç颿¶ï¼æ¸
é¤å®æ¶å¨ |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | }, |
| | | mounted() { |
| | | _this = this; |
| | | _this.qrcodeFocus = true; |
| | | //_this.queryOrder(); |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .tdHeight { |
| | | height: 80rpx; |
| | | } |
| | | |
| | | .loopView { |
| | | height: 160px; |
| | | background-color: #f0f0f0; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .loopItem { |
| | | margin-top: 5px; |
| | | margin-left: 15px; |
| | | |
| | | } |
| | | |
| | | .deleteBtn { |
| | | margin-top: 25px; |
| | | margin-left: 10px; |
| | | width: 120px; |
| | | background-color: orangered; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <view> |
| | | <u-table font-size="25"> |
| | | <u-tr> |
| | | <u-td> |
| | | <xfl-select :list="UserArray" :initValue="this.$UserTool.UserInfo.userName" :clearable="false" |
| | | :disabled="true"> |
| | | </xfl-select> |
| | | </u-td> |
| | | <u-td width="25%">ç°å¨æ¶é´:</u-td> |
| | | <u-td width="25%">{{date}}</u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | |
| | | <view style="padding: 0rpx 0rpx"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td width="30%">车轴æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="cztm" :focus="qrcodeFocus" :border="true" placeholder="è¯·æ«æè½¦è½´æ¡ç " |
| | | @input="cztmChange" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轴å·</u-td> |
| | | <u-td> |
| | | <u-input v-model="czh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">轮对æ¡ç </u-td> |
| | | <u-td> |
| | | <u-input v-model="ldtm" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">车å</u-td> |
| | | <u-td> |
| | | <u-input v-model="chexing" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">卿屿§</u-td> |
| | | <u-td> |
| | | <u-input v-model="mttype" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">车轴åå·</u-td> |
| | | <u-td> |
| | | <u-input v-model="czxh" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">éé
è½®å(*)</u-td> |
| | | <u-td> |
| | | <u-input v-model="clxh" :border="false" :focus="clxhFocus" placeholder="请è¾å
¥éé
è½®å" /> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">å³è½®åº§ç级</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzdj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">维修任å¡</u-td> |
| | | <u-td> |
| | | <u-input v-model="wxrw" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzzj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzzj" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzA3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzA3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾A</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlza" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾A</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylza" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzB3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzB3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾B</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾B</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzb" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C1</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C1</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC1" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C2</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C2</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC2" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C3</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzC3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C3</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzC3" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr> |
| | | <u-td width="30%">左轮座ç´å¾C</u-td> |
| | | <u-td> |
| | | <u-input v-model="zlzc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | <u-td width="30%">å³è½®åº§ç´å¾C</u-td> |
| | | <u-td> |
| | | <u-input v-model="ylzc" :border="false" :disabled="true" placeholder="" /> |
| | | </u-td> |
| | | </u-tr> |
| | | <u-tr style="height: 50px;"> |
| | | <u-td width="30%">å¶å¨çæ¹å:</u-td> |
| | | <u-td> |
| | | <u-checkbox-group @change="wheelsPositionChange"> |
| | | <u-checkbox v-model="item.checked" :size="48" |
| | | v-for="(item, index) in list" :key="index" :name="item.name">{{item.name}}</u-checkbox> |
| | | </u-checkbox-group> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">车轮轮å</u-td> |
| | | <u-td> |
| | | <u-input v-model="x" :border="true" placeholder="请è¾å
¥è½¦è½®è½®å" /> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <u-tr> |
| | | <u-td width="30%">æ°æ§ç±»å«:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="NOdirectionArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="NOdirectionChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">è½´æ¿ç±»å«:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="StateArray" :initValue="'è¯·éæ©'" :clearable="false" @change="StateChange" |
| | | ref="StateSelect"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">åå®¶:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="ManufacturerArray" :initValue="'è¯·éæ©'" :clearable="false" |
| | | @change="ManufacturerChange" ref="ManufacturerSelect"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | <!-- <u-tr> |
| | | <u-td width="30%">å·¥ä½:</u-td> |
| | | <u-td> |
| | | <xfl-select :list="StationArray" :initValue="'è¯·éæ©'" :clearable="false" @change="StationChange"> |
| | | </xfl-select> |
| | | </u-td> |
| | | </u-tr> --> |
| | | </u-table> |
| | | </view> |
| | | <view style="padding: 0rpx 0rpx;"> |
| | | <u-table> |
| | | <u-tr> |
| | | <u-td> |
| | | <u-button style="width:100px" type="primary" @click="SaveInfomation">确认</u-button> |
| | | </u-td> |
| | | </u-tr> |
| | | </u-table> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script> |
| | | var _this; |
| | | var _user; |
| | | export default { |
| | | data() { |
| | | return { |
| | | date: '', |
| | | CurrentUser: '', //å½åç¨æ· |
| | | cztm: '', |
| | | czh: '', |
| | | chexing: '', |
| | | czxh: '', |
| | | //clxh: '', |
| | | zlzdj: '', |
| | | ylzdj: '', |
| | | wxrw: '', |
| | | //ldtm: '', |
| | | mttype: '', |
| | | zlzzj: '', |
| | | ylzzj: '', |
| | | zlzA1: '', |
| | | ylzA1: '', |
| | | zlzA2: '', |
| | | ylzA2: '', |
| | | zlzA3: '', |
| | | ylzA3: '', |
| | | zlzB1: '', |
| | | ylzB1: '', |
| | | zlzB2: '', |
| | | ylzB2: '', |
| | | zlzB3: '', |
| | | ylzB3: '', |
| | | zlzC1: '', |
| | | ylzC1: '', |
| | | zlzC2: '', |
| | | ylzC2: '', |
| | | zlzC3: '', |
| | | ylzC3: '', |
| | | zlza: '', |
| | | ylza: '', |
| | | zlzb: '', |
| | | ylzb: '', |
| | | zlzc: '', |
| | | ylzc: '', |
| | | // zzjAVG: '', |
| | | // yzjAVG: '', |
| | | // zfcbAVG: '', |
| | | // yfcbAVG: '', |
| | | // zydAVG: '', |
| | | // yydAVG: '', |
| | | //StateArray: [], |
| | | //ManufacturerArray: [], |
| | | StationArray: [{ |
| | | label: '左侧åè£
ä½', |
| | | value: '1左侧åè£
ä½' |
| | | }, |
| | | { |
| | | label: 'å³ä¾§åè£
ä½', |
| | | value: '2å³ä¾§åè£
ä½' |
| | | } |
| | | ], |
| | | list: [ |
| | | { |
| | | name: '左侧', |
| | | checked: false, |
| | | disabled: false |
| | | }, |
| | | { |
| | | name: 'ä¸é´', |
| | | checked: false, |
| | | disabled: false |
| | | }, |
| | | { |
| | | name: 'å³ä¾§', |
| | | checked: false, |
| | | disabled: false |
| | | } |
| | | ], |
| | | NOdirectionArray: [{ |
| | | label: '0', |
| | | value: 'æ°é ' |
| | | }, { |
| | | label: '1', |
| | | value: 'æ£ä¿®' |
| | | }, ], |
| | | //zcState: '', |
| | | //Manufacturer: '', |
| | | //targetStation: '', |
| | | |
| | | //è½´æ¿æ¹å |
| | | wheelsPosition: [], |
| | | //è½´æ¿å· |
| | | //ldCode: '', |
| | | //ortherData: '', |
| | | qrcodeFocus: false, |
| | | //clxhFocus: false |
| | | } |
| | | }, |
| | | methods: { |
| | | setTimer() { |
| | | if (this.timer == null) { |
| | | this.timer = setInterval(() => { |
| | | this.date = this.$DateTool.getDate(); |
| | | }, 1000) |
| | | } |
| | | }, |
| | | // ManufacturerChange(value) { |
| | | // this.Manufacturer = value.orignItem.label; |
| | | // }, |
| | | // StateChange(value) { |
| | | // this.zcState = value.orignItem.label; |
| | | // }, |
| | | // StationChange(value) { |
| | | // this.targetStation = value.orignItem.label; |
| | | // }, |
| | | wheelsPositionChange(value) { |
| | | this.wheelsPosition = value; |
| | | }, |
| | | NOdirectionChange(value) { |
| | | this.NOdirection = value.orignItem.label; |
| | | }, |
| | | cztmChange() { |
| | | if (_this.cztm == '' || _this.cztm == null) { |
| | | return; |
| | | } |
| | | let data = { |
| | | MainData: { |
| | | cztm: _this.cztm |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToZY/getCZInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | //console.log(result); |
| | | if (result.data.status) { |
| | | let obj = JSON.parse(JSON.stringify(result.data.data)); |
| | | // _this.yfcbAVG = obj.yfcbAVG; |
| | | // _this.zfcbAVG = obj.zfcbAVG; |
| | | // _this.zydAVG = obj.zydAVG; |
| | | // _this.yydAVG = obj.yydAVG; |
| | | // _this.zzjAVG = obj.zzjAVG; |
| | | // _this.yzjAVG = obj.yzjAVG; |
| | | _this.chexing = obj.chexing; |
| | | _this.czh = obj.czh; |
| | | _this.czxh = obj.czxh; |
| | | //_this.clxhFocus = true; |
| | | _this.zlzdj = obj.zlzdj; |
| | | _this.ylzdj = obj.ylzdj; |
| | | _this.wxrw = obj.wxrw; |
| | | //_this.ldtm = obj.ldtm; |
| | | _this.zlzzj = obj.zlzzj; |
| | | _this.ylzzj = obj.ylzzj; |
| | | _this.zlzA1 = obj.zlzA1; |
| | | _this.ylzA1 = obj.ylzA1; |
| | | _this.zlzA2 = obj.zlzA2; |
| | | _this.ylzA2 = obj.ylzA2; |
| | | _this.zlzA3 = obj.zlzA3; |
| | | _this.ylzA3 = obj.ylzA3; |
| | | _this.zlzB1 = obj.zlzB1; |
| | | _this.ylzB1 = obj.ylzB1; |
| | | _this.zlzB2 = obj.zlzB2; |
| | | _this.ylzB2 = obj.ylzB2; |
| | | _this.zlzB3 = obj.zlzB3; |
| | | _this.ylzB3 = obj.ylzB3; |
| | | _this.zlzC1 = obj.zlzC1; |
| | | _this.ylzC1 = obj.ylzC1; |
| | | _this.zlzC2 = obj.zlzC2; |
| | | _this.ylzC2 = obj.ylzC2; |
| | | _this.zlzC3 = obj.zlzC3; |
| | | _this.ylzC3 = obj.ylzC3; |
| | | _this.zlza = obj.zlza; |
| | | _this.ylza = obj.ylza; |
| | | _this.zlzb = obj.zlzb; |
| | | _this.ylzb = obj.ylzb; |
| | | _this.zlzc = obj.zlzc; |
| | | _this.ylzc = obj.ylzc; |
| | | _this.mttype = obj.mttype; |
| | | //_this.ldCode = obj.ldCode; |
| | | //_this.ortherData = obj.ortherData; |
| | | // if (null != obj.manufacturerArray) |
| | | // obj.manufacturerArray.forEach(function(item, index, arr) { |
| | | // _this.ManufacturerArray.push({ |
| | | // label: item, |
| | | // value: item |
| | | // }) |
| | | // }); |
| | | // if (null != obj.neworold) |
| | | // obj.neworold.forEach(function(item, index, arr) { |
| | | // let name = 'æ£ä¿®'; |
| | | // if (item.indexOf('0') > -1) { |
| | | // name = 'æ°å'; |
| | | // } |
| | | |
| | | // if (null == _this.StateArray.find(r => r.value == name)) { |
| | | // _this.StateArray.push({ |
| | | // label: item, |
| | | // value: name |
| | | // }) |
| | | // } |
| | | // }); |
| | | //console.log(obj); |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | }); |
| | | }, |
| | | initInfo() { |
| | | // _this.yfcbAVG = ''; |
| | | // _this.zfcbAVG = ''; |
| | | // _this.zydAVG = ''; |
| | | // _this.yydAVG = ''; |
| | | // _this.zzjAVG = ''; |
| | | // _this.yzjAVG = ''; |
| | | _this.cztm = ''; |
| | | _this.czh = ''; |
| | | _this.chexing = ''; |
| | | _this.czxh = ''; |
| | | //_this.clxh = ''; |
| | | _this.zlzdj = ''; |
| | | _this.ylzdj = ''; |
| | | _this.wxrw = ''; |
| | | //_this.ldtm = ''; |
| | | _this.zlzzj = ''; |
| | | _this.ylzzj = ''; |
| | | _this.zlzA1 = ''; |
| | | _this.ylzA1 = ''; |
| | | _this.zlzA2 = ''; |
| | | _this.ylzA2 = ''; |
| | | _this.zlzA3 = ''; |
| | | _this.ylzA3 = ''; |
| | | _this.zlzB1 = ''; |
| | | _this.ylzB1 = ''; |
| | | _this.zlzB2 = ''; |
| | | _this.ylzB2 = ''; |
| | | _this.zlzB3 = ''; |
| | | _this.ylzB3 = ''; |
| | | _this.zlzC1 = ''; |
| | | _this.ylzC1 = ''; |
| | | _this.zlzC2 = ''; |
| | | _this.ylzC2 = ''; |
| | | _this.zlzC3 = ''; |
| | | _this.ylzC3 = ''; |
| | | _this.zlza = ''; |
| | | _this.ylza = ''; |
| | | _this.zlzb = ''; |
| | | _this.ylzb = ''; |
| | | _this.zlzc = ''; |
| | | _this.ylzc = ''; |
| | | _this.mttype = ''; |
| | | //_this.wheelsPosition = ''; |
| | | //_this.NOdirection = '' |
| | | //_this.Manufacturer = ''; |
| | | //_this.zcState = ''; |
| | | //_this.StateArray = []; |
| | | //_this.ldCode = ''; |
| | | //_this.ortherData = ''; |
| | | //_this.ManufacturerArray = []; |
| | | //_this.$refs.StateSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.StateSelect.clearItemActive(); |
| | | //_this.$refs.ManufacturerSelect.setInput("è¯·éæ©"); |
| | | //_this.$refs.ManufacturerSelect.clearItemActive(); |
| | | }, |
| | | SaveInfomation() { |
| | | // if (_this.cztm == '') { |
| | | // uni.showToast({ |
| | | // title: "è¯·æ«æè½¦è½´ä¿¡æ¯.", |
| | | // duration: 5000 |
| | | // }); |
| | | // return; |
| | | // } |
| | | // if (_this.clxh == '') { |
| | | // uni.showToast({ |
| | | // title: "请è¾å
¥éé
è½®å.", |
| | | // duration: 5000 |
| | | // }); |
| | | // return; |
| | | // } |
| | | // if (_this.yfcbAVG == '' && _this.zfcbAVG == '' && |
| | | // _this.zydAVG == '' && _this.yydAVG == '' && _this.zzjAVG == '' && |
| | | // _this.yzjAVG == '') { |
| | | // uni.showToast({ |
| | | // title: "è¯·éæ°è·å轮对éé
ä¿¡æ¯.", |
| | | // duration: 5000 |
| | | // }); |
| | | // return; |
| | | // } |
| | | |
| | | uni.showModal({ |
| | | title: 'æç¤º', |
| | | content: 'è¯·æ ¸å¯¹è½¦è½´æ¡ç æ¯å¦æ£ç¡®?', |
| | | success: function(res) { |
| | | if (res.confirm) { |
| | | let data = { |
| | | MainData: { |
| | | czh: _this.czh, |
| | | chexing: _this.chexing, |
| | | cztm: _this.cztm, |
| | | czxh: _this.czxh, |
| | | //clxh: _this.clxh, |
| | | zlzdj: _this.zlzdj, |
| | | ylzdj: _this.ylzdj, |
| | | wxrw: _this.wxrw, |
| | | //ldtm: _this.ldtm, |
| | | zlzzj: _this.zlzzj, |
| | | ylzzj: _this.ylzzj, |
| | | zlzA1: _this.zlzA1, |
| | | ylzA1: _this.ylzA1, |
| | | zlzA2: _this.zlzA2, |
| | | ylzA2: _this.ylzA2, |
| | | zlzA3: _this.zlzA3, |
| | | ylzA3: _this.ylzA3, |
| | | zlzB1: _this.zlzB1, |
| | | ylzB1: _this.ylzB1, |
| | | zlzB2: _this.zlzB2, |
| | | ylzB2: _this.ylzB2, |
| | | zlzB3: _this.zlzB3, |
| | | ylzB3: _this.ylzB3, |
| | | zlzC1: _this.zlzC1, |
| | | ylzC1: _this.ylzC1, |
| | | zlzC2: _this.zlzC2, |
| | | ylzC2: _this.ylzC2, |
| | | zlzC3: _this.zlzC3, |
| | | ylzC3: _this.ylzC3, |
| | | zlza: _this.zlza, |
| | | ylza: _this.ylza, |
| | | zlzb: _this.zlzb, |
| | | ylzb: _this.ylzb, |
| | | zlzc: _this.zlzc, |
| | | ylzc: _this.ylzc, |
| | | mttype: _this.mttype, |
| | | //targetStation: _this.targetStation, |
| | | wheelsPosition: _this.wheelsPosition, |
| | | NOdirection: _this.NOdirection, |
| | | //ldCode: _this.ldCode, |
| | | //ortherData: _this.ortherData |
| | | }, |
| | | }; |
| | | _this.$AjaxRequest.Params('post', 'ToAPP/SaveZDPXPInfo', |
| | | data, _user.token); |
| | | _this.$AjaxRequest.Request().then(function(result) { |
| | | if (result.data.status) { |
| | | uni.showToast({ |
| | | title: "é¢éé
æå!", |
| | | duration: 5000 |
| | | }); |
| | | _this.initInfo(); |
| | | _this.qrcodeFocus = true; |
| | | //_this.clxhFocus = false; |
| | | } else { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±é误:" + result.data.message, |
| | | duration: 5000 |
| | | }); |
| | | } |
| | | }).catch(function(err) { |
| | | uni.showToast({ |
| | | icon: 'none', |
| | | title: "请æ±åå°å¼å¸¸,é误信æ¯." + err.errMsg, |
| | | duration: 5000 |
| | | }); |
| | | }); |
| | | } else if (res.cancel) {} |
| | | } |
| | | }); |
| | | }, |
| | | }, |
| | | created: function() { |
| | | // æ¯æ¬¡è¿å
¥ç颿¶ï¼å
æ¸
é¤ä¹åçææå®æ¶å¨ï¼ç¶åå¯å¨æ°ç宿¶å¨ |
| | | clearInterval(this.timer) |
| | | this.timer = null; |
| | | this.setTimer(); |
| | | _user = this.$UserTool.UserInfo; |
| | | this.CurrentUser = _user.userName; |
| | | this.UserArray = [this.$UserTool.AllUserInfo]; |
| | | }, |
| | | destroyed: function() { |
| | | // æ¯æ¬¡ç¦»å¼å½åç颿¶ï¼æ¸
é¤å®æ¶å¨ |
| | | clearInterval(this.timer); |
| | | this.timer = null; |
| | | }, |
| | | mounted() { |
| | | _this = this; |
| | | _this.qrcodeFocus = true; |
| | | //_this.queryOrder(); |
| | | }, |
| | | |
| | | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |
| | | .tdHeight { |
| | | height: 80rpx; |
| | | } |
| | | |
| | | .loopView { |
| | | height: 160px; |
| | | background-color: #f0f0f0; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | .loopItem { |
| | | margin-top: 5px; |
| | | margin-left: 15px; |
| | | |
| | | } |
| | | |
| | | .deleteBtn { |
| | | margin-top: 25px; |
| | | margin-left: 10px; |
| | | width: 120px; |
| | | background-color: orangered; |
| | | } |
| | | </style> |
ÎļþÃû´Ó ÏîÄ¿´úÂë/PDA/LDY_PDA/pages/index/main.vue ÐÞ¸Ä |
| | |
| | | } |
| | | |
| | | .swiper { |
| | | height: 710rpx; |
| | | height: 810rpx; |
| | | } |
| | | |
| | | .indicator-dots { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | https://app.liuyingyong.cn/build/download/19d6de30-2e33-11f0-87be-e330f97cc722 |
¶Ô±ÈÐÂÎļþ |
| | |
| | | andrCertfile=D:/HBuilderX/plugins/app-safe-pack/Test.keystore |
| | | andrCertAlias=android |
| | | andrCertPass=ep/Tdjka4Y7WYqDB6/S7dw== |
¶Ô±ÈÐÂÎļþ |
| | |
| | | [General] |
| | | andrCertfile=package.keystore |
| | | andrCertAlias=__UNI__C823906 |
| | | andrCertPass="rCgK0GIWGVNfjdvaee2ZkA==" |
copy from "\351\241\271\347\233\256\344\273\243\347\240\201/PDA/LDY_PDA/static/uni.ttf"
copy to "\351\241\271\347\233\256\344\273\243\347\240\201/PDA/unpackage/cache/wgt/__UNI__C823906/static/uni.ttf"
Binary files differ
| | |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | { |
| | | _sys_ConfigService = sys_ConfigService; |
| | | } |
| | | |
| | | public WebResponseContent GetStation() |
| | | { |
| | | return WebResponseContent.Instance.OK(data: BaseDal.QueryData(x => x.stationRemark == "AGVæ¾è´§ç«å°").ToList()); |
| | | } |
| | | |
| | | public WebResponseContent UpdateStation(SaveModel saveModel) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | | try |
| | | { |
| | | string stationid = saveModel.MainData["stationid"].ToString(); |
| | | |
| | | string stationLoc = stationid == "1" ? "2033" : "2043"; |
| | | Dt_StationManager dt_Station = BaseDal.QueryFirst(x => x.stationLocation == stationLoc); |
| | | |
| | | if (dt_Station.stationStatus == "0") |
| | | { |
| | | dt_Station.stationStatus = "1"; |
| | | } |
| | | else |
| | | { |
| | | dt_Station.stationStatus = "0"; |
| | | } |
| | | BaseDal.UpdateData(dt_Station); |
| | | return content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error("é误信æ¯ï¼" + ex); |
| | | throw; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob.DeviceBase; |
| | | |
| | |
| | | /// ç§»åºæ£æµ |
| | | /// </summary> |
| | | public const string TransferCheck = "TransferCheck"; |
| | | /// <summary> |
| | | /// å
¥åºç§»åºæ£æµ |
| | | /// </summary> |
| | | public const string InTransferCheck = "InTransferCheck"; |
| | | |
| | | /// <summary> |
| | | /// æ´æ°æµéä»»å¡ |
| | |
| | | public const string UpdateCheckTask = "UpdateCheckTask"; |
| | | |
| | | public const string RequestWheelsFlow = "RequestWheelsFlow"; |
| | | |
| | | /// <summary> |
| | | /// è½¦è½´ä¸æç³è¯· |
| | | /// </summary> |
| | | public const string RequestAxleloading = "RequestAxleloading"; |
| | | |
| | | /// <summary> |
| | | /// è½¦è½´ä¸æç¶æï¼agvç¶æ |
| | | /// </summary> |
| | | public const string UpdateAxleCurrentStatue = "UpdateAxleCurrentStatue"; |
| | | |
| | | /// <summary> |
| | | /// ç³è¯·agvä»»å¡ |
| | | /// </summary> |
| | | public const string genAgvSchedulingTask = "genAgvSchedulingTask"; |
| | | } |
| | | } |
| | |
| | | |
| | | #endregion << ç æ¬ 注 é >> |
| | | |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | |
| | | /// <param name="area"></param> |
| | | /// <returns></returns> |
| | | Dt_StationManager GetStationInfoByChildCode(string ChildCode, string area); |
| | | |
| | | |
| | | /// <summary> |
| | | /// è·åagvç¼åå°ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | WebResponseContent GetStation(); |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹AGVç«å°ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | WebResponseContent UpdateStation(SaveModel saveModel); |
| | | } |
| | | } |
| | |
| | | Dt_Task? OutBeforeCheck(int taskNum); |
| | | |
| | | /// <summary> |
| | | /// å
¥åºå ç§»åºæ£æµ |
| | | /// </summary> |
| | | /// <param name="taskNum"></param> |
| | | /// <returns></returns> |
| | | Dt_Task? InBeforeCheck(int taskNum); |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è®¾å¤ç¼å·ãå½åå°åæ¥è¯¢è¾éçº¿æªæ§è¡çä»»å¡ |
| | | /// </summary> |
| | | /// <param name="deviceNo">设å¤ç¼å·</param> |
| | |
| | | /// <param name="deviceNo"></param> |
| | | /// <returns></returns> |
| | | Dt_Task QueryExcutingTask(string deviceNo); |
| | | |
| | | |
| | | /// <summary> |
| | | /// è½¦è½´ä¸æç³è¯·ï¼å馿¡ç è³è¾é线 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | WebResponseContent GetFeedbackAxleloading(); |
| | | /// <summary> |
| | | /// è½¦è½´çº¿ä¸æå£ï¼è½¦è½´å°ä½åè¾é线ç³è¯· |
| | | /// </summary> |
| | | /// <param name="CZTM"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent UpdateAxleCurrentStatue(string CZTM); |
| | | /// <summary> |
| | | /// ç³è¯·agvä»»å¡ |
| | | /// </summary> |
| | | /// <param name="TargetAddress"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent GetAGVTaskdistribution(string TargetAddress); |
| | | |
| | | /// <summary> |
| | | /// åå
¥è¾é线åé¦ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="TargetAddress"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent SetPlcResponState(string TargetAddress); |
| | | |
| | | /// <summary> |
| | | /// åå
¥è¾é线åé¦ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="TargetAddress"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent GetPlcState(string TargetAddress); |
| | | |
| | | } |
| | | } |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "WheelsLX", Length = 255, ColumnDescription = "è½®å")] |
| | | public string WheelsLX { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮å»åå°å |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "Towhereabouts", Length = 20, ColumnDescription = "车轮å»åå°å")] |
| | | public string Towhereabouts { get; set; } |
| | | } |
| | | } |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "wheels_mttype", Length = 255, ColumnDescription = "卿屿§")] |
| | | public string wheels_mttype { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮å»åå°å |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "Towhereabouts", Length = 20, ColumnDescription = "车轮å»åå°å")] |
| | | public string Towhereabouts { get; set; } |
| | | } |
| | | } |
| | |
| | | QuartzLogger.WriteLogToFile($"Info_{fileName}", builder.ToString()); |
| | | } |
| | | |
| | | public void WriteError(string fileName, string msg, Exception ex) |
| | | public void WriteError(string fileName,Exception ex) |
| | | { |
| | | StringBuilder builder = new StringBuilder(msg); |
| | | builder.Append(Environment.NewLine); |
| | | StringBuilder builder = new StringBuilder(); |
| | | builder.Append(StringResources.Language.ExceptionMessage); |
| | | builder.Append(ex.Message); |
| | | builder.Append(Environment.NewLine); |
| | |
| | | builder.Append(Environment.NewLine); |
| | | builder.Append(StringResources.Language.ExceptionTargetSite); |
| | | builder.Append(ex.TargetSite?.ToString()); |
| | | builder.Append(Environment.NewLine); |
| | | builder.Append(Environment.NewLine); |
| | | QuartzLogger.WriteLogToFile($"Error_{fileName}", builder.ToString()); |
| | | string log = builder.ToString(); |
| | | } |
| | | } |
| | | } |
| | |
| | | { |
| | | return Service.RollbackTaskStatusToLast(taskNum); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// åå
¥è¾é线åé¦ |
| | | /// </summary> |
| | | /// <param name="TargetAddress"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("SetPlcResponState"), AllowAnonymous] |
| | | public WebResponseContent SetPlcResponState([FromBody] string TargetAddress) |
| | | { |
| | | return Service.SetPlcResponState(TargetAddress); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读åè¾é线è¾é线åé¦ |
| | | /// </summary> |
| | | /// <param name="TargetAddress"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("GetPlcState"), AllowAnonymous] |
| | | public WebResponseContent GetPlcState([FromBody] string TargetAddress) |
| | | { |
| | | return Service.GetPlcState(TargetAddress); |
| | | } |
| | | } |
| | | } |
| | |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() |
| | | --- End of stack trace from previous location --- |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) |
| | | -------------------------------- |
| | | 2025/5/29 10:16:38| |
| | | Unable to cast object of type 'WIDESEAWCS_QuartzJob.CommonConveyorLine' to type 'WIDESEAWCS_QuartzJob.CommonStackerCrane'. |
| | | ãèªå®ä¹é误ãï¼Unable to cast object of type 'WIDESEAWCS_QuartzJob.CommonConveyorLine' to type 'WIDESEAWCS_QuartzJob.CommonStackerCrane'. |
| | | ãå¼å¸¸ç±»åãï¼InvalidCastException |
| | | ãå¼å¸¸ä¿¡æ¯ãï¼Unable to cast object of type 'WIDESEAWCS_QuartzJob.CommonConveyorLine' to type 'WIDESEAWCS_QuartzJob.CommonStackerCrane'. |
| | | ãå æ è°ç¨ãï¼ at WIDESEAWCS_TaskInfoService.TaskService.GetPlcState(String TargetAddress) in F:\å¤åºé¡¹ç®\广å·å¨è½¦æ®µï¼è½®å¯¹å项ç®ï¼\LunDuiYa\项ç®ä»£ç \WCS\WIDESEAWCS_Server\WIDESEAWCS_TaskInfoService\TaskService.cs:line 969 |
| | | at Castle.Proxies.Invocations.ITaskService_GetPlcState.InvokeMethodOnTarget() |
| | | at Castle.DynamicProxy.AbstractInvocation.Proceed() |
| | | at Castle.Proxies.IService`1Proxy_3.GetPlcState(String TargetAddress) |
| | | at WIDESEAWCS_WCSServer.Controllers.Task.TaskController.GetPlcState(String TargetAddress) in F:\å¤åºé¡¹ç®\广å·å¨è½¦æ®µï¼è½®å¯¹å项ç®ï¼\LunDuiYa\项ç®ä»£ç \WCS\WIDESEAWCS_Server\WIDESEAWCS_Server\Controllers\Task\TaskController.cs:line 78 |
| | | at lambda_method792(Closure , Object , Object[] ) |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker) |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() |
| | | --- End of stack trace from previous location --- |
| | | at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) |
| | |
| | | //"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": { |
| | | "PolicyName": "CorsIpAccess", //çç¥åç§° |
| | |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®æçå·ãèµ·å§å°ååWMS请æ±ä»»å¡ï¼å
¥åºçæ¬) |
| | | /// </summary> |
| | | /// <param name="palletCode">æçå·</param> |
| | | /// <param name="sourceAddress">èµ·å§å°å</param> |
| | | /// <returns></returns> |
| | | public Dt_Task? InBeforeCheck(int taskNum) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var config = _sys_ConfigService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var wmsBase = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.WMSIP_BASE)?.ConfigValue; |
| | | var requestTask = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.InTransferCheck)?.ConfigValue; |
| | | if (wmsBase == null || requestTask == null) |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddrss = wmsBase + requestTask; |
| | | |
| | | var result = HttpHelper.Post(wmsIpAddrss, new { taskNum = taskNum }.ToJsonString()); |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(result); |
| | | |
| | | if (!content.Status) |
| | | { |
| | | // wms失败 |
| | | throw new Exception(); |
| | | } |
| | | |
| | | |
| | | //todo ä¼å 妿ªæ¥è¯¢å°ä»»å¡åå¤ç |
| | | //if (content.Data != null) |
| | | //{ |
| | | var task = JsonConvert.DeserializeObject<Dt_Task>(content.Data.ToString()); |
| | | |
| | | Dt_Task? Relocationtask = null; |
| | | if (task.TaskNum != taskNum) |
| | | { |
| | | |
| | | BaseDal.AddData(task); |
| | | Relocationtask = BaseDal.QueryFirst(x => x.TaskNum == task.TaskNum); |
| | | } |
| | | //} |
| | | |
| | | if (Relocationtask != null) |
| | | { |
| | | return task; |
| | | } |
| | | else |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | throw new Exception($"请æ±å¼å¸¸ï¼{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | #region æ ¹æ®æçå·ãç«å°åWMS请æ±ä»»å¡ |
| | | /// <summary> |
| | | /// æ ¹æ®æçå·ãç«å°åWMS请æ±ä»»å¡ |
| | |
| | | if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup) |
| | | { |
| | | var stationinfo = _stationManagerRepository.QueryFirst(x => x.stationLocation == taskDTO.TargetAddress && x.Roadway == taskDTO.RoadWay); |
| | | |
| | | task.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | if (task.SourceAddress == "2009") |
| | | { |
| | | task.TaskState = (int)TaskOutStatusEnum.SC_OutFinish; |
| | | } |
| | | |
| | | task.CurrentAddress = taskDTO.RoadWay; |
| | | task.NextAddress = stationinfo.stationChildCode; |
| | | task.SourceAddress = taskDTO.SourceAddress; |
| | |
| | | using Newtonsoft.Json; |
| | | using SqlSugar; |
| | | using System.Diagnostics.CodeAnalysis; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using WIDESEAWCS_BasicInfoService; |
| | | using WIDESEAWCS_Common; |
| | |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob.DeviceBase; |
| | | using WIDESEAWCS_QuartzJob; |
| | | using WIDESEAWCS_QuartzJob.Models; |
| | | using WIDESEAWCS_QuartzJob.Repository; |
| | | using WIDESEAWCS_QuartzJob.Service; |
| | | using WIDESEAWCS_QuartzJob.DTO; |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | |
| | | task.wheels_mttype = item.wheels_mttype; |
| | | task.WheelsNewOrOld = item.WheelsNewOrOld; |
| | | task.WheelsLX = item.WheelsLX; |
| | | |
| | | |
| | | // 夿任å¡ç±»åæ¯å¦ä¸ºåºåºä»»å¡ |
| | | if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup) |
| | |
| | | List<Dt_Router> routers = _routerService.QueryNextRoutes(item.RoadWay, item.TargetAddress); |
| | | if (routers.Count > 0) |
| | | { |
| | | |
| | | // 设置任å¡ç¶æä¸ºåºåºæ°å»º |
| | | task.TaskState = (int)TaskOutStatusEnum.OutNew; |
| | | task.TaskState =(int)TaskOutStatusEnum.OutNew; |
| | | // 设置å½åå°å为æºå°å |
| | | task.CurrentAddress = item.SourceAddress; |
| | | // 设置ä¸ä¸ä¸ªå°å为第ä¸ä¸ªåä½ç½® |
| | | task.NextAddress = routers.FirstOrDefault().ChildPosi; |
| | | |
| | | if (item.SourceAddress == "2009") |
| | | { |
| | | task.TaskState = (int)TaskOutStatusEnum.SC_OutFinish; |
| | | // 设置ä¸ä¸ä¸ªå°å为第ä¸ä¸ªåä½ç½® |
| | | task.NextAddress = "2015"; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | |
| | | #endregion éåæ¹æ³ |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //===========================è½¦è½´ä¸æ===================== |
| | | public WebResponseContent GetFeedbackAxleloading() |
| | | { |
| | | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var config = _sys_ConfigService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var wmsBase = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.WMSIP_BASE)?.ConfigValue; |
| | | var completeTask = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.RequestAxleloading)?.ConfigValue; |
| | | if (wmsBase == null || completeTask == null) |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddress = wmsBase + completeTask; |
| | | var taskDto = new RequestTaskDto() |
| | | { |
| | | PalletCode = "1", |
| | | }; |
| | | var result = HttpHelper.PostAsync(wmsIpAddress,taskDto.ToJsonString()).Result; |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(result); |
| | | return content; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent UpdateAxleCurrentStatue(string CZTM) |
| | | { |
| | | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var config = _sys_ConfigService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var wmsBase = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.WMSIP_BASE)?.ConfigValue; |
| | | var completeTask = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.UpdateAxleCurrentStatue)?.ConfigValue; |
| | | if (wmsBase == null || completeTask == null) |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddress = wmsBase + completeTask; |
| | | var keys = new Dictionary<string, object>() |
| | | { |
| | | {"CZTM", CZTM} |
| | | }; |
| | | |
| | | |
| | | var taskDto = new RequestTaskDto() |
| | | { |
| | | PalletCode = CZTM, |
| | | }; |
| | | |
| | | |
| | | var result = HttpHelper.PostAsync(wmsIpAddress, taskDto.ToJsonString()).Result; |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(result); |
| | | return content; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent GetAGVTaskdistribution(string TargetAddress) |
| | | { |
| | | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var config = _sys_ConfigService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var wmsBase = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.WMSIP_BASE)?.ConfigValue; |
| | | var completeTask = config.FirstOrDefault(x => x.ConfigKey == SysConfigKeyConst.genAgvSchedulingTask)?.ConfigValue; |
| | | if (wmsBase == null || completeTask == null) |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddress = wmsBase + completeTask; |
| | | var taskDto = new RequestTaskDto() |
| | | { |
| | | Position = TargetAddress, |
| | | }; |
| | | |
| | | |
| | | var result = HttpHelper.PostAsync(wmsIpAddress, taskDto.ToJsonString()).Result; |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(result); |
| | | return content; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | |
| | | public WebResponseContent SetPlcResponState(string TargetAddress) |
| | | { |
| | | try |
| | | { |
| | | IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "1000"); |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)device; |
| | | DeviceProDTO? deviceProDTOt = conveyorLine.DeviceProDTOs.Find(x => x.DeviceChildCode == TargetAddress && x.DeviceProParamName == "ResponState"); |
| | | if (conveyorLine.Communicator.Write(deviceProDTOt.DeviceProAddress, (short)2)) |
| | | { |
| | | Console.Out.WriteLine("æåï¼ååºè½¦è½´çº¿æ«ç«¯agvåè´§å®æä¿¡å·ï¼2"); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | else |
| | | { |
| | | |
| | | bool st= conveyorLine.Communicator.Write(deviceProDTOt.DeviceProAddress, (short)3); |
| | | Console.Out.WriteLine($"ååºè½¦è½´çº¿æ«ç«¯agvåè´§å®æä¿¡å·å¤±è´¥ä¿¡æ¯ï¼åå
¥ï¼3,æ¯å¦æåï¼{st}"); |
| | | return WebResponseContent.Instance.Error(); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Console.Out.WriteLine($"ååºè½¦è½´çº¿æ«ç«¯agvåè´§å®æä¿¡å·å¤±è´¥ä¿¡æ¯ï¼æ
éä¿¡æ¯ï¼{ex.Message}"); |
| | | return WebResponseContent.Instance.Error(); |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent GetPlcState(string TargetAddress) |
| | | { |
| | | Dt_StationManager dt_Station=_stationManagerRepository.QueryFirst(x => x.stationLocation == TargetAddress); |
| | | if(dt_Station == null) |
| | | return WebResponseContent.Instance.Error("æªæ¾å°åè£
ä½ä¿¡æ¯ï¼"); |
| | | if(dt_Station.stationStatus=="0") |
| | | return WebResponseContent.Instance.Error("该åè£
ä½å·²è¢«ç¦ç¨ï¼ä¸å¯çæagvä»»å¡"); |
| | | |
| | | IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "1000"); |
| | | CommonConveyorLine conveyorLine = (CommonConveyorLine)device; |
| | | 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) |
| | | { |
| | | conveyorLine.Communicator.Write(deviceProDTOt2.DeviceProAddress,(short)1); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.Communicator.Write(deviceProDTOt2.DeviceProAddress, (short)2); |
| | | return WebResponseContent.Instance.Error("读åå°åè£
ä½ä¿¡å·åé¦ä¸å¯æ¾è´§ï¼ä¸å¯çæagvä»»å¡"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | if (conveyorLine != null) |
| | | { |
| | | List<Dt_StationManager> stationManagers = _stationManagerService.GetAllStationByDeviceCode(conveyorLine.DeviceCode); |
| | | |
| | | ConveyorLineTaskCommand command2 = new ConveyorLineTaskCommand(); |
| | | foreach (var station in stationManagers) |
| | | { |
| | | ConveyorLineTaskCommand command = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(station.stationChildCode); |
| | | |
| | | |
| | | DeviceProtocolDetailDTO? deviceProtocolDetails = conveyorLine.DeviceProtocolDetailDTOs.FirstOrDefault(x => x.DeviceProParamName == station.stationChildCode && x.ProtocalDetailValue == command.ConveyorLineSingal.ToString()); |
| | | |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | //WriteError("CommonConveyorLineJob", ex); |
| | | Console.Out.WriteLine(nameof(CommonConveyorLineJob) + ":" + ex.ToString()); |
| | | } |
| | | finally |
| | | { |
| | | //WriteDebug("CommonConveyorLineJob", "test"); |
| | | WriteDebug("CommonConveyorLineJob", "test"); |
| | | //Console.Out.WriteLine(DateTime.Now); |
| | | } |
| | | return; |
| | |
| | | if (task != null) |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.Number, task.PalletCode, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.NextAddress, stationInfo.stationChildCode); |
| | | |
| | | if ((task.TargetAddress == "2042" || task.TargetAddress == "2032") && task.TaskState == (int)TaskOutStatusEnum.SC_OutFinish) |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.TargetAddress, stationInfo.stationChildCode); |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.NextAddress, stationInfo.stationChildCode); |
| | | } |
| | | |
| | | //conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.NextAddress, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.Number, taskNew.PalletCode, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taskNew.NextAddress, stationInfo.stationChildCode); |
| | | |
| | | if ((taskNew.TargetAddress == "2042" || taskNew.TargetAddress == "2032") && taskNew.TaskState == (int)TaskOutStatusEnum.SC_OutFinish) |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taskNew.TargetAddress, stationInfo.stationChildCode); |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taskNew.NextAddress, stationInfo.stationChildCode); |
| | | } |
| | | //conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taskNew.NextAddress, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | |
| | | _taskService.UpdateTaskStatusToNext(taskNew); |
| | |
| | | //æ ¹æ®è½¦è½´ç¼åä½ç½® åå
¥å¯¹åºç®æ å°å |
| | | if (task.TargetAddress == stationInfo.stationChildCode) |
| | | { |
| | | WebResponseContent content = _taskService.RequestWheelsFlow(task.task_CZInfo).Result; |
| | | //WebResponseContent content = _taskService.RequestWheelsFlow(task.task_CZInfo).Result; |
| | | WebResponseContent content = _taskService.RequestWheelsFlow(task.PalletCode).Result; |
| | | if (content.Status) |
| | | { |
| | | string taraddress = content.Data.ToString(); // "2032"; |
| | | string taraddress = content.Data.ToString(); // "2032";SourceAddress |
| | | |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, taraddress, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | | 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); |
| | | 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}ï¼åWMSç³è¯·å»å失败ï¼åå ï¼{content.Message},åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.TargetAddress, task.TargetAddress, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | _taskService.UpdateTaskStatusToNext(task); |
| | | 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}ï¼æªæ¾å°,åå
¥ç³è¯ä¿¡æ
éï¼2"); |
| | | } |
| | | //_taskService.UpdatePosition(task.TaskNum, stationInfo.stationChildCode); |
| | | } |
| | |
| | | /// <param name="ProtocalDetailValue">线ä½å½åbool读ååç§»å°å</param> |
| | | public void RequestCZInfo(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, Dt_StationManager stationInfo) |
| | | { |
| | | var task = _taskService.QueryExecutingTaskByBarcode(command.Number, stationInfo.stationChildCode); |
| | | if (task == null) |
| | | WebResponseContent content = _taskService.GetFeedbackAxleloading(); |
| | | if (content.Status) |
| | | { |
| | | //todo æ¥è¯¢WMSè½¦è½´æ°æ®è¿å |
| | | Random random = new Random(20); |
| | | string cztm = "CZ00" + random.Next(); |
| | | //conveyorLine |
| | | //conveyorLine.SetValue(ConveyorLineDBName.Number, cztm, stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.Number, content.Data.ToString(), stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.CarType,"001", stationInfo.stationChildCode); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | } |
| | | else |
| | | { |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 2, stationInfo.stationChildCode); |
| | | } |
| | | } |
| | | |
| | |
| | | /// <param name="ProtocalDetailValue">线ä½å½åbool读ååç§»å°å</param> |
| | | public void RequestTakeCZ(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, Dt_StationManager stationInfo) |
| | | { |
| | | var task = _taskService.QueryExecutingTaskByBarcode(command.Number, stationInfo.stationChildCode); |
| | | if (task == null) |
| | | |
| | | WebResponseContent content = _taskService.UpdateAxleCurrentStatue(command.Number); |
| | | if (content.Status) |
| | | { |
| | | //conveyorLine |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 1, stationInfo.stationChildCode); |
| | | Console.Out.WriteLine("æåï¼ååºè½¦è½´çº¿æ«ç«¯çæagvåè´§ä»»å¡ï¼åé¦è¾é线信å·ï¼1"); |
| | | } |
| | | /*else |
| | | { |
| | | var log = $"ã{conveyorLine.DeviceName}ã,车轴æ¡ç ï¼{command.Number}ï¼æ´æ°å¤±è´¥åå ï¼{content.Message}"; |
| | | WriteInfo(conveyorLine.DeviceName, log); |
| | | conveyorLine.SetValue(ConveyorLineDBName.ResponState, 3, stationInfo.stationChildCode); |
| | | }*/ |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// agvç«å°ç³è¯·åæ |
| | | /// </summary> |
| | | /// <param name="conveyorLine">è¾é线å®ä¾å¯¹è±¡</param> |
| | | /// <param name="command">读åç请æ±ä¿¡æ¯</param> |
| | | /// <param name="childDeviceCode">å设å¤ç¼å·</param> |
| | | /// <param name="ProtocalDetailValue">线ä½å½åbool读ååç§»å°å</param> |
| | | public void RequestagvStation(CommonConveyorLine conveyorLine, ConveyorLineTaskCommand command, Dt_StationManager stationInfo) |
| | | { |
| | | DeviceProDTO? deviceProDTOt = conveyorLine.DeviceProDTOs.Find(x => x.DeviceChildCode == "3022" && x.DeviceProParamName == "Number"); |
| | | string Number = conveyorLine.Communicator.Read<string>(deviceProDTOt.DeviceProAddress); |
| | | if (Number != "" && Number!=null) |
| | | { |
| | | //è°åwmsæ¥å£ç³è¯·agvä»»å¡ |
| | | WebResponseContent content = _taskService.GetAGVTaskdistribution(stationInfo.stationLocation); |
| | | |
| | | } |
| | | } |
| | | #endregion |
| | |
| | | public string CarType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è½¦è½®å· |
| | | /// æ¡ç |
| | | /// </summary> |
| | | [DataLength(40)] |
| | | public string Number { get; set; } |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | WriteError("CommonConveyorLineJob", "test", ex); |
| | | WriteError("CommonConveyorLineJob", ex); |
| | | ConsoleHelper.WriteErrorLine($"{ex.Message}"); |
| | | //Console.WriteLine(nameof(CommonStackerCraneJob) + ":" + ex.ToString()); |
| | | } |
| | |
| | | { |
| | | task = _taskService.QueryStackerCraneInTask(commonStackerCrane.DeviceCode); |
| | | } |
| | | |
| | | if (task != null && task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.InboundGroup) |
| | | { |
| | | var relocation = _taskService.InBeforeCheck(task.TaskNum); |
| | | |
| | | if (relocation != null) |
| | | { |
| | | return relocation; |
| | | } |
| | | } |
| | | |
| | | return task; |
| | | } |
| | | |
| | |
| | | <el-form-item label="ç«å°" prop="station"> |
| | | <el-select v-model="form.station" placeholder="è¯·éæ©ä¸æå£"> |
| | | <el-option label="䏿å£(2009)" value="2009" /> |
| | | <el-option label="左侧䏿å£(2032)" value="2032" /> |
| | | <el-option label="å³ä¾§ä¸æå£(2042)" value="2042" /> |
| | | <el-option label="1å·åè£
æº(2032)" value="2032" /> |
| | | <el-option label="2å·åè£
æº(2042)" value="2042" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | form: { |
| | | palletCode: "", |
| | | station: "", |
| | | |
| | | outtype:"" |
| | | }, |
| | | show: false, |
| | | }; |
| | | }, |
| | | methods: { |
| | | open(palletCode) { |
| | | open(palletCode,outtype) { |
| | | this.show = true; |
| | | this.form.palletCode = palletCode; |
| | | this.form.outtype = outtype; |
| | | }, |
| | | submit() { |
| | | this.$emit("parentCall", ($vue) => { |
| | |
| | | MainData: { |
| | | station: this.form.station, |
| | | palletCode: this.form.palletCode, |
| | | outtype:this.form.outtype, |
| | | }, |
| | | }; |
| | | this.http.post("/api/Task/CreateAndSendOutboundTask",parm, true).then((x) => { |
| | |
| | | this.$Message.success("æå"); |
| | | this.form.palletCode=''; |
| | | this.form.station=''; |
| | | this.form.outtype=''; |
| | | this.show = false; |
| | | $vue.refresh(); |
| | | } |
| | |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { |
| | | |
| | | var btnHandOutbound = this.buttons.find(x => x.value == "HandRollback"); |
| | | if (btnHandOutbound != null) { |
| | | btnHandOutbound.onClick = function () { |
| | | let row = this.$refs.table.getSelected() //è·åéä¸çè¡ |
| | | if (row <= 0) { |
| | | //å¦ææ²¡æéä¸è¡ |
| | | this.$Message.error('è¯·éæ©ä¸è¡æ°æ®') |
| | | return |
| | | } |
| | | let TaskId = row[0].taskId |
| | | this.http.get(`/api/Task_Hty/TaskRollback?input=${TaskId}`, {}, "æ£å¨åæ»ä»»å¡").then((res) => { |
| | | //示ä¾ï¼è°ç¨åå°æ¥å£ |
| | | if (res.status) { |
| | | this.$Message.success('ä»»å¡å®æ'); |
| | | this.refresh(); |
| | | } else { |
| | | this.$Message.error(res.message) //é误æç¤º |
| | | this.refresh(); |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //æ¡æ¶åå§åé
ç½®åï¼ |
| | | // let TaskHandCompleteBtn=this.buttons.find(x=>x.value=='TaskHandComplete'); |
| | | // if(TaskHandCompleteBtn){ |
| | |
| | | <template> |
| | | <div class="home-contianer"> |
| | | <div class="qhuan"> |
| | | <div v-for="item in datalist"> |
| | | |
| | | <div v-if="item.stationLocation === '2033'"> |
| | | |
| | | <el-button class="bun1" type="success" v-if="item.stationStatus === '1'" |
| | | v-on:click="selectss(1)">1å·åè£
æº</el-button> |
| | | |
| | | <el-button class="bun1" type="danger" v-if="item.stationStatus === '0'" |
| | | v-on:click="selectss(1)">1å·åè£
æº</el-button> |
| | | <p> |
| | | 2å·åè£
æº : |
| | | <el-tag type="success" v-if="item.stationStatus === '1'">å¯ç¨</el-tag> |
| | | <el-tag type="danger" v-if="item.stationStatus === '0'">ç¦ç¨</el-tag> |
| | | </p> |
| | | </div> |
| | | |
| | | |
| | | <div v-if="item.stationLocation === '2043'"> |
| | | <el-button class="bun2" type="success" v-if="item.stationStatus === '1'" |
| | | v-on:click="selectss(2)">2å·åè£
æº</el-button> |
| | | <el-button class="bun2" type="danger" v-if="item.stationStatus === '0'" |
| | | v-on:click="selectss(2)">2å·åè£
æº</el-button> |
| | | <p> |
| | | 1å·åè£
æº : |
| | | <el-tag type="success" v-if="item.stationStatus === '1'">å¯ç¨</el-tag> |
| | | <el-tag type="danger" v-if="item.stationStatus === '0'">ç¦ç¨</el-tag> |
| | | </p> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </template> |
| | | <script> |
| | | import { ref, onMounted, onUnmounted } from 'vue'; |
| | | import axios from 'axios'; |
| | | export default { |
| | | components: {}, |
| | | data() { |
| | | return { |
| | | datalist: [], |
| | | url: "http://192.168.12.189/:8098/api/", |
| | | |
| | | }; |
| | | }, |
| | | mounted() { |
| | | // setInterval(() => { |
| | | this.AddTask(); |
| | | // }, 5000); |
| | | |
| | | }, |
| | | created() { |
| | | // this.AddTask(); |
| | | // this.selList(); |
| | | }, |
| | | |
| | | methods: { |
| | | //忢 |
| | | selectss(selvelue) { |
| | | |
| | | n: 90, |
| | | value1: '1', |
| | | }; |
| | | axios.post("http://172.21.1.139:9291/api/StationManager/UpdateStation",{MainData: { |
| | | stationid: selvelue, |
| | | }}) |
| | | .then(response => { |
| | | if(response.data.status){ |
| | | this.AddTask(); |
| | | }else{ |
| | | alert(selvelue) |
| | | } |
| | | |
| | | |
| | | }) |
| | | }, |
| | | AddTask() { |
| | | axios.post("http://172.21.1.139:9291/api/StationManager/GetStation") |
| | | .then(response => { |
| | | if(response.status){ |
| | | this.datalist = response.data.data; |
| | | } |
| | | |
| | | }) |
| | | } |
| | | |
| | | }, |
| | | setup() { |
| | | let open = (item) => { |
| | | window.open(item.url, '_blank'); |
| | | }; |
| | | let interval; |
| | | onMounted(() => { |
| | | |
| | | // interval = setInterval(() => { |
| | | // chart2.xAxis[0].data.splice(0, 1); |
| | | // let lastYear = |
| | | // chart2.xAxis[0].data[chart2.xAxis[0].data.length - 1] * 1 + 1; |
| | | // chart2.xAxis[0].data.push(lastYear); |
| | | |
| | | // chart2.series[0].data.splice(0, 1); |
| | | // chart2.series[0].data.push(~~(Math.random() * 1000)); |
| | | |
| | | // chart2.series[1].data.splice(0, 1); |
| | | // chart2.series[1].data.push(~~(Math.random() * 1000)); |
| | | // $chart2.setOption(chart2); |
| | | // }, 2000); |
| | | }); |
| | | onUnmounted(() => { |
| | | |
| | | }); |
| | | return { open }; |
| | | }, |
| | | destroyed() { |
| | | props: { |
| | | value: String |
| | | } |
| | | }; |
| | | // window.addEventListener("resize", function () { |
| | | // $chart2.setOption(chart2); |
| | | // }); |
| | | |
| | | } |
| | | </script> |
| | | <style lang="less" scoped> |
| | | .home-contianer { |
| | | padding: 6px; |
| | | background: #eee; |
| | | width: 100%; |
| | | height: 100%; |
| | | // max-width: 800px; |
| | | // position: absolute; |
| | | top: 0; |
| | | right: 0; |
| | | left: 0; |
| | | margin: 0 auto; |
| | | |
| | | .h-top { |
| | | display: flex; |
| | | .h-top-left { |
| | | height: 100%; |
| | | width: 300px; |
| | | background: white; |
| | | } |
| | | height: 300px; |
| | | } |
| | | .h-top > div { |
| | | border: 1px solid #e8e7e7; |
| | | border-radius: 5px; |
| | | // margin: 6px; |
| | | } |
| | | .h-top-center { |
| | | height: 100%; |
| | | background: white; |
| | | margin: 0 6px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | flex: 1; |
| | | .item1 .num { |
| | | padding-top: 28px; |
| | | } |
| | | .item2 .num { |
| | | padding-bottom: 20px; |
| | | } |
| | | |
| | | .n-item { |
| | | width: 100%; |
| | | height: 100%; |
| | | text-align: center; |
| | | cursor: pointer; |
| | | // display: flex; |
| | | .item { |
| | | border-right: 1px solid #e5e5e5; |
| | | width: 33.3333333%; |
| | | float: left; |
| | | height: 50%; |
| | | border-bottom: 1px solid #e5e5e5; |
| | | padding: 47px 0; |
| | | font-size: 13px; |
| | | } |
| | | .item:hover { |
| | | background: #f9f9f9; |
| | | cursor: pointer; |
| | | } |
| | | .item:last-child { |
| | | border-right: 0; |
| | | } |
| | | .item3, |
| | | .item6 { |
| | | border-right: 0; |
| | | } |
| | | .num { |
| | | word-break: break-all; |
| | | color: #282727; |
| | | font-size: 30px; |
| | | transition: transform 0.8s; |
| | | } |
| | | .num:hover { |
| | | color: #55ce80; |
| | | transform: scale(1.2); |
| | | } |
| | | .text { |
| | | font-size: 13px; |
| | | color: #777; |
| | | } |
| | | } |
| | | } |
| | | .h-top-right { |
| | | // flex: 1; |
| | | |
| | | width: 400px; |
| | | height: 100%; |
| | | background: white; |
| | | } |
| | | .h3 { |
| | | padding: 7px 15px; |
| | | font-weight: 500; |
| | | background: #fff; |
| | | border-bottom: 1px dotted #d4d4d4; |
| | | } |
| | | } |
| | | .task-table { |
| | | table { |
| | | width: 100%; |
| | | .thead { |
| | | font-weight: bold; |
| | | } |
| | | tr { |
| | | cursor: pointer; |
| | | td { |
| | | border-bottom: 1px solid #f3f3f3; |
| | | padding: 9px 8px; |
| | | font-size: 12px; |
| | | } |
| | | } |
| | | tr:hover { |
| | | background: #eee; |
| | | } |
| | | } |
| | | } |
| | | .h-chart { |
| | | height: 340px; |
| | | margin: 6px 0px; |
| | | display: flex; |
| | | .h-left-grid { |
| | | width: 300px; |
| | | height: 100%; |
| | | background: white; |
| | | display: inline-block; |
| | | .name { |
| | | margin-left: 7px; |
| | | } |
| | | .item:hover { |
| | | background: #f9f9f9; |
| | | cursor: pointer; |
| | | } |
| | | .item { |
| | | padding: 22px 14px; |
| | | float: left; |
| | | width: 50%; |
| | | height: 33.33333%; |
| | | border-bottom: 1px solid #eee; |
| | | border-right: 1px solid #eee; |
| | | i { |
| | | font-size: 30px; |
| | | } |
| | | .desc { |
| | | font-size: 12px; |
| | | color: #c3c3c3; |
| | | padding: 5px 0 0 4px; |
| | | line-height: 1.5; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | #h-chart2 { |
| | | border-radius: 3px; |
| | | background: white; |
| | | padding-top: 10px; |
| | | height: 100%; |
| | | width: 0; |
| | | flex: 1; |
| | | margin: 0 7px; |
| | | } |
| | | #h-chart3 { |
| | | border-radius: 3px; |
| | | padding: 10px 10px 0 10px; |
| | | background: white; |
| | | // padding-top: 10px; |
| | | height: 100%; |
| | | |
| | | width: 400px; |
| | | } |
| | | </style> |
| | |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "id":"", |
| | | "carType": "", |
| | | "mttype": "", |
| | | "neworold": "", |
| | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | "carType":"", |
| | | mttype:"" |
| | | "mttype":"" |
| | | }); |
| | | const searchFormOptions = 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({ |
| | | "Wheels_code": "", |
| | | "Wheels_ldxh": "", |
| | | "Wheels_mttype": "", |
| | | "gkcc": "", |
| | | wheels_NewOrOld:"" |
| | | "id": "", |
| | | // "CHEXING": "", |
| | | // "MTTYPE": "", |
| | | "CZTM":"", |
| | | "CurrentStatue":'', |
| | | }); |
| | | const editFormOptions = ref([ |
| | | // [ |
| | | // { "title": "车轴æ¡ç ", "field": "CZTM", type: "text" }, |
| | | // { "title": "车å", "field": "CHEXING", type: "text" }, |
| | | // { "title": "卿屿§(M/T)", "field": "MTTYPE", type: "text" }, |
| | | // ], |
| | | [ |
| | | { "title": "车轴æ¡ç ", "field": "CZTM", type: "text" }, |
| | | { "title": "车å", "field": "CHEXING", type: "text" }, |
| | | { "title": "卿屿§(M/T)", "field": "MTTYPE", type: "text" }, |
| | | { "title": "车轴å·", "field": "cztm", type: "string" }, |
| | | ], |
| | | [ |
| | | { "title": "车轴å·", "field": "czh", type: "text" }, |
| | | { "title": "轮对æ¡ç ", "field": "LDTM", "type": "select",dataKey:"NewOld",data:[] }, |
| | | ] |
| | | { "title": "ç¶æ", "field": "currentStatue", "type": "select",dataKey:"InboundState",data:[] }, |
| | | ], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | CZTM: "" |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/inbound/Dt_CZInfo_mes_hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'id', |
| | | footer: "Foots", |
| | | cnName: '车轴信æ¯', |
| | | name: 'inbound/Dt_CZInfo_mes_hty', |
| | | url: "/Dt_CZInfo_mes_hty/", |
| | | sortName: "id" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "Wheels_code": "", |
| | | "Wheels_ldxh": "", |
| | | "Wheels_mttype": "", |
| | | "gkcc": "", |
| | | wheels_NewOrOld:"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "车轴æ¡ç ", "field": "CZTM", type: "text" }, |
| | | { "title": "车å", "field": "CHEXING", type: "text" }, |
| | | { "title": "卿屿§(M/T)", "field": "MTTYPE", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "车轴å·", "field": "czh", type: "text" }, |
| | | { "title": "轮对æ¡ç ", "field": "LDTM", "type": "select",dataKey:"NewOld",data:[] }, |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | cztm:"", |
| | | chexing:"", |
| | | ldtm:"", |
| | | currentStatue:"", |
| | | mttype:"", |
| | | czxh:"", |
| | | createDate:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轴æ¡ç ", "field": "cztm", type: "text" }, |
| | | { "title": "车å", "field": "chexing", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "轮对æ¡ç ", "field": "ldtm", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "ç¶æ", "field": "currentStatue", type: "select", dataKey: "InboundState", data: [] }, |
| | | { "title": "卿屿§", "field": "mttype", type: "text" }, |
| | | { "title": "车轴åå·", "field": "czxh", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'id', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'cztm', title: '车轴æ¡ç ', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'czh', title: '车轴å·', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'ldtm', title: '轮对æ¡ç ', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'currentStatue', title: 'ç¶æ', type: 'string', width: 75, align: 'left',bind: { key: "InboundState", data: [] } }, |
| | | { field: 'chexing', title: '车å', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'czxh', title: '车轴åå·', type: 'int', width: 110, align: 'left' }, |
| | | { field: 'mttype', title: 'å¨/æ', type: 'string', width: 60, align: 'left' }, |
| | | { field: 'zlzdj', title: '左轮座ç级', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'ylzdj', title: 'å³è½®åº§ç级', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zlzzj', title: '左轮座ç´å¾', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'ylzzj', title: 'å³è½®åº§ç´å¾', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zlza', title: '左轮座ç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zlzb', title: '左轮座ç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zlzc', title: '左轮座ç´å¾C', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'ylza', title: 'å³è½®åº§ç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'ylzb', title: 'å³è½®åº§ç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'ylzc', title: 'å³è½®åº§ç´å¾C', 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' }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormFields = ref({ |
| | | Wheels_code:"", |
| | | Wheels_CarType:"", |
| | | wheels_ldxh:"", |
| | | wheels_NewOrOld:"", |
| | | wheels_mttype:"", |
| | | wheelsProps:"", |
| | | wheels_level:"", |
| | | creater:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮å·", "field": "Wheels_Num", type: "text" }, |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "text" }, |
| | | { "title": "车å", "field": "Wheels_CarType", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "è½®å", "field": "wheels_ldxh", type: "text" }, |
| | | ], |
| | | // [ |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | |
| | | // ] |
| | | [ |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "text" }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "creater", type: "datetime" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'wheels_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/inbound/Dt_InZdp_mes.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'zdp_ID', |
| | | footer: "Foots", |
| | | cnName: 'å¶å¨çä¿¡æ¯', |
| | | name: 'inbound/Dt_InZdp_mes', |
| | | url: "/Dt_InZdp_mes/", |
| | | sortName: "zdp_ID" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "Wheels_code": "", |
| | | "Wheels_ldxh": "", |
| | | "Wheels_mttype": "", |
| | | "gkcc": "", |
| | | "wheels_NewOrOld":"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "å¶å¨çå·", "field": "Zdp_ZPH", type: "text" }, |
| | | { "title": "车å", "field": "Zdp_chexing", type: "text" }, |
| | | { "title": "卿屿§(M/T)", "field": "Wheels_mttype", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ¯ååå¼", "field": "gkcc", type: "text" }, |
| | | { "title": "æ°/æ§", "field": "Zdp_neworold", "type": "select",dataKey:"NewOld",data:[] }, |
| | | { "title": "ç级", "field": "wheels_level", "type": "select",dataKey:"Level",data:[] } |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | Zdp_ZPH: "" |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "å¶å¨çå·", "field": "Zdp_ZPH", type: "text" }, |
| | | ], |
| | | // [ |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | |
| | | // ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'zdp_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'zdp_code', title: 'å¶å¨çæ¡ç ', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_ZPH', title: 'å¶å¨çå·', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_CurrentStatue', title: 'ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "whelInboundState", data: [] } }, |
| | | { field: 'zdp_chexing', title: '车å', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'zdp_neworold', title: 'æ°æ§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_POS', title: 'ä½ç½®(ä¾§/ä¸)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_LSXH', title: 'èºæ åå·', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_MAT', title: 'æè´¨(é¸é¢)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_SITE', title: '产å°(è¿å£/å½äº§)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA1', title: 'æ¯åç´å¾A1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA2', title: 'æ¯åç´å¾A2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA3', title: 'æ¯åç´å¾A3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA', title: 'æ¯åç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB1', title: 'æ¯åç´å¾B1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB2', title: 'æ¯åç´å¾B2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB3', title: 'æ¯åç´å¾B3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB', title: 'æ¯åç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC1', title: 'æ¯åç´å¾C1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC2', title: 'æ¯åç´å¾C2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC3', title: 'æ¯åç´å¾C3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC', title: 'æ¯åç´å¾C', type: 'string', width: 100, align: 'left' }, |
| | | { 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' } |
| | | ]); |
| | | |
| | | 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/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/inbound/Dt_InZdp_mes_hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'zdp_ID', |
| | | footer: "Foots", |
| | | cnName: 'å¶å¨çåå²ä¿¡æ¯', |
| | | name: 'inbound/Dt_InZdp_mes_hty', |
| | | url: "/Dt_InZdp_mes_hty/", |
| | | sortName: "zdp_ID" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "Wheels_code": "", |
| | | "Wheels_ldxh": "", |
| | | "Wheels_mttype": "", |
| | | "gkcc": "", |
| | | "wheels_NewOrOld":"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "å¶å¨çå·", "field": "Zdp_ZPH", type: "text" }, |
| | | { "title": "车å", "field": "Zdp_chexing", type: "text" }, |
| | | { "title": "卿屿§(M/T)", "field": "Wheels_mttype", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ¯ååå¼", "field": "gkcc", type: "text" }, |
| | | { "title": "æ°/æ§", "field": "Zdp_neworold", "type": "select",dataKey:"NewOld",data:[] }, |
| | | { "title": "ç级", "field": "wheels_level", "type": "select",dataKey:"Level",data:[] } |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | Zdp_ZPH: "" |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "å¶å¨çå·", "field": "Zdp_ZPH", type: "text" }, |
| | | ], |
| | | // [ |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | |
| | | // ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'zdp_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'zdp_ZPH', title: 'å¶å¨çå·', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_CurrentStatue', title: 'ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "InboundState", data: [] } }, |
| | | { field: 'zdp_chexing', title: '车å', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'zdp_neworold', title: 'æ°æ§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_POS', title: 'ä½ç½®(ä¾§/ä¸)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_LSXH', title: 'èºæ åå·', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_MAT', title: 'æè´¨(é¸é¢)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_SITE', title: '产å°(è¿å£/å½äº§)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA1', title: 'æ¯åç´å¾A1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA2', title: 'æ¯åç´å¾A2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA3', title: 'æ¯åç´å¾A3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA', title: 'æ¯åç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB1', title: 'æ¯åç´å¾B1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB2', title: 'æ¯åç´å¾B2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB3', title: 'æ¯åç´å¾B3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB', title: 'æ¯åç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC1', title: 'æ¯åç´å¾C1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC2', title: 'æ¯åç´å¾C2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC3', title: 'æ¯åç´å¾C3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC', title: 'æ¯åç´å¾C', type: 'string', width: 100, align: 'left' }, |
| | | { 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: 'creater', title: 'å建æ¶é´', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'finishDate', title: '宿æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'operateType', title: '宿æ¹å¼', type: 'int', width: 100, align: 'left',bind: { key: "OperateType", data: [] } }, |
| | | ]); |
| | | |
| | | 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/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/outbound/Dt_OutWheels_hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'wheels_ID', |
| | | footer: "Foots", |
| | | cnName: '车轮信æ¯', |
| | | name: 'outbound/Dt_OutWheels_hty', |
| | | url: "/Dt_OutWheels_hty/", |
| | | sortName: "wheels_ID" |
| | | }); |
| | | const editFormFields = ref({ |
| | | "Wheels_code": "", |
| | | "Wheels_ldxh": "", |
| | | "Wheels_mttype": "", |
| | | "gkcc": "", |
| | | wheels_NewOrOld:"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "text" }, |
| | | { "title": "车å", "field": "Wheels_ldxh", type: "text" }, |
| | | { "title": "卿屿§(M/T)", "field": "Wheels_mttype", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ¯ååå¼", "field": "gkcc", type: "text" }, |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", "type": "select",dataKey:"NewOld",data:[] }, |
| | | { "title": "ç级", "field": "wheels_level", "type": "select",dataKey:"Level",data:[] } |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | Wheels_code:"", |
| | | Wheels_CarType:"", |
| | | wheels_ldxh:"", |
| | | wheels_NewOrOld:"", |
| | | wheels_mttype:"", |
| | | wheelsProps:"", |
| | | wheels_level:"", |
| | | creater:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "text" }, |
| | | { "title": "车å", "field": "Wheels_CarType", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "è½®å", "field": "wheels_ldxh", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "text" }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "creater", type: "datetime" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'wheels_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'wheels_code', title: '车轮ç ', type: 'string', width: 110, align: 'left' }, |
| | | //{ 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: 'wheels_ldxh', title: 'è½®å', type: 'string', width: 110, align: 'left' }, |
| | | { field: 'wheels_CurrentStatue', title: 'ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "InboundState", data: [] } }, |
| | | { field: 'wheels_ldtm', title: '轮对æ¡ç ', type: 'string', width: 120, align: 'left' }, |
| | | { field: 'wheels_CarType', title: '车å', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'wheels_psj', title: 'é
å±å±', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'wheels_CarNo', title: '车ç»', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_ldh', title: '轮对å·', type: 'string', sort: true, 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_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', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_gkzja', title: 'æ¯åaçé¢åå¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_gkzjb', title: 'æ¯åbçé¢åå¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_gkzjc', title: 'æ¯åcçé¢åå¼', type: 'string', sort: true, width: 100, align: 'left' }, |
| | | { field: 'wheels_gkcc', title: 'æ¯ååå¼', type: 'string', sort: true, 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_LYH', title: 'è½®ç¼', type: 'string', width: 100, align: 'left' }, |
| | | { 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' }, |
| | | ]); |
| | | |
| | | 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/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/outbound/Dt_OutZdp_hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'zdp_ID', |
| | | footer: "Foots", |
| | | cnName: 'å¶å¨çä¿¡æ¯', |
| | | name: 'outbound/Dt_OutZdp_hty', |
| | | url: "/Dt_OutZdp_hty/", |
| | | sortName: "zdp_ID" |
| | | }); |
| | | const editFormFields = ref({ |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | //Zdp_ZPH: "" |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | // [ |
| | | // { "title": "å¶å¨çå·", "field": "Zdp_ZPH", type: "text" }, |
| | | // ], |
| | | // [ |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] },Zdp_code |
| | | |
| | | // ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'zdp_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'zdp_code', title: 'å¶å¨çæ¡ç ', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_ZPH', title: 'å¶å¨çå·', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_Location', title: 'åºä½', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_chexing', title: '车å', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'zdp_neworold', title: 'æ°æ§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_POS', title: 'ä½ç½®(ä¾§/ä¸)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_LSXH', title: 'èºæ åå·', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_MAT', title: 'æè´¨(é¸é¢)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_SITE', title: '产å°(è¿å£/å½äº§)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA1', title: 'æ¯åç´å¾A1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA2', title: 'æ¯åç´å¾A2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA3', title: 'æ¯åç´å¾A3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA', title: 'æ¯åç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB1', title: 'æ¯åç´å¾B1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB2', title: 'æ¯åç´å¾B2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB3', title: 'æ¯åç´å¾B3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB', title: 'æ¯åç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC1', title: 'æ¯åç´å¾C1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC2', title: 'æ¯åç´å¾C2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC3', title: 'æ¯åç´å¾C3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC', title: 'æ¯åç´å¾C', type: 'string', width: 100, align: 'left' }, |
| | | { 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' } |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | const editFormOptions = ref([ |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | wheels_Location:"" |
| | | |
| | | Wheels_code:"", |
| | | Wheels_CarType:"", |
| | | wheels_ldxh:"", |
| | | wheels_NewOrOld:"", |
| | | wheels_mttype:"", |
| | | wheelsProps:"", |
| | | wheels_level:"", |
| | | createDate:"", |
| | | wheels_Location:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "text" }, |
| | | { "title": "车å", "field": "Wheels_CarType", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "è½®å", "field": "wheels_ldxh", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "text" }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | { "title": "åºä½å·", "field": "wheels_Location", type: "text" }, |
| | | |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | { 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_InDate', title: 'å
¥åºæ¥æ', type: 'string',width: 100, align: 'left' }, |
| | | { field: 'creater', 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' }, |
| | | ]); |
| | | |
| | |
| | | const editFormOptions = ref([ |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | wheels_Location:"" |
| | | |
| | | wheel_code:"", |
| | | model:"", |
| | | axes_type:"", |
| | | repair_item:"", |
| | | wheels_mttype:"", |
| | | dqtz_state:"", |
| | | venderno:"", |
| | | wheels_Location:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "wheel_code", type: "text" }, |
| | | { "title": "车å", "field": "model", type: "text" }, |
| | | { "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": "locate", type: "text" }, |
| | | |
| | | { "title": "æ°/æ§", "field": "repair_item", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "dqtz_state", type: "text" }, |
| | | { "title": "ç级", "field": "venderno", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "åºä½å·", "field": "wheels_Location", type: "text" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormFields = ref({ |
| | | Wheels_code:"", |
| | | Wheels_CarType:"", |
| | | wheels_ldxh:"", |
| | | wheels_NewOrOld:"", |
| | | wheels_mttype:"", |
| | | wheelsProps:"", |
| | | wheels_level:"", |
| | | creater:"", |
| | | wheels_Location:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "车轮æ¡ç ", "field": "Wheels_code", type: "text" }, |
| | | { "title": "车å", "field": "Wheels_CarType", type: "select", dataKey: "StockState", data: [] }, |
| | | { "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "车å", "field": "Wheels_CarType", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "è½®å", "field": "wheels_ldxh", type: "text" }, |
| | | ], |
| | | [ |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] }, |
| | | |
| | | { "title": "æ°/æ§", "field": "wheels_NewOrOld", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "卿屿§", "field": "wheels_mttype", type: "text" }, |
| | | { "title": "屿§", "field": "wheelsProps", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "ç级", "field": "wheels_level", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "creater", type: "datetime" }, |
| | | { "title": "åºä½å·", "field": "wheels_Location", type: "text" }, |
| | | ] |
| | | ]); |
| | | const columns = ref([ |
| | |
| | | { field: 'creater', title: 'å建æ¶é´', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'finishWheelDate', title: '宿æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'operateType', title: '宿æ¹å¼', type: 'int', width: 100, align: 'left',bind: { key: "OperateType", data: [] } }, |
| | | { field: 'operateType', title: '宿æ¹å¼', type: 'int', width: 100, align: 'left',bind: { key: "OperateType", data: [] } |
| | | }, |
| | | ]); |
| | | |
| | | const detail = ref({ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/stock/Dt_ZdpStock.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'zdp_ID', |
| | | footer: "Foots", |
| | | cnName: 'å¶å¨çä¿¡æ¯', |
| | | name: 'stock/Dt_ZdpStock', |
| | | url: "/Dt_ZdpStock/", |
| | | sortName: "zdp_ID" |
| | | }); |
| | | const editFormFields = ref({ |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | zdp_code:"", |
| | | zdp_chexing:"", |
| | | zdp_POS:"", |
| | | zdp_neworold:"", |
| | | createDate:"", |
| | | zdp_Location:"", |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "å¶å¨çæ¡ç ", "field": "zdp_code", type: "text" }, |
| | | { "title": "车å", "field": "zdp_chexing", type: "select", dataKey: "traintype_names", data: [] }, |
| | | //{ "title": "åºåç±»å", "field": "StockType", type: "select", dataKey: "GroupType", data: [] }, |
| | | { "title": "ä½ç½®(ä¾§/ä¸)", "field": "zdp_POS", type: "text" }, |
| | | ], |
| | | [ |
| | | { "title": "æ°/æ§", "field": "zdp_neworold", type: "select", dataKey: "NewOld", data: [] }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | { "title": "åºä½å·", "field": "zdp_Location", type: "text" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'zdp_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'zdp_code', title: 'å¶å¨çæ¡ç ', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_ZPH', title: 'å¶å¨çå·', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_CurrentStatue', title: 'ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "CurrentStatue", data: [] } }, |
| | | { field: 'zdp_Location', title: 'åºä½', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_chexing', title: '车å', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'zdp_neworold', title: 'æ°æ§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_POS', title: 'ä½ç½®(ä¾§/ä¸)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_LSXH', title: 'èºæ åå·', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_MAT', title: 'æè´¨(é¸é¢)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_SITE', title: '产å°(è¿å£/å½äº§)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA1', title: 'æ¯åç´å¾A1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA2', title: 'æ¯åç´å¾A2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA3', title: 'æ¯åç´å¾A3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA', title: 'æ¯åç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB1', title: 'æ¯åç´å¾B1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB2', title: 'æ¯åç´å¾B2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB3', title: 'æ¯åç´å¾B3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB', title: 'æ¯åç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC1', title: 'æ¯åç´å¾C1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC2', title: 'æ¯åç´å¾C2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC3', title: 'æ¯åç´å¾C3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC', title: 'æ¯åç´å¾C', type: 'string', width: 100, align: 'left' }, |
| | | { 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: 'creater', title: 'å建人', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, 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/widesea_wms/invoices/Dt_InboundOrder.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/widesea_wms/stock/Dt_ZdpStock_hty.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'zdp_ID', |
| | | footer: "Foots", |
| | | cnName: 'å¶å¨çåºååå²ä¿¡æ¯', |
| | | name: 'stock/Dt_ZdpStock_hty', |
| | | url: "/Dt_ZdpStock_hty/", |
| | | sortName: "zdp_ID" |
| | | }); |
| | | const editFormFields = ref({ |
| | | |
| | | }); |
| | | const editFormOptions = ref([ |
| | | |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | //Zdp_ZPH: "" |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | // [ |
| | | // { "title": "å¶å¨çå·", "field": "Zdp_ZPH", type: "text" }, |
| | | // ], |
| | | // [ |
| | | // { "title": "ç产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] },Zdp_code |
| | | |
| | | // ] |
| | | ]); |
| | | const columns = ref([ |
| | | { field: 'zdp_ID', title: '主é®ID', type: 'int', width: 110, readonly: true, hidden: true, require: true, align: 'left' }, |
| | | { field: 'zdp_code', title: 'å¶å¨çæ¡ç ', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_ZPH', title: 'å¶å¨çå·', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_CurrentStatue', title: 'ç¶æ', type: 'int', width: 110, align: 'left', bind: { key: "CurrentStatue", data: [] } }, |
| | | { field: 'zdp_Location', title: 'åºä½', type: 'string', width: 110, align: 'left', require: true }, |
| | | { field: 'zdp_chexing', title: '车å', type: 'string', width: 70, align: 'left' }, |
| | | { field: 'zdp_neworold', title: 'æ°æ§', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_POS', title: 'ä½ç½®(ä¾§/ä¸)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_LSXH', title: 'èºæ åå·', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_MAT', title: 'æè´¨(é¸é¢)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_SITE', title: '产å°(è¿å£/å½äº§)', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA1', title: 'æ¯åç´å¾A1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA2', title: 'æ¯åç´å¾A2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA3', title: 'æ¯åç´å¾A3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKA', title: 'æ¯åç´å¾A', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB1', title: 'æ¯åç´å¾B1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB2', title: 'æ¯åç´å¾B2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB3', title: 'æ¯åç´å¾B3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKB', title: 'æ¯åç´å¾B', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC1', title: 'æ¯åç´å¾C1', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC2', title: 'æ¯åç´å¾C2', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC3', title: 'æ¯åç´å¾C3', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'zdp_GKC', title: 'æ¯åç´å¾C', type: 'string', width: 100, align: 'left' }, |
| | | { 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: 'creater', title: 'å建æ¶é´', type: 'string', width: 100, align: 'left' }, |
| | | { field: 'createDate', title: 'å建æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'finishDate', title: '宿æ¶é´', type: 'datetime', sort: true, width: 100, align: 'left' }, |
| | | { field: 'operateType', title: '宿æ¹å¼', type: 'int', width: 100, align: 'left',bind: { key: "OperateType", data: [] } } |
| | | ]); |
| | | |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | cltm:"", |
| | | cztm:"", |
| | | location:"", |
| | | createDate:"" |
| | | |
| | | }); |
| | | const searchFormOptions = ref([ |
| | |
| | | [ |
| | | { "title": "åºä½å·", "field": "location", type: "text" }, |
| | | |
| | | ], |
| | | [ |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | ] |
| | | |
| | | ]); |
| | |
| | | sortName: "TaskId" |
| | | }); |
| | | const editFormFields = ref({ |
| | | taskState:"" |
| | | }); |
| | | const editFormOptions = ref([ |
| | | [ |
| | | { "title": "ä»»å¡ç¶æ", "field": "taskState", type: "select", dataKey: "TaskStatus", data: [] }, |
| | | ] |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | taskNum:"", |
| | | palletCode:"", |
| | | taskType:"", |
| | | taskState:"", |
| | | sourceAddress:"", |
| | | currentAddress:"", |
| | | nextAddress:"", |
| | | targetAddress:"", |
| | | roadway:"", |
| | | creater:"", |
| | | createDate:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | |
| | | ], |
| | | ]); |
| | | const searchFormFields = ref({ |
| | | taskNum:"", |
| | | palletCode:"", |
| | | taskType:"", |
| | | taskState:"", |
| | | sourceAddress:"", |
| | | currentAddress:"", |
| | | nextAddress:"", |
| | | targetAddress:"", |
| | | roadway:"", |
| | | creater:"", |
| | | CreateDate:"", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { "title": "ä»»å¡å·", "field": "taskNum", "type": "text" }, |
| | | { "title": "æçå·", "field": "palletCode", "type": "text" }, |
| | | { "title": "ä»»å¡å·", "field": "taskNum", "type": "like" }, |
| | | { "title": "车轮æ¡ç ", "field": "palletCode", "type": "like" }, |
| | | { "title": "ä»»å¡ç±»å", "field": "taskType", "type": "select", dataKey: "TaskType", data: [] }, |
| | | { "title": "ä»»å¡ç¶æ", "field": "taskState", "type": "select", dataKey: "TaskStatus", data: [] }, |
| | | |
| | |
| | | ], |
| | | [ |
| | | { "title": "å··é", "field": "roadway", type: "text" }, |
| | | { "title": "task_CZInfo", "field": "车轴", type: "text" }, |
| | | { "title": "å建人", "field": "creater", type: "text" }, |
| | | { "title": "å建æ¶é´", "field": "createDate", type: "datetime" }, |
| | | { "title": "å建æ¶é´", "field": "CreateDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([{ field: 'TaskId', title: '主é®', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' }, |
| | | { field: 'taskNum', title: 'ä»»å¡å·', type: 'int', width: 110, align: 'left', sort: true }, |
| | | { field: 'palletCode', title: 'æ¡ç ', type: 'string', width: 150, align: 'left' }, |
| | | { field: 'palletCode', title: '车轮æ¡ç ', type: 'string', width: 150, align: 'left' }, |
| | | { field: 'pnboundNo', title: 'åæ®å·', type: 'string', width: 110, align: 'left' ,hidden: true}, |
| | | { field: 'groupID', title: 'åºåID', type: 'int', width: 110, hidden: true, align: 'left' }, |
| | | { field: 'groupDetailId', title: 'ç»çæç»ID', type: 'int', width: 110, hidden: true, align: 'left' }, |
| | |
| | | /// <summary> |
| | | /// ååºæ°æ® |
| | | /// </summary> |
| | | public object data { get; set; } |
| | | //public object data { get; set; } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | public string eqpCode { get; set; } |
| | | } |
| | | |
| | | public class ContainerTask |
| | | { |
| | | public string action { get; set; } |
| | | public string areaCode { get; set; } |
| | | public string berthCode { get; set; } |
| | | public string callCode { get; set; } |
| | | public string callTyp { get; set; } |
| | | public string clientCode { get; set; } |
| | | public string cooX { get; set; } // 注æè¿æ¯doubleç±»å |
| | | public string cooY { get; set; } // 注æè¿æ¯doubleç±»å |
| | | public string ctnrCode { get; set; } |
| | | public string ctnrTyp { get; set; } |
| | | public string currentCallCode { get; set; } |
| | | public string currentPositionCode { get; set; } |
| | | public object data { get; set; } // æ ¹æ®JSONå
容ï¼dataæ¯ç©ºå¯¹è±¡ |
| | | public string dstBinCode { get; set; } |
| | | public string eqpCode { get; set; } |
| | | public string indBind { get; set; } |
| | | public string layer { get; set; } |
| | | public string mapCode { get; set; } |
| | | public string mapDataCode { get; set; } |
| | | public string mapShortName { get; set; } |
| | | public string materialLot { get; set; } |
| | | public string materialType { get; set; } |
| | | public string method { get; set; } |
| | | public string orgCode { get; set; } |
| | | public string podCode { get; set; } |
| | | public string podDir { get; set; } |
| | | public string podNum { get; set; } |
| | | public string podTyp { get; set; } |
| | | public string relatedArea { get; set; } |
| | | public string reqCode { get; set; } |
| | | public string reqTime { get; set; } // å¯èèæ¹ä¸ºDateTimeç±»å |
| | | public string roadWayCode { get; set; } |
| | | public string robotCode { get; set; } |
| | | public string seq { get; set; } |
| | | public string stgBinCode { get; set; } |
| | | public string subTaskNum { get; set; } |
| | | public string taskCode { get; set; } |
| | | public string taskTyp { get; set; } |
| | | public string tokenCode { get; set; } |
| | | public string username { get; set; } |
| | | public string wbCode { get; set; } |
| | | public string whCode { get; set; } |
| | | } |
| | | } |
| | |
| | | { |
| | | wheelsNewOld = "1"; |
| | | } |
| | | if ((wxrw.Contains("å级修") || wxrw.Contains("äºçº§ä¿®")) && wxrw.Contains("æ¢è½®(æ°)")) |
| | | if ((wxrw.Contains("å级修") || wxrw.Contains("äºçº§ä¿®")) && (wxrw.Contains("æ¢è½®(æ°)") || wxrw.Contains("æ¢è½®ç»æ(æ°)"))) |
| | | { |
| | | wheelsNewOld = "0"; |
| | | } |
| | | |
| | | if ((wxrw.Contains("å级修") || wxrw.Contains("äºçº§ä¿®")) && (wxrw.Contains("æ¢è½®(æ§)") || wxrw.Contains("æ¢è½®ç»æ(æ§)"))) |
| | | { |
| | | wheelsNewOld = "1"; |
| | | } |
| | | if (wxrw.Contains("ä¸çº§ä¿®") && (wxrw.Contains("æ¢è½®(æ°)") || wxrw.Contains("æ¢è½®ç»æ(æ°)"))) |
| | | wheelsNewOld = "0"; |
| | |
| | | wheelsNewOld = "1"; |
| | | return wheelsNewOld; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 维修任å¡è½¬æ¢åºå±æ§ |
| | | /// </summary> |
| | | /// <param name="wxrw">维修任å¡</param> |
| | | /// <returns>éé
è½®æ°æ§(0-æ° 1-æ§)</returns> |
| | | public static string CheckTaskwheelsProps(string wxrw) |
| | | { |
| | | string wheelsNewOld = string.Empty; |
| | | if (wxrw.Contains("æ¢è½®ç(æ§)")) |
| | | { |
| | | wheelsNewOld = "æ°è½®æ§ç"; |
| | | }else if (wxrw.Contains("æ¢è½®ç»æ(æ°)")) |
| | | { |
| | | wheelsNewOld = "æ°è½®æ°ç"; |
| | | } |
| | | else |
| | | { |
| | | wheelsNewOld = "æ§è½®æ§ç"; |
| | | } |
| | | return wheelsNewOld; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// éå¶å¨çè½¬æ¢ |
| | | /// </summary> |
| | | /// <param name="wxrw">éå¶å¨ç转æ¢</param> |
| | | /// <returns></returns> |
| | | public static string CheckZdpPost(string Posttype) |
| | | { |
| | | string PostContainer = string.Empty; |
| | | if (Posttype=="左侧") |
| | | { |
| | | PostContainer = "left"; |
| | | } |
| | | else if (Posttype == "å³ä¾§") |
| | | { |
| | | PostContainer = "right"; |
| | | } |
| | | else |
| | | { |
| | | PostContainer = "middle"; |
| | | } |
| | | return PostContainer; |
| | | } |
| | | } |
| | | } |
| | |
| | | using System; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Core.Utilities; |
| | | |
| | | namespace WIDESEA_Core |
| | | { |
| | |
| | | /// æ¥è¯¢æ¡ä»¶ |
| | | /// </summary> |
| | | public List<SearchParameters> Filter { get; set; } |
| | | |
| | | public string ValidatePageOptions(PropertyInfo[] entityProperties) |
| | | { |
| | | string where = string.Empty; |
| | | List<SearchParameters> searchParametersList = new List<SearchParameters>(); |
| | | if (this.Filter != null && this.Filter.Count > 0) |
| | | { |
| | | searchParametersList.AddRange(Filter); |
| | | } |
| | | else if (!string.IsNullOrEmpty(Wheres)) |
| | | { |
| | | try |
| | | { |
| | | searchParametersList = Wheres.DeserializeObject<List<SearchParameters>>(); |
| | | Filter = searchParametersList; |
| | | } |
| | | catch { } |
| | | } |
| | | for (int i = 0; i < searchParametersList.Count; i++) |
| | | { |
| | | if (string.IsNullOrEmpty(searchParametersList[i].Value)) |
| | | { |
| | | continue; |
| | | } |
| | | |
| | | PropertyInfo? property = entityProperties.Where(c => c.Name.ToUpper() == searchParametersList[i].Name.ToUpper()).FirstOrDefault(); |
| | | |
| | | if (property == null) continue; |
| | | |
| | | List<(bool, string, object)> results = property.ValidationValueForDbType(searchParametersList[i].Value.Split(',')).ToList(); |
| | | if (results == null || results.Count() == 0) |
| | | { |
| | | continue; |
| | | } |
| | | for (int j = 0; j < results.Count(); j++) |
| | | { |
| | | if (j == 0) |
| | | { |
| | | where += "("; |
| | | } |
| | | LinqExpressionType expressionType = searchParametersList[i].DisplayType.GetLinqCondition(); |
| | | if (expressionType == LinqExpressionType.Equal) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.Equal} '{results[j].Item3}'"; |
| | | } |
| | | else if (expressionType == LinqExpressionType.ThanOrEqual) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.ThanOrEqual} '{searchParametersList[i].Value}'"; |
| | | } |
| | | else if (expressionType == LinqExpressionType.LessThanOrEqual) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.LessOrequal} '{searchParametersList[i].Value}'"; |
| | | } |
| | | else if (expressionType == LinqExpressionType.GreaterThan) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.GT} '{searchParametersList[i].Value}'"; |
| | | } |
| | | else if (expressionType == LinqExpressionType.LessThan) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.LT} '{searchParametersList[i].Value}'"; |
| | | } |
| | | else if (expressionType == LinqExpressionType.Contains) |
| | | { |
| | | where += $"{searchParametersList[i].Name} {HtmlElementType.like} '%{searchParametersList[i].Value}%'"; |
| | | } |
| | | else |
| | | { |
| | | where += $"{searchParametersList[i].Name} {searchParametersList[i].DisplayType} '{results[j].Item3}'"; |
| | | } |
| | | |
| | | if (j == results.Count() - 1) |
| | | { |
| | | where += ")"; |
| | | } |
| | | else |
| | | { |
| | | where += " or "; |
| | | } |
| | | } |
| | | if (i < searchParametersList.Count - 1) |
| | | where += " and "; |
| | | } |
| | | return where; |
| | | } |
| | | |
| | | |
| | | public Dictionary<string, OrderByType> GetPageDataSort(PropertyInfo[] propertyInfo) |
| | | { |
| | | try |
| | | { |
| | | if (!string.IsNullOrEmpty(Sort)) |
| | | { |
| | | if (Sort.Contains(",")) |
| | | { |
| | | List<string> sortArr = Sort.Split(",").Where(x => propertyInfo.Any(p => p.Name == x)).ToList(); |
| | | Dictionary<string, OrderByType> sortDic = new Dictionary<string, OrderByType>(); |
| | | foreach (var item in sortArr) |
| | | { |
| | | sortDic[item] = Order?.ToLower() == OrderByType.Asc.ToString() ? OrderByType.Asc : OrderByType.Desc; |
| | | } |
| | | return sortDic; |
| | | } |
| | | else if (propertyInfo.Any(x => x.Name == Sort.FirstLetterToLower() || x.Name == Sort.FirstLetterToUpper())) |
| | | { |
| | | Dictionary<string, OrderByType> result = new Dictionary<string, OrderByType>(); |
| | | |
| | | if (Order == "asc") |
| | | { |
| | | result.Add(Sort, OrderByType.Asc); |
| | | } |
| | | else |
| | | { |
| | | result.Add(Sort, OrderByType.Desc); |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | throw; |
| | | } |
| | | return new Dictionary<string, OrderByType> { { "CreateDate", Order?.ToLower() == OrderByType.Asc.ToString() ? OrderByType.Asc : OrderByType.Desc } }; |
| | | } |
| | | } |
| | | public class SearchParameters |
| | | { |
| | |
| | | |
| | | public virtual PageGridData<TEntity> GetPageData(PageDataOptions options) |
| | | { |
| | | string wheres = ValidatePageOptions(options); |
| | | string wheres = options.ValidatePageOptions(TProperties); |
| | | //è·åæåºå段 |
| | | Dictionary<string, OrderByType> orderbyDic = GetPageDataSort(options, TProperties); |
| | | Dictionary<string, OrderByType> orderbyDic = options.GetPageDataSort(TProperties); |
| | | |
| | | PageGridData<TEntity> pageGridData = new PageGridData<TEntity>(); |
| | | //if (QueryRelativeExpression != null) |
| | | //{ |
| | | // queryable = QueryRelativeExpression.Invoke(queryable); |
| | | //} |
| | | //if (options.Export) |
| | | //{ |
| | | // queryable = queryable.GetIQueryableOrderBy(orderbyDic); |
| | | // if (Limit > 0) |
| | | // { |
| | | // queryable = queryable.Take(Limit); |
| | | // } |
| | | // pageGridData.rows = queryable.ToList(); |
| | | //} |
| | | //else |
| | | //{ |
| | | // pageGridData.rows = repository.IQueryablePage(queryable, |
| | | // options.Page, |
| | | // options.Rows, |
| | | // out int rowCount, |
| | | // orderbyDic).ToList(); |
| | | // pageGridData.total = rowCount; |
| | | // //æ¥è¯¢çé¢ç»è®¡æ±çåæ®µ |
| | | // if (SummaryExpress != null) |
| | | // { |
| | | // pageGridData.summary = SummaryExpress.Invoke(queryable); |
| | | // //Func<T, T> groupExpress = x =>x; |
| | | // //pageGridData.summary = queryable.GroupBy(groupExpress).Select(SummaryExpress).FirstOrDefault(); |
| | | // } |
| | | //} |
| | | //GetPageDataOnExecuted?.Invoke(pageGridData); |
| | | |
| | | pageGridData = BaseDal.QueryPage |
| | | (wheres, options.Page, options.Rows, orderbyDic); |
| | | pageGridData = BaseDal.QueryPage(wheres, options.Page, options.Rows, orderbyDic); |
| | | |
| | | return pageGridData; |
| | | } |
| | |
| | | |
| | | public const string TempHour = "TempHour"; |
| | | |
| | | /// <summary> |
| | | /// 请æ±wcsï¼åå
¥è¾é线åé¦ |
| | | /// </summary> |
| | | |
| | | public const string SetPlcResponState = "SetPlcResponState"; |
| | | |
| | | /// <summary> |
| | | /// 读åagvç¼åå°è¯·æ± |
| | | /// </summary> |
| | | |
| | | public const string GetPlcState = "GetPlcState"; |
| | | } |
| | | } |
| | |
| | | case HtmlElementType.Contains: |
| | | linqExpression = LinqExpressionType.In; |
| | | break; |
| | | case HtmlElementType.ThanOrEqual: |
| | | linqExpression = LinqExpressionType.ThanOrEqual; |
| | | case HtmlElementType.thanorequal: |
| | | linqExpression = LinqExpressionType.ThanOrEqual; |
| | | break; |
| | | case HtmlElementType.LessOrequal: |
| | | case HtmlElementType.lessorequal: |
| | | linqExpression = LinqExpressionType.LessThanOrEqual; |
| | | break; |
| | | case HtmlElementType.GT: |
| | |
| | | { typeof(Guid),SqlDbTypeName.UniqueIdentifier} |
| | | }; |
| | | |
| | | public static List<(bool, string, object)> ValidationValueForDbType(this PropertyInfo propertyInfo, params object[] values) |
| | | { |
| | | List<(bool, string, object)> result = new List<(bool, string, object)>(); |
| | | foreach (object value in values) |
| | | { |
| | | result.Add(propertyInfo.ValidationVal(value)); |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | public static string GetProperWithDbType(this PropertyInfo propertyInfo) |
| | | { |
| | | bool result = ProperWithDbType.TryGetValue(propertyInfo.PropertyType, out string value); |
| | |
| | | WebResponseContent SaveCLinfo(SaveModel saveModel); |
| | | |
| | | WebResponseContent SaveCZInfo(SaveModel saveModel); |
| | | |
| | | WebResponseContent SaveCZStraight(SaveModel saveModel); |
| | | WebResponseContent SaveCZInfo2(SaveModel saveModel); |
| | | |
| | | |
| | | WebResponseContent SaveCLStraight(SaveModel saveModel); |
| | | WebResponseContent SaveZDPStraight(SaveModel saveModel); |
| | | |
| | | WebResponseContent SaveZDPInfo(SaveModel saveModel); |
| | | WebResponseContent SaveZDPXPInfo(SaveModel saveModel); |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | public interface IWCSService : IDependency |
| | | { |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Comm; |
| | | using WIDESEA_Comm.AGVTask; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_IStoragIntegrationServices |
| | | { |
| | | public interface IToAGVService : IDependency |
| | | { |
| | | |
| | | /// <summary> |
| | | /// wcs请æ±ä¸åagvä»»å¡ |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent genAgvSchedulingTask(RequestTaskDto input); |
| | | |
| | | /// <summary> |
| | | /// agvç´èµ°ä»»å¡çæ |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent UntieStation(SaveModel saveModel); |
| | | |
| | | /// <summary> |
| | | /// agåè°æ¥å£ |
| | | /// </summary> |
| | | /// <param name="taskRespon"></param> |
| | | /// <returns></returns> |
| | | AGVResponBase agvCallback(object taskRespon); |
| | | } |
| | | } |
| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_IStorageBasicService; |
| | | |
| | | public interface IDt_CZInfo_mesService : IService<Dt_CZInfo_mes> |
| | | { |
| | | |
| | | WebResponseContent RequestAxleloading(RequestTaskDto input); |
| | | WebResponseContent UpdateAxleCurrentStatue(RequestTaskDto input); |
| | | } |
| | |
| | | /// <param name="locationID">ä»»å¡å·</param> |
| | | /// <returns>ä»»å¡å¯¹è±¡</returns> |
| | | Task<Dt_Task> TransferCheckAsync(RequestTaskDto input); |
| | | /// <summary> |
| | | /// æ£æµå
¥åºä»»å¡æ¯å¦éè¦ç§»åº |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | Task<Dt_Task> InTransferCheckAsync(RequestTaskDto input); |
| | | |
| | | Task<WebResponseContent> initializeLocation(int locationID); |
| | | |
| | | WebResponseContent CreateLocation(int x, int y, int z, int locType, int areaId); |
| | | |
| | | WebResponseContent LocationEnable(SaveModel saveModel); |
| | | WebResponseContent LocationStatus(); |
| | | } |
| | |
| | | |
| | | Dt_WheelsStock GetSelectionWheelsStock(List<Dt_WheelsStock> wheelsStocks, Dt_SelectionStandards selectionStandards, Dt_CZInfo_mes CZInfo_Mes,string wheelsPosition,string newOrOld); |
| | | |
| | | Dt_WheelsStock_Old GetSelectionWheels(List<Dt_WheelsStock_Old> wheelsStocks, Dt_SelectionStandards selectionStandards, Dt_CZInfo_mes CZInfo_Mes, string wheelsPosition, string newOrOld); |
| | | Dt_WheelsStock_Old GetSelectionWheels(List<Dt_WheelsStock_Old> wheelsStocks, Dt_SelectionStandards selectionStandards, Dt_CZInfo_mes CZInfo_Mes, string wheelsPosition, string newOrOld, string wheelsProps); |
| | | |
| | | WebResponseContent InventoryStatistics(); |
| | | |
| | | |
| | | } |
| | |
| | | namespace WIDESEA_IStorageTaskRepository; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_IStorageTaskRepository; |
| | | |
| | | public interface IDt_Task_HtyRepository : IRepository<Dt_Task_Hty> |
| | | { |
| | |
| | | using WIDESEA_DTO; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_IStorageTaskServices; |
| | | |
| | |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | Task<WebResponseContent> RequestWheelsFlow(RequestTaskDto input); |
| | | /// <summary> |
| | | /// æµåä¿®æ¹ |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | WebResponseContent UpWheelsFlow(SaveModel saveModel); |
| | | |
| | | /// <summary> |
| | | /// 请æ±ä»»å¡è´§ä½ |
| | |
| | | /// <returns></returns> |
| | | WebResponseContent CreateAndSendOutboundTask(SaveModel saveModel); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | namespace WIDESEA_IStorageTaskServices; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_IStorageTaskServices; |
| | | |
| | | public interface IDt_Task_HtyService : IService<Dt_Task_Hty> |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="task">åå²ä»»å¡Model</param> |
| | | /// <returns>æå/失败</returns> |
| | | bool InsertTask(Dt_Task_Hty task); |
| | | //bool InsertTask(Dt_Task_Hty task); |
| | | |
| | | WebResponseContent TaskRollback(int input); |
| | | } |
| | |
| | | [SugarColumn(ColumnName = "WheelsLX", Length = 255, ColumnDescription = "è½®å")] |
| | | public string WheelsLX { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮å»åå°å |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "Towhereabouts", Length = 20, ColumnDescription = "车轮å»åå°å")] |
| | | public string Towhereabouts { get; set; } |
| | | |
| | | } |
| | |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "SourceId", ColumnDescription = "æºåID")] |
| | | public int SourceId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车轮å»åå°å |
| | | ///</summary> |
| | | [SugarColumn(ColumnName = "Towhereabouts", Length = 20, ColumnDescription = "车轮å»åå°å")] |
| | | public string Towhereabouts { get; set; } |
| | | } |
| | |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int ID { get; set; } |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// 车轴æ¡ç |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "车轴æ¡ç ")] |
| | | [SugarColumn(Length = 50, ColumnDescription = "车轴æ¡ç ")] |
| | | public string CZTM { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | public string LDTM { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¶æ 1-å建 2-å
¥åº 3-宿 |
| | | /// ç¶æ 1-å建 2-å
¥åº 3-è¾éçº¿å®æ ï¼ç«å°ç»ä¿¡å·åï¼ 4-agvä»»å¡ä¸å 5-agvåè´§å®æ 6-agv宿 |
| | | /// ç´èµ°ï¼11-ç´èµ°å建 12-ç´èµ°ä¸ 13-ç´èµ°å®æ ï¼ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "ç¶æ")] |
| | | public string CurrentStatue { get; set; } |
| | |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "å³è½®åº§ç级")] |
| | | public string YLZDJ { get; set; } |
| | | |
| | | /// <summary> |
| | | /// agvå°å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "agvç®æ å°å")] |
| | | public string AGVaddres { get; set; } |
| | | } |
| | | } |
| | |
| | | |
| | | namespace WIDESEA_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_InWheels_mes_hty), "MES车轮åå²ä¿¡æ¯")] |
| | | [SugarTable(nameof(Dt_InZdp_mes_hty), "MESå¶å¨çåå²ä¿¡æ¯")] |
| | | |
| | | public class Dt_InWheels_mes_hty : Dt_InWheels_mes |
| | | public class Dt_InZdp_mes_hty : Dt_InZdp_mes |
| | | { |
| | | /// <summary> |
| | | /// 宿æ¶é´ |
| | |
| | | using WIDESEA_Comm.AGVInterface.Requset; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_Model.Models; |
| | | |
| | | namespace WIDESEA_StoragIntegrationServices |
| | |
| | | public partial class ToAGVService |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// PDAæ§è¡agvä»»å¡ç´èµ°åè½ |
| | | /// </summary> |
| | | /// <param name="taskinfo"></param> |
| | | /// <param name="operationType">æä½ç±»å(1-ç»å® 2-è§£ç»)</param> |
| | | /// <returns></returns> |
| | | public static WebResponseContent UntieStation(Dt_Task taskinfo, string operationType) |
| | | public WebResponseContent UntieStation(SaveModel saveModel) |
| | | { |
| | | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | | string CZTM = saveModel.MainData["CZTM"].ToString(); |
| | | if (string.IsNullOrEmpty(CZTM)) throw new Exception("车轴æ¡ç 为空"); |
| | | |
| | | string TargetAddress = saveModel.MainData["TargetAddress"].ToString(); |
| | | if (string.IsNullOrEmpty(TargetAddress)) return content.Error("æªéæ©ç¼åå°ï¼ç¼åå°ä¸å¯ä¸ºç©º"); |
| | | try |
| | | { |
| | | bindCtnrAndBin bind = new bindCtnrAndBin() |
| | | //è°åwcsæ¥å£ï¼è¯»å该ç«å°æ¯å¦å¯æ¾ |
| | | var configs = _configService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.WCSIPAddress)?.ConfigValue; |
| | | var ReceiveByWMSTask = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.GetPlcState)?.ConfigValue; |
| | | if (ReceiveByWMSTask == null || ipAddress == null) |
| | | { |
| | | reqCode = Guid.NewGuid().ToString().Replace("-", ""), |
| | | clientCode = "WMS", |
| | | ctnrTyp = "2", |
| | | indBind = operationType, // 1-ç»å® 2-è§£ç» |
| | | stgBinCode = taskinfo.SourceAddress, |
| | | }; |
| | | throw new Exception("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddrss = ipAddress + ReceiveByWMSTask; |
| | | |
| | | string ipaddress = AGV_Interface + "/getCLInfostring"; |
| | | var respon = HttpHelper.Post(wmsIpAddrss, JsonConvert.SerializeObject(TargetAddress)); //http://localhost:9291/api/Task/ReceiveTask, |
| | | |
| | | var requestBindInfo = bind.ToDictionary(); |
| | | if (respon == null) return content.OK("çæä»»å¡æå"); |
| | | |
| | | var strRespon = HttpsClient.PostAsync(ipaddress, requestBindInfo).Result; |
| | | WebResponseContent respone = JsonConvert.DeserializeObject<WebResponseContent>(respon.ToString()); |
| | | if (!respone.Status) |
| | | { |
| | | return content.Error(respone.Message); |
| | | } |
| | | |
| | | var responBase = JsonConvert.DeserializeObject<AGVResponBase>(strRespon); |
| | | if (responBase.code != "0") throw new Exception(responBase.message); |
| | | |
| | | //todo |
| | | |
| | | return content.OK(); |
| | | RequestTaskDto input=new RequestTaskDto(); |
| | | input.Position = TargetAddress; |
| | | WebResponseContent agvtocon=genAgvSchedulingTask(input); |
| | | if(agvtocon.Status) |
| | | { |
| | | return content.OK("çæä»»å¡æå"); |
| | | } |
| | | else |
| | | { |
| | | return content.Error("é误信æ¯ï¼"+agvtocon.Message); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | using Newtonsoft.Json; |
| | | using AngleSharp.Io; |
| | | using Mapster; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Reflection.Metadata; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Comm; |
| | | using WIDESEA_Comm.AGVTask; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_StorageBasicRepository; |
| | | using WIDESEA_StorageTaskRepository; |
| | | |
| | | namespace WIDESEA_StoragIntegrationServices |
| | |
| | | /// </summary> |
| | | /// <param name="taskRespon"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent agvCallback(object taskRespon) |
| | | public AGVResponBase agvCallback(object taskRespon) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | agvTask task = new agvTask(); |
| | | |
| | | AGVResponBase response = null; |
| | | |
| | | ContainerTask task = new ContainerTask(); |
| | | try |
| | | { |
| | | task = JsonConvert.DeserializeObject<agvTask>(taskRespon.ToString()); |
| | | task = JsonConvert.DeserializeObject<ContainerTask>(taskRespon.ToString()); |
| | | |
| | | if (task == null) |
| | | { |
| | | throw new Exception("AGVè°ç¨æ¥å£å¤±è´¥ï¼æ 请æ±åæ°"); |
| | | LogFactory.GetLog("AGVä»»å¡åè°").Info(true, $"åè°å¤±è´¥ï¼æªè½è¯»åå°agvè°ååæ°"); |
| | | } |
| | | |
| | | |
| | | if (task.method.ToLower() == "apply") //AGVæ¾æç³è¯· |
| | | if (task.method.ToString() == "outbin2") //AGVåæå®æ |
| | | { |
| | | //todo |
| | | Dt_CZInfo_mes CZInfotlist = _task_CZInfoRepository.QueryFirst(x => x.CurrentStatue == "4"); |
| | | if (CZInfotlist != null) |
| | | { |
| | | CZInfotlist.CurrentStatue = "5"; |
| | | _task_CZInfoRepository.UpdateData(CZInfotlist); |
| | | } |
| | | |
| | | WCS_Set("3022"); //ä¸ç®¡æ¯å¦æåå
¥æåï¼é½å®æagvä»»å¡ |
| | | return response = new AGVResponBase |
| | | { |
| | | code = "0", |
| | | message = "æå", |
| | | reqCode = task.reqCode |
| | | }; |
| | | |
| | | } |
| | | |
| | | if (task.method.ToLower() == "end") //AGVä»»å¡ç»æ |
| | | if (task.method.ToString() == "end") //AGVä»»å¡ç»æåé¦ |
| | | { |
| | | //å¹¶è¿è¡ä¿®æ¹ä»»å¡ä¸ºå®æ |
| | | Dt_CZInfo_mes CZInfotlist = _task_CZInfoRepository.QueryFirst(x => x.CurrentStatue == "5"); |
| | | |
| | | //todo |
| | | //_taskRepository.QueryFirst(x=>x.SourceAddress == task.) |
| | | //è°åè¾é线æ¥å£ï¼åé¦è¾éçº¿å®æä¿¡å· |
| | | WCS_Set(CZInfotlist.AGVaddres); |
| | | |
| | | |
| | | if(CZInfotlist != null) |
| | | { |
| | | CZInfotlist.CurrentStatue = "6"; |
| | | _task_CZInfoRepository.UpdateData(CZInfotlist); |
| | | |
| | | Dt_CZInfo_mes_hty stockInfo_Hty = CZInfotlist.Adapt<Dt_CZInfo_mes_hty>(); |
| | | _CZInfo_Mes_HtyRepository.AddData(stockInfo_Hty); |
| | | _task_CZInfoRepository.DeleteData(CZInfotlist); |
| | | } |
| | | |
| | | |
| | | |
| | | //åè° |
| | | return response = new AGVResponBase |
| | | { |
| | | code = "0", |
| | | message = "æå", |
| | | reqCode = task.reqCode |
| | | }; |
| | | } |
| | | |
| | | |
| | | return content.OK(); |
| | | LogFactory.GetLog("AGVä»»å¡åè°").Info(true, $"åè°æå"); |
| | | return response; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"AGVåè°å¼å¸¸:{ex.Message}"); |
| | | LogFactory.GetLog("AGVä»»å¡åè°").Info(true, $"åè°å¤±è´¥ï¼é误信æ¯ï¼{ex.Message}"); |
| | | return response = new AGVResponBase |
| | | { |
| | | code = "1", |
| | | message = $"失败,åå ï¼{ex.Message}", |
| | | reqCode = task.reqCode |
| | | }; |
| | | } |
| | | } |
| | | |
| | | public bool WCS_Set(string CutAddress) |
| | | { |
| | | try |
| | | { |
| | | //è°åwcsæ¥å£ï¼åå
¥è¾éçº¿ä¿¡å· SetPlcResponState |
| | | var configs = _configService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_IPAddress); |
| | | var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.WCSIPAddress)?.ConfigValue; |
| | | var ReceiveByWMSTask = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.SetPlcResponState)?.ConfigValue; |
| | | if (ReceiveByWMSTask == null || ipAddress == null) |
| | | { |
| | | throw new Exception("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddrss = ipAddress + ReceiveByWMSTask; |
| | | |
| | | var respon = HttpHelper.Post(wmsIpAddrss, JsonConvert.SerializeObject(CutAddress)); //http://localhost:9291/api/Task/ReceiveTask, |
| | | |
| | | if (respon != null) |
| | | { |
| | | WebResponseContent respone = JsonConvert.DeserializeObject<WebResponseContent>(respon.ToString()); |
| | | if (respone.Status) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return false; |
| | | throw; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | using MailKit; |
| | | using Mapster; |
| | | using Masuit.Tools; |
| | | using Masuit.Tools.Security; |
| | | using Masuit.Tools; |
| | | using Newtonsoft.Json; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using WIDESEA_Comm; |
| | | using WIDESEA_Comm.WCSInterface.Requst; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_StorageTaskRepository; |
| | | |
| | | |
| | | namespace WIDESEA_StoragIntegrationServices |
| | | { |
| | |
| | | /// </summary> |
| | | /// <param name="jsondata"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent genAgvSchedulingTask(Dt_Task taskinfo) |
| | | public WebResponseContent genAgvSchedulingTask(RequestTaskDto input) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | if (string.IsNullOrEmpty(input.Position)) { return content.Error($"agvä»»å¡ä¸åç³è¯·ç®æ å°å为空ï¼ï¼ï¼è¯·æ£æ¥"); } |
| | | |
| | | //æ¥æ¾å½åå¨è½¦è½´çº¿æ«ç«¯éè¦agvæ¬è¿ç车轴 |
| | | |
| | | List<Dt_CZInfo_mes> CZInfotlist = _task_CZInfoRepository.QueryData(x => x.CurrentStatue == "3" || x.CurrentStatue == "4" || x.CurrentStatue == "5" || x.CurrentStatue == "13"); |
| | | |
| | | 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($"æªæ¾å°ç°æè¾éçº¿å®æç车轴信æ¯"); } |
| | | |
| | | CZInfot.CurrentStatue = "4"; |
| | | |
| | | |
| | | //æ¥æ¾è½¦è½´å¯¹åºçè½¦è½®ä¿¡æ¯ |
| | | List<Dt_Task> tasks=_taskRepository.QueryData(x => x.task_CZInfo == CZInfot.CZH).ToList(); |
| | | if (tasks.Count > 0) |
| | | { |
| | | foreach (var task in tasks) |
| | | { |
| | | task.Towhereabouts = input.Position; |
| | | } |
| | | } |
| | | |
| | | string agvtarget = "F1"; |
| | | if (input.Position == "2033") |
| | | { |
| | | agvtarget = "F2"; |
| | | } |
| | | |
| | | //agvåæ°è°å |
| | | genAgvSchedulingTask schedulingTask = new genAgvSchedulingTask |
| | | { |
| | | reqCode = Guid.NewGuid().ToString().Replace("-", ""), |
| | | clientCode = "WMS", |
| | | //taskTyp = tasktype, |
| | | ctnrTyp = "2", |
| | | taskTyp = "BY", |
| | | ctnrTyp = "1", |
| | | //data = taskinfo.task_barcode, |
| | | positionCodePath = new List<position> |
| | | { |
| | | new position { positionCode = taskinfo.SourceAddress, type = "05" }, |
| | | new position { positionCode = taskinfo.TargetAddress, type = "05" }, |
| | | new position { positionCode = "Q", type = "00" }, |
| | | new position { positionCode = agvtarget, type = "00" }, //å°åå¾
æ´æ¹ä¸º F1 左边 F2 å³è¾¹ |
| | | }, |
| | | priority = "1", //ä¼å
级 |
| | | agvCode = "",//agvcode, |
| | | //taskCode = taskinfo.task_id.ToString(), |
| | | }; |
| | | |
| | | CZInfot.AGVaddres = input.Position; |
| | | |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Info(true, taskinfo.ToJsonString()); |
| | | //ç¼åè°åagvæ¥å£ |
| | | string ipaddress = AGV_Interface; |
| | | |
| | | return content; |
| | | var requestBindInfo = schedulingTask.ToDictionary(); |
| | | |
| | | var respon = HttpHelper.Post(ipaddress, JsonConvert.SerializeObject(schedulingTask)); |
| | | |
| | | |
| | | var responBase = JsonConvert.DeserializeObject<AGVResponBase>(respon); |
| | | |
| | | |
| | | |
| | | |
| | | if (responBase.code == "0") |
| | | { |
| | | _task_CZInfoRepository.UpdateData(CZInfot); |
| | | if (tasks.Count > 0) |
| | | { |
| | | _taskRepository.UpdateData(tasks); |
| | | } |
| | | |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Info(true, $"è°åagv任塿åï¼ä¿®æ¹äºè½¦è½´æ¡ç ï¼{CZInfot.CZTM}çç¶ææ¹è³ï¼{CZInfot.CurrentStatue}"); |
| | | content.OK($"agvä»»å¡ä¸åæå."); |
| | | return content; |
| | | } |
| | | else |
| | | { |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Error(true, $"è°åagvä»»å¡å¤±è´¥ï¼è¿åä¿¡æ¯ï¼{responBase.message}"); |
| | | return content.Error($"请æ±å¼å¸¸ï¼{responBase.message}"); |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Info(true, ex.Message); |
| | | LogFactory.GetLog("ä¸åAGVä»»å¡").Error(true, ex.Message); |
| | | return content.Error($"请æ±å¼å¸¸ï¼{ex.Message}"); |
| | | } |
| | | } |
| | |
| | | private readonly IDt_CheckResultRepository _checkResultRepository; |
| | | private readonly IToZYService _toZYService; |
| | | private readonly IDt_Task_HtyRepository _task_HtyRepository; |
| | | private readonly IDt_CZInfo_mesRepository _task_CZInfoRepository; |
| | | private readonly IDt_CZInfo_mes_htyRepository _CZInfo_Mes_HtyRepository; |
| | | private readonly LogFactory LogFactory = new LogFactory(); |
| | | |
| | | public static string AGV_Interface = "http://172.21.7.215:8182/rcms/services/rest/hikRpcService"; |
| | | public static string AGV_Interface = "http://172.21.7.215:8182/rcms/services/rest/hikRpcService/genAgvSchedulingTask"; |
| | | |
| | | public ToAGVService(ILocationInfoRepository locationRepository,IDt_TaskRepository taskRepository, IStockInfoRepository stockInfoRepository, ISys_ConfigService configService, IDt_StationManagerRepository stationManagerRepository, IDt_AreaInfoRepository dt_AreaInfoRepository, IDt_CheckResultRepository checkResultRepository, IToZYService toZYService , IDt_Task_HtyRepository task_HtyRepository) |
| | | public ToAGVService(ILocationInfoRepository locationRepository,IDt_TaskRepository taskRepository, IStockInfoRepository stockInfoRepository, ISys_ConfigService configService, IDt_StationManagerRepository stationManagerRepository, IDt_AreaInfoRepository dt_AreaInfoRepository, IDt_CheckResultRepository checkResultRepository, IToZYService toZYService , IDt_Task_HtyRepository task_HtyRepository, IDt_CZInfo_mesRepository dt_CZInfo_MesRepository, IDt_CZInfo_mes_htyRepository CZInfo_Mes_HtyRepository) |
| | | { |
| | | _locationRepository = locationRepository; |
| | | _taskRepository = taskRepository; |
| | |
| | | _checkResultRepository = checkResultRepository; |
| | | _toZYService = toZYService; |
| | | _task_HtyRepository = task_HtyRepository; |
| | | _task_CZInfoRepository = dt_CZInfo_MesRepository; |
| | | _CZInfo_Mes_HtyRepository = CZInfo_Mes_HtyRepository; |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | if (rw != newOrOld) throw new Exception("éé
失败:éé
æ°æ§è½®ä¸ç»´ä¿®ä»»å¡è§£æä¸ä¸è´"); |
| | | |
| | | Dt_SelectionStandards selectionStandards = _SelectionStandardsRepository.QueryFirst(x => x.CarType.Contains(Cartype) && x.mttype == mttype && x.neworold == newOrOld && level.Contains(x.gkdj)); |
| | | string wheelsProps = CheckTaskChangeHelper.CheckTaskwheelsProps(wxrw); |
| | | |
| | | Dt_SelectionStandards selectionStandards = _SelectionStandardsRepository.QueryFirst(x => x.CarType== Cartype && x.mttype == mttype && x.neworold == newOrOld && level.Contains(x.gkdj)); |
| | | if (selectionStandards == null) throw new Exception($"æ¤è½¦å{Cartype}çéé
æ åå¼å¸¸,è¯·æ ¸å¯¹éé
æ åä¿¡æ¯!"); |
| | | |
| | | Dt_CZInfo_mes CZInfo_Mes = new Dt_CZInfo_mes |
| | |
| | | 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); |
| | | 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); |
| | | //x.Wheels_CarType == CZInfo_Mes.CHEXING && x.Wheels_ldtm == CZInfo_Mes.LDTM && selectionStandards.CarType.Contains(x.Wheels_CarType) |
| | | if (null != WheelsList && WheelsList.Count > 0) |
| | | { |
| | |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Common.ZY; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Model.Models; |
| | | |
| | |
| | | { |
| | | //å¦å½åå卿ªå¼å§å
¥åºç车轮æå¶å¨çæ°æ®,åç¦æ¢ä¿åæ°æ°æ® 以鲿°æ®æ··ä¹± |
| | | var waitInbound = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0"); |
| | | if (waitInbound != null) throw new Exception("å½åå卿ªå¼å§å
¥åºç车轮æå¶å¨ç,请å
å
¥åºååä¿åä¿¡æ¯!"); |
| | | if (waitInbound != null) throw new Exception("å½åå卿ªå¼å§å
¥åºçå¶å¨ç,请å
å
¥åºååä¿åä¿¡æ¯!"); |
| | | |
| | | //车轮ç |
| | | //å¶å¨çæ¡ç |
| | | string clCode = saveModel.MainData["code"].ToString(); |
| | | if (string.IsNullOrEmpty(clCode)) |
| | | throw new Exception($"车轮æ¡ç ä¸è½ä¸ºç©º"); |
| | | throw new Exception($"å¶å¨çæ¡ç ä¸è½ä¸ºç©º"); |
| | | |
| | | var clinfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_code == clCode); |
| | | if (clinfo != null) throw new Exception("车轮å½å
¥ä¿¡æ¯å·²åå¨"); |
| | | var clinfo = _InZdp_MesRepository.QueryFirst(x => x.Zdp_code == clCode); |
| | | if (clinfo != null) throw new Exception("å¶å¨çæ¡ç å½å
¥ä¿¡æ¯å·²åå¨"); |
| | | |
| | | //æ£æµåºåæ¯å¦å·²åå¨ |
| | | _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode); |
| | | _ZdpStockRepository.QueryFirst(x => x.Zdp_code == clCode); |
| | | if (clinfo != null) throw new Exception("åºå
å·²åå¨,è¯·æ£æ¥åºå"); |
| | | |
| | | //åºåå· |
| | | //string madeUnit = saveModel.MainData["xlh"].ToString(); |
| | | //è½¦è½®å· |
| | | string clh = saveModel.MainData["clh"].ToString(); |
| | | //轮对æ¡ç |
| | | string ldtm = saveModel.MainData["ldtm"].ToString(); |
| | | //å¶å¨çå· |
| | | string ZPH = saveModel.MainData["ZPH"].ToString(); |
| | | //车å |
| | | string Cartype = saveModel.MainData["chexing"].ToString(); |
| | | //é
å±å± |
| | | string psj = saveModel.MainData["psj"].ToString(); |
| | | //车ç»å· |
| | | string lcch = saveModel.MainData["lcch"].ToString(); |
| | | //æ°æ§ |
| | | string newOrOld = saveModel.MainData["neworold"].ToString(); |
| | | //è½®å¯¹å· |
| | | string ldh = saveModel.MainData["ldh"].ToString(); |
| | | //轮对åå· |
| | | string ldxh = saveModel.MainData["ldxh"].ToString(); |
| | | //æ¯åç级 |
| | | string gkdj = saveModel.MainData["gkdj"].ToString(); |
| | | //æ¯åaçé¢åå¼ |
| | | string gkzja = saveModel.MainData["gkzja"].ToString(); |
| | | //æ¯åbçé¢åå¼ |
| | | string gkzjb = saveModel.MainData["gkzjb"].ToString(); |
| | | //æ¯åcçé¢åå¼ |
| | | string gkzjc = saveModel.MainData["gkzjc"].ToString(); |
| | | //è½®å¾å¼ |
| | | string ljz = saveModel.MainData["ljz"].ToString(); |
| | | //é¢ä¼°è½®å¾å¼ |
| | | string yglj = saveModel.MainData["yglj"].ToString(); |
| | | //å
¥åºæ¶é´ |
| | | //ä½ç½®(ä¾§/ä¸) |
| | | string POS = saveModel.MainData["POS"].ToString(); |
| | | // èºæ åå· |
| | | string LSXH = saveModel.MainData["LSXH"].ToString(); |
| | | //æè´¨(é¸é¢) |
| | | string MAT = saveModel.MainData["MAT"].ToString(); |
| | | //产å°(è¿å£/å½äº§) |
| | | string SITE = saveModel.MainData["SITE"].ToString(); |
| | | //æ¯åç´å¾A1 |
| | | string GKA1 = saveModel.MainData["GKA1"].ToString(); |
| | | //æ¯åç´å¾A2 |
| | | string GKA2 = saveModel.MainData["GKA2"].ToString(); |
| | | //æ¯åç´å¾A3 |
| | | string GKA3 = saveModel.MainData["GKA3"].ToString(); |
| | | //æ¯åç´å¾A |
| | | string GKA = saveModel.MainData["GKA"].ToString(); |
| | | //æ¯åç´å¾B1 |
| | | string GKB1 = saveModel.MainData["GKB1"].ToString(); |
| | | //æ¯åç´å¾B2 |
| | | string GKB2 = saveModel.MainData["GKB2"].ToString(); |
| | | //æ¯åç´å¾A3 |
| | | string GKB3 = saveModel.MainData["GKB3"].ToString(); |
| | | //æ¯åç´å¾A |
| | | string GKB = saveModel.MainData["GKB"].ToString(); |
| | | //æ¯åç´å¾C1 |
| | | string GKC1 = saveModel.MainData["GKC1"].ToString(); |
| | | //æ¯åç´å¾C2 |
| | | string GKC2 = saveModel.MainData["GKC2"].ToString(); |
| | | //æ¯åç´å¾C3 |
| | | string GKC3 = saveModel.MainData["GKC3"].ToString(); |
| | | //æ¯åç´å¾A |
| | | string GKC = saveModel.MainData["GKC"].ToString(); |
| | | //æ¯åç´å¾ |
| | | string GKJZ = saveModel.MainData["GKJZ"].ToString(); |
| | | //èºæ ä¾§å©ä½ç£¨è |
| | | string LSCSYMH = saveModel.MainData["LSCSYMH"].ToString(); |
| | | //èºæ¯ä¾§å©ä½ç£¨è |
| | | string LMCSYMH = saveModel.MainData["LMCSYMH"].ToString(); |
| | | //å
¥åºæ¥æ |
| | | string rksj = saveModel.MainData["rksj"].ToString(); |
| | | //屿§ |
| | | string WheelsProps = saveModel.MainData["clsx"].ToString(); |
| | | //卿屿§ |
| | | string mttype = saveModel.MainData["mttype"].ToString(); |
| | | //æ¯ååå¼ |
| | | string gkcc = saveModel.MainData["gkcc"].ToString(); |
| | | |
| | | //å建人 |
| | | //string user = saveModel.MainData["user"].ToString(); |
| | | if (_locationRepository.QueryData(x => x.LocationStatus == (int)LocationEnum.Free && x.EnalbeStatus == 1).Count < 2) throw new Exception($"åºä½æ°éä¸è¶³,ä¸å
许å
¥åº"); |
| | | |
| | | |
| | | Dt_InWheels_mes wheels_Mes = new Dt_InWheels_mes |
| | | Dt_InZdp_mes dt_InZdp_ = new Dt_InZdp_mes |
| | | { |
| | | Wheels_code = clCode, |
| | | Wheels_Type = "1", |
| | | Wheels_Num = clh, |
| | | CreateDate = DateTime.Now, |
| | | Creater = "admin", |
| | | WheelsProps = WheelsProps, |
| | | Wheels_CarNo = lcch, |
| | | Wheels_CarType = Cartype, |
| | | Wheels_ldxh = ldxh, |
| | | Wheels_CurrentStatue = "0", |
| | | Wheels_ldtm = ldtm, |
| | | Wheels_InDate = rksj, |
| | | Wheels_level = gkdj, |
| | | Wheels_NewOrOld = newOrOld, |
| | | Wheels_psj = psj, |
| | | Wheels_gkcc = gkcc, |
| | | Wheels_gkzja = gkzja, |
| | | Wheels_gkzjb = gkzjb, |
| | | Wheels_gkzjc = gkzjc, |
| | | Wheels_ldh = ldh, |
| | | Wheels_ljz = ljz, |
| | | Wheels_mttype = mttype, |
| | | //Wheels_SequenceNum = "", |
| | | Wheels_ygljz = yglj, |
| | | Zdp_code = clCode, // 䏻鮿ç¼å· |
| | | Zdp_ZPH = ZPH, // å¶å¨çå· |
| | | Zdp_chexing = Cartype, // 车å |
| | | Zdp_neworold = newOrOld, // æ°æ§ |
| | | Zdp_POS = POS, // ä½ç½®ï¼ä¾§/ä¸ï¼ |
| | | Zdp_LSXH = LSXH, // èºæ åå· |
| | | Zdp_MAT = MAT, // æè´¨ï¼é¸é¢ï¼ |
| | | Zdp_SITE = SITE, // 产å°ï¼è¿å£/å½äº§ï¼ |
| | | Zdp_GKA1 = GKA1, // æ¯åç´å¾A1 |
| | | Zdp_GKA2 = GKA2, // æ¯åç´å¾A2 |
| | | Zdp_GKA3 = GKA3, // æ¯åç´å¾A3 |
| | | Zdp_GKA = GKA, // æ¯åç´å¾A |
| | | Zdp_GKB1 = GKB1, // æ¯åç´å¾B1 |
| | | Zdp_GKB2 = GKB2, // æ¯åç´å¾B2 |
| | | Zdp_GKB3 = GKB3, // æ¯åç´å¾B3 |
| | | Zdp_GKB = GKB, // æ¯åç´å¾B |
| | | Zdp_GKC1 = GKC1, // æ¯åç´å¾C1 |
| | | Zdp_GKC2 = GKC2, // æ¯åç´å¾C2 |
| | | Zdp_GKC3 = GKC3, // æ¯åç´å¾C3 |
| | | Zdp_GKC = GKC, // æ¯åç´å¾C |
| | | Zdp_GKJZ = GKJZ, // æ¯åç´å¾åºå |
| | | Zdp_LSCSYMH = LSCSYMH, // èºæ ä¾§å©ä½ç£¨è |
| | | Zdp_LMCSYMH = LMCSYMH, // èºæ¯ä¾§å©ä½ç£¨è |
| | | Zdp_rksj = rksj, // å
¥åºæ¥æ |
| | | Zdp_CurrentStatue="0" |
| | | }; |
| | | |
| | | if (_InWheels_MesRepository.AddData(wheels_Mes) > 0) |
| | | if (_InZdp_MesRepository.AddData(dt_InZdp_) > 0) |
| | | { |
| | | return content.OK("ä¿åæå"); |
| | | } |
| | |
| | | private readonly IDt_WheelsStock_OldRepository dt_WheelsStock_OldRepository; |
| | | private readonly ISelectionWheelsRepository _SelectionWheelsRepository; |
| | | private readonly IDt_AxleshelfService _AxleshelfService; |
| | | |
| | | private readonly IDt_ZdpStockRepository _ZdpStockRepository; |
| | | private readonly IDt_ZdpStockService _ZdpStockService; |
| | | private readonly IDt_InZdp_mesRepository _InZdp_MesRepository; |
| | | |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | |
| | | public ToAPPService(ILocationInfoRepository locationRepository, IDt_TaskRepository taskRepository, ISys_ConfigService configService, IDt_InWheels_mesRepository inWheels_MesRepository, IDt_WheelsStockRepository wheelsStockRepository, IDt_SelectionStandardsRepository selectionStandardsRepository, IDt_WheelsStockService wheelsStockService, IDt_CZInfo_mesRepository cZInfo_MesRepository, IUnitOfWorkManage unitOfWorkManage, IDt_WheelsStock_OldRepository dt_WheelsStock_OldRepository, ISelectionWheelsRepository selectionWheelsRepository, IDt_AxleshelfService axleshelfService) |
| | | public ToAPPService(ILocationInfoRepository locationRepository, IDt_TaskRepository taskRepository, ISys_ConfigService configService, IDt_InWheels_mesRepository inWheels_MesRepository, IDt_WheelsStockRepository wheelsStockRepository, IDt_SelectionStandardsRepository selectionStandardsRepository, IDt_WheelsStockService wheelsStockService, IDt_CZInfo_mesRepository cZInfo_MesRepository, IUnitOfWorkManage unitOfWorkManage, IDt_WheelsStock_OldRepository dt_WheelsStock_OldRepository, ISelectionWheelsRepository selectionWheelsRepository, IDt_AxleshelfService axleshelfService, IDt_ZdpStockRepository zdpStockRepository, IDt_InZdp_mesRepository inZdp_MesRepository, IDt_ZdpStockService zdpStockService) |
| | | { |
| | | _InWheels_MesRepository = inWheels_MesRepository; |
| | | _locationRepository = locationRepository; |
| | |
| | | this.dt_WheelsStock_OldRepository = dt_WheelsStock_OldRepository; |
| | | _SelectionWheelsRepository = selectionWheelsRepository; |
| | | _AxleshelfService = axleshelfService; |
| | | _ZdpStockRepository = zdpStockRepository; |
| | | _InZdp_MesRepository = inZdp_MesRepository; |
| | | _ZdpStockService = zdpStockService; |
| | | } |
| | | } |
| | | } |
| | |
| | |  |
| | | using Masuit.Tools; |
| | | using Newtonsoft.Json; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; |
| | | using System.Reflection.Emit; |
| | | using System.Security.Policy; |
| | | using System; |
| | | using WIDESEA.Common; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Common.ZY; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_Core.Helper; |
| | | using WIDESEA_Model.Models; |
| | | |
| | | namespace WIDESEA_StoragIntegrationServices |
| | | { |
| | |
| | | |
| | | ZDPInfo_ZY inf2o = XMLSerializationTool.DeserializeXmlToObject<ZDPInfo_ZY>(responStr); |
| | | |
| | | if (inf2o.FLAG != "S") throw new Exception($"è·åä¿¡æ¯å¤±è´¥:æ¥å£è¿å失败:{inf2o.ERROR}"); |
| | | if (inf2o.FLAG != "S") |
| | | throw new Exception($"è·åä¿¡æ¯å¤±è´¥:æ¥å£è¿å失败:{inf2o.ERROR}"); |
| | | //string info2 = XMLSerializationTool.SerializeObjectToXml<string>(responStr); |
| | | |
| | | //CLInfo_ZY info_ZY = new CLInfo_ZY() //æµè¯æ°æ® |
| | |
| | | // //ygljz = "121" |
| | | //}; |
| | | |
| | | //inf2o.CHEXING = "CRH1A"; |
| | | //inf2o.MTTYPE = "M"; |
| | | |
| | | |
| | | inf2o.ZPH = "20231021-0019/25103295 0011"; |
| | | inf2o.CHEXING = "CRH1A"; |
| | | inf2o.NEWOLD = "æ§"; |
| | | inf2o.POS = "ä¸é´"; |
| | | inf2o.LSXH = "XKDS"; |
| | | inf2o.MAT = "é¢"; |
| | | inf2o.SITE = "å½äº§"; |
| | | inf2o.GKA1 = "0.53"; |
| | | inf2o.GKA2 = "0.23"; |
| | | inf2o.GKA3 = "0.133"; |
| | | inf2o.GKA = "0.535"; |
| | | inf2o.GKB1 = "0.533"; |
| | | inf2o.GKB2 = "0.431"; |
| | | inf2o.GKB3 = "0.532"; |
| | | inf2o.GKB = "0.623"; |
| | | inf2o.GKC1 = "0.123"; |
| | | inf2o.GKC2 = "0.533"; |
| | | inf2o.GKC3 = "0.222"; |
| | | inf2o.GKC = "0.543"; |
| | | inf2o.GKJZ = "0.22"; |
| | | inf2o.LSCSYMH = "0.42"; |
| | | inf2o.LMCSYMH = "0.031"; |
| | | inf2o.RKSJ = DateTime.Now.ToString(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //CLInfo_ZY info_ZY = XmlToJson(responStr); |
| | | |
| | |
| | | using WIDESEA_IServices; |
| | | using AngleSharp.Dom; |
| | | using System.Reflection; |
| | | using WIDESEA_Core.Utilities; |
| | | using WIDESEA_IServices; |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | |
| | | return content.Error($"æ·»å 失败:{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹æ°æ® |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | public virtual WebResponseContent UpdateData(SaveModel saveModel) |
| | | { |
| | | try |
| | | { |
| | | int id = int.Parse(saveModel.MainData["id"].ToString()); |
| | | string carType = saveModel.MainData["carType"].ToString(); |
| | | string mttype = saveModel.MainData["mttype"].ToString(); |
| | | string neworold = saveModel.MainData["neworold"].ToString(); |
| | | string gkdj = saveModel.MainData["gkdj"].ToString(); |
| | | 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"]); |
| | | |
| | | Dt_SelectionStandards dt_Selection = BaseDal.QueryFirst(x => x.ID == id); |
| | | 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; |
| | | |
| | | |
| | | if (BaseDal.UpdateData(dt_Selection)) |
| | | { |
| | | return WebResponseContent.Instance.OK("æ·»å æå"); |
| | | } |
| | | else |
| | | { |
| | | return WebResponseContent.Instance.Error("æ·»å 失败"); |
| | | } |
| | | |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | using Microsoft.EntityFrameworkCore.Metadata.Internal; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | using WIDESEA_StorageBasicRepository; |
| | | |
| | | namespace WIDESEA_StorageBasicService; |
| | |
| | | // è¿åéªè¯ç»æå表 |
| | | return validationResults; |
| | | } |
| | | |
| | | |
| | | public WebResponseContent RequestAxleloading(RequestTaskDto input) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | Dt_CZInfo_mes CZInfot = BaseDal.QueryFirst(x => x.CurrentStatue == "1" || x.CurrentStatue == "11"); |
| | | |
| | | if (CZInfot != null) |
| | | { |
| | | CZInfot.CurrentStatue = CZInfot.CurrentStatue=="1"?"2":"12"; |
| | | BaseDal.UpdateData(CZInfot); |
| | | return content.OK(data: CZInfot.CZTM); |
| | | } |
| | | else |
| | | { |
| | | return content.Error("æªæ¾å°éè¦ä¸æ¶ç车轴æ¡ç "); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent UpdateAxleCurrentStatue(RequestTaskDto input) |
| | | { |
| | | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | Dt_CZInfo_mes CZInfot = BaseDal.QueryFirst(x => x.CZTM == input.PalletCode); |
| | | |
| | | if (CZInfot != null) |
| | | { |
| | | if (CZInfot.CurrentStatue == "2") |
| | | { |
| | | CZInfot.CurrentStatue = "3"; |
| | | } |
| | | else if (CZInfot.CurrentStatue == "12") |
| | | { |
| | | CZInfot.CurrentStatue = "13"; |
| | | |
| | | } |
| | | else |
| | | { |
| | | return content.Error($"æªæ¾å°ç³è¯·è½¦è½´æ¡ç ä¿¡æ¯ï¼ç¶æä¸ä¸ºè¾é线è¿è¡ä¸ï¼ç³è¯·æ¡ç ï¼{input.PalletCode}"); |
| | | } |
| | | |
| | | BaseDal.UpdateData(CZInfot); //å
ä¿®æ¹äºç¶æ |
| | | return content.OK(); |
| | | } |
| | | else |
| | | { |
| | | return content.Error($"æªæ¾å°ç³è¯·è½¦è½´æ¡ç ä¿¡æ¯ï¼ç³è¯·æ¡ç ï¼{input.PalletCode}"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error($"æ´æ°è½¦è½´ä¿¡æ¯ç¶æåºéï¼ç³è¯·æ¡ç ï¼{input.PalletCode},é误信æ¯ï¼{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | public override WebResponseContent UpdateData(SaveModel saveModel) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | try |
| | | { |
| | | int id = int.Parse(saveModel.MainData["id"]?.ToString()); |
| | | string cztm = saveModel.MainData["cztm"]?.ToString(); |
| | | if (string.IsNullOrEmpty(cztm)) |
| | | throw new Exception($"车轴å·ä¸ºç©º"); |
| | | string currentStatue = saveModel.MainData["currentStatue"]?.ToString(); |
| | | if (string.IsNullOrEmpty(currentStatue)) |
| | | throw new Exception($"è½¦è½´ç¶æä¸ºç©º"); |
| | | Dt_CZInfo_mes CZInfot = BaseDal.QueryFirst(x => x.ID == id); |
| | | if (CZInfot != null) |
| | | { |
| | | CZInfot.CZTM = cztm; |
| | | CZInfot.CurrentStatue = currentStatue; |
| | | BaseDal.UpdateData(CZInfot); //å
ä¿®æ¹äºç¶æ |
| | | return webResponse.OK($"ä¿®æ¹æå"); |
| | | } |
| | | else |
| | | { |
| | | return webResponse.Error($"ä¿®æ¹å¤±è´¥ï¼æªæ¾å°è½¦è½´ä¿¡æ¯"); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return webResponse.Error($"ä¿®æ¹å¤±è´¥ï¼é误信æ¯ï¼{ex.Message}"); |
| | | throw; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | using Mapster; |
| | | using AngleSharp.Dom; |
| | | using Mapster; |
| | | using Masuit.Tools; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Internal; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.Reflection; |
| | | using WIDESEA_Core; |
| | | using WIDESEA_StorageBasicRepository; |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | public override WebResponseContent DeleteData(object key) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | |
| | | // è¿åéªè¯ç»æå表 |
| | | return validationResults; |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ£æ¥å¹¶çæç§»åºä»»å¡æè¿åå
¥åºä»»å¡ |
| | | /// </summary> |
| | | /// <param name="locationID">ä»»å¡å·</param> |
| | | /// <returns>ä»»å¡å¯¹è±¡</returns> |
| | | public virtual async Task<Dt_Task> InTransferCheckAsync(RequestTaskDto input) |
| | | { |
| | | try |
| | | { |
| | | int taskNum = input.taskNum; |
| | | |
| | | // æ ¹æ®ä»»å¡å·è·åå
¥åºä»»å¡ |
| | | var inboundTask = await _taskRepository.QueryFirstAsync(x => x.TaskNum == taskNum); |
| | | if (inboundTask == null) |
| | | return null; |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "æ ¹æ®ä»»å¡å·è·åä»»å¡", $"ä»»å¡å·ï¼{taskNum}ï¼ä»»å¡æ°æ®ï¼{inboundTask}"); |
| | | |
| | | var location = await BaseDal.QueryFirstAsync(x => x.LocationCode == inboundTask.TargetAddress); |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "è·åæå®åºä½çè´§ä½æ°æ®", $"è´§ä½å·ï¼{inboundTask.TargetAddress}ï¼è´§ä½æ°æ®ï¼{location}"); |
| | | |
| | | // æ£æ¥æ¯å¦éè¦è¿è¡ç§»åº |
| | | if (CheckForInternalTransfer(location)) |
| | | { |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº", $"è´§ä½å·ï¼{inboundTask.TargetAddress}ï¼è´§ä½æ°æ®ï¼{location}"); |
| | | // 计ç®å¯¹åºä½ç½®çç¸å¯¹åºä½ ï¼å¥æ°è¡çä¸ä¸è¡æè
å¶æ°è¡çä¸ä¸è¡ï¼ |
| | | var newLocationID = GetRelativeLocationID(location); |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,ç»å»ºéè¦ç§»åºè´§ä½å·", $"æ°çåºä½IDï¼{newLocationID}"); |
| | | |
| | | var relocationTask = await _taskRepository.QueryFirstAsync(x => x.TargetAddress == newLocationID && x.Roadway == inboundTask.Roadway && x.TaskType == (int)TaskTypeEnum.Relocation); |
| | | if (relocationTask != null) return relocationTask; |
| | | |
| | | // è·åæ°çåºä½çä»»å¡ |
| | | var internalTransferTask = await _taskRepository.QueryFirstAsync(x => x.TargetAddress == newLocationID && x.Roadway == inboundTask.Roadway && x.TaskState == (int)TaskOutStatusEnum.OutNew); |
| | | |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,è·åæ°åºä½çä»»å¡", $"æ°åºä½ä»»å¡ï¼{internalTransferTask}"); |
| | | // 妿æ°çåºä½æ²¡ææ¾å°å¯¹åºçä»»å¡ |
| | | if (internalTransferTask == null) |
| | | { |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°æ°åºä½ä»»å¡", $""); |
| | | return await InHandleLocation(inboundTask.TargetAddress, newLocationID, inboundTask); |
| | | } |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,è·åå°æ°åºä½ä»»å¡ç´æ¥è¿å", $"æ°åºä½ä»»å¡ï¼{internalTransferTask}"); |
| | | // ç´æ¥è¿å䏿·±ä½åºåºä»»å¡ |
| | | return internalTransferTask; |
| | | } |
| | | |
| | | // è¿åå½ååºä½çåºåºä»»å¡ |
| | | return inboundTask; |
| | | } |
| | | catch (Exception) |
| | | { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public override WebResponseContent UpdateData(SaveModel saveModel) |
| | | { |
| | | int id = saveModel.MainData["id"].ObjToInt(); |
| | |
| | | |
| | | #endregion å¯ç¨ç¦ç¨è´§ä½ |
| | | |
| | | #region 大å±åºä½ç¶æè·å |
| | | public WebResponseContent LocationStatus() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | | // è·åææåºä½æ°æ® |
| | | List<DtLocationInfo> locations = BaseDal.QueryData(); |
| | | |
| | | // æLocationStatusåç»ç»è®¡ |
| | | var statusGroups = locations |
| | | .GroupBy(l => l.LocationStatus) |
| | | .Select(g => new |
| | | { |
| | | Status = g.Key==0?"空货ä½": g.Key == 1 ? "éå®": g.Key == 2 ? "æè´§": "æè´§ç¦ç¨", |
| | | Count = g.Count(), |
| | | }) |
| | | .ToList(); |
| | | |
| | | // å°ç»è®¡ç»ææ¾å
¥ååºå
容 |
| | | content.Data = statusGroups; |
| | | |
| | | return content; |
| | | } |
| | | #endregion |
| | | |
| | | |
| | | #region å
鍿¹æ³ |
| | | |
| | | #region ç§»åºæ¹æ³ |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¤çå
¥åºæ²¡æä»»å¡çåºä½æ
åµ |
| | | /// </summary> |
| | | /// <param name="originalLocationID">åå§åºä½ID</param> |
| | | /// <param name="newLocationID">æ°çåºä½ID</param> |
| | | /// <param name="outboundTask">åºåºä»»å¡</param> |
| | | /// <returns>çæçç§»åºä»»å¡æåå§åºåºä»»å¡</returns> |
| | | private async Task<Dt_Task> InHandleLocation(string originalLocationID, string newLocationID, Dt_Task inboundTask) |
| | | { |
| | | // å¤æè¯¥ä½ç½®æ¯å¦æåºå |
| | | var stockInfo = await _WheelsStockRepository.QueryFirstAsync(x => x.Wheels_Location == newLocationID); |
| | | |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°æ°åºä½ä»»å¡", $"该ä½ç½®æ¯å¦æåºåï¼{stockInfo}"); |
| | | if (stockInfo == null) |
| | | { |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æªè·åå°åºåæ°æ®", $"ç´æ¥è¿ååå
åºåºä»»å¡ï¼{inboundTask}"); |
| | | // å¦ææ²¡æåºåï¼ç´æ¥è¿åå½ååºåºä»»å¡ |
| | | return inboundTask; |
| | | } |
| | | else |
| | | { |
| | | // 妿æåºåï¼çæç§»åºä»»å¡ |
| | | var emptyLocation = RequestLocation("SC1"); |
| | | if (emptyLocation == null) throw new Exception("ææ ç©ºåº"); |
| | | |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æ¥æ¾è½ç§»åºè´§ä½", $"è´§ä½æ°æ®ï¼{emptyLocation}"); |
| | | var taskNo = await _taskRepository.GetTaskNo(); |
| | | Dt_Task newTransferTask = new Dt_Task() |
| | | { |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName == null ? "admin" : App.User.UserName, |
| | | CurrentAddress = stockInfo.Wheels_Location, |
| | | Grade = 99, |
| | | MaterialNo = stockInfo.Wheels_Type, |
| | | NextAddress = emptyLocation.LocationCode, |
| | | PalletCode = stockInfo.Wheels_Num, |
| | | Remark = "ç§»åº", |
| | | Roadway = "SC1", |
| | | SourceAddress = stockInfo.Wheels_Location, |
| | | TaskNum = taskNo, |
| | | TargetAddress = emptyLocation.LocationCode, |
| | | TaskState = (int)TaskStatus.Created, |
| | | TaskType = (int)TaskTypeEnum.Relocation, |
| | | Dispatchertime = DateTime.Now, |
| | | }; |
| | | LogFactory.GetLog("æ£æ¥æ¯å¦éè¦ç§»åº").InfoFormat(true, "éè¦ç§»åº,æ°å»ºç§»åºä»»å¡", $"ç§»åºä»»å¡æ°æ®ï¼{newTransferTask}"); |
| | | |
| | | //ä¿®æ¹åºä½ç¶æ |
| | | emptyLocation.LocationStatus = (int)LocationEnum.FreeDisable; |
| | | BaseDal.UpdateData(emptyLocation); |
| | | |
| | | return await _taskRepository.Create(newTransferTask); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ ¹æ®è´§ä½æ¯å¦éè¦ç§»åº |
| | | /// </summary> |
| | | /// <param name="locationID">è´§ä½ID</param> |
| | |
| | | if (locationInfos == null || locationInfos.Count == 0) |
| | | { |
| | | locationInfos = BaseDal.QueryData(x => x.LocationStatus == (int)LocationEnum.Free && x.RoadwayNo == "SC1" && x.EnalbeStatus == 1 && x.LocationType == 1); |
| | | |
| | | } |
| | | |
| | | var location = GetEmptyLocation(locationInfos); |
| | | var location = GetEmptyLocation(locationInfos); //æ¾åºè´§ä½ |
| | | |
| | | if (location != null) |
| | | { |
| | | if (location.Depth == 2) |
| | | { |
| | | int row = location.Row; |
| | | int relativeLine = row % 2 == 1 ? row + 1 : row - 1; |
| | | //int relativeLine = row % 2 == 1 ? row + 1 : row - 1; |
| | | |
| | | int relativeLine = row == 1 ? row + 1 : row - 1; |
| | | |
| | | var insideLocation = BaseDal.QueryFirst(x => x.Row == relativeLine && x.Layer == location.Layer && x.Column == location.Column); |
| | | |
| | |
| | | //è¿çéä¸é |
| | | decimal selectionLowerValue = selectionStandards.lowerValue; |
| | | |
| | | decimal mesStand = 0; |
| | | string level = string.Empty; |
| | | if ("left".Equals(wheelsPosition)) //å¹é
左轮座轮å |
| | | { |
| | | mesStand = decimal.Parse(CZInfo_Mes.ZLZZJ); |
| | | decimal mesStand = decimal.Parse(CZInfo_Mes.ZLZZJ); |
| | | level = LevelChangeHelper.LevelChangeType(CZInfo_Mes.ZLZDJ); |
| | | WheelsList = WheelsList.Where(x => mesStand - (decimal.Parse(x.Wheels_gkcc)) >= selectionLowerValue && mesStand - (decimal.Parse(x.Wheels_gkcc)) <= selectionUpperValue && x.Wheels_level == level && x.Wheels_NewOrOld == newOrOld).ToList(); |
| | | } |
| | | else //å¦åå¹é
å³è½®åº§è½®å |
| | | { |
| | | mesStand = decimal.Parse(CZInfo_Mes.YLZZJ); |
| | | decimal mesStand = decimal.Parse(CZInfo_Mes.YLZZJ); |
| | | level = LevelChangeHelper.LevelChangeType(CZInfo_Mes.YLZDJ); |
| | | WheelsList = WheelsList.Where(x => mesStand - (decimal.Parse(x.Wheels_gkcc)) >= selectionLowerValue && mesStand - (decimal.Parse(x.Wheels_gkcc)) <= selectionUpperValue && x.Wheels_level == level && x.Wheels_NewOrOld == newOrOld).ToList(); |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | public Dt_WheelsStock_Old GetSelectionWheels(List<Dt_WheelsStock_Old> wheelsStocks, Dt_SelectionStandards selectionStandards, Dt_CZInfo_mes CZInfo_Mes, string wheelsPosition, string newOrOld) |
| | | public Dt_WheelsStock_Old GetSelectionWheels(List<Dt_WheelsStock_Old> wheelsStocks, Dt_SelectionStandards selectionStandards, Dt_CZInfo_mes CZInfo_Mes, string wheelsPosition, string newOrOld, string wheelsProps) |
| | | { |
| | | try |
| | | { |
| | |
| | | { |
| | | mesStand = decimal.Parse(CZInfo_Mes.ZLZZJ); |
| | | level = LevelChangeHelper.JkChangeType(CZInfo_Mes.YLZDJ); |
| | | wheelsStocks = wheelsStocks.Where(x => x.venderno== level && x.repair_item == newOrOld).ToList(); |
| | | wheelsStocks = wheelsStocks.Where(x => x.venderno == level && x.repair_item == newOrOld).ToList(); |
| | | } |
| | | else //å¦åå¹é
å³è½®åº§è½®å |
| | | { |
| | | mesStand = decimal.Parse(CZInfo_Mes.YLZZJ); |
| | | level = LevelChangeHelper.JkChangeType(CZInfo_Mes.YLZDJ); |
| | | |
| | | wheelsStocks = wheelsStocks.Where(x => x.venderno== level && x.repair_item == newOrOld).ToList(); |
| | | wheelsStocks = wheelsStocks.Where(x => x.venderno == level && x.repair_item == newOrOld).ToList(); |
| | | } |
| | | foreach (var item in wheelsStocks) |
| | | { |
| | |
| | | string Wheels_gkzja = ""; |
| | | string Wheels_gkzjb = ""; |
| | | string Wheels_gkzjc = ""; |
| | | string clsx = ""; |
| | | |
| | | SaveModel saveModel = new SaveModel(); |
| | | saveModel.MainData = new Dictionary<string, object> |
| | | { |
| | | { "cltm", item.wheel_code } |
| | | }; |
| | | { |
| | | { "cltm", item.wheel_code } |
| | | }; |
| | | WebResponseContent webResponse = _toZYService.ZY_GetCLInfo(saveModel); |
| | | if (webResponse.Status) |
| | | { |
| | | CLInfo_ZY data = (CLInfo_ZY)webResponse.Data; |
| | | |
| | | if(wheelsProps== data.CLSX) |
| | | { |
| | | wheelsStocks.Remove(item); |
| | | continue; |
| | | } |
| | | |
| | | Wheels_gkcc = data.gkcc; |
| | | // æ¯åaçé¢åå¼ |
| | |
| | | { |
| | | |
| | | wheelsStocks.Remove(item); |
| | | continue; |
| | | } |
| | | if (selectionStandards.isCantainGK) |
| | | { |
| | |
| | | && ZLZC - (decimal.Parse(Wheels_gkzjc)) < selectionLowerValue_gk && ZLZC - (decimal.Parse(Wheels_gkzjc)) > selectionUpperValue_gk) |
| | | { |
| | | wheelsStocks.Remove(item); |
| | | continue; |
| | | } |
| | | } |
| | | else |
| | |
| | | && YLZC - (decimal.Parse(Wheels_gkzjc)) >= selectionLowerValue_gk && YLZC - (decimal.Parse(Wheels_gkzjc)) <= selectionUpperValue_gk) |
| | | { |
| | | wheelsStocks.Remove(item); |
| | | continue; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent InventoryStatistics() |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | |
| | | List<Dt_WheelsStock> stockInfos = BaseDal.QueryData(); |
| | | |
| | | //è·å车å |
| | | List<string> Wheels_CarTypeList = stockInfos.Select(x => x.Wheels_CarType).Distinct().ToList(); |
| | | |
| | | foreach (var CarType in Wheels_CarTypeList) |
| | | { |
| | | content.Data = stockInfos.Where(x => x.Wheels_CarType == CarType).GroupBy(w => w.Wheels_ldxh) |
| | | .Select(typeGroup => new |
| | | { |
| | | Wheels_CarType = CarType, //车å |
| | | Wheels_ldxh = typeGroup.Key, |
| | | Count = typeGroup.Count(), |
| | | |
| | | }).ToList(); |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | using MailKit.Search; |
| | | using Mapster; |
| | | using Masuit.Tools; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Math; |
| | | using System.Diagnostics; |
| | | using System.Reflection.Emit; |
| | | using System.Text.RegularExpressions; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_DTO.WMS; |
| | | using WIDESEA_IServices; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | using WIDESEA_Model.Models; |
| | | using WIDESEA_StorageBasicRepository; |
| | | using WIDESEAWCS_BasicInfoRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob.Models; |
| | |
| | | private readonly IDt_WheelsStock_htyRepository _WheelsStock_HtyRepository; |
| | | private readonly IDt_InWheels_mes_htyRepository _InWheels_Mes_HtyRepository; |
| | | private readonly IDt_CacheInfoRepository _CacheInfoRepository; |
| | | private readonly IDt_OutWheels_htyRepository _OutWheels_HtyRepository; |
| | | private readonly IDt_InZdp_mesRepository _InZdp_MesRepository; |
| | | private readonly IDt_InZdp_mes_htyRepository _InZdp_Mes_HtyRepository; |
| | | private readonly IDt_ZdpStockRepository _ZdpStockRepository; |
| | | private readonly IDt_ZdpStock_htyRepository _ZdpStock_HtyRepository; |
| | | |
| | | public Dt_TaskService(IDt_TaskRepository BaseDal, |
| | | IUnitOfWorkManage unitOfWorkManage, |
| | |
| | | IDt_WheelsStockRepository wheelsStockRepository, |
| | | IDt_WheelsStock_htyRepository wheelsStock_HtyRepository, |
| | | IDt_InWheels_mes_htyRepository inWheels_Mes_HtyRepository, |
| | | IDt_CacheInfoRepository cacheInfoRepository) : base(BaseDal) |
| | | IDt_OutWheels_htyRepository dt_OutWheels_HtyRepository, |
| | | IDt_CacheInfoRepository cacheInfoRepository, |
| | | IDt_InZdp_mesRepository inZdp_MesRepository, |
| | | IDt_InZdp_mes_htyRepository inZdp_Mes_HtyRepository, |
| | | IDt_ZdpStockRepository zdpStockRepository, |
| | | IDt_ZdpStock_htyRepository dt_ZdpStock_HtyRepository) : base(BaseDal) |
| | | |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | |
| | | _WheelsStockRepository = wheelsStockRepository; |
| | | _WheelsStock_HtyRepository = wheelsStock_HtyRepository; |
| | | _InWheels_Mes_HtyRepository = inWheels_Mes_HtyRepository; |
| | | _OutWheels_HtyRepository = dt_OutWheels_HtyRepository; |
| | | _CacheInfoRepository = cacheInfoRepository; |
| | | _InZdp_MesRepository = inZdp_MesRepository; |
| | | _InZdp_Mes_HtyRepository = inZdp_Mes_HtyRepository; |
| | | _ZdpStockRepository = zdpStockRepository; |
| | | _ZdpStock_HtyRepository = dt_ZdpStock_HtyRepository; |
| | | } |
| | | |
| | | #region å¤é¨æ¥å£æ¹æ³ |
| | |
| | | |
| | | #endregion ç§»åºä»»å¡å®æ |
| | | |
| | | #region å¶å¨çç§»åºä»»å¡å®æ |
| | | |
| | | /// <summary> |
| | | /// ç§»åºä»»å¡å®æ |
| | | /// </summary> |
| | | /// <param name="saveModel">任塿°æ®åé</param> |
| | | /// <returns>è¿åç»æé</returns> |
| | | public async Task<WebResponseContent> CompleteZdpTaskAsync(Dt_Task task, Dt_ZdpStock stock) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | // æ´æ°è´§ä½ååºåä¿¡æ¯ |
| | | (Dt_ZdpStock updateStock, DtLocationInfo locationInForm, DtLocationInfo locationInfoTo) = UpdateZdpStockLocation(stock,task); |
| | | var taskHty = CreateHistoricalTask(task); |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "ç§»åºä»»å¡å®æ", $"è´§ä½å°åï¼{task.TargetAddress},ä¿®æ¹ååºåæ°æ®ï¼{JsonConvert.SerializeObject(updateStock)}ï¼åå
è´§ä½æ°æ®ï¼{locationInForm}"); |
| | | |
| | | // æ§è¡æ°æ®åºäºå¡ |
| | | bool isResult = await ZdpExecuteTransaction(updateStock, taskHty, locationInForm, locationInfoTo, task.TaskId); |
| | | if (isResult) |
| | | content.OK("ç§»åºä»»å¡å®ææå"); |
| | | else |
| | | content.Error("ç§»åºä»»å¡å®æå¤±è´¥"); |
| | | } |
| | | catch (Exception err) |
| | | { |
| | | Console.WriteLine(err.Message.ToString()); |
| | | } |
| | | return content; |
| | | } |
| | | |
| | | #endregion ç§»åºä»»å¡å®æ |
| | | |
| | | #region å
¥åºä»»å¡å®æ |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | |
| | | // è·åMESä¿¡æ¯åç®æ ä½ç½®ä¿¡æ¯ |
| | | var mes_Wheels = await _InWheels_MesRepository.QueryFirstNavAsync(x => x.Wheels_Num == task.PalletCode); |
| | | Dt_InWheels_mes mes_Wheels = null; |
| | | Dt_InZdp_mes mes_Zdp = null; |
| | | Dt_WheelsStock wheelsStock = null; |
| | | Dt_ZdpStock zdpStock = null; |
| | | |
| | | if (task.TaskType== (int)TaskInboundTypeEnum.InBrake) |
| | | mes_Zdp = await _InZdp_MesRepository.QueryFirstNavAsync(x => x.Zdp_code == task.PalletCode); |
| | | else |
| | | mes_Wheels = await _InWheels_MesRepository.QueryFirstNavAsync(x => x.Wheels_Num == task.PalletCode); |
| | | |
| | | |
| | | var locationInf = await _locationRepository.QueryFirstAsync(x => x.LocationCode == task.TargetAddress && x.RoadwayNo == task.Roadway); |
| | | |
| | | int lastStatus = locationInf.LocationStatus; |
| | |
| | | // å建åå²ä»»å¡å®ä¾æ¨¡å |
| | | var taskHty = CreateHistoricalTask(task); |
| | | |
| | | // æ ¹æ®å建åºåå®ä¾æ¨¡å |
| | | Dt_WheelsStock wheelsStock = new Dt_WheelsStock |
| | | if(task.TaskType == (int)TaskInboundTypeEnum.InBrake) |
| | | { |
| | | Wheels_ldtm = mes_Wheels.Wheels_ldtm, |
| | | CreateDate = DateTime.Now, |
| | | Creater = task.Creater, |
| | | Wheels_Type = mes_Wheels.Wheels_Type, |
| | | Wheels_gkcc = mes_Wheels.Wheels_gkcc, |
| | | WheelsProps = mes_Wheels.WheelsProps, |
| | | Wheels_CarNo = mes_Wheels.Wheels_CarNo, |
| | | Wheels_CarType = mes_Wheels.Wheels_CarType, |
| | | Wheels_ldxh = mes_Wheels.Wheels_ldxh, |
| | | Wheels_code = mes_Wheels.Wheels_code, |
| | | Wheels_InDate = mes_Wheels.Wheels_InDate, |
| | | Wheels_level = mes_Wheels.Wheels_level, |
| | | Wheels_Location = task.TargetAddress, |
| | | Wheels_NewOrOld = mes_Wheels.Wheels_NewOrOld, |
| | | Wheels_Num = mes_Wheels.Wheels_Num, |
| | | Wheels_psj = mes_Wheels.Wheels_psj, |
| | | Wheels_CurrentStatue = 1, |
| | | Wheels_mttype = mes_Wheels.Wheels_mttype, |
| | | Wheels_ljz = mes_Wheels.Wheels_ljz, |
| | | Wheels_ldh = mes_Wheels.Wheels_ldh, |
| | | //Wheels_SequenceNum = mes_Wheels.Wheels_SequenceNum, |
| | | Wheels_ygljz = mes_Wheels.Wheels_ygljz, |
| | | Wheels_gkzja = mes_Wheels.Wheels_gkzja, |
| | | Wheels_gkzjb = mes_Wheels.Wheels_gkzjb, |
| | | Wheels_gkzjc = mes_Wheels.Wheels_gkzjc, |
| | | // æ ¹æ®å建åºåå®ä¾æ¨¡å |
| | | zdpStock = new Dt_ZdpStock |
| | | { |
| | | Zdp_code= mes_Zdp.Zdp_code, |
| | | Zdp_ZPH = mes_Zdp.Zdp_ZPH, |
| | | Zdp_CurrentStatue = 1, |
| | | Zdp_Location = task.TargetAddress, |
| | | Zdp_chexing= mes_Zdp.Zdp_chexing, |
| | | Zdp_neworold = mes_Zdp.Zdp_neworold, |
| | | Zdp_POS = mes_Zdp.Zdp_POS, |
| | | Zdp_LSXH = mes_Zdp.Zdp_LSXH, |
| | | Zdp_MAT = mes_Zdp.Zdp_MAT, |
| | | Zdp_SITE = mes_Zdp.Zdp_SITE, |
| | | Zdp_GKA1 = mes_Zdp.Zdp_GKA1, |
| | | Zdp_GKA2 = mes_Zdp.Zdp_GKA2, |
| | | Zdp_GKA3 = mes_Zdp.Zdp_GKA3, |
| | | Zdp_GKA = mes_Zdp.Zdp_GKA, |
| | | Zdp_GKB1 = mes_Zdp.Zdp_GKB1, |
| | | Zdp_GKB2 = mes_Zdp.Zdp_GKB2, |
| | | Zdp_GKB3 = mes_Zdp.Zdp_GKB3, |
| | | Zdp_GKB = mes_Zdp.Zdp_GKB, |
| | | Zdp_GKC1 = mes_Zdp.Zdp_GKC1, |
| | | Zdp_GKC2 = mes_Zdp.Zdp_GKC2, |
| | | Zdp_GKC3 = mes_Zdp.Zdp_GKC3, |
| | | Zdp_GKC = mes_Zdp.Zdp_GKC, |
| | | Zdp_GKJZ = mes_Zdp.Zdp_GKJZ, |
| | | Zdp_LSCSYMH = mes_Zdp.Zdp_LSCSYMH, |
| | | Zdp_LMCSYMH = mes_Zdp.Zdp_LMCSYMH, |
| | | Zdp_rksj = mes_Zdp.Zdp_rksj, |
| | | CreateDate = DateTime.Now, |
| | | Creater = task.Creater, |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | // æ ¹æ®å建åºåå®ä¾æ¨¡å |
| | | wheelsStock = new Dt_WheelsStock |
| | | { |
| | | Wheels_ldtm = mes_Wheels.Wheels_ldtm, |
| | | CreateDate = DateTime.Now, |
| | | Creater = task.Creater, |
| | | Wheels_Type = mes_Wheels.Wheels_Type, |
| | | Wheels_gkcc = mes_Wheels.Wheels_gkcc, |
| | | WheelsProps = mes_Wheels.WheelsProps, |
| | | Wheels_CarNo = mes_Wheels.Wheels_CarNo, |
| | | Wheels_CarType = mes_Wheels.Wheels_CarType, |
| | | Wheels_ldxh = mes_Wheels.Wheels_ldxh, |
| | | Wheels_code = mes_Wheels.Wheels_code, |
| | | Wheels_InDate = mes_Wheels.Wheels_InDate, |
| | | Wheels_level = mes_Wheels.Wheels_level, |
| | | Wheels_Location = task.TargetAddress, |
| | | Wheels_NewOrOld = mes_Wheels.Wheels_NewOrOld, |
| | | Wheels_Num = mes_Wheels.Wheels_Num, |
| | | Wheels_psj = mes_Wheels.Wheels_psj, |
| | | Wheels_CurrentStatue = 1, |
| | | Wheels_mttype = mes_Wheels.Wheels_mttype, |
| | | Wheels_ljz = mes_Wheels.Wheels_ljz, |
| | | Wheels_ldh = mes_Wheels.Wheels_ldh, |
| | | //Wheels_SequenceNum = mes_Wheels.Wheels_SequenceNum, |
| | | Wheels_ygljz = mes_Wheels.Wheels_ygljz, |
| | | Wheels_gkzja = mes_Wheels.Wheels_gkzja, |
| | | Wheels_gkzjb = mes_Wheels.Wheels_gkzjb, |
| | | Wheels_gkzjc = mes_Wheels.Wheels_gkzjc, |
| | | }; |
| | | } |
| | | |
| | | }; |
| | | |
| | | // æ§è¡æ°æ®åºäºå¡ |
| | | bool isResult = await ExecuteTransaction(wheelsStock, taskHty, locationInf, task.TaskId, mes_Wheels); |
| | | // æ§è¡æ°æ®åºäºå¡ZDPExecuteTransaction |
| | | bool isResult = false; |
| | | if (task.TaskType == (int)TaskInboundTypeEnum.InBrake) |
| | | { |
| | | isResult = await ZDPExecuteTransaction(zdpStock, taskHty, locationInf, task.TaskId, mes_Zdp); |
| | | } |
| | | else |
| | | { |
| | | isResult=await ExecuteTransaction(wheelsStock, taskHty, locationInf, task.TaskId, mes_Wheels); |
| | | } |
| | | |
| | | if (isResult) |
| | | { |
| | | _locationStatusChangeRecordRepository.AddLocationStatusChangeRecord(locationInf, lastStatus, (int)StatusChangeTypeEnum.AutomaticStorage, task.TaskNum); |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | if(stock ==null) return content.Error("ä»»å¡å®æå¤±è´¥ï¼æªæ¾å°å½ååºåä¿¡æ¯ï¼å é¤å¤±è´¥"); |
| | | |
| | | // æ´æ°åºä½ç¶æä¸ä»»å¡ç¶æ |
| | | (var loc, var tas) = UpdateStockAndTaskStatus(stock, task); |
| | | var taskHty = task.Adapt<Dt_Task_Hty>(); |
| | |
| | | stockInfo_Hty.FinishWheelDate = DateTime.Now; |
| | | stockInfo_Hty.OperateType = (int)OperateTypeEnum.èªå¨å®æ; |
| | | |
| | | Dt_OutWheels_hty Outwheels_hty = new Dt_OutWheels_hty |
| | | { |
| | | Wheels_code = stock.Wheels_code, |
| | | Wheels_Type = stock.Wheels_Type == "1"?"è½®":"ç", |
| | | Wheels_Num = stock.Wheels_Num, |
| | | CreateDate = DateTime.Now, |
| | | Creater = App.User.UserName == null ? "admin" : App.User.UserName, |
| | | WheelsProps = stock.WheelsProps, |
| | | Wheels_CarNo = stock.Wheels_CarNo, |
| | | Wheels_CarType = stock.Wheels_CarType, |
| | | Wheels_ldxh = stock.Wheels_ldxh, |
| | | Wheels_ldtm = stock.Wheels_ldtm, |
| | | Wheels_InDate = stock.Wheels_InDate, |
| | | Wheels_level = stock.Wheels_level, |
| | | Wheels_NewOrOld = stock.Wheels_NewOrOld, |
| | | Wheels_psj = stock.Wheels_psj, |
| | | Wheels_gkcc = stock.Wheels_gkcc, |
| | | Wheels_gkzja = stock.Wheels_gkzja, |
| | | Wheels_gkzjb = stock.Wheels_gkzjb, |
| | | Wheels_gkzjc = stock.Wheels_gkzjc, |
| | | Wheels_ldh = stock.Wheels_ldh, |
| | | Wheels_ljz = stock.Wheels_ljz, |
| | | Wheels_mttype = stock.Wheels_mttype, |
| | | //Wheels_SequenceNum = "", |
| | | Wheels_ygljz = stock.Wheels_ygljz, |
| | | }; |
| | | |
| | | |
| | | |
| | | // äºå¡å¤ç |
| | | await _unitOfWorkManage.UseTranAsync(async () => |
| | | { |
| | |
| | | //var isTaskUpdated = await BaseDal.DeleteDataByIdAsync(task.TaskId); //å é¤ä»»å¡ |
| | | var isTaskAdd = await _task_HtyRepository.AddDataAsync(taskHty) > 0; //å å
¥åå²ä»»å¡ |
| | | var isStockHtyAdd = await _WheelsStock_HtyRepository.AddDataAsync(stockInfo_Hty); //å å
¥åå²åºå |
| | | |
| | | var isoutWheelsHtyAdd = await _OutWheels_HtyRepository.AddDataAsync(Outwheels_hty); //æ·»å 车轮åºåºä¿¡æ¯ |
| | | }); |
| | | |
| | | return content.OK("ä»»å¡å®ææå", task.Remark); |
| | | } |
| | | catch (Exception err) |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").Error(true, $"ç³»ç»å¼å¸¸ï¼å¼å¸¸ä¿¡æ¯ï¼{err.Message}"); |
| | | return content.Error(err.Message); |
| | | } |
| | | } |
| | | |
| | | private (DtLocationInfo, Dt_Task) UpdateStockAndTaskStatus( Dt_Task task) |
| | | { |
| | | var location = _locationRepository.QueryFirst(x => x.LocationCode == task.SourceAddress && x.RoadwayNo == task.Roadway); |
| | | int lastStatus = location.LocationStatus; |
| | | location.LocationStatus = (int)LocationEnum.Free; |
| | | task.TaskState = (int)TaskOutStatusEnum.OutFinish; |
| | | //task.CurrentAddress = task.NextAddress; |
| | | //task.NextAddress = task.TargetAddress; |
| | | |
| | | _locationStatusChangeRecordRepository.AddLocationStatusChangeRecord(location, lastStatus, (int)StatusChangeTypeEnum.AutomaticDelivery, task.TaskNum); |
| | | |
| | | LogFactory.GetLog("ä»»å¡å®æ").Info(true, "æ´æ°åºä½ç¶æä¸ä»»å¡ç¶æ"); |
| | | return (location, task); |
| | | } |
| | | #endregion |
| | | |
| | | #region å¶å¨çåºåºä»»å¡å®æ |
| | | public async Task<WebResponseContent> CompleteOutZdpTaskAsync(Dt_Task task, Dt_ZdpStock stock) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | if (stock == null) return content.Error("ä»»å¡å®æå¤±è´¥ï¼æªæ¾å°å½ååºåä¿¡æ¯ï¼å é¤å¤±è´¥"); |
| | | |
| | | // æ´æ°åºä½ç¶æä¸ä»»å¡ç¶æ |
| | | (var loc, var tas) = UpdateStockAndTaskStatus(task); |
| | | var taskHty = task.Adapt<Dt_Task_Hty>(); |
| | | taskHty.FinishTime = DateTime.Now; |
| | | taskHty.OperateType = (int)OperateTypeEnum.èªå¨å®æ; |
| | | |
| | | Dt_ZdpStock_hty stockInfo_Hty = stock.Adapt<Dt_ZdpStock_hty>(); |
| | | stockInfo_Hty.FinishDate = DateTime.Now; |
| | | stockInfo_Hty.OperateType = (int)OperateTypeEnum.èªå¨å®æ; |
| | | |
| | | Dt_OutZdp_hty Outwheels_hty = new Dt_OutZdp_hty |
| | | { |
| | | Zdp_code = stock.Zdp_code, |
| | | Zdp_ZPH = stock.Zdp_ZPH, |
| | | Zdp_Location = stock.Zdp_Location, |
| | | Zdp_chexing = stock.Zdp_chexing, |
| | | Zdp_neworold = stock.Zdp_neworold, |
| | | Zdp_POS = stock.Zdp_POS, |
| | | Zdp_LSXH = stock.Zdp_LSXH, |
| | | Zdp_MAT = stock.Zdp_MAT, |
| | | Zdp_SITE = stock.Zdp_SITE, |
| | | Zdp_GKA1 = stock.Zdp_GKA1, |
| | | Zdp_GKA2 = stock.Zdp_GKA2, |
| | | Zdp_GKA3 = stock.Zdp_GKA3, |
| | | Zdp_GKA = stock.Zdp_GKA, |
| | | Zdp_GKB1 = stock.Zdp_GKB1, |
| | | Zdp_GKB2 = stock.Zdp_GKB2, |
| | | Zdp_GKB3 = stock.Zdp_GKB3, |
| | | Zdp_GKB = stock.Zdp_GKB, |
| | | Zdp_GKC1 = stock.Zdp_GKC1, |
| | | Zdp_GKC2 = stock.Zdp_GKC2, |
| | | Zdp_GKC3 = stock.Zdp_GKC3, |
| | | Zdp_GKC = stock.Zdp_GKC, |
| | | Zdp_GKJZ = stock.Zdp_GKJZ, |
| | | Zdp_LSCSYMH = stock.Zdp_LSCSYMH, |
| | | Zdp_rksj = stock.Zdp_rksj, |
| | | }; |
| | | |
| | | // äºå¡å¤ç |
| | | await _unitOfWorkManage.UseTranAsync(async () => |
| | | { |
| | | var isStockUpdated = await _ZdpStockRepository.DeleteDataByIdAsync(stock.Zdp_ID); //å é¤åºå |
| | | var isLocationUpdate = await _locationRepository.UpdateDataAsync(loc); //æ´æ°åºä½ |
| | | //var isTaskUpdated = await BaseDal.DeleteDataByIdAsync(task.TaskId); //å é¤ä»»å¡ |
| | | var isTaskAdd = await _task_HtyRepository.AddDataAsync(taskHty) > 0; //å å
¥åå²ä»»å¡ |
| | | var isStockHtyAdd = await _ZdpStock_HtyRepository.AddDataAsync(stockInfo_Hty); //å å
¥åå²åºå |
| | | }); |
| | | |
| | | return content.OK("ä»»å¡å®ææå", task.Remark); |
| | |
| | | |
| | | |
| | | // éªè¯åºåæ¯å¦åå¨ |
| | | var stock = await _WheelsStockRepository.QueryFirstNavAsync(x => x.Wheels_Num == task.PalletCode); |
| | | var stock = await _WheelsStockRepository.QueryFirstNavAsync(x => x.Wheels_Num.Contains(task.PalletCode) && x.Wheels_Location==task.SourceAddress); |
| | | var ZdpStock = await _ZdpStockRepository.QueryFirstNavAsync(x => x.Zdp_code == task.PalletCode && x.Zdp_Location == task.SourceAddress); |
| | | |
| | | |
| | | // æ ¹æ®ä»»å¡ç±»åè°ç¨ç¸åºç宿任塿¹æ³ |
| | | switch (task.TaskType) |
| | |
| | | return await CompleteInboundTaskAsync(task); |
| | | |
| | | case (int)TaskOutboundTypeEnum.Outbound: |
| | | case (int)TaskOutboundTypeEnum.OutBrake: |
| | | case (int)TaskOutboundTypeEnum.OutWheels: |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "åºåºä»»å¡", ""); |
| | | return await CompleteStackTaskAsync(task, stock); |
| | | |
| | | case (int)TaskOutboundTypeEnum.OutBrake: |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "å¶å¨çåºåºä»»å¡", ""); |
| | | return await CompleteOutZdpTaskAsync(task, ZdpStock); |
| | | |
| | | case (int)TaskRelocationTypeEnum.Relocation: |
| | | return await CompleteTransferTaskAsync(task, stock); |
| | | if (stock != null) |
| | | return await CompleteTransferTaskAsync(task, stock); |
| | | else |
| | | return await CompleteZdpTaskAsync(task, ZdpStock); |
| | | |
| | | default: |
| | | return content.Error("ä»»å¡ç±»åä¸åå¨"); |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | List<Dt_WheelsStock> WheelList = new List<Dt_WheelsStock>(); |
| | | List<Dt_ZdpStock> ZdpStockList = new List<Dt_ZdpStock>(); |
| | | List<Dt_Task> TaskList = new List<Dt_Task>(); |
| | | List<DtLocationInfo> Locationslist = new List<DtLocationInfo>(); |
| | | List<WMSTaskDTO> WMSTaskDTOdata = new List<WMSTaskDTO>(); |
| | | |
| | | |
| | | string palletCode = saveModel.MainData["palletCode"].ToString(); |
| | | string station = saveModel.MainData["station"].ToString(); |
| | | string outtype = saveModel.MainData["outtype"].ToString(); //1为æå®è½¦è½®åºåºï¼2为æå®å¶å¨çåºåº |
| | | |
| | | // æ¥è¯¢åºåä¿¡æ¯ |
| | | var stockInfo = _WheelsStockRepository.QueryFirst(x => x.Wheels_code == palletCode); |
| | | if (stockInfo == null) |
| | | List<string> palletCodes = JsonConvert.DeserializeObject<List<string>>(palletCode); //ææçæ¡ç æ¾ç¤º |
| | | |
| | | List<DtLocationInfo> locationinfoData = _locationRepository.QueryData(x => x.LocationStatus == 2); //æ¥æ¾å
¨é¨åºä½ |
| | | if (outtype == "2") |
| | | { |
| | | return content.Error("æªæ¥è¯¢å°å¯¹åºçåºåä¿¡æ¯"); |
| | | List<Dt_ZdpStock> stocktData = _ZdpStockRepository.QueryData(x => x.Zdp_CurrentStatue == 1); //æ¥æ¾å
¨é¨å¨åºçåºå |
| | | foreach (var item in palletCodes) |
| | | { |
| | | Dt_ZdpStock zdpInfo = _ZdpStockRepository.QueryFirst(x => x.Zdp_code == item); |
| | | if (zdpInfo == null) return content.Error("æªæ¥è¯¢å°å¯¹åºçåºåä¿¡æ¯"); |
| | | zdpInfo.Zdp_CurrentStatue = 4; |
| | | string Location = zdpInfo.Zdp_Location; |
| | | |
| | | var locationst = locationinfoData.FirstOrDefault(x => x.LocationCode == Location); |
| | | if (locationst.LocationStatus != (int)LocationEnum.InStock && locationst.EnalbeStatus != 1) return content.Error($"åºä½å¼å¸¸,è¯·æ£æ¥ä¸ä¸åºä½,åºåæ¡ç ï¼{item}ï¼åºä½å·ï¼{Location}"); |
| | | |
| | | locationst.LocationStatus = (int)LocationEnum.InStockDisable; |
| | | |
| | | var task = BaseDal.QueryFirst(x => x.PalletCode == item); |
| | | if (task != null) |
| | | { |
| | | return content.Error($"ã{item}ãå·²åå¨ä»»å¡"); |
| | | } |
| | | |
| | | |
| | | CheckInfo checkInfo = new CheckInfo() |
| | | { |
| | | CarType = zdpInfo.Zdp_chexing , |
| | | MTType ="0" , //å¶å¨ç没æå¨æå±æ§ |
| | | |
| | | //CheckType = stockInfo.Wheels_Type == "1" ? "1" : "2", |
| | | CheckType = outtype, |
| | | |
| | | HubLevel = "0" , |
| | | CLTM =zdpInfo.Zdp_code, |
| | | IsCheck = true, |
| | | Standards = zdpInfo.Zdp_neworold |
| | | }; |
| | | |
| | | task = new Dt_Task |
| | | { |
| | | CarType = zdpInfo.Zdp_chexing, |
| | | wheels_gkcc = zdpInfo.Zdp_GKJZ, |
| | | WheelsNewOrOld = zdpInfo.Zdp_neworold, |
| | | WheelsLX = "", |
| | | Grade = 1, |
| | | Roadway = "SC1", |
| | | TargetAddress = station, |
| | | Dispatchertime = DateTime.Now, |
| | | MaterialNo = "", |
| | | NextAddress = "2010", |
| | | OrderNo = null, |
| | | PalletCode = zdpInfo.Zdp_code, |
| | | wheels_mttype = "" , |
| | | SourceAddress = zdpInfo.Zdp_Location, |
| | | CurrentAddress =zdpInfo.Zdp_Location, |
| | | TaskState = (int)TaskOutStatusEnum.OutNew, |
| | | TaskType = outtype == "2" ? (int)TaskOutboundTypeEnum.OutBrake : (int)TaskOutboundTypeEnum.OutWheels, |
| | | TaskNum = BaseDal.GetTaskNo().Result, |
| | | Creater = "System", |
| | | CreateDate = DateTime.Now, |
| | | TaskId = 0, |
| | | task_bak1 = JsonConvert.SerializeObject(checkInfo), |
| | | Towhereabouts = station, |
| | | }; |
| | | |
| | | // å建任å¡ä¼ è¾ç¨çDTO对象 |
| | | var taskDTO = CreateTaskDTO(task); |
| | | |
| | | WMSTaskDTOdata.Add(taskDTO); |
| | | Locationslist.Add(locationst); |
| | | TaskList.Add(task); |
| | | ZdpStockList.Add(zdpInfo); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | List<Dt_WheelsStock> stocktData = _WheelsStockRepository.QueryData(x => x.Wheels_CurrentStatue == 1); //æ¥æ¾å
¨é¨å¨åºçåºå |
| | | foreach (var item in palletCodes) |
| | | { |
| | | Dt_WheelsStock stockInfo = _WheelsStockRepository.QueryFirst(x => x.Wheels_code == item); |
| | | if (stockInfo == null) return content.Error("æªæ¥è¯¢å°å¯¹åºçåºåä¿¡æ¯"); |
| | | stockInfo.Wheels_CurrentStatue = 4; |
| | | string Location = stockInfo.Wheels_Location; |
| | | var locationst = locationinfoData.Where(x => x.LocationCode== stockInfo.Wheels_Location).FirstOrDefault(); |
| | | if (locationst.LocationStatus == (int)LocationEnum.Lock) return content.Error("åºä½éå®,请å
è§£éååæå®åºåº"); |
| | | |
| | | locationst.LocationStatus = (int)LocationEnum.InStockDisable; |
| | | |
| | | var task = BaseDal.QueryFirst(x => x.PalletCode == item); |
| | | if (task != null) |
| | | { |
| | | return content.Error($"ã{item}ãå·²åå¨ä»»å¡"); |
| | | } |
| | | |
| | | CheckInfo checkInfo = new CheckInfo() |
| | | { |
| | | CarType = stockInfo.Wheels_CarType, |
| | | MTType = stockInfo.Wheels_mttype, //å¶å¨ç没æå¨æå±æ§ |
| | | |
| | | //CheckType = stockInfo.Wheels_Type == "1" ? "1" : "2", |
| | | CheckType = outtype, |
| | | |
| | | HubLevel = stockInfo.Wheels_level.Contains("ç级") ? stockInfo.Wheels_level.Replace("ç级", "") : "0", |
| | | CLTM = stockInfo.Wheels_Num, |
| | | IsCheck = true, |
| | | Standards = stockInfo.Wheels_NewOrOld |
| | | }; |
| | | |
| | | |
| | | task = new Dt_Task |
| | | { |
| | | CarType = stockInfo.Wheels_CarType, |
| | | wheels_gkcc = stockInfo.Wheels_gkcc, |
| | | WheelsNewOrOld = stockInfo.Wheels_NewOrOld, |
| | | WheelsLX = outtype == "2" ? "" : stockInfo.Wheels_ldxh, |
| | | Grade = 1, |
| | | Roadway = "SC1", |
| | | TargetAddress = station, |
| | | Dispatchertime = DateTime.Now, |
| | | MaterialNo = "", |
| | | NextAddress = "2010", |
| | | OrderNo = null, |
| | | PalletCode = stockInfo.Wheels_Num, |
| | | wheels_mttype = stockInfo.Wheels_mttype, |
| | | SourceAddress =stockInfo.Wheels_Location, |
| | | CurrentAddress = stockInfo.Wheels_Location, |
| | | TaskState = (int)TaskOutStatusEnum.OutNew, |
| | | TaskType = outtype == "2" ? (int)TaskOutboundTypeEnum.OutBrake : (int)TaskOutboundTypeEnum.OutWheels, |
| | | TaskNum = BaseDal.GetTaskNo().Result, |
| | | Creater = "System", |
| | | CreateDate = DateTime.Now, |
| | | TaskId = 0, |
| | | task_bak1 = JsonConvert.SerializeObject(checkInfo), |
| | | Towhereabouts = station, |
| | | }; |
| | | |
| | | // å建任å¡ä¼ è¾ç¨çDTO对象 |
| | | var taskDTO = CreateTaskDTO(task); |
| | | |
| | | WMSTaskDTOdata.Add(taskDTO); |
| | | Locationslist.Add(locationst); |
| | | TaskList.Add(task); |
| | | WheelList.Add(stockInfo); |
| | | } |
| | | } |
| | | |
| | | if (stockInfo.Wheels_CurrentStatue != 1) return content.Error("æå®å¤±è´¥ï¼å½åç¶æä¸å
许æå®åºåº"); |
| | | |
| | | stockInfo.Wheels_CurrentStatue = 4; |
| | | |
| | | //æ¥è¯¢åºä½æ¯å¦éå®ï¼ |
| | | var location = _locationRepository.QueryFirst(x => x.LocationCode == stockInfo.Wheels_Location); |
| | | |
| | | if (location.LocationStatus == (int)LocationEnum.Lock) return content.Error("åºä½éå®,请å
è§£éååæå®åºåº"); |
| | | |
| | | location.LocationStatus = (int)LocationEnum.InStockDisable; |
| | | |
| | | var task = BaseDal.QueryFirst(x => x.PalletCode == palletCode); |
| | | if (task != null) |
| | | { |
| | | return content.Error($"ã{palletCode}ãå·²åå¨ä»»å¡"); |
| | | } |
| | | |
| | | CheckInfo checkInfo = new CheckInfo() |
| | | { |
| | | CarType = stockInfo.Wheels_CarType, |
| | | MTType = stockInfo.Wheels_mttype, |
| | | CheckType = stockInfo.Wheels_Type == "1" ? "1" : "2", |
| | | HubLevel = stockInfo.Wheels_level.Contains("ç级") ? stockInfo.Wheels_level.Replace("ç级", "") : "0", |
| | | CLTM = stockInfo.Wheels_Num, |
| | | IsCheck = true, |
| | | Standards = stockInfo.Wheels_NewOrOld |
| | | }; |
| | | |
| | | // var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == station); |
| | | |
| | | // å建并添å ä»»å¡å°æ°æ®åº |
| | | task = new Dt_Task |
| | | { |
| | | CarType = stockInfo.Wheels_CarType, |
| | | wheels_gkcc = stockInfo.Wheels_gkcc, |
| | | WheelsNewOrOld = stockInfo.Wheels_NewOrOld, |
| | | WheelsLX = stockInfo.Wheels_ldxh, |
| | | Grade = 1, |
| | | Roadway = "SC1", |
| | | TargetAddress = station, |
| | | Dispatchertime = DateTime.Now, |
| | | MaterialNo = "", |
| | | NextAddress = "2010", |
| | | OrderNo = null, |
| | | PalletCode = stockInfo.Wheels_Num, |
| | | wheels_mttype = stockInfo.Wheels_mttype, |
| | | SourceAddress = stockInfo.Wheels_Location, |
| | | CurrentAddress = stockInfo.Wheels_Location, |
| | | TaskState = (int)TaskOutStatusEnum.OutNew, |
| | | TaskType = (int)TaskOutboundTypeEnum.OutWheels, |
| | | TaskNum = BaseDal.GetTaskNo().Result, |
| | | Creater = "System", |
| | | CreateDate = DateTime.Now, |
| | | TaskId = 0, |
| | | task_bak1 = JsonConvert.SerializeObject(checkInfo) |
| | | }; |
| | | |
| | | // å建任å¡ä¼ è¾ç¨çDTO对象 |
| | | var taskDTO = CreateTaskDTO(task); |
| | | |
| | | // è·åWMS IPå°åç¨äºåéä»»å¡è¯·æ± |
| | | var wmsIpAddress = GetWCSIpReceiveTask(); |
| | |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | |
| | | var tasks = new List<WMSTaskDTO>() { taskDTO }; |
| | | // åéä»»å¡è¯·æ±å°WMS |
| | | var result = HttpHelper.Post(wmsIpAddress, tasks.ToJsonString()); |
| | | var result = HttpHelper.Post(wmsIpAddress, WMSTaskDTOdata.ToJsonString()); |
| | | content = JsonConvert.DeserializeObject<WebResponseContent>(result); |
| | | if (content.Status) |
| | | { |
| | | // æ·»å ä»»å¡å°æ°æ®åº |
| | | BaseDal.AddData(task); |
| | | BaseDal.AddData(TaskList); |
| | | // æ´æ°åºä½ä½ç½®ç¶æä¸ºä¸å¯ç¨ |
| | | _locationRepository.UpdateData(location); |
| | | _WheelsStockRepository.UpdateData(stockInfo); |
| | | _locationRepository.UpdateData(Locationslist); |
| | | if (outtype == "2") |
| | | { |
| | | _ZdpStockRepository.UpdateData(ZdpStockList); |
| | | } |
| | | else |
| | | { |
| | | _WheelsStockRepository.UpdateData(WheelList); |
| | | } |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | |
| | | return (stock, fromLocation, toLocation); |
| | | } |
| | | |
| | | #region æ§è¡æ°æ®åºäºå¡ |
| | | /// <summary> |
| | | /// æ§è¡æ°æ®åºäºå¡ |
| | | /// å¶å¨çæ´æ°åºåä½ç½® |
| | | /// </summary> |
| | | /// <param name="stock"></param> |
| | | /// <param name="task"></param> |
| | | /// <returns></returns> |
| | | private (Dt_ZdpStock, DtLocationInfo, DtLocationInfo) UpdateZdpStockLocation(Dt_ZdpStock stock, Dt_Task task) |
| | | { |
| | | //ä¿®æ¹æ¥æºåºä½å ç®æ åºä½ç¶æ |
| | | var fromLocation = _locationRepository.QueryFirst(x => x.LocationCode == task.SourceAddress && x.RoadwayNo == task.Roadway); |
| | | fromLocation.LocationStatus = (int)LocationEnum.Free; |
| | | var toLocation = _locationRepository.QueryFirst(x => x.LocationCode == task.TargetAddress && x.RoadwayNo == task.Roadway); |
| | | toLocation.LocationStatus = (int)LocationEnum.InStock; |
| | | |
| | | // å°åºåä½ç½®è®¾ç½®ä¸ºç®æ ä½ç½® |
| | | stock.Zdp_Location = task.TargetAddress; |
| | | |
| | | // è¿åæ´æ°åçåºååä½ç½®ä¿¡æ¯ |
| | | return (stock, fromLocation, toLocation); |
| | | } |
| | | |
| | | |
| | | |
| | | #region 车轮æ§è¡æ°æ®åºäºå¡ |
| | | /// <summary> |
| | | /// 车轮æ§è¡æ°æ®åºäºå¡ |
| | | /// </summary> |
| | | /// <param name="stock">åºå对象</param> |
| | | /// <param name="taskHty">åå²ä»»å¡å¯¹è±¡</param> |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region å¶å¨çæ§è¡æ°æ®åºäºå¡ |
| | | /// <summary> |
| | | /// å¶å¨çæ§è¡æ°æ®åºäºå¡ |
| | | /// </summary> |
| | | /// <param name="stock">åºå对象</param> |
| | | /// <param name="taskHty">åå²ä»»å¡å¯¹è±¡</param> |
| | | /// <param name="taskId">ä»»å¡ID</param> |
| | | /// <returns></returns> |
| | | private async Task<bool> ZDPExecuteTransaction(Dt_ZdpStock stock, Dt_Task_Hty taskHty, DtLocationInfo locationInfo, int taskId, Dt_InZdp_mes inZdp_Mes = null) |
| | | { |
| | | _unitOfWorkManage.BeginTran(); |
| | | try |
| | | { |
| | | var isUpdateStock = false; |
| | | var isDeleteWheelsMes = false; |
| | | |
| | | |
| | | // æ·»å åºå |
| | | isUpdateStock = _ZdpStockRepository.AddData(stock) > 0; |
| | | if (inZdp_Mes != null) |
| | | { |
| | | isDeleteWheelsMes = _InZdp_MesRepository.DeleteData(inZdp_Mes); |
| | | |
| | | var InZdp_mes_hty = inZdp_Mes.Adapt<Dt_InZdp_mes_hty>(); |
| | | |
| | | InZdp_mes_hty.Zdp_CurrentStatue = "2"; |
| | | InZdp_mes_hty.FinishDate = DateTime.Now; |
| | | InZdp_mes_hty.OperateType = (int)OperateTypeEnum.èªå¨å®æ; |
| | | |
| | | _InZdp_Mes_HtyRepository.AddData(InZdp_mes_hty); |
| | | } |
| | | |
| | | |
| | | // æ·»å åå²ä»»å¡ |
| | | var isTaskHtyAdd = await _task_HtyRepository.AddDataAsync(taskHty) > 0; |
| | | |
| | | // ä¿®æ¹ç§»åºåè´§ä½ç¶æ |
| | | var isUpdateLoc = _locationRepository.UpdateData(locationInfo); |
| | | |
| | | // å é¤ä»»å¡æ°æ® |
| | | var isTaskDelete = await Delete(taskId); |
| | | |
| | | // æäº¤æåæ»äºå¡ |
| | | if (isUpdateStock && isTaskHtyAdd && isTaskDelete && isUpdateLoc && isDeleteWheelsMes) |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "ä»»å¡å®æ", $"äºå¡å¤ç宿,æäº¤äºå¡ãæ·»å åå²ä»»å¡ï¼{isTaskHtyAdd},å é¤ä»»å¡æ°æ®ï¼{isTaskDelete},æ´æ°ææ·»å åºåï¼{isUpdateStock},ä¿®æ¹å
¥åºåè´§ä½ç¶æï¼{isUpdateLoc}"); |
| | | _unitOfWorkManage.CommitTran(); |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "ä»»å¡å®æ", $"æ°æ®å¤ç失败,è¯·æ£æ¥æ°æ®æ¯å¦æ£ç¡®,æ°æ®åæ»ãæ·»å åå²ä»»å¡ï¼{isTaskHtyAdd},å é¤ä»»å¡æ°æ®ï¼{isTaskDelete},æ´æ°åºåï¼{isUpdateStock},ä¿®æ¹å
¥åºåè´§ä½ç¶æï¼{isUpdateLoc}"); |
| | | _unitOfWorkManage.RollbackTran(); |
| | | return false; |
| | | } |
| | | } |
| | | catch (Exception err) |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, $"ä»»å¡å®æ,ç³»ç»å¼å¸¸ï¼å¼å¸¸ä¿¡æ¯ï¼{err.Message}", "æ åæ°"); |
| | | _unitOfWorkManage.RollbackTran(); |
| | | throw; // æåºå¼å¸¸ä»¥ä¾¿å¤é¨æè· |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region ç§»åºä»»å¡äºå¡ |
| | | |
| | | private async Task<bool> ExecuteTransaction(Dt_WheelsStock stock, Dt_Task_Hty taskHty, DtLocationInfo fromLocation, DtLocationInfo toLocation, int taskId) |
| | |
| | | |
| | | #endregion MyRegion |
| | | |
| | | #region å¶å¨çç§»åºä»»å¡äºå¡ |
| | | |
| | | private async Task<bool> ZdpExecuteTransaction(Dt_ZdpStock stock, Dt_Task_Hty taskHty, DtLocationInfo fromLocation, DtLocationInfo toLocation, int taskId) |
| | | { |
| | | _unitOfWorkManage.BeginTran(); |
| | | try |
| | | { |
| | | var isUpdateStock = _ZdpStockRepository.UpdateData(stock); |
| | | |
| | | // æ·»å åå²ä»»å¡ |
| | | var isTaskHtyAdd = await _task_HtyRepository.AddDataAsync(taskHty) > 0; |
| | | |
| | | // ä¿®æ¹ç§»åºåè´§ä½ç¶æ |
| | | var isUpdateLocF = _locationRepository.UpdateData(fromLocation); |
| | | var isUpdateLocT = _locationRepository.UpdateData(toLocation); |
| | | |
| | | // å é¤ä»»å¡æ°æ® |
| | | var isTaskDelete = await Delete(taskId); |
| | | |
| | | // æäº¤æåæ»äºå¡ |
| | | if (isUpdateStock && isTaskHtyAdd && isTaskDelete && isUpdateLocF && isUpdateLocT) |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "ä»»å¡å®æ", $"äºå¡å¤ç宿,æäº¤äºå¡ãæ·»å åå²ä»»å¡ï¼{isTaskHtyAdd},å é¤ä»»å¡æ°æ®ï¼{isTaskDelete},æ´æ°ææ·»å åºåï¼{isUpdateStock},ä¿®æ¹ç§»åºåè´§ä½ç¶æï¼{isUpdateLocF}"); |
| | | _unitOfWorkManage.CommitTran(); |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, "ä»»å¡å®æ", $"æ°æ®å¤ç失败,è¯·æ£æ¥æ°æ®æ¯å¦æ£ç¡®,æ°æ®åæ»ãæ·»å åå²ä»»å¡ï¼{isTaskHtyAdd},å é¤ä»»å¡æ°æ®ï¼{isTaskDelete},æ´æ°åºåï¼{isUpdateStock},ä¿®æ¹ç§»åºåè´§ä½ç¶æï¼{isUpdateLocF}"); |
| | | _unitOfWorkManage.RollbackTran(); |
| | | return false; |
| | | } |
| | | } |
| | | catch (Exception err) |
| | | { |
| | | LogFactory.GetLog("ä»»å¡å®æ").InfoFormat(true, $"ä»»å¡å®æ,ç³»ç»å¼å¸¸ï¼å¼å¸¸ä¿¡æ¯ï¼{err.Message}", "æ åæ°"); |
| | | _unitOfWorkManage.RollbackTran(); |
| | | throw new Exception(err.Message); // æåºå¼å¸¸ä»¥ä¾¿å¤é¨æè· |
| | | } |
| | | } |
| | | |
| | | #endregion MyRegion |
| | | |
| | | #region ä»»å¡è¯·æ±æ¹æ³ |
| | | |
| | | |
| | |
| | | namespace WIDESEA_StorageTaskServices; |
| | | using Autofac.Core; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_DTO.WMS; |
| | | using WIDESEA_StorageBasicRepository; |
| | | |
| | | namespace WIDESEA_StorageTaskServices; |
| | | |
| | | public class Dt_Task_HtyService : ServiceBase<Dt_Task_Hty, IDt_Task_HtyRepository>, IDt_Task_HtyService |
| | | { |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | private readonly IDt_OutOrderService _outOrderService; |
| | | private readonly IDt_TaskService _taskService; |
| | | |
| | | public Dt_Task_HtyService(IDt_Task_HtyRepository BaseDal, |
| | | IUnitOfWorkManage unitOfWorkManage, |
| | | IDt_OutOrderService outOrderService) : base(BaseDal) |
| | | IDt_OutOrderService outOrderService, |
| | | IDt_TaskService taskService) : base(BaseDal) |
| | | { |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | _outOrderService = outOrderService; |
| | | _taskService = taskService; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ·»å åå²ä»»å¡ |
| | | /// </summary> |
| | | /// <param name="task">åå²ä»»å¡Model</param> |
| | | /// <returns>æå/失败</returns> |
| | | public bool InsertTask(Dt_Task_Hty task) |
| | | |
| | | public WebResponseContent TaskRollback(int input) |
| | | { |
| | | return BaseDal.InsertTask(task); |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | Dt_Task_Hty dt_Task_ = BaseDal.QueryFirst(x => x.TaskId == input); |
| | | |
| | | if(dt_Task_ == null) |
| | | { |
| | | return content.Error("æªæ¥æ¾å°æ°æ®"); |
| | | } |
| | | // å建WMSä»»å¡ |
| | | Dt_Task taskDTO = new Dt_Task() |
| | | { |
| | | TaskNum = dt_Task_.TaskNum.Value, |
| | | Grade = dt_Task_.Grade.Value, |
| | | PalletCode = dt_Task_.PalletCode, |
| | | Roadway = dt_Task_.Roadway, |
| | | SourceAddress = dt_Task_.SourceAddress, |
| | | TargetAddress = dt_Task_.TargetAddress, |
| | | CurrentAddress=dt_Task_.CurrentAddress, |
| | | NextAddress = dt_Task_.NextAddress, |
| | | TaskState = 999, |
| | | TaskType = dt_Task_.TaskType, |
| | | wheels_mttype = dt_Task_.wheels_mttype, |
| | | CarType = dt_Task_.CarType, |
| | | wheels_gkcc = dt_Task_.wheels_gkcc, |
| | | WheelsNewOrOld = dt_Task_.WheelsNewOrOld, |
| | | IsCheck = dt_Task_.IsCheck, |
| | | WheelsLX = dt_Task_.WheelsLX, |
| | | CreateDate = DateTime.Now, |
| | | Dispatchertime=dt_Task_.Dispatchertime, |
| | | Creater ="ä»»å¡åæ»" |
| | | }; |
| | | _taskService.AddData(taskDTO); |
| | | |
| | | return content.OK("æå"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error(ex.Message); |
| | | throw; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | using log4net.Core; |
| | | using Masuit.Tools; |
| | | using System.Collections.Generic; |
| | | using System.Net; |
| | | using WIDESEA_Common; |
| | | using WIDESEA_Core.Const; |
| | | using WIDESEA_DTO.WMS; |
| | |
| | | var inWheelsInfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0"); |
| | | |
| | | //æ¥è¯¢å建çå¶å¨çä¿¡æ¯ |
| | | var inZDPInfo = _InZdp_MesRepository.QueryFirst(x => x.Zdp_CurrentStatue == "0"); |
| | | |
| | | //æ¥è¯¢å建çå¶å¨çä¿¡æ¯ |
| | | //var inBrakeInfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_CurrentStatue == "0"); |
| | | //if (inBrakeInfo == null) throw new Exception("å½åæ 车轮æå¶å¨çå
¥åºä¿¡æ¯"); |
| | | |
| | | if (inWheelsInfo == null /*&& inBrakeInfo == null*/) throw new Exception("å½åæ 车轮æå¶å¨çå
¥åºä¿¡æ¯"); |
| | | //å½è½¦è½®ä¿¡æ¯ä¸å¶å¨çä¿¡æ¯åæ¶åºç°éè¦å
¥åºçï¼åä¸å¯å
¥åº |
| | | if(inWheelsInfo != null && inZDPInfo != null) throw new Exception("å½ååºç°å¶å¨çä¸è½¦è½®åæ¶å
¥åºç³è¯·ï¼ç³è¯·é误ï¼è¯·ç¡®ä¿åªæä¸ä¸ªæ§è¡å
¥åº"); |
| | | |
| | | if (inWheelsInfo == null && inZDPInfo == null) throw new Exception("å½åæ 车轮æå¶å¨çå
¥åºä¿¡æ¯"); |
| | | |
| | | //é»è®¤ä¸ºè½¦è½®å
¥åºï¼ä½æ¯å½è½¦è½®ä¿¡æ¯ä¸ºç©ºå为å¶å¨çå
¥åº |
| | | int rktype = 1; |
| | | if(inWheelsInfo == null) |
| | | { |
| | | rktype = 2; |
| | | } |
| | | |
| | | var newtask = new Dt_Task |
| | | { |
| | |
| | | MaterialNo = "", |
| | | NextAddress = input.Roadways, |
| | | OrderNo = null, |
| | | PalletCode = inWheelsInfo.Wheels_Num, |
| | | PalletCode = rktype==1?inWheelsInfo.Wheels_Num: inZDPInfo.Zdp_code, |
| | | SourceAddress = input.Position, |
| | | TaskState = (int)TaskInStatusEnum.InNew, |
| | | TaskType = (int)TaskInboundTypeEnum.InWheels, //inWheelsInfo == null ? (int)TaskInboundTypeEnum.InBrake : |
| | | TaskType = rktype == 1 ? (int)TaskInboundTypeEnum.InWheels: (int)TaskInboundTypeEnum.InBrake, //inWheelsInfo == null ? (int)TaskInboundTypeEnum.InBrake : |
| | | TaskNum = await BaseDal.GetTaskNo(), |
| | | CarType = inWheelsInfo.Wheels_CarType, |
| | | CarType = rktype == 1 ? inWheelsInfo.Wheels_CarType:inZDPInfo.Zdp_chexing, |
| | | IsCheck = true, |
| | | wheels_mttype = inWheelsInfo.Wheels_mttype, |
| | | wheels_gkcc = inWheelsInfo.Wheels_gkcc, |
| | | WheelsNewOrOld = inWheelsInfo.Wheels_NewOrOld, |
| | | wheels_mttype = rktype == 1 ? inWheelsInfo.Wheels_mttype:"", |
| | | wheels_gkcc = rktype == 1 ? inWheelsInfo.Wheels_gkcc: inZDPInfo.Zdp_GKJZ, |
| | | WheelsNewOrOld = rktype == 1 ? inWheelsInfo.Wheels_NewOrOld : inZDPInfo.Zdp_neworold, |
| | | Creater = "Systeam" |
| | | }; |
| | | |
| | |
| | | WheelsLX = newtask.WheelsLX, |
| | | }; |
| | | |
| | | inWheelsInfo.Wheels_CurrentStatue = "1"; |
| | | _InWheels_MesRepository.UpdateData(inWheelsInfo); |
| | | if (rktype == 2) |
| | | { |
| | | inZDPInfo.Zdp_CurrentStatue = "1"; |
| | | _InZdp_MesRepository.UpdateData(inZDPInfo); |
| | | } |
| | | else |
| | | { |
| | | inWheelsInfo.Wheels_CurrentStatue = "1"; |
| | | _InWheels_MesRepository.UpdateData(inWheelsInfo); |
| | | } |
| | | |
| | | |
| | | content.OK(data: taskDTO); |
| | | } |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var cacheinfo = await _CacheInfoRepository.QueryFirstAsync(x => x.czh == input.PalletCode); |
| | | /*var cacheinfo = await BaseDal.QueryFirstAsync(x => x.task_CZInfo == input.PalletCode); |
| | | |
| | | if (cacheinfo == null) throw new Exception($"æªæ¾å°{input.PalletCode}车轴ç¼åä½ä¿¡æ¯"); |
| | | |
| | | return content.OK(data: cacheinfo.targetAddress); |
| | | 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); |
| | | |
| | | |
| | | } |
| | | catch (Exception err) |
| | | { |
| | | // 妿åçå¼å¸¸ï¼åè°ç¨content.Erroræ¹æ³ï¼è®°å½é误信æ¯ï¼å¹¶è¾åºéè¯¯ä¿¡æ¯ |
| | | content.Error(err.Message); |
| | | Console.WriteLine($"车轮æµååé
失败:{err.Message}"); |
| | | Console.WriteLine($"车轮æµååé
失败:{err.Message}ï¼æçæ¡ç ï¼{input.PalletCode}"); |
| | | return content; |
| | | } |
| | | } |
| | | |
| | | public WebResponseContent UpWheelsFlow(SaveModel saveModel) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | try |
| | | { |
| | | string CZTM = saveModel.MainData["CZTM"].ToString(); |
| | | string TargetAddress = saveModel.MainData["TargetAddress"].ToString(); |
| | | List<Dt_Task> taskt = BaseDal.QueryData(x => x.task_CZInfo == CZTM).ToList(); |
| | | if (taskt.Count() == 0) |
| | | return webResponse.Error($"æªæ¾å°å¯¹åºè½¦è½´ï¼{CZTM}ç车轮åºåºä¿¡æ¯"); |
| | | foreach (var item in taskt) |
| | | { |
| | | item.Towhereabouts = TargetAddress; |
| | | } |
| | | BaseDal.UpdateData(taskt); |
| | | return webResponse.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | // 妿åçå¼å¸¸ï¼åè°ç¨content.Erroræ¹æ³ï¼è®°å½é误信æ¯ï¼å¹¶è¾åºéè¯¯ä¿¡æ¯ |
| | | webResponse.Error(ex.Message); |
| | | return webResponse; |
| | | } |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _AppService = appervice; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ä¿åè½¦è½®ä¿¡æ¯ |
| | | /// </summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 车轮ç´èµ° |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("SaveCLStraight"), AllowAnonymous] |
| | | public WebResponseContent SaveCLStraight([FromBody] SaveModel saveModel) |
| | | { |
| | | return _AppService.SaveCLStraight(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿åè½¦è½´ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | |
| | | { |
| | | return _AppService.SaveCZInfo(input); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿åè½¦è½´ä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("SaveCZStraight"), AllowAnonymous] |
| | | public WebResponseContent SaveCZStraight([FromBody] SaveModel input) |
| | | { |
| | | return _AppService.SaveCZStraight(input); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿åé¢éè½¦è½´ä¿¡æ¯ |
| | | /// </summary> |
| | |
| | | { |
| | | return _AppService.SaveCZInfo2(input); |
| | | } |
| | | /// <summary> |
| | | /// å¶å¨çå
¥åº |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("SaveZDPInfo"), AllowAnonymous] |
| | | public WebResponseContent SaveZDPInfo([FromBody] SaveModel saveModel) |
| | | { |
| | | return _AppService.SaveZDPInfo(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å¶å¨çéé
|
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("SaveZDPXPInfo"), AllowAnonymous] |
| | | public WebResponseContent SaveZDPXPInfo([FromBody] SaveModel saveModel) |
| | | { |
| | | return _AppService.SaveZDPXPInfo(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 车轮ç´èµ° |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, Route("SaveZDPStraight"), AllowAnonymous] |
| | | public WebResponseContent SaveZDPStraight([FromBody] SaveModel saveModel) |
| | | { |
| | | return _AppService.SaveZDPStraight(saveModel); |
| | | } |
| | | } |
| | |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | using WIDESEA_DTO; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | |
| | | { |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è½¦è½´ä¸æï¼å馿¡ç |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("RequestAxleloading")] |
| | | public WebResponseContent RequestAxleloading([FromBody] RequestTaskDto input) |
| | | { |
| | | return Service.RequestAxleloading(input); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è½¦è½´ç¶ææ´æ¹ |
| | | /// </summary> |
| | | /// <param name="saveModel"></param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("UpdateAxleCurrentStatue")] |
| | | public WebResponseContent UpdateAxleCurrentStatue([FromBody] RequestTaskDto input) |
| | | { |
| | | return Service.UpdateAxleCurrentStatue(input); |
| | | } |
| | | } |
| | |
| | | { |
| | | return Service.LocationEnable(saveModel); |
| | | } |
| | | |
| | | |
| | | //è·åè´§ä½ç¶æä¿¡æ¯ |
| | | [HttpPost, AllowAnonymous, Route("LocationStatus")] |
| | | public WebResponseContent LocationStatus() |
| | | { |
| | | return Service.LocationStatus(); |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// åºåä¿¡æ¯ç»è®¡ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("InventoryStatistics")] |
| | | public WebResponseContent InventoryStatistics() |
| | | { |
| | | return Service.InventoryStatistics(); |
| | | } |
| | | } |
| | |
| | | using WIDESEA_DTO; |
| | | using static WIDESEA_DTO.RequestTaskDto; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | |
| | |
| | | return new WebResponseContent().OK(data: await _locationService.TransferCheckAsync(input)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ£æ¥å
¥åºæ¯å¦éè¦è¿è¡ç§»åº |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns>ä»»å¡</returns> |
| | | [HttpPost, Route("InTransferCheckAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> InTransferCheckAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return new WebResponseContent().OK(data: await _locationService.InTransferCheckAsync(input)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 请æ±ä»»å¡å··é |
| | |
| | | { |
| | | return Service.CreateAndSendOutboundTask(saveModel); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ä¿®æ¹è½¦è½®å»å |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpPost, AllowAnonymous, Route("UpWheelsFlow")] |
| | | public WebResponseContent UpWheelsFlow([FromBody] SaveModel saveModel) |
| | | { |
| | | return Service.UpWheelsFlow(saveModel); |
| | | } |
| | | } |
| | |
| | | _locationService = locationService; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// æ£æ¥æ¯å¦éè¦è¿è¡ç§»åº |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns>ä»»å¡</returns> |
| | | [HttpPost, Route("TransferCheckAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> TransferCheckAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return new WebResponseContent().OK(data: await _locationService.TransferCheckAsync(input)); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ£æ¥å
¥åºä»»å¡æ¯å¦éè¦è¿è¡ç§»åº |
| | | /// </summary> |
| | | /// <param name="taskNum">ä»»å¡å·</param> |
| | | /// <returns>ä»»å¡</returns> |
| | | [HttpPost, Route("InTransferCheckAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> InTransferCheckAsync([FromBody] RequestTaskDto input) |
| | | { |
| | | return new WebResponseContent().OK(data: await _locationService.InTransferCheckAsync(input)); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// åå²ä»»å¡åæ» |
| | | /// </summary> |
| | | /// <param name="input">è¯·æ±æ°æ®</param> |
| | | /// <returns></returns> |
| | | [HttpGet, AllowAnonymous, Route("TaskRollback")] |
| | | public WebResponseContent TaskRollback(int input) |
| | | { |
| | | return _task_HtyService.TaskRollback(input); |
| | | } |
| | | |
| | | } |
| | |
| | | using AutoMapper.Configuration.Annotations; |
| | | using Autofac.Core; |
| | | using AutoMapper.Configuration.Annotations; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.BaseController; |
| | | using WIDESEA_DTO; |
| | | using WIDESEA_IStoragIntegrationServices; |
| | | using WIDESEA_StoragIntegrationServices; |
| | | |
| | | namespace WIDESEA_WMSServer.Controllers; |
| | | |
| | |
| | | _WCSService = WCSService; |
| | | } |
| | | |
| | | |
| | | |
| | | } |