|
|
|
@ -4,7 +4,7 @@ |
|
|
|
<el-button type="primary" @click="refresh()" >刷新数据</el-button> |
|
|
|
<el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button> |
|
|
|
<el-button v-if="baseForm.status === 'spz'&&!ifDisableFlag" type="primary" @click="agreeSubmit">同意</el-button> |
|
|
|
<el-button v-if="baseForm.status === 'spz' && baseForm.isReject === 'Y' &&!ifDisableFlag" type="primary" @click="rejectSubmit">驳回</el-button> |
|
|
|
<el-button v-if="baseForm.status === 'spz' && baseForm.isReject === 'Y' &&!ifDisableFlag" type="primary" @click="submitDataModal">驳回</el-button> |
|
|
|
</el-form> |
|
|
|
<el-form label-position="top" style="margin-top: 1px; margin-left: 0px;"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
@ -160,7 +160,18 @@ |
|
|
|
<el-form label-position="top" style="margin-top: 60px; margin-left: 0px;text-align:center"> |
|
|
|
<!-- <el-button type="primary" @click="saveData()" v-if="!ifDisableFlag">保存</el-button>--> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
<!-- 提交 --> |
|
|
|
<el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag" width="500px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="'驳回意见'"> |
|
|
|
<el-input type="textarea" v-model="rejectOpinion" :rows="3" resize='none' show-word-limit style="width: 479px;height: 30px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:30px;margin-top: 50px;text-align:center"> |
|
|
|
<el-button type="primary" @click="rejectSubmit">确定</el-button> |
|
|
|
<el-button type="primary" @click="submitModalFlag = false">取消</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -229,7 +240,9 @@ |
|
|
|
trigger: 'change' |
|
|
|
} |
|
|
|
], |
|
|
|
} |
|
|
|
}, |
|
|
|
rejectOpinion: '', |
|
|
|
submitModalFlag: false, |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
@ -378,7 +391,11 @@ |
|
|
|
this.submitData(tempData) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 打开提交模态框 |
|
|
|
submitDataModal () { |
|
|
|
this.rejectOpinion = '' |
|
|
|
this.submitModalFlag = true |
|
|
|
}, |
|
|
|
// 驳回提交 |
|
|
|
rejectSubmit () { |
|
|
|
this.$confirm(`是否确认驳回?`, '提示', { |
|
|
|
@ -391,7 +408,8 @@ |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
codeNo: this.searchData.codeNo, |
|
|
|
menuId: '103002', |
|
|
|
nodeConclusion: 'N' |
|
|
|
nodeConclusion: 'N', |
|
|
|
rejectOpinion : this.rejectOpinion |
|
|
|
} |
|
|
|
this.submitData(tempData) |
|
|
|
}) |
|
|
|
@ -402,6 +420,7 @@ |
|
|
|
if (data && data.code === 0) { |
|
|
|
submitChange(tempData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.submitModalFlag = false |
|
|
|
this.$message({message: '操作成功', type: 'success'}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|