Commit 15c12b42 by 尹亚亭

111

parents 46acf1d7 3bd97ad3
......@@ -7,8 +7,9 @@
<companysub />
</el-dialog>
<el-dialog title="公司注册方案" :visible.sync="companyDetailDialog" width="60%" center>
<Companydetail :no="detailsNeedNo"></Companydetail>
<Companydetail :no="detailsNeedNo" @companyAddDone="closeCompanyAddDialog" />
</el-dialog>
<div class="company-find">
<div class="box">
<div>方案编号:</div>
......@@ -105,7 +106,7 @@
<el-table-column prop="statusName" label="方案状态">
<template slot-scope="scope">
<div class="payment">
<div :class="dotColor(1)"></div>
<div :class="dotColor(scope.row.status)"></div>
<div>{{scope.row.statusName}}</div>
</div>
</template>
......@@ -115,16 +116,15 @@
<div class="handle">
<!-- 需要判断当前付款状态是否有作废 -->
<span @click="toDetails(scope.$index,scope.row)">详情&nbsp;</span>&nbsp;
<span>|</span>&nbsp;
<span>&nbsp;作废</span>
<span v-show="scope.row.status == 'dqr'">|</span>&nbsp;
<span
@click="invalid(scope.$index,scope.row)"
v-show="scope.row.status == 'dqr'"
>&nbsp;作废</span>
</div>
</template>
</el-table-column>
</el-table><<<<<<< HEAD
<el-dialog title="公司注册方案" :visible.sync="companyDetailDialog" width="60%" center>
<Companydetail @companyAddDone="closeCompanyAddDialog" />
</el-dialog>=======
>>>>>>> f76e22315d3770da5c3fcd6e691517a2bf887691
</el-table>
</div>
<div class="block">
<el-pagination
......@@ -235,7 +235,7 @@
<el-table-column prop="statusName" label="方案状态" width>
<template slot-scope="scope">
<div class="payment">
<div :class="dotColor(2)"></div>
<div :class="dotColor(scope.row.status)"></div>
<div>{{scope.row.statusName}}</div>
</div>
</template>
......@@ -245,8 +245,11 @@
<div class="handle">
<!-- 需要判断当前付款状态是否有作废 -->
<span @click="toDetails(scope.$index,scope.row)">详情&nbsp;</span>&nbsp;
<span>|</span>&nbsp;
<span>&nbsp;作废</span>
<span v-show="scope.row.status == 'dqr'">|</span>&nbsp;
<span
v-show="scope.row.status == 'dqr'"
@click="invalid(scope.$index,scope.row)"
>&nbsp;作废</span>
</div>
</template>
</el-table-column>
......@@ -479,9 +482,7 @@ export default {
}
this.getListData();
},
deleteRow(idx, row) {
console.log(idx, row);
},
toDetails(idx, row) {
console.log(row, "////////////////////////////");
this.detailsNeedNo = row.needNo;
......@@ -492,6 +493,32 @@ export default {
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) {
console.log(`每页 ${val} 条`);
},
......@@ -503,13 +530,13 @@ export default {
},
dotColor(status) {
switch (status) {
case 1:
case "dqr":
return `hold`;
break;
case 2:
case "ywc":
return `done`;
break;
case 3:
case "yzf":
return `cancellation`;
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