提交 57e7c4b4 authored 作者: 郑伟娜's avatar 郑伟娜

修改库存可输入;修改状态;

上级 d58c9e05
......@@ -79,4 +79,10 @@
.goods-img {
padding: 20px;
}
/deep/ .w-e-text-container {
z-index: 1000!important;
}
/deep/ .w-e-toolbar {
z-index: 1000!important;
}
</style>
......@@ -268,7 +268,11 @@
</span>
</template>
</el-table-column>
<el-table-column label="库存量" width="160px" prop="stock" align="center"></el-table-column>
<el-table-column label="库存量" width="160px" prop="stock" align="center">
<template slot-scope="scope">
<el-input v-model.trim="scope.row.stock" />
</template>
</el-table-column>
</el-table>
<el-table :data="[1]" class="hot-edit-goods-table" border v-else>
<el-table-column label="规格项" prop="spe" align="center">
......@@ -278,7 +282,7 @@
</el-table-column>
<el-table-column label="库存量" width="160px" prop="stock" align="center">
<template slot-scope="scope">
{{ stock }}
<el-input v-model.trim="scope.row.stock" />
</template>
</el-table-column>
</el-table>
......
......@@ -171,7 +171,7 @@
<template slot-scope="scope">
<span>{{ timeFormatter(scope.row.created_time) }}</span><br/>
<span :class="{ 'red-text' : sendTimeFormatter(scope.row.send_time) == '未发货' }">{{ sendTimeFormatter(scope.row.send_time) }}</span><br/>
<span :class="{ 'red-text' : updatedTimeFormatter(scope.row.updated_time) == '未完成' }">{{ updatedTimeFormatter(scope.row.updated_time) }}</span>
<span :class="{ 'red-text' : updatedTimeFormatter(scope.row.updated_time) == '未完成' }">{{ updatedTimeFormatter(scope.row.updated_time, scope.row.goods_status) }}</span>
</template>
</el-table-column>
<el-table-column prop="dispatch_price" width="100" label="运费" align="center">
......@@ -461,8 +461,8 @@
},
/** 发货时间 格式化 */
updatedTimeFormatter(time) {
if(time) {
updatedTimeFormatter(time, status) {
if(time && status == 2) {
return dateFormat(time *1000, 'Y-m-d H:i:s')
} else {
return '未完成'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论