微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

265 lines
14 KiB

  1. <!--pages/contract/add/add.wxml-->
  2. <view class="ns" style="height:{{isIPX?'88px':'64px'}};">
  3. <image src="../../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
  4. <text style="top:{{isIPX?'54px':'30px'}};">{{form.id?"":"新增"}}资产信息</text>
  5. </view>
  6. <view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">
  7. <view style="margin-bottom:15px;">
  8. <image src="../../../image/icon/fixed_contract_icon.png" referrer="no-referrer|origin|unsafe-url" style="width: 15px;height: 15px;margin-right: 10px;"></image>
  9. <text class="tit">基本信息</text>
  10. </view>
  11. <view class="table-boxs">
  12. <view>
  13. <view>
  14. <text><text style="color:red;margin-right: 10rpx;">*</text>资产编码</text>
  15. </view>
  16. <view>
  17. <input type="text" value="{{form.code}}" bindinput="bindNewInput" data-name="form.code" placeholder="请输入资产编码" style="text-align: right;margin-top: 20rpx;" />
  18. </view>
  19. </view>
  20. <view>
  21. <view>
  22. <text><text style="color:red;margin-right: 10rpx;">*</text>资产名称</text>
  23. </view>
  24. <view>
  25. <input type="text" value="{{form.name}}" bindinput="bindNewInput" data-name="form.name" placeholder="请输入资产名称" style="text-align: right;margin-top: 20rpx;" />
  26. </view>
  27. </view>
  28. <view class="section">
  29. <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>资产类别</view>
  30. <picker bindchange="onConfirmAssetType" value="{{assetTypeindex}}" range="{{assetTypeOptions}}" range-key="{{'dictLabel'}}">
  31. <view class="picker">
  32. {{assetTypeOptions[assetTypeindex].dictLabel?assetTypeOptions[assetTypeindex].dictLabel:"选择资产类别"}}
  33. </view>
  34. </picker>
  35. </view>
  36. <view class="section">
  37. <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>经营属性</view>
  38. <picker bindchange="onConfirmOperationType" value="{{operationTypeindex}}" range="{{operationTypeOptions}}" range-key="{{'dictLabel'}}">
  39. <view class="picker">
  40. {{operationTypeOptions[operationTypeindex].dictLabel?operationTypeOptions[operationTypeindex].dictLabel:"选择经营属性"}}
  41. </view>
  42. </picker>
  43. </view>
  44. <view class="section">
  45. <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>增加方式</view>
  46. <picker bindchange="onConfirmAddType" value="{{addTypeindex}}" range="{{addOptions}}" range-key="{{'dictLabel'}}">
  47. <view class="picker">
  48. {{addTypeOptions[addTypeindex].dictLabel?addTypeOptions[addTypeindex].dictLabel:"选择增加方式"}}
  49. </view>
  50. </picker>
  51. </view>
  52. <view class="section">
  53. <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>构建时间</view>
  54. <picker mode="date" value="{{form.buildTime}}" start="{{ minDate }}" end="{{ maxDate }}" bindchange="onConfirmBuildTime">
  55. <view class="picker">
  56. {{form.buildTime}}
  57. </view>
  58. </picker>
  59. </view>
  60. <view>
  61. <view>
  62. <text><text style="color:red;margin-right: 22rpx;"></text>坐落位置</text>
  63. </view>
  64. <view>
  65. <input type="text" value="{{form.location}}" bindinput="bindNewInput" data-name="form.location" placeholder="请输入坐落位置" style="text-align: right;margin-top: 20rpx;" />
  66. </view>
  67. </view>
  68. <view>
  69. <view>
  70. <text><text style="color:red;margin-right: 22rpx;"></text>规格型号</text>
  71. </view>
  72. <view>
  73. <input type="text" value="{{form.specification}}" bindinput="bindNewInput" data-name="form.specification" placeholder="请输入规格型号" style="text-align: right;margin-top: 20rpx;" />
  74. </view>
  75. </view>
  76. <view>
  77. <view>
  78. <text><text style="color:red;margin-right: 22rpx;"></text>供应商</text>
  79. </view>
  80. <view>
  81. <input type="text" value="{{form.supplier}}" bindinput="bindNewInput" data-name="form.supplier" placeholder="请输入供应商" style="text-align: right;margin-top: 20rpx;" />
  82. </view>
  83. </view>
  84. <view class="section">
  85. <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>使用情况</view>
  86. <picker bindchange="onConfirmUseType" value="{{useTypeindex}}" range="{{useTypeOptions}}" range-key="{{'dictLabel'}}">
  87. <view class="picker">
  88. {{useTypeOptions[useTypeindex].dictLabel?useTypeOptions[useTypeindex].dictLabel:"选择使用情况"}}
  89. </view>
  90. </picker>
  91. </view>
  92. <view class="section">
  93. <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>资产状态</view>
  94. <picker bindchange="onConfirmAssetStatus" value="{{assetStatusindex}}" range="{{assetStatusOptions}}" range-key="{{'dictLabel'}}">
  95. <view class="picker">
  96. {{assetStatusOptions[assetStatusindex].dictLabel?assetStatusOptions[assetStatusindex].dictLabel:"选择资产状态"}}
  97. </view>
  98. </picker>
  99. </view>
  100. <view class="section">
  101. <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>单元资产</view>
  102. <picker bindchange="onConfirmIsMin" value="{{isMinindex}}" range="{{sysYesNoOptions}}" range-key="{{'dictLabel'}}">
  103. <view class="picker">
  104. {{sysYesNoOptions[isMinindex].dictLabel?sysYesNoOptions[isMinindex].dictLabel:"选择单元资产"}}
  105. </view>
  106. </picker>
  107. </view>
  108. <view class="section">
  109. <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>扶贫资产</view>
  110. <picker bindchange="onConfirmIsFormAsset" value="{{isFormAssetindex}}" range="{{sysYesNoOptions}}" range-key="{{'dictLabel'}}">
  111. <view class="picker">
  112. {{sysYesNoOptions[isFormAssetindex].dictLabel?sysYesNoOptions[isFormAssetindex].dictLabel:"选择扶贫资产"}}
  113. </view>
  114. </picker>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="main-box table-box" style="margin-top:15px;">
  119. <view style="margin-bottom:15px;">
  120. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  121. <text class="tit">资产数据</text>
  122. </view>
  123. <view class="table-boxs">
  124. <view>
  125. <view>
  126. <text><text style="color:red;margin-right: 22rpx;"></text>数量/面积</text>
  127. </view>
  128. <view>
  129. <input type="text" value="{{form.quantity}}" bindinput="bindNewInput" data-name="form.quantity" style="text-align: right;margin-top: 20rpx;" />
  130. </view>
  131. </view>
  132. <view class="section">
  133. <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>计量单位</view>
  134. <picker bindchange="onConfirmUnit" value="{{unitindex}}" range="{{unitOptions}}" range-key="{{'dictLabel'}}">
  135. <view class="picker">
  136. {{unitOptions[unitindex].dictLabel?unitOptions[unitindex].dictLabel:"选择计量单位"}}
  137. </view>
  138. </picker>
  139. </view>
  140. <view>
  141. <view>
  142. <text><text style="color:red;margin-right: 22rpx;"></text>原值(元)</text>
  143. </view>
  144. <view>
  145. <input type="text" value="{{form.originalValue}}" bindinput="bindNewInput" data-name="form.originalValue" style="text-align: right;margin-top: 20rpx;" />
  146. </view>
  147. </view>
  148. <view>
  149. <view>
  150. <text><text style="color:red;margin-right: 22rpx;"></text>净值(元)</text>
  151. </view>
  152. <view>
  153. <input type="text" value="{{form.netValue}}" bindinput="bindNewInput" data-name="form.netValue" style="text-align: right;margin-top: 20rpx;" />
  154. </view>
  155. </view>
  156. <view>
  157. <view>
  158. <text><text style="color:red;margin-right: 22rpx;"></text>残值率 N%</text>
  159. </view>
  160. <view>
  161. <input type="text" value="{{form.residualsRate}}" bindinput="bindNewInput" data-name="form.residualsRate" style="text-align: right;margin-top: 20rpx;" />
  162. </view>
  163. </view>
  164. <view>
  165. <view>
  166. <text><text style="color:red;margin-right: 22rpx;"></text>净残值(元)</text>
  167. </view>
  168. <view>
  169. <input type="text" value="{{form.netSalvage}}" bindinput="bindNewInput" data-name="form.netSalvage" style="text-align: right;margin-top: 20rpx;" />
  170. </view>
  171. </view>
  172. <view>
  173. <view>
  174. <text><text style="color:red;margin-right: 22rpx;"></text>资产清理(元)</text>
  175. </view>
  176. <view>
  177. <input type="text" value="{{form.fixedValue}}" bindinput="bindNewInput" data-name="form.fixedValue" style="text-align: right;margin-top: 20rpx;" />
  178. </view>
  179. </view>
  180. <view>
  181. <view>
  182. <text><text style="color:red;margin-right: 22rpx;"></text>资产清理科目</text>
  183. </view>
  184. <view>
  185. <input type="text" value="{{form.fixedSubject}}" bindinput="bindNewInput" disabled="true" data-name="form.fixedSubject" style="text-align: right;margin-top: 20rpx;" />
  186. </view>
  187. </view>
  188. <view>
  189. <view>
  190. <text><text style="color:red;margin-right: 22rpx;"></text>折旧科目</text>
  191. </view>
  192. <view>
  193. <input type="text" value="{{form.depreciationSubject}}" bindinput="bindNewInput" data-name="form.depreciationSubject" disabled="true" style="text-align: right;margin-top: 20rpx;" />
  194. </view>
  195. </view>
  196. <view>
  197. <view>
  198. <text><text style="color:red;margin-right: 22rpx;"></text>折旧费用科目</text>
  199. </view>
  200. <view>
  201. <input type="text" value="{{form.depreciationFeeSubject}}" disabled="true" bindinput="bindNewInput" data-name="form.depreciationFeeSubject" style="text-align: right;margin-top: 20rpx;" />
  202. </view>
  203. </view>
  204. <view>
  205. <view>
  206. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  207. </view>
  208. <view>
  209. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  210. </view>
  211. </view>
  212. </view>
  213. </view>
  214. <view class="main-box table-box" style="margin-top:15px;">
  215. <view style="margin-bottom:15px;">
  216. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  217. <text class="tit">折旧方式</text>
  218. </view>
  219. <view class="table-boxs">
  220. <view class="section">
  221. <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>折旧方式</view>
  222. <picker bindchange="onConfirmDepreciationType" value="{{depreciationTypeindex}}" range="{{depreciationTypeOptions}}" range-key="{{'dictLabel'}}">
  223. <view class="picker">
  224. {{depreciationTypeOptions[depreciationTypeindex].dictLabel?depreciationTypeOptions[depreciationTypeindex].dictLabel:"选择折旧方式"}}
  225. </view>
  226. </picker>
  227. </view>
  228. <view>
  229. <view>
  230. <text><text style="color:red;margin-right: 22rpx;"></text>预计使用年数</text>
  231. </view>
  232. <view>
  233. <input type="text" value="{{form.expectedYears}}" bindinput="bindNewInput" data-name="form.expectedYears" type="digit" placeholder="(原值-净残值)/预计使用年数" style="text-align: right;margin-top: 20rpx;" />
  234. </view>
  235. </view>
  236. <view>
  237. <view>
  238. <text><text style="color:red;margin-right: 22rpx;"></text>每年折旧额:</text>
  239. </view>
  240. <view>
  241. <input type="text" value="{{form.perYearDepreciationValue}}" bindinput="bindNewInput" data-name="form.perYearDepreciationValue" type="digit" disabled="true" style="text-align: right;margin-top: 20rpx;" />
  242. </view>
  243. </view>
  244. <view>
  245. <view>
  246. <text><text style="color:red;margin-right: 22rpx;"></text>已折旧年数</text>
  247. </view>
  248. <view>
  249. <input type="text" value="{{form.depreciationYears}}" bindinput="bindNewInput" data-name="form.depreciationYears" type="digit" style="text-align: right;margin-top: 20rpx;" />
  250. </view>
  251. </view>
  252. <view>
  253. <view>
  254. <text><text style="color:red;margin-right: 22rpx;"></text>累计折旧(元)</text>
  255. </view>
  256. <view>
  257. <input type="text" value="{{form.depreciationValue}}" bindinput="bindNewInput" data-name="form.depreciationValue" disabled="true"
  258. type="digit" style="text-align: right;margin-top: 20rpx;" />
  259. </view>
  260. </view>
  261. </view>
  262. </view>
  263. <view class="bottom">
  264. <view class="btn2" bindtap="goSubmit">确认</view>
  265. </view>