|
@@ -27,7 +27,6 @@
|
|
|
cols: [[ //表头
|
|
|
{field: 'nickname', fixed: 'left', title: '成员姓名', width: 200, align: 'center', rowspan: 2},
|
|
|
{field: 'unit_name', title: '所在单位', align: 'center', width: 200, rowspan: 2},
|
|
|
-
|
|
|
{
|
|
|
field: 'type', title: '成员类型', align: 'center', width: 200, rowspan: 2,
|
|
|
templet: function (a) {
|
|
@@ -48,15 +47,28 @@
|
|
|
return html;
|
|
|
}
|
|
|
},
|
|
|
- {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2},
|
|
|
- {field: 'mobile', title: '手机号码', align: 'center', rowspan: 2},
|
|
|
+ {field: 'unit_type', title: '单位类型', align: 'center', width: 200, rowspan: 2,},
|
|
|
+ {
|
|
|
+ field: 'mobile', title: '联系方式', align: 'center', rowspan: 2, templet: function (d) {
|
|
|
+ if (d.unit_type == "送审单位") {
|
|
|
+ return '';
|
|
|
+ } else {
|
|
|
+ return d.mobile
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{field: 'email', title: '单位邮箱', align: 'center', rowspan: 2},
|
|
|
{
|
|
|
title: '操作', fixed: 'right', align: 'center', width: 150, rowspan: 2, templet: function (d) {
|
|
|
var html = '<span class="layui-btn layui-btn-danger layui-btn-xs" lay-event="remove">移除</span>';
|
|
|
|
|
|
+ if (d.unit_type == "评审机构") {
|
|
|
+ return html;
|
|
|
+ } else {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
- return html;
|
|
|
}
|
|
|
}
|
|
|
]]
|
|
@@ -135,32 +147,32 @@
|
|
|
}
|
|
|
})
|
|
|
break;
|
|
|
- // getSentReview()
|
|
|
- // let call = function () {
|
|
|
- // layer.msg(e.msg);
|
|
|
- // if (e.code == 0) {
|
|
|
- // parent.layui.userTable.reload();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // employeepicker.init({
|
|
|
- // type: 0,
|
|
|
- // department_url: "/admin/project.cost_company/get_department_tree",
|
|
|
- // employee_url: "/admin/project.cost_company/get_employee",
|
|
|
- // callback: function (ids, names, dids, departments) {
|
|
|
- // let callback = function (e) {
|
|
|
- // layer.msg(e.msg);
|
|
|
- // if (e.code == 0) {
|
|
|
- // parent.layui.userTable.reload();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // tool.post("/admin/project.cost_company/add_sent_review_unit", {
|
|
|
- // id: ids,
|
|
|
- // project_id: project_id,
|
|
|
- // }, callback);
|
|
|
- // }
|
|
|
- // })
|
|
|
- // parent.layui.tool.side('/admin/project.cost_company/add_sent_review_unit?project_id=' + project_id, call);
|
|
|
- // break;
|
|
|
+ // getSentReview()
|
|
|
+ // let call = function () {
|
|
|
+ // layer.msg(e.msg);
|
|
|
+ // if (e.code == 0) {
|
|
|
+ // parent.layui.userTable.reload();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // employeepicker.init({
|
|
|
+ // type: 0,
|
|
|
+ // department_url: "/admin/project.cost_company/get_department_tree",
|
|
|
+ // employee_url: "/admin/project.cost_company/get_employee",
|
|
|
+ // callback: function (ids, names, dids, departments) {
|
|
|
+ // let callback = function (e) {
|
|
|
+ // layer.msg(e.msg);
|
|
|
+ // if (e.code == 0) {
|
|
|
+ // parent.layui.userTable.reload();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // tool.post("/admin/project.cost_company/add_sent_review_unit", {
|
|
|
+ // id: ids,
|
|
|
+ // project_id: project_id,
|
|
|
+ // }, callback);
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // parent.layui.tool.side('/admin/project.cost_company/add_sent_review_unit?project_id=' + project_id, call);
|
|
|
+ // break;
|
|
|
case "add_head":
|
|
|
employeepicker.init({
|
|
|
type: 0,
|
|
@@ -218,7 +230,7 @@
|
|
|
layer.confirm('确定要移除该委托单位成员吗?', {icon: 3, title: '提示'}, function (index) {
|
|
|
tool.delete("/admin/project.cost_company/remove_entrust_head", postData, callback);
|
|
|
});
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
layer.msg("该成员不可移除");
|
|
|
}
|
|
|
|
|
@@ -228,8 +240,8 @@
|
|
|
});
|
|
|
|
|
|
//委托单位
|
|
|
- function aaa(callback){
|
|
|
- var customeTable,form = layui.form;
|
|
|
+ function aaa(callback) {
|
|
|
+ var customeTable, form = layui.form;
|
|
|
const a = layer.open({
|
|
|
title: '选择委托单位',
|
|
|
area: ['600px', '580px'],
|
|
@@ -250,7 +262,7 @@
|
|
|
, limit: 10
|
|
|
, cols: [[
|
|
|
{type: 'radio', title: '选择'},
|
|
|
-
|
|
|
+
|
|
|
{field: 'title', title: '委托单位名称', align: 'center'},
|
|
|
{field: 'address', title: ' 评审单位地址', align: 'center'}
|
|
|
]]
|
|
@@ -278,8 +290,8 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- function bbb(e){
|
|
|
- var entrustPeopleTable,form = layui.form;
|
|
|
+ function bbb(e) {
|
|
|
+ var entrustPeopleTable, form = layui.form;
|
|
|
|
|
|
layer.open({
|
|
|
title: '选择委托单位',
|
|
@@ -297,7 +309,7 @@
|
|
|
entrustPeopleTable = table.render({
|
|
|
elem: '#entrustPeopleTable'
|
|
|
, url: '/admin/project.api/get_entrust_people'
|
|
|
- , where:{unit_id:e[0]["id"]}
|
|
|
+ , where: {unit_id: e[0]["id"]}
|
|
|
, page: true //开启分页
|
|
|
, limit: 10
|
|
|
, cols: [[
|
|
@@ -308,7 +320,10 @@
|
|
|
});
|
|
|
//客户搜索提交
|
|
|
form.on('submit(entrustPeople)', function (data) {
|
|
|
- entrustPeopleTable.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
|
|
|
+ entrustPeopleTable.reload({
|
|
|
+ where: {keywords: data.field.keywords, unit_id: e[0]["id"]},
|
|
|
+ page: {curr: 1}
|
|
|
+ });
|
|
|
return false;
|
|
|
});
|
|
|
},
|
|
@@ -339,8 +354,8 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- function getSentReview(){
|
|
|
- var sentReviewTable,form = layui.form;
|
|
|
+ function getSentReview() {
|
|
|
+ var sentReviewTable, form = layui.form;
|
|
|
const a = layer.open({
|
|
|
title: '选择送审单位',
|
|
|
area: ['600px', '580px'],
|
|
@@ -388,8 +403,9 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- function getSentReviewPeople(e){
|
|
|
- var sentReviewPeople,form = layui.form;
|
|
|
+
|
|
|
+ function getSentReviewPeople(e) {
|
|
|
+ var sentReviewPeople, form = layui.form;
|
|
|
|
|
|
layer.open({
|
|
|
title: '选择送审单位',
|
|
@@ -407,7 +423,7 @@
|
|
|
sentReviewPeople = table.render({
|
|
|
elem: '#sentReviewPeople'
|
|
|
, url: '/admin/project.api/get_sent_review_people'
|
|
|
- , where:{unit_id:e[0]["id"]}
|
|
|
+ , where: {unit_id: e[0]["id"]}
|
|
|
, page: true //开启分页
|
|
|
, limit: 10
|
|
|
, cols: [[
|
|
@@ -418,7 +434,10 @@
|
|
|
});
|
|
|
//客户搜索提交
|
|
|
form.on('submit(entrustPeople)', function (data) {
|
|
|
- sentReviewPeople.reload({where: {keywords: data.field.keywords,unit_id:e[0]["id"]}, page: {curr: 1}});
|
|
|
+ sentReviewPeople.reload({
|
|
|
+ where: {keywords: data.field.keywords, unit_id: e[0]["id"]},
|
|
|
+ page: {curr: 1}
|
|
|
+ });
|
|
|
return false;
|
|
|
});
|
|
|
},
|