Commit c6f998b1 authored by dragondean@qq.com's avatar dragondean@qq.com

Merge remote-tracking branch 'origin/dev' into dev

parents d5352a2f e494064b
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<div slot="header" class="card-title"> <div slot="header" class="card-title">
{{$t('打包前')}} {{$t('打包前')}}
</div> </div>
<el-table v-if="orderWarehouseInContent" :data="orderWarehouseInContent.orderWarehouseInItemDtoList"> <el-table v-if="orderWarehouseInContent" :data="orderWarehouseInContent.orderWarehouseInBackItemDoList">
<el-table-column type="index" :label="$t('序号')" /> <el-table-column type="index" :label="$t('序号')" />
<el-table-column :label="$t('箱数')" prop="cartonsNum"> <el-table-column :label="$t('箱数')" prop="cartonsNum">
<template slot-scope="{row}"> <template slot-scope="{row}">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="12"> <el-col :span="12">
<el-form-item :label="$t('中文品名')"> <el-form-item :label="$t('中文品名')">
<product-selector v-model="value.prodId" @change="onProductChange" determined protect-once :disabled="readonly" /> <product-selector v-model="value.prodId" @change="onProductChange" determined :disabled="readonly" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -147,9 +147,10 @@ export default { ...@@ -147,9 +147,10 @@ export default {
this.getProductBrandPage() this.getProductBrandPage()
} }
if (typeof this.value.prodAttrIds === 'string') { if (typeof this.value.prodAttrIds === 'string' && this.value.prodAttrIds.length > 0) {
this.prodAttrIds = this.value.prodAttrIds.split(',').map(e => +e) || [] this.prodAttrIds.push(...this.value.prodAttrIds.split(',').map(e => +e))
} }
console.log(this.prodAttrIds)
if (this.value.usageIds) { if (this.value.usageIds) {
await this.$nextTick() await this.$nextTick()
...@@ -182,7 +183,7 @@ export default { ...@@ -182,7 +183,7 @@ export default {
this.$emit('handle-delete') this.$emit('handle-delete')
}, },
onProductChange(product){ onProductChange(product){
if (!product) { if (!product || this.readonly) {
return return
} }
this.prodAttrIds = product.attrId ? product.attrId.split(',').map(e => +e) : [] this.prodAttrIds = product.attrId ? product.attrId.split(',').map(e => +e) : []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment