Commit 07be3c5e authored by 张耀's avatar 张耀

fix:

修复bug:10775 【研发环境】新增预警工单时,推送方式已经选择,在列表中点击手动下发工单时,需要重新选择推送方式。
parent 04c54296
...@@ -4,12 +4,7 @@ ...@@ -4,12 +4,7 @@
<GapTitle title="手动下发"></GapTitle> <GapTitle title="手动下发"></GapTitle>
</template> </template>
<div class="manual-distribution"> <div class="manual-distribution">
<Form <Form labelWidth="80px" :methodLists="ORDER_METHODS" :history="history" ref="form" :is_all="is_all" />
labelWidth="80px"
:methodLists="ORDER_METHODS"
:history="history"
:user_list_url="user_list_url"
ref="form" />
</div> </div>
<template #footer> <template #footer>
<el-button size="default" @click="Close">关闭</el-button> <el-button size="default" @click="Close">关闭</el-button>
...@@ -61,6 +56,8 @@ const history = computed(() => { ...@@ -61,6 +56,8 @@ const history = computed(() => {
*/ */
return props.row?.history || null; return props.row?.history || null;
}); });
const is_all = computed(() => props.is_all);
const emits = defineEmits(["update:visible"]); const emits = defineEmits(["update:visible"]);
const form = ref(null); const form = ref(null);
// 关闭调用 // 关闭调用
......
...@@ -231,6 +231,10 @@ let headers = reactive([ ...@@ -231,6 +231,10 @@ let headers = reactive([
fixed: "right", fixed: "right",
}, },
]); ]);
const history = ref({
methods: [],
lists: [],
});
let rows = ref([]); let rows = ref([]);
const selectable = (row, index) => { const selectable = (row, index) => {
return !row.timing_state; return !row.timing_state;
...@@ -279,6 +283,26 @@ const active_row = ref(null); ...@@ -279,6 +283,26 @@ const active_row = ref(null);
const operation = (row) => { const operation = (row) => {
active_row.value = row; active_row.value = row;
visible.value = true; visible.value = true;
const params = {
id: row.id,
};
axios.get("/v1/api/work_order/work_order_manage/details", { params }).then((res) => {
if (res.data.code == 200) {
let { data } = res.data;
if (!data) return;
active_row.value.history = {
method: data.push_obj.push_method == 3 ? ["1", "2"] : [`${data.push_obj.push_method}`] || [],
lists:
data.push_obj.user_obj?.map((e) => {
return {
user_id: e.system_account,
user_name: e.user_name,
phone: e.phone,
};
}) || [],
};
}
});
}; };
// 编辑调用 // 编辑调用
const Edit = (row) => { const Edit = (row) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment