| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
- var Controller = {
- index: function () {
- Table.api.init({
- extend: {
- index_url: 'finishedproduct/index' + location.search,
- table: 'finished_products',
- }
- });
- var table = $("#table");
- table.bootstrapTable({
- url: "finishedproduct/index",
- pk: '_id', // MongoDB默认主键字段
- sortName: '',
- // fixedColumns: true,
- columns: [
- [
- {checkbox: true},
- {field: '订单编号', title: __('订单编号'), operate: 'LIKE'},
- {field: 'jjcp_gdbh', title: __('jjcp_gdbh'), operate: 'LIKE'},
- {field: 'jjcp_cpdh', title: __('jjcp_cpdh'), operate: 'LIKE'},
- {
- field: 'operate',
- title: __('Operate'),
- table: table,
- events: Table.api.events.operate,
- formatter: Table.api.formatter.operate
- }
- ]
- ]
- });
- Table.api.bindevent(table);
- },
- add: function () {
- Controller.api.bindevent();
- },
- edit: function () {
- Controller.api.bindevent();
- }
- };
- return Controller;
- });
|