Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
薪
薪瑞通-前端
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许珑标
薪瑞通-前端
Commits
e127072c
Commit
e127072c
authored
Apr 16, 2025
by
wanghf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线上发包任务,发票信息管理功能优化
parent
0e4826fc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
22 deletions
+64
-22
src/views/business/invoiceApply/index.vue
src/views/business/invoiceApply/index.vue
+7
-4
src/views/business/invoiceApply/ready.vue
src/views/business/invoiceApply/ready.vue
+2
-3
src/views/business/onlineTaskInfo/index.vue
src/views/business/onlineTaskInfo/index.vue
+43
-15
src/views/business/payOrder/batchToAli.vue
src/views/business/payOrder/batchToAli.vue
+8
-0
src/views/business/payOrder/batchToBank.vue
src/views/business/payOrder/batchToBank.vue
+4
-0
No files found.
src/views/business/invoiceApply/index.vue
View file @
e127072c
...
...
@@ -59,7 +59,7 @@
>
详情
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
icon=
"el-icon-plus"
...
...
@@ -87,7 +87,7 @@
@
click=
"handleDelete"
v-hasPermi=
"['business:invoiceApply:remove']"
>
删除
</el-button>
</el-col>
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
...
...
@@ -441,7 +441,7 @@ import {
}
from
'
@/api/business/invoiceApply
'
import
{
listCompanyInfo
}
from
'
@/api/business/companyInfo
'
import
fa
from
'
element-ui/src/locale/lang/fa
'
import
{
querySignList
}
from
'
@/api/business/unitInfo
'
import
{
laborSign
,
querySignList
}
from
'
@/api/business/unitInfo
'
export
default
{
name
:
"
InvoiceApply
"
,
...
...
@@ -619,7 +619,7 @@ export default {
pageNum
:
1
,
pageSize
:
1000
}
querySignList
(
queryParams
).
then
(
response
=>
{
laborSign
(
queryParams
).
then
(
response
=>
{
if
(
response
.
code
==
200
)
{
this
.
taxCompanyList
=
response
.
rows
;
}
...
...
@@ -772,6 +772,7 @@ export default {
this
.
uploadInvoiceOpen
=
false
;
this
.
uploadInvoieFile
=
null
;
this
.
getList
();
location
.
reload
();
}
else
{
this
.
$message
.
error
(
res
.
msg
);
}
...
...
@@ -794,6 +795,8 @@ export default {
updateInvoiceStatus
(
obj
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"
确认成功!
"
);
this
.
getList
();
location
.
reload
();
}
}).
finally
(()
=>
{
this
.
loading
=
false
;
...
...
src/views/business/invoiceApply/ready.vue
View file @
e127072c
...
...
@@ -214,8 +214,7 @@ import {
getInvoiceInfoByCompanyId
}
from
'
@/api/business/invoiceInfo
'
import
{
addApplyInvoice
}
from
'
@/api/business/invoiceApply
'
import
{
querySignList
}
from
'
@/api/business/unitInfo
'
import
{
laborSign
,
querySignList
}
from
'
@/api/business/unitInfo
'
export
default
{
name
:
"
PayOrder
"
,
components
:
{
RePay
},
...
...
@@ -332,7 +331,7 @@ export default {
pageNum
:
1
,
pageSize
:
1000
}
querySignList
(
queryParams
).
then
(
response
=>
{
laborSign
(
queryParams
).
then
(
response
=>
{
if
(
response
.
code
==
200
)
{
this
.
taxCompanyList
=
response
.
rows
;
}
...
...
src/views/business/onlineTaskInfo/index.vue
View file @
e127072c
...
...
@@ -60,7 +60,7 @@
v-hasPermi=
"['business:onlineTaskInfo:add']"
>
发布任务
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<!--
<el-col
:span=
"1.5"
>
<el-button
type=
"success"
icon=
"el-icon-edit"
...
...
@@ -79,7 +79,7 @@
@
click=
"handleDelete"
v-hasPermi=
"['business:onlineTaskInfo:remove']"
>
删除
</el-button>
</el-col>
</el-col>
-->
<el-col
:span=
"1.5"
>
<el-button
type=
"warning"
...
...
@@ -184,10 +184,10 @@
<div
style=
"margin-top: 20px;"
v-if=
"active == 1"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
label=
"任务编号"
prop=
"taskNo"
>
<el-input
v-model=
"form.taskNo"
placeholder=
"请输入任务编号"
/>
<el-input
v-model=
"form.taskNo"
placeholder=
"请输入任务编号"
disabled
/>
</el-form-item>
<el-form-item
label=
"发起企业"
prop=
"companyId"
>
<el-select
v-model=
"form.companyId"
placeholder=
"请选择
采购方
"
clearable
@
change=
"applyCompanyChange"
>
<el-select
v-model=
"form.companyId"
placeholder=
"请选择
发起企业
"
clearable
@
change=
"applyCompanyChange"
>
<el-option
v-for=
"item in applyCompanyList"
:key=
"item.id"
:label=
"item.companyName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -197,8 +197,8 @@
<el-form-item
label=
"所属行业"
prop=
"industry"
>
<el-input
v-model=
"form.industry"
placeholder=
"请输入所属行业"
/>
</el-form-item>
<el-form-item
label=
"代发企业"
prop=
"taxCompanyId"
>
<el-select
v-model=
"form.taxCompany
Id"
placeholder=
"请选择销售方
"
clearable
@
change=
"taxCompanyChange"
>
<el-form-item
label=
"代发企业"
prop=
"taxCompany
Sign
Id"
>
<el-select
v-model=
"form.taxCompany
SignId"
placeholder=
"请选择代发企业
"
clearable
@
change=
"taxCompanyChange"
>
<el-option
v-for=
"item in taxCompanyList"
:key=
"item.id"
:label=
"item.taxUnitName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -295,6 +295,7 @@ export default {
return
{
// 任务名称
batchPayName
:
''
,
onlineTaskId
:
''
,
// 支付方式
payType
:
''
,
payVisible
:
false
,
...
...
@@ -377,6 +378,9 @@ export default {
taxCompanyId
:
[
{
required
:
true
,
message
:
"
代发企业id不能为空
"
,
trigger
:
"
blur
"
}
],
taxCompanySignId
:
[
{
required
:
true
,
message
:
"
代发企业id不能为空
"
,
trigger
:
"
blur
"
}
],
taxCompanyName
:
[
{
required
:
true
,
message
:
"
代发企业名称不能为空
"
,
trigger
:
"
blur
"
}
],
...
...
@@ -461,6 +465,10 @@ export default {
}
laborSign
(
queryParams
).
then
(
response
=>
{
if
(
response
.
code
==
200
)
{
if
(
response
.
total
==
0
){
this
.
$modal
.
msgError
(
"
该企业未签约,无法发布任务
"
);
return
;
}
this
.
taxCompanyList
=
response
.
rows
;
}
})
...
...
@@ -537,6 +545,7 @@ export default {
this
.
reset
();
this
.
open
=
true
;
this
.
title
=
"
添加线上任务信息
"
;
this
.
form
.
taskNo
=
this
.
generateTimeCodeWithRandom
();
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
...
...
@@ -610,7 +619,8 @@ export default {
this
.
form
.
taxCompanyInvoice
=
{};
this
.
taxCompanyList
.
forEach
(
item
=>
{
if
(
item
.
id
==
val
)
{
this
.
formApply
.
taxCompanyName
=
item
.
taxUnitName
;
this
.
form
.
taxCompanyId
=
item
.
taxUnitId
;
this
.
form
.
taxCompanyName
=
item
.
taxUnitName
;
}
})
},
...
...
@@ -650,7 +660,7 @@ export default {
},
//发布任务
handleRelease
(
row
)
{
this
.
$confirm
(
'
是否确认发布任务?
'
,
'
提示
'
,
{
this
.
$confirm
(
'
是否确认发布任务
【
'
+
row
.
taskName
+
'
】
?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
...
...
@@ -658,15 +668,16 @@ export default {
const
obj
=
{
id
:
row
.
id
,
status
:
11
}
updateStatus
(
obj
).
then
(
response
=>
{
if
(
response
.
code
==
200
)
{
this
.
$modal
.
msgSuccess
(
"
发布成功
"
);
this
.
$modal
.
msgSuccess
(
"
发布
任务
成功
"
);
this
.
getList
();
location
.
reload
();
}
})
}).
catch
(()
=>
{});
},
//接收任务
handleRecived
(
row
)
{
this
.
$confirm
(
'
是否确认接收任务?
'
,
'
提示
'
,
{
this
.
$confirm
(
'
是否确认接收任务
【
'
+
row
.
taskName
+
'
】
?
'
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
...
...
@@ -674,8 +685,9 @@ export default {
const
obj
=
{
id
:
row
.
id
,
status
:
21
}
updateStatus
(
obj
).
then
(
response
=>
{
if
(
response
.
code
==
200
)
{
this
.
$modal
.
msgSuccess
(
"
接收成功
"
);
this
.
$modal
.
msgSuccess
(
"
接收
任务
成功
"
);
this
.
getList
();
location
.
reload
();
}
})
}).
catch
(()
=>
{});
...
...
@@ -691,22 +703,38 @@ export default {
// 导入名单
importPayInfo
(
row
)
{
this
.
payVisible
=
true
;
this
.
batchPayName
=
"
发包任务-
"
+
row
.
taskName
+
"
-
"
+
row
.
id
;
this
.
onlineTaskId
=
row
.
id
;
this
.
batchPayName
=
"
线上发包任务-
"
+
row
.
taskName
+
"
-
"
+
row
.
id
;
console
.
log
(
this
.
batchPayName
)
},
// 跳转到批量到支付宝
toLinkAlipay
()
{
console
.
log
(
this
.
batchPayName
)
this
.
$router
.
push
({
path
:
"
/transfer/batchToAli
"
,
query
:
{
batchPayName
:
this
.
batchPayName
,
number
:
123
}
});
this
.
$router
.
push
({
path
:
"
/transfer/batchToAli
"
,
query
:
{
batchPayName
:
this
.
batchPayName
,
onlineTaskId
:
this
.
onlineTaskId
}
});
this
.
payVisible
=
false
},
// 跳转到批量到银行卡
toLinkBankCard
()
{
console
.
log
(
this
.
batchPayName
)
this
.
$router
.
push
({
path
:
"
/transfer/batchToBank
"
,
query
:
{
batchPayName
:
this
.
batchPayName
,
number
:
123
}
});
this
.
$router
.
push
({
path
:
"
/transfer/batchToBank
"
,
query
:
{
batchPayName
:
this
.
batchPayName
,
onlineTaskId
:
this
.
onlineTaskId
}
});
this
.
payVisible
=
false
},
generateTimeCodeWithRandom
()
{
const
timePart
=
this
.
generateTimeCode
();
// 复用基础时间编码
const
random
=
Math
.
floor
(
Math
.
random
()
*
1000
).
toString
().
padStart
(
3
,
'
0
'
);
return
`
${
timePart
}${
random
}
`
;
},
generateTimeCode
()
{
const
now
=
new
Date
();
const
year
=
now
.
getFullYear
();
const
month
=
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'
0
'
);
// 补零
const
date
=
String
(
now
.
getDate
()).
padStart
(
2
,
'
0
'
);
// const hours = String(now.getHours()).padStart(2, '0');
// const minutes = String(now.getMinutes()).padStart(2, '0');
// const seconds = String(now.getSeconds()).padStart(2, '0');
return
`
${
year
}${
month
}${
date
}
`
;
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/business/payOrder/batchToAli.vue
View file @
e127072c
...
...
@@ -184,6 +184,9 @@ export default {
dicts
:
[
'
pay_type_title
'
,
'
payee_acc_type
'
],
data
()
{
return
{
//发包任务名称
defaultBatchPayName
:
null
,
page
:
{
search
:
''
,
rows
:
[],
...
...
@@ -265,8 +268,13 @@ export default {
this
.
batchForm
.
payerAccNo
=
String
(
this
.
$route
.
query
.
number
)
}
if
(
this
.
$route
.
query
.
batchPayName
)
{
this
.
defaultBatchPayName
=
this
.
$route
.
query
.
batchPayName
;
this
.
batchForm
.
batchPayName
=
this
.
$route
.
query
.
batchPayName
;
}
if
(
this
.
$route
.
query
.
onlineTaskId
)
{
this
.
batchForm
.
onlineTaskId
=
this
.
$route
.
query
.
onlineTaskId
;
}
console
.
log
(
this
.
batchForm
)
},
methods
:
{
// 新增明细
...
...
src/views/business/payOrder/batchToBank.vue
View file @
e127072c
...
...
@@ -270,6 +270,10 @@ export default {
this
.
defaultBatchPayName
=
this
.
$route
.
query
.
batchPayName
;
this
.
batchForm
.
batchPayName
=
this
.
$route
.
query
.
batchPayName
;
}
if
(
this
.
$route
.
query
.
onlineTaskId
)
{
this
.
batchForm
.
onlineTaskId
=
this
.
$route
.
query
.
onlineTaskId
;
}
console
.
log
(
this
.
batchForm
)
},
methods
:
{
chaheuhashjs
()
{
...
...
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