| | |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, message: "请输入", trigger: "blur" }], |
| | | master_order_number: [{ required: true, message: "请选择或创建销售总单", trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择", trigger: "change" }], |
| | | memberId: [{ required: true, message: "请选择", trigger: "change" }] |
| | | }, |
| | |
| | | // 保存 |
| | | saveClick(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | this.validateFormNumber() |
| | | if (valid) { |
| | | console.log(this.editConfig.infomation) |
| | | for (let i = 0; i < this.tableData.length; i++) { |
| | |
| | | this.clientId = item.id |
| | | this.isAddMaster = false |
| | | this.getMasterList(item.id) |
| | | this.editConfig.infomation.master_order_number = "" |
| | | this.masterId = 0 |
| | | } else if (value === "master") { |
| | | this.editConfig.infomation.master_order_number = item.number |
| | | this.masterId = item.id |
| | | } |
| | | this.refresh() |
| | | }, |
| | | selClientClick(value) { |
| | | if (value == "client") { |
| | |
| | | } |
| | | }, |
| | | selClient(row, value) { |
| | | console.log(row) |
| | | if (value == "client") { |
| | | this.editConfig.infomation.client_name = row.name |
| | | this.editConfig.infomation.client_id = row.id |
| | | this.clientId = row.id |
| | | this.isAddMaster = false |
| | | this.getMasterList(row.id) |
| | | this.editConfig.infomation.master_order_number = "" |
| | | this.masterId = 0 |
| | | } else if (value == "master") { |
| | | this.editConfig.infomation.master_order_number = row.number |
| | | this.masterId = row.id |