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
fukai
vue-gjjs
Commits
a2f299f0
Commit
a2f299f0
authored
Jun 17, 2022
by
liuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Brtdcr校验修改
parent
280c507b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
62 additions
and
23 deletions
+62
-23
Pattern.js
src/model/Brtdcr/Pattern.js
+14
-14
Pattern.js
src/model/Detopn/Pattern.js
+1
-1
Brtdcrd.vue
src/views/Business/Brtdcr/Brtdcrd.vue
+43
-7
index.vue
src/views/Business/Detame/index.vue
+1
-0
index.vue
src/views/Business/Detdrv/index.vue
+2
-0
Detp2.vue
src/views/Business/Detopn/Detp2.vue
+1
-1
Docpre.vue
src/views/Business/Ditdck/Docpre.vue
+0
-0
No files found.
src/model/Brtdcr/Pattern.js
View file @
a2f299f0
...
...
@@ -19,7 +19,7 @@ export default {
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"lidgrp.cbs.opn1.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -41,7 +41,7 @@ export default {
],
"brdgrp.cbs.max.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -54,7 +54,7 @@ export default {
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"brdgrp.cbs.opn1.amt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -84,10 +84,10 @@ export default {
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"brdgrp.rec.tenmaxday"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
3
,
message
:
"长度不能超过3"
}
],
//
"brdgrp.rec.tenmaxday":[
//
{type: "string", required: false, message: "必输项"},
//
{max: 3,message:"长度不能超过3"}
//
],
"brdgrp.prb.pts.ref"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"长度不能超过16"
}
...
...
@@ -187,7 +187,7 @@ export default {
"liaall.outamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -200,19 +200,19 @@ export default {
{
max
:
3
,
message
:
"长度不能超过3"
}
],
"liaall.misamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"liaall.exttotoldamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
"liaall.exttotamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -223,7 +223,7 @@ export default {
"setmod.docamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -333,7 +333,7 @@ export default {
],
"liaall.limmod.comamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
@@ -346,7 +346,7 @@ export default {
{
max
:
40
,
message
:
"长度不能超过40"
}
],
"liaall.limmod.ccvamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
18
,
message
:
"整数位不能超过14位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,3}
$
)
|
(
^
\d
+
\.\d{1,3}
$
)
/
,
message
:
"小数位不能超过3位"
}
],
...
...
src/model/Detopn/Pattern.js
View file @
a2f299f0
...
...
@@ -357,7 +357,7 @@ export default {
],
"dedgrp.rec.conamt"
:[
{
type
:
"
number
"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"
string
"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
16
,
message
:
"整数位不能超过13位"
},
{
pattern
:
/
(
^
\d
+$
)
|
(
^
\.\d{1,2}
$
)
|
(
^
\d
+
\.\d{1,2}
$
)
/
,
message
:
"小数位不能超过2位"
}
],
...
...
src/views/Business/Brtdcr/Brtdcrd.vue
View file @
a2f299f0
...
...
@@ -32,7 +32,9 @@
</c-col>
<c-col
:span=
"24"
style=
"height: 24px; margin-top: -10px"
>
<el-form-item
:label=
"model.brtp.docgrdm.docdsclab"
class=
"messageLabel"
>
</el-form-item>
<el-form-item
:label=
"model.brtp.docgrdm.docdsclab"
class=
"messageLabel"
>
<c-button
style=
"float:right"
@
click=
"addTableValue"
type=
"primary"
>
新增单据
</c-button>
</el-form-item>
</c-col>
<c-col
:span=
"24"
style=
"height: 0px"
>
<el-divider></el-divider>
...
...
@@ -40,18 +42,21 @@
<c-col
:span=
"24"
style=
""
>
<c-table
style=
"text-align: center"
:list=
"
table1
"
:list=
"
TableValue
"
:paginationShow=
"false"
:border=
"true"
>
<el-table-column
label=
"1st"
prop=
"cmail1"
width=
"auto"
></el-table-column>
<el-table-column
label=
"2nd"
prop=
"cmail2"
width=
"auto"
></el-table-column>
<el-table-column
label=
"Document"
width=
"auto"
>
<
template
>
<el-table-column
label=
"Document"
prop=
"docnam"
width=
"auto"
>
<
template
slot-scope=
"scope"
>
<!--
{{
scope
.
row
.
docnam
}}
-->
<c-select
style=
"width: 100%"
disabled
placeholder=
"请选择"
v-model=
"
scope.row.docnam
"
>
<el-option
v-for=
"item in codeTable"
...
...
@@ -63,6 +68,11 @@
</c-select>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"170px"
fixed=
"right"
>
<
template
slot-scope=
"scope"
>
<c-button
@
click=
"deleteTable(scope.row)"
type=
"primary"
>
删除
</c-button>
</
template
>
</el-table-column>
</c-table>
</c-col>
</div>
...
...
@@ -79,23 +89,32 @@ export default {
mixins
:
[
commonProcess
],
data
()
{
return
{
table1
:[
TableValue
:[
{
id
:
0
,
cmail1
:
""
,
cmail2
:
""
,
docnam
:
"10"
},
{
id
:
1
,
cmail1
:
""
,
cmail2
:
""
,
docnam
:
"20"
},
{
id
:
2
,
cmail1
:
""
,
cmail2
:
""
,
docnam
:
"17"
},
],
newValue
:{
id
:
0
,
cmail1
:
""
,
cmail2
:
""
,
docnam
:
""
},
codeTable
:[
{
label
:
"Airway Bills"
,
value
:
"1"
},
{
label
:
"Beneficiary's Declaration"
,
value
:
"2"
},
...
...
@@ -120,7 +139,24 @@ export default {
]
};
},
methods
:
{
...
Event
},
methods
:
{
...
Event
,
addTableValue
(){
var
index
=
this
.
TableValue
.
length
;
var
newTableValue
=
this
.
newValue
;
if
(
index
>
0
){
newTableValue
.
id
=
this
.
TableValue
[
index
-
1
].
id
+
1
;
}
this
.
TableValue
.
push
(
newTableValue
);
},
deleteTable
(
row
){
for
(
let
i
=
0
;
i
<
this
.
TableValue
.
length
;
i
++
){
if
(
this
.
TableValue
[
i
].
id
==
row
.
id
){
this
.
TableValue
.
splice
(
i
,
1
)
break
;
}
}
}
},
created
:
function
()
{},
};
</
script
>
...
...
src/views/Business/Detame/index.vue
View file @
a2f299f0
...
...
@@ -111,6 +111,7 @@ import Api from "~/service/Api";
import
Utils
from
"~/utils/index"
;
import
CodeTable
from
"~/config/CodeTable"
;
import
Detopn
from
"~/model/Detopn"
;
import
Detame
from
"~/model/Detame"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonFuncs
from
"~/mixin/commonFuncs"
;
import
Check
from
"~/model/Detopn/Check"
;
...
...
src/views/Business/Detdrv/index.vue
View file @
a2f299f0
<
template
>
<c-content>
<div
class=
"eContainer"
>
<c-function-btn
...
...
@@ -79,6 +80,7 @@
</c-tabs>
</el-form>
</div>
</c-content>
</
template
>
<
script
>
import
Api
from
"~/service/Api"
...
...
src/views/Business/Detopn/Detp2.vue
View file @
a2f299f0
...
...
@@ -43,7 +43,7 @@
<c-input
v-model=
"model.dedgrp.rec.conno"
maxlength=
"35"
placeholder=
"请输入"
></c-input>
</el-form-item>
<el-form-item
label=
"合同金额"
prop=
"dedgrp.rec.conamt"
>
<el-form-item
label=
"合同金额"
>
<c-col
:span=
"10"
>
<c-select
v-model=
"model.dedgrp.rec.concur"
style=
"width:90%"
placeholder=
"请选择"
>
<el-option
label=
"CNY 人民币"
value=
"CNY"
></el-option>
...
...
src/views/Business/Ditdck/Docpre.vue
View file @
a2f299f0
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