Authored by htoooth

fix

... ... @@ -36,7 +36,7 @@
<Row>
<Col span="8">
<Form-item label="商品名称*">
<Input v-model="product.productName" placeholder="请输入..."/>
<Input v-model="product.productName" placeholder="请输入..." style="width: 350px;"/>
</Form-item>
</Col>
</Row>
... ... @@ -44,7 +44,7 @@
<Row>
<Col span="8">
<Form-item label="商品卖点*">
<Input v-model="product.phrase" type="textarea" :rows="4" placeholder="请输入..."/>
<Input v-model="product.phrase" type="textarea" :rows="4" placeholder="请输入..." style="width: 350px;"/>
</Form-item>
</Col>
</Row>
... ... @@ -52,7 +52,7 @@
<Row>
<Col span="8">
<Form-item label="商品编码*">
<Input v-model="product.factoryCode" placeholder="请输入..."/>
<Input v-model="product.factoryCode" placeholder="请输入..." style="width: 350px;"/>
</Form-item>
</Col>
</Row>
... ... @@ -60,7 +60,7 @@
<Row>
<Col span="8">
<Form-item label="货品年*">
<Date-picker :value="product.goodsYears" type="year" placeholder="选择年" disabled style="width: 200px">
<Date-picker :value="product.goodsYears" type="year" placeholder="选择年" disabled style="width: 350px;" >
</Date-picker>
</Form-item>
</Col>
... ... @@ -192,7 +192,7 @@
<Col span="4">
<div class="upload-item">
<div class="upload-item-img" >
<img :src="good.goodsImage[0].imageUrl" alt="" width="120px" height="120px" v-if="good.goodsImage[0].imageUrl">
<img :src="good.goodsImage[0].imageUrl" alt="" width="120px" height="122px" v-if="good.goodsImage[0].imageUrl">
</div>
<div class="upload-item-title">
... ... @@ -399,8 +399,7 @@ export default {
return `<div v-if="isExist(${index})">
<i-input
v-model="row.factoryGoodsName"
placeholder="请输入..."
style="width: 100px"
:placeholder="row.goodsName.name"
@on-blur="changeFactoryGoodsName(row,${index})">
</i-input>
</div>`;
... ... @@ -409,12 +408,19 @@ export default {
{
title: '色卡图片*',
key: 'goodsColorImage',
width: 170,
render(row, col, index) {
return `<img v-if="row.goodsColorImage"
:src="row.goodsColorImage" alt="" width="120px" height="120px">
<yoho-upload :id="{index: ${index}}"
@on-success="uploadSuccess"
@on-error="uploadError"></yoho-upload>`;
return `<div class="upload-item">
<div class="upload-item-img">
<img v-if="row.goodsColorImage"
:src="row.goodsColorImage" alt="" width="120px" height="122px">
</div>
<div>
<yoho-upload :id="{index: ${index}}"
@on-success="uploadSuccess"
@on-error="uploadError"></yoho-upload>
</div>
</div>`;
}
},
{
... ... @@ -426,7 +432,7 @@ export default {
v-model="row.factoryCode"
@on-blur="changeFactoryCode(row, ${index})"
placeholder="请输入..."
style="width: 100px">
>
</i-input>
</div>`;
}
... ... @@ -434,6 +440,7 @@ export default {
{
title: '尺码*',
key: 'sizeId',
width: 80,
render(row, col, index) {
return `<div class="size-id">
<div v-for="size in row.sizeId" class="row-span">
... ... @@ -453,7 +460,7 @@ export default {
@on-blur="changeSizeCode(row, ${index}, i)"
:disabled="!table.data[${index}].operator[i].value"
placeholder="请输入..."
style="width: 100px"/>
/>
</div>
</div>`;
}
... ... @@ -461,6 +468,7 @@ export default {
{
title: '操作',
key: 'operator',
width: 100,
render(row, col, index) {
return `<template v-if="isExist(${index})">
<div class="size-operator" v-if="table.data[${index}]">
... ... @@ -789,7 +797,7 @@ export default {
};
newColor.factoryCode = tableColor.factoryCode;
newColor.factoryGoodsName = tableColor.factoryGoodsName;
newColor.factoryGoodsName = tableColor.factoryGoodsName || tableColor.goodsName.name;
newColor.isDefault = tableColor.goodsName.isDefault ? 'Y' : 'N';
newColor.goodsColorImage = tableColor.goodsColorImage;
newColor.productSkc = tableColor.productSkc;
... ... @@ -1111,17 +1119,20 @@ export default {
.size-id {
@include row-span;
text-align: center;
}
.size-operator {
@include row-span;
text-align: center;
}
.upload-item {
display: inline-block;
height: 200px;
height: 180px;
width: 130px;
text-align: center;
margin: 10px 0;
}
.color-item-title {
... ...
<template>
<Checkbox-group :value="handleValue" @input="updateValue" >
<Checkbox-group :value="handleValue" @input="updateValue" style="width: 350px;" >
<Checkbox label="1" disabled>
<span>成人</span>
</Checkbox>
... ...
<template>
<Radio-group :value="handleValue" @input="updateValue">
<Radio-group :value="handleValue" @input="updateValue" style="width: 350px;">
<Radio label="1" disabled>
<span>男</span>
</Radio>
... ...
<template>
<Select :value="handleValue" @input="updateValue" placeholder="请选择" disabled>
<Select :value="handleValue" @input="updateValue" placeholder="请选择" disabled style="width: 350px;">
<Option value="1" disabled>春季</Option>
<Option value="2" disabled>夏季</Option>
<Option value="3" disabled>秋季</Option>
... ...
... ... @@ -4,7 +4,7 @@
<Select :value="handleSelectValue"
@input="updateSelectValue"
:placeholder="'请选择' + attr.attributeName"
style="width: 250px">
style="width: 350px;">
<Option v-for="name in attr.idNameList" :value="name.id" :key="name">{{name.text}}</Option>
</Select>
</template>
... ...
<template>
<Radio-group :value="handleValue" @input="updateValue">
<Radio-group :value="handleValue" @input="updateValue" style="width: 350px;">
<Radio label="spring" disabled>
<span>春秋</span>
</Radio>
... ...