| | |
| | | </template> |
| | | <template slot="menuForm"> |
| | | <div style="text-align: center"> |
| | | <el-button style="width: 80px" plain @click="cleanKCData">取消</el-button> |
| | | <el-button style="width: 80px" plain @click="cleanJGData">取消</el-button> |
| | | <el-button style="width: 80px" type="success" plain @click="submitJGloss">确认</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | </template> |
| | | <template slot="menuForm"> |
| | | <div style="text-align: center"> |
| | | <el-button style="width: 80px" plain @click="cleanCKData">取消</el-button> |
| | | <el-button style="width: 120px" type="success" plain @click="submitCK">出库</el-button> |
| | | </div> |
| | | </template> |
| | |
| | | }) |
| | | }, |
| | | //出库表单提交 |
| | | submitCK () { |
| | | var that = this |
| | | this.$refs.form.validate((vaild, done) => { |
| | | if (vaild) { |
| | | addck(this.formCK).then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }) |
| | | //提交完成,关闭窗口清空数据 |
| | | that.cleanCKData() |
| | | done() |
| | | }, error => { |
| | | window.console.log(error) |
| | | //提交失败,关闭窗口清空数据 |
| | | that.cleanCKData() |
| | | done() |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | // submitCK () { |
| | | // var that = this |
| | | // this.$refs.form.validate((vaild, done) => { |
| | | // if (vaild) { |
| | | // addck(this.formCK).then(() => { |
| | | // this.onLoad(this.page) |
| | | // this.$message({ |
| | | // type: "success", |
| | | // message: "操作成功!" |
| | | // }) |
| | | // //提交完成,关闭窗口清空数据 |
| | | // that.cleanCKData() |
| | | // done() |
| | | // }, error => { |
| | | // window.console.log(error) |
| | | // //提交失败,关闭窗口清空数据 |
| | | // that.cleanCKData() |
| | | // done() |
| | | // }) |
| | | // } |
| | | // }) |
| | | // }, |
| | | handleChange (value) { |
| | | if (value != null) { |
| | | this.form.saleDestination = value[0] |
| | |
| | | that.$refs.form.resetFields() |
| | | that.visibleJG = false |
| | | }, |
| | | cleanKCData () { |
| | | //出库 |
| | | cleanCKData () { |
| | | var that = this |
| | | that.formCK.saleDestination = "" |
| | | that.$refs.form.resetFields() |
| | | that.visibleKC = false |
| | | that.visibleCK = false |
| | | }, |
| | | handleSizeChange (val) { |
| | | this.page.pageSize = val |