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.

614 lines
25 KiB

3 weeks ago
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  7. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  8. <script src="~/Content/js/select2/select2.min.js"></script>
  9. <style>
  10. #Additem {
  11. margin-left: 45%;
  12. }
  13. #AddTemitem {
  14. margin-right: 45%;
  15. }
  16. </style>
  17. <script>
  18. var _Clos = new Array();
  19. var rfqcode = $.request("rfqcode");
  20. var ID = $.request("ID");
  21. //定义客户
  22. var Cus = '';
  23. function GetDate() {
  24. let currentTime = new Date();
  25. let year = currentTime.getFullYear();
  26. let month = currentTime.getMonth() + 1; // 注意,月份是从0开始的,所以要加1
  27. let date = currentTime.getDate();
  28. let hours = currentTime.getHours();
  29. let minutes = currentTime.getMinutes();
  30. let seconds = currentTime.getSeconds();
  31. // 格式化时间,补全前导零
  32. month = month < 10 ? '0' + month : month;
  33. date = date < 10 ? '0' + date : date;
  34. hours = hours < 10 ? '0' + hours : hours;
  35. minutes = minutes < 10 ? '0' + minutes : minutes;
  36. seconds = seconds < 10 ? '0' + seconds : seconds;
  37. // 拼接时间字符串
  38. let formattedTime = `${year}-${month}-${date} ${hours}:${minutes}:${seconds}`;
  39. return formattedTime;
  40. }
  41. $(function(){
  42. SetCols();
  43. if (ID=='') {
  44. $(".MOPick").css('display', 'none');
  45. }
  46. var Muser = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode'
  47. var now = new Date();
  48. var date = GetDate();
  49. $("#txtMUSER").val(Muser);
  50. $("#txtMTIME").val(date);
  51. InitControl();
  52. InitContro2();
  53. //InitContro3();
  54. ClearTemp();
  55. reloadData();
  56. $("#sel_CodeType").change(function () {
  57. debugger;
  58. $.ajax({
  59. url: "/DHAY/ICSSDN/GetBidCode" + "?" + Math.random(),
  60. dataType: "json",
  61. async: false,
  62. success: function (data) {
  63. if (data.Code != '') {
  64. $("#Code").val(data.Code);
  65. $("#Code").attr("disabled", "disabled");
  66. }
  67. }
  68. });
  69. });
  70. // 确保在绑定事件处理器之后触发change事件
  71. $("#sel_CodeType").val('ST1').trigger("change");
  72. })
  73. function SetCols() {
  74. $.ajax({
  75. url: "/Print/SelectColumnName?" + Math.random(),
  76. dataType: "json",
  77. async: false,
  78. success: function (data) {
  79. var cols = new Array();
  80. var collast = { label: '主键', name: 'ID', width: 150, align: 'left', hidden: true, key: true };
  81. cols.push(collast);
  82. var collast = { label: 'ID', name: 'ID', width: 150, align: 'left', hidden: true };
  83. cols.push(collast);
  84. var collast = { label: '销售订单编码', name: 'SOCode', width: 100, align: 'left' };
  85. cols.push(collast);
  86. var collast = { label: '项次', name: 'Project', width: 100, align: 'left' };
  87. cols.push(collast);
  88. var collast = { label: '客户订单', name: 'CusDoc', width: 100, align: 'left' };
  89. cols.push(collast);
  90. var collast = { label: '料品编码', name: 'INVCODE', width: 100, align: 'left' };
  91. cols.push(collast);
  92. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left', editable: true, editrules: { number: true } };
  93. cols.push(collast);
  94. var collast = { label: '客户编码', name: 'CusCode', width: 100, align: 'left' };
  95. cols.push(collast);
  96. var collast = { label: '客户名称', name: 'CusName', width: 100, align: 'left' };
  97. cols.push(collast);
  98. var collast = { label: '料品名称', name: 'INVNAME', width: 100, align: 'left' };
  99. cols.push(collast);
  100. var collast = { label: '仓库编码', name: 'WHCode', width: 100, align: 'left', hidden: true };
  101. cols.push(collast);
  102. var collast = { label: '仓库名称', name: 'WHCodeName', width: 100, align: 'left', editable: true };
  103. cols.push(collast);
  104. var collast = { label: '批号', name: 'Batch', width: 100, align: 'left', editable: true };
  105. cols.push(collast);
  106. var collast = { label: '可用数量', name: 'KQuantity', width: 100, align: 'left', editable: true, hidden: true };
  107. cols.push(collast);
  108. var collast = { label: '订单剩余数量', name: 'SQuantity', width: 100, align: 'left', editable: true, hidden: true };
  109. cols.push(collast);
  110. var collast = { label: '备注1', name: 'DetailReamrk', width: 150, align: 'left', editable: true };
  111. cols.push(collast);
  112. var collast = { label: '备注2', name: 'DetailReamrk2', width: 150, align: 'left', editable: true };
  113. cols.push(collast);
  114. var collast = { label: '行号', name: 'Sequence', width: 100, align: 'left' };
  115. cols.push(collast);
  116. var collast = { label: '销售订单行号', name: 'SOSequence', width: 100, align: 'left' };
  117. cols.push(collast);
  118. if (data != null && data.length > 0) {
  119. DateList = data;
  120. for (var i = 0; i < data.length; i++) {
  121. var ColName = data[i].ColName;
  122. var ColCode = data[i].ColCode;
  123. if (ColName != "批次") {
  124. var obj = new Array();
  125. obj = {
  126. label: ColName,
  127. name: ColCode,
  128. width: 80,
  129. align: "left"
  130. }
  131. cols.push(obj);
  132. }
  133. }
  134. }
  135. _Clos = cols;
  136. }
  137. });
  138. }
  139. function getJQAllData(list) {
  140. //拿到grid对象
  141. var obj = $(list);
  142. //获取grid表中所有的rowid值
  143. var rowIds = obj.getDataIDs();
  144. //初始化一个数组arrayData容器,用来存放rowData
  145. var arrayData = new Array();
  146. if (rowIds.length > 0) {
  147. for (var i = 0; i < rowIds.length; i++) {
  148. //rowData=obj.getRowData(rowid);//这里rowid=rowIds[i];
  149. arrayData.push(obj.getRowData(rowIds[i]));
  150. }
  151. }
  152. return arrayData;
  153. }
  154. function reloadData() {
  155. $("#gridList").dataGrid({
  156. url: "/WMS/ProductionIssue/GetICSReturnTemporary?rfqno=" + $("#txtApplyNegCode").val() + "&" + Math.random(),
  157. //postData: { rfqno: $("#RFQNO").val() },
  158. height: $(window).height() - 300,
  159. width: $(window).width(),
  160. cellEdit: true,
  161. colModel: _Clos,
  162. cellsubmit: "clientArray",
  163. width: "100%",
  164. //autowidth: true,
  165. rownumbers: true,
  166. viewrecords: true,
  167. multiselect: true,
  168. ondblClickRow: function (rowid, cellname, value) {
  169. var colModel = $("#gridList").jqGrid("getGridParam", "colModel");
  170. var cellIndex = $("#gridList").jqGrid("getGridParam", "iCol");
  171. var cellname = colModel[cellIndex].name;
  172. if (cellname == "SOCode") {
  173. $.modalOpen({
  174. id: "InvCodeSelect",
  175. title: "选择销售订单信息",
  176. url: "/DHAY/ICSSDN/GetInvCode?Cus="+Cus,
  177. width: "80%",
  178. height: "80%",
  179. callBack: function (iframeId) {
  180. var objArr = top.frames[iframeId].submitForm();
  181. var arrayData = getJQAllData("#gridList");
  182. for (var j = 0; j < objArr.length; j++) {
  183. //for (var i = 0; i < arrayData.length; i++) {
  184. // if (objArr[j].ID == arrayData[i].ID) {
  185. // $.modalAlert("该子件已添加!请勿重复添加!");
  186. // return;
  187. // }
  188. //}
  189. $("#gridList").jqGrid('addRowData', objArr[j].ID, objArr[j], 'last');
  190. }
  191. Cus = objArr[0].CusCode;
  192. top.frames[iframeId].Close();
  193. $("#gridList").delRowData(rowid);
  194. }
  195. });
  196. // callBack: function (iframeId) {
  197. // debugger;
  198. // var obj = top.frames[iframeId].submitForm();
  199. // $("#gridList").jqGrid('setCell', rowid, 'SDNCode', obj.SDNCode, 'review-' + rowid);
  200. // $("#gridList").jqGrid('setCell', rowid, 'Sequence', obj.Sequence, 'review-' + rowid);
  201. // $("#gridList").jqGrid('setCell', rowid, 'CusCode', obj.CusCode, 'review-' + rowid);
  202. // $("#gridList").jqGrid('setCell', rowid, 'CusName', obj.CusName, 'review-' + rowid);
  203. // $("#gridList").jqGrid('setCell', rowid, 'InvCode', obj.INVCODE, 'review-' + rowid);
  204. // $("#gridList").jqGrid('setCell', rowid, 'INVNAME', obj.INVNAME, 'review-' + rowid);
  205. // $("#gridList").jqGrid("saveCell", rowid, 1);
  206. // $("#gridList").jqGrid("saveCell", rowid, 2);
  207. // $("#gridList").jqGrid("saveCell", rowid, 3);
  208. // $("#gridList").jqGrid("saveCell", rowid, 4);
  209. // $("#gridList").jqGrid("saveCell", rowid, 5);
  210. // $("#gridList").jqGrid("saveCell", rowid, 6);
  211. // $("#gridList").jqGrid("saveCell", rowid, 7);
  212. // $("#gridList").jqGrid("saveCell", rowid, 8);
  213. // $("#gridList").jqGrid("saveCell", rowid, 9);
  214. // top.frames[iframeId].Close();
  215. // }
  216. //});
  217. } else if (cellname == "WHCodeName") {
  218. $.modalOpen({
  219. id: "GetWHCode",
  220. title: "选择仓库",
  221. url: "/DHAY/ICSCustomerSuppliedReturn/GetWHCode",
  222. width: "50%",
  223. height: "50%",
  224. callBack: function (iframeId) {
  225. debugger;
  226. var obj = top.frames[iframeId].submitForm();
  227. $("#gridList").jqGrid('setCell', rowid, 'WHCode', obj.WarehouseCode, 'review-' + rowid);
  228. $("#gridList").jqGrid('setCell', rowid, 'WHCodeName', obj.WarehouseName, 'review-' + rowid);
  229. $("#gridList").jqGrid("saveCell", rowid, 1);
  230. $("#gridList").jqGrid("saveCell", rowid, 2);
  231. $("#gridList").jqGrid("saveCell", rowid, 3);
  232. $("#gridList").jqGrid("saveCell", rowid, 4);
  233. $("#gridList").jqGrid("saveCell", rowid, 5);
  234. $("#gridList").jqGrid("saveCell", rowid, 6);
  235. $("#gridList").jqGrid("saveCell", rowid, 7);
  236. $("#gridList").jqGrid("saveCell", rowid, 8);
  237. $("#gridList").jqGrid("saveCell", rowid, 9);
  238. top.frames[iframeId].Close();
  239. }
  240. });
  241. } else if (cellname == "Batch") {
  242. var invCode = $("#gridList").jqGrid("getRowData", rowid).INVCODE;
  243. $.modalOpen({
  244. id: "InvCodeSelect",
  245. title: "选择批次信息",
  246. url: "/DHAY/ICSSDN/GetBatch?InvCode=" + invCode,
  247. width: "50%",
  248. height: "50%",
  249. callBack: function (iframeId) {
  250. debugger;
  251. var obj = top.frames[iframeId].submitForm();
  252. $("#gridList").jqGrid('setCell', rowid, 'Batch', obj.BatchCode, 'review-' + rowid);
  253. $("#gridList").jqGrid("saveCell", rowid, 1);
  254. $("#gridList").jqGrid("saveCell", rowid, 2);
  255. $("#gridList").jqGrid("saveCell", rowid, 3);
  256. $("#gridList").jqGrid("saveCell", rowid, 4);
  257. $("#gridList").jqGrid("saveCell", rowid, 5);
  258. $("#gridList").jqGrid("saveCell", rowid, 6);
  259. $("#gridList").jqGrid("saveCell", rowid, 7);
  260. $("#gridList").jqGrid("saveCell", rowid, 8);
  261. $("#gridList").jqGrid("saveCell", rowid, 9);
  262. top.frames[iframeId].Close();
  263. }
  264. });
  265. }
  266. }, afterSaveCell: function (rowid, celname, value, iRow, iCol) {// var datatime = '';
  267. debugger;
  268. // var aaa = "2999-12-31";
  269. if (celname == "Quantity") {
  270. var YLOTQTY = Number(value);
  271. var AllNumber = Number($("#gridList").jqGrid("getCell", rowid, 'KQuantity'));
  272. var SNumber = Number($("#gridList").jqGrid("getCell", rowid, 'SQuantity'));
  273. if (YLOTQTY > AllNumber || YLOTQTY > SNumber) {
  274. $("#gridList").jqGrid('setCell', rowid, 'Quantity', null);
  275. $.modalAlertNew("WMSAPIInfo507");
  276. // 清空已填写的数据
  277. return;
  278. }
  279. }
  280. }
  281. });
  282. }
  283. function btnLook(cellvalue, options, rowObject) {
  284. return cellvalue = "<a class=\"btn btn-primary dropdown-text\" onclick=\"UpLoadClick('" + rowObject.ID + "')\">查看</a>";
  285. }
  286. function UpLoadClick(ID) {
  287. $.modalOpen({
  288. id: "selectDeatil",
  289. title: "查看修改物料",
  290. url: "/WMS/ProductionIssue/SeachInventory?ID=" + ID + "&" + Math.random(),
  291. width: "1000px",
  292. height: "1000px",
  293. callBack: function (iframeId) {
  294. var obj = top.frames[iframeId].submitForm();
  295. var rowData = $("#gridList").jqGrid('getRowData', ID);
  296. rowData.TLZID = obj.TLZID,
  297. rowData.ZJID = obj.ZJID,
  298. rowData.InvCode = obj.InvCode,
  299. rowData.InvName = obj.InvName,
  300. rowData.InvStd = obj.InvStd,
  301. rowData.InvUnit = obj.InvUnit,
  302. rowData.Quantity = obj.Quantity,
  303. rowData.IssueNegQuantity = obj.IssueQuantity,
  304. rowData.Amount = obj.Amount,
  305. rowData.ExtensionID = obj.ExtensionID,
  306. rowData.ProjectCode = obj.ProjectCode,
  307. rowData.BatchCode = obj.BatchCode,
  308. rowData.Version = obj.Version,
  309. rowData.Brand = obj.Brand,
  310. rowData.cFree1 = obj.cFree1,
  311. rowData.cFree2 = obj.cFree2,
  312. rowData.cFree3 = obj.cFree3,
  313. rowData.cFree4 = obj.cFree4,
  314. rowData.cFree5 = obj.cFree5,
  315. rowData.cFree6 = obj.cFree6,
  316. rowData.cFree7 = obj.cFree7,
  317. rowData.cFree8 = obj.cFree8,
  318. rowData.cFree9 = obj.cFree9,
  319. rowData.cFree10 = obj.cFree10
  320. $("#gridList").jqGrid('setRowData', ID, rowData);
  321. $(".unwritten").hide();
  322. top.frames[iframeId].Close();
  323. }
  324. });
  325. }
  326. function guid() {
  327. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  328. var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
  329. return v.toString(16);
  330. });
  331. }
  332. //最后一行新增数据
  333. function AddRowToLast() {
  334. var obj = {
  335. ID: guid(),
  336. WHCode: ""
  337. };
  338. $("#gridList").jqGrid('addRowData', obj.ID, obj, 'last');
  339. $(".unwritten").hide();
  340. }
  341. function DeleteRowToLast() {
  342. debugger;
  343. var rowid = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  344. for (var i = rowid.length - 1; i >= 0; i--) {
  345. $("#gridList").delRowData(rowid[i]);
  346. }
  347. if ($("#gridList").jqGrid('getGridParam', 'records') == 0) {
  348. Cus = '';
  349. }
  350. }
  351. //获取U9单据类型
  352. function InitControl() {
  353. var $CodeType = $("#sel_CodeType");
  354. $CodeType.select2({
  355. allowClear: true,
  356. escapeMarkup: function (m) {
  357. return m;
  358. }
  359. });
  360. $.ajax({
  361. url: "/DHAY/ICSAccessoriesMOApply/GetU9CodeType?type=标准出货" + "&" + Math.random(),
  362. dataType: "json",
  363. async: false,
  364. success: function (data) {
  365. $.each(data, function (index, item) {
  366. $CodeType.append("<option value='" + item.Code + "'>&nbsp;" + item.Name + "</option>");
  367. });
  368. }
  369. });
  370. }
  371. //获取U9部门
  372. function InitContro2() {
  373. var $Dept = $("#sel_Dept");
  374. $Dept.select2({
  375. allowClear: true,
  376. escapeMarkup: function (m) {
  377. return m;
  378. }
  379. });
  380. $.ajax({
  381. url: "/DHAY/ICSCustomerSuppliedReturn/GetU9Department" + "?" + Math.random(),
  382. dataType: "json",
  383. async: false,
  384. success: function (data) {
  385. $.each(data, function (index, item) {
  386. $Dept.append("<option value='" + item.Code + "'>&nbsp;" + item.Name + "</option>");
  387. });
  388. }
  389. });
  390. }
  391. ////获取U9客户
  392. //function InitContro3() {
  393. // var $Custmer = $("#sel_Custmer");
  394. // $Custmer.select2({
  395. // allowClear: true,
  396. // escapeMarkup: function (m) {
  397. // return m;
  398. // }
  399. // });
  400. // $.ajax({
  401. // url: "/DHAY/ICSCustomerSuppliedReturn/GetU9Customer" + "?" + Math.random(),
  402. // dataType: "json",
  403. // async: false,
  404. // success: function (data) {
  405. // $.each(data, function (index, item) {
  406. // $Custmer.append("<option value='" + item.Code + "'>&nbsp;" + item.Name + "</option>");
  407. // });
  408. // }
  409. // });
  410. //}
  411. function ClearTemp() {
  412. $.ajax({
  413. url: "/WMS/ProductionIssue/ClearTemp?" + Math.random(),
  414. datatype: "json",
  415. async: false
  416. })
  417. }
  418. function submitForm() {
  419. $("#gridList").find($("td[aria-describedby='gridList_rn']")).click();
  420. debugger;
  421. if (!$('#form1').formValid()) {
  422. return false;
  423. }
  424. var Remarks = $("#Remarks").val();//备注
  425. var Remarks2 = $("#Remarks2").val();//备注
  426. var CodeType = $("#sel_CodeType").val();//单据类型
  427. var Code = $("#Code").val();//单据号
  428. var MTIME = $("#txtMTIME").val();//单据号
  429. var RoleEnCode = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode'
  430. var WorkPoint = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  431. var Details = [];
  432. SelPerson = "#SelBR_"
  433. var obj_vendor = $("#gridList");
  434. var rowIds_vendor = obj_vendor.getDataIDs();
  435. var arrayData_vendor = new Array();
  436. if (rowIds_vendor.length > 0) {
  437. for (var i = 0; i < rowIds_vendor.length; i++) {
  438. var vendorRowData = obj_vendor.getRowData(rowIds_vendor[i]);
  439. if (vendorRowData.Quantity == "" || vendorRowData.Quantity == 'undefined' || vendorRowData.Quantity-0==0) {
  440. $.modalAlertNew("WMS00089");
  441. return;
  442. }
  443. /* var WHCode = $("" + SelPerson + "" + vendorRowData.ID + "").val();*/
  444. var obj = {
  445. ID: vendorRowData.ID,
  446. Sequence: i + 1,
  447. InvCode: vendorRowData.INVCODE,
  448. Quantity: vendorRowData.Quantity,
  449. WHCode: vendorRowData.WHCode,
  450. DetailReamrk: vendorRowData.DetailReamrk,
  451. DetailReamrk2: vendorRowData.DetailReamrk2,
  452. Batch: vendorRowData.Batch,
  453. CusCode: vendorRowData.CusCode,
  454. CusName: vendorRowData.CusName,
  455. CusDoc: vendorRowData.CusDoc,
  456. ArriveDate: vendorRowData.ArriveDate,
  457. SOCode: vendorRowData.SOCode,
  458. SOSequence: vendorRowData.SOSequence,
  459. Project: vendorRowData.Project,
  460. };
  461. Details.push(obj);
  462. }
  463. var ICSASNs = {
  464. CodeType: CodeType,
  465. Remarks: Remarks,
  466. Remarks2: Remarks2,
  467. Code: Code,
  468. MTIME: MTIME,
  469. User: RoleEnCode,
  470. Detail: Details,
  471. }
  472. $.submitForm({
  473. url: "/DHAY/ICSSDN/SaveICSSDN?" + Math.random(),
  474. param: { ICSASN: JSON.stringify(ICSASNs) },
  475. success: function () {
  476. $.currentWindow().$("#gridList").trigger("reloadGrid");
  477. }
  478. })
  479. }
  480. }
  481. function GetSelectPerson(ID, WHCode) {
  482. debugger;
  483. var str = "";
  484. $.ajax({
  485. url: "/DHAY/ICSCustomerSuppliedReturn/Select_ICSWHCode",
  486. dataType: "json",
  487. async: false,
  488. async: false,
  489. success: function (data) {
  490. if (data != null && data.length > 0) {
  491. $("#SelBR_" + ID + "").find("option").remove();
  492. for (var i = 0; i < data.length; i++) {
  493. $("#SelBR_" + ID + "").append("<option value='" + data[i].WarehouseCode + "'>" + data[i].WarehouseName + "</option>");
  494. }
  495. }
  496. }
  497. });
  498. }
  499. </script>
  500. <form id="form1">
  501. <div class="topPanel" style="height:10px">
  502. <div class="btn-group">
  503. @*<a id="AddItemLot" style="margin-left:3px;" class="btn btn-primary" onclick="btnCreate()"><i class="fa fa-pencil-square-o"></i>添加明细</a>
  504. <a id="refresh" class="btn btn-primary" style="margin-left:3px;" onclick="reloadData()"><span class="glyphicon glyphicon-refresh"></span></a>*@
  505. </div>
  506. </div>
  507. <div style="margin-right: 20px;">
  508. <table class="form">
  509. <thead>主表信息</thead>
  510. <tr>
  511. <th class="formTitle">单据类型:</th>
  512. <td class="formValue">
  513. <select id="sel_CodeType" name="sel_CodeType" class="form-control select2 required" style="width: 230px" placeholder="请选择单据类型..."></select>
  514. <input type="hidden" id="hidetext" />
  515. </td>
  516. <th class="formTitle">单号:</th>
  517. <td class="formValue">
  518. <input id="Code" type="text" readonly="readonly" class="form-control required" />
  519. </td>
  520. </tr>
  521. <tr>
  522. <th class="formTitle">快递单号:</th>
  523. <td class="formValue">
  524. <input type="text" id="Remarks" class="form-control" />
  525. </td>
  526. <th class="formTitle">备注2:</th>
  527. <td class="formValue">
  528. <input type="text" id="Remarks2" class="form-control" />
  529. </td>
  530. </tr>
  531. <tr>
  532. <th class="formTitle">维护人:</th>
  533. <td class="formValue">
  534. <input id="txtMUSER" type="text" readonly="readonly" class="form-control" />
  535. </td>
  536. <th class="formTitle">维护时间:</th>
  537. <td class="formValue">
  538. <input id="txtMTIME" type="text" readonly="readonly" class="form-control" />
  539. </td>
  540. </tr>
  541. </table>
  542. </div>
  543. <div class="gridPanel" style="margin-left:10px">
  544. <span><strong>子表信息</strong></span>
  545. <table id="gridList"></table>
  546. <div style="text-align:center">
  547. <button id="AddRow" class="btn btn-primary" type="button" onclick="AddRowToLast()">添加</button>
  548. <button id="DeleteRow" type="button" class="btn btn-primary" onclick="DeleteRowToLast()">删除</button>
  549. </div>
  550. </div>
  551. </form>