Authored by htoooth

fix

... ... @@ -136,7 +136,9 @@ export default {
data() {
return {
showLoading: true,
product: null,
product: {
seasons: ''
},
table: {
data: [],
defaultSelectedSizes: [],
... ... @@ -178,7 +180,9 @@ export default {
this.productService.getProduct(this.$route.params.id).then((result) => {
if (result.code === 200) {
this.product = result.data;
// 这里的处理单选的问题,双向绑定的问题
Object.assign(this.product, result.data);
_.update(this.product, 'goodsSeason', (s) => `${s}`);
if (!_.has(this.product, 'materialList')) {
this.product.materialList = [];
... ...
... ... @@ -6,8 +6,8 @@
</div>
<layout-action>
<Button type="primary" @click="back">返回入库物流列表</Button>
<Button type="primary" @click="print">打印</Button>
<Button @click="back">返回入库物流列表</Button>
</layout-action>
<layout-list>
... ...
... ... @@ -8,7 +8,7 @@
<layout-action>
<Button type="error" @click="onClickCreate" :disabled="this.selection.length === 0">发货</Button>
<Button type="primary" @click="$router.go(-1)">返回发货入库列表</Button>
<Button @click="$router.go(-1)">返回发货入库列表</Button>
</layout-action>
<layout-list>
... ...
... ... @@ -3,7 +3,7 @@
<order-info ref="info" :id="id"></order-info>
<layout-action>
<Button type="primary" @click="back">返回发货入库列表</Button>
<Button @click="back">返回发货入库列表</Button>
</layout-action>
<layout-list>
<Tabs type="card" :animated="false" @on-click="onTabsClick">
... ...