|
|
@@ -12,14 +12,35 @@
|
|
|
<el-form-item label="月份选择:">
|
|
|
<el-date-picker
|
|
|
v-model="mounthTime"
|
|
|
- type="month"
|
|
|
+ type="months"
|
|
|
@change="mounthChange"
|
|
|
value-format="yyyy-MM"
|
|
|
- placeholder="选择月"
|
|
|
+ placeholder="选择一个或多个月"
|
|
|
+ class="widths"
|
|
|
>
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="保险公司:">
|
|
|
+ <el-select
|
|
|
+ v-model="insuranceIdlist"
|
|
|
+ filterable
|
|
|
+ class="widths"
|
|
|
+ clearable
|
|
|
+ multiple
|
|
|
+ @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-col :span="1">
|
|
|
<el-button type="primary" size="small" @click="Search"
|
|
|
>查询</el-button
|
|
|
@@ -67,7 +88,6 @@
|
|
|
>
|
|
|
</kt-common-table>
|
|
|
</el-main>
|
|
|
-
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -81,12 +101,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- xlcell: 6,
|
|
|
- lgcell: 12,
|
|
|
- mdcell: 12,
|
|
|
- smcell: 24,
|
|
|
- xscell: 24,
|
|
|
- mounthTime:"",
|
|
|
+ value5: "",
|
|
|
+ mounthTime: [],
|
|
|
//地区编码数据
|
|
|
areaOptions: regionData,
|
|
|
regionalCode: [],
|
|
|
@@ -102,39 +118,17 @@ export default {
|
|
|
payee: "", // 收款人名称
|
|
|
bank: "", // 收款人开户行
|
|
|
},
|
|
|
- accountsRules: {
|
|
|
- employeeId: [
|
|
|
- { required: true, message: "请输入工号", trigger: "blur" },
|
|
|
- ],
|
|
|
- province: [
|
|
|
- { required: true, message: "省市区必填", trigger: "change" },
|
|
|
- ],
|
|
|
- group: [{ required: true, message: "请输入组", trigger: "blur" }],
|
|
|
- member: [{ required: true, message: "请输入组员", trigger: "blur" }],
|
|
|
- account: [
|
|
|
- { required: true, message: "收款人账户必填", trigger: "blur" },
|
|
|
- ],
|
|
|
- payee: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: "收款人必填",
|
|
|
- trigger: "blur",
|
|
|
- },
|
|
|
- ],
|
|
|
- bank: [{ required: true, message: "开户行必填", trigger: "blur" }],
|
|
|
- },
|
|
|
pageRequest: {
|
|
|
//查询的默认条件
|
|
|
-
|
|
|
+ insuranceId: "", //保险公司
|
|
|
+ yearMonthStr: "",
|
|
|
},
|
|
|
- yearMonthStr: "", //组员
|
|
|
- dateTime: [],
|
|
|
+ insuranceIdlist: [],
|
|
|
companyList: [],
|
|
|
+ dateTime: [],
|
|
|
institutionOptions: [],
|
|
|
dialogVisible: false,
|
|
|
- monthvalue: "",
|
|
|
- docOrderid: "",
|
|
|
- plyNoList: [],
|
|
|
+ companyList: [], //保险公司数据
|
|
|
// 右侧列表查询数据Start
|
|
|
pageResult: [],
|
|
|
columns: [
|
|
|
@@ -150,10 +144,15 @@ export default {
|
|
|
{ prop: "premium", label: "手续费", minWidth: 100 },
|
|
|
{ prop: "nonCopying", label: "车跟单", minWidth: 160 },
|
|
|
{ prop: "totalReceivable", label: "应收合计", minWidth: 160 },
|
|
|
+ { prop: "subsidyAmount", label: "补贴金额", minWidth: 160 },
|
|
|
+ { prop: "totalReceivableAmount", label: "总应收金额", minWidth: 160 },
|
|
|
],
|
|
|
+ imcccsw: "",
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.companyInt();
|
|
|
+ },
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
//省市区
|
|
|
@@ -167,15 +166,27 @@ export default {
|
|
|
Search() {
|
|
|
this.findPage();
|
|
|
},
|
|
|
- mounthChange(e){
|
|
|
- this.yearMonthStr=e;
|
|
|
+ companyInt() {
|
|
|
+ this.$api.letter.gainTopList().then((res) => {
|
|
|
+ this.companyList = res.data;
|
|
|
+ });
|
|
|
},
|
|
|
- // 右侧列表的方法Start
|
|
|
- findPage(data) {
|
|
|
+ //
|
|
|
+ companySelectChange(val) {
|
|
|
+ this.pageRequest.insuranceId = val.toString();
|
|
|
+ },
|
|
|
+ mounthChange(e) {
|
|
|
+ this.pageRequest.yearMonthStr = e.toString();
|
|
|
+ },
|
|
|
+ // 右侧列表的方法Start
|
|
|
+ findPage(data) {
|
|
|
// 获取分页数据
|
|
|
let that = this;
|
|
|
that.$api.task
|
|
|
- .accountsResult(that.yearMonthStr)
|
|
|
+ .accountsResult(
|
|
|
+ that.pageRequest.yearMonthStr,
|
|
|
+ that.pageRequest.insuranceId
|
|
|
+ )
|
|
|
.then((res) => {
|
|
|
that.pageResult = res.data;
|
|
|
})
|
|
|
@@ -219,18 +230,7 @@ export default {
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
- // //导入
|
|
|
- // writeOffUpload(file) {
|
|
|
- // var file = file.raw;
|
|
|
- // const params = new FormData(); // 声明formData数据类型
|
|
|
- // params.append("multipartFile", file);
|
|
|
- // params.append("type", "settle");
|
|
|
- // // this.$api.letter.uploadFile(params).then((res) => {
|
|
|
- // // if (res.code == "200") {
|
|
|
- // // this.writeOffRequest.dirid = res.data.id;
|
|
|
- // // }
|
|
|
- // // });
|
|
|
- // },
|
|
|
+
|
|
|
//导出
|
|
|
handlePrint() {
|
|
|
this.$api.task.excelExport(this.pageRequest).then((res) => {
|
|
|
@@ -302,40 +302,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
//--数据字典 end --
|
|
|
-
|
|
|
- exDetails({ row, index }) {
|
|
|
- let params = {
|
|
|
- orderNo: row.orderno,
|
|
|
- };
|
|
|
- this.$api.task.feeDetail(params).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- res.data.kindinfo.map((ele, index) => {
|
|
|
- switch (ele.kindCode) {
|
|
|
- case "A":
|
|
|
- ele.amount = "投保";
|
|
|
- break;
|
|
|
- case "D4":
|
|
|
- case "SY_FJ_YBW2":
|
|
|
- ele.unitAmount = this.toChinesNum(ele.unitAmount);
|
|
|
- break;
|
|
|
- case "MJ1":
|
|
|
- case "MJ2":
|
|
|
- case "MJ3":
|
|
|
- case "MJ4":
|
|
|
- ele.deductibleRate = ele.deductibleRate + "%";
|
|
|
- break;
|
|
|
- default:
|
|
|
- ele.amount = this.toChinesNum(ele.amount);
|
|
|
- }
|
|
|
- return ele;
|
|
|
- });
|
|
|
- this.orderInfo = res.data;
|
|
|
- this.quotedetailsdialogVisible = true;
|
|
|
- } else {
|
|
|
- this.$message.error("订单获取失败");
|
|
|
- }
|
|
|
- });
|
|
|
- },
|
|
|
transformTime(date) {
|
|
|
var d = new Date(date);
|
|
|
var strYear = d.getFullYear();
|
|
|
@@ -373,45 +339,6 @@ export default {
|
|
|
Seconds;
|
|
|
return datetime;
|
|
|
},
|
|
|
- toChinesNum(num) {
|
|
|
- let changeNum = ["零", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
|
- let unit = ["", "0", "00", "000", "0000"];
|
|
|
- num = parseInt(num);
|
|
|
- let getWan = (temp) => {
|
|
|
- let strArr = temp.toString().split("").reverse();
|
|
|
- let newNum = "";
|
|
|
- let newArr = [];
|
|
|
- strArr.forEach((item, index) => {
|
|
|
- newArr.unshift(
|
|
|
- item === "0" ? changeNum[item] : changeNum[item] + unit[index]
|
|
|
- );
|
|
|
- });
|
|
|
- let numArr = [];
|
|
|
- newArr.forEach((m, n) => {
|
|
|
- if (m !== "零") numArr.push(n);
|
|
|
- });
|
|
|
- if (newArr.length > 1) {
|
|
|
- newArr.forEach((m, n) => {
|
|
|
- if (newArr[newArr.length - 1] === "零") {
|
|
|
- if (n <= numArr[numArr.length - 1]) {
|
|
|
- newNum += m;
|
|
|
- }
|
|
|
- } else {
|
|
|
- newNum += m;
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- newNum = newArr[0];
|
|
|
- }
|
|
|
- return newNum;
|
|
|
- };
|
|
|
- let overWan = Math.floor(num / 10000);
|
|
|
- let noWan = num % 10000;
|
|
|
- if (noWan.toString().length < 4) {
|
|
|
- noWan = "0" + noWan;
|
|
|
- }
|
|
|
- return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
|
|
|
- },
|
|
|
lastMonth() {
|
|
|
// 获取当前日期
|
|
|
var currentDate = new Date();
|