Commit e41fa984 by 肖康

整单提交

parent 25214db1
Showing with 7 additions and 12 deletions
......@@ -37,7 +37,7 @@ Page({
},
getSaoMaId(code) {
axios({
url: "/photo_taking/scan_order_detail/" + this.data.inputValue + "/" + code
url: "/photo_taking/scan_order_detail/" + this.data.inputValue + "/" + encodeURI(code)
}).then(res => {
//请求得到的ID值
let detail_id = res.data.data;
......@@ -62,7 +62,7 @@ Page({
dd.scan({
type: 'qr',
success: (res) => {
let code_=encodeURI(res.code)
let code_=res.code
this.setData({
inputValue2: code_
});
......@@ -100,17 +100,13 @@ Page({
image_src: (this.data.detailImages.join(","))
}
}).then(res => {
if (res.code == 0) {
console.log(res)
dd.showToast({
type: 'success',
content: '扫码明细提交成功',
duration: 3000
});
if (res.data.code == 0) {
//提交成功
this.clear();
this.getDateList();
}
}).catch(err=>{
console.log(err)
})
},
subMxActionShee() {
......@@ -121,7 +117,6 @@ Page({
success: (res) => {
if (res.index == 0) {
this.submitDetail()
} else if (res.index == 1) {
//拍照
dd.chooseImage({
......@@ -157,7 +152,7 @@ Page({
axios({
url: "/photo_taking/submit_order/" + this.data.inputValue
}).then(res => {
if (res.code == 0) {
if (res.data.code == 0) {
dd.showToast({
type: 'success',
content: '整单提交成功',
......@@ -171,7 +166,7 @@ Page({
} else {
dd.showToast({
type: 'fail',
content: res.data,
content: res.data.data,
duration: 3000
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment