[update] 打包管理接口联调;工作组项目文件预览
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<a-row>
|
||||
<a-col :xl="8" :lg="9" :md="10" :sm="24">
|
||||
<a-form-item label="项目名称" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input placeholder="请输入项目名称" v-model="queryParam.companyName"></a-input>
|
||||
<a-input placeholder="请输入项目名称" v-model="queryParam.chargeProject"></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="8" :lg="9" :md="10" :sm="24">
|
||||
@@ -78,16 +78,36 @@
|
||||
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||
import JYearDate from '../../../components/jero/JYearDate'
|
||||
import StatusSlot from '../../../components/tools/StatusSlot'
|
||||
import { addPackProject } from '../../../api/incomePaymentsApi'
|
||||
|
||||
export default {
|
||||
name: 'PackProjectSelectProjectModule',
|
||||
components: { JYearDate, StatusSlot },
|
||||
mixins: [JeroListMixin],
|
||||
props: {
|
||||
// 打包id
|
||||
packId: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: null
|
||||
},
|
||||
visible: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
visible(value) {
|
||||
if (value) {
|
||||
this.open()
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
title: '添加打包项目',
|
||||
width: 1000,
|
||||
visible: false,
|
||||
width: 1200,
|
||||
confirmLoading: false,
|
||||
labelCol: {
|
||||
xs: { span: 24 },
|
||||
@@ -98,7 +118,7 @@ export default {
|
||||
sm: { span: 10 }
|
||||
},
|
||||
url:{
|
||||
list: ''
|
||||
list: '/pack/payPackCompanyProject/queryNotPackListAll'
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
@@ -119,8 +139,8 @@ export default {
|
||||
}, {
|
||||
title: '来款用途',
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'chargeUse',
|
||||
width: 160,
|
||||
dataIndex: 'chargeUse_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}, {
|
||||
title: '项目负责人',
|
||||
@@ -163,21 +183,45 @@ export default {
|
||||
dataIndex: 'mail',
|
||||
scopedSlots: { customRender: 'status' }
|
||||
}
|
||||
]
|
||||
],
|
||||
disableMixinCreated: true,
|
||||
filters: {
|
||||
packId: this.packId
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleOk() {
|
||||
|
||||
if (this.selectedRowKeys.length === 0) {
|
||||
this.$message.warn('请至少选择一个项目')
|
||||
return
|
||||
}
|
||||
let projectIds = this.selectedRowKeys.join(',')
|
||||
let params = {
|
||||
projectIds: projectIds,
|
||||
packId: this.packId
|
||||
}
|
||||
addPackProject(params).then(res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.close()
|
||||
this.$emit('ok')
|
||||
} else {
|
||||
this.$message.warn(res.message)
|
||||
}
|
||||
})
|
||||
},
|
||||
handleCancel() {
|
||||
this.close()
|
||||
},
|
||||
open() {
|
||||
this.visible = true
|
||||
this.filters.packId = this.packId
|
||||
console.log(this.filters)
|
||||
this.loadData()
|
||||
},
|
||||
close() {
|
||||
this.visible = false
|
||||
this.selectedRowKeys = []
|
||||
this.$emit('update:visible', false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user