Browse Source

修复已知bug

dev-xx
马远东 8 months ago
parent
commit
36451041af
  1. 57
      src/api/storagecost/index.js
  2. 3
      src/components/tablecmt/tablecmt.vue
  3. 2
      src/components/webCameraIMG/webCamera.vue
  4. 128
      src/views/cost/Deliverycostmanagement/Basicconfiguration.vue
  5. 2
      src/views/cost/Deliverycostmanagement/Categorypricingunit.vue
  6. 57
      src/views/cost/Deliverycostmanagement/DeliveryCostPricingTemplate.vue
  7. 177
      src/views/cost/Deliverycostmanagement/Deliverymaintenancecosts.vue
  8. 53
      src/views/mail/order/add.vue
  9. 1
      src/views/mail/signfor/list.vue

57
src/api/storagecost/index.js

@ -141,7 +141,7 @@ export const $_WarehousePricingTemplate = params => {
params,
});
};
// 新增模板
// 新增模板
export const $_WarehouseTemplateHome = data => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPriceTemplate/save',
@ -184,7 +184,6 @@ export const $_expenseDispatchPriceUnitupdate = data => {
});
};
// 配送-模板-品牌品类计价单位-删除
export const $_expenseDispatchPriceUnitremove = params => {
return request({
@ -194,10 +193,62 @@ export const $_expenseDispatchPriceUnitremove = params => {
});
};
// 配送-模板-配送成本计价模板-新增
export const $_expenseDispatchPriceRulesave = params => {
export const $_expenseDispatchPriceRulesave = data => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPriceRule/save',
method: 'post',
data,
});
};
// 配送-模板-配送成本计价模板-详情
export const $_expenseDispatchPriceRuledetail = params => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPriceRule/detail',
method: 'get',
params,
});
};
// 配送-模板-配送成本计价模板-编辑
export const $_expenseDispatchPriceRuleupdate = data => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPriceRule/update',
method: 'post',
data,
});
};
// 配送-模板-基础配置-详情
export const $_expenseDispatchPriceTemplatedetail = params => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPriceTemplate/detail',
method: 'get',
params,
});
};
// 配送-模板-基础配置-修改
export const $_expenseDispatchPriceTemplateupdate = data => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPriceTemplate/update',
method: 'post',
data,
});
};
// 配送-模板-车型计费配置-列表
export const $_expenseDispatchPricepage = params => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPrice/page',
method: 'get',
params,
});
};
// 配送-模板-车型计费配置-新增
export const $_expenseDispatchPricesave = data => {
return request({
url: '/api/logpm-statisticsdata/expenseDispatchPrice/save',
method: 'post',
data,
});
};

3
src/components/tablecmt/tablecmt.vue

@ -930,7 +930,8 @@ defineExpose({ handleCheckSelect, handleClearSelect });
.el_placeholder{
width: 100%;
position: absolute;
margin-top: -10% !important;
margin-top: -12% !important;
z-index: 9999999;
left: 0;
}
</style>

2
src/components/webCameraIMG/webCamera.vue

@ -172,7 +172,7 @@ const Opentrimming = () => {
};
request('http://127.0.0.1:38088/dvideo=cameradeskew', 'POST', data)
.then(response => {
const message = '';
let message = '';
if (response.code !== '0') {
message = IMG_Trimming_edge.value ? '图像裁边已开启' : '图像裁边已关闭';
ElMessage({ message, type: 'success' });

128
src/views/cost/Deliverycostmanagement/Basicconfiguration.vue

@ -1,8 +1,8 @@
<template>
<div class="content">
<div class="content" v-loading="loading" element-loading-text="Loading...">
<el-form :model="form" label-width="auto">
<el-form-item label="仓库">
<el-select v-model="form.warehouse" filterable placeholder="请选择" clearable>
<el-form-item label="仓库:">
<el-select v-model="form.warehouse" filterable placeholder="请选择仓库" clearable>
<el-option
v-for="item in warehouseList"
:key="item.value"
@ -13,12 +13,15 @@
</el-select>
</el-form-item>
<el-form-item label="模板名称">
<el-form-item label="模板名称:">
<el-input v-model="form.templateName" placeholder="请输入模板名称" />
</el-form-item>
</el-form>
</div>
<div class="footer">
<el-button type="primary" @click="preservation"
>保存<el-icon><Promotion /></el-icon
></el-button>
<el-button type="primary" @click="nextstep"
>下一步<el-icon><ArrowRightBold /></el-icon
></el-button>
@ -27,8 +30,13 @@
<script setup>
import { ref, defineComponent } from 'vue';
import { $_getMyWarehouseList, $_WarehouseTemplateHome } from '@/api/storagecost/index.js';
import {
$_getMyWarehouseList,
$_WarehouseTemplateHome,
$_expenseDispatchPriceTemplatedetail,
$_expenseDispatchPriceTemplateupdate,
} from '@/api/storagecost/index.js';
import { ElMessage } from 'element-plus';
import { useRoute } from 'vue-router';
import { useStore } from 'vuex';
const $useStore = useStore();
@ -43,6 +51,7 @@ const props = defineProps({
});
console.log(props, '来自父页面参数');
const form = ref({});
const loading = ref(false);
const warehouseList = ref([]);
//
const getWarehouse = () => {
@ -50,6 +59,7 @@ const getWarehouse = () => {
console.log('获取仓库', res);
if (res.data.code == 200) {
warehouseList.value = res.data.data || [];
disabledWarehouse();
}
});
};
@ -57,34 +67,110 @@ const getWarehouse = () => {
const disabledWarehouse = () => {
let WarehouseName = localStorage.getItem('WarehouseName');
if (WarehouseName != 'undefined') {
console.log('不存在仓库');
let data = warehouseList.value.find(res => res.name == WarehouseName);
warehouseList.value.forEach(item => {
item.disabled = true;
});
data.disabled = false;
}
};
const getInfo = () => {
//
if ($route.query.id) {
let data = {
id: $route.query.id,
};
loading.value = true;
$_expenseDispatchPriceTemplatedetail(data)
.then(res => {
console.log(res, '详情');
if (res.data.code == 200) {
form.value.warehouse = res.data.data.warehouseId;
form.value.templateName = res.data.data.templateName;
}
})
.catch(error => {
console.log(error);
})
.finally(() => {
loading.value = false;
});
}
};
const onLoad = () => {
getWarehouse();
disabledWarehouse();
getInfo();
};
onLoad();
//
const nextstep = () => {
const preservation = () => {
if (loading.value) {
return;
}
if (!form.value.warehouse) {
ElMessage({
message: '请选择仓库',
type: 'warning',
});
return;
}
if (!form.value.templateName) {
ElMessage({
message: '请输入模板名称',
type: 'warning',
});
return;
}
let data = {
templateName: form.value.templateName,
warehouseName: warehouseList.value.find(item => item.id == form.value.warehouse)?.name || '', //
warehouseId: form.value.warehouse, //ID
};
$_WarehouseTemplateHome(data).then(res => {
console.log(res, '新增成功');
if(res.data.code ==200){
emit('request-data',{id:res.data.data}); //
console.log(props, '最新参数');
}
});
loading.value = true;
if ($route.query.id) {
//
data.id = $route.query.id; //
$_expenseDispatchPriceTemplateupdate(data)
.then(res => {
console.log(res, '修改成功');
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
})
.catch(error => {
console.log(error);
})
.finally(() => {
loading.value = false;
});
} else {
//
$_WarehouseTemplateHome(data)
.then(res => {
console.log(res, '新增成功');
if (res.data.code == 200) {
emit('request-data', { id: res.data.data }); //
console.log(props, '最新参数');
ElMessage({
message: res.data.msg,
type: 'success',
});
}
})
.catch(error => {
console.log(error);
})
.finally(() => {
loading.value = false;
});
}
};
//
const nextstep = () => {
return;
};
</script>

2
src/views/cost/Deliverycostmanagement/Categorypricingunit.vue

@ -325,6 +325,7 @@ function updateDictionary(targetArray, dictionaryType) {
//
const onLoad = value => {
let data = {
templateId:'1820287812099485698',
current: details.page.currentPage,
size: details.page.pageSize,
...details.query,
@ -426,6 +427,7 @@ const Categoryaddition = async () => {
let data = {
categoryId: form.value.categoryId, //
unit: form.value.unit, //
templateId:'1820287812099485698',
};
details.loadingObj.list = true;
if (categorytitle.value == '新增') {

57
src/views/cost/Deliverycostmanagement/DeliveryCostPricingTemplate.vue

@ -2,8 +2,8 @@
<div class="content">
<!-- 配置计价规则 -->
<el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane label="商配" name="0"></el-tab-pane>
<el-tab-pane label="市配" name="1"></el-tab-pane>
<el-tab-pane label="商配" :name="1"></el-tab-pane>
<el-tab-pane label="市配" :name="2"></el-tab-pane>
</el-tabs>
<el-form :model="form" class="el_pricing">
<div class="el_row">
@ -149,7 +149,13 @@
<script setup>
import { ref } from 'vue';
import { $_expenseDispatchPriceRulesave } from '@/api/storagecost/index.js';
import {
$_expenseDispatchPriceRulesave,
$_expenseDispatchPriceRuledetail,
$_expenseDispatchPriceRuleupdate,
} from '@/api/storagecost/index.js';
const $route = useRoute(); //
const form = ref({
ynSurcharge: 0, //
ynChargedKilometer: 0, //
@ -168,19 +174,54 @@ const form = ref({
subsidyFuelCostRule: 1, //
ynSubsidyFuelCostReturn: 0, //
});
const activeName = ref('0');
const activeName = ref(1); //(12)
const handleClick = () => {
console.log(activeName.value);
};
const preservation = () => {
let data = {
templateId:'1820287812099485698',
...form.value
type: activeName.value,
templateId: '1820287812099485698',
...form.value,
};
$_expenseDispatchPriceRulesave(data).then(res => {
console.log(res, '新增成');
//
if ($route.query.id) {
$_expenseDispatchPriceRuleupdate(data).then(res => {
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
});
} else {
//
$_expenseDispatchPriceRulesave(data).then(res => {
console.log(res, '新增成');
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
type: 'success',
});
}
});
}
};
const onLoad = () => {
console.log($route, '$route');
let data = {
templateId: '1820287812099485698',
type: activeName.value,
};
$_expenseDispatchPriceRuledetail(data).then(res => {
console.log(res, '详情');
if (res.data.code == 200 && res.data.data) {
form.value = res.data.data;
}
});
};
onLoad();
</script>
<style scoped lang="scss">

177
src/views/cost/Deliverycostmanagement/Deliverymaintenancecosts.vue

@ -4,6 +4,7 @@
<el-tab-pane label="商配" name="Commercialdistribution"></el-tab-pane>
<el-tab-pane label="市配" name="Municipaldistribution"></el-tab-pane>
</el-tabs>
<el-button type="primary" @click="newlyadded">新增</el-button>
<div class="form">
<SurchargeTable
:SurchargeData="form.dispatchSubjoinCategoryData"
@ -14,9 +15,6 @@
<template #default="slotProps">
<template v-if="slotProps.scope.column.label === '操作'">
<div class="eml_btn">
<span class="el_btn_a" @click="newlyadded(slotProps)">
<el-icon style="color: #409eff"><CirclePlus /></el-icon>
</span>
<span class="el_btn_a" @click="EditRules">
<el-icon style="color: #409eff"><Edit /></el-icon>
</span>
@ -33,6 +31,17 @@
<!-- 配置计价规则 -->
<el-dialog v-model="form.dialogPricingrules" title="编辑" width="70%">
<div class="el_content">
<div class="el_category">
<span class="title"> 车型 </span>
<el-select v-model="form.carModel" placeholder="请选择车型" >
<el-option
v-for="item in optionsVehicle "
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
<div class="el_category">
<span class="title"> 品类按件计费 </span>
<SurchargeTable
@ -220,16 +229,27 @@
</div>
</template>
</el-dialog>
<div class="footer">
<el-button type="primary" @click="preservation"
>保存<el-icon><Promotion /></el-icon
></el-button>
</div>
</template>
<script setup>
import { ref } from 'vue';
import SurchargeTable from '@/components/pric/tablePric.vue';
import { postFindCategoryInfo } from '@/api/distribution/CreateOrder.js';
import { $_expenseDispatchPricepage,$_expenseDispatchPricesave } from '@/api/storagecost/index.js';
import { $_ObtainRegion } from '@/api/basicdata/basicdataWarehouse';
import { getDictionaryBiz } from '@/api/system/dict'; //
const $router = useRouter(); //
const $useStore = useStore(); //
const $route = useRoute(); //
const activeName = ref('Commercialdistribution');
const SelectData = ref({}); //
//
const formLoad = ref({});
const optionsVehicle=ref([]);
const form = ref({
numa: 0,
numb: 0,
@ -239,7 +259,7 @@ const form = ref({
dispatchSubjoinCategoryData: [
{
index: 1,
Warehousecategory: '',
carModel: '',
options: [],
loading: false,
},
@ -254,76 +274,6 @@ const form = ref({
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
{
index: 1,
Costsettlementcategory: '', //
UnitPrice: '', //(/)
options: [],
loading: false,
},
],
//
Categorybasedbillingbyparty: [
@ -381,18 +331,7 @@ const form = ref({
},
],
});
const onLoad = () => {
$_ObtainRegion().then(res => {
console.log(res, '地区。。。');
console.log(form.value.Oversizedbilling, 'form.value.Oversizedbilling');
if (res.data.code === 200) {
form.value.Oversizedbilling.forEach(item => {
item['options'] = res.data.data;
});
}
});
};
onLoad();
//
const Oversizedbilling = ref([
{ label: '序号', prop: 'index', type: 'string', width: '50', disabled: true },
@ -536,7 +475,7 @@ const dispatchSubjoinCategory = ref([
{ label: '序号', prop: 'index', type: 'string', width: '50', disabled: true },
{
label: '车型',
prop: 'Warehousecategory',
prop: 'carModel',
type: 'select',
width: 'auto',
disabled: true,
@ -574,6 +513,8 @@ const EditRules = () => {
form.value.dialogPricingrules = true; //
};
const newlyadded = row => {
form.value.dialogPricingrules = true; //
return;
console.log(row, 'row');
let data = {
index: form.value.dispatchSubjoinCategoryData.length + 1,
@ -586,6 +527,14 @@ const newlyadded = row => {
//
const Pricingrules = () => {
console.log(form.value);
let data={
carModel:form.value.carModel,//
}
$_expenseDispatchPricesave(data).then(res=>{
console.log(res,'res');
})
};
//
const Oversizedbillingadd = () => {};
@ -593,6 +542,47 @@ const Oversizedbillingadd = () => {};
const Oversizedbillingdel = row => {
console.log(row, '删除超区费');
};
//
function updateDictionary(targetArray, dictionaryType) {
getDictionaryBiz(dictionaryType).then(res => {
console.log(res, '字典');
res.data.data.forEach(item => {
targetArray.push({
value: item.dictKey,
label: item.dictValue,
});
});
});
}
//
const GetRegion = () => {
$_ObtainRegion().then(res => {
console.log(res, '地区。。。');
console.log(form.value.Oversizedbilling, 'form.value.Oversizedbilling');
if (res.data.code === 200) {
form.value.Oversizedbilling.forEach(item => {
item['options'] = res.data.data;
});
}
});
};
const onLoad = () => {
let data = {
id: $route.query.id,
};
$_expenseDispatchPricepage(data).then(res => {
console.log(res, '车型');
});
};
//
const onLoadPage = () => {
onLoad();
GetRegion(); //
updateDictionary(optionsVehicle.value, 'price_vehicle_type'); //
};
onLoadPage();
</script>
<style scoped lang="scss">
@ -780,4 +770,17 @@ const Oversizedbillingdel = row => {
.SuperAdd {
display: flex;
}
.footer {
position: fixed;
bottom: 10px;
left: 4%;
width: 100%;
display: flex;
justify-content: center;
.el-button {
width: 120px;
height: 40px;
font-size: 16px;
}
}
</style>

53
src/views/mail/order/add.vue

@ -452,10 +452,11 @@
</template>
<template v-if="isaddvalue">
<el-dialog v-model="isaddvalue" title="包件信息" width="100%" :model="addvalue">
<el-dialog v-model="isaddvalue" title="包件信息" width="80%" :model="addvalue">
<!-- 列表模块 -->
<!-- :isselectfun="checkPackage"-->
<tablecmt
class="tcpack"
:columnList="columnParcels"
:tableData="packageData"
:checkselect="packageDataSec"
@ -744,7 +745,7 @@
{
prop: 'storeTime',
label: '在库时间',
type: 5,
type: 1,
values: '',
width: '150',
checkarr: [],
@ -1184,26 +1185,26 @@
sortable: true,
head: false,
},
{
prop: 'reservationStatusName',
label: '预约状态',
type: 3,
values: '',
width: '150',
checkarr: [
{
label: '未预约',
value: '10',
},
{
label: '部分预约',
value: '20',
},
],
fixed: false,
sortable: true,
head: false,
},
// {
// prop: 'reservationStatusName',
// label: '',
// type: 3,
// values: '',
// width: '150',
// checkarr: [
// {
// label: '',
// value: '10',
// },
// {
// label: '',
// value: '20',
// },
// ],
// fixed: false,
// sortable: true,
// head: false,
// },
{
prop: 'freezeStatusName',
label: '冻结状态',
@ -2302,7 +2303,7 @@
this.loading = false;
} else {
console.log(">>>>> id ,",row.id);
getPackageListByStockArticleId(page.currentPage, page.pageSize, {id:row.id}).then(res => {
await getPackageListByStockArticleId(page.currentPage, page.pageSize, {id:row.id}).then(res => {
console.log('res---------------->', res);
// console.log(res.data.data.records);
if (res.data.data) {
@ -2314,6 +2315,11 @@
this.loading = false;
});
}
let ctime= setTimeout(()=>{
const _node = document.querySelector('.tcpack');
setNodeHeight(_node, '', true);
clearTimeout(ctime)
},50)
},
//
@ -2437,6 +2443,7 @@
});
console.log('this.orderData------------>', this.orderData);
this.isaddvalue = false;
this.obj.reservationNum = this.packageListInfo.length
},
onSubmit() {

1
src/views/mail/signfor/list.vue

@ -777,6 +777,7 @@ export default {
query: {
id: row.id,
reservationId: row.reservationId,
row:JSON.stringify(row),
name: '签收查看',
},
});

Loading…
Cancel
Save