|
@@ -88,7 +88,7 @@
|
|
|
field: 'orderNumber',
|
|
|
},
|
|
|
{
|
|
|
- width: 90,
|
|
|
+ width: 120,
|
|
|
title: '收货人',
|
|
|
field: 'consignee',
|
|
|
},
|
|
@@ -123,6 +123,12 @@
|
|
|
save: true,
|
|
|
}
|
|
|
},
|
|
|
+ log:{
|
|
|
+ request:{
|
|
|
+ url:'/supply/supplyOutOrderOperateLog/page',
|
|
|
+ method:'GET'
|
|
|
+ }
|
|
|
+ },
|
|
|
form: {
|
|
|
attr: {
|
|
|
size: 'medium',
|
|
@@ -786,7 +792,7 @@
|
|
|
let billConfig = (this as any).$lodash.cloneDeep(this.config.bill);
|
|
|
// billConfig.tool.tools = { save: true, smt: true };
|
|
|
// this.isAdd = true;
|
|
|
- billConfig.tool.tools = { save: true};
|
|
|
+ billConfig.tool.tools = { save: true };
|
|
|
(this.$refs.bill as any).showTab = 'bill';
|
|
|
setTimeout(() => {
|
|
|
(this.$refs.bill as any).setBillConfig(billConfig);
|
|
@@ -1124,7 +1130,7 @@
|
|
|
if (e === 'recycleBin') this.getSelectDeleteList({}); // 回收站数据
|
|
|
if (e === 'bill') {
|
|
|
let billConfig = (this as any).$lodash.cloneDeep(this.config.bill);
|
|
|
- billConfig.tool.tools={};
|
|
|
+ billConfig.tool.tools = {};
|
|
|
billConfig.tool.customTools = [];
|
|
|
(this.$refs.bill as any).setBillConfig(billConfig);
|
|
|
}
|
|
@@ -1141,29 +1147,6 @@
|
|
|
clearInterval(this.timer)
|
|
|
this.getPageList({}, 'all'); // 综合数据
|
|
|
}
|
|
|
- // 分页
|
|
|
- pagination(e : any) {
|
|
|
- console.log('分页 ==> ', e);
|
|
|
- let query : any = (this as any).$refs.bill.getSearchValue(e.type);
|
|
|
- query.pageNo = e.page.pageNum;
|
|
|
- query.pageSize = e.page.pageSize;
|
|
|
- let loading = this.$loading({ target: '.main-container' });
|
|
|
- if (e.type === 'recycleBin') {
|
|
|
- api.selectDeleteList(query, 'supplyOutOrder').then((res : any) => {
|
|
|
- if (res.code === 200) {
|
|
|
- (this.$refs.bill as any).setTabTableValue('recycleBin', res.data.records);
|
|
|
- loading.close()
|
|
|
- } else this.failHandle(res)
|
|
|
- });
|
|
|
- } else {
|
|
|
- api.pageList(query, 'supplyOutOrder').then((res : any) => {
|
|
|
- if (res.code === 200) {
|
|
|
- (this.$refs.bill as any).setTabTableValue(e.type, res.data.records);
|
|
|
- loading.close()
|
|
|
- } else this.failHandle(res)
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
// 获取引单分页数据
|
|
|
getCitationList(query : any) {
|
|
|
let loading = this.$loading({ target: '.main-container' });
|
|
@@ -1208,16 +1191,47 @@
|
|
|
} else this.failHandle(res)
|
|
|
});
|
|
|
}
|
|
|
+ // 分页
|
|
|
+ pagination(e : any) {
|
|
|
+ console.log('分页 ==> ', e);
|
|
|
+ let query : any = (this as any).$refs.bill.getSearchValue(e.type);
|
|
|
+ query.pageNo = e.page.pageNum;
|
|
|
+ query.pageSize = e.page.pageSize;
|
|
|
+ let loading = this.$loading({ target: '.main-container' });
|
|
|
+ if (e.type === 'recycleBin') {
|
|
|
+ api.selectDeleteList(query, 'supplyOutOrder').then((res : any) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ (this.$refs.bill as any).setTabTableValue('recycleBin', res.data.records);
|
|
|
+ loading.close()
|
|
|
+ } else this.failHandle(res)
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ api.pageList(query, 'supplyOutOrder').then((res : any) => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ (this.$refs.bill as any).setTabTableValue(e.type, res.data.records);
|
|
|
+ loading.close()
|
|
|
+ } else this.failHandle(res)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
// 搜索
|
|
|
search(parames : any) {
|
|
|
+ let loading = this.$loading({ target: '.main-container' });
|
|
|
console.log('搜索 ==> ', parames);
|
|
|
let query = parames.value;
|
|
|
if (parames.type === 'source_0') {
|
|
|
this.getCitationList(query);
|
|
|
+ loading.close();
|
|
|
} else {
|
|
|
- if (parames.type === 'draftsBox') query.submitState = 0;// 草稿箱数据
|
|
|
- if (parames.type === 'smt') query.submitState = 1; // 已提交数据
|
|
|
- this.getPageList(query, parames.type) // 获取分页数据
|
|
|
+ if (parames.type === 'recycleBin') {
|
|
|
+ this.getSelectDeleteList(query); // 回收站分页数据
|
|
|
+ loading.close();
|
|
|
+ } else {
|
|
|
+ if (parames.type === 'draftsBox') query.submitState = 0;// 草稿箱数据
|
|
|
+ if (parames.type === 'smt') query.submitState = 1; // 已提交数据
|
|
|
+ this.getPageList(query, parames.type) // 获取分页数据
|
|
|
+ loading.close();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
// 刷新/重置
|