diff --git a/.env.production b/.env.production index 66da123..7541e1b 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',文件查看 Docker 部署篇,Nginx 配置 # 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http -VUE_APP_BASE_API = 'https://eladmin.vip' +VUE_APP_BASE_API = '/' # 如果接口是 http 形式, wss 需要改为 ws -VUE_APP_WS_API = 'wss://eladmin.vip' +VUE_APP_WS_API = '/' diff --git a/src/api/agvTask.js b/src/api/agvTask.js index c25322c..f303126 100644 --- a/src/api/agvTask.js +++ b/src/api/agvTask.js @@ -54,5 +54,12 @@ export function sendAgvTask(data) { data }) } +export function toAgvTaskFinish(data) { + return request({ + url: '/api/agvTask/toAgvTaskFinish', + method: 'post', + data + }) +} -export default { add, edit, del,missionStateCallback,agvTaskCallback ,sendAgvTask} +export default { add, edit, del,missionStateCallback,agvTaskCallback ,sendAgvTask,toAgvTaskFinish} diff --git a/src/api/billType.js b/src/api/billType.js index d4e58f0..e05d067 100644 --- a/src/api/billType.js +++ b/src/api/billType.js @@ -29,4 +29,4 @@ export function getBillType() { method: 'post' }) } -export default { add, edit, del } +export default { add, edit, del, getBillType } diff --git a/src/api/box.js b/src/api/box.js index aa56cb3..8f03ee1 100644 --- a/src/api/box.js +++ b/src/api/box.js @@ -32,21 +32,23 @@ export function bindOrder(data) { }) } -//按钮车呼叫 -export function callTrolley(id,pointCode) { +// 按钮车呼叫 +export function callTrolley(id, pointCode) { return request({ - url: 'api/app/callTrolley?id='+id+"&pointCode="+pointCode, + url: 'api/app/callTrolley?id=' + id + '&pointCode=' + pointCode, method: 'post' }) } -//按钮盒呼叫 -export function callBox(data) { +// 按钮盒呼叫 +export function callBox(id) { return request({ - url: 'api/app/callBox', + url: 'api/appScene/asn/rqRkSub', method: 'post', - data + data: { + id: id + } }) } -export default { add, edit, del,bindOrder ,callBox} +export default { add, edit, del, bindOrder, callBox } diff --git a/src/api/item.js b/src/api/item.js index b8e688d..29fed68 100644 --- a/src/api/item.js +++ b/src/api/item.js @@ -11,8 +11,7 @@ export function getItems(params) { export function getItemsList(params) { return request({ url: 'api/item/itemList', - method: 'get', - params + method: 'get' }) } export function add(data) { diff --git a/src/api/point.js b/src/api/point.js index 188374f..415c469 100644 --- a/src/api/point.js +++ b/src/api/point.js @@ -68,11 +68,27 @@ export function pointCallStock(data) { export function pointStockBack(data) { return request({ - url: 'api/appScene/pointStockBack', + url: 'api/task/STAgvReceiving', method: 'post', data }) } +export function pointStockRk(data) { + return request({ + url: 'api/task/pointStockRk', + method: 'post', + data + }) +} +export function pointStockCk(ids) { + return request({ + url: 'api/task/pointStockCk', + method: 'post', + data: { + 'ids': ids + } + }) +} export function fullStockOut(data) { return request({ url: 'api/appScene/fullStockOut', @@ -89,4 +105,4 @@ export function multiAdjust(data) { }) } -export default { add, edit, del,getPoints,queryPointList ,fullStockIn,pointCallStock,fullStockOut,pointStockBack,multiAdjust} +export default { add, edit, del,pointStockCk,getPoints,queryPointList ,fullStockIn,pointCallStock,fullStockOut,pointStockBack,multiAdjust,pointStockRk} diff --git a/src/assets/styles/eladmin.scss b/src/assets/styles/eladmin.scss index 059c31b..b38d8c4 100644 --- a/src/assets/styles/eladmin.scss +++ b/src/assets/styles/eladmin.scss @@ -120,7 +120,19 @@ /* 全局修改el-table 表头和内容颜色 header color content color */ .el-table th { - font-size: 14px; + font-size: 12px; background: #F6F9FC !important; color: #606266; } +// 表格td 文本和元素间距 +.el-table--small .el-table__cell { + padding: 3px 0; +} +// table鼠标经过时变色 +.el-table__body tr:hover>td{ + background-color: #a0c2e7 !important; +} +/*.el-table__body tr.current-row>td{ + background-color: #a0c2e7 !important; + color: #fff; +}*/ diff --git a/src/main.js b/src/main.js index 9a2e085..195fcb9 100644 --- a/src/main.js +++ b/src/main.js @@ -4,7 +4,9 @@ import Cookies from 'js-cookie' import 'normalize.css/normalize.css' -import Element, { Table, TableColumn } from 'element-ui' +import Element, { Table, TableColumn,Button } from 'element-ui' +const ButtonProps = Element.Button.props +ButtonProps.loading = { type: Boolean, default: false } // 按钮禁用 const TableProps = Element.Table.props const TableColumnProps = Element.TableColumn.props TableProps.border = { type: Boolean, default: true } // 边框 @@ -12,6 +14,7 @@ TableProps.align = { type: String, default: 'center' } // 居中 TableProps.stripe = { type: Boolean, default: true } // 斑马纹 TableColumnProps.showOverflowTooltip = { type: Boolean, default: true } // 文本溢出 // TableColumnProps.sortable = { type: Boolean, default: true } // 置默认的排序列和排序顺序 +Vue.use(Button) Vue.use(Table) Vue.use(TableColumn) diff --git a/src/stytel/base.styl b/src/stytel/base.styl new file mode 100644 index 0000000..ab36599 --- /dev/null +++ b/src/stytel/base.styl @@ -0,0 +1,168 @@ +@import 'reset' +@import "variables.styl" +.icon + width 1em + height 1em + vertical-align -0.15em + fill currentColor + overflow hidden + +@keyframes spin { + 0% { + transform rotate(0deg) + } + 100% { + transform rotate(360deg) + } +} +.tc + text-align center +.tl + text-align left +.tr + text-align right +.spin + animation spin .6s infinite linear + display inline-block + +html + height 100% + +body + font-size 12px + font-family "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif + height 100% + + .ivu-select-dropdown + padding 0 + +.lineov2 + overflow hidden + text-overflow ellipsis + display -webkit-box + -webkit-line-clamp 2 + -webkit-box-orient vertical + +.lineov1 + text-overflow ellipsis + overflow hidden + white-space nowrap + +.flex-container + display flex + +.align-center + align-items center + +.flex-center + display flex + align-items center + +.flex-top + display flex + align-items flex-start + +.justify-end + justify-content flex-end + +.flex-one + flex 1 1 0 + +.flex-two + flex 2 + +.mouse-pointer + cursor pointer + +.no-break + word-break keep-all + white-space nowrap + +.break-all + word-break break-all + white-space normal + +/* ---- Chrome ----*/ +.scroll::-webkit-scrollbar + width: 5px; + +/*滚动条粗细*/ + +.scroll::-webkit-scrollbar-track + -webkit-box-shadow: none; + background: #f8f8f9; /*滑道颜色*/ + border-radius: 5px; + +/*滑道的圆滑度*/ + +.scroll::-webkit-scrollbar-thumb + background: #c1c1c1; /*滑块颜色*/ + border-radius: 5px + +/*滑块圆滑度*/ + +.scroll::-webkit-scrollbar-thumb:hover + background: gray; + +/*滑块上浮*/ + +/*--- FirFox ---*/ +.scroll + scrollbar-width: thin; + scrollbar-color: orange green; + +/* --- IE ---*/ +body + scrollbar-arrow-color: #f4ae21; /*三角箭头的颜色*/ + scrollbar-face-color: #333; /*立体滚动条的颜色*/ + scrollbar-3dlight-color: #666; /*立体滚动条亮边的颜色*/ + scrollbar-highlight-color: #666; /*滚动条空白部分的颜色*/ + scrollbar-shadow-color: #999; /*立体滚动条阴影的颜色*/ + scrollbar-darkshadow-color: #666; /*立体滚动条强阴影的颜色*/ + scrollbar-track-color: #666; /*立体滚动条背景颜色*/ + scrollbar-base-color: #f8f8f8; + +/*滚动条的基本颜色*/ + +.common-table + width 100% + border-collapse: collapse; + tr > td, tr > th + border 1px solid $border-color + padding 5px 8px + tr > th + font-weight bolder + white-space nowrap + +.inline-div + display inline-block + +[class~=flex].gutter-span + > * + * + margin-left .75rem + +.warning + color $yellow +.active + color $active-color +.white + color white +.gold + color $gold-color +.gray + color $gray-color +.red + color $red +.blue + color $blue +.green + color green +.bg-white + background #fff +.pct100 + width 100% +.bolder-font + font-weight bolder + +.large-tip + font-size 16px diff --git a/src/views/base-data/area/index.vue b/src/views/base-data/area/index.vue index c8120b5..d625d38 100644 --- a/src/views/base-data/area/index.vue +++ b/src/views/base-data/area/index.vue @@ -41,6 +41,7 @@ + @@ -154,9 +155,10 @@ export default { }) }, getAgvSceneAllDate(){ - selectEgvSceneAll().then(res => { + /*selectEgvSceneAll().then(res => { this.avgSceneOptions=res; - }) + })*/ + console.log("tableKey:"+this.$options.name) } } } diff --git a/src/views/base-data/billType/index.vue b/src/views/base-data/billType/index.vue index e57f918..314cbc1 100644 --- a/src/views/base-data/billType/index.vue +++ b/src/views/base-data/billType/index.vue @@ -186,7 +186,7 @@ export default { pointList: [], rules: { code: [ - {required: true, message: '请输入编号', trigger: 'blur'}, + { required: true, message: '请输入编号', trigger: 'blur'}, ], name: [ {required: true, message: '请输入名称', trigger: 'blur'}, diff --git a/src/views/base-data/box/index.vue b/src/views/base-data/box/index.vue index 931668e..22cb9be 100644 --- a/src/views/base-data/box/index.vue +++ b/src/views/base-data/box/index.vue @@ -76,7 +76,7 @@ @@ -98,6 +98,7 @@ style="width: 100%;" @selection-change="crud.selectionChangeHandler"> + @@ -126,11 +127,13 @@ @@ -184,7 +187,7 @@ export default { crudMethod: {...crudBox}, optShow: { add: true, - edit: false, + edit: true, del: false, reset: true, download: true @@ -253,30 +256,21 @@ export default { }) }) }, - callBox(datas) { - if (this.$refs.table.selection.length >= 1) { - this.$confirm(`选中的${datas.length}条数据呼叫确认?`, '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - const ids = []; - for (let i = 0; i < datas.length; i++) { - ids.push(datas[i].id) - } - crudBox.callBox(ids).then(res => { - this.crud.notify(res.message, CRUD.NOTIFICATION_TYPE.SUCCESS) - this.crud.toQuery(); - }) - - }).catch(() => { - this.$refs.table.clearSelection() - DonMessage.info('取消成功!') - }); - } else { - DonMessage.error('请至少选中一条记录!') - } + callBox(row) { + this.$confirm(`确认操作?`, '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + crudBox.callBox(row.id).then(res => { + this.crud.notify(res.message,res.status) + this.crud.toQuery(); + }) + }).catch(() => { + this.$refs.table.clearSelection() + DonMessage.info('取消成功!') + }); }, changeEnabled(data, val) { this.$confirm('此操作将 "' + this.dict.label.base_staus[val] + '" ' + data.code + ', 是否继续?', '提示', { diff --git a/src/views/base-data/item/index.vue b/src/views/base-data/item/index.vue index 70e2383..c2740bc 100644 --- a/src/views/base-data/item/index.vue +++ b/src/views/base-data/item/index.vue @@ -57,7 +57,7 @@ - + @@ -131,7 +131,7 @@ - + - + - - - @@ -288,7 +356,7 @@ import pointUrl from '@/api/point' import multiAdjust from "@/views/base-data/point/multiAdjust.vue"; import {getStockTypes} from "@/api/stockType"; -const defaultForm = {id: null, status: 'FREE', enabled: 1, code: null, name: null, description: null, area: null, storageType: null,beatCode: null,heat: null} +const defaultForm = {id: null,agvStatus: null, status: 'FREE', enabled: 1, code: null, name: null, description: null, area: null, storageType: null,beatCode: null,heat: null} export default { name: 'Point', components: { @@ -429,11 +497,12 @@ export default { this.callStock.pointCode = this.from1.pointCode this.callStock.ids=ids pointUrl.pointCallStock(this.callStock).then(res => { - this.callEmptyCarStatus = false; + this.crud.notify(res.message,res.status) this.crud.toQuery() - this.crud.notify("搬运成功", CRUD.NOTIFICATION_TYPE.SUCCESS); - }).catch(e => { - this.crud.notify("搬运失败", CRUD.NOTIFICATION_TYPE.ERROR); + if (res.status===200){ + this.callStock={}; + this.callEmptyCarStatus=false + } }) }, //容器入场 @@ -443,7 +512,7 @@ export default { ids.push(datas[i].id) } this.fromBack.ids=ids; - pointUrl.pointStockBack(this.fromBack).then(res => { + pointUrl.pointStockRk(this.fromBack).then(res => { this.EmptyCarBackStatus = false; this.crud.toQuery() this.crud.notify("入场成功", CRUD.NOTIFICATION_TYPE.SUCCESS); @@ -451,6 +520,16 @@ export default { this.crud.notify("入场失败", CRUD.NOTIFICATION_TYPE.ERROR); }) }, + callStockBackOut(datas) { + const ids = []; + for (let i = 0; i < datas.length; i++) { + ids.push(datas[i].id) + } + pointUrl.pointStockCk(ids).then(res => { + this.crud.toQuery() + this.crud.notify(res.message, res.status); + }) + }, //获取点位表的数据 getPointListData() { crudPoint.queryPointList({}).then(res => { diff --git a/src/views/business-data/asn/index.vue b/src/views/business-data/asn/index.vue index 8debc01..ea0aacb 100644 --- a/src/views/business-data/asn/index.vue +++ b/src/views/business-data/asn/index.vue @@ -2,30 +2,30 @@
- - - - - - - + + + + + + + - + @@ -149,7 +146,6 @@ import pagination from '@crud/Pagination' import { getItems } from '@/api/item' import { getBillType } from '@/api/billType' import crudAsnDetail from "@/api/asnDetail"; -import DonMessage from "@/utils/message"; import DateRangePicker from '@/components/DateRangePicker' const defaultForm = { id: null, dept: null, billType: null, orderOrigin: null, structure: null, erTime: null, relatedBill1: null, relatedBill2: null, sourceName: null, status: null, address: null, createBy: null, updateBy: null, createTime: null, updateTime: null, orderDate: null } @@ -193,9 +189,9 @@ export default { [CRUD.HOOK.beforeRefresh]() { return true }, - jumpAsnDetail(relatedBill1) { + jumpAsnDetail(asn) { // 路径/home对应我在router目录下index.js中定义的path属性值 - this.$router.push({ path: '/business-data/asnDetail/asnDetail', query: { relatedBill1: relatedBill1 }}) + this.$router.push({ path: '/business-data/asnDetail/asnDetail', query: { asn: asn }}) }, startAsn(id) { this.$confirm(`确定开始收货?`, '提示', { diff --git a/src/views/business-data/asnDetail/index.vue b/src/views/business-data/asnDetail/index.vue index 40c6d93..50437e1 100644 --- a/src/views/business-data/asnDetail/index.vue +++ b/src/views/business-data/asnDetail/index.vue @@ -2,240 +2,185 @@
- - - - - - - {{ item.code }} - {{ item.name }} - - - - - - - - - - - - MO票采集 - - - 收 货 - - - - 容器更换 - - 收货详情 - - - 导入 - - - -
- - - - - - - - + + + - - - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + -
- + + + + + + 保存 + + + 添加物料 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
-
diff --git a/src/views/business-data/inventory/index.vue b/src/views/business-data/inventory/index.vue index fc8305d..3186a93 100644 --- a/src/views/business-data/inventory/index.vue +++ b/src/views/business-data/inventory/index.vue @@ -40,18 +40,6 @@ - - 拆托 - - + - + - - - - - - + - + - - - - - + + @@ -164,7 +139,6 @@ - +