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

210
src/views/aftersales/aftersalesWorkOrder.vue

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

8
src/views/aftersales/aftersalesWorkOrderInfo.vue

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

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

@ -8,6 +8,9 @@
<el-button type="danger" icon="el-icon-bottom" @click="handleExportInfo" plain <el-button type="danger" icon="el-icon-bottom" @click="handleExportInfo" plain
>导出</el-button >导出</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="primary" icon="el-icon-plus" @click="handleAdd"> </el-button>-->
<!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>--> <!-- <el-button type="danger" icon="el-icon-delete" @click="handleDelete" plain> </el-button>-->
</div> </div>
@ -31,7 +34,8 @@
@selection="selectionChange" @selection="selectionChange"
> >
<template #default="slotProps"> <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> </template>
</tablecmt> </tablecmt>
</el-row> </el-row>
@ -125,6 +129,23 @@
:drawerShow="drawerShow" :drawerShow="drawerShow"
:columnList="columnList" :columnList="columnList"
></edittablehead> ></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> </template>
<script> <script>
@ -141,9 +162,13 @@ import { getDictionaryBiz } from '@/api/system/dict';
import option from '@/option/distribution/distributionParcelList'; import option from '@/option/distribution/distributionParcelList';
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import { downloadXls } from '@/utils/util'; import { downloadXls } from '@/utils/util';
import { showInventoryPackgeCode } from '@/api/distribution/distributionStockList';
import { showOrderPackgeCode } from '@/api/distribution/distributionStockArticle';
export default { export default {
data() { data() {
return { return {
dialogVisibleF:false,
html:'',
columnList: [ columnList: [
{ {
prop: '', prop: '',
@ -337,6 +362,17 @@ export default {
sortable: true, sortable: true,
isshowSummary: true, isshowSummary: true,
}, },
{
prop: '',
label: '操作',
type: 6,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
isshowSummary: true,
},
], ],
drawerShow: false, drawerShow: false,
@ -455,6 +491,48 @@ export default {
}, },
}, },
methods: { 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() { handleExportInfo() {
let row = {}; let row = {};
// //

Loading…
Cancel
Save