Browse Source

Merge branch 'dev' of http://47.108.105.48:3000/java_project/logpm_page into dev

fix_bug_pro20231227
zhangsiyu 2 years ago
parent
commit
1fcd8d30d3
  1. 11
      src/views/distribution/deliverylist/distributionDeliveryList.vue
  2. 10
      src/views/distribution/deliverylist/distributionDeliveryListdis.vue
  3. 44
      src/views/distribution/deliverylist/distributionDeliveryListedt.vue
  4. 11
      src/views/distribution/deliverylist/distributionDeliveryListmar.vue
  5. 154
      src/views/distribution/signfor/distributionSignfor.vue
  6. 370
      src/views/distribution/signfor/distributionSignfortreat.vue
  7. 1
      src/views/distribution/turndelivery/deliveryDiscuss.vue

11
src/views/distribution/deliverylist/distributionDeliveryList.vue

@ -312,7 +312,16 @@
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true sortable: true
},
{
prop: 'deliveryListLoadingStatusName',
label: '装车状态',
type: 3,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true
}, },
{ {
prop: 'customersNumber', prop: 'customersNumber',

10
src/views/distribution/deliverylist/distributionDeliveryListdis.vue

@ -323,6 +323,16 @@ export default {
fixed: false, fixed: false,
sortable: true, sortable: true,
}, },
{
prop: 'deliveryListLoadingStatusName',
label: '装车状态',
type: 3,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true
},
{ {
prop: 'customersNumber', prop: 'customersNumber',
label: '配送客户数', label: '配送客户数',

44
src/views/distribution/deliverylist/distributionDeliveryListedt.vue

@ -35,18 +35,21 @@
</el-row> </el-row>
<el-divider>作业时间</el-divider> <el-divider>作业时间</el-divider>
<el-row :gutter="24" class="rows"> <el-row :gutter="24" class="rows">
<el-col :xl="7" :lg="7" :md="8" :sm="24"> <el-col :xl="6" :lg="7" :md="8" :sm="24">
<span>创建时间{{deliverydata.createTime}} </span> <span>创建时间{{deliverydata.createTime}} </span>
</el-col> </el-col>
<!-- <el-col :xl="7" :lg="7" :md="8" :sm="24">--> <!-- <el-col :xl="7" :lg="7" :md="8" :sm="24">-->
<!-- <span>备货时间{{deliverydata.leadTime}} </span>--> <!-- <span>备货时间{{deliverydata.leadTime}} </span>-->
<!-- </el-col> --> <!-- </el-col> -->
<el-col :xl="7" :lg="7" :md="8" :sm="24"> <el-col :xl="6" :lg="7" :md="8" :sm="24">
<span>出库时间{{deliverydata.outboundDate}} </span> <span>出库时间{{deliverydata.outboundDate}} </span>
</el-col> </el-col>
<el-col :xl="7" :lg="7" :md="8" :sm="24"> <el-col :xl="6" :lg="7" :md="8" :sm="24">
<span>装车时间{{deliverydata.loadingTime}} </span> <span>装车时间{{deliverydata.loadingTime}} </span>
</el-col> </el-col>
<el-col :xl="6" :lg="7" :md="8" :sm="24">
<span>配送时间{{deliverydata.taskTime}} </span>
</el-col>
</el-row> </el-row>
<el-divider>配送情况</el-divider> <el-divider>配送情况</el-divider>
<el-row :gutter="24" class="rows"> <el-row :gutter="24" class="rows">
@ -128,20 +131,23 @@
style="width: 100%" style="width: 100%"
:border="option.border" :border="option.border"
> >
<el-table-column type="expand" v-if="option.expand" align="center"></el-table-column> <!-- align="center"-->
<el-table-column type="expand" v-if="option.expand" ></el-table-column>
<template v-for="(item,index) in option.column"> <template v-for="(item,index) in option.column">
<!-- table字段 --> <!-- table字段 -->
<el-table-column v-if="item.hide!==true" <el-table-column v-if="item.hide!==true"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:align="center"
:width="item.width" :width="item.width"
:key="index"> :key="index">
<!-- :align="center"-->
</el-table-column> </el-table-column>
</template> </template>
<!-- 操作栏模块 --> <!-- 操作栏模块 -->
<el-table-column prop="menu" label="操作" :width="250" align="center"> <!-- align="center"-->
<el-table-column prop="menu" label="操作" :width="250" >
<template #="{row}"> <template #="{row}">
<el-button type="primary" text icon="el-icon-view" @click="handleView(row)"> <el-button type="primary" text icon="el-icon-view" @click="handleView(row)">
</el-button> </el-button>
@ -173,16 +179,18 @@
style="width: 100%" style="width: 100%"
:border="option.border" :border="option.border"
> >
<el-table-column type="expand" v-if="ordoption.expand" align="center"></el-table-column> <!-- align="center"-->
<el-table-column type="expand" v-if="ordoption.expand" ></el-table-column>
<template v-for="(item,index) in ordoption.column"> <template v-for="(item,index) in ordoption.column">
<!-- table字段 --> <!-- table字段 -->
<el-table-column v-if="item.hide!==true" <el-table-column v-if="item.hide!==true"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:align="center"
:width="item.width" :width="item.width"
:key="index"> :key="index">
<!-- :align="center"
-->
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
@ -197,16 +205,19 @@
style="width: 100%" style="width: 100%"
:border="option.border" :border="option.border"
> >
<el-table-column type="expand" v-if="wrapoption.expand" align="center"></el-table-column> <!-- align="center"-->center
<el-table-column type="expand" v-if="wrapoption.expand" ></el-table-column>
<template v-for="(item,index) in wrapoption.column"> <template v-for="(item,index) in wrapoption.column">
<!-- table字段 --> <!-- table字段 -->
<el-table-column v-if="item.hide!==true" <el-table-column v-if="item.hide!==true"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:align="center"
:width="item.width" :width="item.width"
:key="index"> :key="index">
<!-- :align="center"-->
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
@ -244,9 +255,10 @@
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:align="center"
:width="item.width" :width="item.width"
:key="index"> :key="index">
<!-- :align="center"-->
</el-table-column> </el-table-column>
</template> </template>
<!-- 操作栏模块 --> <!-- 操作栏模块 -->
@ -316,22 +328,23 @@
:height="height" :height="height"
style="width: 100%" style="width: 100%"
:border="option.border"> :border="option.border">
<el-table-column type="expand" v-if="option.expand" :align="center"></el-table-column> <el-table-column type="expand" v-if="option.expand" align="center"></el-table-column>
<template v-for="(item,index) in wrapoption.column"> <template v-for="(item,index) in wrapoption.column">
<!-- table字段 --> <!-- table字段 -->
<el-table-column v-if="item.hide!==true" <el-table-column v-if="item.hide!==true"
:prop="item.prop" :prop="item.prop"
:label="item.label" :label="item.label"
:show-overflow-tooltip="true" :show-overflow-tooltip="true"
:align="center"
:width="item.width" :width="item.width"
:key="index"> :key="index">
<!-- :align="center"-->
</el-table-column> </el-table-column>
</template> </template>
</el-table> </el-table>
<div class="avue-crud__pagination" style="width:100%"> <div class="avue-crud__pagination" style="width:100%">
<!-- 分页模块 --> <!-- 分页模块 -->
<el-pagination :align="center" <el-pagination
background background
@size-change="wsizeChange" @size-change="wsizeChange"
@current-change="wcurrentChange" @current-change="wcurrentChange"
@ -340,6 +353,7 @@
:page-size="wpage.pageSize" :page-size="wpage.pageSize"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="wpage.total"> :total="wpage.total">
<!-- :align="center"-->
</el-pagination> </el-pagination>
</div> </div>
<!-- 表单按钮 --> <!-- 表单按钮 -->
@ -1075,7 +1089,9 @@
'$route.data': { '$route.data': {
handler(newVal, oldVal) { handler(newVal, oldVal) {
console.log(newVal, oldVal); console.log(newVal, oldVal);
if (this.$router.data){
this.fetchData(); this.fetchData();
}
this.onLoad(this.page); this.onLoad(this.page);
}, },
deep: true, deep: true,

11
src/views/distribution/deliverylist/distributionDeliveryListmar.vue

@ -300,7 +300,16 @@ export default {
], ],
fixed: false, fixed: false,
sortable: true, sortable: true,
},
{
prop: 'deliveryListLoadingStatusName',
label: '装车状态',
type: 3,
values: '',
width: '150',
checkarr: [],
fixed: false,
sortable: true
}, },
{ {
prop: 'customersNumber', prop: 'customersNumber',

154
src/views/distribution/signfor/distributionSignfor.vue

@ -1,6 +1,79 @@
<template> <template>
<basic-container> <basic-container>
<div class="avue-crud"> <div class="avue-crud">
<el-row :hidden="!search" style="padding: 6px 18px">
<!-- 查询模块 -->
<el-form :inline="true" :model="query">
<el-form-item label="配送车次:">
<el-input v-model="query.trainNumber" placeholder="请输入配送车次"></el-input>
</el-form-item>
<el-form-item label="订单编号:">
<el-input v-model="query.stockArticleId" placeholder="请输入订单自编号"></el-input>
</el-form-item>
<!-- <el-form-item label="商城名称:">-->
<!-- <el-input v-model="query.mallName" placeholder="请输入商城名称"></el-input>-->
<!-- </el-form-item>-->
<!-- <el-form-item label="门店名称:">-->
<!-- <el-input v-model="query.storeName" placeholder="请输入门店名称"></el-input>-->
<!-- </el-form-item>-->
<el-form-item label="客户名称:">
<el-input v-model="query.consignee" placeholder="请输入客户名称"></el-input>
</el-form-item>
<el-form-item label="客户电话:">
<el-input v-model="query.deliveryPhone" placeholder="请输入客户电话"></el-input>
</el-form-item>
<el-form-item label="业务类型:">
<el-select v-model="query.businessType" placeholder="请选择业务类型">
<el-option
:key="'1'"
:value="'商配'">商配
</el-option>
<el-option
:key="'2'"
:value="'市配'">市配
</el-option>
</el-select>
<!-- <el-input v-model="query.deliveryType" placeholder="请选择业务类型"></el-input>-->
</el-form-item>
<el-form-item label="配送司机:">
<!-- <el-select v-model="query.deliveryType" placeholder="请选择业务类型">-->
<!-- </el-select>-->
<el-select
v-model="query.deliveryDriverName"
multiple
filterable
placeholder="请输入司机名称"
:loading="loading">
<el-option
v-for="item in driverData"
:key="item.dictKey"
:label="item.dictValue"
:value="item.dictValue">
</el-option>
</el-select>
<!-- <el-input v-model="query.deliveryType" placeholder="请选择业务类型"></el-input>-->
</el-form-item>
<!-- <el-form-item label="司机签收状态:">-->
<!-- <el-select v-model="query.driverSigning" placeholder="请选择业务类型">-->
<!-- <el-option-->
<!-- :value="1">未签收-->
<!-- </el-option>-->
<!-- <el-option-->
<!-- :value="2">已签收-->
<!-- </el-option>-->
<!-- </el-select>-->
<!-- &lt;!&ndash; <el-input v-model="query.querySigningStatus" placeholder="请选择签收状态"></el-input>&ndash;&gt;-->
<!-- </el-form-item>-->
<!-- <el-form-item label="顾客姓名:">-->
<!-- <el-input v-model="query.customerName" placeholder="请输入服务类型"></el-input>-->
<!-- </el-form-item>-->
<!-- 查询按钮 -->
<el-form-item>
<el-button type="primary" icon="el-icon-search" @click="searchChange"> </el-button>
<el-button icon="el-icon-delete" @click="searchReset()"> </el-button>
</el-form-item>
</el-form>
</el-row>
<!-- <tablecmt <!-- <tablecmt
:columnList="columnList" :columnList="columnList"
:tableData="tableData" :tableData="tableData"
@ -158,6 +231,9 @@ import option from '@/option/distribution/distributionSignfor';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict'; import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
import { getVehicleList } from '@/api/basicdata/basicdataVehicle';
import { getDriverList } from '@/api/basicdata/basicdataDriverArtery';
export default { export default {
data() { data() {
@ -184,8 +260,8 @@ export default {
// head: false, // head: false,
// }, // },
{ {
prop: 'consignee', prop: 'trainNumber',
label: '收货人', label: '配送车次',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
@ -195,67 +271,67 @@ export default {
head: false, head: false,
}, },
{ {
prop: 'deliveryPhone', prop: 'stockArticleId',
label: '收货电话', label: '订单自编号',
type: 2, type: 2,
values: '', values: '',
width: '180', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'deliveryAddress', prop: 'warehouseName',
label: '收货地址', label: '配送仓库',
type: 2, type: 2,
values: '', values: '',
width: '300', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'deliveryType', prop: 'consignee',
label: '业务类型', label: '客户名称',
type: 3, type: 2,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'trainNumber', prop: 'deliveryPhone',
label: '配送车次', label: '客户电话',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'stockArticleId', prop: 'deliveryAddress',
label: '订单自编号', label: '客户地址',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '300',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'warehouseName', prop: 'deliveryType',
label: '配送仓库', label: '业务类型',
type: 2, type: 3,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'reservationNum', prop: 'reservationNum',
@ -419,6 +495,7 @@ export default {
option: option, option: option,
// //
data: [], data: [],
driverData: [],
}; };
}, },
mounted() { mounted() {
@ -428,6 +505,7 @@ export default {
* 初始化获取本地缓存的编辑隐藏的列表 * 初始化获取本地缓存的编辑隐藏的列表
* 固定搭配不能更改 * 固定搭配不能更改
*/ */
this.getMasterDriverData();
let checkListnewarr = this.$functions.getStorage(window.location.pathname+'checkList'); let checkListnewarr = this.$functions.getStorage(window.location.pathname+'checkList');
let flexListnewarr = this.$functions.getStorage(window.location.pathname+'flexList'); let flexListnewarr = this.$functions.getStorage(window.location.pathname+'flexList');
let sortlistnewarr = this.$functions.getStorage(window.location.pathname+'sortlist'); let sortlistnewarr = this.$functions.getStorage(window.location.pathname+'sortlist');
@ -529,6 +607,25 @@ export default {
} }
}, },
//
getMasterDriverData() {
return new Promise((rv, rev) => {
getDriverList(1, 10, '').then(res => {
const data = res.data.data;
let po = [];
data.records.forEach(item=>{
let a = {
dictKey: item.id,
dictValue: item.name
};
po.push(a);
})
this.driverData = po;
console.log('===============>', res.data.data);
rv(res.data.data.records);
});
});
},
selectionsc(value) { selectionsc(value) {
console.log(value); console.log(value);
}, },
@ -606,6 +703,17 @@ export default {
this.search = !this.search; this.search = !this.search;
}, },
searchChange() { searchChange() {
if (this.query.businessType) {
let businessType = this.query.businessType;
switch (businessType) {
case '商配':
this.query.deliveryType = '1';
break;
case '市配':
this.query.deliveryType = '2';
break;
}
}
this.onLoad(this.page); this.onLoad(this.page);
}, },
searchReset() { searchReset() {

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

@ -20,12 +20,14 @@
<el-input v-model="query.deliveryPhone" placeholder="请输入客户电话"></el-input> <el-input v-model="query.deliveryPhone" placeholder="请输入客户电话"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="业务类型:"> <el-form-item label="业务类型:">
<el-select v-model="query.deliveryType" placeholder="请选择业务类型"> <el-select v-model="query.businessType" placeholder="请选择业务类型">
<el-option <el-option
:value="1">商配 :key="'1'"
:value="'商配'">商配
</el-option> </el-option>
<el-option <el-option
:value="2">市配 :key="'2'"
:value="'市配'">市配
</el-option> </el-option>
</el-select> </el-select>
<!-- <el-input v-model="query.deliveryType" placeholder="请选择业务类型"></el-input>--> <!-- <el-input v-model="query.deliveryType" placeholder="请选择业务类型"></el-input>-->
@ -255,12 +257,21 @@
</template> </template>
<script> <script>
import { getList, getDetail, add, update, remove ,getPage,getstatistics} from '@/api/distribution/distributionSignfor'; import {
import { update as updatesign } from "@/api/distribution/distributionSignfor"; getList,
getDetail,
add,
update,
remove,
getPage,
getstatistics
} from '@/api/distribution/distributionSignfor';
import { update as updatesign } from '@/api/distribution/distributionSignfor';
import option from '@/option/distribution/distributionSignfor'; import option from '@/option/distribution/distributionSignfor';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { getDictionaryBiz } from '@/api/system/dict'; import { getDictionaryBiz } from '@/api/system/dict';
import dayjs from 'dayjs'; import dayjs from 'dayjs';
export default { export default {
data() { data() {
return { return {
@ -286,15 +297,15 @@ export default {
// head: false, // head: false,
// }, // },
{ {
prop: 'mallName', prop: 'trainNumber',
label: '商城名称', label: '配送车次',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false
}, },
{ {
prop: 'stockArticleId', prop: 'stockArticleId',
@ -305,103 +316,114 @@ export default {
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false
}, },
{ {
prop: 'storeName', prop: 'consignee',
label: '门店名称', label: '客户名称',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false
}, },
{ {
prop: 'consignee', prop: 'deliveryPhone',
label: '客户名称', label: '客户电话',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true
head: false,
}, },
{ {
prop: 'deliveryTypeName', prop: 'deliveryAddress',
label: '业务类型', label: '地址',
type: 3, type: 2,
values: '', values: '',
width: '150', width: '300',
checkarr: [ checkarr: [],
{
label: '市配',
value: '1'
},
{
label: '商配',
value: '2'
},
{
label: '自提',
value: '3'
},
],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
{ {
prop: 'deliveryTime', prop: 'warehouseName',
label: '装车时间', label: '配送仓库',
type: 4, type: 2,
values: '', values: '',
width: '180', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false,
}, },
{ {
prop: 'deliveryPhone', prop: 'mallName',
label: '电话', label: '商城名称',
type: 2, type: 2,
values: '', values: '',
width: '180', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false
}, },
{ {
prop: 'trainNumber', prop: 'storeName',
label: '配送车次', label: '门店名称',
type: 2, type: 2,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true,
head: false, head: false
}, },
{ {
prop: 'deliveryDriverName', prop: 'deliveryTypeName',
label: '配送司机', label: '业务类型',
type: 2, type: 3,
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [
{
label: '市配',
value: '1'
},
{
label: '商配',
value: '2'
},
{
label: '自提',
value: '3'
}
],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
// {
// prop: 'deliveryDriverName',
// label: '',
// type: 2,
// values: '',
// width: '150',
// checkarr: [],
// fixed: false,
// sortable: true
// },
{ {
prop: 'deliveryAddress', prop: 'deliveryTime',
label: '地址', label: '装车时间',
type: 2, type: 4,
values: '', values: '',
width: '300', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
// { // {
// prop: 'signingTime', // prop: 'signingTime',
@ -441,7 +463,7 @@ export default {
width: '180', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
{ {
prop: 'loadedNumber', prop: 'loadedNumber',
@ -451,7 +473,7 @@ export default {
width: '180', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
{ {
prop: 'receivedQuantity', prop: 'receivedQuantity',
@ -461,10 +483,10 @@ export default {
width: '180', width: '180',
checkarr: [], checkarr: [],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
{ {
prop: 'driverSigning', prop: 'signingStatusAll',
label: '司机签收状态', label: '司机签收状态',
type: 3, type: 3,
values: '', values: '',
@ -472,15 +494,15 @@ export default {
checkarr: [ checkarr: [
{ {
value: '2', value: '2',
label: '已签收', label: '已签收'
}, },
{ {
value: '1', value: '1',
label: '未签收', label: '未签收'
}, }
], ],
fixed: false, fixed: false,
sortable: true, sortable: true
}, },
{ {
prop: '', prop: '',
@ -490,8 +512,8 @@ export default {
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: 'right', fixed: 'right',
hide: true, hide: true
}, }
// ... // ...
], ],
// //
@ -655,14 +677,14 @@ export default {
submitBtn: false, // submitBtn: false, //
column: [ column: [
{ {
label: "收货人姓名", label: '收货人姓名',
labelWidth: '150', labelWidth: '150',
span: 11, span: 11,
prop: "consignee", prop: 'consignee',
type: "input", type: 'input',
width:"150px", width: '150px',
align: 'center', align: 'center',
disabled:true, disabled: true
// rules: [{ // rules: [{
// required: true, // required: true,
// message: "", // message: "",
@ -670,52 +692,52 @@ export default {
// }], // }],
}, },
{ {
label: "收货人电话", label: '收货人电话',
prop: "deliveryPhone", prop: 'deliveryPhone',
labelWidth: '150', labelWidth: '150',
span: 11, span: 11,
type: "input", type: 'input',
width:"150px", width: '150px',
align: 'center', align: 'center',
disabled:true, disabled: true
}, },
{ {
label: "收货地址", label: '收货地址',
prop: "deliveryAddress", prop: 'deliveryAddress',
labelWidth: '150', labelWidth: '150',
span: 11, span: 11,
type: "input", type: 'input',
width:"150px", width: '150px',
align: 'center', align: 'center',
disabled:true, disabled: true
}, },
{ {
label: "签收类型", label: '签收类型',
prop: "signingType", prop: 'signingType',
labelWidth: '150', labelWidth: '150',
span: 11, span: 11,
type: "radio", type: 'radio',
width:"150px", width: '150px',
align: 'center', align: 'center',
disabled:true, // disabled:true,
dicData: [ dicData: [
{ {
label: '签收', label: '签收',
value: '1', value: '1'
}, },
{ {
label: '代签收', label: '代签收',
value: '2', value: '2'
} }
], ]
}, },
{ {
label: "司机签收图片", label: '司机签收图片',
prop: "deliverySignPictures", prop: 'deliverySignPictures',
labelWidth: '150', labelWidth: '150',
type: 'upload', type: 'upload',
listType: 'picture-card', listType: 'picture-card',
width:"150px", width: '150px',
span: 15, span: 15,
multiple: true, multiple: true,
align: 'left', align: 'left',
@ -723,43 +745,43 @@ export default {
limit: 5, limit: 5,
propsHttp: { propsHttp: {
res: 'data', res: 'data',
url: 'link', url: 'link'
},
disabled:true,
},
{
label: "复核图片",
prop: "clerkSignPictures",
type: 'upload',
listType: 'picture-card',
dataType: 'string',
labelWidth:'150',
span:15,
multiple:true,
width:"200px",
align:'left',
action: '/blade-resource/oss/endpoint/put-file',
limit: 15,
propsHttp: {
res: 'data',
url: 'link',
}, },
rules: [{ disabled: false
required: true,
message: "请上传图片",
trigger: "blur"
}],
}, },
// {
// label: "",
// prop: "clerkSignPictures",
// type: 'upload',
// listType: 'picture-card',
// dataType: 'string',
// labelWidth:'150',
// span:15,
// multiple:true,
// width:"200px",
// align:'left',
// action: '/blade-resource/oss/endpoint/put-file',
// limit: 15,
// propsHttp: {
// res: 'data',
// url: 'link',
// },
// rules: [{
// required: true,
// message: "",
// trigger: "blur"
// }],
// },
{ {
label: "备注", label: '备注',
prop: "clerkSignRemarks", prop: 'clerkSignRemarks',
labelWidth: '150', labelWidth: '150',
span: 15, span: 15,
type: "input", type: 'input',
width:"150px", width: '150px',
align:'center', align: 'center'
}, }
] ]
}, },
@ -777,7 +799,7 @@ export default {
page: { page: {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
total: 40, total: 40
}, },
// //
form: {}, form: {},
@ -786,7 +808,7 @@ export default {
// //
option: option, option: option,
// //
data: [], data: []
}; };
}, },
mounted() { mounted() {
@ -811,13 +833,13 @@ export default {
}); });
}); });
} else { } else {
let arr=[] let arr = [];
this.columnList.map(item => { this.columnList.map(item => {
if (item.head) { if (item.head) {
arr.push(item.label) arr.push(item.label);
} }
}); });
this.$functions.setStorage(window.location.pathname+'checkList',arr) this.$functions.setStorage(window.location.pathname + 'checkList', arr);
} }
if (flexListnewarr) { if (flexListnewarr) {
this.columnList.map(item => { this.columnList.map(item => {
@ -835,13 +857,13 @@ export default {
}); });
}); });
} else { } else {
let arr=[] let arr = [];
this.columnList.map(item => { this.columnList.map(item => {
if (item.fixed) { if (item.fixed) {
arr.push(item.label) arr.push(item.label);
} }
}); });
this.$functions.setStorage(window.location.pathname+'flexList',arr) this.$functions.setStorage(window.location.pathname + 'flexList', arr);
} }
if (sortlistnewarr) { if (sortlistnewarr) {
this.columnList.map(item => { this.columnList.map(item => {
@ -855,13 +877,13 @@ export default {
}); });
}); });
} else { } else {
let arr=[] let arr = [];
this.columnList.map(item => { this.columnList.map(item => {
if (item.sortable) { if (item.sortable) {
arr.push(item.label) arr.push(item.label);
} }
}); });
this.$functions.setStorage(window.location.pathname+'sortlist',arr) this.$functions.setStorage(window.location.pathname + 'sortlist', arr);
} }
// this.columnListedit=JSON.parse(JSON.stringify(this.columnList)) // this.columnListedit=JSON.parse(JSON.stringify(this.columnList))
}, },
@ -873,11 +895,11 @@ export default {
ids.push(ele.id); ids.push(ele.id);
}); });
return ids.join(','); return ids.join(',');
}, }
}, },
methods: { methods: {
showdrawer(value) { showdrawer(value) {
this.drawerShow=value this.drawerShow = value;
}, },
/** /**
* 弹窗的勾选回调用于更改头部数组 * 弹窗的勾选回调用于更改头部数组
@ -906,16 +928,16 @@ export default {
// this.isDis = true; // this.isDis = true;
this.$refs.signform.validate(valid => { this.$refs.signform.validate(valid => {
if (valid) { if (valid) {
let row = {} let row = {};
row.id = this.signform.id row.id = this.signform.id;
row.clerkSignPictures = this.signform.clerkSignPictures row.clerkSignPictures = this.signform.clerkSignPictures;
row.clerkSignRemarks = this.signform.clerkSignRemarks row.clerkSignRemarks = this.signform.clerkSignRemarks;
row.signingStatus = '2' row.signingStatus = '2';
// if (!!row.id){ // if (!!row.id){
updatesign(row).then(() => { updatesign(row).then(() => {
this.$message({ this.$message({
type: "success", type: 'success',
message: "操作成功!" message: '操作成功!'
}); });
this.signBox = false; this.signBox = false;
this.onLoad(this.page); this.onLoad(this.page);
@ -934,17 +956,17 @@ export default {
console.log(row); console.log(row);
}, },
handleSign(row) { handleSign(row) {
console.log("签收>>>>>>>>>>",row); console.log('签收>>>>>>>>>>', row);
// this.title = ''; // this.title = '';
// this.view = true; // this.view = true;
this.signform = row this.signform = row;
this.signBox = true; this.signBox = true;
// this.wid= row.id // this.wid= row.id
// this.getWrapdetails(this.wpage) // this.getWrapdetails(this.wpage)
}, },
editsolt(scope) { editsolt(scope) {
const { row } = scope; const { row } = scope;
console.log("row>>>>>>>>>>>>>>>>>>>",row); console.log('row>>>>>>>>>>>>>>>>>>>', row);
console.log(row); console.log(row);
this.$router.push({ this.$router.push({
path: '/distribution/signfor/distributionSignforedt', path: '/distribution/signfor/distributionSignforedt',
@ -958,9 +980,9 @@ export default {
console.log(index, row); console.log(index, row);
}, },
selectsc(index, row) { selectsc(index, row) {
this.query[row.prop] =index this.query[row.prop] = index;
if (!index) { if (!index) {
delete this.query[row.prop] delete this.query[row.prop];
} }
this.onLoad(this.page); this.onLoad(this.page);
}, },
@ -968,16 +990,16 @@ export default {
if (!!index) { if (!!index) {
index = dayjs(index).format('YYYY-MM-DD'); index = dayjs(index).format('YYYY-MM-DD');
} }
this.query[row.prop] = index this.query[row.prop] = index;
if (!index) { if (!index) {
delete this.query[row.prop] delete this.query[row.prop];
} }
this.onLoad(this.page); this.onLoad(this.page);
}, },
inputsc(index, row) { inputsc(index, row) {
this.query[row.prop] =index this.query[row.prop] = index;
if (!index) { if (!index) {
delete this.query[row.prop] delete this.query[row.prop];
} }
this.onLoad(this.page); this.onLoad(this.page);
}, },
@ -988,9 +1010,9 @@ export default {
getDictionaryBiz('order_source').then(res => { getDictionaryBiz('order_source').then(res => {
this.orderSourceData = res.data.data; this.orderSourceData = res.data.data;
this.columnList[6].checkarr = res.data.data.map(item => { this.columnList[6].checkarr = res.data.data.map(item => {
item.value=item.dictKey item.value = item.dictKey;
item.label=item.dictValue item.label = item.dictValue;
return item return item;
}); });
}); });
getDictionaryBiz('distribution_signfor_status').then(res => { getDictionaryBiz('distribution_signfor_status').then(res => {
@ -999,9 +1021,9 @@ export default {
getDictionaryBiz('distribution_type').then(res => { getDictionaryBiz('distribution_type').then(res => {
this.deliveryTypeData = res.data.data; this.deliveryTypeData = res.data.data;
this.columnList[4].checkarr = res.data.data.map(item => { this.columnList[4].checkarr = res.data.data.map(item => {
item.value=item.dictKey item.value = item.dictKey;
item.label=item.dictValue item.label = item.dictValue;
return item return item;
}); });
this.onLoad(this.page); this.onLoad(this.page);
}); });
@ -1015,7 +1037,17 @@ export default {
searchChange() { searchChange() {
if (this.query.querySigningStatus) { if (this.query.querySigningStatus) {
this.query.signingStatus = this.query.querySigningStatus; this.query.signingStatus = this.query.querySigningStatus;
}
if (this.query.businessType) {
let businessType = this.query.businessType;
switch (businessType) {
case '商配':
this.query.deliveryType = '1';
break;
case '市配':
this.query.deliveryType = '2';
break;
}
} }
this.onLoad(this.page); this.onLoad(this.page);
}, },
@ -1031,7 +1063,7 @@ export default {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!'
}); });
}); });
} else { } else {
@ -1040,7 +1072,7 @@ export default {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!'
}); });
}); });
} }
@ -1073,7 +1105,7 @@ export default {
this.$confirm('确定将选择数据删除?', { this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning'
}) })
.then(() => { .then(() => {
return remove(this.ids); return remove(this.ids);
@ -1083,7 +1115,7 @@ export default {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!'
}); });
}); });
}, },
@ -1091,7 +1123,7 @@ export default {
this.$confirm('确定将选择数据删除?', { this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning', type: 'warning'
}) })
.then(() => { .then(() => {
return remove(row.id); return remove(row.id);
@ -1100,7 +1132,7 @@ export default {
this.onLoad(this.page); this.onLoad(this.page);
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!', message: '操作成功!'
}); });
}); });
}, },
@ -1127,7 +1159,7 @@ export default {
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
this.query.signingStatus = '1'; this.query.signingStatus = '1';
console.log("this.query>>>>>>>",this.query); console.log('this.query>>>>>>>', this.query);
getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getPage(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const data = res.data.data; const data = res.data.data;
// eslint-disable-next-line no-empty // eslint-disable-next-line no-empty
@ -1159,9 +1191,9 @@ export default {
// this.selectionClear(); // this.selectionClear();
}); });
getstatistics(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => { getstatistics(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
this.statistics = res.data.data this.statistics = res.data.data;
}); });
}, }
}, }
}; };
</script> </script>

1
src/views/distribution/turndelivery/deliveryDiscuss.vue

@ -853,6 +853,7 @@
this.goodsAreaData = fo; this.goodsAreaData = fo;
}); });
}, },
// //
getMasterDriverData() { getMasterDriverData() {
return new Promise((rv, rev) => { return new Promise((rv, rev) => {

Loading…
Cancel
Save