|
@@ -26,9 +26,10 @@
|
|
|
</view>
|
|
|
<view class="uni-row" v-if="item.checked">
|
|
|
<uni-easyinput v-if="item.inpShow" v-model="item.abandonmentReason" focus placeholder="请输入废箱原因"
|
|
|
- style="width: 240rpx;"></uni-easyinput>
|
|
|
+ style="width: 240rpx;"></uni-easyinput>
|
|
|
<uni-data-select v-else v-model="item.abandonmentReason" :localdata="abanonmentList"
|
|
|
- style="width: 240rpx;" :clear="false" @change="abandonmentReasonChange(item)"></uni-data-select>
|
|
|
+ style="width: 240rpx;" :clear="false"
|
|
|
+ @change="abandonmentReasonChange(item)"></uni-data-select>
|
|
|
</view>
|
|
|
<!-- 占空位用 -->
|
|
|
<view class="uni-row" v-if="!item.checked">
|
|
@@ -68,7 +69,8 @@
|
|
|
} from '@/utils/common.js'
|
|
|
import {
|
|
|
addCarrierReject,
|
|
|
- checkCarrier
|
|
|
+ checkCarrier,
|
|
|
+ checkCarrierNew
|
|
|
} from '@/api/business/carrier.js'
|
|
|
|
|
|
const bindList = ref([])
|
|
@@ -108,11 +110,11 @@
|
|
|
function handleSwitchChange(item) {
|
|
|
item.checked = !item.checked
|
|
|
}
|
|
|
-
|
|
|
- function abandonmentReasonChange(item){
|
|
|
- if(item.abandonmentReason == '其他原因'){
|
|
|
+
|
|
|
+ function abandonmentReasonChange(item) {
|
|
|
+ if (item.abandonmentReason == '其他原因') {
|
|
|
item.inpShow = true;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
item.inpShow = false;
|
|
|
}
|
|
|
}
|
|
@@ -177,8 +179,17 @@
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- checkCarrier(vehicleObj.carrierId).then(response => {
|
|
|
+ const checkData = {
|
|
|
+ ...dayWorkInfo,
|
|
|
+ dayworkCarriers: newBindList.value,
|
|
|
+ newCarrierId: vehicleObj.carrierId
|
|
|
+ }
|
|
|
+ checkCarrierNew(checkData).then(response => {
|
|
|
console.log(response)
|
|
|
+ // uni.showToast({
|
|
|
+ // icon: 'none',
|
|
|
+ // title: response.msg
|
|
|
+ // })
|
|
|
if (response.code == 200) {
|
|
|
newBindList.value.push(JSON.parse(ret.resp_result));
|
|
|
} else {
|
|
@@ -188,7 +199,24 @@
|
|
|
})
|
|
|
return;
|
|
|
}
|
|
|
+ }).catch(err => {
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ title: '箱码检测检测错误' + err.message
|
|
|
+ })
|
|
|
})
|
|
|
+ // checkCarrier(vehicleObj.carrierId).then(response => {
|
|
|
+ // console.log(response)
|
|
|
+ // if (response.code == 200) {
|
|
|
+ // newBindList.value.push(JSON.parse(ret.resp_result));
|
|
|
+ // } else {
|
|
|
+ // uni.showToast({
|
|
|
+ // icon: 'none',
|
|
|
+ // title: response.msg
|
|
|
+ // })
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
);
|
|
|
}
|