|
|
@ -126,10 +126,10 @@ Page({ |
|
|
|
//物流车、转运箱拍照
|
|
|
|
//物流车、转运箱拍照
|
|
|
|
photograph(e) { |
|
|
|
photograph(e) { |
|
|
|
var potoIdx = 0; |
|
|
|
var potoIdx = 0; |
|
|
|
if (e.target.dataset.id === 'car_1') potoIdx = 0 |
|
|
|
if (e.target.dataset.id == 'car_1') potoIdx = 0 |
|
|
|
if (e.target.dataset.id === 'car_2') potoIdx = 1 |
|
|
|
if (e.target.dataset.id == 'car_2') potoIdx = 1 |
|
|
|
if (e.target.dataset.id === 'box_1') potoIdx = 2 |
|
|
|
if (e.target.dataset.id == 'box_1') potoIdx = 2 |
|
|
|
if (e.target.dataset.id === 'box_2') potoIdx = 3 |
|
|
|
if (e.target.dataset.id == 'box_2') potoIdx = 3 |
|
|
|
|
|
|
|
|
|
|
|
//回显所拍摄照片
|
|
|
|
//回显所拍摄照片
|
|
|
|
var _this = this; |
|
|
|
var _this = this; |
|
|
@ -305,49 +305,49 @@ Page({ |
|
|
|
var data_id = e.target.dataset.id; //组件tag
|
|
|
|
var data_id = e.target.dataset.id; //组件tag
|
|
|
|
var value = e.detail.value; //输入的文本
|
|
|
|
var value = e.detail.value; //输入的文本
|
|
|
|
//样本编号
|
|
|
|
//样本编号
|
|
|
|
if (data_id === 'barCode') { |
|
|
|
if (data_id == 'barCode') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
pipenum: value |
|
|
|
pipenum: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//数量
|
|
|
|
//数量
|
|
|
|
if (data_id === 'number') { |
|
|
|
if (data_id == 'number') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
number: value |
|
|
|
number: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//转运箱号
|
|
|
|
//转运箱号
|
|
|
|
if (data_id === 'boxNum') { |
|
|
|
if (data_id == 'boxNum') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
boxNum: value |
|
|
|
boxNum: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//车牌号
|
|
|
|
//车牌号
|
|
|
|
if (data_id === 'numberplate') { |
|
|
|
if (data_id == 'numberplate') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
numberplate: value |
|
|
|
numberplate: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//物流员
|
|
|
|
//物流员
|
|
|
|
if (data_id === 'logisticsMen') { |
|
|
|
if (data_id == 'logisticsMen') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
logisticsMen: value |
|
|
|
logisticsMen: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//驾驶员
|
|
|
|
//驾驶员
|
|
|
|
if (data_id === 'driverMen') { |
|
|
|
if (data_id == 'driverMen') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
driverMen: value |
|
|
|
driverMen: value |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//备注
|
|
|
|
//备注
|
|
|
|
if (data_id === 'notes') { |
|
|
|
if (data_id == 'notes') { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
notes: value |
|
|
|
notes: value |
|
|
|
}) |
|
|
|
}) |
|
|
@ -417,7 +417,7 @@ Page({ |
|
|
|
|
|
|
|
|
|
|
|
request.post(`/batch/addTranLogistics`, tempData).then(res => { |
|
|
|
request.post(`/batch/addTranLogistics`, tempData).then(res => { |
|
|
|
console.log(JSON.stringify(res.data)); |
|
|
|
console.log(JSON.stringify(res.data)); |
|
|
|
if (res.data.code === 200) { |
|
|
|
if (res.data.code == 200) { |
|
|
|
//保存成功后,查询底部列表
|
|
|
|
//保存成功后,查询底部列表
|
|
|
|
this.selSampleList(); |
|
|
|
this.selSampleList(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -477,7 +477,7 @@ Page({ |
|
|
|
//获取物流单号 1.自建物流 2.第三方物流 3.货运物流
|
|
|
|
//获取物流单号 1.自建物流 2.第三方物流 3.货运物流
|
|
|
|
request.get(`/batch/getBatchsNumber?logisticsWay=1`).then(res => { |
|
|
|
request.get(`/batch/getBatchsNumber?logisticsWay=1`).then(res => { |
|
|
|
console.log('getBatchsNumber=' + JSON.stringify(res.data)) |
|
|
|
console.log('getBatchsNumber=' + JSON.stringify(res.data)) |
|
|
|
if (res.data.code === 200) { |
|
|
|
if (res.data.code == 200) { |
|
|
|
this.setData({ |
|
|
|
this.setData({ |
|
|
|
selfOrderCode: res.data.data |
|
|
|
selfOrderCode: res.data.data |
|
|
|
}) |
|
|
|
}) |
|
|
|