|
@@ -17,7 +17,7 @@
|
|
|
</div> -->
|
|
|
</div>
|
|
|
<div class="order-wrap" style="padding: 20px;">
|
|
|
- <div>
|
|
|
+ <!-- <div>
|
|
|
<el-date-picker v-model="value1" type="daterange" format="yyyy 年 M 月 d 日" value-format="yyyy-M-d"
|
|
|
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
@@ -25,14 +25,47 @@
|
|
|
<div class="redr">
|
|
|
<el-button>重新导入</el-button>
|
|
|
<input type="file" ref="fileInputt" @change="readTxtFile('fileInputt')" class="dr-int" />
|
|
|
+ </div>s
|
|
|
+ </div> -->
|
|
|
+ <template v-if="js && js.loaded">
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>订单总数:{{js.order_count || 0}}</el-button>
|
|
|
+ <el-button>结算订单数:{{js.settlement_count || 0}}</el-button>
|
|
|
+ <el-button>卡单数量:{{js.prohibit_refund || 0}}</el-button>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div style="padding-top: 20px;">
|
|
|
- <el-button>已结算订单:{{total}}</el-button>
|
|
|
- <el-button>未结算订单:{{not_out_time}}</el-button>
|
|
|
- <el-button>卡单数量:{{prohibit_refund}}</el-button>
|
|
|
- </div>
|
|
|
- <el-table :data="list" border style="width: 100%" max-height="520">
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额:{{js.compensation_sum || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>物流费:{{js.expenses_sum || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <!-- commission_sum -->
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>手续费:{{js.ommission_sum || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额10块的订单数:{{js.compensation_10_count || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额11块的订单数:{{js.compensation_11_count || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额12块的订单数:{{js.compensation_12_count || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额13块的订单数:{{js.compensation_13_count || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额14块的订单数:{{js.compensation_14_count || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ <div style="padding-top: 20px;">
|
|
|
+ <el-button>赔付金额15块的订单数:{{js.compensation_15_count || 0}}</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- settlement_count -->
|
|
|
+ <!-- <el-table :data="list" border style="width: 100%" max-height="520">
|
|
|
<el-table-column prop="id" label="id" width="80">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="createtime" label="提交时间" width="200">
|
|
@@ -54,12 +87,12 @@
|
|
|
<span>理赔:{{scope.row.compensation}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- </el-table>
|
|
|
+ </el-table> -->
|
|
|
<!-- 分页区域 -->
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
:current-page="queryInfo.page" :page-sizes="[10, 20, 50, 100]" :page-size="queryInfo.pagesize"
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total">
|
|
|
- </el-pagination>
|
|
|
+ </el-pagination> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -93,6 +126,9 @@
|
|
|
token: ''
|
|
|
},
|
|
|
total: 0,
|
|
|
+ js: {
|
|
|
+ loaded: false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -127,30 +163,40 @@
|
|
|
const file = input.files[0]
|
|
|
|
|
|
const reader = new FileReader()
|
|
|
+ console.log('zhe');
|
|
|
reader.onload = (e) => {
|
|
|
let srt = e.target.result.replace(/\n\r/g, ',').replace(/\r\n/g, ',')
|
|
|
let arr = srt.split(',').filter(item => item !== '')
|
|
|
that.setJsOrderToken(arr)
|
|
|
that.queryInfo.token = that.jsOrderToken.join(',')
|
|
|
- that.getList()
|
|
|
+ that.getList('reload')
|
|
|
}
|
|
|
reader.readAsText(file)
|
|
|
},
|
|
|
getList(type) {
|
|
|
+ console.log('ks');
|
|
|
let that = this
|
|
|
if (type == 'reload') {
|
|
|
that.queryInfo.page = 1
|
|
|
// that.queryInfo.date
|
|
|
}
|
|
|
+ that.js = {}
|
|
|
+ that.js.loaded = false
|
|
|
+
|
|
|
settlement(that.queryInfo).then(res => {
|
|
|
console.log(res);
|
|
|
- that.total = res.data.count
|
|
|
- that.not_out_time = res.data.not_out_time
|
|
|
- that.prohibit_refund = res.data.prohibit_refund
|
|
|
- that.list = res.data.data
|
|
|
- if(that.total == 0) {
|
|
|
- that.$msg.error('订单结算时间还未到')
|
|
|
- }
|
|
|
+ setTimeout((item) => {
|
|
|
+ that.js = res.data
|
|
|
+ that.js.loaded = true
|
|
|
+ },1000)
|
|
|
+
|
|
|
+ // that.total = res.data.count
|
|
|
+ // that.not_out_time = res.data.not_out_time
|
|
|
+ // that.prohibit_refund = res.data.prohibit_refund
|
|
|
+ // that.list = res.data.data
|
|
|
+ // if(that.total == 0) {
|
|
|
+ // that.$msg.error('订单结算时间还未到')
|
|
|
+ // }
|
|
|
})
|
|
|
}
|
|
|
}
|