|
@@ -222,7 +222,8 @@
|
|
import {
|
|
import {
|
|
getwarehousetask,
|
|
getwarehousetask,
|
|
postcheckorupdate,
|
|
postcheckorupdate,
|
|
- getstaff
|
|
|
|
|
|
+ getstaff,
|
|
|
|
+ getsponsible,
|
|
} from '@/model/warehouse/index'
|
|
} from '@/model/warehouse/index'
|
|
import { getoreditoutput, outdelete, movestates } from '@/model/tasksport/index'
|
|
import { getoreditoutput, outdelete, movestates } from '@/model/tasksport/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
@@ -255,6 +256,7 @@ export default {
|
|
tableDate: [],
|
|
tableDate: [],
|
|
options:[],
|
|
options:[],
|
|
staffList:[],
|
|
staffList:[],
|
|
|
|
+ list:[],
|
|
// 是否显示
|
|
// 是否显示
|
|
showType: true,
|
|
showType: true,
|
|
// 年
|
|
// 年
|
|
@@ -371,13 +373,25 @@ export default {
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
console.log(this.$route)
|
|
console.log(this.$route)
|
|
- getwarehousetask({
|
|
|
|
|
|
+ var stringList=''
|
|
|
|
+ var arr=[]
|
|
|
|
+ getsponsible({
|
|
|
|
+ compId: localStorage.getItem('ws-pf_compId')
|
|
|
|
+ }).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+
|
|
|
|
+ this.list = response
|
|
|
|
+ for (let i = 0; i < this.list.length; i++) {
|
|
|
|
+ arr.push(this.list[i].warehouseName)
|
|
|
|
+ }
|
|
|
|
+ console.log(arr)
|
|
|
|
+ getwarehousetask({
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchKeyWord: this.searchKeyWord,
|
|
- stringList:this.$route.query.stringList.toString()
|
|
|
|
|
|
+ stringList:arr.toString()
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -389,6 +403,11 @@ export default {
|
|
this.pageSize = response.size
|
|
this.pageSize = response.size
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
})
|
|
})
|
|
|
|
+ // console.log(response)
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
//编辑
|
|
//编辑
|
|
delivery(item) {
|
|
delivery(item) {
|
|
@@ -522,7 +541,7 @@ export default {
|
|
editClick1(row) {
|
|
editClick1(row) {
|
|
console.log(row)
|
|
console.log(row)
|
|
row.editstatus=true
|
|
row.editstatus=true
|
|
- var arr=JSON.parse(this.$route.query.warehouseBaseInfoList)
|
|
|
|
|
|
+ var arr=this.list
|
|
for (let i = 0; i < arr.length; i++) {
|
|
for (let i = 0; i < arr.length; i++) {
|
|
if(arr[i].warehouseName==row.warehouseName){
|
|
if(arr[i].warehouseName==row.warehouseName){
|
|
console.log(arr[i])
|
|
console.log(arr[i])
|