退料接收优化zzy
This commit is contained in:
parent
e10c810281
commit
5751307d15
|
|
@ -72,7 +72,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="类型名称" align="center" prop="typeName" :show-overflow-tooltip="true" />
|
||||
<el-table-column type="expand" v-if="isView">
|
||||
<el-table-column type="expand" v-if="isPlural">
|
||||
<template slot-scope="scope">
|
||||
<div class="nested-table-container">
|
||||
<el-table :data="scope.row.maTypeDetails" style="width: 100%">
|
||||
|
|
@ -450,6 +450,7 @@ export default {
|
|||
// 弹出层标题
|
||||
title: '',
|
||||
isView: false, //是否为查看
|
||||
isPlural:false,
|
||||
dialogIsView: false, //弹窗是否为查看
|
||||
openIn: false,
|
||||
// 日期范围
|
||||
|
|
@ -543,7 +544,18 @@ export default {
|
|||
getList() {
|
||||
this.loading = true
|
||||
receiveView(this.queryParams).then(response => {
|
||||
this.deviceList = response.data.rows
|
||||
this.deviceList = response.data.rows;
|
||||
this.deviceList.forEach(item=>{
|
||||
if(item.manageType=='0'||item.manageType=='1'){
|
||||
item.partNum = item.num
|
||||
}else{
|
||||
item.partNum = item.partNum
|
||||
}
|
||||
if(item.maTypeDetails.length>0){
|
||||
this.isPlural=true;
|
||||
}
|
||||
})
|
||||
|
||||
this.total = response.data.total
|
||||
this.loading = false
|
||||
}).catch(() => {
|
||||
|
|
@ -863,7 +875,7 @@ export default {
|
|||
arr = this.codeSelectList.map(item => {
|
||||
return {
|
||||
parentId: this.codeQuery.parentId,
|
||||
typeId: item.modelId,
|
||||
typeId: item.typeId,
|
||||
backNum: 1,
|
||||
backStatus: type,
|
||||
manageType: 0,
|
||||
|
|
@ -875,7 +887,7 @@ export default {
|
|||
taskId: this.codeQuery.taskId,
|
||||
arr: arr,
|
||||
}
|
||||
// console.log(param)
|
||||
console.log(param)
|
||||
setCodeBack(param).then(response => {
|
||||
if (response.code == 200) {
|
||||
this.$modal.msgSuccess('操作成功')
|
||||
|
|
|
|||
Loading…
Reference in New Issue