Commit 6cabdf3a authored by youjie's avatar youjie

no message

parent b29a350e
...@@ -383,6 +383,7 @@ ...@@ -383,6 +383,7 @@
if(this.addMsg.Type!=10){ if(this.addMsg.Type!=10){
this.addMsg.ObjID = null this.addMsg.ObjID = null
this.addMsg.ObjIdStr = '' this.addMsg.ObjIdStr = ''
this.getSupplierGetPageList()
}else{ }else{
this.addMsg.ObjID = this.$route.query.id this.addMsg.ObjID = this.$route.query.id
} }
...@@ -444,7 +445,7 @@ ...@@ -444,7 +445,7 @@
pageSize:this.supplierMsg.pageSize, pageSize:this.supplierMsg.pageSize,
CustomerName:this.supplierMsg.Name, CustomerName:this.supplierMsg.Name,
CreateBy:"-1", CreateBy:"-1",
DepartmentId:"-1", DepartmentId:"-2",
Brand:-1, Brand:-1,
allDepartment:1, allDepartment:1,
CustomerStatus:"", CustomerStatus:"",
...@@ -452,7 +453,7 @@ ...@@ -452,7 +453,7 @@
jySort:"desc", jySort:"desc",
rtsSort:"", rtsSort:"",
orderBy:"TradeMoney desc", orderBy:"TradeMoney desc",
ExceptionCount:0 ExceptionCount:0,
} }
} }
if(this.supplierMsg.Type==9) { if(this.supplierMsg.Type==9) {
...@@ -501,8 +502,28 @@ ...@@ -501,8 +502,28 @@
url, url,
msg, msg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1 &&res.data.data&&res.data.data.pageData.length>0) {
this.supplierList = res.data.data.pageData this.supplierList = []
res.data.data.pageData.forEach(x=>{
let Obj = {
Name: '',
ID: 0
}
if(this.supplierMsg.Type==9){
Obj = {
Name: x.EmName,
ID: x.EmployeeId
}
}else{
Obj = {
Name:x.Name,
ID: x.ID
}
}
this.supplierList.push(Obj)
})
// this.supplierList = res.data.data.pageData
console.log(this.supplierMsg.Type,'-------',this.supplierList[0])
if(this.addMsg.ObjIdStr&&this.supplierList.length>0){ if(this.addMsg.ObjIdStr&&this.supplierList.length>0){
this.addMsg.ObjID = Number(this.supplierList[0].ID) this.addMsg.ObjID = Number(this.supplierList[0].ID)
} }
...@@ -521,6 +542,7 @@ ...@@ -521,6 +542,7 @@
{}, {},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ClientTypeList = res.data.data;} this.ClientTypeList = res.data.data;}
}) })
}, },
......
...@@ -573,6 +573,7 @@ export default { ...@@ -573,6 +573,7 @@ export default {
this.addMsg.ObjID = null this.addMsg.ObjID = null
this.addMsg.ObjIdStr = '' this.addMsg.ObjIdStr = ''
this.supplierMsg.Type = this.addMsg.Type this.supplierMsg.Type = this.addMsg.Type
this.getSupplierGetPageList()
}, },
getObjName(){ getObjName(){
this.supplierList.filter(x=>{ this.supplierList.filter(x=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment