纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

611 lines
26 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. @{
  2. ViewBag.Title = "Index";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <script>
  6. debugger;
  7. var _Clos = new Array();
  8. var _Clos1 = new Array();
  9. var flag = '1';
  10. var mark = '';
  11. var Arguments = '';
  12. $(function () {
  13. SetCols();
  14. gridList();
  15. gridList2(flag);
  16. $("#selShow").change(function () {
  17. debugger;
  18. gridList();
  19. });
  20. });
  21. //function gridList() {
  22. // document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid
  23. // var Type = $("#selShow").val();
  24. // var $gridList = $("#gridList");
  25. // var queryJson = {
  26. // POCode: $("#txt_POCode").val(),
  27. // InvCode: $("#txt_InvCode").val(),
  28. // }
  29. // $gridList.dataGrid({
  30. // url: "/WMS/PickMaterial/GetGridJson?Type=" + Type + "&" + Math.random(),
  31. // postData: { queryJson: JSON.stringify(queryJson) },
  32. // height: 280,
  33. // width: $(window).width() - 500,
  34. // colModel: [
  35. // { label: "主键", name: "ID", hidden: true, key: true },
  36. // { label: '单据号', name: 'Code', width: 120, align: 'left' },
  37. // { label: '单据行号', name: 'Sequence', width: 100, align: 'left' },
  38. // { label: '操作日期', name: 'MTIME', width: 150, align: 'left' },
  39. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  40. // { label: '物料描述', name: 'InvName', width: 100, align: 'left' },
  41. // { label: '辅助描述', name: 'InvDesc', width: 100, align: 'left' },
  42. // { label: '规格型号', name: 'InvStd', width: 100, align: 'left' },
  43. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  44. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  45. // { label: '维护人', name: 'MUSER', width: 80, align: 'left' },
  46. // { label: '维护人名称', name: 'MUSERName', width: 80, align: 'left' },
  47. // { label: '仓库编码', name: 'WHCode', width: 80, align: 'left' },
  48. // { label: '仓库名称', name: 'WarehouseName', width: 80, align: 'left' },
  49. // //{ label: '是否合并拣料', name: 'IsNew', width: 80, align: 'left' },
  50. // ],
  51. // shrinkToFit: false,//宽度自适应
  52. // autowidth: true,
  53. // gridComplete: function () {
  54. // },
  55. // rowNum: 10000,
  56. // autoScroll: true,
  57. // sortname: 'Code',
  58. // sortorder: "desc",
  59. // viewrecords: true,
  60. // multiselect: true,
  61. // });
  62. // $("#warehouse a.btn-default").click(function () {
  63. // $("#warehouse a.btn-default").removeClass("active");
  64. // $(this).addClass("active");
  65. // $('#btn_search').trigger("click");
  66. // });
  67. // $("#btn_search").click(function () {
  68. // var warehouse = $("#warehouse a.active").attr('data-value');
  69. // var queryJson = {
  70. // POCode: $("#txt_POCode").val(),
  71. // InvCode: $("#txt_InvCode").val(),
  72. // }
  73. // $gridList.jqGrid('setGridParam', {
  74. // postData: { queryJson: JSON.stringify(queryJson) },
  75. // }).trigger('reloadGrid');
  76. // });
  77. //}
  78. function SetCols() {
  79. $.ajax({
  80. url: "/Print/SelectColumnName?" + Math.random(),
  81. dataType: "json",
  82. async: false,
  83. success: function (data) {
  84. var cols = new Array();
  85. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  86. cols.push(collast);
  87. var collast = { label: '单据号', name: 'Code', width: 120, align: 'left' };
  88. cols.push(collast);
  89. var collast = { label: '操作日期', name: 'MTIME', width: 150, align: 'left' };
  90. cols.push(collast);
  91. var collast = { label: '维护人', name: 'MUSER', width: 80, align: 'left' };
  92. cols.push(collast);
  93. var collast = { label: '维护人名称', name: 'MUSERName', width: 80, align: 'left' };
  94. cols.push(collast);
  95. var collast = { label: '是否合并拣料', name: 'IsNew', width: 80, align: 'left' };
  96. cols.push(collast);
  97. var cols1 = new Array();
  98. var collast1 = { label: "主键", name: "ID", hidden: true, key: true };
  99. cols1.push(collast1);
  100. var collast1 = { label: '领料合并ID', name: 'MergeID', width: 120, align: 'left' };
  101. cols1.push(collast1);
  102. var collast1 = { label: '单据号', name: 'Code', width: 120, align: 'left' };
  103. cols1.push(collast1);
  104. var collast1 = { label: '料品编码', name: 'InvCode', width: 150, align: 'left' };
  105. cols1.push(collast1);
  106. var collast1 = { label: '物料描述', name: 'InvName', width: 150, align: 'left' };
  107. cols1.push(collast1);
  108. var collast1 = { label: '规格型号', name: 'InvStd', width: 100, align: 'left' };
  109. cols1.push(collast1);
  110. var collast1 = { label: '应发数量', name: 'iQuantity', width: 100, align: 'left' };
  111. cols1.push(collast1);
  112. var collast1 = { label: '单位', name: 'InvUnit', width: 150, align: 'left' };
  113. cols1.push(collast1);
  114. var collast1 = { label: '仓库编码', name: 'WarehouseCode', width: 100, align: 'left' };
  115. cols1.push(collast1);
  116. var collast1 = { label: '库位编码', name: 'LocationCode', width: 100, align: 'left' };
  117. cols1.push(collast1);
  118. var collast1 = { label: '条码库存', name: 'QTY', width: 100, align: 'left' };
  119. cols1.push(collast1);
  120. var collast1 = { label: '条码', name: 'LotNO', width: 100, align: 'left' };
  121. cols1.push(collast1);
  122. if (data != null && data.length > 0) {
  123. DateList = data;
  124. for (var i = 0; i < data.length; i++) {
  125. var ColName = data[i].ColName;
  126. var ColCode = data[i].ColCode;
  127. var obj = new Array();
  128. obj = {
  129. label: ColName,
  130. name: ColCode,
  131. width: 80,
  132. align: "left"
  133. }
  134. if (ColCode != "BatchCode")
  135. cols.push(obj);
  136. cols1.push(obj);
  137. }
  138. }
  139. _Clos = cols;
  140. _Clos1 = cols1;
  141. }
  142. });
  143. }
  144. function gridList() {
  145. document.getElementById("gridPanel").innerHTML = ' <span><strong>详细信息</strong></span> <table id="gridList"></table> ';//重置grid
  146. var Type = $("#selShow").val();
  147. var $gridList = $("#gridList");
  148. var queryJson = {
  149. POCode: $("#txt_POCode").val(),
  150. InvCode: $("#txt_InvCode").val(),
  151. Area: $("#txt_Area").val(),
  152. WHCode: $("#txt_WHCode").val(),
  153. }
  154. $gridList.dataGrid({
  155. url: "/WMS/PickMaterial/GetGridJson?Type=" + Type + "&" + Math.random(),
  156. postData: { queryJson: JSON.stringify(queryJson) },
  157. height: 280,
  158. width: $(window).width() - 500,
  159. colModel: _Clos,
  160. //colModel: [
  161. // { label: "主键", name: "ID", hidden: true, key: true },
  162. // { label: '单据号', name: 'Code', width: 120, align: 'left' },
  163. // { label: '操作日期', name: 'MTIME', width: 150, align: 'left' },
  164. // { label: '维护人', name: 'MUSER', width: 80, align: 'left' },
  165. // { label: '维护人名称', name: 'MUSERName', width: 80, align: 'left' },
  166. // { label: '是否合并拣料', name: 'IsNew', width: 80, align: 'left' },
  167. //],
  168. shrinkToFit: false,//宽度自适应
  169. autowidth: true,
  170. gridComplete: function () {
  171. },
  172. rowNum: 10000,
  173. autoScroll: true,
  174. sortname: 'Code',
  175. sortorder: "desc",
  176. viewrecords: true,
  177. multiselect: true,
  178. subGrid: true, // (1)开启子表格支持
  179. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  180. $("#gridList").jqGrid("setSelection", rowid, false);
  181. bindSubGrid(subgrid_id, rowid)
  182. }
  183. });
  184. function bindSubGrid(subgrid_id, rowid) {
  185. var Type = $("#selShow").val();
  186. $("#gridList").jqGrid("setSelection", rowid, false);
  187. var subgrid_table_id;
  188. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  189. var queryJson = {
  190. POCode: $("#txt_POCode").val(),
  191. InvCode: $("#txt_InvCode").val(),
  192. Area: $("#txt_Area").val(),
  193. WHCode: $("#txt_WHCode").val(),
  194. }
  195. var subgrid_pager_id;
  196. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  197. // (5)动态添加子报表的table和pager
  198. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  199. var Code = $("#gridList").jqGrid('getRowData', rowid).Code;
  200. //var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  201. // (6)创建jqGrid对象
  202. var cols = [{ label: '单据号', name: 'Code', width: 120, align: 'left' },
  203. { label: '单据行号', name: 'Sequence', width: 100, align: 'left' },
  204. { label: '操作日期', name: 'MTIME', width: 150, align: 'left' },
  205. { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  206. { label: '物料描述', name: 'InvName', width: 100, align: 'left' },
  207. { label: '辅助描述', name: 'InvDesc', width: 100, align: 'left' },
  208. { label: '规格型号', name: 'InvStd', width: 100, align: 'left' },
  209. { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  210. { label: '区域', name: 'Area', width: 50, align: 'left' },
  211. { label: '仓库', name: 'WHCode', width: 50, align: 'left' },
  212. { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  213. { label: '已发数量', name: 'IssueQuantity', width: 100, align: 'left' },
  214. { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  215. { label: '维护人', name: 'MUSER', width: 80, align: 'left' },
  216. { label: '维护人名称', name: 'MUSERName', width: 80, align: 'left' },
  217. { label: '仓库编码', name: 'WHCode', width: 80, align: 'left' },
  218. { label: '仓库名称', name: 'WarehouseName', width: 80, align: 'left' },
  219. ];
  220. if (Type == '10') {
  221. cols.push({ label: '目标仓库', name: 'ToWarehouseCode', width: 80, align: 'left' });
  222. cols.push({ label: '目标工厂', name: 'ReceiveWork', width: 80, align: 'left' });
  223. }
  224. $("#" + subgrid_table_id).dataGrid({
  225. cellEdit: true,
  226. url: "/WMS/PickMaterial/GetSubGridJson?Code=" + Code + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  227. colModel: cols,
  228. postData: { queryJson: JSON.stringify(queryJson) },
  229. //colModel: ColModelSub,
  230. shrinkToFit: true,//宽度自适应
  231. //multiselect: true,
  232. prmNames: { search: "search" },
  233. viewrecords: true,
  234. height: "100%",
  235. rowNum: 20,
  236. pager: subgrid_pager_id,
  237. });
  238. }
  239. $("#warehouse a.btn-default").click(function () {
  240. $("#warehouse a.btn-default").removeClass("active");
  241. $(this).addClass("active");
  242. $('#btn_search').trigger("click");
  243. });
  244. $("#btn_search").click(function () {
  245. var warehouse = $("#warehouse a.active").attr('data-value');
  246. var queryJson = {
  247. POCode: $("#txt_POCode").val(),
  248. InvCode: $("#txt_InvCode").val(),
  249. Area: $("#txt_Area").val(),
  250. WHCode: $("#txt_WHCode").val(),
  251. }
  252. $gridList.jqGrid('setGridParam', {
  253. postData: { queryJson: JSON.stringify(queryJson) },
  254. }).trigger('reloadGrid');
  255. });
  256. }
  257. function gridList2(flag) {
  258. debugger;
  259. document.getElementById("gridPanel2").innerHTML = ' <span><strong>合并信息</strong></span> <table id="gridList2"></table>';//重置grid
  260. var Type = $("#selShow").val();
  261. var $gridList = $("#gridList2");
  262. var objArr = '';
  263. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  264. for (var i = 0; i < objList.length; i++) {
  265. var rowId = objList[i];
  266. var rowData = $("#gridList").jqGrid('getRowData', rowId);
  267. if (flag == '1') {
  268. objArr += "'" + rowData.Code + "',";
  269. } else {
  270. objArr += "'" + rowData.Code + "',";
  271. }
  272. }
  273. $gridList.dataGrid({
  274. url: "/WMS/PickMaterial/GetICSMOPickMergeTemp?ID=" + objArr + "&Type=" + Type + "&flag=" + flag + "&" + Math.random(),
  275. height: 500,
  276. width: $(window).width() - 500,
  277. colModel: _Clos1,
  278. //colModel: [
  279. // { label: "主键", name: "ID", hidden: true, key: true },
  280. // { label: '领料合并ID', name: 'MergeID', width: 120, align: 'left' },
  281. // { label: '单据号', name: 'Code', width: 120, align: 'left' },
  282. // { label: '料品编码', name: 'InvCode', width: 150, align: 'left' },
  283. // { label: '物料描述', name: 'InvName', width: 150, align: 'left' },
  284. // { label: '规格型号', name: 'InvStd', width: 100, align: 'left' },
  285. // { label: '应发数量', name: 'iQuantity', width: 100, align: 'left' },
  286. // { label: '单位', name: 'InvUnit', width: 150, align: 'left' },
  287. // { label: '仓库编码', name: 'WarehouseCode', width: 100, align: 'left' },
  288. // { label: '库位编码', name: 'LocationCode', width: 100, align: 'left' },
  289. // { label: '条码库存', name: 'QTY', width: 100, align: 'left' },
  290. // { label: '条码', name: 'LotNO', width: 100, align: 'left' },
  291. //],
  292. shrinkToFit: false,//宽度自适应
  293. autowidth: true,
  294. gridComplete: function () {
  295. },
  296. rowNum: 10000,
  297. sortorder: "desc",
  298. viewrecords: true,
  299. //multiselect: true,
  300. });
  301. $("#warehouse a.btn-default").click(function () {
  302. $("#warehouse a.btn-default").removeClass("active");
  303. $(this).addClass("active");
  304. $('#btn_search').trigger("click");
  305. });
  306. //$("#btn_search").click(function () {
  307. // var warehouse = $("#warehouse a.active").attr('data-value');
  308. // var queryJson = {
  309. // POCode: $("#txt_POCode").val(),
  310. // }
  311. // $gridList.jqGrid('setGridParam', {
  312. // postData: { queryJson: JSON.stringify(queryJson) },
  313. // }).trigger('reloadGrid');
  314. //});
  315. }
  316. function btnMaterial() {
  317. debugger;
  318. var objArr = '';
  319. var arr = [];
  320. mark = '拣料';
  321. flag = '1';
  322. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  323. for (var i = 0; i < objList.length; i++) {
  324. var rowId = objList[i];
  325. var rowData = $("#gridList").jqGrid('getRowData', rowId);
  326. if (rowData.IsNew == "已合并") {
  327. $.modalAlertNew("WMS00091");
  328. return;
  329. }
  330. objArr += "'" + rowData.Code + "',";
  331. objArr = objArr.slice(0, objArr.length - 1);
  332. objArr = "" + objArr + "|";
  333. arr.push(objArr);
  334. }
  335. Arguments = arr;
  336. gridList2(flag);
  337. }
  338. function btnMergeMaterial() {
  339. debugger;
  340. mark = '合并拣料';
  341. var sign = '';
  342. flag = '2';
  343. var Type = $("#selShow").val();
  344. var obj = '';
  345. var objArr = '';
  346. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  347. if (objList.length < 2) {
  348. $.modalAlertNew("WMS00092");
  349. return;
  350. }
  351. for (var i = 0; i < objList.length; i++) {
  352. var rowId = objList[i];
  353. var rowData = $("#gridList").jqGrid('getRowData', rowId);
  354. obj += rowData.Code + ",";
  355. objArr += "'" + rowData.Code + "',";
  356. }
  357. $.ajax({
  358. url: "/WMS/PickMaterial/CheckQty" + "?" + Math.random() + "&objArr=" + objArr,
  359. dataType: "json",
  360. type: "post",
  361. async: false,
  362. success: function (data) {
  363. sign = data.count;
  364. }
  365. });
  366. if (sign == '1') {
  367. $.modalAlertNew("WMS00091");
  368. return;
  369. }
  370. $.submitForm({
  371. url: "/WMS/PickMaterial/MergeMaterial?Type=" + Type + "&" + Math.random(),
  372. param: {
  373. keyValue: obj
  374. },
  375. success: function () {
  376. //$.currentWindow().$("#gridList").trigger("reloadGrid");
  377. gridList2(flag);
  378. }
  379. })
  380. }
  381. function btnCancelMergeMaterial() {
  382. debugger;
  383. mark = '取消合并拣料';
  384. var sign = '';
  385. flag = '2';
  386. var Type = $("#selShow").val();
  387. var obj = '';
  388. var objArr = '';
  389. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  390. if (objList.length < 1) {
  391. $.modalAlertNew("WMS00109");
  392. return;
  393. }
  394. for (var i = 0; i < objList.length; i++) {
  395. var rowId = objList[i];
  396. var rowData = $("#gridList").jqGrid('getRowData', rowId);
  397. obj += rowData.Code + ",";
  398. objArr += "'" + rowData.Code + "',";
  399. }
  400. $.submitForm({
  401. url: "/WMS/PickMaterial/CancelMergeMaterial?Type=" + Type + "&" + Math.random(),
  402. param: {
  403. keyValue: obj
  404. },
  405. success: function () {
  406. //$.currentWindow().$("#gridList").trigger("reloadGrid");
  407. gridList();
  408. }
  409. })
  410. }
  411. function btnPrint() {
  412. debugger;
  413. var mold = '';
  414. if (mark == '') {
  415. $.modalAlertNew("WMS00093");
  416. return;
  417. }
  418. if (mark == '合并拣料') {
  419. var objArr = '';
  420. var arr = [];
  421. var obj_Item1 = $("#gridList2");
  422. var rowIds_Item1 = obj_Item1.getDataIDs();
  423. var arrayData_Item1 = new Array();
  424. var Enables = '';
  425. if (rowIds_Item1.length > 0) {
  426. debugger;
  427. for (var i = 0; i < rowIds_Item1.length; i++) {
  428. var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[0]);
  429. objArr += "'" + RowData_Item1.MergeID + "',";
  430. objArr = objArr.slice(0, objArr.length - 1);
  431. objArr = "" + objArr + "|";
  432. arr.push(objArr);
  433. }
  434. Arguments = arr;
  435. mold = 'HBJL00001';
  436. }
  437. }
  438. if (mark == '拣料') {
  439. var objArr = '';
  440. var arr = [];
  441. var obj_Item1 = $("#gridList2");
  442. var rowIds_Item1 = obj_Item1.getDataIDs();
  443. var arrayData_Item1 = new Array();
  444. var Enables = '';
  445. if (rowIds_Item1.length > 0) {
  446. debugger;
  447. for (var i = 0; i < rowIds_Item1.length; i++) {
  448. var RowData_Item1 = obj_Item1.getRowData(rowIds_Item1[0]);
  449. objArr += "'" + RowData_Item1.Code + "',";
  450. objArr = objArr.slice(0, objArr.length - 1);
  451. objArr = "" + objArr + "|";
  452. arr.push(objArr);
  453. }
  454. Arguments = arr;
  455. mold = 'JL00001';
  456. }
  457. }
  458. $.modalOpen({
  459. id: "PrintLot",
  460. title: "打印",
  461. url: "/WMS/Print/PrintView?Arguments=" + encodeURI(encodeURI(Arguments)) + "&mold=" + mold + "&" + Math.random(),
  462. width: "550px",
  463. height: "1000px",
  464. callBack: function (iframeId) {
  465. top.frames[iframeId].submitForm();
  466. }
  467. });
  468. }
  469. function fullscreen() {
  470. var docElm = document.documentElement;
  471. if (docElm.requestFullscreen) {
  472. docElm.requestFullscreen();
  473. } else if (docElm.mozRequestFullScreen) {
  474. docElm.mozRequestFullScreen();
  475. } else if (docElm.webkitRequestFullScreen) {
  476. docElm.webkitRequestFullScreen();
  477. } else if (docElm.msRequestFullscreen) {
  478. docElm.msRequestFullscreen();
  479. }
  480. $(window).bind('resize', function () {
  481. $("#gridList").setGridWidth($(window).width());
  482. }).trigger('resize');
  483. $(window).bind('resize', function () {
  484. $("#gridList").setGridHeight($(window).height());
  485. }).trigger('resize');
  486. }
  487. </script>
  488. <div class="topPanel" style="height:120px;">
  489. <div class="toolbar">
  490. <div class="btn-group">
  491. <a id="NF-Material" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnMaterial()"><i class="fa fa-pencil-square-o"></i>拣料</a>
  492. <a id="NF-MergeMaterial" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnMergeMaterial()"><i class="fa fa-pencil-square-o"></i>合并拣料</a>
  493. <a id="NF-CancelMergeMaterial" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnCancelMergeMaterial()"><i class="fa fa-pencil-square-o"></i>取消合并拣料</a>
  494. <a id="NF-Print" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnPrint()"><i class="fa fa-pencil-square-o"></i>打印</a>
  495. <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
  496. </div>
  497. <script>$('.toolbar').authorizeButton()</script>
  498. </div>
  499. <div class="search">
  500. <table>
  501. <tr>
  502. <td>
  503. <label>&nbsp;&nbsp;&nbsp;类型:</label>
  504. </td>
  505. <td>
  506. <div class="input-group">
  507. <select id="selShow" name="F_Target" class="form-control" style="width: 100px;">
  508. @*<option value="1" selected="selected">工单备料</option>*@
  509. <option value="2" selected="selected">工单领料</option>
  510. @*<option value="3" selected="selected">工单材料出库</option>*@
  511. @*<option value="4" selected="selected">委外备料</option>*@
  512. <option value="5" selected="selected">委外领料</option>
  513. @*<option value="6" selected="selected">委外材料出库</option>*@
  514. <option value="7" selected="selected">销售发货</option>
  515. <option value="8" selected="selected">其它出库</option>
  516. @*<option value="9" selected="selected">借用</option>*@
  517. <option value="10" selected="selected">物料调拨</option>
  518. @*<option value="11" selected="selected">两步调出</option>*@
  519. </select>
  520. </div>
  521. </td>
  522. <td style="text-align:right;"><label class="lglabel" for="txt_POCode">&nbsp;&nbsp;&nbsp;单据号</label>:</td>
  523. <td>
  524. <div class="input-group">
  525. <input id="txt_POCode" type="text" class="form-control" style="width: 150px;">
  526. </div>
  527. </td>
  528. <td style="text-align:right;"><label class="lglabel" for="txt_POCode">&nbsp;&nbsp;&nbsp;区域</label>:</td>
  529. <td>
  530. <div class="input-group">
  531. <input id="txt_Area" type="text" class="form-control" style="width: 150px;">
  532. </div>
  533. </td>
  534. </tr>
  535. <tr>
  536. <td style="text-align:right;"><label class="lglabel" for="txt_POCode">&nbsp;&nbsp;&nbsp;仓库</label>:</td>
  537. <td>
  538. <div class="input-group">
  539. <input id="txt_WHCode" type="text" class="form-control" style="width: 150px;">
  540. </div>
  541. </td>
  542. <td style="text-align:right;"><label class="lglabel" for="txt_InvCode">&nbsp;&nbsp;&nbsp;料品编码</label>:</td>
  543. <td>
  544. <div class="input-group">
  545. <input id="txt_InvCode" type="text" class="form-control" style="width: 150px;">
  546. </div>
  547. </td>
  548. <td>
  549. <span class="input-group-btn">
  550. <button id="btn_search" type="button" class="btn btn-primary"><i class="fa fa-search"></i></button>
  551. </span>
  552. </td>
  553. </tr>
  554. </table>
  555. </div>
  556. </div>
  557. <div class="gridPanel" id="gridPanel">
  558. <span><strong>详细信息</strong></span>
  559. <table id="gridList"></table>
  560. </div>
  561. <div class="gridPanel" id="gridPanel2">
  562. <span><strong>合并信息</strong></span>
  563. <table id="gridList2"></table>
  564. </div>