mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 07:06:45 +08:00
Compare commits
21 Commits
20241021上线
...
release/【2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0615088cae | ||
|
|
5a95805d87 | ||
|
|
256eefb80e | ||
|
|
bf74ade0a4 | ||
|
|
a8c66abbcd | ||
|
|
c0118b6cf0 | ||
|
|
f9bcf7d771 | ||
|
|
6813ad8ab4 | ||
|
|
c86107aaaf | ||
|
|
c1dfd27604 | ||
|
|
da88573133 | ||
|
|
9d6105f0ed | ||
|
|
d06b794cbc | ||
|
|
f7b7936dee | ||
|
|
280ec19892 | ||
|
|
464ca95731 | ||
|
|
55e200e36e | ||
|
|
47fb573cd6 | ||
|
|
fc68b2aab3 | ||
|
|
4fbb0e9470 | ||
|
|
a10e6d29a4 |
382
package-lock.json
generated
382
package-lock.json
generated
@@ -935,12 +935,6 @@
|
||||
"to-fast-properties": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"@gar/promisify": {
|
||||
"version": "1.1.3",
|
||||
"resolved": "https://registry.npmmirror.com/@gar/promisify/-/promisify-1.1.3.tgz",
|
||||
"integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==",
|
||||
"dev": true
|
||||
},
|
||||
"@hapi/address": {
|
||||
"version": "2.1.4",
|
||||
"resolved": "https://registry.npmmirror.com/@hapi/address/-/address-2.1.4.tgz",
|
||||
@@ -1032,45 +1026,6 @@
|
||||
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
|
||||
"dev": true
|
||||
},
|
||||
"@jridgewell/source-map": {
|
||||
"version": "0.3.6",
|
||||
"resolved": "https://registry.npmmirror.com/@jridgewell/source-map/-/source-map-0.3.6.tgz",
|
||||
"integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jridgewell/gen-mapping": "^0.3.5",
|
||||
"@jridgewell/trace-mapping": "^0.3.25"
|
||||
},
|
||||
"dependencies": {
|
||||
"@jridgewell/gen-mapping": {
|
||||
"version": "0.3.5",
|
||||
"resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
|
||||
"integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jridgewell/set-array": "^1.2.1",
|
||||
"@jridgewell/sourcemap-codec": "^1.4.10",
|
||||
"@jridgewell/trace-mapping": "^0.3.24"
|
||||
}
|
||||
},
|
||||
"@jridgewell/set-array": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmmirror.com/@jridgewell/set-array/-/set-array-1.2.1.tgz",
|
||||
"integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
|
||||
"dev": true
|
||||
},
|
||||
"@jridgewell/trace-mapping": {
|
||||
"version": "0.3.25",
|
||||
"resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
|
||||
"integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jridgewell/resolve-uri": "^3.1.0",
|
||||
"@jridgewell/sourcemap-codec": "^1.4.14"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@jridgewell/sourcemap-codec": {
|
||||
"version": "1.4.15",
|
||||
"resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
||||
@@ -1111,51 +1066,6 @@
|
||||
"integrity": "sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw==",
|
||||
"dev": true
|
||||
},
|
||||
"@npmcli/fs": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmmirror.com/@npmcli/fs/-/fs-1.1.1.tgz",
|
||||
"integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@gar/promisify": "^1.0.1",
|
||||
"semver": "^7.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"semver": {
|
||||
"version": "7.6.3",
|
||||
"resolved": "https://registry.npmmirror.com/semver/-/semver-7.6.3.tgz",
|
||||
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"@npmcli/move-file": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmmirror.com/@npmcli/move-file/-/move-file-1.1.2.tgz",
|
||||
"integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mkdirp": "^1.0.4",
|
||||
"rimraf": "^3.0.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"mkdirp": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-1.0.4.tgz",
|
||||
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
||||
"dev": true
|
||||
},
|
||||
"rimraf": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz",
|
||||
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"glob": "^7.1.3"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@soda/friendly-errors-webpack-plugin": {
|
||||
"version": "1.8.1",
|
||||
"resolved": "https://registry.npmmirror.com/@soda/friendly-errors-webpack-plugin/-/friendly-errors-webpack-plugin-1.8.1.tgz",
|
||||
@@ -2277,24 +2187,6 @@
|
||||
"integrity": "sha512-4B/qKCfeE/ODUaAUpSwfzazo5x29WD4r3vXiWsB7I2mSDAihwEqKO+g8GELZUQSSAo5e1XTYh3ZVfLyxBc12nA==",
|
||||
"dev": true
|
||||
},
|
||||
"aggregate-error": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/aggregate-error/-/aggregate-error-3.1.0.tgz",
|
||||
"integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"clean-stack": "^2.0.0",
|
||||
"indent-string": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"indent-string": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/indent-string/-/indent-string-4.0.0.tgz",
|
||||
"integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"ajv": {
|
||||
"version": "6.12.6",
|
||||
"resolved": "https://registry.npmmirror.com/ajv/-/ajv-6.12.6.tgz",
|
||||
@@ -3911,12 +3803,6 @@
|
||||
"source-map": "~0.6.0"
|
||||
}
|
||||
},
|
||||
"clean-stack": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://registry.npmmirror.com/clean-stack/-/clean-stack-2.2.0.tgz",
|
||||
"integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
|
||||
"dev": true
|
||||
},
|
||||
"cli-cursor": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/cli-cursor/-/cli-cursor-2.1.0.tgz",
|
||||
@@ -7130,15 +7016,6 @@
|
||||
"universalify": "^0.1.0"
|
||||
}
|
||||
},
|
||||
"fs-minipass": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/fs-minipass/-/fs-minipass-2.1.0.tgz",
|
||||
"integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minipass": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"fs-write-stream-atomic": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmmirror.com/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz",
|
||||
@@ -10712,68 +10589,6 @@
|
||||
"resolved": "https://registry.npmmirror.com/minimist/-/minimist-1.2.8.tgz",
|
||||
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="
|
||||
},
|
||||
"minipass": {
|
||||
"version": "3.3.6",
|
||||
"resolved": "https://registry.npmmirror.com/minipass/-/minipass-3.3.6.tgz",
|
||||
"integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"yallist": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"yallist": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"minipass-collect": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/minipass-collect/-/minipass-collect-1.0.2.tgz",
|
||||
"integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minipass": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"minipass-flush": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmmirror.com/minipass-flush/-/minipass-flush-1.0.5.tgz",
|
||||
"integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minipass": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"minipass-pipeline": {
|
||||
"version": "1.2.4",
|
||||
"resolved": "https://registry.npmmirror.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz",
|
||||
"integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minipass": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"minizlib": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmmirror.com/minizlib/-/minizlib-2.1.2.tgz",
|
||||
"integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minipass": "^3.0.0",
|
||||
"yallist": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"yallist": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"mississippi": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/mississippi/-/mississippi-3.0.0.tgz",
|
||||
@@ -14338,15 +14153,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"serialize-javascript": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/serialize-javascript/-/serialize-javascript-5.0.1.tgz",
|
||||
"integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"randombytes": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"serve-index": {
|
||||
"version": "1.9.1",
|
||||
"resolved": "https://registry.npmmirror.com/serve-index/-/serve-index-1.9.1.tgz",
|
||||
@@ -15394,188 +15200,6 @@
|
||||
"inherits": "2"
|
||||
}
|
||||
},
|
||||
"terser": {
|
||||
"version": "5.31.3",
|
||||
"resolved": "https://registry.npmmirror.com/terser/-/terser-5.31.3.tgz",
|
||||
"integrity": "sha512-pAfYn3NIZLyZpa83ZKigvj6Rn9c/vd5KfYGX7cN1mnzqgDcxWvrU5ZtAfIKhEXz9nRecw4z3LXkjaq96/qZqAA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@jridgewell/source-map": "^0.3.3",
|
||||
"acorn": "^8.8.2",
|
||||
"commander": "^2.20.0",
|
||||
"source-map-support": "~0.5.20"
|
||||
},
|
||||
"dependencies": {
|
||||
"acorn": {
|
||||
"version": "8.12.1",
|
||||
"resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.12.1.tgz",
|
||||
"integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"terser-webpack-plugin": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmmirror.com/terser-webpack-plugin/-/terser-webpack-plugin-4.2.3.tgz",
|
||||
"integrity": "sha512-jTgXh40RnvOrLQNgIkwEKnQ8rmHjHK4u+6UBEi+W+FPmvb+uo+chJXntKe7/3lW5mNysgSWD60KyesnhW8D6MQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"cacache": "^15.0.5",
|
||||
"find-cache-dir": "^3.3.1",
|
||||
"jest-worker": "^26.5.0",
|
||||
"p-limit": "^3.0.2",
|
||||
"schema-utils": "^3.0.0",
|
||||
"serialize-javascript": "^5.0.1",
|
||||
"source-map": "^0.6.1",
|
||||
"terser": "^5.3.4",
|
||||
"webpack-sources": "^1.4.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"cacache": {
|
||||
"version": "15.3.0",
|
||||
"resolved": "https://registry.npmmirror.com/cacache/-/cacache-15.3.0.tgz",
|
||||
"integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@npmcli/fs": "^1.0.0",
|
||||
"@npmcli/move-file": "^1.0.1",
|
||||
"chownr": "^2.0.0",
|
||||
"fs-minipass": "^2.0.0",
|
||||
"glob": "^7.1.4",
|
||||
"infer-owner": "^1.0.4",
|
||||
"lru-cache": "^6.0.0",
|
||||
"minipass": "^3.1.1",
|
||||
"minipass-collect": "^1.0.2",
|
||||
"minipass-flush": "^1.0.5",
|
||||
"minipass-pipeline": "^1.2.2",
|
||||
"mkdirp": "^1.0.3",
|
||||
"p-map": "^4.0.0",
|
||||
"promise-inflight": "^1.0.1",
|
||||
"rimraf": "^3.0.2",
|
||||
"ssri": "^8.0.1",
|
||||
"tar": "^6.0.2",
|
||||
"unique-filename": "^1.1.1"
|
||||
}
|
||||
},
|
||||
"chownr": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/chownr/-/chownr-2.0.0.tgz",
|
||||
"integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",
|
||||
"dev": true
|
||||
},
|
||||
"has-flag": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/has-flag/-/has-flag-4.0.0.tgz",
|
||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||
"dev": true
|
||||
},
|
||||
"jest-worker": {
|
||||
"version": "26.6.2",
|
||||
"resolved": "https://registry.npmmirror.com/jest-worker/-/jest-worker-26.6.2.tgz",
|
||||
"integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@types/node": "*",
|
||||
"merge-stream": "^2.0.0",
|
||||
"supports-color": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"lru-cache": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/lru-cache/-/lru-cache-6.0.0.tgz",
|
||||
"integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"yallist": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"merge-stream": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/merge-stream/-/merge-stream-2.0.0.tgz",
|
||||
"integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
|
||||
"dev": true
|
||||
},
|
||||
"mkdirp": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmmirror.com/mkdirp/-/mkdirp-1.0.4.tgz",
|
||||
"integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",
|
||||
"dev": true
|
||||
},
|
||||
"p-limit": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/p-limit/-/p-limit-3.1.0.tgz",
|
||||
"integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"yocto-queue": "^0.1.0"
|
||||
}
|
||||
},
|
||||
"p-map": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/p-map/-/p-map-4.0.0.tgz",
|
||||
"integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"aggregate-error": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"rimraf": {
|
||||
"version": "3.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/rimraf/-/rimraf-3.0.2.tgz",
|
||||
"integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"glob": "^7.1.3"
|
||||
}
|
||||
},
|
||||
"ssri": {
|
||||
"version": "8.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/ssri/-/ssri-8.0.1.tgz",
|
||||
"integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"minipass": "^3.1.1"
|
||||
}
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmmirror.com/supports-color/-/supports-color-7.2.0.tgz",
|
||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"has-flag": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"tar": {
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmmirror.com/tar/-/tar-6.2.1.tgz",
|
||||
"integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"chownr": "^2.0.0",
|
||||
"fs-minipass": "^2.0.0",
|
||||
"minipass": "^5.0.0",
|
||||
"minizlib": "^2.1.1",
|
||||
"mkdirp": "^1.0.3",
|
||||
"yallist": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"minipass": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/minipass/-/minipass-5.0.0.tgz",
|
||||
"integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"yallist": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-4.0.0.tgz",
|
||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"test-exclude": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmmirror.com/test-exclude/-/test-exclude-4.2.3.tgz",
|
||||
@@ -17615,12 +17239,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"yocto-queue": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/yocto-queue/-/yocto-queue-0.1.0.tgz",
|
||||
"integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",
|
||||
"dev": true
|
||||
},
|
||||
"yorkie": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/yorkie/-/yorkie-2.0.0.tgz",
|
||||
|
||||
@@ -116,12 +116,3 @@ export function saveOrUpdateGbc(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// GBC数据看板
|
||||
export function dataShow(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/gbc/data/show', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* @Date: 2021-03-26 10:38:37
|
||||
* @LastEditTime: 2021-04-02 16:10:30
|
||||
* @LastEditors: PangXingYue
|
||||
* @Description:
|
||||
* @Description:
|
||||
* @FilePath: \ebiz-h5\src\api\ebiz\cardList\cardList.js
|
||||
*/
|
||||
// 卡单接口
|
||||
@@ -95,7 +95,7 @@ export function getPayTemp(data) {
|
||||
//
|
||||
export function getShareParam(data) {
|
||||
return request({
|
||||
url: getUrl('/customer/account/getShareParam', 1),
|
||||
url: getUrl('/customer/account/getShareParam', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
@@ -168,12 +168,4 @@ export function deleteGroupCardByInsured(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
// 不让跨天支付 单新契约出单跨天支付流程优化
|
||||
export function cardContIsPay(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/card/contIsPay', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -117,15 +117,4 @@ export function funcPermCheck(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/** add by zhangweiwei FCRS-764 国富无忧两全保险(B款)新增主险职业校验逻辑 start at 20240807 */
|
||||
// 校验职业是否符合产品要求
|
||||
export function occupationCodeCheck(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/product/occupationCodeCheck', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
/** add by zhangweiwei FCRS-764 国富无忧两全保险(B款)新增主险职业校验逻辑 end at 20240807 */
|
||||
}
|
||||
@@ -335,6 +335,17 @@ export function getBankCardSignState(data) {
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 入司人自互保件校验
|
||||
export function CommitmentSelfCheck(data) {
|
||||
return request1({
|
||||
url: getUrl('/sale/commitment/CommitmentSelfCheck', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 获取柳州分红万能投连型产品编码集合
|
||||
export function getUniversalCodeLst(data) {
|
||||
return request({
|
||||
@@ -385,12 +396,4 @@ export function changeOrderStatus(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function riskLevelCheck(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/riskLevelCheck', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 228 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 342 KiB |
@@ -1046,6 +1046,10 @@ export default {
|
||||
{
|
||||
id: 2,
|
||||
text: '户口本'
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
text: '外国人永久居留身份证'
|
||||
}
|
||||
],
|
||||
// 卡单投保人证件类型
|
||||
@@ -1055,8 +1059,8 @@ export default {
|
||||
text: '居民身份证'
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
text: '户口本'
|
||||
id: 8,
|
||||
text: '外国人永久居留身份证'
|
||||
}
|
||||
],
|
||||
// 新市民身份
|
||||
@@ -3923,30 +3927,6 @@ export default {
|
||||
{
|
||||
code: "GFRS_M0086__cashValue",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "wuyouliangquanbkx",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "currentPaidUpAdditions_L",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "currentPaidUpAdditions_M",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "totalPaidUpAdditions_L",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "totalPaidUpAdditions_M",
|
||||
label: "元"
|
||||
},
|
||||
{
|
||||
code: "GFRS_M0094__cashValue",
|
||||
label: "元"
|
||||
}
|
||||
],
|
||||
// 卡单与短期险重新投保选择职业类别时,两个模块职业类型数据的排序不同,创建这个数据字典,用于在选择职业类别时,作为一个参数传入组件,
|
||||
@@ -3976,7 +3956,7 @@ export default {
|
||||
{ id: 'M', text: '母亲' }
|
||||
],
|
||||
// <!--------- 津贴申请专用 end --------->
|
||||
imageInfoType: [
|
||||
imageInfoType:[
|
||||
{ id: '1', text: '居民身份证正面' },
|
||||
{ id: '2', text: '居民身份证反面' },
|
||||
{ id: '3', text: '银行卡正面' },
|
||||
|
||||
@@ -62,8 +62,7 @@ let sale = [
|
||||
'/sale/insure/selfToHuman',
|
||||
'/sale/insure/orderPayStatusQuery',
|
||||
'/sale/order/revokeOrder',
|
||||
'/sale/product/getcompany',
|
||||
'/sale/product/occupationCodeCheck'
|
||||
'/sale/product/getcompany'
|
||||
] //在线投保
|
||||
let agentEnter = [
|
||||
'/agent/enter/share',
|
||||
|
||||
@@ -59,19 +59,16 @@ Validator.extend('email', {
|
||||
Validator.extend('name', {
|
||||
getMessage: () => '姓名长度为2-120个字符之内,只能输入汉字或者英文',
|
||||
validate: value => {
|
||||
return value
|
||||
// return /^[\u4e00-\u9fa5·]{1,15}$/.test(value)
|
||||
// return /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/.test(value);
|
||||
return /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/.test(value);
|
||||
}
|
||||
});
|
||||
//sale 投保名字 2个汉字,4个字母
|
||||
Validator.extend('salename', {
|
||||
getMessage: () => '亲,请确认您录入的姓名是否正确哦~',
|
||||
validate: value => {
|
||||
return value
|
||||
// return /^[\u4e00-\u9fa5·]{1,15}$/.test(value)
|
||||
// return /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/.test(value);
|
||||
// return /^[\u4e00-\u9fa5·]{2,120}$|^[a-zA-Z\s]{4,120}$/.test(value);
|
||||
return /^[\u4e00-\u9fa5·]{2,120}$|^[a-zA-Z\s]{4,120}$/.test(value);
|
||||
}
|
||||
});
|
||||
// sale - 详细地址 - 详细地址须同时包含汉字和数字,
|
||||
|
||||
@@ -52,14 +52,14 @@
|
||||
</div>
|
||||
<div v-if="tabActive == 'dataBoard'">
|
||||
<div style="margin: 10px;padding: 10px;background: #fff;border-radius: 5px;">
|
||||
<p style="font-size: 18px;line-height: 35px;font-weight: bold;">项目名称:{{calGbcProject.projectName}}</p>
|
||||
<p style="color: #a7a7a7;font-size: 14px;">数据截止日期:{{calGbcProject.endDate}}</p>
|
||||
<p style="font-size: 18px;line-height: 35px;font-weight: bold;">项目名称:国富人寿北京协和医院AA项目</p>
|
||||
<p style="color: #a7a7a7;font-size: 14px;">数据截止日期:2024-03-30</p>
|
||||
<div style="display: flex;justify-content: center;margin-top: 20px;">
|
||||
<van-circle v-model="currentRate" color="#E9332E" :stroke-width="60" size="80px" :rate="interviewConversionRate" :speed="100" :text="text" />
|
||||
<van-circle v-model="currentRate" color="#E9332E" :stroke-width="60" size="80px" :rate="85" :speed="100" :text="text" />
|
||||
</div>
|
||||
<p style="display: flex;justify-content: center;font-weight: bold;font-size: 14px;margin: 10px;">面谈转化率</p>
|
||||
<div style="padding: 10px;background: rgba(251, 235, 230, 0.5);border-radius: 5px;display: flex;justify-content: flex-start;flex-wrap:wrap;">
|
||||
<div v-for="(item,index) in calGbcProjectDataList" style="width: 33%;display: flex;justify-content: space-around;align-items: center;">
|
||||
<div v-for="(item,index) in dataList1" style="width: 33%;display: flex;justify-content: space-around;align-items: center;">
|
||||
<div>
|
||||
<div style="font-size: 12px;line-height: 22px;margin: 7px 0px;">
|
||||
<p style="display: flex;justify-content: center;font-size: 14px;">{{item.value}}</p>
|
||||
@@ -76,7 +76,7 @@
|
||||
<div style="margin: 10px;padding: 10px;background: #fff;border-radius: 5px;">
|
||||
<div style="border-bottom: 1px dashed #666;padding-bottom: 15px;">
|
||||
<p style="font-size: 18px;line-height: 35px;font-weight: bold;">项目成员分配</p>
|
||||
<p v-if="calGbcPersonList.length != 0" style="color: #a7a7a7;font-size: 14px;">数据截止日期:{{calGbcPersonList[0].endDate}}</p>
|
||||
<p style="color: #a7a7a7;font-size: 14px;">数据截止日期:2024-03-30</p>
|
||||
</div>
|
||||
<div style="margin-top: 10px;margin-bottom: 3px;background: rgba(255, 87, 83, 0.7);line-height: 30px;display: flex;align-items: center;color: #fff;font-size: 14px;">
|
||||
<span style="width: 18%;display: flex;justify-content: center;">成员</span>
|
||||
@@ -85,11 +85,11 @@
|
||||
<span style="width: 30%;display: flex;justify-content: center;">受理标保(元)</span>
|
||||
</div>
|
||||
<div>
|
||||
<div v-for="item in calGbcPersonList" style="background: rgba(251, 235, 230, 0.44);margin-bottom: 1px;line-height: 30px;display: flex;align-items: center;color: #333;font-size: 13px;">
|
||||
<span style="width: 18%;display: flex;justify-content: center;">{{item.personName}}</span>
|
||||
<span style="width: 22%;display: flex;justify-content: center;">{{item.roleName}}</span>
|
||||
<span style="width: 30%;display: flex;justify-content: center;">{{item.sumStandardPrem}}</span>
|
||||
<span style="width: 30%;display: flex;justify-content: center;">{{item.sumAcceptedPrem}}</span>
|
||||
<div v-for="item in dataList2" style="background: rgba(251, 235, 230, 0.44);margin-bottom: 1px;line-height: 30px;display: flex;align-items: center;color: #333;font-size: 13px;">
|
||||
<span style="width: 18%;display: flex;justify-content: center;">{{item.name}}</span>
|
||||
<span style="width: 22%;display: flex;justify-content: center;">{{item.role}}</span>
|
||||
<span style="width: 30%;display: flex;justify-content: center;">{{item.value1}}</span>
|
||||
<span style="width: 30%;display: flex;justify-content: center;">{{item.value2}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -97,15 +97,14 @@
|
||||
<div style="margin: 10px;padding: 10px;background: #fff;border-radius: 5px;">
|
||||
<div style="border-bottom: 1px dashed #666;padding-bottom: 15px;">
|
||||
<p style="font-size: 18px;line-height: 35px;font-weight: bold;">项目数据统计</p>
|
||||
<p v-if="calGbcTeamList.length != 0" style="color: #a7a7a7;font-size: 14px;">数据截止日期:{{calGbcTeamList[0].endDate}}</p>
|
||||
<p style="color: #a7a7a7;font-size: 14px;">数据截止日期:2024-03-30</p>
|
||||
</div>
|
||||
<div style="overflow: auto;">
|
||||
<table cellspacing=0 style="margin-top: 10px;">
|
||||
<thead style="background: rgba(255, 87, 83, 0.7);color: #fff;">
|
||||
<tr class="theadClass">
|
||||
<th style="padding: 0px 40px;">小组</th>
|
||||
<th>小组</th>
|
||||
<th>组长</th>
|
||||
<th>承保保费(元)</th>
|
||||
<th>获客人数</th>
|
||||
<th>获客率</th>
|
||||
<th>筛客人数</th>
|
||||
@@ -126,42 +125,40 @@
|
||||
<tbody>
|
||||
<tr class="tbodyClass">
|
||||
<td colspan="2">项目合并</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumInsuredPrem}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.guestNum}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.guestRate}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.guestSelectNum}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.guestSelectRate}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumStandardPrem}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumInsuredNum}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumInsuredCases}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.averagePrem}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.interviewConversionRate}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.acceptedRate}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumAcceptedPrem}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumAcceptedCases}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumMajorDiseaseCases}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.sumMajorDiseasePrem}}</td>
|
||||
<td>{{calGbcTeamTotalDTO.averageMajorDiseasePrem}}</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
<td>.00</td>
|
||||
</tr>
|
||||
<tr v-for="(item,index) in calGbcTeamList" :key="index" class="tbodyClass">
|
||||
<td class="teamNameTdClass">{{item.teamName}}</td>
|
||||
<td>{{item.leaderName}}</td>
|
||||
<td>{{item.sumInsuredPrem}}</td>
|
||||
<td>{{item.guestNum}}</td>
|
||||
<td>{{item.guestRate}}</td>
|
||||
<td>{{item.guestSelectNum}}</td>
|
||||
<td>{{item.guestSelectRate}}</td>
|
||||
<td>{{item.sumStandardPrem}}</td>
|
||||
<td>{{item.sumInsuredNum}}</td>
|
||||
<td>{{item.sumInsuredCases}}</td>
|
||||
<td>{{item.averagePrem}}</td>
|
||||
<td>{{item.interviewConversionRate}}</td>
|
||||
<td>{{item.acceptedRate}}</td>
|
||||
<td>{{item.sumAcceptedPrem}}</td>
|
||||
<td>{{item.sumAcceptedCases}}</td>
|
||||
<td>{{item.sumMajorDiseaseCases}}</td>
|
||||
<td>{{item.sumMajorDiseasePrem}}</td>
|
||||
<td>{{item.averageMajorDiseasePrem}}</td>
|
||||
<tr v-for="(item,index) in dataList3" :key="index" class="tbodyClass">
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
<td>{{item.name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -188,7 +185,7 @@
|
||||
<script>
|
||||
import { Tab, Tabs, Search, DropdownMenu, DropdownItem, Circle } from 'vant'
|
||||
import { getList } from '@/api/ebiz/product/product.js'
|
||||
import { getGBCappntlist, dataShow } from '@/api/GBC/GBC.js'
|
||||
import { getGBCappntlist } from '@/api/GBC/GBC.js'
|
||||
export default {
|
||||
components: {
|
||||
[Tab.name]: Tab,
|
||||
@@ -220,20 +217,33 @@ export default {
|
||||
customerList:[],
|
||||
currentRate: 0,
|
||||
colorList:['#E9332E','#CB9BFF','#54C6FA','#FF9B39','#60D64D','#4045F3','#FF59D9','#E8C0A2','#FCD338','#7584A2'],
|
||||
calGbcProject: {},
|
||||
interviewConversionRate: 0,
|
||||
calGbcProjectDataList:[
|
||||
{name:'累计受理保费(元)',value:'150,000.00', code: 'sumAcceptedPrem'},
|
||||
{name:'累计标保(元)',value:'250,000.00', code: 'sumStandardPrem'},
|
||||
{name:'件均保费(元)',value:'130,000.00', code: 'averagePrem'},
|
||||
{name:'累计受理人数(人)',value:'10856', code: 'sumAcceptedNum'},
|
||||
{name:'累计受理件数(件)',value:'356', code: 'sumAcceptedCases'},
|
||||
{name:'累计承保人数(人)',value:'9569', code: 'sumInsuredNum'},
|
||||
{name:'累计承保件数(件)',value:'262', code: 'sumInsuredCases'},
|
||||
dataList1:[
|
||||
{name:'累计受理保费(元)',value:'150,000.00'},
|
||||
{name:'累计标保(元)',value:'250,000.00'},
|
||||
{name:'件均保费(元)',value:'130,000.00'},
|
||||
{name:'件均保费(元)',value:'10856'},
|
||||
{name:'累计受理件数(件)',value:'356'},
|
||||
{name:'累计承保人数(人)',value:'9569'},
|
||||
{name:'累计承保件数(件)',value:'262'},
|
||||
],
|
||||
dataList2:[
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
{name:'张大大',role:'项目经理',value1:'15,000.00',value2:'15,000.00'},
|
||||
],
|
||||
dataList3:[
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
{name:'A组',role:'李艾',value1:'600',value2:'60'},
|
||||
],
|
||||
calGbcPersonList:[],
|
||||
calGbcTeamList:[],
|
||||
calGbcTeamTotalDTO: {},
|
||||
dataList4:[],
|
||||
}
|
||||
},
|
||||
@@ -244,34 +254,8 @@ export default {
|
||||
document.title = this.$route.query.projectName
|
||||
this.getGBCappntlist()
|
||||
this.getProductList()
|
||||
this.getDataShow()
|
||||
},
|
||||
methods: {
|
||||
getDataShow() {
|
||||
let params = {
|
||||
projectCode: this.$route.query.projectCode
|
||||
}
|
||||
dataShow(params).then(res => {
|
||||
this.calGbcPersonList = []
|
||||
this.calGbcTeamList = []
|
||||
if(res.result == '0') {
|
||||
this.calGbcProject = res.content.calGbcProject
|
||||
this.interviewConversionRate = Number(res.content.calGbcProject.interviewConversionRate)
|
||||
for(let key in res.content.calGbcProject) {
|
||||
this.calGbcProjectDataList.forEach(item => {
|
||||
if(item.code == key) {
|
||||
item.value = res.content.calGbcProject[key]
|
||||
}
|
||||
})
|
||||
}
|
||||
this.calGbcPersonList = res.content.calGbcPersonList
|
||||
this.calGbcTeamList = res.content.calGbcTeamList
|
||||
this.calGbcTeamTotalDTO = res.content.calGbcTeamTotalDTO
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
dropdownMenuChange(value){
|
||||
this.filterType = value
|
||||
this.searchvalue = ''
|
||||
@@ -455,8 +439,4 @@ export default {
|
||||
border-bottom:1px solid #fff;
|
||||
}
|
||||
}
|
||||
.teamNameTdClass{
|
||||
display: block;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;
|
||||
//width: 105px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -683,8 +683,8 @@ let bankListJson = [
|
||||
},
|
||||
{
|
||||
code: '50002',
|
||||
name: '广西农村商业联合银行股份有限公司',
|
||||
child: [{ code: '402611099974', name: '广西农村商业联合银行股份有限公司' }]
|
||||
name: '广西壮族自治区农村信用社联合社',
|
||||
child: [{ code: '402611099974', name: '广西壮族自治区农村信用社联合社' }]
|
||||
},
|
||||
{
|
||||
code: '20041',
|
||||
|
||||
@@ -1,22 +1,23 @@
|
||||
<template>
|
||||
<div class="insured-info-container pb50">
|
||||
<div class='insured-info-container pb50'>
|
||||
<!-- 基本信息 -->
|
||||
<van-cell-group class="mt10">
|
||||
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">推荐人信息</p>
|
||||
<van-field v-model="recommender.name" label="推荐人姓名" name="推荐人姓名" readonly />
|
||||
<van-field :value="getAgentGrade(recommender.agentGrade)" label="推荐人职级" name="推荐人职级" readonly />
|
||||
<van-cell-group class='mt10'>
|
||||
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>推荐人信息</p>
|
||||
<van-field v-model='recommender.name' label='推荐人姓名' name='推荐人姓名' readonly />
|
||||
<van-field :value='getAgentGrade(recommender.agentGrade)' label='推荐人职级' name='推荐人职级' readonly />
|
||||
<!-- <van-field v-model="recommender.applyNo" label="推荐人工号" name="推荐人工号" readonly /> -->
|
||||
<van-field v-model="recommender.unitName" label="销售机构" name="销售机构" readonly />
|
||||
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">个人信息</p>
|
||||
<van-field v-model="userInfo.name" label="姓名" name="姓名" placeholder="请输入" v-validate="'required|name'" clearable />
|
||||
<van-field v-model='recommender.unitName' label='销售机构' name='销售机构' readonly />
|
||||
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>个人信息</p>
|
||||
<van-field v-model='userInfo.name' label='姓名' name='姓名' placeholder='请输入' v-validate="'required|name'"
|
||||
clearable />
|
||||
<van-field
|
||||
:value="userInfo.applGrade | idToText('applGrade')"
|
||||
v-validate="'required'"
|
||||
readonly
|
||||
label="职级"
|
||||
name="职级"
|
||||
right-icon="arrow"
|
||||
placeholder="请选择职级"
|
||||
label='职级'
|
||||
name='职级'
|
||||
right-icon='arrow'
|
||||
placeholder='请选择职级'
|
||||
@click="toSelect('13')"
|
||||
/>
|
||||
|
||||
@@ -24,57 +25,62 @@
|
||||
:value="userInfo.idType | idToText('idType')"
|
||||
v-validate="'required'"
|
||||
readonly
|
||||
label="证件类型"
|
||||
name="证件类型"
|
||||
right-icon="arrow"
|
||||
placeholder="请选择证件类型"
|
||||
label='证件类型'
|
||||
name='证件类型'
|
||||
right-icon='arrow'
|
||||
placeholder='请选择证件类型'
|
||||
@click="toSelect('1')"
|
||||
/>
|
||||
<van-field
|
||||
v-model="userInfo.idNo"
|
||||
placeholder="请输入证件号码"
|
||||
label="证件号码"
|
||||
name="证件号码"
|
||||
v-model='userInfo.idNo'
|
||||
placeholder='请输入证件号码'
|
||||
label='证件号码'
|
||||
name='证件号码'
|
||||
v-validate="'required'"
|
||||
maxlength="18"
|
||||
maxlength='18'
|
||||
clearable
|
||||
@blur="getRelatedData(userInfo.idNo)"
|
||||
@blur='getRelatedData(userInfo.idNo)'
|
||||
/>
|
||||
<select-radio :radios="sexRadio" label="性别" name="性别" v-validate="'required'" :required="false" :value.sync="userInfo.sex"></select-radio>
|
||||
<van-field v-model="userInfo.mobile" label="手机号" name="手机号" placeholder="请输入手机号" v-validate="'required|mobile'" maxlength="11" clearable />
|
||||
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" v-validate="'required'" maxlength="6">
|
||||
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
|
||||
<select-radio :radios='sexRadio' label='性别' name='性别' v-validate="'required'" :required='false'
|
||||
:value.sync='userInfo.sex'></select-radio>
|
||||
<van-field v-model='userInfo.mobile' label='手机号' name='手机号' placeholder='请输入手机号' v-validate="'required|mobile'"
|
||||
maxlength='11' clearable />
|
||||
<van-field v-model='userInfo.authCode' center clearable label name='短信验证码' placeholder='请输入短信验证码'
|
||||
v-validate="'required'" maxlength='6'>
|
||||
<van-button slot='button' size='small' type='danger' @click='getCode' :disabled='codeDisabled'
|
||||
v-no-more-click='1000'>
|
||||
{{ codeDisabled ? `${countDown}s后重新获取` : '获取验证码' }}
|
||||
</van-button>
|
||||
</van-field>
|
||||
</van-cell-group>
|
||||
<van-button type="danger" class="bottom-btn" @click="nextStep" v-no-more-click="1000">提交信息</van-button>
|
||||
<van-button type='danger' class='bottom-btn' @click='nextStep' v-no-more-click='1000'>提交信息</van-button>
|
||||
|
||||
<!-- 字段选择 -->
|
||||
<van-popup v-model="popupShow" position="bottom">
|
||||
<van-picker show-toolbar :columns="columns" @confirm="onConfirm" @cancel="popupShow = false" />
|
||||
<van-popup v-model='popupShow' position='bottom'>
|
||||
<van-picker show-toolbar :columns='columns' @confirm='onConfirm' @cancel='popupShow = false' />
|
||||
</van-popup>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio, Dialog } from 'vant'
|
||||
import SelectRadio from '@/components/ebiz/SelectRadio'
|
||||
import FieldDatePicter from '@/components/ebiz/FieldDatePicter'
|
||||
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker'
|
||||
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||
import areaList from '@/assets/js/utils/area'
|
||||
import { getTokenForAgent, agentInfowxSubmit, getTokenForUserModel } from '@/api/ebiz/agentEenter/agentEenter'
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
import getAreaName from '@/assets/js/utils/get-area-name'
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
||||
import { idToData } from '@/assets/js/utils/verification'
|
||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||
import axios from 'axios'
|
||||
import index from '@/config/index'
|
||||
import { getAuthCode } from '@/api/ebiz/sale/sale'
|
||||
import { Field, CellGroup, Checkbox, Popup, Picker, Area, RadioGroup, Radio, Dialog } from 'vant';
|
||||
import SelectRadio from '@/components/ebiz/SelectRadio';
|
||||
import FieldDatePicter from '@/components/ebiz/FieldDatePicter';
|
||||
import OccupationPicker from '@/components/ebiz/occipation/OccupationPicker';
|
||||
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker';
|
||||
import DataDictionary from '@/assets/js/utils/data-dictionary';
|
||||
import areaList from '@/assets/js/utils/area';
|
||||
import { getTokenForAgent, agentInfowxSubmit, getTokenForUserModel } from '@/api/ebiz/agentEenter/agentEenter';
|
||||
import utilsAge from '@/assets/js/utils/age';
|
||||
import getAreaName from '@/assets/js/utils/get-area-name';
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan';
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck';
|
||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js';
|
||||
import { idToData } from '@/assets/js/utils/verification';
|
||||
import { weixinShare } from '@/assets/js/utils/wxShare.js';
|
||||
import axios from 'axios';
|
||||
import index from '@/config/index';
|
||||
import { getAuthCode,CommitmentSelfCheck } from '@/api/ebiz/sale/sale';
|
||||
|
||||
|
||||
export default {
|
||||
name: 'insuredInfo',
|
||||
@@ -124,7 +130,7 @@ export default {
|
||||
sex: '', //投保人性别
|
||||
idType: '1', //证件类型
|
||||
idNo: '', //证件号码
|
||||
mobile: '', //手机号
|
||||
mobile: '',//手机号
|
||||
applGrade: '' // 职级
|
||||
},
|
||||
areaList: areaList,
|
||||
@@ -133,52 +139,51 @@ export default {
|
||||
codeDisabled: false, //获取验证码按钮是否禁用
|
||||
countDown: 60, //获取短信验证码倒计时
|
||||
sessionId: '' //后台返回的 id
|
||||
}
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
if (this.$route.query.content) {
|
||||
window.localStorage.setItem('wxShareDesc', this.$route.query.content)
|
||||
window.localStorage.setItem('wxShareDesc', this.$route.query.content);
|
||||
}
|
||||
weixinShare({
|
||||
title: '国富人寿欢迎你!',
|
||||
imgUrl: this.$assetsUrl + 'images/logo.png',
|
||||
desc: localStorage.wxShareDesc,
|
||||
link: location.origin + '/#/agentEenter/ShareInfo?token=' + localStorage.token
|
||||
})
|
||||
});
|
||||
},
|
||||
created() {
|
||||
if (this.$route.query.token) {
|
||||
// this.token = this.$route.query.token
|
||||
window.localStorage.setItem('token', this.$route.query.token)
|
||||
window.localStorage.setItem('token', this.$route.query.token);
|
||||
} else {
|
||||
this.$toast.fail('链接已失效,请联系代理人重新分享!')
|
||||
this.$toast.fail('链接已失效,请联系代理人重新分享!');
|
||||
}
|
||||
this.getData()
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData: function () {
|
||||
let self = this
|
||||
getData: function() {
|
||||
let self = this;
|
||||
self.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
});
|
||||
getTokenForUserModel({
|
||||
token: this.$CacheUtils.getLocItem('token')
|
||||
}).then(function(response) {
|
||||
self.$toast.clear();
|
||||
console.log('response', response);
|
||||
if (response.result == '0') {
|
||||
self.recommender = response;
|
||||
} else {
|
||||
this.$toast.fail(response.resultMessage);
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
self.$toast.clear()
|
||||
console.log('response', response)
|
||||
if (response.result == '0') {
|
||||
self.recommender = response
|
||||
} else {
|
||||
this.$toast.fail(response.resultMessage)
|
||||
}
|
||||
})
|
||||
.catch(function (error) {
|
||||
.catch(function(error) {
|
||||
// this.$toast.fail(error)
|
||||
})
|
||||
});
|
||||
// var self = this
|
||||
// //获取推荐人信息
|
||||
// let data = {
|
||||
@@ -198,59 +203,75 @@ export default {
|
||||
// })
|
||||
},
|
||||
getAgentGrade(agentGrade) {
|
||||
let result = ''
|
||||
let result = '';
|
||||
DataDictionary.agentGrade.map((item, index) => {
|
||||
for (var key in item) {
|
||||
if (key == agentGrade) {
|
||||
result = item[agentGrade]
|
||||
result = item[agentGrade];
|
||||
}
|
||||
}
|
||||
})
|
||||
return result
|
||||
});
|
||||
return result;
|
||||
},
|
||||
// 下一步
|
||||
nextStep() {
|
||||
var self = this
|
||||
var self = this;
|
||||
self.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
this.$validator.validate().then((valid) => {
|
||||
});
|
||||
this.$validator.validate().then(valid => {
|
||||
if (true === valid) {
|
||||
self.$toast.clear()
|
||||
self.$toast.clear();
|
||||
if (this.userInfo.idType == '1') {
|
||||
//身份证
|
||||
// 证件号码规则校验
|
||||
if (!idNoCheck.isIdno(this.userInfo.idNo)) {
|
||||
return this.$toast('请录入正确的身份证')
|
||||
return this.$toast('请录入正确的身份证');
|
||||
}
|
||||
if (this.userInfo.idNo.length == '18') {
|
||||
//18位身份证第17位是性别位, 奇男偶女
|
||||
let sexSign = this.userInfo.idNo.substr(16, 1)
|
||||
let sexSign = this.userInfo.idNo.substr(16, 1);
|
||||
if ((parseInt(sexSign) % 2 == 0 && this.userInfo.sex != 1) || (parseInt(sexSign) % 2 != 0 && this.userInfo.sex != 0)) {
|
||||
return this.$toast('性别录入与身份证不符')
|
||||
return this.$toast('性别录入与身份证不符');
|
||||
}
|
||||
}
|
||||
self.save()
|
||||
self.save();
|
||||
} else {
|
||||
self.save()
|
||||
self.save();
|
||||
}
|
||||
} else {
|
||||
this.$toast(this.$validator.errors.all()[0])
|
||||
this.$toast(this.$validator.errors.all()[0]);
|
||||
}
|
||||
})
|
||||
});
|
||||
},
|
||||
async save() {
|
||||
// else {
|
||||
// console.log(resp.resultMessage);
|
||||
// }
|
||||
let str = '是否确认提交?手机号与证件信息会作为您入司的重要信息,一旦提交无法再次修改!'
|
||||
async save() {
|
||||
let checkStr ='';
|
||||
let recmd=this.userInfo;
|
||||
recmd.source='XG';
|
||||
recmd.agentCode='A860101000001';
|
||||
recmd.birthday='';
|
||||
let checkData = {
|
||||
token: this.$CacheUtils.getLocItem('token'),
|
||||
recmdDTO:recmd
|
||||
};
|
||||
const resp = await CommitmentSelfCheck(checkData);
|
||||
if (resp.result == '0' && resp.content.data.ruleList && resp.content.data.ruleList.length ) {
|
||||
checkStr='<span style="color: red;width:auto; display: block;text-align: left">温馨提示:</span>'+resp.content.data.ruleList[0].retMsg
|
||||
}
|
||||
// else {
|
||||
// console.log(resp.resultMessage);
|
||||
// }
|
||||
let str ='是否确认提交?手机号与证件信息会作为您入司的重要信息,一旦提交无法再次修改!<br/> '
|
||||
+checkStr;
|
||||
// let str ='是否确认提交?手机号与证件信息会作为您入司的重要信息,一旦提交无法再次修改!<br/> ' +
|
||||
// '<span style="color: red;width:auto; display: block;text-align: left">温馨提示:</span>尊敬的代理人,您好!您在我司属于二次入司人员,原名下保单85668955426144655640已失效,为更好的维护您的利益,建议您先将保单复效后再继续提交入司申请,否则上号后两年内不可投保新契约自保件,保单复效办理,详询4006946688';
|
||||
Dialog.confirm({
|
||||
title: '提示',
|
||||
message: str,
|
||||
messageAlign: 'left'
|
||||
messageAlign:'left'
|
||||
}).then(() => {
|
||||
let data = {
|
||||
// userModel: { //线上去掉
|
||||
@@ -260,21 +281,21 @@ export default {
|
||||
ebizEnterCustomerDto: this.userInfo,
|
||||
smsCodeDTO: { smsId: this.sessionId, code: this.userInfo.authCode }
|
||||
// ebizReferrerDto: this.recommender
|
||||
}
|
||||
console.log(data)
|
||||
let that = this
|
||||
};
|
||||
console.log(data);
|
||||
let that = this;
|
||||
that.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
});
|
||||
agentInfowxSubmit(data)
|
||||
.then((res) => {
|
||||
.then(res => {
|
||||
// console.log(res)
|
||||
if (res.result == '0') {
|
||||
this.$store.commit('updateAgentEnterApplyMsg', this.userInfo)
|
||||
that.$toast.clear()
|
||||
this.$store.commit('updateAgentEnterApplyMsg', this.userInfo);
|
||||
that.$toast.clear();
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
@@ -285,80 +306,80 @@ export default {
|
||||
routerInfo: {
|
||||
path: `/agentEenter/ShareInfoSuccess`
|
||||
}
|
||||
})
|
||||
});
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.$toast(res.resultMessage);
|
||||
}
|
||||
})
|
||||
.then(function (err) {
|
||||
console.log(err)
|
||||
})
|
||||
})
|
||||
.then(function(err) {
|
||||
console.log(err);
|
||||
});
|
||||
});
|
||||
},
|
||||
//弹框选择
|
||||
toSelect(pickerType, valueKey) {
|
||||
;[this.popupShow, this.pickerType] = [true, pickerType]
|
||||
if (valueKey) this.valueKey = valueKey
|
||||
;[this.popupShow, this.pickerType] = [true, pickerType];
|
||||
if (valueKey) this.valueKey = valueKey;
|
||||
if (pickerType == '1') {
|
||||
this.columns = DataDictionary.idType
|
||||
this.columns = DataDictionary.idType;
|
||||
} else if (pickerType == '13') {
|
||||
this.columns = DataDictionary.applGrade
|
||||
this.columns = DataDictionary.applGrade;
|
||||
}
|
||||
},
|
||||
// //确认选择字段
|
||||
onConfirm(value) {
|
||||
this.popupShow = false
|
||||
this.popupShow = false;
|
||||
if (this.pickerType == '1') {
|
||||
this.userInfo.idType = value.id
|
||||
this.userInfo.idType = value.id;
|
||||
} else if (this.pickerType == '13') {
|
||||
this.userInfo.applGrade = value.id
|
||||
this.userInfo.applGrade = value.id;
|
||||
}
|
||||
},
|
||||
getRelatedData(val) {
|
||||
if (this.userInfo.idType != '1') {
|
||||
return
|
||||
return;
|
||||
}
|
||||
if (idToData(val).text) {
|
||||
;[this.userInfo.idNo, this.userInfo.sex] = ['', '']
|
||||
return this.$toast(idToData(val).text)
|
||||
}
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
this.userInfo.sex = idToData(val).sex;
|
||||
},
|
||||
|
||||
//获取验证码
|
||||
getCode() {
|
||||
if (this.userInfo.mobile == '') {
|
||||
return this.$toast('请填写手机号')
|
||||
return this.$toast('请填写手机号');
|
||||
}
|
||||
this.codeDisabled = true
|
||||
this.codeDisabled = true;
|
||||
//倒计时
|
||||
this.timeId = setInterval(() => {
|
||||
this.countDown--
|
||||
this.countDown--;
|
||||
if (this.countDown <= 0) {
|
||||
window.clearInterval(this.timeId)
|
||||
this.codeDisabled = false
|
||||
this.countDown = 60
|
||||
window.clearInterval(this.timeId);
|
||||
this.codeDisabled = false;
|
||||
this.countDown = 60;
|
||||
}
|
||||
}, 1000)
|
||||
}, 1000);
|
||||
let data = {
|
||||
operateType: 'appntInfoEntry',
|
||||
type: 'H5',
|
||||
operateCode: this.userInfo.mobile,
|
||||
system: 'agentApp',
|
||||
operateCodeType: '0'
|
||||
}
|
||||
};
|
||||
//获取验证码
|
||||
getAuthCode(data).then((res) => {
|
||||
console.log(res)
|
||||
getAuthCode(data).then(res => {
|
||||
console.log(res);
|
||||
if (res.result == 0) {
|
||||
this.sessionId = res.sessionId
|
||||
this.sessionId = res.sessionId;
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.$toast(res.resultMessage);
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang='scss' scoped>
|
||||
.insured-info-container {
|
||||
|
||||
@@ -246,6 +246,7 @@ import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
import riskRules from '@/views/ebiz/common/risk-rules'
|
||||
import {idNoCheck8} from "../sale/js/verification";
|
||||
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
@@ -550,7 +551,7 @@ export default {
|
||||
this.columns = DataDictionary.nativeplace
|
||||
this.pickerIndex = this.userInfo.nativeplace - 1 > 0 ? this.userInfo.nativeplace - 1 : 0
|
||||
} else if (pickerType == '2') {
|
||||
this.columns = DataDictionary.cardListInsuredIdType.slice(0, 1)
|
||||
this.columns = DataDictionary.cardListInsuredIdType
|
||||
console.log(this.columns, '=======================this.columns==================')
|
||||
} else if (pickerType == '3') {
|
||||
this.columns = DataDictionary.degree
|
||||
@@ -852,6 +853,11 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this.userInfo.idType == '8') {
|
||||
if (idNoCheck8(this.userInfo,'cardList').text){
|
||||
return this.$toast(idNoCheck8(this.userInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
if (this.manageComCode == '45' && (this.userInfo.isNewPeopleFlag == '' || this.userInfo.isNewPeopleFlag == null || this.userInfo.isNewPeopleFlag == undefined)) {
|
||||
return this.$toast('投保人新市民身份不能为空')
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<van-cell-group class='mt10'>
|
||||
<p style='border-bottom: 1px solid #ebedf0' class='fs15 fwb pl10 pv12'>产品信息</p>
|
||||
<van-field :value='riskDTO.riskName' label='保障方案' name='保障方案' readonly />
|
||||
<van-field class="dutyAmt" value='保额' label='保险责任' name='保险责任' readonly input-align="right"/>
|
||||
<van-field value='保额' label='保险责任' name='保险责任' readonly />
|
||||
<div v-if='riskDTO.dutyLst && riskDTO.dutyLst.length>0'>
|
||||
<div class='duty' v-for='(item, index) in riskDTO.dutyLst' :key='index'>
|
||||
<van-field :value="item.amt/10000 +'万'" :label='item.dutyName' :name='item.dutyName' readonly />
|
||||
@@ -194,13 +194,4 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
.dutyAmt{
|
||||
.van-field__label {
|
||||
width: 60vw;
|
||||
}
|
||||
|
||||
.van-field__control {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -313,6 +313,7 @@ import dateUtils from '@/assets/js/utils/date-utils'
|
||||
import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
import riskRules from '@/views/ebiz/common/risk-rules'
|
||||
import {idNoCheck8} from "../sale/js/verification";
|
||||
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
@@ -1267,11 +1268,17 @@ export default {
|
||||
return this.$toast('证件有效期不正常,26周岁至45周岁公民身份证有效期应小于等于20年')
|
||||
}
|
||||
}
|
||||
}else if(this.insuredInfo.idType == '2'){
|
||||
}
|
||||
else if(this.insuredInfo.idType == '2'){
|
||||
if (idToData(this.insuredInfo.idNo).age >= 16) {
|
||||
return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件')
|
||||
}
|
||||
}
|
||||
else if (this.insuredInfo.idType == '8') {
|
||||
if (idNoCheck8(this.insuredInfo,'cardList').text){
|
||||
return this.$toast(idNoCheck8(this.insuredInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0022') {
|
||||
// return
|
||||
// 如果是未成年人
|
||||
|
||||
@@ -198,7 +198,7 @@ Vue.use(Checkbox).use(CheckboxGroup)
|
||||
Vue.use(Field)
|
||||
Vue.use(Button)
|
||||
import { acceptInsurance, getBankList, underWrite, getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import { saveOrUpdateAccount, getPayTemp, getShareParam, cardContIsPay } from '@/api/ebiz/cardList/cardList.js'
|
||||
import { saveOrUpdateAccount, getPayTemp, getShareParam } from '@/api/ebiz/cardList/cardList.js'
|
||||
import BankCardScan from '@/components/ebiz/sale/BankCardScan'
|
||||
import areaList from '@/assets/js/utils/area'
|
||||
import Loading from '@/components/ebiz/Loading'
|
||||
@@ -219,7 +219,7 @@ export default {
|
||||
data() {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
return {
|
||||
insuredDTOs: [], //被保人信息
|
||||
insuredDTOs:[],//被保人信息
|
||||
// 银行卡支付图片地址
|
||||
src: this.$assetsUrl + 'images/cardImg.png',
|
||||
// 微信支付图片地址
|
||||
@@ -291,7 +291,7 @@ export default {
|
||||
accBankCity: '',
|
||||
areaStr: '',
|
||||
mainRiskCode: '',
|
||||
isGroupCard: '' //1 团险标识
|
||||
isGroupCard:'' //1 团险标识
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -311,9 +311,9 @@ export default {
|
||||
this.bankListName = orderDetail.orderAccountDTO.bankName
|
||||
this.orderStatus = orderDetail.orderInfoDTO.orderStatus
|
||||
localStorage.orderNo = orderDetail.orderInfoDTO.orderNo
|
||||
orderDetail.insuredDTOs.forEach((item) => {
|
||||
item.riskDTOLst.forEach((ii) => {
|
||||
if (ii.isMainRisk == '0') {
|
||||
orderDetail.insuredDTOs.forEach(item=>{
|
||||
item.riskDTOLst.forEach(ii=>{
|
||||
if(ii.isMainRisk == '0'){
|
||||
this.mainRiskCode = ii.mainRiskCode
|
||||
}
|
||||
})
|
||||
@@ -478,7 +478,7 @@ export default {
|
||||
let data = {
|
||||
operateType: 'bank_type'
|
||||
}
|
||||
getBankList(data).then((res) => {
|
||||
getBankList(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
console.log('银行卡列表', res.content)
|
||||
self.bankList = res.content
|
||||
@@ -496,23 +496,23 @@ export default {
|
||||
},
|
||||
getPayTemp() {
|
||||
getPayTemp({ orderNo: window.localStorage.getItem('orderNo') })
|
||||
.then((res) => {
|
||||
.then(res => {
|
||||
if (res.result == '0') {
|
||||
this.noEdit = res.content.flag != 'false'
|
||||
}
|
||||
})
|
||||
.catch((e) => {
|
||||
.catch(e => {
|
||||
console.error(e)
|
||||
})
|
||||
},
|
||||
// 获取支付详情
|
||||
getOrderDetail() {
|
||||
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then((res) => {
|
||||
getOrderDetail({ orderNo: window.localStorage.getItem('orderNo') }).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.insuredDTOs = res.orderDTO.insuredDTOs
|
||||
res.orderDTO.insuredDTOs.forEach((item) => {
|
||||
item.riskDTOLst.forEach((ii) => {
|
||||
if (ii.isMainRisk == '0') {
|
||||
res.orderDTO.insuredDTOs.forEach(item=>{
|
||||
item.riskDTOLst.forEach(ii=>{
|
||||
if(ii.isMainRisk == '0'){
|
||||
this.mainRiskCode = ii.mainRiskCode
|
||||
}
|
||||
})
|
||||
@@ -544,7 +544,7 @@ export default {
|
||||
result: '',
|
||||
resultMessage: '交易处理成功',
|
||||
uwResult: '02',
|
||||
cvalidate: res.orderDTO.orderInfoDTO.cvalidate //生效日期
|
||||
cvalidate:res.orderDTO.orderInfoDTO.cvalidate //生效日期
|
||||
}
|
||||
// this.bankListName = res.orderDTO.orderAccountDTO.bankName
|
||||
this.underWriteData.bankCode =
|
||||
@@ -573,7 +573,7 @@ export default {
|
||||
result: '',
|
||||
resultMessage: '交易处理失败',
|
||||
uwResult: '00',
|
||||
cvalidate: res.orderDTO.orderInfoDTO.cvalidate //生效日期
|
||||
cvalidate:res.orderDTO.orderInfoDTO.cvalidate //生效日期
|
||||
}
|
||||
// window.localStorage.setItem('underWriteData', JSON.stringify(underWriteData))
|
||||
this.$toast(res.resultMessage)
|
||||
@@ -615,38 +615,21 @@ export default {
|
||||
if (true !== valid) {
|
||||
return this.$toast(this.$validator.errors.all()[0])
|
||||
}
|
||||
let data = {
|
||||
orderNo: window.localStorage.getItem('orderNo')
|
||||
}
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
// 支付之前要先调用一下是否跨天,不让跨天支付 过了24点 保费不一样 CYN 2024.06.28
|
||||
let res = await cardContIsPay(data)
|
||||
this.$toast.clear()
|
||||
if (res.result == '0') {
|
||||
switch (this.orderStatus) {
|
||||
case '56':
|
||||
case '57':
|
||||
this.payMent()
|
||||
break
|
||||
// case '02':
|
||||
// break
|
||||
default:
|
||||
if (!this.noEdit) {
|
||||
this.payMent(true)
|
||||
return true
|
||||
} else {
|
||||
this.acceptInsurance()
|
||||
return this.$toast('当前不可支付')
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.isLoading = false
|
||||
switch (this.orderStatus) {
|
||||
case '56':
|
||||
case '57':
|
||||
this.payMent()
|
||||
break
|
||||
// case '02':
|
||||
// break
|
||||
default:
|
||||
if (!this.noEdit) {
|
||||
this.payMent(true)
|
||||
return true
|
||||
} else {
|
||||
this.acceptInsurance()
|
||||
return this.$toast('当前不可支付')
|
||||
}
|
||||
}
|
||||
},
|
||||
acceptInsurance() {
|
||||
@@ -655,7 +638,7 @@ export default {
|
||||
cardOrder: 'cardOrder',
|
||||
payType: this.radio
|
||||
}
|
||||
acceptInsurance(data).then((res) => {
|
||||
acceptInsurance(data).then(res => {
|
||||
// this.$jump({
|
||||
// flag: 'h5',
|
||||
// extra: {
|
||||
@@ -765,44 +748,13 @@ export default {
|
||||
let res = await saveOrUpdateAccount(data)
|
||||
this.$toast.clear()
|
||||
if (res.result == '0') {
|
||||
if (this.mainRiskCode == 'GFRS_M0058') {
|
||||
if(this.mainRiskCode == 'GFRS_M0058'){
|
||||
Dialog.alert({
|
||||
title: '特别提醒',
|
||||
messageAlign: 'left',
|
||||
confirmButtonText: '确认',
|
||||
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`
|
||||
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`,
|
||||
})
|
||||
.then(() => {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
this.acceptInsurance()
|
||||
})
|
||||
.catch(() => {})
|
||||
} else {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
this.acceptInsurance()
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.isLoading = false
|
||||
}
|
||||
} else {
|
||||
if (this.mainRiskCode == 'GFRS_M0058') {
|
||||
Dialog.alert({
|
||||
title: '特别提醒',
|
||||
messageAlign: 'left',
|
||||
confirmButtonText: '确认',
|
||||
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`
|
||||
})
|
||||
.then(() => {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
@@ -812,8 +764,42 @@ export default {
|
||||
})
|
||||
this.acceptInsurance()
|
||||
})
|
||||
.catch(() => {})
|
||||
.catch(() => {
|
||||
})
|
||||
}else{
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
this.acceptInsurance()
|
||||
}
|
||||
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
this.isLoading = false
|
||||
}
|
||||
} else {
|
||||
if(this.mainRiskCode == 'GFRS_M0058'){
|
||||
Dialog.alert({
|
||||
title: '特别提醒',
|
||||
messageAlign: 'left',
|
||||
confirmButtonText: '确认',
|
||||
message: `2023年9月1日起生效的惠桂保保单,不能参保的5类既往症中增加了“神经性耳聋”,敬请注意!`,
|
||||
})
|
||||
.then(() => {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
this.acceptInsurance()
|
||||
})
|
||||
.catch(() => {
|
||||
})
|
||||
}else{
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
@@ -822,6 +808,7 @@ export default {
|
||||
})
|
||||
this.acceptInsurance()
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
// 选择微信支付校验身份证类型
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
<div v-if="payStatus == '1'" class=" p10 pb250 bg-white">
|
||||
<span class="pt150 fs14"> 核心承保中,请您稍后查看</span>
|
||||
<div class="pt20 red"> 温馨提示:<br />
|
||||
1.请关注微信公众号【国富人寿保险】查询、下载电子保单及电子发票。<br />
|
||||
2.为保障您的权益,投保成功后广西保险行业协会对您进行短信调研,请您注意查看短信。如您满意,请回复“1”。<br />
|
||||
如有疑问,可拨打国富人寿全国服务热线400-694-6688咨询。<br />
|
||||
1.保单承保后,您或被保险人可拨打国富人寿客户服务电话(400-694-6688)、或登陆国富人寿官网(www.e-guofu.com)以及关注官方微信公众号【国富人寿保险】查询、下载电子保单。<br />
|
||||
2.本保险产品提供电子发票。如您需要发票,您可以关注微信公众号【国富人寿保险】自助下载电子发票。<br />
|
||||
3.为保障您的权益,投保成功后广西保险行业协会对您进行短信调研,了解您本次保险消费的相关情况,请您注意查看短信。如您满意,请回复“1”。如有疑问,可拨打国富人寿全国服务热线400-694-6688咨询。<br />
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="payStatus == '2' || payStatus == '4' || payStatus == '8'" class=" p10 pb250 bg-white">
|
||||
@@ -78,7 +78,6 @@ export default {
|
||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||
return {
|
||||
isWeixin,
|
||||
orderNo: '',
|
||||
// 保融收银台返回的支付流水号
|
||||
paySeqNo: '',
|
||||
// 接口返回数据前,不做页面渲染
|
||||
@@ -210,10 +209,6 @@ export default {
|
||||
} else {
|
||||
this.queryPayState()
|
||||
}
|
||||
this.card.orderNo = window.localStorage.getItem('orderNo')
|
||||
let orderDetail = JSON.parse(sessionStorage.orderDetail)
|
||||
this.card.insuredName = orderDetail.insuredDTOs[0].name
|
||||
this.card.cvalidate = orderDetail.insuredDTOs[0].riskDTOLst[0].cvaliDate
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
document.body.style.backgroundColor = ''
|
||||
|
||||
@@ -92,7 +92,7 @@ export default {
|
||||
//只有惠桂保团险添加此提示
|
||||
if( this.$route.query.isGroupCard == '1' ){
|
||||
Dialog.alert({
|
||||
title: '投保提示',
|
||||
title: '温馨提示',
|
||||
messageAlign: 'left',
|
||||
confirmButtonText: '确认',
|
||||
message: `1、您即将进入投保流程,为维护您的合法权益,投保时请您务必仔细阅读和确认保险条款、投保须知、免除保险人责任条款、犹豫期条款等页面所有内容。<br/>2.您的投保过程和操作将被记录。`,
|
||||
|
||||
@@ -272,7 +272,6 @@
|
||||
label='职业类别'
|
||||
placeholder='请输入'
|
||||
name='职业类别'
|
||||
readonly
|
||||
:value='insuredInfo.occupationName'
|
||||
right-icon='arrow'
|
||||
/>
|
||||
@@ -537,7 +536,7 @@
|
||||
placeholder='请选择'
|
||||
@click="toSelect('10')"
|
||||
/>
|
||||
<van-field v-if="this.itemProductDTOS.productCode === 'GFRS_M0041'||this.itemProductDTOS.productCode === 'GFRS_M0052'||this.itemProductDTOS.productCode === 'GFRS_M0071'||this.itemProductDTOS.productCode === 'GFRS_M0091'" v-model='cvaliDate' readonly label='生效日期' name='生效日期' placeholder='请输入' />
|
||||
<van-field v-if="this.itemProductDTOS.productCode === 'GFRS_M0041'||this.itemProductDTOS.productCode === 'GFRS_M0052'||this.itemProductDTOS.productCode === 'GFRS_M0071'" v-model='cvaliDate' readonly label='生效日期' name='生效日期' placeholder='请输入' />
|
||||
<FieldDatePicter
|
||||
v-else
|
||||
label='指定生效日期'
|
||||
@@ -596,10 +595,6 @@
|
||||
||this.itemProductDTOS.productCode === 'GFRS_M0052' || this.itemProductDTOS.productCode === 'GFRS_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064'">
|
||||
注:为未成年子女投保的人身保险,在被保险人成年之前,因被保险人身故给付的保险金总和不得超过国务院保险监督管理机构规定的限额,身故给付的保险金额总和的约定也不得超过前述限额。但航空意外死亡保险金额及重大自然灾害意外死亡保险金额不计算在上述规定限额之中。
|
||||
</div>
|
||||
<div class='tips'
|
||||
v-if="this.itemProductDTOS.productCode === 'GFRS_M0091'">
|
||||
注:为未成年子女投保的人身保险,在被保险人成年之前,因被保险人身故给付的保险金总和不得超过国务院保险监督管理机构规定的限额,身故给付的保险金额总和的约定也不得超过前述限额。
|
||||
</div>
|
||||
<van-goods-action style='z-index: 99'>
|
||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'
|
||||
>总保费:<span style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{ allPrice }}</span
|
||||
@@ -959,7 +954,7 @@ export default {
|
||||
}
|
||||
//金掌桂无忧卡,少儿安康卡两款卡单产品关闭指定生效日功能,默认自承保之日起第四日零时生效
|
||||
//GFRS_M0052 国富人寿少儿安康保险产品组合、GFRS_M0041 国富无忧卡-国富人寿综合意外伤害保险计划
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0052' || this.itemProductDTOS.productCode === 'GFRS_M0041' || this.itemProductDTOS.productCode === 'GFRS_M0071'|| this.itemProductDTOS.productCode === 'GFRS_M0091') {
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0052' || this.itemProductDTOS.productCode === 'GFRS_M0041' || this.itemProductDTOS.productCode === 'GFRS_M0071') {
|
||||
this.cvaliDate = dateUtils.formatDate(afterDate.getAfterDays(Number(this.trialList[0].timeliness)), 'yyyy-MM-dd')
|
||||
//保险期间计算逻辑
|
||||
let val = this.cvaliDate
|
||||
@@ -1034,6 +1029,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
//试算逻辑国富万福卡GFRS_M0071
|
||||
insureTrial() {
|
||||
// if(this.insuredInfo.birthday || that.$route.query.relationToAppnt == '1'){
|
||||
if (this.userInfo.relationToInsured == 1) {
|
||||
@@ -1131,11 +1127,9 @@ export default {
|
||||
let { code, name, healthGrade, lifeGrade } = data
|
||||
//校验主合同被保险人寿险职业等级
|
||||
//投保同人时,验证投保人职业,投被不同人时验证被保人职业
|
||||
if(this.itemProductDTOS.productCode != 'GFRS_M0091') {
|
||||
if(!(this.userInfo.relationToInsured != 1 && this.insureType === '1')){
|
||||
if (riskRules.lifeGradeLimitCard(this.trialDTOS, this, lifeGrade)) {
|
||||
return
|
||||
}
|
||||
if(!(this.userInfo.relationToInsured != 1 && this.insureType === '1')){
|
||||
if (riskRules.lifeGradeLimitCard(this.trialDTOS, this, lifeGrade)) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1152,14 +1146,10 @@ export default {
|
||||
this.userInfo.occupationName = name
|
||||
this.userInfo.occupationCode = code
|
||||
this.userInfo.occupationType = lifeGrade
|
||||
this.userInfo.lifeGrade = lifeGrade
|
||||
this.userInfo.healthGrade = healthGrade
|
||||
} else if (this.insureType === '2') {
|
||||
this.insuredInfo.occupationName = name
|
||||
this.insuredInfo.occupationCode = code
|
||||
this.insuredInfo.occupationType = lifeGrade
|
||||
this.insuredInfo.lifeGrade = lifeGrade
|
||||
this.insuredInfo.healthGrade = healthGrade
|
||||
}
|
||||
},
|
||||
/**
|
||||
@@ -1834,14 +1824,9 @@ export default {
|
||||
this.insuredInfo.homeAddress = data.homeAddress //家庭详细地址
|
||||
//2516--三个学平险--被保险人职业类别默认学生,允许修改。
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064') {
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'||this.itemProductDTOS.productCode === 'GFRS_M0064') {
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
} else if (this.itemProductDTOS.productCode === 'GFRS_M0062') {
|
||||
this.insuredInfo.occupationCode = '2099908'
|
||||
this.insuredInfo.occupationName = '学龄前儿童'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
} else {
|
||||
this.insuredInfo.occupationCode = data.occupationCode
|
||||
this.insuredInfo.occupationName = data.occupationName
|
||||
@@ -2075,7 +2060,12 @@ export default {
|
||||
return this.$toast(idNoCheck8(this.userInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date(this.cvaliDate))
|
||||
else if (this.insuredInfo.idType == '8') {
|
||||
if (idNoCheck8(this.insuredInfo,'cardList').text){
|
||||
return this.$toast(idNoCheck8(this.insuredInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
let insuredAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
console.log('计算年龄', insuredAge)
|
||||
//如果证件类型是身份证或户口本
|
||||
if (this.insuredInfo.idType == '1') {
|
||||
@@ -2214,11 +2204,6 @@ export default {
|
||||
return this.$toast('您填写的证件号码有误')
|
||||
}
|
||||
}
|
||||
else if (this.insuredInfo.idType == '8') {
|
||||
if (idNoCheck8(this.insuredInfo,'cardList').text){
|
||||
return this.$toast(idNoCheck8(this.insuredInfo,'cardList').text)
|
||||
}
|
||||
}
|
||||
if (this.itemProductDTOS.productCode === 'GFRS_M0022') {
|
||||
// return
|
||||
// 如果是未成年人
|
||||
@@ -2261,21 +2246,35 @@ export default {
|
||||
return this.$toast('被保险人的年龄不可以超过65周岁')
|
||||
}
|
||||
}
|
||||
else if (this.itemProductDTOS.productCode === 'GFRS_M0091') {
|
||||
console.log(this.proSchemeCode)
|
||||
if (this.proSchemeCode == '06860438-B') {
|
||||
if (insuredAge < 10) {
|
||||
return this.$toast('被保险人的年龄需要大于10岁')
|
||||
}
|
||||
}
|
||||
if (insuredAge < 0) {
|
||||
return this.$toast('被保险人的年龄需要大于28天')
|
||||
}
|
||||
if (insuredAge > 65) {
|
||||
return this.$toast('被保险人的年龄不可以超过65周岁')
|
||||
}
|
||||
}
|
||||
let insuredInfoAge = utilsAge.getAge(this.insuredInfo.birthday, new Date(this.cvaliDate))
|
||||
|
||||
//投保人需大于等于 18 周岁
|
||||
// if (age < 18) {
|
||||
// return this.$toast('投保人必须是具有民事行为能力且有固定职业和收入的自然人,请确定')
|
||||
// }
|
||||
|
||||
let insuredInfoAge = utilsAge.getAge(this.insuredInfo.birthday, new Date())
|
||||
// if (this.itemProductDTOS.productCode === 'GFRS_M0049') {
|
||||
// //幼儿园:2岁≤被保险人≤7岁
|
||||
// if (insuredInfoAge < 2 || insuredInfoAge > 7) {
|
||||
// return this.$toast('被保险人年龄应为2岁-7岁,请重新选择。')
|
||||
// }
|
||||
// } else if (this.itemProductDTOS.productCode === 'GFRS_M0048') {
|
||||
// //义务教育:5岁≤被保险人≤18岁
|
||||
// if (insuredInfoAge < 5 || insuredInfoAge > 18) {
|
||||
// return this.$toast('被保险人年龄应为5岁-18岁,请重新选择。')
|
||||
// }
|
||||
// } else if (this.itemProductDTOS.productCode === 'GFRS_M0050') {
|
||||
// //高中及高等教育:15岁≤被保险人≤40岁
|
||||
// if (insuredInfoAge < 15 || insuredInfoAge > 40) {
|
||||
// return this.$toast('被保险人年龄应为15岁-40岁,请重新选择。')
|
||||
// }
|
||||
// } else if (this.itemProductDTOS.productCode === 'GFRS_M0052') {
|
||||
// //GFRS-2641--少儿安康:17岁≤被保险人
|
||||
// if (insuredInfoAge > 17) {
|
||||
// return this.$toast('被保险人年龄应为0岁-17岁,请重新选择。')
|
||||
// }
|
||||
// }
|
||||
|
||||
if(this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
|| this.itemProductDTOS.productCode == 'GFRS_M0052' ||this.itemProductDTOS.productCode === 'GFRS_M0062' || this.itemProductDTOS.productCode === 'GFRS_M0063'
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0064'){
|
||||
@@ -2310,6 +2309,14 @@ export default {
|
||||
if (this.insuredInfo.effectiveDateType) {
|
||||
this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
}
|
||||
if ((this.userInfo.relationToInsured != '1' && this.userInfo.relationToInsured != '3')
|
||||
|| (this.userInfo.relationToInsured == '3' && insuredAge >= 18)){
|
||||
//金掌桂投保的所有卡单产品:
|
||||
//(1)与被保人关系非本人(不含父母)
|
||||
//(2)与被保人关系为父母,被保人年龄大于等于18周岁
|
||||
// 点击【立即投保】时,提示以下内容并阻断投保
|
||||
return this.$toast('以死亡为给付条件的保险合同,投保人和被保险人需为同一人(父母为未成年子女投保除外)。请分享给参保人完成投保。')
|
||||
}
|
||||
switch (this.userInfo.homeArea) {
|
||||
case "500129":
|
||||
this.userInfo.homeArea = '500229'
|
||||
@@ -2386,27 +2393,6 @@ export default {
|
||||
this.insuredInfo.homeArea = '500243'
|
||||
break
|
||||
}
|
||||
console.log(this.insuredInfo,'this.insuredInfo')
|
||||
if(this.itemProductDTOS.productCode === 'GFRS_M0091'){
|
||||
if(this.proSchemeCode == '06860438-A') {
|
||||
if (Number(this.insuredInfo.lifeGrade) > 3) {
|
||||
this.$toast('寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return
|
||||
}
|
||||
}
|
||||
if(this.proSchemeCode == '06860438-B') {
|
||||
if (Number(this.insuredInfo.lifeGrade) > 4) {
|
||||
this.$toast('寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return
|
||||
}
|
||||
}
|
||||
if(!this.proSchemeCode) {
|
||||
if (Number(this.insuredInfo.lifeGrade) > 4) {
|
||||
this.$toast('寿险职业等级不适合此款险种,请选择其他险种!')
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
this.infoUpdate()
|
||||
// console.log('success')
|
||||
} else {
|
||||
@@ -2552,9 +2538,6 @@ export default {
|
||||
return
|
||||
}
|
||||
params.orderDTO.insuredDTOs[0].riskDTOLst = riskDTOLst
|
||||
if(params.orderDTO.insuredDTOs[0].occupationCode == '2099907') {
|
||||
params.orderDTO.insuredDTOs[0].occupationType = '1'
|
||||
}
|
||||
|
||||
let resultData = await saveOrUpdateCard(params)
|
||||
if (resultData.result == 0) {
|
||||
@@ -2759,11 +2742,10 @@ export default {
|
||||
// GFRS-2641--被保险人职业:幼儿园版默认学龄前儿童,义务教育、高中/高等教育默认一般学生
|
||||
// 被保险人婚姻默认未婚,允许修改
|
||||
// 被保险人手机及邮箱默认投保人,允许修改
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0050'
|
||||
if (this.itemProductDTOS.productCode == 'GFRS_M0048' || this.itemProductDTOS.productCode == 'GFRS_M0050' || this.itemProductDTOS.productCode === 'GFRS_M0062'
|
||||
|| this.itemProductDTOS.productCode === 'GFRS_M0064') {
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.mobile = this.userInfo.mobile
|
||||
this.insuredInfo.email = this.userInfo.email
|
||||
@@ -2775,22 +2757,8 @@ export default {
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
this.isInsuredCertiexpiredate = true
|
||||
} else if (this.itemProductDTOS.productCode == 'GFRS_M0049' || this.itemProductDTOS.productCode === 'GFRS_M0063') {
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
// this.insuredInfo.certiexpiredate = '9999-12-31'
|
||||
// 去掉--选择户口本时,是否长期默认为是,不可点击,有效止期隐藏(证件类型为户口本时,被保人年龄小于16周岁时,户口本有效止期长期变更为第16周岁日期)
|
||||
// this.effectiveDateTypeAbleInsured = true
|
||||
// this.isInsuredCertiexpiredate = false
|
||||
this.isInsuredCertiexpiredate = true
|
||||
}
|
||||
else if (this.itemProductDTOS.productCode === 'GFRS_M0062') {
|
||||
this.insuredInfo.occupationCode = '2099908'
|
||||
this.insuredInfo.occupationName = '学龄前儿童'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
this.insuredInfo.idType = '2'
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
@@ -2807,7 +2775,6 @@ export default {
|
||||
// this.insuredInfo.effectiveDateType = true
|
||||
this.insuredInfo.occupationCode = '2099907'
|
||||
this.insuredInfo.occupationName = '一般学生'
|
||||
this.insuredInfo.occupationType = '1'
|
||||
this.insuredInfo.marriage = '2'
|
||||
// 去掉--选择户口本时,是否长期默认为是,不可点击,有效止期隐藏(证件类型为户口本时,被保人年龄小于16周岁时,户口本有效止期长期变更为第16周岁日期)
|
||||
this.effectiveDateTypeAbleInsured = true
|
||||
@@ -2879,7 +2846,7 @@ export default {
|
||||
//被保人职业变化时,重新调用试算接口
|
||||
'insuredInfo.occupationName': {
|
||||
handler(newV) {
|
||||
if (newV && (this.itemProductDTOS.productCode === 'GFRS_M0071' || this.itemProductDTOS.productCode === 'GFRS_M0091')) {
|
||||
if (newV && this.itemProductDTOS.productCode === 'GFRS_M0071') {
|
||||
this.insureTrial()
|
||||
}
|
||||
},
|
||||
@@ -2889,7 +2856,8 @@ export default {
|
||||
//投被同人时,投保人职业变化时,重新调用试算接口
|
||||
'userInfo.occupationName': {
|
||||
handler(newV) {
|
||||
if (newV && (this.itemProductDTOS.productCode === 'GFRS_M0071' || this.itemProductDTOS.productCode === 'GFRS_M0091')) {
|
||||
// if (newV && this.itemProductDTOS.productCode === 'GFRS_M0071'&& this.userInfo.relationToInsured == 1) {
|
||||
if (newV && this.itemProductDTOS.productCode === 'GFRS_M0071') {
|
||||
this.insureTrial()
|
||||
}
|
||||
},
|
||||
|
||||
@@ -90,7 +90,7 @@ export default {
|
||||
gotoInformation() {
|
||||
if(this.productType != '7'){ //7代表是团险 10卡单
|
||||
Dialog.confirm({
|
||||
title: '投保提示',
|
||||
title: '温馨提示',
|
||||
messageAlign: 'left',
|
||||
confirmButtonColor: '#ee0a24',
|
||||
confirmButtonText: '立即投保',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -50,9 +50,9 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { Cell, CellGroup, Tag, Radio, RadioGroup, Tab, Tabs } from 'vant'
|
||||
import { mainRiskList, mainRiskListProposal, calculatePremium, getActProductList, occupationCodeCheck } from '@/api/ebiz/common/common'
|
||||
import { getOrderDetail, riskLevelCheck } from '@/api/ebiz/sale/sale'
|
||||
import { Cell, CellGroup, Tag, Radio, RadioGroup,Tab,Tabs} from 'vant'
|
||||
import { mainRiskList,mainRiskListProposal,calculatePremium,getActProductList } from '@/api/ebiz/common/common'
|
||||
import { getOrderDetail } from '@/api/ebiz/sale/sale'
|
||||
import { getDetail } from '@/api/ebiz/proposal/proposal.js'
|
||||
import riskRules from './risk-rules'
|
||||
export default {
|
||||
@@ -63,14 +63,14 @@ export default {
|
||||
[CellGroup.name]: CellGroup,
|
||||
[Tag.name]: Tag,
|
||||
[Cell.name]: Cell,
|
||||
[Tab.name]: Tab,
|
||||
[Tabs.name]: Tabs
|
||||
[Tab.name]:Tab,
|
||||
[Tabs.name]:Tabs,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
recommendType: '', // 渠道控制
|
||||
isCrossChannel: 0, // 是否选择交叉渠道列表 0-否 1-是
|
||||
active: 'normal',
|
||||
recommendType: '', // 渠道控制
|
||||
isCrossChannel: 0, // 是否选择交叉渠道列表 0-否 1-是
|
||||
active: 2,
|
||||
specilFlag: '0',
|
||||
flag: true,
|
||||
list: [],
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
radioVal: '',
|
||||
isFrom: localStorage.isFrom,
|
||||
activeFlag: '',
|
||||
isActivityCode: '' //activityCode 有值的话代表是活动,无值代表是普通产品
|
||||
isActivityCode:'' //activityCode 有值的话代表是活动,无值代表是普通产品
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
@@ -87,16 +87,16 @@ export default {
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '主险选择列表'
|
||||
}
|
||||
},
|
||||
})
|
||||
if (localStorage.isFrom == 'sale') {
|
||||
return new Promise((resolve, reject) => {
|
||||
getOrderDetail({ orderNo: this.$route.query.orderNo }).then(
|
||||
(res) => {
|
||||
res => {
|
||||
if (res.result == 0) {
|
||||
//------------------------专为桂/惠企写死--begin---------------//
|
||||
if (res.orderDTO.insuredDTOs[0] && res.orderDTO.insuredDTOs[0].riskDTOLst) {
|
||||
this.flag = this.specilFlag = res.orderDTO.insuredDTOs[0].riskDTOLst.some((v) => {
|
||||
this.flag = this.specilFlag = res.orderDTO.insuredDTOs[0].riskDTOLst.some(v => {
|
||||
return v.riskCode == 'GFRS_M0024' || v.riskCode == 'GFRS_M0040'
|
||||
})
|
||||
if (this.flag) {
|
||||
@@ -105,19 +105,21 @@ export default {
|
||||
} else if (res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0024' || res.orderDTO.orderInfoDTO.productCode == 'GFRS_M0040') {
|
||||
this.specilFlag = '1'
|
||||
}
|
||||
// 处理活动产品
|
||||
// this.activeFlag = res.orderDTO.orderInfoDTO.activeType
|
||||
//isActivityCode 有值代表是活动,无值代表是普通产品
|
||||
this.isActivityCode = res.orderDTO.orderInfoDTO.activityCode
|
||||
// recommendType 03 银保渠道
|
||||
this.recommendType = res.orderDTO.recmdDTO.recommendType
|
||||
this.recommendType = res.orderDTO.recmdDTO.recommendType;
|
||||
if (this.recommendType == '02' || this.recommendType == '11' || (this.recommendType == '03' && this.isActivityCode)) {
|
||||
// 电投 团险渠道产品 均为交叉渠道销售
|
||||
this.isCrossChannel = '1'
|
||||
this.isCrossChannel = '1';
|
||||
}
|
||||
// ------------------------专为桂/惠企写死--end---------------//
|
||||
}
|
||||
resolve(this.isActivityCodeFunc())
|
||||
},
|
||||
(error) => {
|
||||
error => {
|
||||
reject(this.isActivityCodeFunc())
|
||||
}
|
||||
)
|
||||
@@ -126,51 +128,69 @@ export default {
|
||||
return new Promise((resolve, reject) => {
|
||||
getDetail({
|
||||
orderNo: this.$route.query.proposalOrderNo
|
||||
}).then(
|
||||
(res) => {
|
||||
if (res.result == '0') {
|
||||
this.recommendType = res.content[0].recmdDTO ? res.content[0].recmdDTO.recommendType : ''
|
||||
if (this.recommendType == '02' || this.recommendType == '11') {
|
||||
// 电投 团险渠道产品 均为交叉渠道销售
|
||||
this.isCrossChannel = '1'
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.recommendType = res.content[0].recmdDTO?res.content[0].recmdDTO.recommendType:'';
|
||||
if (this.recommendType == '02' || this.recommendType == '11') {
|
||||
// 电投 团险渠道产品 均为交叉渠道销售
|
||||
this.isCrossChannel = '1';
|
||||
}
|
||||
resolve(this.isActivityCodeFunc())
|
||||
},
|
||||
(error) => {
|
||||
reject(this.isActivityCodeFunc())
|
||||
}
|
||||
)
|
||||
resolve(this.isActivityCodeFunc())
|
||||
},
|
||||
error => {
|
||||
reject(this.isActivityCodeFunc())
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onChangeMainList(name) {
|
||||
// checkItemShow(item) {
|
||||
// if (this.activeFlag != 'KMH' && this.activeFlag != 'SQY') {
|
||||
// return true
|
||||
// }
|
||||
// let showFlag = false
|
||||
// if (item.activeLst && item.activeLst.length > 0) {
|
||||
// item.activeLst.forEach(subItem => {
|
||||
// if (this.activeFlag && this.activeFlag == 'KMH') {
|
||||
// if (subItem == 'KMH') {
|
||||
// showFlag = true;
|
||||
// }
|
||||
// }else if (this.activeFlag && this.activeFlag == 'SQY') {
|
||||
// if (subItem == 'SQY') {
|
||||
// showFlag = true;
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// return showFlag
|
||||
// },
|
||||
onChangeMainList(name){
|
||||
if (name == 'cross') {
|
||||
this.isCrossChannel = '1'
|
||||
} else {
|
||||
this.isCrossChannel = '0'
|
||||
this.isCrossChannel = '1';
|
||||
}else{
|
||||
this.isCrossChannel = '0';
|
||||
}
|
||||
this.isActivityCodeFunc()
|
||||
this.isActivityCodeFunc();
|
||||
},
|
||||
isActivityCodeFunc() {
|
||||
//isActivityCode 有值代表是活动,无值代表是普通产品
|
||||
isActivityCodeFunc(){
|
||||
//isActivityCode 有值代表是活动,无值代表是普通产品
|
||||
// if(this.isActivityCode && this.isCrossChannel == '0'){
|
||||
if (this.isActivityCode) {
|
||||
this.getActProductListFunc()
|
||||
} else {
|
||||
this.getMainRiskList()
|
||||
}
|
||||
if(this.isActivityCode){
|
||||
this.getActProductListFunc()
|
||||
}else{
|
||||
this.getMainRiskList()
|
||||
}
|
||||
},
|
||||
//获取主险列表--活动下的产品
|
||||
async getActProductListFunc() {
|
||||
let mainRiskCodes = localStorage.mainRiskCodes && JSON.parse(localStorage.mainRiskCodes)
|
||||
let resultData = await getActProductList({
|
||||
activityCode: this.isActivityCode,
|
||||
type: 'app'
|
||||
activityCode:this.isActivityCode,
|
||||
type:'app'
|
||||
})
|
||||
if (resultData.result == 0) {
|
||||
resultData.content.mainRiskDTOS.forEach((item) => {
|
||||
resultData.content.mainRiskDTOS.forEach(item => {
|
||||
//已选主险不能再选、险种互斥
|
||||
if (mainRiskCodes && mainRiskCodes.includes(item.riskProductCode)) {
|
||||
this.delList.push(item.riskProductCode)
|
||||
@@ -197,32 +217,31 @@ export default {
|
||||
// ------------------------专为惠企写死--end---------------//
|
||||
//如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
|
||||
if (this.list.length > 0) {
|
||||
console.log(localStorage.productCodeChooseFromList)
|
||||
this.result = this.list.find((v) => {
|
||||
console.log(localStorage.productCodeChooseFromList)
|
||||
this.result = this.list.find(v => {
|
||||
return v.riskProductCode == localStorage.productCodeChooseFromList
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
if (this.list.length == 0) {
|
||||
this.$route('暂无可选产品')
|
||||
// this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
||||
// let thismyurl = ''
|
||||
// if (this.$route.query.orderNo) {
|
||||
// thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||
// } else if (this.$route.query.proposalOrderNo) {
|
||||
// thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||
// }
|
||||
// this.$jump({
|
||||
// flag: 'goBack',
|
||||
// // extra: {
|
||||
// // url: location.origin + '/#/common/selectedProduct'
|
||||
// // },
|
||||
// routerInfo: {
|
||||
// type: 1,
|
||||
// path: '/common/selectedProduct' + thismyurl
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
||||
let thismyurl = ''
|
||||
if (this.$route.query.orderNo) {
|
||||
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||
} else if (this.$route.query.proposalOrderNo) {
|
||||
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'goBack',
|
||||
// extra: {
|
||||
// url: location.origin + '/#/common/selectedProduct'
|
||||
// },
|
||||
routerInfo: {
|
||||
type: 1,
|
||||
path: '/common/selectedProduct' + thismyurl
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -239,16 +258,16 @@ export default {
|
||||
break
|
||||
}
|
||||
if (this.isCrossChannel == '1') {
|
||||
mainListDate.platform = 'cross'
|
||||
mainListDate.platform = 'cross'
|
||||
}
|
||||
let resultData
|
||||
if (this.isFrom == 'proposal') {
|
||||
if(this.isFrom == 'proposal'){
|
||||
resultData = await mainRiskListProposal(mainListDate)
|
||||
} else {
|
||||
}else{
|
||||
resultData = await mainRiskList(mainListDate)
|
||||
}
|
||||
if (resultData.result == 0) {
|
||||
resultData.mainRiskDTOS.forEach((item) => {
|
||||
resultData.mainRiskDTOS.forEach(item => {
|
||||
//已选主险不能再选、险种互斥
|
||||
if (mainRiskCodes && mainRiskCodes.includes(item.riskProductCode)) {
|
||||
this.delList.push(item.riskProductCode)
|
||||
@@ -275,90 +294,47 @@ export default {
|
||||
// 如果是选择产品, 进入电子投保, 在主险列表能默认选中我在产品列表选择的产品
|
||||
if (this.list.length > 0) {
|
||||
console.log(localStorage.productCodeChooseFromList)
|
||||
this.result = this.list.find((v) => {
|
||||
this.result = this.list.find(v => {
|
||||
return v.riskProductCode == localStorage.productCodeChooseFromList
|
||||
})
|
||||
}
|
||||
|
||||
if (this.list.length == 0) {
|
||||
this.$route('暂无可选产品')
|
||||
// this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
||||
// let thismyurl = ''
|
||||
// if (this.$route.query.orderNo) {
|
||||
// thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||
// } else if (this.$route.query.proposalOrderNo) {
|
||||
// thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||
// }
|
||||
// this.$jump({
|
||||
// flag: 'goBack',
|
||||
// // extra: {
|
||||
// // url: location.origin + '/#/common/selectedProduct'
|
||||
// // },
|
||||
// routerInfo: {
|
||||
// type: 1,
|
||||
// path: '/common/selectedProduct' + thismyurl
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
this.$dialog({ message: '暂无可选产品!' }).then(() => {
|
||||
let thismyurl = ''
|
||||
if (this.$route.query.orderNo) {
|
||||
thismyurl = '?orderNo=' + this.$route.query.orderNo
|
||||
} else if (this.$route.query.proposalOrderNo) {
|
||||
thismyurl = '?proposalOrderNo=' + this.$route.query.proposalOrderNo
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'goBack',
|
||||
// extra: {
|
||||
// url: location.origin + '/#/common/selectedProduct'
|
||||
// },
|
||||
routerInfo: {
|
||||
type: 1,
|
||||
path: '/common/selectedProduct' + thismyurl
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
//下一步
|
||||
nextStep() {
|
||||
console.log(this.result)
|
||||
if (!this.result) {
|
||||
this.$toast('请选择产品')
|
||||
return
|
||||
}
|
||||
/** add by zhangweiwei FCRS-764 国富无忧两全保险(B款)新增主险职业校验逻辑 start at 20240807 */
|
||||
let insuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||
occupationCodeCheck({
|
||||
occupationCode: insuredPersonInfo.occupationCode,
|
||||
productCode: this.result.riskProductCode
|
||||
}).then((res) => {
|
||||
if (res.result == 0) {
|
||||
this.handleMainRisk()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
/** add by zhangweiwei FCRS-764 国富无忧两全保险(B款)新增主险职业校验逻辑 end at 20240807 */
|
||||
},
|
||||
//置空产品
|
||||
localStorage.chooseProducts = ''
|
||||
|
||||
/**
|
||||
* 处理主险
|
||||
*/
|
||||
handleMainRisk() {
|
||||
if (localStorage.getItem('isFrom') == 'sale') {
|
||||
let params = {
|
||||
productCode: this.result.riskProductCode,
|
||||
orderNo: this.$route.query.orderNo
|
||||
}
|
||||
if (this.recommendType == '03' && !this.isActivityCode) {
|
||||
params.productChannl = this.isCrossChannel
|
||||
}
|
||||
riskLevelCheck(params).then((res) => {
|
||||
if (res.result == 0) {
|
||||
if (res.saLevelMatch == 'Y') {
|
||||
//置空产品
|
||||
localStorage.chooseProducts = ''
|
||||
//添加主险
|
||||
this.addMainRisk()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
} else {
|
||||
//置空产品
|
||||
localStorage.chooseProducts = ''
|
||||
//添加主险
|
||||
this.addMainRisk()
|
||||
}
|
||||
//添加主险
|
||||
this.addMainRisk()
|
||||
},
|
||||
|
||||
//储存主险
|
||||
async addMainRisk() {
|
||||
localStorage.setItem('isTrial', '1')
|
||||
@@ -369,7 +345,7 @@ export default {
|
||||
localStorage.isTrial = resultData.productTrialInfoDTO.productTrialYearDTOS != null ? '0' : '1'
|
||||
localStorage.hint = resultData.hint
|
||||
if (resultData.productTrialInfoDTO.dutyGroup != null) {
|
||||
resultData.productTrialInfoDTO.dutyGroup.map((item) => {
|
||||
resultData.productTrialInfoDTO.dutyGroup.map(item => {
|
||||
if (item.dutyName == '意外身故/伤残保险金') {
|
||||
item.defaultDutyAmt = item.minDutyAmt
|
||||
}
|
||||
@@ -397,7 +373,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
if (riskRules.ageLimit(resultData, this, null, riskProductCode)) {
|
||||
if (riskRules.ageLimit(resultData, this, null,riskProductCode)) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -424,17 +400,12 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
let flagPermission = await riskRules.getProductSellPermissionList(resultData.productCode, this, this.isCrossChannel)
|
||||
let flagPermission = await riskRules.getProductSellPermissionList(resultData.productCode, this,this.isCrossChannel)
|
||||
if (flagPermission.flag && localStorage.isFrom != 'proposal') {
|
||||
//校验该代理人是否有该产品的售卖权限
|
||||
return this.$toast(flagPermission.resultMessage)
|
||||
}
|
||||
let flagCompany = await riskRules.checkCompany(
|
||||
resultData.productCode,
|
||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).workcompany,
|
||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).isAsync,
|
||||
this
|
||||
)
|
||||
let flagCompany = await riskRules.checkCompany(resultData.productCode, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).workcompany, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).isAsync,this)
|
||||
if (flagCompany && localStorage.isFrom != 'proposal') {
|
||||
//校验该投保人的工作单位是否能够投保该产品
|
||||
return this.$toast('该投保人工作单位不能投保该产品')
|
||||
@@ -450,11 +421,11 @@ export default {
|
||||
|
||||
let calFactorLst = this.getFactorList(resultData)
|
||||
let productTrialYearDTOS = resultData.productTrialInfoDTO.productTrialYearDTOS != null ? resultData.productTrialInfoDTO.productTrialYearDTOS : null
|
||||
let hasAddtionRisk = resultData.productTrialInfoDTO.addtionRiskLst != null && resultData.productTrialInfoDTO.addtionRiskLst.length ? true : false
|
||||
let hasAddtionRisk = (resultData.productTrialInfoDTO.addtionRiskLst != null && resultData.productTrialInfoDTO.addtionRiskLst.length) ? true : false
|
||||
let currentProductInfo =
|
||||
localStorage.isTrial == '1'
|
||||
? {
|
||||
isCrossChannel: this.isCrossChannel,
|
||||
isCrossChannel:this.isCrossChannel,
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
isMainRisk: 0,
|
||||
@@ -470,7 +441,7 @@ export default {
|
||||
predictTransferPrem: null //建议书使用 预计转入保费字段
|
||||
}
|
||||
: {
|
||||
isCrossChannel: this.isCrossChannel,
|
||||
isCrossChannel:this.isCrossChannel,
|
||||
productTrialYearDTOS,
|
||||
calFactorLst,
|
||||
hasAddtionRisk,
|
||||
@@ -508,27 +479,27 @@ export default {
|
||||
let calFactorLst = resultData.productTrialInfoDTO.calFactorLst
|
||||
console.log('calFactorLst', calFactorLst)
|
||||
|
||||
calFactorLst.forEach((item) => {
|
||||
calFactorLst.forEach(item => {
|
||||
item['isMainRisk'] = 0
|
||||
item.columns = []
|
||||
if (item.type == 0) {
|
||||
//1、type=0 select 2、type=1 input+stepper
|
||||
productTrialInfoDTO[item.code].forEach((factor) => {
|
||||
productTrialInfoDTO[item.code].forEach(factor => {
|
||||
if (factor.defaultValue == 0) {
|
||||
item.showContent = factor.showContent
|
||||
if (factor[item.code + 'Flag'] != undefined) {
|
||||
item[item.code] = factor[item.code]
|
||||
item[item.code + 'Flag'] = factor[item.code + 'Flag']
|
||||
item.hasFlag = '1'
|
||||
} else if (item.code == 'pensionAge') {
|
||||
}else if(item.code == 'pensionAge'){
|
||||
//养老保险金领取年龄
|
||||
item[item.code] = factor[item.code]
|
||||
item['sex'] = factor.sex
|
||||
} else {
|
||||
}else {
|
||||
item[item.code] = factor[item.code]
|
||||
}
|
||||
}
|
||||
let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'], sex: factor.sex }
|
||||
let itemColumns = { text: factor.showContent, value: factor[item.code], flag: factor[item.code + 'Flag'],sex:factor.sex}
|
||||
if (factor.medical !== undefined) {
|
||||
itemColumns.medical = factor.medical
|
||||
}
|
||||
@@ -537,13 +508,10 @@ export default {
|
||||
} else if (item.type == 1) {
|
||||
//按年龄选择
|
||||
if (productTrialInfoDTO[item.code] != null) {
|
||||
productTrialInfoDTO[item.code].forEach((factor) => {
|
||||
productTrialInfoDTO[item.code].forEach(factor => {
|
||||
// item = Object.assign(item, factor)
|
||||
if (
|
||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) &&
|
||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge)
|
||||
) {
|
||||
// if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age <= Number(factor.maxAge)){
|
||||
if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).insuredAge <= Number(factor.maxAge)){
|
||||
// if(JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age >= Number(factor.minAge) && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).age <= Number(factor.maxAge)){
|
||||
item = Object.assign(item, factor)
|
||||
}
|
||||
})
|
||||
@@ -553,9 +521,6 @@ export default {
|
||||
item['amt'] = Number(item.minAmt) * Number(item.moneyUnit)
|
||||
}
|
||||
}
|
||||
}else if(item.type==5){
|
||||
// 单元格,用于展示文案,从extra中获取
|
||||
item['showContent'] = item.extra
|
||||
}
|
||||
//规则储存
|
||||
item['rules'] = productTrialInfoDTO[item.code]
|
||||
|
||||
@@ -750,10 +750,6 @@
|
||||
if (this.chooseProducts.length == 0) {
|
||||
return this.$toast('请添加产品')
|
||||
}
|
||||
if(!this.isElecCont && localStorage.isFrom == 'sale') {
|
||||
this.$toast('请选择保单形式')
|
||||
return false
|
||||
}
|
||||
//重新校验该产品是否需要为协同单位
|
||||
let flagCompany = await riskRules.checkCompany(this.chooseProducts[0].riskCode, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).workcompany, JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).isAsync,this)
|
||||
if (flagCompany && localStorage.isFrom != 'proposal') {
|
||||
@@ -821,32 +817,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if(this.manageComCode == '45') {
|
||||
console.log(this.chooseProducts)
|
||||
if(this.appntDTO.age >= 60) {
|
||||
this.chooseProducts.map(item => {
|
||||
if (item.insuYearFlag == 'A' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) {
|
||||
showFlag = true
|
||||
return true
|
||||
}
|
||||
})
|
||||
if(!showFlag){
|
||||
let doubleRecordRes = await getDoubleRecordProductLst({})
|
||||
if(doubleRecordRes.result == 0){
|
||||
if(doubleRecordRes.content && doubleRecordRes.content.length != 0){
|
||||
doubleRecordRes.content.forEach(items=>{
|
||||
this.chooseProducts.map(item => {
|
||||
if (item.riskCode == items ) {
|
||||
showFlag = true
|
||||
return true
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (showFlag) {
|
||||
this.thisdoubledialogshow = true
|
||||
} else {
|
||||
@@ -991,6 +961,35 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
async showTipForDoubleRecord() {
|
||||
//判断投保人年龄是否大于等于60岁
|
||||
let showFlag = false
|
||||
let age = this.appntDTO.birthday?utilsAge.getAge(this.appntDTO.birthday, new Date()):this.appntDTO.age
|
||||
if (this.manageComCode == '52') {
|
||||
this.chooseProducts.map(item => {
|
||||
if (item.insuYearFlag == 'A' || (item.insuYearFlag == 'Y' && item.insuYear != '1')) {
|
||||
showFlag = true
|
||||
return true
|
||||
}
|
||||
})
|
||||
}
|
||||
if(showFlag){
|
||||
let doubleRecordRes = await getDoubleRecordProductLst({})
|
||||
if(doubleRecordRes.result == 0){
|
||||
if(doubleRecordRes.content && doubleRecordRes.content.length != 0){
|
||||
doubleRecordRes.content.forEach(items=>{
|
||||
this.chooseProducts.map(item => {
|
||||
if (item.riskCode == items ) {
|
||||
showFlag = true
|
||||
return true
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
return showFlag
|
||||
},
|
||||
nextPageShow() {
|
||||
let thismyurl = ''
|
||||
if (this.$route.query.orderNo) {
|
||||
@@ -1002,30 +1001,47 @@
|
||||
localStorage.fromAddBeneficiaryInfo = ''
|
||||
localStorage.removeItem('applicant')
|
||||
if(this.isFrom == 'sale') {
|
||||
let params = {
|
||||
orderNO: this.$route.query.orderNo,
|
||||
isElecCont: this.isElecCont
|
||||
if(!this.isElecCont) {
|
||||
this.$toast('请选择保单形式')
|
||||
return false
|
||||
}
|
||||
if(this.isElecCont == '1') {
|
||||
params.isElecCont = '0'
|
||||
}
|
||||
saveOrderType(params).then(res => {
|
||||
if(res.result == 0) {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
forbidSwipeBack: '1',
|
||||
url: location.origin + '/#' + thismyurl,
|
||||
needRefresh: '1'
|
||||
},
|
||||
routerInfo: {
|
||||
path: thismyurl
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
else {
|
||||
let params = {
|
||||
orderNO: this.$route.query.orderNo,
|
||||
isElecCont: this.isElecCont
|
||||
}
|
||||
})
|
||||
if(this.isElecCont == '1') {
|
||||
params.isElecCont = '0'
|
||||
}
|
||||
saveOrderType(params).then(res => {
|
||||
if(res.result == 0) {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
forbidSwipeBack: '1',
|
||||
url: location.origin + '/#' + thismyurl,
|
||||
needRefresh: '1'
|
||||
},
|
||||
routerInfo: {
|
||||
path: thismyurl
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
// this.$jump({
|
||||
// flag: 'h5',
|
||||
// extra: {
|
||||
// forbidSwipeBack: '1',
|
||||
// url: location.origin + '/#' + thismyurl,
|
||||
// needRefresh: '1'
|
||||
// },
|
||||
// routerInfo: {
|
||||
// path: thismyurl
|
||||
// }
|
||||
// })
|
||||
}
|
||||
} else {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
|
||||
@@ -44,10 +44,10 @@
|
||||
<div class="pcenter-list mr20 mb10 ml15">
|
||||
<template v-if="branchType != '6'">
|
||||
<div class="pcenter-item text-center">
|
||||
<img src="../../../assets/images/home_product_center_m0092.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0092')" />
|
||||
<img src="../../../assets/images/home_cp_1.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0073')" />
|
||||
</div>
|
||||
<div class="pcenter-item text-center">
|
||||
<img src="../../../assets/images/home_product_center_m0094.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0094')" />
|
||||
<img src="../../../assets/images/home_cp_2.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0072')" />
|
||||
</div>
|
||||
</template>
|
||||
<template v-else-if="branchType == '6'">
|
||||
@@ -122,11 +122,11 @@
|
||||
<div class="home-product-pcenter">
|
||||
<div class="pcenter-list mr20 mb10 ml15">
|
||||
<div class="pcenter-item text-center">
|
||||
<img src="../../../assets/images/home_product_center_m0092.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0092')" />
|
||||
</div>
|
||||
<div class="pcenter-item text-center">
|
||||
<img src="../../../assets/images/home_product_center_m0094.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0094')" />
|
||||
</div>
|
||||
<img src="../../../assets/images/home_cp_1.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0073')" />
|
||||
</div>
|
||||
<div class="pcenter-item text-center">
|
||||
<img src="../../../assets/images/home_cp_2.png" style="width: 100%;" @click="goDetail('GFRSPRO_M0072')" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -310,10 +310,10 @@ export default {
|
||||
if(this.appntDTO.name == name){
|
||||
this.appntDTO.name = ''
|
||||
}
|
||||
// let ageRule = /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
// if (this.appntDTO.name && !ageRule.test(this.appntDTO.name)) {
|
||||
// return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字或者英文')
|
||||
// }
|
||||
let ageRule = /^[a-zA-Z0-9\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
if (this.appntDTO.name && !ageRule.test(this.appntDTO.name)) {
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字、数字或者英文')
|
||||
}
|
||||
this.appntDTO.age = String(this.appntDTO.age)
|
||||
this.$validator.validate().then(valid => {
|
||||
if (true === valid) {
|
||||
|
||||
@@ -339,10 +339,10 @@ export default {
|
||||
let localSex = this.insured.sex
|
||||
let relation = this.localInfo.relationToAppnt
|
||||
let resultSex = checkSex(cacheSex, localSex, relation)
|
||||
// let ageRule = /^[a-zA-Z0-9\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
// if (this.insured.name && !ageRule.test(this.insured.name)) {
|
||||
// return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字、数字或者英文')
|
||||
// }
|
||||
let ageRule = /^[a-zA-Z0-9\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
if (this.insured.name && !ageRule.test(this.insured.name)) {
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字、数字或者英文')
|
||||
}
|
||||
if (!resultSex) {
|
||||
return Toast.fail('被保险人性别有误')
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div>
|
||||
<div class="mb50">
|
||||
<img class="w178 h41 div_1" src="@/assets/images/proposal/proposal_logo.png" />
|
||||
<div class="white fw500 fs18 div_2">{{ mainRiskName }}</div>
|
||||
<div class="white fw500 fs18 div_2">{{mainRiskName}}</div>
|
||||
<van-sticky @scroll="testSticky">
|
||||
<div class="pl15 pt15 flex justify-content-fs align-items-c sticky_div" :class="pageShowType.isFixed ? 'divbg_1' : 'divbg_2'">
|
||||
<div class="mr9 title_item" v-for="(item, index) in pageShowInfo.insuredDTOs" :key="index" @click="checkInsure(item.insuredId)">
|
||||
@@ -58,9 +58,7 @@
|
||||
</div>
|
||||
<div class="risk_body flex text-center table bg_f7fbff" v-for="(riskItem, index) in pageShowInfo.showInsuredDTO.riskDTOLst" :key="index">
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7">{{ riskItem.riskName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border" v-if="ispremshow">
|
||||
{{ riskItem.amt ? riskItem.amt : '--' }}
|
||||
</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border" v-if="ispremshow">{{ riskItem.amt ? riskItem.amt : '--' }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.insureName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.payName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.showPrem ? riskItem.showPrem : '--' }}</div>
|
||||
@@ -80,13 +78,11 @@
|
||||
<div v-for="(riskItem, index) in pageShowInfo.showInsuredDTO.riskDTOLstNew" :key="index">
|
||||
<div class="risk_body flex text-center table bg_f7fbff">
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7">{{ riskItem.riskName }}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.pensionAge }} 周岁</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">
|
||||
{{ riskItem.receivePensionWay == '0' ? '年领' : '月领' }}
|
||||
</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.guaranteedYear }} 年</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.pensionAge}} 周岁</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.receivePensionWay == '0' ? '年领':'月领'}}</div>
|
||||
<div class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">{{ riskItem.guaranteedYear}} 年</div>
|
||||
<div v-if="riskItem.receivePensionWay == '0'" class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">
|
||||
{{ riskItem.amt }}
|
||||
{{ riskItem.amt}}
|
||||
</div>
|
||||
<div v-if="riskItem.receivePensionWay == '1'" class="flex justify-content-c align-items-c pl7 pr7 pt7 pb7 table_border">
|
||||
{{ riskItem.amt | fillNumber }}
|
||||
@@ -95,6 +91,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="h20"> </div>
|
||||
</div>
|
||||
<div class="up_down_div">
|
||||
@@ -170,6 +167,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="h20"> </div>
|
||||
<div class="up_down_div">
|
||||
<img src="@/assets/images/proposal/proposal_down.png" :class="pageShowType.riskCheckStatus ? '' : 'img180'" @click="testRiskCheck" />
|
||||
</div>
|
||||
@@ -198,7 +196,7 @@
|
||||
v-for="(moneyItem, index) in pageShowInfo.showInsuredDTO.demoLabel"
|
||||
:key="index"
|
||||
>
|
||||
<div class="text-left" style="width: 75%">
|
||||
<div class="text-left" style="width: 75%;">
|
||||
<span>{{ moneyItem.contentLabel }}</span>
|
||||
</div>
|
||||
<div class="text-right" v-if="moneyItem.content == 'currentBonus_M'">
|
||||
@@ -241,67 +239,15 @@
|
||||
:radios="pageShowInfo.showInsuredDTO.radios"
|
||||
:value.sync="pageShowInfo.showInsuredDTO.tap"
|
||||
></select-radio>
|
||||
<div class="fs12 text-center pb15" style="color: #999999">拖动按钮查看不同年龄的保单利益</div>
|
||||
|
||||
<!-- 国富人寿富贵尊享终身寿险(分红型)添加利益演示提示 -->
|
||||
<div v-if="mainRiskCodes.includes('GFRS_M0095')" class="fs13 div_11 text-left">
|
||||
<b
|
||||
>本利益演示基于公司的精算及其他假设,不代表公司的历史经营业绩,也不代表对公司未来经营业绩的预期,保单的红利分配是不确定的,红利水平是不保证的,在某些年度红利可能为零。
|
||||
</b>
|
||||
</div>
|
||||
<div class="fs12 text-center pb15" style="color: #999999;">拖动按钮查看不同年龄的保单利益</div>
|
||||
<div class="div_10"></div>
|
||||
</div>
|
||||
<!-- 责任免除 -->
|
||||
<div class="pt15 pb17 bg-white model_title relative">
|
||||
<div :class="pageShowType.dutyCheckStatus ? '' : 'hideInfo_hesitate'">
|
||||
<div class="fs16 color_3A81F6 lh24 fw600 text-center">责任免除</div>
|
||||
<div class="line_C8DBFB"></div>
|
||||
<div class="fs14 div_height div_11">
|
||||
<b>
|
||||
因下列情形之一导致被保险人身故或全残的,我们不承担给付保险金的责任:<br />
|
||||
一、投保人对被保险人的故意杀害、故意伤害;<br />
|
||||
二、被保险人故意犯罪或者抗拒依法采取的刑事强制措施;<br />
|
||||
三、被保险人故意自伤,或自保险合同成立或者保险合同效力恢复之日起2年内自杀,但被保险人自杀时为无民事行为能力人的除外;<br />
|
||||
四、被保险人服用、吸食或注射毒品;<br />
|
||||
五、被保险人酒后驾驶、无合法有效驾驶证驾驶,或驾驶无合法有效行驶证的机动车;<br />
|
||||
六、战争、军事冲突、暴乱或武装叛乱;<br />
|
||||
七、核爆炸、核辐射或核污染。<br />
|
||||
发生上述第一项情形导致被保险人身故的,保险合同终止,我们向被保险人的继承人(除投保人本人外)退还保险合同的现金价值。<br />
|
||||
发生上述第一项情形导致被保险人全残的,保险合同终止,我们向被保险人退还保险合同的现金价值。<br />
|
||||
发生上述其他情形导致被保险人身故或全残的,保险合同终止,我们向您退还保险合同的现金价值。
|
||||
</b>
|
||||
</div>
|
||||
<div class="h20"> </div>
|
||||
<div class="up_down_div">
|
||||
<img src="@/assets/images/proposal/proposal_down.png" :class="pageShowType.dutyCheckStatus ? '' : 'img180'" @click="dutyCheck" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 犹豫期退保 -->
|
||||
|
||||
<div class="pt15 pb17 bg-white relative">
|
||||
<div :class="pageShowType.hesitateCheckStatus ? '' : 'hideInfo_hesitate'">
|
||||
<div class="fs16 color_3A81F6 lh24 fw600 text-center">犹豫期退保</div>
|
||||
<div class="line_C8DBFB"></div>
|
||||
<div class="fs14 div_height div_11">
|
||||
<b>自您签收保险合同之日起,有15日的犹豫期。</b
|
||||
>在此期间请您认真审视保险合同,如果您认为保险合同与您的需求不相符,您可以在此期间提出解除保险合同,我们将退还您所支付的全部保险费。<br />
|
||||
您在犹豫期后解除保险合同的,<b>自我们收到解除合同通知书之日起,保险合同终止。</b>我们自收到解除合同通知书之日起30日内向您退还保险合同的现金价值。
|
||||
<b>您在犹豫期后解除合同可能会遭受一定损失。</b>
|
||||
</div>
|
||||
<div class="h20"> </div>
|
||||
<div class="up_down_div">
|
||||
<img src="@/assets/images/proposal/proposal_down.png" :class="pageShowType.hesitateCheckStatus ? '' : 'img180'" @click="hesitateCheck" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 温馨提示-->
|
||||
<div class="pt15 pb17 bg-white model_title">
|
||||
<div class="fs16 color_3A81F6 lh24 fw600 text-center">温馨提示</div>
|
||||
<div class="line_C8DBFB"></div>
|
||||
<div class="fs13 div_11">
|
||||
<b> 本资料仅供客户理解产品条款所用,有关产品的说明、解释、承诺或保证,如与产品条款不一致,均以产品条款为准。 </b>
|
||||
<div class="fs13 gray div_11">
|
||||
本资料仅供客户理解产品条款所用,有关产品的说明、解释、承诺或保证,如与产品条款不一致,均以产品条款为准。
|
||||
</div>
|
||||
<div class="div_12"></div>
|
||||
</div>
|
||||
@@ -337,19 +283,18 @@
|
||||
</div>
|
||||
<div class="div_02">
|
||||
<div class="text-center div_021">
|
||||
<div class="text-center div_022">{{ mainRiskName }}</div>
|
||||
<div class="text-center div_022">{{mainRiskName}}</div>
|
||||
<!-- 如果没有姓名的话,根据性别展示男士或女士 -->
|
||||
<div class="text-center div_023">
|
||||
尊敬的<span v-if="pageShowInfo.appntDTO.name">{{ pageShowInfo.appntDTO.name.substr(0, 1) }}</span
|
||||
>{{ pageShowInfo.appntDTO.sex == '0' ? '先生' : '女士' }}
|
||||
</div>
|
||||
<div class="text-center div_023">尊敬的<span v-if="pageShowInfo.appntDTO.name">{{ pageShowInfo.appntDTO.name.substr(0, 1) }}</span>{{ pageShowInfo.appntDTO.sex == '0' ? '先生' : '女士' }}</div>
|
||||
</div>
|
||||
<img class="img_13" src="@/assets/images/proposal/proposal_share_bg.png" />
|
||||
</div>
|
||||
<div class="text-center">
|
||||
<img @click="showShareType = '01'" class="img_14" src="@/assets/images/proposal/proposal_open.png" />
|
||||
</div>
|
||||
<div class="fs12 text-center div_03">敬呈</div>
|
||||
<div class="fs12 text-center div_03">
|
||||
敬呈
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -381,7 +326,7 @@ import {
|
||||
import SelectRadio from '@/components/ebiz/SelectRadio'
|
||||
import { getDemo, toInsurance, getDemoByProposalNo, share, getSharingToken } from '@/api/ebiz/proposal/proposal.js'
|
||||
import { funcPermCheck } from '@/api/ebiz/common/common'
|
||||
import { haveTap, getTapIndex, relevanceByInsure, isAllEqual } from './js/exhibitionMethod.js'
|
||||
import { haveTap, getTapIndex, relevanceByInsure,isAllEqual } from './js/exhibitionMethod.js'
|
||||
import { formatRiskList } from '@/assets/js/utils/formatRiskList.js'
|
||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
@@ -403,9 +348,7 @@ export default {
|
||||
dutyShowType: '00',
|
||||
isFixed: false, // 粘性布局状态
|
||||
productCheckStatus: true, //产品收展状态
|
||||
riskCheckStatus: true, //责任收展状态
|
||||
hesitateCheckStatus: true, // 犹豫期退保
|
||||
dutyCheckStatus: true // 责任免除
|
||||
riskCheckStatus: true //责任收展状态
|
||||
},
|
||||
// 页面显示详细数据
|
||||
pageShowInfo: {
|
||||
@@ -442,9 +385,9 @@ export default {
|
||||
agent: {},
|
||||
mainRiskCodes: [],
|
||||
time: 5,
|
||||
proposalNo: '',
|
||||
proposalNo:'',
|
||||
mainRiskName: '',
|
||||
ispremshow: true // 是否展示保额
|
||||
ispremshow: true, // 是否展示保额
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
@@ -474,8 +417,8 @@ export default {
|
||||
},
|
||||
fillNumber(val) {
|
||||
// 小于10,在前面补0
|
||||
return Number(val * 0.085).toFixed(2)
|
||||
}
|
||||
return Number(val*0.085).toFixed(2)
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.$jump({
|
||||
@@ -510,7 +453,7 @@ export default {
|
||||
// init方法在微信端存储token,接口请求用此token,所以init方法前不要请求接口,会影响分享微信功能,接口会报token为空
|
||||
this.init()
|
||||
//校验当前用户权限
|
||||
funcPermCheck({}).then((res) => {
|
||||
funcPermCheck({}).then(res => {
|
||||
this.isCheck = res.result
|
||||
})
|
||||
},
|
||||
@@ -552,12 +495,12 @@ export default {
|
||||
checkInsure(insureId) {
|
||||
let that = this
|
||||
this.pageShowInfo.showInsuredDTO
|
||||
this.pageShowInfo.insuredDTOs.map((item) => {
|
||||
this.pageShowInfo.insuredDTOs.map(item => {
|
||||
if (item.insuredId == insureId) {
|
||||
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
||||
if (!item.name) {
|
||||
let sex = item.sex == '0' ? '男' : '女'
|
||||
item.name = sex + item.insuredAge + '岁'
|
||||
if(!item.name){
|
||||
let sex = item.sex == '0'?'男':'女'
|
||||
item.name = sex + item.insuredAge+'岁'
|
||||
}
|
||||
this.pageShowInfo.showInsuredDTO = item
|
||||
that.$forceUpdate()
|
||||
@@ -579,12 +522,6 @@ export default {
|
||||
testRiskCheck() {
|
||||
this.pageShowType.riskCheckStatus = !this.pageShowType.riskCheckStatus
|
||||
},
|
||||
hesitateCheck() {
|
||||
this.pageShowType.hesitateCheckStatus = !this.pageShowType.hesitateCheckStatus
|
||||
},
|
||||
dutyCheck() {
|
||||
this.pageShowType.dutyCheckStatus = !this.pageShowType.dutyCheckStatus
|
||||
},
|
||||
checkShowDutyType(type) {
|
||||
this.pageShowType.dutyShowType = type
|
||||
},
|
||||
@@ -596,21 +533,21 @@ export default {
|
||||
}
|
||||
}
|
||||
if (this.$route.query.proposalOrderNo) {
|
||||
this.proposalNo = this.$route.query.proposalOrderNo
|
||||
this.proposalNo = this.$route.query.proposalOrderNo;
|
||||
params.proposalInfoDTO.proposalNo = this.$route.query.proposalOrderNo
|
||||
this.$CacheUtils.setLocItem('proposalNo', this.$route.query.proposalOrderNo)
|
||||
this.$CacheUtils.setLocItem('proposalNo',this.$route.query.proposalOrderNo)
|
||||
}
|
||||
if (this.isWeixin) {
|
||||
//在微信端
|
||||
params.proposalInfoDTO.proposalNo = this.$route.query.proposalOrderNo
|
||||
/*this.mainRiskCodes = JSON.parse(this.$route.query.mainRiskCodes)*/
|
||||
this.$CacheUtils.setLocItem('token', this.$route.query.token)
|
||||
this.$CacheUtils.setLocItem('token',this.$route.query.token)
|
||||
let agentResult = await getAgentInfo({}) //调取代理人查询接口
|
||||
if (agentResult.result == '0') {
|
||||
let { agent } = this
|
||||
let { name, phoneNo, certificateInfoList } = agentResult
|
||||
if (certificateInfoList != null && certificateInfoList != '' && certificateInfoList.length > 0) {
|
||||
certificateInfoList.forEach((c) => {
|
||||
certificateInfoList.forEach(c => {
|
||||
if (c.certificateType == '0') {
|
||||
agent.certificate = c.certificateNo
|
||||
}
|
||||
@@ -637,7 +574,7 @@ export default {
|
||||
this.agent.name = agentResult.name
|
||||
}
|
||||
params.proposalInfoDTO.proposalNo = this.$route.query.proposalOrderNo
|
||||
getDemo(params).then((res) => {
|
||||
getDemo(params).then(res => {
|
||||
this.formatLocal(res)
|
||||
})
|
||||
}
|
||||
@@ -673,7 +610,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async sharePeople() {
|
||||
console.log(this.pageShowInfo.insuredDTOs, 'this.pageShowInfo.insuredDTOs')
|
||||
console.log(this.pageShowInfo.insuredDTOs,'this.pageShowInfo.insuredDTOs')
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
@@ -681,46 +618,45 @@ export default {
|
||||
}
|
||||
let reqData = {
|
||||
mdType: 'm',
|
||||
monthStr: date.getFullYear() + month
|
||||
monthStr:date.getFullYear() + month
|
||||
}
|
||||
let shareContent
|
||||
let shareContent;
|
||||
let resData = await queryPersonal(reqData)
|
||||
// debugger
|
||||
//准会员话术改为普通人话术
|
||||
if (resData.content.length && resData.content[0].slevel < 3) {
|
||||
resData.content[0].sgrade = '00'
|
||||
if(resData.content.length&&resData.content[0].slevel<3){
|
||||
resData.content[0].sgrade='00'
|
||||
}
|
||||
if (resData.content.length && resData.content[0].glevel < 3) {
|
||||
resData.content[0].ggrade = '00'
|
||||
if(resData.content.length&&resData.content[0].glevel<3){
|
||||
resData.content[0].ggrade='00'
|
||||
}
|
||||
if (resData.content.length && resData.content[0].slevel > 0 && resData.content[0].sgrade && resData.content[0].sgrade != '00') {
|
||||
if (resData.content.length&&resData.content[0].slevel>0&&resData.content[0].sgrade&&resData.content[0].sgrade!='00') {
|
||||
// if(resData.content[0].slevel<3){
|
||||
// resData.content[0].sgrade='00'
|
||||
// }
|
||||
let sgrade = this.memberConversion(resData.content[0].sgrade)
|
||||
shareContent = '国富双冠精英' + resData.content[0].slevel + '级' + sgrade + resData.content[0].name + '为您量身定制的保险产品,请查收'
|
||||
} else if (resData.content.length && resData.content[0].glevel > 0 && resData.content[0].ggrade && resData.content[0].ggrade != '00') {
|
||||
let sgrade =this.memberConversion(resData.content[0].sgrade);
|
||||
shareContent='国富双冠精英'+resData.content[0].slevel+'级'+sgrade+resData.content[0].name+'为您量身定制的保险产品,请查收';
|
||||
}else if (resData.content.length&&resData.content[0].glevel>0&&resData.content[0].ggrade&&resData.content[0].ggrade!='00') {
|
||||
// if(resData.content[0].glevel<3){
|
||||
// resData.content[0].ggrade='00'
|
||||
// }
|
||||
let ggrade = this.memberConversion(resData.content[0].ggrade)
|
||||
shareContent = '国富桂冠精英' + resData.content[0].glevel + '级' + ggrade + resData.content[0].name + '为您量身定制的保险产品,请查收'
|
||||
let ggrade =this.memberConversion(resData.content[0].ggrade);
|
||||
shareContent='国富桂冠精英'+resData.content[0].glevel+'级'+ggrade+resData.content[0].name+'为您量身定制的保险产品,请查收';
|
||||
} else {
|
||||
shareContent = this.agent.name + '为您设计的专属保险计划书,请查阅!因为国富,所以民安!'
|
||||
shareContent = this.agent.name+'为您设计的专属保险计划书,请查阅!因为国富,所以民安!';
|
||||
}
|
||||
console.log(shareContent, 'shareContent')
|
||||
console.log(shareContent,'shareContent')
|
||||
let title
|
||||
let riskList = [] //所有险种
|
||||
let riskCodeList = [] //所有险种code
|
||||
this.pageShowInfo.insuredDTOs.map((item) => {
|
||||
item.mainRisk.map((item01) => {
|
||||
if (item01.isMainRisk == '0') {
|
||||
//主险
|
||||
this.pageShowInfo.insuredDTOs.map(item => {
|
||||
item.mainRisk.map(item01 => {
|
||||
if (item01.isMainRisk == '0') { //主险
|
||||
riskList.push(item01)
|
||||
}
|
||||
})
|
||||
})
|
||||
riskList.map((item) => {
|
||||
riskList.map(item => {
|
||||
riskCodeList.push(item.riskCode)
|
||||
})
|
||||
let sameRisk = isAllEqual(riskCodeList)
|
||||
@@ -729,17 +665,17 @@ export default {
|
||||
// 2、有2个及以上主险组合,建议书名称显示“保险产品组合计划”
|
||||
// 二、有多个被保险人
|
||||
// 都显示“家庭保障计划”
|
||||
if (sameRisk) {
|
||||
if (this.pageShowInfo.insuredDTOs.length > 1) {
|
||||
title = '家庭保障计划'
|
||||
} else {
|
||||
title = riskList[0].riskName
|
||||
if(sameRisk){
|
||||
if(this.pageShowInfo.insuredDTOs.length > 1){
|
||||
title='家庭保障计划'
|
||||
}else{
|
||||
title= riskList[0].riskName
|
||||
}
|
||||
} else {
|
||||
if (this.pageShowInfo.insuredDTOs.length > 1) {
|
||||
title = '家庭保障计划'
|
||||
} else {
|
||||
title = '保险产品组合计划'
|
||||
}else{
|
||||
if(this.pageShowInfo.insuredDTOs.length > 1){
|
||||
title='家庭保障计划'
|
||||
}else{
|
||||
title= '保险产品组合计划'
|
||||
}
|
||||
}
|
||||
let res = await getSharingToken({ shareType: 'proposal_demonstrate' })
|
||||
@@ -749,8 +685,7 @@ export default {
|
||||
extra: {
|
||||
title: title,
|
||||
content: shareContent,
|
||||
url:
|
||||
location.origin + '/#/proposal/proposalInfo?proposalOrderNo=' + encodeURI(this.$route.query.proposalOrderNo) + '&token=' + encodeURI(res.content),
|
||||
url: location.origin + '/#/proposal/proposalInfo?proposalOrderNo=' + encodeURI(this.$route.query.proposalOrderNo) + '&token=' + encodeURI(res.content),
|
||||
img: this.$assetsUrl + 'images/logo.png'
|
||||
}
|
||||
})
|
||||
@@ -763,7 +698,7 @@ export default {
|
||||
radioChange(risk) {
|
||||
let that = this
|
||||
let key = risk.tap
|
||||
risk.demoLabel.forEach((demo) => {
|
||||
risk.demoLabel.forEach(demo => {
|
||||
let result = haveTap(demo.content, '_')
|
||||
if (result) {
|
||||
let index = getTapIndex(demo.content, '_') + 1
|
||||
@@ -792,10 +727,10 @@ export default {
|
||||
this.pageShowInfo.insuredDTOs = res.content.orderDTO.insuredDTOs
|
||||
this.pageShowInfo.showInsuredDTO = this.pageShowInfo.insuredDTOs[0]
|
||||
let mainRiskNameList = []
|
||||
that.pageShowInfo.insuredDTOs.forEach((item) => {
|
||||
item.riskDTOLst.forEach((item01) => {
|
||||
that.pageShowInfo.insuredDTOs.forEach(item => {
|
||||
item.riskDTOLst.forEach(item01 => {
|
||||
if (item01.isMainRisk == '0') {
|
||||
if (item01.mainRiskCode == 'GFRS_M0080' || item01.mainRiskCode == 'GFRS_M0083' || item01.mainRiskCode == 'GFRS_M0085') {
|
||||
if(item01.mainRiskCode == 'GFRS_M0080' || item01.mainRiskCode == 'GFRS_M0083' || item01.mainRiskCode == 'GFRS_M0085') {
|
||||
that.ispremshow = false
|
||||
}
|
||||
mainRiskNameList.push(item01.riskName)
|
||||
@@ -807,13 +742,13 @@ export default {
|
||||
// 2、有2个及以上主险组合,建议书名称显示“保险产品组合计划”
|
||||
// 二、有多个被保险人
|
||||
// 都显示“家庭保障计划”
|
||||
if (mainRiskNameList.length == 1) {
|
||||
if(mainRiskNameList.length == 1){
|
||||
if (this.pageShowInfo.insuredDTOs.length > 1) {
|
||||
that.mainRiskName = '家庭保障计划'
|
||||
} else {
|
||||
that.mainRiskName = mainRiskNameList[0]
|
||||
}
|
||||
} else {
|
||||
}else{
|
||||
if (this.pageShowInfo.insuredDTOs.length > 1) {
|
||||
that.mainRiskName = '家庭保障计划'
|
||||
} else {
|
||||
@@ -823,16 +758,16 @@ export default {
|
||||
//投保人年龄
|
||||
// this.pageShowInfo.appntDTO.age = getAge.getAge(this.pageShowInfo.appntDTO.birthdayLabel, new Date())
|
||||
let { insuredLabelResult, insuredResult, insuredInfoResult } = res.content.calculusResDTO
|
||||
orderDTO.insuredDTOs.forEach((v) => {
|
||||
orderDTO.insuredDTOs.forEach(v => {
|
||||
//根据数据字典 获取当前值
|
||||
v.age = getAge.getAge(v.birthdayLabel, new Date())
|
||||
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
||||
if (!v.name) {
|
||||
let sex = v.sex == '0' ? '男' : '女'
|
||||
v.name = sex + v.insuredAge + '岁'
|
||||
if(!v.name){
|
||||
let sex = v.sex == '0'?'男':'女'
|
||||
v.name = sex + v.insuredAge+'岁'
|
||||
}
|
||||
v.riskDTOLstNew = []
|
||||
v.riskDTOLst.forEach((risk) => {
|
||||
v.riskDTOLst.forEach(risk => {
|
||||
if (risk.isMainRisk == '0') {
|
||||
that.mainRiskCodes.push(risk.riskCode)
|
||||
}
|
||||
@@ -852,11 +787,11 @@ export default {
|
||||
risk.payName = risk.payEndYear + '年'
|
||||
}
|
||||
} else {
|
||||
risk.payName = '交至' + risk.payEndYear + '周岁'
|
||||
risk.payName = '交至' + risk.payEndYear + '周岁'
|
||||
}
|
||||
// todo责任显示处理
|
||||
if (risk.riskCode == 'GFRS_M0053' || risk.riskCode == 'GFRS_M0061') {
|
||||
v.riskDTOLstNew.push(risk)
|
||||
if(risk.riskCode == 'GFRS_M0053' || risk.riskCode == 'GFRS_M0061'){
|
||||
v.riskDTOLstNew.push(risk)
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -868,9 +803,9 @@ export default {
|
||||
this.insuredDTOs = relevanceByInsure(this.insuredDTOs, insuredLabelResult, insuredResult, insuredInfoResult) //进行数据关联
|
||||
this.getWXTitle(this.insuredDTOs) //获取微信标题
|
||||
// 建议书名称
|
||||
this.insuredDTOs.forEach((item) => {
|
||||
this.insuredDTOs.forEach(item => {
|
||||
if (item.riskDTOLst && item.riskDTOLst.length > 0) {
|
||||
item.riskDTOLst.forEach((ele) => {
|
||||
item.riskDTOLst.forEach(ele => {
|
||||
this.chooseProductCodes.push(ele.riskCode)
|
||||
})
|
||||
}
|
||||
@@ -880,7 +815,7 @@ export default {
|
||||
},
|
||||
//获取微信分享的标题
|
||||
getWXTitle(insuredDTOs) {
|
||||
dataDictionary.riskType.forEach((dataRisk) => {
|
||||
dataDictionary.riskType.forEach(dataRisk => {
|
||||
if (insuredDTOs[0].mainRisk[0].riskCode == dataRisk.code) {
|
||||
this.wxTitle = dataRisk.shortName + '计划书'
|
||||
}
|
||||
@@ -895,10 +830,10 @@ export default {
|
||||
let path = '/sale/insuredInfo?edit=1'
|
||||
if (this.mainRiskCodes) {
|
||||
if (this.mainRiskCodes.length === 2) {
|
||||
let prd26 = this.mainRiskCodes.some((item) => {
|
||||
let prd26 = this.mainRiskCodes.some(item => {
|
||||
return item === 'GFRS_M0026'
|
||||
})
|
||||
let prd17 = this.mainRiskCodes.some((item) => {
|
||||
let prd17 = this.mainRiskCodes.some(item => {
|
||||
return item === 'GFRS_M0017'
|
||||
})
|
||||
// 如果选择的产品不是GFRS_M0026&GFRS_M0017弹出提示
|
||||
@@ -906,12 +841,7 @@ export default {
|
||||
return Toast.fail('暂不支持组合产品转投保')
|
||||
}
|
||||
}
|
||||
if (
|
||||
this.mainRiskCodes[0] == 'GFRS_M0024' ||
|
||||
this.mainRiskCodes[0] == 'GFRS_M0040' ||
|
||||
this.mainRiskCodes[0] == 'GFRS_M0044' ||
|
||||
this.mainRiskCodes[0] == 'GFRS_M0051'
|
||||
) {
|
||||
if (this.mainRiskCodes[0] == 'GFRS_M0024' || this.mainRiskCodes[0] == 'GFRS_M0040' || this.mainRiskCodes[0] == 'GFRS_M0044'|| this.mainRiskCodes[0] == 'GFRS_M0051') {
|
||||
let specilFlag = '1'
|
||||
path = `${path}&specilFlag=${specilFlag}`
|
||||
let flagPermission = await riskRules.getProductSellPermissionList(this.mainRiskCodes[0], this)
|
||||
@@ -927,7 +857,7 @@ export default {
|
||||
proposalNo: this.proposalNo
|
||||
}
|
||||
}
|
||||
toInsurance(params).then((res) => {
|
||||
toInsurance(params).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.$CacheUtils.setLocItem('orderNo', res.content.orderNo)
|
||||
localStorage.chooseProductCodes = ''
|
||||
@@ -952,7 +882,7 @@ export default {
|
||||
this.$forceUpdate() //强制组件更新 解决值更改之后 滑块不滑动的问题
|
||||
let index = String(value)
|
||||
if (demoLabel) {
|
||||
demoLabel.forEach((label) => {
|
||||
demoLabel.forEach(label => {
|
||||
label.value = demoValue[index][label.content]
|
||||
if (label.content == 'currentAge') {
|
||||
this.pageShowInfo.showInsuredDTO.checkAge = label.value
|
||||
@@ -992,7 +922,7 @@ export default {
|
||||
//点击滑块增加或者减少时调用
|
||||
slideChange(risk) {
|
||||
let index = String(risk.sliderValue)
|
||||
risk.demoLabel.forEach((label) => {
|
||||
risk.demoLabel.forEach(label => {
|
||||
label.value = risk.demoValue[index][label.content]
|
||||
if (label.content == 'currentAge') {
|
||||
this.pageShowInfo.showInsuredDTO.checkAge = label.value
|
||||
@@ -1014,14 +944,14 @@ export default {
|
||||
},
|
||||
//跳转到pdf 进入建议书后 根据建议书编码来查找相应的pdf
|
||||
async goPDF() {
|
||||
if (this.$route.query.proposalOrderNo) {
|
||||
if(this.$route.query.proposalOrderNo){
|
||||
this.$router.push({
|
||||
path: '/proposal/pdf',
|
||||
query: {
|
||||
proposalOrderNo: this.$route.query.proposalOrderNo
|
||||
proposalOrderNo:this.$route.query.proposalOrderNo
|
||||
}
|
||||
})
|
||||
} else {
|
||||
}else{
|
||||
this.$router.push({ path: '/proposal/pdf' })
|
||||
}
|
||||
|
||||
@@ -1066,10 +996,10 @@ export default {
|
||||
return values
|
||||
},
|
||||
memberConversion(status) {
|
||||
let text = ''
|
||||
let text=''
|
||||
switch (status) {
|
||||
case '00':
|
||||
text = '' //准会员不显示
|
||||
text = '' //准会员不显示
|
||||
break
|
||||
case '01':
|
||||
text = '正式会员'
|
||||
@@ -1187,10 +1117,6 @@ export default {
|
||||
height: 60px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hideInfo_hesitate {
|
||||
height: 60px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.insured_item {
|
||||
position: absolute;
|
||||
z-index: 98;
|
||||
@@ -1592,9 +1518,6 @@ export default {
|
||||
line-height: 20px;
|
||||
margin: 5px 0px;
|
||||
}
|
||||
.div_height {
|
||||
line-height: 24px;
|
||||
}
|
||||
.van-button::before {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
|
||||
@@ -247,7 +247,7 @@ import utilsAge from '@/assets/js/utils/age'
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||
import { idToData } from './js/verification'
|
||||
import {idNoCheck8, idToData} from './js/verification'
|
||||
import { selectComp } from './js/methods'
|
||||
import getAreaName from '@/assets/js/utils/getAreaNameForSale'
|
||||
import { getOrderDetail, checkAppointBnf } from '@/api/ebiz/sale/sale'
|
||||
@@ -961,7 +961,8 @@ export default {
|
||||
}
|
||||
}
|
||||
//证件类型是户口本
|
||||
} else if (this.userInfo.idType == '2') {
|
||||
}
|
||||
else if (this.userInfo.idType == '2') {
|
||||
if (age >= 16) {
|
||||
return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件')
|
||||
}
|
||||
@@ -1009,7 +1010,8 @@ export default {
|
||||
return this.$toast('您填写的证件号码有误')
|
||||
}
|
||||
//证件类型是出生证明
|
||||
} else if (this.userInfo.idType == '3') {
|
||||
}
|
||||
else if (this.userInfo.idType == '3') {
|
||||
if (age >= 2) {
|
||||
return this.$toast('客户年龄在2周岁及以上,不能使用出生证作为有效证件')
|
||||
}
|
||||
@@ -1019,20 +1021,29 @@ export default {
|
||||
return this.$toast('您填写的证件号码有误')
|
||||
}
|
||||
//证件类型是护照
|
||||
} else if (this.userInfo.idType == '4') {
|
||||
}
|
||||
else if (this.userInfo.idType == '4') {
|
||||
if (this.userInfo.nativeplace == '1') {
|
||||
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '5') {
|
||||
}
|
||||
else if (this.userInfo.idType == '5') {
|
||||
console.log(this.userInfo.nativeplace, 'nativeplace')
|
||||
if (this.userInfo.nativeplace != '2' && this.userInfo.nativeplace != '3') {
|
||||
return this.$toast('“证件类型”为“港澳居民来往内地通行证”,“国籍”请选择“中国香港”或“中国澳门”哦~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '6') {
|
||||
}
|
||||
else if (this.userInfo.idType == '6') {
|
||||
if (this.userInfo.nativeplace != '4') {
|
||||
return this.$toast('“证件类型”为“台湾居民来往大陆通行证”,“国籍”请选择“中国台湾”~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '9') {
|
||||
}
|
||||
else if (this.userInfo.idType == '8') {
|
||||
if (idNoCheck8(this.userInfo).text){
|
||||
return this.$toast(idNoCheck8(this.userInfo).text)
|
||||
}
|
||||
}
|
||||
else if (this.userInfo.idType == '9') {
|
||||
if (this.userInfo.nativeplace != '2' && this.userInfo.nativeplace != '3' && this.userInfo.nativeplace != '4') {
|
||||
return this.$toast('“证件类型”为“港澳台居民居住证”,“国籍”请选择“中国香港”、“中国澳门”或“中国台湾”~')
|
||||
}
|
||||
|
||||
@@ -460,7 +460,7 @@
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
||||
import { idToData } from './js/verification'
|
||||
import { idToData, idNoCheck8 } from './js/verification'
|
||||
import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import SearchField from '@/components/common/SearchField'
|
||||
import riskRules from '@/views/ebiz/common/risk-rules'
|
||||
@@ -773,8 +773,6 @@
|
||||
this.isNewPeopleFlagTipshow = true
|
||||
},
|
||||
workcompanys(list) {
|
||||
// 单位数据
|
||||
console.log(list)
|
||||
this.userWorkcompanys = list
|
||||
},
|
||||
setCustomerMarriage(marriageCode) {
|
||||
@@ -1243,28 +1241,39 @@
|
||||
}
|
||||
}
|
||||
//证件类型是户口本
|
||||
} else if (this.userInfo.idType == '2') {
|
||||
}
|
||||
else if (this.userInfo.idType == '2') {
|
||||
if (age > 16) {
|
||||
return this.$toast('客户年龄在16周岁以上,不能使用户口本作为有效证件')
|
||||
}
|
||||
} else if (this.userInfo.idType == '3') {
|
||||
}
|
||||
else if (this.userInfo.idType == '3') {
|
||||
if (age >= 2) {
|
||||
return this.$toast('客户年龄在2周岁及以上,不能使用出生证作为有效证件')
|
||||
}
|
||||
} else if (this.userInfo.idType == '4') {
|
||||
}
|
||||
else if (this.userInfo.idType == '4') {
|
||||
if (this.userInfo.nativeplace == '1') {
|
||||
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '5') {
|
||||
}
|
||||
else if (this.userInfo.idType == '5') {
|
||||
console.log(this.userInfo.nativeplace, 'nativeplace')
|
||||
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3) {
|
||||
return this.$toast('“证件类型”为“港澳居民来往内地通行证”,“国籍”请选择“中国香港”或“中国澳门”哦~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '6') {
|
||||
}
|
||||
else if (this.userInfo.idType == '6') {
|
||||
if (this.userInfo.nativeplace != 4) {
|
||||
return this.$toast('“证件类型”为“台湾居民来往大陆通行证”,“国籍”请选择“中国台湾”~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '9') {
|
||||
}
|
||||
else if (this.userInfo.idType == '8') {
|
||||
if (idNoCheck8(this.userInfo).text){
|
||||
return this.$toast(idNoCheck8(this.userInfo).text)
|
||||
}
|
||||
}
|
||||
else if (this.userInfo.idType == '9') {
|
||||
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3 && this.userInfo.nativeplace != 4) {
|
||||
return this.$toast('“证件类型”为“港澳台居民居住证”,“国籍”请选择“中国香港”、“中国澳门”或“中国台湾”~')
|
||||
}
|
||||
@@ -1487,10 +1496,26 @@
|
||||
this.$CacheUtils.setLocItem('orderNo', resultData.orderNo)
|
||||
// localStorage.insuredDetail = JSON.stringify(this.userInfo)
|
||||
// 添加提示
|
||||
// let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
// if (age >= 60 && this.manageComCode == '45') {
|
||||
// this.thisdoubledialogshow = true
|
||||
// } else {
|
||||
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
|
||||
if (age >= 60 && this.manageComCode == '45') {
|
||||
this.thisdoubledialogshow = true
|
||||
// this.$dialog
|
||||
// .alert({
|
||||
// message: '根据监管要求,本单需要您配合对销售过程进行录音录像!',
|
||||
// confirmButtonColor: '#000000',
|
||||
// })
|
||||
// .then(() => {
|
||||
// this.$jump({
|
||||
// flag: 'h5',
|
||||
// extra: {
|
||||
// url: location.origin + `/#/sale/insuredPerson?${str}` + '&orderNo=' + resultData.orderNo,
|
||||
// },
|
||||
// routerInfo: {
|
||||
// path: `/sale/insuredPerson?${str}` + '&orderNo=' + resultData.orderNo,
|
||||
// },
|
||||
// })
|
||||
// })
|
||||
} else {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
@@ -1500,7 +1525,7 @@
|
||||
path: `/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo,
|
||||
},
|
||||
})
|
||||
// }
|
||||
}
|
||||
} else {
|
||||
this.$toast(resultData.resultMessage)
|
||||
}
|
||||
@@ -1590,35 +1615,37 @@
|
||||
}
|
||||
},
|
||||
getRelatedData(val, source) {
|
||||
if (this.userInfo.idType != '1') {
|
||||
if (this.userInfo.idType != '1' && this.userInfo.idType != '8') {
|
||||
return
|
||||
}
|
||||
//如果证件校验不通过,恢复默认值
|
||||
if (idToData(val).text) {
|
||||
;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
||||
return this.$toast(idToData(val).text)
|
||||
}
|
||||
// // 判断投保人年龄是否大于16周岁
|
||||
// if (idToData(val).age <= 16) {
|
||||
// ;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
||||
// return this.$toast('亲,投保人年龄必须大于等于16周岁哦~')
|
||||
// }
|
||||
|
||||
this.userInfo.effectiveDateType = false
|
||||
this.effectiveDateTypeAble = idToData(val).age <= 45
|
||||
this.userInfo.birthday = idToData(val).birthday
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
//年龄小于18周岁,工作单位默认值为‘无’
|
||||
if (idToData(val).age < 18) {
|
||||
this.userInfo.workcompany = this.userInfo.workcompany || '无'
|
||||
}
|
||||
if (idToData(val).age > 45) {
|
||||
if (source) {
|
||||
this.userInfo.effectiveDateType = true
|
||||
if(this.userInfo.idType == '1'){
|
||||
//如果证件校验不通过,恢复默认值
|
||||
if (idToData(val).text) {
|
||||
;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
||||
return this.$toast(idToData(val).text)
|
||||
}
|
||||
// // 判断投保人年龄是否大于16周岁
|
||||
// if (idToData(val).age <= 16) {
|
||||
// ;[this.userInfo.idNo, this.userInfo.sex, this.userInfo.birthday, this.effectiveDateTypeAble] = ['', '0', '', false]
|
||||
// return this.$toast('亲,投保人年龄必须大于等于16周岁哦~')
|
||||
// }
|
||||
|
||||
this.userInfo.effectiveDateType = false
|
||||
this.effectiveDateTypeAble = idToData(val).age <= 45
|
||||
this.userInfo.birthday = idToData(val).birthday
|
||||
this.userInfo.sex = idToData(val).sex
|
||||
//年龄小于18周岁,工作单位默认值为‘无’
|
||||
if (idToData(val).age < 18) {
|
||||
this.userInfo.workcompany = this.userInfo.workcompany || '无'
|
||||
}
|
||||
if (idToData(val).age > 45) {
|
||||
if (source) {
|
||||
this.userInfo.effectiveDateType = true
|
||||
}
|
||||
this.effectiveDateTypeAble = false
|
||||
} else {
|
||||
// this.userInfo.effectiveDateType = false
|
||||
}
|
||||
this.effectiveDateTypeAble = false
|
||||
} else {
|
||||
// this.userInfo.effectiveDateType = false
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
@@ -493,7 +493,7 @@
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
import idNoCheck from '@/assets/js/utils/idNoCheck'
|
||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
||||
import { idToData } from './js/verification'
|
||||
import {idNoCheck8, idToData} from './js/verification'
|
||||
import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import IndexBar from '@/components/ebiz/sale/IndexBar'
|
||||
import SearchField from '@/components/common/SearchField'
|
||||
@@ -1540,7 +1540,8 @@
|
||||
// }
|
||||
|
||||
//证件类型是户口本
|
||||
} else if (this.userInfo.idType == '2') {
|
||||
}
|
||||
else if (this.userInfo.idType == '2') {
|
||||
if (this.userInfo.nativeplace != '1') {
|
||||
return this.$toast('证件类型”为“身份证,国籍必须为中国哦')
|
||||
}
|
||||
@@ -1591,7 +1592,8 @@
|
||||
// return this.$toast('户口本的证件号码长度应等于18位')
|
||||
// }
|
||||
//证件类型是出生证明
|
||||
} else if (this.userInfo.idType == '3') {
|
||||
}
|
||||
else if (this.userInfo.idType == '3') {
|
||||
if (age >= 2) {
|
||||
return this.$toast('客户年龄在2周岁及以上,不能使用出生证作为有效证件')
|
||||
}
|
||||
@@ -1604,20 +1606,29 @@
|
||||
// return this.$toast('出生证须大于等于3个字符')
|
||||
// }
|
||||
//证件类型是护照
|
||||
} else if (this.userInfo.idType == '4') {
|
||||
}
|
||||
else if (this.userInfo.idType == '4') {
|
||||
if (this.userInfo.nativeplace == '1') {
|
||||
return this.$toast('“证件类型”为“外国人护照”,“国籍”不能选择为“中国”哦~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '5') {
|
||||
}
|
||||
else if (this.userInfo.idType == '5') {
|
||||
console.log(this.userInfo.nativeplace, 'nativeplace')
|
||||
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3) {
|
||||
return this.$toast('“证件类型”为“港澳居民来往内地通行证”,“国籍”请选择“中国香港”或“中国澳门”哦~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '6') {
|
||||
}
|
||||
else if (this.userInfo.idType == '6') {
|
||||
if (this.userInfo.nativeplace != 4) {
|
||||
return this.$toast('“证件类型”为“台湾居民来往大陆通行证”,“国籍”请选择“中国台湾”~')
|
||||
}
|
||||
} else if (this.userInfo.idType == '9') {
|
||||
}
|
||||
else if (this.userInfo.idType == '8') {
|
||||
if (idNoCheck8(this.userInfo).text){
|
||||
return this.$toast(idNoCheck8(this.userInfo).text)
|
||||
}
|
||||
}
|
||||
else if (this.userInfo.idType == '9') {
|
||||
if (this.userInfo.nativeplace != 2 && this.userInfo.nativeplace != 3 && this.userInfo.nativeplace != 4) {
|
||||
return this.$toast('“证件类型”为“港澳台居民居住证”,“国籍”请选择“中国香港”、“中国澳门”或“中国台湾”~')
|
||||
}
|
||||
|
||||
@@ -16,12 +16,6 @@
|
||||
<van-cell title="销售人员工号" :value="recmd.agentCode" />
|
||||
<van-cell title="销售人员姓名" :value="recmd.name" />
|
||||
<van-cell title="投保单号" :value="orderInfo.orderNo"></van-cell>
|
||||
<!-- 电投签名确认新增交费期间 start at 20240910 -->
|
||||
<div v-if="riskInfo">
|
||||
<van-cell v-if="riskInfo.payEndYear == '1000'" title="交费期间" value="一次性交清" />
|
||||
<van-cell v-else title="交费期间" :value="riskInfo.payEndYearFlag == 'Y' ? `${riskInfo.payEndYear}年` : `至${riskInfo.payEndYear}岁`" />
|
||||
</div>
|
||||
<!-- 电投签名确认新增交费期间 end at 20240910 -->
|
||||
<van-cell title="投保日期" :value="date" />
|
||||
<van-cell title="保费合计(元)" :value="orderInfo.orderAmount == undefined ? '' : orderInfo.orderAmount | moneyFormat" />
|
||||
<van-cell v-if="cvalidateStr" title="指定保单生效日" :value="cvalidateStr" />
|
||||
@@ -359,8 +353,6 @@ export default {
|
||||
riskName: '',
|
||||
// 员工信息
|
||||
recmd: {},
|
||||
// 险种信息 获取交费期间
|
||||
riskInfo: null,
|
||||
// 投保时间
|
||||
date: '',
|
||||
// 订单信息
|
||||
@@ -777,7 +769,7 @@ export default {
|
||||
window.localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign))
|
||||
if (val == '0' || val == '2') {
|
||||
//idtype不为身份证跳过人脸识别
|
||||
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1') {
|
||||
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1' && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '8') {
|
||||
that.goUrl()
|
||||
} else {
|
||||
// 白名单校验
|
||||
@@ -809,9 +801,10 @@ export default {
|
||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
||||
} else {
|
||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
|
||||
this.recognition()
|
||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
|
||||
this.idcardData.idType = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType
|
||||
this.recognition()
|
||||
}
|
||||
// if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
||||
// this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
||||
@@ -832,9 +825,7 @@ export default {
|
||||
} else {
|
||||
thismyage = thismysaleInsuredPersonInfo.insuredAge
|
||||
}
|
||||
if (
|
||||
JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' || thismyage < '18'
|
||||
) {
|
||||
if ((JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '1' && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType != '8') || thismyage < '18') {
|
||||
that.goUrl()
|
||||
} else {
|
||||
// 白名单校验
|
||||
@@ -866,9 +857,10 @@ export default {
|
||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
||||
} else {
|
||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
||||
this.recognition()
|
||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
||||
this.idcardData.idType = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType
|
||||
this.recognition()
|
||||
}
|
||||
// if (this.faceAuthCount.insured < this.smsAuthNum) {
|
||||
// this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||
@@ -884,7 +876,7 @@ export default {
|
||||
if (val == '0' || val == '2') {
|
||||
window.localStorage.setItem('sign-val', val)
|
||||
window.localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign))
|
||||
if (this.saleInsuredInfo.idType != '1') {
|
||||
if (this.saleInsuredInfo.idType != '1' && this.saleInsuredInfo.idType != '8') {
|
||||
that.goUrl()
|
||||
} else {
|
||||
//RID 状态--有效
|
||||
@@ -913,11 +905,16 @@ export default {
|
||||
}
|
||||
if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
||||
// 人脸识别
|
||||
let thisidType = ''
|
||||
if(that.saleInsuredInfo.idType == 8) {
|
||||
thisidType = '05'
|
||||
}
|
||||
//eslint-disable-next-line no-undef
|
||||
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
|
||||
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
||||
number: that.saleInsuredInfo.idNo, //身份证号码
|
||||
name: that.saleInsuredInfo.name //姓名
|
||||
name: that.saleInsuredInfo.name, //姓名
|
||||
idType: thisidType, //证件类型
|
||||
}).then((data) => {
|
||||
if (JSON.parse(data).state == '1') {
|
||||
// 保存rid 数据
|
||||
@@ -945,7 +942,7 @@ export default {
|
||||
} else {
|
||||
thismyage = this.saleInsuredPersonInfo.insuredAge
|
||||
}
|
||||
if (this.saleInsuredPersonInfo.idType != '1' || thismyage < '18') {
|
||||
if ((this.saleInsuredPersonInfo.idType != '1' && this.saleInsuredPersonInfo.idType != '8') || thismyage < '18') {
|
||||
that.goUrl()
|
||||
} else {
|
||||
//RID 状态--有效
|
||||
@@ -977,11 +974,16 @@ export default {
|
||||
|
||||
// 人脸识别
|
||||
if (this.faceAuthCount.insured < this.smsAuthNum) {
|
||||
let thisidType = ''
|
||||
if(that.saleInsuredPersonInfo.idType == 8) {
|
||||
thisidType = '05'
|
||||
}
|
||||
// 调原生人脸识别
|
||||
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
|
||||
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
||||
number: that.saleInsuredPersonInfo.idNo, //身份证号码
|
||||
name: that.saleInsuredPersonInfo.name //姓名
|
||||
name: that.saleInsuredPersonInfo.name, //姓名
|
||||
idType: thisidType, //证件类型
|
||||
}).then((data) => {
|
||||
if (JSON.parse(data).state == '1') {
|
||||
that.saveCustomerRidInfo('insured_rid', 'B')
|
||||
@@ -1070,7 +1072,7 @@ export default {
|
||||
})
|
||||
getAgentInfo({}).then((res) => {
|
||||
console.log(res)
|
||||
if ((res.branchType == 'N1' || res.branchType == '1'||res.branchType == '12' || res.branchType == '13') && !this.isVideo) {
|
||||
if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) {
|
||||
this.$jump({
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
@@ -1457,7 +1459,6 @@ export default {
|
||||
let documentCodeType = res.orderDTO.ebizSignDTOS.filter(item=>item.documentCode == '14').length>0
|
||||
localStorage.setItem('documentCodeType', documentCodeType)
|
||||
let riskDTOLst = res.orderDTO.insuredDTOs[0].riskDTOLst[0]
|
||||
this.riskInfo = res.orderDTO.insuredDTOs[0].riskDTOLst[0]
|
||||
// 判断是否为长期险
|
||||
if ((riskDTOLst.insuYearFlag == 'Y' && riskDTOLst.insuYear > 1) || riskDTOLst.insuYearFlag == 'A') {
|
||||
this.$CacheUtils.setLocItem('isLongInsuranceFlag', "Y");
|
||||
@@ -1755,6 +1756,9 @@ export default {
|
||||
redirectUrl: this.idcardData.redirectUrl,
|
||||
businessSource: this.idcardData.businessSource
|
||||
}
|
||||
if(this.idcardData.idType == 8) {
|
||||
data.idType = '05'
|
||||
}
|
||||
getRecognitionUrl(data).then(
|
||||
(res) => {
|
||||
if (res.result == '0') {
|
||||
|
||||
@@ -24,6 +24,30 @@ export function idToData(idNo) {
|
||||
text: '您填写的证件号码有误'
|
||||
}
|
||||
}
|
||||
console.log('12321321321')
|
||||
let birthday = getBirthById(idNo)
|
||||
let age = utilsAge.getAge(birthday, new Date())
|
||||
let sex = getSexById(idNo)
|
||||
return {
|
||||
birthday,
|
||||
age,
|
||||
sex
|
||||
}
|
||||
}
|
||||
|
||||
//外国人永久居留身份证带出出生日期,性别,年龄
|
||||
export function idToData8(idNo) {
|
||||
//非空
|
||||
if (!idNo.trim()) {
|
||||
return {
|
||||
text: '证件号码不能为空'
|
||||
}
|
||||
}
|
||||
if (idNo.length != 15 && idNo.length != 18) {
|
||||
return {
|
||||
text: '外国人永久居留身份证位数有误'
|
||||
}
|
||||
}
|
||||
let birthday = getBirthById(idNo)
|
||||
let age = utilsAge.getAge(birthday, new Date())
|
||||
let sex = getSexById(idNo)
|
||||
@@ -35,20 +59,218 @@ export function idToData(idNo) {
|
||||
}
|
||||
|
||||
function getBirthById(idNo) {
|
||||
// 获取生日
|
||||
var year = idNo.substr(6, 4)
|
||||
var month = idNo.substr(10, 2)
|
||||
var day = idNo.substr(12, 2)
|
||||
return year + '-' + month + '-' + day
|
||||
if(idNo.length == 15) {
|
||||
// 获取生日
|
||||
let year = '19' + idNo.substr(6, 2)
|
||||
let month = idNo.substr(8, 2)
|
||||
let day = idNo.substr(10, 2)
|
||||
return year + '-' + month + '-' + day
|
||||
}
|
||||
if(idNo.length == 18) {
|
||||
// 获取生日
|
||||
let year = idNo.substr(6, 4)
|
||||
let month = idNo.substr(10, 2)
|
||||
let day = idNo.substr(12, 2)
|
||||
return year + '-' + month + '-' + day
|
||||
}
|
||||
}
|
||||
|
||||
function getSexById(idNo) {
|
||||
// 获取性别
|
||||
if (idNo.charAt(16) >= '0' && idNo.charAt(16) <= '9') {
|
||||
if (parseInt(idNo.charAt(16)) % 2 == 0) {
|
||||
return '1'
|
||||
} else {
|
||||
return '0'
|
||||
// if(idNo.length == 15){
|
||||
// // 获取性别
|
||||
// if (idNo.charAt(13) >= '0' && idNo.charAt(13) <= '9') {
|
||||
// if (parseInt(idNo.charAt(13)) % 2 == 0) {
|
||||
// return '1'
|
||||
// } else {
|
||||
// return '0'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if(idNo.length == 18) {
|
||||
// 获取性别
|
||||
if (idNo.charAt(16) >= '0' && idNo.charAt(16) <= '9') {
|
||||
if (parseInt(idNo.charAt(16)) % 2 == 0) {
|
||||
return '1'
|
||||
} else {
|
||||
return '0'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
function js_date_time(unixtime) {
|
||||
var dateTime = new Date(parseInt(unixtime))
|
||||
var year = dateTime.getFullYear();
|
||||
var month = dateTime.getMonth() + 1;
|
||||
var day = dateTime.getDate();
|
||||
var timeSpanStr = year + '-' + month.toString().padStart(2, '0') + '-' + day.toString().padStart(2, '0');
|
||||
return timeSpanStr;
|
||||
}
|
||||
|
||||
export function idNoCheck8(userInfo,type) {
|
||||
if(!userInfo.idNo) {
|
||||
return {
|
||||
text: '证件号码不能为空'
|
||||
}
|
||||
}
|
||||
if(userInfo.idNo.length != 15 && userInfo.idNo.length != 18) {
|
||||
return {
|
||||
text: '外国人永久居留身份证位数有误'
|
||||
}
|
||||
}
|
||||
if(userInfo.idNo.length == 15) {
|
||||
let reg = /^[A-Za-z]{3}\d{12}$/
|
||||
if(!reg.test(userInfo.idNo)) {
|
||||
return {
|
||||
text: '外国人永久居留身份证位数有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
if(userInfo.idNo.length == 18) {
|
||||
let reg = / (^9\d{17}$)|(^9\d{16}(\d|X)$)/
|
||||
if(!reg.test(userInfo.idNo)) {
|
||||
return {
|
||||
text: '外国人永久居留身份证位数有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
// if(userInfo.idNo.length == 15) {
|
||||
// // 获取生日
|
||||
// let year = '19' + userInfo.idNo.substr(7, 2)
|
||||
// let month = userInfo.idNo.substr(9, 2)
|
||||
// let day = userInfo.idNo.substr(11, 2)
|
||||
// let thisBirthday = year + '-' + month + '-' + day
|
||||
// if(thisBirthday != userInfo.birthday) {
|
||||
// console.log('12321321321',thisBirthday)
|
||||
// return {
|
||||
// text: '出生日期必须与证件号码中的生日一致'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
if(userInfo.idNo.length == 18) {
|
||||
// 获取生日
|
||||
let year = userInfo.idNo.substr(6, 4)
|
||||
let month = userInfo.idNo.substr(10, 2)
|
||||
let day = userInfo.idNo.substr(12, 2)
|
||||
let thisBirthday = year + '-' + month + '-' + day
|
||||
if(thisBirthday != userInfo.birthday) {
|
||||
return {
|
||||
text: '出生日期必须与证件号码中的生日一致'
|
||||
}
|
||||
}
|
||||
}
|
||||
if(userInfo.idNo.length == 18){
|
||||
let thisSex = getSexById(userInfo.idNo)
|
||||
if(thisSex != userInfo.sex) {
|
||||
return {
|
||||
text: '性别必须与证件号码中的一致'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (userInfo.nativeplace == '1' || userInfo.nativeplace == '2' || userInfo.nativeplace == '3' || userInfo.nativeplace == '4') {
|
||||
return {
|
||||
text: '外国人永久居留身份证不能选择中国国籍'
|
||||
}
|
||||
}
|
||||
if(!userInfo.certiexpiredate) {
|
||||
return {
|
||||
text: '证件截止日期不能为空'
|
||||
}
|
||||
}
|
||||
|
||||
if(type == 'cardList') {
|
||||
let thisAge = utilsAge.getAge(userInfo.birthday, new Date())
|
||||
if(thisAge < 18) {
|
||||
let date1 = new Date(userInfo.certiexpiredate.replace(/-/g,'/'));
|
||||
let date2 = date1.setFullYear(date1.getFullYear() - 5);
|
||||
let date3 = date2+(1000*60*60*24)
|
||||
let date4 = js_date_time(date3)
|
||||
let thisAge = utilsAge.getAge(userInfo.birthday, new Date(date4.replace(/-/g,'/')))
|
||||
if(thisAge > 18) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
if(date3 > new Date().getTime()) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
if(thisAge >= 18 && thisAge <= 22) {
|
||||
let date1 = new Date(userInfo.certiexpiredate.replace(/-/g,'/'));
|
||||
let date2 = date1.setFullYear(date1.getFullYear() - 5);
|
||||
let date3 = date2+(1000*60*60*24)
|
||||
let date4 = js_date_time(date3)
|
||||
|
||||
let date5 = new Date(userInfo.certiexpiredate.replace(/-/g,'/'));
|
||||
let date6 = date5.setFullYear(date5.getFullYear() - 10);
|
||||
let date7 = date6+(1000*60*60*24)
|
||||
let date8 = js_date_time(date7)
|
||||
|
||||
let thisAge1 = utilsAge.getAge(userInfo.birthday, new Date(date4.replace(/-/g,'/')))
|
||||
let thisAge2 = utilsAge.getAge(userInfo.birthday, new Date(date8.replace(/-/g,'/')))
|
||||
if(thisAge1 >= 18 && thisAge2 < 18){
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
if(thisAge1 < 18 && date3 > new Date().getTime()) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
if(thisAge2 >= 18 &&date7 > new Date().getTime()) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
if(thisAge >= 23) {
|
||||
let date1 = new Date(userInfo.certiexpiredate.replace(/-/g,'/'));
|
||||
let date2 = date1.setFullYear(date1.getFullYear() - 10);
|
||||
let date3 = date2+(1000*60*60*24)
|
||||
let date4 = js_date_time(date3)
|
||||
let thisAge = utilsAge.getAge(userInfo.birthday, new Date(date4.replace(/-/g,'/')))
|
||||
if(thisAge < 18) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
if(date3 > new Date().getTime()) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
let thisAge = utilsAge.getAge(userInfo.birthday, new Date(userInfo.certificateValidate))
|
||||
if(thisAge < 18) {
|
||||
let date1 = new Date(userInfo.certificateValidate.replace(/-/g,'/'));
|
||||
let date2 = date1.setFullYear(date1.getFullYear() + 5);
|
||||
let date3 = date2-(1000*60*60*24)
|
||||
let date4 = js_date_time(date3)
|
||||
console.log(date4+'-'+userInfo.certiexpiredate)
|
||||
if(date4 != userInfo.certiexpiredate) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
if(thisAge >= 18) {
|
||||
let date1 = new Date(userInfo.certificateValidate.replace(/-/g,'/'));
|
||||
let date2 = date1.setFullYear(date1.getFullYear() + 10);
|
||||
let date3 = date2-(1000*60*60*24)
|
||||
let date4 = js_date_time(date3)
|
||||
if(date4 != userInfo.certiexpiredate) {
|
||||
return {
|
||||
text: '外国人永久居留身份证证件有效期有误'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return {
|
||||
text:''
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user