Browse Source

修改首页显示bug

pre-production
qb 9 months ago
parent
commit
ca532addfd
  1. 18
      src/api/wel/index.js
  2. 14
      src/views/wel/index.vue

18
src/api/wel/index.js

@ -7,7 +7,7 @@ import request from '@/axios';
*/
export const postAllocationData = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/allocationData',
url: '/api/logpm-report/warehouseIndex/allocationData',
method: 'post',
data,
});
@ -20,7 +20,7 @@ export const postAllocationData = data => {
*/
export const postHandOrderData = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/handOrderData',
url: '/api/logpm-report/warehouseIndex/handOrderData',
method: 'post',
data,
});
@ -33,7 +33,7 @@ export const postHandOrderData = data => {
*/
export const postOpenOrderData = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/openOrderData',
url: '/api/logpm-report/warehouseIndex/openOrderData',
method: 'post',
data,
});
@ -46,7 +46,7 @@ export const postOpenOrderData = data => {
*/
export const postOpenOrderIncome = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/openOrderIncome',
url: '/api/logpm-report/warehouseIndex/openOrderIncome',
method: 'post',
data,
});
@ -59,7 +59,7 @@ export const postOpenOrderIncome = data => {
*/
export const postTrunklineCarsData = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/trunklineCarsData',
url: '/api/logpm-report/warehouseIndex/trunklineCarsData',
method: 'post',
data,
});
@ -72,7 +72,7 @@ export const postTrunklineCarsData = data => {
*/
export const postTrunklineHandOrderData = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/trunklineHandOrderData',
url: '/api/logpm-report/warehouseIndex/trunklineHandOrderData',
method: 'post',
data,
});
@ -85,7 +85,7 @@ export const postTrunklineHandOrderData = data => {
*/
export const postUnloadAbnormalData = data => {
return request({
url: '/api/logpm-report-zhy/warehouseIndex/unloadAbnormalData',
url: '/api/logpm-report/warehouseIndex/unloadAbnormalData',
method: 'post',
data,
});
@ -98,7 +98,7 @@ export const postUnloadAbnormalData = data => {
*/
export const postDeliveryData = data => {
return request({
url: '/api/logpm-report-tjj/warehouseIndex/deliveryData',
url: '/api/logpm-report/warehouseIndex/deliveryData',
method: 'post',
data,
});
@ -111,7 +111,7 @@ export const postDeliveryData = data => {
*/
export const postSignforData = data => {
return request({
url: '/api/logpm-report-tjj/warehouseIndex/signforData',
url: '/api/logpm-report/warehouseIndex/signforData',
method: 'post',
data,
});

14
src/views/wel/index.vue

@ -751,11 +751,7 @@
<div class="text_center">
<div class="data_box purple mb10">
<div class="data mr5px">
{{
signforData.clerkSignforScale
? computeNumber(signforData.clerkSignforScale, '*', 100).toFixed(2)
: 0
}}
{{ signforData.clerkSignforScale || 0 }}
</div>
<div class="">%</div>
</div>
@ -1313,6 +1309,10 @@ const signforData = computed(() => {
if (value.type + '' === signforData_status.value) _obj = value;
}
_obj.signScale = computeNumber(_obj.signScale || 0, '*', 100).toFixed(2);
_obj.clerkSignforScale = computeNumber(_obj.clerkSignforScale || 0, '*', 100).toFixed(2);
_obj.clerkOverTimeScale = computeNumber(_obj.clerkOverTimeScale || 0, '*', 100).toFixed(2);
return _obj;
});
@ -1325,6 +1325,10 @@ const billSignforData = computed(() => {
if (value.type + '' === billSignforData_status.value) _obj = value;
}
_obj.signScale = computeNumber(_obj.signScale || 0, '*', 100).toFixed(2);
_obj.clerkSignforScale = computeNumber(_obj.clerkSignforScale || 0, '*', 100).toFixed(2);
_obj.clerkOverTimeScale = computeNumber(_obj.clerkOverTimeScale || 0, '*', 100).toFixed(2);
return _obj;
});
</script>

Loading…
Cancel
Save