人人商城

printer.html 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. {template 'common/header'}
  2. <div class="main">
  3. <form id="payform" action="{php echo url('profile/printer')}" method="post" class="form-horizontal form" onsubmit="return validate();" ng-controller="paySetting">
  4. <div class="page-header">
  5. <h4>无线打印机参数</h4>
  6. </div>
  7. <div class="form-group">
  8. <label class="col-xs-12 col-sm-3 col-md-2 control-label">行间距</label>
  9. <div class="col-sm-9">
  10. <input type="text" name="printer[lines]" class="form-control" value="" autocomplete="off"/>
  11. <span class="help-block">设置间距,范围:0 ~ 255,默认6</span>
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="col-xs-12 col-sm-3 col-md-2 control-label">列间距</label>
  16. <div class="col-sm-9">
  17. <input type="text" name="printer[columns]" class="form-control" value="" autocomplete="off"/>
  18. <span class="help-block">设置间距,范围:0 ~ 255,默认30</span>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-xs-12 col-sm-3 col-md-2 control-label">字体宽高</label>
  23. <div class="col-sm-9">
  24. <input type="text" name="printer[fontsize]" class="form-control" value="" autocomplete="off"/>
  25. <span class="help-block">设置倍宽倍高,0为正常字体,10:倍高,20:倍宽,30:倍高倍宽</span>
  26. </div>
  27. </div>
  28. <div class="form-group">
  29. <label class="col-xs-12 col-sm-3 col-md-2 control-label">右边空白</label>
  30. <div class="col-sm-9">
  31. <input type="text" name="printer[rightspace]" class="form-control" value="" autocomplete="off"/>
  32. <span class="help-block">设置右边空白,范围:1 ~ 12,默认1</span>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-xs-12 col-sm-3 col-md-2 control-label">缺纸检测</label>
  37. <div class="col-sm-9">
  38. <input type="text" name="printer[testing]" class="form-control" value="" autocomplete="off"/>
  39. <span class="help-block">检测打印机当前状态,短信模式回复(开启返回打印状态才有效!)</span>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-xs-12 col-sm-3 col-md-2 control-label">返回打印状态</label>
  44. <div class="col-sm-8">
  45. <label class="radio-inline">
  46. <input type="radio" name="printer[status]" ng-model="status.switch" value="1"/>
  47. 开启
  48. </label>
  49. <label class="radio-inline">
  50. <input type="radio" name="printer[status]" ng-model="status.switch" value="0"/>
  51. 关闭
  52. </label>
  53. <span class="help-block">设置查询打印机状态以短信方式回复</span>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印空白行</label>
  58. <div class="col-sm-9">
  59. <input type="text" name="printer[printblank]" class="form-control" value="" autocomplete="off"/>
  60. <span class="help-block">打印n行空白行</span>
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印机初始化</label>
  65. <div class="col-sm-9">
  66. <input type="text" name="printer[initialise]" class="form-control" value="" autocomplete="off"/>
  67. <span class="help-block">执行打印机初始化操作1.清除打印缓存区内容2.恢复默认值</span>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-xs-12 col-sm-3 col-md-2 control-label">错误信息回复</label>
  72. <div class="col-sm-8">
  73. <label class="radio-inline">
  74. <input type="radio" name="printer[errorinfo]" ng-model="errorinfo.switch" value="1"/>
  75. 回复
  76. </label>
  77. <label class="radio-inline">
  78. <input type="radio" name="printer[errorinfo]" ng-model="errorinfo.switch" value="0">
  79. 不回复
  80. </label>
  81. <span class="help-block">收到错误命令信息时是否回复,默认不回复</span>
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="col-xs-12 col-sm-3 col-md-2 control-label">发送确认短信</label>
  86. <div class="col-sm-8">
  87. <label class="radio-inline">
  88. <input type="radio" name="printer[message]" ng-model="message.switch" value="1"/>
  89. 发送
  90. </label>
  91. <label class="radio-inline">
  92. <input type="radio" name="printer[message]" ng-model="message.switch" value="0"/>
  93. 不发送
  94. </label>
  95. <span class="help-block">是否开通回复确认短信,默认不发送</span>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="col-xs-12 col-sm-3 col-md-2 control-label">网站地址</label>
  100. <div class="col-sm-9">
  101. <input type="text" name="printer[site]" class="form-control" value="" autocomplete="off"/>
  102. <span class="help-block">HTTP模式同时支持IP地址和域名访问,但建议用固定ip会提高访问效率</span>
  103. </div>
  104. </div>
  105. <div class="form-group">
  106. <label class="col-xs-12 col-sm-3 col-md-2 control-label">短信修改密码</label>
  107. <div class="col-sm-9">
  108. <input type="text" name="printer[messupdate]" class="form-control" value="" autocomplete="off"/>
  109. <span class="help-block">此命令慎重,以免误操作影响使用</span>
  110. </div>
  111. </div>
  112. <div class="form-group">
  113. <label class="col-xs-12 col-sm-3 col-md-2 control-label">页眉内容</label>
  114. <div class="col-sm-9">
  115. <textarea style="height: 100px;" class="form-control" name="printer[header]"></textarea>
  116. <span class="help-block">收到短信后需要打印在头部内容,默认为空</span>
  117. </div>
  118. </div>
  119. <div class="form-group">
  120. <label class="col-xs-12 col-sm-3 col-md-2 control-label">页脚内容</label>
  121. <div class="col-sm-9">
  122. <textarea style="height: 100px;" class="form-control" name="printer[footer]"></textarea>
  123. <span class="help-block">收到短信后需要打印在底部内容,默认为空</span>
  124. </div>
  125. </div>
  126. <div class="form-group">
  127. <label class="col-xs-12 col-sm-3 col-md-2 control-label">换行符</label>
  128. <div class="col-sm-9">
  129. <input type="text" name="printer[newline]" class="form-control" value="" autocomplete="off"/>
  130. <span class="help-block">设置换行符<br/>如设置为%%,"abcd%%efg"打印如下:<br/>abcd<br/>efg</span>
  131. </div>
  132. </div>
  133. <div class="form-group">
  134. <label class="col-xs-12 col-sm-3 col-md-2 control-label">更新终端时间</label>
  135. <div class="col-sm-9">
  136. <input type="text" name="printer[printime]" class="form-control" value="" autocomplete="off"/>
  137. <span class="help-block">短信模式时校准时钟</span>
  138. </div>
  139. </div>
  140. <div class="form-group">
  141. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印接收时间</label>
  142. <div class="col-sm-8">
  143. <label class="radio-inline">
  144. <input type="radio" name="printer[acceptime]" ng-model="acceptime.switch" value="1"/>
  145. 打印
  146. </label>
  147. <label class="radio-inline">
  148. <input type="radio" name="printer[acceptime]" ng-model="acceptime.switch" value="0"/>
  149. 不打印
  150. </label>
  151. <span class="help-block">是否在页尾打印接收时间,默认为打印</span>
  152. </div>
  153. </div>
  154. <div class="form-group">
  155. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印接收号码</label>
  156. <div class="col-sm-8">
  157. <label class="radio-inline">
  158. <input type="radio" name="printer[acceptnum]" ng-model="acceptnum.switch" value="1"/>
  159. 开启
  160. </label>
  161. <label class="radio-inline">
  162. <input type="radio" name="printer[acceptnum]" ng-model="acceptnum.switch" value="0"/>
  163. 关闭
  164. </label>
  165. <span class="help-block">是否打印接收号码,默认为打印</span>
  166. </div>
  167. </div>
  168. <div class="form-group">
  169. <label class="col-xs-12 col-sm-3 col-md-2 control-label">改变端口号</label>
  170. <div class="col-sm-9">
  171. <input type="text" name="printer[port]" class="form-control" value="" autocomplete="off"/>
  172. <span class="help-block">改变GPRS端口号,默认端口号80</span>
  173. </div>
  174. </div>
  175. <div class="form-group">
  176. <label class="col-xs-12 col-sm-3 col-md-2 control-label">设置采集时间</label>
  177. <div class="col-sm-9">
  178. <input type="text" name="printer[collectime]" class="form-control" value="" autocomplete="off"/>
  179. <span class="help-block">采集时间是GPRS完全断网的情况下,打印机终端重新连接间隔时间。默认为1</span>
  180. </div>
  181. </div>
  182. <div class="form-group">
  183. <label class="col-xs-12 col-sm-3 col-md-2 control-label">查询站点信息</label>
  184. <div class="col-sm-9">
  185. <textarea style="height: 100px;" class="form-control" name="printer[siteinfo]"></textarea>
  186. <span class="help-block">查询当前GPRS所有设置数据(不包括短信回复内容设置),如果设置IP或路径比较长,可能分几条短信回复</span>
  187. </div>
  188. </div>
  189. <div class="form-group">
  190. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印信息条数</label>
  191. <div class="col-sm-9">
  192. <input type="text" name="printer[infonums]" class="form-control" value="" autocomplete="off"/>
  193. <span class="help-block">打印同样信息的条数,默认为1</span>
  194. </div>
  195. </div>
  196. <div class="form-group">
  197. <label class="col-xs-12 col-sm-3 col-md-2 control-label">GPRS功能</label>
  198. <div class="col-sm-8">
  199. <label class="radio-inline">
  200. <input type="radio" name="printer[gprs]" ng-model="gprs.switch" value="1"/>
  201. 开通
  202. </label>
  203. <label class="radio-inline">
  204. <input type="radio" name="printer[gprs]" ng-model="gprs.switch" value="0"/>
  205. 不开通
  206. </label>
  207. <span class="help-block">是否开通GPRS功能(会增加消耗SIM卡流量),默认不开通</span>
  208. </div>
  209. </div>
  210. <div class="form-group">
  211. <label class="col-xs-12 col-sm-3 col-md-2 control-label">自动打印</label>
  212. <div class="col-sm-8">
  213. <label class="radio-inline">
  214. <input type="radio" name="printer[autoprint]" ng-model="autoprint.switch" value="1"/>
  215. 开启
  216. </label>
  217. <label class="radio-inline">
  218. <input type="radio" name="printer[autoprint]" ng-model="autoprint.switch" value="0"/>
  219. 关闭
  220. </label>
  221. <span class="help-block">设置自动打印模式,开启时收到有效信息自动打印,关闭时收到有效信息需要按左键及print键才可以打印,默认为自动打印</span>
  222. </div>
  223. </div>
  224. <div class="form-group">
  225. <label class="col-xs-12 col-sm-3 col-md-2 control-label">普通串口打印</label>
  226. <div class="col-sm-8">
  227. <label class="radio-inline">
  228. <input type="radio" name="printer[ordinary]" ng-model="ordinary.switch" value="1"/>
  229. 开启
  230. </label>
  231. <label class="radio-inline">
  232. <input type="radio" name="printer[ordinary]" ng-model="ordinary.switch" value="0"/>
  233. 关闭
  234. </label>
  235. <span class="help-block">设置普通串口打印模式,开启时可以作为普通串口打印机使用,关闭时不可以作为普通串口打印机使用,默认为不可以</span>
  236. </div>
  237. </div>
  238. <div class="form-group">
  239. <label class="col-xs-12 col-sm-3 col-md-2 control-label">错误状态蜂鸣</label>
  240. <div class="col-sm-8">
  241. <label class="radio-inline">
  242. <input type="radio" name="printer[buzzing]" ng-model="buzzing.switch" value="1"/>
  243. 开启
  244. </label>
  245. <label class="radio-inline">
  246. <input type="radio" name="printer[buzzing]" ng-model="buzzing.switch" value="0"/>
  247. 关闭
  248. </label>
  249. <span class="help-block">设置错误状态时蜂鸣,默认为蜂鸣<br/>具体定义如下:
  250. 当打印机没有装SIM卡或信号强度很弱不足通讯时,每2秒钟闪烁下红灯。当打印机缺纸或过热,或GPRS模式没有连接到后台时,蜂鸣器和红色LED灯每隔1秒响1.6秒。
  251. 如果一切正常,待机状态双色灯为绿灯,只有收到打印信息蜂鸣器才响1次。如果GPRS模式,收到有效打印数据时也会蜂鸣。
  252. </span>
  253. </div>
  254. </div>
  255. <div class="form-group">
  256. <label class="col-xs-12 col-sm-3 col-md-2 control-label">上网协议模式</label>
  257. <div class="col-sm-8">
  258. <label class="radio-inline">
  259. <input type="radio" name="printer[protocol]" ng-model="protocol.switch" value="1"/>
  260. HTTP访问模式
  261. </label>
  262. <label class="radio-inline">
  263. <input type="radio" name="printer[protocol]" ng-model="protocol.switch" value="0"/>
  264. SOCKET协议访问模式
  265. </label>
  266. <span class="help-block">设置GPRS上网协议模式,默认为HTTP访问模式</span>
  267. </div>
  268. </div>
  269. <div class="form-group">
  270. <label class="col-xs-12 col-sm-3 col-md-2 control-label">站点主机名</label>
  271. <div class="col-sm-9">
  272. <input type="text" name="printer[host]" class="form-control" value="" autocomplete="off"/>
  273. <span class="help-block">设置HTTP访问模式时,GPRS站点主机名</span>
  274. </div>
  275. </div>
  276. <div class="form-group">
  277. <label class="col-xs-12 col-sm-3 col-md-2 control-label">上网连接模式</label>
  278. <div class="col-sm-8">
  279. <label class="radio-inline">
  280. <input type="radio" name="printer[connect]" ng-model="connect.switch" value="1"/>
  281. 长连接
  282. </label>
  283. <label class="radio-inline">
  284. <input type="radio" name="printer[connect]" ng-model="connect.switch" value="0"/>
  285. 短连接
  286. </label>
  287. <span class="help-block">设置HTTP上网连接模式,默认为长连接<br/>
  288. 具体定义如下:长连模式:打印终端收到平台信息后未断开GPRS网络,只是关掉底层HTTP SOCKET 然后再次连接,此模式访问速度比较快但比较耗SIM卡GPRS流量<br/>
  289. 短连模式:收到后台信息后终端主动断开网络,然后根据GPRS的采集时间定时再次访问HTTP网页。
  290. </span>
  291. </div>
  292. </div>
  293. <div class="form-group">
  294. <label class="col-xs-12 col-sm-3 col-md-2 control-label">访问后台时间</label>
  295. <div class="col-sm-9">
  296. <input type="text" name="printer[backstage]" class="form-control" value="" autocomplete="off"/>
  297. <span class="help-block">http模式设置访问后台的的时间间隔,单位为秒(此命令在长连接模式有效)</span>
  298. </div>
  299. </div>
  300. <div class="form-group">
  301. <label class="col-xs-12 col-sm-3 col-md-2 control-label">IP地址后面路径</label>
  302. <div class="col-sm-9">
  303. <input type="text" name="printer[ippath]" class="form-control" value="" autocomplete="off"/>
  304. <span class="help-block">设置http访问IP地址后面的路径</span>
  305. </div>
  306. </div>
  307. <div class="form-group">
  308. <label class="col-xs-12 col-sm-3 col-md-2 control-label">短信回复</label>
  309. <div class="col-sm-8">
  310. <label class="radio-inline">
  311. <input type="radio" name="printer[messreply]" ng-model="messreply.switch" value="1"/>
  312. 回复
  313. </label>
  314. <label class="radio-inline">
  315. <input type="radio" name="printer[messreply]" ng-model="messreply.switch" value="0"/>
  316. 不回复
  317. </label>
  318. <span class="help-block">设置GPRS模式打印后是否短信回复打印情况(成功或失败),默认不回复</span>
  319. </div>
  320. </div>
  321. <div class="form-group">
  322. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印成功信息</label>
  323. <div class="col-sm-9">
  324. <textarea style="height: 100px;" class="form-control" name="printer[succinfo]"></textarea>
  325. <span class="help-block">设置打印成功后的回复信息的号码和内容,包括GPRS模式和短信模式<br/>
  326. 例:18922836640:收到平台信息打印成功!<br/>
  327. 表示打印成功后,手机号码18922836640会收到“收到平台信息打印成功!”的短信。
  328. </span>
  329. </div>
  330. </div>
  331. <div class="form-group">
  332. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印失败信息</label>
  333. <div class="col-sm-9">
  334. <textarea style="height: 100px;" class="form-control" name="printer[loseinfo]"></textarea>
  335. <span class="help-block">设置打印失败后的回复信息的号码和内容,包括GPRS模式和短信模式
  336. 例:18922836640:收到平台信息打印失败!<br/>
  337. 表示打印成功后,手机号码18922836640会收到“收到平台信息打印失败!”的短信。
  338. </span>
  339. </div>
  340. </div>
  341. <div class="form-group">
  342. <label class="col-xs-12 col-sm-3 col-md-2 control-label">访问时间段</label>
  343. <div class="col-sm-9">
  344. <input type="text" name="printer[visitime]" class="form-control" value="" autocomplete="off"/>
  345. <span class="help-block">设置GPRS模式HTTP访问方式时有效的时间段,采用24小时制度,打印机默认24小时都按照时间段进行访问<br/>
  346. 例:0912表示每天访问时间段是9-12点,其他时间不访问
  347. </span>
  348. </div>
  349. </div>
  350. <div class="form-group">
  351. <label class="col-xs-12 col-sm-3 col-md-2 control-label">短信开头命令</label>
  352. <div class="col-sm-9">
  353. <label class="radio-inline">
  354. <input type="radio" name="printer[messprefix]" ng-model="messprefix.switch" value="1"/>
  355. 开启
  356. </label>
  357. <label class="radio-inline">
  358. <input type="radio" name="printer[messprefix]" ng-model="messprefix.switch" value="0"/>
  359. 关闭
  360. </label>
  361. <span class="help-block">设置短信###开头才可以打印,关闭后收到任意短信直接打印,默认为开启</span>
  362. </div>
  363. </div>
  364. <div class="form-group">
  365. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印字体</label>
  366. <div class="col-sm-9">
  367. <input type="text" name="printer[font]" class="form-control" value="" autocomplete="off"/>
  368. <span class="help-block">设置当前打印行字体为正常字体(同一行必须同一种字体,如果要换字体必须先换行),默认为正常字体</span>
  369. </div>
  370. </div>
  371. <div class="form-group">
  372. <label class="col-xs-12 col-sm-3 col-md-2 control-label">访问密码</label>
  373. <div class="col-sm-9">
  374. <input type="text" name="printer[visitpassword]" class="form-control" value="" autocomplete="off"/>
  375. <span class="help-block">设置用户访问HTTP网页时访问密码,默认为空,即没有设置密码</span>
  376. </div>
  377. </div>
  378. <div class="form-group">
  379. <label class="col-xs-12 col-sm-3 col-md-2 control-label">机器访问模式</label>
  380. <div class="col-sm-8">
  381. <label class="radio-inline">
  382. <input type="radio" name="printer[visitmode]" ng-model="visitmode.switch" value="1"/>
  383. IMEI模式
  384. </label>
  385. <label class="radio-inline">
  386. <input type="radio" name="printer[visitmode]" ng-model="visitmode.switch" value="0"/>
  387. IMSI模式
  388. </label>
  389. <span class="help-block">设置HTTP模式时,机器的访问模式,默认为IMEI模式</span>
  390. </div>
  391. </div>
  392. <div class="form-group">
  393. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印页眉时间</label>
  394. <div class="col-sm-8">
  395. <label class="radio-inline">
  396. <input type="radio" name="printer[headertime]" ng-model="headertime.switch" value="1"/>
  397. 打印
  398. </label>
  399. <label class="radio-inline">
  400. <input type="radio" name="printer[headertime]" ng-model="headertime.switch" value="0"/>
  401. 不打印
  402. </label>
  403. <span class="help-block">设置是否打印页眉的时间,默认打印</span>
  404. </div>
  405. </div>
  406. <div class="form-group">
  407. <label class="col-xs-12 col-sm-3 col-md-2 control-label">LOGO打印位置</label>
  408. <div class="col-sm-8">
  409. <label class="radio-inline">
  410. <input type="radio" name="printer[logo]" ng-model="logo.switch" value="1"/>
  411. 打印在页头位置
  412. </label>
  413. <label class="radio-inline">
  414. <input type="radio" name="printer[logo]" ng-model="logo.switch" value="0"/>
  415. 不打印
  416. </label>
  417. <label class="radio-inline">
  418. <input type="radio" name="printer[logo]" ng-model="logo.switch" value="2"/>
  419. 打印在页尾位置
  420. </label>
  421. <span class="help-block">设置是否打印LOGO,默认不打印</span>
  422. </div>
  423. </div>
  424. <div class="form-group">
  425. <label class="col-xs-12 col-sm-3 col-md-2 control-label">图片下载模式</label>
  426. <div class="col-sm-8">
  427. <label class="radio-inline">
  428. <input type="radio" name="printer[downmode]" ng-model="downmode.switch" value="1"/>
  429. ASCII模式
  430. </label>
  431. <label class="radio-inline">
  432. <input type="radio" name="printer[downmode]" ng-model="downmode.switch" value="0"/>
  433. 16进制模式
  434. </label>
  435. <span class="help-block">设置图片下载模式,默认为ASCII模式</span>
  436. </div>
  437. </div>
  438. <div class="form-group">
  439. <label class="col-xs-12 col-sm-3 col-md-2 control-label">新数据发送后台</label>
  440. <div class="col-sm-8">
  441. <label class="radio-inline">
  442. <input type="radio" name="printer[newdata]" ng-model="newdata.switch" value="1"/>
  443. 发送
  444. </label>
  445. <label class="radio-inline">
  446. <input type="radio" name="printer[newdata]" ng-model="newdata.switch" value="0"/>
  447. 不发送
  448. </label>
  449. <span class="help-block">设置收到新数据后是否发送给后台,默认不发送<br/>
  450. 具体定义如下:当设置为发送时,如果打印机没有按键给后台,收到新的打印数据时打印机每隔12秒钟左右蜂鸣1次提醒用户按键确认
  451. </span>
  452. </div>
  453. </div>
  454. <div class="form-group">
  455. <label class="col-xs-12 col-sm-3 col-md-2 control-label">上传打印id</label>
  456. <div class="col-sm-8">
  457. <label class="radio-inline">
  458. <input type="radio" name="printer[upmode]" ng-model="upmode.switch" value="1"/>
  459. 开启
  460. </label>
  461. <label class="radio-inline">
  462. <input type="radio" name="printer[upmode]" ng-model="upmode.switch" value="0"/>
  463. 关闭
  464. </label>
  465. <span class="help-block">设置http模式请求时上传打印的id的功能,默认为关闭</span>
  466. </div>
  467. </div>
  468. <div class="form-group">
  469. <label class="col-xs-12 col-sm-3 col-md-2 control-label">蜂鸣次数</label>
  470. <div class="col-sm-9">
  471. <input type="text" name="printer[buzzingnums]" class="form-control" value="" autocomplete="off"/>
  472. <span class="help-block">设置GPRS模式收到打印数据时蜂鸣响声的次数,默认为2</span>
  473. </div>
  474. </div>
  475. <div class="form-group">
  476. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印一维码</label>
  477. <div class="col-sm-9">
  478. <input type="text" name="printer[onecode]" class="form-control" value="" autocomplete="off"/>
  479. <span class="help-block">打印一维码(此功能仅支持有动态一维码打印的驱动板,具体联系销售)<br/>
  480. 具体定义如下:%40nxxxxxx:<br/>n是一维码的字符串长度为1 ~ 14,10-14分别用字母a-e表示,xxxxxx是一维码CODE128的字符串
  481. </span>
  482. </div>
  483. </div>
  484. <div class="form-group">
  485. <label class="col-xs-12 col-sm-3 col-md-2 control-label">打印二维码</label>
  486. <div class="col-sm-9">
  487. <input type="text" name="printer[twocode]" class="form-control" value="" autocomplete="off"/>
  488. <span class="help-block">打印二维码(此功能仅支持有动态二维码打印的驱动板,具体联系销售)<br/>
  489. 具体定义如下:%50SPLxxxxxx:<br/>
  490. S二维码的纠错等级0 ~ 3,默认为1。
  491. P二维码的模块大小2 ~ 8,默认为4。
  492. L二维码字符串的长度(16进制,如少16,前面加0,比如12长度为0C)
  493. xxxxxx是二维码的字符串
  494. </span>
  495. </div>
  496. </div>
  497. <div class="form-group">
  498. <label class="col-xs-12 col-sm-3 col-md-2 control-label">短信打印功能</label>
  499. <div class="col-sm-8">
  500. <label class="radio-inline">
  501. <input type="radio" name="printer[messprint]" ng-model="messprint.switch" value="1"/>
  502. 开启
  503. </label>
  504. <label class="radio-inline">
  505. <input type="radio" name="printer[messprint]" ng-model="messprint.switch" value="0"/>
  506. 关闭
  507. </label>
  508. <span class="help-block">设置是否开启短信打印功能,默认开启</span>
  509. </div>
  510. </div>
  511. </form>
  512. </div>
  513. {template 'common/footer'}