Commit 31e59df9 by 前端

Merge branch 'develop' into 'master'

修改cdn地址

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