Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
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
lanbaoming
jiedao-app-operator-master
Commits
81be4b1e
Commit
81be4b1e
authored
Nov 03, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: 查询条件联调&查看代理商详情显示修改
parent
a513489c
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
158 additions
and
102 deletions
+158
-102
main.js
src/main.js
+2
-1
ruoyi.js
src/utils/ruoyi.js
+25
-0
indexAir.vue
src/views/ecw/box/indexAir.vue
+54
-47
indexSea.vue
src/views/ecw/box/indexSea.vue
+73
-50
agent.vue
src/views/ecw/box/shippingAir/nodePage/agent.vue
+1
-1
agent.vue
src/views/ecw/box/shippingSea/nodePage/agent.vue
+1
-1
supplierSelect.vue
...ws/ecw/box/shippingSea/nodePage/common/supplierSelect.vue
+2
-2
No files found.
src/main.js
View file @
81be4b1e
...
...
@@ -15,7 +15,7 @@ import './permission' // permission control
import
'
./tongji
'
// 百度统计
import
{
getDicts
}
from
"
@/api/system/dict/data
"
;
import
{
getConfigKey
}
from
"
@/api/infra/config
"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
addBeginAndEndTime
,
handleTree
}
from
"
@/utils/ruoyi
"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
addBeginAndEndTime
,
addBeginAndEndTimeNew
,
handleTree
}
from
"
@/utils/ruoyi
"
;
import
Pagination
from
"
@/components/Pagination
"
;
// 自定义表格工具扩展
import
RightToolbar
from
"
@/components/RightToolbar
"
...
...
@@ -33,6 +33,7 @@ Vue.prototype.parseTime = parseTime
Vue
.
prototype
.
resetForm
=
resetForm
Vue
.
prototype
.
addDateRange
=
addDateRange
Vue
.
prototype
.
addBeginAndEndTime
=
addBeginAndEndTime
Vue
.
prototype
.
addBeginAndEndTimeNew
=
addBeginAndEndTimeNew
Vue
.
prototype
.
getDictDatas
=
getDictDatas
Vue
.
prototype
.
getDictDatas2
=
getDictDatas2
Vue
.
prototype
.
getDictDataLabel
=
getDictDataLabel
...
...
src/utils/ruoyi.js
View file @
81be4b1e
...
...
@@ -105,6 +105,31 @@ export function addBeginAndEndTime(params, dateRange, propName,isTime = true) {
return
params
;
}
export
function
addBeginAndEndTimeNew
(
params
,
dateRange
,
prefixName
,
propName
,
isTime
=
true
)
{
// 必须传入参数
if
(
!
dateRange
)
{
return
params
;
}
// 如果未传递 propName 属性,默认为 time
if
(
!
propName
)
{
propName
=
'
Time
'
;
}
else
{
propName
=
propName
.
charAt
(
0
).
toUpperCase
()
+
propName
.
slice
(
1
);
}
if
(
!
prefixName
)
{
prefixName
=
''
}
console
.
log
(
'
dateRange
'
,
dateRange
)
// 设置参数
if
(
dateRange
[
0
])
{
params
[
prefixName
+
'
Begin
'
+
propName
]
=
dateRange
[
0
]
+
(
isTime
?
'
00:00:00
'
:
''
);
}
if
(
dateRange
[
1
])
{
params
[
prefixName
+
'
End
'
+
propName
]
=
dateRange
[
1
]
+
(
isTime
?
'
23:59:59
'
:
''
);
}
return
params
;
}
// 字符串格式化(%s )
export
function
sprintf
(
str
)
{
var
args
=
arguments
,
flag
=
true
,
i
=
1
;
...
...
src/views/ecw/box/indexAir.vue
View file @
81be4b1e
This diff is collapsed.
Click to expand it.
src/views/ecw/box/indexSea.vue
View file @
81be4b1e
This diff is collapsed.
Click to expand it.
src/views/ecw/box/shippingAir/nodePage/agent.vue
View file @
81be4b1e
...
...
@@ -3,7 +3,7 @@
<el-form
ref=
"agentForm"
:model=
"agentObj"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
:label=
"$t('代理商Agent')"
prop=
"agentId"
>
<supplierOutSelect
v-model=
"agentObj.agentId"
:companyType=
"'1'"
:areaType=
"1"
:placeholder=
"$t('请选择代理商')"
:allSupplier=
"this.$attrs.allSupplier"
/>
<el-button
v-hasPermi=
"['ecw:supplier:query']"
type=
"text"
style=
"font-size: 13px; margin-left: 240px;"
@
click=
"SupplierDetail"
>
{{
$t
(
'
查看代理商详情
'
)
}}
</el-button>
<el-button
v-
if=
"agentObj.agentId"
v-
hasPermi=
"['ecw:supplier:query']"
type=
"text"
style=
"font-size: 13px; margin-left: 240px;"
@
click=
"SupplierDetail"
>
{{
$t
(
'
查看代理商详情
'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
...
...
src/views/ecw/box/shippingSea/nodePage/agent.vue
View file @
81be4b1e
...
...
@@ -3,7 +3,7 @@
<el-form
ref=
"agentForm"
:model=
"agentObj"
:rules=
"rules"
label-width=
"120px"
>
<el-form-item
:label=
"$t('代理商Agent')"
prop=
"agentId"
>
<supplierOutSelect
v-model=
"agentObj.agentId"
:companyType=
"'1'"
:areaType=
"1"
:placeholder=
"$t('请选择代理商')"
:allSupplier=
"this.$attrs.allSupplier"
/>
<el-button
v-hasPermi=
"['ecw:supplier:query']"
type=
"text"
style=
"font-size: 13px; margin-left: 240px;"
@
click=
"SupplierDetail"
>
{{
$t
(
'
查看代理商详情
'
)
}}
</el-button>
<el-button
v-hasPermi=
"['ecw:supplier:query']"
v-if=
"agentObj.agentId"
type=
"text"
style=
"font-size: 13px; margin-left: 240px;"
@
click=
"SupplierDetail"
>
{{
$t
(
'
查看代理商详情
'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-row
class=
"operate-button"
>
...
...
src/views/ecw/box/shippingSea/nodePage/common/supplierSelect.vue
View file @
81be4b1e
...
...
@@ -43,8 +43,8 @@ export default {
(
item
)
=>
item
.
areaType
==
this
.
areaType
);
if
(
this
.
areaType
==
1
||
!
this
.
companyType
)
return
allSupplier
;
return
allSupplier
.
filter
((
item
)
=>
item
.
companyTypes
.
includes
(
this
.
companyType
)
return
allSupplier
?
.
filter
((
item
)
=>
item
.
companyTypes
?
.
includes
(
this
.
companyType
)
);
},
},
...
...
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