新增商品导入记录
This commit is contained in:
parent
6abb1cc3bb
commit
94457705ae
@ -9,17 +9,12 @@
|
||||
:row-class-name="tableRowClassName"
|
||||
:row-key="
|
||||
(row) => {
|
||||
return row.product_id;
|
||||
return row.product_id+''+ Math.floor(Math.random()*10000) ;
|
||||
}
|
||||
"
|
||||
@selection-change="handleSelectionChange"
|
||||
@rowclick.stop="closeEdit"
|
||||
>
|
||||
<el-table-column
|
||||
type="selection"
|
||||
:reserve-selection="true"
|
||||
width="55"
|
||||
/>
|
||||
<el-table-column type="expand">
|
||||
<template slot-scope="props">
|
||||
<el-form
|
||||
@ -70,95 +65,19 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="product_id" label="ID" min-width="50" />
|
||||
<el-table-column label="商品图" min-width="80">
|
||||
<el-table-column prop="name" label="商品名称" min-width="200"></el-table-column>
|
||||
<el-table-column prop="content" label="备注" min-width="90" >
|
||||
<template slot-scope="scope">
|
||||
<div class="demo-image__preview">
|
||||
<el-image
|
||||
:src="scope.row.image"
|
||||
:preview-src-list="[scope.row.image]"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="store_name" label="商品名称" min-width="200">
|
||||
<template slot-scope="scope">
|
||||
<div v-if="scope.row.attrValue && scope.row.attrValue.length > 1">
|
||||
<span style="color: #fe8c51; font-size: 10px; margin-right: 4px"
|
||||
>[多规格]</span
|
||||
>{{ scope.row.store_name }}
|
||||
</div>
|
||||
<span v-else>{{ scope.row.store_name }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="price" label="商品售价" min-width="90" />
|
||||
<el-table-column prop="price" label="批发价" min-width="90">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.attrValue[0]">
|
||||
{{ scope.row.attrValue[0].procure_price || "-" }}</span
|
||||
>
|
||||
<span v-if="scope.row.content" style="color: #efb32c;">{{scope.row.content}}</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="svip_price" label="会员价" min-width="90">
|
||||
<el-table-column prop="status" label="商品状态" min-width="90">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.svip_price || "-" }}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column prop="sales" label="销量" min-width="90" />
|
||||
<el-table-column prop="stock" label="库存" min-width="70" />
|
||||
<!-- <el-table-column prop="integral_total" label="积分抵扣" min-width="70" />
|
||||
<el-table-column prop="integral_price_total" label="积分抵扣金额" min-width="90" /> -->
|
||||
<el-table-column prop="sort" align="center" label="排序" min-width="80">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.index === tabClickIndex">
|
||||
<el-input
|
||||
v-model.number="scope.row['sort']"
|
||||
type="number"
|
||||
maxlength="300"
|
||||
size="mini"
|
||||
autofocus
|
||||
@blur="inputBlur(scope)"
|
||||
/>
|
||||
</span>
|
||||
<span v-else @dblclick.stop="tabClick(scope.row)">{{
|
||||
scope.row["sort"]
|
||||
}}</span>
|
||||
<span v-if="scope.row.status==1" style="color: #13ce66;">已导入</span>
|
||||
<span v-else style="color: #ff0018;">未导入</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
v-if="Number(tableFrom.type) < 5"
|
||||
key="1"
|
||||
prop="status"
|
||||
label="上/下架"
|
||||
min-width="150"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.is_show"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
active-text="上架"
|
||||
inactive-text="下架"
|
||||
@change="onchangeIsShow(scope.row)"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column prop="stock" label="商品状态" min-width="90">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.us_status | productStatusFilter }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="stock" label="标签" min-width="90">
|
||||
<template slot-scope="scope">
|
||||
<div
|
||||
v-for="(item, index) in scope.row.mer_labels"
|
||||
:key="index"
|
||||
class="label-list"
|
||||
>
|
||||
{{ item.name }}
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
<el-table-column prop="create_time" label="创建时间" min-width="150" />
|
||||
</el-table>
|
||||
<div class="block">
|
||||
|
Loading…
x
Reference in New Issue
Block a user