前端bug修改
This commit is contained in:
parent
4c61c18d63
commit
f55234d3ad
|
|
@ -83,7 +83,6 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
v-if="isEdit=='true'"
|
v-if="isEdit=='true'"
|
||||||
:disabled="multiple"
|
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
>保存</el-button>
|
>保存</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -100,7 +99,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="leaseApplyDetails" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="leaseApplyDetails" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<el-table-column label="序号" type="index" width="80" />
|
<el-table-column label="序号" type="index" width="80" />
|
||||||
<el-table-column label="类型名称" prop="typeCn" :show-overflow-tooltip="true" />
|
<el-table-column label="类型名称" prop="typeCn" :show-overflow-tooltip="true" />
|
||||||
<el-table-column label="规格型号" prop="guigeCn" :show-overflow-tooltip="true" />
|
<el-table-column label="规格型号" prop="guigeCn" :show-overflow-tooltip="true" />
|
||||||
|
|
@ -520,7 +519,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 多选框选中数据
|
// 多选框选中数据
|
||||||
handleSelectionChange(selection) {
|
handleSelectionChange(selection) {
|
||||||
this.queryParams.leaseApplyDetails = selection
|
// this.queryParams.leaseApplyDetails = selection
|
||||||
this.single = selection.length != 1
|
this.single = selection.length != 1
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
|
|
@ -544,6 +543,7 @@ export default {
|
||||||
if(!valid){
|
if(!valid){
|
||||||
return false
|
return false
|
||||||
}else {
|
}else {
|
||||||
|
this.queryParams.leaseApplyDetails = this.leaseApplyDetails
|
||||||
if( this.queryParams.leaseApplyDetails.length == 0 ){
|
if( this.queryParams.leaseApplyDetails.length == 0 ){
|
||||||
this.$message.error('请添加数据');
|
this.$message.error('请添加数据');
|
||||||
return
|
return
|
||||||
|
|
@ -559,10 +559,10 @@ export default {
|
||||||
let res;
|
let res;
|
||||||
|
|
||||||
if(this.taskId){
|
if(this.taskId){
|
||||||
// this.leaseApplyInfoList.forEach(v => {
|
this.leaseApplyInfoList.forEach(v => {
|
||||||
// v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
||||||
// this.$set(v,'leaseApplyDetails',this.queryParams.leaseApplyDetails)
|
this.$set(v,'leaseApplyDetails',this.queryParams.leaseApplyDetails)
|
||||||
// })
|
})
|
||||||
|
|
||||||
const params = {
|
const params = {
|
||||||
...this.queryParams,taskId:this.taskId,
|
...this.queryParams,taskId:this.taskId,
|
||||||
|
|
@ -617,18 +617,20 @@ export default {
|
||||||
console.log(val)
|
console.log(val)
|
||||||
let nodes = null;
|
let nodes = null;
|
||||||
nodes = this.$refs.deviceTypeCascader.getCheckedNodes().length > 0 ? 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)]
|
||||||
|
|
||||||
if(nodes[0].level != 4){
|
if(nodes[0].level != 4){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// console.log(this.leaseApplyDetails)
|
||||||
|
// console.log(nodes[0].data.id)
|
||||||
|
for(let i = 0; i < this.leaseApplyDetails.length; i++) {
|
||||||
|
if (this.leaseApplyDetails[i].typeId == nodes[0].data.id) {
|
||||||
|
this.leaseApplyDetails.splice(i,1)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
this.leaseApplyDetails.push(
|
this.leaseApplyDetails.push(
|
||||||
this.handelTableItemData(nodes[0])
|
this.handelTableItemData(nodes[0])
|
||||||
)
|
)
|
||||||
|
|
||||||
// this.$refs.cascader.$refs.panel.clearCheckedNodes()
|
|
||||||
// // 设置为空可以让节点不高亮显示
|
|
||||||
// this.$refs.cascader.$refs.panel.activePath = []
|
|
||||||
this.deviceType = {}
|
this.deviceType = {}
|
||||||
},
|
},
|
||||||
//// 将数据处理成 表格中需要的数据
|
//// 将数据处理成 表格中需要的数据
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@
|
||||||
placeholder="请输入退料人电话"
|
placeholder="请输入退料人电话"
|
||||||
clearable
|
clearable
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
@keyup.enter.native="handleQuery"
|
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="备注" prop="roleName">
|
<el-form-item label="备注" prop="roleName">
|
||||||
|
|
@ -490,9 +489,10 @@ export default {
|
||||||
async GetViewByApply(Id) {
|
async GetViewByApply(Id) {
|
||||||
const res = await materialReturnNoteByApply({ id:Id })
|
const res = await materialReturnNoteByApply({ id:Id })
|
||||||
const data = res.data[0]
|
const data = res.data[0]
|
||||||
|
// console.log(data)
|
||||||
this.queryParams.unitId = data.unitId
|
this.queryParams.unitId = data.unitId
|
||||||
this.queryParams.proId = data.proId
|
this.queryParams.proId = Number(data.proId)
|
||||||
this.queryParams.phone = data.phone
|
this.$set(this.queryParams,'phone',data.phone)
|
||||||
this.queryParams.backPerson = data.backPerson
|
this.queryParams.backPerson = data.backPerson
|
||||||
this.queryParams.backTime = data.backTime
|
this.queryParams.backTime = data.backTime
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -349,12 +349,14 @@ export default {
|
||||||
equipmentTypeTree().then(response => {
|
equipmentTypeTree().then(response => {
|
||||||
this.equipmentTypeList = response.data;
|
this.equipmentTypeList = response.data;
|
||||||
this.equipmentTypeList.forEach((item,index)=>{
|
this.equipmentTypeList.forEach((item,index)=>{
|
||||||
if(item.children.length>0){
|
if(item.children&&item.children.length>0){
|
||||||
item.children.forEach((item2,index2)=>{
|
item.children.forEach((item2,index2)=>{
|
||||||
if(item2.children.length>0){
|
if(item2.children&&item2.children.length>0){
|
||||||
item2.children.forEach(item3=>{
|
item2.children.forEach(item3=>{
|
||||||
if(item3.children.length>0){
|
// console.log(item3,'item3')
|
||||||
|
if(item3.children&&item3.children.length>0){
|
||||||
item3.children.forEach(item4=>{
|
item3.children.forEach(item4=>{
|
||||||
|
// console.log(item4,'item4')
|
||||||
item4.machineTypeName = item3.typeName
|
item4.machineTypeName = item3.typeName
|
||||||
item4.specificationType = item4.typeName
|
item4.specificationType = item4.typeName
|
||||||
// item4.purchasePrice = 1
|
// item4.purchasePrice = 1
|
||||||
|
|
@ -363,7 +365,7 @@ export default {
|
||||||
this.$set(item4, 'purchaseNum', 1);
|
this.$set(item4, 'purchaseNum', 1);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue