| | |
| | | rules: { |
| | | number: [{ required: true, validator: this.checkCode, trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | member_id: [{ required: true, message: "请选择", trigger: "change" }] |
| | | member_id: [{ required: true, message: "请选择", trigger: "change" }], |
| | | contractName: [{ required: true, message: "请输入合同名称", trigger: "blur" }] |
| | | }, |
| | | memberOptions: [], |
| | | statusOptions: [], // 合同状态 |
| | |
| | | created() { |
| | | this.$store.dispatch("geClient") |
| | | // this.$store.dispatch("geQuotation") |
| | | if (this.editConfig.title !== "新建") { |
| | | this.isAddQuatation = false |
| | | } |
| | | this.getCommonData() |
| | | this.formInfo() |
| | | }, |
| | |
| | | // 保存 |
| | | saveClick(formName) { |
| | | this.$refs[formName].validate((valid) => { |
| | | this.validateFormNumber() |
| | | if (valid) { |
| | | console.log(this.editConfig.infomation) |
| | | const params = this.saveParams() |
| | |
| | | } else if (value === "quotation") { |
| | | this.editSelCommonConfig.title = "报价单" |
| | | this.editSelCommonConfig.editVisible = true |
| | | this.editSelCommonConfig.clientId = this.clientId |
| | | this.editSelCommonConfig.tableInfomation = [...this.quotationList] |
| | | } |
| | | }, |