|
@@ -65,7 +65,11 @@
|
|
|
:maxHeight="300"
|
|
|
:rowNumber="true"
|
|
|
:rowSelection="true"
|
|
|
- :actionButton="true"/>
|
|
|
+ :actionButton="true">
|
|
|
+ <template v-slot:department="props">
|
|
|
+ <j-select-depart @change="departChange(props)" v-model="props.text" :trigger-change="true"></j-select-depart>
|
|
|
+ </template>
|
|
|
+ </j-editable-table>
|
|
|
</a-tab-pane>
|
|
|
|
|
|
</a-tabs>
|
|
@@ -82,12 +86,14 @@
|
|
|
import { validateDuplicateValue } from '@/utils/util'
|
|
|
import JDate from '@/components/jeecg/JDate'
|
|
|
import JYearPicker from '@/components/date/YearSelect'
|
|
|
+ import JSelectDepart from '@/components/jeecgbiz/JSelectDepart'
|
|
|
export default {
|
|
|
name: 'BudgetCostModal',
|
|
|
mixins: [JEditableTableMixin],
|
|
|
components: {
|
|
|
JDate,
|
|
|
- JYearPicker
|
|
|
+ JYearPicker,
|
|
|
+ JSelectDepart
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -130,28 +136,59 @@
|
|
|
dataSource: [],
|
|
|
columns: [
|
|
|
{
|
|
|
- title: '费用资金类别',
|
|
|
- key: 'costFundType',
|
|
|
- type: FormTypes.input,
|
|
|
+ title: '部门',
|
|
|
+ key: 'department',
|
|
|
+ type: FormTypes.slot,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ slotName: 'department',
|
|
|
},
|
|
|
{
|
|
|
- title: '预算资金类别',
|
|
|
- key: 'budgetFundType',
|
|
|
- type: FormTypes.input,
|
|
|
+ title: '费用资金类别',
|
|
|
+ key: 'costFundType',
|
|
|
+ type: FormTypes.select,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ options:[{
|
|
|
+ value: "1",
|
|
|
+ text: "1"
|
|
|
+ },{
|
|
|
+ value: "2",
|
|
|
+ text: "2"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "3",
|
|
|
+ text: "3"
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
title: '预算资金名称',
|
|
|
key: 'budgetFundName',
|
|
|
- type: FormTypes.input,
|
|
|
+ type: FormTypes.select,
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ options:[{
|
|
|
+ value: "差旅费",
|
|
|
+ text: "差旅费"
|
|
|
+ },{
|
|
|
+ value: "招待费",
|
|
|
+ text: "招待费"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "车辆使用费",
|
|
|
+ text: "车辆使用费"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "会务费",
|
|
|
+ text: "会务费"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: "办公费",
|
|
|
+ text: "办公费"
|
|
|
+ }]
|
|
|
},
|
|
|
{
|
|
|
title: '预算资金构成',
|
|
@@ -168,6 +205,7 @@
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ validateRules: [{ pattern: "money", message: "${title}格式不正确" }],
|
|
|
},
|
|
|
{
|
|
|
title: '合同金额',
|
|
@@ -176,6 +214,7 @@
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ validateRules: [{ pattern: "money", message: "${title}格式不正确" }],
|
|
|
},
|
|
|
{
|
|
|
title: '已支付金额',
|
|
@@ -184,6 +223,7 @@
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ validateRules: [{ pattern: "money", message: "${title}格式不正确" }],
|
|
|
},
|
|
|
{
|
|
|
title: '待支付金额',
|
|
@@ -192,6 +232,7 @@
|
|
|
width:"200px",
|
|
|
placeholder: '请输入${title}',
|
|
|
defaultValue: '',
|
|
|
+ validateRules: [{ pattern: "money", message: "${title}格式不正确" }],
|
|
|
},
|
|
|
{
|
|
|
title: '附件上传',
|
|
@@ -271,6 +312,18 @@
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
+ //部门插槽更改数据
|
|
|
+ departChange(props) {
|
|
|
+ let values = [
|
|
|
+ {
|
|
|
+ rowKey: props.rowId,
|
|
|
+ values: {
|
|
|
+ 'department': props.text,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ]
|
|
|
+ this.$refs.budgetCostDetail.setValues(values)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</script>
|