Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
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
d1556ccf
authored
Dec 23, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
供应链纸质单理货---作废后重新理货,支持选择之前的图片
parent
3def804f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
29 deletions
assets/css/tallyGoods/confirm.scss
pages.json
pages/tallyGoods/confirm.vue
util/api.js
assets/css/tallyGoods/confirm.scss
View file @
d1556ccf
...
...
@@ -220,6 +220,11 @@
}
}
}
.history-btn
{
height
:
70rpx
;
font-size
:
26rpx
;
color
:
#197adb
;
}
}
}
}
...
...
pages.json
View file @
d1556ccf
...
...
@@ -268,6 +268,11 @@
"style"
:
{
"navigationBarTitleText"
:
"新增异常"
}
},
{
"path"
:
"pages/tallyGoods/historicalTally"
,
"style"
:
{
"navigationBarTitleText"
:
"历史理货图片"
}
}],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
...
...
pages/tallyGoods/confirm.vue
View file @
d1556ccf
...
...
@@ -63,37 +63,40 @@
</view>
</navigator>
</view>
<!-- 商检图片上传 -->
<view
class=
"section"
v-if=
"isInspOrg"
>
<!-- 商检图片上传 -->
<view
class=
"upload-box"
>
<view
class=
"title row bothSide verCenter"
v-if=
"goods_check_pic_list.length > 0"
>
<text
class=
"tt-l"
>
商检图片上传(仅商检必填)
</text>
<text
class=
"tt-r"
>
{{
goods_check_pic_list
.
filter
(
subArray
=>
subArray
.
length
>
0
).
length
}}
/
{{
goods_check_pic_list
.
length
}}
</text>
</view>
<view
class=
"model-upload-list"
>
<view
class=
"box row bothSide verCenter"
v-for=
"(item, index) in list"
:key=
"index"
:class=
"
{ curr: goods_check_pic_list[index].length > 0 }">
<view
class=
"file row verCenter"
>
<text
class=
"t1"
>
{{
item
.
model
}}
</text>
<template
v-if=
"goods_check_pic_list[index].length > 0"
>
<text
class=
"t2"
@
click=
"previewChange(goods_check_pic_list[index], 0)"
>
已上传
{{
goods_check_pic_list
[
index
].
length
}}
张
</text>
<text
class=
"clear"
@
click=
"clearFn(index)"
>
清空
</text>
</
template
>
</view>
<view
class=
"file-btn row verCenter"
@
click=
"uploadBusinessChange(index)"
>
<
template
v-if=
"goods_check_pic_list[index].length > 0"
>
<text
class=
"t1"
>
继续上传
</text>
</
template
>
<
template
v-else
>
<text
class=
"t1"
>
上传图片
</text>
</
template
>
<text
class=
"iconfont icon-sanjiaoxing2"
></text>
<view
class=
"column"
v-for=
"(item, index) in list"
:key=
"index"
:class=
"
{ curr: goods_check_pic_list[index].length > 0 }">
<view
class=
"box row bothSide verCenter"
>
<view
class=
"file row verCenter"
>
<text
class=
"t1"
>
{{
item
.
model
}}
</text>
<template
v-if=
"goods_check_pic_list[index].length > 0"
>
<text
class=
"t2"
@
click=
"previewChange(goods_check_pic_list[index], 0)"
>
已上传
{{
goods_check_pic_list
[
index
].
length
}}
张
</text>
<text
class=
"clear"
@
click=
"clearFn(index)"
>
清空
</text>
</
template
>
</view>
<view
class=
"file-btn row verCenter"
@
click=
"uploadBusinessChange(index)"
>
<
template
v-if=
"goods_check_pic_list[index].length > 0"
>
<text
class=
"t1"
>
继续上传
</text>
</
template
>
<
template
v-else
>
<text
class=
"t1"
>
上传图片
</text>
</
template
>
<text
class=
"iconfont icon-sanjiaoxing2"
></text>
</view>
</view>
<navigator
class=
"history-btn row verCenter"
:url=
"'/pages/tallyGoods/historicalTally?erp_order_sn=' + form.erp_order_sn+'&model='+item.model + '&index='+ index + '&srcEntryID='+(encodeURIComponent(item.srcEntryID))+'&entryID='+(encodeURIComponent(item.entryID))"
>
历史理货图片
</navigator>
</view>
</view>
</view>
</view>
<!-- 采购单上传 -->
<view
class=
"section"
style=
"margin-bottom: 48rpx;"
:class=
"{ switchClass: !switchFlag }"
>
<!-- 采购单上传 -->
<view
class=
"upload-box"
>
<view
class=
"title row bothSide verCenter"
>
<view
class=
"row verCenter"
>
...
...
@@ -559,8 +562,7 @@
});
return
false
;
}
console
.
log
(
JSON
.
stringify
(
this
.
form
))
this
.
request
(
API
.
submitTallyGoods
,
'POST'
,
this
.
form
,
true
).
then
(
res
=>
{
if
(
res
.
err_code
===
0
)
{
uni
.
showModal
({
...
...
util/api.js
View file @
d1556ccf
const
API_BASE
=
'https://api.ichunt.com'
;
const
API_BASE_OSS
=
'https://image.ichunt.net'
;
//oss系统
const
API_BASE_OSS_HK
=
'http://hk.image.semour.com'
;
//oss系统 HK
const
API_BASE_WMS
=
'https://wms.ichunt.net'
;
//WMS系统
//
const API_BASE = 'https://api.ichunt.com';
//
const API_BASE_OSS = 'https://image.ichunt.net'; //oss系统
//
const API_BASE_OSS_HK = 'http://hk.image.semour.com'; //oss系统 HK
//
const API_BASE_WMS = 'https://wms.ichunt.net'; //WMS系统
//
const API_BASE = 'http://api.liexin.com';
//
const API_BASE_OSS = 'http://image.liexindev.net';
//
const API_BASE_OSS_HK = 'http://image.liexindev.net'; //oss系统 HK
//
const API_BASE_WMS = 'http://wms.liexindev.net'; //WMS系统
const
API_BASE
=
'http://api.liexin.com'
;
const
API_BASE_OSS
=
'http://image.liexindev.net'
;
const
API_BASE_OSS_HK
=
'http://image.liexindev.net'
;
//oss系统 HK
const
API_BASE_WMS
=
'http://wms.liexindev.net'
;
//WMS系统
const
API
=
{
...
...
@@ -397,7 +397,11 @@ const API = {
/**
* 验证入仓号
*/
getBoxStatus
:
API_BASE
+
'/supplywechatwms/getBoxStatus'
getBoxStatus
:
API_BASE
+
'/supplywechatwms/getBoxStatus'
,
/**
* 历史理货图片
*/
getHistoryPic
:
API_BASE
+
'/supplywechatwms/getHistoryPic'
}
...
...
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