diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue b/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue index 8357d056..ef28f518 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnExamine.vue @@ -41,18 +41,12 @@ - + { + this.deptList = response.data + }) + }, // 取消按钮 cancel() { this.open = false @@ -595,6 +597,7 @@ export default { this.timeRange = [] // this.resetForm("queryForm"); this.$refs.queryForm.resetFields() + this.$refs.mychildSon.inputValue = '' this.initSelectData() this.handleQuery() }, @@ -795,7 +798,9 @@ export default { this.getList() }) }, - handleNodeClick(ev) {}, + selectDrop(value) { + this.queryParams.typeId = value + }, initSelectData() { this.GetUnitData() this.GetProData() diff --git a/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue b/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue index 5d171155..13d70856 100644 --- a/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue +++ b/sgzb-ui/src/views/claimAndRefund/return/returnIn.vue @@ -62,19 +62,12 @@ /> - - + @@ -205,9 +198,11 @@ import { getInfo } from "@/api/login"; import { getUnitData, getProData, getAgreementInfoById, } from "@/api/claimAndRefund/receive.js" import dialogForm from "./dialogFormExame.vue"; + import { listPartTypeApi } from '@/api/repairTest/repair' + import Tree from './tree.vue' export default { // name: "ReturnExamine", - components: { dialogForm, }, + components: { dialogForm, Tree }, data() { return { type: '', @@ -248,7 +243,7 @@ endTime: '' }, companyId: '', - deptOptions: [], + deptList: [], unitList: [], proList: [], taskStatusList: [ @@ -279,6 +274,7 @@ created() { this.initSelectData() this.InitIGetInfo() + this.getTree() }, methods: { InitIGetInfo() { @@ -287,9 +283,15 @@ this.getList(); }) }, + getTree() { + listPartTypeApi().then((response) => { + console.log('🚀 ~ listPartTypeApi ~ response.data:', response.data); + this.deptList = response.data + }) + }, //机具类型下拉点击 - handleNodeClick(ev) { - + selectDrop(value) { + this.queryParams.typeId = value }, //获取渲染下拉数据 initSelectData() { @@ -367,8 +369,8 @@ resetQuery() { this.dateRange = []; // this.resetForm("queryForm"); - this.$refs.queryForm.resetFields() + this.$refs.mychildSon.inputValue = '' this.initSelectData() this.handleQuery(); },