| | |
| | | salePrice: "", |
| | | createUser: "", |
| | | saleBrand: "", |
| | | |
| | | |
| | | processName:"", |
| | | weight:"", |
| | | type:"1", |
| | |
| | | }) |
| | | column.dicData = data |
| | | }) |
| | | |
| | | |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | mounted () { |
| | | }, |
| | | created () { |
| | |
| | | type: "warning", |
| | | message: "销售数量和销售价格不能为负数!" |
| | | }) |
| | | done() |
| | | done() |
| | | }else{ |
| | | insert(this.form).then(() => { |
| | | this.onLoad(this.page) |
| | |
| | | this.$refs.form.validate((vaild, done) => { |
| | | if (vaild) { |
| | | this.formJG['farmId'] = this.$farmId |
| | | submitProcessJG(this.formJG).then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }) |
| | | //提交完成,关闭窗口清空数据 |
| | | that.cleanJGData() |
| | | done() |
| | | }, error => { |
| | | window.console.log(error) |
| | | //提交失败,关闭窗口清空数据 |
| | | that.cleanJGData() |
| | | done() |
| | | if(this.formJG.saleNum <0 || this.formJG.processNum<0){ |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "加工数量和产品数量不能为负数!" |
| | | }) |
| | | done() |
| | | }else { |
| | | submitProcessJG(this.formJG).then(() => { |
| | | this.onLoad(this.page) |
| | | this.$message({ |
| | | type: "success", |
| | | message: "操作成功!" |
| | | }) |
| | | //提交完成,关闭窗口清空数据 |
| | | that.cleanJGData() |
| | | done() |
| | | }, error => { |
| | | window.console.log(error) |
| | | //提交失败,关闭窗口清空数据 |
| | | that.cleanJGData() |
| | | done() |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | |
| | | |
| | | this.form.processName = data.processName |
| | | this.visible = true |
| | | } else if (index == 1) { //库存损耗 |
| | | } else if (index == 1) { //库存损耗 |
| | | this.formKC.name = this.userInfo.nick_name |
| | | this.formKC.createUser = this.userInfo.user_id |
| | | this.formKC.weight = data.productInventoryNum |