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
80ea877a
authored
Apr 09, 2024
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
移动端--深贸电子--移动端,单个理货、一键理货,取消理货图片必填
parent
48df2aa3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
47 additions
and
17 deletions
pages/picking/record.vue
pages/picking/sort.vue
pages/stockRecheck/record.vue
pages/stockRecheck/sort.vue
pages/tallyReceive/index.vue
pages/tallyReceive/operate.vue
pages/tallyReceive/record.vue
pages/picking/record.vue
View file @
80ea877a
...
...
@@ -358,6 +358,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -395,7 +396,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
pages/picking/sort.vue
View file @
80ea877a
...
...
@@ -1082,6 +1082,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -1103,7 +1104,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
pages/stockRecheck/record.vue
View file @
80ea877a
...
...
@@ -365,6 +365,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -402,7 +403,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
pages/stockRecheck/sort.vue
View file @
80ea877a
...
...
@@ -947,6 +947,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -968,7 +969,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
pages/tallyReceive/index.vue
View file @
80ea877a
...
...
@@ -645,11 +645,12 @@
//当前登录组织为深贸电子才必填
if
(
this
.
company_id
==
2
)
{
if
(
this
.
formParams
.
image_ids
.
length
<=
0
)
{
uni
.
showToast
({
title
:
'请至少上传一张理货图片'
,
icon
:
'none'
});
return
false
;
//暂时注释掉
// uni.showToast({
// title: '请至少上传一张理货图片',
// icon: 'none'
// });
// return false;
}
}
var
params
=
Object
.
assign
(
this
.
formParams
,
{
...
...
@@ -755,6 +756,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -772,7 +774,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
pages/tallyReceive/operate.vue
View file @
80ea877a
...
...
@@ -738,6 +738,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -755,7 +756,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
@@ -812,11 +816,12 @@
//当前登录组织为深贸电子才必填
if
(
this
.
company_id
==
2
)
{
if
(
this
.
formParams
.
image_ids
.
length
<=
0
)
{
uni
.
showToast
({
title
:
'请至少上传一张理货图片'
,
icon
:
'none'
});
return
false
;
//暂时注释掉
// uni.showToast({
// title: '请至少上传一张理货图片',
// icon: 'none'
// });
// return false;
}
}
//【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字
...
...
pages/tallyReceive/record.vue
View file @
80ea877a
...
...
@@ -914,6 +914,7 @@
url
:
API
.
upload
+
'?sys_type=4'
,
filePath
:
compressedImagePath
,
name
:
'file'
,
timeout
:
10000
,
header
:
{
'Content-Type'
:
'multipart/form-data'
},
...
...
@@ -934,7 +935,10 @@
}
},
fail
:
error
=>
{
console
.
log
(
'上传图片失败:'
,
error
);
uni
.
showToast
({
title
:
'上传图片失败'
,
icon
:
'none'
});
uni
.
hideLoading
();
}
});
...
...
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