{lineMountChange(scope.row.lineTaxAmount, 'lineTaxAmount', scope.$index)})" /> {se。结合elementui校验table表单里的值是否输入。" />

结合elementui校验table表单里的值是否输入

【结合elementui校验table表单里的值是否输入】结合elementui校验table表单里的值是否输入
文章图片

{{ settleDetail && settleDetail.settlePeriod }}

data() { return { formData: { lineInfoList: undefined }, formDataRules: { lineTicketType: [{ required: true, message: '请选择发票类型', trigger: 'change' }], lineTicketClassify: [{ required: true, message: '请选择发票种类', trigger: 'change' }], lineTicketAmount: [{ required: true, message: '请输入开票金额', trigger: 'blur' }], lineTaxAmount: [{ required: true, message: '请输入开票税额', trigger: 'blur' }, { pattern: /^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/, message: '请输入大于0的正整数', trigger: 'blur' }], invoiceDate: [{ required: true, message: '请输入开票时间', trigger: 'change' }], companyName: [{ required: true, message: '请选择开票公司名称', trigger: 'change' }] }, domains: [] }

mounted() { this.$set(this.formData, 'lineInfoList', this.lineInfoList) }, methods: { async handleAddDetails() { try { await this.$refs.form.validate() this.lineInfoList.unshift({}) } catch (err) { console.error(err) } } }

    推荐阅读