前端问题修改(退料申请机具类型选择筛选)
This commit is contained in:
parent
3edb63e8b8
commit
e95c7585c0
|
|
@ -707,25 +707,3 @@ export default {
|
|||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
/* input number类型取消增减箭头*/
|
||||
::v-deep input::-webkit-outer-spin-button,
|
||||
::v-deep input::-webkit-inner-spin-button {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
::v-deep .el-input {
|
||||
input[type='number'] {
|
||||
padding-right: 0px;
|
||||
-moz-appearance: textfield;
|
||||
-webkit-appearance: textfield;
|
||||
// 解决el-input设置类型为number时,中文输入法光标上移问题
|
||||
line-height: 1px !important;
|
||||
}
|
||||
input[type='number']::-webkit-inner-spin-button,
|
||||
input[type='number']::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -551,15 +551,6 @@
|
|||
|
||||
<script>
|
||||
import { listPartTypeApi } from '@/api/repairTest/repair'
|
||||
import {
|
||||
listType,
|
||||
getType,
|
||||
delType,
|
||||
addType,
|
||||
updateType,
|
||||
refreshCache,
|
||||
getUseTypeTree,
|
||||
} from '@/api/system/dict/type'
|
||||
import {
|
||||
ApiGetBackApplyList,
|
||||
getViewByApply,
|
||||
|
|
@ -692,15 +683,14 @@
|
|||
methods: {
|
||||
getTree() {
|
||||
listPartTypeApi().then((response) => {
|
||||
console.log('🚀 ~ listPartTypeApi ~ response:', response);
|
||||
// console.log('🚀 ~ listPartTypeApi ~ response:', response);
|
||||
this.deptList = response.data
|
||||
})
|
||||
},
|
||||
selectDrop(value) {
|
||||
this.queryParams.typeId = value
|
||||
},
|
||||
// claimAndRefund/return/returnApplyAdd
|
||||
// claimAndRefund/return/returnApplyAdd
|
||||
|
||||
/** 查询字典类型列表 startTime,结束日期endTime */
|
||||
async getList() {
|
||||
this.loading = true
|
||||
|
|
@ -907,19 +897,11 @@
|
|||
this.loadingTotal = res.data.total
|
||||
})
|
||||
},
|
||||
/** 刷新缓存按钮操作 */
|
||||
handleRefreshCache() {
|
||||
refreshCache().then(() => {
|
||||
this.$modal.msgSuccess('刷新成功')
|
||||
this.$store.dispatch('dict/cleanDict')
|
||||
})
|
||||
},
|
||||
InitIGetInfo() {
|
||||
getInfo().then((res) => {
|
||||
this.companyId = res.user.companyId
|
||||
this.getList()
|
||||
})
|
||||
// this.initGetUseTypeTree()
|
||||
},
|
||||
handleNodeClick(ev) {
|
||||
console.log(ev)
|
||||
|
|
@ -928,7 +910,6 @@
|
|||
this.GetUnitData()
|
||||
this.GetProData()
|
||||
},
|
||||
|
||||
// 获取 来往单位 列表数据
|
||||
async GetUnitData() {
|
||||
const params = {}
|
||||
|
|
@ -943,7 +924,7 @@
|
|||
const res = await getProData(params)
|
||||
this.proList = res.data
|
||||
},
|
||||
// 获取 工程名称 列表数据
|
||||
// 获取 协议ID 列表数据
|
||||
async InitGetAgreementInfoById() {
|
||||
const { unitId, proId } = this.queryParams
|
||||
if (!unitId || !proId) {
|
||||
|
|
@ -956,7 +937,6 @@
|
|||
const res = await getAgreementInfoById(params)
|
||||
// this.proList = res.data
|
||||
this.queryParams.agreementCode = res.data.agreementCode
|
||||
// this.initGetUseTypeTree(res.data.agreementId)
|
||||
},
|
||||
getAgreementByUnitAndProId() {
|
||||
this.InitGetAgreementInfoById()
|
||||
|
|
@ -974,14 +954,7 @@
|
|||
this.dialogQueryParams.keyWord = ''
|
||||
this.getDialogList()
|
||||
},
|
||||
async initGetUseTypeTree(id) {
|
||||
let params = {
|
||||
agreementId: id,
|
||||
}
|
||||
const res = await getUseTypeTree(params)
|
||||
console.log('res-getUseTypeTree', res)
|
||||
this.deptOptions = res.data
|
||||
},
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -105,7 +105,6 @@
|
|||
v-hasPermi="['system:role:export']"
|
||||
>导出</el-button>-->
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
|
|
@ -725,8 +724,8 @@ export default {
|
|||
// console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
|
||||
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
|
||||
console.log("nodes", nodes)
|
||||
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||
nodes[0].data.useNum = res.data
|
||||
// const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||
nodes[0].data.useNum = nodes[0].data.num
|
||||
if (nodes[0].level != 4) {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,18 +130,13 @@
|
|||
v-hasPermi="['system:role:export']"
|
||||
>导出</el-button> -->
|
||||
</el-col>
|
||||
<right-toolbar
|
||||
:showSearch.sync="showSearch"
|
||||
@queryTable="getList"
|
||||
></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="leaseApplyDetails"
|
||||
@selection-change="handleSelectionChange"
|
||||
>
|
||||
<el-table-column type="selection" min-width="55" align="center" />
|
||||
<el-table-column type="selection" min-width="55" align="center" :selectable="selectable"/>
|
||||
<el-table-column label="序号" type="index" min-width="120" />
|
||||
<el-table-column
|
||||
label="类型名称"
|
||||
|
|
@ -412,7 +407,7 @@ export default {
|
|||
mounted() {
|
||||
this.GetUnitData()
|
||||
this.GetProData()
|
||||
this.GetDeviceTypeTreeFn()
|
||||
// this.GetDeviceTypeTreeFn()
|
||||
// this.getList();
|
||||
// console.log('this.$route.query.isEdit', this.$route.query.isEdit)
|
||||
this.isEdit = this.$route.query.isEdit;
|
||||
|
|
@ -609,6 +604,15 @@ export default {
|
|||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
//是否可用勾选框
|
||||
selectable(row) {
|
||||
console.log(row)
|
||||
if (row.num != 0) {
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.queryParams.leaseApplyDetails = selection
|
||||
|
|
@ -771,8 +775,8 @@ export default {
|
|||
console.log("vall1211221122", this.$refs.deviceTypeCascader.getCheckedNodes().length, this.$refs.deviceTypeCascader.getCheckedNodes(), [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)])
|
||||
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? this.$refs.deviceTypeCascader.getCheckedNodes() : [this.$refs.deviceTypeCascader.panel.getNodeByValue(val)]
|
||||
console.log("nodes", nodes)
|
||||
const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||
nodes[0].data.useNum = res.data
|
||||
// const res = await getUseNumByTypeId({ typeId: nodes[0].data.typeId })
|
||||
nodes[0].data.useNum = nodes[0].data.num
|
||||
if (nodes[0].level != 4) {
|
||||
return
|
||||
}
|
||||
|
|
@ -805,6 +809,7 @@ export default {
|
|||
template.preNum = node.data.num
|
||||
template.typeName = node.pathLabels[2]
|
||||
template.typeCode = node.pathLabels[3]
|
||||
template.num = node.data.num
|
||||
template.useNum = node.data.useNum
|
||||
return template
|
||||
}
|
||||
|
|
|
|||
|
|
@ -945,7 +945,7 @@
|
|||
const res = await getAgreementInfoById(params)
|
||||
// this.proList = res.data
|
||||
this.queryParams.agreementCode = res.data.agreementCode
|
||||
this.initGetUseTypeTree(res.data.agreementId)
|
||||
// this.initGetUseTypeTree(res.data.agreementId)
|
||||
},
|
||||
getAgreementByUnitAndProId() {
|
||||
this.InitGetAgreementInfoById()
|
||||
|
|
|
|||
Loading…
Reference in New Issue