|
@@ -1,4 +1,4 @@
|
|
|
-define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'comment'], function ($, undefined, Backend, Table, Form, Comment) {
|
|
|
+define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'comment', 'selectpage'], function ($, undefined, Backend, Table, Form, Comment, Selectpage) {
|
|
|
|
|
|
var Controller = {
|
|
|
index: function () {
|
|
@@ -28,17 +28,17 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'comment'], function
|
|
|
[
|
|
|
{field: 'unit_name', title: __('Unit_name')},
|
|
|
{field: 'contacts', title: __('Contacts')},
|
|
|
- {field: 'con_position', title: __('Con_position')},
|
|
|
- {field: 'unit_type', title: __('Unit_type')},
|
|
|
- {field: 'number', title: __('Number')},
|
|
|
- {field: 'price', title: '单价', formatter:function (value) {
|
|
|
- return '¥' + value;
|
|
|
- }},
|
|
|
+ {field: 'con_position', title: __('Con_position'),searchable: false},
|
|
|
+ {field: 'unit_type', title: __('Unit_type'),searchable: false},
|
|
|
+ {field: 'number', title: __('Number'),searchable: false},
|
|
|
+ {field: 'depart_id', title: '操作人部门',searchList: $.getJSON('auth/group/departList'),formatter:function (value, row) {
|
|
|
+ return row.usr_depart;
|
|
|
+ }},
|
|
|
{field: 'usr_nickname', title: '操作人'},
|
|
|
{field: 'usr_depart', title: '操作人部门'},
|
|
|
- {field: 'pro_date', title: __('Pro_date'), operate:'RANGE', addclass:'datetimerange'},
|
|
|
- {field: 'ex_date', title: __('Ex_date'), operate:'RANGE', addclass:'datetimerange'},
|
|
|
- {field: 'operate', title: __('Operate'),
|
|
|
+ {field: 'pro_date', title: __('Pro_date'), operate:'RANGE', addclass:'datetimerange',searchable: false},
|
|
|
+ {field: 'ex_date', title: __('Ex_date'),searchable: false, operate:'RANGE', addclass:'datetimerange'},
|
|
|
+ {field: 'operate', title: __('Operate'),searchable: false,
|
|
|
table: table,
|
|
|
events: Controller.api.events.operate,
|
|
|
formatter: Controller.api.formatter.operate
|
|
@@ -51,7 +51,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form', 'comment'], function
|
|
|
Table.api.bindevent(table);
|
|
|
},
|
|
|
add: function () {
|
|
|
-
|
|
|
+ $.ajax({
|
|
|
+ url: 'intention/unitTypeList',
|
|
|
+ type: 'post',
|
|
|
+ dataType: 'json',
|
|
|
+ success: function success(res) {
|
|
|
+ var data = res.rows;
|
|
|
+ $('#c-unit_type').selectPage({
|
|
|
+ data : data,
|
|
|
+ });
|
|
|
+ console.log(data);
|
|
|
+ }
|
|
|
+ });
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
edit: function () {
|