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.

682 lines
28 KiB

2 months ago
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Index.cshtml";
  5. }
  6. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  7. <link href="~/Content/js/dialog/dialog.css" rel="stylesheet" />
  8. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  9. <script src="~/Content/js/select2/select2.min.js"></script>
  10. <script>
  11. $(function () {
  12. $.ajax({
  13. url: "/SRM/InvAdd/ClearInvTemp?" + Math.random(),
  14. async: false,
  15. datatype: "json"
  16. })
  17. gridList();
  18. })
  19. function gridList() {
  20. debugger;
  21. //var status = "";
  22. //if ($("#AddStatus").prop("checked") == true)
  23. // status += "'New',"
  24. //if ($("#PubStatus").prop("checked") == true)
  25. // status += "'Publish',"
  26. ////if ($("#ExamStatus").prop("checked") == true)
  27. //// status += "'Examine',"
  28. ////if ($("#HasExamStatus").prop("checked") == true)
  29. //// status += "'HasExamine',"
  30. //if ($("#CloseStatus").prop("checked") == true)
  31. // status += "'Close,'"
  32. var queryJson = {
  33. PruOrganize: $("#txt_poorg").val(),
  34. PruTeam: $("#txt_PoTeam").val(),
  35. RFQCode: $("#txt_RFQNO").val(),
  36. RFQName: $("#txt_INVName").val(),
  37. SupplierCode: $("#txt_VenCode").val(),
  38. SupplierName: $("#txt_VenName").val(),
  39. InvCode: $("#txt_INVCode").val(),
  40. InvName: $("#txt_INVName").val(),
  41. InvStd: $("#txt_INVStd").val(),
  42. TimeFrom: $("#txt_FromDate").val(),
  43. TimeTo: $("#txt_EndDate").val(),
  44. ReleaseState: $("#selShow").val(),
  45. }
  46. $("#gridList").dataGrid({
  47. cellEdit: true,
  48. url: "/SRM/PriceInquiry/GetGridJson" + "?" + Math.random(),
  49. datatype:'json',
  50. postData: { JSON: JSON.stringify(queryJson) },
  51. height: $(window).height() - 270,
  52. width: $(window).width() - 300,
  53. loadonce:false,
  54. colModel: [
  55. {
  56. label: '操作', width: 130, align: 'center',
  57. formatter: btnLook,
  58. },
  59. { label: '询价单号', name: 'RFQCODE', width: 120, align: 'left', key: true },
  60. { label: '询价单名称', name: 'RFQNAME', width: 150, align: 'left' },
  61. {
  62. label: '状态', name: 'STATUS', width: 60, align: 'left',
  63. formatter: function (cellvalue, options, rowObject) {
  64. debugger;
  65. var html = "";
  66. if (rowObject.STATUS == "新增") {
  67. html += '<span class=\'label label-success\'>新增</span>';
  68. } else if (rowObject.STATUS == "发布") {
  69. html += '<span class=\'label label-warning\'>发布</span>';
  70. } else if (rowObject.STATUS == "关闭") {
  71. html += '<span class=\'label label-danger\'>关闭</span>';
  72. } else if (rowObject.STATUS == "定价通过") {
  73. html += '<span class=\'label label-success\'>定价通过</span>';
  74. } else if (rowObject.STATUS == "OA待审核") {
  75. html += '<span class=\'label label-warning\'>OA待审核</span>';
  76. } else if (rowObject.STATUS == "OA已审核") {
  77. html += '<span class=\'label label-success\'>OA已审核</span>';
  78. } else if (rowObject.STATUS == "OA审核拒绝") {
  79. html += '<span class=\'label label-danger\'>OA审核拒绝</span>';
  80. } else if (rowObject.STATUS == "未分配") {
  81. html += '<span class=\'label label-info\'>未分配</span>';
  82. } else if (rowObject.STATUS == "已分配") {
  83. html += '<span class=\'label label-success\'>已分配</span>';
  84. } else if (rowObject.STATUS == "退回") {
  85. html += '<span class=\'label label-danger\'>退回</span>';
  86. }
  87. return cellvalue = html;
  88. }
  89. },
  90. { label: 'HIDDSTATUS', name: 'HIDDSTATUS', width: 150, align: 'left',hidden:true },
  91. { label: '开始日期', name: 'BEGINDATE', width: 150, align: 'left', hidden: true },
  92. { label: 'ADDITION1', name: 'ADDITION1', width: 150, align: 'left', hidden: true },
  93. { label: 'ADDITION2', name: 'ADDITION2', width: 150, align: 'left', hidden: true },
  94. //{ label: '采购组织', name: 'PURORG', width: 100, align: 'left' },
  95. //{ label: '采购负责人', name: 'PURTEAM', width: 100, align: 'left' },
  96. { label: '单据创建时间', name: 'LOGDATE', width: 150, align: 'left' },
  97. { label: '维护人', name: 'LOGUSER', width: 100, align: 'left' },
  98. { label: '站点', name: 'workpoint', width: 90, align: 'left' },
  99. ],
  100. pager: "#gridPager",
  101. sortorder: "desc",
  102. sortname: 'CREATETIME ',
  103. viewrecords: true,
  104. multiselect: true,
  105. gridComplete: function () {
  106. },
  107. rowNum: 10000,
  108. subGrid: true, // (1)开启子表格支持
  109. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  110. $("#gridList").jqGrid("setSelection", rowid, false);
  111. bindSubGrid(subgrid_id, rowid)
  112. },
  113. });
  114. }
  115. function bindSubGrid(subgrid_id, rowid) {
  116. $("#gridList").jqGrid("setSelection", rowid, false);
  117. var subgrid_table_id;
  118. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  119. var subgrid_pager_id;
  120. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  121. // (5)动态添加子报表的table和pager
  122. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  123. var RFQCODE = $("#gridList").jqGrid('getRowData', rowid).RFQCODE;
  124. var WorkPoint = $("#gridList").jqGrid('getRowData', rowid).workpoint;
  125. // (6)创建jqGrid对象
  126. $("#" + subgrid_table_id).dataGrid({
  127. cellEdit: true,
  128. url: "/SRM/SORRFQ/GetSubGridJson?RFQCODE=" + RFQCODE + "&WorkPoint=" + WorkPoint + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  129. colModel: [
  130. { label: '主键', name: 'ID', width: 150, align: 'left', hidden: true, key: true },
  131. { label: '物料代码', name: 'itemcode', width: 150, align: 'left' },
  132. { label: '物料描述', name: 'itemname', width: 150, align: 'left' },
  133. { label: '物料规格', name: 'invstd', width: 150, align: 'lreft' },
  134. { label: '单位', name: 'unit', width: 50, align: 'left' },
  135. { label: '询价备注', name: 'memo', width: 150, align: 'left' },
  136. { label: '预计需求量', name: 'REQUESTQUANTITY', width: 50, align: 'left' },
  137. ],
  138. multiselect: true,
  139. pager: subgrid_pager_id,
  140. //shrinkToFit: true,//宽度自适应
  141. prmNames: { search: "search" },
  142. viewrecords: true,
  143. height: "100%",
  144. rowNum: 20
  145. });
  146. }
  147. function Search() {
  148. debugger;
  149. //var status = "";
  150. //if ($("#AddStatus").prop("checked") == true)
  151. // status += "'New',"
  152. //if ($("#PubStatus").prop("checked") == true)
  153. // status += "'Publish',"
  154. ////if ($("#ExamStatus").prop("checked") == true)
  155. //// status += "'Examine',"
  156. ////if ($("#HasExamStatus").prop("checked") == true)
  157. //// status += "'HasExamine',"
  158. //if ($("#CloseStatus").prop("checked") == true)
  159. // status += "'Close',"
  160. var queryJson = {
  161. PruOrganize: $("#txt_poorg").val(),
  162. PruTeam: $("#txt_PoTeam").val(),
  163. RFQCode: $("#txt_RFQNO").val(),
  164. RFQName: $("#txt_RFQName").val(),
  165. SupplierCode: $("#txt_VenCode").val(),
  166. SupplierName: $("#txt_VenName").val(),
  167. InvCode: $("#txt_INVCode").val(),
  168. InvName: $("#txt_INVName").val(),
  169. InvStd: $("#txt_INVStd").val(),
  170. TimeFrom: $("#txt_FromDate").val(),
  171. TimeTo: $("#txt_EndDate").val(),
  172. ReleaseState: $("#selShow").val(),
  173. }
  174. $("#gridList").jqGrid().setGridParam({ postData: { JSON: JSON.stringify(queryJson) } }).trigger('reloadGrid')
  175. }
  176. function btnpub() {
  177. debugger;
  178. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  179. if (ids.length <= 0) {
  180. $.modalAlert("请选择要发布的数据!", "warning");
  181. return;
  182. }
  183. for(var i=0;i<ids.length;i++){
  184. var data = $("#gridList").jqGrid('getRowData', ids[i]);
  185. if (data.HIDDSTATUS != "新增") {
  186. $.modalAlert(data.RFQCODE + ":当前状态无法发布!", "warning");
  187. return;
  188. }
  189. }
  190. var json = JSON.stringify(ids)
  191. $.ajax({
  192. url: "/SRM/SORRFQ/Publish?json=" + json + "&" + Math.random(),
  193. async: false,
  194. success: function (data) {
  195. $.modalAlert(data, "warning");
  196. }
  197. })
  198. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  199. }
  200. function btnpubJS() {
  201. debugger;
  202. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  203. if (ids.length <= 0) {
  204. $.modalAlert("请选择要发布的数据!", "warning");
  205. return;
  206. }
  207. for (var i = 0; i < ids.length; i++) {
  208. var data = $("#gridList").jqGrid('getRowData', ids[i]);
  209. if (data.HIDDSTATUS == "新增" || data.HIDDSTATUS == "退回") {
  210. var json = JSON.stringify(ids)
  211. $.ajax({
  212. url: "/SRM/PriceInquiry/JSPublish?json=" + json + "&" + Math.random(),
  213. async: false,
  214. success: function (data) {
  215. $.modalAlert(data, "warning");
  216. }
  217. })
  218. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  219. } else {
  220. $.modalAlert(data.RFQCODE + ":当前状态无法发布!", "warning");
  221. return;
  222. }
  223. }
  224. }
  225. function btn_close() {
  226. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  227. if (ids.length <= 0) {
  228. $.modalAlert("请选择要关闭的数据!", "warning");
  229. return;
  230. }
  231. var json = JSON.stringify(ids)
  232. $.modalConfirm("请确认是否关闭询价单!", function (r) {
  233. if (r) {
  234. $.ajax({
  235. url: "/SRM/SORRFQ/Close?json=" + json + "&" + Math.random(),
  236. async: false,
  237. success: function (data) {
  238. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  239. $.modalAlert(data, "warning");
  240. }
  241. })
  242. }
  243. });
  244. }
  245. function btnLook(cellvalue, options, rowObject) {
  246. if (rowObject.HIDDSTATUS == "新增" || rowObject.HIDDSTATUS == "退回") {
  247. return cellvalue = "<a class=\"btn btn-warning dropdown-text\" onclick=\"UpLoadClick1('" + rowObject.RFQCODE + "','" + rowObject.workpoint + "','" + rowObject.HIDDSTATUS + "')\">修改 </a> <a class=\"btn btn-info dropdown-text\" onclick=\"UpLoadRegistClickByDJ('" + rowObject.RFQCODE + "','" + rowObject.workpoint + "','" + rowObject.HIDDSTATUS + "')\">审核报价</a>";
  248. }
  249. else {
  250. return cellvalue = "<a class=\"btn btn-warning dropdown-text\" onclick=\"UpLoadClick('" + rowObject.RFQCODE + "','" + rowObject.workpoint + "','" + rowObject.HIDDSTATUS + "')\">详情 </a> <a class=\"btn btn-info dropdown-text\" onclick=\"UpLoadRegistClickByDJ('" + rowObject.RFQCODE + "','" + rowObject.workpoint + "','" + rowObject.HIDDSTATUS + "')\">审核报价</a>";
  251. }
  252. }
  253. //查看
  254. function UpLoadClick(rfqcode, workpoint, HIDDSTATUS) {
  255. debugger;
  256. $.modalOpenClean({
  257. id: "RFQ",
  258. title: "查看",
  259. url: "/SRM/RFQMes/Index?rfqcode=" + rfqcode + "&" + Math.random(),
  260. width: "90%",
  261. height: "90%",
  262. callBack: function (iframeId) {
  263. top.frames[iframeId].submitForm();
  264. top.frames[iframeId].Close();
  265. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  266. }
  267. })
  268. }
  269. function UpLoadRegistClick(rfqcode, workpoint, HIDDSTATUS) {
  270. $.modalOpenbyxu({
  271. id: "RFQChange",
  272. title: "审核报价",
  273. url: "/SRM/RFQMes/WatchBJ" + "?rfqno=" + rfqcode + "&" + Math.random() + "&workpoint=" + workpoint + "&HIDDSTATUS=" + encodeURI(encodeURI(HIDDSTATUS)),
  274. width: "80%",
  275. height: "90%",
  276. callBack: function (iframeId) {
  277. debugger;
  278. top.frames[iframeId].submitForm();
  279. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  280. $.modalAlert(data, "warning");
  281. $.modalClose();
  282. alert("666");
  283. //top.frames[iframeId].Close();
  284. //$("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  285. }
  286. })
  287. }
  288. function UpLoadRegistClickByDJ(rfqcode, workpoint, HIDDSTATUS) {
  289. $.modalOpenbyxu({
  290. id: "RFQChange",
  291. title: "审核报价",
  292. url: "/SRM/PriceInquiry/ReviewPrice" + "?rfqno=" + rfqcode + "&" + Math.random() + "&workpoint=" + workpoint + "&HIDDSTATUS=" + encodeURI(encodeURI(HIDDSTATUS)),
  293. width: "80%",
  294. height: "90%",
  295. callBack: function (iframeId) {
  296. debugger;
  297. top.frames[iframeId].submitForm();
  298. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  299. $.modalAlert(data, "warning");
  300. $.modalClose();
  301. alert("666");
  302. //top.frames[iframeId].Close();
  303. //$("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  304. }
  305. })
  306. }
  307. //新增
  308. function btnCreate() {
  309. debugger;
  310. var sfqcode="";
  311. $.modalOpen2({
  312. id: "PriceInquiryAdd",
  313. title: "新增",
  314. url: "/SRM/PriceInquiry/PriceInquiryAdd?" + Math.random() + "&status=" + 2,
  315. width: "95%",
  316. height: "95%",
  317. callBack: function (iframeId) {
  318. top.frames[iframeId].submitForm();
  319. }
  320. })
  321. }
  322. //修改
  323. function UpLoadClick1(rfqcode, workpoint, HIDDSTATUS) {
  324. debugger;
  325. if (HIDDSTATUS == "新增" || HIDDSTATUS == "退回") {
  326. $.modalOpen2({
  327. id: "RFQChange",
  328. title: "修改",
  329. url: "/SRM/PriceInquiry/PriceInquiryAdd?rfqcode=" + rfqcode + "&" + Math.random() + "&status=" + 1,
  330. width: "90%",
  331. height: "90%",
  332. callBack: function (iframeId) {
  333. top.frames[iframeId].submitForm();
  334. }
  335. })
  336. } else {
  337. $.modalAlert("当亲状态不可修改!", "warning");
  338. return;
  339. }
  340. }
  341. function btn_delete() {
  342. //var ids = $("#gridList").jqGridRowValue().RFQCODE;
  343. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  344. if (ids.lenth <= 0) {
  345. $.modalAlert("请选择要删除的数据!", "warning");
  346. return;
  347. }
  348. for (var i = 0; i < ids.length; i++) {
  349. var data = $("#gridList").jqGrid('getRowData', ids[i]);
  350. if (data.HIDDSTATUS == "发布") {
  351. $.modalAlert(data.RFQCODE + ":当前订单已发布无法删除!", "warning");
  352. return;
  353. }
  354. }
  355. var json = JSON.stringify(ids)
  356. $.modalConfirm("请确认是否删除询价单!", function (r) {
  357. if (r) {
  358. $.ajax({
  359. url: "/SRM/SORRFQ/DELETE?json=" + json + "&" + Math.random(),
  360. async: false,
  361. datatype: 'json',
  362. success: function (data) {
  363. $.modalAlert(data, "warning");
  364. }
  365. })
  366. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  367. }
  368. });
  369. }
  370. function btn_CleanOA() {
  371. var rowdata = [];
  372. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  373. if (ids.lenth <= 0) {
  374. $.modalAlert("请选择要撤销的数据!", "warning");
  375. return;
  376. }
  377. for (var i = 0; i < ids.length; i++) {
  378. var data = $("#gridList").jqGrid('getRowData', ids[i]);
  379. if (data.HIDDSTATUS != "OA待审核") {
  380. $.modalAlert(data.RFQCODE + ":当前订单已发布无法撤销!", "warning");
  381. return;
  382. }
  383. var obj = {
  384. RFQCODE: data.RFQCODE,
  385. ADDITION1: data.ADDITION1,
  386. ADDITION2: data.ADDITION2
  387. }
  388. rowdata.push(obj);
  389. }
  390. Json = JSON.stringify(rowdata)
  391. $.ajax({
  392. url: "/SRM/RFQMes/CleanAgreeByOA",
  393. data: {
  394. json: Json
  395. },
  396. type: "post",
  397. dataType: "json",
  398. async: false,
  399. success: function (data) {
  400. //SetCols11();
  401. //gridList1();
  402. debugger;
  403. $("#gridList").jqGrid().setGridParam({ datatype: 'json' }).trigger('reloadGrid')
  404. $.modalAlert(data.message, data.state);
  405. }
  406. })
  407. }
  408. //分配采购
  409. function btnPurchaserPersAllocation() {
  410. debugger;
  411. var RFQCODE = '';
  412. var PURORG = '';
  413. var PURTEAM = '';
  414. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  415. if (ids.lenth <= 0) {
  416. $.modalAlert("请选择要分配的数据!", "warning");
  417. return;
  418. }
  419. for (var i = 0; i < ids.length; i++) {
  420. var data = $("#gridList").jqGrid('getRowData', ids[i]);
  421. RFQCODE = data.RFQCODE
  422. PURTEAM = data.PURTEAM
  423. PURORG = data.PURORG
  424. if (data.HIDDSTATUS != "未分配") {
  425. $.modalAlert("当亲状态不可操作!", "warning");
  426. return;
  427. }
  428. }
  429. $.modalOpen2({
  430. id: "PurchaserAllocation",
  431. title: "分配采购",
  432. url: "/SRM/PriceInquiry/PurchaserAllocation?rfqcode=" + RFQCODE + "&" + Math.random() + "&status=" + 1 + "&PURTEAM=" + encodeURI(encodeURI(PURTEAM)) + "&PURORG=" + encodeURI(encodeURI(PURORG)),
  433. width: "95%",
  434. height: "95%",
  435. callBack: function (iframeId) {
  436. top.frames[iframeId].submitForm();
  437. }
  438. })
  439. }
  440. //分配供应商
  441. function btnVendorPersAllocation() {
  442. debugger;
  443. var RFQCODE = '';
  444. var PURORG = '';
  445. var PURTEAM = '';
  446. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  447. if (ids.lenth <= 0) {
  448. $.modalAlert("请选择要分配的数据!", "warning");
  449. return;
  450. }
  451. for (var i = 0; i < ids.length; i++) {
  452. var data = $("#gridList").jqGrid('getRowData', ids[i]);
  453. RFQCODE = data.RFQCODE
  454. PURTEAM = data.PURTEAM
  455. PURORG = data.PURORG
  456. if (data.HIDDSTATUS != "已分配") {
  457. $.modalAlert("当亲状态不可操作!", "warning");
  458. return;
  459. }
  460. }
  461. $.modalOpen2({
  462. id: "VendorPersAllocation",
  463. title: "分配供应商",
  464. url: "/SRM/PriceInquiry/VendorPersAllocation?rfqcode=" + RFQCODE + "&" + Math.random() + "&status=" + 1 + "&PURTEAM=" + encodeURI(encodeURI(PURTEAM)) + "&PURORG=" + encodeURI(encodeURI(PURORG)),
  465. width: "95%",
  466. height: "95%",
  467. callBack: function (iframeId) {
  468. top.frames[iframeId].submitForm();
  469. }
  470. })
  471. }
  472. </script>
  473. <div class="topPanel" style="height:200px">
  474. <div class="toolbar">
  475. <div class="btn-group">
  476. <a id="CreateRFQ" authorize="yes" style="margin-left:3px;" class="btn btn-info" onclick="btnCreate()"><i class="fa fa-pencil-square-o"></i>新增</a>
  477. <a id="PubRFQ" authorize="yes" style="margin-left:3px;" class="btn btn-info" onclick="btnpub()"><i class="fa fa-pencil-square-o"></i>发布</a>
  478. <a id="btnpubJS" authorize="yes" style="margin-left:3px;" class="btn btn-info" onclick="btnpubJS()"><i class="fa fa-pencil-square-o"></i>技术发布</a>
  479. <a id="PurchaserPersAllocation" authorize="yes" style="margin-left:3px;" class="btn btn-info" onclick="btnPurchaserPersAllocation()"><i class="fa fa-pencil-square-o"></i>采购员分配</a>
  480. </div>
  481. <div class="btn-group" style="display:block;padding-left:2px;">
  482. <a id="VendorPersAllocation" authorize="yes" style="margin-left:3px;" class="btn btn-info" onclick="btnVendorPersAllocation()"><i class="fa fa-pencil-square-o"></i>供应商分配</a>
  483. <a id="CloseRFQ" authorize="yes" style="margin-left:3px;" class="btn btn-warning" onclick="btn_close()"><i class="fa fa-pencil-square-o"></i>关闭</a>
  484. <a id="deleteRFQ" authorize="yes" style="margin-left:3px;" class="btn btn-danger" onclick="btn_delete()"><i class="fa fa-pencil-square-o"></i>删除</a>
  485. <a id="CleanOA" authorize="yes" style="margin-left:3px;" class="btn btn-danger" onclick="btn_CleanOA()"><i class="fa fa-pencil-square-o"></i>取消OA流程</a>
  486. <a class="btn btn-info" style="margin-left:3px;" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
  487. </div>
  488. <script>$('.toolbar').authorizeButton()</script>
  489. </div>
  490. <div class="search">
  491. <table>
  492. <tr>
  493. <td>
  494. <label>询价单号:</label>
  495. </td>
  496. <td>
  497. <div class="input-group">
  498. <input id="txt_RFQNO" type="text" class="form-control" placeholder="询价单号" style="width: 120px;">
  499. </div>
  500. </td>
  501. <td>
  502. <label>&nbsp;&nbsp;&nbsp;询价单名称:</label>
  503. </td>
  504. <td>
  505. <div class="input-group">
  506. <input id="txt_RFQName" type="text" class="form-control" placeholder="询价单名称" style="width: 100px;">
  507. </div>
  508. </td>
  509. <td>
  510. <label>&nbsp;&nbsp;&nbsp;单据日期(从):</label>
  511. </td>
  512. <td>
  513. <div class="input-group">
  514. <input type="text" name="txt_FromDate" id="txt_FromDate" class="form-control" style="width: 100px;" maxlength="10" onclick=" WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="单据日期(从)" />
  515. </div>
  516. </td>
  517. <td>
  518. <label>&nbsp;&nbsp;&nbsp;单据日期(到):</label>
  519. </td>
  520. <td>
  521. <div class="input-group">
  522. <input type="text" name="txt_NoDate" id="txt_EndDate" class="form-control" style="width: 100px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd', minDate: txt_FromDate.value })" placeholder="单据日期(到)" />
  523. </div>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td>
  528. <label>采购负责人:</label>
  529. </td>
  530. <td>
  531. <div class="input-group">
  532. <input id="txt_PoTeam" type="text" class="form-control" placeholder="采购负责人" style="width: 120px;">
  533. </div>
  534. </td>
  535. <td>
  536. <label>&nbsp;&nbsp;&nbsp;采购组织:</label>
  537. </td>
  538. <td>
  539. <div class="input-group">
  540. <input type="text" name="txt_poorg" id="txt_poorg" class="form-control" style="width: 100px;" maxlength="10" placeholder="采购组织" />
  541. </div>
  542. </td>
  543. <td>
  544. <label>&nbsp;&nbsp;&nbsp;供应商编码:</label>
  545. </td>
  546. <td>
  547. <div class="input-group">
  548. <input id="txt_VenCode" type="text" class="form-control" placeholder="供应商编码" style="width: 100px;">
  549. </div>
  550. </td>
  551. <td>
  552. <label>&nbsp;&nbsp;&nbsp;供应商名称:</label>
  553. </td>
  554. <td>
  555. <div class="input-group">
  556. <input id="txt_VenName" type="text" class="form-control" placeholder="供应商名称" style="width: 100px;">
  557. </div>
  558. </td>
  559. </tr>
  560. <tr>
  561. <td>
  562. <label>物料编码:</label>
  563. </td>
  564. <td>
  565. <div class="input-group">
  566. <input id="txt_INVCode" type="text" class="form-control" placeholder="物料编码" style="width: 120px;">
  567. </div>
  568. </td>
  569. <td>
  570. <label>&nbsp;&nbsp;&nbsp;物料名称:</label>
  571. </td>
  572. <td>
  573. <div class="input-group">
  574. <input id="txt_INVName" type="text" class="form-control" placeholder="物料名称" style="width: 100px;">
  575. </div>
  576. </td>
  577. <td>
  578. <label>&nbsp;&nbsp;&nbsp;物料规格:</label>
  579. </td>
  580. <td>
  581. <div class="input-group">
  582. <input id="txt_INVStd" type="text" class="form-control" placeholder="物料规格" style="width: 100px;">
  583. </div>
  584. </td>
  585. <td>
  586. <label>询价单状态:&nbsp;&nbsp;&nbsp;&nbsp;</label>
  587. </td>
  588. <td>
  589. <div class="input-group">
  590. <select id="selShow" name="F_Target" class="form-control" style="width: 100px;">
  591. <option value="">显示全部</option>
  592. <option value="New" selected>新增</option>
  593. <option value="Publish">发布</option>
  594. <option value="PricingApprove">定价通过</option>
  595. <option value="Close">关闭</option>
  596. <option value="PricingApproveByOA">OA待审核</option>
  597. <option value="PricingApproveByOASH">OA已审核</option>
  598. <option value="PricingApproveByOABack">OA审核拒绝</option>
  599. </select>
  600. </div>
  601. </td>
  602. <td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
  603. <td>
  604. <span class="input-group-btn">
  605. <button id="btn_search" type="button" class="btn btn-info" onclick="Search()"><i class="fa fa-search"></i></button>
  606. </span>
  607. </td>
  608. </tr>
  609. </table>
  610. </div>
  611. </div>
  612. <div class="gridPanel">
  613. <table id="gridList"></table>
  614. <div id="gridPager"></div>
  615. </div>