|
@@ -8,7 +8,7 @@
|
|
|
<HcIcon name="add"/>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
- <div> <span class="mt-2">预算一级科目:</span></div>
|
|
|
+ <div> <span class="mt-2">审批一级科目:</span></div>
|
|
|
<div class="hc-layout-left-box menu mt-3">
|
|
|
<div class="hc-menu-contents-box">
|
|
|
<el-scrollbar>
|
|
@@ -27,7 +27,7 @@
|
|
|
<span class="mr-2">流程设置:</span>
|
|
|
</template>
|
|
|
<template #extra>
|
|
|
- <el-button size="large" type="primary" hc-btn>
|
|
|
+ <el-button size="large" type="primary" hc-btn @click="saveApprove" :disabled="menuKey.length<1" :loading="saveApprovelaoding">
|
|
|
<HcIcon name="save"/>
|
|
|
<span>保存</span>
|
|
|
</el-button>
|
|
@@ -54,7 +54,7 @@
|
|
|
<!--预算分类新增编辑弹窗-->
|
|
|
<HcDialog bgColor="#ffffff" widths="22rem" isToBody :show="priceModal" :title="priceTitle" @close="priceModalClose" @save="saveparentClick">
|
|
|
<el-form :model="priceform" label-position="top" label-width="auto" size="large">
|
|
|
- <el-form-item label="预算一级科目名称:">
|
|
|
+ <el-form-item label="一级科目名称:">
|
|
|
<el-input v-model="priceform.dictName"/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
@@ -117,8 +117,8 @@ const getParentListData=async()=>{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const checkList = ref(['部门经理'])
|
|
|
-const checkList1 = ref(['人事'])
|
|
|
+const checkList = ref([])
|
|
|
+const checkList1 = ref([])
|
|
|
|
|
|
//左侧菜单
|
|
|
const menuKey = ref('')
|
|
@@ -212,7 +212,7 @@ const saveparentClick=async()=>{
|
|
|
}
|
|
|
}
|
|
|
const tableColumn = [
|
|
|
- {key: 'name', name: '审批岗位',align:'center'},
|
|
|
+ {key: 'dictName', name: '审批岗位',align:'center'},
|
|
|
|
|
|
]
|
|
|
const tableData = ref([
|
|
@@ -225,19 +225,19 @@ const handleCheckedApproveChange=(val)=>{
|
|
|
console.log(val,'val');
|
|
|
let tabarr=[]
|
|
|
val.forEach((ele)=>{
|
|
|
- tabarr.push({name:ele})
|
|
|
+ tabarr.push({dictName:ele,type:6,parentId: menuKey.value})
|
|
|
})
|
|
|
tableData.value=tabarr
|
|
|
}
|
|
|
const handleCheckedApproveChange1=(val)=>{
|
|
|
let tabarr=[]
|
|
|
val.forEach((ele)=>{
|
|
|
- tabarr.push({name:ele})
|
|
|
+ tabarr.push({dictName:ele,type:7,parentId: menuKey.value})
|
|
|
})
|
|
|
tableData1.value=tabarr
|
|
|
}
|
|
|
const tableColumn1 = [
|
|
|
- {key: 'name', name: '抄送信息',align:'center'},
|
|
|
+ {key: 'dictName', name: '抄送信息',align:'center'},
|
|
|
|
|
|
]
|
|
|
const getcheckData=async()=>{
|
|
@@ -273,7 +273,13 @@ const rowDropTap = (rows) => {
|
|
|
const rowSortTap = (rows) => {
|
|
|
tableData.value = rows
|
|
|
}
|
|
|
+const saveApprovelaoding=ref(false)
|
|
|
+//保存流程
|
|
|
+const saveApprove=()=>{
|
|
|
+ console.log(tableData.value ,'审批岗位');
|
|
|
+ console.log(tableData1.value,'抄送信息');
|
|
|
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|