Commit 42be5ffc by wangzhihui

```

feat(earlyWarningManager): 添加业务类型参数支持

- 在MultipleRecording组件中新增biz属性,用于区分不同业务类型
  (1.延保 2.轻改 3.权益 4.二手车)
- 添加beforeSearchFn方法,在搜索前根据业务类型转换参数
- 在AddStrategy组件中传递biz参数给MultipleRecording组件
```
1 parent 992ad961
......@@ -101,6 +101,16 @@ import multipleMixin from "./multipleMixin";
export default {
name: "MultipleRecording",
mixins: [multipleMixin],
props: {
/**
* biz: 业务类型
* 1.延保 2.轻改 3.权益 4.二手车
*/
biz: {
type: Number,
default: 1,
},
},
data() {
return {
dialogConfig: {
......@@ -183,6 +193,14 @@ export default {
mounted() {
},
methods: {
beforeSearchFn() {
// 1.延保 2.轻改 3.权益 4.二手车
return new Promise((resolve) => {
this.searchFormSearch = this.getParams();
this.searchFormSearch.businessType = this.biz == 3 ? 1 : this.biz;
resolve();
});
},
getParams() {
let params = this.deepClone(this.searchForm);
if (params.receptionDate) {
......
......@@ -149,6 +149,7 @@
@dialogClose="staffTag1Visible = false">
</MultipleStaff>
<MultipleRecording ref="recordingTagRef"
:biz="biz"
:choose-data="formData.recordingList"
:visible="recordingTagVisible"
@choose="formatMultipleList($event, 'recordingList')"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!