Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
zhouqian
vue-gjjs
Commits
bd69c91d
Commit
bd69c91d
authored
Nov 07, 2022
by
wangna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cptbat UI改造
parent
e2cb4d07
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
77 deletions
+131
-77
Fpanel.vue
src/views/Business/Cptbat/Fpanel.vue
+94
-49
index.vue
src/views/Business/Cptbat/index.vue
+37
-28
No files found.
src/views/Business/Cptbat/Fpanel.vue
View file @
bd69c91d
<
template
>
<
template
>
<div
class=
"eibs-tab"
>
<div
class=
"eibs"
>
<c-col
:span=
"9"
>
<!-- =================左边============== -->
<c-istream-table
:list=
"model.filstm.rows||[]"
:columns=
"stmData.columns"
:showButtonFlg=
"true"
<c-col
:span=
"12"
style=
"padding-right: 20px"
>
@
chooseRowEvent=
"rowcli"
>
</c-istream-table>
</c-col>
<c-col
:span=
"9"
:offset=
"1"
>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"操作选择"
prop=
"opetye"
>
<el-form-item
label=
"操作选择"
prop=
"opetye"
>
<c-select
v-model=
"model.opetye"
style=
"width: 100%"
>
<c-select
v-model=
"model.opetye"
style=
"width: 100%"
>
<el-option
v-for=
"item in opetye"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"item in opetye"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</c-select>
</c-select>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"本地文件路径"
prop=
"filpth"
>
<el-form-item
label=
"本地文件路径"
prop=
"filpth"
>
<c-input
v-model=
"model.filpth"
style=
"width: 100%"
placeholder=
"请输入本地文件路径"
disabled
></c-input>
<c-input
v-model=
"model.filpth"
style=
"width: 100%"
placeholder=
"请输入本地文件路径"
disabled
></c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"上传文件名"
prop=
"newnam"
>
<el-form-item
label=
"上传文件名"
prop=
"newnam"
>
<c-input
v-model=
"model.newnam"
style=
"width: 100%"
:disabled=
"model.opetye !== '1'"
></c-input>
<c-input
v-model=
"model.newnam"
style=
"width: 100%"
:disabled=
"model.opetye !== '1'"
></c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<span>
注意:上传文件若包含表头系统将无法解析
</span>
<el-form-item
label=
"注意:上传文件若包含表头系统将无法解析"
label-width=
"300px"
></el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"删除首行上传"
>
<el-form-item
label=
"删除首行上传"
class=
"checkbox-left"
>
<c-checkbox
v-model=
"model.flg"
:disabled=
"model.opetye !== '1'"
></c-checkbox>
<c-checkbox
v-model=
"model.flg"
:disabled=
"model.opetye !== '1'"
></c-checkbox>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
"解析文件名"
prop=
"opefil"
>
<el-form-item
label=
"解析文件名"
prop=
"opefil"
>
<c-input
v-model=
"model.opefil"
disabled
></c-input>
<c-input
v-model=
"model.opefil"
disabled
></c-input>
...
@@ -39,24 +59,61 @@
...
@@ -39,24 +59,61 @@
</c-col>
</c-col>
</c-col>
</c-col>
<c-col
:span=
"
4"
:offset=
"1
"
>
<c-col
:span=
"
12"
style=
"padding-left: 20px
"
>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"!(this.flag && model.opetye == '1')"
@
click=
"onOpnfil"
>
文件预览
</c-button>
<el-form-item>
<c-button
type=
"primary"
:disabled=
"!(this.flag && model.opetye == '1')"
@
click=
"onOpnfil"
>
文件预览
</c-button
>
</el-form-item>
</c-col>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"!(this.flag && model.opetye == '1')"
@
click=
"onUpload"
>
文件上传
</c-button>
<el-form-item>
<c-button
type=
"primary"
:disabled=
"!(this.flag && model.opetye == '1')"
@
click=
"onUpload"
>
文件上传
</c-button
></el-form-item>
</c-col>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"!(this.flag && model.opetye =='2')"
@
click=
"onReadfil"
>
文件解析
</c-button>
<el-form-item>
<c-button
type=
"primary"
:disabled=
"!(this.flag && model.opetye == '2')"
@
click=
"onReadfil"
>
文件解析
</c-button
></el-form-item>
</c-col>
</c-col>
<c-col><br
/></c-col>
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-button
type=
"primary"
:disabled=
"!(this.flag && (model.opetye == '1'||model.opetye == '2'))"
@
click=
"onDel"
>
<el-form-item>
文件删除
</c-button>
<c-button
type=
"primary"
:disabled=
"
!(this.flag && (model.opetye == '1' || model.opetye == '2'))
"
@
click=
"onDel"
>
文件删除
</c-button
></el-form-item>
</c-col>
</c-col>
</c-col>
</c-col>
<c-col
:span=
"24"
>
<c-istream-table
:list=
"model.filstm.rows || []"
:columns=
"stmData.columns"
:showButtonFlg=
"true"
@
chooseRowEvent=
"rowcli"
>
</c-istream-table>
</c-col>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -78,58 +135,46 @@ export default {
...
@@ -78,58 +135,46 @@ export default {
{
label
:
"已解析文件"
,
value
:
"3"
},
{
label
:
"已解析文件"
,
value
:
"3"
},
],
],
stmData
:
{
stmData
:
{
columns
:
[
columns
:
[
'0 1 "批量文件列表" '
],
'0 1 "批量文件列表" 500'
,
],
data
:
[],
data
:
[],
},
},
};
};
},
},
methods
:
{
methods
:
{
...
Event
,
...
Event
,
},
},
watch
:
{
watch
:
{
"model.opetye"
:
{
"model.opetye"
:
{
immediate
:
true
,
immediate
:
true
,
async
handler
(
val
,
oldVal
)
{
async
handler
(
val
,
oldVal
)
{
if
(
this
.
model
.
opetye
==
'1'
)
{
if
(
this
.
model
.
opetye
==
"1"
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
;
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
else
{
}
else
if
(
this
.
model
.
opetye
==
"2"
)
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
);
}
}
else
if
(
this
.
model
.
opetye
==
'2'
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
}
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
if
(
this
.
model
.
opetye
==
"3"
)
{
if
(
this
.
model
.
opetye
==
'3'
)
{
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
);
let
rtnmsg
=
await
this
.
executeRule
(
"opetye"
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
}
else
{
else
{
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
},
},
},
},
},
},
created
:
function
()
{
},
created
:
function
()
{},
};
};
</
script
>
</
script
>
<
style
>
<
style
>
</
style
>
</
style
>
src/views/Business/Cptbat/index.vue
View file @
bd69c91d
<
template
>
<
template
>
<div
class=
"eContainer"
>
<div
class=
"eContainer"
>
<el-form
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"120px"
label-position=
"right"
size=
"small"
<c-page
title=
"批量汇款"
>
:validate-on-rule-change=
"false"
>
<el-form
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"myTabClick"
>
:model=
"model"
:rules=
"rules"
ref=
"modelForm"
label-width=
"120px"
label-position=
"right"
size=
"small"
:validate-on-rule-change=
"false"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"myTabClick"
>
<!--cptbat PD000001 主界面 -->
<!--cptbat PD000001 主界面 -->
<el-tab-pane
label=
"主界面"
name=
"fpanel"
>
<el-tab-pane
label=
"主界面"
name=
"fpanel"
>
<m-fpanel
:model=
"model"
:codes=
"codes"
/>
<m-fpanel
:model=
"model"
:codes=
"codes"
/>
</el-tab-pane>
</el-tab-pane>
</c-tabs>
</c-tabs>
</el-form>
</el-form>
</c-page>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
;
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
;
import
Cptbat
from
"~/model/Cptbat"
import
Cptbat
from
"~/model/Cptbat"
;
import
commonProcess
from
"~/mixin/commonProcess"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
Check
from
"~/model/Cptbat/Check"
import
Check
from
"~/model/Cptbat/Check"
;
import
Default
from
"~/model/Cptbat/Default"
import
Default
from
"~/model/Cptbat/Default"
;
import
Pattern
from
"~/model/Cptbat/Pattern"
import
Pattern
from
"~/model/Cptbat/Pattern"
;
import
Fpanel
from
"./Fpanel"
import
Fpanel
from
"./Fpanel"
;
export
default
{
export
default
{
name
:
"Cptbat"
,
name
:
"Cptbat"
,
...
@@ -30,8 +43,8 @@ export default {
...
@@ -30,8 +43,8 @@ export default {
},
},
provide
()
{
provide
()
{
return
{
return
{
root
:
this
root
:
this
,
}
};
},
},
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
mixins
:
[
commonProcess
],
// 里面包含了Default、Check等的公共处理
data
()
{
data
()
{
...
@@ -44,32 +57,28 @@ export default {
...
@@ -44,32 +57,28 @@ export default {
defaultRules
:
Default
,
defaultRules
:
Default
,
pattern
:
Pattern
,
pattern
:
Pattern
,
rules
:
null
,
rules
:
null
,
codes
:
{
codes
:
{},
},
};
}
},
},
methods
:
{
methods
:
{
myTabClick
(
tab
)
{
myTabClick
(
tab
)
{
this
.
tabClick
(
tab
)
this
.
tabClick
(
tab
);
/**
/**
* do it yourself
* do it yourself
**/
**/
}
},
},
},
created
:
async
function
()
{
created
:
async
function
()
{
console
.
log
(
"进入cptbat交易"
);
console
.
log
(
"进入cptbat交易"
);
let
rtnmsg
=
await
this
.
init
({})
let
rtnmsg
=
await
this
.
init
({});
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
this
.
updateModel
(
rtnmsg
.
data
)
this
.
updateModel
(
rtnmsg
.
data
);
//TODO 处理数据逻辑
//TODO 处理数据逻辑
}
else
{
}
this
.
$notify
.
error
({
title
:
"错误"
,
message
:
"服务请求失败!"
});
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
}
}
}
},
};
</
script
>
</
script
>
<
style
>
<
style
>
</
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