Quellcode durchsuchen

Finish Hotfix-45

chen vor 3 Jahren
Ursprung
Commit
6e4397cdaa

+ 9 - 41
src/views/basic_data/dealer/components/dealer-apply-detail.vue

@@ -30,42 +30,14 @@
           </div>
           <!-- 列表 -->
 
-          <el-table
-            :data="dataList"
-            :header-cell-style="{
+          <el-table :data="dataList" :header-cell-style="{
               'background-color': '#e8e8e8',
               color: 'black',
-            }"
-            border=""
-          >
-            <el-table-column
-              align="center"
-              label="跟进人"
-              prop="person"
-              min-width="160"
-              show-overflow-tooltip
-            />
-            <el-table-column
-              align="center"
-              label="跟进时间"
-              prop="personDate"
-              min-width="160"
-              show-overflow-tooltip
-            />
-            <el-table-column
-              align="center"
-              label="跟进状态"
-              prop="state"
-              min-width="160"
-              show-overflow-tooltip
-            />
-            <el-table-column
-              align="center"
-              label="处理意见"
-              prop="suggest"
-              min-width="160"
-              show-overflow-tooltip
-            />
+            }" border="">
+            <el-table-column align="left" label="跟进人" prop="person" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="跟进时间" prop="personDate" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="跟进状态" prop="state" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="处理意见" prop="suggest" min-width="160" show-overflow-tooltip />
           </el-table>
         </el-card>
       </div>
@@ -80,16 +52,12 @@
           <el-col :span="4">跟进时间</el-col>
           <el-col :span="4"><input type="text" /></el-col>
           <el-col :span="4">跟进状态</el-col>
-          <el-col :span="4"
-            ><select value="1">
+          <el-col :span="4"><select value="1">
               <option value="1">跟进中</option>
               <option value="2">vertical</option>
-            </select></el-col
-          >
+            </select></el-col>
           <el-col :span="4">处理意见</el-col>
-          <el-col :span="4"
-            ><input type="text" placeholder="记录处理意见"
-          /></el-col>
+          <el-col :span="4"><input type="text" placeholder="记录处理意见" /></el-col>
         </el-row>
       </el-card>
     </div>

+ 18 - 118
src/views/basic_data/dealer/components/dealer_deposit_history.vue

@@ -6,131 +6,31 @@
     <div class="mymain-container">
       <!-- 列表 -->
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="dataList"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-        >
-          <el-table-column
-            align="center"
-            label="序号"
-            type="index"
-            width="100"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="经销商编码"
-            prop="customerNumber"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="经销商名称"
-            prop="customerName"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="押金比例"
-            prop="rate"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="定额押金"
-            prop="amount"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="状态"
-            prop="currentStatus"
-            min-width="160"
-            show-overflow-tooltip
-          >
+        <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
+          <el-table-column align="left" label="序号" type="index" width="100" show-overflow-tooltip />
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip />
+          <el-table-column align="left" label="押金比例" prop="rate" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="定额押金" prop="amount" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="状态" prop="currentStatus" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
-              <el-tag type="info" v-if="scope.row.currentStatus == '未开始'"
-                >未开始</el-tag
-              >
-              <el-tag type="success" v-if="scope.row.currentStatus == '生效中'"
-                >生效中</el-tag
-              >
-              <el-tag type="danger" v-if="scope.row.currentStatus == '已结束'"
-                >已结束</el-tag
-              >
+              <el-tag type="info" v-if="scope.row.currentStatus == '未开始'">未开始</el-tag>
+              <el-tag type="success" v-if="scope.row.currentStatus == '生效中'">生效中</el-tag>
+              <el-tag type="danger" v-if="scope.row.currentStatus == '已结束'">已结束</el-tag>
             </template>
           </el-table-column>
-          <el-table-column
-            align="center"
-            label="开始时间"
-            prop="startTime"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="结束时间"
-            prop="endTime"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="备注"
-            prop="remark"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="更新人"
-            prop="updateBy"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="更新时间"
-            prop="updateTime"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="创建人"
-            prop="createBy"
-            min-width="160"
-            show-overflow-tooltip
-          />
-          <el-table-column
-            align="center"
-            label="创建时间"
-            prop="createTime"
-            min-width="160"
-            show-overflow-tooltip
-          />
+          <el-table-column align="left" label="开始时间" prop="startTime" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="结束时间" prop="endTime" 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="更新人" prop="updateBy" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="创建人" prop="createBy" min-width="160" show-overflow-tooltip />
+          <el-table-column align="left" label="创建时间" prop="createTime" min-width="160" show-overflow-tooltip />
         </el-table>
       </div>
       <!-- 分页 -->
       <div class="fr">
-        <el-pagination
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
-          :current-page="currentPage"
-          :page-sizes="[10, 20, 30, 50]"
-          :page-size="10"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="listTotal"
-        >
+        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
         </el-pagination>
       </div>
     </div>

+ 20 - 120
src/views/basic_data/dealer/dealer_apply.vue

@@ -3,54 +3,34 @@
     <div v-if="isShow">
       <!-- 筛选条件 -->
       <div>
-        <el-form
-          ref="searchForm"
-          :model="searchForm"
-          label-width="70px"
-          size="small"
-          label-position="left"
-        >
+        <el-form ref="searchForm" :model="searchForm" label-width="70px" size="small" label-position="left">
           <el-row :gutter="20">
             <el-col :xs="24" :sm="12" :lg="6">
               <el-form-item label="企业名称" prop="customerName">
-                <el-input
-                  v-model="searchForm.customerName"
-                  placeholder="请输入企业名称"
-                ></el-input>
+                <el-input v-model="searchForm.customerName" placeholder="请输入企业名称"></el-input>
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
               <el-form-item label="联系人" prop="linkName">
-                <el-input
-                  v-model="searchForm.linkName"
-                  placeholder="请输入联系人"
-                ></el-input>
+                <el-input v-model="searchForm.linkName" placeholder="请输入联系人"></el-input>
               </el-form-item>
             </el-col>
             <el-col :xs="24" :sm="12" :lg="6">
               <el-form-item label="联系电话" prop="linkPhone">
-                <el-input
-                  v-model="searchForm.linkPhone"
-                  placeholder="请输入联系电话"
-                ></el-input>
+                <el-input v-model="searchForm.linkPhone" placeholder="请输入联系电话"></el-input>
               </el-form-item>
             </el-col>
 
             <el-col :xs="24" :sm="12" :lg="6">
               <el-form-item label="电子邮箱" prop="email">
-                <el-input
-                  v-model="searchForm.email"
-                  placeholder="请输入电子邮箱"
-                ></el-input>
+                <el-input v-model="searchForm.email" placeholder="请输入电子邮箱"></el-input>
               </el-form-item>
             </el-col>
 
             <el-col :xs="24" :sm="24" :lg="24" class="tr">
               <el-form-item label="">
                 <el-button size="small" @click="clearFn">清空</el-button>
-                <el-button size="small" type="primary" @click="searchFn"
-                  >搜索</el-button
-                >
+                <el-button size="small" type="primary" @click="searchFn">搜索</el-button>
               </el-form-item>
             </el-col>
           </el-row>
@@ -68,106 +48,26 @@
       <div class="mymain-container">
         <!-- 列表 -->
         <div class="table">
-          <el-table
-            v-loading="listLoading"
-            :data="dataList"
-            element-loading-text="Loading"
-            border
-            fit
-            highlight-current-row
-            stripe
-          >
-            <el-table-column
-              type="selection"
-              align="center"
-              min-width="100"
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="企业名称"
-              prop="customerName"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="联系人"
-              prop="linkName"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="联系电话"
-              prop="linkPhone"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="邮箱"
-              prop="email"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="联系地址"
-              prop="linkAddress"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="申请时间"
-              prop="reqDate"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="跟进人"
-              prop="lastFollowerName"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="跟进时间"
-              prop="lastFollowerTime"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="跟进状态"
-              prop="status"
-              min-width="160"
-              show-overflow-tooltip
-            ></el-table-column>
-            <el-table-column
-              align="center"
-              label="操作"
-              min-width="160"
-              show-overflow-tooltip
-              fixed="right"
-            >
-              <el-button type="text" class="textColor" @click="editFn"
-                >跟进</el-button
-              >
+          <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
+            <el-table-column type="selection" align="center" min-width="100"></el-table-column>
+            <el-table-column align="left" label="企业名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="联系人" prop="linkName" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="联系电话" prop="linkPhone" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="邮箱" prop="email" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="联系地址" prop="linkAddress" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="申请时间" prop="reqDate" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="跟进人" prop="lastFollowerName" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="跟进时间" prop="lastFollowerTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="跟进状态" prop="status" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip fixed="right">
+              <el-button type="text" class="textColor" @click="editFn">跟进</el-button>
               <el-button type="text" class="textColor">删除</el-button>
             </el-table-column>
           </el-table>
         </div>
         <!-- 分页 -->
         <div class="fr">
-          <el-pagination
-            :current-page="currentPage"
-            :page-sizes="[10, 20, 30, 50]"
-            :page-size="10"
-            layout="total, sizes, prev, pager, next, jumper"
-            :total="listTotal"
-          >
+          <el-pagination :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
           </el-pagination>
         </div>
       </div>

+ 22 - 12
src/views/basic_data/dealer/dealer_deposit.vue

@@ -57,24 +57,34 @@
         <!-- 列表 -->
         <div class="table">
           <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-            <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip />
-            <el-table-column align="center" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip />
-            <el-table-column align="center" label="押金比例" prop="rate" min-width="100" show-overflow-tooltip />
-            <el-table-column align="center" label="押金" prop="amount" min-width="100" show-overflow-tooltip />
-            <el-table-column align="center" label="状态" prop="currentStatus" min-width="100" show-overflow-tooltip>
+            <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerNumber" />
+                <span>{{scope.row.customerNumber}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerName" />
+                <span>{{scope.row.customerName}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="押金比例" prop="rate" min-width="100" show-overflow-tooltip />
+            <el-table-column align="left" label="押金" prop="amount" min-width="100" show-overflow-tooltip />
+            <el-table-column align="left" label="状态" prop="currentStatus" min-width="100" show-overflow-tooltip>
               <template slot-scope="scope">
                 <el-tag type="info" v-if="scope.row.currentStatus == '未开始'">未开始</el-tag>
                 <el-tag type="success" v-if="scope.row.currentStatus == '生效中'">生效中</el-tag>
                 <el-tag type="danger" v-if="scope.row.currentStatus == '已结束'">已结束</el-tag>
               </template>
             </el-table-column>
-            <el-table-column align="center" label="开始时间" prop="startTime" min-width="160" show-overflow-tooltip />
-            <el-table-column align="center" label="结束时间" prop="endTime" min-width="160" show-overflow-tooltip />
-            <el-table-column align="center" label="备注" prop="remark" min-width="160" show-overflow-tooltip />
-            <el-table-column align="center" label="创建人" prop="createBy" min-width="160" show-overflow-tooltip />
-            <el-table-column align="center" label="创建时间" prop="createTime" min-width="160" show-overflow-tooltip />
-            <el-table-column align="center" label="更新人" prop="updateBy" min-width="160" show-overflow-tooltip />
-            <el-table-column align="center" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="开始时间" prop="startTime" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="结束时间" prop="endTime" 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="创建人" prop="createBy" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="创建时间" prop="createTime" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="更新人" prop="updateBy" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip />
             <el-table-column align="center" label="操作" min-width="200" show-overflow-tooltip fixed="right">
               <template slot-scope="scope">
                 <el-button type="text" class="textColor" v-if="$checkBtnRole('edit', $route.meta.roles)" @click="editFn(scope.row.id)">编辑</el-button>

+ 17 - 8
src/views/basic_data/dealer/dealer_list.vue

@@ -30,19 +30,28 @@
       <div class="mymain-container">
         <div class="table">
           <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-            <el-table-column align="center" label="客户编码" prop="number" min-width="100"></el-table-column>
-            <el-table-column align="center" label="客户名称" prop="name" min-width="260" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="简称" prop="shortName" min-width="200" show-overflow-tooltip></el-table-column>
-
-            <el-table-column prop="forbidStatus" align="center" label="禁用状态" min-width="100" show-overflow-tooltip>
+            <el-table-column align="left" label="客户编码" prop="number" min-width="100">
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.number" />
+                <span>{{scope.row.number}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="客户名称" prop="name" min-width="260" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.name" />
+                <span>{{scope.row.name}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="简称" prop="shortName" min-width="200" show-overflow-tooltip></el-table-column>
+            <el-table-column prop="forbidStatus" align="left" label="禁用状态" min-width="100" show-overflow-tooltip>
               <template slot-scope="scope">
                 <el-tag type="success" v-if="scope.row.forbidStatus === 'A'">正常</el-tag>
                 <el-tag type="danger" v-else-if="scope.row.flag === 'B'">禁用</el-tag>
               </template>
             </el-table-column>
-            <el-table-column align="center" label="使用组织" prop="useOrgName" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="更新人" prop="updateBy" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="使用组织" prop="useOrgName" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="更新人" prop="updateBy" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip></el-table-column>
 
             <el-table-column align="center" label="操作" prop="caozuo" min-width="160" show-overflow-tooltip fixed="right">
               <template slot-scope="scope">

+ 18 - 8
src/views/basic_data/dealer/dealer_stock.vue

@@ -40,14 +40,24 @@
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" @select="hanleSelect" @select-all="hanleSelect" element-loading-text="Loading" border fit highlight-current-row stripe>
           <el-table-column type="selection" align="center" min-width="100"></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="钱包名称" prop="customerWalletName" min-width="200" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="业务员" prop="serviceName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="创建人" prop="createBy" min-width="180" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="创建时间" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="更新人" prop="updateBy" min-width="180" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="钱包名称" prop="customerWalletName" min-width="200" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="业务员" prop="serviceName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="创建人" prop="createBy" min-width="180" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="创建时间" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="更新人" prop="updateBy" min-width="180" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="更新时间" prop="updateTime" min-width="160" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="操作" prop="caozuo" min-width="160" show-overflow-tooltip fixed="right">
             <template slot-scope="scope">
               <el-button type="text" class="textColor" v-if="$checkBtnRole('edit', $route.meta.roles)" @click="editFn(scope.row.id)">编辑</el-button>

+ 2 - 2
src/views/basic_data/material/classify_list.vue

@@ -56,8 +56,8 @@
           <!-- 列表 -->
           <div class="table">
             <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-              <el-table-column align="center" label="编码" prop="kingDeeCategoryNumber" min-width="160" show-overflow-tooltip></el-table-column>
-              <el-table-column align="center" label="品类" prop="kingDeeCategoryName" min-width="160" show-overflow-tooltip></el-table-column>
+              <el-table-column align="left" label="编码" prop="kingDeeCategoryNumber" min-width="160" show-overflow-tooltip></el-table-column>
+              <el-table-column align="left" label="品类" prop="kingDeeCategoryName" min-width="160" show-overflow-tooltip></el-table-column>
               <el-table-column align="center" label="操作" min-width="160" show-overflow-tooltip>
                 <template slot-scope="scope">
                   <el-popconfirm confirm-button-text="好的" cancel-button-text="不用了" icon="el-icon-info" icon-color="red" title="内容确定删除吗?" @onConfirm="hanleDelete(scope.row.id)">

+ 15 - 5
src/views/basic_data/supplier/supplier_list.vue

@@ -25,11 +25,21 @@
       <div class="mymain-container">
         <div class="table">
           <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-            <el-table-column align="center" label="编码" prop="number" min-width="60" label-class-name="bianma" class-name="fontstyle"></el-table-column>
-            <el-table-column align="center" label="使用组织" prop="useOrgName" min-width="160"></el-table-column>
-            <el-table-column align="center" label="名称" prop="name" min-width="200"></el-table-column>
-            <el-table-column align="center" label="简称" prop="shortName" min-width="160"></el-table-column>
-            <el-table-column align="center" label="供应商分组" prop="groupName" min-width="160"></el-table-column>
+            <el-table-column align="left" label="编码" prop="number" min-width="60" label-class-name="bianma" class-name="fontstyle">
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.number" />
+                <span>{{scope.row.number}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="使用组织" prop="useOrgName" min-width="160"></el-table-column>
+            <el-table-column align="left" label="名称" prop="name" min-width="200">
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.name" />
+                <span>{{scope.row.name}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="简称" prop="shortName" min-width="160"> </el-table-column>
+            <el-table-column align="left" label="供应商分组" prop="groupName" min-width="160"></el-table-column>
             <el-table-column align="center" label="操作" prop="caozuo" min-width="160" show-overflow-tooltip fixed="right">
               <template slot-scope="scope">
                 <el-button type="text" class="textColor" @click="editFn(scope.row.id)">详情</el-button>

+ 20 - 59
src/views/basic_data/wallet/wallet_list.vue

@@ -2,20 +2,11 @@
   <div class="app-container">
     <!-- 筛选条件 -->
     <div>
-      <el-form
-        ref="searchForm"
-        :model="searchForm"
-        label-width="100px"
-        size="small"
-        label-position="left"
-      >
+      <el-form ref="searchForm" :model="searchForm" label-width="100px" size="small" label-position="left">
         <el-row :gutter="20">
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="名称" prop="walletName">
-              <el-input
-                v-model="searchForm.walletName"
-                placeholder="请输入"
-              ></el-input>
+              <el-input v-model="searchForm.walletName" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
           <!-- <el-col :xs="24" :sm="12" :lg="6">
@@ -40,9 +31,7 @@
           <el-col :xs="24" :sm="12" :lg="18" class="tr">
             <el-form-item label="">
               <el-button size="small" @click="clearFn">清空</el-button>
-              <el-button size="small" type="primary" @click="searchFn"
-                >搜索</el-button
-              >
+              <el-button size="small" type="primary" @click="searchFn">搜索</el-button>
             </el-form-item>
           </el-col>
         </el-row>
@@ -60,29 +49,19 @@
     <!-- 列表 -->
     <div class="mymain-container">
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="dataList"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-        >
-          <el-table-column
-            align="center"
-            label="编码"
-            prop="number"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="现金钱包名称"
-            prop="name"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
+        <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
+          <el-table-column align="left" label="编码" prop="number" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.number" />
+              <span>{{scope.row.number}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="现金钱包名称" prop="name" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.name" />
+              <span>{{scope.row.name}}</span>
+            </template>
+          </el-table-column>
           <!-- <el-table-column
             align="center"
             label="对应产品大类"
@@ -91,34 +70,16 @@
             show-overflow-tooltip
           ></el-table-column> -->
 
-          <el-table-column
-            align="center"
-            label="操作"
-            prop="caozuo"
-            min-width="160"
-            show-overflow-tooltip
-          >
-            <template slot-scope="scope"
-              ><el-button
-                type="text"
-                class="textColor"
-                v-if="$checkBtnRole('edit', $route.meta.roles)"
-                @click="setFn(scope.row)"
-                >设置</el-button
-              >
+          <el-table-column align="center" label="操作" prop="caozuo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <el-button type="text" class="textColor" v-if="$checkBtnRole('edit', $route.meta.roles)" @click="setFn(scope.row)">设置</el-button>
             </template>
           </el-table-column>
         </el-table>
       </div>
     </div>
     <!-- 弹窗 -->
-    <el-dialog
-      title="钱包"
-      :visible.sync="dialogForm"
-      width="30%"
-      :show-close="false"
-      :close-on-click-modal="false"
-    >
+    <el-dialog title="钱包" :visible.sync="dialogForm" width="30%" :show-close="false" :close-on-click-modal="false">
       <el-form ref="addForm" :model="addForm" label-width="120px">
         <el-form-item label="现金钱包名称" prop="customerId">
           <el-input disabled v-model="addForm.name"></el-input>

+ 34 - 9
src/views/engin_deposit/components/refund_list-detail.vue

@@ -186,11 +186,36 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="detailList.items" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
-          <el-table-column align="center" label="厂编号" prop="factoryNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="产品编码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="物料编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="厂编号" prop="factoryNo" min-width="160" show-overflow-tooltip>\
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.factoryNo" />
+              <span>{{scope.row.factoryNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.materialOldNumber" />
+              <span>{{scope.row.materialOldNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.materialNumber" />
+              <span>{{scope.row.materialNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.materialName" />
+              <span>{{scope.row.materialName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="规格型号" prop="specification" min-width="400" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.specification" />
+              <span>{{scope.row.specification}}</span>
+            </template>
+          </el-table-column>
           <el-table-column align="right" label="单价" prop="price" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               {{ scope.row.price | numToFixed }}
@@ -233,9 +258,9 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="detailList.dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column align="center" label="资料描述" prop="dataDescribe" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="资料描述" prop="dataDescribe" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="原文件名" prop="fileName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="缩略图" prop="fileUrl" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-image ref="img" :src="imageURL + scope.row.fileUrl" v-if="checkFileType(scope.row.fileUrl) == 'image'" style="width: 120px; height: 120px" fit="cover" :preview-src-list="[imageURL + scope.row.fileUrl]">
               </el-image>
@@ -246,7 +271,7 @@
               <img v-if="checkFileType(scope.row.fileUrl) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg" />
             </template>
           </el-table-column>
-          <el-table-column align="center" label="下载文件名称" prop="fileName" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="下载文件名称" prop="fileName" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               {{ "资料_" + scope.row.fileName }}
             </template>

+ 27 - 7
src/views/engin_deposit/refund_list.vue

@@ -104,16 +104,31 @@
             >
             <el-table-column type="selection" align="center" width="55">
             </el-table-column>
-            <el-table-column align="center" label="工程登录编码" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="工程名称" prop="refProjectName" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="经销商编码" prop="customerId" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="right" label="押金金额" prop="depositAmount" min-width="160" show-overflow-tooltip>
+            <el-table-column align="left" label="工程登录编码" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
-                {{ scope.row.depositAmount | numToFixed }}
+                <CopyButton :copyText="scope.row.refEnginRecordNo" />
+                <span>{{scope.row.refEnginRecordNo}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="工程名称" prop="refProjectName" min-width="160" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.refProjectName" />
+                <span>{{scope.row.refProjectName}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerNumber" />
+                <span>{{scope.row.customerNumber}}</span>
               </template>
             </el-table-column>
-            <el-table-column align="center" label="状态" prop="" min-width="160" show-overflow-tooltip>
+            <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerName" />
+                <span>{{scope.row.customerName}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="状态" prop="" min-width="160" show-overflow-tooltip>
               <template v-slot="{ row }">
                 <el-tag v-show="row.examineStatus == 'SAVE'">保存</el-tag>
                 <el-tag v-show="row.examineStatus == 'WAIT'" type="warning">待审核</el-tag>
@@ -121,6 +136,11 @@
                 <el-tag v-show="row.examineStatus == 'FAIL'" type="danger">不通过</el-tag>
               </template>
             </el-table-column>
+            <el-table-column align="right" label="押金金额" prop="depositAmount" min-width="160" show-overflow-tooltip>
+              <template slot-scope="scope">
+                {{ scope.row.depositAmount | numToFixed }}
+              </template>
+            </el-table-column>
             <el-table-column fixed="right" align="center" label="操作" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 <el-button type="text" class="textColor" v-if="

+ 80 - 32
src/views/finance/components/rebate_list-apply.vue

@@ -50,22 +50,42 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column label="序号" align="center" width="100" type="index" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyFileNo" />
+              <span>{{scope.row.policyFileNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyDocNo" />
+              <span>{{scope.row.policyDocNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>
@@ -76,30 +96,58 @@
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList2" element-loading-text="Loading" border fit highlight-current-row stripe>
           <el-table-column align="center" type="selection" prop="" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利单号" prop="rebateOrderId" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="折让金额" prop="allowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="返利单号" prop="rebateOrderId" min-width="200" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.rebateOrderId" />
+              <span>{{scope.row.rebateOrderId}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="折让金额" prop="allowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip>
             <!-- <template slot-scope="scope">
               <el-input v-model="scope.row.allowanceCode"></el-input>
             </template> -->
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.allowanceCode" />
+              <span>{{scope.row.allowanceCode}}</span>
+            </template>
           </el-table-column>
-          <el-table-column align="center" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip>
             <!-- <template slot-scope="scope">
               <el-input v-model="scope.row.allowanceAccount"></el-input>
             </template> -->
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.allowanceAccount" />
+              <span>{{scope.row.allowanceAccount}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="right" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.allowanceOrderNo" />
+              <span>{{scope.row.allowanceOrderNo}}</span>
+            </template>
           </el-table-column>
-          <el-table-column align="center" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="确认日期" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="复核日期" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="确认日期" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="复核日期" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>

+ 6 - 6
src/views/finance/components/rebate_list-confirm.vue

@@ -55,24 +55,24 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column label="序号" align="center" width="100" type="index" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip>
+          <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip>
             <!-- <template slot-scope="scope">
              
             </template> -->
           </el-table-column>
-          <el-table-column align="center" label="返利金额" prop="" min-width="160" show-overflow-tooltip>
+          <el-table-column align="right" label="返利金额" prop="" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model.number="scope.row.rebateAmount"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="折让金额" prop="" min-width="160" show-overflow-tooltip>
+          <el-table-column align="right" label="折让金额" prop="" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model.number="scope.row.allowanceAmount"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="备注" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>

+ 36 - 16
src/views/finance/components/rebate_list-detail.vue

@@ -50,22 +50,42 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column label="序号" align="center" width="100" type="index" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyFileNo" />
+              <span>{{scope.row.policyFileNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyDocNo" />
+              <span>{{scope.row.policyDocNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>

+ 39 - 34
src/views/finance/components/rebate_list-edit.vue

@@ -36,42 +36,42 @@
     <div v-if="this.state != 'SAVE'" class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe :row-class-name="rouClassNameFn" @row-click="onRowClick">
-          <el-table-column align="center" label="序号" type="index" width="100" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="序号" type="index" width="100" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="200" show-overflow-tooltip>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="200" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip>
+          <el-table-column align="right" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.policyDocNo"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="建立实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="建立实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip>
           </el-table-column>
-          <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.remark1"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.remark2"></el-input>
             </template>
@@ -83,13 +83,13 @@
     <div v-if="this.state == 'SAVE'" class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe :row-class-name="rouClassNameFn" @row-click="onRowClick">
-          <el-table-column align="center" label="序号" type="index" width="100" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="序号" type="index" width="100" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input disabled v-model="scope.row.customerNumber"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="200" show-overflow-tooltip>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="200" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-select @change="changeCustomerFn($event, scope.$index, scope.row)" v-model="scope.row.customerId" placeholder="请选择">
                 <el-option v-for="item in customerData" :key="item.id" :label="item.name" :value="item.id">
@@ -97,7 +97,7 @@
               </el-select>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="返利类型" prop="customerWalletId" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="返利类型" prop="customerWalletId" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-select v-if="state2" v-model="scope.row.customerWalletId" placeholder="请选择">
                 <el-option v-for="item in scope.row.walletList" :key="item.customerWalletId" :label="item.name" :value="item.customerWalletId">
@@ -108,62 +108,62 @@
               </el-select>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
-              <el-input v-model.number="scope.row.amount"></el-input>
+              <el-input class="mountclass" v-model.number="scope.row.amount"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
-              <el-input v-model.number="scope.row.withholdAmount"></el-input>
+              <el-input class="mountclass" v-model.number="scope.row.withholdAmount"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.policyFileNo"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.policyDocNo"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.policyYear"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.policyMonth"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.policyOrg"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.customerArea"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.customerAttr"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="建立实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="建立实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.rewardActualCustomers"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.remark1"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.remark2"></el-input>
             </template>
@@ -315,6 +315,11 @@ export default {
 };
 </script>
 <style lang="scss" scoped>
+::v-deep .mountclass {
+  input {
+    text-align: right;
+  }
+}
 .selectStyle {
   width: 100%;
 }

+ 36 - 16
src/views/finance/components/rebate_list-examine.vue

@@ -50,22 +50,42 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column label="序号" align="center" width="100" type="index" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyFileNo" />
+              <span>{{scope.row.policyFileNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyDocNo" />
+              <span>{{scope.row.policyDocNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>

+ 72 - 32
src/views/finance/components/rebate_list-review.vue

@@ -52,22 +52,42 @@
     <div class="mymain-container">
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column label="序号" align="center" width="100" type="index" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column label="序号" align="left" width="100" type="index" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="返利总金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyFileNo" />
+              <span>{{scope.row.policyFileNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.policyDocNo" />
+              <span>{{scope.row.policyDocNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>
@@ -78,30 +98,50 @@
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList2" element-loading-text="Loading" border fit highlight-current-row stripe @selection-change="selectionChangeFn">
           <el-table-column align="center" type="selection" prop="" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利单号" prop="rebateOrderId" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="折让金额" prop="allowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="返利单号" prop="rebateOrderId" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.rebateOrderId" />
+              <span>{{scope.row.rebateOrderId}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerNumber" />
+              <span>{{scope.row.customerNumber}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.customerName" />
+              <span>{{scope.row.customerName}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="折让金额" prop="allowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="暂扣返利" prop="withholdAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.allowanceCode"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip>
+          <el-table-column align="left" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-input v-model="scope.row.allowanceAccount"></el-input>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="确认日期" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
-          <el-table-column align="center" label="复核日期" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.allowanceOrderNo" />
+              <span>{{scope.row.allowanceOrderNo}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="确认日期" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="复核日期" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
         </el-table>
       </div>
     </div>

+ 11 - 75
src/views/finance/finance_sum.vue

@@ -2,28 +2,12 @@
   <div class="app-container">
     <!-- 筛选条件 -->
     <div>
-      <el-form
-        ref="searchForm"
-        :model="searchForm"
-        label-width="100px"
-        size="small"
-        label-position="left"
-      >
+      <el-form ref="searchForm" :model="searchForm" label-width="100px" size="small" label-position="left">
         <el-row :gutter="20">
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="选择品类" prop="mainId">
-              <el-select
-                v-model="searchForm.mainId"
-                class="selectStyle"
-                placeholder="请选择"
-                filterable
-              >
-                <el-option
-                  v-for="v in categoryList"
-                  :key="v.productCategoryNumber"
-                  :label="v.productCategoryName"
-                  :value="v.productCategoryNumber"
-                >
+              <el-select v-model="searchForm.mainId" class="selectStyle" placeholder="请选择" filterable>
+                <el-option v-for="v in categoryList" :key="v.productCategoryNumber" :label="v.productCategoryName" :value="v.productCategoryNumber">
                 </el-option>
               </el-select>
             </el-form-item>
@@ -32,9 +16,7 @@
           <el-col :xs="24" :sm="12" :lg="18">
             <el-form-item label="" class="fr">
               <el-button size="small" @click="clearFn">清空</el-button>
-              <el-button size="small" type="primary" @click="searchFn"
-                >搜索</el-button
-              >
+              <el-button size="small" type="primary" @click="searchFn">搜索</el-button>
             </el-form-item>
           </el-col>
         </el-row>
@@ -43,71 +25,25 @@
     <!-- 列表 -->
     <div class="mymain-container">
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="dataList"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-          show-summary
-          :summary-method="$getSummaries"
-        >
-          <el-table-column
-            align="center"
-            label="品类"
-            prop="mainName"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="钱包名称"
-            prop="name"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="right"
-            label="余额"
-            prop="totalAmount"
-            min-width="160"
-            show-overflow-tooltip
-          >
+        <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
+          <el-table-column align="left" label="品类" prop="mainName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="钱包名称" prop="name" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="更新时间" prop="theTime" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="right" label="余额" prop="totalAmount" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               {{ scope.row.totalAmount | numToFixed }}
             </template>
           </el-table-column>
-          <el-table-column
-            align="right"
-            label="可用信用额度"
-            prop="freezeCreditAmount"
-            min-width="160"
-            show-overflow-tooltip
-          >
+          <el-table-column align="right" label="可用信用额度" prop="freezeCreditAmount" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               {{ scope.row.freezeCreditAmount | numToFixed }}
             </template>
           </el-table-column>
-          <el-table-column
-            align="right"
-            label="已用信用额度"
-            prop="usedCreditAmount"
-            min-width="160"
-            show-overflow-tooltip
-          >
+          <el-table-column align="right" label="已用信用额度" prop="usedCreditAmount" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               {{ scope.row.usedCreditAmount | numToFixed }}
             </template>
           </el-table-column>
-          <el-table-column
-            align="center"
-            label="更新时间"
-            prop="theTime"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
         </el-table>
       </div>
       <!-- 分页

+ 45 - 30
src/views/finance/rebate_list.vue

@@ -63,7 +63,7 @@
       <div class="mymain-container">
         <div class="table">
           <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe show-summary :summary-method="$getSummaries">
-            <el-table-column align="center" label="状态" prop="examineStatus" min-width="160" show-overflow-tooltip v-if="!isCustomer">
+            <el-table-column align="left" label="状态" prop="examineStatus" min-width="160" show-overflow-tooltip v-if="!isCustomer">
               <template slot-scope="scope">
                 <el-tag v-show="scope.row.examineStatus == 'SAVE'">保存</el-tag>
                 <el-tag v-show="scope.row.examineStatus == 'WAIT'">待审核</el-tag>
@@ -74,18 +74,33 @@
                 <el-tag v-show="scope.row.examineStatus == 'CLOSE'">已关闭</el-tag>
               </template>
             </el-table-column>
-            <el-table-column v-if="isCustomer" align="center" label="是否确认" prop="customerIsConfirm" min-width="160" show-overflow-tooltip>
+            <el-table-column v-if="isCustomer" align="left" label="是否确认" prop="customerIsConfirm" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 <el-tag v-show="scope.row.customerIsConfirm == true">已确认</el-tag>
                 <el-tag v-show="scope.row.customerIsConfirm == false">未确认</el-tag>
               </template>
             </el-table-column>
-            <el-table-column align="center" label="返利单号" prop="rebateOrderId" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="返利日期" prop="theTime" min-width="180" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="isCustomer" align="center" label="标题备注" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="经销商名称" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" label="返利单号" prop="rebateOrderId" min-width="200" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.rebateOrderId" />
+                <span>{{scope.row.rebateOrderId}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="返利日期" prop="theTime" min-width="180" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="isCustomer" align="left" label="标题备注" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="经销商编码" prop="customerNumber" min-width="160" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerNumber" />
+                <span>{{scope.row.customerNumber}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="经销商名称" prop="customerName" min-width="260" show-overflow-tooltip>
+              <template slot-scope="scope">
+                <CopyButton :copyText="scope.row.customerName" />
+                <span>{{scope.row.customerName}}</span>
+              </template>
+            </el-table-column>
+            <el-table-column align="left" label="返利类型" prop="walletName" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="right" label="总返利金额" prop="amount" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 {{ scope.row.amount | numToFixed }}
@@ -106,33 +121,33 @@
                 {{ scope.row.allowanceAmount | numToFixed }}
               </template>
             </el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="折让编号" prop="allowanceCode" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="折让账号" prop="allowanceAccount" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column v-if="!isCustomer" align="right" label="已办理折让金额" prop="handledAllowanceAmount" min-width="160" show-overflow-tooltip>
               <template slot-scope="scope">
                 {{ scope.row.handledAllowanceAmount | numToFixed }}
               </template>
             </el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" v-if="!isCustomer" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" v-if="!isCustomer" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="制单人" prop="createBy" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="制单时间" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="审核人" prop="examineBy" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="审核时间" prop="examineTime" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="确认时间" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="!isCustomer" align="center" label="复核时间" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
-            <el-table-column v-if="isCustomer" align="center" label="确认时间" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="折让对应收款单号" prop="allowanceOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="政策文件流水号" prop="policyFileNo" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="政策文号" prop="policyDocNo" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="政策年份" prop="policyYear" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="政策月份" prop="policyMonth" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="政策归属部门" prop="policyOrg" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" v-if="!isCustomer" label="客户区域" prop="customerArea" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="客户属性" prop="customerAttr" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column align="left" v-if="!isCustomer" label="奖励实际归属客户" prop="rewardActualCustomers" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="备注1" prop="remark1" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="备注2" prop="remark2" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="制单人" prop="createBy" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="制单时间" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="审核人" prop="examineBy" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="审核时间" prop="examineTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="确认人" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="确认时间" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="复核人" prop="secondExamineBy" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="!isCustomer" align="left" label="复核时间" prop="secondExamineTime" min-width="160" show-overflow-tooltip></el-table-column>
+            <el-table-column v-if="isCustomer" align="left" label="确认时间" prop="customerConfirmTime" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="操作" min-width="240" show-overflow-tooltip fixed="right">
               <template slot-scope="scope">
                 <el-button type="text" class="textColor" v-if="

+ 41 - 181
src/views/sales/price/commercial_list.vue

@@ -2,60 +2,37 @@
   <div class="app-container">
     <!-- 筛选条件 -->
     <div>
-      <el-form
-        ref="searchForm"
-        :model="searchForm"
-        label-width="70px"
-        size="small"
-        label-position="left"
-      >
+      <el-form ref="searchForm" :model="searchForm" label-width="70px" size="small" label-position="left">
         <el-row :gutter="20">
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="产品品类" prop="categoryId">
-              <el-input
-                v-model="searchForm.categoryId"
-                placeholder="请输入"
-              ></el-input>
+              <el-input v-model="searchForm.categoryId" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="物料名称" prop="materialName">
-              <el-input
-                v-model="searchForm.materialName"
-                placeholder="请输入"
-              ></el-input>
+              <el-input v-model="searchForm.materialName" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="物料编码" prop="materialNumber">
-              <el-input
-                v-model="searchForm.materialNumber"
-                placeholder="请输入"
-              ></el-input>
+              <el-input v-model="searchForm.materialNumber" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="销售类型" prop="saleTypeId">
-              <el-input
-                v-model="searchForm.saleTypeId"
-                placeholder="请输入"
-              ></el-input>
+              <el-input v-model="searchForm.saleTypeId" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="6">
             <el-form-item label="规格" prop="specification">
-              <el-input
-                v-model="searchForm.specification"
-                placeholder="请输入"
-              ></el-input>
+              <el-input v-model="searchForm.specification" placeholder="请输入"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="18" class="tr">
             <el-form-item label="">
               <el-button size="small" @click="clearFn">清空</el-button>
-              <el-button size="small" type="primary" @click="searchFormFn"
-                >搜索</el-button
-              >
+              <el-button size="small" type="primary" @click="searchFormFn">搜索</el-button>
             </el-form-item>
           </el-col>
         </el-row>
@@ -64,21 +41,9 @@
     <!-- 按钮 -->
     <div class="btn-group clearfix">
       <div class="fr">
-        <el-button type="primary" size="small" @click="downLoadFn"
-          >模板</el-button
-        >
-        <ExportButton
-          class="import-btn"
-          :exUrl="'/bus/price/export'"
-          :exParams="exParams"
-        />
-        <el-upload
-          class="import-btn"
-          action=""
-          :http-request="handleImport"
-          :file-list="importFileList"
-          :show-file-list="false"
-        >
+        <el-button type="primary" size="small" @click="downLoadFn">模板</el-button>
+        <ExportButton class="import-btn" :exUrl="'/bus/price/export'" :exParams="exParams" />
+        <el-upload class="import-btn" action="" :http-request="handleImport" :file-list="importFileList" :show-file-list="false">
           <el-button type="primary" size="small">批量导入</el-button>
         </el-upload>
       </div>
@@ -86,162 +51,57 @@
     <!-- 列表 -->
     <div class="mymain-container">
       <div class="table">
-        <el-table
-          v-loading="listLoading"
-          :data="dataList"
-          element-loading-text="Loading"
-          border
-          fit
-          highlight-current-row
-          stripe
-        >
-          <el-table-column
-            align="center"
-            label="厂产品编码"
-            prop="productCode"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="零售价格"
-            prop="retailPrice"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="批发价格"
-            prop="batchPrice"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="规格型号"
-            prop="specification"
-            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>
+        <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
+          <el-table-column align="left" label="厂产品编码" prop="productCode" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.productCode" />
+              <span>{{scope.row.productCode}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="零售价格" prop="retailPrice" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="批发价格" prop="batchPrice" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip>
+            <template slot-scope="scope">
+              <CopyButton :copyText="scope.row.specification" />
+              <span>{{scope.row.specification}}</span>
+            </template>
+          </el-table-column>
+          <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="160" show-overflow-tooltip></el-table-column>
 
-          <el-table-column
-            align="center"
-            label="金蝶物料ID"
-            prop="materialId"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="金蝶物料编码"
-            prop="materialNumber"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="金蝶物料名称"
-            prop="materialName"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="金蝶物料旧编码"
-            prop="materialOldNumber"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="是否促销价"
-            min-width="160"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="金蝶物料ID" prop="materialId" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="金蝶物料编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="金蝶物料名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="金蝶物料旧编码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="是否促销价" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-tag type="success" v-if="scope.row.isPromote">是</el-tag>
               <el-tag type="danger" v-else>否</el-tag>
             </template>
           </el-table-column>
-          <el-table-column
-            align="center"
-            label="是否促作废"
-            min-width="160"
-            show-overflow-tooltip
-          >
+          <el-table-column align="left" label="是否促作废" min-width="160" show-overflow-tooltip>
             <template slot-scope="scope">
               <el-tag type="success" v-if="scope.row.isRevoke">是</el-tag>
               <el-tag type="danger" v-else>否</el-tag>
             </template>
           </el-table-column>
 
-          <el-table-column
-            align="center"
-            label="格力折扣价"
-            prop="discAmount"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
-          <el-table-column
-            align="center"
-            label="备注"
-            prop="remark"
-            min-width="160"
-            show-overflow-tooltip
-          ></el-table-column>
+          <el-table-column align="left" label="格力折扣价" prop="discAmount" min-width="160" show-overflow-tooltip></el-table-column>
+          <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
 
-          <el-table-column
-            align="center"
-            label="操作"
-            prop="caozuo"
-            min-width="160"
-            show-overflow-tooltip
-            fixed="right"
-          >
-            <template slot-scope="scope"
-              ><el-button
-                type="text"
-                class="textColor"
-                @click="seeFn(scope.row)"
-                >查看</el-button
-              >
-              <el-popconfirm
-                @onConfirm="deleFn(scope.row.id)"
-                v-if="$checkBtnRole('del', $route.meta.roles)"
-                title="这是一段内容确定删除吗?"
-              >
-                <el-button type="text" class="textColor" slot="reference"
-                  >删除</el-button
-                >
+          <el-table-column align="center" label="操作" prop="caozuo" min-width="160" show-overflow-tooltip fixed="right">
+            <template slot-scope="scope">
+              <el-button type="text" class="textColor" @click="seeFn(scope.row)">查看</el-button>
+              <el-popconfirm @onConfirm="deleFn(scope.row.id)" v-if="$checkBtnRole('del', $route.meta.roles)" title="这是一段内容确定删除吗?">
+                <el-button type="text" class="textColor" slot="reference">删除</el-button>
               </el-popconfirm>
-              <el-button
-                type="text"
-                class="textColor"
-                @click="stopFn(scope.row.id)"
-                >修改</el-button
-              >
+              <el-button type="text" class="textColor" @click="stopFn(scope.row.id)">修改</el-button>
             </template>
           </el-table-column>
         </el-table>
       </div>
       <!-- 分页 -->
       <div class="fr">
-        <el-pagination
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
-          :current-page="currentPage"
-          :page-sizes="[10, 20, 30, 50]"
-          :page-size="10"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="listTotal"
-        >
+        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
         </el-pagination>
       </div>
     </div>

+ 34 - 177
src/views/sales_rebate/rebate_list.vue

@@ -1,12 +1,7 @@
 <template>
   <div class="app-container">
     <div class="screen-container">
-      <el-form
-        ref="screenForm"
-        :model="screenForm"
-        size="small"
-        label-position="left"
-      >
+      <el-form ref="screenForm" :model="screenForm" size="small" label-position="left">
         <el-row :gutter="20">
           <!-- <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item label="" prop="mainName">
@@ -19,35 +14,18 @@
           </el-col> -->
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item label="" prop="saleTypeCode">
-              <el-input
-                v-model="screenForm.saleTypeCode"
-                placeholder="销售类型编码"
-                size="small"
-              ></el-input>
+              <el-input v-model="screenForm.saleTypeCode" placeholder="销售类型编码" size="small"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item label="" prop="saleTypeName">
-              <el-input
-                v-model="screenForm.saleTypeName"
-                placeholder="销售类型名称"
-                size="small"
-              ></el-input>
+              <el-input v-model="screenForm.saleTypeName" placeholder="销售类型名称" size="small"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item prop="status">
-              <el-select
-                v-model="screenForm.status"
-                placeholder="请选择"
-                size="small"
-              >
-                <el-option
-                  v-for="item in options"
-                  :key="item.value"
-                  :label="item.label"
-                  :value="item.value"
-                >
+              <el-select v-model="screenForm.status" placeholder="请选择" size="small">
+                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                 </el-option>
               </el-select>
             </el-form-item>
@@ -55,43 +33,16 @@
 
           <el-col :xs="24" :ms="18" :lg="18">
             <el-form-item>
-              <el-button
-                type="primary"
-                size="small"
-                icon="el-icon-plus"
-                v-if="$checkBtnRole('add', $route.meta.roles)"
-                @click="(dialogVisible = true), (type = 1), getDictList()"
-                >新增</el-button
-              >
+              <el-button type="primary" size="small" icon="el-icon-plus" v-if="$checkBtnRole('add', $route.meta.roles)" @click="(dialogVisible = true), (type = 1), getDictList()">新增</el-button>
 
               <!-- <el-button type="primary" size="small" @click="delfn"
                 >批量删除</el-button
               > -->
-              <el-popconfirm
-                v-if="$checkBtnRole('del', $route.meta.roles)"
-                class="delClass"
-                @onConfirm="delfn"
-                title="这是一段内容确定删除吗?"
-              >
-                <el-button
-                  :disabled="ids.length < 1"
-                  slot="reference"
-                  type="danger"
-                  icon="el-icon-minus"
-                  size="small"
-                  >批量删除</el-button
-                >
+              <el-popconfirm v-if="$checkBtnRole('del', $route.meta.roles)" class="delClass" @onConfirm="delfn" title="这是一段内容确定删除吗?">
+                <el-button :disabled="ids.length < 1" slot="reference" type="danger" icon="el-icon-minus" size="small">批量删除</el-button>
               </el-popconfirm>
-              <el-button
-                icon="el-icon-search"
-                type="primary"
-                size="small"
-                @click="submitScreenForm"
-                >查询</el-button
-              >
-              <el-button type="primary" size="small" @click="resetScreenForm"
-                >重置</el-button
-              >
+              <el-button icon="el-icon-search" type="primary" size="small" @click="submitScreenForm">查询</el-button>
+              <el-button type="primary" size="small" @click="resetScreenForm">重置</el-button>
             </el-form-item>
           </el-col>
         </el-row>
@@ -99,145 +50,58 @@
     </div>
 
     <div class="mymain-container">
-      <el-table
-        v-loading="listLoading"
-        :data="dataList"
-        element-loading-text="Loading"
-        border
-        fit
-        highlight-current-row
-        stripe
-        @selection-change="selectionhangeFn"
-      >
+      <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe @selection-change="selectionhangeFn">
         <!-- <div v-for="(col, i) in columns" :key="i"> -->
         <el-table-column type="selection" width="55" align="center">
         </el-table-column>
         <template v-for="col in columns">
-          <el-table-column
-            align="center"
-            :label="col.lable"
-            :prop="col.prop"
-            :min-width="col.widht"
-            show-overflow-tooltip
-            v-if="col.prop == 'status'"
-          >
+          <el-table-column align="left" :label="col.lable" :prop="col.prop" :min-width="col.widht" show-overflow-tooltip v-if="col.prop == 'status'">
             <template slot-scope="scope">
-              <el-switch
-                v-model="scope.row.status"
-                @change="handleSwitch($event, scope.row.walletRebateSaleTypeId)"
-                :active-text="scope.row.status ? '已启用' : '已禁用'"
-              >
+              <el-switch v-model="scope.row.status" @change="handleSwitch($event, scope.row.walletRebateSaleTypeId)" :active-text="scope.row.status ? '已启用' : '已禁用'">
               </el-switch>
             </template>
           </el-table-column>
-          <el-table-column
-            v-else
-            align="center"
-            :label="col.lable"
-            :prop="col.prop"
-            :min-width="col.widht"
-            show-overflow-tooltip
-          >
+          <el-table-column v-else align="left" :label="col.lable" :prop="col.prop" :min-width="col.widht" show-overflow-tooltip>
           </el-table-column>
         </template>
         <!-- </div> -->
 
-        <el-table-column
-          align="center"
-          fixed="right"
-          label="操作"
-          min-width="160"
-        >
+        <el-table-column align="center" fixed="right" label="操作" min-width="160">
           <template slot-scope="scope">
-            <el-button type="text" size="small" @click="hanleDateil(scope.row)"
-              >查看</el-button
-            >
-            <el-button
-              type="text"
-              size="small"
-              @click="hanleEdit(scope.row)"
-              v-if="$checkBtnRole('edit', $route.meta.roles)"
-              >编辑</el-button
-            >
+            <el-button type="text" size="small" @click="hanleDateil(scope.row)">查看</el-button>
+            <el-button type="text" size="small" @click="hanleEdit(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles)">编辑</el-button>
             <!-- <el-button type="text" size="small">编辑</el-button> -->
           </template>
         </el-table-column>
       </el-table>
       <!-- 分页 -->
       <div class="fr">
-        <el-pagination
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
-          :current-page="currentPage"
-          :page-sizes="[10, 20, 30, 50]"
-          :page-size="10"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="listTotal"
-        >
+        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
         </el-pagination>
       </div>
     </div>
     <div>
-      <el-dialog
-        :visible.sync="dialogVisible"
-        width="30%"
-        @close="hanelclose"
-        title="返利类型"
-      >
-        <el-form
-          :model="dialogForm"
-          ref="dialogForm"
-          :rules="rules"
-          label-width="120px"
-          :inline="false"
-          size="normal"
-        >
+      <el-dialog :visible.sync="dialogVisible" width="30%" @close="hanelclose" title="返利类型">
+        <el-form :model="dialogForm" ref="dialogForm" :rules="rules" label-width="120px" :inline="false" size="normal">
           <el-form-item label="返利使用钱包" prop="walletRebateId">
             <!-- <el-input
               v-model="dialogForm.name"
               :readonly="type == 3"
             ></el-input> -->
-            <el-select
-              v-model="dialogForm.walletRebateId"
-              :disabled="type == 3"
-              filterable
-              placeholder="请选择钱包"
-            >
-              <el-option
-                v-for="item in walletList"
-                :key="item.walletRebateId"
-                :label="item.name"
-                :value="item.walletRebateId"
-              >
+            <el-select v-model="dialogForm.walletRebateId" :disabled="type == 3" filterable placeholder="请选择钱包">
+              <el-option v-for="item in walletList" :key="item.walletRebateId" :label="item.name" :value="item.walletRebateId">
               </el-option>
             </el-select>
           </el-form-item>
 
           <el-form-item label="销售类型名称" prop="saleTypeId">
-            <el-select
-              v-model="dialogForm.saleTypeId"
-              :disabled="type == 3"
-              filterable
-              @change="handleChange"
-              placeholder="请选择销售类型编码"
-            >
-              <el-option
-                v-for="item in typeList"
-                :key="item.id"
-                :label="item.saleName"
-                :value="item.id"
-              >
+            <el-select v-model="dialogForm.saleTypeId" :disabled="type == 3" filterable @change="handleChange" placeholder="请选择销售类型编码">
+              <el-option v-for="item in typeList" :key="item.id" :label="item.saleName" :value="item.id">
               </el-option>
             </el-select>
           </el-form-item>
           <el-form-item label="返利折扣比例" prop="rebateRate">
-            <el-input
-              type="number"
-              placeholder="例如0.1=1折"
-              :disabled="type == 3"
-              @change="handleNumber"
-              v-model.number="dialogForm.rebateRate"
-            ></el-input>
+            <el-input type="number" placeholder="例如0.1=1折" :disabled="type == 3" @change="handleNumber" v-model.number="dialogForm.rebateRate"></el-input>
           </el-form-item>
           <!-- <el-form-item label="销售类型编码" prop="saleTypeCode">
             <el-input
@@ -250,13 +114,7 @@
           </el-form-item> -->
 
           <el-form-item label="状态" prop="status">
-            <el-switch
-              v-model="dialogForm.status"
-              :disabled="type == 3"
-              :active-value="true"
-              :inactive-value="false"
-              :active-text="dialogForm.status ? '启用' : ''"
-            >
+            <el-switch v-model="dialogForm.status" :disabled="type == 3" :active-value="true" :inactive-value="false" :active-text="dialogForm.status ? '启用' : ''">
             </el-switch>
           </el-form-item>
         </el-form>
@@ -272,8 +130,8 @@
 </template>
 
 <script>
-import Mixin from '@/mixin/index'
-import Pagination from '@/components/Pagination'
+import Mixin from "@/mixin/index";
+import Pagination from "@/components/Pagination";
 import {
   getDictList,
   getTypeList,
@@ -281,8 +139,8 @@ import {
   getWalletRebateSaletypeAdd,
   getWalletRebateSaletypeDelete,
   getWalletRebateSaletypelist,
-  getWalletRebateSaletypeUpdate
-} from '@/api/policy_list'
+  getWalletRebateSaletypeUpdate,
+} from "@/api/policy_list";
 
 export default {
   mixins: [Mixin],
@@ -446,12 +304,11 @@ export default {
     handleNumber(e) {
       console.log(e);
       if (Number(e) < 0) {
-        this.dialogForm.rebateRate = '';
-        this.$errorMsg('不能小于0,输入数值0至1之间')
-
+        this.dialogForm.rebateRate = "";
+        this.$errorMsg("不能小于0,输入数值0至1之间");
       } else if (Number(e) > 1) {
-        this.dialogForm.rebateRate = '';
-           this.$errorMsg('不能大于1,输入数值0至1之间')
+        this.dialogForm.rebateRate = "";
+        this.$errorMsg("不能大于1,输入数值0至1之间");
       } else {
         this.dialogForm.rebateRate = e;
       }

+ 16 - 105
src/views/sales_rebate/rebate_list_type.vue

@@ -1,21 +1,11 @@
 <template>
   <div class="app-container">
     <div class="screen-container">
-      <el-form
-        ref="screenForm"
-        :model="screenForm"
-        size="small"
-        label-width="100px"
-        label-position="left"
-      >
+      <el-form ref="screenForm" :model="screenForm" size="small" label-width="100px" label-position="left">
         <el-row :gutter="20">
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item label="返利类型" prop="name">
-              <el-input
-                v-model="screenForm.name"
-                placeholder="请输入返利类型"
-                size="small"
-              ></el-input>
+              <el-input v-model="screenForm.name" placeholder="请输入返利类型" size="small"></el-input>
             </el-form-item>
           </el-col>
 
@@ -38,25 +28,10 @@
           </el-col> -->
           <el-col :xs="24" :ms="18" :lg="24">
             <el-form-item>
-              <el-button
-                type="primary"
-                size="small"
-                icon="el-icon-plus"
-                v-if="$checkBtnRole('add', $route.meta.roles)"
-                @click="(dialogVisible = true), (type = 1), getDictList()"
-                >新增</el-button
-              >
+              <el-button type="primary" size="small" icon="el-icon-plus" v-if="$checkBtnRole('add', $route.meta.roles)" @click="(dialogVisible = true), (type = 1), getDictList()">新增</el-button>
 
-              <el-button
-                type="primary"
-                size="small"
-                icon="el-icon-search"
-                @click="submitScreenForm"
-                >查询</el-button
-              >
-              <el-button type="primary" size="small" @click="resetScreenForm"
-                >重置</el-button
-              >
+              <el-button type="primary" size="small" icon="el-icon-search" @click="submitScreenForm">查询</el-button>
+              <el-button type="primary" size="small" @click="resetScreenForm">重置</el-button>
             </el-form-item>
           </el-col>
         </el-row>
@@ -64,103 +39,39 @@
     </div>
 
     <div class="mymain-container">
-      <el-table
-        v-loading="listLoading"
-        :data="dataList"
-        element-loading-text="Loading"
-        border
-        fit
-        highlight-current-row
-        stripe
-      >
+      <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
         <el-table-column type="selection" width="55" align="center">
         </el-table-column>
         <template v-for="col in columns">
-          <el-table-column
-            align="center"
-            :label="col.lable"
-            :prop="col.prop"
-            :min-width="col.widht"
-            show-overflow-tooltip
-            v-if="col.prop == 'status'"
-          >
+          <el-table-column align="left" :label="col.lable" :prop="col.prop" :min-width="col.widht" show-overflow-tooltip v-if="col.prop == 'status'">
             <template slot-scope="scope">
-              <el-switch
-                v-model="scope.row.status"
-                @change="handleSwitch($event, scope.row.walletRebateId)"
-                :active-text="scope.row.status ? '已启用' : '已禁用'"
-              >
+              <el-switch v-model="scope.row.status" @change="handleSwitch($event, scope.row.walletRebateId)" :active-text="scope.row.status ? '已启用' : '已禁用'">
               </el-switch>
             </template>
           </el-table-column>
-          <el-table-column
-            v-else
-            align="center"
-            :label="col.lable"
-            :prop="col.prop"
-            :min-width="col.widht"
-            show-overflow-tooltip
-          >
+          <el-table-column v-else align="left" :label="col.lable" :prop="col.prop" :min-width="col.widht" show-overflow-tooltip>
           </el-table-column>
         </template>
 
-        <el-table-column
-          align="center"
-          fixed="right"
-          label="操作"
-          min-width="160"
-        >
+        <el-table-column align="center" fixed="right" label="操作" min-width="160">
           <template slot-scope="scope">
-            <el-button type="text" size="small" @click="hanleDateil(scope.row)"
-              >查看</el-button
-            >
-            <el-button
-              type="text"
-              size="small"
-              @click="hanleEdit(scope.row)"
-              v-if="$checkBtnRole('edit', $route.meta.roles)"
-              >编辑</el-button
-            >
+            <el-button type="text" size="small" @click="hanleDateil(scope.row)">查看</el-button>
+            <el-button type="text" size="small" @click="hanleEdit(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles)">编辑</el-button>
             <!-- <el-button type="text" size="small">编辑</el-button> -->
           </template>
         </el-table-column>
       </el-table>
       <!-- 分页 -->
       <div class="fr">
-        <el-pagination
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
-          :current-page="currentPage"
-          :page-sizes="[10, 20, 30, 50]"
-          :page-size="10"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="listTotal"
-        >
+        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
         </el-pagination>
       </div>
     </div>
     <div>
-      <el-dialog
-        v-loading="addLoading"
-        element-loading-text="Loading"
-        :visible.sync="dialogVisible"
-        width="30%"
-        @close="hanelclose"
-        title="返利类型"
-      >
-        <el-form
-          :model="dialogForm"
-          ref="dialogForm"
-          :rules="rules"
-          label-width="120px"
-          :inline="false"
-          size="normal"
-        >
+      <el-dialog v-loading="addLoading" element-loading-text="Loading" :visible.sync="dialogVisible" width="30%" @close="hanelclose" title="返利类型">
+        <el-form :model="dialogForm" ref="dialogForm" :rules="rules" label-width="120px" :inline="false" size="normal">
           <el-form-item label="返利使用钱包" prop="name">
-            <el-input
-              v-model="dialogForm.name"
-              :readonly="type == 3"
-            ></el-input>
+            <el-input v-model="dialogForm.name" :readonly="type == 3"></el-input>
           </el-form-item>
 
           <!-- <el-form-item label="产品使用品类" prop="mainName">

+ 21 - 121
src/views/sales_rebate/salestype_list.vue

@@ -1,165 +1,74 @@
 <template>
   <div class="app-container">
     <div class="screen-container">
-      <el-form
-        ref="screenForm"
-        :model="screenForm"
-        size="small"
-        label-position="left"
-      >
+      <el-form ref="screenForm" :model="screenForm" size="small" label-position="left">
         <el-row :gutter="20">
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item prop="saleCode">
-              <el-input
-                v-model="screenForm.saleCode"
-                placeholder="销售类型编码"
-                size="small"
-              ></el-input>
+              <el-input v-model="screenForm.saleCode" placeholder="销售类型编码" size="small"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item prop="saleName">
-              <el-input
-                v-model="screenForm.saleName"
-                placeholder="销售类型名称"
-                size="small"
-              ></el-input>
+              <el-input v-model="screenForm.saleName" placeholder="销售类型名称" size="small"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :ms="6" :lg="6">
             <el-form-item prop="status">
-              <el-select
-                v-model="screenForm.status"
-                placeholder="状态"
-                size="small"
-              >
-                <el-option
-                  v-for="item in options"
-                  :key="item.value"
-                  :label="item.label"
-                  :value="item.value"
-                >
+              <el-select v-model="screenForm.status" placeholder="状态" size="small">
+                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                 </el-option>
               </el-select>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :ms="6" :lg="6" class="tr">
             <el-form-item>
-              <el-button type="primary" size="small" @click="submitScreenForm"
-                >查询</el-button
-              >
-              <el-button type="primary" size="small" @click="resetScreenForm"
-                >重置</el-button
-              >
+              <el-button type="primary" size="small" @click="submitScreenForm">查询</el-button>
+              <el-button type="primary" size="small" @click="resetScreenForm">重置</el-button>
             </el-form-item>
           </el-col>
         </el-row>
       </el-form>
     </div>
     <div class="btn-group">
-      <el-button
-        type="primary"
-        size="small"
-        v-if="$checkBtnRole('add', $route.meta.roles)"
-        @click="(dialogVisible = true), (type = 1)"
-        >新增</el-button
-      >
+      <el-button type="primary" size="small" v-if="$checkBtnRole('add', $route.meta.roles)" @click="(dialogVisible = true), (type = 1)">新增</el-button>
     </div>
     <div class="mymain-container">
-      <el-table
-        v-loading="listLoading"
-        :data="dataList"
-        element-loading-text="Loading"
-        border
-        fit
-        highlight-current-row
-        stripe
-      >
+      <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
         <el-table-column type="selection" width="55" align="center">
         </el-table-column>
         <template v-for="col in columns">
-          <el-table-column
-            align="center"
-            :label="col.lable"
-            :prop="col.prop"
-            :min-width="col.widht"
-            show-overflow-tooltip
-            v-if="col.prop == 'status'"
-          >
+          <el-table-column align="left" :label="col.lable" :prop="col.prop" :min-width="col.widht" show-overflow-tooltip v-if="col.prop == 'status'">
             <template slot-scope="scope">
               <div style="z-index: 99">
-                <el-switch
-                  v-model="scope.row.status"
-                  @change="handleSwitch($event, scope.row.id)"
-                  :active-text="scope.row.status ? '已启用' : '已禁用'"
-                >
+                <el-switch v-model="scope.row.status" @change="handleSwitch($event, scope.row.id)" :active-text="scope.row.status ? '已启用' : '已禁用'">
                 </el-switch>
               </div>
             </template>
           </el-table-column>
-          <el-table-column
-            v-else
-            align="center"
-            :label="col.lable"
-            :prop="col.prop"
-            :min-width="col.widht"
-            show-overflow-tooltip
-          >
+          <el-table-column v-else align="left" :label="col.lable" :prop="col.prop" :min-width="col.widht" show-overflow-tooltip>
           </el-table-column>
         </template>
 
-        <el-table-column
-          align="center"
-          fixed="right"
-          label="操作"
-          min-width="160"
-        >
+        <el-table-column align="center" fixed="right" label="操作" min-width="160">
           <template slot-scope="scope">
-            <el-button type="text" size="small" @click="hanleEdit(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles)"
-              >编辑</el-button
-            >
+            <el-button type="text" size="small" @click="hanleEdit(scope.row)" v-if="$checkBtnRole('edit', $route.meta.roles)">编辑</el-button>
             <!-- <el-button type="text" size="small" @click="hanleDateil(scope.row)">详情</el-button> -->
-            <el-popconfirm
-              title="这是一段内容确定删除吗?"
-              style="margin-left: 10px"
-              v-if="$checkBtnRole('del', $route.meta.roles)"
-              @onConfirm="hanleDatele(scope.row.id)"
-            >
-              <el-button slot="reference" type="text" size="small"
-                >删除</el-button
-              >
+            <el-popconfirm title="这是一段内容确定删除吗?" style="margin-left: 10px" v-if="$checkBtnRole('del', $route.meta.roles)" @onConfirm="hanleDatele(scope.row.id)">
+              <el-button slot="reference" type="text" size="small">删除</el-button>
             </el-popconfirm>
           </template>
         </el-table-column>
       </el-table>
       <!-- 分页 -->
       <div style="margin: 20px 0">
-        <el-pagination
-          @size-change="handleSizeChange"
-          @current-change="handleCurrentChange"
-          :current-page="currentPage"
-          :page-sizes="[10, 20, 30, 50]"
-          :page-size="10"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="listTotal"
-        >
+        <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
         </el-pagination>
       </div>
     </div>
     <div>
-      <el-dialog
-        :visible.sync="dialogVisible"
-        width="50%"
-        @close="resetForm"
-        :close-on-click-modal="false"
-      >
-        <el-form
-          ref="dialogForm"
-          :model="dialogForm"
-          :rules="type == 1 ? rules : ''"
-          label-width="120px"
-          size="normal"
-        >
+      <el-dialog :visible.sync="dialogVisible" width="50%" @close="resetForm" :close-on-click-modal="false">
+        <el-form ref="dialogForm" :model="dialogForm" :rules="type == 1 ? rules : ''" label-width="120px" size="normal">
           <el-form-item label="销售类型编码" prop="saleCode">
             <el-input v-model="dialogForm.saleCode"></el-input>
           </el-form-item>
@@ -180,19 +89,12 @@
             <el-input v-model="dialogForm.mainName"></el-input> -->
           <!-- </el-form-item>  -->
           <el-form-item label="状态" prop="status">
-            <el-switch
-              v-model="dialogForm.status"
-              :active-value="true"
-              :inactive-value="false"
-              :active-text="dialogForm.status ? '启用' : ''"
-            >
+            <el-switch v-model="dialogForm.status" :active-value="true" :inactive-value="false" :active-text="dialogForm.status ? '启用' : ''">
             </el-switch>
           </el-form-item>
         </el-form>
         <span slot="footer" class="dialog-footer">
-          <el-button @click="(dialogVisible = false), resetForm()"
-            >取 消</el-button
-          >
+          <el-button @click="(dialogVisible = false), resetForm()">取 消</el-button>
           <el-button type="primary" @click="handelInfo">确 定</el-button>
         </span>
       </el-dialog>
@@ -251,7 +153,6 @@ export default {
           widht: 160,
         },
 
-
         {
           prop: "status",
           lable: "状态",
@@ -299,7 +200,6 @@ export default {
         saleName: [
           { required: true, message: "请输入销售类型名称", trigger: "blur" },
         ],
-
       },
       productList: [],
     };