qualitycheck-firstcheck-sample-edit.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <style>
  2. .none { display:none;}
  3. </style>
  4. <style media="print">.none { display:block;}</style>
  5. <div id="content">
  6. <section id="widget-grid" widget-grid>
  7. <div class="row">
  8. <article class="col-sm-12 col-md-12 col-lg-12">
  9. <div jarvis-widget id="form-grid-widget" data-widget-colorbutton="false" data-widget-editbutton="false"
  10. data-widget-custombutton="false">
  11. <div>
  12. <div class="widget-body no-padding">
  13. <form id="qualitycheck-form" class="smart-form" data-validator-option="validateOptions" novalidate="novalidate">
  14. <button type="submit" class="bv-hidden-submit" style="display: none; width: 0px; height: 0px;"></button>
  15. <header>
  16. <a href-void class="btn btn-default btn-xs" ng-click="back()"><i class="fa fa-angle-left"></i>&nbsp;返回&nbsp;</a>
  17. <!-- <a class="btn btn-primary btn-xs pull-right" id="printId" ng-click="print()"><span class="fa fa-print"></span>&nbsp;打&nbsp;印</a> -->
  18. </header>
  19. <div>
  20. <header>基础信息</header>
  21. <fieldset>
  22. <div class="row" ng-show="!isShow || isDepotShow">
  23. <section class="col col-3">
  24. <label class="label txt-bg-red">粮库名称<span style="color: red;">*</span></label>
  25. <label class="select">
  26. <select ng-model="qualitycheck.depotId" name="depotId" required ng-disabled="isNotEdit"
  27. ng-options="depot.depotId as depot.depotName for depot in depotList"
  28. class="form-control" ng-change="getBasicData(qualitycheck.depotId)">
  29. <option value="">--请选择--</option>
  30. </select>
  31. </label>
  32. </section>
  33. </div>
  34. <div class="row">
  35. <section class="col col-3">
  36. <label class="label">仓房/油罐名称:<span style="color: red;">*</span></label>
  37. <div ng-if="qualitycheck.id == null || qualitycheck.depotId != null">
  38. <label class="select">
  39. <select ng-model="qualitycheck.houseId" name="houseId" required ng-change=change()
  40. ng-options="store.storehouseId as store.storehouseName for store in store_tank_list"
  41. class="form-control">
  42. <option value="">--请选择--</option>
  43. </select>
  44. </label>
  45. </div>
  46. <div ng-if="qualitycheck.id != null && qualitycheck.depotId == null ">
  47. <label class="input">
  48. <input type="text" ng-disabled="true" ng-value="storehouseObj[qualitycheck.houseId].storehouseName" name="houseId" required>
  49. </label>
  50. </div>
  51. </section>
  52. <section class="col col-3">
  53. <label class="label">货位名称:<span style="color: red;">*</span></label>
  54. <label class="select">
  55. <select ng-model="qualitycheck.warehouseId" name="warehouseId" ng-disabled="isNotEdit" ng-change=changeGetInfo()
  56. ng-options="ware.warehouseId as ware.warehouseName for ware in warehouseList" class="form-control">
  57. <option value="">--请选择--</option>
  58. </select>
  59. </label>
  60. </section>
  61. <section class="col col-3">
  62. <label class="select">
  63. <label class="label">粮油品种:<span style="color: red;">*</span></label>
  64. <label class="select">
  65. <select ng-model="qualitycheck.subType" ng-disabled="isShow"
  66. ng-options="enum.enumid as enum.enumname for enum in dicDataList[1061]"
  67. ng-change="getGrainDetailKind()" required>
  68. <option value="">-- 粮油品种 --</option>
  69. </select>
  70. </label>
  71. </label>
  72. </section>
  73. <section class="col col-3" ng-show="isShow">
  74. <label class="select">
  75. <label class="label">明细品种:<span style="color: red;">*</span></label>
  76. <label class="select">
  77. <label class="input">
  78. <input type="text" ng-disabled="isShow" ng-value="dicData[qualitycheck.subTypeDetailed]" required>
  79. <input type="hidden" ng-model="qualitycheck.subTypeDetailed">
  80. </label>
  81. </label>
  82. </label>
  83. </section>
  84. <section class="col col-3" ng-hide="isShow" style="margin-bottom: 0px;">
  85. <label class="label">明细品种:<span style="color: red;">*</span></label>
  86. <label class="select" id="grainDetailKind-label">
  87. <multi-select-tree
  88. disabled-tree="isNotEdit"
  89. data-input-model="grainDetailKindTreeData"
  90. data-output-model="qualitycheck.subTypeDetailed"
  91. data-default-label="--请选择--" name="subTypeDetailed"
  92. multi-select="false"
  93. select-only-leafs="true">
  94. </multi-select-tree>
  95. <!-- select-only-leafs="false" -->
  96. <em><span style="color: #D56161;margin-top:6px;padding:0 1px;font-style:normal;font-size:11px;line-height:15px;" id="grainDetailKind-error"></span></em>
  97. </label>
  98. </section>
  99. </div>
  100. <div class="row">
  101. <section class="col col-3">
  102. <label class="input">
  103. <label class="label">库存数量(公斤)<span style="color: red;">*</span></label>
  104. <input type="text" ng-model="qualitycheck.numberUpdate" name="number" ng-readonly="isShow"
  105. placeholder="库存数量" required>
  106. </label>
  107. </section>
  108. <section class="col col-3">
  109. <label class="label">产地:<span style="color: red;">*</span></label>
  110. <label class="input">
  111. <input type="text" ng-readonly="isShow" value="{{dicData[qualitycheck.location]}}" placeholder="产地" required>
  112. </label>
  113. </section>
  114. <section class="col col-3">
  115. <label class="label">收获年度:<span style="color: red;">*</span></label>
  116. <label class="select">
  117. <select name="harvestTime" ng-model="qualitycheck.harvestTime" ng-disabled="isShow"
  118. ng-options="enum.enumid as enum.enumname for enum in dicDataList[1004]" required>
  119. <option value="" selected="" disabled="">请选择</option>
  120. </select> <i></i>
  121. </label>
  122. </section>
  123. <section class="col col-3">
  124. <label class="label">入仓时间(第一车):<span style="color: red;">*</span></label>
  125. <label class="input">
  126. <input type="text" ng-model="qualitycheck.inputTime" name="inputTime" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isShow"
  127. placeholder="入仓日期" required>
  128. </label>
  129. </section>
  130. </div>
  131. <div class="row">
  132. <section class="col col-3">
  133. <label class="label">入库时间(最后一车):<span style="color: red;">*</span></label>
  134. <label class="input">
  135. <input type="text" ng-model="qualitycheck.zhycsj" name="zhycsj" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isShow"
  136. placeholder="入库日期" required>
  137. </label>
  138. </section>
  139. <section class="col col-3">
  140. <label class="label">检验类型:<span style="color: red;">*</span></label>
  141. <label class="select">
  142. <select name="typeUpdate" ng-model="qualitycheck.typeUpdate" ng-disabled="isNotEdit" ng-change="isChuJian(qualitycheck.typeUpdate)" required>
  143. <option value="" selected="" disabled="">请选择</option>
  144. <option value="0">粮食初检</option>
  145. <option value="4">春秋普查</option>
  146. </select> <i></i>
  147. </label>
  148. </section>
  149. <section class="col col-3">
  150. <label class="label">保管员:<span style="color: red;">*</span></label>
  151. <label class="input">
  152. <input type="text" ng-model="qualitycheck.keeper" ng-disabled="isNotEdit" name="keeper" placeholder="保管员" required>
  153. </label>
  154. </section>
  155. <section class="col col-3">
  156. <!-- <label class="label">粮油等级:<span style="color: red;">*</span></label> -->
  157. <!-- <label class="select"> -->
  158. <!-- <select ng-model="qualitycheck.levelUpdate" ng-disabled="true" ng-readonly="isShow" -->
  159. <!-- ng-options="enum.enumid as enum.enumname for enum in dicDataList[1002]" required> -->
  160. <!-- <option value="">-- 粮油等级 --</option> -->
  161. <!-- </select> -->
  162. <!-- </label> -->
  163. </section>
  164. </div>
  165. </fieldset>
  166. <header>扦样信息</header>
  167. <fieldset>
  168. <div class="row">
  169. <section class="col col-3">
  170. <label class="label">扦样时间:<span style="color: red;">*</span></label>
  171. <label class="input">
  172. <input type="text" ng-model="qualitycheck.chooseTime" name="chooseTime" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isNotEdit"
  173. placeholder="扦样日期" required />
  174. </label>
  175. </section>
  176. <section class="col col-3">
  177. <label class="label">扦样人:<span style="color: red;">*</span></label>
  178. <label class="input">
  179. <input type="text" ng-model="qualitycheck.chooser" name="chooser" ng-readonly="isNotEdit"
  180. placeholder="扦样人" required>
  181. </label>
  182. </section>
  183. <section class="col col-3">
  184. <label class="label">扦样区域:<span style="color: red;">*</span></label>
  185. <label class="input">
  186. <input type="text" ng-model="qualitycheck.qyqy" ng-readonly="isNotEdit" name="qyqy"
  187. placeholder="扦样区域" required>
  188. </label>
  189. </section>
  190. <section class="col col-3">
  191. <label class="select">
  192. <label class="label">扦样单编号:</label>
  193. <label class="input">
  194. <input type="text" ng-model="qualitycheck.qydbh" ng-readonly="isNotEdit" name="qydbh" maxlength="64" bhCheck=true placeholder="扦样单编号">
  195. </label>
  196. </label>
  197. </section>
  198. </div>
  199. <div class="row">
  200. <section class="col col-3">
  201. <label class="select">
  202. <label class="label">样品编号:</label>
  203. <label class="input">
  204. <input type="text" ng-model="qualitycheck.ypbh" ng-readonly="isNotEdit" name="ypbh" maxlength="64" bhCheck=true placeholder="样品编号">
  205. </label>
  206. </label>
  207. </section>
  208. <section class="col col-3">
  209. <label class="select">
  210. <label class="label">样品数量(kg):<span style="color: red;">*</span></label>
  211. <label class="input">
  212. <input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
  213. name="ypsl" placeholder="样品数量" validNumber="true" required />
  214. </label>
  215. </label>
  216. </section>
  217. <section class="col col-3">
  218. <label class="select">
  219. <label class="label">代表数量(kg):<span style="color: red;">*</span></label>
  220. <label class="input">
  221. <input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
  222. name="dbsl" placeholder="代表数量" validNumber="true" required />
  223. </label>
  224. </label>
  225. </section>
  226. </div>
  227. </fieldset>
  228. </div>
  229. <fieldset>
  230. <footer class="modal-footer text-align-center">
  231. <div class="row">
  232. <div class="col-md-12">
  233. <a class="btn btn-default" href-void="" href="#" ng-click="back()">取消</a>
  234. <a class="btn btn-primary" href-void="" href="#" ng-click="saveData(0)" ng-hide="isNotEdit">提交</a>
  235. </div>
  236. </div>
  237. </footer>
  238. </fieldset>
  239. </form>
  240. </div>
  241. </div>
  242. </div>
  243. </article>
  244. </div>
  245. </section>
  246. </div>