Browse Source

待签收详情查看

fix_bug_pro20231227
kilo 1 year ago
parent
commit
b147d8860b
  1. 584
      src/views/distribution/signfor/distributionSignforedt.vue
  2. 40
      src/views/distribution/turndelivery/deliveryMarket.vue

584
src/views/distribution/signfor/distributionSignforedt.vue

@ -70,77 +70,77 @@
<span>客户备注{{ signfordata.remarks }} </span>
</el-col>
</el-row>
<el-dialog v-model="fbox" title="增值服务" width="30%">
<!-- :before-close="handleClose"-->
<el-form-item label="增值服务" prop="freightMark">
<el-checkbox-group v-model="form.addvalueType" @change="handleCheckedCitiesChange">
<el-checkbox
style="width: 100%; margin-bottom: 3%"
:disabled="true"
v-for="(item, index) in addvalueServeTypeData"
:key="item.dictKey"
:label="item.dictKey"
>{{ item.dictValue }}
<span v-if="index === 0 || index === 6 || index === 2 || index === 4"
>&nbsp;件数:
<el-input
v-model="item.f"
:disabled="true"
style="width: 10%; border: none; border-bottom: 2px solid #eee"
/>
</span>
<span v-if="index === 1"
>公里:
<el-input
v-model="item.a"
:disabled="true"
style="width: 10%; border: none; border-bottom: 2px solid #eee"
/>
</span>
<span v-if="index === 3"
>距离:
<el-input
v-model="item.b"
:disabled="true"
style="width: 10%; border: none; border-bottom: 2px solid #eee"
/>
</span>
<span v-if="index === 5"
>人数:
<el-input
v-model="item.c"
:disabled="true"
style="width: 10%; border: none; border-bottom: 2px solid #eee"
/>
</span>
<span v-if="index === 0"
>楼层:
<el-input
v-model="item.d"
:disabled="true"
style="width: 10%; border: none; border-bottom: 2px solid #eee"
/>
</span>
<span v-if="item"
>预计费用:
<el-input
v-model="item.e"
:disabled="true"
style="width: 20%; border: none; border-bottom: 2px solid #eee"
/>
</span>
</el-checkbox>
</el-checkbox-group>
</el-form-item>
<template #footer>
<span class="dialog-footer">
<el-button @click="dialogVisible = false">关闭</el-button>
<!-- <el-button type="primary" @click="dialogVisible = false">-->
<!-- 确定(增值服务)-->
<!-- </el-button>-->
</span>
</template>
</el-dialog>
<!-- <el-dialog v-model="fbox" title="增值服务" width="30%">-->
<!-- &lt;!&ndash; :before-close="handleClose"&ndash;&gt;-->
<!-- <el-form-item label="增值服务" prop="freightMark">-->
<!-- <el-checkbox-group v-model="form.addvalueType" @change="handleCheckedCitiesChange">-->
<!-- <el-checkbox-->
<!-- style="width: 100%; margin-bottom: 3%"-->
<!-- :disabled="true"-->
<!-- v-for="(item, index) in addvalueServeTypeData"-->
<!-- :key="item.dictKey"-->
<!-- :label="item.dictKey"-->
<!-- >{{ item.dictValue }}-->
<!-- <span v-if="index === 0 || index === 6 || index === 2 || index === 4"-->
<!-- >&nbsp;件数:-->
<!-- <el-input-->
<!-- v-model="item.f"-->
<!-- :disabled="true"-->
<!-- style="width: 10%; border: none; border-bottom: 2px solid #eee"-->
<!-- />-->
<!-- </span>-->
<!-- <span v-if="index === 1"-->
<!-- >公里:-->
<!-- <el-input-->
<!-- v-model="item.a"-->
<!-- :disabled="true"-->
<!-- style="width: 10%; border: none; border-bottom: 2px solid #eee"-->
<!-- />-->
<!-- </span>-->
<!-- <span v-if="index === 3"-->
<!-- >距离:-->
<!-- <el-input-->
<!-- v-model="item.b"-->
<!-- :disabled="true"-->
<!-- style="width: 10%; border: none; border-bottom: 2px solid #eee"-->
<!-- />-->
<!-- </span>-->
<!-- <span v-if="index === 5"-->
<!-- >人数:-->
<!-- <el-input-->
<!-- v-model="item.c"-->
<!-- :disabled="true"-->
<!-- style="width: 10%; border: none; border-bottom: 2px solid #eee"-->
<!-- />-->
<!-- </span>-->
<!-- <span v-if="index === 0"-->
<!-- >楼层:-->
<!-- <el-input-->
<!-- v-model="item.d"-->
<!-- :disabled="true"-->
<!-- style="width: 10%; border: none; border-bottom: 2px solid #eee"-->
<!-- />-->
<!-- </span>-->
<!-- <span v-if="item"-->
<!-- >预计费用:-->
<!-- <el-input-->
<!-- v-model="item.e"-->
<!-- :disabled="true"-->
<!-- style="width: 20%; border: none; border-bottom: 2px solid #eee"-->
<!-- />-->
<!-- </span>-->
<!-- </el-checkbox>-->
<!-- </el-checkbox-group>-->
<!-- </el-form-item>-->
<!-- <template #footer>-->
<!-- <span class="dialog-footer">-->
<!-- <el-button @click="dialogVisible = false">关闭</el-button>-->
<!-- &lt;!&ndash; <el-button type="primary" @click="dialogVisible = false">&ndash;&gt;-->
<!-- &lt;!&ndash; 确定(增值服务)&ndash;&gt;-->
<!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
<!-- </span>-->
<!-- </template>-->
<!-- </el-dialog>-->
<!-- <el-dialog :title="title"-->
<!-- v-model="fbox"-->
@ -337,22 +337,304 @@
</el-table>
</el-tab-pane>
</el-tabs>
<el-divider><h5>增值服务信息</h5></el-divider>
<el-tabs type="border-card" v-model="activeTab" @tab-click="handleAddvalueTabClick">
<el-tab-pane label="上&emsp;楼" name="tabs1">
<!-- 列表模块 -->
<el-row :gutter="24" class="rows">
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>楼层:{{addvalueinfo.floolNum}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>件数{{addvalueinfo.num}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>费用{{addvalueinfo.fee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>操作人{{addvalueinfo.createUser}} </span>
</el-col>
</el-row>
<el-table ref="table" v-loading="loading"
@selection-change="selectionChange"
:data="addvalueData"
:height="height"
style="width: 100%"
:border="addvalueOption.border"
>
<!-- align="center"-->
<el-table-column type="expand" v-if="addvalueOption.expand"></el-table-column>
<template v-for="(item,index) in addvalueOption.column">
<!-- table字段 -->
<el-table-column v-if="item.hide!==true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index">
<!-- :align="center"
-->
</el-table-column>
</template>
<!-- <el-table-column prop="menu" label="操作" :width="250">-->
<!-- <template #="{row}">-->
<!-- <el-button type="primary" text icon="el-icon-view" @click="handleView(row)"> -->
<!-- </el-button>-->
<!-- </template>-->
<!-- </el-table-column>-->
</el-table>
</el-tab-pane>
<el-tab-pane label="超&emsp;区" name="tabs2">
<!-- 列表模块 -->
<el-row :gutter="24" class="rows">
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>公里数:{{addvalueinfo.distance}}公里 </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>件数:{{addvalueinfo.num}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>费用{{addvalueinfo.fee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>操作人{{addvalueinfo.createUser}} </span>
</el-col>
</el-row>
<el-table ref="table" v-loading="loading"
@selection-change="selectionChange"
:data="addvalueData"
:height="height"
style="width: 100%"
:border="addvalueOption.border"
>
<!-- align="center"-->center
<el-table-column type="expand" v-if="addvalueOption.expand"></el-table-column>
<template v-for="(item,index) in addvalueOption.column">
<!-- table字段 -->
<el-table-column v-if="item.hide!==true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index">
<!-- :align="center"-->
</el-table-column>
</template>
</el-table>
</el-tab-pane>
<el-tab-pane label="平&emsp;移" name="tabs3">
<!-- 列表模块 -->
<el-row :gutter="24" class="rows">
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>距离:{{addvalueinfo.distance}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>件数:{{addvalueinfo.num}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>费用{{addvalueinfo.fee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>操作人{{addvalueinfo.deliveryAddress}} </span>
</el-col>
</el-row>
<el-table ref="table" v-loading="loading"
@selection-change="selectionChange"
:data="addvalueData"
:height="height"
style="width: 100%"
:border="addvalueOption.border"
>
<!-- align="center"-->center
<el-table-column type="expand" v-if="addvalueOption.expand"></el-table-column>
<template v-for="(item,index) in addvalueOption.column">
<!-- table字段 -->
<el-table-column v-if="item.hide!==true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index">
<!-- :align="center"-->
</el-table-column>
</template>
</el-table>
</el-tab-pane>
<el-tab-pane label="搬&emsp;运" name="tabs4">
<!-- 列表模块 -->
<el-row :gutter="24" class="rows">
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>班组:{{addvalueinfo.consignee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>件数:{{addvalueinfo.num}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>费用{{addvalueinfo.fee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>操作人{{addvalueinfo.deliveryAddress}} </span>
</el-col>
</el-row>
<el-table ref="table" v-loading="loading"
@selection-change="selectionChange"
:data="addvalueData"
:height="height"
style="width: 100%"
:border="addvalueOption.border"
>
<!-- align="center"-->center
<el-table-column type="expand" v-if="addvalueOption.expand"></el-table-column>
<template v-for="(item,index) in addvalueOption.column">
<!-- table字段 -->
<el-table-column v-if="item.hide!==true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index">
<!-- :align="center"-->
</el-table-column>
</template>
</el-table>
</el-tab-pane>
<el-tab-pane label="分&emsp;拣" name="tabs5">
<!-- 列表模块 -->
<el-row :gutter="24" class="rows">
<!-- <el-col :xl="6" :lg="7" :md="10" :sm="24" >-->
<!-- <span>距离:{{signfordata.consignee}} </span>-->
<!-- </el-col>-->
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>件数:{{addvalueinfo.num}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>费用{{addvalueinfo.fee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>操作人{{addvalueinfo.deliveryAddress}} </span>
</el-col>
</el-row>
<el-table ref="table" v-loading="loading"
@selection-change="selectionChange"
:data="addvalueData"
:height="height"
style="width: 100%"
:border="addvalueOption.border"
>
<!-- align="center"-->center
<el-table-column type="expand" v-if="addvalueOption.expand"></el-table-column>
<template v-for="(item,index) in addvalueOption.column">
<!-- table字段 -->
<el-table-column v-if="item.hide!==true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index">
<!-- :align="center"-->
</el-table-column>
</template>
</el-table>
</el-tab-pane>
<el-tab-pane label="专&emsp;车" name="tabs6">
<!-- 列表模块 -->
<el-row :gutter="24" class="rows">
<!-- <el-col :xl="6" :lg="7" :md="10" :sm="24" >-->
<!-- <span>距离:{{signfordata.consignee}} </span>-->
<!-- </el-col>-->
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>件数:{{addvalueinfo.num}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>费用{{addvalueinfo.fee}} </span>
</el-col>
<el-col :xl="6" :lg="7" :md="10" :sm="24">
<span>操作人{{addvalueinfo.deliveryAddress}} </span>
</el-col>
</el-row>
<el-table ref="table" v-loading="loading"
@selection-change="selectionChange"
:data="addvalueData"
:height="height"
style="width: 100%"
:border="addvalueOption.border"
>
<!-- align="center"-->center
<el-table-column type="expand" v-if="addvalueOption.expand"></el-table-column>
<template v-for="(item,index) in addvalueOption.column">
<!-- table字段 -->
<el-table-column v-if="item.hide!==true"
:prop="item.prop"
:label="item.label"
:show-overflow-tooltip="true"
:width="item.width"
:key="index">
<!-- :align="center"-->
</el-table-column>
</template>
</el-table>
</el-tab-pane>
<!-- <el-tab-pane label="平移。搬运。分拣。专车" name="tab4">-->
<!-- &lt;!&ndash; 列表模块 &ndash;&gt;-->
<!-- <el-table ref="table" v-loading="loading"-->
<!-- @selection-change="selectionChange"-->
<!-- :data="inventoryData"-->
<!-- :height="height"-->
<!-- style="width: 100%"-->
<!-- :border="inventory.border"-->
<!-- >-->
<!-- &lt;!&ndash; align="center"&ndash;&gt;center-->
<!-- <el-table-column type="expand" v-if="inventory.expand"></el-table-column>-->
<!-- <template v-for="(item,index) in inventory.column">-->
<!-- &lt;!&ndash; table字段 &ndash;&gt;-->
<!-- <el-table-column v-if="item.hide!==true"-->
<!-- :prop="item.prop"-->
<!-- :label="item.label"-->
<!-- :show-overflow-tooltip="true"-->
<!-- :width="item.width"-->
<!-- :key="index">-->
<!-- &lt;!&ndash; :align="center"&ndash;&gt;-->
<!-- </el-table-column>-->
<!-- </template>-->
<!-- &lt;!&ndash; <el-table-column prop="menu" label="操作" :width="220" align="center">&ndash;&gt;-->
<!-- &lt;!&ndash; <template #="{row}">&ndash;&gt;-->
<!-- &lt;!&ndash; <el-button type="primary" text icon="el-icon-view" @click="handleInventoryView(row)">查看详情</el-button>&ndash;&gt;-->
<!-- &lt;!&ndash; </template>&ndash;&gt;-->
<!-- &lt;!&ndash; </el-table-column>&ndash;&gt;-->
<!-- </el-table>-->
<!-- </el-tab-pane>-->
</el-tabs>
</div>
</basic-container>
</template>
<script>
import {
getList,
getDetail,
add,
update,
remove,
getDetailById,
getListOrder,
signforPackageList,
signforInventoryList,
} from '@/api/distribution/distributionSignfor';
import {
getList,
getDetail,
add,
update,
remove,
getDetailById,
getListOrder,
signforPackageList,
signforInventoryList, addvalueInfoList
} from '@/api/distribution/distributionSignfor';
import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict';
@ -396,6 +678,7 @@ export default {
activeTab: 'tab1',
//:
orderData: [],
addvalueinfo:{},
//
stepsList: [
{
@ -421,6 +704,78 @@ export default {
],
//
stepActive: 0,
addvalueData:[],
addvalueOption: {
expand: false,
index: true,
border: true,
selection: true,
column: [
{
prop: 'orderCode',
label: '订单自编号',
type: 2,
values: '',
width: '300',
checkarr: [],
fixed: true,
sortable: true
// head: true,
},
{
label: '货物名称',
prop: 'materialName',
type: 1,
values: '',
width: '300',
checkarr: [],
fixed: false,
sortable: true
},
{
label: '包条码',
prop: 'orderPackageCode',
type: 1,
values: '',
width: '300',
checkarr: [],
fixed: false,
sortable: true
},
{
label: '数量',
prop: 'quantity',
type: 1,
values: '',
width: '220',
checkarr: [],
fixed: false,
sortable: true
},
{
label: '包条类型',
prop: 'conditions',
type: 1,
values: '',
width: '220',
checkarr: [],
fixed: false,
sortable: true
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '300',
checkarr: [],
fixed: 'right',
sortable: false
}
// ...
],
},
//
ordoption: {
expand: false,
@ -1566,6 +1921,70 @@ export default {
});
});
},
handleAddvalueTabClick(tab, event) {
console.log('tab>>>>>>>>', tab.paneName);
let tabName = tab.paneName;
let addvalueId = 0;
switch (tabName) {
case 'tabs1':
//
console.log('上楼');
addvalueId = 1;
break;
case 'tabs2':
//
console.log('超区');
addvalueId = 2;
break;
case 'tabs3':
//
console.log('平移');
addvalueId = 3;
break;
case 'tabs4':
//
console.log('搬运');
addvalueId = 4;
break;
case 'tabs5':
//
console.log('分拣');
addvalueId = 5;
break;
case 'tabs6':
//
console.log('专车');
addvalueId = 6;
break;
}
let a ={
signforId:this.$route.query.id,
addvalueId:addvalueId,
}
addvalueInfoList(a).then(res=>{
console.log("res------------->",res.data.data);
const data = res.data.data;
if (data === null){
this.addvalueData = [];
this.addvalueinfo = { };
}else {
this.addvalueinfo = data;
this.addvalueData = data.packageEntityList;
}
// if (data !== null ){
// if (!!data.packageEntityList){
// this.addvalueData = data.packageEntityList;
// }
// }
})
},
rowDel(row) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
@ -1664,7 +2083,6 @@ export default {
this.addvalueData = data.packageEntityList;
}
});
this.loading = false;
},
getListOrders(page, params = {}) {

40
src/views/distribution/turndelivery/deliveryMarket.vue

@ -737,7 +737,7 @@
{ immediate: true }
);
this.getDictionary();
this.getFork();
// this.getFork();
this.getTeam();
this.getvehicleData();
this.getMasterDriverData();
@ -793,8 +793,8 @@
});
this.forkliftData = fo;
});
await this.getStorageArea();
await this.getTeam();
// await this.getStorageArea();
// await this.getTeam();
},
//
async getTeam() {
@ -813,23 +813,23 @@
this.loaderData = fo;
});
},
//
async getStorageArea() {
let params = this.deptId;
console.log('^^^^^^^^^^^^^', params);
stockUpInfo(params).then(res => {
console.log('=========================》', res);
let fo = [];
res.data.data.forEach(i => {
let v = {
dictKey: i.id,
dictValue: i.headline
};
fo.push(v);
});
this.goodsAreaData = fo;
});
},
// //
// async getStorageArea() {
// let params = this.deptId;
// console.log('^^^^^^^^^^^^^', params);
// stockUpInfo(params).then(res => {
// console.log('=========================', res);
// let fo = [];
// res.data.data.forEach(i => {
// let v = {
// dictKey: i.id,
// dictValue: i.headline
// };
// fo.push(v);
// });
// this.goodsAreaData = fo;
// });
// },
//
getMasterDriverData() {
return new Promise((rv, rev) => {

Loading…
Cancel
Save