Browse Source

增加待签收点击数字查看详情

master
汤建军 1 year ago
parent
commit
4c04d64670
  1. 17
      src/api/distribution/distributionSignfor.js
  2. 281
      src/views/distribution/signfor/distributionSignfortreat.vue

17
src/api/distribution/distributionSignfor.js

@ -50,6 +50,23 @@ export const getSignforExport = row => {
responseType: 'blob',
})
};
/**
* 查看配送数量详情
* @param row
* @returns {AxiosPromise}
*/
export const numberDetail = (signingId,type) => {
return request({
url: '/api/logpm-distribution/signfor/numberDetail',
method: 'get',
params: {
signingId,
type
}
})
};
/**
* 导出
* @param row

281
src/views/distribution/signfor/distributionSignfortreat.vue

@ -157,18 +157,21 @@
>
<template #default="slotProps">
<template
v-if="slotProps.scope.column.label === '配送件数' || '装车件数' || '司机签收数'"
v-if="slotProps.scope.column.label === '配送件数' || '装车件数' || '签收数'|| '未签收数'|| '未装车件数'"
>
<el-text @click="InformationViewing(slotProps.scope)">
<!-- {{slotProps.scope.row.reservationNum}} -->
{{
slotProps.scope.column.label === '配送件数'
? slotProps.scope.row.reservationNum
: slotProps.scope.column.label === '装车件数'
? slotProps.scope.row.loadedNumber
: slotProps.scope.column.label === '司机签收数'
: slotProps.scope.column.label === '签收数'
? slotProps.scope.row.receivedQuantity
:slotProps.scope.column.label === '未签收件数'
? slotProps.scope.row.unreceivedQuantity
:slotProps.scope.column.label === '未装车件数'
? slotProps.scope.row.unloadedNumber
: ''
}}
</el-text>
@ -503,6 +506,29 @@
<!-- </span>-->
<!-- </template>-->
</el-dialog>
<el-dialog
:title="numberTitle"
v-model="numberDetailDialogVisible"
width="70%"
>
<tablecmt
:columnList="numberDetailColumnList"
:tableData="numberDetailData"
:loading="loading"
@inputTxt="inputsc"
@timeCheck="timesc"
@btnCheck="btnsc"
@selectCheck="selectsc"
@selection="selectionsc"
>
</tablecmt>
<el-button @click="numberDetailDialogVisible = false"> </el-button>
<el-button type="primary" @click="numberDetailDialogVisible = false"> </el-button>
</el-dialog>
</template>
<script>
@ -516,7 +542,7 @@ import {
getstatistics,
loadingAbnormalPackageListDetail,
loadingAbnormalPackageListAuditing,
getSignforExport,
getSignforExport, numberDetail
} from '@/api/distribution/distributionSignfor';
import { update as updatesign } from '@/api/distribution/distributionSignfor';
import option from '@/option/distribution/distributionSignfor';
@ -542,6 +568,8 @@ export default {
dialogVisibleC: false,
dialogVisibleD: false,
dialogVisibleE: false,
numberDetailDialogVisible:false,
numberTitle:'',
TcForm: {}, //
//
DoorstepPhoto: [],
@ -841,9 +869,29 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'unloadedNumber',
label: '未装车件数',
type: 6,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'receivedQuantity',
label: '司机签收数',
label: '签收件数',
type: 6,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
},
{
prop: 'unreceivedQuantity',
label: '未签收件数',
type: 6,
values: '',
width: '130',
@ -902,6 +950,195 @@ export default {
},
// ...
],
numberDetailColumnList: [
// {
// prop: '',
// label: '',
// type: 0,
// values: '',
// width: 55,
// checkarr: [],
// fixed: true,
// },
// {
// prop: 'number',
// label: '',
// type: 2,
// values: '',
// width: '150',
// checkarr: [],
// fixed: true,
// sortable: true,
// head: false,
// },
{
prop: 'waybillNumber',
label: '运单号',
type: 2,
values: '',
width: '160',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'serviceNumber',
label: '服务号',
type: 2,
values: '',
width: '160',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'orderCode',
label: '订单自编码',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'orderPackageCode',
label: '包条码',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'cargoNumber',
label: '物料编码',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'marketName',
label: '商场名称',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'descriptionGoods',
label: '产品名称',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'stockupStatusName',
label: '备货状态',
type: 4,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'stockupTime',
label: '备货时间',
type: 4,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'conditionsName',
label: '货物类型',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'loadingStatusName',
label: '装车状态',
type: 4,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'loadingTime',
label: '装车时间',
type: 2,
values: '',
width: '200',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'signingStatusName',
label: '签收状态',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'signingTime',
label: '签收时间',
type: 2,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '200',
checkarr: [],
fixed: 'right',
hide: true,
},
// ...
],
numberDetailData:[],
//
signoption: {
height: 'auto',
@ -1554,6 +1791,40 @@ export default {
InformationViewing(val) {
console.log(val, '点击数字接收的值');
console.log('12312312');
const row = val;
let type = 0;
switch (row.column.label) {
case '配送件数':
this.numberTitle = '配送包件详情列表';
type = 1;
console.log('查看配送件数');
break;
case '装车件数':
type = 2;
this.numberTitle = '装车详情列表';
break;
case '未装车件数':
type = 3;
this.numberTitle = '未装车详情列表';
break;
case '签收件数':
type = 4;
this.numberTitle = '签收详情列表';
break;
case '未签收件数':
type = 5;
this.numberTitle = '未签收详情列表';
break;
}
numberDetail(row.row.id,type).then(res=>{
this.numberDetailDialogVisible = true;
const data = res.data.data;
this.numberDetailData = data;
console.log('res--------->',res);
})
},
handlePictureCardPreview(uploadFile) {
console.log(uploadFile);

Loading…
Cancel
Save