Browse Source

Merge branch 'luckysheet' of http://120.46.222.128:10021/elink-star/epmet-work-pc into luckysheet

# Conflicts:
#	src/views/modules/base/smartExcel/cpts/excel-template-confirmation.vue
feture-12345
mk 6 months ago
parent
commit
404b66025a
  1. 2
      src/assets/scss/modules/management/list-main.scss
  2. 56
      src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue
  3. 3
      src/views/modules/base/smartExcel/cpts/excel-add.vue
  4. 18
      src/views/modules/base/smartExcel/cpts/excel-info.vue
  5. 27
      src/views/modules/base/smartExcel/filling.vue

2
src/assets/scss/modules/management/list-main.scss

@ -73,7 +73,7 @@
box-shadow: 0px 6px 16px 0px rgba(0,0,0,0.08), 0px 3px 6px -4px rgba(0,0,0,0.12); box-shadow: 0px 6px 16px 0px rgba(0,0,0,0.08), 0px 3px 6px -4px rgba(0,0,0,0.12);
position: relative; position: relative;
padding:24px 16px 10px; padding:24px 16px 10px;
height: 100%;
/deep/ .el-table th, .el-table tr{ /deep/ .el-table th, .el-table tr{
height:54px; height:54px;
} }

56
src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue

@ -38,13 +38,34 @@
</el-table> </el-table>
<el-form v-if="showType == 'edit'" ref="formData " label-position="left" :model="formData" label-width="150px" <el-form v-if="showType == 'edit'" ref="formData " label-position="left" :model="formData" label-width="150px"
style="margin-left: 3%; margin-top: 10px;"> style="margin-left: 3%; margin-top: 10px;">
<el-row>
<el-form-item label="任务要求" prop="taskIntroduction" style="display: block"> <el-form-item label="任务要求" prop="taskIntroduction" style="display: block">
<el-input class="cell-width-2" type="textarea" maxlength="500" show-word-limit :rows="5" <el-input class="cell-width-2" type="textarea" maxlength="500" show-word-limit :rows="5"
placeholder="请输入事件内容,不超过500字" v-model.trim="formData.taskIntroduction"></el-input> placeholder="请输入事件内容,不超过500字" v-model.trim="formData.taskIntroduction"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="完成时限" prop="completeLimitDay" v-if="formData.taskPeriod">
<template v-if="formData.taskPeriod === 'once'">
<el-date-picker v-model="formData.completeLimitDay" type="date" placeholder="选择日期"
value-format="yyyy-MM-dd" >
</el-date-picker>
</template>
<template v-if="formData.taskPeriod !== 'once'">
<div>
<span>每周期的第 </span>
<el-input-number v-model="formData.completeLimitDay" :max="365" label="天数"
style="width: 150px;padding: 0 5px;"></el-input-number>
<span> 天内完成</span>
</div>
</el-row> </template>
</el-form-item>
<el-form-item label="任务有效期" prop="effectiveDateRange" v-if="formData.taskPeriod !=='once'"
:rules="[{ required: true, message: '任务有效期不能为空', trigger:'blur' }]">
<template>
<el-date-picker v-model="formData.effectiveDateRange" type="daterange" range-separator=""
start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker>
</template>
</el-form-item>
</el-form> </el-form>
<span v-if="showType == 'adjust' || showType == 'edit' || showType == 'adjust1'" slot="footer" class="dialog-footer" <span v-if="showType == 'adjust' || showType == 'edit' || showType == 'adjust1'" slot="footer" class="dialog-footer"
style="margin-left: 40%;"> style="margin-left: 40%;">
@ -62,9 +83,10 @@ export default {
return { return {
tableData: [], tableData: [],
formData: { formData: {
effectiveDateRange:[],
taskTitle: '',// taskTitle: '',//
taskType: '1',// taskType: '1',//
taskPeriod: 'once',// taskPeriod: '',//
completeLimitDay: '',// completeLimitDay: '',//
completeLimitHour: '',// completeLimitHour: '',//
receiverIds: '',// receiverIds: '',//
@ -92,10 +114,16 @@ export default {
}; };
}, },
created() { created() {
console.log(this.formDatas,"sdfljksdlk");
this.formData.taskPeriod=this.formDatas.taskPeriod
this.formData.completeLimitDay=this.formDatas.completeLimitDay
this.formData.effectiveDateRange.push(this.formDatas.startTime,this.formDatas.endTime)
console.log(this.formData.effectiveDateRange,"sdfjksdf");
}, },
methods: { methods: {
async handleConfirm() { async handleConfirm() {
console.log(this.showType, "dsklmfklds");
console.log(this.selfTag),"dsfkljdslk"; console.log(this.selfTag),"dsfkljdslk";
let userIdList = this.selfTag.map(item => { let userIdList = this.selfTag.map(item => {
return item.staffId return item.staffId
@ -114,7 +142,7 @@ export default {
this.$message.error(res.internalMsg) this.$message.error(res.internalMsg)
} }
}); });
this.updateState() // this.updateState()
} else if (this.showType == "adjust1") { } else if (this.showType == "adjust1") {
let parms = { let parms = {
userId: userIdList.toString(), userId: userIdList.toString(),
@ -130,15 +158,21 @@ export default {
this.$message.error(res.internalMsg) this.$message.error(res.internalMsg)
} }
}); });
this.updateState() // this.updateState()
} }
else { else {
let parms = { const parms = {
userIdList: userIdList, userIdList: userIdList,
id: this.taskId, id: this.taskId,
taskIntroduction: this.formData.taskIntroduction taskIntroduction: this.formData.taskIntroduction,
completeLimitDay:this.formData.completeLimitDay
}
if (this.formData.effectiveDateRange) {
parms.startTime = this.formData.effectiveDateRange[0];
parms.endTime = this.formData.effectiveDateRange[1];
delete this.formData.effectiveDateRange;
} }
console.log([parms,"sdjdfsl"]);
requestPost('/actual/base/communityOneTablePublish/update', parms).then(res => { requestPost('/actual/base/communityOneTablePublish/update', parms).then(res => {
return this.$emit('handelPersonel') return this.$emit('handelPersonel')
}); });
@ -146,7 +180,7 @@ export default {
}, },
async updateState() { async updateState() {
console.log(this.formDatas,"sdfkljslkdjf");
if(this.showType=="adjust1"){ if(this.showType=="adjust1"){
const url = '/actual/base/communityOneTablePeriodPublish/update' const url = '/actual/base/communityOneTablePeriodPublish/update'
const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = this.formDatas; const { id, taskId, taskTitle, taskPeriod, taskType, taskIntroduction } = this.formDatas;
@ -270,15 +304,11 @@ export default {
}, },
mounted() { mounted() {
console.log(this.showType, this.taskId, "sdlfkl;sdf");
this.formData.taskIntroduction = this.formDatas.taskIntroduction this.formData.taskIntroduction = this.formDatas.taskIntroduction
console.log(this.formData.taskIntroduction,"dsfjhfds");
this.getOrgTreeList() this.getOrgTreeList()
if(this.showType=="adjust"){ if(this.showType=="adjust"){
this.getPeriodPublish() this.getPeriodPublish()
} }
}, },
props: { props: {
taskId: { taskId: {

3
src/views/modules/base/smartExcel/cpts/excel-add.vue

@ -26,7 +26,7 @@
<el-radio label="quarterly">每季度</el-radio> <el-radio label="quarterly">每季度</el-radio>
</el-radio-group> </el-radio-group>
<br> <br>
<div>说明当任务周期选择每周/每月/每半月/每季度时系统会于每个时间阶段的第一天自动创建阶段性子任务</div> <div style="color: red;">说明当任务周期选择每周/每月/每半月/每季度时系统会于每个时间阶段的第一天自动创建阶段性子任务</div>
</el-form-item> </el-form-item>
<el-form-item label="完成时限" prop="completeLimitDay" v-if="form.taskPeriod"> <el-form-item label="完成时限" prop="completeLimitDay" v-if="form.taskPeriod">
<template v-if="form.taskPeriod === 'once'"> <template v-if="form.taskPeriod === 'once'">
@ -48,6 +48,7 @@
:rules="[{ required: true, message: '任务有效期不能为空', trigger:'blur' }]"> :rules="[{ required: true, message: '任务有效期不能为空', trigger:'blur' }]">
<template> <template>
<el-date-picker v-model="form.effectiveDateRange" type="daterange" range-separator="" <el-date-picker v-model="form.effectiveDateRange" type="daterange" range-separator=""
start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss"> start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss">
</el-date-picker> </el-date-picker>
</template> </template>

18
src/views/modules/base/smartExcel/cpts/excel-info.vue

@ -15,6 +15,7 @@
style="display: flex;margin-left: 10px; style="display: flex;margin-left: 10px;
justify-content: center; align-items: center; width: 60px; height: 20px; border: 2px solid #ADD8E6; color: #ADD8E6; font-size: 12px;"> justify-content: center; align-items: center; width: 60px; height: 20px; border: 2px solid #ADD8E6; color: #ADD8E6; font-size: 12px;">
{{ formData.taskStateName }} {{ formData.taskStateName }}
</div> </div>
</div> </div>
@ -35,11 +36,21 @@
<div>{{formData.createByName}}</div> <div>{{formData.createByName}}</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="16" >
<el-form-item label="任务类型"> <el-form-item label="任务类型">
<div>{{formData.type || '数据填报'}}</div> <div>{{formData.type || '数据填报'}}</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="16">
<el-form-item label="完成时限">
<div>{{formData.completeLimitDay}}</div>
</el-form-item>
</el-col>
<el-col :span="16" v-if="formData.taskPeriod!=='once'">
<el-form-item label="任务完成有效期">
<div>{{formData.startTime }}-{{formData.endTime }}</div>
</el-form-item>
</el-col>
<el-col :span="16"> <el-col :span="16">
<el-form-item label="任务周期"> <el-form-item label="任务周期">
<div>{{ formData.taskPeriod === 'once' ? '一次性' : formData.taskPeriod === 'weekly' ? '每周' : formData.taskPeriod === 'halfAMonth' ? '每半月' : formData.taskPeriod === 'month' ? '每月' : '每季度' }}</div> <div>{{ formData.taskPeriod === 'once' ? '一次性' : formData.taskPeriod === 'weekly' ? '每周' : formData.taskPeriod === 'halfAMonth' ? '每半月' : formData.taskPeriod === 'month' ? '每月' : '每季度' }}</div>
@ -71,9 +82,12 @@
style="width: 70%;margin-left: 3%; margin-top: 30px;" > style="width: 70%;margin-left: 3%; margin-top: 30px;" >
<el-table-column label="序号" fixed="left" type="index" align="center" width="80" /> <el-table-column label="序号" fixed="left" type="index" align="center" width="80" />
<el-table-column prop="taskPeriodName" align="center" :show-overflow-tooltip="true" label="任务周期"> <el-table-column prop="taskPeriodName" align="center" :show-overflow-tooltip="true" label="任务周期">
<template slot-scope="scope"> <template slot-scope="scope" v-if="taskPeriod === 'once'">
{{taskPeriod === 'once'?'一次性':`${scope.row.taskNum}个周期`}} {{taskPeriod === 'once'?'一次性':`${scope.row.taskNum}个周期`}}
</template> </template>
<template slot-scope="scope" v-else>
{{scope.row.taskPeriodName}}
</template>
</el-table-column> </el-table-column>
<el-table-column fixed="right" label="汇报情况" align="center"> <el-table-column fixed="right" label="汇报情况" align="center">
<template slot-scope="scope"> <template slot-scope="scope">

27
src/views/modules/base/smartExcel/filling.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="g-main"> <div class="g-main" :style="{ height: tableHeight }">
<div v-show="pageType == 'list'"> <div v-show="pageType == 'list'">
<div class="m-search"> <div class="m-search">
<el-form :inline="true" :model="formData" ref="ref_searchform" :label-width="'100px'"> <el-form :inline="true" :model="formData" ref="ref_searchform" :label-width="'100px'">
@ -148,18 +148,26 @@ export default {
return { return {
taskId: "", taskId: "",
statusArray: [ statusArray: [
{
label: '未提交',
value: 'notSubmit'
},
{ {
label: '已提交', label: '已提交',
value: 'submit' value: 'submit',
}, },
{ {
label: '已驳回', label: '已驳回',
value: 'rejected', value: 'rejected',
}, },
{ {
label: '已改派', label: '已存档',
value: 'reassigned', value: 'archived',
}], },
{
label: '已取消',
value: 'cancel',
},],
pageType: "list", // list add info pageType: "list", // list add info
tableData: [], tableData: [],
formData: { formData: {
@ -186,12 +194,11 @@ export default {
}; };
}, },
computed: { computed: {
maxTableHeight() { tableHeight() {
const h = this.clientHeight - this.searchH - 275 + this.iframeHeight; return (this.clientHeight - 140) + 'px'
const _h = this.clientHeight - 275 - this.searchH;
return this.$store.state.inIframe ? h : _h;
}, },
...mapGetters(["clientHeight", "iframeHeight"]), ...mapGetters(['clientHeight', 'resolution']),
}, },
watch: { watch: {
}, },

Loading…
Cancel
Save