微信小程序
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

280 linhas
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'}};height: 19.0909px;" 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" disabled="true" 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" disabled="true" 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: 10rpx;">*</text>资产类别</view>
  30. <picker bindchange="onConfirmAssetType" value="{{assetTypeindex}}" disabled="true" range="{{assetTypeOptions}}" range-key="{{'dictLabel'}}">
  31. <view class="picker">
  32. {{assetTypeOptions[assetTypeindex].dictLabel?assetTypeOptions[assetTypeindex].dictLabel:"选择资产类别"}}
  33. <van-icon name="arrow-down" />
  34. </view>
  35. </picker>
  36. </view>
  37. <view class="section">
  38. <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>变更类型</view>
  39. <picker bindchange="onConfirmChangeType" value="{{changeTypeindex}}" range="{{changeTypeOptions}}" range-key="{{'dictLabel'}}">
  40. <view class="picker">
  41. {{changeTypeOptions[changeTypeindex].dictLabel?changeTypeOptions[changeTypeindex].dictLabel:"选择变更类型"}}
  42. <van-icon name="arrow-down" />
  43. </view>
  44. </picker>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 0}}">
  49. <view style="margin-bottom:15px;">
  50. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  51. <text class="tit">变更信息</text>
  52. </view>
  53. <view class="table-boxs">
  54. <view>
  55. <view>
  56. <text><text style="color:red;margin-right: 22rpx;"></text>数量/面积</text>
  57. </view>
  58. <view>
  59. <input type="text" value="{{form.quantity}}" bindinput="bindNewInput" disabled="true" placeholder="" data-name="form.quantity" type="digit" style="text-align: right;margin-top: 20rpx;" />
  60. </view>
  61. </view>
  62. <view>
  63. <view>
  64. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  65. </view>
  66. <view>
  67. <input type="text" value="{{form.changeValue}}" bindinput="bindNewInput" placeholder="变更后数据" data-name="form.changeValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  68. </view>
  69. </view>
  70. <view>
  71. <view>
  72. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  73. </view>
  74. <view>
  75. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 1}}">
  81. <view style="margin-bottom:15px;">
  82. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  83. <text class="tit">变更信息</text>
  84. </view>
  85. <view class="table-boxs">
  86. <view>
  87. <view>
  88. <text><text style="color:red;margin-right: 22rpx;"></text>资产原值</text>
  89. </view>
  90. <view>
  91. <input type="text" value="{{form.originalValue}}" disabled="true" bindinput="bindNewInput" placeholder="" data-name="form.originalValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  92. </view>
  93. </view>
  94. <view>
  95. <view>
  96. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  97. </view>
  98. <view>
  99. <input type="text" value="{{form.changeValue}}" bindinput="bindNewInput" placeholder="变更后数据" data-name="form.changeValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  100. </view>
  101. </view>
  102. <view>
  103. <view>
  104. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  105. </view>
  106. <view>
  107. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 2}}">
  113. <view style="margin-bottom:15px;">
  114. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  115. <text class="tit">变更信息</text>
  116. </view>
  117. <view class="table-boxs">
  118. <view>
  119. <view>
  120. <text><text style="color:red;margin-right: 22rpx;"></text>预计使用年数</text>
  121. </view>
  122. <view>
  123. <input type="text" value="{{form.expectedYears}}" disabled="true" bindinput="bindNewInput" placeholder="" data-name="form.expectedYears" type="digit" style="text-align: right;margin-top: 20rpx;" />
  124. </view>
  125. </view>
  126. <view>
  127. <view>
  128. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  129. </view>
  130. <view>
  131. <input type="text" value="{{form.changeValue}}" bindinput="bindNewInput" placeholder="变更后数据" data-name="form.changeValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  132. </view>
  133. </view>
  134. <view>
  135. <view>
  136. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  137. </view>
  138. <view>
  139. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  140. </view>
  141. </view>
  142. </view>
  143. </view>
  144. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 3}}">
  145. <view style="margin-bottom:15px;">
  146. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  147. <text class="tit">变更信息</text>
  148. </view>
  149. <view class="table-boxs">
  150. <view>
  151. <view>
  152. <text><text style="color:red;margin-right: 22rpx;"></text>累计折旧</text>
  153. </view>
  154. <view>
  155. <input type="text" value="{{form.depreciationValue}}" disabled="true" bindinput="bindNewInput" placeholder="" data-name="form.depreciationValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  156. </view>
  157. </view>
  158. <view>
  159. <view>
  160. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  161. </view>
  162. <view>
  163. <input type="text" value="{{form.changeValue}}" bindinput="bindNewInput" placeholder="变更后数据" data-name="form.changeValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  164. </view>
  165. </view>
  166. <view>
  167. <view>
  168. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  169. </view>
  170. <view>
  171. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  172. </view>
  173. </view>
  174. </view>
  175. </view>
  176. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 4}}">
  177. <view style="margin-bottom:15px;">
  178. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  179. <text class="tit">变更信息</text>
  180. </view>
  181. <view class="table-boxs">
  182. <view>
  183. <view>
  184. <text><text style="color:red;margin-right: 22rpx;"></text>已折旧年数</text>
  185. </view>
  186. <view>
  187. <input type="text" value="{{form.depreciationYears}}" disabled="true" bindinput="bindNewInput" placeholder="" data-name="form.depreciationYears" type="digit" style="text-align: right;margin-top: 20rpx;" />
  188. </view>
  189. </view>
  190. <view>
  191. <view>
  192. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  193. </view>
  194. <view>
  195. <input type="text" value="{{form.changeValue}}" bindinput="bindNewInput" placeholder="变更后数据" data-name="form.changeValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  196. </view>
  197. </view>
  198. <view>
  199. <view>
  200. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  201. </view>
  202. <view>
  203. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  204. </view>
  205. </view>
  206. </view>
  207. </view>
  208. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 5}}">
  209. <view style="margin-bottom:15px;">
  210. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  211. <text class="tit">变更信息</text>
  212. </view>
  213. <view class="table-boxs">
  214. <view>
  215. <view>
  216. <text><text style="color:red;margin-right: 22rpx;"></text>残值率</text>
  217. </view>
  218. <view>
  219. <input type="text" value="{{form.residualsRate}}" disabled="true" bindinput="bindNewInput" placeholder="" data-name="form.residualsRate" type="digit" style="text-align: right;margin-top: 20rpx;" />
  220. </view>
  221. </view>
  222. <view>
  223. <view>
  224. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  225. </view>
  226. <view>
  227. <input type="text" value="{{form.changeValue}}" bindinput="bindNewInput" placeholder="变更后数据" data-name="form.changeValue" type="digit" style="text-align: right;margin-top: 20rpx;" />
  228. </view>
  229. </view>
  230. <view>
  231. <view>
  232. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  233. </view>
  234. <view>
  235. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  236. </view>
  237. </view>
  238. </view>
  239. </view>
  240. <view class="main-box table-box" style="margin-top:15px;" wx:if="{{changeTypeindex == 6}}">
  241. <view style="margin-bottom:15px;">
  242. <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
  243. <text class="tit">变更信息</text>
  244. </view>
  245. <view class="table-boxs">
  246. <view>
  247. <view>
  248. <text><text style="color:red;margin-right: 22rpx;"></text>折旧方式</text>
  249. </view>
  250. <picker bindchange="onConfirmDepreciationType" disabled="true" value="{{depreciationTypeindex}}" range="{{depreciationTypeOptions}}" range-key="{{'dictLabel'}}">
  251. <view class="picker">
  252. {{depreciationTypeOptions[depreciationTypeindex].dictLabel?depreciationTypeOptions[depreciationTypeindex].dictLabel:"选择折旧方式"}}
  253. <van-icon name="arrow-down" />
  254. </view>
  255. </picker>
  256. </view>
  257. <view>
  258. <view>
  259. <text><text style="color:red;margin-right: 22rpx;"></text>变更后</text>
  260. </view>
  261. <picker bindchange="onConfirmChangeValue" value="{{changeValueindex}}" range="{{depreciationTypeOptions}}" range-key="{{'dictLabel'}}">
  262. <view class="picker">
  263. {{depreciationTypeOptions[changeValueindex].dictLabel?depreciationTypeOptions[changeValueindex].dictLabel:"选择折旧方式"}}
  264. <van-icon name="arrow-down" />
  265. </view>
  266. </picker>
  267. </view>
  268. <view>
  269. <view>
  270. <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
  271. </view>
  272. <view>
  273. <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" style="text-align: right;margin-top: 20rpx;" />
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. <view class="bottom">
  279. <view class="btn2" bindtap="goSubmit">保存</view>
  280. </view>