|
|
@@ -21,6 +21,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label-width="5px">
|
|
|
<el-button @click="search_" size="small" type="primary">查询</el-button>
|
|
|
+ <el-checkbox style="margin-left: 15px" @change="search_" true-label="1" false-label="0" v-model="search.is_gd">挂单({{search.gd_total}}个)</el-checkbox>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div>
|
|
|
@@ -60,16 +61,24 @@
|
|
|
<span :style="`color:${scope.row.status_obj.color}`">{{scope.row.status_obj.name}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="addtime" label="发票日期"></el-table-column>
|
|
|
+ <el-table-column prop="status" label="备注">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" size="small" @click="manager_space('log',scope.row.id)">查看备注</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="addtime" width="160px" label="发票日期"></el-table-column>
|
|
|
<el-table-column prop="uid" label="关联用户">
|
|
|
<template slot-scope="scope">
|
|
|
<a :href="scope.row.user_link" style="color:#409EFF" target="_blank">{{scope.row.uid}}</a>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column fixed="right" width="160px" prop="uid" label="操作">
|
|
|
+ <el-table-column fixed="right" width="250px" prop="uid" label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button v-if="scope.row.order_type==1" type="text" @click="show_user_settlement(scope.row)">关联订单</el-button>
|
|
|
<el-button v-if="scope.row.order_type==2" type="text" @click="show_order_settlement(scope.row)">关联订单</el-button>
|
|
|
+ <el-button v-if="scope.row.is_gd==0" type="text" @click="add_gd(scope.row.id)">申请挂单</el-button>
|
|
|
+ <el-button v-if="scope.row.is_gd==1" style="color: #E6A23C" type="text" @click="add_gd(scope.row.id)">取消挂单</el-button>
|
|
|
+ <el-button type="text" @click="add_memo(scope.row.id,'添加备注')">备注</el-button>
|
|
|
<el-dropdown @command="(command) => manager_space(command, scope.row.id)" style="margin-left: 10px">
|
|
|
<el-button type="text">更多</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
@@ -135,6 +144,7 @@
|
|
|
total: 0,
|
|
|
status:1,
|
|
|
name: "",
|
|
|
+ gd_total:0,
|
|
|
},
|
|
|
status:[
|
|
|
|
|
|
@@ -174,6 +184,50 @@
|
|
|
this.drawer_obj.id = id;
|
|
|
this.drawer_obj.user_invoice_add = true;
|
|
|
},
|
|
|
+ async add_memo(id) {
|
|
|
+ this.$prompt('请输入备注信息', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ }).then(async ({ value }) => {
|
|
|
+ this.loading = true;
|
|
|
+ let res =await this.$post("/uapi/pub/info/user/user_invoice/add_memo",{id:id,memo:value});
|
|
|
+ if (res.status == 1) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '成功!'
|
|
|
+ });
|
|
|
+ await this.getList();
|
|
|
+ }
|
|
|
+ this.loading = false;
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async add_gd(id) {
|
|
|
+ this.$prompt('请输入原因', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ }).then(async ({ value }) => {
|
|
|
+ this.loading = true;
|
|
|
+ let res =await this.$post("/uapi/pub/info/user/user_invoice/add_gd",{id:id,memo:value});
|
|
|
+ if (res.status == 1) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '成功!'
|
|
|
+ });
|
|
|
+ await this.getList();
|
|
|
+ }
|
|
|
+ this.loading = false;
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
manager_space(command,id)
|
|
|
{
|
|
|
if(command=='log')
|
|
|
@@ -207,6 +261,7 @@
|
|
|
this.list = res.data.list;
|
|
|
this.search.total = res.data.total;
|
|
|
this.search.pagesize = res.data.pagesize;
|
|
|
+ this.search.gd_total=res.data.gd_total;
|
|
|
}
|
|
|
},
|
|
|
async get_status() {
|
|
|
@@ -300,7 +355,7 @@
|
|
|
search_() {
|
|
|
this.search.page = 0;
|
|
|
this.getList();
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|