|
|
@@ -369,8 +369,6 @@
|
|
|
</el-dialog>
|
|
|
<el-dialog title="批量操作" :visible.sync="batchdialogVisible" width="30%">
|
|
|
<div class="tab-panestyle">
|
|
|
-
|
|
|
-
|
|
|
<el-form :inline="true" :model="batchUpdateForm" class="demo-form-inline tab-panecent" style="padding: 20px;">
|
|
|
<el-form-item label="费用起期:">
|
|
|
<el-date-picker size="small" style="width: 300px" v-model="batchUpdateForm.costsStartDate" type="datetime"
|
|
|
@@ -1411,19 +1409,14 @@ export default {
|
|
|
checkStartDate1() {
|
|
|
let tempStartDate = this.batchUpdateForm.costsStartDate;
|
|
|
let tempEndDate = this.batchUpdateForm.costsEndDate;
|
|
|
- if (!tempStartDate) {
|
|
|
- this.batchUpdateForm.costsEndDate = null;
|
|
|
- this.$message({
|
|
|
- message: "请先选择费用起期!",
|
|
|
- type: "error",
|
|
|
- });
|
|
|
- }
|
|
|
- if (!this.validateEndDate(tempStartDate, tempEndDate)) {
|
|
|
- this.batchUpdateForm.costsEndDate = null;
|
|
|
- this.$message({
|
|
|
- message: "费用止期不能小于/等于费用起期!",
|
|
|
- type: "error",
|
|
|
- });
|
|
|
+ if (tempStartDate && tempEndDate) {
|
|
|
+ if (!this.validateEndDate(tempStartDate, tempEndDate)) {
|
|
|
+ this.batchUpdateForm.costsEndDate = null;
|
|
|
+ this.$message({
|
|
|
+ message: "费用止期不能小于/等于费用起期!",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
//产品批量编辑
|
|
|
@@ -1496,8 +1489,8 @@ export default {
|
|
|
this.productpageRequest.pageNum = data.pageRequest.pageNum;
|
|
|
this.productpageRequest.pageSize = data.pageRequest.pageSize;
|
|
|
} else {
|
|
|
- this.productpageRequest.pageNum = 1;
|
|
|
- this.productpageRequest.pageSize = 20;
|
|
|
+ // this.productpageRequest.pageNum = 1;
|
|
|
+ // this.productpageRequest.pageSize = 20;
|
|
|
}
|
|
|
this.$api.insCompany
|
|
|
.productCostQuery(this.productpageRequest)
|