微信小程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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