Commit 37bc7bab authored by wdy's avatar wdy

再利用

parent 13e3bd34
<template>
<div class="app-container">
<!-- 表单区域-->
<el-form ref="form" :model="form" :rules="rule" label-width="80px">
<!-- 标题-->
<div class="info"><span class="title">再利用</span></div>
<el-row :gutter="40">
<el-col :span="12" style="padding-left: 10%;">
......@@ -91,6 +93,7 @@ export default {
created() {
},
methods: {
// 回车跳转下一个输入框
focusNextInput(form) {
this.$nextTick(() => {
this.$refs[form].$refs.input.focus()
......@@ -107,7 +110,7 @@ export default {
that.$refs['input' + index].focus()
})
},
// 提价时要调的接口
// 提价
submitForm() {
this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确定',
......@@ -116,6 +119,7 @@ export default {
}).then(res => {
this.$refs.form.validate((valid) => {
if (valid) {
// 提价时要调的接口
recycle(this.form).then(res => {
if (res.code === 200) {
this.$message.success('操作成功')
......@@ -128,6 +132,7 @@ export default {
})
})
},
// 重置表单
resetFrom() {
this.form = {
pn: '',
......@@ -141,6 +146,7 @@ export default {
ptype: '',
pstatus: 0
}
// 重置表单校验
this.$refs.form.clearValidate()
}
}
......
......@@ -169,6 +169,7 @@ export default {
},
total: 0,
loading: false,
// 查询参数
queryParams: {
page: 1,
rows: 10,
......@@ -176,7 +177,7 @@ export default {
dname: '',
dno: ''
},
statusOptions: {},
// 表格绑定数据
basicinfoMationList: []
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment