Commit 6cabdf3a authored by youjie's avatar youjie

no message

parent b29a350e
......@@ -383,6 +383,7 @@
if(this.addMsg.Type!=10){
this.addMsg.ObjID = null
this.addMsg.ObjIdStr = ''
this.getSupplierGetPageList()
}else{
this.addMsg.ObjID = this.$route.query.id
}
......@@ -444,7 +445,7 @@
pageSize:this.supplierMsg.pageSize,
CustomerName:this.supplierMsg.Name,
CreateBy:"-1",
DepartmentId:"-1",
DepartmentId:"-2",
Brand:-1,
allDepartment:1,
CustomerStatus:"",
......@@ -452,7 +453,7 @@
jySort:"desc",
rtsSort:"",
orderBy:"TradeMoney desc",
ExceptionCount:0
ExceptionCount:0,
}
}
if(this.supplierMsg.Type==9) {
......@@ -501,8 +502,28 @@
url,
msg,
(res) => {
if (res.data.resultCode == 1) {
this.supplierList = res.data.data.pageData
if (res.data.resultCode == 1 &&res.data.data&&res.data.data.pageData.length>0) {
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){
this.addMsg.ObjID = Number(this.supplierList[0].ID)
}
......@@ -521,6 +542,7 @@
{},
(res) => {
if (res.data.resultCode == 1) {
this.ClientTypeList = res.data.data;}
})
},
......
......@@ -573,6 +573,7 @@ export default {
this.addMsg.ObjID = null
this.addMsg.ObjIdStr = ''
this.supplierMsg.Type = this.addMsg.Type
this.getSupplierGetPageList()
},
getObjName(){
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