Showing
3 changed files
with
5 additions
and
4 deletions
| @@ -57,7 +57,7 @@ | @@ -57,7 +57,7 @@ | ||
| 57 | <view class="item-title"><text class="required">*</text><text>区域</text></view> | 57 | <view class="item-title"><text class="required">*</text><text>区域</text></view> |
| 58 | </template> | 58 | </template> |
| 59 | </uni-list-item> | 59 | </uni-list-item> |
| 60 | - <ProductRel ref="productRel" mode="add" :deliveryDateBase="form.deliveryDate" :deliveryDate="form.orderDate" :list="productLineList" @change="onProductsChange" :options="productList" /> | 60 | + <ProductRel ref="productRel" mode="add" :deliveryDateBase="form.deliveryDate" :deliveryDate="form.orderDate" @change="onProductsChange" :options="productList" /> |
| 61 | <uni-list-item title="合计人民币金额(大写)"> | 61 | <uni-list-item title="合计人民币金额(大写)"> |
| 62 | <template v-slot:footer> | 62 | <template v-slot:footer> |
| 63 | <uni-easyinput v-model="form.totalAmountCapital" placeholder="自动计算" :inputBorder="false" disabled /> | 63 | <uni-easyinput v-model="form.totalAmountCapital" placeholder="自动计算" :inputBorder="false" disabled /> |
| @@ -242,10 +242,10 @@ export default { | @@ -242,10 +242,10 @@ export default { | ||
| 242 | }, | 242 | }, |
| 243 | list: { | 243 | list: { |
| 244 | handler(v) { | 244 | handler(v) { |
| 245 | - // const arr = Array.isArray(v) ? v : [] | ||
| 246 | - // this.items = arr.map(x => ({ ...this.defaultItem(), ...x, collapsed: true })) | 245 | + if (!v || !v.length) return |
| 246 | + // Only update if significantly different to avoid loop/reset | ||
| 247 | + // For now, assuming external update wants to reset | ||
| 247 | this.items = v.map(x => ({ ...this.defaultItem(), ...x, collapsed: true })) | 248 | this.items = v.map(x => ({ ...this.defaultItem(), ...x, collapsed: true })) |
| 248 | - console.log('v', v) | ||
| 249 | }, | 249 | }, |
| 250 | deep: true | 250 | deep: true |
| 251 | } | 251 | } |