Showing
4 changed files
with
9 additions
and
5 deletions
@@ -136,7 +136,9 @@ export default { | @@ -136,7 +136,9 @@ export default { | ||
136 | data() { | 136 | data() { |
137 | return { | 137 | return { |
138 | showLoading: true, | 138 | showLoading: true, |
139 | - product: null, | 139 | + product: { |
140 | + seasons: '' | ||
141 | + }, | ||
140 | table: { | 142 | table: { |
141 | data: [], | 143 | data: [], |
142 | defaultSelectedSizes: [], | 144 | defaultSelectedSizes: [], |
@@ -178,7 +180,9 @@ export default { | @@ -178,7 +180,9 @@ export default { | ||
178 | 180 | ||
179 | this.productService.getProduct(this.$route.params.id).then((result) => { | 181 | this.productService.getProduct(this.$route.params.id).then((result) => { |
180 | if (result.code === 200) { | 182 | if (result.code === 200) { |
181 | - this.product = result.data; | 183 | + // 这里的处理单选的问题,双向绑定的问题 |
184 | + Object.assign(this.product, result.data); | ||
185 | + | ||
182 | _.update(this.product, 'goodsSeason', (s) => `${s}`); | 186 | _.update(this.product, 'goodsSeason', (s) => `${s}`); |
183 | if (!_.has(this.product, 'materialList')) { | 187 | if (!_.has(this.product, 'materialList')) { |
184 | this.product.materialList = []; | 188 | this.product.materialList = []; |
@@ -6,8 +6,8 @@ | @@ -6,8 +6,8 @@ | ||
6 | </div> | 6 | </div> |
7 | 7 | ||
8 | <layout-action> | 8 | <layout-action> |
9 | - <Button type="primary" @click="back">返回入库物流列表</Button> | ||
10 | <Button type="primary" @click="print">打印</Button> | 9 | <Button type="primary" @click="print">打印</Button> |
10 | + <Button @click="back">返回入库物流列表</Button> | ||
11 | </layout-action> | 11 | </layout-action> |
12 | 12 | ||
13 | <layout-list> | 13 | <layout-list> |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | 8 | ||
9 | <layout-action> | 9 | <layout-action> |
10 | <Button type="error" @click="onClickCreate" :disabled="this.selection.length === 0">发货</Button> | 10 | <Button type="error" @click="onClickCreate" :disabled="this.selection.length === 0">发货</Button> |
11 | - <Button type="primary" @click="$router.go(-1)">返回发货入库列表</Button> | 11 | + <Button @click="$router.go(-1)">返回发货入库列表</Button> |
12 | </layout-action> | 12 | </layout-action> |
13 | 13 | ||
14 | <layout-list> | 14 | <layout-list> |
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | <order-info ref="info" :id="id"></order-info> | 3 | <order-info ref="info" :id="id"></order-info> |
4 | 4 | ||
5 | <layout-action> | 5 | <layout-action> |
6 | - <Button type="primary" @click="back">返回发货入库列表</Button> | 6 | + <Button @click="back">返回发货入库列表</Button> |
7 | </layout-action> | 7 | </layout-action> |
8 | <layout-list> | 8 | <layout-list> |
9 | <Tabs type="card" :animated="false" @on-click="onTabsClick"> | 9 | <Tabs type="card" :animated="false" @on-click="onTabsClick"> |
-
Please register or login to post a comment