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"; ...@@ -101,6 +101,16 @@ import multipleMixin from "./multipleMixin";
export default { export default {
name: "MultipleRecording", name: "MultipleRecording",
mixins: [multipleMixin], mixins: [multipleMixin],
props: {
/**
* biz: 业务类型
* 1.延保 2.轻改 3.权益 4.二手车
*/
biz: {
type: Number,
default: 1,
},
},
data() { data() {
return { return {
dialogConfig: { dialogConfig: {
...@@ -183,6 +193,14 @@ export default { ...@@ -183,6 +193,14 @@ export default {
mounted() { mounted() {
}, },
methods: { 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() { getParams() {
let params = this.deepClone(this.searchForm); let params = this.deepClone(this.searchForm);
if (params.receptionDate) { if (params.receptionDate) {
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
@dialogClose="staffTag1Visible = false"> @dialogClose="staffTag1Visible = false">
</MultipleStaff> </MultipleStaff>
<MultipleRecording ref="recordingTagRef" <MultipleRecording ref="recordingTagRef"
:biz="biz"
:choose-data="formData.recordingList" :choose-data="formData.recordingList"
:visible="recordingTagVisible" :visible="recordingTagVisible"
@choose="formatMultipleList($event, 'recordingList')" @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!