| | |
| | | dialogWidth: "50%", |
| | | editConfig: this.editCommonConfig, |
| | | rules: { |
| | | number: [{ required: true, message: "请输入单据编号", trigger: "blur" }], |
| | | number: [{ required: true, validator: this.checkCode, trigger: "blur" }], |
| | | client_name: [{ required: true, message: "请选择客户名称", trigger: "change" }], |
| | | member_id: [{ required: true, message: "请选择", trigger: "change" }] |
| | | }, |
| | |
| | | }, |
| | | saveParams() { |
| | | let data = this.editConfig.infomation |
| | | console.log(data) |
| | | let params = { |
| | | id: this.editConfig.title === "新建" ? 0 : data.id, |
| | | client_id: this.clientId || 0, |
| | |
| | | this.unflodCollapseStr = "收起" |
| | | this.isUnflod = true |
| | | } |
| | | }, |
| | | // 订单编码单独校验 |
| | | checkCode(rule, value, callback) { |
| | | if (this.editConfig.infomation.number && this.editConfig.infomation.number.length > 0) { |
| | | callback() |
| | | } else { |
| | | callback(new Error("请输入单据编号")) |
| | | } |
| | | } |
| | | } |
| | | } |