瀏覽代碼

scope改slot-scope

qukaidi 4 年之前
父節點
當前提交
b4c49dadc6
共有 2 個文件被更改,包括 65 次插入65 次删除
  1. 32 32
      src/views/fleet/plans/AddOrUpdate.vue
  2. 33 33
      src/views/fleet/scheduling/AddOrUpdate.vue

+ 32 - 32
src/views/fleet/plans/AddOrUpdate.vue

@@ -391,7 +391,7 @@
               </div>
               <el-table :data="planList">
                 <el-table-column label="箱型" align="center" prop="cntrId">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-select
                       v-model="scope.row.cntrId"
                       placeholder="请选择箱型"
@@ -412,7 +412,7 @@
                   align="center"
                   prop="priceType"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-select
                       v-model="scope.row.priceType"
                       placeholder="请输入计价方式"
@@ -429,7 +429,7 @@
                 </el-table-column>
 
                 <el-table-column label="应收运价" align="center" prop="priceDr">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.priceDr"
                       placeholder="应收运价"
@@ -438,7 +438,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="应付运价" align="center" prop="priceCr">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.priceCr"
                       placeholder="应付运价"
@@ -447,7 +447,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="计划货量" align="center" prop="cntrQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrQty"
                       placeholder="计划货量"
@@ -460,7 +460,7 @@
                   align="center"
                   prop="cntrPlanQty"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrPlanQty"
                       placeholder="已调度货量"
@@ -473,7 +473,7 @@
                   align="center"
                   prop="cntrBlcQty"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="已派车货量"
@@ -482,7 +482,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="备注" align="center" prop="remarks">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.remarks" placeholder="备注" :disabled="disabled" />
                   </template>
                 </el-table-column>
@@ -493,7 +493,7 @@
                   class-name="small-padding fixed-width"
                   width="100"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"
@@ -550,7 +550,7 @@
                   align="center"
                   label="附件名称"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-input
                       v-model="scope.row.attachName"
                       placeholder="附件名称"
@@ -564,7 +564,7 @@
                   align="center"
                   label="上传人"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-input
                       v-model="scope.row.opuserID"
                       placeholder="上传人"
@@ -578,7 +578,7 @@
                   align="center"
                   label="上传时间"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-date-picker
                       v-model="scope.row.opdata"
                       type="date"
@@ -595,7 +595,7 @@
                   align="center"
                   label="上传附件"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <uploadFile
                       @input="showFile"
                       v-model="scope.row.attachUrl"
@@ -608,7 +608,7 @@
                   label="操作"
                   width="130PX"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"
@@ -653,7 +653,7 @@
               </div>
               <el-table :data="detailList" v-if="userType == '00'">
                 <el-table-column label="结算单位" align="center" prop="cntrId">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrId"
                       placeholder="结算单位"
@@ -666,7 +666,7 @@
                   align="center"
                   prop="priceType"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.priceType"
                       placeholder="费用名称"
@@ -675,12 +675,12 @@
                 </el-table-column>
 
                 <el-table-column label="收付" align="center" prop="dc">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.dc" placeholder="收付" />
                   </template>
                 </el-table-column>
                 <el-table-column label="计费单位" align="center" prop="priceCr">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.priceCr"
                       placeholder="计费单位"
@@ -688,17 +688,17 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="计费数量" align="center" prop="qty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.qty" placeholder="计费数量" />
                   </template>
                 </el-table-column>
                 <el-table-column label="单价" align="center" prop="price">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.price" placeholder="单价" />
                   </template>
                 </el-table-column>
                 <el-table-column label="币种" align="center" prop="cntrBlcQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="币种"
@@ -706,7 +706,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="税率" align="center" prop="cntrBlcQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="税率"
@@ -714,12 +714,12 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="金额" align="center" prop="amt">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.amt" placeholder="金额" />
                   </template>
                 </el-table-column>
                 <el-table-column label="税率" align="center" prop="cntrBlcQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="税率"
@@ -727,7 +727,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="备注" align="center" prop="remarks">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.remarks" placeholder="备注" />
                   </template>
                 </el-table-column>
@@ -738,7 +738,7 @@
                   class-name="small-padding fixed-width"
                   width="100"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"
@@ -783,7 +783,7 @@
               </div>
               <el-table :data="schedulingList" v-if="userType == '00'">
                 <el-table-column label="箱型" align="center" prop="cntrId">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.cntrId" placeholder="箱型" />
                   </template>
                 </el-table-column>
@@ -793,7 +793,7 @@
                   align="center"
                   prop="carcorPid"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.carcorPid"
                       placeholder="车队名称"
@@ -806,7 +806,7 @@
                   align="center"
                   prop="cntrQty"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrQty"
                       placeholder="调度安排货量"
@@ -818,7 +818,7 @@
                   align="center"
                   prop="carQty"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.carQty"
                       placeholder="已派车货量"
@@ -826,7 +826,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="备注" align="center" prop="remarks">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.remarks" placeholder="备注" />
                   </template>
                 </el-table-column>
@@ -837,7 +837,7 @@
                   class-name="small-padding fixed-width"
                   width="100"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"

+ 33 - 33
src/views/fleet/scheduling/AddOrUpdate.vue

@@ -320,7 +320,7 @@
               </div>
              <el-table :data="planList">
           <el-table-column label="箱型" align="center" prop="cntrId">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-select v-model="scope.row.cntrId" placeholder="请选择箱型">
                 <el-option
                   v-for="(dict, index) in cntrIdList"
@@ -334,33 +334,33 @@
           </el-table-column>
 
           <el-table-column label="计价方式" align="center" prop="priceType">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input v-model="scope.row.priceType" placeholder="计价方式" />
             </template>
           </el-table-column>
 
           <el-table-column label="运价" align="center" prop="pricecr">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input v-model="scope.row.pricecr" placeholder="运价" />
             </template>
           </el-table-column>
           <el-table-column label="卸箱场站" align="center" prop="unLoadAddr">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input v-model="scope.row.unLoadAddr" placeholder="卸箱场站" />
             </template>
           </el-table-column>
           <el-table-column label="卸箱时间" align="center" prop="unLoadDate">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input v-model="scope.row.unLoadDate" placeholder="卸箱时间" />
             </template>
           </el-table-column>
           <el-table-column label="计划货量" align="center" prop="cntrQty">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input v-model="scope.row.cntrQty" placeholder="计划货量" />
             </template>
           </el-table-column>
           <el-table-column label="已调度货量" align="center" prop="cntrPlanQty">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input
                 v-model="scope.row.cntrPlanQty"
                 placeholder="已调度货量"
@@ -368,7 +368,7 @@
             </template>
           </el-table-column>
           <el-table-column label="已派车货量" align="center" prop="cntrBlcQty">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input
                 v-model="scope.row.cntrBlcQty"
                 placeholder="已派车货量"
@@ -376,7 +376,7 @@
             </template>
           </el-table-column>
           <el-table-column label="备注" align="center" prop="remarks">
-            <template scope="scope">
+            <template slot-scope="scope">
               <el-input v-model="scope.row.remarks" placeholder="备注" />
             </template>
           </el-table-column>
@@ -387,7 +387,7 @@
             class-name="small-padding fixed-width"
             width="100"
           >
-            <template slot-scope="scope">
+            <template slot-slot-scope="scope">
               <el-button
                 size="mini"
                 type="text"
@@ -444,7 +444,7 @@
                   align="center"
                   label="附件名称"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-input
                       v-model="scope.row.attachName"
                       placeholder="附件名称"
@@ -458,7 +458,7 @@
                   align="center"
                   label="上传人"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-input
                       v-model="scope.row.opuserID"
                       placeholder="上传人"
@@ -472,7 +472,7 @@
                   align="center"
                   label="上传时间"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-date-picker
                       v-model="scope.row.opdata"
                       type="date"
@@ -489,7 +489,7 @@
                   align="center"
                   label="上传附件"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <uploadFile
                       @input="showFile"
                       v-model="scope.row.attachUrl"
@@ -502,7 +502,7 @@
                   label="操作"
                   width="130PX"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"
@@ -547,7 +547,7 @@
               </div>
               <el-table :data="detailList" v-if="userType == '00'">
                 <el-table-column label="结算单位" align="center" prop="cntrId">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrId"
                       placeholder="结算单位"
@@ -560,7 +560,7 @@
                   align="center"
                   prop="priceType"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.priceType"
                       placeholder="费用名称"
@@ -569,12 +569,12 @@
                 </el-table-column>
 
                 <el-table-column label="收付" align="center" prop="dc">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.dc" placeholder="收付" />
                   </template>
                 </el-table-column>
                 <el-table-column label="计费单位" align="center" prop="priceCr">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.priceCr"
                       placeholder="计费单位"
@@ -582,17 +582,17 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="计费数量" align="center" prop="qty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.qty" placeholder="计费数量" />
                   </template>
                 </el-table-column>
                 <el-table-column label="单价" align="center" prop="price">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.price" placeholder="单价" />
                   </template>
                 </el-table-column>
                 <el-table-column label="币种" align="center" prop="cntrBlcQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="币种"
@@ -600,7 +600,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="税率" align="center" prop="cntrBlcQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="税率"
@@ -608,12 +608,12 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="金额" align="center" prop="amt">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.amt" placeholder="金额" />
                   </template>
                 </el-table-column>
                 <el-table-column label="税率" align="center" prop="cntrBlcQty">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrBlcQty"
                       placeholder="税率"
@@ -621,7 +621,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="备注" align="center" prop="remarks">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.remarks" placeholder="备注" />
                   </template>
                 </el-table-column>
@@ -632,7 +632,7 @@
                   class-name="small-padding fixed-width"
                   width="100"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"
@@ -677,7 +677,7 @@
               </div>
               <el-table :data="schedulingList" v-if="userType == '00'">
                 <el-table-column label="箱型" align="center" prop="cntrId">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.cntrId" placeholder="箱型" />
                   </template>
                 </el-table-column>
@@ -687,7 +687,7 @@
                   align="center"
                   prop="carcorPid"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.carcorPid"
                       placeholder="车队名称"
@@ -700,7 +700,7 @@
                   align="center"
                   prop="cntrQty"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.cntrQty"
                       placeholder="调度安排货量"
@@ -712,7 +712,7 @@
                   align="center"
                   prop="carQty"
                 >
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input
                       v-model="scope.row.carQty"
                       placeholder="已派车货量"
@@ -720,7 +720,7 @@
                   </template>
                 </el-table-column>
                 <el-table-column label="备注" align="center" prop="remarks">
-                  <template scope="scope">
+                  <template slot-scope="scope">
                     <el-input v-model="scope.row.remarks" placeholder="备注" />
                   </template>
                 </el-table-column>
@@ -731,7 +731,7 @@
                   class-name="small-padding fixed-width"
                   width="100"
                 >
-                  <template slot-scope="scope">
+                  <template slot-slot-scope="scope">
                     <el-button
                       size="mini"
                       type="text"