diff --git a/src/api/task_scheduling.ts b/src/api/task_scheduling.ts index cfe340d..f453a3f 100644 --- a/src/api/task_scheduling.ts +++ b/src/api/task_scheduling.ts @@ -23,4 +23,9 @@ export function apiTaskSchedulingDelete(params: any) { // 任务公司排期详情 export function apiTaskSchedulingDetail(params: any) { return request.get({ url: '/task_scheduling.task_scheduling/detail', params }) +} + +// 任务公司排期详情 +export function apiTaskSchedulingEditMoney(params: any) { + return request.post({ url: '/task_scheduling.task_scheduling/editMoney', params }) } \ No newline at end of file diff --git a/src/views/task_scheduling/index.vue b/src/views/task_scheduling/index.vue index 66aac29..e6c2ba9 100644 --- a/src/views/task_scheduling/index.vue +++ b/src/views/task_scheduling/index.vue @@ -63,6 +63,11 @@ prop="company_name" show-overflow-tooltip /> + - + @@ -126,11 +161,15 @@ import feedback from "@/utils/feedback"; import EditPopup from "./edit.vue"; import { dictDataLists } from "@/api/setting/dict"; import { getRoutePath } from "@/router"; +import money from "./money.vue"; const datalist = ref([]); const editRef = shallowRef>(); +const moneyRef = shallowRef>(); // 是否显示编辑框 const showEdit = ref(false); +// 是否显示金额编辑框 +const moneyShow = ref(false); // 查询条件 const queryParams = reactive({ @@ -164,6 +203,15 @@ const handleAdd = async () => { await nextTick(); editRef.value?.open("add"); }; + +// 设置金额 +const moneyAdd = async (obj: any) => { + moneyShow.value = true; + await nextTick(); + moneyRef.value?.open(obj.money ? "edit" : "add"); + moneyRef.value?.setFormData(obj); +}; + const changeStatus = (data: any) => { apiTaskSchedulingEdit({ id: data.id, diff --git a/src/views/task_scheduling/money.vue b/src/views/task_scheduling/money.vue new file mode 100644 index 0000000..b75a7cb --- /dev/null +++ b/src/views/task_scheduling/money.vue @@ -0,0 +1,94 @@ + + + + \ No newline at end of file diff --git a/src/views/task_template/edit.vue b/src/views/task_template/edit.vue index 4159889..a64387a 100644 --- a/src/views/task_template/edit.vue +++ b/src/views/task_template/edit.vue @@ -1,199 +1,251 @@ diff --git a/src/views/task_template/index.vue b/src/views/task_template/index.vue index 59e2151..75f2176 100644 --- a/src/views/task_template/index.vue +++ b/src/views/task_template/index.vue @@ -1,186 +1,248 @@