1/17 选入采集工位加入部门条件

20240912_adapter
wangwei 3 months ago
parent 39d5f9abeb
commit 97bf1809b5

@ -86,6 +86,7 @@
import { filterListByWorkplace, getWorkBindBusTypes } from '@/api/basic/workPlace/sysWorkplaceDocuments' import { filterListByWorkplace, getWorkBindBusTypes } from '@/api/basic/workPlace/sysWorkplaceDocuments'
import { filterWorkOptimize } from '@/api/basic/workPlace/sysWorkplaceManage' import { filterWorkOptimize } from '@/api/basic/workPlace/sysWorkplaceManage'
import { bindCollect } from '@/api/basic/collectPoint/cargowWorkplaceManage' import { bindCollect } from '@/api/basic/collectPoint/cargowWorkplaceManage'
import { isBlank } from '@/utils/strUtil'
export default { export default {
props: { props: {
@ -100,7 +101,11 @@ export default {
collectWorks: { collectWorks: {
type: Array, type: Array,
required: true required: true
} },
deptCode: {
type: Object,
required: true
},
}, },
components: {}, components: {},
data() { data() {
@ -112,7 +117,9 @@ export default {
documentTypeCode: null, documentTypeCode: null,
workPlaceClass: 1, workPlaceClass: 1,
page: 1, page: 1,
limit: 10 limit: 10,
deptCode: null
}, },
DeptList: [], DeptList: [],
list: [], list: [],
@ -177,6 +184,9 @@ export default {
this.rowList = row this.rowList = row
}, },
getList() { getList() {
if (!isBlank(this.deptCode)){
this.query.deptCode = this.deptCode
}
filterListByWorkplace(this.query).then(res => { filterListByWorkplace(this.query).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
this.list = res.data.list this.list = res.data.list
@ -192,7 +202,8 @@ export default {
workPlaceClass: 1, workPlaceClass: 1,
key: val, key: val,
page: 1, page: 1,
limit: 10 limit: 10,
deptCode : this.deptCode
} }
filterWorkOptimize(query) filterWorkOptimize(query)
.then((response) => { .then((response) => {
@ -257,6 +268,7 @@ export default {
} }
}, },
created() { created() {
console.log("GYgY",this.deptCode)
this.getList() this.getList()
this.findWorkPlace('') this.findWorkPlace('')
this.getWorkBindBusTypes('') this.getWorkBindBusTypes('')

@ -278,6 +278,7 @@
@close="" @close=""
> >
<addCollectWorkplace <addCollectWorkplace
:deptCode="deptCode"
:workplaceId="workplaceId" :workplaceId="workplaceId"
:collectWorks="collectWorks" :collectWorks="collectWorks"
:closeDialog="closeDialog" :closeDialog="closeDialog"
@ -736,7 +737,8 @@ export default {
// workplaceType: [ // workplaceType: [
// { required: true, message: '', trigger: 'blur' } // { required: true, message: '', trigger: 'blur' }
// ] // ]
} },
deptCode: null,
} }
}, },
@ -903,6 +905,7 @@ export default {
if (res.code != 20000) { if (res.code != 20000) {
return this.$message.error('获取失败') return this.$message.error('获取失败')
} }
this.deptCode = this.rowData.deptCode
this.collectList1 = res.data.list || [] this.collectList1 = res.data.list || []
this.collectWorks = this.collectList1.map(item => item.collectAndTypeCodes) this.collectWorks = this.collectList1.map(item => item.collectAndTypeCodes)
this.chooseCollectDialogVisible = true this.chooseCollectDialogVisible = true

Loading…
Cancel
Save