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
6695f348
Commit
6695f348
authored
Aug 08, 2022
by
wangyanjiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#358
parent
a979c2ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
148 additions
and
138 deletions
+148
-138
Pattern.js
src/model/Botdav/Pattern.js
+4
-0
Ovwp.vue
src/views/Business/Botdav/Ovwp.vue
+143
-137
Inst.vue
src/views/Business/Botdcr/Inst.vue
+1
-1
No files found.
src/model/Botdav/Pattern.js
View file @
6695f348
...
@@ -360,4 +360,7 @@ export default {
...
@@ -360,4 +360,7 @@ export default {
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
type
:
"string"
,
required
:
false
,
message
:
"必输项"
},
{
max
:
40
,
message
:
"长度不能超过40"
}
{
max
:
40
,
message
:
"长度不能超过40"
}
],
],
"bodgrp.rec.dircolflg"
:[
{
type
:
"string"
,
required
:
false
,
message
:
"???"
}
]
}
}
\ No newline at end of file
src/views/Business/Botdav/Ovwp.vue
View file @
6695f348
...
@@ -29,16 +29,23 @@
...
@@ -29,16 +29,23 @@
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
<el-form-item
label=
"Responsible User"
prop=
"ditp.usr.extkey"
style=
"width: 100%"
>
<el-form-item
label=
"Responsible User"
prop=
"ditp.usr.extkey"
style=
"width: 100%"
>
<c-input
style=
"width: 95%"
v-model=
"model.botp.usr.extkey"
maxlength=
"8"
placeholder=
"请输入User ID"
disabled
>
<c-row>
<c-col
:span=
"20"
>
<c-input
style=
"width: 95%"
v-model=
"model.botp.usr.extkey"
maxlength=
"8"
placeholder=
"请输入User ID"
disabled
></c-input>
</c-col>
<c-col
:span=
"4"
>
<c-button
style=
"margin:0 10px 0 0;padding: 0 10px;"
size=
"small"
icon=
"el-icon-search"
type=
"primary"
>
</c-button>
</c-col>
</c-row>
</c-input>
</c-input>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
<c-col
:span=
"4"
>
<c-col
:span=
"12"
>
<c-button
style=
"margin:0 10px 0 0;padding: 0 10px;"
size=
"small"
icon=
"el-icon-search"
type=
"primary"
>
<el-form-item
label=
""
prop=
"bodgrp.rec.dircolflg"
>
</c-button>
<c-checkbox
v-model=
"model.bodgrp.rec.dircolflg"
>
Direct Collection
</c-checkbox>
</c-col>
</el-form-item>
<c-col
:span=
"8"
>
<c-checkbox
v-model=
"model.bodgrp.rec.dircolflg"
>
Direct Collection
</c-checkbox>
</c-col>
</c-col>
</c-col>
</c-col>
<c-col
:span=
"12"
>
<c-col
:span=
"12"
>
...
@@ -188,9 +195,7 @@
...
@@ -188,9 +195,7 @@
</c-table>
</c-table>
</c-col>
-->
</c-col>
-->
<c-docpre
<c-docpre
:model=
"model"
:argadr=
"{
:model=
"model"
:argadr=
"{
path: 'SEMFLG',
path: 'SEMFLG',
grp: 'botp',
grp: 'botp',
code: 'docpre'
code: 'docpre'
...
@@ -234,138 +239,138 @@
...
@@ -234,138 +239,138 @@
</c-row>
</c-row>
</template>
</template>
<
script
>
<
script
>
import
Api
from
"~/service/Api"
import
Api
from
"~/service/Api"
import
commonProcess
from
"~/mixin/commonProcess"
;
import
commonProcess
from
"~/mixin/commonProcess"
;
import
CodeTable
from
"~/config/CodeTable"
import
CodeTable
from
"~/config/CodeTable"
import
Event
from
"~/model/Botdav/Event"
import
Event
from
"~/model/Botdav/Event"
import
Utils
from
"~/utils"
;
import
Utils
from
"~/utils"
;
import
Ptap
from
"~/views/Public/Ptap"
;
import
Ptap
from
"~/views/Public/Ptap"
;
import
Docpre
from
"~/views/Public/Docpre"
;
import
Docpre
from
"~/views/Public/Docpre"
;
export
default
{
export
default
{
components
:
{
components
:
{
"c-ptap"
:
Ptap
,
"c-ptap"
:
Ptap
,
"c-docpre"
:
Docpre
,
"c-docpre"
:
Docpre
,
},
},
inject
:
[
"root"
],
inject
:
[
"root"
],
props
:
[
"model"
,
"codes"
],
props
:
[
"model"
,
"codes"
],
mixins
:
[
commonProcess
],
mixins
:
[
commonProcess
],
data
()
{
data
()
{
return
{
return
{
codeTable2
:
[
codeTable2
:
[
{
label
:
"金(含金饰品)"
,
value
:
"001"
},
{
label
:
"金(含金饰品)"
,
value
:
"001"
},
{
label
:
"银(含银饰品)"
,
value
:
"002"
},
{
label
:
"银(含银饰品)"
,
value
:
"002"
},
{
label
:
"铜(含电解铜、铜制品及铜精矿)"
,
value
:
"003"
},
{
label
:
"铜(含电解铜、铜制品及铜精矿)"
,
value
:
"003"
},
{
label
:
"铝(含电解铝、铝矾土及铝制品)"
,
value
:
"004"
},
{
label
:
"铝(含电解铝、铝矾土及铝制品)"
,
value
:
"004"
},
{
label
:
"锌(含电解锌、锌精矿)"
,
value
:
"005"
},
{
label
:
"锌(含电解锌、锌精矿)"
,
value
:
"005"
},
{
label
:
"铁砂矿(含精矿)"
,
value
:
"006"
},
{
label
:
"铁砂矿(含精矿)"
,
value
:
"006"
},
{
label
:
"其他金属"
,
value
:
"007"
},
{
label
:
"其他金属"
,
value
:
"007"
},
{
label
:
"大豆"
,
value
:
"008"
},
{
label
:
"大豆"
,
value
:
"008"
},
{
label
:
"玉米"
,
value
:
"009"
},
{
label
:
"玉米"
,
value
:
"009"
},
{
label
:
"原油"
,
value
:
"010"
},
{
label
:
"原油"
,
value
:
"010"
},
{
label
:
"食用油(含棕榈油)"
,
value
:
"011"
},
{
label
:
"食用油(含棕榈油)"
,
value
:
"011"
},
{
label
:
"煤"
,
value
:
"013"
},
{
label
:
"煤"
,
value
:
"013"
},
{
label
:
"其他"
,
value
:
"099"
},
{
label
:
"其他"
,
value
:
"099"
},
],
],
columns
:
[
'0 0 "lst1" 100 '
,
'1 1 "lst2" 100'
,
'2 2 "document" 200'
],
columns
:
[
'0 0 "lst1" 100 '
,
'1 1 "lst2" 100'
,
'2 2 "document" 200'
],
codeTable
:
[
codeTable
:
[
{
label
:
"Airway Bills"
,
value
:
"Airway Bills"
},
{
label
:
"Airway Bills"
,
value
:
"Airway Bills"
},
{
label
:
"Beneficiary's Declaration"
,
value
:
"Beneficiary's Declaration"
},
{
label
:
"Beneficiary's Declaration"
,
value
:
"Beneficiary's Declaration"
},
{
label
:
"Bill of Lading Copies"
,
value
:
"Bill of Lading Copies"
},
{
label
:
"Bill of Lading Copies"
,
value
:
"Bill of Lading Copies"
},
{
label
:
"Bill of Lading Originals"
,
value
:
"Bill of Lading Originals"
},
{
label
:
"Bill of Lading Originals"
,
value
:
"Bill of Lading Originals"
},
{
label
:
"Certificate"
,
value
:
"Certificate"
},
{
label
:
"Certificate"
,
value
:
"Certificate"
},
{
label
:
"Certificate of Analysis"
,
value
:
"Certificate of Analysis"
},
{
label
:
"Certificate of Analysis"
,
value
:
"Certificate of Analysis"
},
{
label
:
"Certificate of Origin"
,
value
:
"Certificate of Origin"
},
{
label
:
"Certificate of Origin"
,
value
:
"Certificate of Origin"
},
{
label
:
"Certificate of Quality"
,
value
:
"Certificate of Quality"
},
{
label
:
"Certificate of Quality"
,
value
:
"Certificate of Quality"
},
{
label
:
"Certificate of Quantity"
,
value
:
"Certificate of Quantity"
},
{
label
:
"Certificate of Quantity"
,
value
:
"Certificate of Quantity"
},
{
label
:
"Commercial Invoice"
,
value
:
"Commercial Invoice"
},
{
label
:
"Commercial Invoice"
,
value
:
"Commercial Invoice"
},
{
label
:
"Courier Receipt"
,
value
:
"Courier Receipt"
},
{
label
:
"Courier Receipt"
,
value
:
"Courier Receipt"
},
{
label
:
"Draft"
,
value
:
"Draft"
},
{
label
:
"Draft"
,
value
:
"Draft"
},
{
label
:
"Export Licence"
,
value
:
"Export Licence"
},
{
label
:
"Export Licence"
,
value
:
"Export Licence"
},
{
label
:
"Fax Report"
,
value
:
"Fax Report"
},
{
label
:
"Fax Report"
,
value
:
"Fax Report"
},
{
label
:
"Inspection Cert"
,
value
:
"Inspection Cert"
},
{
label
:
"Inspection Cert"
,
value
:
"Inspection Cert"
},
{
label
:
"Insurance Policy"
,
value
:
"Insurance Policy"
},
{
label
:
"Insurance Policy"
,
value
:
"Insurance Policy"
},
{
label
:
"Packing List"
,
value
:
"Packing List"
},
{
label
:
"Packing List"
,
value
:
"Packing List"
},
{
label
:
"Shipment Advice"
,
value
:
"Shipment Advice"
},
{
label
:
"Shipment Advice"
,
value
:
"Shipment Advice"
},
{
label
:
"Weight List"
,
value
:
"Weight List"
},
{
label
:
"Weight List"
,
value
:
"Weight List"
},
],
],
// TableValue: [
// TableValue: [
// {
// {
// id: 0,
// id: 0,
// cmail1: "",
// cmail1: "",
// cmail2: "",
// cmail2: "",
// docnam: "",
// docnam: "",
// description: "",
// description: "",
// serialNum: "",
// serialNum: "",
// tableName: "",
// tableName: "",
// tcddoc: "",
// tcddoc: "",
// },
// },
// ],
// ],
newValue
:
{
newValue
:
{
id
:
0
,
id
:
0
,
cmail1
:
""
,
cmail1
:
""
,
cmail2
:
""
,
cmail2
:
""
,
docnam
:
""
,
docnam
:
""
,
description
:
""
,
description
:
""
,
serialNum
:
""
,
serialNum
:
""
,
tableName
:
""
,
tableName
:
""
,
tcddoc
:
""
,
tcddoc
:
""
,
},
invtyp
:
[
{
label
:
"type1"
,
value
:
"1"
}
],
};
},
methods
:
{
...
Event
,
addTableValue
(
index
)
{
var
newTableValue
=
Object
.
assign
({},
this
.
newValue
);
const
serial
=
Utils
.
generateUUID
();
newTableValue
.
serialNum
=
serial
;
this
.
model
.
botp
.
docgrdm
.
docgrd
.
splice
(
index
-
1
,
0
,
newTableValue
);
// var index = this.TableValue.length;
// if (index > 0) {
// newTableValue.id = this.TableValue[index - 1].id + 1;
// }
// this.TableValue.push(newTableValue);
},
deleteTable
(
index
)
{
this
.
model
.
botp
.
docgrdm
.
docgrd
.
splice
(
index
,
1
);
// console.log(row)
// console.log(this.TableValue)
// for (let i = 0; i
<
this
.
TableValue
.
length
;
i
++
)
{
// if (this.TableValue[i].id == row.id) {
// this.TableValue.splice(i, 1);
// break;
// }
// }
},
async
docpre
()
{
let
rtnmsg
=
await
this
.
executeDefault
(
'bodgrp.blk.docpre'
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
)
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
},
invtyp
:
[
{
label
:
"type1"
,
value
:
"1"
}
],
};
},
methods
:
{
...
Event
,
addTableValue
(
index
)
{
var
newTableValue
=
Object
.
assign
({},
this
.
newValue
);
const
serial
=
Utils
.
generateUUID
();
newTableValue
.
serialNum
=
serial
;
this
.
model
.
botp
.
docgrdm
.
docgrd
.
splice
(
index
-
1
,
0
,
newTableValue
);
// var index = this.TableValue.length;
// if (index > 0) {
// newTableValue.id = this.TableValue[index - 1].id + 1;
// }
// this.TableValue.push(newTableValue);
},
},
deleteTable
(
index
)
{
computed
:
{
this
.
model
.
botp
.
docgrdm
.
docgrd
.
splice
(
index
,
1
);
flag
()
{
// console.log(row)
return
this
.
model
.
bodgrp
.
drr
.
pts
.
adrelc
==
""
;
// console.log(this.TableValue)
},
// for (let i = 0; i
<
this
.
TableValue
.
length
;
i
++
)
{
// if (this.TableValue[i].id == row.id) {
// this.TableValue.splice(i, 1);
// break;
// }
// }
},
async
docpre
()
{
let
rtnmsg
=
await
this
.
executeDefault
(
'bodgrp.blk.docpre'
)
if
(
rtnmsg
.
respCode
==
SUCCESS
)
{
//TODO 处理数据逻辑
this
.
updateModel
(
rtnmsg
.
data
)
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
}
},
},
created
:
function
()
{
},
console
.
log
(
this
.
root
);
computed
:
{
flag
()
{
return
this
.
model
.
bodgrp
.
drr
.
pts
.
adrelc
==
""
;
},
},
},
}
created
:
function
()
{
console
.
log
(
this
.
root
);
},
}
</
script
>
</
script
>
<
style
>
<
style
>
.messageLabel
>>>
.el-form-item__label
{
.messageLabel
>>>
.el-form-item__label
{
text-align
:
left
;
text-align
:
left
;
font-weight
:
bold
;
font-weight
:
bold
;
font-size
:
12px
;
font-size
:
12px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/Business/Botdcr/Inst.vue
View file @
6695f348
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<c-col
:span=
"24"
>
<c-col
:span=
"24"
>
<el-form-item
label=
""
prop=
"bodgrp.blk.colinsflg"
>
<el-form-item
label=
""
prop=
"bodgrp.blk.colinsflg"
>
<c-checkbox
v-model=
"colinsflg"
disabled
>
Collection i
nstructions modified
</c-checkbox>
<c-checkbox
v-model=
"colinsflg"
disabled
>
Delivery of Documents I
nstructions modified
</c-checkbox>
</el-form-item>
</el-form-item>
</c-col>
</c-col>
...
...
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