feat: 更新一次选择研判报告
This commit is contained in:
@ -31,6 +31,7 @@
|
||||
<el-link size="small" type="primary" @click="getDataById('detail', row)">详情</el-link>
|
||||
<el-link size="small" type="danger" @click="deleteFile(row)">删除</el-link>
|
||||
<el-link size="small" type="success" @click="sign(row)">签收</el-link>
|
||||
<el-link size="small" type="warning" @click="feedback(row)">反馈</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||
@ -40,6 +41,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<AddForm ref="addForm" @getList="getList" :dict="{ D_BZ_YPFS, D_BZ_YPLX }" />
|
||||
<FeedbackDialog
|
||||
v-model="feedbackDialog"
|
||||
:currentRow="currentFeedbackRow"
|
||||
@ok="handleFeedbackSuccess"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@ -51,6 +57,7 @@ import { useRoute } from 'vue-router'
|
||||
import { getJudgmentCommandList, deleteJudgmentCommand, signCommand,feedbackCommand } from "@/api/huiShangyp/judgmentCommand.js";
|
||||
import { reactive, ref, onMounted, getCurrentInstance, watch, computed } from "vue";
|
||||
import AddForm from "./addForm.vue";
|
||||
import FeedbackDialog from "./components/FeedbackDialog.vue";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { D_BZ_YPFS, D_BZ_YPLX } = proxy.$dict("D_BZ_YPFS", "D_BZ_YPLX")
|
||||
const detailDiloag = ref();
|
||||
@ -136,6 +143,8 @@ const tabHeightFn = () => {
|
||||
const route = useRoute()
|
||||
|
||||
const addForm = ref(null)
|
||||
const feedbackDialog = ref(false)
|
||||
const currentFeedbackRow = ref({})
|
||||
const getDataById = (type, row) => {
|
||||
addForm.value.init(type, row, '01');
|
||||
}
|
||||
@ -172,6 +181,16 @@ const sign = (row) => {
|
||||
proxy.$message.info('已取消签收');
|
||||
});
|
||||
}
|
||||
|
||||
const feedback = (row) => {
|
||||
currentFeedbackRow.value = row;
|
||||
feedbackDialog.value = true;
|
||||
}
|
||||
|
||||
const handleFeedbackSuccess = () => {
|
||||
// 反馈成功后刷新列表
|
||||
getList();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user