资料目录管理;工作组成员维护

This commit is contained in:
zhaoxiao
2021-09-02 17:57:11 +08:00
parent d8b540041b
commit 365dc7f6bb
6 changed files with 255 additions and 163 deletions
@@ -61,7 +61,8 @@
<script>
import pick from 'lodash.pick'
import JUpload from '../../../components/jero/JUpload'
import JUpload from '@/components/jero/JUpload'
import { postAction } from '@/api/manage'
export default {
name: 'WorkingGroupMemberSetChargeNotice',
@@ -92,7 +93,10 @@ export default {
},
selectedRowKeys: null, // 选中项目的id
chargeNoticeList: null, // 收费通知列表
selectedChargeNotice: null // 选中的收费通知类型
selectedChargeNotice: null, // 选中的收费通知类型
url: {
setCharge: '/project/payWorkingGroupSubitem/setCharge'
}
}
},
methods: {
@@ -100,13 +104,33 @@ export default {
this.visible = true
},
handleOk() {
// 触发表单验证
this.form.validateFields((err, values) => {
if (!err) {
const formData = Object.assign(this.model, values)
console.log('表单提交数据', formData)
formData.ids = this.selectedRowKeys.join(',')
postAction(this.url.setCharge, formData).then(res => {
if (res.success) {
this.$message.success(res.message)
this.$emit('ok')
this.close()
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.confirmLoading = false
})
}
})
},
handleCancel() {
this.close()
},
close() {
this.visible = false
this.model = {}
},
/**
* 收费通知号变化, 回显本年应收款和文件