Browse Source

【agv-pad】回库功能开发

dev_pc_agv
安虹睿 5 months ago
parent
commit
5575185ef4
  1. 3
      fe/PC/public/config.js
  2. 1
      fe/PC/src/App.vue
  3. 9
      fe/PC/src/api/wms-pad.js
  4. 3
      fe/PC/src/layout/index.vue
  5. 17
      fe/PC/src/router/index.js
  6. 1
      fe/PC/src/views/padManage/isPadForMenuPage.vue
  7. 81
      fe/PC/src/views/padManage/isPadForNotifyOutTaskBack.vue

3
fe/PC/public/config.js

@ -46,6 +46,9 @@ window.SITE_CONFIG['pageHasMOrDList'] = [
// 'PurchaseOrder_mrt','PurchaseOrder_det',//采购订单信息
]
// pad-回库
window.SITE_CONFIG['notifyOutTaskBackURL'] = 'http://dev.ccwin-in.com:60099/wms/api/RestJsonService/notifyOutTaskBack4FW'
// mock

1
fe/PC/src/App.vue

@ -37,6 +37,7 @@ localStorage.setItem('MOrDFasterUrl_inventory',window.SITE_CONFIG['MOrDFasterUrl
localStorage.setItem('pageHasMOrDList',window.SITE_CONFIG['pageHasMOrDList'])
localStorage.setItem('showGrabimageIframeTest',window.SITE_CONFIG['showGrabimageIframeTest'])
localStorage.setItem('grabRegulateIframePage',window.SITE_CONFIG['grabRegulateIframePage'])
localStorage.setItem('notifyOutTaskBackURL',window.SITE_CONFIG['notifyOutTaskBackURL'])
</script>
<style lang="scss">

9
fe/PC/src/api/wms-pad.js

@ -1,6 +1,7 @@
import request from '@/utils/request'
let baseURL = localStorage.getItem('base') + '/api/'
let supplierOuterURL = localStorage.getItem('supplierOuterURL')
let notifyOutTaskBackURL = localStorage.getItem('notifyOutTaskBackURL')
//分页+筛选(外界接口)
export function getPageListForOuter(url,data) {
@ -83,3 +84,11 @@ export function receiveBackStockAction(data) {
})
}
// 回库提交
export function notifyOutTaskBack4FW(data){
return request({
url: notifyOutTaskBackURL,
method: 'post',
data
})
}

3
fe/PC/src/layout/index.vue

@ -63,7 +63,8 @@ export default {
'isPadForKittingPack',
'isPadForReceiveTractorAction',
'isPadForOutStockFinish',
'isPadForReceiveBackStock'
'isPadForReceiveBackStock',
'isPadForNotifyOutTaskBack'
]
}
},

17
fe/PC/src/router/index.js

@ -257,6 +257,23 @@ export const constantRoutes = [
}
}]
},
// 【平板】回库
{
path: '/',
component: Layout,
redirect: '/isPadForNotifyOutTaskBack',
hidden: false,
children: [{
path: 'isPadForNotifyOutTaskBack',
component: () => import('@/views/padManage/isPadForNotifyOutTaskBack'),
name: 'isPadForNotifyOutTaskBack',
meta: {
keepAlive : true,
title: '回库',
icon: '系统首页',
}
}]
},
// {
// path: '/',
// component: Layout,

1
fe/PC/src/views/padManage/isPadForMenuPage.vue

@ -5,6 +5,7 @@
<div class="item"><el-button type="success"><a href="/#/isPadForReceiveTractorAction">下架指导牵引车</a></el-button></div>
<div class="item"><el-button type="primary"><a href="/#/isPadForOutStockFinish">出库任务完成</a></el-button></div>
<div class="item"><el-button type="warning"><a href="/#/isPadForReceiveBackStock">回库器具或空器具AGV搬运</a></el-button></div>
<div class="item"><el-button type="success"><a href="/#/isPadForNotifyOutTaskBack">回库</a></el-button></div>
</div>
</template>

81
fe/PC/src/views/padManage/isPadForNotifyOutTaskBack.vue

@ -0,0 +1,81 @@
<template>
<div class="padpageBox isPadForNotifyOutTaskBackPage" v-loading="loading">
<currenForm
:labelWidth="'90px'"
ref="compeletHandleForm_Ref"
:style="'width:calc(100% - 100px)'"
size="large"
:searchData="taskBackFormData"
:searchForm="taskBackForm"
:rules="taskBackRule"
:searchHandle="taskBackHandle"
@submitForm="submitForm"
></currenForm>
</div>
</template>
<script>
import detailsRules from '@/utils/rules';
import { notifyOutTaskBack4FW } from '@/api/wms-pad'
export default {
name: "isPadForNotifyOutTaskBack",
data() {
return {
loading:false,
taskBackFormData: {
endPosition:"",
returnQty:"",
},
taskBackForm: [
{ type: "input", label: "工位码", prop: 'endPosition', colSpan: 24, },
{ type:"input", label:"剩余数量", prop:"returnQty", validType:'pointNumber',rules: detailsRules.numberInput, colSpan: 24, },
],
taskBackRule: {
endPosition: [{ required: true, trigger: ["blur","change"], message: "不可为空" }],
returnQty: [{ required: true, trigger: "blur", message: "不可为空" }],
},
taskBackHandle:[
{ label: "提交", name: "commit", type:"primary" },
]
};
},
mounted(){
},
methods:{
submitForm(index,data){
//
if(index == 0){
data.validate((valid) => {
if(valid){
this.loading = true
notifyOutTaskBack4FW(this.taskBackFormData)
.then(res=>{
this.loading = false
this.taskBackFormData={
endPosition:"",
returnQty:"",
}
this.$successMsg("成功!")
})
.catch(err=>{
this.loading = false
console.log(err)
})
}
})
}
}
}
};
</script>
<style lang="scss" scoped>
@import "@/styles/padMain.scss";
.isPadForNotifyOutTaskBackPage{
padding:20px;
::v-deep .formButton{
.el-button{
width:160px !important
}
}
}
</style>
Loading…
Cancel
Save