Browse Source

添加签收按钮

fix_bug_pro20231227
caoyizhong 1 year ago
parent
commit
660dc5f466
  1. 16
      src/api/distribution/distributionSigndetail.js
  2. 19
      src/api/distribution/distributionSignfor.js
  3. 23
      src/views/distribution/signdetail/distributionSigndetail.vue
  4. 23
      src/views/distribution/signfor/distributionSignfor.vue
  5. 19
      src/views/distribution/signfor/distributionSignfortreat.vue

16
src/api/distribution/distributionSigndetail.js

@ -23,6 +23,22 @@ export const getPage = (current, size, params) => {
})
}
/**
* 导出
* @param row
* @returns {AxiosPromise}
*/
export const getSigndetailExport = row => {
return request({
url: '/api/logpm-distribution/signdetail/export-distributionSigndetail',
method: 'get',
params: {
...row
},
responseType: 'blob',
})
};
export const getDetail = (id) => {
return request({
url: '/api/logpm-distribution/signdetail/detail',

19
src/api/distribution/distributionSignfor.js

@ -24,13 +24,28 @@ export const getPage = (current, size, params) => {
}
/**
* 导出
* 导出
* @param row
* @returns {AxiosPromise}
*/
export const getSignforExport = row => {
return request({
url: '/api/logpm-distribution/signfor/export-export-distributionSignfor',
url: '/api/logpm-distribution/signfor/export-distributionSignfor',
method: 'get',
params: {
...row
},
responseType: 'blob',
})
};
/**
* 导出
* @param row
* @returns {AxiosPromise}
*/
export const getSignforExportOwn = row => {
return request({
url: '/api/logpm-distribution/signfor/export-distributionSignforOwn',
method: 'get',
params: {
...row

23
src/views/distribution/signdetail/distributionSigndetail.vue

@ -105,7 +105,7 @@ import {
getDetail,
add,
update,
remove,
remove, getSigndetailExport
} from '@/api/distribution/distributionSigndetail';
import option from '@/option/distribution/distributionSigndetail';
import { mapGetters } from 'vuex';
@ -145,15 +145,15 @@ export default {
//
option: option,
columnList: [
// {
// prop: '',
// label: '',
// type: 0,
// values: '',
// width: 55,
// checkarr: [],
// fixed: true,
// },
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
{
prop: 'serviceNumber',
label: '服务号',
@ -482,7 +482,7 @@ export default {
const ids = this.selectionList.join(',');
row.ids = ids;
// console.log("<><><>>",ids);
getSignforExport(row).then(res => {
getSigndetailExport(row).then(res => {
// console.log(res.data);
downloadXls(res.data, '签收明细数据.xlsx');
});
@ -524,6 +524,7 @@ export default {
},
selectionsc(value) {
console.log(value);
this.selectionList = value.map(item => item.id);
},
delectsolt(scope) {
const { row } = scope;

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

@ -199,7 +199,7 @@ import {
update,
remove,
getPage,
getstatistics, getSignforExport
getstatistics, getSignforExport, getSignforExportOwn
} from '@/api/distribution/distributionSignfor';
import option from '@/option/distribution/distributionSignfor';
import { mapGetters } from 'vuex';
@ -214,15 +214,15 @@ export default {
data() {
return {
columnList: [
// {
// prop: '',
// label: '',
// type: 0,
// values: '',
// width: 55,
// checkarr: [],
// fixed: true,
// },
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
// {
// prop: 'number',
// label: '',
@ -584,7 +584,7 @@ export default {
row.ids = ids;
row.signingStatus = '2';
// console.log("<><><>>",ids);
getSignforExport(row).then(res => {
getSignforExportOwn(row).then(res => {
// console.log(res.data);
downloadXls(res.data, '签收数据.xlsx');
});
@ -631,6 +631,7 @@ export default {
},
selectionsc(value) {
console.log(value);
this.selectionList = value.map(item => item.id);
},
delectsolt(scope) {
const { row } = scope;

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

@ -508,15 +508,15 @@ export default {
SignForPhotos: [],
reservationId: null, //ID
columnList: [
// {
// prop: '',
// label: '',
// type: 0,
// values: '',
// width: 55,
// checkarr: [],
// fixed: true,
// },
{
prop: '',
label: '序号',
type: 0,
values: '',
width: 55,
checkarr: [],
fixed: true,
},
// {
// prop: 'number',
// label: '',
@ -1620,6 +1620,7 @@ export default {
},
selectionsc(value) {
console.log(value);
this.selectionList = value.map(item => item.id);
},
delectsolt(scope) {
const { row } = scope;

Loading…
Cancel
Save