|
|
|
@ -248,6 +248,16 @@ |
|
|
|
|
<el-form-item label="结算金额"> |
|
|
|
|
{{ settleAmount }} |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="结算日期"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="form.settlementDate" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="选择日期时间" |
|
|
|
|
format="YYYY-MM-DD" |
|
|
|
|
value-format="YYYY-MM-DD" |
|
|
|
|
:clearable="false" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="结算备注" prop="remark"> |
|
|
|
|
<Editor v-model:modelValue="form.remark" /> |
|
|
|
|
</el-form-item> |
|
|
|
@ -270,7 +280,7 @@ import { getPlaceList } from '@/api/school/place' |
|
|
|
|
import { getClassTypeList } from '@/api/school/class' |
|
|
|
|
import * as SettleApi from '@/api/clue/settle' |
|
|
|
|
|
|
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
|
import { dateFormatter, formatDate } from '@/utils/formatTime' |
|
|
|
|
import { removeNullField } from '@/utils/index' |
|
|
|
|
|
|
|
|
|
const message = useMessage() // 消息弹窗 |
|
|
|
@ -395,6 +405,7 @@ function batchSettle() { |
|
|
|
|
showDailog.value = true |
|
|
|
|
form.value = { |
|
|
|
|
settlementIds: selectList.value.map((it) => it.settlementId), |
|
|
|
|
settlementDate: formatDate(new Date()), |
|
|
|
|
reamrk: undefined |
|
|
|
|
} |
|
|
|
|
settleAmount.value = selectList.value.reduce((pre, cur) => pre + cur.settlementMoney, 0) |
|
|
|
|