Commit 3de2f569 by 前端

Merge branch 'dev_v4.8.0' into 'develop'

Dev v4.8.0

See merge request !27
2 parents 38219f37 400ae7b4
...@@ -1782,6 +1782,14 @@ ...@@ -1782,6 +1782,14 @@
"eslint-plugin-node": "^8.0.0", "eslint-plugin-node": "^8.0.0",
"eslint-plugin-promise": "^4.0.1", "eslint-plugin-promise": "^4.0.1",
"eslint-plugin-standard": "^4.0.0" "eslint-plugin-standard": "^4.0.0"
},
"dependencies": {
"eslint-plugin-standard": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.1.0.tgz",
"integrity": "sha512-ZL7+QRixjTR6/528YNGyDotyffm5OQst/sGxKDwGb9Uqs4In5Egi4+jbobhqJoyoCM6/7v/1A5fhQ7ScMtDjaQ==",
"dev": true
}
} }
}, },
"@vue/preload-webpack-plugin": { "@vue/preload-webpack-plugin": {
...@@ -6089,10 +6097,9 @@ ...@@ -6089,10 +6097,9 @@
"dev": true "dev": true
}, },
"eslint-plugin-standard": { "eslint-plugin-standard": {
"version": "4.0.0", "version": "5.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.0.0.tgz", "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-5.0.0.tgz",
"integrity": "sha512-OwxJkR6TQiYMmt1EsNRMe5qG3GsbjlcOhbGUBY4LtavF9DsLaTcoR+j2Tdjqi23oUwKNUqX7qcn5fPStafMdlA==", "integrity": "sha512-eSIXPc9wBM4BrniMzJRBm2uoVuXz2EPa+NXPk2+itrVt+r5SbKFERx/IgrK/HmfjddyKVz2f+j+7gBRvu19xLg=="
"dev": true
}, },
"eslint-plugin-vue": { "eslint-plugin-vue": {
"version": "5.2.3", "version": "5.2.3",
...@@ -10416,11 +10423,6 @@ ...@@ -10416,11 +10423,6 @@
} }
} }
}, },
"moment": {
"version": "2.29.3",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.29.3.tgz",
"integrity": "sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw=="
},
"move-concurrently": { "move-concurrently": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz",
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
"build:nomock": "vue-cli-service build --mode nomock", "build:nomock": "vue-cli-service build --mode nomock",
"build:travis": "vue-cli-service build --mode travis", "build:travis": "vue-cli-service build --mode travis",
"lint": "vue-cli-service lint --fix", "lint": "vue-cli-service lint --fix",
"test:unit": "vue-cli-service test:unit" "test:unit": "vue-cli-service test:unit",
"report": "vue-cli-service build --report"
}, },
"dependencies": { "dependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12", "@babel/plugin-proposal-nullish-coalescing-operator": "^7.17.12",
...@@ -64,12 +65,12 @@ ...@@ -64,12 +65,12 @@
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0", "eslint-plugin-vue": "^5.0.0",
"hard-source-webpack-plugin": "^0.13.1", "hard-source-webpack-plugin": "^0.13.1",
"html-webpack-plugin": "4",
"sass": "^1.18.0", "sass": "^1.18.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"script-loader": "^0.7.2", "script-loader": "^0.7.2",
"svg-sprite-loader": "^4.1.3", "svg-sprite-loader": "^4.1.3",
"vue-template-compiler": "^2.5.21", "vue-template-compiler": "^2.5.21",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-theme-color-replacer": "^1.2.15" "webpack-theme-color-replacer": "^1.2.15"
} }
} }

307 KB | W: | H:

96.5 KB | W: | H:

public/account/hetong.png
public/account/hetong.png
public/account/hetong.png
public/account/hetong.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -45,8 +45,8 @@ const request = ( ...@@ -45,8 +45,8 @@ const request = (
reqData = reqData = Object.assign(reqData, options, {}) reqData = reqData = Object.assign(reqData, options, {})
// console.log(method === RequestMethods.POST) // console.log(method === RequestMethods.POST)
// console.log(url) // console.log(url)
console.log(options) // console.log(options)
console.log(reqData) // console.log(reqData)
return axios({ return axios({
url, url,
method, method,
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
require('script-loader!file-saver') require('script-loader!file-saver')
require('./Blob') require('./Blob')
require('script-loader!xlsx/dist/xlsx.core.min') require('script-loader!xlsx/dist/xlsx.core.min')
// import * as XLSX from 'xlsx' // 数据导出导入所需要的依赖
function generateArray(table) { function generateArray(table) {
var out = [] var out = []
var rows = table.querySelectorAll('tr') var rows = table.querySelectorAll('tr')
......
...@@ -48,7 +48,8 @@ if (!isProd) { ...@@ -48,7 +48,8 @@ if (!isProd) {
process.env.NODE_ENV === 'production' && process.env.NODE_ENV === 'production' &&
Sentry.init({ Sentry.init({
Vue, Vue,
dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4', dsn: 'http://c130dfd99792456ca835ca54680a8bbf@sentry.glsx.com.cn/14',
// dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
integrations: [ integrations: [
new BrowserTracing({ new BrowserTracing({
routingInstrumentation: Sentry.vueRouterInstrumentation(router), routingInstrumentation: Sentry.vueRouterInstrumentation(router),
...@@ -61,19 +62,24 @@ process.env.NODE_ENV === 'production' && ...@@ -61,19 +62,24 @@ process.env.NODE_ENV === 'production' &&
tracesSampleRate: 1.0, tracesSampleRate: 1.0,
logErrors: true logErrors: true
}) })
// console.log(test)
// Vue.use(D2Crud) // Vue.use(D2Crud)
var baseConfig = '' var baseConfig = ''
axios({ axios({
// baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config-test', // baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config-test',
baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config', baseURL: process.env.VUE_APP_REPO + '/dj-car-life-system-config',
// baseURL: // baseURL:
// 'http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=dj-car-life-system-config', // 'http://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-life-system-config',
// 'http://config-center-front.glsx.com.cn/glsxAdmin/config?moduleUrl=dj-car-life-system-config',
method: 'get' method: 'get'
}).then(({ data }) => { }).then(res => {
// console.log(data) const { data, status, code } = res
// let {data} = res // const { status, code } = res.data
// console.log(res)
if (code == '200' || status == '200') {
baseConfig = data baseConfig = data
}
console.log(baseConfig)
// baseConfig = data.data // baseConfig = data.data
// 先本地切换到测试环境接口 // 先本地切换到测试环境接口
// data.axios.baseURL = 'http://dj.test.glsx.com.cn/rop-dj-smartcarlife/router' // data.axios.baseURL = 'http://dj.test.glsx.com.cn/rop-dj-smartcarlife/router'
......
...@@ -735,7 +735,8 @@ export default { ...@@ -735,7 +735,8 @@ export default {
}, },
accountVisible: false, accountVisible: false,
warehouseVisible: false, warehouseVisible: false,
orderId: '2203150922321960', orderId: '',
// orderId: '2203150922321960',
outboundStatusShow: { outboundStatusShow: {
'1': '待出库', '1': '待出库',
'2': '待出库', '2': '待出库',
......
...@@ -95,8 +95,11 @@ export default { ...@@ -95,8 +95,11 @@ export default {
label: '主订单编号', label: '主订单编号',
name: 'inputtedOrderCode' name: 'inputtedOrderCode'
}, { }, {
label: '支付流水号', label: '交易参考号',
name: 'tradeNo' name: 'tradeNo'
}, {
label: '支付订单号',
name: 'outTradeNo'
}], }],
handleSelectChange: (value) => { handleSelectChange: (value) => {
this.searchSelectObj.orderOrTrade.value = '' this.searchSelectObj.orderOrTrade.value = ''
...@@ -147,10 +150,14 @@ export default { ...@@ -147,10 +150,14 @@ export default {
listName: 'list', listName: 'list',
tableOption: true, tableOption: true,
tableColumns: [{ tableColumns: [{
label: '支付流水号', label: '交易参考号',
prop: 'tradeNo', prop: 'tradeNo',
width: '160px' width: '160px'
}, { }, {
label: '支付订单号',
prop: 'outTradeNo',
width: '160px'
}, {
label: '支付金额', label: '支付金额',
prop: 'totalFee', prop: 'totalFee',
formatter: (cellValue) => { formatter: (cellValue) => {
...@@ -198,7 +205,8 @@ export default { ...@@ -198,7 +205,8 @@ export default {
}, },
{ {
label: '主订单编号', label: '主订单编号',
prop: 'inputtedOrderCode' prop: 'inputtedOrderCode',
width: '160px'
} }
] ]
}, },
......
...@@ -100,6 +100,7 @@ export default { ...@@ -100,6 +100,7 @@ export default {
const oParams = {} const oParams = {}
oParams.channelType = 1 oParams.channelType = 1
oParams.appId = 'wx06d1198e751435d1' oParams.appId = 'wx06d1198e751435d1'
// oParams.appId = 'wx902f0b9c4b2c669d'
oParams.qrcodeType = 'QR_WXA_UNLIMIT' oParams.qrcodeType = 'QR_WXA_UNLIMIT'
oParams.path = 'packagesPayment/pages/QRPayment/QRPayment' oParams.path = 'packagesPayment/pages/QRPayment/QRPayment'
// oParams.path = 'packagesPayment/pages/payment/index' // oParams.path = 'packagesPayment/pages/payment/index'
......
...@@ -8,19 +8,15 @@ const SentryWebpackPlugin = require('@sentry/webpack-plugin') ...@@ -8,19 +8,15 @@ const SentryWebpackPlugin = require('@sentry/webpack-plugin')
// const AsyncRomveDir = require('./plugins/removeDir') // const AsyncRomveDir = require('./plugins/removeDir')
const { resolve: assets } = require('path') const { resolve: assets } = require('path')
const os = require('os') const os = require('os')
/** /**
* 获取当前机器的ip地址 * 获取当前机器的ip地址
*/ */
function getIpAddress() { function getIpAddress() {
var ifaces = os.networkInterfaces() var ifaces = os.networkInterfaces()
for (var dev in ifaces) { for (var dev in ifaces) {
const iface = ifaces[dev] const iface = ifaces[dev]
for (let i = 0; i < iface.length; i++) { for (let i = 0; i < iface.length; i++) {
const { family, address, internal } = iface[i] const { family, address, internal } = iface[i]
if (family === 'IPv4' && address !== '127.0.0.1' && !internal) { if (family === 'IPv4' && address !== '127.0.0.1' && !internal) {
return address return address
} }
...@@ -29,13 +25,10 @@ function getIpAddress() { ...@@ -29,13 +25,10 @@ function getIpAddress() {
} }
// 拼接路径 // 拼接路径
const resolve = dir => require('path').join(__dirname, dir) const resolve = dir => require('path').join(__dirname, dir)
// 增加环境变量 // 增加环境变量
process.env.VUE_APP_VERSION = require('./package.json').version process.env.VUE_APP_VERSION = require('./package.json').version
process.env.VUE_APP_BUILD_TIME = require('dayjs')().format('YYYY-M-D HH:mm:ss') process.env.VUE_APP_BUILD_TIME = require('dayjs')().format('YYYY-M-D HH:mm:ss')
const isDev = process.env.NODE_ENV !== 'development' const isDev = process.env.NODE_ENV !== 'development'
// 基础路径 注意发布之前要先修改这里 // 基础路径 注意发布之前要先修改这里
const publicPath = '/dj-carlife-web/' const publicPath = '/dj-carlife-web/'
// const publicPath = '/' // const publicPath = '/'
...@@ -62,7 +55,6 @@ const cdn = { ...@@ -62,7 +55,6 @@ const cdn = {
// `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`, // `${CDN_DOMAIN}/vue-i18n/8.14.0/vue-i18n.esm.js`,
] ]
} }
module.exports = { module.exports = {
publicPath, // 根据你的实际情况更改这里 publicPath, // 根据你的实际情况更改这里
// outputDir: 'copyDirTarget', // outputDir: 'copyDirTarget',
...@@ -99,7 +91,6 @@ module.exports = { ...@@ -99,7 +91,6 @@ module.exports = {
// 'core-js': 'core-js' // 'core-js': 'core-js'
} }
} }
// 非开发环境 // 非开发环境
if (isDev) { if (isDev) {
config.optimization.minimizer[0].options.terserOptions.compress.warnings = false config.optimization.minimizer[0].options.terserOptions.compress.warnings = false
...@@ -110,7 +101,6 @@ module.exports = { ...@@ -110,7 +101,6 @@ module.exports = {
] ]
} }
// console.log(config) // console.log(config)
// const Plugins = [ // const Plugins = [
// new MiniCssExtractPlugin({ // new MiniCssExtractPlugin({
// // Options similar to the same options in webpackOptions.output // // Options similar to the same options in webpackOptions.output
...@@ -119,7 +109,6 @@ module.exports = { ...@@ -119,7 +109,6 @@ module.exports = {
// chunkFilename: devMode ? 'css/[id].css' : 'css/[id].[hash].css', // chunkFilename: devMode ? 'css/[id].css' : 'css/[id].[hash].css',
// })] // })]
// config.plugins = [...config.plugins, ...Plugins] // config.plugins = [...config.plugins, ...Plugins]
const plugins = [] const plugins = []
plugins.push( plugins.push(
new HardPlugin({ new HardPlugin({
...@@ -132,24 +121,22 @@ module.exports = { ...@@ -132,24 +121,22 @@ module.exports = {
// new AsyncRomveDir() // new AsyncRomveDir()
) )
config.plugins = [...config.plugins, ...plugins] config.plugins = [...config.plugins, ...plugins]
// sentry 配置 // sentry 配置
process.env.NODE_ENV === 'production' && // process.env.NODE_ENV === 'production' &&
Object.assign(config, { // Object.assign(config, {
plugins: [ // plugins: [
...config.plugins, // ...config.plugins,
new SentryWebpackPlugin({ // new SentryWebpackPlugin({
// webpack specific configuration // // webpack specific configuration
release: '0.0.1', // release: '0.0.1',
include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件 // include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加 // ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
configFile: '.sentryclirc', // configFile: '.sentryclirc',
urlPrefix: '~/dj-carlife-web/' // urlPrefix: '~/dj-carlife-web/'
}) // })
] // ]
}) // })
}, },
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js // 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: config => { chainWebpack: config => {
/** /**
...@@ -217,7 +204,6 @@ module.exports = { ...@@ -217,7 +204,6 @@ module.exports = {
config.resolve.alias config.resolve.alias
.set('@', resolve('src')) .set('@', resolve('src'))
.set('@api', resolve('src/api')) .set('@api', resolve('src/api'))
if (isDev) { if (isDev) {
config.plugin('html').tap(args => { config.plugin('html').tap(args => {
// args[0].minify.removeComments = false; // args[0].minify.removeComments = false;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!