|
|
|
|
@ -22,16 +22,19 @@
|
|
|
|
|
|
|
|
|
|
<span style="padding: 0 6px"> 预算类型 </span>
|
|
|
|
|
<span>
|
|
|
|
|
<Select
|
|
|
|
|
v-model="select.type"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="选择预算类型"
|
|
|
|
|
style="width: 130px"
|
|
|
|
|
>
|
|
|
|
|
<Option v-for="item in types" :key="item.id" :value="item.id">{{
|
|
|
|
|
item.value
|
|
|
|
|
}}</Option>
|
|
|
|
|
</Select>
|
|
|
|
|
<el-cascader
|
|
|
|
|
:options="types"
|
|
|
|
|
:props="{
|
|
|
|
|
checkStrictly: false,
|
|
|
|
|
label: 'name',
|
|
|
|
|
value: 'id',
|
|
|
|
|
}"
|
|
|
|
|
:value="select.type"
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
@change="(e) => (select.type = e[e.length - 1] || '')"
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span style="padding: 0 6px"> 科室 </span>
|
|
|
|
|
@ -301,18 +304,31 @@
|
|
|
|
|
>预算类型
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.type"
|
|
|
|
|
<el-cascader
|
|
|
|
|
:options="types"
|
|
|
|
|
:props="{
|
|
|
|
|
checkStrictly: false,
|
|
|
|
|
label: 'name',
|
|
|
|
|
value: 'id',
|
|
|
|
|
}"
|
|
|
|
|
:value="form.type"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请选择预算类型"
|
|
|
|
|
size="small"
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in types"
|
|
|
|
|
:label="item.value"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
@change="(e) => (form.type = e[e.length - 1] || '')"
|
|
|
|
|
/>
|
|
|
|
|
<!-- <el-select-->
|
|
|
|
|
<!-- v-model="form.type"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- placeholder="请选择预算类型"-->
|
|
|
|
|
<!-- style="width: 300px"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in types"-->
|
|
|
|
|
<!-- :label="item.value"-->
|
|
|
|
|
<!-- :value="item.id"-->
|
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -469,18 +485,31 @@
|
|
|
|
|
>预算类型
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="editorForm.type"
|
|
|
|
|
<el-cascader
|
|
|
|
|
:options="types"
|
|
|
|
|
:props="{
|
|
|
|
|
checkStrictly: false,
|
|
|
|
|
label: 'name',
|
|
|
|
|
value: 'id',
|
|
|
|
|
}"
|
|
|
|
|
:value="editorForm.type"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请选择预算类型"
|
|
|
|
|
size="small"
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in types"
|
|
|
|
|
:label="item.value"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
@change="(e) => (editorForm.type = e[e.length - 1] || '')"
|
|
|
|
|
/>
|
|
|
|
|
<!-- <el-select-->
|
|
|
|
|
<!-- v-model="editorForm.type"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- placeholder="请选择预算类型"-->
|
|
|
|
|
<!-- style="width: 300px"-->
|
|
|
|
|
<!-- >-->
|
|
|
|
|
<!-- <el-option-->
|
|
|
|
|
<!-- v-for="item in types"-->
|
|
|
|
|
<!-- :label="item.value"-->
|
|
|
|
|
<!-- :value="item.id"-->
|
|
|
|
|
<!-- ></el-option>-->
|
|
|
|
|
<!-- </el-select>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -512,15 +541,30 @@
|
|
|
|
|
>科室
|
|
|
|
|
</div>
|
|
|
|
|
<div class="xy-table-item-content">
|
|
|
|
|
<el-cascader
|
|
|
|
|
:options="departments"
|
|
|
|
|
:props="{ checkStrictly: true, label: 'name', value: 'id' }"
|
|
|
|
|
:value="editorForm.department"
|
|
|
|
|
<el-select
|
|
|
|
|
placeholder="科室选择"
|
|
|
|
|
clearable
|
|
|
|
|
size="small"
|
|
|
|
|
v-model="editorForm.department"
|
|
|
|
|
style="width: 300px"
|
|
|
|
|
@change="(e) => (editorForm.department = e[e.length - 1] || '')"
|
|
|
|
|
/>
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in departments"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
>
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<!-- <el-cascader-->
|
|
|
|
|
<!-- :options="departments"-->
|
|
|
|
|
<!-- :props="{ checkStrictly: true, label: 'name', value: 'id' }"-->
|
|
|
|
|
<!-- :value="editorForm.department"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- size="small"-->
|
|
|
|
|
<!-- style="width: 300px"-->
|
|
|
|
|
<!-- @change="(e) => (editorForm.department = e[e.length - 1] || '')"-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
@ -638,7 +682,7 @@ import {
|
|
|
|
|
import { listdeptNoAuth } from "@/api/system/department";
|
|
|
|
|
import { Message } from "element-ui";
|
|
|
|
|
import { parseTime, moneyFormatter, moneyRecovery } from "@/utils";
|
|
|
|
|
import { getparameter } from "@/api/system/dictionary";
|
|
|
|
|
import { getparameter, getparameterTree } from "@/api/system/dictionary";
|
|
|
|
|
import { mergeTableRow } from "@/utils/mergeTableRow";
|
|
|
|
|
|
|
|
|
|
import addPoint from "./components/addPoint.vue";
|
|
|
|
|
@ -730,14 +774,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "预算类型",
|
|
|
|
|
prop: "type",
|
|
|
|
|
prop: "type_detail.value",
|
|
|
|
|
width: 115,
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
let res = this.types.filter((item) => {
|
|
|
|
|
return item.id === value;
|
|
|
|
|
});
|
|
|
|
|
return res[0]?.value || "未知";
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: "所属年份",
|
|
|
|
|
@ -854,10 +892,23 @@ export default {
|
|
|
|
|
console.log(v);
|
|
|
|
|
},
|
|
|
|
|
async getTypes() {
|
|
|
|
|
const res = await getparameter({
|
|
|
|
|
number: "money_way",
|
|
|
|
|
const res = await getparameterTree({
|
|
|
|
|
id: 3
|
|
|
|
|
});
|
|
|
|
|
this.types = res.detail;
|
|
|
|
|
const dataHandler = (data) => {
|
|
|
|
|
data.forEach(i => {
|
|
|
|
|
if (i.hasOwnProperty('detail')) {
|
|
|
|
|
i.children = i.detail.map(j => {
|
|
|
|
|
j.name = j.value
|
|
|
|
|
return j;
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
dataHandler(i['children'])
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
this.types = dataHandler(res?.children) || []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
moneyRecoverEditor(key) {
|
|
|
|
|
|