|
|
@@ -394,7 +394,7 @@
|
|
|
</div>
|
|
|
<el-form :inline="true" :model="productpageRequest" class="demo-form-inline" size="small">
|
|
|
<el-form-item label="产品">
|
|
|
- <el-select v-model="productpageRequest.productCode" placeholder="选择产品" clearable>
|
|
|
+ <el-select v-model="productpageRequest.productCode" placeholder="选择产品" clearable multiple>
|
|
|
<el-option v-for="item in productsTypeoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
:value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
@@ -425,12 +425,12 @@
|
|
|
<el-button type="success" @click="expenseCopy">费用复制</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
- <kt-common-table :tableHeights="700" :SerialShow="false" :operationWidth="250" :showOperation="true"
|
|
|
- :showBatchDelete="false" :showBatchSettled="false" :showBatchPrint="false" :data="productPageResult"
|
|
|
+ <kt-common-table :tableHeights="680" :SerialShow="false" :operationWidth="250" :showOperation="true"
|
|
|
+ :showBatchDelete="true" :showBatchSettled="false" :showBatchPrint="false" :data="productPageResult"
|
|
|
:columns="productColumns" @findPage="productCostFindPage" button2Name="编辑"
|
|
|
- permsButton2="agreement:input:productCost" @handleButton2="productUpdate" button3Name="删除"
|
|
|
- permsButton3="agreement:input:productCost" @handleButton3="productDelete" button5Name="轨迹"
|
|
|
- @handleButton5="trajectory" button3Icon="">
|
|
|
+ permsButton2="agreement:input:productCost" @handleButton2="productUpdate" deleteName="批量修改"
|
|
|
+ @handleDelete="batchUpdate" button3Name="删除" permsButton3="agreement:input:productCost"
|
|
|
+ @handleButton3="productDelete" button5Name="轨迹" @handleButton5="trajectory" button3Icon="">
|
|
|
</kt-common-table>
|
|
|
</el-dialog>
|
|
|
<!-- 订单轨迹 -->
|
|
|
@@ -465,6 +465,14 @@
|
|
|
<el-form ref="productCostForm" :model="productCostForm" label-width="130px" :size="overSize"
|
|
|
:rules="costformRules">
|
|
|
<el-row>
|
|
|
+ <el-col :span="20" :offset="2" v-if="productCostAddDialogType=='edit'">
|
|
|
+ <el-form-item label="产品">
|
|
|
+ <el-select v-model="productUpdateObj.productId" placeholder="请选择" @change="productUpdateChange">
|
|
|
+ <el-option v-for="(item,index) in productsTypeoptions" :label="item.dictTag" :value="item.dictValue" :key="index" >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="20" :offset="2">
|
|
|
<el-form-item label="费用描述">
|
|
|
<el-input type="textarea" v-model="productCostForm.costsDescription" placeholder="输入费用描述内容"></el-input>
|
|
|
@@ -689,14 +697,15 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="规则起期">
|
|
|
- <el-date-picker value-format="yyyy-MM-dd" v-model="underwritingRulesForm.rulesStartDate" type="date" placeholder="选择日期">
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd" v-model="underwritingRulesForm.rulesStartDate" type="date"
|
|
|
+ placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="规则止期">
|
|
|
- <el-date-picker value-format="yyyy-MM-dd" v-model="underwritingRulesForm.rulesEndDate" type="date" @change="rulesEndDateChange"
|
|
|
- placeholder="选择日期">
|
|
|
+ <el-date-picker value-format="yyyy-MM-dd" v-model="underwritingRulesForm.rulesEndDate" type="date"
|
|
|
+ @change="rulesEndDateChange" placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -719,7 +728,7 @@
|
|
|
<el-col :span="5">
|
|
|
<el-form-item label="操作人">
|
|
|
<el-input clearable style="width:220px" size="small" placeholder="操作人"
|
|
|
- v-model="productHistoryRecordForm.modifier"></el-input>
|
|
|
+ v-model="productHistoryRecordForm.operator"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
@@ -797,7 +806,7 @@
|
|
|
<el-col :span="5">
|
|
|
<el-form-item label="操作人">
|
|
|
<el-input clearable style="width:220px" size="small" placeholder="操作人"
|
|
|
- v-model="productpageRequestForm.modifier"></el-input>
|
|
|
+ v-model="productpageRequestForm.operator"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
@@ -846,11 +855,21 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="产品">
|
|
|
- <el-select v-model="productcopyItemPageRequest.productCode" placeholder="选择产品">
|
|
|
+ <el-select v-model="productcopyItemPageRequest.productCode" placeholder="选择产品" multiple clearable>
|
|
|
<el-option v-for="item in productsTypeoptions" :key="item.dictValue" :label="item.dictTag"
|
|
|
:value="item.dictValue"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="费用起期">
|
|
|
+ <el-date-picker style="width: 100%" v-model="productcopyItemPageRequest.costStartDate" type="date"
|
|
|
+ placeholder="选择费用开始日期" value-format="yyyy-MM-dd">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="费用止期">
|
|
|
+ <el-date-picker style="width: 100%" v-model="productcopyItemPageRequest.costsEndDate" type="date"
|
|
|
+ placeholder="选择费用结束日期" @change="costsEndDateChange1" value-format="yyyy-MM-dd">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="费用描述">
|
|
|
<el-input v-model="productcopyItemPageRequest.costsDescription" clearable placeholder="费用描述"></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -885,6 +904,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
+
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="协议简称" prop="agreementAbbreviation">
|
|
|
<el-input v-model="agreementsHistoryInfo.agreement.agreementAbbreviation" placeholder="请输入协议简称"
|
|
|
@@ -1187,6 +1207,18 @@
|
|
|
<el-button size="small" type="primary" @click="nonVehicleRuleObjectSubmit">确 定</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="批量操作" :visible.sync="batchdialogVisible" width="30%">
|
|
|
+ <div class="dis">
|
|
|
+ <span>费用止期:</span>
|
|
|
+ <el-date-picker size="small" style="width: 300px" v-model="batchCostEndDate" type="date" placeholder="选择结束日期"
|
|
|
+ value-format="yyyy-MM-dd">
|
|
|
+ </el-date-picker>
|
|
|
+ </div>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="batchdialogVisible = false">取 消</el-button>
|
|
|
+ <el-button size="small" type="primary" @click="batchCostsubmit">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -1207,17 +1239,13 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- data: [
|
|
|
- {
|
|
|
- projectCode: "02746045001001",
|
|
|
- projectName: "国任VIP驾乘-非营运客车",
|
|
|
- children: [
|
|
|
- {
|
|
|
- id: 222,
|
|
|
- }
|
|
|
- ],
|
|
|
- }
|
|
|
- ],
|
|
|
+ productUpdateObj:{
|
|
|
+ productId:"",
|
|
|
+ productName:"",
|
|
|
+ },
|
|
|
+ batchCostEndDate: '',
|
|
|
+ batchCostIds: [],
|
|
|
+ batchdialogVisible: false,//批量弹窗
|
|
|
nonVehicleRuleObject: {
|
|
|
parentId: "",
|
|
|
parentName: "",
|
|
|
@@ -1469,6 +1497,7 @@ export default {
|
|
|
{ prop: "costsEndDate", label: "费用止期", minWidth: 160 },
|
|
|
{ prop: "costsDescription", label: "费用描述", minWidth: 220 },
|
|
|
{ prop: "desc", label: "费用因子描述", minWidth: 520 },
|
|
|
+ { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
|
|
|
{ prop: "isAudit", label: "审核状态", minWidth: 160, formatter: this.auditTypeFormation },
|
|
|
{
|
|
|
prop: "jqCarCostsProportion",
|
|
|
@@ -1592,14 +1621,16 @@ export default {
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
|
|
|
- { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
|
|
|
+
|
|
|
],
|
|
|
productcopyItemColumns: [
|
|
|
//数据列
|
|
|
{ prop: "productName", label: " 产品名称", minWidth: 160 },
|
|
|
{ prop: "costsStartDate", label: "费用起期", minWidth: 160 },
|
|
|
{ prop: "costsEndDate", label: "费用止期", minWidth: 160 },
|
|
|
+ { prop: "costsDescription", label: "费用描述", minWidth: 220 },
|
|
|
{ prop: "desc", label: "费用因子描述", minWidth: 520 },
|
|
|
+ { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
|
|
|
{
|
|
|
prop: "jqCarCostsProportion",
|
|
|
label: "费用比例(交强)",
|
|
|
@@ -1721,9 +1752,7 @@ export default {
|
|
|
label: "非车出口比例五级",
|
|
|
minWidth: 160,
|
|
|
},
|
|
|
- { prop: "costsDescription", label: "费用描述", minWidth: 220 },
|
|
|
|
|
|
- { prop: "priorityLevel", label: "方案优先级", minWidth: 120 },
|
|
|
],
|
|
|
productFilterList: [],
|
|
|
labelWidth: "160px",
|
|
|
@@ -1860,7 +1889,7 @@ export default {
|
|
|
//分页数据
|
|
|
productpageRequest: {
|
|
|
isAudit: null,
|
|
|
- productCode: "",
|
|
|
+ productCode: [],
|
|
|
costStartDate: "",
|
|
|
costsEndDate: "",
|
|
|
costsDescription: "",
|
|
|
@@ -1868,8 +1897,10 @@ export default {
|
|
|
pageSize: 20,
|
|
|
},
|
|
|
productcopyItemPageRequest: {
|
|
|
- productCode: "",
|
|
|
+ productCode: [],
|
|
|
agreementId: "",
|
|
|
+ costStartDate: "",
|
|
|
+ costsEndDate: "",
|
|
|
costsDescription: "",
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
|
@@ -2136,7 +2167,7 @@ export default {
|
|
|
underwritingRulesHistoryOperatorTime: "",
|
|
|
// 轨迹
|
|
|
ddgjdialogVisible: false,
|
|
|
- trajectoryTable: []
|
|
|
+ trajectoryTable: [],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -2235,6 +2266,10 @@ export default {
|
|
|
this.findLeftTreeData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ productUpdateChange(e) {
|
|
|
+ let name = this.productsTypeoptions.find(item => item.dictValue == e).dictTag;
|
|
|
+ this.productUpdateObj.productName=name;
|
|
|
+ },
|
|
|
accidentAddRule() {
|
|
|
this.nonVehicleRuledialogVisible = true;
|
|
|
this.nonVehicleRuledialogType = "add";
|
|
|
@@ -2395,6 +2430,16 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ costsEndDateChange1(e) {
|
|
|
+ let tempStartDate = this.productcopyItemPageRequest.costStartDate;
|
|
|
+ if (!tempStartDate) {
|
|
|
+ this.productcopyItemPageRequest.costsEndDate = null;
|
|
|
+ this.$message({
|
|
|
+ message: "起期不能为空",
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
productcopyItemQuery() {
|
|
|
this.productcopyItemFindPage();
|
|
|
},
|
|
|
@@ -2771,10 +2816,35 @@ export default {
|
|
|
expenseCopy() {
|
|
|
this.productCostCopyDialogVisible = true;
|
|
|
this.productcopyItemPageRequest.agreementId = "";
|
|
|
- this.productcopyItemPageRequest.productCode = "";
|
|
|
+ this.productcopyItemPageRequest.productCode = [];
|
|
|
this.productcopyItemResult = [];
|
|
|
|
|
|
},
|
|
|
+ //产品批量编辑
|
|
|
+ batchUpdate(data) {
|
|
|
+ this.batchCostIds = data;
|
|
|
+ this.batchdialogVisible = true;
|
|
|
+ },
|
|
|
+ batchCostsubmit() {
|
|
|
+ this.$api.insCompany.endDateBatch({
|
|
|
+ ids: this.batchCostIds,
|
|
|
+ costsEndDate: this.batchCostEndDate,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code == '200') {
|
|
|
+ this.batchdialogVisible = false;
|
|
|
+ this.productCostFindPage();
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'error',
|
|
|
+ message: res.msg,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
//产品编辑
|
|
|
productUpdate({ row, column }) {
|
|
|
this.$api.insCompany.productcostFactorQuery(row.id).then((res) => {
|
|
|
@@ -2793,12 +2863,14 @@ export default {
|
|
|
}
|
|
|
return val;
|
|
|
})
|
|
|
- this.$nextTick(() => {
|
|
|
- this.dynamicFormArray = obj.costsAttrLinks;
|
|
|
- obj.productId = [obj.productId]
|
|
|
- obj.productName = [obj.productName]
|
|
|
- this.productCostForm = obj;
|
|
|
- });
|
|
|
+ this.dynamicFormArray = obj.costsAttrLinks;
|
|
|
+
|
|
|
+ this.productCostForm = obj;
|
|
|
+ this.productUpdateObj.productId= this.productCostForm.productId;
|
|
|
+ this.productUpdateObj.productName= this.productCostForm.productName;
|
|
|
+ this.productCostForm.productId = [this.productCostForm.productId]
|
|
|
+ this.productCostForm.productName = [this.productCostForm.productName]
|
|
|
+ console.log(this.productCostForm)
|
|
|
this.productCostAddDialogType = "edit";
|
|
|
this.productCostAddDialogTitle = "产品编辑";
|
|
|
this.productCostAddVehicleFactorVisible = true;
|
|
|
@@ -3098,6 +3170,10 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
} else {
|
|
|
+ if(this.productUpdateObj.productId){
|
|
|
+ this.productCostForm.productId=[this.productUpdateObj.productId];
|
|
|
+ this.productCostForm.productName=[this.productUpdateObj.productName];
|
|
|
+ }
|
|
|
this.$api.insCompany
|
|
|
.productCostUpdate(this.productCostForm)
|
|
|
.then((res) => {
|
|
|
@@ -3249,16 +3325,16 @@ export default {
|
|
|
if (res.code == 200) {
|
|
|
this[type + "options"] = res.data.ddList;
|
|
|
//如果是产品编码,费用方案用的,单独塞进去一个兜底配置other
|
|
|
- if (type == "productsType") {
|
|
|
- for (let item of this.productsTypeoptions) {
|
|
|
- this.productsTypeRuleoptions.push(item);
|
|
|
- }
|
|
|
- let productItem = {};
|
|
|
- productItem.dictTag = "兜底配置";
|
|
|
- productItem.dictValue = "039999";
|
|
|
- productItem.sort = 5;
|
|
|
- this.productsTypeoptions.push(productItem);
|
|
|
- }
|
|
|
+ // if (type == "productsType") {
|
|
|
+ // for (let item of this.productsTypeoptions) {
|
|
|
+ // this.productsTypeRuleoptions.push(item);
|
|
|
+ // }
|
|
|
+ // let productItem = {};
|
|
|
+ // productItem.dictTag = "兜底配置";
|
|
|
+ // productItem.dictValue = "039999";
|
|
|
+ // productItem.sort = 5;
|
|
|
+ // this.productsTypeoptions.push(productItem);
|
|
|
+ // }
|
|
|
}
|
|
|
});
|
|
|
},
|