shish 1 год назад
Родитель
Сommit
34eeaef0cf
1 измененных файлов с 12 добавлено и 19 удалено
  1. 12 19
      ghs/src/views/item/list.vue

+ 12 - 19
ghs/src/views/item/list.vue

@@ -26,7 +26,7 @@
       </template>
 
       <template #table-column-status="{scope}">
-		<i class="el-icon-success" v-if="scope.row.status == 1" style="color:#67C23A;font-size:19px;"></i>
+		<span v-if="scope.row.status == 1">上架</span>
 		<span v-else>-</span>
       </template>
 
@@ -36,14 +36,9 @@
       </template>
 
       <template #table-column-price="{scope}">
-        <span v-if="!priceInput" style="color:blue;"><span>{{ scope.row.price}}</span></span>
+        <span v-if="!priceInput"><span>{{ scope.row.price}}</span></span>
 		<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else placeholder="" v-model="scope.row.price" @blur="changeInputValue(scope.row, 'price')" ></el-input>
       </template>
-      <template #table-header-price>
-        <div class="set-sort">
-          <span style="color:blue;">批发价</span>
-        </div>
-      </template>
 
       <template #table-column-stockWarning="{scope}">
         <span v-if="!stockWarningInput"><span>{{ scope.row.stockWarning}}</span></span>
@@ -68,6 +63,8 @@
 
       <template #slot-modify="{ scope }">
 
+		<el-button type="text" @click.native.stop="getStockList(scope.row)" >库存明细</el-button>
+
 		<el-button type="text" @click.native.stop="replaceBtnFn(scope.row.id)" >修改</el-button>
 
 		<el-popover style="margin-left:10px;margin-right:10px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
@@ -82,8 +79,6 @@
 		<el-button type="text" v-if="scope.row.delStatus==0" @click.native.stop="setDelStatusFun(scope.row.id,1)" >停用</el-button>
 		<el-button type="text" v-if="scope.row.delStatus==1" @click.native.stop="setDelStatusFun(scope.row.id,0)" >恢复</el-button>
 
-		<el-button type="text" @click.native.stop="getStockList(scope.row)" >库存明细</el-button>
-
 	</template>
 
 		<template #table-column-cost="{scope}">
@@ -599,18 +594,22 @@ export default {
       ctx.service(this.$service.product)
         .set('table', {
           columns: [
+		  	{
+              prop: 'id',
+              label: 'ID',
+              align: 'center',
+              'min-width': 50
+            },
             {
               prop: 'name',
               label: '名称',
               align: 'center',
-			  fixed: 'left',
               'min-width': 140
             },
 			{
 				prop: 'cover',
 				label: '图片',
 				align: 'center',
-				fixed: 'left',
 				'min-width': 60,
 			},
             {
@@ -672,19 +671,13 @@ export default {
               label: '单位比',
               align: 'center',
               'min-width': 70
-            },
-            {
-              prop: 'id',
-              label: 'ID',
-              align: 'center',
-              'min-width': 50
             },
 			{
               prop: 'status',
-              label: '上架',
+              label: '状态',
               align: 'center',
               minWidth: 60
-            },
+            }
           ],
           op: {
             visible: true,