Browse Source

人员目标、项目目标

qymljy 2 years ago
parent
commit
a4e8f1a8f2

+ 1 - 1
src/HDrpManagement/invoiceapp/detail/tab/redInvoice/components/invoiceTable.vue

@@ -36,7 +36,7 @@
         label="发票号码">
       </el-table-column>
       <el-table-column
-        prop="remarks"
+        prop="apiresult"
         label="反馈消息">
       </el-table-column>
       <el-table-column

+ 1 - 1
src/HDrpManagement/orderManage/details/tabs/productlist.vue

@@ -8,7 +8,7 @@
                     :params="paramsAdd" :tablecolsAdd="tablecolsAdd" title="添 加" :tradefield="data.tradefield" :querySa_brandid="data.sa_brandid"
                     @addSuccess="addProducts" @addProduct="addProduct" @uploadData="uploadData" @closeDrawer="listData();$emit('onSuccess')"
         ></addProduct>
-        <excel style="margin:0 0 10px 10px" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
+<!--        <excel style="margin:0 0 10px 10px" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>-->
          <uploadAllData
          v-if="type !== 'confirmdate' && data.status === '新建' "
           style="margin:0 0 10px 10px"

+ 5 - 0
src/HDrpManagement/orderManage/details/tabs/revenueAndExp.vue

@@ -15,6 +15,11 @@
         label="来源"
         width="180">
       </el-table-column>
+      <el-table-column
+          prop="createdate"
+          label="凭证时间"
+          width="180">
+      </el-table-column>
       <el-table-column
         prop="amount"
         label="金额">

+ 2 - 1
src/HDrpManagement/orderManage/index.vue

@@ -8,12 +8,13 @@
       :apiId="{query:20230105143002,del:20221108152102}"
       :oldFormPath="{add:'HDrpManagement/orderManage/modules'}"
       :options="options"
+      :isExport="false"
       :detailPath="{
         path:'/orderdetail'
       }"
       @listData="list">
       <template #titleRight>
-          <el-button v-if="tool.checkAuth($route.name,'refreshStock')" style="margin-left:16px" size="small" type="primary" @click="refreshStock">刷新库存</el-button>
+          <el-button v-if="tool.checkAuth($route.name,'refreshStock')" style="margin-left:0px" size="small" type="primary" @click="refreshStock">刷新库存</el-button>
       </template>
       <template #custom>
         <div class="mt-10">

+ 1 - 0
src/SDrpManagement/agentOrder/index.vue

@@ -7,6 +7,7 @@
       idName="sa_orderid" 
       :apiId="{query:20221224180302,del:20221108152102}"
       :options="options"
+      :isExport="false"
       :oldFormPath="{add:'SDrpManagement/agentOrder/modules'}"
       :detailPath="{
         path:'/agent_orderDetails'

+ 1 - 1
src/SDrpManagement/agentOrder/modules/productlist.vue

@@ -8,7 +8,7 @@
                   :params="paramsAdd" :tablecolsAdd="tablecolsAdd" title="添 加" :tradefield="data.tradefield" :querySa_brandid="data.sa_brandid"
                    @addSuccess="addProducts" @addProduct="addProduct" @uploadData="uploadData" @closeDrawer="listData();$emit('onSuccess')"
       ></addProduct>
-      <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
+<!--      <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>-->
       <uploadAllData
           v-if="type !== 'confirmdate' && data.status === '新建' && data.type !== '特殊订单' "
           :total="total"

+ 1 - 0
src/SDrpManagement/salerOrder/index.vue

@@ -7,6 +7,7 @@
       idName="sa_orderid" 
       :apiId="{query:20221111145202,del:20221108152102}"
       :options="options"
+      :isExport="false"
       :oldFormPath="{add:'SDrpManagement/salerOrder/modules'}"
       :detailPath="{
         path:'/saler_orderDetails'

+ 1 - 1
src/SDrpManagement/salerOrder/modules/productlist.vue

@@ -8,7 +8,7 @@
                   :params="paramsAdd" :tablecolsAdd="tablecolsAdd" title="添 加" :tradefield="data.tradefield" :querySa_brandid="data.sa_brandid"
                   @addSuccess="addProducts" @addProduct="addProduct" @uploadData="uploadData" @closeDrawer="listData();$emit('onSuccess')"
       ></addProduct>
-      <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>
+<!--      <excel class="inline-16" :tablecols="columnTitle" :param="param" :total="total" :excelTitle="excelTitle"></excel>-->
       <uploadAllData
           v-if="type !== 'confirmdate' && data.status === '新建' && data.type !== '特殊订单' "
           :total="total"

+ 68 - 68
src/SManagement/personal_target/components/table.vue

@@ -47,9 +47,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.y1l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.y1l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.y1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.y1a,2)}}</p>
             <p class="center" :class="scope.row.y1pl < 0?'green':'red'">({{scope.row.y1pl}}%)</p>
           </template>
         </el-table-column>
@@ -58,9 +58,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.y1h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.y1h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.y1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.y1a,2)}}</p>
             <p class="center" :class="scope.row.y1ph < 0?'green':'red'">({{scope.row.y1ph}}%)</p>
           </template>
         </el-table-column>
@@ -71,9 +71,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s1l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s1l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s1a,2)}}</p>
             <p class="center" :class="scope.row.s1pl < 0?'green':'red'">({{scope.row.s1pl}}%)</p>
           </template>
         </el-table-column>
@@ -82,9 +82,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s1h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s1h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s1a,2)}}</p>
             <p class="center" :class="scope.row.s1ph < 0?'green':'red'">({{scope.row.s1ph}}%)</p>
           </template>
         </el-table-column>
@@ -95,9 +95,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m1l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m1l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m1a,2)}}</p>
             <p class="center" :class="scope.row.m1pl < 0?'green':'red'">({{scope.row.m1pl}}%)</p>
           </template>
         </el-table-column>
@@ -106,9 +106,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m1h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m1h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m1a,2)}}</p>
             <p class="center" :class="scope.row.m1ph < 0?'green':'red'">({{scope.row.m1ph}}%)</p>
           </template>
         </el-table-column>
@@ -119,9 +119,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m2l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m2l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m2a,2)}}</p>
             <p class="center" :class="scope.row.m2pl < 0?'green':'red'">({{scope.row.m2pl}}%)</p>
           </template>
         </el-table-column>
@@ -130,9 +130,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m2h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m2h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m2a,2)}}</p>
             <p class="center" :class="scope.row.m2ph < 0?'green':'red'">({{scope.row.m2ph}}%)</p>
           </template>
         </el-table-column>
@@ -143,9 +143,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m3l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m3l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m3a,2)}}</p>
             <p class="center" :class="scope.row.m3pl < 0?'green':'red'">({{scope.row.m3pl}}%)</p>
           </template>
         </el-table-column>
@@ -154,9 +154,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m3h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m3h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m3a,2)}}</p>
             <p class="center" :class="scope.row.m3ph < 0?'green':'red'">({{scope.row.m3ph}}%)</p>
           </template>
         </el-table-column>
@@ -167,9 +167,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s2l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s2l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s2a,2)}}</p>
             <p class="center" :class="scope.row.s2pl < 0?'green':'red'">({{scope.row.s2pl}}%)</p>
           </template>
         </el-table-column>
@@ -178,9 +178,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s2h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s2h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s2a,2)}}</p>
             <p class="center" :class="scope.row.s2ph < 0?'green':'red'">({{scope.row.s2ph}}%)</p>
           </template>
         </el-table-column>
@@ -191,9 +191,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m4l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m4l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m4a,2)}}</p>
             <p class="center" :class="scope.row.m4pl < 0?'green':'red'">({{scope.row.m4pl}}%)</p>
           </template>
         </el-table-column>
@@ -202,9 +202,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m4h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m4h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m4a,2)}}</p>
             <p class="center" :class="scope.row.m4ph < 0?'green':'red'">({{scope.row.m4ph}}%)</p>
           </template>
         </el-table-column>
@@ -215,9 +215,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m5l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m5l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m5a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m5a,2)}}</p>
             <p class="center" :class="scope.row.m5pl < 0?'green':'red'">({{scope.row.m5pl}}%)</p>
           </template>
         </el-table-column>
@@ -226,9 +226,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m5h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m5h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m5a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m5a,2)}}</p>
             <p class="center" :class="scope.row.m5ph < 0?'green':'red'">({{scope.row.m5ph}}%)</p>
           </template>
         </el-table-column>
@@ -239,9 +239,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m6l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m6l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m6a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m6a,2)}}</p>
             <p class="center" :class="scope.row.m6pl < 0?'green':'red'">({{scope.row.m6pl}}%)</p>
           </template>
         </el-table-column>
@@ -250,9 +250,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m6h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m6h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m6a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m6a,2)}}</p>
             <p class="center" :class="scope.row.m6ph < 0?'green':'red'">({{scope.row.m6ph}}%)</p>
           </template>
         </el-table-column>
@@ -263,9 +263,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s3l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s3l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s3a,2)}}</p>
             <p class="center" :class="scope.row.s3pl < 0?'green':'red'">({{scope.row.s3pl}}%)</p>
           </template>
         </el-table-column>
@@ -274,9 +274,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s3h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s3h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s3a,2)}}</p>
             <p class="center" :class="scope.row.s3ph < 0?'green':'red'">({{scope.row.s3ph}}%)</p>
           </template>
         </el-table-column>
@@ -287,9 +287,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m7l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m7l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m7a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m7a,2)}}</p>
             <p class="center" :class="scope.row.m7pl < 0?'green':'red'">({{scope.row.m7pl}}%)</p>
           </template>
         </el-table-column>
@@ -298,9 +298,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m7h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m7h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m7a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m7a,2)}}</p>
             <p class="center" :class="scope.row.m7ph < 0?'green':'red'">({{scope.row.m7ph}}%)</p>
           </template>
         </el-table-column>
@@ -311,9 +311,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m8l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m8l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m8a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m8a,2)}}</p>
             <p class="center" :class="scope.row.m8pl < 0?'green':'red'">({{scope.row.m8pl}}%)</p>
           </template>
         </el-table-column>
@@ -322,9 +322,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m8h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m8h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m8a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m8a,2)}}</p>
             <p class="center" :class="scope.row.m8ph < 0?'green':'red'">({{scope.row.m8ph}}%)</p>
           </template>
         </el-table-column>
@@ -335,9 +335,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m9l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m9l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m9a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m9a,2)}}</p>
             <p class="center" :class="scope.row.m9pl < 0?'green':'red'">({{scope.row.m9pl}}%)</p>
           </template>
         </el-table-column>
@@ -346,9 +346,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m9h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m9h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m9a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m9a,2)}}</p>
             <p class="center" :class="scope.row.m9ph < 0?'green':'red'">({{scope.row.m9ph}}%)</p>
           </template>
         </el-table-column>
@@ -359,9 +359,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s4l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s4l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s4a,2)}}</p>
             <p class="center" :class="scope.row.s4pl < 0?'green':'red'">({{scope.row.s4pl}}%)</p>
           </template>
         </el-table-column>
@@ -370,9 +370,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s4h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s4h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s4a,2)}}</p>
             <p class="center" :class="scope.row.s4ph < 0?'green':'red'">({{scope.row.s4ph}}%)</p>
           </template>
         </el-table-column>
@@ -383,9 +383,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m10l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m10l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m10a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m10a,2)}}</p>
             <p class="center" :class="scope.row.m10pl < 0?'green':'red'">({{scope.row.m10pl}}%)</p>
           </template>
         </el-table-column>
@@ -394,9 +394,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m10h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m10h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m10a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m10a,2)}}</p>
             <p class="center" :class="scope.row.m10ph < 0?'green':'red'">({{scope.row.m10ph}}%)</p>
           </template>
         </el-table-column>
@@ -407,9 +407,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m11l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m11l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m11a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m11a,2)}}</p>
             <p class="center" :class="scope.row.m11pl < 0?'green':'red'">({{scope.row.m11pl}}%)</p>
           </template>
         </el-table-column>
@@ -418,9 +418,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m11h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m11h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m11a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m11a,2)}}</p>
             <p class="center" :class="scope.row.m11ph < 0?'green':'red'">({{scope.row.m11ph}}%)</p>
           </template>
         </el-table-column>
@@ -431,9 +431,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m12l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m12l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m12a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m12a,2)}}</p>
             <p class="center" :class="scope.row.m12pl < 0?'green':'red'">({{scope.row.m12pl}}%)</p>
           </template>
         </el-table-column>
@@ -442,9 +442,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m12h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m12h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m12a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m12a,2)}}</p>
             <p class="center" :class="scope.row.m12ph < 0?'green':'red'">({{scope.row.m12ph}}%)</p>
           </template>
         </el-table-column>

+ 68 - 68
src/SManagement/project_target/components/table.vue

@@ -75,9 +75,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.y1l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.y1l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.y1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.y1a,2)}}</p>
             <p class="center" :class="scope.row.y1pl < 0?'green':'red'">({{scope.row.y1pl}}%)</p>
           </template>
         </el-table-column>
@@ -86,9 +86,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.y1h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.y1h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.y1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.y1a,2)}}</p>
             <p class="center" :class="scope.row.y1ph < 0?'green':'red'">({{scope.row.y1ph}}%)</p>
           </template>
         </el-table-column>
@@ -99,9 +99,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s1l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s1l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s1a,2)}}</p>
             <p class="center" :class="scope.row.s1pl < 0?'green':'red'">({{scope.row.s1pl}}%)</p>
           </template>
         </el-table-column>
@@ -110,9 +110,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s1h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s1h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s1a,2)}}</p>
             <p class="center" :class="scope.row.s1ph < 0?'green':'red'">({{scope.row.s1ph}}%)</p>
           </template>
         </el-table-column>
@@ -123,9 +123,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m1l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m1l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m1a,2)}}</p>
             <p class="center" :class="scope.row.m1pl < 0?'green':'red'">({{scope.row.m1pl}}%)</p>
           </template>
         </el-table-column>
@@ -134,9 +134,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m1h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m1h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m1a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m1a,2)}}</p>
             <p class="center" :class="scope.row.m1ph < 0?'green':'red'">({{scope.row.m1ph}}%)</p>
           </template>
         </el-table-column>
@@ -147,9 +147,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m2l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m2l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m2a,2)}}</p>
             <p class="center" :class="scope.row.m2pl < 0?'green':'red'">({{scope.row.m2pl}}%)</p>
           </template>
         </el-table-column>
@@ -158,9 +158,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m2h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m2h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m2a,2)}}</p>
             <p class="center" :class="scope.row.m2ph < 0?'green':'red'">({{scope.row.m2ph}}%)</p>
           </template>
         </el-table-column>
@@ -171,9 +171,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m3l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m3l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m3a,2)}}</p>
             <p class="center" :class="scope.row.m3pl < 0?'green':'red'">({{scope.row.m3pl}}%)</p>
           </template>
         </el-table-column>
@@ -182,9 +182,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m3h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m3h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m3a,2)}}</p>
             <p class="center" :class="scope.row.m3ph < 0?'green':'red'">({{scope.row.m3ph}}%)</p>
           </template>
         </el-table-column>
@@ -195,9 +195,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s2l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s2l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s2a,2)}}</p>
             <p class="center" :class="scope.row.s2pl < 0?'green':'red'">({{scope.row.s2pl}}%)</p>
           </template>
         </el-table-column>
@@ -206,9 +206,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s2h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s2h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s2a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s2a,2)}}</p>
             <p class="center" :class="scope.row.s2ph < 0?'green':'red'">({{scope.row.s2ph}}%)</p>
           </template>
         </el-table-column>
@@ -219,9 +219,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m4l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m4l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m4a,2)}}</p>
             <p class="center" :class="scope.row.m4pl < 0?'green':'red'">({{scope.row.m4pl}}%)</p>
           </template>
         </el-table-column>
@@ -230,9 +230,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m4h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m4h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m4a,2)}}</p>
             <p class="center" :class="scope.row.m4ph < 0?'green':'red'">({{scope.row.m4ph}}%)</p>
           </template>
         </el-table-column>
@@ -243,9 +243,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m5l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m5l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m5a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m5a,2)}}</p>
             <p class="center" :class="scope.row.m5pl < 0?'green':'red'">({{scope.row.m5pl}}%)</p>
           </template>
         </el-table-column>
@@ -254,9 +254,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m5h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m5h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m5a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m5a,2)}}</p>
             <p class="center" :class="scope.row.m5ph < 0?'green':'red'">({{scope.row.m5ph}}%)</p>
           </template>
         </el-table-column>
@@ -267,9 +267,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m6l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m6l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m6a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m6a,2)}}</p>
             <p class="center" :class="scope.row.m6pl < 0?'green':'red'">({{scope.row.m6pl}}%)</p>
           </template>
         </el-table-column>
@@ -278,9 +278,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m6h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m6h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m6a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m6a,2)}}</p>
             <p class="center" :class="scope.row.m6ph < 0?'green':'red'">({{scope.row.m6ph}}%)</p>
           </template>
         </el-table-column>
@@ -291,9 +291,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s3l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s3l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s3a,2)}}</p>
             <p class="center" :class="scope.row.s3pl < 0?'green':'red'">({{scope.row.s3pl}}%)</p>
           </template>
         </el-table-column>
@@ -302,9 +302,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s3h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s3h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s3a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s3a,2)}}</p>
             <p class="center" :class="scope.row.s3ph < 0?'green':'red'">({{scope.row.s3ph}}%)</p>
           </template>
         </el-table-column>
@@ -315,9 +315,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m7l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m7l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m7a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m7a,2)}}</p>
             <p class="center" :class="scope.row.m7pl < 0?'green':'red'">({{scope.row.m7pl}}%)</p>
           </template>
         </el-table-column>
@@ -326,9 +326,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m7h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m7h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m7a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m7a,2)}}</p>
             <p class="center" :class="scope.row.m7ph < 0?'green':'red'">({{scope.row.m7ph}}%)</p>
           </template>
         </el-table-column>
@@ -339,9 +339,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m8l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m8l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m8a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m8a,2)}}</p>
             <p class="center" :class="scope.row.m8pl < 0?'green':'red'">({{scope.row.m8pl}}%)</p>
           </template>
         </el-table-column>
@@ -350,9 +350,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m8h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m8h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m8a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m8a,2)}}</p>
             <p class="center" :class="scope.row.m8ph < 0?'green':'red'">({{scope.row.m8ph}}%)</p>
           </template>
         </el-table-column>
@@ -363,9 +363,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m9l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m9l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m9a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m9a,2)}}</p>
             <p class="center" :class="scope.row.m9pl < 0?'green':'red'">({{scope.row.m9pl}}%)</p>
           </template>
         </el-table-column>
@@ -374,9 +374,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m9h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m9h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m9a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m9a,2)}}</p>
             <p class="center" :class="scope.row.m9ph < 0?'green':'red'">({{scope.row.m9ph}}%)</p>
           </template>
         </el-table-column>
@@ -387,9 +387,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s4l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s4l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s4a,2)}}</p>
             <p class="center" :class="scope.row.s4pl < 0?'green':'red'">({{scope.row.s4pl}}%)</p>
           </template>
         </el-table-column>
@@ -398,9 +398,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.s4h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.s4h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.s4a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.s4a,2)}}</p>
             <p class="center" :class="scope.row.s4ph < 0?'green':'red'">({{scope.row.s4ph}}%)</p>
           </template>
         </el-table-column>
@@ -411,9 +411,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m10l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m10l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m10a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m10a,2)}}</p>
             <p class="center" :class="scope.row.m10pl < 0?'green':'red'">({{scope.row.m10pl}}%)</p>
           </template>
         </el-table-column>
@@ -422,9 +422,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m10h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m10h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m10a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m10a,2)}}</p>
             <p class="center" :class="scope.row.m10ph < 0?'green':'red'">({{scope.row.m10ph}}%)</p>
           </template>
         </el-table-column>
@@ -435,9 +435,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m11l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m11l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m11a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m11a,2)}}</p>
             <p class="center" :class="scope.row.m11pl < 0?'green':'red'">({{scope.row.m11pl}}%)</p>
           </template>
         </el-table-column>
@@ -446,9 +446,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m11h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m11h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m11a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m11a,2)}}</p>
             <p class="center" :class="scope.row.m11ph < 0?'green':'red'">({{scope.row.m11ph}}%)</p>
           </template>
         </el-table-column>
@@ -459,9 +459,9 @@
           label="基本"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m12l}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m12l,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m12a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m12a,2)}}</p>
             <p class="center" :class="scope.row.m12pl < 0?'green':'red'">({{scope.row.m12pl}}%)</p>
           </template>
         </el-table-column>
@@ -470,9 +470,9 @@
           label="挑战"
           width="120">
           <template slot-scope="scope">
-            <p class="center d-text">{{scope.row.m12h}}</p>
+            <p class="center d-text">{{tool.formatAmount(scope.row.m12h,2)}}</p>
             <p class="border"></p>
-            <p class="center">{{scope.row.m12a}}</p>
+            <p class="center">{{tool.formatAmount(scope.row.m12a,2)}}</p>
             <p class="center" :class="scope.row.m12ph < 0?'green':'red'">({{scope.row.m12ph}}%)</p>
           </template>
         </el-table-column>

+ 4 - 2
src/components/normal-basic-layout/index.vue

@@ -22,7 +22,7 @@
                 <el-button :type="selection.length === 0?'':'primary'" :disabled="selection.length === 0" size="small" @click="deleteData">删 除</el-button>
               </el-button-group> -->
               <!-- <el-button class="inline-16" size="small" type="primary" plain>导 入</el-button> -->
-              <excel class="inline-16" :tablecols="layout" :param="param" :total="total" :specialKey="specialKey" :excelTitle="routerName"></excel>
+              <excel class="inline-16" :tablecols="layout" :param="param" :total="total" :specialKey="specialKey" :excelTitle="routerName" v-if="exports"></excel>
               <reportCenter btnName="报 表" class="inline-16" position="detail" size="small" :data="reportCenterLsit.filter(item => item.type == 'datainfo')" v-if="reportCenterLsit.filter(item => item.type == 'datainfo').length > 0 && systemappid != 163">
                 <template v-slot:print="scope2">
                   <el-button @click="printBtn({},scope2.data)" type="text" size="mini">打 印</el-button>
@@ -95,7 +95,7 @@
 import {mapGetters} from 'vuex'
 export default {
   componentName:'normalTable',
-  props:['tableName','idName','tableData','apiId','formPath','oldFormPath','options','autoQuery','detailPath','customTitle','hidePagination','hideSearch','statusHideDetailBtn','specialKey','drawerWidth'],
+  props:['tableName','idName','tableData','apiId','formPath','oldFormPath','options','autoQuery','detailPath','customTitle','hidePagination','hideSearch','statusHideDetailBtn','specialKey','drawerWidth','isExport'],
   components:{
     tableTemp: () => import('./modules/table.vue'),
     setColumn: () => import('./modules/setColumn.vue'),
@@ -120,6 +120,7 @@ export default {
     return {
       listType:'table',
       routerName:'',
+      exports:true,
       select:'',
       param:{
         content:{
@@ -300,6 +301,7 @@ export default {
   },
   mounted () {
     this.autoQuery === false?'':this.listData()
+    this.isExport !== false ? this.exports = true : this.exports = false
     console.log(process.env)
   },
   created () {