|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view>
|
|
<view>
|
|
|
- <view class="title_box rx-bc" >
|
|
|
|
|
|
|
+ <view class="title_box rx-bc">
|
|
|
<view class="name">周转车</view>
|
|
<view class="name">周转车</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view v-for="(item, index) in list" :key='index'>
|
|
|
|
|
|
|
+ <view v-for="(item, index) in newList" :key='index'>
|
|
|
<view class="title_box rx-bc">
|
|
<view class="title_box rx-bc">
|
|
|
<view class="left rx-ss" @click="getDelete(index)">
|
|
<view class="left rx-ss" @click="getDelete(index)">
|
|
|
<uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
<uni-icons custom-prefix="iconfont" type="icon-shanchu" size="20" color="#fa3534"></uni-icons>
|
|
@@ -85,9 +85,24 @@
|
|
|
default: () => {}
|
|
default: () => {}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ watch: {
|
|
|
|
|
+
|
|
|
|
|
+ list: {
|
|
|
|
|
+ immediate: true,
|
|
|
|
|
+ deep: true,
|
|
|
|
|
+ handler(newVal) {
|
|
|
|
|
+ this.newList = newVal
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- recycleQuantity: ''
|
|
|
|
|
|
|
+ recycleQuantity: '',
|
|
|
|
|
+ newList: []
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -95,13 +110,13 @@
|
|
|
|
|
|
|
|
quantInt(index, idx, it) {
|
|
quantInt(index, idx, it) {
|
|
|
if (it.quantity >= 1) {
|
|
if (it.quantity >= 1) {
|
|
|
- this.$set(this.list[index].extInfo.positionList[idx], 'workOrderCode', this.wordItem.code)
|
|
|
|
|
- this.$set(this.list[index].extInfo.positionList[idx], 'categoryCode', this.wordItem.productCode)
|
|
|
|
|
|
|
+ this.$set(this.newList[index].extInfo.positionList[idx], 'workOrderCode', this.wordItem.code)
|
|
|
|
|
+ this.$set(this.newList[index].extInfo.positionList[idx], 'categoryCode', this.wordItem.productCode)
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
- this.$set(this.list[index].extInfo.positionList[idx], 'workOrderCode', '')
|
|
|
|
|
- this.$set(this.list[index].extInfo.positionList[idx], 'categoryCode', '')
|
|
|
|
|
- this.$set(this.list[index].extInfo.positionList[idx], 'quantity', 0)
|
|
|
|
|
|
|
+ this.$set(this.newList[index].extInfo.positionList[idx], 'workOrderCode', '')
|
|
|
|
|
+ this.$set(this.newList[index].extInfo.positionList[idx], 'categoryCode', '')
|
|
|
|
|
+ this.$set(this.newList[index].extInfo.positionList[idx], 'quantity', 0)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -112,9 +127,9 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
getDelete(index) {
|
|
getDelete(index) {
|
|
|
- this.$emit('handleDel', index, 'turnover')
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.$emit('handleDel', index, 'turnover')
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|