|
@@ -155,8 +155,8 @@
|
|
|
:operationWidth="150"
|
|
:operationWidth="150"
|
|
|
:showOperation="true"
|
|
:showOperation="true"
|
|
|
permsDelete="sys:user:delete"
|
|
permsDelete="sys:user:delete"
|
|
|
- :showBatchDelete="false"
|
|
|
|
|
- :showBatchSettled="false"
|
|
|
|
|
|
|
+ :showBatchDelete="true"
|
|
|
|
|
+ :showBatchSettled="true"
|
|
|
:showBatchPrint="true"
|
|
:showBatchPrint="true"
|
|
|
permsButton1="sys:user:edit"
|
|
permsButton1="sys:user:edit"
|
|
|
permsButton2="sys:user:edit"
|
|
permsButton2="sys:user:edit"
|
|
@@ -164,10 +164,11 @@
|
|
|
:data="pageResult"
|
|
:data="pageResult"
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
@findPage="findPage"
|
|
@findPage="findPage"
|
|
|
- keyName="policyno"
|
|
|
|
|
- settledName="批量生成"
|
|
|
|
|
|
|
+ keyName="id"
|
|
|
|
|
+ settledName="批量修改"
|
|
|
@handleSettled="handleTableSettled"
|
|
@handleSettled="handleTableSettled"
|
|
|
@handlePrint="handlePrint"
|
|
@handlePrint="handlePrint"
|
|
|
|
|
+ @handleDelete="handleDelete"
|
|
|
button1Name="修改"
|
|
button1Name="修改"
|
|
|
button1Background="#E6A23C"
|
|
button1Background="#E6A23C"
|
|
|
@handleButton1="sourceUpdate"
|
|
@handleButton1="sourceUpdate"
|
|
@@ -265,6 +266,25 @@
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <el-dialog title="批量修改" :visible.sync="dialogUpdateVisible" width="20%">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ v-model="insuranceClearingState"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ class="widths"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option label="未结算" value="0"></el-option>
|
|
|
|
|
+ <el-option label="已结算" value="1"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button size="small" @click="dialogUpdateVisible = false"
|
|
|
|
|
+ >取 消</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button size="small" type="primary" @click="BulkUpdate"
|
|
|
|
|
+ >确 定</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -276,6 +296,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ insuranceClearingState: "",
|
|
|
clearingTime: [],
|
|
clearingTime: [],
|
|
|
signingTime: [],
|
|
signingTime: [],
|
|
|
pageRequest: {
|
|
pageRequest: {
|
|
@@ -293,6 +314,7 @@ export default {
|
|
|
nonCarPolicyId: "", //非车保单号
|
|
nonCarPolicyId: "", //非车保单号
|
|
|
insuranceClearingState: "",
|
|
insuranceClearingState: "",
|
|
|
},
|
|
},
|
|
|
|
|
+ dialogUpdateVisible: false,
|
|
|
dialogFormVisible: false,
|
|
dialogFormVisible: false,
|
|
|
// 右侧列表查询数据Start
|
|
// 右侧列表查询数据Start
|
|
|
pageResult: [],
|
|
pageResult: [],
|
|
@@ -308,6 +330,9 @@ export default {
|
|
|
nonCarReceivableRatio: "",
|
|
nonCarReceivableRatio: "",
|
|
|
insuranceClearingState: "",
|
|
insuranceClearingState: "",
|
|
|
},
|
|
},
|
|
|
|
|
+ row: {},
|
|
|
|
|
+ companyList: [],
|
|
|
|
|
+ UpdateList: [],
|
|
|
columns: [
|
|
columns: [
|
|
|
//数据列
|
|
//数据列
|
|
|
{ prop: "id", label: " 编号", minWidth: 160 },
|
|
{ prop: "id", label: " 编号", minWidth: 160 },
|
|
@@ -366,6 +391,9 @@ export default {
|
|
|
minWidth: 160,
|
|
minWidth: 160,
|
|
|
},
|
|
},
|
|
|
{ prop: "maxReceivable", label: "最大应付金额", minWidth: 160 },
|
|
{ prop: "maxReceivable", label: "最大应付金额", minWidth: 160 },
|
|
|
|
|
+ { prop: "subsidyRatio", label: "补贴比例", minWidth: 160 },
|
|
|
|
|
+ { prop: "subsidyAmount", label: "补贴金额", minWidth: 160 },
|
|
|
|
|
+ { prop: "totalReceivableAmount", label: "总应收金额", minWidth: 160 },
|
|
|
{
|
|
{
|
|
|
prop: "clearingState",
|
|
prop: "clearingState",
|
|
|
label: "结算状态",
|
|
label: "结算状态",
|
|
@@ -379,8 +407,6 @@ export default {
|
|
|
formatter: this.insuranceClearingStateFormatter,
|
|
formatter: this.insuranceClearingStateFormatter,
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
- row: {},
|
|
|
|
|
- companyList: [],
|
|
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -433,6 +459,7 @@ export default {
|
|
|
type: "success",
|
|
type: "success",
|
|
|
message: res.msg,
|
|
message: res.msg,
|
|
|
});
|
|
});
|
|
|
|
|
+ this.findPage();
|
|
|
} else {
|
|
} else {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: "error",
|
|
type: "error",
|
|
@@ -443,9 +470,61 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ handleDelete(ids) {
|
|
|
|
|
+ this.$confirm("此操作将永久删除, 是否继续?", "提示", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ this.$api.task.sourcedeletes(ids).then((res) => {
|
|
|
|
|
+ if (res.code == "200") {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ message: "删除成功!",
|
|
|
|
|
+ });
|
|
|
|
|
+ this.findPage();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch(() => {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "info",
|
|
|
|
|
+ message: "已取消删除",
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ //批量修改
|
|
|
handleTableSettled(ids) {
|
|
handleTableSettled(ids) {
|
|
|
- this.plyNoList = ids;
|
|
|
|
|
- this.dialogVisible11 = true;
|
|
|
|
|
|
|
+ console.log(ids)
|
|
|
|
|
+ this.UpdateList = ids;
|
|
|
|
|
+ this.dialogUpdateVisible = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ BulkUpdate() {
|
|
|
|
|
+ let params={
|
|
|
|
|
+ ids:this.UpdateList,
|
|
|
|
|
+ insuranceClearingState:this.insuranceClearingState,
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$api.task.sourceUpdates(params).then((res) => {
|
|
|
|
|
+ if (res.code == "200") {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "success",
|
|
|
|
|
+ message: "修改成功!",
|
|
|
|
|
+ });
|
|
|
|
|
+ this.dialogUpdateVisible = false;
|
|
|
|
|
+ this.findPage();
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: "error",
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
Search() {
|
|
Search() {
|
|
|
this.findPage();
|
|
this.findPage();
|