| | |
| | | <el-form-item :label="`实${form.needReceivableFeeCopy > 0 ? '收' : '付'}金额`" prop="actReceivableFee"> |
| | | <el-input v-model="form.actReceivableFee" placeholder="请输入" v-trim /> |
| | | </el-form-item> |
| | | <el-form-item label="入账日期" prop="actPayDate"> |
| | | <el-form-item :label="`${form.needReceivableFeeCopy > 0 ? '入' : '出'}账日期`" prop="actPayDate"> |
| | | <el-date-picker type="date" v-model="form.actPayDate" value-format="yyyy-MM-dd" placeholder="请选择" /> |
| | | </el-form-item> |
| | | <el-form-item label="收款方式" prop="payType"> |
| | | <el-form-item :label="`${form.needReceivableFeeCopy > 0 ? '收' : '付'}款方式`" prop="payType"> |
| | | <el-select v-model="form.payType" placeholder="请选择"> |
| | | <el-option label="现金" :value="1"></el-option> |
| | | <el-option label="网银转账" :value="2"></el-option> |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | getDayTime () { |
| | | const today = new Date(); |
| | | const year = today.getFullYear(); |
| | | const month = today.getMonth() + 1; |
| | | const day = today.getDate(); |
| | | return `${year}-${month < 10 ? '0' + month : month}-${day < 10 ? '0' + day : day}`; |
| | | }, |
| | | confirm () { |
| | | this.$refs.form.validate((valid) => { |
| | | if (!valid) return |
| | |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | this.form.actPayDate = this.getDayTime() |
| | | }) |
| | | this.getDates(target.companyId) |
| | | } |