ysy 1 gadu atpakaļ
vecāks
revīzija
21ffc15392

+ 9 - 0
src/views/productionPlan/index.vue

@@ -227,6 +227,15 @@
             showOverflowTooltip: true,
             minWidth: 140
           },
+          {
+            prop: 'productName',
+            label: '产品名称',
+            align: 'center',
+            showOverflowTooltip: true,
+            minWidth: 140
+          },
+
+
           {
             prop: 'brandNo',
             label: '牌号',

+ 24 - 24
src/views/saleOrder/salesToProduction.vue

@@ -121,10 +121,10 @@
             align="center"
             prop="productName"
             width="120"
-            sortable
+    
           >
           </el-table-column>
-      
+
           <el-table-column label="行号" align="center" prop="lineNumber">
           </el-table-column>
           <el-table-column label="合同数量" align="center" prop="contractNum">
@@ -280,26 +280,28 @@
             width="100"
             align="center"
           >
-          <template slot-scope="{ row }">
-            <el-input
-              v-model="row.priority"
-              type="number"
-              size="mini"
+            <template slot-scope="{ row, $index }">
+              <el-input
+                v-if="$index == 0"
+                v-model="row.priority"
+                type="number"
+                size="mini"
                 :min="0"
-          :max="10"
-              @change="priorityChange(row)"
-            ></el-input>
-            <el-popover
-            placement="right"
-            width="200"
-            trigger="hover"
-            content="数值越大优先级越高(0-3普通, 4-6优先, 7-10紧急)"
-          >
-            <div class="sort-wrap"  slot="reference">
-              <i class="el-icon-caret-top" @click="sortTop(row)"></i>
-              <i class="el-icon-caret-bottom" @click="sortBottom(row)"></i>
-            </div>
-          </el-popover>
+                :max="10"
+                @change="priorityChange(row)"
+              ></el-input>
+              <el-popover
+                v-if="$index == 0"
+                placement="right"
+                width="200"
+                trigger="hover"
+                content="数值越大优先级越高(0-3普通, 4-6优先, 7-10紧急)"
+              >
+                <div class="sort-wrap" slot="reference">
+                  <i class="el-icon-caret-top" @click="sortTop(row)"></i>
+                  <i class="el-icon-caret-bottom" @click="sortBottom(row)"></i>
+                </div>
+              </el-popover>
             </template>
           </el-table-column>
 
@@ -555,9 +557,7 @@
         this.priorityFn(row);
       },
 
-      priorityFn: debounce(function (row) {
-    
-      }, 800),
+      priorityFn: debounce(function (row) {}, 800),
 
       // 删除产品
       handleDeleteItem(index) {