|
@@ -42,7 +42,7 @@
|
|
|
|
|
|
<template #btn="{ item }">
|
|
|
<div>
|
|
|
- <el-button type="primary" link @click="handlePayment(10)"
|
|
|
+ <el-button type="primary" link @click="handlePayment(10, item)"
|
|
|
>付款</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -101,7 +101,7 @@
|
|
|
</template>
|
|
|
</byForm>
|
|
|
<template #footer>
|
|
|
- <el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
|
+ <el-button @click="handleClose" size="large">取 消</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="submitForm('byform')"
|
|
@@ -132,9 +132,7 @@
|
|
|
<div>aa</div>
|
|
|
</template> -->
|
|
|
<div>付款金额:{{ moneyFormat(activity.amount, 2) }}</div>
|
|
|
- <div style="margin-top: 5px">
|
|
|
- 付款时间: {{ activity.createTime }}
|
|
|
- </div>
|
|
|
+ <div style="margin-top: 5px">付款时间: {{ activity.payDate }}</div>
|
|
|
</el-timeline-item>
|
|
|
</el-timeline>
|
|
|
</div>
|
|
@@ -168,6 +166,7 @@ let activities = ref([]);
|
|
|
let modalType = ref("add");
|
|
|
let rules = ref({
|
|
|
amount: [{ required: true, message: "请输入付款金额", trigger: "blur" }],
|
|
|
+ payDate: [{ required: true, message: "请选择付款时间", trigger: "change" }],
|
|
|
});
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const arrivalStatus = ref([
|
|
@@ -386,7 +385,7 @@ const submitForm = () => {
|
|
|
message: "操作成功",
|
|
|
type: "success",
|
|
|
});
|
|
|
- dialogVisible.value = false;
|
|
|
+ handleClose();
|
|
|
setTimeout(() => {
|
|
|
submitLoading.value = false;
|
|
|
}, 5000);
|
|
@@ -398,11 +397,16 @@ const submitForm = () => {
|
|
|
);
|
|
|
});
|
|
|
};
|
|
|
-
|
|
|
const selectData = ref([]);
|
|
|
const selectRow = (data) => {
|
|
|
selectData.value = data;
|
|
|
};
|
|
|
+
|
|
|
+const handleClose = () => {
|
|
|
+ dialogVisible.value = false;
|
|
|
+ selectData.value = [];
|
|
|
+};
|
|
|
+
|
|
|
watch(selectData, (newVal, oldVal) => {
|
|
|
if (newVal.length == 0) {
|
|
|
sourceList.value.data.forEach((x) => {
|