7 changed files with 114 additions and 1 deletions
@ -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…
Reference in new issue