qualitycheck-outcheck-sample-edit.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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" class="form-control" required ng-change=changeGetInfo()
  56. id="wareNameDis" ng-options="ware.warehouseId as ware.warehouseName for ware in warehouseList">
  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-disabled="isShow" 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="numberUpdate" 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="input">
  142. <input type="text" ng-model="qualitycheck.keeper" ng-disabled="isNotEdit" name="keeper" placeholder="保管员" required>
  143. </label>
  144. </section>
  145. </div>
  146. </fieldset>
  147. <header>扦样信息</header>
  148. <fieldset>
  149. <div class="row">
  150. <section class="col col-3">
  151. <label class="label">扦样日期:<span style="color: red;">*</span></label>
  152. <label class="input">
  153. <input type="text" ng-model="qualitycheck.chooseTime" name="chooseTime" onClick="WdatePicker({lang:'zh-cn', dateFmt:'yyyy-MM-dd HH:mm:ss'})" ng-disabled="isNotEdit"
  154. placeholder="扦样日期" required />
  155. </label>
  156. </section>
  157. <section class="col col-3">
  158. <label class="label">扦样人:<span style="color: red;">*</span></label>
  159. <label class="input">
  160. <input type="text" ng-model="qualitycheck.chooser" name="chooser" ng-readonly="isNotEdit"
  161. placeholder="扦样人" required />
  162. </label>
  163. </section>
  164. <section class="col col-3">
  165. <label class="label">扦样区域:<span style="color: red;">*</span></label>
  166. <label class="input">
  167. <input type="text" ng-model="qualitycheck.qyqy" ng-readonly="isNotEdit" name="qyqy"
  168. placeholder="扦样区域" required />
  169. </label>
  170. </section>
  171. <section class="col col-3">
  172. <label class="select">
  173. <label class="label">扦样单编号:</label>
  174. <label class="input">
  175. <input type="text" ng-model="qualitycheck.qydbh" ng-readonly="isNotEdit" name="qydbh" maxlength="64" bhCheck=true placeholder="扦样单编号">
  176. </label>
  177. </label>
  178. </section>
  179. </div>
  180. <div class="row">
  181. <section class="col col-3">
  182. <label class="select">
  183. <label class="label">样品编号:</label>
  184. <label class="input">
  185. <input type="text" ng-model="qualitycheck.ypbh" ng-readonly="isNotEdit" name="ypbh" maxlength="64" bhCheck=true placeholder="样品编号" />
  186. </label>
  187. </label>
  188. </section>
  189. <section class="col col-3">
  190. <label class="select">
  191. <label class="label">样品数量(kg):<span style="color: red;">*</span></label>
  192. <label class="input">
  193. <input type="text" ng-model="qualitycheck.ypsl" ng-readonly="isNotEdit"
  194. name="ypsl" placeholder="样品数量" validNumber="true" required />
  195. </label>
  196. </label>
  197. </section>
  198. <section class="col col-3">
  199. <label class="select">
  200. <label class="label">代表数量(kg):<span style="color: red;">*</span></label>
  201. <label class="input">
  202. <input type="text" ng-model="qualitycheck.dbsl" ng-readonly="isNotEdit"
  203. name="dbsl" placeholder="代表数量" validNumber="true" required />
  204. </label>
  205. </label>
  206. </section>
  207. </div>
  208. </fieldset>
  209. </div>
  210. </form>
  211. </div>
  212. <footer class="modal-footer text-align-right">
  213. <div class="row">
  214. <div class="col-md-12">
  215. <a class="btn btn-primary" href-void="" href="#" ng-click="saveData(3)" ng-hide="isNotEdit">提交</a>
  216. <a class="btn btn-default" href-void="" href="#" ng-click="back()">取消</a>
  217. </div>
  218. </div>
  219. </footer>
  220. </div>
  221. </div>
  222. </article>
  223. </div>
  224. </section>
  225. </div>