snow 1 year ago
parent
commit
601ff8b5c7

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.3b21e38d.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.684f132f.js


BIN
dist/static/js/app.684f132f.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.9216ec1b.js


BIN
dist/static/js/app.9216ec1b.js.gz


+ 17 - 48
src/components/newReport/src/notDeliverGood.vue

@@ -5,7 +5,7 @@
 
       <el-table-column label="订单状态" width="110px">
         <template slot-scope="scope">
-          {{ getStatus(scope.row) }}
+          {{ scope.row.result.status }}
         </template>
       </el-table-column>
       <el-table-column label="下单月份" align="center" v-if="months">
@@ -14,40 +14,6 @@
               {{getField(month, scope.row, scope.row.name === '无地址订单总金额')}}
           </template>
         </el-table-column>
-        <!-- <el-table-column label="02">
-          <template slot-scope="scope">
-            {{getField('2',scope.row)}}
-          </template>
-        </el-table-column>
-        <el-table-column label="03">
-          <template slot-scope="scope">
-            {{getField('3',scope.row)}}
-          </template>
-        </el-table-column>
-
-        <el-table-column label="04">
-          <template slot-scope="scope">
-            {{getField('4',scope.row)}}
-          </template>
-        </el-table-column>
-
-        <el-table-column label="05">
-          <template slot-scope="scope">
-            {{getField('5',scope.row)}}
-          </template>
-        </el-table-column>
-        
-        <el-table-column label="06">
-          <template slot-scope="scope">
-            {{getField('6',scope.row)}}
-          </template>
-        </el-table-column>
-
-        <el-table-column label="07">
-          <template slot-scope="scope">
-            {{getField('7',scope.row)}}
-          </template>
-        </el-table-column> -->
       </el-table-column>
       <el-table-column label="总计" width="110px">
         <template slot-scope="scope">
@@ -59,6 +25,9 @@
 </template>
 
 <script>
+import asyncRequest from "@/api/newReport";
+import setHeight from "@/mixins/index";
+import { addition, division } from "./_utils";
 
 function unit2TenThousand(value){
   if(value === NaN || value === "NaN" || Number(value) === 0) return '0'
@@ -66,10 +35,6 @@ function unit2TenThousand(value){
   return division(value, 10000).toFixed(2) + 'W'
 }
 
-
-import asyncRequest from "@/api/newReport";
-import setHeight from "@/mixins/index";
-import { addition } from "./_utils";
 export default {
   name: "Consult",
   mixins: [setHeight],
@@ -173,11 +138,13 @@ export default {
     },
     getField(month,row,isTotalPrice){
       if(Array.isArray(row.result[month])) return 0
-      // const {total_price, num} = (row.result[month]['1'] || {})
-      // console.log(total_price)
+      if(month === 'status') {
+        return 0
+      }
 
       if(isTotalPrice){
         const { total_price } =  row.result[month]
+        console.log(total_price,month)
         return Number(total_price) === 0 ? "0元" : unit2TenThousand(total_price) + "万元"
       }
 
@@ -203,6 +170,7 @@ export default {
             tableData.push({name,
               result: Object.keys(result).reduce((prev,month) => ({
                 ...prev,
+                status: i === 0 ? '待发货' : '待发货完成',
                 [month]: {
                   '1':Array.isArray(result[month]) 
                   ? { num : 0 ,send_status : null} 
@@ -215,18 +183,14 @@ export default {
           }
         }
 
-        console.log(tableData)
-
-
         this.tableData = tableData
-        this.months = Object.keys(this.tableData[0].result)
+        this.months = Object.keys(this.tableData[0].result).filter(month => month !== 'status')
         const totalItemDefault = this.months.reduce((prev,month) => ({
           ...prev,
           [month]:{ 1:{ num:0 }}
         }), {})
 
-
-        this.tableData.push({
+        const totalItem = {
           name:'合计',
           result: this.tableData.reduce((prev,current) => {
             const { result} = current;
@@ -238,9 +202,14 @@ export default {
               }
             }, {})
           },{...totalItemDefault})
-        })
+        }
+
+
+        totalItem.result.status = "--"
+        this.tableData.push(totalItem)
 
         noAddr.name = "无地址订单总金额"
+        noAddr.result.status = "--"
         this.tableData.push(noAddr)
       } else {
         this.tableData = [];

+ 1 - 1
src/components/unusual/index.vue

@@ -3,7 +3,7 @@
     <el-empty :description="hasPermission ? message :`您没有访问权限,请联系管理员`" image="/static/warning.png">
       <div style="display: flex;gap: 10px;">
         <el-button size="mini" type="" @click="toNav">返回数据导航</el-button>
-        <el-button size="mini" type="primary" @click="toLogin">重新登录</el-button>
+        <!-- <el-button size="mini" type="primary" @click="toLogin">重新登录</el-button> -->
       </div>
     </el-empty>
   </div>

+ 11 - 9
src/pages/newReport.vue

@@ -9,38 +9,40 @@
         <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
           <p class="title">1.咨询单情况</p>
           <consult :date="date" />
+
+          <p class="title">2.竞价单空返情况统计:</p>
+          <empty-return :date="date" />
         </el-col>
 
         <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16">
-          <p class="title">2.订单未发货情况</p>
+          <p class="title">3.订单未发货情况</p>
           <not-deliver-good :date="date" />
         </el-col>
       </el-row>
 
       <el-row :gutter="20">
         <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
-          <p class="title">3.备库单情况</p>
+          <p class="title">4.备库单情况</p>
           <stock :date="date" />
         </el-col>
 
         <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16">
-          <p class="title">4.订单情况</p>
+          <p class="title">5.订单情况</p>
           <order :date="date" />
         </el-col>
       </el-row>
 
       <el-row :gutter="20">
-        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
-          <p class="title">5.竞价单空返情况统计:</p>
-          <empty-return :date="date" />
-        </el-col>
+        <!-- <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
+
+        </el-col> -->
 
-        <el-col :xs="24" :sm="6" :md="6" :lg="6" :xl="6">
+        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
           <p class="title">6.采购员竞价反馈情况 : 竞价单总量 : {{ zxTotal }}</p>
           <purchase-back :date="date" @getZXTotal="getZXTotal" />
         </el-col>
 
-        <el-col :xs="24" :sm="10" :md="10" :lg="10" :xl="10">
+        <el-col :xs="24" :sm="16" :md="16" :lg="16" :xl="16">
           <p class="title">7.采购员采购单情况</p>
           <purchase :date="date" />
         </el-col>

Some files were not shown because too many files changed in this diff