|
|
@ -1,6 +1,6 @@ |
|
|
|
// pages/meLogistics/meLogistics.js
|
|
|
|
// pages/meLogistics/meLogistics.js
|
|
|
|
|
|
|
|
|
|
|
|
var datePicker = require('../../utils/dateSetting') |
|
|
|
var datePicker = require('../../utils/dateSetting') |
|
|
|
|
|
|
|
const http = require('../../utils/http') |
|
|
|
|
|
|
|
|
|
|
|
//设定当前的时间,将其设定为常量
|
|
|
|
//设定当前的时间,将其设定为常量
|
|
|
|
|
|
|
|
|
|
|
@ -27,6 +27,7 @@ Page({ |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
pipenum:'', |
|
|
|
pipenum:'', |
|
|
|
|
|
|
|
selfOrderCode:'',//物流单号
|
|
|
|
ins: ['xx卫生院','xx门诊',], |
|
|
|
ins: ['xx卫生院','xx门诊',], |
|
|
|
bushList:['私家车','大巴','顺丰','其他'], |
|
|
|
bushList:['私家车','大巴','顺丰','其他'], |
|
|
|
bush:'', |
|
|
|
bush:'', |
|
|
@ -59,6 +60,7 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//样本拍照
|
|
|
|
phot(){ |
|
|
|
phot(){ |
|
|
|
wx.chooseMedia({ |
|
|
|
wx.chooseMedia({ |
|
|
|
count: 1, |
|
|
|
count: 1, |
|
|
@ -83,6 +85,7 @@ Page({ |
|
|
|
// })
|
|
|
|
// })
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//物流车拍照
|
|
|
|
bushPhot(){ |
|
|
|
bushPhot(){ |
|
|
|
wx.chooseMedia({ |
|
|
|
wx.chooseMedia({ |
|
|
|
count: 1, |
|
|
|
count: 1, |
|
|
@ -96,6 +99,7 @@ Page({ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//转运箱拍照
|
|
|
|
boxPhot(){ |
|
|
|
boxPhot(){ |
|
|
|
wx.chooseMedia({ |
|
|
|
wx.chooseMedia({ |
|
|
|
count: 1, |
|
|
|
count: 1, |
|
|
@ -228,24 +232,30 @@ Page({ |
|
|
|
end: '' + year + '-' + (Array(2).join(0) + month).slice(-2) + '-' + (Array(2).join(0) + now.getDate()).slice(-2),//当前的时间
|
|
|
|
end: '' + year + '-' + (Array(2).join(0) + month).slice(-2) + '-' + (Array(2).join(0) + now.getDate()).slice(-2),//当前的时间
|
|
|
|
|
|
|
|
|
|
|
|
//开始
|
|
|
|
//开始
|
|
|
|
multiArray: |
|
|
|
multiArray:[[year + "年", year + 1 + "年", year + 2 + "年"], |
|
|
|
[ |
|
|
|
|
|
|
|
[year + "年", year + 1 + "年", year + 2 + "年"], |
|
|
|
|
|
|
|
datePicker.determineMonth(), |
|
|
|
datePicker.determineMonth(), |
|
|
|
datePicker.determineDay(year, month), |
|
|
|
datePicker.determineDay(year, month), |
|
|
|
datePicker.determineHour(), |
|
|
|
datePicker.determineHour(), |
|
|
|
datePicker.determineMinute() |
|
|
|
datePicker.determineMinute() |
|
|
|
], |
|
|
|
], |
|
|
|
//结束
|
|
|
|
//结束
|
|
|
|
multiArray1: |
|
|
|
multiArray1:[[year + "年", year + 1 + "年", year + 2 + "年"], |
|
|
|
[ |
|
|
|
|
|
|
|
[year + "年", year + 1 + "年", year + 2 + "年"], |
|
|
|
|
|
|
|
datePicker.determineMonth(), |
|
|
|
datePicker.determineMonth(), |
|
|
|
datePicker.determineDay(year, month), |
|
|
|
datePicker.determineDay(year, month), |
|
|
|
datePicker.determineHour(), |
|
|
|
datePicker.determineHour(), |
|
|
|
datePicker.determineMinute() |
|
|
|
datePicker.determineMinute() |
|
|
|
], |
|
|
|
], |
|
|
|
})
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//获取物流单号 1.自建物流 2.第三方物流 3.货运物流
|
|
|
|
|
|
|
|
http.get(`/batch/getBatchsNumber?logisticsWay=1`).then(res => { |
|
|
|
|
|
|
|
console.log('getBatchsNumber=' + JSON.stringify(res.data)) |
|
|
|
|
|
|
|
if(res.data.code === 200){ |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
|
|
|
|
selfOrderCode:res.data.data |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|