Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
04e76d7c
Commit
04e76d7c
authored
Jun 04, 2019
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
e18552f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
26 deletions
+78
-26
AddSupplierComplaints.vue
src/components/Supplier/AddSupplierComplaints.vue
+47
-20
roomQuery.vue
src/components/Supplier/roomQuery.vue
+31
-6
No files found.
src/components/Supplier/AddSupplierComplaints.vue
View file @
04e76d7c
...
...
@@ -13,7 +13,7 @@
margin-bottom
:
20px
;
}
.Supplier_AC_contDetail
>
p
{
.Supplier_AC_contDetail
>
p
{
background
:
#ccc
;
color
:
#333
;
padding
:
5px
;
...
...
@@ -83,7 +83,7 @@
border
:
1px
#d81e06
solid
;
}
.Supplier_AC_contDetail
>
a
{
.Supplier_AC_contDetail
>
a
{
color
:
#3980c8
!important
;
}
...
...
@@ -129,12 +129,13 @@
</li>
</ul>
</div>
<el-input
type=
"textarea"
style=
"margin-top:10px;"
:rows=
"5"
v-model=
"EditMsg.ComplainContent"
placeholder=
"具体问题描述,以及投诉人的姓名、联系方式"
></el-input>
<el-input
type=
"textarea"
style=
"margin-top:10px;"
:rows=
"5"
v-model=
"EditMsg.ComplainContent"
placeholder=
"具体问题描述,以及投诉人的姓名、联系方式"
></el-input>
</div>
<p
style=
"text-align: center; margin: 10px 0 15px 0;"
>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"SaveData()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"取消"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"保存"
@
click=
"SaveData()"
/>
<input
type=
"button"
class=
"normalBtn"
value=
"取消"
/>
</p>
</div>
</
template
>
...
...
@@ -148,11 +149,11 @@
themeCked
:
[],
//添加修改投诉
EditMsg
:
{
Id
:
0
,
//编号
SupplierId
:
0
,
//供应商编号
TCID
:
0
,
//团队编号
ComplainContentrs
:
''
,
//投诉内容
ComplainContent
:
''
,
//问题描述
Id
:
0
,
//编号
SupplierId
:
0
,
//供应商编号
TCID
:
0
,
//团队编号
ComplainContentrs
:
''
,
//投诉内容
ComplainContent
:
''
,
//问题描述
},
//查询参数
QMsg
:
{
...
...
@@ -164,8 +165,7 @@
ExitCount
:
0
};
},
mounted
()
{
},
mounted
()
{},
methods
:
{
//选取主题内容
getTheme
(
item
)
{
...
...
@@ -192,8 +192,7 @@
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
},
err
=>
{
});
},
err
=>
{});
},
//保存数据
SaveData
(
status
)
{
...
...
@@ -201,7 +200,6 @@
this
.
Error
(
"请选择主题内容"
);
return
false
;
}
//数据组装
this
.
EditMsg
.
ComplainContentrs
=
""
;
let
contentrArr
=
[];
...
...
@@ -213,7 +211,6 @@
if
(
contentrArr
.
length
>
0
)
{
this
.
EditMsg
.
ComplainContentrs
=
contentrArr
.
join
(
","
)
}
this
.
ApiPost2
(
'supplierComplain_Post_SetSupplierComplain'
,
this
.
EditMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
"添加成功"
);
...
...
@@ -224,8 +221,7 @@
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{
});
},
err
=>
{});
},
//获取投诉枚举集合
getEnumeration
()
{
...
...
@@ -241,12 +237,43 @@
}
});
},
GetData
()
{
this
.
ApiPost2
(
'supplierComplain_Get_GetSupplierComplain'
,
{
Id
:
this
.
EditMsg
.
Id
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EditMsg
=
res
.
data
.
data
;
if
(
this
.
EditMsg
.
ComplainContentrs
&&
this
.
EditMsg
.
ComplainContentrs
!=
''
)
{
var
array
=
this
.
EditMsg
.
ComplainContentrs
.
split
(
','
);
if
(
array
!=
null
&&
array
.
length
>
0
)
{
array
.
forEach
(
subItem
=>
{
this
.
themeList
.
forEach
(
x
=>
{
if
(
subItem
==
x
.
Name
)
{
x
.
isCheck
=
true
;
this
.
themeCked
.
push
(
x
.
Id
)
}
});
});
}
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{});
}
},
created
()
{
this
.
EditMsg
.
Id
=
this
.
$route
.
query
.
id
;
this
.
EditMsg
.
Id
=
this
.
$route
.
query
.
Id
;
this
.
QMsg
.
TCID
=
this
.
$route
.
query
.
TCID
;
},
mounted
()
{
this
.
getEnumeration
();
if
(
this
.
QMsg
.
TCID
)
{
this
.
CheckTCID
();
}
if
(
this
.
EditMsg
.
Id
&&
this
.
EditMsg
.
Id
>
0
)
{
this
.
GetData
();
}
}
};
...
...
src/components/Supplier/roomQuery.vue
View file @
04e76d7c
...
...
@@ -114,7 +114,7 @@
<th
width=
"100"
>
操作
</th>
</tr>
<tr
v-if=
"dataList.length==0"
>
<td
colspan=
"
8
"
>
暂无数据
</td>
<td
colspan=
"
9
"
>
暂无数据
</td>
</tr>
<template
v-for=
"(item,index) in dataList"
>
<template
v-for=
"(subItem,subIndex) in item.subList"
>
...
...
@@ -148,8 +148,13 @@
</span>
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.hotelList.length"
>
<a
@
click=
"AddSupplierComplain(subItem.TCNUMS)"
>
添加投诉
</a>
<a
@
click=
""
>
删除
</a>
<a
style=
"text-decoration:underline;color:blue;cursor:pointer"
@
click=
"AddSupplierComplain(subItem.Complain_Extend.Id,subItem.Complain_Extend.TCID)"
>
<
template
v-if=
"subItem.Complain_Extend.Id>0"
>
编辑
</
template
>
<
template
v-else
>
添加
</
template
>
</a>
<a
style=
"text-decoration:underline;color:red;cursor:pointer"
v-if=
"subItem.Complain_Extend.Id>0"
@
click=
"DeleteSupplierComplain(subItem.Complain_Extend.Id)"
>
删除
</a>
</td>
</tr>
</template>
...
...
@@ -177,7 +182,6 @@
HotelId
:
0
,
//日期
DateStr
:
""
,
//出团公司
OutBranchIds
:
[],
LineId
:
14
,
...
...
@@ -227,6 +231,26 @@
}
},
methods
:
{
//删除投诉
DeleteSupplierComplain
(
Id
)
{
if
(
Id
>
0
)
{
var
that
=
this
;
this
.
Confirm
(
"是否此投诉信息删除?"
,
function
()
{
var
msg
=
{
Id
:
Id
};
that
.
ApiPost2
(
"supplierComplain_Post_RemoveSupplierComplain"
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
that
.
Success
(
'删除成功!'
);
that
.
getList
();
}
else
{
that
.
Error
(
res
.
data
.
data
);
}
},
null
);
});
}
},
getLineList
()
{
this
.
ApiPost2
(
"line_post_GetAllList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
...
...
@@ -250,11 +274,12 @@
}
);
},
AddSupplierComplain
(
id
)
{
AddSupplierComplain
(
id
,
tcid
)
{
this
.
$router
.
push
({
name
:
'AddSupplierComplaints'
,
query
:
{
"ID"
:
id
,
Id
:
id
,
TCID
:
tcid
,
blank
:
'y'
,
tab
:
'供应商投诉'
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment