Commit bbac7d80 by lianyang

面函Docpan.vue中点Detail操作按钮弹出Dialog页面中的Suppress/Activate按钮事件

parent f6133ae0
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
@change="executeDefault('trnmod.trndoc.doccur.docsnf')" @change="executeDefault('trnmod.trndoc.doccur.docsnf')"
:disabled="suppress"
> >
<el-option <el-option
v-for="item in codes.docsnf" v-for="item in codes.docsnf"
...@@ -55,6 +56,7 @@ ...@@ -55,6 +56,7 @@
" "
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
<el-option <el-option
v-for="item in codes.uiltxt" v-for="item in codes.uiltxt"
...@@ -100,6 +102,7 @@ ...@@ -100,6 +102,7 @@
:readonly="true" :readonly="true"
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
</c-input> </c-input>
</template> </template>
...@@ -112,7 +115,7 @@ ...@@ -112,7 +115,7 @@
" "
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
</c-input> </c-input>
</template> </template>
...@@ -129,6 +132,7 @@ ...@@ -129,6 +132,7 @@
" "
style="width: 100%" style="width: 100%"
placeholder="请选择" placeholder="请选择"
:disabled="suppress"
> >
<el-option <el-option
v-for="item in codes.swttlx" v-for="item in codes.swttlx"
...@@ -147,9 +151,9 @@ ...@@ -147,9 +151,9 @@
type="primary" type="primary"
size="small" size="small"
:disabled=" :disabled="
scope.row (scope.row
.pandsc == 'MT799' && model.didgrp && model.didgrp.rec && .pandsc == 'MT799' && model.didgrp && model.didgrp.rec &&
model.didgrp.rec.elcflg == 'Y' model.didgrp.rec.elcflg == 'Y')||suppress
" "
@click="handleDisplay(scope.row.index, scope.row, model.trnmod.trndoc.doceot[scope.row.idx])" @click="handleDisplay(scope.row.index, scope.row, model.trnmod.trndoc.doceot[scope.row.idx])"
icon="el-icon-search" icon="el-icon-search"
...@@ -546,20 +550,24 @@ export default { ...@@ -546,20 +550,24 @@ export default {
}) })
}, },
activateDialog() { activateDialog() {
this.executeRule("trnmod.trndoc.doccur.butdel").then(res => { this.executeRule(`trnmod.trndoc.doceot(${this.index + 1}).butdel`).then(res => {
if(res.respCode==SUCCESS){ if(res.respCode==SUCCESS){
//TODO //TODO
this.updateModel(res.data)
this.dialog = this.model.trnmod.trndoc.doceot[this.index]
this.suppress=false;
}else{ }else{
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
}) })
}, },
suppressDialog() { suppressDialog() {
this.executeRule("trnmod.trndoc.doccur.butdel").then(res => { this.executeRule(`trnmod.trndoc.doceot(${this.index + 1}).butdel`).then(res => {
if(res.respCode==SUCCESS){ if(res.respCode==SUCCESS){
//TODO //TODO
this.suppress=true; this.updateModel(res.data)
this.dialog = this.model.trnmod.trndoc.doceot[this.index]
this.suppress=true;
}else{ }else{
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment