a3c7422a by zhaoqian

提交按钮

1 parent 62103e8b
......@@ -196,6 +196,8 @@
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled"
v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button>
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled"
v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">保存</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
<div class="sh-btn" v-if="$store.state.isWorkFlow && workitemInstanceFlag">
......@@ -204,6 +206,9 @@
<el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
<el-button type="primary" @click="shdz" v-if="workFlowState">审核</el-button>
</div>
<div class="sh-btn" v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">
<el-button type="primary" @click="onSubmitWithoutWorkflow" :disabled="disabled" >提交</el-button>
</div>
</div>
</template>
......@@ -606,6 +611,22 @@
// }
// })
},
onSubmitWithoutWorkflow(){
console.log(this.form)
let data={
glbsm:this.bsm,
status:1,
type:"dz"
}
submit(data).then((res)=>{
if(res.code===200){
this.$message.success("提交完成!");
this.getDzDetailByBsm(this.$route.query.bsm)
this.getTreeByBsm(this.$route.query.bsm,'dz','0,1,2')
}
})
},
getZddm(zdbsm){
getQjZdjbxxDetailById(zdbsm).then((res)=>{
if(res.code===200){
......
......@@ -366,6 +366,8 @@
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun"
v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button>
<el-button type="primary" class="saveBtn" @click="updateZDxx" :disabled="disabled" icon="iconfont iconbaocun"
v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">保存</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
</div>
</div>
......@@ -375,6 +377,9 @@
<el-button type="primary" @click="submitZDxx" :disabled="disabled" v-if="!workFlowState">提交</el-button>
<el-button type="primary" @click="shzd" v-if="workFlowState">审核</el-button>
</div>
<div class="sh-btn" v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">
<el-button type="primary" @click="submitZDxxWithoutWorkflow" :disabled="disabled">提交</el-button>
</div>
</div>
</template>
......@@ -900,6 +905,22 @@
// }
// })
},
//提交宗地基本信息
submitZDxxWithoutWorkflow() {
let data = {
glbsm: this.$store.state.zdbsm,
status: 1,
type: "zd"
}
submit(data).then((res) => {
if (res.code === 200) {
this.$message.success("提交成功!")
this.getZdjbxxData(this.curZdbsm);
this.$store.state.oldZdbsm = '';
this.getRightTree(this.curZdbsm,'0,1,2')
}
})
},
getQlrxxData() {
// console.log(this.$refs.qlrxxModule.getQlgyfsData()); //权利共有方式数据
// console.log(this.$refs.qlrxxModule.getQlrxxData()); //权利人表格数据
......
......@@ -275,6 +275,8 @@
<div class="header-button" :style="{width:mainBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun"
v-if="$store.state.isWorkFlow && workitemInstanceFlag">保存</el-button>
<el-button type="primary" class="saveBtn" @click="onSave" :disabled="disabled" icon="iconfont iconbaocun"
v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">保存</el-button>
<el-button type="primary" @click="registerCall">登记调用</el-button>
<!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
</div>
......@@ -285,6 +287,9 @@
<el-button type="primary" @click="onSubmit" :disabled="disabled" v-if="!workFlowState">提交</el-button>
<el-button type="primary" @click="shzrz" v-if="workFlowState">审核</el-button>
</div>
<div class="sh-btn" v-if="!$store.state.isWorkFlow && !workitemInstanceFlag">
<el-button type="primary" @click="onSubmitWithoutWorkflow" :disabled="disabled" >提交</el-button>
</div>
</div>
</template>
......@@ -659,6 +664,23 @@
// }
// })
},
onSubmitWithoutWorkflow(){
let data={
glbsm:this.bsm,
status:1,
type:"zrz"
}
submit(data).then((res)=>{
if(res.code===200){
this.$message.success("提交完成!");
this.getZrzDetailByBsm(this.$route.query.bsm);
this.$store.state.oldZdbsm = '';
this.getTreeByBsm(this.$route.query.bsm,'zrz','0,1,2')
}else{
this.$message.error(res.message);
}
})
},
shzrz(){
let data = {
bdcdyh:this.form.bdcdyh,
......