|
@@ -41,7 +41,7 @@
|
|
|
<el-button size="mini" type="primary" @click="handleOpenAddDialog"
|
|
|
v-hasPermi="['pu:authorization:add']">新增</el-button>
|
|
|
<!-- <el-button size="mini" @click="handleSubmit">提交</el-button> -->
|
|
|
- <el-button size="mini" @click="handleDownload">下载授权书</el-button>
|
|
|
+ <!-- <el-button size="mini" @click="handleDownload">下载授权书</el-button> -->
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
@@ -59,6 +59,7 @@
|
|
|
<el-table-column fixed="right" label="操作" width="120">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="mini" @click="handleOpenAddDialog(scope.row)"
|
|
|
+ v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
|
v-hasPermi="['pu:authorization:edit']">编辑</el-button>
|
|
|
<el-button type="text" size="mini" @click="handleDelDialog(scope.row)"
|
|
|
v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
@@ -66,6 +67,7 @@
|
|
|
<!-- <el-button @click="handleOpenSeeDialog(scope.row)" type="text" size="small">查看</el-button> -->
|
|
|
<el-button type="text" size="mini" v-if="scope.row.status == '0' || scope.row.status == '3'"
|
|
|
@click="handleSubmit(scope.row)">提交</el-button>
|
|
|
+ <el-button type="text" size="mini" v-if="scope.row.status == '2'" @click="handleDownload">下载授权书</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -128,17 +130,18 @@ export default {
|
|
|
delete params['time']
|
|
|
console.log(params, 'params--------');
|
|
|
|
|
|
- await dealerApi.list(params).then(res => {
|
|
|
- console.log(res, '获取列表');
|
|
|
- let { code, rows, total } = res;
|
|
|
- this.loading = false;
|
|
|
+ try {
|
|
|
+ let { code, rows, total } = await dealerApi.list(params);
|
|
|
if (code == 200) {
|
|
|
this.tableData = rows;
|
|
|
this.page.total = total;
|
|
|
}
|
|
|
- }).catch(error => {
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ } finally {
|
|
|
this.loading = false;
|
|
|
- })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
// 重置
|
|
|
handelResetSearch() {
|
|
@@ -230,14 +233,14 @@ export default {
|
|
|
});
|
|
|
|
|
|
},
|
|
|
- // 提交
|
|
|
+ // 提交OA
|
|
|
handleSubmit(row) {
|
|
|
|
|
|
- console.log(row, '提交');
|
|
|
let params = {
|
|
|
- id: '',
|
|
|
- status: ''
|
|
|
+ applicant: '',
|
|
|
+ date: new Date().Format()
|
|
|
}
|
|
|
+ console.log(row, '提交', params);
|
|
|
// try {
|
|
|
// this.loading = true;
|
|
|
// let { code, msg } = await dealerApi.submitOA();
|
|
@@ -269,6 +272,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.handelSearch();
|
|
|
+ console.log(this.$store.state.user, 'this.$store.state.user');
|
|
|
}
|
|
|
|
|
|
}
|