addsk.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202
  1. <template>
  2. <view :style="'padding-bottom:' + bottom ">
  3. <view class='zhanline'></view>
  4. <!-- 第一页 -->
  5. <!-- <uni-data-picker :localdata="cdycydataTree" :map="sscymap" v-model="cdycidx" popup-title="请选择班级" @change="onchange" @nodeclick="onnodeclick"></uni-data-picker> -->
  6. <view v-show="type==1" >
  7. <uni-forms class='inform' ref="firstform" :rules="firstrules" :modelValue="datainfo">
  8. <!-- <view class="info_tit">基本信息</view> -->
  9. <uni-forms-item name="isHs" style='margin-bottom: 0;'>
  10. <view class="infolist">
  11. <view class="f16 fw c34 flex0 pr pl12">徽商项目</view>
  12. <picker range-key='label' :value="hsindex" :range="hslist" class="infolist_a" @change='bindDateChangea'>
  13. <view :class="datainfo.isHs?'':'f16 co80'">{{datainfo.isHs=='Y'?'是':'否'}}</view>
  14. </picker>
  15. </view>
  16. </uni-forms-item>
  17. <uni-forms-item name="xmmc" style='margin-bottom: 0;'>
  18. <view class="infolist">
  19. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>项目名称</view>
  20. <input placeholder="请输入项目名称" v-model="datainfo.xmmc" class="f16 c34 flex1 txr"/>
  21. </view>
  22. </uni-forms-item>
  23. <uni-forms-item name="yyzz" style='margin-bottom: 0;'>
  24. <view class="infolist">
  25. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>企业营业执照</view>
  26. <input placeholder="请输入企业营业执照" v-model="datainfo.yyzz" class="f16 c34 flex1 txr"/>
  27. </view>
  28. </uni-forms-item>
  29. <uni-forms-item name="pzwh" style='margin-bottom: 0;'>
  30. <view class="infolist">
  31. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>批准文号</view>
  32. <input placeholder="请输入批准文号" v-model="datainfo.pzwh" class="f16 c34 flex1 txr"/>
  33. </view>
  34. </uni-forms-item>
  35. <uni-forms-item name="szdqName" style='margin-bottom: 0;'>
  36. <view class="infolist">
  37. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>所在地区</view>
  38. <picker range-key='dictLabel' :value="szdqindex" :range="location" class="infolist_a" @change='bindDateChangeb'>
  39. <view :class="datainfo.szdqName?'':'f16 co80'">{{datainfo.szdqName||"请选择所在地区"}}</view>
  40. </picker>
  41. </view>
  42. </uni-forms-item>
  43. <uni-forms-item name="sscy" style='margin-bottom: 0;'>
  44. <view class="infolist" @click="getSscyFn">
  45. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>所属产业</view>
  46. <view class="f16 txr flex1 ml8" v-if='datainfo.xxcy' >
  47. <view class="txr">
  48. <block v-if="datainfo.sscy">{{sscyresult||getSscyAdr(datainfo.sscy)}};</block>
  49. <block v-if="datainfo.xxcy">{{datainfo.xxcy}};</block>
  50. <block v-if="datainfo.zdcy">{{datainfo.zdcy}};</block>
  51. <block v-if="datainfo.isLt=='Y'">龙头企业;</block>
  52. <block v-if="datainfo.isFzzlfdcy=='Y'">非住宅类房地产业;</block>
  53. </view>
  54. </view>
  55. <view v-else class="f16 co80 txr flex1 over ml8">
  56. 请选择所属产业
  57. </view>
  58. </view>
  59. </uni-forms-item>
  60. <uni-forms-item name="tzfs" style='margin-bottom: 0;'>
  61. <view class="infolist">
  62. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>投资方式</view>
  63. <picker range-key='dictLabel' :value="tzfsindex" :range="tzfslist" class="infolist_a" @change='bindDateChangec'>
  64. <view :class="datainfo.tzfs?'':'f16 co80'">{{datainfo.tzfs||"请选择投资方式"}}</view>
  65. </picker>
  66. </view>
  67. </uni-forms-item>
  68. <uni-forms-item name="rkTime" style='margin-bottom: 0;'>
  69. <view class="infolist">
  70. <view class="f16 fw c34 flex0 pr pl12">项目入库时间</view>
  71. <picker mode="date" :value="datainfo.rkTime" class="infolist_a" @change='bindtimeDateChange'>
  72. <view :class="datainfo.rkTime?'':'f16 co80'">{{datainfo.rkTime||"请选择项目入库时间"}}</view>
  73. </picker>
  74. </view>
  75. </uni-forms-item>
  76. <uni-forms-item name="kgjsTime" style='margin-bottom: 0;'>
  77. <view class="infolist">
  78. <view class="f16 fw c34 flex0 pr pl12">开工建设日期</view>
  79. <picker mode="date" :value="datainfo.kgjsTime" class="infolist_a" @change='bindtimeDateChangea'>
  80. <view :class="datainfo.kgjsTime?'':'f16 co80'">{{datainfo.kgjsTime||"请选择开工建设日期"}}</view>
  81. </picker>
  82. </view>
  83. </uni-forms-item>
  84. <uni-forms-item name="jswcTime" style='margin-bottom: 0;'>
  85. <view class="infolist">
  86. <view class="f16 fw c34 flex0 pr pl12">建成完工日期</view>
  87. <picker mode="date" :value="datainfo.jswcTime" class="infolist_a" @change='bindtimeDateChangeb'>
  88. <view :class="datainfo.jswcTime?'':'f16 co80'">{{datainfo.jswcTime||"请选择建成完工日期"}}</view>
  89. </picker>
  90. </view>
  91. </uni-forms-item>
  92. <uni-forms-item name="ztze" style='margin-bottom: 0;'>
  93. <view class="infolist">
  94. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>总投资金额(万元)</view>
  95. <input placeholder="请输入总投资金额" type="number" v-model="datainfo.ztze" class="f16 c34 flex1 txr"/>
  96. </view>
  97. </uni-forms-item>
  98. <uni-forms-item name="swzj" style='margin-bottom: 0;'>
  99. <view class="infolist">
  100. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>省外投资总额(万元)</view>
  101. <input placeholder="请输入省外投资总额" type="number" v-model="datainfo.swzj" class="f16 c34 flex1 txr"/>
  102. </view>
  103. </uni-forms-item>
  104. </uni-forms>
  105. <view class="infobtn flexcc cf f16 f500" @click="getNext(1)">下一步</view>
  106. <!-- 弹框 -->
  107. <view class="bgbox" @click="getClose" v-if="addcyflag"></view>
  108. <!-- -->
  109. <view class="fixedbox" v-if="addcyflag">
  110. <image :src="closeimg" class="choseimg" @click="getClose"></image>
  111. <view class="top">所属产业</view>
  112. <view class="boxs">
  113. <!-- 所属产业 -->
  114. <uni-forms ref="cyform" :rules="cyrules" :modelValue="datainfo" >
  115. <uni-forms-item name="sscy" style='margin-bottom:10rpx;'>
  116. <view class="infolist" @click="getSscytreeFn">
  117. <!-- -->
  118. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>第一产业</view>
  119. <!-- <uni-data-picker placeholder="请选择第一产业" popup-title="请选择第一产业" :localdata="cdycydataTree" v-model="sscyindex" :map="sscymap">
  120. </uni-data-picker> -->
  121. <!-- @change="onchange" @nodeclick="onnodeclick" @popupopened="onpopupopened" @popupclosed="onpopupclosed" -->
  122. <!-- <picker range-key='dictLabel' :value="sscyindex" :range="xxcylist" class="infolist_a" @change='bindDateChanged'>
  123. <view :class="datainfo.sscy?'':'f16 co80'">{{datainfo.sscy||"请选择第一产业"}}</view>
  124. </picker> -->
  125. <view class="txr flex1 over f16 ml8" v-if="sscyresult">
  126. {{sscyresult||getSscyAdr(datainfo.sscy)}}
  127. </view>
  128. <view class="txr flex1 over ml8 f16 co80" v-else>请选择第一产业</view>
  129. </view>
  130. </uni-forms-item>
  131. <uni-forms-item name="xxcy" style='margin-bottom: 10rpx;'>
  132. <view class="infolist">
  133. <view class="f16 fw c34 flex0 pr pl12">十大新兴产业</view>
  134. <picker range-key='dictLabel' :value="xxcyindex" :range="xxcylist" class="infolist_a" @change='bindDateChangee'>
  135. <view :class="datainfo.xxcy?'':'f16 co80'">{{datainfo.xxcy||"请选择十大新兴产业"}}</view>
  136. </picker>
  137. </view>
  138. </uni-forms-item>
  139. <uni-forms-item name="zdcy" style='margin-bottom: 10rpx;'>
  140. <view class="infolist">
  141. <view class="f16 fw c34 flex0 pr pl12">八大主导产业</view>
  142. <picker range-key='dictLabel' :value="zdcyindex" :range="zdcylist" class="infolist_a" @change='bindDateChangef'>
  143. <view :class="datainfo.zdcy?'':'f16 co80'">{{datainfo.zdcy||"请选择八大主导产业"}}</view>
  144. </picker>
  145. </view>
  146. </uni-forms-item>
  147. </uni-forms>
  148. <view class="flex">
  149. <view class="boxcen" :class="isLt?'act':''" @click="isLt=!isLt">
  150. <image :src="gcheckimg" v-if="isLt"></image>
  151. <image :src="checknimg" v-else></image>
  152. <view :class="isLt?'co28':''">龙头企业</view>
  153. </view>
  154. <view class="boxcen" :class="isFzzlfdcy?'act':''" @click="isFzzlfdcy=!isFzzlfdcy">
  155. <image :src="gcheckimg" v-if="isFzzlfdcy"></image>
  156. <image :src="checknimg" v-else></image>
  157. <view :class="isFzzlfdcy?'co28':''">非住宅类房地产业</view>
  158. </view>
  159. </view>
  160. <!-- <uni-data-checkbox multiple @change="checkboxChangea" v-model="cyvalue" :localdata="cymorelist" ></uni-data-checkbox> -->
  161. </view>
  162. <view class="fixedbtn" @click="proSure">确认</view>
  163. </view>
  164. </view>
  165. <!-- 第二页 -->
  166. <view v-show="type==2">
  167. <uni-forms class='inform' ref="swdwform" :modelValue="datainfo">
  168. <!-- <view class="info_tit">项目信息</view> -->
  169. <view class="infolist_add" @click="getAddswtzdw">
  170. <image :src="addimg"></image>
  171. <view>添加省外投资单位</view>
  172. </view>
  173. <view v-for="(ite,idx) in swtzdwlist" :key="'swdw-'+idx">
  174. <uni-forms-item name="" style='margin-bottom: 0;'>
  175. <view class="infolist">
  176. <view class="f16 fw cofe flex1 pr pl12">省外投资单位{{Number(idx)+1}}</view>
  177. <view class="delbx" @click="getDelswtzdw(idx)" v-if="idx!=0">
  178. <image :src="delimg"></image>
  179. </view>
  180. </view>
  181. </uni-forms-item>
  182. <uni-forms-item name="dwmc" style='margin-bottom: 0;' >
  183. <view class="infolist">
  184. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>单位名称</view>
  185. <input placeholder="请输入单位名称" v-model="ite.dwmc" class="f16 c34 flex1 txr"/>
  186. </view>
  187. </uni-forms-item>
  188. <uni-forms-item name="zczj" style='margin-bottom: 0;'>
  189. <view class="infolist">
  190. <view class="f16 fw c34 flex0 pr pl12">注册资金(万元)</view>
  191. <input placeholder="请输入注册资金" type="number" v-model="ite.zczj" class="f16 c34 flex1 txr"/>
  192. </view>
  193. </uni-forms-item>
  194. <uni-forms-item name="tzje" style='margin-bottom: 0;'>
  195. <view class="infolist">
  196. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>投资金额(万元)</view>
  197. <input placeholder="请输入投资金额" type="number" v-model="ite.tzje" class="f16 c34 flex1 txr"/>
  198. </view>
  199. </uni-forms-item>
  200. <uni-forms-item name="province" style='margin-bottom: 0;'>
  201. <view class="infolist" @click="getAreaFn(idx)">
  202. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>所属地区</view>
  203. <view class="txr flex1 over f16 ml8" v-if="ite.province">
  204. {{ite.province}}
  205. <block v-if='ite.city'>/</block>
  206. {{ite.city}}
  207. </view>
  208. <view class="txr flex1 over ml8 f16 co80" v-else>请选择所属地区</view>
  209. <!-- <view class="txr flex1 over ml8 f16 co80" :class="ite.province?'':' '">{{
  210. ||"请选择所属地区"}}</view> -->
  211. </view>
  212. </uni-forms-item>
  213. <uni-forms-item name="dwjj" style='margin-bottom: 0;'>
  214. <view class="infolist" style="align-items: flex-start;">
  215. <view class="f16 fw c34 flex0 pr pl12">单位简介</view>
  216. <uni-easyinput :inputBorder='false' type="textarea" v-model="ite.dwjj" placeholder="(请输入单位简介)" placeholderStyle='text-align: right;font-size:32rpx;color:#808080'></uni-easyinput>
  217. </view>
  218. </uni-forms-item>
  219. </view>
  220. </uni-forms>
  221. <!-- 到资情况 -->
  222. <uni-forms class='inform' ref="zjdwform" :rules="zjdwrules" :modelValue="datainfo">
  223. <!-- <view class="info_tit">项目信息</view> -->
  224. <!-- <view class="infolist_add" @click="getAddzjdw">
  225. <image :src="addimg"></image>
  226. <view>添加资金到资情况</view>
  227. </view> -->
  228. <view v-for="(ite,idx) in zjdwList" :key="'zjdw-'+idx">
  229. <uni-forms-item name="" style='margin-bottom: 0;'>
  230. <view class="infolist">
  231. <view class="f16 fw cofe flex1 pr pl12">资金到位情况</view>
  232. <!-- <view class="delbx" @click="getDelzjdw(idx)" v-if="idx!=0">
  233. <image :src="delimg"></image>
  234. </view> -->
  235. </view>
  236. </uni-forms-item>
  237. <uni-forms-item name="dwmc" style='margin-bottom: 0;'>
  238. <view class="infolist">
  239. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>单位名称</view>
  240. <input placeholder="请输入单位名称" v-model="ite.dwmc" class="f16 c34 flex1 txr"/>
  241. </view>
  242. </uni-forms-item>
  243. <uni-forms-item name="zzje" style='margin-bottom: 0;'>
  244. <view class="infolist">
  245. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>注资金额(万元)</view>
  246. <input placeholder="请输入注资金额" type="number" v-model="ite.zzje" class="f16 c34 flex1 txr"/>
  247. </view>
  248. </uni-forms-item>
  249. <uni-forms-item name="dwrq" style='margin-bottom: 0;'>
  250. <view class="infolist" @click="getTimeFn(idx)">
  251. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>到位日期</view>
  252. <picker mode="date" :value="ite.dwrq" class="infolist_a" @change='bindtimeDateChangec'>
  253. <view :class="ite.dwrq?'':'f16 co80'">{{ite.dwrq||"请选择到位日期"}}</view>
  254. </picker>
  255. </view>
  256. </uni-forms-item>
  257. </view>
  258. </uni-forms>
  259. <view class="infobtn flexcc cf f16 f500" @click="getNext(2)">下一步</view>
  260. </view>
  261. <!-- 第三页 -->
  262. <view v-show="type==3">
  263. <uni-forms class='inform' ref="thirdform" :rules="thirdrules" :modelValue="datainfo">
  264. <!-- <view class="info_tit">首谈信息</view> -->
  265. <uni-forms-item name="xmnr" style='margin-bottom: 0;'>
  266. <view class="infolist">
  267. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>项目内容</view>
  268. <input placeholder="请输入项目内容" v-model="datainfo.xmnr" class="f16 c34 flex1 txr"/>
  269. </view>
  270. </uni-forms-item>
  271. <uni-forms-item name="czwt" style='margin-bottom: 0;'>
  272. <view class="infolist">
  273. <view class="f16 fw c34 flex0 pr pl12">存在问题</view>
  274. <input placeholder="请输入存在问题" v-model="datainfo.czwt" class="f16 c34 flex1 txr"/>
  275. </view>
  276. </uni-forms-item>
  277. <uni-forms-item name="remark" style='margin-bottom: 0;'>
  278. <view class="infolist">
  279. <view class="f16 fw c34 flex0 pr pl12">项目备注</view>
  280. <input placeholder="请输入项目备注" v-model="datainfo.remark" class="f16 c34 flex1 txr"/>
  281. </view>
  282. </uni-forms-item>
  283. <view class="border"></view>
  284. <uni-forms-item name="zsyzFjList" style='margin-bottom: 0;'>
  285. <view class="infolist">
  286. <view class="f16 fw c34 flex0 pr pl12"><text class="cir">*</text>附件</view>
  287. <view class="infolist_a co28">
  288. <!-- 上传附件 -->
  289. <lsj-upload
  290. ref="lsjUpload"
  291. childId="upload1"
  292. :width="width"
  293. :height="height"
  294. :option="option"
  295. :size="size"
  296. :formats="formats"
  297. :debug="debug"
  298. :instantly="instantly"
  299. @progress=""
  300. @uploadEnd="onuploadEnd" >
  301. <view class="btn" :style="{width: width,height: height}">选择附件</view>
  302. </lsj-upload>
  303. </view>
  304. </view>
  305. </uni-forms-item>
  306. <view class=" cldelistbf" v-for="(ite,idx) in filelist" :key='idx'>
  307. <view class="flext f15 c6" @click="getDown(ite.path)">
  308. <view class="imgl"><image :src="wimg" ></image></view>
  309. <view>{{ite.fjName}}</view>
  310. </view>
  311. <!-- 删除 -->
  312. <view class="delimg flex0" @click.stop="getDelFj(idx)">
  313. <image :src="delimg"></image>
  314. </view>
  315. </view>
  316. <view class="infolist_b"><text>*</text>请上传大小不超过<text>100MB</text>格式为<text>doc/xls/ppt/txt/pdf/zip/rar/word</text>的文件</view>
  317. <view class="infolist_b" style="margin-top: 20rpx;">含项目建议书(项目分析报告或投资计划书)、洽谈现场照片等资料</view>
  318. </uni-forms>
  319. <view class="infobtn flexcc cf f16 f500" v-if="checkPermi(['projectV2:skxm:edit','projectV2:skxm:add'])" @click="getNext(3)">提交</view>
  320. <!-- <third-clue @getNext='getNext' :datainfo='datainfo'></third-clue> -->
  321. </view>
  322. <view style="height: 100rpx;"></view>
  323. <!-- 所属地区 -->
  324. <selectMorePicker
  325. ref="picker"
  326. :title="auiPicker.title"
  327. :layer="auiPicker.layer"
  328. :titflag='auiPicker.titflag'
  329. :data="auiPicker.data"
  330. @callback="pickerCallback"
  331. ></selectMorePicker>
  332. <!-- 第一产业 -->
  333. <selectnore-more-picker
  334. ref="sscypicker"
  335. :title="sscyauiPicker.title"
  336. :layer="sscyauiPicker.layer"
  337. :titflag='sscyauiPicker.titflag'
  338. :data="sscyauiPicker.data"
  339. @callback="sscypickerCallback"
  340. ></selectnore-more-picker>
  341. </view>
  342. <!-- <uni-easyinput type="textarea" v-model="value" placeholder="请输入内容"></uni-easyinput> -->
  343. </template>
  344. <script>
  345. import selectMorePicker from "@/components/ba-tree-picker/selectMorePicker.vue"
  346. import selectnoreMorePicker from "@/components/ba-tree-picker/selectnoreMorePicker.vue"
  347. import {getarealist,getskxmDetail,getaddskxmFn,getputskxmFn,getskcyListFn} from "@/api/work/addsk.js"
  348. import { getDictionaryFn} from '@/api/work/index.js'
  349. import {selectDictLabel} from "@/utils/common.js"
  350. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  351. import config from '@/config'
  352. const baseUrl = config.baseUrl
  353. import { getToken } from '@/utils/auth'
  354. export default {
  355. components:{
  356. selectMorePicker,selectnoreMorePicker
  357. },
  358. data() {
  359. return {
  360. items: [{
  361. text: "一年级",
  362. value: "1-0",
  363. children: [
  364. {
  365. text: "1.1班",
  366. value: "1-1"
  367. },
  368. {
  369. text: "1.2班",
  370. value: "1-2"
  371. }
  372. ]
  373. },
  374. {
  375. text: "二年级",
  376. value: "2-0"
  377. },
  378. {
  379. text: "三年级",
  380. value: "3-0"
  381. }],
  382. //附件
  383. option: {
  384. // 上传服务器地址,需要替换为你的接口地址
  385. url: baseUrl+'/common/upload', // 该地址非真实路径,需替换为你项目自己的接口地址
  386. // 上传附件的key
  387. name: 'file',
  388. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  389. header: {
  390. // 示例参数可删除
  391. 'Authorization': 'Bearer ' + getToken(),
  392. },
  393. // 根据你接口需求自定义body参数
  394. formData: {
  395. }
  396. },
  397. // 选择文件后是否立即自动上传,true=选择后立即上传
  398. instantly: true,
  399. // 必传宽高且宽高应与slot宽高保持一致
  400. width: '',
  401. height: '48rpx',
  402. // 限制允许上传的格式,空串=不限制,默认为空
  403. formats: 'doc,docx,xls,ppt,txt,pdf,zip,rar,word',
  404. // 文件上传大小限制
  405. size: 100,
  406. // 文件数量限制 默认10
  407. count: 5,
  408. // 文件回显列表
  409. files: new Map(),
  410. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  411. wxFiles: [],
  412. // 是否打印日志
  413. debug: false,
  414. filelist:[],
  415. auiPicker: {
  416. title: '选择地区',
  417. layer: null,
  418. titflag:true,
  419. data: []
  420. },
  421. sscyauiPicker: {
  422. title: '选择所属产业',
  423. layer: null,
  424. titflag:true,
  425. data: []
  426. },
  427. selectDate: '',
  428. defaultPhoneHeight: '', //屏幕默认高度
  429. nowPhoneHeight: '', //屏幕现在的高度
  430. bottom:0,
  431. type:1,
  432. poptype:0,//弹窗类型 1暂存/消耗 2审核意见 3批示
  433. pagetype:'add',
  434. status: 'loading',
  435. loading:false,
  436. contentText:{contentrefresh: '加载中',},
  437. checknimg:require("@/static/images/mine/jnicon.png"),
  438. gcheckimg:require("@/static/images/mine/jicon.png"),
  439. isFzzlfdcy:false,
  440. isLt:false,
  441. datainfo:{
  442. "isHs":"N",//是否徽商项目 N:否 Y:是
  443. "xmmc":"",//项目名称
  444. "pzwh":"",//批准文号
  445. "yyzz":"",//企业营业执照
  446. "szdqId":"",//所在地区id
  447. "szdqName":"",//所在地区名称
  448. "sscy":"",//所属产业
  449. "xxcy":"",//新兴产业
  450. "zdcy":"",//主导产业
  451. "isLt":"",//是否龙头企业
  452. "isFzzlfdcy":"",//是否非住宅类房地产业
  453. "tzfs":"",//投资方式
  454. "rkTime":"",//项目入库时间
  455. "kgjsTime":"",//开工建设日期
  456. "jswcTime":"",//建设完成日期
  457. "ztze":"",//总投资额(万元)
  458. "swzj":"",//省外资金(万元)
  459. "xmnr":"",//项目内容
  460. "czwt":"",//存在问题
  461. "remark":"",//项目备注
  462. "zsyzSkSwtzdwList":'',//省外投资单位
  463. "zsyzSkDzjeList":'',//到资金额
  464. "zsyzFjList":"",//附件集合
  465. },
  466. // 十大产业
  467. // cyinfo:{
  468. // "sscy":"",//所属产业
  469. // "xxcy":"",//新兴产业
  470. // "zdcy":"",//主导产业
  471. // "isLt":"",//是否龙头企业
  472. // "isFzzlfdcy":"",//是否非住宅类房地产业
  473. // },
  474. addimg:require("@/static/images/mine/add.png"),
  475. delimg:require("@/static/images/mine/del.png"),
  476. checknimg:require("@/static/images/mine/jnicon.png"),
  477. gcheckimg:require("@/static/images/mine/jicon.png"),
  478. closeimg:require('@/static/images/close.png'),
  479. wimg:require('@/static/images/index/wicon.png'),
  480. downimg:require('@/static/images/index/down.png'),
  481. firstrules: {
  482. xmmc: {rules: [{required: true,errorMessage: '请输入项目名称'}]},
  483. yyzz: {rules: [{required: true,errorMessage: '请输入企业营业执照'}]},
  484. pzwh: {rules: [{required: true,errorMessage: '请输入批准文号' } ]},
  485. szdqName: {rules: [{required: true,errorMessage: '请选择所属产业'} ]},
  486. // sscy: {rules: [{required: true,errorMessage: '请选择所在地区'} ]},
  487. tzfs: {rules: [{required: true,errorMessage: '请选择投资方式'} ]},
  488. ztze: {rules: [{required: true,errorMessage: '请输入总投资金额'}]},
  489. swzj: {rules: [{required: true,errorMessage: '请输入省外投资总额' } ]},
  490. },
  491. cyrules:{
  492. sscy: {rules: [{required: true,errorMessage: '请选择第一产业'}]},
  493. },
  494. // 省外投资单位
  495. swdwrules: {
  496. dwmc: {rules: [{required: true,errorMessage: '请输入单位名称'}]},
  497. tzje: {rules: [{required: true,errorMessage: '请输入投资金额'}]},
  498. province: {rules: [{required: true,errorMessage: '请选择所属地区'} ]},
  499. },
  500. //到资情况
  501. zjdwrules: {
  502. dwmc: {rules: [{required: true,errorMessage: '请输入单位名称'}]},
  503. zzje: {rules: [{required: true,errorMessage: '请输入注资金额'}]},
  504. dwrq: {rules: [{required: true,errorMessage: '请选择到位日期'} ]},
  505. },
  506. thirdrules: {
  507. xmnr: {rules: [{required: true,errorMessage: '请输入项目内容'}]},
  508. zsyzFjList: {rules: [{required: true,errorMessage: '请上传附件'}]},
  509. },
  510. addcyflag:false,
  511. cyvalue:[],
  512. cymorelist: [{"value": 1,"text": "龙头企业"},{"value": 2,"text": "非住宅类房地产业"}],
  513. // sfhsxm:'否',
  514. hsindex:1,//徽商项目
  515. szdqindex:0,//所在地区
  516. tzfsindex:0,//投资方式
  517. sscyindex:0,//第一产业
  518. xxcyindex:0,//新兴产业
  519. zdcyindex:0,//主导产业
  520. hslist:[{label:'是',id:'Y'},{label:'否',id:'N'},],//徽商
  521. location:[],//所在地区
  522. tzfslist:[],//投资方式
  523. sscylist:[],//第一产业
  524. xxcylist:[],//新兴产业
  525. zdcylist:[],//主导产业
  526. swtzdwlist:[
  527. {
  528. "dwmc":'',//单位名称
  529. "zczj":"",//注册资金
  530. "tzje":"",//投资金额
  531. "province":"",//省
  532. "provinceId":"",//省_id
  533. "city":"",//市
  534. "cityId":"",// 市id
  535. "dwjj":"",// 单位简介
  536. }
  537. ],//省外投资单位
  538. areaidx:0,//省市选择第几个
  539. zjidx:0,
  540. zjdwList:[{
  541. "dwmc":'',//单位名称
  542. "zzje":'',//注资金额
  543. "dwrq":'',//到位日期
  544. }],//到资金额
  545. currentdate:'',//当前日期
  546. // sfwlhxxxm:'',
  547. firstform:{},
  548. cyform:{},//所属产业
  549. swdwform:{},//省外投资单位
  550. zjdwform:{},//到资情况
  551. thirdform:{},
  552. id:'',
  553. cdycydataTree:[],//第一产业数组
  554. sscyresult:'',
  555. sscymap:{text:'deptName',value:'skcyId'},
  556. sscyindex:'',
  557. cdycidx:0,
  558. }
  559. },
  560. onLoad(e) {
  561. var that=this;
  562. this.currentdate = this.getNowFormatDate();
  563. var newObj={}
  564. if(e.data){
  565. newObj=JSON.parse(decodeURIComponent(e.data))
  566. }
  567. this.pagetype=newObj.pagetype||'add';
  568. this.getinvestmentarea()
  569. this.getskcyListFn();
  570. // 获取省市
  571. this.getArea()
  572. if(this.pagetype=='update'){
  573. // this.datainfo.xmId=newObj.xmId;
  574. // this.datainfo.xmbh=newObj.xmbh;
  575. // this.datainfo.xmmc=newObj.xmmc;
  576. this.getDataFn(newObj.id)
  577. }else{
  578. this.datainfo.rkTime=this.currentdate
  579. }
  580. // #ifdef APP
  581. uni.onKeyboardHeightChange(res=> { //监听键盘高度变化
  582. const res_keyboard = uni.getSystemInfoSync();
  583. let key_height = res.height - (res_keyboard.screenHeight - res_keyboard.windowHeight)
  584. // let key_height = res.height - (res_keyboard.screenHeight - res_keyboard.windowHeight + res_keyboard.safeAreaInsets.bottom)
  585. this.bottom = `${ key_height>0 ? key_height : 0}px`;
  586. })
  587. // #endif
  588. },
  589. onHide() {
  590. // #ifdef APP-PLUS
  591. uni.offKeyboardHeightChange(); // 取消监听键盘高度变化事件,避免内存消耗
  592. // #endif
  593. },
  594. methods: {
  595. checkPermi, checkRole,
  596. onchange(e) {
  597. const value = e.detail.value
  598. },
  599. onnodeclick(node) {
  600. },
  601. getArea(){
  602. getarealist(0).then(res=>{
  603. this.auiPicker.data = res.data
  604. })
  605. },
  606. getAreaFn(idx){
  607. var aridx=1;
  608. if(idx==this.areaidx){
  609. aridx=0
  610. }
  611. this.areaidx=idx;
  612. this.$refs.picker.open(aridx).then(function() {
  613. });
  614. },
  615. //picker多级联动回调
  616. pickerCallback(e) {
  617. const that = this;
  618. var idx=that.areaidx;
  619. let result = '';
  620. e.data.forEach(function(item, index) {
  621. switch (index) {
  622. case 0:
  623. that.swtzdwlist[idx].provinceId = e.data[0].areaid;
  624. that.swtzdwlist[idx].province = e.data[0].name;
  625. break;
  626. case 1:
  627. that.swtzdwlist[idx].cityId = e.data[1].areaid;
  628. that.swtzdwlist[idx].city = e.data[1].name;
  629. break;
  630. default:
  631. break;
  632. }
  633. });
  634. // console.log(e)
  635. },
  636. getAddswtzdw(){
  637. var obj ={
  638. "dwmc":'',//单位名称
  639. "zczj":"",//注册资金
  640. "tzje":"",//投资金额
  641. "province":"",//省
  642. "provinceId":"",//省_id
  643. "city":"",//市
  644. "cityId":"",// 市id
  645. "dwjj":"",// 单位简介
  646. }
  647. this.swtzdwlist.push(obj)
  648. },
  649. getDelswtzdw(idx){
  650. var that = this;
  651. uni.showModal({
  652. title: '提示',
  653. content: "是否确认删除",
  654. success: function(res) {
  655. if (res.confirm) {
  656. that.swtzdwlist.splice(idx, 1)
  657. } else if (res.cancel) {
  658. }
  659. }
  660. });
  661. },
  662. getAddzjdw(){
  663. var obj = {
  664. "dwmc":'',//单位名称
  665. "zzje":'',//注资金额
  666. "dwrq":'',//到位日期
  667. }
  668. this.zjdwList.push(obj)
  669. },
  670. getDelzjdw(idx){
  671. var that = this;
  672. uni.showModal({
  673. title: '提示',
  674. content: "是否确认删除",
  675. success: function(res) {
  676. if (res.confirm) {
  677. that.zjdwList.splice(idx, 1)
  678. } else if (res.cancel) {
  679. }
  680. }
  681. });
  682. },
  683. getSscyAdr(value){
  684. var actions = [];
  685. var datas=this.cdycydataTree;
  686. Object.keys(datas).some((key) => {
  687. if (datas[key].skcyId == ('' + value)) {
  688. actions.push(datas[key].deptName);
  689. return true;
  690. }
  691. })
  692. this.sscyresult=actions.join('');
  693. return actions.join('');
  694. },
  695. // 省库详情
  696. getDataFn(id){
  697. getskxmDetail(id).then(res=>{
  698. var that=this;
  699. if(res.code==200){
  700. this.datainfo=res.data;
  701. // 徽商
  702. // this.sfhsxm=this.datainfo.isHs=='Y'?'是':'否';
  703. this.hsindex=this.datainfo.isHs=='Y'?0:1;
  704. this.isLt=this.datainfo.isLt=='Y'?true:false;
  705. this.isFzzlfdcy=this.datainfo.isFzzlfdcy=='Y'?true:false;
  706. // 所在地区
  707. for(var i=0;i<that.location.length;i++){
  708. if(that.location[i].dictLabel==this.datainfo.szdqName){
  709. this.szdqindex=Number(i)
  710. break;
  711. }
  712. }
  713. this.sscyresult=that.getSscyAdr(this.datainfo.sscy)
  714. // 第一产业
  715. // for(var i=0;i<that.cdycydataTree.length;i++){
  716. // if(that.cdycydataTree[i].skcyId==this.datainfo.sscy){
  717. // this.sscyresult=that.cdycydataTree[i].deptName
  718. // break;
  719. // }
  720. // }
  721. // 新兴产业
  722. for(var i=0;i<that.xxcylist.length;i++){
  723. if(that.xxcylist[i].dictLabel==this.datainfo.xxcy){
  724. this.xxcyindex=Number(i)
  725. break;
  726. }
  727. }
  728. // 主导产业
  729. for(var i=0;i<that.zdcylist.length;i++){
  730. if(that.zdcylist[i].dictLabel==this.datainfo.zdcy){
  731. this.zdcyindex=Number(i)
  732. break;
  733. }
  734. }
  735. // 投资方式
  736. for(var i=0;i<that.tzfslist.length;i++){
  737. if(that.tzfslist[i].dictLabel==this.datainfo.tzfs){
  738. this.tzfsindex=Number(i)
  739. break;
  740. }
  741. }
  742. if(res.data.zsyzFjList&&res.data.zsyzFjList.length){
  743. this.filelist=JSON.parse(JSON.stringify(res.data.zsyzFjList))
  744. }
  745. if(res.data.zsyzSkSwtzdwList&&res.data.zsyzSkSwtzdwList.length){
  746. this.swtzdwlist=JSON.parse(JSON.stringify(res.data.zsyzSkSwtzdwList))
  747. }
  748. if(res.data.zsyzSkDzjeList&&res.data.zsyzSkDzjeList.length){
  749. this.zjdwList=JSON.parse(JSON.stringify(res.data.zsyzSkDzjeList))
  750. }
  751. // sfwlhxxxm
  752. }else{
  753. this.$toast(res.msg)
  754. }
  755. })
  756. },
  757. getNowFormatDate(){
  758. let date = new Date();
  759. let y = date.getFullYear();
  760. let m = date.getMonth() + 1;
  761. m = m < 10 ? "0" + m : m;
  762. let d = date.getDate();
  763. d = d < 10 ? "0" + d : d;
  764. const timeday = y + "-" + m + "-" + d;
  765. return timeday;
  766. },
  767. init(){
  768. },
  769. // 潜山市重点工程
  770. // 招商引资
  771. getSscytreeFn(){
  772. this.$refs.sscypicker.open(0).then(function() {
  773. });
  774. },
  775. getskcyListFn(){
  776. getskcyListFn().then(res=>{
  777. // 循环赋值
  778. this.cdycydataTree=res.data;
  779. // this.cdycydataTree=this.toTree2(res.data);
  780. this.sscyauiPicker.data=this.toTree2(res.data)
  781. })
  782. },
  783. sscypickerCallback(e){
  784. const that = this;
  785. var newArr=e.data;
  786. var len=Number(newArr.length)-1
  787. this.datainfo.sscy=newArr[len].skcyId;
  788. this.sscyresult=newArr[len].deptName;
  789. },
  790. toTree2(arr){
  791. // 先copy一份数据
  792. let newA = JSON.parse(JSON.stringify(arr));
  793. let data = newA.filter(item => {
  794. item.children = newA.filter(e => {
  795. return item.skcyId === e.parentId
  796. })
  797. return !item.parentId
  798. })
  799. return data
  800. },
  801. // 字典值
  802. getinvestmentarea(){
  803. // 所属地区
  804. getDictionaryFn('location_fgw').then(res=>{
  805. if(res.code==200){
  806. this.location = res.data.map(v => {
  807. return {
  808. dictLabel: v.dictLabel,
  809. dictValue: Number(v.dictValue)
  810. }
  811. })
  812. }
  813. })
  814. // 投资方式
  815. getDictionaryFn('investment_method').then(res=>{
  816. if(res.code==200){
  817. this.tzfslist = res.data.map(v => {
  818. return {
  819. dictLabel: v.dictLabel,
  820. dictValue: Number(v.dictValue)
  821. }
  822. })
  823. }
  824. })
  825. // 十大新兴产业
  826. getDictionaryFn('emerging_industries').then(res=>{
  827. if(res.code==200){
  828. this.xxcylist = res.data.map(v => {
  829. return {
  830. dictLabel: v.dictLabel,
  831. dictValue: Number(v.dictValue)
  832. }
  833. })
  834. }
  835. })
  836. // 八大主导产业
  837. getDictionaryFn('prime_industry').then(res=>{
  838. if(res.code==200){
  839. this.zdcylist = res.data.map(v => {
  840. return {
  841. dictLabel: v.dictLabel,
  842. dictValue: Number(v.dictValue)
  843. }
  844. })
  845. }
  846. })
  847. // 第一产业
  848. // getskcyListFn().then(res=>{
  849. // console.log(res,85)
  850. // })
  851. },
  852. // 数组验证
  853. validateArray(array) {
  854. let isValid = true;
  855. array.forEach((item) => {
  856. if (!item.value) {
  857. isValid = false;
  858. }
  859. });
  860. return isValid;
  861. },
  862. getNext(idx){
  863. var that=this;
  864. if(idx==1){
  865. // 第一页
  866. this.$refs.firstform.validate().then(res => {
  867. that.type=2
  868. })
  869. }else if(idx==2){
  870. // 判断省外投资 资金到位是否有值
  871. var swtzdwlist=that.swtzdwlist;
  872. for(var i =0;i<swtzdwlist.length;i++){
  873. var str='省外投资'+(Number(i)+1)
  874. var nstr=''
  875. if(!swtzdwlist[i].dwmc){
  876. nstr="请输入"+str+":单位名称"
  877. that.$toast(nstr)
  878. return
  879. }
  880. if(!swtzdwlist[i].tzje){
  881. nstr="请输入"+str+":投资金额"
  882. that.$toast(nstr)
  883. return
  884. }
  885. if(!swtzdwlist[i].province){
  886. nstr="请选择"+str+":所属地区"
  887. that.$toast(nstr)
  888. return
  889. }
  890. }
  891. var zjdwList=that.zjdwList;
  892. for(var i =0;i<zjdwList.length;i++){
  893. var str='资金到位'
  894. var nstr='';
  895. if(!zjdwList[i].dwmc){
  896. nstr="请输入"+str+":单位名称"
  897. that.$toast(nstr)
  898. return
  899. }
  900. if(!zjdwList[i].zzje){
  901. nstr="请输入"+str+":注资金额"
  902. that.$toast(nstr)
  903. return
  904. }
  905. if(!zjdwList[i].dwrq){
  906. nstr="请选择"+str+":到位日期"
  907. that.$toast(nstr)
  908. return
  909. }
  910. }
  911. that.datainfo.zsyzSkSwtzdwList=JSON.parse(JSON.stringify(swtzdwlist))
  912. that.datainfo.zsyzSkDzjeList=JSON.parse(JSON.stringify(zjdwList))
  913. that.type=3
  914. // for(var i=0;i<swtzdwlist.length;i++)
  915. // this.$refs.swdwrules.validate().then(res => {
  916. // // this.type=3
  917. // })
  918. // this.$refs.twoform.validate().then(res => {
  919. // this.type=3
  920. // })
  921. }else{
  922. this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist));
  923. this.$refs.thirdform.validate().then(res => {
  924. var params=this.datainfo;
  925. if(this.pagetype=='add'){
  926. getaddskxmFn(params).then(res=>{
  927. if(res.code==200){
  928. this.$toast('新增省库成功')
  929. setTimeout(function() {
  930. uni.$emit('refreshdatalistsk');
  931. uni.navigateBack({delta: 1});
  932. },1500);
  933. }else{
  934. this.$toast(res.msg)
  935. }
  936. })
  937. }else{
  938. getputskxmFn(params).then(res=>{
  939. if(res.code==200){
  940. this.$toast('修改省库成功')
  941. setTimeout(function() {
  942. uni.$emit('refreshdata');
  943. uni.navigateBack({delta: 1});
  944. },1500);
  945. }else{
  946. this.$toast(res.msg)
  947. }
  948. })
  949. }
  950. })
  951. }
  952. },
  953. // 第二步骤
  954. getSscyFn(){
  955. this.addcyflag=true
  956. },
  957. // 徽商
  958. bindDateChangea(e) {
  959. var val=e.detail.value;
  960. this.datainfo.isHs=this.hslist[val].id;
  961. },
  962. // 所在地区location
  963. bindDateChangeb(e) {
  964. var val=e.detail.value;
  965. this.datainfo.szdqName=this.location[val].dictLabel
  966. this.datainfo.szdqId=this.location[val].dictValue
  967. },
  968. // 投资方式
  969. bindDateChangec(e) {
  970. var val=e.detail.value;
  971. this.datainfo.tzfs=this.tzfslist[val].dictLabel;
  972. // this.datainfo.tzfs=this.tzfslist[val].dictValue
  973. },
  974. // 第一产业
  975. bindDateChanged(e) {
  976. var val=e.detail.value;
  977. this.datainfo.sscy=this.xxcylist[val].dictLabel;
  978. },
  979. // 十大新兴产业
  980. bindDateChangee(e) {
  981. var val=e.detail.value;
  982. this.datainfo.xxcy=this.xxcylist[val].dictLabel;
  983. // this.datainfo.xxcy=this.xxcylist[val].dictValue
  984. },
  985. // 八大主导产业
  986. bindDateChangef(e) {
  987. var val=e.detail.value;
  988. this.datainfo.zdcy=this.zdcylist[val].dictLabel;
  989. // this.datainfo.zdcy=this.zdcylist[val].dictValue
  990. },
  991. // 项目入库时间
  992. bindtimeDateChange(e){
  993. this.datainfo.rkTime = e.detail.value
  994. },
  995. // 开工建设日期
  996. bindtimeDateChangea(e){
  997. this.datainfo.kgjsTime = e.detail.value
  998. },
  999. // 建成完工日期
  1000. bindtimeDateChangeb(e){
  1001. this.datainfo.jswcTime = e.detail.value
  1002. },
  1003. getTimeFn(idx){
  1004. this.zjidx=idx;
  1005. },
  1006. // 到位日期(多个)
  1007. bindtimeDateChangec(e){
  1008. var idx=this.zjidx
  1009. this.zjdwList[idx].dwrq = e.detail.value
  1010. },
  1011. proSure(){
  1012. var that=this;
  1013. this.$refs.cyform.validate().then(res => {
  1014. if(that.isLt){
  1015. that.datainfo.isLt='Y'
  1016. }else{
  1017. that.datainfo.isLt='N'
  1018. }
  1019. if(that.isFzzlfdcy){
  1020. that.datainfo.isFzzlfdcy='Y'
  1021. }else{
  1022. that.datainfo.isFzzlfdcy='N'
  1023. }
  1024. this.addcyflag=false;
  1025. })
  1026. },
  1027. checkboxChangea(e){
  1028. // var newArr=e.detail.data;
  1029. // var newArrs=[]
  1030. // newArr.forEach((ite,idx)=>{
  1031. // if(ite.value==)
  1032. // newArrs[idx]=ite.dictLabel
  1033. // })
  1034. // this.projectchose=newArrs
  1035. },
  1036. getClose(){
  1037. this.addcyflag=false;
  1038. },
  1039. getAdddzFn(){
  1040. },
  1041. // 某文件上传结束回调(成功失败都回调)
  1042. onuploadEnd(item) {
  1043. var newobj={}
  1044. var responseText=JSON.parse(item.responseText)
  1045. newobj.fjName=responseText.originalFilename;
  1046. newobj.path=responseText.fileName;
  1047. this.filelist.push(newobj)
  1048. this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  1049. },
  1050. getDelFj(idx){
  1051. this.filelist.splice(idx,1)
  1052. this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
  1053. },
  1054. getDown(e){
  1055. uni.showLoading({
  1056. title: '加载中'
  1057. });
  1058. var url=baseUrl+e;
  1059. uni.downloadFile({
  1060. url: url,//文件的下载路径
  1061. success(result) {
  1062. uni.hideLoading()
  1063. var filePath = result.tempFilePath;
  1064. uni.openDocument({
  1065. filePath: filePath,
  1066. showMenu: true,
  1067. success: function (res) {
  1068. }
  1069. });
  1070. },
  1071. fail(res) {uni.hideLoading()}
  1072. })
  1073. },
  1074. }
  1075. }
  1076. </script>
  1077. <style lang="scss">
  1078. page {
  1079. background-color: #ffffff;
  1080. }
  1081. .inform{padding-top: 30rpx;}
  1082. .infolist{padding: 30rpx 32rpx 30rpx 24rpx;position: relative;display: flex;align-items: center;
  1083. .cir{position: absolute;font-size: 36rpx;font-weight: bold;color: #FE5706;left: 0rpx;}
  1084. }
  1085. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;
  1086. image{width: 30rpx;height: 30rpx;}
  1087. }
  1088. .infobtn{width: 100%;height: 88rpx;background: #FA5F03;line-height: 88rpx;position: fixed;left: 0;right: 0;bottom: 0;z-index: 3;}
  1089. .input_ye image{width: 34rpx;height: 18rpx;}
  1090. .info_tit{font-size: 32rpx;color: #FE5706;padding: 30rpx 26rpx;font-weight: bold;}
  1091. .infolist_a{height: 44rpx;flex: 1;text-align: right;font-size: 32rpx;color: #343434;}
  1092. .infolist_add{font-size: 28rpx;color: #41C942;padding-right: 30rpx;display: flex;align-items: center;justify-content: flex-end;
  1093. image{width: 30rpx;height: 30rpx;margin-right: 20rpx;}
  1094. }
  1095. // // 弹窗
  1096. .fixedbox{position: fixed;left:56rpx;right: 56rpx;background: #fff;border-radius: 10rpx;min-height: 468rpx;top: 50%;transform: translateY(-60%);z-index: 20;padding: 48rpx 36rpx 68rpx;max-height: calc(100vh - 200rpx);overflow: auto;box-sizing: border-box;
  1097. .infolist{padding:24rpx 0 24rpx 0;}
  1098. .choseimg{width: 34rpx;height: 34rpx;position: absolute;left: 36rpx;top: 54rpx;z-index: 22;}
  1099. .chebox{position: absolute;right: 36rpx;top:54rpx;display: flex;align-items: center;
  1100. image{width: 30rpx;height: 32rpx;margin-right: 12rpx;}
  1101. view{font-size: 32rpx;font-weight: 500;color: #F13800;;}
  1102. }
  1103. .top{position: relative;text-align: center;font-size: 32rpx;font-weight: bold;color: #343434;}
  1104. .boxs{padding: 60rpx 0;
  1105. .box{display: flex;align-items: center;min-height:100rpx;}
  1106. .boxcen{flex:1;display: flex;align-items: flex-start;margin-right:
  1107. 10rpx;
  1108. &.act{
  1109. view{color: #FF6400;}
  1110. }
  1111. image{width: 32rpx;height: 32rpx;margin-right: 20rpx;flex: 0 0 auto;margin-top: 4rpx;}
  1112. view{font-size: 32rpx;font-weight: 500;
  1113. color: #666666;}
  1114. }
  1115. }
  1116. .fixedbtn{width:100%;height: 80rpx;background: #FF6400;
  1117. border-radius: 10rpx;display: flex;align-items: center;justify-content: center;font-size: 32rpx;font-weight: bold;color: #FFFFFF;
  1118. &.btn1{background-color: #20ACCF;margin-bottom: 36rpx;}
  1119. }
  1120. }
  1121. .inform /deep/ .uni-forms-item__error{margin-top: -30rpx;margin-left: 24rpx;}
  1122. .fixedbox /deep/ .uni-forms-item__error{margin-top: -30rpx;margin-left: 24rpx;}
  1123. .fixedbox /deep/ .uni-data-checklist .checklist-group .checklist-box{margin: 10rpx 0;padding: 4rpx 0;width: 50%;box-sizing: border-box;}
  1124. .fixedbox /deep/ .uni-data-checklist .checklist-group .checklist-box .checklist-text{color: #343434;font-size: 30rpx;}
  1125. // .fixedbox /deep/ .uni-data-checklist .checklist-group .checklist-box .checkbox__inner{margin-right: 40rpx;}
  1126. .fixedbox /deep/ .uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner{border-color: #FF440B; background-color: #FF440B;}
  1127. .fixedbox /deep/ .uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text{color: #343434;}
  1128. .inform .pl12{margin-right: 10rpx;}
  1129. .fixedbox .pl12{margin-right: 10rpx;}
  1130. .inform /deep/ .uni-easyinput__content-textarea{min-height: 200rpx;}
  1131. // 新的
  1132. .delbx{width:44rpx;height: 44rpx;display: flex;align-items: center;justify-content: center;flex:0 0 auto;
  1133. image{width: 30rpx;height: 30rpx;}
  1134. }
  1135. // .boxcen{flex:1;
  1136. // &.act{
  1137. // view{color: #FF6400;}
  1138. // }
  1139. // image{width: 32rpx;height: 32rpx;margin-right: 20rpx;margin-top: 4rpx;}
  1140. // view{font-size: 32rpx;font-weight: 500;
  1141. // color: #666666;}
  1142. // }
  1143. </style>