|
@@ -29,7 +29,7 @@
|
|
placeholder="牧场"
|
|
placeholder="牧场"
|
|
multiple
|
|
multiple
|
|
collapse-tags
|
|
collapse-tags
|
|
- collapse-tags-tooltip
|
|
|
|
|
|
+ filterable collapse-tags-tooltip
|
|
class="filter-item"
|
|
class="filter-item"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
@@ -2762,7 +2762,8 @@ export default {
|
|
pagecount: 10,
|
|
pagecount: 10,
|
|
name: 'getIdleSpareParts',
|
|
name: 'getIdleSpareParts',
|
|
parammaps: {
|
|
parammaps: {
|
|
- partName: ''
|
|
|
|
|
|
+ partName: '',
|
|
|
|
+ pastureArr:[],
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -2959,10 +2960,10 @@ export default {
|
|
this.getdataListParm.parammaps.loginpastureId
|
|
this.getdataListParm.parammaps.loginpastureId
|
|
this.pending.getdataListParm.parammaps.empId =
|
|
this.pending.getdataListParm.parammaps.empId =
|
|
this.getdataListParm.parammaps.empId
|
|
this.getdataListParm.parammaps.empId
|
|
- this.pending.getdataListParm.parammaps.pastureId =
|
|
|
|
- Cookies.get('pastureid')
|
|
|
|
- this.pending.getdataListParm.parammaps.deptId =
|
|
|
|
- Cookies.get('departmentid')
|
|
|
|
|
|
+ this.pending.getdataListParm.parammaps.pastureId = this.getdataListParm.parammaps.pastureId || Cookies.get('pastureid')
|
|
|
|
+
|
|
|
|
+ this.pending.getdataListParm.parammaps.deptId = Cookies.get('departmentid')
|
|
|
|
+
|
|
|
|
|
|
GetDataByName(this.pending.getdataListParm).then((response) => {
|
|
GetDataByName(this.pending.getdataListParm).then((response) => {
|
|
this.pending.total = response.data.total3
|
|
this.pending.total = response.data.total3
|
|
@@ -3033,6 +3034,18 @@ export default {
|
|
},
|
|
},
|
|
changeAll() {
|
|
changeAll() {
|
|
console.log(this.radioAll)
|
|
console.log(this.radioAll)
|
|
|
|
+ // 对于多选的牧场,根据数组的名称来转换 pastureArr =》 pastureId TODO:
|
|
|
|
+ if (this.getdataListParm.parammaps.pastureArr && this.getdataListParm.parammaps.pastureArr.length > 0) {
|
|
|
|
+ const arr = this.findAllPasture.filter((item) => {
|
|
|
|
+ if (this.getdataListParm.parammaps.pastureArr.includes(item.name)) {
|
|
|
|
+ return item
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ const ids = arr.map((child) => { return child.id })
|
|
|
|
+ console.log(arr,ids,'999999')
|
|
|
|
+ this.getdataListParm.parammaps.pastureId = ids.toString();
|
|
|
|
+ }
|
|
|
|
+
|
|
if (this.radioAll === '全部') {
|
|
if (this.radioAll === '全部') {
|
|
this.getdataListParm.name = 'getpartpurchaseList'
|
|
this.getdataListParm.name = 'getpartpurchaseList'
|
|
this.getdataListParm.offset = 1
|
|
this.getdataListParm.offset = 1
|
|
@@ -3048,6 +3061,7 @@ export default {
|
|
logindeptId: Cookies.get('departmentid'),
|
|
logindeptId: Cookies.get('departmentid'),
|
|
loginpastureId: Cookies.get('pastureid'),
|
|
loginpastureId: Cookies.get('pastureid'),
|
|
pastureId:this.getdataListParm.parammaps.pastureId || Cookies.get('pastureid'),
|
|
pastureId:this.getdataListParm.parammaps.pastureId || Cookies.get('pastureid'),
|
|
|
|
+ pastureArr :this.getdataListParm.parammaps.pastureArr,
|
|
}
|
|
}
|
|
this.get_table_data()
|
|
this.get_table_data()
|
|
} else if (this.radioAll === '待处理') {
|
|
} else if (this.radioAll === '待处理') {
|
|
@@ -3055,6 +3069,7 @@ export default {
|
|
this.getdataListParm.offset = 1
|
|
this.getdataListParm.offset = 1
|
|
this.getdataListParm.parammaps = {
|
|
this.getdataListParm.parammaps = {
|
|
pastureName: this.getdataListParm.parammaps.pastureName,
|
|
pastureName: this.getdataListParm.parammaps.pastureName,
|
|
|
|
+ pastureArr :this.getdataListParm.parammaps.pastureArr,
|
|
orderNumber: this.getdataListParm.parammaps.orderNumber,
|
|
orderNumber: this.getdataListParm.parammaps.orderNumber,
|
|
stuteSH: this.getdataListParm.parammaps.stuteSH,
|
|
stuteSH: this.getdataListParm.parammaps.stuteSH,
|
|
departmentId: this.getdataListParm.parammaps.departmentId,
|
|
departmentId: this.getdataListParm.parammaps.departmentId,
|
|
@@ -3075,6 +3090,7 @@ export default {
|
|
this.getdataListParm.offset = 1
|
|
this.getdataListParm.offset = 1
|
|
this.getdataListParm.parammaps = {
|
|
this.getdataListParm.parammaps = {
|
|
pastureName: this.getdataListParm.parammaps.pastureName,
|
|
pastureName: this.getdataListParm.parammaps.pastureName,
|
|
|
|
+ pastureArr :this.getdataListParm.parammaps.pastureArr,
|
|
orderNumber: this.getdataListParm.parammaps.orderNumber,
|
|
orderNumber: this.getdataListParm.parammaps.orderNumber,
|
|
stuteSH: this.getdataListParm.parammaps.stuteSH,
|
|
stuteSH: this.getdataListParm.parammaps.stuteSH,
|
|
departmentId: this.getdataListParm.parammaps.departmentId,
|
|
departmentId: this.getdataListParm.parammaps.departmentId,
|
|
@@ -4025,7 +4041,7 @@ export default {
|
|
this.getdataListSee.parammaps.id = this.seeTemp.id
|
|
this.getdataListSee.parammaps.id = this.seeTemp.id
|
|
this.getdataListSee.parammaps.empId = ''
|
|
this.getdataListSee.parammaps.empId = ''
|
|
this.isApplyEx4 = false
|
|
this.isApplyEx4 = false
|
|
- this.getSeeList()
|
|
|
|
|
|
+ this.getSeeList(row)
|
|
// // 赛四是同id 反之不同id
|
|
// // 赛四是同id 反之不同id
|
|
// if( row.pastureId != Cookies.get('pastureid') ) {
|
|
// if( row.pastureId != Cookies.get('pastureid') ) {
|
|
// row.isPasturd = true
|
|
// row.isPasturd = true
|
|
@@ -5394,7 +5410,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- getSeeList() {
|
|
|
|
|
|
+ getSeeList(row) {
|
|
this.listLoadingSee = true
|
|
this.listLoadingSee = true
|
|
console.log(this.dialogStatus, '======')
|
|
console.log(this.dialogStatus, '======')
|
|
if (this.dialogStatus == 'create') {
|
|
if (this.dialogStatus == 'create') {
|
|
@@ -5411,7 +5427,12 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.getdataListSee.parammaps.pastureId = Cookies.get('pastureid')
|
|
|
|
|
|
+ if (row && row.pastureId) {
|
|
|
|
+ this.getdataListSee.parammaps.pastureId = row.pastureId
|
|
|
|
+ this.getdataListSee.parammaps.id = row.id || ''
|
|
|
|
+ } else {
|
|
|
|
+ this.getdataListSee.parammaps.pastureId = Cookies.get('pastureid')
|
|
|
|
+ }
|
|
GetDataByName(this.getdataListSee).then((response) => {
|
|
GetDataByName(this.getdataListSee).then((response) => {
|
|
if (response.data.list !== null) {
|
|
if (response.data.list !== null) {
|
|
console.log('查看下方table数据', response.data.list)
|
|
console.log('查看下方table数据', response.data.list)
|
|
@@ -5517,7 +5538,7 @@ export default {
|
|
this.$refs['createTemp'].clearValidate()
|
|
this.$refs['createTemp'].clearValidate()
|
|
})
|
|
})
|
|
this.getdataListSee.parammaps.id = this.createTemp.id
|
|
this.getdataListSee.parammaps.id = this.createTemp.id
|
|
- this.getSeeList()
|
|
|
|
|
|
+ this.getSeeList(row)
|
|
},
|
|
},
|
|
edit_dialog_save() {
|
|
edit_dialog_save() {
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
@@ -5697,7 +5718,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getDepartDownList() {
|
|
getDepartDownList() {
|
|
- this.getDepartParam.parammaps.pastureId = Cookies.get('pastureid')
|
|
|
|
|
|
+ this.getDepartParam.parammaps.pastureId =this.getdataListParm.parammaps.pastureId || Cookies.get('pastureid')
|
|
GetDataByName(this.getDepartParam).then((response) => {
|
|
GetDataByName(this.getDepartParam).then((response) => {
|
|
this.findAllDepart = response.data.list
|
|
this.findAllDepart = response.data.list
|
|
})
|
|
})
|
|
@@ -5990,7 +6011,7 @@ export default {
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'statue', 1)
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
this.$set(this.examineTemp, 'workflowNote', '')
|
|
}
|
|
}
|
|
- this.getSeeList()
|
|
|
|
|
|
+ this.getSeeList(row)
|
|
this.dialogStatus = 'examine3'
|
|
this.dialogStatus = 'examine3'
|
|
this.dialogFormVisible_Examine = true
|
|
this.dialogFormVisible_Examine = true
|
|
this.statueReason = false
|
|
this.statueReason = false
|
|
@@ -6706,7 +6727,7 @@ export default {
|
|
this.dialogFormVisible_modify = true
|
|
this.dialogFormVisible_modify = true
|
|
this.modifylist = []
|
|
this.modifylist = []
|
|
this.getdataListSee.parammaps.id = row.id
|
|
this.getdataListSee.parammaps.id = row.id
|
|
- this.getSeeList()
|
|
|
|
|
|
+ this.getSeeList(row)
|
|
},
|
|
},
|
|
partReject(row) {
|
|
partReject(row) {
|
|
// 驳回
|
|
// 驳回
|
|
@@ -6748,7 +6769,7 @@ export default {
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
this.getdataListSee.parammaps.id = this.modifyTemp.id
|
|
this.getdataListSee.parammaps.id = this.modifyTemp.id
|
|
- this.getSeeList()
|
|
|
|
|
|
+ this.getSeeList(row)
|
|
} else {
|
|
} else {
|
|
failproccess(response, this.$notify)
|
|
failproccess(response, this.$notify)
|
|
}
|
|
}
|