Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-app-project
Project
Project
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
李星剑
hs-app-project
Commits
1cc83710
Commit
1cc83710
authored
Dec 07, 2021
by
阮藤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
相关页面编写 接口调整
parent
df8604ea
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
209 additions
and
34 deletions
+209
-34
orderTicket.js
src/config/request/apiList/orderTicket.js
+8
-0
plm.js
src/config/request/apiList/plm.js
+0
-16
apis.js
src/config/request/apis.js
+4
-6
search.vue
src/pages/home/components/search.vue
+118
-0
index.vue
src/pages/home/index.vue
+3
-2
modelingOrder.vue
src/pages/home/modelingOrder.vue
+33
-5
styleEntrustment.vue
src/pages/home/styleEntrustment.vue
+43
-5
No files found.
src/config/request/apiList/orderTicket.js
View file @
1cc83710
...
@@ -62,5 +62,13 @@ export default {
...
@@ -62,5 +62,13 @@ export default {
url
:
`
${
base
}
/materialDetail`
,
url
:
`
${
base
}
/materialDetail`
,
method
:
'get'
method
:
'get'
},
},
toBeSelectedQuantity
:
{
url
:
`
${
base
}
/toBeSelectedQuantity`
,
method
:
"get"
},
orderTicketExceptionNum
:
{
url
:
`
${
base
}
/orderTicketExceptionNum`
,
method
:
"get"
},
}
}
}
}
src/config/request/apiList/plm.js
deleted
100644 → 0
View file @
df8604ea
export
default
{
plm
:
{
toBeSelectedQuantity
:
{
url
:
'/gdep-plm/orderTicket/toBeSelectedQuantity'
,
method
:
"get"
},
orderTicketExceptionNum
:
{
url
:
'/gdep-plm/orderTicket/orderTicketExceptionNum'
,
method
:
"get"
},
abolishByIds
:
{
url
:
'/gdep-plm/orderTicket/abolishByIds'
,
method
:
"put"
},
}
}
src/config/request/apis.js
View file @
1cc83710
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
*/
*/
import
user
from
'./apiList/user.js'
import
user
from
'./apiList/user.js'
import
auth
from
'./apiList/auth.js'
import
auth
from
'./apiList/auth.js'
import
plm
from
'./apiList/plm.js'
import
color
from
'./apiList/colors.js'
import
color
from
'./apiList/colors.js'
import
orderTicket
from
'./apiList/orderTicket.js'
import
orderTicket
from
'./apiList/orderTicket.js'
// import goods from './apiList/goods.js'
// import goods from './apiList/goods.js'
...
@@ -13,6 +12,5 @@ export default {
...
@@ -13,6 +12,5 @@ export default {
...
user
,
...
user
,
...
auth
,
...
auth
,
...
color
,
...
color
,
...
orderTicket
,
...
orderTicket
...
plm
};
};
src/pages/home/components/search.vue
0 → 100644
View file @
1cc83710
<
template
>
<!-- 搜索界面 -->
<view
class=
""
>
<u-navbar
:is-back=
"true"
:background=
"
{ backgroundColor: '#F5F5F5' }" title="">
<view
class=
"slot-wrap"
>
<view
class=
"search-wrap"
>
<u-search
@
change=
"changeCli"
@
search=
"searchEng"
bg-color=
"#fff"
border-color=
"#d5aa7a"
placeholder=
"请输入名称"
:show-action=
"false"
v-model=
"value"
></u-search>
</view>
</view>
</u-navbar>
<!-- 列表 -->
<view
class=
"home_con_order u-p-l-30 u-p-r-30"
>
<view
class=
"u-m-t-30"
@
click=
"searchEng(item.materialName)"
v-for=
"item in fiabricList"
>
<text>
{{
item
.
materialName
}}
</text>
</view>
</view>
<u-toast
ref=
"uToast"
/>
</view>
</
template
>
<
script
>
import
home
from
'../mixin/index.js'
;
export
default
{
mixins
:
[
home
],
data
()
{
return
{
value
:
''
,
size
:
10
,
total
:
0
,
state
:
1
,
fiabricList
:
[]
};
},
onLoad
(
option
)
{
this
.
state
=
option
.
state
;
},
methods
:
{
filterSwitch
()
{
const
val
=
this
.
state
;
switch
(
val
)
{
case
1
:
// 款式
this
.
entrustmentPage
();
return
;
case
2
:
// 建模
return
;
default
:
// 款式
this
.
entrustmentPage
();
return
;
}
},
changeCli
()
{
this
.
size
=
10
;
this
.
filterSwitch
();
},
searchEng
(
item
)
{
let
data
=
item
||
this
.
value
;
try
{
uni
.
setStorageSync
(
'styleSearch'
,
data
);
uni
.
navigateBack
({
delta
:
1
});
}
catch
(
e
)
{
// error
}
},
// 款式委托
entrustmentPage
()
{
this
.
$http
(
'orderTicket.entrustmentPage'
,
{
size
:
this
.
size
,
materialCode
:
''
,
status
:
0
,
materialName
:
this
.
value
},
'加载中...'
)
.
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
this
.
fiabricList
=
data
.
data
;
this
.
total
=
data
.
total
;
this
.
$refs
.
uToast
.
show
({
title
:
'操作成功'
});
}
})
.
catch
(
err
=>
{
this
.
$refs
.
uToast
.
show
({
title
:
'操作失败'
});
});
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.slot-wrap
{
display
:
flex
;
align-items
:
center
;
flex
:
1
;
}
.search-wrap
{
margin
:
0
20rpx
;
flex
:
1
;
}
</
style
>
src/pages/home/index.vue
View file @
1cc83710
...
@@ -118,7 +118,7 @@ export default {
...
@@ -118,7 +118,7 @@ export default {
methods
:
{
methods
:
{
// 选款总数
// 选款总数
toBeSelectedQuantity
()
{
toBeSelectedQuantity
()
{
this
.
$http
(
'
plm
.toBeSelectedQuantity'
,
{}).
then
(
res
=>
{
this
.
$http
(
'
orderTicket
.toBeSelectedQuantity'
,
{}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
quantityNum
=
data
;
this
.
quantityNum
=
data
;
...
@@ -127,7 +127,7 @@ export default {
...
@@ -127,7 +127,7 @@ export default {
},
},
// 异常总数
// 异常总数
orderTicketExceptionNum
()
{
orderTicketExceptionNum
()
{
this
.
$http
(
'
plm
.orderTicketExceptionNum'
,
{}).
then
(
res
=>
{
this
.
$http
(
'
orderTicket
.orderTicketExceptionNum'
,
{}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
exceptionNum
=
data
;
this
.
exceptionNum
=
data
;
...
@@ -157,6 +157,7 @@ export default {
...
@@ -157,6 +157,7 @@ export default {
});
});
},
},
searchCli
()
{
searchCli
()
{
// 搜索面料===1 搜索建模===2
this
.
$Router
.
push
(
'/pages/home/search'
);
this
.
$Router
.
push
(
'/pages/home/search'
);
},
},
seeFabric
()
{
seeFabric
()
{
...
...
src/pages/home/modelingOrder.vue
View file @
1cc83710
<
template
>
<
template
>
<!--
款式委托
-->
<!--
建模订单
-->
<view
class=
""
>
<view
class=
""
>
<view
class=
"u-relative l_r_t_b"
:style=
"
{ height: 'calc(100vh - ' + footerHeight + 'px)' }">
<view
class=
"u-relative l_r_t_b"
:style=
"
{ height: 'calc(100vh - ' + footerHeight + 'px)' }">
<view
class=
"bg_img"
id=
"header"
>
<view
class=
"bg_img"
id=
"header"
>
<u-navbar
:is-back=
"true"
:border-bottom=
"false"
:background=
"background"
title-color=
"#000"
title=
"建模订单"
>
<u-navbar
:is-back=
"true"
:border-bottom=
"false"
:background=
"background"
title-color=
"#000"
title=
""
>
<view
class=
"u-flex u-row-center u-flex-1 hs-weight-600 u-font-36"
>
<text
v-if=
"searchFlag"
class=
"map-wrap-text"
>
建模订单
</text>
<u-search
v-if=
"!searchFlag"
class=
"u-m-r-24"
bg-color=
"#fff"
@
click=
"searchCli"
:disabled=
"true"
border-color=
"#d5aa7a"
placeholder=
"请输入面料名称"
:show-action=
"false"
v-model=
"value"
></u-search>
</view>
<template
v-slot:right
>
<template
v-slot:right
>
<view
class=
"u-m-r-24"
><u-icon
name=
"search"
size=
"38"
></u-icon></view>
<view
v-if=
"searchFlag"
@
click=
"searchCli"
class=
"u-m-r-24"
><u-icon
name=
"search"
size=
"38"
></u-icon></view>
</
template
>
</
template
>
</u-navbar>
</u-navbar>
<!-- 总数 -->
<!-- 总数 -->
...
@@ -94,6 +108,8 @@ export default {
...
@@ -94,6 +108,8 @@ export default {
mixins
:
[
dom
],
mixins
:
[
dom
],
data
()
{
data
()
{
return
{
return
{
value
:
''
,
searchFlag
:
true
,
loadStatus
:
'loadmore'
,
loadStatus
:
'loadmore'
,
offsetTop
:
0
,
offsetTop
:
0
,
enable
:
true
,
enable
:
true
,
...
@@ -150,6 +166,13 @@ export default {
...
@@ -150,6 +166,13 @@ export default {
this
.
noSampleOrder
();
this
.
noSampleOrder
();
},
},
onShow
()
{
onShow
()
{
// 获取查询条件
this
.
value
=
uni
.
getStorageSync
(
'styleSearch'
)
||
''
;
uni
.
removeStorageSync
(
'styleSearch'
);
this
.
entrustmentPage
();
this
.
toBeSelectedQuantity
();
this
.
orderTicketExceptionNum
();
this
.
noSampleOrder
();
this
.
enable
=
true
;
this
.
enable
=
true
;
// #ifdef APP-PLUS
// #ifdef APP-PLUS
this
.
setOffestTop
();
this
.
setOffestTop
();
...
@@ -230,7 +253,7 @@ export default {
...
@@ -230,7 +253,7 @@ export default {
},
},
// 选款总数
// 选款总数
toBeSelectedQuantity
()
{
toBeSelectedQuantity
()
{
this
.
$http
(
'
plm
.toBeSelectedQuantity'
,
{}).
then
(
res
=>
{
this
.
$http
(
'
orderTicket
.toBeSelectedQuantity'
,
{}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
quantityNum
=
data
;
this
.
quantityNum
=
data
;
...
@@ -239,7 +262,7 @@ export default {
...
@@ -239,7 +262,7 @@ export default {
},
},
// 异常总数
// 异常总数
orderTicketExceptionNum
()
{
orderTicketExceptionNum
()
{
this
.
$http
(
'
plm
.orderTicketExceptionNum'
,
{}).
then
(
res
=>
{
this
.
$http
(
'
orderTicket
.orderTicketExceptionNum'
,
{}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
exceptionNum
=
data
;
this
.
exceptionNum
=
data
;
...
@@ -330,6 +353,11 @@ export default {
...
@@ -330,6 +353,11 @@ export default {
}
}
});
});
},
},
// 点击搜索按钮
searchCli
()
{
this
.
$Router
.
push
(
'/pages/home/components/search?state=1'
);
this
.
searchFlag
=
false
;
},
// 编辑 拆单
// 编辑 拆单
dateilEnt
(
item
,
val
)
{
dateilEnt
(
item
,
val
)
{
if
(
val
==
'拆单'
)
{
if
(
val
==
'拆单'
)
{
...
...
src/pages/home/styleEntrustment.vue
View file @
1cc83710
...
@@ -3,9 +3,23 @@
...
@@ -3,9 +3,23 @@
<view
class=
""
>
<view
class=
""
>
<view
class=
"u-relative l_r_t_b"
:style=
"
{ height: 'calc(100vh - ' + footerHeight + 'px)' }">
<view
class=
"u-relative l_r_t_b"
:style=
"
{ height: 'calc(100vh - ' + footerHeight + 'px)' }">
<view
class=
"bg_img"
id=
"header"
>
<view
class=
"bg_img"
id=
"header"
>
<u-navbar
:is-back=
"true"
:border-bottom=
"false"
:background=
"background"
title-color=
"#000"
title=
"款式委托"
>
<u-navbar
:is-back=
"true"
:border-bottom=
"false"
:background=
"background"
title-color=
"#000"
title=
""
>
<view
class=
"u-flex u-row-center u-flex-1 hs-weight-600 u-font-36"
>
<text
v-if=
"searchFlag"
class=
"map-wrap-text"
>
款式委托
</text>
<u-search
v-if=
"!searchFlag"
class=
"u-m-r-24"
bg-color=
"#fff"
@
click=
'searchCli'
:disabled=
"true"
border-color=
"#d5aa7a"
placeholder=
"请输入面料名称"
:show-action=
"false"
v-model=
"value"
></u-search>
</view>
<template
v-slot:right
>
<template
v-slot:right
>
<view
class=
"u-m-r-24"
><u-icon
name=
"search"
size=
"38"
></u-icon></view>
<view
v-if=
"searchFlag"
@
click=
"searchCli"
class=
"u-m-r-24"
><u-icon
name=
"search"
size=
"38"
></u-icon></view>
</
template
>
</
template
>
</u-navbar>
</u-navbar>
<!-- 总数 -->
<!-- 总数 -->
...
@@ -89,6 +103,8 @@ export default {
...
@@ -89,6 +103,8 @@ export default {
mixins
:
[
dom
],
mixins
:
[
dom
],
data
()
{
data
()
{
return
{
return
{
value
:
''
,
searchFlag
:
true
,
loadStatus
:
'loadmore'
,
loadStatus
:
'loadmore'
,
offsetTop
:
0
,
offsetTop
:
0
,
enable
:
true
,
enable
:
true
,
...
@@ -145,6 +161,13 @@ export default {
...
@@ -145,6 +161,13 @@ export default {
this
.
noSampleOrder
();
this
.
noSampleOrder
();
},
},
onShow
()
{
onShow
()
{
// 获取查询条件
this
.
value
=
uni
.
getStorageSync
(
'styleSearch'
)
||
''
;
uni
.
removeStorageSync
(
'styleSearch'
);
this
.
entrustmentPage
();
this
.
toBeSelectedQuantity
();
this
.
orderTicketExceptionNum
();
this
.
noSampleOrder
();
this
.
enable
=
true
;
this
.
enable
=
true
;
// #ifdef APP-PLUS
// #ifdef APP-PLUS
this
.
setOffestTop
();
this
.
setOffestTop
();
...
@@ -225,7 +248,7 @@ export default {
...
@@ -225,7 +248,7 @@ export default {
},
},
// 选款总数
// 选款总数
toBeSelectedQuantity
()
{
toBeSelectedQuantity
()
{
this
.
$http
(
'
plm
.toBeSelectedQuantity'
,
{}).
then
(
res
=>
{
this
.
$http
(
'
orderTicket
.toBeSelectedQuantity'
,
{}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
quantityNum
=
data
;
this
.
quantityNum
=
data
;
...
@@ -234,7 +257,7 @@ export default {
...
@@ -234,7 +257,7 @@ export default {
},
},
// 异常总数
// 异常总数
orderTicketExceptionNum
()
{
orderTicketExceptionNum
()
{
this
.
$http
(
'
plm
.orderTicketExceptionNum'
,
{}).
then
(
res
=>
{
this
.
$http
(
'
orderTicket
.orderTicketExceptionNum'
,
{}).
then
(
res
=>
{
let
{
code
,
data
}
=
res
;
let
{
code
,
data
}
=
res
;
if
(
code
==
200
)
{
if
(
code
==
200
)
{
this
.
exceptionNum
=
data
;
this
.
exceptionNum
=
data
;
...
@@ -325,12 +348,16 @@ export default {
...
@@ -325,12 +348,16 @@ export default {
}
}
});
});
},
},
// 点击搜索按钮
searchCli
()
{
this
.
$Router
.
push
(
'/pages/home/components/search?state=1'
);
this
.
searchFlag
=
false
;
},
// 编辑 拆单
// 编辑 拆单
dateilEnt
(
item
,
val
)
{
dateilEnt
(
item
,
val
)
{
if
(
val
==
'拆单'
)
{
if
(
val
==
'拆单'
)
{
this
.
$Router
.
push
(
'/pages/designCommissioned/splitItem?id='
+
item
.
id
);
this
.
$Router
.
push
(
'/pages/designCommissioned/splitItem?id='
+
item
.
id
);
}
else
if
(
val
==
'编辑'
)
{
}
else
if
(
val
==
'编辑'
)
{
// &id=${item.id}
uni
.
setStorageSync
(
'_item'
,
item
);
uni
.
setStorageSync
(
'_item'
,
item
);
this
.
$Router
.
push
(
`/pages/designCommissioned/addItem?id=
${
item
.
id
}
&status=1`
);
this
.
$Router
.
push
(
`/pages/designCommissioned/addItem?id=
${
item
.
id
}
&status=1`
);
}
else
if
(
val
==
'选款'
)
{
}
else
if
(
val
==
'选款'
)
{
...
@@ -465,4 +492,15 @@ export default {
...
@@ -465,4 +492,15 @@ export default {
border-radius
:
100rpx
;
border-radius
:
100rpx
;
}
}
}
}
.map-wrap
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
22rpx
;
}
.map-wrap-text
{
padding
:
0
6rpx
;
}
</
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