Jelajahi Sumber

3、商用工程订单,货品信息处,能否在规格型号这列固定住,商家往右边拉填完数量后,不用经常往回拉,才能再勾选提交

aXin-0810 1 tahun lalu
induk
melakukan
9e6faac6d3

+ 34 - 12
src/views/supply/engin/components/commerce_detail.vue

@@ -181,9 +181,17 @@
             show-summary
             :summary-method="$getSummaries"
           >
-            <el-table-column align="center" label="序号" type="index" width="50" />
-            <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip />
+            <el-table-column align="center" fixed label="序号" type="index" width="50" />
+            <el-table-column
+              align="left"
+              fixed
+              label="销售类型"
+              prop="saleTypeName"
+              min-width="100"
+              show-overflow-tooltip
+            />
             <el-table-column
+              fixed
               align="left"
               label="物料编码"
               prop="materialNumber"
@@ -191,14 +199,29 @@
               show-overflow-tooltip
             />
             <el-table-column
+              fixed
               align="left"
               label="产品编码"
               prop="materialOldNumber"
               min-width="120"
               show-overflow-tooltip
             />
-            <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-            <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip />
+            <el-table-column
+              align="left"
+              fixed
+              label="产品名称"
+              prop="materialName"
+              min-width="160"
+              show-overflow-tooltip
+            />
+            <el-table-column
+              align="left"
+              fixed
+              label="规格型号"
+              prop="specification"
+              min-width="350"
+              show-overflow-tooltip
+            />
             <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
             <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
               <template slot-scope="scope">
@@ -302,22 +325,21 @@
             v-if="detailData.examineStatus === 'SAVE' || detailData.examineStatus === 'WAIT'"
             type="danger"
             @click="closeData"
-          >关闭订单</el-button>
+            >关闭订单</el-button
+          >
           <!-- <el-button type="primary" @click="openDirectDialog" v-if="!isDealer">提前开票</el-button> -->
 
           <template v-if="detailData.isPlanOrder === 'true'">
-            <el-button
-              v-if="!isDealer"
-              type="primary"
-              :disabled="detailData.directTransferStatus"
-              @click="overData"
-            >直调完结</el-button>
+            <el-button v-if="!isDealer" type="primary" :disabled="detailData.directTransferStatus" @click="overData"
+              >直调完结</el-button
+            >
             <el-button
               v-if="!isDealer"
               type="primary"
               :disabled="detailData.directTransferStatus"
               @click="openDeliverDialog"
-            >直调发货</el-button>
+              >直调发货</el-button
+            >
           </template>
           <el-button @click="goBack">返回列表</el-button>
         </div>

+ 45 - 9
src/views/supply/engin/components/commerce_examine.vue

@@ -3,7 +3,9 @@
     <el-page-header content="审批" @back="goBack" />
 
     <div class="main-title">
-      <div class="title">工程订单 <span style="margin-left: 20px">经销商名称:{{detailData.customerName}}</span></div>
+      <div class="title">
+        工程订单 <span style="margin-left: 20px">经销商名称:{{ detailData.customerName }}</span>
+      </div>
     </div>
 
     <div class="diy-table-1">
@@ -161,13 +163,48 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
-        <el-table-column align="left" label="引用记录" prop="useRefCount" min-width="100" show-overflow-tooltip />
-        <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip />
-        <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
+        <el-table-column align="left" fixed label="引用记录" prop="useRefCount" min-width="100" show-overflow-tooltip />
+        <el-table-column
+          align="left"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="100"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品编码"
+          prop="materialOldNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="规格型号"
+          prop="specification"
+          min-width="350"
+          show-overflow-tooltip
+        />
         <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
         <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
@@ -363,7 +400,6 @@ export default {
           examineCom(params).then(res => {
             this.$successMsg()
             this.goBack()
-
           })
         })
         .catch(() => {})

+ 35 - 6
src/views/supply/engin/components/commerce_form.vue

@@ -246,20 +246,49 @@
         max-height="400"
         @selection-change="handleSelectionChange"
       >
-        <el-table-column align="center" type="selection" width="55" />
-        <el-table-column align="center" label="序号" type="index" width="50" />
+        <el-table-column align="center" fixed type="selection" width="55" />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
         <!--        <el-table-column align="center" label="引用记录" prop="useRefCount" min-width="160" show-overflow-tooltip></el-table-column>-->
-        <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="center" label="物料编码" prop="materialNumber" min-width="160" show-overflow-tooltip />
         <el-table-column
           align="center"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="center"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          fixed
+          align="center"
           label="产品编码"
           prop="materialOldNumber"
           min-width="120"
           show-overflow-tooltip
         />
-        <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="center" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip>
+        <el-table-column
+          align="center"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="center"
+          fixed
+          label="规格型号"
+          prop="specification"
+          min-width="300"
+          show-overflow-tooltip
+        >
           <template slot-scope="scope">
             <el-input v-if="listItem" v-model="scope.row.specification" size="small" />
             <div v-else>{{ scope.row.specification }}</div>

+ 45 - 9
src/views/supply/engin/components/commerce_return.vue

@@ -3,7 +3,9 @@
     <el-page-header content="退订" @back="goBack" />
 
     <div class="main-title">
-      <div class="title">工程订单 <span style="margin-left: 20px">经销商名称:{{detailData.customerName}}</span></div>
+      <div class="title">
+        工程订单 <span style="margin-left: 20px">经销商名称:{{ detailData.customerName }}</span>
+      </div>
     </div>
 
     <div class="diy-table-1">
@@ -144,13 +146,48 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
-        <el-table-column align="left" label="引用记录" prop="useRefCount" min-width="100" show-overflow-tooltip />
-        <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip />
-        <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
+        <el-table-column align="left" fixed label="引用记录" prop="useRefCount" min-width="100" show-overflow-tooltip />
+        <el-table-column
+          align="left"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="100"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品编码"
+          prop="materialOldNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="规格型号"
+          prop="specification"
+          min-width="350"
+          show-overflow-tooltip
+        />
         <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
         <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
@@ -355,7 +392,6 @@ export default {
           returnCom(params).then(res => {
             this.$successMsg()
             this.goBack()
-
           })
         })
         .catch(() => {})

+ 18 - 39
src/views/supply/engin/components/engin_detail.vue

@@ -126,9 +126,10 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
         <el-table-column
           align="center"
+          fixed
           label="销售类型"
           prop="saleTypeName"
           min-width="100"
@@ -136,12 +137,14 @@
         />
         <el-table-column
           align="center"
+          fixed
           label="物料编码"
           prop="materialNumber"
           min-width="120"
           show-overflow-tooltip
         />
         <el-table-column
+          fixed
           align="center"
           label="产品编码"
           prop="materialOldNumber"
@@ -150,6 +153,7 @@
         />
         <el-table-column
           align="center"
+          fixed
           label="产品名称"
           prop="materialName"
           min-width="160"
@@ -157,18 +161,13 @@
         />
         <el-table-column
           align="center"
+          fixed
           label="规格型号"
           prop="specification"
           min-width="160"
           show-overflow-tooltip
         />
-        <el-table-column
-          align="center"
-          label="单位"
-          prop="unit"
-          min-width="100"
-          show-overflow-tooltip
-        />
+        <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
         <el-table-column align="right" label="单价" prop="price" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             {{ scope.row.price | numToFixed }}
@@ -180,34 +179,10 @@
             {{ scope.row.totalAmount | numToFixed }}
           </template>
         </el-table-column>
-        <el-table-column
-          align="right"
-          label="已订数量"
-          prop="hasOrderQty"
-          min-width="100"
-          show-overflow-tooltip
-        />
-        <el-table-column
-          align="right"
-          label="已发货数"
-          prop="hasDeliverQty"
-          min-width="100"
-          show-overflow-tooltip
-        />
-        <el-table-column
-          align="center"
-          label="备注"
-          prop="remark"
-          min-width="200"
-          show-overflow-tooltip
-        />
-        <el-table-column
-          align="center"
-          label="税率"
-          prop="taxRate"
-          min-width="100"
-          show-overflow-tooltip
-        />
+        <el-table-column align="right" label="已订数量" prop="hasOrderQty" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="已发货数" prop="hasDeliverQty" min-width="100" show-overflow-tooltip />
+        <el-table-column align="center" label="备注" prop="remark" min-width="200" show-overflow-tooltip />
+        <el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip />
       </el-table>
     </div>
 
@@ -246,14 +221,18 @@
 
     <div class="page-footer">
       <div class="footer">
-        <el-button v-if="!isDealer" type="primary" :disabled="!listItem.isClose" @click="setOrderIsClose(false)">启用</el-button>
-        <el-button v-if="!isDealer" type="primary" :disabled="listItem.isClose" @click="setOrderIsClose(true)">关单</el-button>
+        <el-button v-if="!isDealer" type="primary" :disabled="!listItem.isClose" @click="setOrderIsClose(false)"
+          >启用</el-button
+        >
+        <el-button v-if="!isDealer" type="primary" :disabled="listItem.isClose" @click="setOrderIsClose(true)"
+          >关单</el-button
+        >
         <el-button
           v-if="!isDealer"
           type="primary"
           :disabled="detailData.examineStatus !== 'OK' || detailData.directTransferStatus"
           @click="overData"
-        >直调完结
+          >直调完结
         </el-button>
         <el-button @click="goBack">返回列表</el-button>
       </div>

+ 34 - 6
src/views/supply/engin/components/engin_examine.vue

@@ -210,12 +210,40 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
-        <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="left" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip>
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
+        <el-table-column
+          align="left"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品编码"
+          prop="materialOldNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column align="left" fixed label="规格型号" prop="specification" min-width="160" show-overflow-tooltip>
           <template slot-scope="scope">
             <el-input v-model="scope.row.specification" size="small" />
           </template>

+ 34 - 5
src/views/supply/engin/components/engin_form.vue

@@ -273,8 +273,15 @@
         :summary-method="$getSummaries"
         max-height="400"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
-        <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip>
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
+        <el-table-column
+          align="center"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="120"
+          show-overflow-tooltip
+        >
           <template slot-scope="scope">
             <el-select
               v-if="listItem"
@@ -290,16 +297,38 @@
             <div v-else>{{ scope.row.saleTypeName }}</div>
           </template>
         </el-table-column>
-        <el-table-column align="center" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip />
         <el-table-column
           align="center"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          fixed
+          align="center"
           label="产品编码"
           prop="materialOldNumber"
           min-width="120"
           show-overflow-tooltip
         />
-        <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip>
+        <el-table-column
+          align="center"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="center"
+          fixed
+          label="规格型号"
+          prop="specification"
+          min-width="160"
+          show-overflow-tooltip
+        >
           <template slot-scope="scope">
             <el-input v-if="listItem" v-model="scope.row.specification" size="mini" />
             <div v-else>{{ scope.row.specification }}</div>

+ 45 - 20
src/views/supply/engin/components/home_detail.vue

@@ -219,24 +219,47 @@
             show-summary
             :summary-method="$getSummaries"
           >
-            <el-table-column align="center" label="序号" type="index" width="50" />
-            <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip />
+            <el-table-column align="center" fixed label="序号" type="index" width="50" />
             <el-table-column
               align="left"
+              fixed
+              label="销售类型"
+              prop="saleTypeName"
+              min-width="100"
+              show-overflow-tooltip
+            />
+            <el-table-column
+              fixed
+              align="left"
               label="物料编码"
               prop="materialNumber"
               min-width="120"
               show-overflow-tooltip
             />
             <el-table-column
+              fixed
               align="left"
               label="产品编码"
               prop="materialOldNumber"
               min-width="120"
               show-overflow-tooltip
             />
-            <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-            <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip />
+            <el-table-column
+              align="left"
+              fixed
+              label="产品名称"
+              prop="materialName"
+              min-width="160"
+              show-overflow-tooltip
+            />
+            <el-table-column
+              align="left"
+              fixed
+              label="规格型号"
+              prop="specification"
+              min-width="350"
+              show-overflow-tooltip
+            />
             <el-table-column
               align="left"
               label="实装规格型号"
@@ -301,13 +324,7 @@
                 {{ scope.row.payAmount | numToFixed }}
               </template>
             </el-table-column>
-            <el-table-column
-              align="right"
-              label="退订数量"
-              prop="retiredQty"
-              min-width="100"
-              show-overflow-tooltip
-            />
+            <el-table-column align="right" label="退订数量" prop="retiredQty" min-width="100" show-overflow-tooltip />
             <el-table-column align="right" label="销售数量" prop="salesQty" min-width="100" show-overflow-tooltip />
             <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="100" show-overflow-tooltip />
             <el-table-column
@@ -389,20 +406,19 @@
             v-if="!isDealer && (detailData.examineStatus === 'SAVE' || detailData.examineStatus === 'WAIT')"
             type="danger"
             @click="closeData"
-          >关闭订单</el-button>
+            >关闭订单</el-button
+          >
           <!-- <el-button type="primary" @click="openDirectDialog" v-if="!isDealer">提前开票</el-button> -->
-          <el-button
-            v-if="!isDealer"
-            type="primary"
-            :disabled="detailData.directTransferStatus"
-            @click="overData"
-          >直调完结</el-button>
+          <el-button v-if="!isDealer" type="primary" :disabled="detailData.directTransferStatus" @click="overData"
+            >直调完结</el-button
+          >
           <el-button
             v-if="!isDealer"
             type="primary"
             :disabled="detailData.directTransferStatus"
             @click="openDeliverDialog"
-          >直调发货</el-button>
+            >直调发货</el-button
+          >
           <el-button @click="goBack">返回列表</el-button>
         </div>
       </div>
@@ -750,7 +766,16 @@ export default {
         if (res.data.items) {
           res.data.items.forEach(item => {
             item.number = (item.qty * 100 - item.retiredQty * 100) / 100
-            item.sums1 = ['number', 'directTransferQty','salesQty', 'retiredQty','qty', 'enginNum', 'oldQty', 'hasSendQty']
+            item.sums1 = [
+              'number',
+              'directTransferQty',
+              'salesQty',
+              'retiredQty',
+              'qty',
+              'enginNum',
+              'oldQty',
+              'hasSendQty'
+            ]
             item.sums2 = ['totalAmount', 'payAmount', 'payRebateAmount', 'discAmount', 'salesAmount']
           })
         }

+ 54 - 17
src/views/supply/engin/components/home_examine.vue

@@ -262,14 +262,48 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
         <!-- <el-table-column align="left" label="引用记录" prop="useRefCount" min-width="160" show-overflow-tooltip></el-table-column> -->
-        <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip />
-        <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="120" show-overflow-tooltip />
-        <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip />
-
+        <el-table-column
+          align="left"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="100"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品编码"
+          prop="materialOldNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="left"
+          fixed
+          label="规格型号"
+          prop="specification"
+          min-width="350"
+          show-overflow-tooltip
+        />
         <el-table-column
           align="left"
           label="实装规格型号"
@@ -372,15 +406,9 @@
             }}
           </template>
         </el-table-column>
-        <el-table-column
-              align="right"
-              label="退订数量"
-              prop="retiredQty"
-              min-width="100"
-              show-overflow-tooltip
-            />
-            <el-table-column align="right" label="销售数量" prop="salesQty" min-width="100" show-overflow-tooltip />
-            <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="退订数量" prop="retiredQty" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="销售数量" prop="salesQty" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="100" show-overflow-tooltip />
         <el-table-column align="left" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             {{ scope.row.isDirectTransfer ? '是' : '否' }}
@@ -574,7 +602,16 @@ export default {
       getOrderDetail({ id: this.listItem.parentId }).then(res => {
         if (res.data.items) {
           res.data.items.forEach(item => {
-            item.sums1 = ['directTransferQty', 'qty', 'enginNum', 'salesQty', 'retiredQty','refundableQty', 'tdQty', 'hasSendQty']
+            item.sums1 = [
+              'directTransferQty',
+              'qty',
+              'enginNum',
+              'salesQty',
+              'retiredQty',
+              'refundableQty',
+              'tdQty',
+              'hasSendQty'
+            ]
             item.sums2 = [
               'totalAmount',
               'payAmount',

+ 34 - 5
src/views/supply/engin/components/home_form.vue

@@ -290,19 +290,48 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
         <!-- <el-table-column align="center" label="引用记录" prop="useRefCount" min-width="160" show-overflow-tooltip></el-table-column> -->
-        <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip />
-        <el-table-column align="center" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip />
         <el-table-column
           align="center"
+          fixed
+          label="销售类型"
+          prop="saleTypeName"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="center"
+          fixed
+          label="物料编码"
+          prop="materialNumber"
+          min-width="120"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          fixed
+          align="center"
           label="产品编码"
           prop="materialOldNumber"
           min-width="120"
           show-overflow-tooltip
         />
-        <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-        <el-table-column align="center" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip>
+        <el-table-column
+          align="center"
+          fixed
+          label="产品名称"
+          prop="materialName"
+          min-width="160"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          align="center"
+          fixed
+          label="规格型号"
+          prop="specification"
+          min-width="300"
+          show-overflow-tooltip
+        >
           <template slot-scope="scope">
             <el-input v-if="listItem" v-model="scope.row.specification" size="small" />
             <div v-else>{{ scope.row.specification }}</div>

+ 13 - 38
src/views/supply/engin/components/home_return.vue

@@ -183,16 +183,11 @@
         show-summary
         :summary-method="$getSummaries"
       >
-        <el-table-column align="center" label="序号" type="index" width="50" />
-        <el-table-column
-          align="left"
-          label="引用记录"
-          prop="useRefCount"
-          min-width="100"
-          show-overflow-tooltip
-        />
+        <el-table-column align="center" fixed label="序号" type="index" width="50" />
+        <el-table-column align="left" fixed label="引用记录" prop="useRefCount" min-width="100" show-overflow-tooltip />
         <el-table-column
           align="left"
+          fixed
           label="销售类型"
           prop="saleTypeName"
           min-width="100"
@@ -200,6 +195,7 @@
         />
         <el-table-column
           align="left"
+          fixed
           label="物料编码"
           prop="materialNumber"
           min-width="120"
@@ -207,6 +203,7 @@
         />
         <el-table-column
           align="left"
+          fixed
           label="产品编码"
           prop="materialOldNumber"
           min-width="120"
@@ -214,6 +211,7 @@
         />
         <el-table-column
           align="left"
+          fixed
           label="产品名称"
           prop="materialName"
           min-width="160"
@@ -221,6 +219,7 @@
         />
         <el-table-column
           align="left"
+          fixed
           label="规格型号"
           prop="specification"
           min-width="350"
@@ -246,13 +245,7 @@
             {{ scope.row.price | numToFixed }}
           </template>
         </el-table-column>
-        <el-table-column
-          align="right"
-          label="工程登录数量"
-          prop="enginNum"
-          min-width="120"
-          show-overflow-tooltip
-        />
+        <el-table-column align="right" label="工程登录数量" prop="enginNum" min-width="120" show-overflow-tooltip />
         <el-table-column align="right" label="数量" prop="qty" min-width="100" show-overflow-tooltip />
         <el-table-column align="right" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
@@ -290,15 +283,9 @@
             {{ scope.row.payAmount | numToFixed }}
           </template>
         </el-table-column>
-        <el-table-column
-              align="right"
-              label="退订数量"
-              prop="retiredQty"
-              min-width="100"
-              show-overflow-tooltip
-            />
-            <el-table-column align="right" label="销售数量" prop="salesQty" min-width="100" show-overflow-tooltip />
-            <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="退订数量" prop="retiredQty" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="销售数量" prop="salesQty" min-width="100" show-overflow-tooltip />
+        <el-table-column align="right" label="销售金额" prop="salesAmount" min-width="100" show-overflow-tooltip />
         <el-table-column align="left" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             {{ scope.row.isDirectTransfer ? '是' : '否' }}
@@ -311,13 +298,7 @@
           min-width="100"
           show-overflow-tooltip
         />
-        <el-table-column
-          align="right"
-          label="可退数量"
-          prop="refundableQty"
-          min-width="100"
-          show-overflow-tooltip
-        />
+        <el-table-column align="right" label="可退数量" prop="refundableQty" min-width="100" show-overflow-tooltip />
         <el-table-column align="right" label="退订数量" prop="tdQty" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             <el-input
@@ -329,13 +310,7 @@
             />
           </template>
         </el-table-column>
-        <el-table-column
-          align="left"
-          label="备注"
-          prop="remark"
-          min-width="160"
-          show-overflow-tooltip
-        />
+        <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip />
         <el-table-column
           align="left"
           label="实装物料编号"