diff --git a/src/http/request.js b/src/http/request.js
index 3d42d7b..2489669 100644
--- a/src/http/request.js
+++ b/src/http/request.js
@@ -7,7 +7,7 @@ const request = axios.create({
// axios.defaults.baseURL = 'http://192.168.3.254:12315/wms'
// axios.defaults.baseURL = 'http://localhost:12315/wms'
-// axios.defaults.baseURL = 'http://10.30.9.89:12315/wms'
+// axios.defaults.baseURL = 'http://192.168.8.93:12315/wms'
// // request 请求器
// // 可以自请求发送前对请求做一些处理
diff --git a/src/layout/callEmptyVehicle.vue b/src/layout/callEmptyVehicle.vue
index d269530..302802a 100644
--- a/src/layout/callEmptyVehicle.vue
+++ b/src/layout/callEmptyVehicle.vue
@@ -343,7 +343,7 @@ export default {
.station-div {
display: inline-flex;
justify-content: center;
- width: 125px;
+ width: 150px;
margin-left: 5px;
margin-right: 5px;
padding: 5px;
@@ -359,7 +359,7 @@ export default {
.station-no-div {
display: inline-flex;
justify-content: center;
- width: 75px;
+ width: 200px;
padding: 5px;
border: 5px double #000000;
}
diff --git a/src/layout/doKitting.vue b/src/layout/doKitting.vue
index afe1df2..8c62f6e 100644
--- a/src/layout/doKitting.vue
+++ b/src/layout/doKitting.vue
@@ -31,7 +31,7 @@
料号
-
@@ -45,26 +45,38 @@
controls-position="right" :min="0" width="200px" disabled />
- {{ workFormEntity.goodsUnit
- }}
+ PC
-
+
- {{ workFormEntity.goodsUnit }}
+ PC
@@ -141,9 +153,9 @@ export default {
workFormRef: ref(),
workFormEntity: reactive({
goodsId: '',
- goodsUnit: '',
planPickNum: 0,
- actualDifference: 0,
+ remainNumOrigin: null,
+ remainNumReal: null,
remark: '',
finishedRows: 0,
totalRows: 0,
@@ -159,6 +171,7 @@ export default {
}
},
mounted() {
+ this.$refs.goodsId.focus()
// this.timer = setInterval(() => {
// // this.getAllTasks()
// }, 2000)
@@ -168,51 +181,51 @@ export default {
},
methods: {
getCurrentWorkInfo() {
- this.workFormEntity = {
- goodsId: 'text0001',
- goodsUnit: 'PC',
- planPickNum: 10,
- actualDifference: 0,
- remark: '装盒子',
- finishedRows: 800,
- totalRows: 2500,
- finishedCounts: 2500,
- totalCounts: 6000,
- tip: ''
- }
- // const request = {
- // standId: this.standId,
- // goodsId: this.workFormEntity.goodsId
+ // this.workFormEntity = {
+ // goodsId: '5678932/CS',
+ // planPickNum: 10,
+ // remainNumOrigin: 5,
+ // remainNumReal: 5,
+ // remark: '装盒子',
+ // finishedRows: 800,
+ // totalRows: 2500,
+ // finishedCounts: 2500,
+ // totalCounts: 6000,
+ // tip: ''
// }
- // getWorkByStandAndGoods(request).then(res => {
- // const response = res.data
- // if (response.code == 0) {
- // this.workFormEntity.goodsId = response.returnData.goodsId
- // this.workFormEntity.goodsUnit = response.returnData.goodsUnit
- // this.workFormEntity.planPickNum = response.returnData.planPickNum
- // this.workFormEntity.actualDifference = response.returnData.actualDifference
- // this.workFormEntity.remark = response.returnData.remark
- // this.workFormEntity.finishedRows = response.returnData.finishedRows
- // this.workFormEntity.totalRows = response.returnData.totalRows
- // this.workFormEntity.finishedCounts = response.returnData.finishedCounts
- // this.workFormEntity.totalCounts = response.returnData.totalCounts
- // this.workFormEntity.tip = response.returnData.tip
- // } else {
- // this.resetForms()
- // ElMessage.error(response.message)
- // }
- // }).catch(err => {
- // console.log(err)
- // this.resetForms()
- // ElMessage.error('查询工作信息错误')
- // })
+ const request = {
+ standId: this.standId,
+ goodsId: this.workFormEntity.goodsId
+ }
+ getWorkByStandAndGoods(request).then(res => {
+ const response = res.data
+ if (response.code == 0) {
+ this.workFormEntity.goodsId = response.returnData.goodsId
+ this.workFormEntity.planPickNum = response.returnData.planPickNum
+ this.workFormEntity.remainNumOrigin = response.returnData.remainNumOrigin
+ this.workFormEntity.remainNumReal = response.returnData.remainNumReal
+ this.workFormEntity.remark = response.returnData.remark
+ this.workFormEntity.finishedRows = response.returnData.finishedRows
+ this.workFormEntity.totalRows = response.returnData.totalRows
+ this.workFormEntity.finishedCounts = response.returnData.finishedCounts
+ this.workFormEntity.totalCounts = response.returnData.totalCounts
+ this.workFormEntity.tip = response.returnData.tip
+ } else {
+ this.resetForms()
+ ElMessage.error(response.message)
+ }
+ }).catch(err => {
+ console.log(err)
+ this.resetForms()
+ ElMessage.error('查询工作信息错误')
+ })
},
resetForms() {
this.workFormEntity = reactive({
goodsId: '',
- goodsUnit: '',
planPickNum: 0,
- actualDifference: 0,
+ remainNumOrigin: null,
+ remainNumReal: null,
remark: '',
finishedRows: 0,
totalRows: 0,
@@ -232,7 +245,8 @@ export default {
const confirmParams = {
standId: this.standId,
goodsId: this.workFormEntity.goodsId,
- actualDifference: this.workFormEntity.actualDifference
+ remainNumOrigin: this.workFormEntity.remainNumOrigin,
+ remainNumReal: this.workFormEntity.remainNumReal
}
confirmFinishWork(confirmParams).then(res => {
const response = res.data
@@ -242,6 +256,7 @@ export default {
type: 'success',
})
this.resetForms()
+ this.$refs.goodsId.focus()
} else {
ElMessage.error(response.message)
}
@@ -307,16 +322,27 @@ export default {
}
:deep(.el-input) {
+ width: 195px;
height: 130px;
font-size: 25px;
}
:deep(.el-input-number) {
- width: 300px;
+ width: 125px;
height: 130px;
font-size: 25px;
}
+/* :deep(.el-input .el-input__inner) {
+ font-size: 60px;
+ height: 130px;
+}
+
+:deep(.el-input-number .el-input__inner) {
+ font-size: 60px;
+ height: 130px;
+} */
+
.title-div {
display: inline-flex;
width: -webkit-fill-available;
@@ -334,7 +360,7 @@ export default {
.station-div {
display: inline-flex;
justify-content: center;
- width: 125px;
+ width: 150px;
margin-left: 5px;
margin-right: 5px;
padding: 5px;
@@ -350,7 +376,7 @@ export default {
.station-no-div {
display: inline-flex;
justify-content: center;
- width: 75px;
+ width: 200px;
padding: 5px;
border: 5px double #000000;
}
@@ -364,7 +390,7 @@ export default {
.display-title-div {
display: inline-flex;
justify-content: center;
- width: 430px;
+ width: 205px;
height: 80px;
margin: 5px;
padding: 5px;
@@ -380,7 +406,7 @@ export default {
.display-form-div {
display: inline-flex;
justify-content: center;
- width: 420px;
+ width: 195px;
margin: 5px;
padding: 5px;
border: 5px double #000000;
@@ -390,7 +416,7 @@ export default {
.display-form-div-left {
display: inline-flex;
justify-content: center;
- width: 300px;
+ width: 125px;
margin: 5px;
padding: 5px;
border: 5px double #000000;
@@ -399,7 +425,7 @@ export default {
.display-form-div-right {
display: inline-flex;
justify-content: center;
- width: 100px;
+ width: 50px;
margin: 5px;
padding: 5px;
background-color: #CCCCCC;
diff --git a/src/layout/finishKitting.vue b/src/layout/finishKitting.vue
index 93eaf51..2943a81 100644
--- a/src/layout/finishKitting.vue
+++ b/src/layout/finishKitting.vue
@@ -25,7 +25,7 @@
+ style="display: inline-flex; justify-content: center; height: 60px; width: 700px; margin: 5px; padding: 5px; background-color: #00AAE8;">
{{ workFormEntity.tip }}
@@ -87,13 +87,19 @@
备注
+ style="display: inline-flex; justify-content: center; width: 520px; margin: 5px; padding: 5px; background-color: #00AAE8;">
{{ workFormEntity.remark }}
+
{
- // const response = res.data
- // if (response.code == 0) {
- // this.workFormEntity.tip = response.returnData.tip
- // this.workFormEntity.remark = response.returnData.remark
- // this.workFormEntity.planRows = response.returnData.planRows
- // this.workFormEntity.actualRows = response.returnData.actualRows
- // this.workFormEntity.planCounts = response.returnData.planCounts
- // this.workFormEntity.actualCounts = response.returnData.actualCounts
- // } else {
- // this.resetForms()
- // }
- // }).catch(err => {
- // console.log(err)
- // this.resetForms()
- // ElMessage.error('查询工作信息错误')
- // })
+ getFinishedWorkInfo(request).then(res => {
+ const response = res.data
+ if (response.code == 0) {
+ this.workFormEntity.tip = response.returnData.tip
+ this.workFormEntity.remark = response.returnData.remark
+ this.workFormEntity.planRows = response.returnData.planRows
+ this.workFormEntity.actualRows = response.returnData.actualRows
+ this.workFormEntity.planCounts = response.returnData.planCounts
+ this.workFormEntity.actualCounts = response.returnData.actualCounts
+ } else {
+ this.resetForms()
+ }
+ }).catch(err => {
+ console.log(err)
+ this.resetForms()
+ ElMessage.error('查询工作信息错误')
+ })
},
resetForms() {
this.workFormEntity = reactive({
@@ -191,31 +189,32 @@ export default {
})
},
confirmWork() {
- if (formData.standId == '') {
- ElMessage({
- message: '站台号不可缺少',
- type: 'error',
- })
- return
- }
- const confirmParams = {
- standId: this.standId,
- }
- confirmFinishedWork(confirmParams).then(res => {
- const response = res.data
- if (response.code == 0) {
- ElMessage({
- message: response.message,
- type: 'success',
- })
- this.resetForms()
- } else {
- ElMessage.error(response.message)
- }
- }).catch(err => {
- console.log(err)
- ElMessage.error('确认时发生异常')
+ console.log('完成确认')
+ if (this.standId == '') {
+ ElMessage({
+ message: '站台号不可缺少',
+ type: 'error',
})
+ return
+ }
+ const confirmParams = {
+ standId: this.standId,
+ }
+ confirmFinishedWork(confirmParams).then(res => {
+ const response = res.data
+ if (response.code == 0) {
+ ElMessage({
+ message: response.message,
+ type: 'success',
+ })
+ this.resetForms()
+ } else {
+ ElMessage.error(response.message)
+ }
+ }).catch(err => {
+ console.log(err)
+ ElMessage.error('确认时发生异常')
+ })
}
}
}
@@ -300,7 +299,7 @@ export default {
.station-div {
display: inline-flex;
justify-content: center;
- width: 125px;
+ width: 150px;
margin-left: 5px;
margin-right: 5px;
padding: 5px;
@@ -316,7 +315,7 @@ export default {
.station-no-div {
display: inline-flex;
justify-content: center;
- width: 75px;
+ width: 200px;
padding: 5px;
border: 5px double #000000;
}
diff --git a/src/layout/goodsIn.vue b/src/layout/goodsIn.vue
index c51e869..20b799f 100644
--- a/src/layout/goodsIn.vue
+++ b/src/layout/goodsIn.vue
@@ -24,15 +24,23 @@
label-width="150px" style="max-width: 100%" :rules="rules" status-icon>
-
{{ workFormEntity.tip }}
-
+
完成确认
+ style="margin-left: 25px; align-self: center; font-weight: bold;font-size: 45px; writing-mode: vertical-lr;">绑定完成
+
@@ -76,7 +98,7 @@
+
+
+
\ No newline at end of file
diff --git a/src/layout/sortBoxs.vue b/src/layout/sortBoxs.vue
new file mode 100644
index 0000000..a54b153
--- /dev/null
+++ b/src/layout/sortBoxs.vue
@@ -0,0 +1,310 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/layout/taskMonitor.vue b/src/layout/taskMonitor.vue
index 001736a..cf7778b 100644
--- a/src/layout/taskMonitor.vue
+++ b/src/layout/taskMonitor.vue
@@ -1,4 +1,3 @@
-
diff --git a/src/layout/vehicle.vue b/src/layout/vehicle.vue
index 4a3fa33..3745ae8 100644
--- a/src/layout/vehicle.vue
+++ b/src/layout/vehicle.vue
@@ -21,6 +21,7 @@
+
编辑
@@ -80,7 +81,7 @@ import { getAllVehicles, updateVehicleInfo } from '@/api/vehicle'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { ElMessage } from 'element-plus'
import { ref, reactive } from 'vue'
-import { vehicleStatusFormatter, locationFormatter, dateFormatter } from '@/utils/formatter.js'
+import { vehicleStatusFormatter, locationFormatter, dateFormatter, timeFormatter } from '@/utils/formatter.js'
// import uploadVehicles from '@/excel/uploadVehicles.vue'
import { downloadVehicleExcel } from '@/api/excel.js'
@@ -168,6 +169,9 @@ export default {
locationFormat: (row, column, cellValue, index) => {
return locationFormatter(cellValue)
},
+ timeFormat: (row, column, cellValue, index) => {
+ return timeFormatter(cellValue)
+ },
isEmptyFormat: (row, column, cellValue, index) => {
if (cellValue == 0) {
return '带料'
diff --git a/src/router/index.js b/src/router/index.js
index 7437085..3b99fbd 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -19,7 +19,7 @@ const routes = [
{ path: '/location', component: () => import('@/layout/location.vue') },// 库位
{ path: '/goods', component: () => import('@/layout/goods.vue') },// 物料
{ path: '/standSettings', component: () => import('@/layout/standSettings.vue') },// 站台(库口)设置
- { path: '/config', component: () => import('@/layout/config.vue') },// 系统配置
+ { path: '/config', component: () => import('@/layout/newConfig.vue') },// 系统配置
{ path: '/taskMonitor', component: () => import('@/layout/taskMonitor.vue') },// 任务监控
{ path: '/vehicles', component: () => import('@/layout/vehicle.vue') },// 任务监控
{ path: '/inventory', component: () => import('@/layout/inventory.vue') },// 盘点
@@ -28,6 +28,7 @@ const routes = [
{ path: '/testDoKitting', component: () => import('@/layout/doKitting.vue') },// 备料执行
{ path: '/testFinishKitting', component: () => import('@/layout/finishKitting.vue') },// 备料完成
{ path: '/testCallEmptyVehicle', component: () => import('@/layout/callEmptyVehicle.vue') },// 备料完成
+ { path: '/testSortBoxs', component: () => import('@/layout/sortBoxs.vue') },// 备料完成
]
},
{
diff --git a/src/store/index.js b/src/store/index.js
index 7c29021..3fc144f 100644
--- a/src/store/index.js
+++ b/src/store/index.js
@@ -11,7 +11,7 @@ export default createStore({
menuList: [],
token: '',
verifier: '',
- standId: '# 1'
+ standId: ''
},
getters: {
getUserName(state) {
@@ -68,6 +68,14 @@ export default createStore({
sessionStorage.setItem("menuList", state.menuList)
},
+ /**
+ * 存储站台信息
+ */
+ mutationStandId(state, data) {
+ state.standId = data
+ sessionStorage.setItem("standId", state.standId)
+ },
+
/**
* 存储认证
*/
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index 331368d..e719634 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -10,7 +10,7 @@
- {{ userName }}
+ 用户名:{{ userName }}
@@ -47,6 +47,7 @@
diff --git a/src/views/login.vue b/src/views/login.vue
index 4e6a0bf..4b50db8 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -37,6 +37,7 @@ const login = () => {
if (res.data.code == 0) {
store.commit('mutationUser', res.data.returnData.user)// 用户信息
store.commit('mutationMenu', res.data.returnData.menuList)// 菜单信息
+ store.commit('mutationStandId', res.data.returnData.standId)
// router.replace({ path: '/' })// 直接跳转到主页
router.replace({ path: '/systemCenter' })// 跳转到系统选择的界面
} else {