Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
platform
/
finance_serv
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 666e1ba2
authored
Oct 19, 2018
by
谢明辉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
a
1 parent
c031fff4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
285 additions
and
41 deletions
code/finance_web/src/App.vue
code/finance_web/src/components/contract.vue
code/finance_web/src/components/manage.vue
code/finance_web/src/components/nav.vue
code/finance_web/src/components/search.vue
code/finance_web/src/App.vue
View file @
666e1ba
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
html
,
html
,
body
,
body
,
#app
{
#app
{
min-height
:
700px
;
height
:
100%
;
height
:
100%
;
}
}
</
style
>
</
style
>
code/finance_web/src/components/contract.vue
View file @
666e1ba
...
@@ -307,6 +307,7 @@
...
@@ -307,6 +307,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
width=
"140"
align=
"center"
>
<el-table-column
label=
"操作"
width=
"140"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button-group>
<el-button-group>
<el-button
@
click
.
native
.
prevent=
"payment_data_modify(scope.$index, payments_data)"
type=
"primary"
size=
"mini"
round
:disabled=
"disabled_list[0]==1"
>
<el-button
@
click
.
native
.
prevent=
"payment_data_modify(scope.$index, payments_data)"
type=
"primary"
size=
"mini"
round
:disabled=
"disabled_list[0]==1"
>
修改
修改
...
@@ -948,6 +949,9 @@
...
@@ -948,6 +949,9 @@
computed
:
{
computed
:
{
// 账款状态
// 账款状态
get_amount_state
()
{
get_amount_state
()
{
if
(
this
.
form
.
amount_state_unid
)
{
return
this
.
form
.
amount_state_unid
;
}
var
weibao_code
=
""
;
var
weibao_code
=
""
;
this
.
contract_type_data
.
forEach
(
e
=>
{
this
.
contract_type_data
.
forEach
(
e
=>
{
e
.
name
==
"维保"
?
(
weibao_code
=
e
.
code
)
:
null
;
e
.
name
==
"维保"
?
(
weibao_code
=
e
.
code
)
:
null
;
...
@@ -1194,7 +1198,9 @@
...
@@ -1194,7 +1198,9 @@
for
(
let
i
=
0
;
i
<
this
.
rebacks_data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
rebacks_data
.
length
;
i
++
)
{
const
e
=
this
.
rebacks_data
[
i
];
const
e
=
this
.
rebacks_data
[
i
];
if
(
e
.
actual_reback_amount
)
{
if
(
e
.
actual_reback_amount
)
{
total
=
this
.
$Numeral
(
total
).
add
(
e
.
actual_reback_amount
).
value
();
total
=
this
.
$Numeral
(
total
)
.
add
(
e
.
actual_reback_amount
)
.
value
();
}
}
}
}
return
total
.
toFixed
(
2
);
return
total
.
toFixed
(
2
);
...
@@ -1207,22 +1213,33 @@
...
@@ -1207,22 +1213,33 @@
now
.
getFullYear
()
+
"-"
+
(
now
.
getMonth
()
+
1
)
+
"-"
+
now
.
getDate
();
now
.
getFullYear
()
+
"-"
+
(
now
.
getMonth
()
+
1
)
+
"-"
+
now
.
getDate
();
for
(
let
i
=
0
;
i
<
this
.
payments_data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
payments_data
.
length
;
i
++
)
{
const
e
=
this
.
payments_data
[
i
];
const
e
=
this
.
payments_data
[
i
];
if
(
this
.
date_diff
(
now_date
,
this
.
get_pay_date
(
i
))
>
0
)
{
if
(
e
.
payment_type
!=
"100001"
)
{
total
=
this
.
$Numeral
(
total
).
add
(
this
.
get_pay_amount
(
i
)).
value
();
if
(
this
.
date_diff
(
now_date
,
this
.
get_pay_date
(
i
))
>
0
)
{
total
=
this
.
$Numeral
(
total
)
.
add
(
this
.
get_pay_amount
(
i
))
.
value
();
}
}
else
{
if
(
this
.
form
.
contract_type
!=
"40004"
)
{
total
=
this
.
$Numeral
(
total
)
.
add
(
this
.
get_pay_amount
(
i
))
.
value
();
}
else
if
(
this
.
date_diff
(
now_date
,
this
.
get_pay_date
(
i
))
>
0
)
{
total
=
this
.
$Numeral
(
total
)
.
add
(
this
.
get_pay_amount
(
i
))
.
value
();
}
}
}
}
}
return
total
.
toFixed
(
2
);
return
total
.
toFixed
(
2
);
},
},
// 应收账款余额
// 应收账款余额
total_leave_amount
:
function
()
{
total_leave_amount
:
function
()
{
var
a
=
this
.
$Numeral
(
var
a
=
this
.
$Numeral
(
this
.
total_receive_amount
?
this
.
total_receive_amount
:
0
this
.
total_receive_amount
?
this
.
total_receive_amount
:
0
)
)
.
subtract
(
this
.
total_reback_amount
?
this
.
total_reback_amount
:
0
)
.
subtract
(
this
.
total_reback_amount
?
this
.
total_reback_amount
:
0
)
.
subtract
(
this
.
form
.
deduct_amount
?
this
.
form
.
deduct_amount
:
0
)
.
subtract
(
this
.
form
.
stop_amount
?
this
.
form
.
stop_amount
:
0
)
.
subtract
(
this
.
form
.
exemptions_amount
?
this
.
form
.
exemptions_amount
:
0
)
.
subtract
(
this
.
form
.
bad_amount
?
this
.
form
.
bad_amount
:
0
)
.
value
();
.
value
();
// if (isNaN(a)) {
// if (isNaN(a)) {
// return null;
// return null;
...
@@ -1232,6 +1249,14 @@
...
@@ -1232,6 +1249,14 @@
},
},
// 逾期天数
// 逾期天数
over_days_unid
:
function
()
{
over_days_unid
:
function
()
{
var
total
=
this
.
$Numeral
(
this
.
total_reback_amount
?
this
.
total_reback_amount
:
0
)
.
add
(
this
.
bad_amount
?
this
.
bad_amount
:
0
)
.
add
(
this
.
deduct_amount
?
this
.
deduct_amount
:
0
)
.
add
(
this
.
stop_amount
?
this
.
stop_amount
:
0
)
.
add
(
this
.
exemptions_amount
?
this
.
exemptions_amount
:
0
)
.
value
();
var
pay_date
=
""
;
var
pay_date
=
""
;
var
now
=
new
Date
();
var
now
=
new
Date
();
var
now_date
=
var
now_date
=
...
@@ -1246,7 +1271,7 @@
...
@@ -1246,7 +1271,7 @@
.
add
(
pay_amount
)
.
add
(
pay_amount
)
.
value
();
.
value
();
var
a
=
this
.
date_diff
(
now_date
,
pay_date
);
var
a
=
this
.
date_diff
(
now_date
,
pay_date
);
if
(
a
>
0
&&
(
amount
>
t
his
.
total_reback_amount
&&
a
>
days
))
{
if
(
a
>
0
&&
(
amount
>
t
otal
&&
a
>
days
))
{
days
=
a
;
days
=
a
;
}
}
}
}
...
@@ -1526,8 +1551,7 @@
...
@@ -1526,8 +1551,7 @@
var
receipt_propority
=
0
;
var
receipt_propority
=
0
;
if
(
this
.
form
.
contract_amount
)
{
if
(
this
.
form
.
contract_amount
)
{
receipt_propority
=
(
receipt_propority
=
(
this
.
receipts_data
[
index
].
receipt_amount
*
(
this
.
receipts_data
[
index
].
receipt_amount
*
100
)
/
100
/
this
.
form
.
contract_amount
this
.
form
.
contract_amount
).
toFixed
(
2
);
).
toFixed
(
2
);
}
}
...
@@ -1537,8 +1561,8 @@
...
@@ -1537,8 +1561,8 @@
var
reback_propority
=
0
;
var
reback_propority
=
0
;
if
(
this
.
form
.
contract_amount
)
{
if
(
this
.
form
.
contract_amount
)
{
reback_propority
=
reback_propority
=
this
.
rebacks_data
[
index
].
actual_reback_amount
/
(
this
.
rebacks_data
[
index
].
actual_reback_amount
/
this
.
form
.
contract_amount
*
this
.
form
.
contract_amount
)
*
100
;
100
;
}
}
return
parseFloat
(
reback_propority
).
toFixed
(
2
);
return
parseFloat
(
reback_propority
).
toFixed
(
2
);
...
@@ -2116,10 +2140,15 @@
...
@@ -2116,10 +2140,15 @@
* 根据不同的付款类型计算他们的付款日期
* 根据不同的付款类型计算他们的付款日期
*/
*/
get_pay_date
(
index
)
{
get_pay_date
(
index
)
{
debugger
;
var
date
=
""
;
var
date
=
""
;
var
type
=
this
.
payments_data
[
index
].
payment_type
;
var
type
=
this
.
payments_data
[
index
].
payment_type
;
var
days
=
this
.
payments_data
[
index
].
days
;
var
days
=
this
.
payments_data
[
index
].
days
;
if
(
type
==
"100001"
&&
this
.
form
.
sign_date
)
{
if
(
this
.
form
.
contract_type
==
"40004"
)
{
if
(
this
.
guarantee_date
)
{
date
=
this
.
date_add_days
(
this
.
start_guarantee_date
,
days
);
}
}
else
if
(
type
==
"100001"
&&
this
.
form
.
sign_date
)
{
date
=
this
.
date_add_days
(
this
.
form
.
sign_date
,
days
);
date
=
this
.
date_add_days
(
this
.
form
.
sign_date
,
days
);
}
else
if
(
}
else
if
(
(
type
==
"100002"
||
type
==
"100004"
)
&&
(
type
==
"100002"
||
type
==
"100004"
)
&&
...
@@ -2148,6 +2177,12 @@
...
@@ -2148,6 +2177,12 @@
var
amount
=
this
.
$Numeral
(
0
).
value
();
var
amount
=
this
.
$Numeral
(
0
).
value
();
if
(
this
.
form
.
contract_amount
>
0
)
{
if
(
this
.
form
.
contract_amount
>
0
)
{
amount
=
this
.
$Numeral
(
this
.
form
.
contract_amount
)
amount
=
this
.
$Numeral
(
this
.
form
.
contract_amount
)
.
subtract
(
this
.
form
.
bad_amount
?
this
.
form
.
bad_amount
:
0
)
.
subtract
(
this
.
form
.
deduct_amount
?
this
.
form
.
deduct_amount
:
0
)
.
subtract
(
this
.
form
.
stop_amount
?
this
.
form
.
stop_amount
:
0
)
.
subtract
(
this
.
form
.
exemptions_amount
?
this
.
form
.
exemptions_amount
:
0
)
.
multiply
(
this
.
payments_data
[
index
].
payment_propority
)
.
multiply
(
this
.
payments_data
[
index
].
payment_propority
)
.
value
();
.
value
();
}
}
...
...
code/finance_web/src/components/manage.vue
View file @
666e1ba
...
@@ -56,6 +56,9 @@
...
@@ -56,6 +56,9 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-button
class=
"add_button"
type=
"primary"
@
click=
"login_user_dialog_show = !login_user_dialog_show"
>
用户管理
</el-button>
<el-button
class=
"add_button"
type=
"primary"
@
click=
"login_user_dialog_show = !login_user_dialog_show"
>
用户管理
</el-button>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-button
class=
"add_button"
type=
"primary"
@
click=
"modify_salesperson_dialog_show = !modify_salesperson_dialog_show"
>
删除销售员
</el-button>
</el-col>
</el-row>
</el-row>
<el-dialog
:visible
.
sync=
"login_user_dialog_show"
width=
"30%"
:show-close=
"false"
>
<el-dialog
:visible
.
sync=
"login_user_dialog_show"
width=
"30%"
:show-close=
"false"
>
<el-tabs
type=
"border-card"
v-show=
"login_user_dialog_show"
style=
"margin:auto"
>
<el-tabs
type=
"border-card"
v-show=
"login_user_dialog_show"
style=
"margin:auto"
>
...
@@ -129,6 +132,27 @@
...
@@ -129,6 +132,27 @@
</el-table-column> -->
</el-table-column> -->
</el-table>
</el-table>
</el-dialog>
</el-dialog>
<el-dialog
:visible
.
sync=
"modify_salesperson_dialog_show"
width=
"30%"
:show-close=
"false"
style=
""
>
<el-table
:data=
"all_salesperson"
style=
"max-height:350px;overflow-y:auto;z-index:inherit"
>
<el-table-column
label=
"姓名"
prop=
"name"
min-width=
"30%"
align=
"center"
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"create_dt"
min-width=
"30%"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
get_create_date
(
scope
.
row
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
min-width=
"20%"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.is_active == true"
type=
"text"
@
click=
"modify_salesperson(scope.row,false)"
>
删除
</el-button>
<el-button
v-if=
"scope.row.is_active == false"
type=
"text"
@
click=
"modify_salesperson(scope.row,true)"
>
恢复
</el-button>
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</el-card>
</el-card>
</template>
</template>
...
@@ -143,6 +167,8 @@
...
@@ -143,6 +167,8 @@
salesperson_name_data
:
[],
salesperson_name_data
:
[],
project_name_data
:
[],
project_name_data
:
[],
users_data
:
[],
users_data
:
[],
all_salesperson
:
[],
modify_salesperson_dialog_show
:
false
,
add_dialog_show
:
false
,
add_dialog_show
:
false
,
login_user_dialog_show
:
false
,
login_user_dialog_show
:
false
,
code_base_url
:
this
.
$disparch_data
.
code_base_url
,
code_base_url
:
this
.
$disparch_data
.
code_base_url
,
...
@@ -194,13 +220,12 @@
...
@@ -194,13 +220,12 @@
}
}
};
};
},
},
methods
:
{
methods
:
{
get_create_date
(
row
)
{
return
row
.
create_dt
.
replace
(
"T"
,
" "
);
},
//search
//search
/**
* 可以在新增前四个选项是弹出提示框,
* 列出已存在的,当键入已存在合同就会出现。
* 没什么用处啊。。。
*/
search_contract_unid
(
queryString
,
cb
)
{
search_contract_unid
(
queryString
,
cb
)
{
var
contract_unid_data
=
this
.
contract_unid_data
;
var
contract_unid_data
=
this
.
contract_unid_data
;
var
results
=
queryString
var
results
=
queryString
...
@@ -216,7 +241,7 @@
...
@@ -216,7 +241,7 @@
cb
(
results
);
cb
(
results
);
},
},
search_salesperson
(
queryString
,
cb
)
{
search_salesperson
(
queryString
,
cb
)
{
var
salesperson_name_data
=
this
.
salesperson_name_data
;
var
salesperson_name_data
=
this
.
all_salesperson
;
var
results
=
queryString
var
results
=
queryString
?
salesperson_name_data
.
filter
(
this
.
salesperson_filter
(
queryString
))
?
salesperson_name_data
.
filter
(
this
.
salesperson_filter
(
queryString
))
:
salesperson_name_data
;
:
salesperson_name_data
;
...
@@ -264,8 +289,8 @@
...
@@ -264,8 +289,8 @@
this
.
$Axios
({
this
.
$Axios
({
method
:
"get"
,
method
:
"get"
,
url
:
this
.
contract_base_url
+
"codes"
,
url
:
this
.
contract_base_url
+
"codes"
,
params
:{
params
:
{
date
:
Date
()
date
:
Date
()
}
}
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -275,13 +300,46 @@
...
@@ -275,13 +300,46 @@
// console.log(err.message);
// console.log(err.message);
});
});
},
},
get_all_salesperson
()
{
this
.
$Axios
({
method
:
"get"
,
url
:
this
.
auth_base_url
+
"users"
,
params
:
{
norm_type
:
"employee"
,
date
:
Date
()
}
})
.
then
(
response
=>
{
this
.
salesperson_name_data
=
response
.
data
.
list_data
;
this
.
$Axios
({
method
:
"get"
,
url
:
this
.
auth_base_url
+
"users"
,
params
:
{
is_active
:
false
,
norm_type
:
"employee"
,
date
:
Date
()
}
})
.
then
(
res
=>
{
this
.
all_salesperson
=
this
.
salesperson_name_data
.
concat
(
res
.
data
.
list_data
);
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
})
.
catch
(
err
=>
{
// console.log(err.message);
});
},
get_salesperson
()
{
get_salesperson
()
{
this
.
$Axios
({
this
.
$Axios
({
method
:
"get"
,
method
:
"get"
,
url
:
this
.
auth_base_url
+
"users"
,
url
:
this
.
auth_base_url
+
"users"
,
params
:
{
params
:
{
norm_type
:
"employee"
,
norm_type
:
"employee"
,
date
:
Date
()
date
:
Date
()
}
}
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -295,8 +353,8 @@
...
@@ -295,8 +353,8 @@
this
.
$Axios
({
this
.
$Axios
({
method
:
"get"
,
method
:
"get"
,
url
:
this
.
contract_base_url
+
"customers"
,
url
:
this
.
contract_base_url
+
"customers"
,
params
:{
params
:
{
date
:
Date
()
date
:
Date
()
}
}
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -310,8 +368,8 @@
...
@@ -310,8 +368,8 @@
this
.
$Axios
({
this
.
$Axios
({
method
:
"get"
,
method
:
"get"
,
url
:
this
.
contract_base_url
+
"projects"
,
url
:
this
.
contract_base_url
+
"projects"
,
params
:{
params
:
{
date
:
Date
()
date
:
Date
()
}
}
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -400,7 +458,7 @@
...
@@ -400,7 +458,7 @@
url
:
this
.
auth_base_url
+
"users"
,
url
:
this
.
auth_base_url
+
"users"
,
params
:
{
params
:
{
norm_type
:
"login"
,
norm_type
:
"login"
,
date
:
Date
()
date
:
Date
()
}
}
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
...
@@ -483,7 +541,7 @@
...
@@ -483,7 +541,7 @@
if
(
response
.
data
.
name
)
{
if
(
response
.
data
.
name
)
{
this
.
salesperson
=
null
;
this
.
salesperson
=
null
;
this
.
show_message
(
"添加成功"
,
"success"
);
this
.
show_message
(
"添加成功"
,
"success"
);
this
.
get_salesperson
();
this
.
get_
all_
salesperson
();
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
@@ -494,6 +552,22 @@
...
@@ -494,6 +552,22 @@
this
.
show_message
(
"请填写信息"
,
"info"
);
this
.
show_message
(
"请填写信息"
,
"info"
);
}
}
},
},
modify_salesperson
(
row
,
is_active
)
{
this
.
$Axios
({
method
:
"post"
,
url
:
this
.
auth_base_url
+
"users/"
+
row
.
user_unid
,
data
:
{
is_active
:
is_active
,
date
:
Date
()
}
})
.
then
(
res
=>
{
this
.
get_all_salesperson
();
})
.
catch
(
err
=>
{
console
.
log
(
err
);
});
},
project_name_add
()
{
project_name_add
()
{
if
(
this
.
project_name
)
{
if
(
this
.
project_name
)
{
this
.
$Axios
({
this
.
$Axios
({
...
@@ -534,8 +608,8 @@
...
@@ -534,8 +608,8 @@
this
.
$Axios
({
this
.
$Axios
({
method
:
"get"
,
method
:
"get"
,
url
:
this
.
auth_base_url
+
"roles"
,
url
:
this
.
auth_base_url
+
"roles"
,
params
:{
params
:
{
date
:
Date
()
date
:
Date
()
}
}
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
...
@@ -663,9 +737,10 @@
...
@@ -663,9 +737,10 @@
this
.
get_roles
();
this
.
get_roles
();
this
.
get_users
();
this
.
get_users
();
this
.
get_contract_unid
();
this
.
get_contract_unid
();
this
.
get_salesperson
();
//
this.get_salesperson();
this
.
get_customers
();
this
.
get_customers
();
this
.
get_projects
();
this
.
get_projects
();
this
.
get_all_salesperson
();
},
},
mounted
()
{
mounted
()
{
this
.
change_dialog
();
this
.
change_dialog
();
...
@@ -733,7 +808,9 @@
...
@@ -733,7 +808,9 @@
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
background-color
:
rgba
(
0
,
0
,
0
,
0.2
);
color
:
black
;
color
:
black
;
}
}
#manage
>>>
.el-table--border
::after
,
.el-table--group
::after
,
.el-table
::before
{
#manage
>>>
.el-table--border
::after
,
.el-table--group
::after
,
.el-table
::before
{
content
:
none
;
content
:
none
;
}
}
</
style
>
</
style
>
...
...
code/finance_web/src/components/nav.vue
View file @
666e1ba
<
template
>
<
template
>
<el-container
id=
"nav"
>
<el-container
id=
"nav"
>
<el-aside
width=
"10%"
>
<el-aside
width=
"10%"
style=
"background-color:black;position:relative"
>
<el-menu
:default-active=
"$route.path"
class=
"el-menu-vertical-demo"
router
:collapse=
"false"
text-color=
"white"
background-color=
"
black
"
active-text-color=
"#ffd04b"
>
<el-menu
:default-active=
"$route.path"
class=
"el-menu-vertical-demo"
router
:collapse=
"false"
text-color=
"white"
background-color=
"
rgba(0,0,0,0)
"
active-text-color=
"#ffd04b"
>
<div
style=
"height:20%;text-align:center"
>
<div
style=
"height:20%;text-align:center"
>
<img
src=
"../assets/logo.png"
alt=
""
style=
"width:100%;height:26%"
>
<img
src=
"../assets/logo.png"
alt=
""
style=
"width:100%;height:26%"
>
</div>
</div>
...
@@ -27,6 +27,14 @@
...
@@ -27,6 +27,14 @@
<span
slot=
"title"
>
退出
</span>
<span
slot=
"title"
>
退出
</span>
</el-menu-item>
</el-menu-item>
</el-menu>
</el-menu>
<div
class=
"poem"
>
<div
class=
"content"
v-for=
"(item,index) in poem.sentences"
:key=
"index"
v-if=
"item"
>
{{
item
}}
</div>
<div
class=
"content"
v-if=
"poem.author"
>
丨丨
{{
poem
.
author
}}
</div>
</div>
</el-aside>
</el-aside>
<el-main
:style=
"color"
>
<el-main
:style=
"color"
>
...
@@ -43,6 +51,10 @@
...
@@ -43,6 +51,10 @@
name
:
"HelloWorld"
,
name
:
"HelloWorld"
,
data
()
{
data
()
{
return
{
return
{
poem
:
{
author
:
""
,
sentences
:
[,]
},
color
:
"background-color: lightblue"
,
color
:
"background-color: lightblue"
,
management
:
false
,
management
:
false
,
username
:
""
,
username
:
""
,
...
@@ -69,6 +81,15 @@
...
@@ -69,6 +81,15 @@
this
.
$router
.
push
({
path
:
"/"
});
this
.
$router
.
push
({
path
:
"/"
});
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{});
},
get_poem
()
{
this
.
$Axios
.
get
(
"https://api.gushi.ci/all.json"
).
then
(
res
=>
{
this
.
poem
=
res
.
data
;
console
.
log
(
this
.
poem
.
content
);
var
reg
=
/
[
。;、,?!
]
/
;
var
a
=
this
.
poem
.
content
.
split
(
reg
);
this
.
poem
.
sentences
=
a
;
});
}
}
},
},
beforeCreate
()
{
beforeCreate
()
{
...
@@ -139,6 +160,9 @@
...
@@ -139,6 +160,9 @@
}
}
localStorage
.
setItem
(
"style"
,
JSON
.
stringify
(
style
));
localStorage
.
setItem
(
"style"
,
JSON
.
stringify
(
style
));
}
}
},
mounted
()
{
// this.get_poem();
}
}
};
};
</
script
>
</
script
>
...
@@ -158,4 +182,20 @@
...
@@ -158,4 +182,20 @@
.el-aside
>
.el-menu
{
.el-aside
>
.el-menu
{
height
:
100%
;
height
:
100%
;
}
}
.poem
{
position
:
absolute
;
margin
:
auto
;
left
:
15px
;
bottom
:
50px
;
}
.content
{
font-family
:
"隶书"
;
color
:
white
;
display
:
inline-block
;
width
:
25px
;
font-size
:
20px
;
line-height
:
24px
;
overflow
:
hidden
;
word-wrap
:
break-word
;
}
</
style
>
</
style
>
code/finance_web/src/components/search.vue
View file @
666e1ba
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"账款状态"
prop=
"amount_state_unid"
>
<el-form-item
label=
"账款状态"
prop=
"amount_state_unid
_data_list
"
>
<el-select
v-model=
"search_form.amount_state_unid
"
clearab
le
>
<el-select
v-model=
"search_form.amount_state_unid
_data_list"
clearable
multip
le
>
<el-option
v-for=
"item in amount_state_unid_data"
:key=
"item.code"
:label=
"item.name"
:value=
"item.code"
>
<el-option
v-for=
"item in amount_state_unid_data"
:key=
"item.code"
:label=
"item.name"
:value=
"item.code"
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -51,8 +51,11 @@
...
@@ -51,8 +51,11 @@
<el-form-item
label=
"销售员"
v-if=
"sales"
>
<el-form-item
label=
"销售员"
v-if=
"sales"
>
<el-input
style=
"width:217px"
:readonly=
"true"
v-model=
"salesperson_name"
></el-input>
<el-input
style=
"width:217px"
:readonly=
"true"
v-model=
"salesperson_name"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"销售员"
prop=
"salesperson_name__like"
v-if=
"!sales"
>
<el-form-item
label=
"销售员"
prop=
"salesperson_list"
v-if=
"!sales"
>
<el-input
style=
"width:217px"
v-model=
"search_form.salesperson_name__like"
></el-input>
<el-select
v-model=
"search_form.salesperson_list"
filterable
multiple
>
<el-option
v-for=
"item in salesperson_data"
:key=
"item.user_unid"
:label=
"item.name"
:value=
"item.user_unid"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
...
@@ -380,11 +383,11 @@
...
@@ -380,11 +383,11 @@
value
:
"产品线类型"
value
:
"产品线类型"
},
},
{
{
key
:
"province"
,
key
:
"province
_name
"
,
value
:
"省"
value
:
"省"
},
},
{
{
key
:
"city"
,
key
:
"city
_name
"
,
value
:
"市"
value
:
"市"
},
},
{
{
...
@@ -482,6 +485,58 @@
...
@@ -482,6 +485,58 @@
{
{
key
:
"total_receipt_amount"
,
key
:
"total_receipt_amount"
,
value
:
"累计开票金额"
value
:
"累计开票金额"
},
{
key
:
"contract_note"
,
value
:
"合同备注"
},
{
key
:
"bad_amount_note"
,
value
:
"坏账金额备注"
},
{
key
:
"reback_note"
,
value
:
"暂停金额备注"
},
{
key
:
"contract_amount_note"
,
value
:
"抵扣金额备注"
},
{
key
:
"contract_remain_note"
,
value
:
"豁免金额备注"
},
{
key
:
"advance_pay_proporition"
,
value
:
"预付款比例"
},
{
key
:
"arrive_pay_proportion"
,
value
:
"到货款比例"
},
{
key
:
"acceptanc_pay_proportion"
,
value
:
"验收款比例"
},
{
key
:
"mainten_pay_proportition"
,
value
:
"质保款比例"
},
{
key
:
"advance_pay_requirement"
,
value
:
"预付款条件"
},
{
key
:
"arrive_pay_requirement"
,
value
:
"到货款条件"
},
{
key
:
"acceptanc_pay_requirement"
,
value
:
"验收款条件"
},
{
key
:
"mainten_pay_requirement"
,
value
:
"质保款条件"
}
}
],
],
export_item_selected_dialog_show
:
false
,
export_item_selected_dialog_show
:
false
,
...
@@ -495,6 +550,7 @@
...
@@ -495,6 +550,7 @@
counties
:
[],
counties
:
[],
code_base_url
:
this
.
$disparch_data
.
code_base_url
,
code_base_url
:
this
.
$disparch_data
.
code_base_url
,
contract_base_url
:
this
.
$disparch_data
.
contract_base_url
,
contract_base_url
:
this
.
$disparch_data
.
contract_base_url
,
auth_base_url
:
this
.
$disparch_data
.
auth_base_url
,
month_list
:
[
month_list
:
[
"01"
,
"01"
,
"02"
,
"02"
,
...
@@ -509,6 +565,7 @@
...
@@ -509,6 +565,7 @@
"11"
,
"11"
,
"12"
"12"
],
],
salesperson_data
:
[],
contract_state_data
:
[],
contract_state_data
:
[],
contract_type_data
:
[],
contract_type_data
:
[],
product_line_type_data
:
[],
product_line_type_data
:
[],
...
@@ -523,10 +580,12 @@
...
@@ -523,10 +580,12 @@
year
:
null
,
year
:
null
,
month
:
null
,
month
:
null
,
contract_state_list
:
[],
contract_state_list
:
[],
salesperson_list
:
[],
contract_type
:
null
,
contract_type
:
null
,
product_line_type
:
null
,
product_line_type
:
null
,
acceptance_type
:
null
,
acceptance_type
:
null
,
is_archive
:
null
,
is_archive
:
null
,
amount_state_unid_data_list
:
[],
amount_state_unid
:
null
,
amount_state_unid
:
null
,
confirm_income_amount
:
null
,
confirm_income_amount
:
null
,
province
:
null
,
province
:
null
,
...
@@ -901,6 +960,23 @@
...
@@ -901,6 +960,23 @@
});
});
}
}
},
},
get_salesperson_data
()
{
this
.
$Axios
({
method
:
"get"
,
url
:
this
.
auth_base_url
+
"users"
,
params
:
{
norm_type
:
"employee"
,
date
:
Date
()
}
})
.
then
(
response
=>
{
this
.
salesperson_data
=
response
.
data
.
list_data
;
})
.
catch
(
err
=>
{
// console.log(err.message);
});
},
/**
/**
* 获取检索结果
* 获取检索结果
*/
*/
...
@@ -911,6 +987,17 @@
...
@@ -911,6 +987,17 @@
}
else
{
}
else
{
a
.
contract_states
=
""
;
a
.
contract_states
=
""
;
}
}
if
(
a
.
salesperson_list
.
length
>
0
)
{
a
.
salesperson_unid_columns
=
a
.
salesperson_list
.
join
(
","
);
}
else
{
a
.
salesperson_unid_columns
=
""
;
}
if
(
a
.
amount_state_unid_data_list
.
length
>
0
)
{
a
.
amount_state_unids
=
a
.
amount_state_unid_data_list
.
join
(
","
);
}
else
{
a
.
amount_state_unids
=
""
;
}
Object
.
keys
(
a
).
forEach
(
key
=>
{
Object
.
keys
(
a
).
forEach
(
key
=>
{
if
(
a
[
key
]
&&
typeof
a
[
key
]
==
"string"
)
{
if
(
a
[
key
]
&&
typeof
a
[
key
]
==
"string"
)
{
// console.log(a[key]);
// console.log(a[key]);
...
@@ -971,7 +1058,6 @@
...
@@ -971,7 +1058,6 @@
reset
()
{
reset
()
{
this
.
$refs
[
"search_form"
].
resetFields
();
this
.
$refs
[
"search_form"
].
resetFields
();
},
},
commit
()
{
commit
()
{
this
.
$refs
[
"search_form"
].
validate
(
valid
=>
{
this
.
$refs
[
"search_form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
...
@@ -1067,6 +1153,7 @@
...
@@ -1067,6 +1153,7 @@
}
}
},
},
created
()
{
created
()
{
this
.
get_salesperson_data
();
if
(
sessionStorage
.
getItem
(
"user_roles"
)
==
"null"
)
{
if
(
sessionStorage
.
getItem
(
"user_roles"
)
==
"null"
)
{
this
.
salesperson_name
=
sessionStorage
.
getItem
(
"user_name"
);
this
.
salesperson_name
=
sessionStorage
.
getItem
(
"user_name"
);
this
.
sales
=
true
;
this
.
sales
=
true
;
...
@@ -1189,4 +1276,8 @@ span {
...
@@ -1189,4 +1276,8 @@ span {
#search
>>>
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
#search
>>>
.el-checkbox__input.is-checked
+
.el-checkbox__label
{
color
:
crimson
;
color
:
crimson
;
}
}
/* #search >>>.el-table__header-wrapper{
position: fixed;
top: 0;
} */
</
style
>
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment