Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-webapp-cli
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
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
heasy
hls-webapp-cli
Commits
0a288936
Commit
0a288936
authored
Jun 25, 2019
by
Nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试版本
parent
0790f132
Changes
39
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
455 additions
and
1119 deletions
+455
-1119
README.md
README.md
+3
-4
meta.js
meta.js
+44
-29
package.json
template/package.json
+1
-1
basic-info.vue
template/src/components/Contract/basic-info.vue
+10
-10
file-info.vue
template/src/components/Contract/file-info.vue
+1
-1
quote-detail.vue
template/src/components/Contract/quote-detail.vue
+7
-7
quote-info.vue
template/src/components/Contract/quote-info.vue
+11
-11
index.vue
template/src/components/FunctionItem/index.vue
+1
-1
workflow-con.vue
template/src/components/workflow-con.vue
+20
-20
workflow-prj.vue
template/src/components/workflow-prj.vue
+23
-23
signModal.vue
template/src/pages/applications/contractSign/signModal.vue
+0
-275
calculationEnter.vue
...c/pages/applications/financCalculate/calculationEnter.vue
+3
-3
resultDetails.vue
.../src/pages/applications/financCalculate/resultDetails.vue
+2
-2
resultMain.vue
...ate/src/pages/applications/financCalculate/resultMain.vue
+1
-1
businessCard.Vue
template/src/pages/applications/ocrIdentify/businessCard.Vue
+8
-8
businessLicenseInformation.Vue
...s/applications/ocrIdentify/businessLicenseInformation.Vue
+6
-6
driverLicenseInformation.Vue
...ges/applications/ocrIdentify/driverLicenseInformation.Vue
+9
-9
idCard.Vue
template/src/pages/applications/ocrIdentify/idCard.Vue
+6
-6
vehicleCard.Vue
template/src/pages/applications/ocrIdentify/vehicleCard.Vue
+10
-10
partner-list.vue
...te/src/pages/applications/partnerManager/partner-list.vue
+11
-11
partner-mainten.vue
...src/pages/applications/partnerManager/partner-mainten.vue
+3
-3
partner-org-mainten.vue
...pages/applications/partnerManager/partner-org-mainten.vue
+3
-3
infoMationMain.vue
.../src/pages/applications/projectManager/infoMationMain.vue
+5
-5
prjAttachment.vue
...e/src/pages/applications/projectManager/prjAttachment.vue
+1
-1
prjBpInfo.vue
template/src/pages/applications/projectManager/prjBpInfo.vue
+3
-3
prjMaintenList.vue
.../src/pages/applications/projectManager/prjMaintenList.vue
+8
-8
prjQuotionInfo.vue
.../src/pages/applications/projectManager/prjQuotionInfo.vue
+8
-8
riskHome.vue
template/src/pages/applications/riskStorm/riskHome.vue
+2
-2
riskSearch.vue
template/src/pages/applications/riskStorm/riskSearch.vue
+4
-4
esignPicture.Vue
template/src/pages/applications/utils/esignPicture.Vue
+0
-0
workflow-detail.vue
template/src/pages/applications/workflow/workflow-detail.vue
+6
-6
workflow-list.vue
template/src/pages/applications/workflow/workflow-list.vue
+17
-17
functionState.js
template/src/pages/functionState.js
+18
-63
getChineseEnglish.js
template/src/pages/getChineseEnglish.js
+0
-500
hlsPopup.vue
template/src/pages/hlsPopup.vue
+4
-4
home.vue
template/src/pages/home.vue
+1
-1
module-function.vue
template/src/pages/homeManager/module-function.vue
+1
-1
index.js
template/src/router/index.js
+48
-52
index.js
utils/index.js
+146
-0
No files found.
README.md
View file @
0a288936
# h
ippius-vue-init
# h
ls-webapp-cli
[
查看文档
](
http://hmap.hand-china.com/hippius-docs/init
)
```bash
# 注意将vue cli更新到最新版本,低版本可能报错
vue init https://
rdc.hand-china.com/gitlab:hmap-cloud-develop/hippius-vue-init
<project_name>
-c
vue init https://
hel.hand-china.com/heasy:hls-webapp-cli
<project_name> -c
```
meta.js
View file @
0a288936
const
path
=
require
(
'path'
)
const
fs
=
require
(
'fs'
)
/**
* Sorts dependencies in package.json alphabetically.
* They are unsorted because they were grouped for the handlebars helpers
* @param {object} data Data from questionnaire
*/
function
sortDependencies
(
data
)
{
// Code from https://github.com/vuejs-templates/webpack/blob/develop/utils/index.js
const
packageJsonFile
=
path
.
join
(
data
.
inPlace
?
''
:
data
.
destDirName
,
'package.json'
)
const
packageJson
=
JSON
.
parse
(
fs
.
readFileSync
(
packageJsonFile
))
packageJson
.
devDependencies
=
sortObject
(
packageJson
.
devDependencies
)
packageJson
.
dependencies
=
sortObject
(
packageJson
.
dependencies
)
fs
.
writeFileSync
(
packageJsonFile
,
JSON
.
stringify
(
packageJson
,
null
,
2
)
+
'
\
n'
)
}
const
{
sortDependencies
,
installDependencies
,
printMessage
,
}
=
require
(
'./utils'
)
function
sortObject
(
object
)
{
// Based on https://github.com/yarnpkg/yarn/blob/v1.3.2/src/config.js#L79-L85
const
sortedObject
=
{}
Object
.
keys
(
object
)
.
sort
()
.
forEach
(
item
=>
{
sortedObject
[
item
]
=
object
[
item
]
})
return
sortedObject
}
module
.
exports
=
{
helpers
:
{},
...
...
@@ -60,10 +42,10 @@ module.exports = {
type
:
'confirm'
,
message
:
'install workflow modules in App?'
,
},
calculate
:{
/*
calculate:{
type: 'confirm',
message: 'install calculate modules in App?',
},
},
*/
riskstrom
:{
type
:
'confirm'
,
message
:
'install riskstrom modules in App?'
,
...
...
@@ -88,14 +70,31 @@ module.exports = {
type
:
'confirm'
,
message
:
'install ocr modules in App?'
,
},
autoInstall
:
{
type
:
'list'
,
message
:
'Should we run `yarn install` for you after the project has been created? (recommended)'
,
choices
:
[
{
name
:
'Yes, use Yarn'
,
value
:
'yarn'
,
short
:
'yarn'
,
},
{
name
:
'No, I will handle that myself'
,
value
:
false
,
short
:
'no'
,
},
],
},
},
filters
:
{
'src/pages/applications/partnerManager/**/*'
:
'bp'
,
'scr/pages/applications/workflow/**/*'
:
'wfl'
,
'src/pages/applications/financCalculate/**/*'
:
'calculate'
,
'src/pages/applications/projectManager/**/*'
:
'project'
,
'src/pages/applications/contractSign/**/*'
:
'contract'
,
'src/pages/applications/contractMainten/**/*'
:
'contract'
,
'src/pages/applications/contractSign/**/*'
:
'contract'
,
'src/pages/applications/workflow/**/*'
:
'wfl'
,
/*'src/pages/applications/financCalculate/!**!/!*': 'calculate',*/
'src/pages/applications/riskStorm/**/*'
:
'riskstrom'
,
'src/pages/applications/robot/**/*'
:
'robot'
,
'src/pages/applications/esign/**/*'
:
'esign'
,
...
...
@@ -104,6 +103,22 @@ module.exports = {
'src/pages/applications/ocrIdentify/**/*'
:
'ocr'
},
complete
(
data
,
{
chalk
})
{
sortDependencies
(
data
)
const
green
=
chalk
.
green
sortDependencies
(
data
,
green
)
const
cwd
=
path
.
join
(
process
.
cwd
(),
data
.
inPlace
?
''
:
data
.
destDirName
)
if
(
data
.
autoInstall
)
{
installDependencies
(
cwd
,
data
.
autoInstall
,
green
)
.
then
(()
=>
{
printMessage
(
data
,
green
)
})
.
catch
(
e
=>
{
console
.
log
(
chalk
.
red
(
'Error:'
),
e
)
})
}
else
{
printMessage
(
data
,
chalk
)
}
},
}
template/package.json
View file @
0a288936
{
"name"
:
"{{ name }}"
,
"version"
:
"
1.0.0
"
,
"version"
:
"
0.0.1
"
,
"description"
:
"{{ description }}"
,
"author"
:
"{{ author }}"
,
"private"
:
true
,
...
...
template/src/components/Contract/basic-info.vue
View file @
0a288936
...
...
@@ -7,27 +7,27 @@
<list-item
:item-height=
"45"
>
<item>
<div
slot=
"name"
>
主承租人
</div>
<div
slot=
"content"
>
{{
contract
.
bp_id_tenant_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
bp_id_tenant_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
项目编号
</div>
<div
slot=
"content"
>
{{
contract
.
project_number
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
project_number
}}
</div>
</item>
<item>
<div
slot=
"name"
>
合同编号
</div>
<div
slot=
"content"
>
{{
contract
.
contract_number
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
contract_number
}}
</div>
</item>
<item>
<div
slot=
"name"
>
公司名称
</div>
<div
slot=
"content"
>
{{
contract
.
company_id_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
company_id_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
业务类型
</div>
<div
slot=
"content"
>
{{
contract
.
business_type_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
business_type_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
产品线
</div>
<div
slot=
"content"
>
{{
contract
.
division_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
division_n
}}
</div>
</item>
</list-item>
<!--银行信息-->
...
...
@@ -60,19 +60,19 @@
<list-item
v-if=
"readOnly === 'sign'"
>
<item>
<div
slot=
"name"
>
自动扣款银行
</div>
<div
slot=
"content"
>
{{
contract
.
direct_debit_bank_id_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
direct_debit_bank_id_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
账户名
</div>
<div
slot=
"content"
>
{{
contract
.
dd_bank_account_name
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
dd_bank_account_name
}}
</div>
</item>
<item>
<div
slot=
"name"
>
账户号
</div>
<div
slot=
"content"
>
{{
contract
.
dd_bank_account_num
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
dd_bank_account_num
}}
</div>
</item>
<item>
<div
slot=
"name"
>
账户类型
</div>
<div
slot=
"content"
>
{{
contract
.
ebank_account_prop_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
ebank_account_prop_n
}}
</div>
</item>
</list-item>
</div>
...
...
template/src/components/Contract/file-info.vue
View file @
0a288936
...
...
@@ -12,7 +12,7 @@
<div
class=
"attach-icon"
/>
</div>
<div
class=
"attach-name"
>
<div>
{{
item_list
.
cdd_item_desc
}}
</div>
<div>
\
{{
item_list
.
cdd_item_desc
}}
</div>
</div>
</div>
</div>
...
...
template/src/components/Contract/quote-detail.vue
View file @
0a288936
...
...
@@ -7,25 +7,25 @@
<div
class=
"has-header"
>
<list-item>
<item
:proportion=
"[5,1]"
:item-height=
"47"
class=
"total"
>
<div
slot=
"name"
><span>
融资额:
</span><span>
¥
{{
contract
.
finance_amount
}}
</span></div>
<div
slot=
"name"
><span>
融资额:
</span><span>
¥
\
{{
contract
.
finance_amount
}}
</span></div>
</item>
<item
:proportion=
"[5,1]"
class=
"times"
>
<div
slot=
"name"
>
还款明细
<span>
(共
{{
contract
.
lease_times
}}
期)
</span></div>
<div
slot=
"name"
>
还款明细
<span>
(共
\
{{
contract
.
lease_times
}}
期)
</span></div>
</item>
</list-item>
<div
v-for=
"list in cashflows"
class=
"general"
>
<div
class=
"time"
>
{{
list
.
times
}}
期
\
{{
list
.
times
}}
期
</div>
<div
class=
"right"
>
<list-item>
<item
:proportion=
"[2,3]"
>
<div
slot=
"name"
><span>
租金:
</span><span
style=
"color:#FF777C;"
>
{{
list
.
due_amount
}}
</span></div>
<div
slot=
"content"
><span>
本金:
</span><span>
{{
list
.
principal
}}
</span></div>
<div
slot=
"name"
><span>
租金:
</span><span
style=
"color:#FF777C;"
>
\
{{
list
.
due_amount
}}
</span></div>
<div
slot=
"content"
><span>
本金:
</span><span>
\
{{
list
.
principal
}}
</span></div>
</item>
<item
:proportion=
"[2,3]"
>
<div
slot=
"name"
><span>
利息:
</span><span>
{{
list
.
interest
}}
</span></div>
<div
slot=
"content"
><span>
剩余本金:
</span><span>
{{
list
.
outstanding_principal
}}
</span></div>
<div
slot=
"name"
><span>
利息:
</span><span>
\
{{
list
.
interest
}}
</span></div>
<div
slot=
"content"
><span>
剩余本金:
</span><span>
\
{{
list
.
outstanding_principal
}}
</span></div>
</item>
</list-item>
</div>
...
...
template/src/components/Contract/quote-info.vue
View file @
0a288936
...
...
@@ -8,52 +8,52 @@
<div
class=
"item-bord"
>
<div
class=
"info-board"
>
<div
class=
"board-line1"
>
融资额(元)
</div>
<div
class=
"board-line2"
>
{{
contract
.
finance_amount
}}
</div>
<div
class=
"board-line2"
>
\
{{
contract
.
finance_amount
}}
</div>
<div
class=
"board-line3"
>
<div
class=
"board-block"
>
<div>
月供(元)
</div>
<div>
{{
contract
.
pmt
}}
</div>
<div>
\
{{
contract
.
pmt
}}
</div>
</div>
<div
class=
"board-block-divider"
/>
<div
class=
"board-block"
>
<div>
还款频率
</div>
<div>
{{
contract
.
annual_pay_times_n
}}
</div>
<div>
\
{{
contract
.
annual_pay_times_n
}}
</div>
</div>
<div
class=
"board-block-divider"
/>
<div
class=
"board-block"
>
<div>
合同期数
</div>
<div>
{{
contract
.
lease_times
}}
</div>
<div>
\
{{
contract
.
lease_times
}}
</div>
</div>
</div>
</div>
</div>
<item>
<div
slot=
"name"
>
价目表
</div>
<div
slot=
"content"
>
{{
contract
.
price_list_n
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
price_list_n
}}
</div>
</item>
<item>
<div
slot=
"name"
>
租赁物总价款(元)
</div>
<div
slot=
"content"
>
{{
contract
.
lease_item_amount
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
lease_item_amount
}}
</div>
</item>
<item>
<div
slot=
"name"
>
租金总额(元)
</div>
<div
slot=
"content"
>
{{
contract
.
net_lease_item_amount
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
net_lease_item_amount
}}
</div>
</item>
<item>
<div
slot=
"name"
>
租赁年限(年)
</div>
<div
slot=
"content"
>
{{
contract
.
lease_term
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
lease_term
}}
</div>
</item>
<item>
<div
slot=
"name"
>
首付款比例/金额
</div>
<div
slot=
"content"
>
{{
contract
.
down_payment_ratio_together
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
down_payment_ratio_together
}}
</div>
</item>
<item>
<div
slot=
"name"
>
保证金比例/金额
</div>
<div
slot=
"content"
>
{{
contract
.
deposit_ratio_together
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
deposit_ratio_together
}}
</div>
</item>
<item>
<div
slot=
"name"
>
手续费比例/金额
</div>
<div
slot=
"content"
>
{{
contract
.
lease_charge_ratio_together
}}
</div>
<div
slot=
"content"
>
\
{{
contract
.
lease_charge_ratio_together
}}
</div>
</item>
</list-item>
</div>
...
...
template/src/components/FunctionItem/index.vue
View file @
0a288936
<
template
>
<div
class=
"function-item"
@
click=
"functionDo"
>
<img
:src=
"functionIcon"
>
<div>
{{
functionName
}}
</div>
<div>
\
{{
functionName
}}
</div>
</div>
</
template
>
...
...
template/src/components/workflow-con.vue
View file @
0a288936
...
...
@@ -22,7 +22,7 @@
<div
class=
"add-name"
>
<div>
主承租人
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
bp_id_tenant_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
bp_id_tenant_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -30,7 +30,7 @@
<div
class=
"add-name"
>
<div>
项目编号
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
project_number
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
project_number
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -38,7 +38,7 @@
<div
class=
"add-name"
>
<div>
合同编号
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
contract_number
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
contract_number
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -46,7 +46,7 @@
<div
class=
"add-name"
>
<div>
公司名称
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
company_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
company_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -54,7 +54,7 @@
<div
class=
"add-name"
>
<div>
业务类型
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
business_type_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
business_type_n
}}
</div>
</div>
</div>
...
...
@@ -63,7 +63,7 @@
<div
class=
"add-name"
>
<div>
产品线
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
division_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
division_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -71,7 +71,7 @@
<div
class=
"add-name"
>
<div>
自动扣款银行
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
direct_debit_bank_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
direct_debit_bank_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -79,7 +79,7 @@
<div
class=
"add-name"
>
<div>
账户名
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
dd_bank_account_name
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
dd_bank_account_name
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -87,7 +87,7 @@
<div
class=
"add-name"
>
<div>
账户号
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
dd_bank_account_num
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
dd_bank_account_num
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -95,7 +95,7 @@
<div
class=
"add-name"
>
<div>
账户类型
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
ebank_account_prop_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
ebank_account_prop_n
}}
</div>
</div>
</div>
</div>
...
...
@@ -130,12 +130,12 @@
<div
class=
"board-block-divider"
/>
<div
class=
"board-block"
>
<div>
还款频率
</div>
<div>
{{
contract
.
annual_pay_times_n
}}
</div>
<div>
\
{{
contract
.
annual_pay_times_n
}}
</div>
</div>
<div
class=
"board-block-divider"
/>
<div
class=
"board-block"
>
<div>
合同期数
</div>
<div>
{{
contract
.
lease_times
}}
</div>
<div>
\
{{
contract
.
lease_times
}}
</div>
</div>
</div>
</div>
...
...
@@ -145,7 +145,7 @@
<div
class=
"add-name"
>
<div>
价目表
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
price_list_n
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
price_list_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -169,7 +169,7 @@
<div
class=
"add-name"
>
<div>
租赁年限(年)
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
lease_term
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
lease_term
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -177,7 +177,7 @@
<div
class=
"add-name"
>
<div>
首付款比例/金额
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
down_payment_ratio_together
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
down_payment_ratio_together
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -185,7 +185,7 @@
<div
class=
"add-name"
>
<div>
保证金比例/金额
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
deposit_ratio_together
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
deposit_ratio_together
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -193,7 +193,7 @@
<div
class=
"add-name"
>
<div>
手续费比例/金额
</div>
</div>
<div
class=
"add-content"
>
{{
contract
.
lease_charge_ratio_together
}}
</div>
<div
class=
"add-content"
>
\
{{
contract
.
lease_charge_ratio_together
}}
</div>
</div>
</div>
</div>
...
...
@@ -225,10 +225,10 @@
</tr>
<tr
v-for=
"cash in cashflows"
>
<td
style=
"text-align:center"
>
{{
cash
.
times
}}
\
{{
cash
.
times
}}
</td>
<td
style=
"text-align:center"
>
{{
cash
.
due_date
}}
\
{{
cash
.
due_date
}}
</td>
<td
style=
"text-align:center"
>
\
{{
cash
.
principal
|
currency
}}
...
...
@@ -263,7 +263,7 @@
<div
class=
"attach-icon"
/>
</div>
<div
class=
"attach-name"
>
<div>
{{
item_list
.
cdd_item_desc
}}
</div>
<div>
\
{{
item_list
.
cdd_item_desc
}}
</div>
</div>
</div>
</div>
...
...
template/src/components/workflow-prj.vue
View file @
0a288936
...
...
@@ -25,7 +25,7 @@
<div
class=
"add-name"
>
<div>
经销商名称
</div>
</div>
<div
class=
"add-content"
>
{{
projects
.
invoice_agent_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
projects
.
invoice_agent_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -33,7 +33,7 @@
<div
class=
"add-name"
>
<div>
客户类别
</div>
</div>
<div
class=
"add-content"
>
{{
projects
.
bp_class_n
}}
</div>
<div
class=
"add-content"
>
\
{{
projects
.
bp_class_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -41,7 +41,7 @@
<div
class=
"add-name"
>
<div>
业务类型
</div>
</div>
<div
class=
"add-content"
>
{{
projects
.
business_type_n
}}
</div>
<div
class=
"add-content"
>
\
{{
projects
.
business_type_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -49,7 +49,7 @@
<div
class=
"add-name"
>
<div>
产品线
</div>
</div>
<div
class=
"add-content"
>
{{
projects
.
division_n
}}
</div>
<div
class=
"add-content"
>
\
{{
projects
.
division_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -57,7 +57,7 @@
<div
class=
"add-name"
>
<div>
车辆类别
</div>
</div>
<div
class=
"add-content"
>
{{
projects
.
car_type_n
}}
</div>
<div
class=
"add-content"
>
\
{{
projects
.
car_type_n
}}
</div>
</div>
</div>
<div
class=
"list-title"
>
...
...
@@ -68,7 +68,7 @@
<div
class=
"add-name"
>
<div>
品牌
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
brand_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
brand_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -76,7 +76,7 @@
<div
class=
"add-name"
>
<div>
车系
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
series_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
series_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -84,7 +84,7 @@
<div
class=
"add-name"
>
<div>
车型
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
model_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
model_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -92,7 +92,7 @@
<div
class=
"add-name"
>
<div>
车辆指导价
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
model_id_n
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
model_id_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -100,7 +100,7 @@
<div
class=
"add-name"
>
<div>
购车目的
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
objective_buy_car_n
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
objective_buy_car_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -108,7 +108,7 @@
<div
class=
"add-name"
>
<div>
实际销售价
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
invoice_price
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
invoice_price
}}
</div>
</div>
</div>
</div>
...
...
@@ -139,7 +139,7 @@
<div
class=
"add-name"
>
<div>
客户姓名
</div>
</div>
<div
class=
"add-content"
>
{{
project_bp
.
bp_name
}}
</div>
<div
class=
"add-content"
>
\
{{
project_bp
.
bp_name
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -147,7 +147,7 @@
<div
class=
"add-name"
>
<div>
手机号
</div>
</div>
<div
class=
"add-content"
>
{{
project_bp
.
cell_phone
}}
</div>
<div
class=
"add-content"
>
\
{{
project_bp
.
cell_phone
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -155,7 +155,7 @@
<div
class=
"add-name"
>
<div>
证件类型
</div>
</div>
<div
class=
"add-content"
>
{{
project_bp
.
id_type_n
}}
</div>
<div
class=
"add-content"
>
\
{{
project_bp
.
id_type_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -163,7 +163,7 @@
<div
class=
"add-name"
>
<div>
证件号码
</div>
</div>
<div
class=
"add-content"
>
{{
project_bp
.
id_card_no
}}
</div>
<div
class=
"add-content"
>
\
{{
project_bp
.
id_card_no
}}
</div>
</div>
</div>
</div>
...
...
@@ -194,7 +194,7 @@
<div
class=
"add-name"
>
<div>
产品名称
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
product_name_write
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
product_name_write
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -202,7 +202,7 @@
<div
class=
"add-name"
>
<div>
首付款比例
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
down_payment_ratio
}}
%
</div>
<div
class=
"add-content"
>
\
{{
quote
.
down_payment_ratio
}}
%
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -210,7 +210,7 @@
<div
class=
"add-name"
>
<div>
保证金比例
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
deposit_ratio
}}
%
</div>
<div
class=
"add-content"
>
\
{{
quote
.
deposit_ratio
}}
%
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -218,7 +218,7 @@
<div
class=
"add-name"
>
<div>
尾付款比例
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
balloon_ratio
}}
%
</div>
<div
class=
"add-content"
>
\
{{
quote
.
balloon_ratio
}}
%
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -226,7 +226,7 @@
<div
class=
"add-name"
>
<div>
还款频率
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
annual_pay_times_n
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
annual_pay_times_n
}}
</div>
</div>
</div>
<div
class=
"item"
>
...
...
@@ -234,7 +234,7 @@
<div
class=
"add-name"
>
<div>
还款期数
</div>
</div>
<div
class=
"add-content"
>
{{
quote
.
lease_times
}}
</div>
<div
class=
"add-content"
>
\
{{
quote
.
lease_times
}}
</div>
</div>
</div>
<div
class=
"list-title"
>
...
...
@@ -294,7 +294,7 @@
<div
class=
"board-block-divider"
/>
<div
class=
"board-block"
>
<div>
合同期数
</div>
<div>
{{
quote
.
lease_times
}}
</div>
<div>
\
{{
quote
.
lease_times
}}
</div>
</div>
</div>
</div>
...
...
@@ -358,7 +358,7 @@
<div
class=
"attach-icon"
/>
</div>
<div
class=
"attach-name"
>
<div>
{{
item_list
.
cdd_item_desc
}}
</div>
<div>
\
{{
item_list
.
cdd_item_desc
}}
</div>
</div>
</div>
</div>
...
...
template/src/pages/applications/contractSign/signModal.vue
deleted
100644 → 0
View file @
0790f132
/**
* @Author Sean
* @Date 2019/5/13
*/
<
template
>
<transition
name=
"slide-fade"
>
<div
ref=
"signModal"
class=
"sign-modal"
@
click=
"hideModal"
>
<div
class=
"pane"
@
click
.
stop
>
<div
class=
"layout"
>
<div
id=
"data"
@
click=
"confirmData()"
>
确定
</div>
<div
id=
"clear"
@
click=
"cleanData()"
>
清除
</div>
</div>
<div
id=
"draw"
class=
"draw"
>
<div
id=
"sig"
class=
"sig"
>
<canvas
id=
"canvas"
/>
</div>
</div>
</div>
</div>
</transition>
</
template
>
<
script
>
export
default
{
props
:
{
info
:
Object
,
},
data
()
{
return
{
signaturePad
:
{},
image_base64
:
''
,
}
},
created
:
function
()
{
// console.log(this.timeInfo)
},
mounted
:
function
()
{
this
.
changeSize
()
},
activated
:
function
()
{
},
deactivated
:
function
()
{
},
methods
:
{
hideModal
()
{
this
.
$emit
(
'closeModal'
)
},
cleanData
()
{
let
vm
=
this
vm
.
signaturePad
.
clear
()
},
// 确认签名
confirmData
()
{
let
vm
=
this
if
(
vm
.
signaturePad
.
isEmpty
())
{
hlsPopup
.
showLongCenter
(
'未创建签名!'
)
}
else
{
vm
.
hideModal
()
var
canvas
=
document
.
getElementById
(
'canvas'
)
var
canvasData
=
canvas
.
toDataURL
(
'image/png'
)
vm
.
image_base64
=
canvasData
.
split
(
','
)[
1
]
hlsPopup
.
showLoading
(
'正在签名请稍等!'
)
// 先创建账号
var
url
=
process
.
env
.
rootPath
+
'/app/sign/register'
var
param
=
{
'idNo'
:
vm
.
info
.
id_number
,
'name'
:
vm
.
info
.
name
,
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
!
res
.
success
)
{
// 如果成功进行签名
// success_atm = []
var
file_name
=
'测试e签宝'
+
'-盖章.pdf'
vm
.
getSignPdf
(
vm
.
info
.
name
,
vm
.
info
.
id_number
,
vm
.
image_base64
,
''
,
''
,
''
,
file_name
,
''
,
'BOTH'
)
}
else
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showPopup
(
''
,
'签名失败请返回重试'
,
function
()
{
// window.history.go(-1)
})
}
})
}
},
getSignPdf
(
name
,
id_no
,
imgData
,
table_name
,
table_pk_value
,
attachment_id
,
file_name
,
user_id
,
sign_type
)
{
let
vm
=
this
// debugger;
// 只签名客户"userPages":[{"page": "1", "x":505, "y":340},{"page": "2", "x":115, "y":410}]
// 签名客户和公司"userPages":[{"page": "1", "x":510, "y":245},{"page": "4", "x":460, "y":135}],
// "selfPages":[{"page": "1", "x":200, "y":235},{"page": "4", "x":100, "y":135}],
var
userPages
=
[]
var
selfPages
=
[]
if
(
sign_type
===
'BOTH'
)
{
/* userPages = [{"page": "1", "x": 500, "y": 235}, {"page": "4", "x": 460, "y": 135}];
selfPages = [{"page": "1", "x": 200, "y": 235}, {"page": "4", "x": 100, "y": 135}]; */
// uat
// userPages=[{"page": "1", "x": 510, "y": 245}, {"page": "4", "x": 445, "y": 135}];
// selfPages=[{"page": "1", "x": 200, "y": 245}, {"page": "4", "x": 120, "y": 135}];
userPages
=
[{
'page'
:
'1'
,
'x'
:
510
,
'y'
:
250
},
{
'page'
:
'4'
,
'x'
:
445
,
'y'
:
165
}]
selfPages
=
[{
'page'
:
'1'
,
'x'
:
200
,
'y'
:
250
},
{
'page'
:
'4'
,
'x'
:
120
,
'y'
:
165
}]
}
else
{
userPages
=
[{
'page'
:
'1'
,
'x'
:
505
,
'y'
:
205
},
{
'page'
:
'2'
,
'x'
:
105
,
'y'
:
230
}]
}
var
url
=
process
.
env
.
rootPath
+
'/app/sign/pdf'
var
param
=
{
'idNo'
:
id_no
,
'name'
:
name
,
'userPages'
:
userPages
,
'selfPages'
:
selfPages
,
'attachmentInfo'
:
{
'downloadApiName'
:
'attment_view'
,
'downloadSysName'
:
'HLS_APP'
,
'attachmentId'
:
6
,
'uploadApiName'
:
'attachment_upload'
,
'uploadSysName'
:
'HLS_APP'
,
'userId'
:
1
,
'sourceType'
:
'HLS_DOC_FILE_TEMPLET'
,
'pkValue'
:
42
,
'fileName'
:
file_name
,
},
'personArea'
:
0
,
'sealData'
:
imgData
,
}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
hlsPopup
.
hideLoading
()
if
(
res
.
success
)
{
hlsPopup
.
showConfirm
({
title
:
'签名成功'
,
content
:
'是否预览合同'
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
// 签名合同预览
vm
.
PDF
(
parseInt
(
res
.
message
))
}
},
})
}
else
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showLongCenter
(
'签名失败请重试'
)
/* hlsPopup.showPopup('', '签名失败请返回重试', function () {
// 调用删除
// window.history.go(-1)
}) */
}
})
},
changeSize
()
{
let
vm
=
this
if
(
window
.
innerHeight
>
window
.
innerWidth
)
{
$
(
'#canvas'
).
attr
({
'height'
:
((
window
.
innerHeight
/
2
)
-
100
),
'width'
:
window
.
innerWidth
})
}
else
{
$
(
'#canvas'
).
attr
({
'height'
:
(
window
.
innerHeight
-
100
),
'width'
:
window
.
innerWidth
})
$
(
'html,body'
).
animate
({
scrollTop
:
0
},
'slow'
)
}
var
canvasX
=
$
(
'#canvas'
)[
0
]
vm
.
signaturePad
=
new
SignaturePad
(
canvasX
,
{
dotSize
:
0
,
velocityFilterWeight
:
1
,
minWidth
:
2.0
,
maxWidth
:
5.2
,
penColor
:
'#FF0000'
,
backgroundColor
:
'rgba(0,0,0,0)'
,
})
},
// pdf转图片预览
PDF
(
attachment_id
)
{
let
vm
=
this
hlsPopup
.
showLoading
(
'正在预览请稍等!'
)
var
url
=
process
.
env
.
rootPath
+
'/app/pdf/png?sysName=HLS_APP&apiName=attment_view&attachment_id='
+
attachment_id
var
param
=
{}
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
if
(
res
.
success
)
{
var
length
=
res
.
message
// PDF装图片数组
var
pirtureList
=
[]
for
(
var
i
=
0
;
i
<
length
;
i
++
)
{
pirtureList
.
push
({
pic
:
process
.
env
.
file_url
+
'esign/'
+
attachment_id
+
'/temp/'
+
'temp_'
+
(
i
+
1
)
+
'.png'
})
}
hlsPopup
.
hideLoading
()
vm
.
alpviewimg
(
pirtureList
)
}
else
{
hlsPopup
.
hideLoading
()
hlsPopup
.
showLongCenter
(
'预览文件失败'
)
}
})
},
alpviewimg
(
pirtureList
)
{
this
.
$router
.
push
({
name
:
'EsignPicture'
,
params
:
{
pirtureList
:
pirtureList
,
},
})
},
},
}
</
script
>
<
style
scoped
lang=
"less"
rel=
"stylesheet"
>
/* //name="modal-fade"
.modal-fade-enter, .modal-fade-leave-active { opacity: 0; } .modal-fade-enter-active, .modal-fade-leave-active { transition: opacity .5s ease }*/
/* 可以设置不同的进入和离开动画 */
/* 设置持续时间和动画函数 */
.slide-fade-enter-active {
transition: all .3s ease;
}
.slide-fade-leave-active {
transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
transform: translateX(10px);
opacity: 0;
}
/*//bounce
.bounce-enter-active {
animation: bounce-in .5s;
}
.bounce-leave-active {
animation: bounce-in .5s reverse;
}
@keyframes bounce-in {
0% {
transform: scale(0);
}
50% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
}*/
.sign-modal{
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.1);
position: fixed;
z-index: 100;
bottom: 0;
.pane{
background-color: #fff;
position: absolute;
width: 100%;
height: 50%;
bottom: 0;
padding: 10px 15px;
.layout{
height: 20px;
font-size: 16px;
color:#1e82d2;
line-height: 20px;
display: flex;
display: -webkit-flex;
justify-content:space-between;
-webkit-justify-content:space-between;
}
.draw {
width: 100%;
height: 95%;
.sig{
width: 100%;
height: 100%;
canvas{
width: 100%;
height: 100%;
}
}
}
}
}
</
style
>
template/src/pages/applications/financCalculate/calculationEnter.vue
View file @
0a288936
...
...
@@ -16,9 +16,9 @@
<item
v-for=
"(list,index) in proList"
:key=
"index"
:has-border=
"false"
@
click
.
native=
"goNext(list)"
>
<div
class=
"finaning-contents"
>
<div
class=
"contents-info"
>
<div
class=
"contents-info-type"
>
{{
list
.
product_name_write
}}
</div>
<div
class=
"contents-info-description"
>
{{
list
.
special_note
}}
</div>
<div
class=
"contents-info-time"
>
租期:
{{
list
.
times_from
}}
期
</div>
<div
class=
"contents-info-type"
>
\
{{
list
.
product_name_write
}}
</div>
<div
class=
"contents-info-description"
>
\
{{
list
.
special_note
}}
</div>
<div
class=
"contents-info-time"
>
租期:
\
{{
list
.
times_from
}}
期
</div>
</div>
<div
class=
"next-icon"
>
<div
class=
"next-icon-img"
>
...
...
template/src/pages/applications/financCalculate/resultDetails.vue
View file @
0a288936
...
...
@@ -12,12 +12,12 @@
<div
slot=
"name"
><span>
融资额:
</span><span>
¥
\
{{
detailInfo
.
finance_amount
|
currency
}}
</span></div>
</item>
<item
:proportion=
"[5,1]"
class=
"times"
>
<div
slot=
"name"
>
还款明细
<span>
(共
{{
detailInfo
.
times_from
}}
期)
</span></div>
<div
slot=
"name"
>
还款明细
<span>
(共
\
{{
detailInfo
.
times_from
}}
期)
</span></div>
</item>
</list-item>
<div
v-for=
"(list,index) in detailInfo.cash_flows"
v-show=
"index>0"
:key=
"index"
class=
"general"
>
<div
class=
"time"
>
{{
list
.
time
}}
期
\
{{
list
.
time
}}
期
</div>
<div
class=
"right"
>
<list-item>
...
...
template/src/pages/applications/financCalculate/resultMain.vue
View file @
0a288936
...
...
@@ -22,7 +22,7 @@
</div>
<div
class=
"installment"
>
<div>
合同期数
</div>
<div>
{{
calc
.
result
.
times_from
}}
</div>
<div>
\
{{
calc
.
result
.
times_from
}}
</div>
</div>
</div>
</div>
...
...
template/src/pages/applications/ocrIdentify/businessCard.Vue
View file @
0a288936
/**
f
/**
* @Author Sean
* @Date 2019/4/23
*/
...
...
@@ -8,33 +8,33 @@
<list-item>
<item>
<div
slot=
"name"
>
姓名
</div>
<div
slot=
"content"
>
{{
bp_info
.
bp_name
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
bp_name
}}
</div>
</item>
</list-item>
<list-item>
<item>
<div
slot=
"name"
>
手机号
</div>
<div
slot=
"content"
>
{{
bp_info
.
cell_phone
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
cell_phone
}}
</div>
</item>
<item>
<div
slot=
"name"
>
职务
</div>
<div
slot=
"content"
>
{{
bp_info
.
position
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
position
}}
</div>
</item>
<item>
<div
slot=
"name"
>
单位
</div>
<div
slot=
"content"
>
{{
bp_info
.
work_unit
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
work_unit
}}
</div>
</item>
<item>
<div
slot=
"name"
>
单位地址
</div>
<div
slot=
"content"
>
{{
bp_info
.
work_unit_address
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
work_unit_address
}}
</div>
</item>
<item>
<div
slot=
"name"
>
单位电话
</div>
<div
slot=
"content"
>
{{
bp_info
.
work_unit_phone
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
work_unit_phone
}}
</div>
</item>
<item>
<div
slot=
"name"
>
邮箱
</div>
<div
slot=
"content"
>
{{
bp_info
.
email
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
email
}}
</div>
</item>
</list-item>
</h-content>
...
...
template/src/pages/applications/ocrIdentify/businessLicenseInformation.Vue
View file @
0a288936
...
...
@@ -8,29 +8,29 @@
<list-item>
<item>
<div
slot=
"name"
>
名称
</div>
<div
slot=
"content"
>
{{
licenseList
.
name
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
name
}}
</div>
</item>
</list-item>
<list-item>
<item>
<div
slot=
"name"
>
法定代表人
</div>
<div
slot=
"content"
>
{{
licenseList
.
person
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
person
}}
</div>
</item>
<item>
<div
slot=
"name"
>
注册资本
</div>
<div
slot=
"content"
>
{{
licenseList
.
capital
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
capital
}}
</div>
</item>
<item>
<div
slot=
"name"
>
住所
</div>
<div
slot=
"content"
>
{{
licenseList
.
address
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
address
}}
</div>
</item>
<item>
<div
slot=
"name"
>
营业期限
</div>
<div
slot=
"content"
>
{{
licenseList
.
valid_period
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
valid_period
}}
</div>
</item>
<item>
<div
slot=
"name"
>
注册号
</div>
<div
slot=
"content"
>
{{
licenseList
.
reg_num
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
reg_num
}}
</div>
</item>
</list-item>
</h-content>
...
...
template/src/pages/applications/ocrIdentify/driverLicenseInformation.Vue
View file @
0a288936
...
...
@@ -8,41 +8,41 @@
<list-item>
<item>
<div
slot=
"name"
>
姓名
</div>
<div
slot=
"content"
>
{{
licenseList
.
name
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
name
}}
</div>
</item>
</list-item>
<list-item>
<item>
<div
slot=
"name"
>
性别
</div>
<div
slot=
"content"
>
{{
licenseList
.
gender
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
gender
}}
</div>
</item>
<item>
<div
slot=
"name"
>
国籍
</div>
<div
slot=
"content"
>
{{
licenseList
.
nation
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
nation
}}
</div>
</item>
<item>
<div
slot=
"name"
>
证号
</div>
<div
slot=
"content"
>
{{
licenseList
.
cardno
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
cardno
}}
</div>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<div
slot=
"content"
>
{{
licenseList
.
address
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
address
}}
</div>
</item>
<item>
<div
slot=
"name"
>
出生日期
</div>
<div
slot=
"content"
>
{{
licenseList
.
birthdate
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
birthdate
}}
</div>
</item>
<item>
<div
slot=
"name"
>
初次领证日期
</div>
<div
slot=
"content"
>
{{
licenseList
.
issuedate
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
issuedate
}}
</div>
</item>
<item>
<div
slot=
"name"
>
准驾车型
</div>
<div
slot=
"content"
>
{{
licenseList
.
driverclass
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
driverclass
}}
</div>
</item>
<item>
<div
slot=
"name"
>
有效期限
</div>
<div
slot=
"content"
>
{{
licenseList
.
validdate
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
validdate
}}
</div>
</item>
</list-item>
</h-content>
...
...
template/src/pages/applications/ocrIdentify/idCard.Vue
View file @
0a288936
...
...
@@ -8,29 +8,29 @@
<list-item>
<item>
<div
slot=
"name"
>
姓名
</div>
<div
slot=
"content"
>
{{
bp_info
.
name
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
name
}}
</div>
</item>
</list-item>
<list-item>
<item>
<div
slot=
"name"
>
性别
</div>
<div
slot=
"content"
>
{{
bp_info
.
gender
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
gender
}}
</div>
</item>
<item>
<div
slot=
"name"
>
民族
</div>
<div
slot=
"content"
>
{{
bp_info
.
people
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
people
}}
</div>
</item>
<item>
<div
slot=
"name"
>
出生日期
</div>
<div
slot=
"content"
>
{{
bp_info
.
birthdays
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
birthdays
}}
</div>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<div
slot=
"content"
>
{{
bp_info
.
address
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
address
}}
</div>
</item>
<item>
<div
slot=
"name"
>
身份证号
</div>
<div
slot=
"content"
>
{{
bp_info
.
idnumber
}}
</div>
<div
slot=
"content"
>
\
{{
bp_info
.
idnumber
}}
</div>
</item>
</list-item>
</h-content>
...
...
template/src/pages/applications/ocrIdentify/vehicleCard.Vue
View file @
0a288936
...
...
@@ -8,45 +8,45 @@
<list-item>
<item>
<div
slot=
"name"
>
车牌号码
</div>
<div
slot=
"content"
>
{{
licenseList
.
plateno
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
plateno
}}
</div>
</item>
</list-item>
<list-item>
<item>
<div
slot=
"name"
>
车辆类型
</div>
<div
slot=
"content"
>
{{
licenseList
.
vehicletype
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
vehicletype
}}
</div>
</item>
<item>
<div
slot=
"name"
>
所有人
</div>
<div
slot=
"content"
>
{{
licenseList
.
owner
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
owner
}}
</div>
</item>
<item>
<div
slot=
"name"
>
住址
</div>
<div
slot=
"content"
>
{{
licenseList
.
veaddress
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
veaddress
}}
</div>
</item>
<item>
<div
slot=
"name"
>
使用性质
</div>
<div
slot=
"content"
>
{{
licenseList
.
usecharacter
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
usecharacter
}}
</div>
</item>
<item>
<div
slot=
"name"
>
发动机号码
</div>
<div
slot=
"content"
>
{{
licenseList
.
engineno
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
engineno
}}
</div>
</item>
<item>
<div
slot=
"name"
>
品牌型号
</div>
<div
slot=
"content"
>
{{
licenseList
.
model
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
model
}}
</div>
</item>
<item>
<div
slot=
"name"
>
车辆识别代码
</div>
<div
slot=
"content"
>
{{
licenseList
.
vin
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
vin
}}
</div>
</item>
<item>
<div
slot=
"name"
>
注册日期
</div>
<div
slot=
"content"
>
{{
licenseList
.
registerdate
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
registerdate
}}
</div>
</item>
<item>
<div
slot=
"name"
>
发证日期
</div>
<div
slot=
"content"
>
{{
licenseList
.
issuedate
}}
</div>
<div
slot=
"content"
>
\
{{
licenseList
.
issuedate
}}
</div>
</item>
</list-item>
</h-content>
...
...
template/src/pages/applications/partnerManager/partner-list.vue
View file @
0a288936
...
...
@@ -8,23 +8,23 @@
</div>
<div
class=
"statistics"
>
客户总计
</div>
</div>
<div
class=
"total-num"
>
{{
bpCount
.
bp_sum
}}
<span
class=
"measure"
>
个
</span></div>
<div
class=
"total-num"
>
\
{{
bpCount
.
bp_sum
}}
<span
class=
"measure"
>
个
</span></div>
<div
class=
"list-general"
>
<div
class=
"enterprise"
>
<div
class=
"list-name"
>
企业
</div>
<div
class=
"list-num"
>
{{
bpCount
.
sum_org
}}
<span
class=
"sum-num"
>
个
</span></div>
<div
class=
"list-num"
>
\
{{
bpCount
.
sum_org
}}
<span
class=
"sum-num"
>
个
</span></div>
</div>
<div
class=
"enterprise"
>
<div
class=
"list-name"
>
个人
</div>
<div
class=
"list-num"
>
{{
bpCount
.
sum_np
}}
<span
class=
"sum-num"
>
个
</span></div>
<div
class=
"list-num"
>
\
{{
bpCount
.
sum_np
}}
<span
class=
"sum-num"
>
个
</span></div>
</div>
<div
class=
"enterprise"
>
<div
class=
"list-name"
>
主承租人
</div>
<div
class=
"list-num"
>
{{
bpCount
.
sum_tenant
}}
<span
class=
"sum-num"
>
个
</span></div>
<div
class=
"list-num"
>
\
{{
bpCount
.
sum_tenant
}}
<span
class=
"sum-num"
>
个
</span></div>
</div>
<div
class=
"enterprise"
>
<div
class=
"list-name"
>
经销商
</div>
<div
class=
"list-num"
>
{{
bpCount
.
sum_agent
}}
<span
class=
"sum-num"
>
个
</span></div>
<div
class=
"list-num"
>
\
{{
bpCount
.
sum_agent
}}
<span
class=
"sum-num"
>
个
</span></div>
</div>
</div>
...
...
@@ -49,9 +49,9 @@
@
click
.
native=
"goPartnerMainten(list)"
>
<img
slot=
"left-icon"
src=
"@/assets/image/bpMaster/custormer@2x.png"
class=
"left-icon"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont-name"
>
客户名称:
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-type"
>
客户类型:
{{
list
.
bp_type_n
}}
</div>
<div
class=
"cont-type"
>
客户分类:
{{
list
.
bp_class_n
}}
</div>
<div
class=
"cont-name"
>
客户名称:
\
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-type"
>
客户类型:
\
{{
list
.
bp_type_n
}}
</div>
<div
class=
"cont-type"
>
客户分类:
\
{{
list
.
bp_class_n
}}
</div>
</div>
</item>
</list-item>
...
...
@@ -82,9 +82,9 @@
@
click
.
native=
"goPartnerMainten(list)"
>
<img
slot=
"left-icon"
src=
"@/assets/image/bpMaster/custormer@2x.png"
class=
"left-icon"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont-name"
>
客户名称:
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-type"
>
客户类型:
{{
list
.
bp_type_n
}}
</div>
<div
class=
"cont-type"
>
客户分类:
{{
list
.
bp_class_n
}}
</div>
<div
class=
"cont-name"
>
客户名称:
\
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-type"
>
客户类型:
\
{{
list
.
bp_type_n
}}
</div>
<div
class=
"cont-type"
>
客户分类:
\
{{
list
.
bp_class_n
}}
</div>
</div>
</item>
</list-item>
...
...
template/src/pages/applications/partnerManager/partner-mainten.vue
View file @
0a288936
...
...
@@ -19,19 +19,19 @@
<item>
<section
slot=
"name"
>
客户名称
</section>
<section
slot=
"content"
>
{{
bpMaster
.
bp_name
}}
\
{{
bpMaster
.
bp_name
}}
</section>
</item>
<item>
<section
slot=
"name"
>
客户类型
</section>
<section
slot=
"content"
>
{{
bpMaster
.
bp_type_n
}}
\
{{
bpMaster
.
bp_type_n
}}
</section>
</item>
<item>
<section
slot=
"name"
>
客户分类
</section>
<section
slot=
"content"
>
{{
bpMaster
.
bp_class_n
}}
\
{{
bpMaster
.
bp_class_n
}}
</section>
</item>
</list-item>
...
...
template/src/pages/applications/partnerManager/partner-org-mainten.vue
View file @
0a288936
...
...
@@ -20,19 +20,19 @@
<item>
<section
slot=
"name"
>
客户名称
</section>
<section
slot=
"content"
>
{{
bpMaster
.
bp_name
}}
\
{{
bpMaster
.
bp_name
}}
</section>
</item>
<item>
<section
slot=
"name"
>
客户类型
</section>
<section
slot=
"content"
>
{{
bpMaster
.
bp_type_n
}}
\
{{
bpMaster
.
bp_type_n
}}
</section>
</item>
<item>
<section
slot=
"name"
>
客户分类
</section>
<section
slot=
"content"
>
{{
bpMaster
.
bp_class_n
}}
\
{{
bpMaster
.
bp_class_n
}}
</section>
</item>
</list-item>
...
...
template/src/pages/applications/projectManager/infoMationMain.vue
View file @
0a288936
...
...
@@ -4,23 +4,23 @@
<list-item
:item-height=
"40"
>
<item>
<div
slot=
"name"
class=
"required"
>
经销商名称
</div>
<div
slot=
"content"
>
{{
project
.
invoice_agent_id_n
}}
</div>
<div
slot=
"content"
>
\
{{
project
.
invoice_agent_id_n
}}
</div>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
客户类别
</div>
<div
slot=
"content"
>
{{
project
.
bp_class_n
}}
</div>
<div
slot=
"content"
>
\
{{
project
.
bp_class_n
}}
</div>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
业务类别
</div>
<div
slot=
"content"
>
{{
project
.
business_type_n
}}
</div>
<div
slot=
"content"
>
\
{{
project
.
business_type_n
}}
</div>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
请选择产品线
</div>
<div
slot=
"content"
>
{{
project
.
division_n
}}
</div>
<div
slot=
"content"
>
\
{{
project
.
division_n
}}
</div>
</item>
<item>
<div
slot=
"name"
class=
"required"
>
车辆类型
</div>
<div
slot=
"content"
>
{{
project
.
car_type_n
}}
</div>
<div
slot=
"content"
>
\
{{
project
.
car_type_n
}}
</div>
</item>
</list-item>
...
...
template/src/pages/applications/projectManager/prjAttachment.vue
View file @
0a288936
...
...
@@ -8,7 +8,7 @@
<div
class=
"attach-icon"
/>
</div>
<div
class=
"attach-name"
>
<div>
{{
itemList
.
cdd_item_desc
}}
</div>
<div>
\
{{
itemList
.
cdd_item_desc
}}
</div>
</div>
</div>
</item>
...
...
template/src/pages/applications/projectManager/prjBpInfo.vue
View file @
0a288936
...
...
@@ -110,9 +110,9 @@
@
click
.
native=
"loadBpToPrjBp(index)"
>
<img
slot=
"left-icon"
src=
"@/assets/image/projectCreate/custormer@2x.png"
class=
"left-icon"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont-name"
>
客户名称:
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-type"
>
客户类型:
{{
list
.
bp_type_n
}}
</div>
<div
class=
"cont-type"
>
客户分类:
{{
list
.
bp_class_n
}}
</div>
<div
class=
"cont-name"
>
客户名称:
\
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-type"
>
客户类型:
\
{{
list
.
bp_type_n
}}
</div>
<div
class=
"cont-type"
>
客户分类:
\
{{
list
.
bp_class_n
}}
</div>
</div>
</item>
</list-item>
...
...
template/src/pages/applications/projectManager/prjMaintenList.vue
View file @
0a288936
...
...
@@ -18,25 +18,25 @@
</div>
<div
class=
"text"
>
租赁申请总计
</div>
</div>
<div
class=
"board-line"
><span>
{{
countInfo
.
apply_count
}}
</span><span>
单
</span></div>
<div
class=
"board-line"
><span>
\
{{
countInfo
.
apply_count
}}
</span><span>
单
</span></div>
<div
class=
"board-line"
>
<div
class=
"board-block"
>
<div
class=
"type"
>
新建
</div>
<div
class=
"number"
><span>
{{
countInfo
.
new_count
}}
</span>
单
</div>
<div
class=
"number"
><span>
\
{{
countInfo
.
new_count
}}
</span>
单
</div>
</div>
<div
class=
"board-block"
>
<div
class=
"type"
>
审批中
</div>
<div
class=
"number"
><span>
{{
countInfo
.
approving_count
}}
</span>
单
</div>
<div
class=
"number"
><span>
\
{{
countInfo
.
approving_count
}}
</span>
单
</div>
</div>
<div
class=
"board-block"
>
<div
class=
"type"
>
审批通过
</div>
<div
class=
"number"
><span>
{{
countInfo
.
approved_count
}}
</span>
单
</div>
<div
class=
"number"
><span>
\
{{
countInfo
.
approved_count
}}
</span>
单
</div>
</div>
<div
class=
"board-block"
>
<div
class=
"type"
>
拒绝
</div>
<div
class=
"number"
><span>
{{
countInfo
.
reject_count
}}
</span>
单
</div>
<div
class=
"number"
><span>
\
{{
countInfo
.
reject_count
}}
</span>
单
</div>
</div>
</div>
</div>
...
...
@@ -59,9 +59,9 @@
@
click
.
native=
"goDetail(project)"
>
<img
slot=
"left-icon"
src=
"@/assets/image/projectCreate/item@2x.png"
class=
"left-icon"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont cont-num"
>
合同编号:
{{
project
.
project_number
}}
</div>
<div
class=
"cont cont-name"
>
代理商名称:
{{
project
.
bp_name
}}
-
{{
project
.
invoice_agent_id_n
}}
</div>
<div
class=
"cont cont-data"
>
创建日期:
{{
project
.
create_date
}}
</div>
<div
class=
"cont cont-num"
>
合同编号:
\
{{
project
.
project_number
}}
</div>
<div
class=
"cont cont-name"
>
代理商名称:
\
{{
project
.
bp_name
}}
-\
{{
project
.
invoice_agent_id_n
}}
</div>
<div
class=
"cont cont-data"
>
创建日期:
\
{{
project
.
create_date
}}
</div>
</div>
</item>
</list-item>
...
...
template/src/pages/applications/projectManager/prjQuotionInfo.vue
View file @
0a288936
...
...
@@ -82,19 +82,19 @@
<div
class=
"top"
>
<div
class=
"top-content"
>
<div
class=
"leasing"
>
融资额(元)
</div>
<div
class=
"amount"
>
{{
lease
.
finance_amount
}}
</div>
<div
class=
"amount"
>
\
{{
lease
.
finance_amount
|
currency
}}
</div>
<div
class=
"bottom-row"
>
<div
class=
"installment vue-1px-r"
>
<div>
月供(元)
</div>
<div>
{{
lease
.
mouth_rental
}}
</div>
<div>
\
{{
lease
.
mouth_rental
|
currency
}}
</div>
</div>
<div
class=
"installment vue-1px-r"
>
<div>
首次支付(元)
</div>
<div>
{{
lease
.
first_amount
}}
</div>
<div>
\
{{
lease
.
first_amount
|
currency
}}
</div>
</div>
<div
class=
"installment "
>
<div>
合同期数
</div>
<div>
{{
lease
.
lease_times
}}
</div>
<div>
\
{{
lease
.
lease_times
|
currency
}}
</div>
</div>
</div>
</div>
...
...
@@ -102,19 +102,19 @@
<list-item
:item-height=
"40"
>
<item>
<div
slot=
"name"
>
首付款(元)
</div>
<div
slot=
"content"
>
{{
lease
.
down_payment
}}
</div>
<div
slot=
"content"
>
\
{{
lease
.
down_payment
|
currency
}}
</div>
</item>
<item>
<div
slot=
"name"
>
保证金(元)
</div>
<div
slot=
"content"
>
{{
lease
.
deposit
}}
</div>
<div
slot=
"content"
>
\
{{
lease
.
deposit
|
currency
}}
</div>
</item>
<item>
<div
slot=
"name"
>
手续费(元)
</div>
<div
slot=
"content"
>
{{
lease
.
lease_charge
}}
</div>
<div
slot=
"content"
>
\
{{
lease
.
lease_charge
|
currency
}}
</div>
</item>
<item>
<div
slot=
"name"
>
尾付款(元)
</div>
<div
slot=
"content"
>
{{
lease
.
balloon
}}
</div>
<div
slot=
"content"
>
\
{{
lease
.
balloon
|
currency
}}
</div>
</item>
</list-item>
<!--
<section
class=
"save-button"
>
...
...
template/src/pages/applications/riskStorm/riskHome.vue
View file @
0a288936
...
...
@@ -26,8 +26,8 @@
@
click
.
native=
"goDetail(index)"
>
<img
slot=
"left-icon"
src=
"@/assets/image/risk/custormer@2x.png"
class=
"left-icon"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont-name"
>
项目编号:
{{
list
.
project_number
}}
</div>
<div
class=
"cont-type"
>
客户姓名:
{{
list
.
bp_name
}}
</div>
<div
class=
"cont-name"
>
项目编号:
\
{{
list
.
project_number
}}
</div>
<div
class=
"cont-type"
>
客户姓名:
\
{{
list
.
bp_name
}}
</div>
</div>
</item>
</list-item>
...
...
template/src/pages/applications/riskStorm/riskSearch.vue
View file @
0a288936
...
...
@@ -31,8 +31,8 @@
:key=
"index"
:proportion=
"[10,0]"
@
click
.
native=
"goDetail(index,'hisList')"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont-name"
>
{{
list
.
company_name
}}
</div>
<div
class=
"cont-type"
>
{{
list
.
search_date
}}
</div>
<div
class=
"cont-name"
>
\
{{
list
.
company_name
}}
</div>
<div
class=
"cont-type"
>
\
{{
list
.
search_date
}}
</div>
</div>
</item>
</list-item>
...
...
@@ -45,8 +45,8 @@
:key=
"index"
:proportion=
"[9,1]"
@
click
.
native=
"goDetail(index,'dataList')"
>
<div
slot=
"name"
class=
"text"
>
<div
class=
"cont-name"
>
\
{{
list
[
'名称'
]
}}
</div>
<div
class=
"cont-type"
>
\
{{
list
[
'核准日期'
]
}}
</div>
<div
class=
"cont-name"
>
\
\
{{
list
[
'名称'
]
}}
</div>
<div
class=
"cont-type"
>
\
\
{{
list
[
'核准日期'
]
}}
</div>
</div>
</item>
</list-item>
...
...
template/src/pages/applications/
contractSign
/esignPicture.Vue
→
template/src/pages/applications/
utils
/esignPicture.Vue
View file @
0a288936
File moved
template/src/pages/applications/workflow/workflow-detail.vue
View file @
0a288936
...
...
@@ -22,7 +22,7 @@
<div
class=
"workflow-type-icon"
>
<img
src=
"../../../assets/workflow/workflowTypeIcon@2x.png"
>
</div>
<div
class=
"workflow-type-text"
>
{{
workflow_desc
}}
</div>
<div
class=
"workflow-type-text"
>
\
{{
workflow_desc
}}
</div>
</div>
<div
class=
"apply-name"
>
<div
class=
"apply-name-icon"
>
...
...
@@ -37,7 +37,7 @@
</div>
</div>
<div
class=
"apply-name-title"
>
申请人:
</div>
<div
class=
"apply-name-text"
>
{{
submitted_by_name
}}
</div>
<div
class=
"apply-name-text"
>
\
{{
submitted_by_name
}}
</div>
</div>
<div
class=
"apply-info"
>
<div
v-for=
"(history,index) in histories"
:key=
"index"
class=
"apply-info-wrap"
>
...
...
@@ -58,9 +58,9 @@
</div>
<div
class=
"wrap-content-info"
>
<div
class=
"content-info-top"
>
<div
class=
"info-top-name"
>
{{
history
.
approver
}}
</div>
<div
class=
"info-top-time"
>
{{
history
.
create_date_fmt
}}
</div>
<div
class=
"info-top-status"
>
{{
history
.
action_type_desc
}}
</div>
<div
class=
"info-top-name"
>
\
{{
history
.
approver
}}
</div>
<div
class=
"info-top-time"
>
\
{{
history
.
create_date_fmt
}}
</div>
<div
class=
"info-top-status"
>
\
{{
history
.
action_type_desc
}}
</div>
</div>
<div
class=
"content-info-bottom"
>
<div
class=
"info-bottom-advise"
>
审批意见 :
</div>
...
...
@@ -81,7 +81,7 @@
<bottom-tab
:show-divider=
"true"
>
<tab-button
v-for=
"(btn,index) in actions"
:key=
"index"
:class=
"btn.icon"
@
click=
"submit(btn.node_action_id,btn.action_type,btn.node_action_desc)"
>
{{
btn
.
node_action_desc
}}
</tab-button>
:key=
"index"
:class=
"btn.icon"
@
click=
"submit(btn.node_action_id,btn.action_type,btn.node_action_desc)"
>
\
{{
btn
.
node_action_desc
}}
</tab-button>
</bottom-tab>
</div>
<div
v-if=
"to_do_flag!=true"
>
...
...
template/src/pages/applications/workflow/workflow-list.vue
View file @
0a288936
...
...
@@ -19,12 +19,12 @@
<div
class=
"workflow-info"
>
<div
class=
"workflow-info-applyPeople"
>
<div
class=
"workflow-info-people"
>
<div
class=
"workflow-info-people-text"
>
{{
li
.
name
}}
</div>
<div
class=
"workflow-info-people-text"
>
\
{{
li
.
name
}}
</div>
</div>
</div>
<div
class=
"unapprove-workflow-info-apllyType"
>
<div
class=
"unapprove-workflow-info-apllyType-text"
>
{{
li
.
workflow_desc
}}
</div>
<div
class=
"unapprove-workflow-info-people-text"
>
{{
li
.
submitted_by_name
}}
</div>
<div
class=
"unapprove-workflow-info-apllyType-text"
>
\
{{
li
.
workflow_desc
}}
</div>
<div
class=
"unapprove-workflow-info-people-text"
>
\
{{
li
.
submitted_by_name
}}
</div>
</div>
</div>
<div
class=
"node-info"
@
click=
"go_detais(li)"
>
...
...
@@ -33,8 +33,8 @@
<div
class=
"title-content"
>
申请时间
</div>
</div>
<div
class=
"node-info-text"
>
<div
class=
"text-content"
>
{{
li
.
node_desc
}}
</div>
<div
class=
"text-content"
>
{{
li
.
create_time
}}
</div>
<div
class=
"text-content"
>
\
{{
li
.
node_desc
}}
</div>
<div
class=
"text-content"
>
\
{{
li
.
create_time
}}
</div>
</div>
<div
class=
"node-info-icon"
>
<img
src=
"../../../assets/workflow/rightIcon@2x.png"
>
...
...
@@ -50,19 +50,19 @@
<div
class=
"workflow-info"
>
<div
class=
"workflow-info-applyPeople"
>
<div
class=
"workflow-info-people"
>
<div
class=
"workflow-info-people-text"
>
{{
li
.
name
}}
</div>
<div
class=
"workflow-info-people-text"
>
\
{{
li
.
name
}}
</div>
</div>
</div>
<div
class=
"workflow-info-apllyType"
>
<div
class=
"workflow-info-type"
>
<div
class=
"workflow-info-apllyType-text"
>
{{
li
.
workflow_desc
}}
</div>
<div
class=
"workflow-info-apllyType-text"
>
\
{{
li
.
workflow_desc
}}
</div>
<div
:class=
"
{'status-end': li.instance_status_desc == '结束审批通过','status-refused':li.instance_status_desc == '拒绝未通过'}"
class="workflow-info-status">
{{
li
.
instance_status_desc
}}
\
{{
li
.
instance_status_desc
}}
</div>
</div>
<div
class=
"workflow-info-people-text"
>
{{
li
.
submitted_by_name
}}
</div>
<div
class=
"workflow-info-people-text"
>
\
{{
li
.
submitted_by_name
}}
</div>
</div>
</div>
<div
class=
"node-info"
@
click=
"go_detais(li)"
>
...
...
@@ -71,8 +71,8 @@
<div
class=
"title-content"
>
申请时间
</div>
</div>
<div
class=
"node-info-text"
>
<div
class=
"text-content"
>
{{
li
.
node_desc
}}
</div>
<div
class=
"text-content"
>
{{
li
.
last_approve_date
}}
</div>
<div
class=
"text-content"
>
\
{{
li
.
node_desc
}}
</div>
<div
class=
"text-content"
>
\
{{
li
.
last_approve_date
}}
</div>
</div>
<div
class=
"node-info-icon"
>
<img
src=
"../../../assets/workflow/rightIcon@2x.png"
>
...
...
@@ -88,19 +88,19 @@
<div
class=
"workflow-info"
>
<div
class=
"workflow-info-applyPeople"
>
<div
class=
"workflow-info-people"
>
<div
class=
"workflow-info-people-text"
>
{{
li
.
name
}}
</div>
<div
class=
"workflow-info-people-text"
>
\
{{
li
.
name
}}
</div>
</div>
</div>
<div
class=
"workflow-info-apllyType"
>
<div
class=
"workflow-info-type"
>
<div
class=
"workflow-info-apllyType-text"
>
{{
li
.
workflow_desc
}}
</div>
<div
class=
"workflow-info-apllyType-text"
>
\
{{
li
.
workflow_desc
}}
</div>
<div
:class=
"
{'status-end': li.instance_status_desc == '结束审批通过','status-refused':li.instance_status_desc == '拒绝未通过'}"
class="workflow-info-status">
{{
li
.
instance_status_desc
}}
\
{{
li
.
instance_status_desc
}}
</div>
</div>
<div
class=
"workflow-info-people-text"
>
{{
li
.
submitted_by_name
}}
</div>
<div
class=
"workflow-info-people-text"
>
\
{{
li
.
submitted_by_name
}}
</div>
</div>
</div>
<div
class=
"node-info"
@
click=
"go_detais(li)"
>
...
...
@@ -109,8 +109,8 @@
<div
class=
"title-content"
>
申请时间
</div>
</div>
<div
class=
"node-info-text"
>
<div
class=
"text-content"
>
{{
li
.
current_node_desc
}}
</div>
<div
class=
"text-content"
>
{{
li
.
last_approve_date
}}
</div>
<div
class=
"text-content"
>
\
{{
li
.
current_node_desc
}}
</div>
<div
class=
"text-content"
>
\
{{
li
.
last_approve_date
}}
</div>
</div>
<div
class=
"node-info-icon"
>
<img
src=
"../../../assets/workflow/rightIcon@2x.png"
>
...
...
template/src/pages/functionState.js
View file @
0a288936
...
...
@@ -16,6 +16,7 @@ export default {
},
],
moduleSeparateList
:
[
{{
#
bp
}}
{
'moduleId'
:
1
,
'moduleCode'
:
'PARTNER'
,
...
...
@@ -53,6 +54,8 @@ export default {
},
],
},
{{
/
bp
}}
{{
#
project
}}
{
'moduleId'
:
2
,
'moduleCode'
:
'PROJECT'
,
...
...
@@ -103,6 +106,8 @@ export default {
},
],
},
{{
/
project
}}
{{
#
contract
}}
{
'moduleId'
:
3
,
'moduleCode'
:
'CONTRACT'
,
...
...
@@ -153,6 +158,7 @@ export default {
},
],
},
{{
/
contract
}}
{
'moduleId'
:
4
,
'moduleCode'
:
'PERSONAL'
,
...
...
@@ -162,6 +168,7 @@ export default {
'roleCode'
:
'ADMIN'
,
'roleName'
:
'管理员'
,
'functions'
:
[
{{
#
wfl
}}
{
'functionId'
:
8
,
'functionCode'
:
'160'
,
...
...
@@ -175,6 +182,8 @@ export default {
'applicationFlag'
:
'N'
,
'appCode'
:
'HLS_APP'
,
},
{{
/
wfl
}}
{{
#
ocr
}}
{
'functionId'
:
9
,
'functionCode'
:
'170'
,
...
...
@@ -188,19 +197,8 @@ export default {
'applicationFlag'
:
'N'
,
'appCode'
:
'HLS_APP'
,
},
/* {
'functionId': 43,
'functionCode': '220',
'functionName': 'Time',
'functionIcon': 'http://hlsapp.hand-china.com/file/hel_dev/function/time@2x.png',
'functionState': 'tab.time-task',
'prodFlag': 'Y',
'enableFlag': 'Y',
'functionType': 'local',
'target': null,
'applicationFlag': 'N',
'appCode': 'HLS_APP',
}, */
{{
/
ocr
}}
{{
#
report
}}
{
'functionId'
:
45
,
'functionCode'
:
'240'
,
...
...
@@ -214,6 +212,8 @@ export default {
'applicationFlag'
:
'N'
,
'appCode'
:
'HLS_APP'
,
},
{{
/
report
}}
{{
#
qixin
}}
{
'functionId'
:
46
,
'functionCode'
:
'250'
,
...
...
@@ -227,6 +227,8 @@ export default {
'applicationFlag'
:
'N'
,
'appCode'
:
'HLS_APP'
,
},
{{
/
qixin
}}
{{
#
riskstrom
}}
{
'functionId'
:
47
,
'functionCode'
:
'260'
,
...
...
@@ -240,6 +242,8 @@ export default {
'applicationFlag'
:
'N'
,
'appCode'
:
'HLS_APP'
,
},
{{
/
riskstrom
}}
{{
#
robot
}}
{
'functionId'
:
48
,
'functionCode'
:
'270'
,
...
...
@@ -253,57 +257,8 @@ export default {
'applicationFlag'
:
'N'
,
'appCode'
:
'HLS_APP'
,
},
{{
/
robot
}}
],
},
/* {
'moduleId': 5,
'moduleCode': 'PAYMENT',
'moduleName': '付款管理',
'moduleIcon': 'http://hlsapp.hand-china.com/file/hel_dev/function/payment@2x.png',
'roleId': 1,
'roleCode': 'ADMIN',
'roleName': '管理员',
'functions': [
{
'functionId': 10,
'functionCode': '180',
'functionName': '付款创建',
'functionIcon': 'http://hlsapp.hand-china.com/file/hel_dev/function/payment-create@2x.png',
'functionState': 'tab.payment-apply',
'prodFlag': 'Y',
'enableFlag': 'Y',
'functionType': 'local',
'target': null,
'applicationFlag': 'N',
'appCode': 'HLS_APP',
},
{
'functionId': 11,
'functionCode': '190',
'functionName': '付款维护',
'functionIcon': 'http://hlsapp.hand-china.com/file/hel_dev/function/payment-modify@2x.png',
'functionState': 'tab.payment-modify',
'prodFlag': 'Y',
'enableFlag': 'Y',
'functionType': 'local',
'target': null,
'applicationFlag': 'N',
'appCode': 'HLS_APP',
},
{
'functionId': 12,
'functionCode': '200',
'functionName': '付款支付',
'functionIcon': 'http://hlsapp.hand-china.com/file/hel_dev/function/payment-pay@2x.png',
'functionState': 'tab.payment-pay',
'prodFlag': 'Y',
'enableFlag': 'Y',
'functionType': 'local',
'target': null,
'applicationFlag': 'N',
'appCode': 'HLS_APP',
},
],
}, */
],
}
template/src/pages/getChineseEnglish.js
deleted
100644 → 0
View file @
0790f132
This diff is collapsed.
Click to expand it.
template/src/pages/hlsPopup.vue
View file @
0a288936
...
...
@@ -88,14 +88,14 @@
<h2
class=
"item-title"
>
纵向滚动
</h2>
<swipe
:vertical=
"true"
style=
"height: 400px"
>
<swipe-item
v-for=
"key in count"
:key=
"key"
:style=
"
{'background': bgColor[key-1]}">
<div
class=
"item-bg"
>
{{
key
-
1
}}
</div>
<div
class=
"item-bg"
>
\
{{
key
-
1
}}
</div>
</swipe-item>
</swipe>
<h2
class=
"item-title"
>
定制indicators
</h2>
<swipe
:index
.
sync=
"index"
>
<swipe-item
v-for=
"key in count"
:key=
"key"
:style=
"
{'background': bgColor[key-1]}">
<div
class=
"item-bg"
>
{{
key
-
1
}}
</div>
<div
class=
"item-bg"
>
\
{{
key
-
1
}}
</div>
</swipe-item>
<div
v-for=
"key in count"
slot=
"indicators"
:key=
"key"
:class=
"['indicators',
{'active': key-1 === index}]"/>
</swipe>
...
...
@@ -165,8 +165,8 @@
<item-option
v-for=
"(color,index) in colors"
:key=
"index"
class=
"mySlider"
>
<div>
{{
color
.
name
}}
</div>
<div>
{{
color
.
hex
}}
</div>
<div>
\
{{
color
.
name
}}
</div>
<div>
\
{{
color
.
hex
}}
</div>
<div
slot=
"buttons"
>
<option-button
type=
"default"
text=
"默认"
@
click
.
native=
"deleteFun"
/>
<option-button
type=
"primary"
text=
"编辑"
@
click
.
native=
"deleteFun"
/>
...
...
template/src/pages/home.vue
View file @
0a288936
...
...
@@ -38,7 +38,7 @@
</div>
<div
id=
"scroll"
>
<ul
id=
"p1"
>
<li
v-for=
"item in messageList"
>
{{
item
.
msg_body
}}
</li>
<li
v-for=
"item in messageList"
>
\
{{
item
.
msg_body
}}
</li>
</ul>
<ul
id=
"p2"
/>
</div>
...
...
template/src/pages/homeManager/module-function.vue
View file @
0a288936
...
...
@@ -10,7 +10,7 @@
<img
:src=
"list.functionIcon"
>
</div>
<div
class=
"function-item-content"
>
<div
class=
"function-item-content-text"
>
{{
list
.
functionName
}}
</div>
<div
class=
"function-item-content-text"
>
\
{{
list
.
functionName
}}
</div>
<div
class=
"function-item-content-icon"
>
<img
src=
"../../assets/home-manager/right_arrow@2x.png"
>
</div>
...
...
template/src/router/index.js
View file @
0a288936
...
...
@@ -4,30 +4,29 @@ import Home from '@/pages/home'
import
ModuleFunction
from
'@/pages/homeManager/module-function'
// test工具类
import
HlsPopup
from
'@/pages/hlsPopup'
import
EsignPicture
from
'@/pages/applications/utils/esignPicture'
{{
#
wfl
}}
// 工作流
{{
#
if
wfl
}}
import
WorkflowList
from
'@/pages/applications/workflow/workflow-list'
import
WorkflowDetail
from
'@/pages/applications/workflow/workflow-detail'
{{
/
if
}
}
{{
/
wfl
}
}
{{
#
if
bp
}}
{{
#
bp
}}
// 商业伙伴
import
PartnerCreate
from
'@/pages/applications/partnerManager/partner-create'
import
PartnerList
from
'@/pages/applications/partnerManager/partner-list'
import
PartnerMainten
from
'@/pages/applications/partnerManager/partner-mainten'
import
PartnerOrgMainten
from
'@/pages/applications/partnerManager/partner-org-mainten'
{{
/if}
}
{{
/bp}
}
{{
#
if
calculate
}}
{{
#
project
}}
// 融资试算
import
CalculationEnter
from
'@/pages/applications/financCalculate/calculationEnter'
import
CalculationMain
from
'@/pages/applications/financCalculate/calculationMain'
import
ResultMain
from
'@/pages/applications/financCalculate/resultMain'
import
ResultDetails
from
'@/pages/applications/financCalculate/resultDetails'
{{
/if}
}
import
CalculationEnter
from
'@/pages/applications/financCalculate/calculationEnter'
import
CalculationMain
from
'@/pages/applications/financCalculate/calculationMain'
import
ResultMain
from
'@/pages/applications/financCalculate/resultMain'
import
ResultDetails
from
'@/pages/applications/financCalculate/resultDetails'
{{
#
if
project
}}
// 租赁申请
import
PrjCreate
from
'@/pages/applications/projectManager/prjCreate'
import
PrjMaintenList
from
'@/pages/applications/projectManager/PrjMaintenList'
...
...
@@ -36,38 +35,38 @@ import PrjBpInfo from '@/pages/applications/projectManager/prjBpInfo'
import
LeaseCarDetail
from
'@/pages/applications/projectManager/leaseCarDetail'
import
PrjQuotionInfo
from
'@/pages/applications/projectManager/prjQuotionInfo'
import
PrjAttachment
from
'@/pages/applications/projectManager/prjAttachment'
{{
/
if
}
}
{{
/
project
}
}
{{
#
if
contract
}}
{{
#
contract
}}
// 合同
import
ContractMaintenList
from
'@/pages/applications/contractMainten/contract-mainten-list'
import
ContractMainten
from
'@/pages/applications/contractMainten/contract-mainten'
import
ContractSignList
from
'@/pages/applications/contractSign/contract-sign-list'
import
ContractSign
from
'@/pages/applications/contractSign/contract-sign'
import
EsignPicture
from
'@/pages/applications/contractSign/esignPicture'
{{
/if}
}
{{
#
if
riskstrom
}}
{{
/contract}
}
{{
#
riskstrom
}}
// 风报
import
RiskHome
from
'@/pages/applications/riskStorm/riskHome'
import
RiskSearch
from
'@/pages/applications/riskStorm/riskSearch'
import
RiskSearchDetail
from
'@/pages/applications/riskStorm/riskSearchDetail'
import
RiskDetailTab
from
'@/pages/applications/riskStorm/riskDetailTab'
{{
/
if
}
}
{{
/
riskstrom
}
}
{{
#
if
robot
}}
{{
#
robot
}}
// Robot
import
Robot
from
'@/pages/applications/robot/robot'
{{
/
if
}
}
{{
/
robot
}
}
{{
#
if
esign
}}
{{
#
esign
}}
// E 签宝
import
Esign
from
'@/pages/applications/esign/esign'
{{
/
if
}
}
{{
/
esign
}
}
{{
#
if
report
}}
{{
#
report
}}
// 报表
import
Reports
from
'@/pages/applications/reports/reports'
import
BasicChart
from
'@/pages/applications/reports/basicChart/basicChart'
...
...
@@ -89,10 +88,10 @@ import RadarChart from '@/pages/applications/reports/seniorChart/radarChart/rada
import
StatsCard
from
'@/pages/applications/reports/seniorChart/stasCard/stasCard'
import
TitleTooltip
from
'@/pages/applications/reports/seniorChart/titleTooltip/titleTooltip'
{{
/
if
}
}
{{
/
report
}
}
{{
#
if
qixin
}}
{{
#
qixin
}}
// 启信宝
import
QiXinBao
from
'@/pages/applications/qiXinBao/qiXinBao'
import
QiXinSearch
from
'@/pages/applications/qiXinBao/qiXinSearch'
...
...
@@ -140,9 +139,9 @@ import administrativeLicense from '@/pages/applications/qiXinBao/qiXinDetail/bus
import
administrativeLicenseDetail
from
'@/pages//applications/qiXinBao/qiXinDetail/businessInfo/administrativeLicenseDetail'
import
growthProcess
from
'@/pages//applications/qiXinBao/qiXinDetail/businessInfo/growthProcess'
{{
/
if
}
}
{{
/
qixin
}
}
{{
#
if
ocr
}}
{{
#
ocr
}}
// ocr
import
OcrIdentify
from
'@/pages/applications/ocrIdentify/ocrIdentify'
import
BusinessCard
from
'@/pages/applications/ocrIdentify/businessCard'
...
...
@@ -151,7 +150,7 @@ import DriverLicenseInformation from '@/pages/applications/ocrIdentify/driverLic
import
IdCard
from
'@/pages/applications/ocrIdentify/idCard'
import
VehicleCard
from
'@/pages/applications/ocrIdentify/vehicleCard'
{{
/
if
}
}
{{
/
ocr
}
}
Vue
.
use
(
Router
)
...
...
@@ -179,7 +178,8 @@ export default new Router({
{
path
:
'/ModuleFunction'
,
component
:
ModuleFunction
,
name
:
'ModuleFunction'
,
meta
:
{
keepAlive
:
true
}
},
// test工具类
{
path
:
'/hls-popup'
,
component
:
HlsPopup
,
name
:
'HlsPopup'
,
meta
:
{
keepAlive
:
false
,
nextReload
:
''
}
},
{{
#
if
wfl
}}
{
path
:
'/EsignPicture'
,
component
:
EsignPicture
,
name
:
'EsignPicture'
,
meta
:
{
keepAlive
:
false
}},
{{
#
wfl
}}
// 工作流
{
path
:
'/WorkflowList'
,
...
...
@@ -193,9 +193,9 @@ export default new Router({
name
:
'WorkflowDetail'
,
meta
:
{
keepAlive
:
false
,
nextReload
:
''
},
},
{{
/
if
}}
{{
/
wfl
}}
{{
#
if
bp
}}
{{
#
bp
}}
// 商业伙伴
{
path
:
'/PartnerCreate'
,
...
...
@@ -221,17 +221,15 @@ export default new Router({
name
:
'PartnerOrgMainten'
,
meta
:
{
keepAlive
:
false
,
nextReload
:
''
},
},
{{
/
if
}}
{{
/
bp
}}
{{
#
if
calculate
}}
{{
#
project
}}
// 融资试算
{
path
:
'/CalculationEnter'
,
component
:
CalculationEnter
,
name
:
'CalculationEnter'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/calculationMain'
,
component
:
CalculationMain
,
name
:
'CalculationMain'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/resultMain'
,
component
:
ResultMain
,
name
:
'ResultMain'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/resultDetails'
,
component
:
ResultDetails
,
name
:
'ResultDetails'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
#
if
project
}}
// 租赁申请
{
path
:
'/PrjCreate'
,
component
:
PrjCreate
,
name
:
'PrjCreate'
,
meta
:
{
keepAlive
:
false
}},
...
...
@@ -241,9 +239,9 @@ export default new Router({
{
path
:
'/LeaseCarDetail'
,
component
:
LeaseCarDetail
,
name
:
'LeaseCarDetail'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/PrjQuotionInfo'
,
component
:
PrjQuotionInfo
,
name
:
'PrjQuotionInfo'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/PrjAttachment'
,
component
:
PrjAttachment
,
name
:
'PrjAttachment'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
/
project
}}
{{
#
if
contract
}}
{{
#
contract
}}
// 合同维护与签约
{
path
:
'/ContractMaintenList'
,
...
...
@@ -270,26 +268,24 @@ export default new Router({
meta
:
{
keepAlive
:
false
,
nextReload
:
''
},
},
{{
/
if
}}
{
path
:
'/EsignPicture'
,
component
:
EsignPicture
,
name
:
'EsignPicture'
,
meta
:
{
keepAlive
:
false
}},
{{
/
contract
}}
{{
#
if
robot
}}
{{
#
robot
}}
// Robot
{
path
:
'/Robot'
,
component
:
Robot
,
name
:
'Robot'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
#
if
esign
}}
{{
/
robot
}}
{{
#
esign
}}
{
path
:
'/Esign'
,
component
:
Esign
,
name
:
'Esign'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
#
if
riskstrom
}}
{{
/
esign
}}
{{
#
riskstrom
}}
// 风报
{
path
:
'/RiskHome'
,
component
:
RiskHome
,
name
:
'RiskHome'
,
meta
:
{
keepAlive
:
true
}},
{
path
:
'/RiskSearch'
,
component
:
RiskSearch
,
name
:
'RiskSearch'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/RiskSearchDetail'
,
component
:
RiskSearchDetail
,
name
:
'RiskSearchDetail'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/RiskDetailTab'
,
component
:
RiskDetailTab
,
name
:
'RiskDetailTab'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
#
if
report
}}
{{
/
riskstrom
}}
{{
#
report
}}
// 报表
{
path
:
'/Reports'
,
component
:
Reports
,
name
:
'Reports'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/BasicChart'
,
component
:
BasicChart
,
name
:
'BasicChart'
,
meta
:
{
keepAlive
:
false
}},
...
...
@@ -310,9 +306,9 @@ export default new Router({
{
path
:
'/RadarChart'
,
component
:
RadarChart
,
name
:
'RadarChart'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/StasCard'
,
component
:
StatsCard
,
name
:
'StatsCard'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/TitleTooltip'
,
component
:
TitleTooltip
,
name
:
'TitleTooltip'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
/
report
}}
{{
#
if
qixin
}}
{{
#
qixin
}}
// 启信宝
{
path
:
'/QiXinBao'
,
component
:
QiXinBao
,
name
:
'QiXinBao'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/qiXinSearsh'
,
component
:
QiXinSearch
,
name
:
'QiXinSearch'
,
meta
:
{
keepAlive
:
true
}},
...
...
@@ -358,8 +354,8 @@ export default new Router({
{
path
:
'/administrativeLicenseDetail'
,
component
:
administrativeLicenseDetail
,
name
:
'administrativeLicenseDetail'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/growthProcess'
,
component
:
growthProcess
,
name
:
'growthProcess'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
#
if
ocr
}}
{{
/
qixin
}}
{{
#
ocr
}}
// ocr
{
path
:
'/OcrIdentify'
,
component
:
OcrIdentify
,
name
:
'OcrIdentify'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/businessCard'
,
component
:
BusinessCard
,
name
:
'BusinessCard'
,
meta
:
{
keepAlive
:
false
}},
...
...
@@ -368,7 +364,7 @@ export default new Router({
{
path
:
'/idCard'
,
component
:
IdCard
,
name
:
'IdCard'
,
meta
:
{
keepAlive
:
false
}},
{
path
:
'/vehicleCard'
,
component
:
VehicleCard
,
name
:
'VehicleCard'
,
meta
:
{
keepAlive
:
false
}},
{{
/
if
}}
{{
/
ocr
}}
],
scrollBehavior
(
to
,
from
,
savedPosition
)
{
if
(
to
.
hash
)
{
...
...
utils/index.js
0 → 100644
View file @
0a288936
const
path
=
require
(
'path'
)
const
fs
=
require
(
'fs'
)
const
spawn
=
require
(
'child_process'
).
spawn
const
lintStyles
=
[
'standard'
,
'airbnb'
]
/**
* Sorts dependencies in package.json alphabetically.
* They are unsorted because they were grouped for the handlebars helpers
* @param {object} data Data from questionnaire
*/
exports
.
sortDependencies
=
function
sortDependencies
(
data
)
{
const
packageJsonFile
=
path
.
join
(
data
.
inPlace
?
''
:
data
.
destDirName
,
'package.json'
)
const
packageJson
=
JSON
.
parse
(
fs
.
readFileSync
(
packageJsonFile
))
packageJson
.
devDependencies
=
sortObject
(
packageJson
.
devDependencies
)
packageJson
.
dependencies
=
sortObject
(
packageJson
.
dependencies
)
fs
.
writeFileSync
(
packageJsonFile
,
JSON
.
stringify
(
packageJson
,
null
,
2
)
+
'
\
n'
)
}
/**
* Runs `npm install` in the project directory
* @param {string} cwd Path of the created project directory
* @param {object} data Data from questionnaire
*/
exports
.
installDependencies
=
function
installDependencies
(
cwd
,
executable
=
'npm'
,
color
)
{
console
.
log
(
`\n\n#
${
color
(
'Installing project dependencies ...'
)}
`
)
console
.
log
(
'# ========================
\
n'
)
return
runCommand
(
executable
,
[
'install'
],
{
cwd
,
})
}
/**
* Runs `npm run lint -- --fix` in the project directory
* @param {string} cwd Path of the created project directory
* @param {object} data Data from questionnaire
*/
exports
.
runLintFix
=
function
runLintFix
(
cwd
,
data
,
color
)
{
if
(
data
.
lint
&&
lintStyles
.
indexOf
(
data
.
lintConfig
)
!==
-
1
)
{
console
.
log
(
`\n\n
${
color
(
'Running eslint --fix to comply with chosen preset rules...'
)}
`
)
console
.
log
(
'# ========================
\
n'
)
const
args
=
data
.
autoInstall
===
'npm'
?
[
'run'
,
'lint'
,
'--'
,
'--fix'
]
:
[
'run'
,
'lint'
,
'--fix'
]
return
runCommand
(
data
.
autoInstall
,
args
,
{
cwd
,
})
}
return
Promise
.
resolve
()
}
/**
* Prints the final message with instructions of necessary next steps.
* @param {Object} data Data from questionnaire.
*/
exports
.
printMessage
=
function
printMessage
(
data
,
{
green
,
yellow
})
{
const
message
=
`
#
${
green
(
'Project initialization finished!'
)}
# ========================
To get started:
${
yellow
(
`
${
data
.
inPlace
?
''
:
`cd
${
data
.
destDirName
}
\n `
}${
installMsg
(
data
)}${
lintMsg
(
data
)}
npm run dev`
)}
Documentation can be found at https://vuejs-templates.github.io/webpack
`
console
.
log
(
message
)
}
/**
* If the user will have to run lint --fix themselves, it returns a string
* containing the instruction for this step.
* @param {Object} data Data from questionnaire.
*/
function
lintMsg
(
data
)
{
return
!
data
.
autoInstall
&&
data
.
lint
&&
lintStyles
.
indexOf
(
data
.
lintConfig
)
!==
-
1
?
'npm run lint -- --fix (or for yarn: yarn run lint --fix)
\
n '
:
''
}
/**
* If the user will have to run `npm install` or `yarn` themselves, it returns a string
* containing the instruction for this step.
* @param {Object} data Data from the questionnaire
*/
function
installMsg
(
data
)
{
return
!
data
.
autoInstall
?
'npm install (or if using yarn: yarn)
\
n '
:
''
}
/**
* Spawns a child process and runs the specified command
* By default, runs in the CWD and inherits stdio
* Options are the same as node's child_process.spawn
* @param {string} cmd
* @param {array<string>} args
* @param {object} options
*/
function
runCommand
(
cmd
,
args
,
options
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
spwan
=
spawn
(
cmd
,
args
,
Object
.
assign
(
{
cwd
:
process
.
cwd
(),
stdio
:
'inherit'
,
shell
:
true
,
},
options
)
)
spwan
.
on
(
'exit'
,
()
=>
{
resolve
()
})
})
}
function
sortObject
(
object
)
{
// Based on https://github.com/yarnpkg/yarn/blob/v1.3.2/src/config.js#L79-L85
const
sortedObject
=
{}
Object
.
keys
(
object
)
.
sort
()
.
forEach
(
item
=>
{
sortedObject
[
item
]
=
object
[
item
]
})
return
sortedObject
}
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