Browse Source

自提新增批量取消功能

dev-xx
马远东 1 year ago
parent
commit
7f7188646f
  1. 10
      src/api/aftersales/aftersalesWorkOrder.js
  2. 8
      src/api/distribution/distrilbutionBillLading.js
  3. 28
      src/views/aftersales/aftersalesWorkOrder.vue
  4. 29
      src/views/distribution/inventory/distrilbutionBillLadingList.vue

10
src/api/aftersales/aftersalesWorkOrder.js

@ -475,5 +475,11 @@ export const $_aftersalesCustomerMall = (params) => {
params, params,
}) })
} }
// 解除客服指派绑定
export const $_aftersalesCustomerMallremove = (data) => {
return request({
url: '/api/logpm-aftersales/aftersalesCustomerMall/remove',
method: 'post',
data
})
}

8
src/api/distribution/distrilbutionBillLading.js

@ -210,3 +210,11 @@ export const zeroUpdateMaterial = data => {
data, data,
}); });
}; };
// 自提批量取消
export const $_distrilbutionBillLading = row => {
return request({
url: '/api/logpm-distribution/distrilbutionBillLading/cancelBillLoding',
method: 'post',
data: row,
});
};

28
src/views/aftersales/aftersalesWorkOrder.vue

@ -703,10 +703,10 @@
</template> </template>
</el-dialog> </el-dialog>
<!-- 总部客服经理权限 -->
<el-dialog <el-dialog
v-model="CustomerServicea" v-model="CustomerServicea"
title="客服指派" title="客服默认指派"
width="50%" width="50%"
class="el_Customer" class="el_Customer"
> >
@ -726,7 +726,7 @@
<template #default="slotProps"> <template #default="slotProps">
<template v-if="slotProps.scope.column.label === '操作'"> <template v-if="slotProps.scope.column.label === '操作'">
<div class="ElBtnClass"> <div class="ElBtnClass">
<el-button @click="view(slotProps.scope)">解绑</el-button> <el-button @click="Unbindassignment(slotProps.scope)">解绑</el-button>
<el-button @click="view(slotProps.scope)">设为默认</el-button> <el-button @click="view(slotProps.scope)">设为默认</el-button>
</div> </div>
</template> </template>
@ -754,7 +754,7 @@
</div> </div>
<div> <div>
<el-form-item label="仓库选择"> <!-- <el-form-item label="仓库选择">
<el-select <el-select
v-model="BatchFrom.businessDepartment" v-model="BatchFrom.businessDepartment"
multiple multiple
@ -770,7 +770,7 @@
:value="item.value" :value="item.value"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item> -->
</div> </div>
<template #footer> <template #footer>
<span class="dialog-footer"> <span class="dialog-footer">
@ -830,6 +830,7 @@ import {
$_updateArbitrateStatu, $_updateArbitrateStatu,
$_exportAftersalesWorkOrder, $_exportAftersalesWorkOrder,
$_aftersalesCustomerMall, $_aftersalesCustomerMall,
$_aftersalesCustomerMallremove,
} from '@/api/aftersales/aftersalesWorkOrder'; } from '@/api/aftersales/aftersalesWorkOrder';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
@ -1375,7 +1376,6 @@ const TransportLossNode = ref([
const Statusprocessing = val => { const Statusprocessing = val => {
console.log(columnList[10], '22212as'); console.log(columnList[10], '22212as');
val.forEach(item => { val.forEach(item => {
console.log(item, 'item');
// null // null
// for (const property in item) { // for (const property in item) {
// if (item[property] == null) { // if (item[property] == null) {
@ -1384,7 +1384,6 @@ const Statusprocessing = val => {
// } // }
// //
if (item.workOrderType == 1) { if (item.workOrderType == 1) {
console.log(columnList,'columnList');
item.workOrderTypeNameS = columnList[2].checkarr[0].label; // item.workOrderTypeNameS = columnList[2].checkarr[0].label; //
} else if (item.workOrderType == 2) { } else if (item.workOrderType == 2) {
item.workOrderTypeNameS = columnList[2].checkarr[1].label; // item.workOrderTypeNameS = columnList[2].checkarr[1].label; //
@ -3863,6 +3862,21 @@ const defaultAssignments=()=>{
CustomerLoad.value=false;// CustomerLoad.value=false;//
}) })
} }
//
const Unbindassignment=(val)=>{
console.log(val,'解绑指派');
let data=[
val.row.id
]
console.log(data,'处理好的参数');
$_aftersalesCustomerMallremove({
ids:data.join(',')
}).then(res=>{
console.log(res,'解绑成功');
})
}
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

29
src/views/distribution/inventory/distrilbutionBillLadingList.vue

@ -53,6 +53,12 @@
@click="handleBillAdd" @click="handleBillAdd"
>创建自提</el-button >创建自提</el-button
> >
<el-button
type="primary"
icon="el-icon-plus"
@click="pickupCancellation"
>批量取消</el-button
>
<!-- <el-button <!-- <el-button
type="primary" type="primary"
icon="el-icon-plus" icon="el-icon-plus"
@ -241,6 +247,7 @@ import {
getBillLadingDetail, getBillLadingDetail,
getListOwnNUm, getListOwnNUm,
getBillLadingExport, getBillLadingExport,
$_distrilbutionBillLading
} from '@/api/distribution/distrilbutionBillLading'; } from '@/api/distribution/distrilbutionBillLading';
import { printBatch } from '@/api/distribution/distributionDeliveryList'; import { printBatch } from '@/api/distribution/distributionDeliveryList';
import print from '@/utils/print'; import print from '@/utils/print';
@ -871,6 +878,26 @@ export default {
}, },
}); });
}, },
pickupCancellation(){
if (!this.selectionList.length) {
this.$message.warning('请选择至少一条数据');
return;
}
//
let data={
billLodingIds:''
}
data.billLodingIds=this.selectionList.map(res=>res.id).join(',')
console.log(data,'处理好的值');
this.loading=true;//
$_distrilbutionBillLading(data).then(res=>{
console.log(res,'批量取消车成功');
}).catch(res=>{
}).finally(()=>{
this.loading=false;//
})
},
// //
handleSign(row, num) { handleSign(row, num) {
if (num === 2) { if (num === 2) {
@ -1050,7 +1077,9 @@ export default {
this.view = false; this.view = false;
}, },
selectionChange(list) { selectionChange(list) {
this.selectionList = list; this.selectionList = list;
console.log(this.selectionList,'2');
}, },
selectionClear() { selectionClear() {
this.selectionList = []; this.selectionList = [];

Loading…
Cancel
Save