Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
isc-web-vue
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
isc-web-vue
Commits
99ba861c
Commit
99ba861c
authored
Sep 29, 2024
by
zenghuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待记账记录处理
parent
dd895564
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
222 deletions
+66
-222
index.js
src/page/Frontend/Batchg/event/index.js
+26
-0
Check.js
src/page/Frontend/Batchg/model/Check.js
+0
-18
Default.js
src/page/Frontend/Batchg/model/Default.js
+0
-10
Event.js
src/page/Frontend/Batchg/model/Event.js
+0
-79
Pattern.js
src/page/Frontend/Batchg/model/Pattern.js
+0
-48
Batmainp.vue
src/page/Frontend/Batchg/views/Batmainp.vue
+0
-0
index.vue
src/page/Frontend/Batchg/views/index.vue
+40
-67
No files found.
src/page/Frontend/Batchg/event/index.js
0 → 100644
View file @
99ba861c
import
Api
from
"~/service/Api"
;
import
moment
from
"moment"
;
export
default
{
methods
:
{
async
handleSearch
()
{
},
async
handleReset
()
{
},
// pageSize改变
handleSizeChange
(
val
)
{
this
.
pagination
.
pageNum
=
1
;
this
.
pagination
.
pageSize
=
val
;
this
.
handleSearch
();
},
// 页码改变
handleCurrentChange
(
val
)
{
this
.
pagination
.
pageNum
=
val
;
this
.
handleSearch
();
},
handleSelectionChange
(
val
){
this
.
multipleSelection
=
val
;
}
},
};
src/page/Frontend/Batchg/model/Check.js
deleted
100644 → 0
View file @
dd895564
import
Utils
from
"~/utils"
/**
* Batchg Check规则
*/
let
checkObj
=
{
"batp.refback"
:
null
,
"batp.ptpmod.pty.extkey"
:
null
,
"batp.ref"
:
null
,
}
for
(
const
key
in
checkObj
)
{
if
(
Object
.
hasOwnProperty
.
call
(
checkObj
,
key
))
{
checkObj
[
key
]
=
checkObj
[
key
]
?
checkObj
[
key
]
:
Utils
.
reflectCheck
(
key
)
}
}
export
default
checkObj
src/page/Frontend/Batchg/model/Default.js
deleted
100644 → 0
View file @
dd895564
/**
* Batchg Default规则
*/
import
Api
from
"~/service/Api"
;
import
Utils
from
"~/utils/index"
export
default
{
}
//你可以添加自动default处理
src/page/Frontend/Batchg/model/Event.js
deleted
100644 → 0
View file @
dd895564
import
Api
from
"~/service/Api"
import
Utils
from
"~/utils"
export
default
{
async
onPtpmodSel
(){
let
rtnmsg
=
await
this
.
executeRule
(
"ptpmod.sel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onSel
(){
let
rtnmsg
=
await
this
.
executeRule
(
"sel"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onReset
(){
let
rtnmsg
=
await
this
.
executeRule
(
"reset"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onBatpJmpbat
(){
let
rtnmsg
=
await
this
.
executeRule
(
"batp.jmpbat"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onBatpAllcck
(){
let
rtnmsg
=
await
this
.
executeRule
(
"batp.allcck"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
async
onBatpClrchk
(){
let
rtnmsg
=
await
this
.
executeRule
(
"batp.clrchk"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
}
\ No newline at end of file
src/page/Frontend/Batchg/model/Pattern.js
deleted
100644 → 0
View file @
dd895564
export
default
{
"batp.dat"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"batp.datd"
:[
{
type
:
"date"
,
required
:
false
,
message
:
"输入正确的日期"
}
],
"batp.ptpmod.pty.extkey"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"batp.amt"
:[
{
type
:
"number"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"batp.amtd"
:[
{
type
:
"number"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"batp.ref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"batp.refback"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
"batp.inf"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
0
,
message
:
"长度不能超过0"
}
],
}
\ No newline at end of file
src/page/Frontend/Batchg/views/Batmainp.vue
View file @
99ba861c
This diff is collapsed.
Click to expand it.
src/page/Frontend/Batchg/views/index.vue
View file @
99ba861c
<
template
>
<
template
>
<div
class=
"eContainer"
>
<div
class=
"eContainer-search"
>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"150px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
>
<el-form
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"myTabClick"
>
:model=
"model"
<!--batp PD000000 批量记账主面板 -->
:rules=
"rules"
<el-tab-pane
:label=
"$t('batp.PD000000')"
name=
"batmainp"
>
ref=
"modelForm"
<m-batmainp
:model=
"model"
:codes=
"codes"
/>
label-width=
"120px"
</el-tab-pane>
label-position=
"right"
</c-tabs>
size=
"small"
:validate-on-rule-change=
"false"
>
<c-content>
<m-batmainp
:model=
"model"
:codes=
"codes"
ref=
"batmainp"
/>
</c-content>
</el-form>
</el-form>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
;
import
Batchg
from
"../model"
import
Batchg
from
"../model"
;
import
commonProcess
from
"~/mixin/commonProcess"
import
event
from
"../event"
import
Check
from
"../model/Check"
import
Batmainp
from
"./Batmainp.vue"
import
Default
from
"../model/Default"
import
Pattern
from
"../model/Pattern"
import
Batmainp
from
"./Batmainp"
export
default
{
export
default
{
name
:
"Batchg"
,
name
:
"Batchg"
,
components
:{
components
:{
"m-batmainp"
:
Batmainp
,
"m-batmainp"
:
Batmainp
,
},
provide
()
{
return
{
root
:
this
}
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
"batmainp"
,
trnName
:
"batchg"
,
trnType
:
""
,
model
:
new
Batchg
().
data
,
checkRules
:
Check
,
defaultRules
:
Default
,
pattern
:
Pattern
,
rules
:
null
,
codes
:
{
sta
:
CodeTable
.
sta
,
kpatyp
:
CodeTable
.
kpatyp
,
sdcflg
:
CodeTable
.
sdcflg
,
offsta
:
CodeTable
.
offsta
,
batcharge
:
CodeTable
.
batcharge
,
},
}
},
methods
:{
myTabClick
(
tab
){
this
.
tabClick
(
tab
)
/**
* do it yourself
**/
}
},
created
:
async
function
(){
console
.
log
(
"进入batchg交易"
);
let
rtnmsg
=
{};
// await this.init({})
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
//TODO 处理数据逻辑
}
},
else
provide
()
{
{
return
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
root
:
this
}
}
}
}
},
mixins
:
[
event
],
// 里面包含了Default、Check等的公共处理
data
(){
return
{
tabVal
:
"batmainp"
,
trnName
:
"batchg"
,
model
:
new
Batchg
().
data
,
rules
:
null
,
codes
:{...
CodeTable
},
};
},
methods
:{},
created
:
async
function
()
{},
};
</
script
>
</
script
>
<
style
>
<
style
scoped
>
</
style
>
</
style
>
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