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

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

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