Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
b4905f9d
Commit
b4905f9d
authored
Mar 07, 2024
by
14699
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改
parent
29fe67b2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
531 additions
and
491 deletions
+531
-491
README.md
README.md
+13
-13
prod.env.js
config/prod.env.js
+1
-1
android.json
plugins/android.json
+0
-3
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+194
-152
contract-new.vue
src/pages/contractSigning/contract-new.vue
+4
-4
contract-signing.vue
src/pages/contractSigning/contract-signing.vue
+5
-2
my-info.vue
src/pages/myInfo/my-info.vue
+0
-1
myBindUser.vue
src/pages/myInfo/myBindUser.vue
+282
-283
hlsUtil.js
src/scripts/hlsUtil.js
+32
-32
No files found.
README.md
View file @
b4905f9d
...
@@ -54,39 +54,39 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
...
@@ -54,39 +54,39 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
# 签名
# 签名
jarsigner -verbose -keystore xcmg.keystore -signedjar 租赁通.apk zlt.apk XCMGKEY
jarsigner -verbose -keystore xcmg.keystore -signedjar 租赁通.apk zlt.apk XCMGKEY
#极光推送信息
#极光推送信息
账户:15062177566@163.com
账户:15062177566@163.com
密码:Xcmg66966
密码:Xcmg66966
JPUSH_APPKEY
JPUSH_APPKEY
开发环境:
开发环境:
应用名称:徐工金服dev com.xcmg.app.dev
应用名称:徐工金服dev com.xcmg.app.dev
AppKey:7675edf5efa043a1ce9449a2
AppKey:7675edf5efa043a1ce9449a2
Screat: 216c67446abe6758ac4e35f0
Screat: 216c67446abe6758ac4e35f0
生产环境:
生产环境:
应用名称:徐工金服 com.xcmg.app
应用名称:徐工金服 com.xcmg.app
AppKey:bef4fd44dcf54b79b8ab27c3
AppKey:bef4fd44dcf54b79b8ab27c3
Screat: 53f26eee93e657fdcee00d1a
Screat: 53f26eee93e657fdcee00d1a
#百度地图
#百度地图
账户:15996971299
账户:15996971299
密码:guo15996971299
密码:guo15996971299
com.baidu.lbsapi.API_KEY
com.baidu.lbsapi.API_KEY
开发环境:
开发环境:
应用名称:徐工融租dev com.xcmg.app.dev
应用名称:徐工融租dev com.xcmg.app.dev
IOS_KEY:NYuANmOUjGo5q0n48qF97fShdjVwmhM6
IOS_KEY:NYuANmOUjGo5q0n48qF97fShdjVwmhM6
ANDROID_KEY: Y8gTWgN2GuDtvhBfiECaZiBtE6i0wQBG
ANDROID_KEY: Y8gTWgN2GuDtvhBfiECaZiBtE6i0wQBG
web端: Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU
web端: Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU
生产环境:
生产环境:
应用名称:徐工融租 com.xcmg.app
应用名称:徐工融租 com.xcmg.app
IOS_KEY:hhouKKwxALvC7MBZmnfwgSacHOfFOlNu
IOS_KEY:hhouKKwxALvC7MBZmnfwgSacHOfFOlNu
ANDROID_KEY: q4W0FynBkTd4v44ZM8m4MxUpuXBqGIqQ
ANDROID_KEY: q4W0FynBkTd4v44ZM8m4MxUpuXBqGIqQ
...
@@ -96,13 +96,13 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
...
@@ -96,13 +96,13 @@ For a detailed explanation on how things work, check out the [guide](http://vuej
各项目如果安装了 com.hls.plugins.barcode 扫码插件与cordova-plugin-open-camera 媒体插件
各项目如果安装了 com.hls.plugins.barcode 扫码插件与cordova-plugin-open-camera 媒体插件
两个插件之间存在一些冲突 请注释掉媒体插件 plugin.xml 第83行
<uses-feature
android:name=
"android.hardware.camera"
/>
两个插件之间存在一些冲突 请注释掉媒体插件 plugin.xml 第83行
<uses-feature
android:name=
"android.hardware.camera"
/>
# Android执行add环境后修改文件
# Android执行add环境后修改文件
修改platforms/android/AndroidManifest.xml
修改platforms/android/AndroidManifest.xml
在第6行 activity标签后面 添加 android:background="@color/white" 同时找到 android:windowSoftInputMode 修改它的值为 adjustResize
在第6行 activity标签后面 添加 android:background="@color/white" 同时找到 android:windowSoftInputMode 修改它的值为 adjustResize
# 热更新操作步骤
# 热更新操作步骤
1.
修改对应环境的版本号
1.
修改对应环境的版本号
2.
执行npm run build:对应环境
2.
执行npm run build:对应环境
, 重新移除添加android平台 cordova platform rm android , cordova platform add android@6.3.0
3.
将压缩后的www文件夹里的文件覆盖到服务器上下载下来的对应文件
3.
将压缩后的www文件夹里的文件覆盖到服务器上下载下来的对应文件
4.
去对应的业务系统环境内修改相应的版本号
4.
去对应的业务系统环境内修改相应的版本号
config/prod.env.js
View file @
b4905f9d
...
@@ -11,5 +11,5 @@ module.exports = {
...
@@ -11,5 +11,5 @@ module.exports = {
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
ocrPath
:
'"http://210.12.156.64:9090/r/api"'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
fileUploadSvcPath
:
'"http://210.12.156.64:9090/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="'
,
appId
:
'"com.xcmg.app.dev"'
,
appId
:
'"com.xcmg.app.dev"'
,
currentVersion
:
'"3.7.
3
"'
currentVersion
:
'"3.7.
4
"'
}
}
plugins/android.json
View file @
b4905f9d
...
@@ -59,9 +59,6 @@
...
@@ -59,9 +59,6 @@
}
}
},
},
"dependent_plugins"
:
{
"dependent_plugins"
:
{
"cordova-plugin-compat"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
},
"cordova-plugin-contacts"
:
{
"cordova-plugin-contacts"
:
{
"PACKAGE_NAME"
:
"com.hls.app"
"PACKAGE_NAME"
:
"com.hls.app"
},
},
...
...
src/pages/contractSigning/contract-detail.vue
View file @
b4905f9d
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<h-content
v-if=
"num === 0"
class=
"business-condition"
>
<h-content
v-if=
"num === 0"
class=
"business-condition"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
业务主办
</div>
<div
slot=
"name"
class=
"font-color"
>
业务主办
11
</div>
<input
<input
slot=
"content"
v-model=
"baseInfo.bp_user_id_n"
readonly
>
slot=
"content"
v-model=
"baseInfo.bp_user_id_n"
readonly
>
</item>
</item>
...
@@ -124,42 +124,42 @@
...
@@ -124,42 +124,42 @@
<input
<input
slot=
"content"
slot=
"content"
v-model=
"baseInfo.bp_name"
v-model=
"baseInfo.bp_name"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请选择"
placeholder=
"请选择"
>
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
统一社会信用代码
</div>
<div
slot=
"name"
class=
"font-color required"
>
统一社会信用代码
</div>
<input
slot=
"content"
v-model=
"baseInfo.organization_code"
>
<input
slot=
"content"
v-model=
"baseInfo.organization_code"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
注册资本
</div>
<div
slot=
"name"
class=
"font-color required"
>
注册资本
</div>
<input
slot=
"content"
v-model=
"baseInfo.registered_capital"
>
<input
slot=
"content"
v-model=
"baseInfo.registered_capital"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
注册地址
</div>
<div
slot=
"name"
class=
"font-color required"
>
注册地址
</div>
<input
slot=
"content"
v-model=
"baseInfo.registered_place"
>
<input
slot=
"content"
v-model=
"baseInfo.registered_place"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
经营地址
</div>
<div
slot=
"name"
class=
"font-color required"
>
经营地址
</div>
<input
slot=
"content"
v-model=
"baseInfo.business_address"
>
<input
slot=
"content"
v-model=
"baseInfo.business_address"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
联系电话
</div>
<div
slot=
"name"
class=
"font-color required"
>
联系电话
</div>
<input
slot=
"content"
v-model=
"baseInfo.phone"
>
<input
slot=
"content"
v-model=
"baseInfo.phone"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
联合承租人
</div>
<div
slot=
"name"
class=
"font-color"
>
联合承租人
</div>
<input
slot=
"content"
v-model=
"baseInfo.union_bp"
>
<input
slot=
"content"
v-model=
"baseInfo.union_bp"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
承租人其他资产说明项
</div>
<div
slot=
"name"
class=
"font-color required"
>
承租人其他资产说明项
</div>
<input
slot=
"content"
v-model=
"baseInfo.bp_other_asset"
>
<input
slot=
"content"
v-model=
"baseInfo.bp_other_asset"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color required"
>
其他补充信息栏
</div>
<div
slot=
"name"
class=
"font-color required"
>
其他补充信息栏
</div>
<input
slot=
"content"
v-model=
"baseInfo.other_info"
>
<input
slot=
"content"
v-model=
"baseInfo.other_info"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<!--
<item>
<!--
<item>
<div
slot=
"name"
class=
"font-color"
>
是否授权
</div>
<div
slot=
"name"
class=
"font-color"
>
是否授权
</div>
...
@@ -174,38 +174,38 @@
...
@@ -174,38 +174,38 @@
<list-item
:item-height=
"44"
class=
"second-part"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
姓名
</div>
<div
slot=
"name"
class=
"font-color"
>
姓名
</div>
<input
slot=
"content"
v-model=
"baseInfo.legal_person"
>
<input
slot=
"content"
v-model=
"baseInfo.legal_person"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
证件号
</div>
<div
slot=
"name"
class=
"font-color"
>
证件号
</div>
<input
slot=
"content"
v-model=
"baseInfo.id_card_no"
>
<input
slot=
"content"
v-model=
"baseInfo.id_card_no"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
手机号码
</div>
<div
slot=
"name"
class=
"font-color"
>
手机号码
</div>
<input
slot=
"content"
v-model=
"baseInfo.cell_phone"
>
<input
slot=
"content"
v-model=
"baseInfo.cell_phone"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
联系地址
</div>
<div
slot=
"name"
class=
"font-color"
>
联系地址
</div>
<textarea
slot=
"content"
v-model=
"baseInfo.living_address"
/>
<textarea
slot=
"content"
v-model=
"baseInfo.living_address"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
/>
</item>
</item>
</list-item>
</list-item>
<div
class=
"equipment-list"
>
实控人
</div>
<div
class=
"equipment-list"
>
实控人
</div>
<list-item
:item-height=
"44"
class=
"second-part"
>
<list-item
:item-height=
"44"
class=
"second-part"
>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
姓名
</div>
<div
slot=
"name"
class=
"font-color"
>
姓名
</div>
<input
slot=
"content"
v-model=
"baseInfo.control_person"
>
<input
slot=
"content"
v-model=
"baseInfo.control_person"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
证件号
</div>
<div
slot=
"name"
class=
"font-color"
>
证件号
</div>
<input
slot=
"content"
v-model=
"baseInfo.control_id_card_no"
>
<input
slot=
"content"
v-model=
"baseInfo.control_id_card_no"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
手机号码
</div>
<div
slot=
"name"
class=
"font-color"
>
手机号码
</div>
<input
slot=
"content"
v-model=
"baseInfo.control_cell_phone"
>
<input
slot=
"content"
v-model=
"baseInfo.control_cell_phone"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
联系地址
</div>
<div
slot=
"name"
class=
"font-color"
>
联系地址
</div>
<textarea
slot=
"content"
v-model=
"baseInfo.control_living_address"
/>
<textarea
slot=
"content"
v-model=
"baseInfo.control_living_address"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
/>
</item>
</item>
</list-item>
</list-item>
<!--
<div
class=
"equipment-list"
>
<!--
<div
class=
"equipment-list"
>
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
<div
class=
"equipment-list-fund"
style=
"color:#00469c"
>
<div
class=
"equipment-list-fund"
style=
"color:#00469c"
>
<span/>
<span/>
<p>
担保人信息
</p>
<p>
担保人信息
</p>
<div
style=
"width: 75%;text-align: right;"
@
click=
"addGuarantor()"
>
新增
</div>
<div
v-if=
"$route.params.readOnly !== 'Y'"
style=
"width: 75%;text-align: right;"
@
click=
"addGuarantor()"
>
新增
</div>
</div>
</div>
<list-item
v-for=
"(item, index) in guarantorList"
:item-height=
"76"
:key=
"index"
class=
"second-part"
>
<list-item
v-for=
"(item, index) in guarantorList"
:item-height=
"76"
:key=
"index"
class=
"second-part"
>
<!--
<item>
-->
<!--
<item>
-->
...
@@ -275,18 +275,23 @@
...
@@ -275,18 +275,23 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
发票抬头
</div>
<div
slot=
"name"
class=
"font-color"
>
发票抬头
</div>
<input
slot=
"content"
v-model=
"baseInfo.invoice_title"
type=
"text"
placeholder=
"请输入发票抬头"
>
<input
slot=
"content"
v-model=
"baseInfo.invoice_title"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
type=
"text"
placeholder=
"请输入发票抬头"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
发票地址
</div>
<div
slot=
"name"
class=
"font-color"
>
发票地址
</div>
<textarea
<textarea
slot=
"content"
ref=
"myTestarea"
v-model=
"baseInfo.invoice_adds"
cols=
"22"
slot=
"content"
ref=
"myTestarea"
v-model=
"baseInfo.invoice_adds"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
cols=
"22"
rows=
"1"
rows=
"1"
type=
"text"
placeholder=
"请输入发票地址"
@
input=
"addRows(baseInfo.invoice_adds)"
/>
type=
"text"
placeholder=
"请输入发票地址"
@
input=
"addRows(baseInfo.invoice_adds)"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
开户电话
</div>
<div
slot=
"name"
class=
"font-color"
>
开户电话
</div>
<input
slot=
"content"
v-model=
"baseInfo.invoice_tel"
type=
"text"
placeholder=
"请输入开户电话"
>
<input
slot=
"content"
v-model=
"baseInfo.invoice_tel"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
type=
"text"
placeholder=
"请输入开户电话"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
发票开户行
</div>
<div
slot=
"name"
class=
"font-color"
>
发票开户行
</div>
...
@@ -294,6 +299,7 @@
...
@@ -294,6 +299,7 @@
slot=
"content"
slot=
"content"
ref=
"myTestareaLive"
ref=
"myTestareaLive"
v-model=
"baseInfo.open_bank"
v-model=
"baseInfo.open_bank"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
cols=
"22"
cols=
"22"
rows=
"1"
rows=
"1"
type=
"text"
type=
"text"
...
@@ -303,19 +309,27 @@
...
@@ -303,19 +309,27 @@
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
开户行账号
</div>
<div
slot=
"name"
class=
"font-color"
>
开户行账号
</div>
<input
slot=
"content"
v-model=
"baseInfo.open_account"
type=
"text"
placeholder=
"请输入开户行账号"
>
<input
slot=
"content"
v-model=
"baseInfo.open_account"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
type=
"text"
placeholder=
"请输入开户行账号"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
联系人
</div>
<div
slot=
"name"
class=
"font-color"
>
联系人
</div>
<input
slot=
"content"
v-model=
"baseInfo.invoice_contact_person"
type=
"text"
placeholder=
"请输入联系人"
>
<input
slot=
"content"
v-model=
"baseInfo.invoice_contact_person"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
type=
"text"
placeholder=
"请输入联系人"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
联系电话
</div>
<div
slot=
"name"
class=
"font-color"
>
联系电话
</div>
<input
slot=
"content"
v-model=
"baseInfo.invoice_contact_phone"
type=
"text"
placeholder=
"请输入联系电话"
>
<input
slot=
"content"
v-model=
"baseInfo.invoice_contact_phone"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
type=
"text"
placeholder=
"请输入联系电话"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
发票邮寄地址
</div>
<div
slot=
"name"
class=
"font-color"
>
发票邮寄地址
</div>
<input
slot=
"content"
v-model=
"baseInfo.invoice_mail_address"
type=
"text"
placeholder=
"请输入发票邮寄地址"
>
<input
slot=
"content"
v-model=
"baseInfo.invoice_mail_address"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
type=
"text"
placeholder=
"请输入发票邮寄地址"
>
</item>
</item>
<!--
<item>
<!--
<item>
<div
slot=
"name"
class=
"font-color"
>
纳税人识别号
</div>
<div
slot=
"name"
class=
"font-color"
>
纳税人识别号
</div>
...
@@ -331,13 +345,14 @@
...
@@ -331,13 +345,14 @@
<list-item
:item-height=
"44"
>
<list-item
:item-height=
"44"
>
<item>
<item>
<div
slot=
"name"
>
账户名称
</div>
<div
slot=
"name"
>
账户名称
</div>
<input
slot=
"content"
v-model=
"baseInfo.bank_account_name"
placeholder=
"请输入账户名称"
>
<input
slot=
"content"
v-model=
"baseInfo.bank_account_name"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入账户名称"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
开户行
</div>
<div
slot=
"name"
>
开户行
</div>
<input
<input
slot=
"content"
slot=
"content"
v-model=
"baseInfo.bank_full_name"
v-model=
"baseInfo.bank_full_name"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入开户行"
placeholder=
"请输入开户行"
>
>
</item>
</item>
...
@@ -346,12 +361,13 @@
...
@@ -346,12 +361,13 @@
<input
<input
slot=
"content"
slot=
"content"
v-model=
"baseInfo.bank_account_num"
v-model=
"baseInfo.bank_account_num"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入银行账号"
placeholder=
"请输入银行账号"
>
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
联行号
</div>
<div
slot=
"name"
>
联行号
</div>
<input
slot=
"content"
v-model=
"baseInfo.bank_branch_name"
placeholder=
"请输入联行号"
>
<input
slot=
"content"
v-model=
"baseInfo.bank_branch_name"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入联行号"
>
</item>
</item>
</list-item>
</list-item>
<div
class=
"equipment-list"
>
<div
class=
"equipment-list"
>
...
@@ -360,13 +376,14 @@
...
@@ -360,13 +376,14 @@
<list-item
:item-height=
"44"
>
<list-item
:item-height=
"44"
>
<item>
<item>
<div
slot=
"name"
>
联系人姓名
</div>
<div
slot=
"name"
>
联系人姓名
</div>
<input
slot=
"content"
v-model=
"baseInfo.contact_name"
placeholder=
"请输入联系人姓名"
>
<input
slot=
"content"
v-model=
"baseInfo.contact_name"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入联系人姓名"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
身份证号码
</div>
<div
slot=
"name"
>
身份证号码
</div>
<input
<input
slot=
"content"
slot=
"content"
v-model=
"baseInfo.contact_card_no"
v-model=
"baseInfo.contact_card_no"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入身份证号码"
placeholder=
"请输入身份证号码"
>
>
</item>
</item>
...
@@ -375,12 +392,13 @@
...
@@ -375,12 +392,13 @@
<input
<input
slot=
"content"
slot=
"content"
v-model=
"baseInfo.contact_tel"
v-model=
"baseInfo.contact_tel"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入联系电话"
placeholder=
"请输入联系电话"
>
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
>
联系地址
</div>
<div
slot=
"name"
>
联系地址
</div>
<input
slot=
"content"
v-model=
"baseInfo.contact_adds"
placeholder=
"请输入联系地址"
>
<input
slot=
"content"
v-model=
"baseInfo.contact_adds"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入联系地址"
>
</item>
</item>
</list-item>
</list-item>
<div
class=
"equipment-list"
>
<div
class=
"equipment-list"
>
...
@@ -610,37 +628,37 @@
...
@@ -610,37 +628,37 @@
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
设备总价
</div>
<div
slot=
"name"
class=
"font-color"
>
设备总价
</div>
<!--
<span
slot=
"content"
>
{{
info
.
equip_price
*
info
.
product_num
|
currency
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
info
.
equip_price
*
info
.
product_num
|
currency
}}
</span>
-->
<currency-input
slot=
"content"
v-model=
"quotationInfo.equip_price"
placeholder=
"请输入设备总价"
/>
<currency-input
slot=
"content"
v-model=
"quotationInfo.equip_price"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入设备总价"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
融资金额
</div>
<div
slot=
"name"
class=
"font-color"
>
融资金额
</div>
<!--
<span
slot=
"content"
>
{{
info
.
finance_amount
*
info
.
product_num
|
currency
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
info
.
finance_amount
*
info
.
product_num
|
currency
}}
</span>
-->
<currency-input
slot=
"content"
v-model=
"quotationInfo.finance_amount"
placeholder=
"请输入融资金额"
/>
<currency-input
slot=
"content"
v-model=
"quotationInfo.finance_amount"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入融资金额"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
首付款
</div>
<div
slot=
"name"
class=
"font-color"
>
首付款
</div>
<!--
<span
slot=
"content"
>
{{
info
.
down_payment
*
info
.
product_num
|
currency
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
info
.
down_payment
*
info
.
product_num
|
currency
}}
</span>
-->
<currency-input
slot=
"content"
v-model=
"quotationInfo.down_payment"
placeholder=
"请输入首付款"
/>
<currency-input
slot=
"content"
v-model=
"quotationInfo.down_payment"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入首付款"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
保证金比例
</div>
<div
slot=
"name"
class=
"font-color"
>
保证金比例
</div>
<!--
<span
slot=
"content"
>
{{
info
.
deposit_ratio_n
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
info
.
deposit_ratio_n
}}
</span>
-->
<rate-input
slot=
"content"
v-model=
"quotationInfo.deposit_ratio"
placeholder=
"请输入保证金比例"
/>
<rate-input
slot=
"content"
v-model=
"quotationInfo.deposit_ratio"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入保证金比例"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
保证金
</div>
<div
slot=
"name"
class=
"font-color"
>
保证金
</div>
<!--
<span
slot=
"content"
>
{{
info
.
deposit
*
info
.
product_num
|
currency
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
info
.
deposit
*
info
.
product_num
|
currency
}}
</span>
-->
<currency-input
slot=
"content"
v-model=
"quotationInfo.deposit"
placeholder=
"请输入保证金"
/>
<currency-input
slot=
"content"
v-model=
"quotationInfo.deposit"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入保证金"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
手续费比例
</div>
<div
slot=
"name"
class=
"font-color"
>
手续费比例
</div>
<!--
<input
slot=
"content"
v-model=
"info.lease_charge_ratio_n"
readonly
/>
-->
<!--
<input
slot=
"content"
v-model=
"info.lease_charge_ratio_n"
readonly
/>
-->
<rate-input
slot=
"content"
v-model=
"quotationInfo.lease_charge_ratio"
placeholder=
"请输入手续费比例"
/>
<rate-input
slot=
"content"
v-model=
"quotationInfo.lease_charge_ratio"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入手续费比例"
/>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
手续费
</div>
<div
slot=
"name"
class=
"font-color"
>
手续费
</div>
<!--
<span
slot=
"content"
>
{{
parseFloat
(
info
.
lease_charge
*
info
.
product_num
).
toFixed
(
2
)
|
currency
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
parseFloat
(
info
.
lease_charge
*
info
.
product_num
).
toFixed
(
2
)
|
currency
}}
</span>
-->
<currency-input
slot=
"content"
v-model=
"quotationInfo.lease_charge"
placeholder=
"请输入手续费"
/>
<currency-input
slot=
"content"
v-model=
"quotationInfo.lease_charge"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入手续费"
/>
</item>
</item>
<!--
<item>
<!--
<item>
<div
slot=
"name"
class=
"font-color"
>
保险押金
</div>
-->
<div
slot=
"name"
class=
"font-color"
>
保险押金
</div>
-->
...
@@ -680,12 +698,14 @@
...
@@ -680,12 +698,14 @@
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
租赁期数
</div>
<div
slot=
"name"
class=
"font-color"
>
租赁期数
</div>
<!--
<input
slot=
"content"
v-model=
"info.lease_times"
readonly
/>
-->
<!--
<input
slot=
"content"
v-model=
"info.lease_times"
readonly
/>
-->
<input
slot=
"content"
v-model=
"quotationInfo.lease_times"
placeholder=
"请输入租赁期数"
type=
"number"
>
<input
slot=
"content"
v-model=
"quotationInfo.lease_times"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入租赁期数"
type=
"number"
>
</item>
</item>
<item>
<item>
<div
slot=
"name"
class=
"font-color"
>
年利率
</div>
<div
slot=
"name"
class=
"font-color"
>
年利率
</div>
<!--
<span
slot=
"content"
>
{{
info
.
int_rate_n
}}
</span>
-->
<!--
<span
slot=
"content"
>
{{
info
.
int_rate_n
}}
</span>
-->
<rate-input
slot=
"content"
v-model=
"quotationInfo.int_rate"
placeholder=
"请输入年利率"
/>
<rate-input
slot=
"content"
v-model=
"quotationInfo.int_rate"
:readonly=
"$route.params.readOnly === 'Y' ? true : false"
placeholder=
"请输入年利率"
/>
</item>
</item>
</list-item>
</list-item>
<!--
<div
class=
"repay-plan"
>
-->
<!--
<div
class=
"repay-plan"
>
-->
...
@@ -694,7 +714,7 @@
...
@@ -694,7 +714,7 @@
<div
class=
"equipment-list-fund"
>
<div
class=
"equipment-list-fund"
>
<span/>
<span/>
<p>
设备清单
</p>
<p>
设备清单
</p>
<div
style=
"width: 75%;text-align: right;"
@
click=
"downNum=true"
>
新增
</div>
<div
v-if=
"$route.params.readOnly !== 'Y'"
style=
"width: 75%;text-align: right;"
@
click=
"downNum=true"
>
新增
</div>
</div>
</div>
<list-item
v-for=
"(item, index) in leaseList"
:item-height=
"44"
:key=
"index"
class=
"second-part"
>
<list-item
v-for=
"(item, index) in leaseList"
:item-height=
"44"
:key=
"index"
class=
"second-part"
>
<!--
<item>
-->
<!--
<item>
-->
...
@@ -925,37 +945,43 @@ export default {
...
@@ -925,37 +945,43 @@ export default {
methods
:
{
methods
:
{
// 删除设备
// 删除设备
deleteProduct
(
item
)
{
deleteProduct
(
item
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
let
url
=
$config
.
basePath
+
'zm_prj_lease_item_delete'
let
vm
=
this
let
param
=
{
let
url
=
$config
.
basePath
+
'zm_prj_lease_item_delete'
master
:
{
let
param
=
{
lists
:
[{
master
:
{
'project_lease_item_id'
:
item
.
project_lease_item_id
,
lists
:
[{
}],
'project_lease_item_id'
:
item
.
project_lease_item_id
,
},
}],
}
},
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'设备删除成功'
)
vm
.
getLease
()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
})
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'设备删除成功'
)
vm
.
getLease
()
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
},
// 更新产品
// 更新产品
saveProduct
(
item
)
{
saveProduct
(
item
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
vm
.
itemInfo
=
item
let
vm
=
this
vm
.
downNum
=
true
vm
.
itemInfo
=
item
vm
.
downNum
=
true
}
},
},
// 更新担保人
// 更新担保人
saveGuarantor
(
item
)
{
saveGuarantor
(
item
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
vm
.
guarantorInfo
=
item
let
vm
=
this
vm
.
guarantorFlag
=
true
vm
.
guarantorInfo
=
item
vm
.
guarantorFlag
=
true
}
},
},
saveData
()
{
saveData
()
{
let
vm
=
this
let
vm
=
this
...
@@ -1016,16 +1042,18 @@ export default {
...
@@ -1016,16 +1042,18 @@ export default {
})
})
},
},
selectPayTimes
()
{
selectPayTimes
()
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
vm
.
hlsPopup
.
selectList
({
let
vm
=
this
list
:
[{
code
:
1
,
code_name
:
1
},
{
code
:
2
,
code_name
:
2
},
{
code
:
3
,
code_name
:
3
}],
vm
.
hlsPopup
.
selectList
({
code
:
'annual_pay_times'
,
list
:
[{
code
:
1
,
code_name
:
1
},
{
code
:
2
,
code_name
:
2
},
{
code
:
3
,
code_name
:
3
}],
object
:
{},
code
:
'annual_pay_times'
,
returnItem
:
function
(
index
,
obj
)
{
object
:
{},
vm
.
$set
(
vm
.
quotationInfo
,
'annual_pay_times'
,
obj
.
annual_pay_times
)
returnItem
:
function
(
index
,
obj
)
{
vm
.
$set
(
vm
.
quotationInfo
,
'annual_pay_times_n'
,
obj
.
annual_pay_times_n
)
vm
.
$set
(
vm
.
quotationInfo
,
'annual_pay_times'
,
obj
.
annual_pay_times
)
},
vm
.
$set
(
vm
.
quotationInfo
,
'annual_pay_times_n'
,
obj
.
annual_pay_times_n
)
})
},
})
}
},
},
selectGuarantorType
()
{
selectGuarantorType
()
{
let
vm
=
this
let
vm
=
this
...
@@ -1122,19 +1150,21 @@ export default {
...
@@ -1122,19 +1150,21 @@ export default {
},
},
addRows
(
e
)
{
addRows
(
e
)
{
if
(
e
)
{
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
let
len
=
0
if
(
e
)
{
for
(
let
i
=
0
;
i
<
e
.
length
;
i
++
)
{
let
len
=
0
var
c
=
e
.
charCodeAt
(
i
)
for
(
let
i
=
0
;
i
<
e
.
length
;
i
++
)
{
// 统计字符串的字符长度
var
c
=
e
.
charCodeAt
(
i
)
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
c
>=
0xff60
&&
c
<=
0xff9f
))
{
// 统计字符串的字符长度
len
+=
1
if
((
c
>=
0x0001
&&
c
<=
0x007e
)
||
(
c
>=
0xff60
&&
c
<=
0xff9f
))
{
}
else
{
len
+=
1
len
+=
2
}
else
{
len
+=
2
}
}
}
let
addNum
=
Math
.
ceil
(
len
/
21
)
this
.
$refs
.
myTestarea
.
rows
=
addNum
}
}
let
addNum
=
Math
.
ceil
(
len
/
21
)
this
.
$refs
.
myTestarea
.
rows
=
addNum
}
}
},
},
addRowsLive
(
e
)
{
addRowsLive
(
e
)
{
...
@@ -1419,17 +1449,21 @@ export default {
...
@@ -1419,17 +1449,21 @@ export default {
})
})
},
},
selectApproverBp
(
e
)
{
selectApproverBp
(
e
)
{
let
vm
=
this
console
.
log
(
'是否只读:'
,
this
.
$route
.
params
.
readOnly
)
vm
.
hlsPopup
.
selectList
({
if
(
this
.
$route
.
params
.
readOnly
===
'N'
)
{
list
:
vm
.
approverBpList
,
// 只读页面不可修改
code
:
'approver_bp'
,
let
vm
=
this
object
:
{},
vm
.
hlsPopup
.
selectList
({
returnItem
:
function
(
index
,
obj
)
{
list
:
vm
.
approverBpList
,
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp'
,
obj
.
approver_bp
)
code
:
'approver_bp'
,
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp_n'
,
obj
.
approver_bp_n
)
object
:
{},
console
.
log
(
'obj'
,
vm
.
baseInfo
)
returnItem
:
function
(
index
,
obj
)
{
},
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp'
,
obj
.
approver_bp
)
})
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp_n'
,
obj
.
approver_bp_n
)
console
.
log
(
'obj'
,
vm
.
baseInfo
)
},
})
}
},
},
getTaxpayer
()
{
getTaxpayer
()
{
let
vm
=
this
let
vm
=
this
...
@@ -1463,16 +1497,18 @@ export default {
...
@@ -1463,16 +1497,18 @@ export default {
})
})
},
},
selectInvoiceType
(
e
)
{
selectInvoiceType
(
e
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
vm
.
hlsPopup
.
selectList
({
let
vm
=
this
list
:
vm
.
invoicList
,
vm
.
hlsPopup
.
selectList
({
code
:
'bp_type'
,
list
:
vm
.
invoicList
,
object
:
{},
code
:
'bp_type'
,
returnItem
:
function
(
index
,
obj
)
{
object
:
{},
vm
.
$set
(
vm
.
baseInfo
,
'invoice_kind'
,
obj
.
bp_type
)
returnItem
:
function
(
index
,
obj
)
{
vm
.
$set
(
vm
.
baseInfo
,
'invoice_kind_n'
,
obj
.
bp_type_n
)
vm
.
$set
(
vm
.
baseInfo
,
'invoice_kind'
,
obj
.
bp_type
)
},
vm
.
$set
(
vm
.
baseInfo
,
'invoice_kind_n'
,
obj
.
bp_type_n
)
})
},
})
}
},
},
// 查看大图
// 查看大图
...
@@ -1485,18 +1521,20 @@ export default {
...
@@ -1485,18 +1521,20 @@ export default {
},
},
// ocr识别入口
// ocr识别入口
ocrShow
(
desc
,
id
,
code
)
{
ocrShow
(
desc
,
id
,
code
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
hlsPopup
.
showActionSheet
({
let
vm
=
this
titleText
:
'请选择照片'
,
hlsPopup
.
showActionSheet
({
buttonArray
:
[
'拍照'
,
'从相册取'
],
titleText
:
'请选择照片'
,
callback
:
index
=>
{
buttonArray
:
[
'拍照'
,
'从相册取'
],
if
(
index
===
0
)
{
callback
:
index
=>
{
vm
.
openCamera
(
desc
,
id
,
code
)
if
(
index
===
0
)
{
}
else
{
vm
.
openCamera
(
desc
,
id
,
code
)
vm
.
takePicture
(
desc
,
id
,
code
)
}
else
{
}
vm
.
takePicture
(
desc
,
id
,
code
)
},
}
})
},
})
}
},
},
openCamera
(
desc
,
id
,
code
)
{
openCamera
(
desc
,
id
,
code
)
{
let
vm
=
this
let
vm
=
this
...
@@ -1614,24 +1652,26 @@ export default {
...
@@ -1614,24 +1652,26 @@ export default {
},
},
// 移除图片
// 移除图片
remove_pic
(
attachment_id
,
index
,
code
)
{
remove_pic
(
attachment_id
,
index
,
code
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
var
delete_list
=
[]
let
vm
=
this
let
obj
=
{
'attachment_id'
:
attachment_id
}
var
delete_list
=
[]
delete_list
.
push
(
obj
)
let
obj
=
{
'attachment_id'
:
attachment_id
}
let
url
=
process
.
env
.
basePath
+
'app_delete_attment'
// 附件删除
delete_list
.
push
(
obj
)
let
param
=
{
let
url
=
process
.
env
.
basePath
+
'app_delete_attment'
// 附件删除
'picturelist'
:
delete_list
,
let
param
=
{
}
'picturelist'
:
delete_list
,
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'删除成功!'
)
vm
.
remove_upload_list
(
attachment_id
,
index
,
code
)
}
else
if
(
res
.
result
===
'E'
)
{
hlsPopup
.
showShortCenter
(
res
.
message
)
}
}
})
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'删除成功!'
)
vm
.
remove_upload_list
(
attachment_id
,
index
,
code
)
}
else
if
(
res
.
result
===
'E'
)
{
hlsPopup
.
showShortCenter
(
res
.
message
)
}
})
}
},
},
remove_upload_list
(
attachment_id
,
index
,
code
)
{
remove_upload_list
(
attachment_id
,
index
,
code
)
{
let
vm
=
this
let
vm
=
this
...
@@ -1660,24 +1700,26 @@ export default {
...
@@ -1660,24 +1700,26 @@ export default {
},
},
// 删除图片
// 删除图片
delete_pic
(
attachment_id
,
code
)
{
delete_pic
(
attachment_id
,
code
)
{
let
vm
=
this
if
(
this
.
$route
.
params
.
readOnly
!==
'Y'
)
{
let
delete_list
=
[]
let
vm
=
this
let
obj
=
{
'attachment_id'
:
attachment_id
}
let
delete_list
=
[]
delete_list
.
push
(
obj
)
let
obj
=
{
'attachment_id'
:
attachment_id
}
let
url
=
process
.
env
.
basePath
+
'app_delete_attment'
// 附件删除
delete_list
.
push
(
obj
)
let
param
=
{
let
url
=
process
.
env
.
basePath
+
'app_delete_attment'
// 附件删除
'picturelist'
:
delete_list
,
let
param
=
{
}
'picturelist'
:
delete_list
,
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'删除成功!'
)
vm
.
remove_dowload_list
(
attachment_id
,
code
)
}
else
if
(
res
.
result
===
'E'
)
{
hlsPopup
.
showShortCenter
(
res
.
message
)
}
}
})
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
hlsPopup
.
showLongCenter
(
'删除成功!'
)
vm
.
remove_dowload_list
(
attachment_id
,
code
)
}
else
if
(
res
.
result
===
'E'
)
{
hlsPopup
.
showShortCenter
(
res
.
message
)
}
})
}
},
},
remove_dowload_list
(
attachment_id
,
code
)
{
remove_dowload_list
(
attachment_id
,
code
)
{
console
.
log
(
'attachment_id'
,
attachment_id
)
console
.
log
(
'attachment_id'
,
attachment_id
)
...
...
src/pages/contractSigning/contract-new.vue
View file @
b4905f9d
...
@@ -971,10 +971,10 @@ export default {
...
@@ -971,10 +971,10 @@ export default {
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
approverBpList
=
res
.
lists
.
map
(
item
=>
{
vm
.
approverBpList
=
res
.
lists
.
map
(
item
=>
{
if
(
item
.
bp_name
===
'李燕'
)
{
//
if (item.bp_name === '李燕') {
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp'
,
item
.
bp_id
)
//
vm.$set(vm.baseInfo, 'zm_approver_bp', item.bp_id)
vm
.
$set
(
vm
.
baseInfo
,
'zm_approver_bp_n'
,
item
.
bp_name
)
//
vm.$set(vm.baseInfo, 'zm_approver_bp_n', item.bp_name)
}
//
}
return
{
return
{
code
:
item
.
bp_id
,
code
:
item
.
bp_id
,
code_name
:
item
.
bp_name
,
code_name
:
item
.
bp_name
,
...
...
src/pages/contractSigning/contract-signing.vue
View file @
b4905f9d
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
</h-header>
</h-header>
<div
class=
"tab-style has-header"
>
<div
class=
"tab-style has-header"
>
<div
:class=
"
{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false">
<div
:class=
"
{ 'done': num === 1, 'undone': num !== 1 }" @click="num = 1; isRadio = false">
<img
:src=
"num === 1 ? check1 : uncheck1"
/
>
<img
:src=
"num === 1 ? check1 : uncheck1"
>
<span>
未审核方案
</span>
<span>
未审核方案
</span>
</div>
</div>
<div
:class=
"
{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2; isRadio = false">
<div
:class=
"
{ 'done': num === 2, 'undone': num !== 2 }" @click="num = 2; isRadio = false">
<img
:src=
"num === 2 ? check2 : uncheck2"
/
>
<img
:src=
"num === 2 ? check2 : uncheck2"
>
<span>
已审核方案
</span>
<span>
已审核方案
</span>
</div>
</div>
</div>
</div>
...
@@ -443,6 +443,8 @@ export default {
...
@@ -443,6 +443,8 @@ export default {
},
},
goDetails
(
item
)
{
goDetails
(
item
)
{
console
.
log
(
'点击对象:'
,
item
)
console
.
log
(
'是否该只读:'
,
this
.
num
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'ContractDetail'
,
name
:
'ContractDetail'
,
params
:
{
params
:
{
...
@@ -450,6 +452,7 @@ export default {
...
@@ -450,6 +452,7 @@ export default {
user_bp_type
:
this
.
user_bp_type
,
user_bp_type
:
this
.
user_bp_type
,
num
:
this
.
num
,
num
:
this
.
num
,
check_id
:
item
.
check_id
,
check_id
:
item
.
check_id
,
readOnly
:
this
.
num
===
1
?
'N'
:
'Y'
,
},
},
})
})
},
},
...
...
src/pages/myInfo/my-info.vue
View file @
b4905f9d
...
@@ -825,7 +825,6 @@ export default {
...
@@ -825,7 +825,6 @@ export default {
obj.picture = hlsUtil.convertImageUrl(imgUrl[0])
obj.picture = hlsUtil.convertImageUrl(imgUrl[0])
obj.filePath = imgUrl[0]
obj.filePath = imgUrl[0]
vm.upLoadObj = obj.picture
vm.upLoadObj = obj.picture
console.log('$$$$$$$$$$$$$$$1' + imgUrl[0])
// 拍完一张立马执行保存图片逻辑
// 拍完一张立马执行保存图片逻辑
vm.save_picture(obj)
vm.save_picture(obj)
}
}
...
...
src/pages/myInfo/myBindUser.vue
View file @
b4905f9d
<
template
>
<
template
>
<h-view
id=
"my-bind-user"
class=
"public-style"
title=
"我绑定的用户"
>
<h-view
id=
"my-bind-user"
class=
"public-style"
title=
"我绑定的用户"
>
<h-header
class=
"bar-custom"
>
<h-header
class=
"bar-custom"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<div
slot=
"left"
class=
"h-header-btn"
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$router.go(-1)"
/
>
<img
src=
"@/assets/userBind/arrow.png"
@
click=
"$router.go(-1)"
>
</div>
</div>
<div
slot=
"center"
class=
"top-word"
>
我绑定的用户
</div>
<div
slot=
"center"
class=
"top-word"
>
我绑定的用户
</div>
</h-header>
</h-header>
<scroll
ref=
"scrollLists"
:updateData=
"[prolists]"
:pullUp=
"false"
>
<scroll
ref=
"scrollLists"
:updateData=
"[prolists]"
:pullUp=
"false"
>
<div
class=
"scroll-box"
>
<div
class=
"scroll-box"
>
<div
<div
class=
"box
"
v-for=
"item of list
"
v-for=
"item of list
"
:key=
"item.bp_id
"
:key=
"item.bp_id
"
class=
"box
"
@
click
.
stop=
"changePageHead(item)"
@
click
.
stop=
"changePageHead(item)"
>
>
<div
class=
"name"
>
<div
class=
"name"
>
<img
<img
v-if=
"item.bp_class === 'NP'"
v-if=
"item.bp_class === 'NP'"
src=
"../../assets/login/person.png"
src=
"../../assets/login/person.png"
alt=
"自然人"
alt=
"自然人"
/
>
>
<img
v-else
src=
"../../assets/login/bank.png"
alt=
"bank"
/
>
<img
v-else
src=
"../../assets/login/bank.png"
alt=
"bank"
>
<span
class=
"bp_name"
>
{{
item
.
bp_name
}}
</span>
<span
class=
"bp_name"
>
{{
item
.
bp_name
}}
</span>
</div>
</div>
<div
class=
"flag"
>
<div
class=
"flag"
>
<div
@
click
.
stop=
"face(item)"
>
{{
item
.
bp_identity_name
}}
</div>
<div
@
click
.
stop=
"face(item)"
>
{{
item
.
bp_identity_name
}}
</div>
<div
<div
:class=
"['normal',
{ unbind: item.bp_status === 'APPROVED' }]"
:class=
"['normal',
{ unbind: item.bp_status === 'APPROVED' }]"
@click.stop="doStatus(item)"
@click.stop="doStatus(item)"
>
>
<!--
<span
<!--
<span
style=
"font-size: .3rem;"
style=
"font-size: .3rem;"
>
{{
item
.
bp_status
===
'APPROVED'
?
'×'
:
''
}}
</span>
-->
>
{{
item
.
bp_status
===
'APPROVED'
?
'×'
:
''
}}
</span>
-->
<img
<img
v-if=
"item.bp_status === 'APPROVED'"
v-if=
"item.bp_status === 'APPROVED'"
src=
"../../assets/login/cha.png"
src=
"../../assets/login/cha.png"
alt=
"cha"
alt=
"cha"
/>
>
{{
item
.
bp_status
===
'APPROVED'
?
' 解绑'
:
item
.
bp_status
===
'NEW'
?
'待提交'
:
item
.
bp_status_n
}}
{{
item
.
bp_status
===
'APPROVED'
?
' 解绑'
:
item
.
bp_status
===
'NEW'
?
'待提交'
:
item
.
bp_status_n
}}
</div>
</div>
</div>
</div>
</div>
</scroll>
</div>
</div>
<button
class=
"submit"
@
click=
"$router.push('/user-bind')"
>
</div>
<img
src=
"../../assets/login/addUser.png"
alt=
"自然人"
/>
添加新用户
</scroll>
</button>
<button
class=
"submit"
@
click=
"$router.push('/user-bind')"
>
<!-- 选项 -->
<img
src=
"../../assets/login/addUser.png"
alt=
"自然人"
>
添加新用户
<role-switch
</button>
v-show=
"popSetectBox"
ref=
"roleSwitchType"
<!-- 选项 -->
:roleList=
"type"
<role-switch
@
roleConfirm=
"typeConfirm"
v-show=
"popSetectBox"
@
roleCancle=
"popSetectBox = false"
ref=
"roleSwitchType"
/>
:roleList=
"type"
</h-view>
@
roleConfirm=
"typeConfirm"
@
roleCancle=
"popSetectBox = false"
/>
</h-view>
</
template
>
</
template
>
<
script
>
<
script
>
import
roleSwitch
from
'./role-switch-component'
import
roleSwitch
from
'./role-switch-component'
export
default
{
export
default
{
name
:
'myBindUser'
,
name
:
'MyBindUser'
,
components
:
{
components
:
{
roleSwitch
roleSwitch
,
},
},
data
()
{
data
()
{
return
{
return
{
prolists
:
[],
prolists
:
[],
list
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'bind-user-list'
)),
list
:
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'bind-user-list'
)),
// 对于绑定用户的一些操作相关
// 对于绑定用户的一些操作相关
popSetectBox
:
false
,
popSetectBox
:
false
,
type
:
Object
.
freeze
(
type
:
Object
.
freeze
(
[
[
{
{
bp_type
:
'0'
,
bp_type
:
'0'
,
bp_type_n
:
'修改信息'
,
bp_type_n
:
'修改信息'
,
},
},
{
{
bp_type
:
'1'
,
bp_type
:
'1'
,
bp_type_n
:
'重新选择用户类型'
,
bp_type_n
:
'重新选择用户类型'
,
},
},
]
]
),
),
NowItem
:
{},
// 当前操作对象
NowItem
:
{},
// 当前操作对象
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
// 未认证进行人脸 认证
async
face
(
item
)
{
return
let
vm
=
this
let
register
=
[
'NP_NO'
,
'ORG_NO'
,
'ORG_L_NO'
,
'ORG_AUTH_NO'
]
if
(
register
.
includes
(
item
.
bp_identity
))
{
// 人脸识别之前要确认是否已经在别的渠道已经绑定。
let
res
=
await
vm
.
getNpCertificationUrl
(
item
)
if
(
res
)
{
hlsPopup
.
showLongCenter
(
item
.
bp_identity
===
'ORG_NO'
?
'请联系业务人员协助认证'
:
'认证已通过'
)
return
vm
.
getList
()
}
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
// 未认证进行人脸 认证
async
face
(
item
)
{
return
let
vm
=
this
;
let
register
=
[
'NP_NO'
,
'ORG_NO'
,
'ORG_L_NO'
,
'ORG_AUTH_NO'
];
if
(
register
.
includes
(
item
.
bp_identity
))
{
// 人脸识别之前要确认是否已经在别的渠道已经绑定。
let
res
=
await
vm
.
getNpCertificationUrl
(
item
)
if
(
res
)
{
hlsPopup
.
showLongCenter
(
item
.
bp_identity
===
'ORG_NO'
?
'请联系业务人员协助认证'
:
'认证已通过'
);
return
vm
.
getList
();
}
// 正式进行人脸识别
let
url
=
process
.
env
.
basePath
+
'bp_query'
let
param
=
{
bp_id
:
item
.
bp_id
}
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
((
result
)
=>
{
hlsPopup
.
hideLoading
()
if
(
result
.
result
===
'S'
)
{
let
data
=
result
.
lists
[
0
]
cordova
.
plugins
.
IdCardPlugin
.
idCardIdentify
(
{
idNum
:
data
.
id_card_no
,
idName
:
data
.
bp_name
,
phoneNum
:
window
.
localStorage
.
user_phone
,
},
async
function
(
suc
)
{
let
success
=
JSON
.
parse
(
suc
)
if
(
success
.
code
===
1
)
{
let
res
=
await
vm
.
getNpCertificationUrl
(
item
)
hlsPopup
.
showLongCenter
(
res
?
'绑定成功!'
:
'绑定失败!'
);
if
(
res
)
vm
.
getList
();
}
},
function
(
reason
)
{
let
error
=
JSON
.
parse
(
reason
)
vm
.
hlsPopup
.
showLongCenter
(
'认证失败: '
+
error
.
message
)
}
)
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
result
.
message
)
}
})
}
else
{
hlsPopup
.
showLongCenter
(
'认证已通过'
);
}
},
// 获取个人认证url
// 正式进行人脸识别
async
getNpCertificationUrl
(
item
)
{
let
url
=
process
.
env
.
basePath
+
'bp_query'
let
vm
=
this
let
param
=
{
bp_id
:
item
.
bp_id
}
let
url
=
$config
.
basePath
+
'auth_user_sign'
hlsPopup
.
showLoading
(
'请稍候'
)
let
param
=
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
((
result
)
=>
{
phone
:
window
.
localStorage
.
user_phone
,
hlsPopup
.
hideLoading
()
bp_id
:
item
.
bp_id
if
(
result
.
result
===
'S'
)
{
}
let
data
=
result
.
lists
[
0
]
hlsPopup
.
showLoading
(
'请稍候'
)
cordova
.
plugins
.
IdCardPlugin
.
idCardIdentify
(
let
res
=
await
vm
.
$post
(
url
,
param
)
{
hlsPopup
.
hideLoading
()
idNum
:
data
.
id_card_no
,
if
(
res
.
info
.
code
===
0
&&
res
.
info
.
data
.
authUrl
)
{
idName
:
data
.
bp_name
,
// hlsPopup.showLongCenter('绑定失败!')
phoneNum
:
window
.
localStorage
.
user_phone
,
return
false
},
}
else
if
(
res
.
info
.
code
===
0
&&
res
.
info
.
data
.
openId
)
{
async
function
(
suc
)
{
// hlsPopup.showLongCenter('绑定成功!')
let
success
=
JSON
.
parse
(
suc
)
// vm.getList()
if
(
success
.
code
===
1
)
{
return
true
let
res
=
await
vm
.
getNpCertificationUrl
(
item
)
}
else
{
hlsPopup
.
showLongCenter
(
res
?
'绑定成功!'
:
'绑定失败!'
)
hlsPopup
.
showLongCenter
(
res
.
info
.
msg
)
if
(
res
)
vm
.
getList
()
}
}
},
},
function
(
reason
)
{
// 针对 不同的 状态 去操作
let
error
=
JSON
.
parse
(
reason
)
doStatus
(
item
)
{
vm
.
hlsPopup
.
showLongCenter
(
'认证失败: '
+
error
.
message
)
if
(
item
.
bp_type
===
"MANAGER"
)
{
}
// 提示不能操作
)
return
;
}
else
{
}
vm
.
hlsPopup
.
showLongCenter
(
result
.
message
)
}
this
.
NowItem
=
item
;
})
}
else
{
hlsPopup
.
showLongCenter
(
'认证已通过'
)
}
},
switch
(
item
.
bp_status
)
{
// 获取个人认证url
// 待提交 拒绝或者被退回
async
getNpCertificationUrl
(
item
)
{
case
"NEW"
:
let
vm
=
this
case
"RETURN"
:
let
url
=
$config
.
basePath
+
'auth_user_sign'
case
"REJECT"
:
let
param
=
{
this
.
popSetectBox
=
true
;
phone
:
window
.
localStorage
.
user_phone
,
break
;
bp_id
:
item
.
bp_id
,
}
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
hlsPopup
.
hideLoading
()
if
(
res
.
info
.
code
===
0
&&
res
.
info
.
data
.
authUrl
)
{
// hlsPopup.showLongCenter('绑定失败!')
return
false
}
else
if
(
res
.
info
.
code
===
0
&&
res
.
info
.
data
.
openId
)
{
// hlsPopup.showLongCenter('绑定成功!')
// vm.getList()
return
true
}
else
{
hlsPopup
.
showLongCenter
(
res
.
info
.
msg
)
}
},
// 通过-->解绑
// 针对 不同的 状态 去操作
case
"APPROVED"
:
doStatus
(
item
)
{
this
.
unBind
(
item
);
if
(
item
.
bp_type
===
'MANAGER'
)
{
break
;
// 提示不能操作
return
}
this
.
NowItem
=
item
switch
(
item
.
bp_status
)
{
// 待提交 拒绝或者被退回
case
'NEW'
:
case
'RETURN'
:
case
'REJECT'
:
this
.
popSetectBox
=
true
break
// 通过-->解绑
case
'APPROVED'
:
this
.
unBind
(
item
)
break
// 审批中
default
:
this
.
changePageHead
(
item
)
}
},
// 审批中
// 选项卡 策略
default
:
typeConfirm
(
e
)
{
this
.
changePageHead
(
item
);
this
.
popSetectBox
=
false
}
},
// 选项卡 策略
// 是修改信息,还是 重新选择用户类型
typeConfirm
(
e
)
{
if
(
e
.
bp_type
===
'0'
)
{
this
.
popSetectBox
=
false
;
this
.
changePageHead
(
this
.
NowItem
)
}
else
if
(
e
.
bp_type
===
'1'
)
{
this
.
unBind
(
this
.
NowItem
)
}
},
// 是修改信息,还是 重新选择用户类型
// 解绑,需要等待后端调整后使用
if
(
e
.
bp_type
===
'0'
)
{
unBind
(
item
)
{
this
.
changePageHead
(
this
.
NowItem
);
if
(
!
Object
.
keys
(
item
).
length
)
return
}
else
if
(
e
.
bp_type
===
'1'
)
{
this
.
unBind
(
this
.
NowItem
);
let
vm
=
this
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
'确定解除绑定?'
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
let
url
=
process
.
env
.
basePath
+
'bp_unbind'
let
param
=
{
master
:
{
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
password
:
window
.
localStorage
.
getItem
(
'password'
),
bp_id
:
item
.
bp_id
,
},
}
}
},
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
// 解绑,需要等待后端调整后使用
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
res
=>
{
unBind
(
item
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
!
Object
.
keys
(
item
).
length
)
return
;
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showLongCenter
(
'解绑成功'
)
let
vm
=
this
// 重新查询一次 用户列表
hlsPopup
.
showConfirm
({
vm
.
getList
(
item
.
bp_id
===
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_id
)
title
:
'提示'
,
}
else
{
content
:
'确定解除绑定?'
,
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
onConfirm
:
function
(
index
)
{
}
if
(
index
===
1
)
{
let
url
=
process
.
env
.
basePath
+
'bp_unbind'
;
let
param
=
{
master
:
{
phone
:
window
.
localStorage
.
getItem
(
'user_phone'
),
password
:
window
.
localStorage
.
getItem
(
'password'
),
bp_id
:
item
.
bp_id
},
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
);
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
res
=>
{
vm
.
hlsPopup
.
hideLoading
();
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showLongCenter
(
'解绑成功'
);
// 重新查询一次 用户列表
vm
.
getList
(
item
.
bp_id
===
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'now_user_bp_bind_id'
)).
bp_id
);
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
}
},
})
})
}
},
},
})
},
// 获取用户列表,并缓存
// 获取用户列表,并缓存
async
getList
(
isNowBind
)
{
async
getList
(
isNowBind
)
{
let
url
=
process
.
env
.
basePath
+
'user_bp_query'
;
let
url
=
process
.
env
.
basePath
+
'user_bp_query'
let
params
=
{
app_user_id
:
window
.
localStorage
.
getItem
(
'app_user_id'
)
};
let
params
=
{
app_user_id
:
window
.
localStorage
.
getItem
(
'app_user_id'
)
}
try
{
try
{
hlsPopup
.
showLoading
(
'请稍等'
);
hlsPopup
.
showLoading
(
'请稍等'
)
let
query
=
await
this
.
hlsHttp
.
post
(
url
,
params
);
let
query
=
await
this
.
hlsHttp
.
post
(
url
,
params
)
if
(
query
.
result
==
'S'
)
{
if
(
query
.
result
==
'S'
)
{
this
.
hlsPopup
.
hideLoading
();
this
.
hlsPopup
.
hideLoading
()
// 自己添加认证文字
// 自己添加认证文字
let
register
=
{
let
register
=
{
NP_NO
:
"个人"
,
NP_NO
:
'个人'
,
NP_YES
:
"个人"
,
NP_YES
:
'个人'
,
ORG_YES
:
"企业"
,
ORG_YES
:
'企业'
,
ORG_NO
:
"企业"
,
ORG_NO
:
'企业'
,
ORG_L_NO
:
"法人"
,
ORG_L_NO
:
'法人'
,
ORG_L_YES
:
"法人"
,
ORG_L_YES
:
'法人'
,
ORG_AUTH_NO
:
"授权人"
,
ORG_AUTH_NO
:
'授权人'
,
ORG_AUTH_YES
:
"授权人"
ORG_AUTH_YES
:
'授权人'
,
}
}
query
.
lists
=
query
.
lists
.
map
(
item
=>
{
query
.
lists
=
query
.
lists
.
map
(
item
=>
{
item
.
bp_identity_name
=
register
[
item
.
bp_identity
];
item
.
bp_identity_name
=
register
[
item
.
bp_identity
]
return
item
;
return
item
})
})
window
.
localStorage
.
setItem
(
'bind-user-list'
,
JSON
.
stringify
(
query
.
lists
));
window
.
localStorage
.
setItem
(
'bind-user-list'
,
JSON
.
stringify
(
query
.
lists
))
if
(
isNowBind
)
window
.
localStorage
.
setItem
(
'now_user_bp_bind_id'
,
JSON
.
stringify
(
query
.
lists
.
length
?
query
.
lists
[
0
]
:
{}));
if
(
isNowBind
)
window
.
localStorage
.
setItem
(
'now_user_bp_bind_id'
,
JSON
.
stringify
(
query
.
lists
.
length
?
query
.
lists
[
0
]
:
{}))
this
.
list
=
query
.
lists
;
this
.
list
=
query
.
lists
}
else
{
}
else
{
this
.
hlsPopup
.
hideLoading
();
this
.
hlsPopup
.
hideLoading
()
this
.
hlsPopup
.
showLongCenter
(
res
.
message
);
this
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
hlsPopup
.
hideLoading
();
this
.
hlsPopup
.
hideLoading
()
}
}
},
},
// 修改信息逻辑
// 修改信息逻辑
changePageHead
(
item
)
{
changePageHead
(
item
)
{
if
(
!
Object
.
keys
(
item
).
length
)
return
;
if
(
!
Object
.
keys
(
item
).
length
)
return
if
(
item
.
bp_status
===
'APPROVING'
)
{
if
(
item
.
bp_status
===
'APPROVING'
)
{
this
.
hlsPopup
.
showLongCenter
(
'您的绑定申请还在流程中'
);
this
.
hlsPopup
.
showLongCenter
(
'您的绑定申请还在流程中'
)
return
;
return
};
};
let
params
=
{
let
params
=
{
user_bp_name
:
item
.
bp_name
,
user_bp_name
:
item
.
bp_name
,
status
:
item
.
bp_status
,
status
:
item
.
bp_status
,
isAGENT
:
item
.
bp_type
===
'AGENT'
,
//
是否为经销商
isAGENT
:
item
.
bp_type
===
'AGENT'
,
//
是否为经销商
isMultiRole
:
[
"GUTA"
,
"TENANT"
,
"AGENT"
].
includes
(
item
.
bp_type
),
// 是否为 担保人/承租人 能否为多角色
isMultiRole
:
[
'GUTA'
,
'TENANT'
,
'AGENT'
].
includes
(
item
.
bp_type
),
// 是否为 担保人/承租人 能否为多角色
...
item
||
{},
...
item
||
{},
};
}
let
name
=
item
.
bp_class
===
"NP"
?
"NPBaseInfo"
:
"EnterpriseNew"
;
let
name
=
item
.
bp_class
===
'NP'
?
'NPBaseInfo'
:
'EnterpriseNew'
this
.
$router
.
push
({
name
});
this
.
$router
.
push
({
name
})
window
.
localStorage
.
setItem
(
'handleUser'
,
JSON
.
stringify
(
params
));
window
.
localStorage
.
setItem
(
'handleUser'
,
JSON
.
stringify
(
params
))
},
},
},
},
}
}
</
script
>
</
script
>
...
...
src/scripts/hlsUtil.js
View file @
b4905f9d
...
@@ -297,11 +297,11 @@ export default {
...
@@ -297,11 +297,11 @@ export default {
if
(
typeof
successFunction
===
'function'
&&
typeof
errorFunction
===
'function'
)
{
if
(
typeof
successFunction
===
'function'
&&
typeof
errorFunction
===
'function'
)
{
window
.
imagePicker
.
getPictures
(
window
.
imagePicker
.
getPictures
(
successFunction
,
errorFunction
,
{
successFunction
,
errorFunction
,
{
maximumImagesCount
:
obj
.
maxCount
||
10
,
maximumImagesCount
:
obj
.
maxCount
||
10
,
quality
:
obj
.
quality
||
50
,
quality
:
obj
.
quality
||
50
,
width
:
obj
.
width
||
1024
,
width
:
obj
.
width
||
1024
,
height
:
obj
.
height
||
768
,
height
:
obj
.
height
||
768
,
}
}
)
)
}
else
{
}
else
{
window
.
hlsPopup
.
showLongBottom
(
'参数有误!'
)
window
.
hlsPopup
.
showLongBottom
(
'参数有误!'
)
...
@@ -310,9 +310,9 @@ export default {
...
@@ -310,9 +310,9 @@ export default {
//转换iOS下的webview url
//转换iOS下的webview url
convertImageUrl
:
function
(
url
)
{
convertImageUrl
:
function
(
url
)
{
if
(
vum
.
Platform
.
isAndroid
())
{
if
(
vum
.
Platform
.
isAndroid
())
{
return
url
return
url
}
else
if
(
vum
.
Platform
.
isIOS
())
{
}
else
if
(
vum
.
Platform
.
isIOS
())
{
return
window
.
Ionic
.
WebView
.
convertFileSrc
(
url
)
return
window
.
Ionic
.
WebView
.
convertFileSrc
(
url
)
}
}
},
},
...
@@ -320,16 +320,16 @@ export default {
...
@@ -320,16 +320,16 @@ export default {
/**
/**
* 录制视频
* 录制视频
*/
*/
captureVideo
:
function
(
onSuccess
,
onError
)
{
captureVideo
:
function
(
onSuccess
,
onError
)
{
var
option
=
{
var
option
=
{
//本设置录制的视频尺寸为10s 4-5mb,清晰度较好
//本设置录制的视频尺寸为10s 4-5mb,清晰度较好
duration
:
10
*
1000
,
//10s
duration
:
10
*
1000
,
//10s
cameraDirection
:
window
.
MediaCapture
.
CAMERA_FRONT
cameraDirection
:
window
.
MediaCapture
.
CAMERA_FRONT
}
}
if
(
typeof
onSuccess
===
'function'
&&
typeof
onError
===
'function'
)
{
if
(
typeof
onSuccess
===
'function'
&&
typeof
onError
===
'function'
)
{
navigator
.
device
.
capture
.
captureVideo
(
onSuccess
,
onError
,
option
);
navigator
.
device
.
capture
.
captureVideo
(
onSuccess
,
onError
,
option
);
}
else
{
}
else
{
window
.
hlsPopup
.
showLongBottom
(
'参数有误!'
)
window
.
hlsPopup
.
showLongBottom
(
'参数有误!'
)
}
}
},
},
...
@@ -380,11 +380,11 @@ export default {
...
@@ -380,11 +380,11 @@ export default {
}
}
}
}
function
uploadSuccess
(
result
)
{
function
uploadSuccess
(
result
)
{
success
(
JSON
.
parse
(
result
.
response
))
success
(
JSON
.
parse
(
result
.
response
))
}
}
function
fileError
()
{
function
fileError
()
{
window
.
hlsPopup
.
hideLoading
()
window
.
hlsPopup
.
hideLoading
()
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error target '
+
error
.
target
)
console
.
log
(
'upload error target '
+
error
.
target
)
...
@@ -398,9 +398,9 @@ export default {
...
@@ -398,9 +398,9 @@ export default {
* @param success
* @param success
*/
*/
fileUploadSvc
:
function
(
file
,
success
)
{
fileUploadSvc
:
function
(
file
,
success
)
{
console
.
log
(
'file'
,
file
)
console
.
log
(
'file'
,
file
)
if
(
file
.
pkvalue
&&
file
.
source_type
)
{
if
(
file
.
pkvalue
&&
file
.
source_type
)
{
console
.
log
(
'file1'
,
file
)
console
.
log
(
'file1'
,
file
)
let
path
=
file
.
filePath
let
path
=
file
.
filePath
var
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
var
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
let
url
=
encodeURI
(
process
.
env
.
fileUploadSvcPath
+
'attachment_upload'
)
let
url
=
encodeURI
(
process
.
env
.
fileUploadSvcPath
+
'attachment_upload'
)
...
@@ -417,28 +417,28 @@ export default {
...
@@ -417,28 +417,28 @@ export default {
'access_token'
:
window
.
localStorage
.
access_token
,
'access_token'
:
window
.
localStorage
.
access_token
,
'filePath'
:
path
,
'filePath'
:
path
,
}
}
if
(
file
.
fileName
)
{
if
(
file
.
fileName
)
{
options
.
fileName
=
encodeURI
(
file
.
fileName
)
+
name
.
substr
(
name
.
lastIndexOf
(
'.'
))
options
.
fileName
=
encodeURI
(
file
.
fileName
)
+
name
.
substr
(
name
.
lastIndexOf
(
'.'
))
}
}
else
{
else
{
options
.
fileName
=
name
options
.
fileName
=
name
}
}
options
.
mimeType
=
'multipart/form-date'
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
result
)
{
function
uploadSuccess
(
result
)
{
success
(
JSON
.
parse
(
result
.
response
))
success
(
JSON
.
parse
(
result
.
response
))
}
}
function
fileError
()
{
function
fileError
()
{
window
.
hlsPopup
.
hideLoading
()
window
.
hlsPopup
.
hideLoading
()
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error source '
+
error
.
source
)
console
.
log
(
'upload error target '
+
error
.
target
)
console
.
log
(
'upload error target '
+
error
.
target
)
}
}
ft
.
upload
(
path
,
url
,
uploadSuccess
,
fileError
,
options
)
ft
.
upload
(
path
,
url
,
uploadSuccess
,
fileError
,
options
)
}
}
else
{
else
{
console
.
log
(
'file2'
,
file
)
console
.
log
(
'file2'
,
file
)
hlsPopup
.
showLongCenter
(
'上传失败!'
)
hlsPopup
.
showLongCenter
(
'上传失败!'
)
}
}
},
},
...
@@ -464,12 +464,12 @@ export default {
...
@@ -464,12 +464,12 @@ export default {
options
.
mimeType
=
'multipart/form-date'
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
this
.
hlsPopup
.
showLongCenter
(
'汉王识别失败'
)
this
.
hlsPopup
.
showLongCenter
(
'汉王识别失败'
)
}
}
...
@@ -496,12 +496,12 @@ export default {
...
@@ -496,12 +496,12 @@ export default {
options
.
fileName
=
name
options
.
fileName
=
name
options
.
mimeType
=
'multipart/form-date'
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
console
.
log
(
JSON
.
stringify
(
res
,
''
,
2
))
console
.
log
(
JSON
.
stringify
(
res
,
''
,
2
))
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
}
}
ft
.
upload
(
path
,
url
,
uploadSuccess
,
error
,
options
)
ft
.
upload
(
path
,
url
,
uploadSuccess
,
error
,
options
)
...
@@ -529,12 +529,12 @@ export default {
...
@@ -529,12 +529,12 @@ export default {
}
}
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
this
.
hlsPopup
.
showLongCenter
(
'识别失败'
)
}
}
...
@@ -562,12 +562,12 @@ export default {
...
@@ -562,12 +562,12 @@ export default {
}
}
let
ft
=
new
FileTransfer
()
// eslint-disable-line
let
ft
=
new
FileTransfer
()
// eslint-disable-line
function
uploadSuccess
(
message
)
{
function
uploadSuccess
(
message
)
{
let
res
=
JSON
.
parse
(
message
.
response
)
let
res
=
JSON
.
parse
(
message
.
response
)
success
(
res
)
success
(
res
)
}
}
function
error
(
e
)
{
function
error
(
e
)
{
console
.
log
(
'识别失败'
)
console
.
log
(
'识别失败'
)
hlsPopup
.
showLongCenter
(
'识别失败'
)
hlsPopup
.
showLongCenter
(
'识别失败'
)
}
}
...
@@ -800,7 +800,7 @@ export default {
...
@@ -800,7 +800,7 @@ export default {
})
})
if
(
!
positive
||
!
negative
)
throw
new
Error
(
'IRR requires at least one positive value and one negative value'
)
if
(
!
positive
||
!
negative
)
throw
new
Error
(
'IRR requires at least one positive value and one negative value'
)
function
npv
(
rate
)
{
function
npv
(
rate
)
{
numberOfTries
++
numberOfTries
++
if
(
numberOfTries
>
1000
)
{
if
(
numberOfTries
>
1000
)
{
throw
new
Error
(
'IRR can
\'
t find a result'
)
throw
new
Error
(
'IRR can
\'
t find a result'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment