fix: 退料接收管理-退料审核-工机具类型下拉框
This commit is contained in:
parent
57291ad37e
commit
34aafe3095
|
|
@ -41,18 +41,12 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="工机具类型" prop="typeId">
|
<el-form-item label="工机具类型" prop="typeId">
|
||||||
<el-cascader
|
<Tree
|
||||||
v-model="queryParams.typeId"
|
ref="mychildSon"
|
||||||
:options="deptOptions"
|
:width="240"
|
||||||
:props="{
|
:dataList="deptList"
|
||||||
expandTrigger: 'hover',
|
@changeId="selectDrop"
|
||||||
label: 'label',
|
></Tree>
|
||||||
value: 'id',
|
|
||||||
checkStrictly: true,
|
|
||||||
}"
|
|
||||||
@change="handleNodeClick"
|
|
||||||
aria-placeholder="请选择极具类型"
|
|
||||||
></el-cascader>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="协议号" prop="agreementCode">
|
<el-form-item label="协议号" prop="agreementCode">
|
||||||
<el-input
|
<el-input
|
||||||
|
|
@ -434,12 +428,14 @@ import {
|
||||||
import { getInfo, h } from '@/api/login'
|
import { getInfo, h } from '@/api/login'
|
||||||
import { getUnitData, getProData, getAgreementInfoById } from '@/api/claimAndRefund/receive.js'
|
import { getUnitData, getProData, getAgreementInfoById } from '@/api/claimAndRefund/receive.js'
|
||||||
import dialogForm from './dialogFormExame.vue'
|
import dialogForm from './dialogFormExame.vue'
|
||||||
|
import { listPartTypeApi } from '@/api/repairTest/repair'
|
||||||
|
import Tree from './tree.vue'
|
||||||
// 10:42开始日期startTime,结束日期endTime 机具类型typeId
|
// 10:42开始日期startTime,结束日期endTime 机具类型typeId
|
||||||
// http://localhost/claimAndRefund/return/returnApply
|
// http://localhost/claimAndRefund/return/returnApply
|
||||||
export default {
|
export default {
|
||||||
// name: "ReturnExamine",
|
// name: "ReturnExamine",
|
||||||
dicts: ['sys_normal_disable'],
|
dicts: ['sys_normal_disable'],
|
||||||
components: { dialogForm },
|
components: { dialogForm, Tree },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
checkResultOne: false,
|
checkResultOne: false,
|
||||||
|
|
@ -511,7 +507,7 @@ export default {
|
||||||
openTextTwo: '',
|
openTextTwo: '',
|
||||||
openTextThree: '',
|
openTextThree: '',
|
||||||
companyId: '',
|
companyId: '',
|
||||||
deptOptions: [],
|
deptList: [],
|
||||||
unitList: [],
|
unitList: [],
|
||||||
proList: [],
|
proList: [],
|
||||||
taskStatusList: [
|
taskStatusList: [
|
||||||
|
|
@ -546,6 +542,7 @@ export default {
|
||||||
this.initSelectData()
|
this.initSelectData()
|
||||||
this.InitIGetInfo()
|
this.InitIGetInfo()
|
||||||
this.getList()
|
this.getList()
|
||||||
|
this.getTree()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// claimAndRefund/return/returnApplyAdd
|
// claimAndRefund/return/returnApplyAdd
|
||||||
|
|
@ -568,6 +565,11 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
},
|
},
|
||||||
|
getTree() {
|
||||||
|
listPartTypeApi().then((response) => {
|
||||||
|
this.deptList = response.data
|
||||||
|
})
|
||||||
|
},
|
||||||
// 取消按钮
|
// 取消按钮
|
||||||
cancel() {
|
cancel() {
|
||||||
this.open = false
|
this.open = false
|
||||||
|
|
@ -595,6 +597,7 @@ export default {
|
||||||
this.timeRange = []
|
this.timeRange = []
|
||||||
// this.resetForm("queryForm");
|
// this.resetForm("queryForm");
|
||||||
this.$refs.queryForm.resetFields()
|
this.$refs.queryForm.resetFields()
|
||||||
|
this.$refs.mychildSon.inputValue = ''
|
||||||
this.initSelectData()
|
this.initSelectData()
|
||||||
this.handleQuery()
|
this.handleQuery()
|
||||||
},
|
},
|
||||||
|
|
@ -795,7 +798,9 @@ export default {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleNodeClick(ev) {},
|
selectDrop(value) {
|
||||||
|
this.queryParams.typeId = value
|
||||||
|
},
|
||||||
initSelectData() {
|
initSelectData() {
|
||||||
this.GetUnitData()
|
this.GetUnitData()
|
||||||
this.GetProData()
|
this.GetProData()
|
||||||
|
|
|
||||||
|
|
@ -62,19 +62,12 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="工机具类型" prop="typeId">
|
<el-form-item label="工机具类型" prop="typeId">
|
||||||
<el-cascader
|
<Tree
|
||||||
v-model="queryParams.typeId"
|
ref="mychildSon"
|
||||||
:options="deptOptions"
|
:width="240"
|
||||||
:props="{
|
:dataList="deptList"
|
||||||
expandTrigger: 'hover',
|
@changeId="selectDrop"
|
||||||
label: 'label',
|
></Tree>
|
||||||
value: 'id',
|
|
||||||
checkStrictly: true,
|
|
||||||
}"
|
|
||||||
@change="handleNodeClick"
|
|
||||||
aria-placeholder="请选择极具类型"
|
|
||||||
>
|
|
||||||
</el-cascader>
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item label="退料状态" prop="taskStatus">
|
<el-form-item label="退料状态" prop="taskStatus">
|
||||||
|
|
@ -205,9 +198,11 @@
|
||||||
import { getInfo } from "@/api/login";
|
import { getInfo } from "@/api/login";
|
||||||
import { getUnitData, getProData, getAgreementInfoById, } from "@/api/claimAndRefund/receive.js"
|
import { getUnitData, getProData, getAgreementInfoById, } from "@/api/claimAndRefund/receive.js"
|
||||||
import dialogForm from "./dialogFormExame.vue";
|
import dialogForm from "./dialogFormExame.vue";
|
||||||
|
import { listPartTypeApi } from '@/api/repairTest/repair'
|
||||||
|
import Tree from './tree.vue'
|
||||||
export default {
|
export default {
|
||||||
// name: "ReturnExamine",
|
// name: "ReturnExamine",
|
||||||
components: { dialogForm, },
|
components: { dialogForm, Tree },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
type: '',
|
type: '',
|
||||||
|
|
@ -248,7 +243,7 @@
|
||||||
endTime: ''
|
endTime: ''
|
||||||
},
|
},
|
||||||
companyId: '',
|
companyId: '',
|
||||||
deptOptions: [],
|
deptList: [],
|
||||||
unitList: [],
|
unitList: [],
|
||||||
proList: [],
|
proList: [],
|
||||||
taskStatusList: [
|
taskStatusList: [
|
||||||
|
|
@ -279,6 +274,7 @@
|
||||||
created() {
|
created() {
|
||||||
this.initSelectData()
|
this.initSelectData()
|
||||||
this.InitIGetInfo()
|
this.InitIGetInfo()
|
||||||
|
this.getTree()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
InitIGetInfo() {
|
InitIGetInfo() {
|
||||||
|
|
@ -287,9 +283,15 @@
|
||||||
this.getList();
|
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() {
|
initSelectData() {
|
||||||
|
|
@ -367,8 +369,8 @@
|
||||||
resetQuery() {
|
resetQuery() {
|
||||||
this.dateRange = [];
|
this.dateRange = [];
|
||||||
// this.resetForm("queryForm");
|
// this.resetForm("queryForm");
|
||||||
|
|
||||||
this.$refs.queryForm.resetFields()
|
this.$refs.queryForm.resetFields()
|
||||||
|
this.$refs.mychildSon.inputValue = ''
|
||||||
this.initSelectData()
|
this.initSelectData()
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue