Files
tekelanew_acs/acs/nladmin-ui/node_modules/.cache/vue-loader/aad3899aabcfd1f589c5628a81bbe2a9.json
2024-12-05 09:33:18 +08:00

1 line
7.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"remainingRequest":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\angle\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\src\\views\\acs\\angle\\index.vue","mtime":1732871026556},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":1732872825017},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1732872824662},{"path":"D:\\data\\hanguodoushan\\acs2\\nladmin-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":1732872825835}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\r\nimport CRUD, { crud, form, header, presenter } from '@crud/crud'\r\nimport crudOperation from '@crud/CRUD.operation'\r\nimport udOperation from '@crud/UD.operation'\r\nimport pagination from '@crud/Pagination'\r\nimport crudAcsPointAngle from '@/api/acs/angle/acsPointAngle'\r\nimport deviceCrud from '@/api/acs/device/device'\r\nimport routeCurd from '@/api/acs/route/routePlan'\r\nimport { getDicts } from '@/views/system/dict/dict'\r\n\r\nconst defaultForm = {\r\n id: null,\r\n start_point_code: null,\r\n start_device_code: null,\r\n next_point_code: null,\r\n next_device_code: null,\r\n start_point_angle: null,\r\n next_point_angle: null,\r\n is_active: null,\r\n create_by: null,\r\n create_time: null,\r\n update_by: null,\r\n update_time: null\r\n}\r\nexport default {\r\n name: 'AcsPointAngle',\r\n components: { pagination, crudOperation, udOperation },\r\n mixins: [presenter(), header(), form(defaultForm), crud()],\r\n cruds() {\r\n return CRUD({\r\n title: '点位角度',\r\n url: 'api/acsPointAngle',\r\n idField: 'id',\r\n sort: 'id,desc',\r\n crudMethod: { ...crudAcsPointAngle }\r\n })\r\n },\r\n data() {\r\n return {\r\n permission: {\r\n add: ['admin', 'acsPointAngle:add'],\r\n edit: ['admin', 'acsPointAngle:edit'],\r\n del: ['admin', 'acsPointAngle:del']\r\n },\r\n form: {\r\n deviceList: [],\r\n task_id: null,\r\n vehicle_code: null,\r\n vehicle_type: null,\r\n task_type: '1',\r\n storage_task_type: '',\r\n task_status: null,\r\n priority: 1,\r\n start_point_code: null,\r\n start_point_code2: null,\r\n start_device_code: null,\r\n start_device_code2: null,\r\n next_point_code: null,\r\n next_point_code2: null,\r\n remark: null,\r\n material: null,\r\n route_plan_code: 'normal',\r\n from_x: null,\r\n from_y: null,\r\n from_z: null,\r\n to_x: null,\r\n to_y: null,\r\n to_z: null,\r\n from_x2: null,\r\n from_y2: null,\r\n from_z2: null,\r\n to_x2: null,\r\n to_y2: null,\r\n to_z2: null,\r\n agv_system_type: '1',\r\n interactionJson: null\r\n },\r\n rules: {\r\n start_point_code: [\r\n { required: true, message: '起点不能为空', trigger: 'change' }\r\n ],\r\n next_point_code: [\r\n { required: true, message: '终点不能为空', trigger: 'change' }\r\n ],\r\n is_active: [\r\n {\r\n required: true,\r\n message: '是否启用不能为空',\r\n trigger: 'blur'\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n created() {\r\n deviceCrud.selectDeviceList().then(data => {\r\n this.deviceList = data\r\n })\r\n routeCurd.selectList().then(data => {\r\n this.routeList = data\r\n })\r\n getDicts().then(data => {\r\n this.dicts = data\r\n })\r\n },\r\n methods: {\r\n // 钩子在获取表格数据之前执行false 则代表不获取数据\r\n [CRUD.HOOK.beforeRefresh]() {\r\n return true\r\n },\r\n showStartStorage(val) {\r\n let obj = {}\r\n obj = this.deviceList.find((item) => {\r\n return item.device_code === val\r\n })\r\n if (obj.device_type === 'storage') {\r\n this.start_flag = true\r\n let storage_obj = {}\r\n deviceCrud.queryStorageExtra(obj.device_code).then(data => {\r\n storage_obj = data\r\n const n1 = storage_obj.minY\r\n const n2 = storage_obj.maxY\r\n const m1 = storage_obj.minZ\r\n const m2 = storage_obj.maxZ\r\n const from_y = []\r\n const from_z = []\r\n for (let i = n1; i <= n2; i++) {\r\n const y = {}\r\n if (i < 10) {\r\n y.id = '0' + i\r\n } else {\r\n y.id = i\r\n }\r\n y.value = i + '列'\r\n from_y.push(y)\r\n }\r\n for (let i = m1; i <= m2; i++) {\r\n const z = {}\r\n if (i < 10) {\r\n z.id = '0' + i\r\n } else {\r\n z.id = i\r\n }\r\n z.value = i + '层'\r\n from_z.push(z)\r\n }\r\n this.fromYList = from_y\r\n this.fromZList = from_z\r\n this.form.from_x = storage_obj.tunnel\r\n })\r\n } else {\r\n this.start_flag = false\r\n this.form.from_x = ''\r\n this.form.from_y = ''\r\n this.form.from_z = ''\r\n }\r\n this.isDisabled = false\r\n },\r\n updateIsOn(id, is_active) {\r\n crudAcsPointAngle.updateOn(id, is_active).then(res => {\r\n this.notify('保存成功', 'success')\r\n }).catch(err => {\r\n console.log(err.response.data.message)\r\n })\r\n },\r\n showEndStorage(val) {\r\n let obj = {}\r\n obj = this.deviceList.find((item) => {\r\n return item.device_code === val\r\n })\r\n if (obj.device_type === 'storage') {\r\n this.end_flag = true\r\n let storage_obj = {}\r\n deviceCrud.queryStorageExtra(obj.device_code).then(data => {\r\n storage_obj = data\r\n const n1 = storage_obj.minY\r\n const n2 = storage_obj.maxY\r\n const m1 = storage_obj.minZ\r\n const m2 = storage_obj.maxZ\r\n const to_y = []\r\n const to_z = []\r\n for (let i = n1; i <= n2; i++) {\r\n const y = {}\r\n if (i < 10) {\r\n y.id = '0' + i\r\n } else {\r\n y.id = i\r\n }\r\n y.value = i + '列'\r\n to_y.push(y)\r\n }\r\n for (let i = m1; i <= m2; i++) {\r\n const z = {}\r\n if (i < 10) {\r\n z.id = '0' + i\r\n } else {\r\n z.id = i\r\n }\r\n z.value = i + '层'\r\n to_z.push(z)\r\n }\r\n this.toYList = to_y\r\n this.toZList = to_z\r\n this.form.to_x = storage_obj.tunnel\r\n })\r\n } else {\r\n this.end_flag = false\r\n this.form.to_x = ''\r\n this.form.to_y = ''\r\n this.form.to_z = ''\r\n }\r\n this.isDisabled = false\r\n }\r\n }\r\n}\r\n",null]}