Commit 78dc5743 by 杨明

代码合并

1 parent 7ca07afc
......@@ -1860,75 +1860,6 @@
"webpack-chain": "^6.4.0",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "^4.2.2"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader-v16@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
}
}
},
"@vue/cli-shared-utils": {
......@@ -12708,6 +12639,75 @@
}
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": {
"version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-07-27 16:11:32
* @LastEditTime: 2023-07-27 17:12:50
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -16,11 +16,9 @@ export const fetchConfig = function(common) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
//return window.fetch('https://', {}).then(res => res.json())
return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config')
// return new Http().get('https://oss-config.glsx.com.cn/mock/635fc7a254298ae78614407a/battles/config')
let params = { moduleName: 'activityCenter', mockUrl: 'https://oss-config.dev.glsx.com.cn/mock/6345096902322627d6b83e83/battles/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
return common.utils.getConfig(params)
}
export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
......
......@@ -323,6 +323,8 @@ import { utils } from 'glsx-common'
import { dateFormat } from '../../utils/index'
import selectStaff from './components/selectStaff.vue'
import { businessType, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
import NP from 'number-precision'
const userInfo = [
{
label: '员工名称:',
......@@ -358,8 +360,6 @@ export default {
cancelForm: {
reasonsForFailure: ''
},
importResult: {},
tasks: [],
cancelRules: {
reasonsForFailure: [
{
......@@ -402,7 +402,12 @@ export default {
activityNames: [],
goodsName: '',
requestSource: '0',
afterSaleType: ''
afterSaleType: '',
//2023.7.13需求👇
ledgerStatus: '',
tailOrderStatus: '',
transactionReferenceId: ''
//2023.7.13需求--结束
},
tableSearchForm: {},
statisticsInfo: {
......@@ -719,11 +724,11 @@ export default {
]
},
importVisible: false,
importResultVisible: false,
file: {
fileName: '',
fileType: ''
},
tasks: [],
showTable: false, //显示隐藏表格
hideStatus: true
}
......@@ -753,6 +758,7 @@ export default {
}
this.setStorage()
},
methods: {
startTask() {
// 启动所有任务
......@@ -935,7 +941,7 @@ export default {
{
label: '订单来源',
name: 'orderSourceType',
width: 100,
width: 120,
formatter: cellValue => {
return { 0: '小程序订单', 1: '系统导入' }[cellValue.orderSourceType] || '-'
}
......@@ -968,6 +974,56 @@ export default {
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
},
{
label: '尾款状态',
prop: 'tailOrderStatus',
width: '180',
formatter: cellValue => {
return (
{
0: '未支付',
1: '已支付',
2: '已退款'
}[cellValue.tailOrderStatus] || '-'
)
}
},
{
label: '交易参考号',
prop: 'transactionReferenceId',
width: '180',
formatter: cellValue => {
return cellValue.transactionReferenceId || '-'
}
},
{
label: '分账状态',
prop: 'ledgerStatus',
width: '180',
formatter: cellValue => {
return (
{
0: '未分账',
1: '待确认',
2: '待分账',
3: '已分账'
}[cellValue.ledgerStatus] || '-'
)
}
},
{
label: '尾款金额',
prop: 'finalPaymentAmount',
width: '180',
formatter: cellValue => {
let val = '-'
if (cellValue.finalPaymentAmount != null) {
val = NP.divide(cellValue.finalPaymentAmount / 100)
if (!String(val).includes('.')) val += '.00'
}
return val
}
}
],
searchFormData = [
......@@ -1220,6 +1276,67 @@ export default {
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '尾款状态',
name: 'tailOrderStatus',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '0',
confName: '未支付'
},
{
confId: '1',
confName: '已支付'
},
{
confId: '2',
confName: '已退款'
}
],
optionId: 'confId',
optionLabel: 'confName'
},
{
label: '交易参考号',
name: 'transactionReferenceId',
labelWidth: 56,
type: 'input',
maxlength: 25
},
{
label: '分账状态',
name: 'ledgerStatus',
type: 'select',
optionList: [
{
confId: null,
confName: '全部'
},
{
confId: '0',
confName: '未分账'
},
{
confId: '1',
confName: '待确认'
},
{
confId: '2',
confName: '待分账'
},
{
confId: '3',
confName: '已分账'
}
],
optionId: 'confId',
optionLabel: 'confName'
}
],
hideStatus = false
......@@ -1725,6 +1842,7 @@ export default {
})
}
},
closeImport(task) {
task.importResultVisible = false
this.setStorage()
......@@ -1756,7 +1874,6 @@ export default {
} = this
if (fileType) {
let id = await this.$apis.orderManage.importOrder({ file: fileType })
this.visibleImportDialog()
for (let task of this.tasks) {
clearInterval(task.timer)
......@@ -1772,16 +1889,6 @@ export default {
this.startTask()
this.setStorage()
}
// if (res) {
// this.$notify({
// title: '提示',
// message: '订单导入成功',
// type: 'success'
// })
// this.visibleImportDialog()
// }
// else this.$message.error(fileName ? '文件上传中,请稍后' : '请上传文件后,在点击确定')
},
downloadError(url) {
var alink = document.createElement('a')
......@@ -1875,7 +1982,6 @@ export default {
font-weight: 500;
}
}
.switchStyle .el-switch__label {
position: absolute;
display: none;
......@@ -1943,9 +2049,12 @@ export default {
}
.import-dialog {
.el-dialog__body {
height: 70px !important;
// height: 70px !important;
min-height: 70px !important;
}
.el-form-item__content {
width: auto !important;
}
.import-button {
position: relative;
margin: 6px;
......
......@@ -4,11 +4,11 @@
<div class="edit-box">
<div class="container m-b-20">
<p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true">
<el-form label-width="100px" :inline="true" class="order-detail-form">
<el-row v-for="(item, index) in detailFormDataRow" :key="index">
<el-form-item v-for="(subItem, subIndex) in item.rowList" :key="subIndex" :label="subItem.label" class="row-item">
<div v-if="subItem.type == 'img' && detailForm[subItem.name]" class="order-img">
<img :src="itm" alt="" v-for="(itm, idx) in formarArr(detailForm[subItem.name])" :key="idx" />
<el-image class="img-60 comment-img" v-for="(itm, idx) in formarArr(detailForm[subItem.name])" :key="idx" :src="itm" :preview-src-list="[itm]"></el-image>
</div>
<span v-else class="detail-txt ellipsis-1" :title="detailForm[subItem.name]">{{ detailForm[subItem.name] ? detailForm[subItem.name] + (subItem.suffix || '') : subItem.format ? subItem.format(detailForm) : '-' }}</span>
</el-form-item>
......@@ -332,12 +332,16 @@ export default {
.marketing.order-detail .el-form--inline .el-form-item {
margin: 0;
}
.order-detail-form {
padding-bottom: 40px;
}
.order-img {
display: flex;
margin-top: 12px;
}
.order-img img {
width: 140px;
width: 100px;
height: 100px;
margin-right: 6px;
}
.marketing.order-detail .el-form--inline .el-form-item__content {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!