index.cshtml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <!DOCTYPE html>
  2. <!-- saved from url=(0060)https://www.jsform.com/web/formview/5c08e52875a03c4ad63599af -->
  3. <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4. <meta content="always" name="referrer">
  5. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
  6. <meta name="keywords" content="表单名称">
  7. <meta name="description" content="">
  8. <title>表单名称</title>
  9. <link type="text/css" rel="stylesheet" href="./supply_files/formviewm.css">
  10. <link type="text/css" rel="stylesheet" href="./supply_files/table.css">
  11. <link type="text/css" rel="stylesheet" href="./supply_files/jquery-ui-1.9.2.custom.css">
  12. <style type="text/css">
  13. #tipimg{
  14. z-index:999;
  15. position:fixed;
  16. top: 0px;
  17. background-color: #000000;
  18. opacity: 0.6;
  19. }
  20. #tipimg img{
  21. width:100%;
  22. margin-left: 10%;
  23. margin-top: 3%;
  24. }
  25. #tip {
  26. background-color: #38adff;
  27. color: #fff;
  28. font-weight: 600;
  29. width: 150px;
  30. padding: 8px;
  31. text-align: center;
  32. border-radius: 6px;
  33. line-height: 30px;
  34. position: absolute;
  35. top: 15px;
  36. right: 10px;
  37. }
  38. #tip:after {
  39. content:'';
  40. display: inline-block;
  41. position: absolute;
  42. width: 20px;
  43. height: 20px;
  44. background: #38adff;
  45. transform: rotate(45deg);
  46. margin-left: -10px;
  47. margin-top: -48px;
  48. z-index: 999;
  49. }
  50. </style>
  51. <link type="text/css" rel="stylesheet" href="./supply_files/default.css">
  52. <script src="./supply_files/hm.js"></script>
  53. <script type="text/javascript" src="./supply_files/js/jquery-1.7.2.min.js"></script>
  54. <script type="text/javascript" src="./supply_files/js/lang-cn.js"></script>
  55. <script type="text/javascript" src="./supply_files/js/utils.js"></script>
  56. <script type="text/javascript" src="./supply_files/js/qingjs.js"></script>
  57. <script type="text/javascript" src="./supply_files/js/dingtalk.js"></script>
  58. <script type="text/javascript" src="./supply_files/js/decimal.min.js"></script>
  59. <script type="text/javascript" src="./supply_files/js/formview.js"></script>
  60. <script type="text/javascript" src="./supply_files/js/jweixin-1.0.0.js"></script>
  61. </head>
  62. <body class="wallpaper">
  63. <div id="container" class="container" mobile="1">
  64. <div><h1 id="logo" class="logo"><a></a></h1></div>
  65. <div class="ui-content">
  66. <form id="form1" class="form" action="https://www.jsform.com/web/formview/5c08e52875a03c4ad63599af" method="post">
  67. <input type="hidden" id="INITTIME" name="INITTIME" value="1544087426118">
  68. <input type="hidden" id="FRMID" name="FRMID" autofill="" value="5c08e52875a03c4ad63599af">
  69. <input type="hidden" id="TMOUT" name="TMOUT_number" value="1544087430340">
  70. <input type="hidden" id="secKey" name="SECKEY" value="">
  71. <input type="hidden" id="dynamicDateType" name="DYNAMICDATETYPE" value="">
  72. <div class="info" id="formHeader"><h2>表单名称</h2><div></div></div>
  73. <ul id="fields" class="fields">
  74. <li id="5c0a1efa75a03c462fc661b0" class="clearfix" typ="text"><label class="desc">采购单编码</label><div class="content textcontent"><input id="tmpid" type="text" maxlength="256" name="F8" readonly="readonly" class="ui-input-text input fld xxl"></div></li>
  75. <li id="5c08e5f275a03c4ad6359c1e" class="clearfix " typ="text"><label class="desc">供货品名</label><div class="content textcontent"><input id="tmpid" type="text" maxlength="256" name="F3" readonly="readonly" class="ui-input-text input fld xxl"></div></li>
  76. <li id="5c08e52875a03c4ad63599b0" class="clearfix " typ="text"><label class="desc">供货品类</label><div class="content textcontent"><input id="tmpid" type="text" maxlength="256" name="F1" readonly="readonly" class="ui-input-text input fld xxl"></div></li><li id="5c08e52875a03c4ad63599b1" class="clearfix " typ="number"><label class="desc">供货价格</label><div class="content"><input type="number" maxlength="16" name="F2_number" class="ui-input-text number input fld xxl"></div></li><li id="5c08e66c75a03c4ad6359d60" class="clearfix " typ="number"><label class="desc">供货数量</label><div class="content"><input type="number" maxlength="16" name="F4_number" class="ui-input-text number input fld xxl"></div></li><li id="5c08e66c75a03c4ad6359d61" class="clearfix " typ="date"><label class="desc">预计可到货日期</label><div class="content oneline"><input type="date" class="ui-input-text input val" name="F5_date"></div></li><li id="5c08e66c75a03c4ad6359d62" class="clearfix " typ="time"><label class="desc">预计可到货时间</label><div class="content oneline"><span><select class="hh input fld timeField"><option value="">时</option><option value="00">00</option><option value="01">01</option><option value="02">02</option><option value="03">03</option><option value="04">04</option><option value="05">05</option><option value="06">06</option><option value="07">07</option><option value="08">08</option><option value="09">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option></select></span><span class="splitm"> : </span><span><select class="mi input fld timeField"><option value="">分</option><option value="00">00</option><option value="01">01</option><option value="02">02</option><option value="03">03</option><option value="04">04</option><option value="05">05</option><option value="06">06</option><option value="07">07</option><option value="08">08</option><option value="09">09</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option><option value="32">32</option><option value="33">33</option><option value="34">34</option><option value="35">35</option><option value="36">36</option><option value="37">37</option><option value="38">38</option><option value="39">39</option><option value="40">40</option><option value="41">41</option><option value="42">42</option><option value="43">43</option><option value="44">44</option><option value="45">45</option><option value="46">46</option><option value="47">47</option><option value="48">48</option><option value="49">49</option><option value="50">50</option><option value="51">51</option><option value="52">52</option><option value="53">53</option><option value="54">54</option><option value="55">55</option><option value="56">56</option><option value="57">57</option><option value="58">58</option><option value="59">59</option></select></span><input type="hidden" class="val" name="F6_time"></div></li><li id="5c08e66c75a03c4ad6359d63" class="clearfix " typ="phone"><label class="desc">供货联系人电话</label><div class="content"><input type="tel" fmt="mobile" maxlength="11" class="ui-input-text number input fld" name="F7"></div></li><li class="pc-submit"><input id="btnSubmit" type="submit" class="btn-submit" onclick="return false;" value="提交"></li></ul>
  77. </form>
  78. <div style="display:block !important;width:100% !important;font-size:100% !important;overflow: visible !important;color:#222 !important; position: relative !important;" class="powerby">由<a href="https://www.jsform.com/">表单大师</a>提供技术支持</div>
  79. </div>
  80. <div id="status" class="mobile hide"></div>
  81. <script type="text/javascript" src="./supply_files/head.load.min.js"></script>
  82. <script type="text/javascript">
  83. var isEmbed=false,F={"DISSHARE":""};
  84. var RULE={FIELDSRULE:[]};
  85. var DYNAMICDATETYPE = parsToJspUse("");
  86. var countLmtInfo = parsToJspUse();
  87. var ADVPERM=parsToJspUse({});
  88. var FLDS=parsToJspUse([{"LBL":"供货品名","TYP":"text","FLDSZ":"m","REQD":"0","UNIQ":"0","SCU":"pub","FLDID":"5c08e5f275a03c4ad6359c1e","NM":"F3","UNEDIT":"1"},{"LBL":"供货品类","TYP":"text","FLDSZ":"m","REQD":"0","UNIQ":"0","SCU":"pub","FLDID":"5c08e52875a03c4ad63599b0","NM":"F1","UNEDIT":"1"},{"LBL":"供货价格","TYP":"number","FLDSZ":"s","REQD":"0","UNIQ":"0","SCU":"pub","FLDID":"5c08e52875a03c4ad63599b1","NM":"F2"},{"LBL":"供货数量","TYP":"number","FLDSZ":"s","REQD":"0","UNIQ":"0","SCU":"pub","FLDID":"5c08e66c75a03c4ad6359d60","NM":"F4"},{"LBL":"预计可到货日期","TYP":"date","REQD":"0","UNIQ":"0","SCU":"pub","FMT":"ymd","DEF":"","INSTR":"","CSS":"","DTMIN":"","DTMAX":"","FLDID":"5c08e66c75a03c4ad6359d61","NM":"F5"},{"LBL":"预计可到货时间","TYP":"time","REQD":"0","UNIQ":"0","SCU":"pub","DEF":"","INSTR":"","CSS":"","FLDID":"5c08e66c75a03c4ad6359d62","NM":"F6"},{"LBL":"供货联系人电话","TYP":"phone","REQD":"0","UNIQ":"0","SCU":"pub","FMT":"mobile","DEF":"","INSTR":"","CSS":"","FLDID":"5c08e66c75a03c4ad6359d63","NM":"F7"}]);
  89. var TIPTEXT=parsToJspUse();
  90. var DTLMT=parsToJspUse({"DTLMT":""});
  91. var LVL=parsToJspUse(0);
  92. var sid = '5c08e3eb75a03c4ad6359267';
  93. var isForMobile=true;
  94. var IMAGEURL="http://jsformfiles.hodoop.com/",FILEIMAGEEDITSTYLE="";
  95. head.js("/web/supply/supply_files/js/jquery-1.7.2.min.js",'/web/supply_files/js/lang-cn.js?v=20181122',
  96. "/web/supply/supply_files/js/utils.js?v=20181122",
  97. "//do.yunzhijia.com/pub/js/qingjs.js",
  98. "//g.alicdn.com/dingding/open-develop/0.8.4/dingtalk.js",
  99. "/web/supply/supply_files/js/decimal.min.js?v=20181122",
  100. "/web/supply/supply_files/js/formview.js?v=20181122",
  101. "//res.wx.qq.com/open/js/jweixin-1.0.0.js");
  102. var _hmt = _hmt || [];
  103. (function() {
  104. var hm = document.createElement("script");
  105. hm.src = "//hm.baidu.com/hm.js?4e93cf0b43bbb28b7446cd782a148db3";
  106. var s = document.getElementsByTagName("script")[0];
  107. s.parentNode.insertBefore(hm, s);
  108. //sso统计
  109. /*if (LVL>=2) {
  110. var hmm = document.createElement("script");
  111. hmm.src = "https://tongji.bangboss.com/tongji/start.js?pid=5c08e52875a03c4ad63599af";
  112. var ss = document.getElementsByTagName("script")[0];
  113. ss.parentNode.insertBefore(hmm, ss);
  114. }*/
  115. })();
  116. var CURPOS = {};
  117. head.ready(function(){
  118. $(function() {
  119. if (!$.isWeixin()) {
  120. return;
  121. }
  122. //微信分享自动带图片和说明
  123. //微信jssdk接口签名数据
  124. var title =$("#formHeader div:eq(0)").text();
  125. var urlImg= $(".logo a").css("backgroundImage");
  126. var url = window.location.href;
  127. //url可能为微信返回的带有code地址,分享时应该去掉code 参数。
  128. var queryStr = url.split("?")[1];
  129. if (queryStr) {
  130. var reg=new RegExp("^code=");
  131. var newQuery = "";
  132. var params = queryStr.split("&");
  133. for (var i=0; i<params.length; i++) {
  134. if (!reg.test(params[i])) {
  135. newQuery += params[i] + "&";
  136. }
  137. }
  138. if (newQuery) {
  139. newQuery = newQuery.substr(0, newQuery.length - 1);
  140. }
  141. url = url.split("?")[0] + "?" + newQuery;
  142. }
  143. if("none"==urlImg){
  144. var img = $(".logo a img")[0];
  145. if(typeof(img) == "undefined"){
  146. img = $(".image-img:eq(0)")[0];
  147. }
  148. if(typeof(img) != "undefined"){
  149. urlImg =img.src;
  150. }
  151. }else{
  152. //urlImg="url("htpp://xxxx")";
  153. var reg = new RegExp("[a-zA-z]+://[^\\s^\"\\)]*");
  154. var result = urlImg.match(reg);
  155. if (result) {
  156. urlImg = result[0];
  157. }
  158. }
  159. //是否基于微信。如果是基于微信需要处理分享时显示的图片和链接。
  160. //如果是基于微信,需要处理扫码
  161. if(!window.wxsignature){
  162. return;
  163. }else{
  164. if (window.wxscan) {
  165. $("i.icon-qrinput").removeClass("hide");
  166. }
  167. }
  168. wx.config({
  169.     debug: false,
  170.     appId:wxsignature.appId,
  171.     timestamp:parseInt(wxsignature.timestamp),
  172.     nonceStr: wxsignature.nonceStr,
  173.     signature:wxsignature.signature,
  174.     jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','onMenuShareQZone','scanQRCode','checkJsApi',
  175. 'openLocation', 'getLocation']
  176.   });
  177. wx.ready(function(){
  178. wx.onMenuShareTimeline({
  179. title:title,
  180. link: url,
  181. imgUrl:urlImg,
  182. success: function () {
  183. // 用户确认分享后执行的回调函数
  184. },
  185. cancel: function () {
  186. // 用户取消分享后执行的回调函数
  187. }
  188. });
  189. wx.onMenuShareAppMessage({
  190. title:'', // 分享标题
  191. desc: title, // 分享描述
  192. link: url, // 分享链接
  193. imgUrl:urlImg, // 分享图标
  194. type: '', // 分享类型,music、video或link,不填默认为link
  195. dataUrl: '', // 如果type是music或video,则要提供数据链接,默认为空
  196. success: function () {
  197. // 用户确认分享后执行的回调函数
  198. },
  199. cancel: function () {
  200. // 用户取消分享后执行的回调函数
  201. }
  202. });
  203. //通过微信JSAPI
  204. if ($("#fields").find("div.map").length > 0) {
  205. wx.getLocation({
  206. success: function (res) {
  207. CURPOS["latitude"] = res.latitude; // 纬度,浮点数,范围为90 ~ -90
  208. CURPOS["longitude"] = res.longitude; // 经度,浮点数,范围为180 ~ -180。
  209. CURPOS["speed"] = res.speed; // 速度,以米/每秒计
  210. CURPOS["accuracy"] = res.accuracy; // 位置精度
  211. },
  212. cancel: function (res) {
  213. console.log('用户拒绝授权获取地理位置');
  214. }
  215. });
  216. }
  217. });
  218. //扫码输入 20160821 by xiangjuntao
  219. $("i.icon-qrinput").click(function(){
  220. var txt=$(this).parent().find("input");
  221. wx.scanQRCode({
  222. needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
  223. scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
  224. success: function (res) {
  225. var resultStr = res.resultStr;
  226. var qrCodePrefix = ["EAN_13", "EAN_8", "CODE_128", "CODE_39", "UPC_A", "UPC_E", "ITF_14", "CODE_25","DATA_MATRIX"];
  227. if (resultStr.indexOf(",") > 0 ) {
  228. var ean = resultStr.split(",")[0];
  229. if (qrCodePrefix.indexOf(ean) >= 0) {
  230. resultStr = resultStr.split(",")[1];
  231. }
  232. }
  233. txt.val(resultStr); // 当needResult 为 1 时,扫码返回的结果
  234. txt.trigger("change");
  235. //如果设置了关联,自动带出被关联的其它值 20160821 by xiangjuntao
  236. if(txt.attr("matfrm") && txt.attr("matfld")){
  237. FieldRelation.fillAutoCompValue(txt);
  238. }
  239. }
  240. });
  241. });
  242. });
  243. });
  244. </script>
  245. </div>
  246. <div id="stage" class="clearfix hide">
  247. <div style="margin-top: 10px; text-align: center;">
  248. <a class="btn sbtn" id="btnConfirm1" title="连续新增" href="https://www.jsform.com/web/formview/5c08e52875a03c4ad63599af#">连续新增</a> &nbsp; &nbsp; &nbsp;
  249. <a class="btn sbtn" id="btnConfirm2" title="新增" href="https://www.jsform.com/web/formview/5c08e52875a03c4ad63599af#">新增</a> &nbsp;
  250. <a class="btn sbtn" id="btnCancel" title="取消">取消</a>
  251. </div>
  252. </div>
  253. <div id="divtmp" class="hide"></div>
  254. <div id="overlay" class="overlay hide"></div>
  255. <div id="lightBox" class="lightbox hide" style="font-size: 14px;">
  256. <div id="lbContent" class="lbcontent clearfix"></div>
  257. </div>
  258. </body></html>