deviceStorage-edit.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <div id="content">
  2. <section id="widget-grid" widget-grid>
  3. <div class="row">
  4. <article class="col-sm-12 col-md-12 col-lg-12">
  5. <div jarvis-widget id="form-grid-widget" data-widget-colorbutton="false" data-widget-editbutton="false"
  6. data-widget-custombutton="false">
  7. <div>
  8. <div class="widget-body no-padding">
  9. <form id="deviceStorageEdit-form" class="smart-form" data-validator-option="validateOptions"
  10. novalidate="novalidate">
  11. <button type="submit" class="bv-hidden-submit"
  12. style="display: none; width: 0px; height: 0px;"></button>
  13. <header>
  14. <a href-void class="btn btn-default btn-xs" ng-click="back()"><i
  15. class="fa fa-angle-left"></i>&nbsp;返回&nbsp;</a>
  16. &nbsp;<strong>设备器材入库详情页</strong>
  17. </header>
  18. <fieldset>
  19. <div class="row">
  20. <section class="col col-3">
  21. <label class="label">类型:<span style="color: red;">*</span></label>
  22. <label class="select">
  23. <select ng-model="dSbxxsjy.ssfl" ng-change="changeDeviceType()"
  24. ng-disabled="isNotEdit" required>
  25. <option value="" selected="">--请选择--</option>
  26. <option value="1">粮食设备</option>
  27. <option value="3">仓储器材</option>
  28. </select>
  29. </label>
  30. </section>
  31. <section class="col col-3">
  32. <label class="label">设备状态:<span style="color: red;">*</span></label>
  33. <label class="select">
  34. <select ng-model="dSbxxsjy.status" name="status" required>
  35. <option value="">--请选择--</option>
  36. <option value="1">完好</option>
  37. <option value="2">报废</option>
  38. <option value="3">待检修</option>
  39. <option value="4">其它</option>
  40. <!-- <option value="0">报废</option> -->
  41. </select><i></i>
  42. </label>
  43. </section>
  44. </div>
  45. <!--设备-->
  46. <div ng-hide="ShowSBType">
  47. <div class="row">
  48. <section class="col col-3">
  49. <label class="label">设备仪器名称:<span style="color: red;">*</span></label>
  50. <label class="select" ng-readonly="isNotEdit">
  51. <multi-select-tree
  52. disabled-tree="isNotEdit"
  53. data-input-model="deviceNameTreeData"
  54. data-output-model="dSbxxsjy.sbyqid"
  55. data-default-label="请选择"
  56. multi-select="false"
  57. select-only-leafs="true"
  58. data-callback="selectOnly1Or2(item, selectedItems)" required>
  59. </multi-select-tree>
  60. <em><span style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;
  61. line-height:15px;" id="grainAttribute-error"></span></em>
  62. </label>
  63. </section>
  64. <section class="col col-3">
  65. <label class="input"> <label class="label">规格型号:<span style="color: red;">*</span></label>
  66. <input type="text" ng-model="dSbxxsjy.sbggxh" name="model"
  67. ng-readonly="isNotEdit" placeholder="规格型号" required />
  68. </label>
  69. </section>
  70. <section class="col col-3">
  71. <label class="input">
  72. <label class="label">资产编号:</label>
  73. <input type="text" ng-model="dSbxxsjy.zcbh" ng-readonly="isNotEdit"
  74. placeholder="资产编号">
  75. </label>
  76. </section>
  77. <section class="col col-3">
  78. <label class="input">
  79. <label class="label">设备编号:</label>
  80. <input type="text" ng-model="dSbxxsjy.sbbh" ng-readonly="true"
  81. placeholder="编号自动保存">
  82. </label>
  83. </section>
  84. </div>
  85. <div class="row">
  86. <section class="col col-3">
  87. <label class="label">单价(元)<span style="color: red;">*</span></label>
  88. <label class="input">
  89. <input type="text" ng-model="dSbxxsjy.cgjg" name="cgjg" ng-readonly="isNotEdit" required
  90. placeholder="单价" validDouble="true" />
  91. </label>
  92. </section>
  93. <section class="col col-3">
  94. <label class="label">入库数量:<span style="color: red;">*</span></label>
  95. <label class="input">
  96. <input type="number" ng-model="dSbxxsjy.sbsl"
  97. ng-disabled="isNotEdit" placeholder="入库数量" required
  98. name="sbsl" validInteger="true">
  99. </label>
  100. </section>
  101. <section class="col col-3">
  102. <label class="select">
  103. <label class="label">单位:</label>
  104. <label class="select">
  105. <select ng-model="dSbxxsjy.sbdwmc" ng-disabled="isNotEdit"
  106. ng-readonly="isNotEdit">
  107. <option value="">--请选择--</option>
  108. <option value="把">把</option>
  109. <option value="个">个</option>
  110. <option value="台">台</option>
  111. </select>
  112. </label>
  113. </label>
  114. </section>
  115. <section class="col col-3">
  116. <label class="label">生产日期:<span style="color: red;">*</span></label>
  117. <label class="input">
  118. <input type="text" ng-model="dSbxxsjy.scrq" name="scrq" id="disablescrq"
  119. ng-disabled="isNotEdit" required onClick="WdatePicker({lang:'zh-cn'})">
  120. </label>
  121. </section>
  122. </div>
  123. <div class="row">
  124. <section class="col col-3">
  125. <label class="label">入库日期:<span style="color: red;">*</span></label>
  126. <label class="input">
  127. <input type="text" ng-model="dSbxxsjy.rkrq" name="rkrq" onClick="WdatePicker({lang:'zh-cn'})" ng-disabled="isNotEdit"
  128. id="disablerkrq" required />
  129. <!-- <input type="text" ng-model="dSbxxsjy.rkrq" name="rkrq" class="Wdate" id="disablerkrq"
  130. ng-readonly="true" ng-disabled="isNotEdit" required onClick="WdatePicker({lang:'zh-cn'})" /> -->
  131. </label>
  132. </section>
  133. <section class="col col-3">
  134. <label class="label">使用年限:</label>
  135. <label class="input">
  136. <input type="number" ng-model="dSbxxsjy.sysm" name=""
  137. ng-readonly="isNotEdit"
  138. placeholder="使用年限">
  139. </label>
  140. </section>
  141. <section class="col col-3">
  142. <label class="input">
  143. <label class="label">生产厂家:<span style="color: red;">*</span></label>
  144. <input type="text" ng-model="dSbxxsjy.sccj" name="sccj"
  145. ng-readonly="isNotEdit"
  146. placeholder="生产厂家" required />
  147. </label>
  148. </section>
  149. <section class="col col-3">
  150. <label class="label">存放位置:</label>
  151. <label class="select">
  152. <select ng-model="dSbxxsjy.fzd" name="fzd" type="text"
  153. ng-options="equipmentEquipmentPool.id as equipmentEquipmentPool.putPosition for equipmentEquipmentPool in equipmentEquipmentPool "
  154. class="form-control" ng-disabled="isNotEdit">
  155. <option value="">--请选择--</option>
  156. </select>
  157. </label>
  158. </section>
  159. </div>
  160. <div class="row">
  161. <section class="col col-3">
  162. <label class="label">货架:</label>
  163. <label class="select">
  164. <select ng-model="dSbxxsjy.sbazr" name="sbazr" class="form-control"
  165. ng-disabled="isNotEdit"
  166. ng-options="equipmentEquipmentPool.id as equipmentEquipmentPool.shelfId for equipmentEquipmentPool in equipmentEquipmentPool | filter:{id:dSbxxsjy.fzd}">
  167. <option value="">--请选择--</option>
  168. </select>
  169. </label>
  170. </section>
  171. <section class="col col-3">
  172. <label class="label">货位:</label>
  173. <label class="select">
  174. <select ng-model="dSbxxsjy.shrmc" name="shrmc"
  175. class="form-control"
  176. ng-disabled="isNotEdit"
  177. ng-options="equipmentEquipmentPool.id as equipmentEquipmentPool.warehouseId for equipmentEquipmentPool in equipmentEquipmentPool | filter:{id:dSbxxsjy.sbazr}">
  178. <option value="">--请选择--</option>
  179. </select>
  180. </label>
  181. </section>
  182. <section class="col col-3">
  183. <label class="input">
  184. <label class="label">操作人:</label>
  185. <input type="text" ng-model="dSbxxsjy.djr" ng-readonly="isNotEdit"
  186. placeholder="操作人">
  187. </label>
  188. </section>
  189. <section class="col col-3">
  190. <label class="label">操作时间:</label>
  191. <label class="input">
  192. <input type="text" ng-model="dSbxxsjy.createDate" name="createDate" id="createDate"
  193. onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
  194. ng-disabled="isNotEdit"
  195. placeholder="操作时间">
  196. </label>
  197. </section>
  198. </div>
  199. <div class="row">
  200. <section class="col col-6">
  201. <label class="label">设备描述:</label>
  202. <label class="input">
  203. <input type="text" ng-model="dSbxxsjy.remark" placeholder="备注"
  204. ng-readonly="isNotEdit">
  205. </label>
  206. </section>
  207. <section class="col col-3">
  208. <label class="input">
  209. <label class="label">检定单位:</label>
  210. <input type="text" ng-model="dSbxxsjy.jddw" name="jddw"
  211. placeholder="检定单位" ng-disabled="isNotEdit" />
  212. </label>
  213. </section>
  214. <section class="col col-3">
  215. <label class="label">检定时间:</label>
  216. <label class="input">
  217. <input type="text" ng-model="dSbxxsjy.jdsj" name="jdsj" id="jdsj"
  218. onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
  219. ng-disabled="isNotEdit" />
  220. </label>
  221. </section>
  222. </div>
  223. <div class="row">
  224. <section class="col col-3">
  225. <label class="input">
  226. <label class="label">提交人:</label>
  227. <input type="text" ng-model="dSbxxsjy.refresher" ng-disabled="true">
  228. </label>
  229. </section>
  230. <section class="col col-3">
  231. <label class="label">提交时间:</label>
  232. <label class="input">
  233. <input type="text" ng-model="dSbxxsjy.refreshTime" name="refreshTime"
  234. onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
  235. ng-disabled="true">
  236. </label>
  237. </section>
  238. </div>
  239. </div>
  240. <!--器材-->
  241. <div ng-hide="ShowQCType">
  242. <div class="row">
  243. <section class="col col-3">
  244. <label class="label">名称:<span style="color: red;">*</span></label>
  245. <label class="select">
  246. <multi-select-tree
  247. disabled-tree="isNotEdit"
  248. data-input-model="deviceNameTreeData"
  249. data-output-model="dSbxxsjy.sbyqid"
  250. data-default-label="请选择"
  251. multi-select="false"
  252. select-only-leafs="true"
  253. data-callback="selectOnly1Or2(item, selectedItems)">
  254. </multi-select-tree>
  255. <em>
  256. <span id="grainAttributeQc-error" style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;line-height:15px;"></span>
  257. </em>
  258. </label>
  259. </section>
  260. <section class="col col-3">
  261. <label class="label">编号:</label>
  262. <label class="input">
  263. <input type="text" ng-model="dSbxxsjy.sbbh" ng-readonly="true"
  264. placeholder="编号自动保存">
  265. </label>
  266. </section>
  267. <section class="col col-3">
  268. <label class="label">单价(元):<span style="color: red;">*</span></label>
  269. <label class="input">
  270. <input type="text" ng-model="dSbxxsjy.cgjg" name="cgjg" ng-readonly="isNotEdit"
  271. placeholder="单价" validDouble="true" required />
  272. </label>
  273. </section>
  274. <section class="col col-3">
  275. <label class="label">数量:<span style="color: red;">*</span></label>
  276. <label class="input">
  277. <input type="number" ng-model="dSbxxsjy.sbsl" name="sbsl"
  278. ng-readonly="isNotEdit" required placeholder="数量" validInteger="true">
  279. </label>
  280. </section>
  281. </div>
  282. <div class="row">
  283. <section class="col col-3">
  284. <label class="label">入库日期:<span style="color: red;">*</span></label>
  285. <label class="input">
  286. <input type="text" ng-model="dSbxxsjy.rkrq" name="rkrq" onClick="WdatePicker({lang:'zh-cn'})" ng-disabled="isNotEdit"
  287. id="disableQcrkrq" required />
  288. </label>
  289. </section>
  290. <section class="col col-3">
  291. <label class="label">存放位置:</label>
  292. <label class="select">
  293. <select ng-model="dSbxxsjy.fzd" name="fzd" type="text"
  294. ng-options="equipmentEquipmentPool.id as equipmentEquipmentPool.putPosition for equipmentEquipmentPool in equipmentEquipmentPool "
  295. class="form-control" ng-disabled="isNotEdit">
  296. <option value="">--请选择--</option>
  297. </select>
  298. </label>
  299. </section>
  300. <section class="col col-3">
  301. <label class="label">货架:</label>
  302. <label class="select">
  303. <select ng-model="dSbxxsjy.sbazr" name="sbazr" class="form-control"
  304. ng-disabled="isNotEdit"
  305. ng-options="equipmentEquipmentPool.id as equipmentEquipmentPool.shelfId for equipmentEquipmentPool in equipmentEquipmentPool | filter:{id:dSbxxsjy.fzd}">
  306. <option value="">--请选择--</option>
  307. </select>
  308. </label>
  309. </section>
  310. <!-- <section class="col col-3"> -->
  311. <!-- <label class="label">设备状态:</label> -->
  312. <!-- <label class="select"> -->
  313. <!-- <select ng-model="dSbxxsjy.status" name="status" ng-disabled="isNotEdit" required> -->
  314. <!-- <option value="">--请选择--</option> -->
  315. <!-- <option value="1" ng-selected="1">正常</option> -->
  316. <!-- <option value="0">已作废</option> -->
  317. <!-- </select> -->
  318. <!-- </label> -->
  319. <!-- </section> -->
  320. </div>
  321. <div class="row">
  322. <section class="col col-3">
  323. <label class="input">
  324. <label class="label">操作人:</label>
  325. <input type="text" ng-model="dSbxxsjy.djr"
  326. placeholder="操作人" ng-disabled="isNotEdit">
  327. </label>
  328. </section>
  329. <section class="col col-3">
  330. <label class="label">操作时间:</label>
  331. <label class="input">
  332. <input type="text" ng-model="dSbxxsjy.createDate" name="createdate" id="createdate"
  333. onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
  334. ng-disabled="isNotEdit"
  335. placeholder="操作时间">
  336. </label>
  337. </section>
  338. <section class="col col-6">
  339. <label class="label">设备描述:</label>
  340. <label class="input">
  341. <input type="text" ng-model="dSbxxsjy.remark" placeholder="备注"
  342. ng-readonly="isNotEdit">
  343. </label>
  344. </section>
  345. </div>
  346. <div class="row">
  347. <section class="col col-3">
  348. <label class="input">
  349. <label class="label">检定单位:</label>
  350. <input type="text" ng-model="dSbxxsjy.jddw" name="jddw"
  351. placeholder="检定单位" ng-disabled="isNotEdit" />
  352. </label>
  353. </section>
  354. <section class="col col-3">
  355. <label class="label">检定时间:</label>
  356. <label class="input">
  357. <input type="text" ng-model="dSbxxsjy.jdsj" name="jdsj" id="jdsjqc"
  358. onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
  359. ng-disabled="isNotEdit" />
  360. </label>
  361. </section>
  362. </div>
  363. <div class="row">
  364. <section class="col col-3">
  365. <label class="input">
  366. <label class="label">提交人:</label>
  367. <input type="text" ng-model="dSbxxsjy.refresher" ng-disabled="true">
  368. </label>
  369. </section>
  370. <section class="col col-3">
  371. <label class="label">提交时间:</label>
  372. <label class="input">
  373. <input type="text" ng-model="dSbxxsjy.refreshTime" name="refreshTime"
  374. onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})"
  375. ng-disabled="true">
  376. </label>
  377. </section>
  378. </div>
  379. </div>
  380. </fieldset>
  381. <div>
  382. <footer class="text-align-center">
  383. <button type="button" class="btn btn-default" ng-click="back()">取消</button>
  384. <button type="button" class="btn btn-primary" ng-hide="isNotEdit"
  385. ng-click="saveData()">保存
  386. </button>
  387. </footer>
  388. </div>
  389. </form>
  390. </div>
  391. </div>
  392. </div>
  393. </article>
  394. </div>
  395. </section>
  396. </div>