|
@@ -34,13 +34,13 @@
|
|
|
<el-button style="width:100%" size="mini" block @click="dataStatus(0)">解锁</el-button>
|
|
|
</div>
|
|
|
<div class="normal-margin">
|
|
|
- <el-button style="width:100%" size="mini" block @click="transfer">转移</el-button>
|
|
|
+ <el-button style="width:100%" size="mini" block @click="handleClose(1)">转移</el-button>
|
|
|
</div>
|
|
|
<div class="normal-margin">
|
|
|
- <el-button style="width:100%" size="mini" block @click="goBack">退回</el-button>
|
|
|
+ <el-button style="width:100%" size="mini" block @click="handleClose(2)">退回</el-button>
|
|
|
</div>
|
|
|
<div class="normal-margin" v-show="mainData.datastatus !== 1">
|
|
|
- <el-button style="width:100%" size="mini" block @click="dataStatus(1)">作废</el-button>
|
|
|
+ <el-button style="width:100%" size="mini" block @click="handleClose(3)">作废</el-button>
|
|
|
</div>
|
|
|
<el-button size="mini" slot="reference" icon="el-icon-more"></el-button>
|
|
|
</el-popover>
|
|
@@ -200,6 +200,27 @@ export default {
|
|
|
this.$emit('onSuccess')
|
|
|
})
|
|
|
},
|
|
|
+ handleClose(id) {
|
|
|
+ if (id === 1){
|
|
|
+ this.$confirm('确认进行转移操作嘛?')
|
|
|
+ .then(_ => {
|
|
|
+ this.transfer()
|
|
|
+ })
|
|
|
+ .catch(_ => {});
|
|
|
+ }else if(id === 2){
|
|
|
+ this.$confirm('确认进行退回操作嘛?')
|
|
|
+ .then(_ => {
|
|
|
+ this.goBack()
|
|
|
+ })
|
|
|
+ .catch(_ => {});
|
|
|
+ }else if(id === 3){
|
|
|
+ this.$confirm('确认进行作废操作嘛?')
|
|
|
+ .then(_ => {
|
|
|
+ this.dataStatus(1)
|
|
|
+ })
|
|
|
+ .catch(_ => {});
|
|
|
+ }
|
|
|
+ },
|
|
|
/*转移*/
|
|
|
async transfer(){
|
|
|
const res = await this.$api.requested({
|