Browse Source

Merge branch 'dev' into pre-production

pre-production
pref_mail@163.com 3 months ago
parent
commit
86e17ca94c
  1. 9
      src/axios.js
  2. 4
      src/option/finance/ReconciliationDepositSlip.js
  3. 58
      src/option/finance/WaybillAudit.js
  4. 13
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  5. 2
      src/views/aftersales/aftersalesWorkOrderend.vue
  6. 4
      src/views/distribution/inventory/delivery/distributionStockArticle.vue
  7. 2
      src/views/distribution/inventory/distributionStockArticleDetails.vue
  8. 3
      src/views/finance/ReconciliationDepositSlip.vue
  9. 63
      src/views/finance/WaybillAudit.vue

9
src/axios.js

@ -137,8 +137,17 @@ axios.interceptors.response.use(
// 如果状态码在白名单中,则直接返回Promise的reject状态 // 如果状态码在白名单中,则直接返回Promise的reject状态
if (statusWhiteList.includes(status)) return Promise.reject(res); if (statusWhiteList.includes(status)) return Promise.reject(res);
console.log(router.currentRoute._value.path, 'router');
// 如果状态码为401,则表示用户未认证,需跳转到登录页 // 如果状态码为401,则表示用户未认证,需跳转到登录页
if (status === 401 && !isAlertShowing) { if (status === 401 && !isAlertShowing) {
// 如果在登录页面,则表示账号或密码错误
if (router.currentRoute._value.path === '/login') {
ElMessage({
message: '账号或密码错误',
type: 'warning',
});
return;
}
isAlertShowing = true; // 设置为 true 表示弹窗正在显示 isAlertShowing = true; // 设置为 true 表示弹窗正在显示
ElMessageBox.alert('长时间未操作,登录已过期,或账号已在别处登录,请重新登录', '提示', { ElMessageBox.alert('长时间未操作,登录已过期,或账号已在别处登录,请重新登录', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',

4
src/option/finance/ReconciliationDepositSlip.js

@ -280,7 +280,7 @@ export const columnList = [
}, },
{ {
prop: 'totalFee', prop: 'totalFee',
label: '实际费用', label: '实际费用',
type: 1, type: 1,
values: '', values: '',
width: '130', width: '130',
@ -1053,7 +1053,7 @@ export const columnListB = [
}, },
{ {
prop: 'totalFee', prop: 'totalFee',
label: '实际费用', label: '实际费用',
type: 1, type: 1,
values: '', values: '',
width: '130', width: '130',

58
src/option/finance/WaybillAudit.js

@ -183,6 +183,7 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'totalCount', prop: 'totalCount',
@ -194,6 +195,7 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'totalWeight', prop: 'totalWeight',
@ -205,6 +207,7 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'totalVolume', prop: 'totalVolume',
@ -216,6 +219,7 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'totalFee', prop: 'totalFee',
@ -227,6 +231,7 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'systemTotalFee', prop: 'systemTotalFee',
@ -238,6 +243,7 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'goodsTypePrice', prop: 'goodsTypePrice',
@ -282,6 +288,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'freightFee', prop: 'freightFee',
@ -293,6 +301,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
// { // {
// prop: 'templateType', // prop: 'templateType',
@ -326,6 +336,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'warehouseFee', prop: 'warehouseFee',
@ -337,6 +349,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'warehouseManagementFee', prop: 'warehouseManagementFee',
@ -348,6 +362,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'warehouseSortingFee', prop: 'warehouseSortingFee',
@ -359,6 +375,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'warehouseOprationFee', prop: 'warehouseOprationFee',
@ -370,6 +388,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryServiceFee', prop: 'deliveryServiceFee',
@ -381,6 +401,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryFee', prop: 'deliveryFee',
@ -392,6 +414,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryHandlingFee', prop: 'deliveryHandlingFee',
@ -403,6 +427,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliverySortingFee', prop: 'deliverySortingFee',
@ -414,6 +440,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryUpfloorFee', prop: 'deliveryUpfloorFee',
@ -425,6 +453,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryMoveFee', prop: 'deliveryMoveFee',
@ -436,6 +466,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
// { // {
// prop: 'deliveryLine', // prop: 'deliveryLine',
@ -458,6 +490,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryLineFee', prop: 'deliveryLineFee',
@ -469,6 +503,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'installFee', prop: 'installFee',
@ -480,6 +516,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'insuranceFee', prop: 'insuranceFee',
@ -491,6 +529,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'claimingValue', prop: 'claimingValue',
@ -502,6 +542,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'otherFee', prop: 'otherFee',
@ -513,6 +555,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'rebate', prop: 'rebate',
@ -524,6 +568,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'thirdOperationFee', prop: 'thirdOperationFee',
@ -535,6 +581,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'shipperName', prop: 'shipperName',
@ -739,6 +787,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'dpay', prop: 'dpay',
@ -750,6 +800,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'hpay', prop: 'hpay',
@ -761,6 +813,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'ypay', prop: 'ypay',
@ -772,6 +826,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
@ -784,6 +840,8 @@ export const columnList = [
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false,
isshowSummary: true,
}, },
{ {
prop: 'deliveryTime', prop: 'deliveryTime',

13
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -657,7 +657,7 @@
<div class="header"> <div class="header">
<div class="e_ico"> <div class="e_ico">
<el-icon> <User /> </el-icon>: <el-icon> <User /> </el-icon>:
<h4>{{ item.username }}{{ item.name }}</h4> <h4 class="e_h4">{{ item.username }} {{ item.name }}</h4>
</div> </div>
<div class="e_ico e_time"> <div class="e_ico e_time">
<h4>{{ item.time }}</h4> <h4>{{ item.time }}</h4>
@ -1187,12 +1187,12 @@ const Completionpermissions = computed(() => {
return false; return false;
}); });
const processedText=(inputtxt)=>{ const processedText = inputtxt => {
if (inputtxt.endsWith('\n') && !inputtxt.endsWith('\n ')) { if (inputtxt.endsWith('\n') && !inputtxt.endsWith('\n ')) {
return inputtxt.slice(0, -1); return inputtxt.slice(0, -1);
} }
return inputtxt; return inputtxt;
} };
const onLoad = async () => { const onLoad = async () => {
pageState.value = true; // pageState.value = true; //
if (await localStorage.getItem('my_data')) { if (await localStorage.getItem('my_data')) {
@ -1278,7 +1278,7 @@ const onLoad = async () => {
// res.data.data.personResponsibleVOS.forEach(item => { // res.data.data.personResponsibleVOS.forEach(item => {
// sum = Number(item.responsibilityRatio) + sum; // sum = Number(item.responsibilityRatio) + sum;
// }); // });
FangAddList.value = res.data.data.personResponsibleVOS.map(res => { FangAddList.value = res.data.data.personResponsibleVOS.map(res => {
return { return {
businessName: res.businessId, //ID businessName: res.businessId, //ID
personResponsibleName: res.personResponsibleName, // personResponsibleName: res.personResponsibleName, //
@ -2501,10 +2501,11 @@ const ResultDetermination = () => {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
height: 32px; height: auto;
.el-tag { .el-tag {
width: 70px; width: 70px;
} }
} }
} }
@ -2952,7 +2953,7 @@ const ResultDetermination = () => {
width: 100%; width: 100%;
} }
} }
:deep(.el-upload-list__item-thumbnail){ :deep(.el-upload-list__item-thumbnail) {
object-fit: inherit; object-fit: inherit;
} }
</style> </style>

2
src/views/aftersales/aftersalesWorkOrderend.vue

@ -3381,7 +3381,7 @@ const AppealEstablished = () => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: 23px; height: auto;
:deep(.el-tag) { :deep(.el-tag) {
width: 70px; width: 70px;
} }

4
src/views/distribution/inventory/delivery/distributionStockArticle.vue

@ -186,12 +186,12 @@
<el-text @click="handleView(slotProps.scope)"> 查看 </el-text> <el-text @click="handleView(slotProps.scope)"> 查看 </el-text>
<el-text @click="handleCallDeliveryOwn(slotProps.scope)"> 修改客户信息 </el-text> <el-text @click="handleCallDeliveryOwn(slotProps.scope)"> 修改客户信息 </el-text>
<el-text @click="handleGoLogs(slotProps.scope)"> 日志 </el-text> <el-text @click="handleGoLogs(slotProps.scope)"> 日志 </el-text>
<el-text <!-- <el-text
@click="Splittheorder(slotProps.scope.row)" @click="Splittheorder(slotProps.scope.row)"
v-if="slotProps.scope.row.isZero == 0 && permissionList.distributionStockList_unpack" v-if="slotProps.scope.row.isZero == 0 && permissionList.distributionStockList_unpack"
> >
拆单 拆单
</el-text> </el-text> -->
<el-text <el-text
@click="zeroSplittheorder(slotProps.scope.row)" @click="zeroSplittheorder(slotProps.scope.row)"
v-if="slotProps.scope.row.isZero == 1" v-if="slotProps.scope.row.isZero == 1"

2
src/views/distribution/inventory/distributionStockArticleDetails.vue

@ -123,7 +123,7 @@
<div> <div>
<el-button icon="el-icon-refresh" @click="packsearchChange" circle></el-button> <el-button icon="el-icon-refresh" @click="packsearchChange" circle></el-button>
<el-button type="primary" @click="allhandleQRCode">批量查看二维码</el-button> <el-button type="primary" @click="allhandleQRCode">批量查看二维码</el-button>
<el-button type="primary" @click="handleMaterialList()">补充物料信息</el-button> <el-button type="primary" @click="handleMaterialList()">批量补充物料信息</el-button>
</div> </div>
</div> </div>
<!-- 列表模块 --> <!-- 列表模块 -->

3
src/views/finance/ReconciliationDepositSlip.vue

@ -15,7 +15,7 @@
<!-- 查询按钮 --> <!-- 查询按钮 -->
<el-form-item label="收货单位"> <el-form-item label="收货单位">
<el-input v-model="item.query.consignee" clearable placeholder="请输入客户名称" /> <el-input v-model="item.query.consignee" clearable placeholder="请输入收货单位" />
</el-form-item> </el-form-item>
<el-form-item label="是否计算价格"> <el-form-item label="是否计算价格">
<el-select <el-select
@ -233,7 +233,6 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue'; import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue';
import functions from '@/utils/functions.js';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { mapGetters, useStore } from 'vuex'; import { mapGetters, useStore } from 'vuex';
/** 获取字典 */ /** 获取字典 */

63
src/views/finance/WaybillAudit.vue

@ -28,7 +28,25 @@
/> />
</el-select> </el-select>
</template> </template>
<template v-else-if="item.type === 'selectall'">
<el-select
v-model="query[item.prop]"
multiple
filterable
collapse-tags
popper-class="custom-header"
:max-collapse-tags="2"
:placeholder="`请选择${item.label}`"
style="width: 240px"
>
<el-option
v-for="value in item.checkarr"
:key="value.value"
:label="value.label"
:value="value.value"
/>
</el-select>
</template>
<template v-else-if="item.type === 'time'"> <template v-else-if="item.type === 'time'">
<el-date-picker <el-date-picker
v-model="query[item.prop]" v-model="query[item.prop]"
@ -43,7 +61,26 @@
/> />
</template> </template>
</el-form-item> </el-form-item>
<!-- <el-form-item label="仓库">
<el-select
v-model="query.destinationWarehouseIds"
multiple
filterable
collapse-tags
popper-class="custom-header"
:max-collapse-tags="2"
placeholder="多选仓库搜索"
style="width: 240px"
>
<el-option
v-for="item in warehouseList"
:key="item.id"
:label="item.name"
:value="item.id"
/>
</el-select>
</el-form-item> -->
<!-- 查询按钮 --> <!-- 查询按钮 -->
<el-form-item class="el-btn"> <el-form-item class="el-btn">
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button> <el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
@ -233,11 +270,11 @@ import { useStore } from 'vuex';
import { deepClone } from '@/utils/util'; import { deepClone } from '@/utils/util';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { ElMessage, ElMessageBox, type UploadProps } from 'element-plus'; import { ElMessage, ElMessageBox, type UploadProps } from 'element-plus';
import { $_getMyWarehouseList } from '@/api/reportforms/index.js';
// //
const $router = useRouter(); const $router = useRouter();
const $store = useStore(); const $store = useStore();
const warehouseList = ref([]);
const details = reactive<any>({ const details = reactive<any>({
/** 是否开启搜索 */ /** 是否开启搜索 */
search: true, search: true,
@ -309,6 +346,12 @@ const details = reactive<any>({
{ label: '已结算', value: '30' }, { label: '已结算', value: '30' },
], ],
}, },
{
type: 'selectall',
label: '仓库',
prop: 'destinationWarehouseIds',
checkarr: warehouseList,
},
{ type: 'time', label: '开单时间', prop: 'createTimeArr' }, { type: 'time', label: '开单时间', prop: 'createTimeArr' },
{ type: 'time', label: '审核时间', prop: 'checkTimeArr' }, { type: 'time', label: '审核时间', prop: 'checkTimeArr' },
], ],
@ -441,7 +484,17 @@ const initData = async () => {
getDictionaryBiz('open_order_pay_way').then(res => handleData('付款方式', res)), getDictionaryBiz('open_order_pay_way').then(res => handleData('付款方式', res)),
initOnLoad(), initOnLoad(),
]); ]);
$_getMyWarehouseList().then(res => {
console.log(res, '仓库列表');
if (res.data.code === 200) {
warehouseList.value = res.data.data.map(item => {
return {
label: item.name,
value: item.id,
};
});
}
});
await nextTick(); await nextTick();
handleTranslationDataSeclect(details.data, details.columnList); handleTranslationDataSeclect(details.data, details.columnList);
}; };

Loading…
Cancel
Save