|
@ -40,11 +40,11 @@ |
|
|
<div class=""> |
|
|
<div class=""> |
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange"> |
|
|
<el-table v-loading="tableLoading" :data="dataList" border style="width: 100%" @selection-change="handleSelectionChange"> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/> |
|
|
<el-table-column fixed width="150" label="操作" align="center"> |
|
|
<el-table-column fixed width="200" label="操作" align="center"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-button v-if="scope.row.nodeState=='待提交'||(scope.row.nodeState!='待提交'&&scope.row.nodeState=='发起申请')" type="primary" size="small" @click="toEdit(scope.row)">办理 |
|
|
<el-button :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true" type="primary" size="small" @click="toEdit(scope.row)">办理 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button v-else type="info" size="small">办理</el-button> |
|
|
<el-button type="primary" size="small" @click="toTermination(scope.row)">终止</el-button> |
|
|
<el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button> |
|
|
<el-button type="primary" size="small" @click="toInfo(scope.row)">查看</el-button> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
@ -227,6 +227,14 @@ export default { |
|
|
const sid = row.sid |
|
|
const sid = row.sid |
|
|
this.$refs['divinfo'].showInfo(sid, row) |
|
|
this.$refs['divinfo'].showInfo(sid, row) |
|
|
}, |
|
|
}, |
|
|
|
|
|
toTermination(row) { |
|
|
|
|
|
req.cancal({ sid: row.sid }).then((res) => { |
|
|
|
|
|
if (res.success) { |
|
|
|
|
|
this.$message({ showClose: true, type: 'success', message: '操作成功' }) |
|
|
|
|
|
this.loadList() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
hangleLook(row) { |
|
|
hangleLook(row) { |
|
|
this.viewState = 5 |
|
|
this.viewState = 5 |
|
|
this.$refs['divCaiGouInfo'].showInfo(row.vehicleOrderSid, row) |
|
|
this.$refs['divCaiGouInfo'].showInfo(row.vehicleOrderSid, row) |
|
|