|
|
@@ -7,15 +7,36 @@
|
|
|
:model="formInline"
|
|
|
class="demo-form-inline"
|
|
|
>
|
|
|
- <el-form-item label="选择年份:">
|
|
|
- <el-date-picker
|
|
|
- v-model="formInline.monthValue"
|
|
|
- type="year"
|
|
|
- value-format="yyyy"
|
|
|
- placeholder="选择年"
|
|
|
- >
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="选择年份:">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="formInline.monthValue"
|
|
|
+ type="year"
|
|
|
+ value-format="yyyy"
|
|
|
+ placeholder="选择年"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="保险公司:">
|
|
|
+ <el-select
|
|
|
+ v-model="pageRequest.insuranceId"
|
|
|
+ filterable
|
|
|
+ class="widths"
|
|
|
+ clearable
|
|
|
+ @change="companySelectChange"
|
|
|
+ collapse-tags
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="val in companyList"
|
|
|
+ :key="val.id"
|
|
|
+ :label="val.name"
|
|
|
+ :value="val.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="formQuery">查询</el-button>
|
|
|
</el-form-item>
|
|
|
@@ -38,6 +59,7 @@
|
|
|
@findPage="findPage"
|
|
|
keyName="policyno"
|
|
|
settledName="批量生成"
|
|
|
+ :isshowpagination="false"
|
|
|
@handleSettled="handleTableSettled"
|
|
|
>
|
|
|
</kt-common-table>
|
|
|
@@ -53,6 +75,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ companyList:[],//保险公司数据
|
|
|
+ insuranceIdlist: [],//保险公司值
|
|
|
//地区编码数据
|
|
|
regionalCode: [],
|
|
|
formInline: {
|
|
|
@@ -60,6 +84,7 @@ export default {
|
|
|
},
|
|
|
pageRequest: {
|
|
|
//查询的默认条件
|
|
|
+ insuranceId:'',
|
|
|
},
|
|
|
dateTime: [],
|
|
|
companyList: [],
|
|
|
@@ -80,14 +105,27 @@ export default {
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.companyInt();
|
|
|
+ },
|
|
|
mounted() {
|
|
|
- this.formInline.monthValue=this.monthProcess();
|
|
|
+ this.formInline.monthValue = this.monthProcess();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //选择保险公司change事件
|
|
|
+ companySelectChange(val) {
|
|
|
+ this.pageRequest.insuranceId = val
|
|
|
+ },
|
|
|
+ //获取保险公司数据
|
|
|
+ companyInt() {
|
|
|
+ this.$api.letter.gainTopList().then((res) => {
|
|
|
+ this.companyList = res.data;
|
|
|
+ });
|
|
|
+ },
|
|
|
formQuery() {
|
|
|
+ // this.findPage();
|
|
|
this.$api.task
|
|
|
- .signingSourceResult(this.formInline.monthValue)
|
|
|
+ .signingSourceResult(this.formInline.monthValue,this.pageRequest.insuranceId)
|
|
|
.then((res) => {
|
|
|
this.pageResult = res.data;
|
|
|
});
|
|
|
@@ -123,7 +161,6 @@ export default {
|
|
|
that.$api.dict
|
|
|
.findByLableName(typeName)
|
|
|
.then(function (res) {
|
|
|
- console.log(res);
|
|
|
that[typeName + "options"] = res.data; // 把获取到的数据赋给this.data
|
|
|
})
|
|
|
.catch(function (error) {
|
|
|
@@ -133,13 +170,17 @@ export default {
|
|
|
//--数据字典 end --
|
|
|
// 右侧列表的方法Start
|
|
|
findPage(data) {
|
|
|
- let year=this.monthProcess();
|
|
|
+ let year = this.monthProcess();
|
|
|
// 获取分页数据
|
|
|
let that = this;
|
|
|
that.$api.task
|
|
|
- .signingSourceResult(year)
|
|
|
+ .signingSourceResult(year,that.pageRequest.insuranceId)
|
|
|
.then((res) => {
|
|
|
- that.pageResult = res.data;
|
|
|
+ if(res.code==200){
|
|
|
+ that.pageResult = res.data;
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.msg)
|
|
|
+ }
|
|
|
})
|
|
|
.then(data != null ? data.callback : "");
|
|
|
},
|
|
|
@@ -165,5 +206,10 @@ export default {
|
|
|
.widths {
|
|
|
width: 220px;
|
|
|
}
|
|
|
+.demo-form-inline{
|
|
|
+ height: 80px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+}
|
|
|
</style>
|
|
|
|