|
@@ -283,6 +283,8 @@
|
|
|
<el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="recInfo(scope.row)">备案信息</el-link>
|
|
|
<el-link style="margin-left: 10px; cursor:pointer; color: blue;" @click="concatInfo(scope.row)">协议信息</el-link>
|
|
|
<el-link v-if="scope.row.recStatus == 1" style="margin-left: 10px; cursor:pointer; color: blue;" @click="stopUse(scope.row)">停用</el-link>
|
|
|
+ <el-link v-if="scope.row.recStatus == 4" style="margin-left: 10px; cursor:pointer; color: blue;" @click="startUse(scope.row)">启用</el-link>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -938,7 +940,7 @@ import XLSX from "xlsx";
|
|
|
}
|
|
|
},
|
|
|
stopUse(recoder){
|
|
|
- this.$confirm('此操作将任务状态改为删除状态, 是否继续?', '提示', {
|
|
|
+ this.$confirm('此操作将备案状态改为停用状态, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
@@ -961,6 +963,30 @@ import XLSX from "xlsx";
|
|
|
});
|
|
|
|
|
|
},
|
|
|
+ startUse(recoder){
|
|
|
+ this.$confirm('此操作将备案状态改为启用状态, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(async () => {
|
|
|
+ const response = await this.$http.post("customer/customeRecStart", {"customerName":recoder.customerName,"companyName":recoder.companyName});
|
|
|
+ if (response.data.code === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '启用成功'
|
|
|
+ });
|
|
|
+ recoder.recStatus=1;
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: '启用失败:'+response.data.msg
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).catch(() => {
|
|
|
+ //几点取消的提示
|
|
|
+ });
|
|
|
+
|
|
|
+ },
|
|
|
async recInfoList(recoder){
|
|
|
this.customer.customerName =recoder.customerName;
|
|
|
const response = await this.$http.post(`lowerService/customeRecQueryList`, {"customerName":recoder.customerName});
|