Merge branch 'master' of http://115.159.85.185:8098/r/KuKa/BeiJingBeiQiAGV
| | |
| | | "type": "chrome", |
| | | "request": "launch", |
| | | "name": "é对 localhost å¯å¨ Chrome", |
| | | "url": "http://localhost:8080", |
| | | "url": "http://localhost:8081", |
| | | "webRoot": "${workspaceFolder}" |
| | | } |
| | | ] |
| | |
| | | let baseUrl = 'http://127.0.0.1:5000' |
| | | |
| | | //let baseUrl = 'http://127.0.0.1:5000' |
| | | let baseUrl = 'http://127.0.0.1:9291' |
| | | const install = (Vue, vm) => { |
| | | // æ¤ä¸ºèªå®ä¹é
ç½®åæ°ï¼å
·ä½åæ°è§ä¸æ¹è¯´æ |
| | | Vue.prototype.$u.http.setConfig({ |
| | |
| | | }, |
| | | "pages": [ //pagesæ°ç»ä¸ç¬¬ä¸é¡¹è¡¨ç¤ºåºç¨å¯å¨é¡µï¼åèï¼https://uniapp.dcloud.io/collocation/pages |
| | | { |
| | | "path": "pages/login/login", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»å½" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/index/index", |
| | | "style": { |
| | | "navigationBarTitleText": "é¦é¡µ" |
| | |
| | | "path": "pages/home/home", |
| | | "style": { |
| | | "navigationBarTitleText": "æç" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/login/login", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»å½" |
| | | } |
| | | }, |
| | | { |
| | |
| | | <view> |
| | | <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem"> |
| | | </uni-segmented-control> |
| | | <view v-show="current === 0"> |
| | | <!-- <view v-show="current === 0"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="æçç¼ç "> |
| | |
| | | </uni-forms> |
| | | <button @click="InboundTask" type="primary" size="default" style="margin-top: 2%;">æ¬è¿</button> |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 1"> |
| | | <view style="padding: 5%;"> |
| | | </view> --> |
| | | <view v-show="current === 0"> |
| | | <!-- <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="æçç¼ç "> |
| | | <uni-easyinput type="text" :focus="barcodefocus" @input="inputChangebarcode" |
| | |
| | | </view> |
| | | </uni-forms> |
| | | <button @click="GroupPlate" type="primary" size="default" style="margin-top: 2%;">ç»ç</button> |
| | | </view> --> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="é¶ä»¶ç¼å·:"> |
| | | <uni-easyinput type="text" placeholder="è¯·æ«æé¶ä»¶å·" ref='midInput' :focus="focus" v-model="materSn" @blur="inputChangebarcode" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="è½½å
·ç¼å·"> |
| | | <uni-easyinput type="text" :focus="barcodefocus1" |
| | | v-model="VehicleNumber" placeholder="请è¾å
¥è½½å
·ç¼å·" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="车åä¿¡æ¯"> |
| | | <uni-easyinput type="text" |
| | | v-model="Carmodel" placeholder="èªå¨è·å车å(é¤å¼æå¨è¾å
¥é¶ä»¶å·)" ref='midInput' /> |
| | | </uni-forms-item> |
| | | <uni-forms-item label="å½åä½ç½®:"> |
| | | <uni-easyinput type="text" placeholder="请è¾å
¥å¤æç¹ä½" ref='midInput' :focus="focus2" v-model="Position"/> |
| | | </uni-forms-item> |
| | | </uni-forms> |
| | | <button @click="GroupPlate" type="primary" size="default" style="margin-top: 2%;">ç»ç</button> |
| | | </view> |
| | | </view> |
| | | <view v-show="current === 2"> |
| | | <view v-show="current === 1"> |
| | | <view style="padding: 5%;"> |
| | | <uni-forms label-width="120"> |
| | | <uni-forms-item label="æçç¼ç "> |
| | |
| | | return { |
| | | barcodeFocus:true, |
| | | focus: false, |
| | | focus2:false, |
| | | istrue: false, |
| | | addressFocus:false, |
| | | barcodefocus: false, |
| | | barcodefocus1:false, |
| | | range: [], |
| | | rangethree:[], |
| | | group: [], |
| | | group: [{ |
| | | orderNo:1, |
| | | warehouseName:'helloæµè¯', |
| | | materialNo:'123' |
| | | } |
| | | ], |
| | | AreaId: 0, |
| | | acrossFloor:0, |
| | | quantity: "", |
| | |
| | | TargetAddress: "", |
| | | PalletCode1: "", |
| | | PalletCode2: "", |
| | | VehicleNumber:"",// è½½å
·ç¼å· |
| | | PalletCode3: "", |
| | | materSn: "", |
| | | items: ['å
¥åº','ç©æç»å®', 'ç©æè§£ç»'], |
| | | current: 0 |
| | | //items: ['å
¥åº','ç©æç»å®', 'ç©æè§£ç»'], |
| | | items: ['ç©æç»å®', 'ç©æè§£ç»'], |
| | | current: 0, |
| | | Position: '', //容卿å¨ä½ç½® |
| | | Carmodel:'', // 车å |
| | | } |
| | | }, |
| | | onLoad(res) { |
| | |
| | | } |
| | | }) |
| | | }, |
| | | GroupPlate() { |
| | | if (this.PalletCode2.length <= 0 && this.InBoundOrder.length) { |
| | | GroupPlate() { // ç»ç ç©æç»å® |
| | | // if (this.PalletCode2.length <= 0 && this.InBoundOrder.length) { |
| | | // this.$refs.luToast.show({ |
| | | // title: "请è¾å
¥èµ·ç¹ç«å°", |
| | | // type: "error" |
| | | // }) |
| | | // return; |
| | | // } |
| | | if (this.VehicleNumber.length <= 0 |
| | | || this.materSn.length <= 0 |
| | | || this.Position.length <= 0 |
| | | || this.Carmodel.length <= 0) { |
| | | this.$refs.luToast.show({ |
| | | title: "请è¾å
¥èµ·ç¹ç«å°", |
| | | title: "æ°æ®è¾å
¥ä¸å®æ´!", |
| | | type: "error" |
| | | }) |
| | | return; |
| | | } |
| | | |
| | | var param = { |
| | | "PalletCode": this.PalletCode2, |
| | | "groups": this.group |
| | | "VehicleNumber": this.VehicleNumber, |
| | | "materSn":this.materSn, |
| | | "Position": this.Position, |
| | | "Carmodel":this.Carmodel |
| | | } |
| | | this.$u.post('/api/BoxingInfo/AddGroupPlateAsync', param).then(res => { |
| | | console.log(param) |
| | | |
| | | this.$u.post('/api/PDA/ContainerbindingAsync', param).then(res => { |
| | | if (res.status) { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | | type: "success" |
| | | }) |
| | | this.PalletCode2 = ""; |
| | | this.group = []; |
| | | this.barcodefocus = false; |
| | | this.Init(); |
| | | } else { |
| | | this.$refs.luToast.show({ |
| | | title: res.message, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | Init(){ |
| | | this.VehicleNumber = ''; |
| | | this.materSn = ''; |
| | | this.Position = ''; |
| | | this.Carmodel = ''; |
| | | }, |
| | | SolvePlate() { |
| | | if (this.PalletCode3.length <= 0) { |
| | | this.$refs.luToast.show({ |
| | |
| | | }, |
| | | updateFocus() { |
| | | this.$nextTick(() => { |
| | | this.materSn = ''; |
| | | if (!this.focus) { |
| | | this.focus = true; |
| | | this.VehicleNumber = ''; |
| | | if (!this.barcodefocus1) { |
| | | this.barcodefocus1 = true; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | inputChangebarcode() { |
| | | this.$nextTick(() => { |
| | | this.$u.post('/api/BoxingInfo/GetPalletCodeInfo?palletCode=' + this.PalletCode2, "").then( |
| | | res => { |
| | | if (res.status) { |
| | | this.group = res.data; |
| | | console.log(this.group); |
| | | setTimeout(this.updateFocus, 200); |
| | | setTimeout(() => { |
| | | this.voiceSpeech('../../static/success.mp3'); |
| | | }, 100); |
| | | } |
| | | }) |
| | | }) |
| | | var materSns = this.materSn; |
| | | console.log(materSns) |
| | | this.barcodefocus1 = true; |
| | | if(materSns.indexOf(',') === -1){ |
| | | return; |
| | | } |
| | | |
| | | // 1. å¤çé¶ä»¶å·ï¼åæå䏿®µ |
| | | this.materSn = materSns.split(',').pop(); |
| | | // // 2. å¤ç车åï¼åç¬¬ä¸æ®µ |
| | | this.Carmodel = materSns.split(',')[0]; |
| | | |
| | | // 3. å
³é®ï¼è¿åå¤çåçå¼ï¼uni-easyinputä¼èªå¨æ´æ°v-modelåçé¢ |
| | | console.log('å¤çåçé¶ä»¶å·:', this.materSn); |
| | | |
| | | // this.$nextTick(() => { |
| | | // this.$u.post('/api/BoxingInfo/GetPalletCodeInfo?palletCode=' + this.PalletCode2, "").then( |
| | | // res => { |
| | | // if (res.status) { |
| | | // this.group = res.data; |
| | | // console.log(this.group); |
| | | // setTimeout(this.updateFocus, 200); |
| | | // setTimeout(() => { |
| | | // this.voiceSpeech('../../static/success.mp3'); |
| | | // }, 100); |
| | | // } |
| | | // }) |
| | | // }) |
| | | |
| | | }, |
| | | removeScanItem(orderNo) { |
| | | this.group = this.group.filter(item => item.orderNo !== orderNo); |
| | |
| | | methods: { |
| | | ///è·åéªè¯ç |
| | | getVierificationCode() { |
| | | this.$u.get('/api/Sys_User/getVierificationCode', {}).then(res => { |
| | | this.$u.get('/api/User/getVierificationCode', {}).then(res => { |
| | | if (res.img != null) { |
| | | this.codeImgSrc = "data:image/png;base64," + res.img; |
| | | this.email = res.uuid; |
| | |
| | | userName: this.user, |
| | | verificationCode: this.code |
| | | } |
| | | this.$u.post('/api/Sys_User/login', { |
| | | this.$u.post('/api/User/login', { |
| | | UUID: this.email, |
| | | passWord: this.pass, |
| | | userName: this.user, |
| | |
| | | "strip-ansi": "^6.0.1" |
| | | }, |
| | | "dependencies": { |
| | | "is-fullwidth-code-point": { |
| | | "version": "3.0.0", |
| | | "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", |
| | | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", |
| | | "dev": true |
| | | }, |
| | | "strip-ansi": { |
| | | "version": "6.0.1", |
| | | "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", |
| | |
| | | "ansi-styles": "^6.1.0", |
| | | "string-width": "^5.0.1", |
| | | "strip-ansi": "^7.0.1" |
| | | } |
| | | }, |
| | | "wrap-ansi-cjs": { |
| | | "version": "npm:wrap-ansi@7.0.0", |
| | | "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", |
| | | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", |
| | | "dev": true, |
| | | "requires": { |
| | | "ansi-styles": "^4.0.0", |
| | | "string-width": "^4.1.0", |
| | | "strip-ansi": "^6.0.0" |
| | | }, |
| | | "dependencies": { |
| | | "ansi-styles": { |
| | | "version": "4.3.0", |
| | | "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", |
| | | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", |
| | | "dev": true, |
| | | "requires": { |
| | | "color-convert": "^2.0.1" |
| | | } |
| | | }, |
| | | "string-width": { |
| | | "version": "4.2.3", |
| | | "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", |
| | | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", |
| | | "dev": true, |
| | | "requires": { |
| | | "emoji-regex": "^8.0.0", |
| | | "is-fullwidth-code-point": "^3.0.0", |
| | | "strip-ansi": "^6.0.1" |
| | | } |
| | | }, |
| | | "strip-ansi": { |
| | | "version": "6.0.1", |
| | | "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", |
| | | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", |
| | | "dev": true, |
| | | "requires": { |
| | | "ansi-regex": "^5.0.1" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", |
| | | "dev": true, |
| | | "optional": true |
| | | }, |
| | | "@popperjs/core": { |
| | | "version": "npm:@sxzz/popperjs-es@2.11.8", |
| | | "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz", |
| | | "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==" |
| | | }, |
| | | "@tootallnate/once": { |
| | | "version": "1.1.2", |
| | |
| | | "lodash-unified": "^1.0.2", |
| | | "memoize-one": "^6.0.0", |
| | | "normalize-wheel-es": "^1.2.0" |
| | | }, |
| | | "dependencies": { |
| | | "@popperjs/core": { |
| | | "version": "npm:@sxzz/popperjs-es@2.11.8", |
| | | "resolved": "https://registry.npmmirror.com/@sxzz/popperjs-es/-/popperjs-es-2.11.8.tgz", |
| | | "integrity": "sha512-wOwESXvvED3S8xBmcPWHs2dUuzrE4XiZeFu7e1hROIJkm02a49N120pmOXxY33sBb6hArItm5W5tcg1cBtV+HQ==" |
| | | } |
| | | } |
| | | }, |
| | | "emoji-regex": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "wrap-ansi-cjs": { |
| | | "version": "npm:wrap-ansi@7.0.0", |
| | | "resolved": "https://registry.npmmirror.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz", |
| | | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", |
| | | "dev": true, |
| | | "requires": { |
| | | "ansi-styles": "^4.0.0", |
| | | "string-width": "^4.1.0", |
| | | "strip-ansi": "^6.0.0" |
| | | }, |
| | | "dependencies": { |
| | | "ansi-regex": { |
| | | "version": "5.0.1", |
| | | "resolved": "https://registry.npmmirror.com/ansi-regex/-/ansi-regex-5.0.1.tgz", |
| | | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", |
| | | "dev": true |
| | | }, |
| | | "ansi-styles": { |
| | | "version": "4.3.0", |
| | | "resolved": "https://registry.npmmirror.com/ansi-styles/-/ansi-styles-4.3.0.tgz", |
| | | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", |
| | | "dev": true, |
| | | "requires": { |
| | | "color-convert": "^2.0.1" |
| | | } |
| | | }, |
| | | "string-width": { |
| | | "version": "4.2.3", |
| | | "resolved": "https://registry.npmmirror.com/string-width/-/string-width-4.2.3.tgz", |
| | | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", |
| | | "dev": true, |
| | | "requires": { |
| | | "emoji-regex": "^8.0.0", |
| | | "is-fullwidth-code-point": "^3.0.0", |
| | | "strip-ansi": "^6.0.1" |
| | | } |
| | | }, |
| | | "strip-ansi": { |
| | | "version": "6.0.1", |
| | | "resolved": "https://registry.npmmirror.com/strip-ansi/-/strip-ansi-6.0.1.tgz", |
| | | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", |
| | | "dev": true, |
| | | "requires": { |
| | | "ansi-regex": "^5.0.1" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "wrappy": { |
| | | "version": "1.0.2", |
| | | "resolved": "https://registry.nlark.com/wrappy/download/wrappy-1.0.2.tgz", |
| | |
| | | axios.defaults.baseURL = window.webConfig.webApiBaseUrl; |
| | | } |
| | | else if (process.env.NODE_ENV == 'debug') { |
| | | axios.defaults.baseURL = 'http://127.0.0.1:8098/'; |
| | | axios.defaults.baseURL = 'http://127.0.0.1:9291/'; |
| | | } |
| | | |
| | | else if (process.env.NODE_ENV == 'production') { |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div> |
| | | <vol-box |
| | | v-model="showDetialBox" |
| | | :lazy="true" |
| | | width="1200px" |
| | | :padding="15" |
| | | title="宿´è·¯ç±æ¥ç" |
| | | > |
| | | <div |
| | | style="margin-bottom: 1%" |
| | | v-for="(item, index) in routerDatas" |
| | | :key="index" |
| | | > |
| | | <el-row> |
| | | <el-col> |
| | | <div |
| | | class="grid-content right-text" |
| | | style="font-weight: bold; font-size: 18px" |
| | | > |
| | | <span>{{ item.type == "Out" ? "åºåºè·¯ç±" : "å
¥åºè·¯ç±" }}</span> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-steps :active="item.routes.length" align-center simple> |
| | | <el-step |
| | | v-for="itemRouter in item.routes" |
| | | :key="itemRouter" |
| | | :title="itemRouter" |
| | | icon="" |
| | | ></el-step> |
| | | </el-steps> |
| | | </div> |
| | | </vol-box> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import VolBox from "@/components/basic/VolBox.vue"; |
| | | export default { |
| | | components: { VolBox }, |
| | | data() { |
| | | return { |
| | | active: 0, |
| | | showDetialBox: false, |
| | | routerDatas: [], |
| | | }; |
| | | }, |
| | | methods: { |
| | | open() { |
| | | this.showDetialBox = true; |
| | | this.getData(); |
| | | }, |
| | | getData() { |
| | | this.http.post("/api/Router/GetAllWholeRouters", {}, true).then((x) => { |
| | | if (!x.status) return this.$message.error(x.message); |
| | | this.routerDatas = x.data; |
| | | }); |
| | | }, |
| | | }, |
| | | created() {}, |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .el-col { |
| | | border-radius: 4px; |
| | | } |
| | | .grid-content { |
| | | border-radius: 4px; |
| | | min-height: 36px; |
| | | } |
| | | .content-text { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | .left-text { |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: flex-start; |
| | | } |
| | | </style> |
| | | <style> |
| | | .el-table .warning-row { |
| | | background: #fcf1e2; |
| | | } |
| | | |
| | | .el-table .success-row { |
| | | background: #f0f9eb; |
| | | } |
| | | |
| | | .el-table .error-row { |
| | | background: #fde2e2; |
| | | } |
| | | </style> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | import gridBody from './extend/materialInfos.vue'; |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: "", |
| | | gridBody: gridBody, |
| | | gridFooter: "", |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: "", |
| | | modelBody: "", |
| | | modelFooter: "", |
| | | }, |
| | | tableAction: "", //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | | buttons: { view: [], box: [], detail: [] }, //æ©å±çæé® |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { |
| | | // console.log(this.detailOptions.buttons); |
| | | // console.log(this.$refs.detail) |
| | | var detailImport = this.detailOptions.buttons.find( |
| | | (item) => item.value == "import" |
| | | ); |
| | | if (detailImport) { |
| | | detailImport.onClick = function () { |
| | | this.$refs.gridBody.open(); |
| | | }; |
| | | } |
| | | // this.buttons.unshift({ |
| | | // //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» |
| | | // name: "å¼å¯æå¡", //æé®åç§° |
| | | // icon: "el-icon-document", //æé®å¾æ vue2çæ¬è§iviewææ¡£iconï¼vue3çæ¬è§element uiææ¡£icon(注æä¸æ¯element pulsææ¡£) |
| | | // type: "primary", //æé®æ ·å¼vue2çæ¬è§iviewææ¡£buttonï¼vue3çæ¬è§element uiææ¡£button |
| | | // onClick: function () { |
| | | // this.$Message.success("å¼å¯æå¡"); |
| | | // }, |
| | | // }); |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | // this.detailOptions.columns.forEach(column=>{ }); |
| | | // console.log(this) |
| | | }, |
| | | searchBefore(param) { |
| | | //ç颿¥è¯¢å,å¯ä»¥ç»param.wheresæ·»å æ¥è¯¢åæ° |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | return true; |
| | | }, |
| | | addBefore(formData) { |
| | | //æ°å»ºä¿ååformData为对象ï¼å
æ¬æç»è¡¨ï¼å¯ä»¥ç»ç»è¡¨å设置å¼ï¼èªå·±è¾åºçformDataçå¼ |
| | | return true; |
| | | }, |
| | | updateBefore(formData) { |
| | | //ç¼è¾ä¿ååformData为对象ï¼å
æ¬æç»è¡¨ãå é¤è¡çId |
| | | return true; |
| | | }, |
| | | rowClick({ row, column, event }) { |
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶ |
| | | // this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡; |
| | | }, |
| | | modelOpenAfter(row) { |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | | //(1)夿æ¯ç¼è¾è¿æ¯æ°å»ºæä½ï¼ this.currentAction=='Add'; |
| | | //(2)ç»å¼¹åºæ¡è®¾ç½®é»è®¤å¼ |
| | | //(3)this.editFormFields.åæ®µ='xxx'; |
| | | //妿éè¦ç»ä¸ææ¡è®¾ç½®é»è®¤å¼ï¼è¯·éåthis.editFormOptionsæ¾å°å段é
置对åºdata屿§çkeyå¼ |
| | | //ç䏿就æè¾åºçï¼console.log(this.editFormOptions) |
| | | }, |
| | | updated() { |
| | | //console.log(this.$refs) |
| | | this.$nextTick(() => { |
| | | if (this.$refs.upload_excel) { |
| | | alert("ç¹å»äºä¸ä¼ æé®"); |
| | | this.$refs.upload_excel.upload = function () { |
| | | console.log("ç¹å»äºä¸ä¼ æé®"); |
| | | }; |
| | | } |
| | | // alert(1) |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | export default extension; |
| | |
| | | path: '/router', |
| | | name: 'router', |
| | | component: () => import('@/views/basicinfo/router.vue') |
| | | },{ |
| | | path: '/materialInfo', |
| | | name: 'Dt_MaterialInfo', |
| | | component: () => import('@/views/basicinfo/materialInfo.vue') |
| | | } |
| | | ] |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | |
| | | <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/basicinfo/materialInfo.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: "id", |
| | | footer: "Foots", |
| | | cnName: "ç©æç»å®ç®¡ç", |
| | | name: "Dt_MaterialInfo", |
| | | url: "/materialInfo/", |
| | | sortName: "CreateDate", |
| | | }); |
| | | const editFormFields = ref({ |
| | | taskNum: "", |
| | | palletCode: "", |
| | | roadway: "", |
| | | taskType: "", |
| | | taskState: "", |
| | | wMSId: "", |
| | | sourceAddress: "", |
| | | targetAddress: "", |
| | | currentAddress: "", |
| | | nextAddress: "", |
| | | creater: "", |
| | | createDate: "", |
| | | grade: "", |
| | | }); |
| | | const editFormOptions = ref([[{ title: "ä¼å
级", field: "grade", type: "int" },]]); |
| | | const searchFormFields = ref({ |
| | | taskNum: "", |
| | | palletCode: "", |
| | | roadway: "", |
| | | sourceAddress: "", |
| | | targetAddress: "", |
| | | currentAddress: "", |
| | | nextAddress: "", |
| | | creater: "", |
| | | createDate: "", |
| | | }); |
| | | const searchFormOptions = ref([ |
| | | [ |
| | | { title: "ä»»å¡å·", field: "taskNum", type: "int" }, |
| | | { title: "æçç¼å·", field: "palletCode", type: "text" }, |
| | | { |
| | | title: "ä»»å¡ç±»å", |
| | | field: "taskType", |
| | | type: "selectList", |
| | | dataKey: "taskType", |
| | | data: [], |
| | | }, |
| | | { |
| | | title: "ä»»å¡ç¶æ", |
| | | field: "taskState", |
| | | type: "selectList", |
| | | dataKey: "taskState", |
| | | data: [], |
| | | }, |
| | | ], |
| | | [ |
| | | { title: "èµ·å§å°å", field: "sourceAddress", type: "text" }, |
| | | { title: "ç®æ å°å", field: "targetAddress", type: "text" }, |
| | | { title: "å½åä½ç½®", field: "currentAddress", type: "text" }, |
| | | { title: "ä¸ä¸ä½ç½®", field: "nextAddress", type: "text" }, |
| | | ], |
| | | [ |
| | | { title: "å··éå·", field: "roadway", type: "text" }, |
| | | { title: "å建人", field: "creater", type: "text" }, |
| | | { title: "å建æ¶é´", field: "createDate", type: "datetime" }, |
| | | ], |
| | | ]); |
| | | const columns = ref([ |
| | | { |
| | | field: "id", |
| | | title: "id", |
| | | type: "int", |
| | | width: 90, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "ContainerCode", |
| | | title: "容å¨ç¼å·", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | |
| | | { |
| | | field: "Position", |
| | | title: "容å¨å½åä½ç½®", |
| | | type: "string", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "EndPosition", |
| | | title: "容å¨åºåºä½ç½®", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "IsNew", |
| | | title: "æ¯å¦å±äºæ°å¢å®¹å¨", |
| | | type: "int", |
| | | width: 120, |
| | | align: "left", |
| | | bind: { key: "taskType", data: [] }, |
| | | }, |
| | | { |
| | | field: "IsBind", |
| | | title: "æ¯å¦ç»å®", |
| | | type: "int", |
| | | width: 150, |
| | | align: "left", |
| | | bind: { key: "taskState", data: [] }, |
| | | }, |
| | | { |
| | | field: "Carmodel", |
| | | title: "车å", |
| | | type: "string", |
| | | width: 120, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "createDate", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | |
| | | { |
| | | field: "modifyDate", |
| | | title: "ä¿®æ¹æ¶é´", |
| | | type: "datetime", |
| | | width: 160, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "creater", |
| | | title: "å建人", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "modifier", |
| | | title: "ä¿®æ¹äºº", |
| | | type: "string", |
| | | width: 90, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "remark", |
| | | title: "夿³¨", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | hidden: true, |
| | | }, |
| | | ]); |
| | | const detail = ref({ |
| | | cnName: "", |
| | | table: "", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "", |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | | |
| | |
| | | } |
| | | }, |
| | | server: { |
| | | port: 8080, |
| | | port: 8081, |
| | | overlay: { |
| | | warning: false, |
| | | errors: false |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "Version": 1, |
| | | "WorkspaceRootPath": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\", |
| | | "Documents": [ |
| | | { |
| | | "AbsoluteMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|e:\\bjagv\\beijingbeiqiagv\\\u9879\u76EE\u4EE3\u7801\\widesea_wcsserver\\wideseawcs_tasks\\taskacquisition\\taskacquisition_back1_job.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", |
| | | "RelativeMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|solutionrelative:wideseawcs_tasks\\taskacquisition\\taskacquisition_back1_job.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" |
| | | }, |
| | | { |
| | | "AbsoluteMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|e:\\bjagv\\beijingbeiqiagv\\\u9879\u76EE\u4EE3\u7801\\widesea_wcsserver\\wideseawcs_tasks\\agv\\commonagvjob.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", |
| | | "RelativeMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|solutionrelative:wideseawcs_tasks\\agv\\commonagvjob.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" |
| | | }, |
| | | { |
| | | "AbsoluteMoniker": "D:0:0:{7F200FE8-CAF6-4131-BD25-8D438FE0ABAC}|WIDESEAWCS_Model\\WIDESEAWCS_Model.csproj|e:\\bjagv\\beijingbeiqiagv\\\u9879\u76EE\u4EE3\u7801\\widesea_wcsserver\\wideseawcs_model\\models\\taskinfo\\dt_task.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", |
| | | "RelativeMoniker": "D:0:0:{7F200FE8-CAF6-4131-BD25-8D438FE0ABAC}|WIDESEAWCS_Model\\WIDESEAWCS_Model.csproj|solutionrelative:wideseawcs_model\\models\\taskinfo\\dt_task.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" |
| | | } |
| | | ], |
| | | "DocumentGroupContainers": [ |
| | | { |
| | | "Orientation": 0, |
| | | "VerticalTabListWidth": 256, |
| | | "DocumentGroups": [ |
| | | { |
| | | "DockedWidth": 200, |
| | | "SelectedChildIndex": 3, |
| | | "Children": [ |
| | | { |
| | | "$type": "Bookmark", |
| | | "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" |
| | | }, |
| | | { |
| | | "$type": "Document", |
| | | "DocumentIndex": 2, |
| | | "Title": "Dt_Task.cs", |
| | | "DocumentMoniker": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "RelativeDocumentMoniker": "WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "ToolTip": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "RelativeToolTip": "WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "ViewState": "AgIAADgAAAAAAAAAAAAgwF0AAAAjAAAAAAAAAA==", |
| | | "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", |
| | | "WhenOpened": "2026-04-28T02:21:47.364Z", |
| | | "EditorCaption": "" |
| | | }, |
| | | { |
| | | "$type": "Document", |
| | | "DocumentIndex": 1, |
| | | "Title": "CommonAGVJob.cs", |
| | | "DocumentMoniker": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs", |
| | | "RelativeDocumentMoniker": "WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs", |
| | | "ToolTip": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs", |
| | | "RelativeToolTip": "WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs", |
| | | "ViewState": "AgIAAFMAAAAAAAAAAAAQwGgAAAA6AAAAAAAAAA==", |
| | | "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", |
| | | "WhenOpened": "2026-04-28T01:58:09.73Z", |
| | | "EditorCaption": "" |
| | | }, |
| | | { |
| | | "$type": "Document", |
| | | "DocumentIndex": 0, |
| | | "Title": "TaskAcquisition_Back1_Job.cs", |
| | | "DocumentMoniker": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "RelativeDocumentMoniker": "WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "ToolTip": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "RelativeToolTip": "WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "ViewState": "AgIAAEIAAAAAAAAAAAAgwFQAAABbAAAAAAAAAA==", |
| | | "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", |
| | | "WhenOpened": "2026-04-22T02:42:49.651Z", |
| | | "EditorCaption": "" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | { |
| | | "Version": 1, |
| | | "WorkspaceRootPath": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\", |
| | | "Documents": [ |
| | | { |
| | | "AbsoluteMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|e:\\bjagv\\beijingbeiqiagv\\\u9879\u76EE\u4EE3\u7801\\widesea_wcsserver\\wideseawcs_tasks\\agv\\commonagvjob.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", |
| | | "RelativeMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|solutionrelative:wideseawcs_tasks\\agv\\commonagvjob.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" |
| | | }, |
| | | { |
| | | "AbsoluteMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|e:\\bjagv\\beijingbeiqiagv\\\u9879\u76EE\u4EE3\u7801\\widesea_wcsserver\\wideseawcs_tasks\\taskacquisition\\taskacquisition_back1_job.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", |
| | | "RelativeMoniker": "D:0:0:{294E4915-0241-4C8C-BA99-7588B945863A}|WIDESEAWCS_Tasks\\WIDESEAWCS_Tasks.csproj|solutionrelative:wideseawcs_tasks\\taskacquisition\\taskacquisition_back1_job.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" |
| | | }, |
| | | { |
| | | "AbsoluteMoniker": "D:0:0:{7F200FE8-CAF6-4131-BD25-8D438FE0ABAC}|WIDESEAWCS_Model\\WIDESEAWCS_Model.csproj|e:\\bjagv\\beijingbeiqiagv\\\u9879\u76EE\u4EE3\u7801\\widesea_wcsserver\\wideseawcs_model\\models\\taskinfo\\dt_task.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", |
| | | "RelativeMoniker": "D:0:0:{7F200FE8-CAF6-4131-BD25-8D438FE0ABAC}|WIDESEAWCS_Model\\WIDESEAWCS_Model.csproj|solutionrelative:wideseawcs_model\\models\\taskinfo\\dt_task.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" |
| | | } |
| | | ], |
| | | "DocumentGroupContainers": [ |
| | | { |
| | | "Orientation": 0, |
| | | "VerticalTabListWidth": 256, |
| | | "DocumentGroups": [ |
| | | { |
| | | "DockedWidth": 200, |
| | | "SelectedChildIndex": 2, |
| | | "Children": [ |
| | | { |
| | | "$type": "Bookmark", |
| | | "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" |
| | | }, |
| | | { |
| | | "$type": "Document", |
| | | "DocumentIndex": 2, |
| | | "Title": "Dt_Task.cs", |
| | | "DocumentMoniker": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "RelativeDocumentMoniker": "WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "ToolTip": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "RelativeToolTip": "WIDESEAWCS_Model\\Models\\TaskInfo\\Dt_Task.cs", |
| | | "ViewState": "AgIAADgAAAAAAAAAAAAgwF0AAAAjAAAAAAAAAA==", |
| | | "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", |
| | | "WhenOpened": "2026-04-28T02:21:47.364Z", |
| | | "EditorCaption": "" |
| | | }, |
| | | { |
| | | "$type": "Document", |
| | | "DocumentIndex": 0, |
| | | "Title": "CommonAGVJob.cs", |
| | | "DocumentMoniker": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs", |
| | | "RelativeDocumentMoniker": "WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs", |
| | | "ToolTip": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs*", |
| | | "RelativeToolTip": "WIDESEAWCS_Tasks\\AGV\\CommonAGVJob.cs*", |
| | | "ViewState": "AgIAAFEAAAAAAAAAAAAgwGMAAABGAAAAAAAAAA==", |
| | | "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", |
| | | "WhenOpened": "2026-04-28T01:58:09.73Z", |
| | | "EditorCaption": "" |
| | | }, |
| | | { |
| | | "$type": "Document", |
| | | "DocumentIndex": 1, |
| | | "Title": "TaskAcquisition_Back1_Job.cs", |
| | | "DocumentMoniker": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "RelativeDocumentMoniker": "WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "ToolTip": "E:\\BJAGV\\BeiJingBeiQiAGV\\\u9879\u76EE\u4EE3\u7801\\WIDESEA_WCSServer\\WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "RelativeToolTip": "WIDESEAWCS_Tasks\\TaskAcquisition\\TaskAcquisition_Back1_Job.cs", |
| | | "ViewState": "AgIAAB0AAAAAAAAAAAAQwFQAAABbAAAAAAAAAA==", |
| | | "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", |
| | | "WhenOpened": "2026-04-22T02:42:49.651Z", |
| | | "EditorCaption": "" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_BasicInfoRepository |
| | | { |
| | | public class Dt_ContainerInfoRepository : RepositoryBase<Dt_ContainerInfo>, IDt_ContainerInfoRepository |
| | | { |
| | | public Dt_ContainerInfoRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_BasicInfoRepository |
| | | { |
| | | public class Dt_MaterialInfoRepository : RepositoryBase<Dt_MaterialInfo>, IDt_MaterialInfoRepository |
| | | { |
| | | public Dt_MaterialInfoRepository(IUnitOfWorkManage unitOfWorkManage) : base(unitOfWorkManage) |
| | | { |
| | | |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_DTO.PDA; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_IBasicInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_BasicInfoService |
| | | { |
| | | public class Dt_MaterialInfoService : ServiceBase<Dt_MaterialInfo, IDt_MaterialInfoRepository>, IDt_MaterialInfoService |
| | | { |
| | | private readonly IDt_ContainerInfoRepository _ContainerInfoRepository; |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | public Dt_MaterialInfoService(IDt_MaterialInfoRepository BaseDal, IDt_ContainerInfoRepository dt_ContainerInfoRepository, IUnitOfWorkManage unitOfWorkManage) : base(BaseDal) |
| | | { |
| | | _ContainerInfoRepository = dt_ContainerInfoRepository; |
| | | _unitOfWorkManage = unitOfWorkManage; |
| | | } |
| | | /// <summary> |
| | | /// æ°å¢ç»çä¿¡æ¯ |
| | | /// </summary> |
| | | /// <param name="containerbindingDTO"></param> |
| | | /// <returns></returns> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | public async Task<WebResponseContent> ContainerbindingAsync([FromBody] ContainerbindingDTO containerbindingDTO) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | _unitOfWorkManage.BeginTran(); |
| | | |
| | | Dt_MaterialInfo dt_MaterialInfo = await BaseDal.QueryFirstAsync(x => x.ContainerCode == containerbindingDTO.VehicleNumber); |
| | | if (dt_MaterialInfo != null) return content.Error("å½å容å¨å·²ç»å® 请å¿éå¤æäº¤"); |
| | | |
| | | dt_MaterialInfo = await BaseDal.QueryFirstAsync(x => x.MaterialName == containerbindingDTO.materSn); |
| | | if (dt_MaterialInfo != null) return content.Error("å½åé¶ä»¶å·å·²åå¨ è¯·å¿éå¤æäº¤"); |
| | | |
| | | dt_MaterialInfo = new Dt_MaterialInfo(); |
| | | dt_MaterialInfo.MaterialName = containerbindingDTO.materSn; |
| | | dt_MaterialInfo.ContainerCode = containerbindingDTO.VehicleNumber; |
| | | dt_MaterialInfo.Position = containerbindingDTO.Position; |
| | | dt_MaterialInfo.Carmodel = containerbindingDTO.Carmodel; |
| | | string s = App.User.UserName; |
| | | await BaseDal.AddDataAsync(dt_MaterialInfo); |
| | | // 2. æ§è¡ä¸å®ä¼æ¥éç代ç ï¼é¤ä»¥é¶ |
| | | //int a = 1; |
| | | //int b = 0; |
| | | //int result = a / b; // è¿éä¼æåº DivideByZeroException |
| | | Dt_ContainerInfo containerInfo = await _ContainerInfoRepository.QueryFirstAsync(x => x.ContainerCode == containerbindingDTO.VehicleNumber); |
| | | if (containerInfo == null) |
| | | { |
| | | containerInfo = new Dt_ContainerInfo(); |
| | | containerInfo.RequestId = Guid.NewGuid().ToString().Replace("-", ""); |
| | | containerInfo.ContainerCode = containerbindingDTO.VehicleNumber; |
| | | await _ContainerInfoRepository.AddDataAsync(containerInfo); |
| | | } |
| | | _unitOfWorkManage.CommitTran(); |
| | | return content.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | _unitOfWorkManage.RollbackTran(); |
| | | content.Error(ex.Message); |
| | | throw; |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | /// <summary> |
| | | ///ä½ä¸å½åç¶æ<br/> |
| | | ///å¼å§ç§»å¨ï¼MOVE_BEGIN<br/> |
| | | ///æ ç®± å æ å® æ:PICKER_RECEIVE<br/> |
| | | ///æ ç®± ä¸ æ å® æ:PICKER_SEND<br/> |
| | | ///è´§æ¶ å æ å® æ:PICKER_RECEIVE<br/> |
| | | ///è´§æ¶ ä¸ æ å® æ:PICKER_SEND<br/> |
| | | ///çå¾
æ¾è¡ï¼WAITFEEDBACK<br/> |
| | | ///ä»»å¡å®æï¼COMPLETED<br/> |
| | | ///ä»»å¡åæ¶å®æï¼CANCELED<br/> |
| | |
| | | using System; |
| | | using SixLabors.Fonts.Unicode; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | |
| | | |
| | | namespace WIDESEAWCS_DTO.Agv |
| | | { |
| | | public class MissionDataItem |
| | | public class MissionDataItem2 |
| | | { |
| | | /// <summary> |
| | | /// æ¬è¿æç®±åºå·ä»1å¼å§ |
| | | /// æ¬è¿è´§æ¶åºå·ä»1å¼å§ |
| | | /// </summary> |
| | | public int Sequence { get; set; } = 1; |
| | | /// <summary> |
| | | /// æç®±å· |
| | | /// è´§æ¶å· |
| | | /// </summary> |
| | | public string BinCode { get; set; } |
| | | /// <summary> |
| | | /// æç®±æå¨çèµ·å§ç¹ä½ |
| | | /// è´§æ¶æå¨çèµ·å§ç¹ä½ |
| | | /// </summary> |
| | | public string StartPosition { get; set; } |
| | | /// <summary> |
| | | /// æç®±æå¨çèµ·å§æ§½ä½ |
| | | /// è´§æ¶æå¨çèµ·å§æ§½ä½ |
| | | /// </summary> |
| | | public string StartSlotCode { get; set; } |
| | | /// <summary> |
| | | /// åæç®±æ¶ä¹åæ¯å¦éè¦ç¡®è®¤ |
| | | /// åè´§æ¶æ¶ä¹åæ¯å¦éè¦ç¡®è®¤ |
| | | /// </summary> |
| | | public bool TakeActionConfirm { get; set; } |
| | | /// <summary> |
| | | /// åæç®±åæ¯å¦éè¦éç¥ |
| | | /// åè´§æ¶åæ¯å¦éè¦éç¥ |
| | | /// </summary> |
| | | public bool TakeActionInform { get; set; } |
| | | /// <summary> |
| | | /// æç®±æå¨çç®æ ç¹ä½ |
| | | /// è´§æ¶æå¨çç®æ ç¹ä½ |
| | | /// </summary> |
| | | public string EndPosition { get; set; } |
| | | /// <summary> |
| | | /// æç®±æå¨çç®æ æ§½ä½ |
| | | /// è´§æ¶æå¨çç®æ æ§½ä½ |
| | | /// </summary> |
| | | public string EndSlotCode { get; set; } |
| | | /// <summary> |
| | | /// æ¾æç®±æ¶ä¹åæ¯å¦éè¦ç¡®è®¤ |
| | | /// æ¾è´§æ¶æ¶ä¹åæ¯å¦éè¦ç¡®è®¤ |
| | | /// </summary> |
| | | public bool PutActionConfirm { get; set; } |
| | | /// <summary> |
| | | /// æ¾æç®±åæ¯å¦éè¦éç¥ |
| | | /// æ¾è´§æ¶åæ¯å¦éè¦éç¥ |
| | | /// </summary> |
| | | public bool PutActionInform { get; set; } |
| | | } |
| | | /// <summary> |
| | | /// AGVä»»å¡åé |
| | | ///è´§æ¶ç§»å¨ä»»å¡(missionType=RACK_MOVE) |
| | | /// </summary> |
| | | public class AgvTaskSendDTO |
| | | public class MissionDataItem |
| | | { |
| | | /// <summary> |
| | | /// æ¬è¿è´§æ¶åºå·ä»1å¼å§ |
| | | /// </summary> |
| | | public int Sequence { get; set; } = 1; |
| | | |
| | | /// <summary> |
| | | /// ä½ä¸è·¯å¾ä½ç½®(æ¾ç½®çä½ç½®) |
| | | /// </summary> |
| | | public string Position { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ä½ä¸ä½ç½®ç±»åï¼ç¹ä½ï¼NODE_POINT åºåï¼NODE_AREA |
| | | /// </summary> |
| | | public string Type { get; set; } = "NODE_POINT"; |
| | | |
| | | /// <summary> |
| | | /// ä½ä¸ç¹ä½æ¯å¦éè¦æ¾ä¸è´§æ¶ |
| | | /// </summary> |
| | | public bool PutDown { get; set; } = false; |
| | | |
| | | /// <summary> |
| | | /// å½åä»»å¡ç¹ç»æåæ¾è¡çç¥ï¼èªå¨ AUTO æå¨ MANUAL |
| | | /// </summary> |
| | | public string PassStrategy { get; set; } = "AUTO"; |
| | | |
| | | /// <summary> |
| | | /// èªå¨è§¦å离å¼å½åä»»å¡èç¹çæ¶é´ï¼é»è®¤åä½:æ¯«ç§ |
| | | /// </summary> |
| | | public int WaitingMillis { get; set; } = 0; |
| | | } |
| | | /// <summary> |
| | | /// AGVä»»å¡åé |
| | | /// </summary> |
| | | public class AgvTaskSendDTO |
| | | { |
| | | /// <summary> |
| | | /// åºåç»ç»ID |
| | |
| | | /// </summary> |
| | | public string MissionCode { get; set; } |
| | | /// <summary> |
| | | /// ä»»å¡ç±»åï¼PICKER_MOVE |
| | | /// ä»»å¡ç±»åï¼RACK_MOVE |
| | | /// </summary> |
| | | public string MissionType { get; set; } = "PICKER_MOVE"; |
| | | public string MissionType { get; set; } = "RACK_MOVE"; |
| | | /// <summary> |
| | | /// ä»»å¡çæ¿å±ç¤ºä»»å¡ç±»å |
| | | /// </summary> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEAWCS_DTO.PDA |
| | | { |
| | | /// <summary> |
| | | /// 容å¨ç»å®DTO |
| | | /// </summary> |
| | | public class ContainerbindingDTO |
| | | { |
| | | /// <summary> |
| | | /// è½½å
·ç¼å· |
| | | /// </summary> |
| | | public string VehicleNumber { get; set; } |
| | | /// <summary> |
| | | /// é¶ä»¶ç¼å· |
| | | /// </summary> |
| | | public string materSn { get; set; } |
| | | /// <summary> |
| | | /// å½åç¹ä½ |
| | | /// </summary> |
| | | public string Position { get; set; } |
| | | /// <summary> |
| | | /// 车å |
| | | /// </summary> |
| | | public string Carmodel { get; set; } |
| | | } |
| | | /// <summary> |
| | | /// 容å¨è§£ç»DTO |
| | | /// </summary> |
| | | public class ContainerUnbindingDTO |
| | | { |
| | | |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_IBasicInfoRepository |
| | | { |
| | | public interface IDt_ContainerInfoRepository : IRepository<Dt_ContainerInfo> |
| | | { |
| | | |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_IBasicInfoRepository |
| | | { |
| | | public interface IDt_MaterialInfoRepository : IRepository<Dt_MaterialInfo> |
| | | { |
| | | |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_DTO.PDA; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_IBasicInfoService |
| | | { |
| | | public interface IDt_MaterialInfoService : IService<Dt_MaterialInfo> |
| | | { |
| | | /// <summary> |
| | | /// æ°å¢ç»çä¿¡æ¯ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public Task<WebResponseContent> ContainerbindingAsync([FromBody] ContainerbindingDTO containerbindingDTO); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_ContainerInfo), "容å¨ä¿¡æ¯")] |
| | | public class Dt_ContainerInfo : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 请æ±idï¼å¹çuuid32ä½ |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "请æ±idï¼å¹çuuid32ä½")] |
| | | public string RequestId { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨ç±»å |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容å¨ç±»å", DefaultValue = "RACK")] |
| | | public string ContainerType { get; set; } = "RACK"; |
| | | |
| | | /// <summary> |
| | | /// 容å¨ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "容å¨ç¼å·")] |
| | | public string ContainerCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容卿¨¡åç¼ç |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容卿¨¡åç¼ç ")] |
| | | //public string ContainerModelCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨å
¥åºè§åº¦ |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容å¨å
¥åºè§åº¦")] |
| | | //public string EnterOrientation { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨å½å对åºä½ç½® |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, ColumnDescription = "容å¨å½å对åºä½ç½®")] |
| | | //public string Position { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦æ°å¢å¢å®¹å¨ |
| | | /// </summary> |
| | | //[SugarColumn(ColumnDescription = "æ¯å¦æ°å¢å¢å®¹å¨", DefaultValue = "0")] |
| | | //public bool IsNew { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容卿 ¡éªç |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容卿 ¡éªç ")] |
| | | //public string ContainerValidationCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// é
置容å¨é»è®¤æ ¡éªç |
| | | /// </summary> |
| | | //[SugarColumn(ColumnDescription = "é
置容å¨é»è®¤æ ¡éªç ", IsNullable = true, DefaultValue = "0")] |
| | | //public bool WithDefaultValidationCode { get; set; } |
| | | |
| | | // 䏿¹æ¯å®¹å¨åºåºçç¸å
³å段 |
| | | |
| | | /// <summary> |
| | | /// 容å¨åºåºä½ç½® |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容å¨åºåºä½ç½®")] |
| | | //public string EndPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨åºåºåæ¯å¦å é¤ |
| | | /// </summary> |
| | | //[SugarColumn(ColumnDescription = "容å¨åºåºåæ¯å¦å é¤", IsNullable = true, DefaultValue = "0")] |
| | | //public bool isDelete { get; set; } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 容å¨çç©ºæ»¡ç¶æ,空ï¼EMPTY 满ï¼FULL |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容å¨çç©ºæ»¡ç¶æ")] |
| | | //public string emptyStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨çç©ºæ»¡ç¶æ,空ï¼EMPTY 满ï¼FULL |
| | | /// </summary> |
| | | //[SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "æ´æ°åå ")] |
| | | //public string reason { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel.DataAnnotations; |
| | | using System.ComponentModel.DataAnnotations.Schema; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | /// <summary> |
| | | /// åºå表ï¼è´§ä½ä¿¡æ¯ï¼ |
| | | /// </summary> |
| | | [SugarTable(nameof(Dt_Inventory), "åºå表")] |
| | | public class Dt_Inventory : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½id |
| | | /// </summary> |
| | | [SugarColumn(Length = 510, ColumnDescription = "è´§ä½id")] |
| | | public string? location_id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºåº/åºåid |
| | | /// </summary> |
| | | [SugarColumn(Length = 510, ColumnDescription = "åºåº/åºåid")] |
| | | public string? location_areaid { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½ç¶æ |
| | | /// </summary> |
| | | [SugarColumn(Length = 510, ColumnDescription = "è´§ä½ç¶æ")] |
| | | public string? location_state { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¡ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è¡")] |
| | | public int? location_line { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "å")] |
| | | public int? location_column { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å± |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "å±")] |
| | | public int? location_layer { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦è¢«éå® |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "æ¯å¦è¢«éå®")] |
| | | public bool? location_islocked { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段1 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段1")] |
| | | public string? location_bak_1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段2 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段2")] |
| | | public string? location_bak_2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段3 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段3")] |
| | | public string? location_bak_3 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è´§ä½æ·±åº¦ |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "è´§ä½æ·±åº¦")] |
| | | public int? location_deep { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_MaterialInfo), "ç©æä¿¡æ¯ç»ç表")] |
| | | public class Dt_MaterialInfo : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç©æåç§° é¶ä»¶å· |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "ç©æåç§°")] |
| | | public string MaterialName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "容å¨ç¼å·")] |
| | | public string ContainerCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨å½å对åºä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "容å¨å½å对åºä½ç½®")] |
| | | public string Position { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨åºåºä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容å¨åºåºä½ç½®")] |
| | | public string EndPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦æ°å¢å¢å®¹å¨ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦å±äºæ°å¢å®¹å¨", DefaultValue = "0")] |
| | | public bool IsNew { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容卿¯å¦ç»å® |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "容卿¯å¦ç»å®", DefaultValue = "1")] |
| | | public bool IsBind { get; set; } = true; |
| | | |
| | | /// <summary> |
| | | /// 车å |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "车å")] |
| | | public string Carmodel { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºå |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "åºå")] |
| | | public string Region { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段1 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段1")] |
| | | public string? location_bak_1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段2 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段2")] |
| | | public string? location_bak_2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段3 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段3")] |
| | | public string? location_bak_3 { get; set; } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core.DB.Models; |
| | | |
| | | namespace WIDESEAWCS_Model.Models |
| | | { |
| | | [SugarTable(nameof(Dt_MaterialInfo_Hty), "ç©æä¿¡æ¯ç»çåå²è®°å½è¡¨")] |
| | | public class Dt_MaterialInfo_Hty : BaseEntity |
| | | { |
| | | /// <summary> |
| | | /// ä¸»é® |
| | | /// </summary> |
| | | [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主é®")] |
| | | public int Id { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç©æåç§° |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "ç©æåç§°")] |
| | | public string MaterialName { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨ç¼å· |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "容å¨ç¼å·")] |
| | | public string ContainerCode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨å½å对åºä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, ColumnDescription = "容å¨å½å对åºä½ç½®")] |
| | | public string Position { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容å¨åºåºä½ç½® |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "容å¨åºåºä½ç½®")] |
| | | public string EndPosition { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 车å |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "车å")] |
| | | public string Carmodel { get; set; } |
| | | |
| | | /// <summary> |
| | | /// åºå |
| | | /// </summary> |
| | | [SugarColumn(Length = 100, IsNullable = true, ColumnDescription = "åºå")] |
| | | public string Region { get; set; } |
| | | |
| | | /// <summary> |
| | | /// æ¯å¦æ°å¢å¢å®¹å¨ |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "æ¯å¦å±äºæ°å¢å®¹å¨", DefaultValue = "0")] |
| | | public bool IsNew { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 容卿¯å¦ç»å® |
| | | /// </summary> |
| | | [SugarColumn(ColumnDescription = "容卿¯å¦ç»å®", DefaultValue = "1")] |
| | | public bool IsBind { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段1 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段1")] |
| | | public string? location_bak_1 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段2 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段2")] |
| | | public string? location_bak_2 { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å¤ç¨å段3 |
| | | /// </summary> |
| | | [SugarColumn(IsNullable = true, Length = 255, ColumnDataType = "nvarchar", ColumnDescription = "å¤ç¨å段3")] |
| | | public string? location_bak_3 { get; set; } |
| | | } |
| | | } |
| | |
| | | [ImporterHeader(Name = "ä»»å¡å·")] |
| | | [ExporterHeader(DisplayName = "ä»»å¡å·")] |
| | | [SugarColumn(IsNullable = true, ColumnDescription = "ä»»å¡å·")] |
| | | public int TaskNum { get; set; } |
| | | public int TaskNum { get; set; } = 0; |
| | | |
| | | /// <summary> |
| | | /// æçç¼å· |
| | | /// æç/å®¹å¨ ç¼å· |
| | | /// </summary> |
| | | [ImporterHeader(Name = "æçç¼å·")] |
| | | [ExporterHeader(DisplayName = "æçç¼å·")] |
| | |
| | | /// <summary> |
| | | /// ä»»å¡ç¶æ |
| | | /// </summary> |
| | | [ImporterHeader(Name = "主é®")] |
| | | [ExporterHeader(DisplayName = "主é®")] |
| | | [ImporterHeader(Name = "ä»»å¡ç¶æ")] |
| | | [ExporterHeader(DisplayName = "ä»»å¡ç¶æ")] |
| | | [SugarColumn(IsNullable = false, ColumnDescription = "ä»»å¡ç¶æ")] |
| | | public int TaskState { get; set; } |
| | | |
| | |
| | | switch (agvUpdateDTO.MissionStatus) |
| | | { |
| | | case nameof(AGVStatusEnum.PICKER_RECEIVE): |
| | | if (task == null) throw new Exception($"æªæ¾å°æç®±ã{agvUpdateDTO.ContainerCode}ãä»»å¡"); |
| | | if (task == null) throw new Exception($"æªæ¾å°è´§æ¶ã{agvUpdateDTO.ContainerCode}ãä»»å¡"); |
| | | _taskService.UpdateTask(task, TaskAGVCarryStatusEnum.AGV_CarryTakeFinish); |
| | | break; |
| | | case nameof(AGVStatusEnum.PICKER_SEND): |
| | | if (task == null) throw new Exception($"æªæ¾å°æç®±ã{agvUpdateDTO.ContainerCode}ãä»»å¡"); |
| | | if (task == null) throw new Exception($"æªæ¾å°è´§æ¶ã{agvUpdateDTO.ContainerCode}ãä»»å¡"); |
| | | _taskService.UpdateTask(task, TaskAGVCarryStatusEnum.AGV_CarryReleaseFinish); |
| | | break; |
| | | case nameof(AGVStatusEnum.COMPLETED): |
| | | if (task == null) throw new Exception($"æªæ¾å°æç®±ã{agvUpdateDTO.ContainerCode}ãä»»å¡"); |
| | | if (task == null) throw new Exception($"æªæ¾å°è´§æ¶ã{agvUpdateDTO.ContainerCode}ãä»»å¡"); |
| | | _taskService.TaskCompleted(task.TaskNum); |
| | | break; |
| | | default: |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_BasicInfoService; |
| | | using WIDESEAWCS_Core.BaseController; |
| | | using WIDESEAWCS_IBasicInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.BasicInfo |
| | | { |
| | | [Route("api/Dt_MaterialInfo")] |
| | | [ApiController] |
| | | public class Dt_MaterialInfoController : ApiBaseController<IDt_MaterialInfoService, Dt_MaterialInfo> |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | public Dt_MaterialInfoController(IDt_MaterialInfoService service, IHttpContextAccessor httpContextAccessor) : base(service) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_DTO.Agv; |
| | | using WIDESEAWCS_DTO.PDA; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_IBasicInfoService; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob.Repository; |
| | | |
| | | namespace WIDESEAWCS_Server.Controllers.PDA |
| | | { |
| | | [Route("api/[controller]")] |
| | | [ApiController] |
| | | public class PDAController : ControllerBase |
| | | { |
| | | private readonly IDt_StationManagerRepository _stationMangerRepository; |
| | | private readonly ITaskService _taskService; |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly IRouterRepository _routerRepository; |
| | | private readonly IDt_MaterialInfoRepository _MaterialInfoRepository; |
| | | private readonly IDt_ContainerInfoRepository _ContainerInfoRepository; |
| | | private readonly IUnitOfWorkManage _unitOfWorkManage; |
| | | private readonly IDt_MaterialInfoService _IDt_MaterialInfoService; |
| | | |
| | | |
| | | public PDAController(IDt_StationManagerRepository stationMangerRepository, ITaskService taskService, ITaskRepository taskRepository, IRouterRepository routerRepository, IDt_MaterialInfoRepository materialInfoRepository, IDt_ContainerInfoRepository containerInfoRepository, IDt_MaterialInfoService iDt_MaterialInfoService) |
| | | { |
| | | _stationMangerRepository = stationMangerRepository; |
| | | _taskService = taskService; |
| | | _taskRepository = taskRepository; |
| | | _routerRepository = routerRepository; |
| | | _MaterialInfoRepository = materialInfoRepository; |
| | | _ContainerInfoRepository = containerInfoRepository; |
| | | _IDt_MaterialInfoService = iDt_MaterialInfoService; |
| | | } |
| | | |
| | | [HttpPost, HttpGet, Route("ContainerbindingAsync"), AllowAnonymous] |
| | | public async Task<WebResponseContent> ContainerbindingAsync([FromBody] ContainerbindingDTO containerbindingDTO) |
| | | { |
| | | return await _IDt_MaterialInfoService.ContainerbindingAsync(containerbindingDTO); |
| | | } |
| | | |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 2026/4/20 11:47:48.277 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:12:04.46 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:12:04.343 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:12:06.335 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:12:08.338 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:12:10.342 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:28:57.176 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:28:57.615 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:28:59.627 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:30:45.458 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:30:45.681 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:32:21.805 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:32:22.169 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:51.779 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:51.879 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:51.884 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:53.695 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:55.696 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:57.699 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:35:59.700 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:01.695 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:03.696 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:05.692 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:07.697 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:09.693 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:11.688 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:13.693 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:15.711 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:17.695 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:19.707 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:21.704 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:36:23.694 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:04.408 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:04.534 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:05.503 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:07.508 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:09.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:11.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:13.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:15.494 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:17.497 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:19.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:21.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:23.503 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:25.498 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:27.499 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:29.505 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:31.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:33.498 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:35.494 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:37.510 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:39.501 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:41.494 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:43.508 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:45.499 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:47.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:49.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:51.499 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:53.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:55.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:57.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:37:59.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:01.498 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:03.494 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:05.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:07.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:09.510 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:11.505 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:13.506 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:15.499 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:17.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:19.509 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:21.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:23.493 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:25.508 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:27.505 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:29.498 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:31.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:33.494 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:35.509 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:37.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:39.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:41.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:43.503 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:45.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:47.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:49.503 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:51.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:53.493 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:55.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:57.506 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:38:59.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:01.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:03.492 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:05.505 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:07.490 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:09.498 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:11.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:13.510 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:15.493 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:17.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:19.507 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:21.499 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:23.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:25.505 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:27.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:29.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:31.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:33.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:35.498 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:37.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:39.497 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:41.506 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:43.509 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:45.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:47.502 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:49.500 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:51.501 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:53.507 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:55.501 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:57.497 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:39:59.499 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:01.504 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:03.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:05.506 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:07.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:09.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:11.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:13.495 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:15.507 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:17.503 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:19.496 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:21.492 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:23.501 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:57.670 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:57.802 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:40:58.721 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:00.720 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:02.713 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:04.713 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:06.717 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:08.712 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:10.710 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:12.718 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| | | 2026/4/20 16:41:14.718 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼11111122222" |
| | | ------------------------------- |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 2026/4/28 10:34:43.209 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼[{\"TaskId\":2,\"TaskNum\":0,\"PalletCode\":\"8001\",\"Roadway\":\"1\",\"TaskType\":400,\"TaskState\":400,\"SourceAddress\":\"1001\",\"TargetAddress\":\"2001\",\"CurrentAddress\":\"1001\",\"NextAddress\":\"2001\",\"ExceptionMessage\":null,\"Grade\":2,\"Dispatchertime\":null,\"Remark\":null,\"AGVSign\":null,\"Creater\":\"System\",\"CreateDate\":\"2026-04-28T09:54:50.8\",\"Modifier\":null,\"ModifyDate\":null}]" |
| | | ------------------------------- |
| | | |
| | | 2026/4/28 10:36:56.400 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼[{\"TaskId\":2,\"TaskNum\":0,\"PalletCode\":\"8001\",\"Roadway\":\"1\",\"TaskType\":400,\"TaskState\":400,\"SourceAddress\":\"1001\",\"TargetAddress\":\"2001\",\"CurrentAddress\":\"1001\",\"NextAddress\":\"2001\",\"ExceptionMessage\":null,\"Grade\":2,\"Dispatchertime\":null,\"Remark\":null,\"AGVSign\":null,\"Creater\":\"System\",\"CreateDate\":\"2026-04-28T09:54:50.8\",\"Modifier\":null,\"ModifyDate\":null}]" |
| | | ------------------------------- |
| | | |
| | | 2026/4/28 10:39:03.295 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼[{\"TaskId\":2,\"TaskNum\":0,\"PalletCode\":\"8001\",\"Roadway\":\"1\",\"TaskType\":400,\"TaskState\":400,\"SourceAddress\":\"1001\",\"TargetAddress\":\"2001\",\"CurrentAddress\":\"1001\",\"NextAddress\":\"2001\",\"ExceptionMessage\":\"æªæ¾å°ä»»å¡å·$2èµ·å§ç¹1001ä½ç½®ä¿¡æ¯\",\"Grade\":2,\"Dispatchertime\":null,\"Remark\":null,\"AGVSign\":null,\"Creater\":\"System\",\"CreateDate\":\"2026-04-28T09:54:50.8\",\"Modifier\":\"System\",\"ModifyDate\":\"2026-04-28T10:37:13.597\"}]" |
| | | ------------------------------- |
| | | |
| | | 2026/4/28 10:42:18.106 |
| | | æ·»å ä»»å¡ |
| | | "ä»»å¡ï¼[{\"TaskId\":2,\"TaskNum\":0,\"PalletCode\":\"8001\",\"Roadway\":\"1\",\"TaskType\":400,\"TaskState\":400,\"SourceAddress\":\"1001\",\"TargetAddress\":\"2001\",\"CurrentAddress\":\"1001\",\"NextAddress\":\"2001\",\"ExceptionMessage\":\"æªæ¾å°ä»»å¡å·$2èµ·å§ç¹1001ä½ç½®ä¿¡æ¯\",\"Grade\":2,\"Dispatchertime\":null,\"Remark\":null,\"AGVSign\":null,\"Creater\":\"System\",\"CreateDate\":\"2026-04-28T09:54:50.8\",\"Modifier\":\"System\",\"ModifyDate\":\"2026-04-28T10:37:13.597\"}]" |
| | | ------------------------------- |
| | | |
| | |
| | | |
| | | var builder = WebApplication.CreateBuilder(args); |
| | | |
| | | //if (!HslCommunication.Authorization.SetAuthorizationCode("95f1611d-633c-46ea-b03a-38ede1629f74")) |
| | | //{ |
| | | // ConsoleHelper.WriteErrorLine("ææå¤±è´¥ï¼å½åç¨åºåªè½ä½¿ç¨24å°æ¶ï¼"); |
| | | //} |
| | | //else |
| | | // ConsoleHelper.WriteSuccessLine("æææåï¼"); |
| | | if (!HslCommunication.Authorization.SetAuthorizationCode("95f1611d-633c-46ea-b03a-38ede1629f74")) |
| | | { |
| | | ConsoleHelper.WriteErrorLine("ææå¤±è´¥ï¼å½åç¨åºåªè½ä½¿ç¨24å°æ¶ï¼"); |
| | | } |
| | | else |
| | | ConsoleHelper.WriteSuccessLine("æææåï¼"); |
| | | |
| | | builder.Host.UseServiceProviderFactory(new AutofacServiceProviderFactory()).ConfigureContainer<ContainerBuilder>(builder => |
| | | { |
| | |
| | | "ConnectionStringsEncryption": false, |
| | | "MainDB": "DB_WIDESEA", //å½å项ç®ç主åºï¼æå¯¹åºçè¿æ¥å符串çEnabledå¿
须为true |
| | | //è¿æ¥å符串 |
| | | "ConnectionString": "Data Source=;Initial Catalog=WIDESEAWCS_BeiQi;User ID=sa;Password=123456;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | "ConnectionString": "Data Source=;Initial Catalog=WIDESEAWCS_BeiQi;User ID=sa;Password=123;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //"ConnectionString": "Data Source=192.168.32.240;Initial Catalog=WIDESEAWCS_OTS;User ID=sa;Password=P@ssw0rd;Integrated Security=False;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False", |
| | | //è·¨å |
| | | "Cors": { |
| | |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | |
| | | string? apiAddress = _apiInfoRepository.QueryFirst(x => x.ApiCode == SendTask.ToString())?.ApiAddress; |
| | | if (string.IsNullOrEmpty(apiAddress)) throw new Exception($"æªæ¾å°åéAGV任塿¥å£,è¯·æ£æ¥æ¥å£é
ç½®"); |
| | | string request = JsonConvert.SerializeObject(taskModel, settings); |
| | |
| | | using Newtonsoft.Json.Linq; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Information; |
| | | using Quartz; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Common.Log; |
| | |
| | | private readonly ITaskService _taskService; |
| | | private readonly ISys_ConfigService _sys_ConfigService; |
| | | private readonly IDt_StationManagerRepository _stationManagerRepository; |
| | | public CommonAGVJob(ITaskRepository taskRepository,ITaskService taskService,ISys_ConfigService configService,IDt_StationManagerRepository stationManagerRepository) |
| | | public CommonAGVJob(ITaskRepository taskRepository, ITaskService taskService, ISys_ConfigService configService, IDt_StationManagerRepository stationManagerRepository) |
| | | { |
| | | _taskRepository = taskRepository; |
| | | _taskService = taskService; |
| | |
| | | |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | var newTasks = _taskService.Db.Queryable<Dt_Task>().Where(x => (x.TaskState == TaskAGVCarryStatusEnum.AGV_CarryNew.ObjToInt())).ToList().OrderBy(x => x.Grade).ThenBy(x => x.TaskNum).ToList(); |
| | | var newTasks = _taskService.Db.Queryable<Dt_Task>().Where(x => (x.TaskState == (int)TaskAGVCarryStatusEnum.AGV_CarryNew)).ToList().OrderBy(x => x.Grade).ThenBy(x => x.TaskNum).ToList(); |
| | | #region ä»»å¡ä¸å |
| | | if (newTasks.Count > 0) |
| | | { |
| | | WriteLog.Write_Log("AGVä»»å¡ä¸å", "ä»»å¡ä¸åæ¥å£", "æ·»å ä»»å¡", $"ä»»å¡ï¼{newTasks.ToJson()}"); |
| | | try |
| | | foreach (var task in newTasks) |
| | | { |
| | | AgvTaskSendDTO agvTaskSend = new AgvTaskSendDTO() |
| | | try |
| | | { |
| | | MissionData = new List<MissionDataItem>() |
| | | }; |
| | | string taskGroupId = Guid.NewGuid().ToString().Replace("-", ""); |
| | | |
| | | foreach (var task in newTasks) |
| | | { |
| | | //è·åç®æ ç¹è´§ä½ |
| | | Dt_StationManager stationManagerStart = _stationManagerRepository.QueryFirst(x => x.stationLocation == task.CurrentAddress); |
| | | //è·åæ£éåºåºç«å° |
| | | Dt_StationManager stationManagerEnd = _stationManagerRepository.QueryFirst(x => x.stationLocation == task.NextAddress); |
| | | |
| | | if (stationManagerStart == null || stationManagerStart == null) throw new Exception($"æªæ¾å°ä»»å¡å·${task.TaskNum}èµ·å§ç¹{task.CurrentAddress}æç®æ ç¹{task.NextAddress}ä½ç½®ä¿¡æ¯"); |
| | | agvTaskSend.RequestId = taskGroupId; |
| | | agvTaskSend.MissionCode = task.TaskNum.ToString(); |
| | | agvTaskSend.ViewBoardType = "W01"; |
| | | //æç®±åæ¬è¿ä»»å¡ |
| | | MissionDataItem missionDataItem = new MissionDataItem() |
| | | AgvTaskSendDTO agvTaskSend = new AgvTaskSendDTO() |
| | | { |
| | | Sequence = task.TaskNum, |
| | | BinCode = task.PalletCode, |
| | | StartPosition = stationManagerStart.stationLocation, |
| | | EndPosition = stationManagerEnd.stationLocation, |
| | | TakeActionConfirm = false, |
| | | TakeActionInform = false, |
| | | PutActionConfirm = true, |
| | | PutActionInform = true, |
| | | MissionData = new List<MissionDataItem>() |
| | | }; |
| | | agvTaskSend.MissionData.Add(missionDataItem); |
| | | } |
| | | if (newTasks.OrderByDescending(x => x.Grade).FirstOrDefault()?.Grade == 0) |
| | | { |
| | | agvTaskSend.Priority = 99; |
| | | } |
| | | else |
| | | { |
| | | agvTaskSend.Priority = 99 - newTasks.OrderByDescending(x => x.Grade).FirstOrDefault().Grade; |
| | | } |
| | | //åéAGVä»»å¡ |
| | | WebResponseContent content = _taskService.AgvSendTask(agvTaskSend, APIEnum.AgvSendTask); |
| | | if (!content.Status) |
| | | throw new Exception(content.Message); |
| | | newTasks.ForEach(x => |
| | | { |
| | | x.Dispatchertime = DateTime.Now; |
| | | x.TaskState = TaskAGVCarryStatusEnum.AGV_CarryExecuting.ObjToInt(); |
| | | }); |
| | | _taskService.UpdateData(newTasks); |
| | | Thread.Sleep(500); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | newTasks.ForEach(x => |
| | | { |
| | | x.TaskState = TaskAGVCarryStatusEnum.AGV_CarryException.ObjToInt(); |
| | | x.ExceptionMessage = ex.Message; |
| | | }); |
| | | _taskService.UpdateData(newTasks); |
| | | } |
| | | string taskGroupId = Guid.NewGuid().ToString().Replace("-", ""); |
| | | |
| | | // è·åèµ·å§ç«å° |
| | | Dt_StationManager stationManagerEnd = _stationManagerRepository.QueryFirst(x => x.stationLocation == task.SourceAddress); |
| | | // è·åç®çç«å° |
| | | Dt_StationManager finalmission = _stationManagerRepository.QueryFirst(x => x.stationLocation == task.TargetAddress); |
| | | |
| | | if (stationManagerEnd == null) throw new Exception($"æªæ¾å°ä»»å¡å·${task.TaskId}èµ·å§ç¹{task.SourceAddress}ä½ç½®ä¿¡æ¯"); |
| | | if (finalmission == null) throw new Exception($"æªæ¾å°ä»»å¡å·${task.TaskId}ç®æ ç¹{task.TargetAddress}ä½ç½®ä¿¡æ¯"); |
| | | |
| | | agvTaskSend.RequestId = taskGroupId; |
| | | agvTaskSend.MissionCode = task.TaskId.ToString(); |
| | | agvTaskSend.ViewBoardType = "W01"; |
| | | //è´§æ¶åæ¬è¿ä»»å¡ |
| | | MissionDataItem Startingmission = new MissionDataItem() // èµ·ç¹ |
| | | { |
| | | Sequence = 1, |
| | | Position = stationManagerEnd.stationLocation, |
| | | }; |
| | | |
| | | MissionDataItem Finalmission = new MissionDataItem() // ç»ç¹ |
| | | { |
| | | Sequence = 2, |
| | | Position = finalmission.stationLocation, |
| | | }; |
| | | agvTaskSend.MissionData.Add(Startingmission); |
| | | agvTaskSend.MissionData.Add(Finalmission); |
| | | if (task.Grade == 0) |
| | | { |
| | | agvTaskSend.Priority = 99; |
| | | } |
| | | else |
| | | { |
| | | agvTaskSend.Priority = 99 - task.Grade; |
| | | } |
| | | //åéAGVä»»å¡ |
| | | WebResponseContent content = _taskService.AgvSendTask(agvTaskSend, APIEnum.AgvSendTask); |
| | | if (!content.Status) |
| | | throw new Exception(content.Message); |
| | | task.Dispatchertime = DateTime.Now; |
| | | task.TaskState = (int)TaskAGVCarryStatusEnum.AGV_CarryExecuting; |
| | | _taskService.UpdateData(newTasks); |
| | | Thread.Sleep(500); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | task.TaskState = (int)TaskAGVCarryStatusEnum.AGV_CarryException; |
| | | task.ExceptionMessage = ex.Message; |
| | | _taskService.UpdateData(newTasks); |
| | | } |
| | | } |
| | | } |
| | | #endregion |
| | | return Task.CompletedTask; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace WIDESEAWCS_Tasks.TaskAcquisition |
| | | { |
| | | public class Baseconversion |
| | | { |
| | | /// <summary> |
| | | /// 10è¿å¶è½¬16è¿å¶ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string TenthTurn16(byte[] bytes) |
| | | { |
| | | try |
| | | { |
| | | string originalDecimalStr = Encoding.ASCII.GetString(bytes).TrimEnd('\0'); |
| | | // ä¸é¢è¿ä¸æ®µå°±æ¯ä½ è¦çï¼è½¬ 16 è¿å¶ |
| | | ulong number = ulong.Parse(originalDecimalStr); // è½¬ææ°å |
| | | string hexStr = number.ToString("X"); // 转大å16è¿å¶ |
| | | return hexStr; |
| | | } |
| | | catch (Exception) |
| | | { |
| | | return ""; |
| | | throw; |
| | | } |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 16è¿å¶è½¬10è¿å¶ |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public string SixteenTurns10() |
| | | { |
| | | return ""; |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using Quartz; |
| | | using SixLabors.ImageSharp; |
| | | using SqlSugar.Extensions; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Common.TaskEnum; |
| | | using WIDESEAWCS_Communicator; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_IBasicInfoService; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_Model.Models; |
| | | using WIDESEAWCS_QuartzJob; |
| | | using WIDESEAWCS_Tasks.TaskAcquisition; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡è·å ååºæ¿1 çä»»å¡ |
| | | /// </summary> |
| | | /// |
| | | [DisallowConcurrentExecution] |
| | | public class TaskAcquisition_Back1_Job : JobBase, IJob |
| | | { |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly ITaskService _taskService; |
| | | private readonly ISys_ConfigService _sys_ConfigService; |
| | | private readonly IDt_StationManagerRepository _stationManagerRepository; |
| | | private readonly IDt_MaterialInfoRepository _IDt_MaterialInfoRepository; |
| | | public TaskAcquisition_Back1_Job(ITaskRepository taskRepository, ITaskService taskService, ISys_ConfigService configService, IDt_StationManagerRepository stationManagerRepository, IDt_MaterialInfoRepository IDt_MaterialInfoRepository) |
| | | { |
| | | _taskRepository = taskRepository; |
| | | _taskService = taskService; |
| | | _sys_ConfigService = configService; |
| | | _stationManagerRepository = stationManagerRepository; |
| | | _IDt_MaterialInfoRepository = IDt_MaterialInfoRepository; |
| | | } |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | string ip = "127.0.0.1"; |
| | | int port = 502; |
| | | string Region = "ååºæ¿1"; |
| | | ModbusTcp modbusTcp = new ModbusTcp(ip, port, Region); |
| | | Baseconversion baseconversion = new Baseconversion(); |
| | | modbusTcp.Connect(); |
| | | |
| | | Dictionary<int, int> Signal = new Dictionary<int, int>() { [10] = 2, [30] = 3, [50] = 4, [70] = 5 }; |
| | | Dictionary<int, int> FeedingPoint = new Dictionary<int, int>() { [10] = 2001, [30] = 2002, [50] = 2003, [70] = 2004 }; // 嫿çç¹ä½ ç»ç¹ä½ç½® |
| | | |
| | | try |
| | | { |
| | | for (int i = 10; i < 90; i += 20) |
| | | { |
| | | byte[] SignalNumber = modbusTcp.Read(Signal[i].ToString(), 1); // ä¿¡å· 1ï¼å«æ 2ï¼æåºç©ºæ¡ |
| | | |
| | | if (SignalNumber[1] == 1) |
| | | { |
| | | byte[] PartNumber = modbusTcp.Read(i.ToString(), 20); // 读åé¶ä»¶å· |
| | | |
| | | if (PartNumber[1] == 0) continue; |
| | | |
| | | string Ku1_Value = baseconversion.TenthTurn16(PartNumber); |
| | | if (Ku1_Value != "" && Ku1_Value != null) |
| | | { |
| | | // çåè½æµè¯å®ï¼è¿éè¦åæ¥å¿è®°å½ |
| | | |
| | | Console.WriteLine(Ku1_Value); |
| | | // æ¾å¯¹åºçé¶ä»¶å·æ¯å¦å·²ç»ç»å®(ç»ç) |
| | | Dt_MaterialInfo dt_MaterialInfo = _IDt_MaterialInfoRepository.QueryFirst(x => x.MaterialName == Ku1_Value); |
| | | |
| | | if (dt_MaterialInfo != null && dt_MaterialInfo.IsBind && dt_MaterialInfo.EndPosition == null) |
| | | { |
| | | Dt_Task dt_Task = _taskRepository.QueryFirst(x => x.PalletCode == dt_MaterialInfo.ContainerCode); |
| | | if (dt_Task != null) continue; //è¯ææå½åä»»å¡ |
| | | |
| | | dt_Task = new Dt_Task(); |
| | | dt_Task.PalletCode = dt_MaterialInfo.ContainerCode; |
| | | dt_Task.SourceAddress = dt_MaterialInfo.Position; // å½åä½ç½® |
| | | dt_Task.TargetAddress = FeedingPoint[i].ToString(); // ç»ç¹ä½ç½® |
| | | dt_Task.Grade = 2; |
| | | dt_Task.TaskState = TaskAGVCarryStatusEnum.AGV_CarryNew.ObjToInt(); |
| | | dt_Task.TaskType = TaskAGVCarryTypeEnum.Carry.ObjToInt(); |
| | | dt_Task.Roadway = (Signal[i] - 1).ToString(); // åº1 嫿é£å°±æ¯1å··é |
| | | dt_Task.CurrentAddress = dt_MaterialInfo.Position; // å½åä½ç½® |
| | | dt_Task.NextAddress = FeedingPoint[i].ToString(); // ç»ç¹ä½ç½® |
| | | |
| | | dt_MaterialInfo.EndPosition = FeedingPoint[i].ToString(); // ç»ç¹ä½ç½® |
| | | |
| | | _taskRepository.AddData(dt_Task); |
| | | _IDt_MaterialInfoRepository.UpdateData(dt_MaterialInfo); |
| | | } |
| | | |
| | | // å¦ææ²¡ç»å®åä¸çæä»»å¡ å¦ææ¥æ¾å°å¯¹åºçé¶ä»¶å·ç»å®äº åçæä¸æ¡ä»»å¡æ°æ® |
| | | } |
| | | } |
| | | |
| | | if (SignalNumber[1] == 2) // 表示æåºç©ºæ¡ |
| | | { |
| | | Dictionary<int, int> Endpointposition = new Dictionary<int, int>() { [10] = 3001, [20] = 3002, [30] = 3003, [40] = 3004 }; // 嫿çç¹ä½ ç»ç¹ä½ç½® |
| | | Dt_Task dt_Task = _taskRepository.QueryFirst(x => x.SourceAddress == FeedingPoint[i].ToString() && x.TaskType == (int)TaskAGVCarryTypeEnum.CarryEmpty); |
| | | if (dt_Task != null) continue; |
| | | |
| | | dt_Task = new Dt_Task(); |
| | | dt_Task.PalletCode = "空æ¡å"; |
| | | dt_Task.SourceAddress = FeedingPoint[i].ToString(); |
| | | dt_Task.TargetAddress = Endpointposition[i].ToString(); |
| | | dt_Task.Grade = 2; |
| | | dt_Task.TaskState = TaskAGVCarryStatusEnum.AGV_CarryNew.ObjToInt(); |
| | | dt_Task.TaskType = TaskAGVCarryTypeEnum.CarryEmpty.ObjToInt(); |
| | | dt_Task.Roadway = (Signal[i] - 1).ToString(); // åº1 嫿é£å°±æ¯1å··é |
| | | dt_Task.CurrentAddress = FeedingPoint[i].ToString(); // å½åä½ç½® |
| | | dt_Task.NextAddress = Endpointposition[i].ToString(); // ç»ç¹ä½ç½® |
| | | _taskRepository.AddData(dt_Task); |
| | | } |
| | | |
| | | } |
| | | } |
| | | catch (Exception) |
| | | { |
| | | |
| | | throw; |
| | | } |
| | | |
| | | |
| | | // 16è¿å¶è½¬æ10è¿å¶ |
| | | // 2. 16è¿å¶ â 转ååè¿å¶ï¼ä½ è¦çåè½ï¼ |
| | | ulong decimalResult = Convert.ToUInt64("123", 16); |
| | | Console.WriteLine("16è¿å¶è½¬ååè¿å¶ï¼" + decimalResult); |
| | | |
| | | // åå
¥ |
| | | bool flag = modbusTcp.Write("30", decimalResult.ToString()); |
| | | |
| | | modbusTcp.Disconnect(); |
| | | Console.WriteLine("è¿å
¥äºTaskAcquisition_Back1_Job"); |
| | | return Task.CompletedTask; |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Quartz; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_QuartzJob; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡è·å ååºæ¿2 çä»»å¡ |
| | | /// </summary> |
| | | /// |
| | | [DisallowConcurrentExecution] |
| | | public class TaskAcquisition_Back2_Job : JobBase, IJob |
| | | { |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly ITaskService _taskService; |
| | | private readonly ISys_ConfigService _sys_ConfigService; |
| | | private readonly IDt_StationManagerRepository _stationManagerRepository; |
| | | public TaskAcquisition_Back2_Job(ITaskRepository taskRepository, ITaskService taskService, ISys_ConfigService configService, IDt_StationManagerRepository stationManagerRepository) |
| | | { |
| | | _taskRepository = taskRepository; |
| | | _taskService = taskService; |
| | | _sys_ConfigService = configService; |
| | | _stationManagerRepository = stationManagerRepository; |
| | | } |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | /// 主è¦è¯»å对åºçdbåçåç§»éè·åä¸çº¿ç¹çè¦æä¿¡æ¯ä»èçæä»»å¡è³Task表 |
| | | Console.WriteLine("TaskAcquisition_Back2_Jobæ£å¸¸è¿å
¥...."); |
| | | bool flag = context.JobDetail.JobDataMap.TryGetValue("JobParams", out object? value); |
| | | if (flag && value != null) |
| | | { |
| | | OtherDevice device = (OtherDevice)value; |
| | | if (!device.IsConnected) |
| | | { |
| | | return Task.CompletedTask; |
| | | } |
| | | device.Communicator.Read("10", 20); |
| | | } |
| | | return Task.CompletedTask; |
| | | } |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | using Quartz; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_IBasicInfoRepository; |
| | | using WIDESEAWCS_ISystemServices; |
| | | using WIDESEAWCS_ITaskInfoRepository; |
| | | using WIDESEAWCS_ITaskInfoService; |
| | | using WIDESEAWCS_QuartzJob; |
| | | |
| | | namespace WIDESEAWCS_Tasks |
| | | { |
| | | /// <summary> |
| | | /// ä»»å¡è·å ååºæ¿ çä»»å¡ |
| | | /// </summary> |
| | | /// |
| | | [DisallowConcurrentExecution] |
| | | public class TaskAcquisition_Front_Job : JobBase, IJob |
| | | { |
| | | private readonly ITaskRepository _taskRepository; |
| | | private readonly ITaskService _taskService; |
| | | private readonly ISys_ConfigService _sys_ConfigService; |
| | | private readonly IDt_StationManagerRepository _stationManagerRepository; |
| | | public TaskAcquisition_Front_Job(ITaskRepository taskRepository, ITaskService taskService, ISys_ConfigService configService, IDt_StationManagerRepository stationManagerRepository) |
| | | { |
| | | _taskRepository = taskRepository; |
| | | _taskService = taskService; |
| | | _sys_ConfigService = configService; |
| | | _stationManagerRepository = stationManagerRepository; |
| | | } |
| | | public Task Execute(IJobExecutionContext context) |
| | | { |
| | | /// 主è¦è¯»å对åºçdbåçåç§»éè·åä¸çº¿ç¹çè¦æä¿¡æ¯ä»èçæä»»å¡è³Task表 |
| | | Console.WriteLine("TaskAcquisition_Front_Jobæ£å¸¸è¿å
¥...."); |
| | | return Task.CompletedTask; |
| | | } |
| | | } |
| | | } |