Commit 31e59df9 by 前端

Merge branch 'develop' into 'master'

修改cdn地址

See merge request !3
2 parents c6ed61bb 4c7dc8d8
<template>
<div>
<div style="text-align:right">
<el-button type="primary" plain size="small" icon="el-icon-download" :loading="exportLoading" @click="exportInfo()">导出列表</el-button>
</div>
<div style="text-align:right">
<el-button type="primary"
plain
size="small"
icon="el-icon-download"
:loading="exportLoading"
@click="exportInfo()">导出列表</el-button>
</div>
<!-- 表格区域 开始 -->
<div class="table_box">
<el-table v-loading="tableLoading" :data="tableData" stripe style="width: 100%" size="small" border>
<el-table-column type="index" label="序号" width="60" />
<el-table-column prop="iccid" label="ICCID" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="sn" label="SN" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="imei" label="IMEI" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="materialCode" label="物料编码" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="materialName" label="物料名称" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="dispatchOrderCode" label="订单号" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'" />
<el-table-column prop="updatedDate" label="发货时间" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'Y'">
<template slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD HH:mm:ss') }}</template>
<el-table v-loading="tableLoading"
:data="tableData"
stripe
style="width: 100%"
size="small"
border>
<el-table-column type="index"
label="序号"
width="60" />
<el-table-column prop="iccid"
label="ICCID"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'" />
<el-table-column prop="sn"
label="SN"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'" />
<el-table-column prop="imei"
label="IMEI"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'" />
<el-table-column prop="materialCode"
label="实发物料编码"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'" />
<el-table-column prop="materialName"
label="实发物料名称"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'" />
<el-table-column prop="dispatchOrderCode"
label="订单号"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'" />
<el-table-column prop="updatedDate"
label="发货时间"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'Y'">
<template
slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD HH:mm:ss') }}</template>
</el-table-column>
<el-table-column prop="dispatchOrderCode" label="发货单号" show-overflow-tooltip :width="tdWidth" v-if="ndScan == 'N' || ndScan == 'D'" />
<el-table-column prop="updatedDate" label="发货时间" show-overflow-tooltip v-if="ndScan == 'N' || ndScan == 'D'">
<template slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD') }}</template>
<el-table-column prop="dispatchOrderCode"
label="发货单号"
show-overflow-tooltip
:width="tdWidth"
v-if="ndScan == 'N' || ndScan == 'D'" />
<el-table-column prop="updatedDate"
label="发货时间"
show-overflow-tooltip
v-if="ndScan == 'N' || ndScan == 'D'">
<template
slot-scope="scope">{{ DATEFORMATE(scope.row.updatedDate, 'YYYY-MM-DD') }}</template>
</el-table-column>
<el-table-column prop="logisticsCompany" label="物流公司" show-overflow-tooltip :width="tdWidth" />
<el-table-column prop="logisticsNum" label="物流单号" show-overflow-tooltip :width="tdWidth" />
<el-table-column prop="sendQulities" label="发货数量" width="80" v-if="ndScan == 'N' || ndScan == 'D'" />
<el-table-column prop="logisticsCompany"
label="物流公司"
show-overflow-tooltip
:width="tdWidth" />
<el-table-column prop="logisticsNum"
label="物流单号"
show-overflow-tooltip
:width="tdWidth" />
<el-table-column prop="sendQulities"
label="发货数量"
width="80"
v-if="ndScan == 'N' || ndScan == 'D'" />
<!-- <el-table-column prop="sendQulities" label="发货物流">
<template slot-scope="{row}">
<div v-html="row."></div>
......@@ -30,15 +88,13 @@
</el-table-column> -->
</el-table>
<div class="pagination_list">
<el-pagination
background
layout="sizes, total,prev, pager, next, jumper"
:total="pageTotal"
:page-size="pageSize"
:page-sizes="pageSizes"
@current-change="getDetail"
@size-change="changePageSize"
/>
<el-pagination background
layout="sizes, total,prev, pager, next, jumper"
:total="pageTotal"
:page-size="pageSize"
:page-sizes="pageSizes"
@current-change="getDetail"
@size-change="changePageSize" />
</div>
</div>
<!-- 表格区域 end -->
......@@ -49,7 +105,7 @@
import {
PAGEDISPATCHORDERDETAIL
} from '@/http/interface'
import {EXPORTDISPATCHORDERDETAIL} from '@/http/order'
import { EXPORTDISPATCHORDERDETAIL } from '@/http/order'
import {
exportExcel,
} from '@/common/common'
......@@ -82,7 +138,7 @@ export default {
},
mounted: function() {
mounted: function () {
this.init()
},
methods: {
......@@ -90,7 +146,7 @@ export default {
/**
* 初始化函数
*/
init: function() {
init: function () {
if (this.orderCode) {
this.getDetail()
}
......@@ -99,7 +155,7 @@ export default {
/**
* 查询列表
*/
getDetail: function(current) {
getDetail: function (current) {
const _this = this
const oParams = _this.getParams()
console.log(current)
......@@ -125,7 +181,7 @@ export default {
/**
* 获取查询参数
*/
getParams: function() {
getParams: function () {
const oParams = {}
oParams.pageSize = this.pageSize
oParams.pageStart = 0
......@@ -135,7 +191,7 @@ export default {
/**
* 每页展示
*/
changePageSize: function(e) {
changePageSize: function (e) {
this.pageSize = e
this.getDetail()
},
......@@ -143,7 +199,7 @@ export default {
/**
* 导出列表
*/
exportInfo: function(){
exportInfo: function () {
const _this = this
const _data = {}
_data.dispatchOrderCode = this.orderCode
......@@ -167,7 +223,7 @@ export default {
</script>
<style lang="scss">
.table_box {
margin: 20px 0;
}
.table_box {
margin: 20px 0;
}
</style>
......@@ -14,7 +14,7 @@ const port = process.env.port || process.env.npm_config_port || 9528 // dev port
// 基础路径 注意发布之前要先修改这里
let publicPath = '/supply-web/'
// const CDN_DOMAIN = 'https://cdn.bootcss.com'
const CDN_DOMAIN = 'https://cdn.bootcdn.net'
const CDN_DOMAIN = 'https://img02.glsx.com.cn'
const cdn = {
css: [
// `${CDN_DOMAIN}/element-ui/2.11.1/theme-chalk/index.css`,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!