Pārlūkot izejas kodu

【修改】家用工程 新增、编辑字段顺序

howie 2 gadi atpakaļ
vecāks
revīzija
c8dc158cbf
1 mainītis faili ar 28 papildinājumiem un 25 dzēšanām
  1. 28 25
      src/views/supply/engin/components/home_form.vue

+ 28 - 25
src/views/supply/engin/components/home_form.vue

@@ -233,34 +233,36 @@
 
           </template>
         </el-table-column>
-        <el-table-column align="center" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
-          <template slot-scope="scope">
-            <el-input v-model="scope.row.realMaterialNumber" :class="scope.row.realMaterialNumber !== scope.row.materialNumber?'input':''" size="small" readonly @click.native="getRealMaterData(scope.$index)" />
-          </template>
-        </el-table-column>
-        <el-table-column align="center" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+        <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
-            <el-input v-model="scope.row.realMaterialOldNumber" :class="scope.row.realMaterialOldNumber !== scope.row.materialOldNumber?'input':''" size="small" readonly @click.native="getRealMaterData(scope.$index)" />
+            <el-input v-model="scope.row.qty" size="small" type="number" @mousewheel.native.prevent />
           </template>
         </el-table-column>
 
-        <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
         <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             <el-input v-model="scope.row.price" size="small" type="number" @mousewheel.native.prevent />
           </template>
         </el-table-column>
-        <el-table-column align="center" label="工程登录数量" prop="enginNum" min-width="120" show-overflow-tooltip />
-        <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip>
+        <el-table-column align="center" label="订单金额" prop="dida" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
-            <el-input v-model="scope.row.qty" size="small" type="number" @mousewheel.native.prevent />
+            {{ scope.row.price * scope.row.qty }}
           </template>
         </el-table-column>
-        <el-table-column align="center" label="订单金额" prop="dida" min-width="100" show-overflow-tooltip>
+        <el-table-column align="center" label="工程登录数量" prop="enginNum" min-width="120" show-overflow-tooltip />
+        <el-table-column align="center" label="现金钱包" prop="customerWalletId" min-width="160" show-overflow-tooltip>
           <template slot-scope="scope">
-            {{ scope.row.price * scope.row.qty }}
+            <el-select v-model="scope.row.customerWalletId" placeholder="选择现金钱包" size="small" clearable @change="changeXjWallet(scope.$index)">
+              <el-option
+                v-for="item in scope.row.wallets"
+                :key="item.customerWalletId"
+                :label="item.customerWalletName"
+                :value="item.customerWalletId"
+              />
+            </el-select>
           </template>
         </el-table-column>
+
         <el-table-column align="center" label="返利类型" prop="customerWalletId2" min-width="160" show-overflow-tooltip>
           <template slot-scope="scope">
             <el-select v-model="scope.row.customerWalletId2" placeholder="选择返利类型" size="small" clearable @change="changeFlWallet(scope.$index)">
@@ -283,18 +285,7 @@
             {{ scope.row.qty * scope.row.discAmount }}
           </template>
         </el-table-column>
-        <el-table-column align="center" label="现金钱包" prop="customerWalletId" min-width="160" show-overflow-tooltip>
-          <template slot-scope="scope">
-            <el-select v-model="scope.row.customerWalletId" placeholder="选择现金钱包" size="small" clearable @change="changeXjWallet(scope.$index)">
-              <el-option
-                v-for="item in scope.row.wallets"
-                :key="item.customerWalletId"
-                :label="item.customerWalletName"
-                :value="item.customerWalletId"
-              />
-            </el-select>
-          </template>
-        </el-table-column>
+
         <el-table-column align="center" label="实付金额" min-width="100" show-overflow-tooltip prop="compute_sfAmount">
           <template slot-scope="scope">
             {{ ((scope.row.price * scope.row.qty) * 100 - ((scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100) * 100 - ((scope.row.qty * (scope.row.discAmount * 100)) / 100) * 100) / 100 }}
@@ -313,12 +304,24 @@
             <el-input v-model="scope.row.remark" size="small" />
           </template>
         </el-table-column>
+        <el-table-column align="center" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
+          <template slot-scope="scope">
+            <el-input v-model="scope.row.realMaterialNumber" :class="scope.row.realMaterialNumber !== scope.row.materialNumber?'input':''" size="small" readonly @click.native="getRealMaterData(scope.$index)" />
+          </template>
+        </el-table-column>
+        <el-table-column align="center" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
+          <template slot-scope="scope">
+            <el-input v-model="scope.row.realMaterialOldNumber" :class="scope.row.realMaterialOldNumber !== scope.row.materialOldNumber?'input':''" size="small" readonly @click.native="getRealMaterData(scope.$index)" />
+          </template>
+        </el-table-column>
         <el-table-column align="center" label="税率" prop="tax" min-width="100" show-overflow-tooltip />
         <!-- <el-table-column align="center" label="总仓库" prop="status1" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             <div>{{ scope.row.status1 | status1Filter }}</div>
           </template>
         </el-table-column> -->
+        <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
+
         <el-table-column align="center" label="仓库状态" prop="status2" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             <div>{{ status2Filter(scope.row) }}</div>