|
@@ -25,8 +25,10 @@
|
|
<switch color="#ff0000" style="transform:scale(0.7)" @change="handleSwitchChange(item)" />
|
|
<switch color="#ff0000" style="transform:scale(0.7)" @change="handleSwitchChange(item)" />
|
|
</view>
|
|
</view>
|
|
<view class="uni-row" v-if="item.checked">
|
|
<view class="uni-row" v-if="item.checked">
|
|
- <uni-data-select v-model="item.abandonmentReason" :localdata="abanonmentList"
|
|
|
|
- style="width: 240rpx;" :clear="false"></uni-data-select>
|
|
|
|
|
|
+ <uni-easyinput v-if="inpShow" v-model="item.abandonmentReason" focus placeholder="请输入废箱原因"
|
|
|
|
+ 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>
|
|
</view>
|
|
</view>
|
|
<!-- 占空位用 -->
|
|
<!-- 占空位用 -->
|
|
<view class="uni-row" v-if="!item.checked">
|
|
<view class="uni-row" v-if="!item.checked">
|
|
@@ -73,6 +75,7 @@
|
|
const newBindList = ref([])
|
|
const newBindList = ref([])
|
|
const discardVehicleList = ref([])
|
|
const discardVehicleList = ref([])
|
|
const abanonmentList = ref([])
|
|
const abanonmentList = ref([])
|
|
|
|
+ const inpShow = ref(false)
|
|
|
|
|
|
let dayWorkInfo = store.dayworkInfo;
|
|
let dayWorkInfo = store.dayworkInfo;
|
|
|
|
|
|
@@ -97,7 +100,7 @@
|
|
for (var i = 0; i < res.data.length; i++) {
|
|
for (var i = 0; i < res.data.length; i++) {
|
|
abanonmentList.value[i] = {
|
|
abanonmentList.value[i] = {
|
|
text: res.data[i].dictLabel,
|
|
text: res.data[i].dictLabel,
|
|
- value: res.data[i].dictValue
|
|
|
|
|
|
+ value: res.data[i].dictLabel
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -106,6 +109,14 @@
|
|
function handleSwitchChange(item) {
|
|
function handleSwitchChange(item) {
|
|
item.checked = !item.checked
|
|
item.checked = !item.checked
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ function abandonmentReasonChange(item){
|
|
|
|
+ if(item.abandonmentReason == '其他原因'){
|
|
|
|
+ inpShow.value = true;
|
|
|
|
+ }else{
|
|
|
|
+ inpShow.value = false;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
// function handleSelectRejectReason(item) {
|
|
// function handleSelectRejectReason(item) {
|
|
// for (var i = 0; i < abanonmentList.value.length; i++) {
|
|
// for (var i = 0; i < abanonmentList.value.length; i++) {
|
|
@@ -115,7 +126,7 @@
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
function handleDelVehicleNo(item, index) {
|
|
function handleDelVehicleNo(item, index) {
|
|
- if (bindList.value.includes(item)) {
|
|
|
|
|
|
+ if (bindList.value.some(carrier => carrier.carrierCode == item.carrierCode)) {
|
|
console.log(bindList.value)
|
|
console.log(bindList.value)
|
|
newBindList.value.splice(index, 1);
|
|
newBindList.value.splice(index, 1);
|
|
let discardVehicleInfo = {
|
|
let discardVehicleInfo = {
|