Commit da67a106 by 刘泽奇

123

parent f76e2231
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
<el-table-column prop="statusName" label="方案状态"> <el-table-column prop="statusName" label="方案状态">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="payment"> <div class="payment">
<div :class="dotColor(1)"></div> <div :class="dotColor(scope.row.status)"></div>
<div>{{scope.row.statusName}}</div> <div>{{scope.row.statusName}}</div>
</div> </div>
</template> </template>
...@@ -115,8 +115,11 @@ ...@@ -115,8 +115,11 @@
<div class="handle"> <div class="handle">
<!-- 需要判断当前付款状态是否有作废 --> <!-- 需要判断当前付款状态是否有作废 -->
<span @click="toDetails(scope.$index,scope.row)">详情&nbsp;</span>&nbsp; <span @click="toDetails(scope.$index,scope.row)">详情&nbsp;</span>&nbsp;
<span>|</span>&nbsp; <span v-show="scope.row.status == 'dqr'">|</span>&nbsp;
<span>&nbsp;作废</span> <span
@click="invalid(scope.$index,scope.row)"
v-show="scope.row.status == 'dqr'"
>&nbsp;作废</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -234,7 +237,7 @@ ...@@ -234,7 +237,7 @@
<el-table-column prop="statusName" label="方案状态" width> <el-table-column prop="statusName" label="方案状态" width>
<template slot-scope="scope"> <template slot-scope="scope">
<div class="payment"> <div class="payment">
<div :class="dotColor(2)"></div> <div :class="dotColor(scope.row.status)"></div>
<div>{{scope.row.statusName}}</div> <div>{{scope.row.statusName}}</div>
</div> </div>
</template> </template>
...@@ -244,8 +247,11 @@ ...@@ -244,8 +247,11 @@
<div class="handle"> <div class="handle">
<!-- 需要判断当前付款状态是否有作废 --> <!-- 需要判断当前付款状态是否有作废 -->
<span @click="toDetails(scope.$index,scope.row)">详情&nbsp;</span>&nbsp; <span @click="toDetails(scope.$index,scope.row)">详情&nbsp;</span>&nbsp;
<span>|</span>&nbsp; <span v-show="scope.row.status == 'dqr'">|</span>&nbsp;
<span>&nbsp;作废</span> <span
v-show="scope.row.status == 'dqr'"
@click="invalid(scope.$index,scope.row)"
>&nbsp;作废</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -471,9 +477,7 @@ export default { ...@@ -471,9 +477,7 @@ export default {
} }
this.getListData(); this.getListData();
}, },
deleteRow(idx, row) {
console.log(idx, row);
},
toDetails(idx, row) { toDetails(idx, row) {
console.log(row, "////////////////////////////"); console.log(row, "////////////////////////////");
this.detailsNeedNo = row.needNo; this.detailsNeedNo = row.needNo;
...@@ -484,6 +488,32 @@ export default { ...@@ -484,6 +488,32 @@ export default {
this.cloudDetailDialog = true; this.cloudDetailDialog = true;
} }
}, },
invalid(idx, row) {
console.log(row);
req
.post(
this.baseURL,
{
actionType: "abolishProgramme",
actionBody: {
solutionNo: row.solutionNo
}
},
{
headers: {
token: "3260d5a2452441dd93ecc7ecb35f6dc0",
userpin: "7c00bdd9dde04c59a50a0a45788b9a59"
}
}
)
.then(res => {
console.log(res.data);
if (res.data.status == 0) {
location.reload();
this.$message("该方案已作废");
}
});
},
handleSizeChange(val) { handleSizeChange(val) {
console.log(`每页 ${val} 条`); console.log(`每页 ${val} 条`);
}, },
...@@ -495,13 +525,13 @@ export default { ...@@ -495,13 +525,13 @@ export default {
}, },
dotColor(status) { dotColor(status) {
switch (status) { switch (status) {
case 1: case 'dqr':
return `hold`; return `hold`;
break; break;
case 2: case 'ywc':
return `done`; return `done`;
break; break;
case 3: case 'yzf':
return `cancellation`; return `cancellation`;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment