Browse Source

解决存档后可以重复存档的bug

luckysheet_xiaowang
mk 6 months ago
parent
commit
00b9d989b6
  1. 11
      src/views/modules/base/smartExcel/cpts/excel-view.vue

11
src/views/modules/base/smartExcel/cpts/excel-view.vue

@ -22,9 +22,9 @@
<el-button type="success" @click="onClickUplond()" v-if="pageType !== 'add'"> 智能填表</el-button> <el-button type="success" @click="onClickUplond()" v-if="pageType !== 'add'"> 智能填表</el-button>
</div> </div>
<div> <div>
<el-button type="danger" v-if="pageType === 'add' && !sheetTotal && mergeObj.taskStateName == '已提交'" <el-button type="danger" v-if="pageType === 'add' && !sheetTotal && currentTaskStateName == '已提交'"
@click="handleClickCurrencyEvent('rejected')"> 驳回重提</el-button> @click="handleClickCurrencyEvent('rejected')"> 驳回重提</el-button>
<el-button type="primary" v-if="pageType === 'add' && !sheetTotal && mergeObj.taskStateName == '已提交'" <el-button type="primary" v-if="pageType === 'add' && !sheetTotal && currentTaskStateName == '已提交'"
@click="handleClickCurrencyEvent('archived')"> 审核存档</el-button> @click="handleClickCurrencyEvent('archived')"> 审核存档</el-button>
<el-button type="primary" v-if="pageType === 'filling' && taskStateName !== '已存档'" <el-button type="primary" v-if="pageType === 'filling' && taskStateName !== '已存档'"
@click="handleClickCurrencyEvent('submit')"> 提交</el-button> @click="handleClickCurrencyEvent('submit')"> 提交</el-button>
@ -61,7 +61,8 @@ export default {
currentTable: null, currentTable: null,
currentId: '', currentId: '',
btnLoading: false, btnLoading: false,
sheetR:0 sheetR:0,
currentTaskStateName:''
}; };
}, },
props: { props: {
@ -128,7 +129,8 @@ export default {
let { data, code, msg } = await requestGet('/actual/base/communityOneTablePeriodPublish/myPageList', parm) let { data, code, msg } = await requestGet('/actual/base/communityOneTablePeriodPublish/myPageList', parm)
if (code === 0) { if (code === 0) {
this.menuList = data.list; this.menuList = data.list;
this.currentId = this.menuList[0].subWorkBookId this.currentId = this.menuList[0].subWorkBookId;
this.currentTaskStateName = this.menuList[0].taskStateName
this.loadWorkBook() this.loadWorkBook()
} }
}, },
@ -228,6 +230,7 @@ export default {
handleClickMenu(i, val) { handleClickMenu(i, val) {
this.menuActive = i; this.menuActive = i;
this.currentId = val.subWorkBookId; this.currentId = val.subWorkBookId;
this.currentTaskStateName = val.taskStateName
this.loadWorkBook() this.loadWorkBook()
}, },

Loading…
Cancel
Save