qb 1 year ago
parent
commit
c5bb0ed059
  1. 210
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 8
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 88
      src/views/warehouse/parcelList/distributionParcelList.vue

210
src/views/aftersales/aftersalesWorkOrder.vue

@ -83,7 +83,7 @@
<el-button
type="primary"
@click="AddInfo"
v-if="TabPermissions == 0 && UserPermissions == '仓库客服'"
v-if="ButtonPermissions.add"
>
<el-icon><Plus /></el-icon> </el-button
>
@ -93,40 +93,31 @@
<el-button
type="primary"
@click="BatchReturn"
v-if="
(TabPermissions == 0 && UserPermissions == '职能客服') || (TabPermissions == 1 && UserPermissions != '仓库客服' ) || (TabPermissions !=2 && !AppealStatusT)
"
v-if="ButtonPermissions.batchReject"
>批量打回</el-button
>
<el-button
type="primary"
@click="assign"
v-if="TabPermissions == 0 && UserPermissions == '客服经理' && TabPermissions !=2"
v-if="ButtonPermissions.assignment"
>工单指派</el-button
>
<el-button
type="primary"
@click="arbitrate"
v-if="
((TabPermissions == 0 || TabPermissions == 1 ) && TabPermissions !=2) && UserPermissions == '仓库客服'
"
v-if="ButtonPermissions.applyArbitration"
>申请仲裁</el-button
>
<el-button
type="primary"
@click="Batchcompletion"
v-if="
(TabPermissions == 0 || UserPermissions == '职能客服') &&
(TabPermissions == 1 || UserPermissions != '仓库客服')
"
v-if="ButtonPermissions.batchFinish"
>批量完结</el-button
>
<el-button
type="primary"
@click="appeal"
v-if="(TabPermissions !=2 && UserPermissions == '仓库客服') || AppealStatusT "
v-if="ButtonPermissions.appeal"
>申诉</el-button
>
<!-- v-if="details.query.workOrderStatus == 30" -->
@ -1172,7 +1163,7 @@ const AppealStatus = ref(false); //申诉列表状态
const dialogModifyAmount = ref(false); //
const UserPermissions = ref('仓库客服'); //
const TabPermissions = ref(0); //
const AppealStatusT=ref(false);//
const AppealStatusT = ref(false); //
const TabList = ref([
{ name: 0, label: '全部' },
{ name: 1, label: '处理中' },
@ -1304,10 +1295,181 @@ const {
recorddata,
} = toRefs(details);
let s=[
]
// let tab = [
// { label: '', value: 0 },
// { label: '', value: 1 },
// { label: '', value: 2 },
// { label: '', value: 3 },
// { label: '', value: 4 },
// { label: '', value: 5 },
// { label: '', value: 6 },
// { label: '', value: 7 },
// ];
// //
// // 1. 2. 3. 4. 5. 6.
// //
// // 1.
// // 2.
// // 3.
// // value == 0
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// // value==1
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// // value==2
//
// // value==3
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// // value==4
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// // value==5
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// // value==6
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// // value== 7
// 1.
// 2.
// 3.
// 4.
// 5.
// 6.
// UserPermissions
// TabPermissions
//
// const UserPermissions = ref(''); //
// const TabPermissions = ref(0); //
const ButtonPermissions = computed(() => {
// TabPermissions
switch (TabPermissions.value) {
case 0://
return {
add: UserPermissions.value == '仓库客服', //
batchReject: UserPermissions.value == '职能客服',//
assignment: UserPermissions.value == '客服经理',//
applyArbitration: UserPermissions.value == '仓库客服',//
batchFinish: UserPermissions.value == '职能客服',//
appeal: false//
};
case 1://
return {
add: false,//
batchReject: UserPermissions.value != '仓库客服',//
assignment: false,//
applyArbitration: UserPermissions.value == '仓库客服',//
batchFinish:UserPermissions.value != '仓库客服',//
appeal: false//
};
case 2://
return {
add: false,//
batchReject: false,//
assignment: false,//
applyArbitration: false,//
batchFinish:false,//
appeal: UserPermissions.value == '仓库客服' && AppealStatusT.value//
};
case 3://
return {
add: false,//
batchReject: UserPermissions.value == '仓库客服',//
assignment:UserPermissions.value == '客服经理',//
applyArbitration: false,//
batchFinish:false,//
appeal: false//
};
case 4://
return {
add: false,//
batchReject: false,//
assignment:false,//
applyArbitration: false,//
batchFinish:false,//
appeal: UserPermissions.value == '仓库客服'//
};
case 5://
return {
add: false,//
batchReject: false,//
assignment:false,//
applyArbitration: false,//
batchFinish:false,//
appeal:false//
};
case 6://
return {
add: false,//
batchReject: false,//
assignment:false,//
applyArbitration: false,//
batchFinish:false,//
appeal:false//
};
case 7://
return {
add: false,//
batchReject: false,//
assignment:false,//
applyArbitration: false,//
batchFinish:false,//
appeal:false//
};
//
default:
return {
add: false,
batchReject: false,
assignment: false,
applyArbitration: false,
batchFinish: false,
appeal: false
};
}
});
const ProcessingResults = [
@ -2141,7 +2303,7 @@ const appealFn = val => {
//
const AppealTab = val => {
if (val == 0) {
AppealStatusT.value=false;//
AppealStatusT.value = false; //
Tableheaderswitching(columnList); //
console.log('处理完毕');
ProcessingPartyState.value = false; //
@ -2154,8 +2316,8 @@ const AppealTab = val => {
};
IndexTable(data);
} else {
AppealStatusT.value=true;//
console.log(val,'切换申诉列表');
AppealStatusT.value = true; //
console.log(val, '切换申诉列表');
Tableheaderswitching(AppealList); //
AppealList.forEach(item => {
//
@ -2216,7 +2378,7 @@ const TimeoutHandling = val => {
//
const tabChenge = val => {
TabPermissions.value = val; //
AppealStatusT.value=false;//
AppealStatusT.value = false; //
console.log(val, '触发了标签栏');
let data = {};
if (val == 0) {

8
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -1421,16 +1421,10 @@ const EndJump = () => {
.foot_btn {
position: fixed;
bottom: 0;
left: 50%;
transform: translate(0, -50%);
width: 100%;
left: 42%;
height: 40px;
background-color: #ffffff;
border-top: 1px solid #fff;
box-shadow: 3px -1px 1px #ccc;
display: flex;
align-items: center;
padding-left: 10px;
}
:deep(.el-card__body) {
margin-bottom: 50px;

88
src/views/warehouse/parcelList/distributionParcelList.vue

@ -8,6 +8,9 @@
<el-button type="danger" icon="el-icon-bottom" @click="handleExportInfo" plain
>导出</el-button
>
<el-button type="primary" icon="el-icon-view" @click="batchHandQrCode" plain
>批量查看二维码</el-button
>
<!-- <el-button type="primary" icon="el-icon-plus" @click="handleAdd"> </el-button>-->
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
</div>
@ -31,7 +34,8 @@
@selection="selectionChange"
>
<template #default="slotProps">
<el-text size="small" @click="editsolt(slotProps.scope)"> </el-text>
<!-- <el-text size="small" @click="editsolt(slotProps.scope)"> </el-text>-->
<el-text size="small" @click="handleQRCode(slotProps.scope)">查看二维码</el-text>
</template>
</tablecmt>
</el-row>
@ -125,6 +129,23 @@
:drawerShow="drawerShow"
:columnList="columnList"
></edittablehead>
<el-dialog
title="二维码"
:visible.sync="dialogVisibleF"
width="780px"
v-model="dialogVisibleF"
>
<div>
<div v-html="html"></div>
</div>
<span slot="footer" class="dialog-footer">
<!-- <el-button type="primary" @click="ddd"> </el-button>-->
<el-button type="primary" @click="printTemplate"> </el-button>
<el-button @click="dialogVisibleF = false"> </el-button>
</span>
</el-dialog>
</template>
<script>
@ -141,9 +162,13 @@ import { getDictionaryBiz } from '@/api/system/dict';
import option from '@/option/distribution/distributionParcelList';
import { mapGetters } from 'vuex';
import { downloadXls } from '@/utils/util';
import { showInventoryPackgeCode } from '@/api/distribution/distributionStockList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
export default {
data() {
return {
dialogVisibleF:false,
html:'',
columnList: [
{
prop: '',
@ -167,7 +192,7 @@ export default {
sortable: false,
head: false,
},
{
prop: 'warehouse',
label: '仓库',
@ -230,8 +255,8 @@ export default {
sortable: false,
head: false,
},
{
prop: 'firsts',
label: '一级品',
@ -337,7 +362,18 @@ export default {
sortable: true,
isshowSummary: true,
},
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
},
],
drawerShow: false,
height: 0,
@ -455,6 +491,48 @@ export default {
},
},
methods: {
//
batchHandQrCode(){
console.log(' this.selectionList--------->', this.selectionList);
if (this.selectionList.length <=0){
this.$message.warning('请选择包件');
return ;
}
const data = this.selectionList.map((item)=>{
return item.id;
});
let qr = {
ids:data.join(',')
}
this.html = '';
showOrderPackgeCode(qr).then(res => {
// this.orderPackageCode = res.data
console.log(res.data);
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml);
});
this.dialogVisibleF = true;
},
//
handleQRCode(scope){
const { row } = scope;
console.log('执行查看二维码');
this.materialQRCode = row;
console.log('---------------->',row);
let qr = {
ids: row.id,
};
this.html = '';
showOrderPackgeCode(qr).then(res => {
// this.orderPackageCode = res.data
console.log(res.data);
this.html = this.getHtmls(res.data.data.dataList, res.data.data.templateHtml);
});
this.dialogVisibleF = true;
},
handleExportInfo() {
let row = {};
//

Loading…
Cancel
Save