|
@@ -13,7 +13,6 @@
|
|
<el-button size="mini" type="primary" :loading="loading" plain @click="btnCloseGradeAdjust" v-if="form.stage == '5' && form.isAdjust == 'Y' && form.isSalary == 'N'">关闭等级调整</el-button>
|
|
<el-button size="mini" type="primary" :loading="loading" plain @click="btnCloseGradeAdjust" v-if="form.stage == '5' && form.isAdjust == 'Y' && form.isSalary == 'N'">关闭等级调整</el-button>
|
|
<el-button size="mini" type="primary" :loading="loading" plain @click="btnAdjustMark" v-if="form.stage == '5' && form.isSalary == 'N'">分数调整</el-button>
|
|
<el-button size="mini" type="primary" :loading="loading" plain @click="btnAdjustMark" v-if="form.stage == '5' && form.isSalary == 'N'">分数调整</el-button>
|
|
<el-button size="mini" type="primary" :loading="loading" plain @click="btnCendToSalary" v-if="form.stage == '5' && form.isSalary == 'N'">过数到薪资</el-button>
|
|
<el-button size="mini" type="primary" :loading="loading" plain @click="btnCendToSalary" v-if="form.stage == '5' && form.isSalary == 'N'">过数到薪资</el-button>
|
|
- <CreatePmDialog style="margin: 0 10px" :stageId="form.id" v-if="form.isPublish == 'Y' && form.stage != '5'"></CreatePmDialog>
|
|
|
|
<el-button size="mini" plain @click="btnPreviou">上一个</el-button>
|
|
<el-button size="mini" plain @click="btnPreviou">上一个</el-button>
|
|
<el-button size="mini" plain @click="btnNext">下一个</el-button>
|
|
<el-button size="mini" plain @click="btnNext">下一个</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -27,8 +26,8 @@
|
|
<div>{{ dict.label }}</div>
|
|
<div>{{ dict.label }}</div>
|
|
</div>
|
|
</div>
|
|
</el-descriptions-item>
|
|
</el-descriptions-item>
|
|
- <el-descriptions-item label="预计填写结束时间">{{form.month}}</el-descriptions-item>
|
|
|
|
- <el-descriptions-item label="预计评分结束时间">{{form.month}}</el-descriptions-item>
|
|
|
|
|
|
+ <el-descriptions-item label="预计填写结束时间">{{form.fillinEndtiem}}</el-descriptions-item>
|
|
|
|
+ <el-descriptions-item label="预计评分结束时间">{{form.markEndtiem}}</el-descriptions-item>
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
<el-form size="mini" label-position="right" ref="form" :model="form" :rules="formRules" :inline="true" class="demo-form-inline" v-if="pageState != 'see'">
|
|
<el-form size="mini" label-position="right" ref="form" :model="form" :rules="formRules" :inline="true" class="demo-form-inline" v-if="pageState != 'see'">
|
|
<el-row>
|
|
<el-row>
|
|
@@ -45,7 +44,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col span="6">
|
|
<el-col span="6">
|
|
<el-form-item label="状态" prop="stage">
|
|
<el-form-item label="状态" prop="stage">
|
|
- <el-select size="mini" v-model="form.stage" placeholder="" :disabled="form.isPublish == 'Y'" >
|
|
|
|
|
|
+ <el-select size="mini" v-model="form.stage" placeholder="" disabled>
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in dict.type.ehr_pm_status"
|
|
v-for="dict in dict.type.ehr_pm_status"
|
|
:key="dict.value"
|
|
:key="dict.value"
|
|
@@ -57,23 +56,25 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col span="6">
|
|
<el-col span="6">
|
|
<el-form-item label="预计填写结束时间" prop="yearMonth">
|
|
<el-form-item label="预计填写结束时间" prop="yearMonth">
|
|
- <el-date-picker type="date" value-format="yyyy-MM" v-model="form.month">
|
|
|
|
|
|
+ <el-date-picker type="date" value-format="yyyy-MM-dd" v-model="form.fillinEndtiem">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col span="6">
|
|
<el-col span="6">
|
|
<el-form-item label="预计评分结束时间" prop="yearMonth">
|
|
<el-form-item label="预计评分结束时间" prop="yearMonth">
|
|
- <el-date-picker type="date" value-format="yyyy-MM" v-model="form.month">
|
|
|
|
|
|
+ <el-date-picker type="date" value-format="yyyy-MM-dd" v-model="form.markEndtiem">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
- <el-tabs v-model="activeName" v-if="form.isPublish == 'Y'" @tab-click="btnTabs">
|
|
|
|
|
|
+ <el-tabs v-model="activeName" v-if="form.isPublish == 'Y'" @tab-click="btnTabs" v-show="pageState == 'see'">
|
|
<el-tab-pane label="绩效列表" name="first">
|
|
<el-tab-pane label="绩效列表" name="first">
|
|
- 绩效列表
|
|
|
|
|
|
+ <PmList :key="pmListKey" :stage="form"/>
|
|
|
|
+ </el-tab-pane>
|
|
|
|
+ <el-tab-pane label="等级参数" name="second">
|
|
|
|
+ <GcList :key="gcListKey" :stage="form"/>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <el-tab-pane label="等级参数" name="second">等级参数</el-tab-pane>
|
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
<div class="footer">
|
|
<div class="footer">
|
|
<el-button type="primary" size="mini" @click="btnEdit" v-if="pageState == 'see'">修改</el-button>
|
|
<el-button type="primary" size="mini" @click="btnEdit" v-if="pageState == 'see'">修改</el-button>
|
|
@@ -87,7 +88,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import CreatePmDialog from './btnCreatePm.vue'
|
|
|
|
|
|
+import PmList from './pmList.vue'
|
|
|
|
+import GcList from './gcList.vue'
|
|
import { getStage,addStage,updateStage,publishStage,fillinFinish,startSelfEvaluation,finishSelfEvaluation,openGradeAdjust,closeGradeAdjust,cendToSalary} from "@/api/business/ehr/pm/stage";
|
|
import { getStage,addStage,updateStage,publishStage,fillinFinish,startSelfEvaluation,finishSelfEvaluation,openGradeAdjust,closeGradeAdjust,cendToSalary} from "@/api/business/ehr/pm/stage";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -98,7 +100,7 @@ export default {
|
|
prop: 'isList',
|
|
prop: 'isList',
|
|
event: 'jugislist'
|
|
event: 'jugislist'
|
|
},
|
|
},
|
|
- components: {CreatePmDialog},
|
|
|
|
|
|
+ components: {PmList,GcList},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
//id
|
|
//id
|
|
@@ -119,7 +121,11 @@ export default {
|
|
//页面状态
|
|
//页面状态
|
|
pageState: null,
|
|
pageState: null,
|
|
//当前页签
|
|
//当前页签
|
|
- activeName: 'first'
|
|
|
|
|
|
+ activeName: 'first',
|
|
|
|
+ //pmListKey
|
|
|
|
+ pmListKey: 0,
|
|
|
|
+ //gcListKey
|
|
|
|
+ gcListKey: 0,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
@@ -159,6 +165,8 @@ export default {
|
|
if(i > -1){
|
|
if(i > -1){
|
|
let id = this.ids[i];
|
|
let id = this.ids[i];
|
|
this.fetchStage(id);
|
|
this.fetchStage(id);
|
|
|
|
+ this.activeName = 'first';
|
|
|
|
+ this.pmListKey++;
|
|
}else{
|
|
}else{
|
|
this.$modal.msgSuccess("已经是当前页第一条了!");
|
|
this.$modal.msgSuccess("已经是当前页第一条了!");
|
|
}
|
|
}
|
|
@@ -169,189 +177,95 @@ export default {
|
|
if(i < this.ids.length){
|
|
if(i < this.ids.length){
|
|
let id = this.ids[i];
|
|
let id = this.ids[i];
|
|
this.fetchStage(id);
|
|
this.fetchStage(id);
|
|
|
|
+ this.activeName = 'first';
|
|
|
|
+ this.pmListKey++;
|
|
}else{
|
|
}else{
|
|
this.$modal.msgSuccess("已经是当前页最后一条了!");
|
|
this.$modal.msgSuccess("已经是当前页最后一条了!");
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//发布
|
|
//发布
|
|
btnPublish(){
|
|
btnPublish(){
|
|
- this.$confirm("确认要发布吗?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await publishStage(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("发布成功");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要发布吗?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await publishStage(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("发布成功");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//填写结束
|
|
//填写结束
|
|
btnFillinFinish(){
|
|
btnFillinFinish(){
|
|
- this.$confirm("确认要结束填写吗?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await fillinFinish(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("保存成功");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要结束填写吗?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await fillinFinish(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("保存成功");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//开始自评
|
|
//开始自评
|
|
btnStartSelfEvaluation(){
|
|
btnStartSelfEvaluation(){
|
|
- this.$confirm("确认要开启自评吗?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await startSelfEvaluation(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("开启成功");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要开启自评吗?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await startSelfEvaluation(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("开启成功");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//结束自评
|
|
//结束自评
|
|
btnFinishSelfEvaluation(){
|
|
btnFinishSelfEvaluation(){
|
|
- this.$confirm("确认要结束评分吗?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await finishSelfEvaluation(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("结束成功");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要结束评分吗?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await finishSelfEvaluation(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("结束成功");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//开启等级调整
|
|
//开启等级调整
|
|
btnOpenGradeAdjust(){
|
|
btnOpenGradeAdjust(){
|
|
- this.$confirm("确认要开启等级调整?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await openGradeAdjust(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("已开始");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要开启等级调整?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await openGradeAdjust(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("已开始");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//关闭等级调整
|
|
//关闭等级调整
|
|
btnCloseGradeAdjust(){
|
|
btnCloseGradeAdjust(){
|
|
- this.$confirm("确认要关闭等级调整?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await closeGradeAdjust(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("已关闭");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要关闭等级调整?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await closeGradeAdjust(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("已关闭");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//分数调整
|
|
//分数调整
|
|
btnAdjustMark(){
|
|
btnAdjustMark(){
|
|
@@ -359,33 +273,17 @@ export default {
|
|
},
|
|
},
|
|
//过数到薪资
|
|
//过数到薪资
|
|
btnCendToSalary(){
|
|
btnCendToSalary(){
|
|
- this.$confirm("确认要同步到薪资绩效系数吗?", "提示", {
|
|
|
|
- confirmButtonText: "确定",
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
- type: "info",
|
|
|
|
- beforeClose: async (action, instance,done) => {
|
|
|
|
- if (action === "confirm") {
|
|
|
|
- instance.confirmButtonLoading = true;
|
|
|
|
- instance.confirmButtonText = "执行中...";
|
|
|
|
- try {
|
|
|
|
- const { msg, code } = await cendToSalary(this.form);
|
|
|
|
- if (code === 200) {
|
|
|
|
- this.$modal.msgSuccess("操作成功");
|
|
|
|
- await this.fetchStage(this.id);
|
|
|
|
- }
|
|
|
|
- } catch (err) {
|
|
|
|
- console.error(err);
|
|
|
|
- instance.confirmButtonText = "确认";
|
|
|
|
- } finally {
|
|
|
|
- instance.confirmButtonLoading = false;
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- done();
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- }).then(() => {})
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
+ let that = this;
|
|
|
|
+ this.$modal.confirm('确认要同步到薪资绩效系数吗?').then(async function() {
|
|
|
|
+ that.loading = true;
|
|
|
|
+ return await cendToSalary(that.form);
|
|
|
|
+ }).then(() => {
|
|
|
|
+ that.fetchStage(that.id);
|
|
|
|
+ that.$modal.msgSuccess("操作成功");
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
},
|
|
},
|
|
//修改
|
|
//修改
|
|
btnEdit(){
|
|
btnEdit(){
|
|
@@ -424,8 +322,16 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- btnTabs(tab, event) {
|
|
|
|
- console.log(tab, event);
|
|
|
|
|
|
+ //页签切换
|
|
|
|
+ btnTabs(e) {
|
|
|
|
+ switch (e.name) {
|
|
|
|
+ case "first":
|
|
|
|
+ break;
|
|
|
|
+ case "second":
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|