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