Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a5f56f6f
authored
Apr 26, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
库存查询
parent
7b824ebf
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
210 additions
and
70 deletions
manifest.json
pages/immediatelyStockIn/index.vue
pages/immediatelyStockIn/list.vue
pages/repairPrint/index.vue
pages/stockRecheck/print.vue
manifest.json
View file @
a5f56f6f
{
{
"name"
:
"wmsApp"
,
"name"
:
"wmsApp"
,
"appid"
:
"__UNI__655E80D"
,
"appid"
:
"__UNI__655E80D"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
/*
模块配置
*/
/*
模块配置
*/
"modules"
:
{},
"modules"
:
{},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
...
@@ -41,47 +41,79 @@
...
@@ -41,47 +41,79 @@
]
]
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
"dSYMs"
:
false
"dSYMs"
:
false
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"ad"
:
{}
"ad"
:
{}
},
"icons"
:
{
"android"
:
{
"hdpi"
:
"unpackage/res/icons/72x72.png"
,
"xhdpi"
:
"unpackage/res/icons/96x96.png"
,
"xxhdpi"
:
"unpackage/res/icons/144x144.png"
,
"xxxhdpi"
:
"unpackage/res/icons/192x192.png"
},
"ios"
:
{
"appstore"
:
"unpackage/res/icons/1024x1024.png"
,
"ipad"
:
{
"app"
:
"unpackage/res/icons/76x76.png"
,
"app@2x"
:
"unpackage/res/icons/152x152.png"
,
"notification"
:
"unpackage/res/icons/20x20.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"proapp@2x"
:
"unpackage/res/icons/167x167.png"
,
"settings"
:
"unpackage/res/icons/29x29.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"spotlight"
:
"unpackage/res/icons/40x40.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
},
"iphone"
:
{
"app@2x"
:
"unpackage/res/icons/120x120.png"
,
"app@3x"
:
"unpackage/res/icons/180x180.png"
,
"notification@2x"
:
"unpackage/res/icons/40x40.png"
,
"notification@3x"
:
"unpackage/res/icons/60x60.png"
,
"settings@2x"
:
"unpackage/res/icons/58x58.png"
,
"settings@3x"
:
"unpackage/res/icons/87x87.png"
,
"spotlight@2x"
:
"unpackage/res/icons/80x80.png"
,
"spotlight@3x"
:
"unpackage/res/icons/120x120.png"
}
}
}
}
},
},
"nvueLaunchMode"
:
""
"nvueLaunchMode"
:
""
},
},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx61a41a064fa2fb3c"
,
"appid"
:
"wx61a41a064fa2fb3c"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
,
"urlCheck"
:
false
,
"postcss"
:
true
,
"postcss"
:
true
,
"es6"
:
false
,
"es6"
:
false
,
"minified"
:
true
"minified"
:
true
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
},
},
"vueVersion"
:
"2"
,
"vueVersion"
:
"2"
,
"quickapp-webview"
:
{
"quickapp-webview"
:
{
"icon"
:
"wms"
,
"icon"
:
"wms"
,
"package"
:
"com.liexin.wms"
,
"package"
:
"com.liexin.wms"
,
"versionName"
:
"1.0"
,
"versionName"
:
"1.0"
,
"minPlatformVersion"
:
"1.0"
"minPlatformVersion"
:
"1.0"
},
},
"fallbackLocale"
:
"zh-Hans"
"fallbackLocale"
:
"zh-Hans"
}
}
\ No newline at end of file
pages/immediatelyStockIn/index.vue
View file @
a5f56f6f
...
@@ -3,30 +3,34 @@
...
@@ -3,30 +3,34 @@
<view
class=
"form-input row verCenter"
>
<view
class=
"form-input row verCenter"
>
<text
class=
"text row verCenter"
>
货品编码
</text>
<text
class=
"text row verCenter"
>
货品编码
</text>
<view
class=
"row bothSide verCenter input-wrap"
>
<view
class=
"row bothSide verCenter input-wrap"
>
<input
type=
"text"
placeholder=
"请输入货品编码"
placeholder-style=
"color:#919399"
class=
"uni-input"
/>
<input
type=
"text"
placeholder=
"请输入货品编码"
placeholder-style=
"color:#919399"
class=
"uni-input"
v-model=
"formParams.goods_sn"
@
input=
"handleInput(1, $event)"
/>
<text
class=
"iconfont icon-a-juxing11"
></text>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(1)"
v-if=
"input_goods_sn"
></text>
</view>
</view>
</view>
</view>
<view
class=
"form-input row verCenter"
>
<view
class=
"form-input row verCenter"
>
<text
class=
"text row verCenter"
>
货品名称
</text>
<text
class=
"text row verCenter"
>
货品名称
</text>
<view
class=
"row bothSide verCenter input-wrap"
>
<view
class=
"row bothSide verCenter input-wrap"
>
<input
type=
"text"
placeholder=
"请输入货品名称"
placeholder-style=
"color:#919399"
class=
"uni-input"
/>
<input
type=
"text"
placeholder=
"请输入货品名称"
placeholder-style=
"color:#919399"
class=
"uni-input"
v-model=
"formParams.goods_name"
@
input=
"handleInput(2, $event)"
/>
<text
class=
"iconfont icon-a-juxing11"
></text>
<text
class=
"iconfont icon-a-juxing11"
@
click=
"clearInput(2)"
v-if=
"input_goods_name"
></text>
</view>
</view>
</view>
</view>
<view
class=
"form-input row verCenter"
>
<view
class=
"form-input row verCenter"
>
<text
class=
"text row verCenter"
>
库 位
</text>
<text
class=
"text row verCenter"
>
仓 库
</text>
<view
class=
"row bothSide verCenter input-wrap"
>
<view
class=
"row bothSide verCenter select-wrap"
>
<input
type=
"text"
placeholder=
"请输入库位"
placeholder-style=
"color:#919399"
class=
"uni-input"
/>
<picker
@
change=
"bindPickerChange(1, $event)"
:value=
"warehouse_id_index"
:range=
"warehouse_id_data"
:range-key=
"'name'"
style=
"width: 100%;"
>
<text
class=
"iconfont icon-a-juxing11"
></text>
<view
class=
"row verCenter bothSide"
>
<view
class=
"uni-input"
>
{{
warehouse_id_data
[
warehouse_id_index
].
name
}}
</view>
<view
class=
"uni-arrow"
></view>
</view>
</picker>
</view>
</view>
</view>
</view>
<view
class=
"form-input row verCenter"
>
<view
class=
"form-input row verCenter"
>
<text
class=
"text row verCenter"
>
仓 库
</text>
<text
class=
"text row verCenter"
>
库 位
</text>
<view
class=
"row bothSide verCenter select-wrap"
>
<view
class=
"row bothSide verCenter select-wrap"
>
<picker
@
change=
"bindPickerChange
"
:value=
"index"
:range=
"array
"
style=
"width: 100%;"
>
<picker
@
change=
"bindPickerChange
(2, $event)"
:value=
"position_id_index"
:range=
"position_id_data"
:range-key=
"'name'
"
style=
"width: 100%;"
>
<view
class=
"row verCenter bothSide"
>
<view
class=
"row verCenter bothSide"
>
<view
class=
"uni-input"
>
{{
array
[
index
]
}}
</view>
<view
class=
"uni-input"
>
{{
position_id_data
[
position_id_index
].
name
}}
</view>
<view
class=
"uni-arrow"
></view>
<view
class=
"uni-arrow"
></view>
</view>
</view>
</picker>
</picker>
...
@@ -38,22 +42,88 @@
...
@@ -38,22 +42,88 @@
<
script
>
<
script
>
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
import
debounce
from
'lodash/debounce'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
index
:
0
,
index
:
0
,
array
:
[
'深圳现货仓'
,
'深圳自营仓'
]
array
:
[
'深圳现货仓'
,
'深圳自营仓'
],
input_goods_sn
:
false
,
input_goods_name
:
false
,
warehouse_id_index
:
0
,
position_id_index
:
0
,
warehouse_id_data
:
[{
name
:
'深圳现货仓'
,
value
:
1
},
{
name
:
'深圳自营仓'
,
value
:
2
}],
position_id_data
:
[{
name
:
'库位1'
,
value
:
1
},
{
name
:
'库位2'
,
value
:
2
}],
formParams
:
{
goods_sn
:
''
,
goods_name
:
''
,
warehouse_id
:
''
,
position_id
:
''
}
};
};
},
},
onLoad
()
{},
onLoad
()
{},
methods
:
{
methods
:
{
bindPickerChange
:
function
(
e
)
{
bindPickerChange
:
function
(
type
,
e
)
{
if
(
type
==
1
)
{
this
.
warehouse_id_index
=
e
.
detail
.
value
;
this
.
formParams
.
warehouse_id
=
this
.
warehouse_id_data
[
e
.
detail
.
value
].
value
;
}
else
if
(
type
==
2
)
{
this
.
position_id_index
=
e
.
detail
.
value
;
this
.
formParams
.
position_id
=
this
.
position_id_data
[
e
.
detail
.
value
].
value
;
}
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
);
this
.
index
=
e
.
detail
.
value
;
},
/**
* 清空数据
*/
clearInput
(
type
)
{
if
(
type
==
1
)
{
this
.
formParams
.
goods_sn
=
''
;
this
.
input_goods_sn
=
false
;
}
else
if
(
type
==
2
)
{
this
.
formParams
.
goods_name
=
''
;
this
.
input_goods_name
=
false
;
}
},
/**
* 单号搜索
* @param {Object} event
*/
handleInput
:
debounce
(
function
(
type
,
val
)
{
if
(
val
)
{
if
(
type
==
1
)
{
this
.
input_goods_sn
=
true
;
}
else
if
(
type
==
2
)
{
this
.
input_goods_name
=
true
;
}
}
else
{
if
(
type
==
1
)
{
this
.
input_goods_sn
=
false
;
}
else
if
(
type
==
2
)
{
this
.
input_goods_name
=
false
;
}
}
},
500
),
/**
* 获取库存数据
*/
getData
()
{
this
.
request
(
API
.
stockInMobileRegisterList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
is_register
:
0
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
;
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
},
},
search
()
{
search
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/immediatelyStockIn/list
'
url
:
'/pages/immediatelyStockIn/list
?goods_sn='
+
this
.
formParams
.
goods_sn
+
'&goods_name='
+
this
.
formParams
.
goods_name
+
'&warehouse_id='
+
this
.
formParams
.
warehouse_id
+
'&position_id='
+
this
.
formParams
.
position_id
});
});
}
}
}
}
...
...
pages/immediatelyStockIn/list.vue
View file @
a5f56f6f
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
<text
class=
"t2"
>
库存总数量
</text>
<text
class=
"t2"
>
库存总数量
</text>
</view>
</view>
</view>
</view>
<view
class=
"list"
>
<view
class=
"list"
v-if=
"list.length > 0"
>
<view
class=
"box"
v-for=
"(item, index) in
15
"
>
<view
class=
"box"
v-for=
"(item, index) in
list"
:key=
"index
"
>
<view
class=
"row wrap"
>
<view
class=
"row wrap"
>
<view
class=
"input-box row verCenter"
>
<view
class=
"input-box row verCenter"
>
<text
class=
"label"
>
库 位:
</text>
<text
class=
"label"
>
库 位:
</text>
...
@@ -78,6 +78,11 @@
...
@@ -78,6 +78,11 @@
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 无数据展示 -->
<view
class=
"no-date column rowCenter verCenter"
v-else
>
<text
class=
"iconfont icon-a-juxing21"
></text>
<text
class=
"text"
>
查不到当前数据
</text>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -85,10 +90,42 @@
...
@@ -85,10 +90,42 @@
import
{
API
}
from
'@/util/api.js'
;
import
{
API
}
from
'@/util/api.js'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{};
return
{
list
:
[],
formParams
:
{
goods_sn
:
''
,
goods_name
:
''
,
warehouse_id
:
''
,
position_id
:
''
}
};
},
onLoad
(
options
)
{
this
.
formParams
.
goods_sn
=
options
.
goods_sn
||
''
;
this
.
formParams
.
goods_name
=
options
.
goods_name
||
''
;
this
.
formParams
.
warehouse_id
=
options
.
warehouse_id
||
''
;
this
.
formParams
.
position_id
=
options
.
position_id
||
''
;
},
onShow
()
{
this
.
getData
();
},
},
onLoad
()
{},
methods
:
{
methods
:
{}
/**
* 获取列表数据
*/
getData
()
{
this
.
request
(
API
.
getToPrintList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
;
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'error'
});
}
});
}
}
};
};
</
script
>
</
script
>
...
...
pages/repairPrint/index.vue
View file @
a5f56f6f
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"search-bar row bothSide verCenter"
>
<view
class=
"row verCenter"
>
<view
class=
"row verCenter"
>
<text
class=
"iconfont icon-juxing1"
></text>
<text
class=
"iconfont icon-juxing1"
></text>
<input
class=
"uni-input"
type=
"
number
"
v-model=
"formParams.target_device"
placeholder=
"请输入目标设备"
placeholder-style=
"color:#919399"
/>
<input
class=
"uni-input"
type=
"
text
"
v-model=
"formParams.target_device"
placeholder=
"请输入目标设备"
placeholder-style=
"color:#919399"
/>
</view>
</view>
<text
class=
"iconfont icon-a-juxing11"
v-if=
"false"
></text>
<text
class=
"iconfont icon-a-juxing11"
v-if=
"false"
></text>
</view>
</view>
...
...
pages/stockRecheck/print.vue
View file @
a5f56f6f
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
</view>
</view>
<!-- 打快递单弹窗 -->
<!-- 打快递单弹窗 -->
<uni-drawer
ref=
"showRight"
mode=
"right"
>
<uni-drawer
ref=
"showRight"
mode=
"right"
>
<view
class=
"uni-drawer-picking"
v-if=
"detail"
>
<view
class=
"uni-drawer-picking"
v-if=
"detail
.stock_out_info
"
>
<view
class=
"title row rowCenter verCenter"
>
<view
class=
"title row rowCenter verCenter"
>
<text
class=
"iconfont icon-juxing2"
@
click=
"closeDrawer(1)"
></text>
<text
class=
"iconfont icon-juxing2"
@
click=
"closeDrawer(1)"
></text>
<text
class=
"text"
>
打快递单
</text>
<text
class=
"text"
>
打快递单
</text>
...
...
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