edit_quality_testing.vue 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  1. <template>
  2. <view ref="all-input">
  3. <view @click='hidden' class='wrap'>
  4. <view class='title_b'>基本信息</view>
  5. <view class="c-row ">
  6. <view class="title">入库类型</view>
  7. <view class="con-list">
  8. <view v-if='gridList.serviceManagementType==1'>贸易入库</view>
  9. <view v-if='gridList.serviceManagementType==3'>收购入库</view>
  10. </view>
  11. </view>
  12. <view v-if="flag!=3" class="c-row ">
  13. <view class="title">仓库</view>
  14. <view class="con-list">
  15. {{gridList.warehouseName}}
  16. </view>
  17. </view>
  18. <view class="c-row ">
  19. <view class="title">任务编号</view>
  20. <view class="con-list">
  21. <view >{{gridList.inOutTaskNo}}</view>
  22. </view>
  23. </view>
  24. <view v-if='gridList.serviceManagementType==1&&gridList.inOutType!="移库入库"&&flag!=3||gridList.serviceManagementType==3' class="c-row ">
  25. <view class="title">合同编号</view>
  26. <view class="con-list">
  27. {{gridList.contractNo}}
  28. </view>
  29. </view>
  30. <view v-if='gridList.serviceManagementType==1&&gridList.inOutType=="移库入库"&&flag!=3' class="c-row ">
  31. <view class="title">移库编号</view>
  32. <view class="con-list">
  33. {{gridList.contractNo}}
  34. </view>
  35. </view>
  36. <view v-if='flag!=3' class="c-row ">
  37. <view class="title">业务编号</view>
  38. <view class="con-list">
  39. {{gridList.qualityNo}}
  40. </view>
  41. </view>
  42. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  43. <view class="title">成本</view>
  44. <view class="con-list">
  45. <view v-if='!coststatus'>{{gridList.cost?gridList.cost:'自动获取,不可编辑'}}</view>
  46. <view v-if='coststatus'>
  47. <input v-model='gridList.cost' placeholder="请输入成本" name="input" type="digit"></input>
  48. </view>
  49. </view>
  50. <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
  51. </view>
  52. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  53. <view class="title">运费</view>
  54. <view class="con-list flex">
  55. <view v-if='!freightstatus'>{{gridList.freight?gridList.freight:'自动获取,不可编辑'}}</view>
  56. <view v-if='freightstatus'>
  57. <input v-model='gridList.freight' placeholder="请输入运费" name="input" type="digit"></input>
  58. </view>
  59. </view>
  60. <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
  61. </view>
  62. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  63. <view class="title">扣款</view>
  64. <view class="con-list">
  65. <input v-if='flag==4||flag==0' v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
  66. </view>
  67. </view>
  68. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  69. <view class="title">入库类型</view>
  70. <view class="con-list">
  71. {{gridList.inOutType?gridList.inOutType:'自动获取,不可编辑'}}
  72. </view>
  73. </view>
  74. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  75. <view class="title">入库日期</view>
  76. <view class="con-list">
  77. <view v-if='flag==4||flag==0' @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  78. <view v-else @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  79. <u-picker @confirm='inOutDatepicker($event)' :params="params" v-model="show5"
  80. mode="time">
  81. </u-picker>
  82. </view>
  83. </view>
  84. <view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
  85. <view class="title">客户</view>
  86. <view class="con-list">
  87. <view v-if='flag==4||flag==3' @click='gocustomer'>
  88. {{gridList.customerName}}({{gridList.customerPhone}})
  89. </view>
  90. <view v-else>
  91. {{gridList.customerName}}({{gridList.customerPhone}})
  92. </view>
  93. </view>
  94. </view>
  95. <view v-if='flag!=0' class="c-row ">
  96. <view class="title">车牌号</view>
  97. <view class="con-list">
  98. <input :disabled="flag!=4&&flag!=3" v-model='gridList.carNumber' @click.stop="handleShowKeyboard" placeholder="请输入车牌号"
  99. name="input"></input>
  100. <master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
  101. :defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
  102. <!-- <input :disabled='flag==1' v-model='gridList.carNumber' placeholder="请输入车牌号" name="input"></input> -->
  103. </view>
  104. </view>
  105. <!-- <view v-if="gridList.paramType != '1'" class="c-row ">
  106. <view class="title">扣重比</view>
  107. <view class="con-list">
  108. <input :disabled='flag==1' v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比"
  109. name="input"></input>
  110. </view>
  111. </view>
  112. <view v-else class="c-row ">
  113. <view class="title">扣杂</view>
  114. <view class="con-list">
  115. <input :disabled='flag==1' v-model='gridList.buckleMiscellaneous' placeholder="初检扣杂"
  116. @input="waterContentChange" name="input"></input>
  117. <input v-if='flag==0' value='未复检' disabled placeholder="复检扣杂" name="input"></input>
  118. <input v-else :disabled='flag!=1' v-model='gridList.reBuckleMiscellaneous' placeholder="复检扣杂"
  119. name="input"></input>
  120. </view>
  121. </view> -->
  122. <view v-if='gridList.serviceManagementType==3&&flag!=3' class="c-row ">
  123. <view class="title">购粮性质</view>
  124. <view class="con-list">
  125. <input :disabled='flag==1' v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质"
  126. name="input"></input>
  127. </view>
  128. </view>
  129. <view v-if='flag!=3' class="c-row ">
  130. <view class="title">仓位号</view>
  131. <view class="con-list">
  132. <view v-if='flag!=1' @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
  133. <view v-else>{{gridList.binNumber}}</view>
  134. </view>
  135. </view>
  136. <view v-if='flag!=3' class="c-row ">
  137. <view class="title">囤位号</view>
  138. <view class="con-list">
  139. <input :disabled="flag!=4&&flag!=0" v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
  140. </view>
  141. </view>
  142. <view v-if='flag!=3' class="c-row ">
  143. <view class="title">货名</view>
  144. <view class="con-list">
  145. <!-- <view v-if="flag != '0'">
  146. {{gridList.goodsName}}
  147. </view> -->
  148. <view v-if='flag==4||flag==0' @click='goodsName = true'>{{gridList.goodsName}}</view>
  149. <view v-else>{{gridList.goodsName}}</view>
  150. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodsPicker($event)'
  151. v-model="goodsName" mode="selector">
  152. </u-picker>
  153. </view>
  154. </view>
  155. <view v-if='flag!=3' class="c-row ">
  156. <view class="title">类型</view>
  157. <view class="con-list">
  158. {{gridList.type}}
  159. </view>
  160. </view>
  161. <view v-if='gridList.serviceManagementType==1' class="c-row ">
  162. <view class="title">运输方式</view>
  163. <view class="con-list">
  164. <view v-if='flag==4||flag==0' @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  165. <view v-else>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  166. <u-picker :range="multiSelector" range-key="name" @confirm='outtypepicker($event,0)' v-model="show7"
  167. mode="selector">
  168. </u-picker>
  169. </view>
  170. </view>
  171. <view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
  172. <view class="title">运输方式</view>
  173. <view class="con-list">
  174. <view v-if='flag==4||flag==3' @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
  175. <view v-else>{{outType?outType:'请选择运输方式'}}</view>
  176. <u-picker :range="multiSelector1" range-key="name" @confirm='outtypepicker($event,1)' v-model="show8"
  177. mode="selector">
  178. </u-picker>
  179. </view>
  180. </view>
  181. <view v-if='gridList.serviceManagementType==1&&flag!=3||gridList.serviceManagementType==3&&gridList.outType=="自运"&&flag!=3' class="c-row ">
  182. <view class="title">车队</view>
  183. <view class="con-list">
  184. <view v-if='flag==4||flag==0' @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  185. <view v-else>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  186. <u-picker @confirm='fleetpicker($event)' :range="fleetNameList" range-key="fleetName" v-model="show5"
  187. mode="selector">
  188. </u-picker>
  189. </view>
  190. </view>
  191. <view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  192. <view class="title">箱号-1</view>
  193. <view class="con-list">
  194. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  195. </view>
  196. </view>
  197. <view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  198. <view class="title">封号-1</view>
  199. <view class="con-list">
  200. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  201. </view>
  202. </view>
  203. <view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  204. <view class="title">箱号-2</view>
  205. <view class="con-list">
  206. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  207. </view>
  208. </view>
  209. <view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  210. <view class="title">封号-2</view>
  211. <view class="con-list">
  212. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  213. </view>
  214. </view>
  215. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  216. <view class="title">箱号-1</view>
  217. <view class="con-list">
  218. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  219. </view>
  220. </view>
  221. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  222. <view class="title">封号-1</view>
  223. <view class="con-list">
  224. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  225. </view>
  226. </view>
  227. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  228. <view class="title">箱号-2</view>
  229. <view class="con-list">
  230. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  231. </view>
  232. </view>
  233. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  234. <view class="title">封号-2</view>
  235. <view class="con-list">
  236. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  237. </view>
  238. </view>
  239. <view v-if="gridList.type == '潮粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
  240. <view class="title">净重单价(元/公斤)</view>
  241. <view class="con-list">
  242. <input :disabled='flag==1&&pricedisabled' v-model='gridList.tidalGrainPrice' @blur='inputprice' placeholder="自动获取,不可编辑"
  243. name="input"></input>
  244. </view>
  245. <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
  246. </view>
  247. <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
  248. <view class="title">干粮单价(元/公斤)</view>
  249. <view class="con-list">
  250. <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
  251. </view>
  252. <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
  253. </view>
  254. <view class="c-row-fj" v-if="flag==2||flag==1">
  255. <view style="margin: 0px 0px 30rpx 10rpx;">复检备注</view>
  256. <textarea class='textarea-style' v-model='gridList.reMemo' placeholder="请输入复检备注"
  257. maxlength="300"></textarea>
  258. </view>
  259. <view class="c-row" v-if="flag==1&&gridList.warehouseName=='鲅鱼圈金信库'">
  260. <view class="title">车型</view>
  261. <view class="con-list">
  262. <view @click='carstatus = true'>{{gridList.carModel?gridList.carModel:'请选择车型'}}</view>
  263. <u-picker :range="carModeList" range-key="constValue" @confirm='carPicker($event)'
  264. v-model="carstatus" mode="selector">
  265. </u-picker>
  266. </view>
  267. </view>
  268. <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==1&&flag!=3" class="c-row">
  269. <view class="title">干粮单价(元/公斤)</view>
  270. <view class="con-list">
  271. {{gridList.dryGrainPrice}}
  272. </view>
  273. </view>
  274. </view>
  275. <view v-if='flag!=3' style='padding-bottom:300rpx;'>
  276. <view class='wrap'>
  277. <view style='margin-right:10px;' class='flex justify-between align-item-center'>
  278. <view class='title_b'>化验信息</view>
  279. <view v-if='flag==0||flag==4' class='flex justify-between align-item-center'>补录:<u-switch activeColor="#22C572"
  280. v-model="value" @change="change"></u-switch>
  281. </view>
  282. </view>
  283. <view class="c-row ">
  284. <view class="title">等级</view>
  285. <view class="con-list">
  286. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker($event)' v-model="show1"
  287. mode="selector">
  288. </u-picker>
  289. <view v-if='flag!=1' @click='show1=true'>{{gridList.grade?gridList.grade:'请选择等级'}}</view>
  290. <view v-else>{{gridList.grade}}</view>
  291. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker1($event)' v-model="show2"
  292. mode="selector">
  293. </u-picker>
  294. <view v-if='flag==1' @click='show2=true'>{{gridList.reGrade?gridList.reGrade:'请选择等级'}}</view>
  295. <view v-if='flag==2'>{{gridList.reGrade}}</view>
  296. </view>
  297. </view>
  298. <view class="c-row ">
  299. <view class="title">水分(%)</view>
  300. <view class="con-list">
  301. <input :disabled='flag==1' v-model='gridList.waterContent' placeholder="初检水分"
  302. @input="waterContentChange" type="digit" name="input"></input>
  303. <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reWaterContent' placeholder="复检水分"
  304. name="input"></input>
  305. </view>
  306. </view>
  307. <view class="c-row ">
  308. <view v-if='gridList.goodsName!="大豆"' class="title">容重(克/升)</view>
  309. <view v-else class="title">蛋白</view>
  310. <view class="con-list">
  311. <input :disabled='flag==1' type="digit" v-model='gridList.bulkDensity' placeholder="请输入容重"
  312. name="input"></input>
  313. <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reBulkDensity' placeholder="请输入容重"
  314. name="input"></input>
  315. </view>
  316. </view>
  317. <view class="c-row ">
  318. <view class="title">不完善粒(%)</view>
  319. <view class="con-list">
  320. <input :disabled='flag==1' type="digit" v-model='gridList.imperfectGrain' placeholder="请输入不完整粒占比"
  321. name="input"></input>
  322. <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reImperfectGrain' placeholder="请输入不完整粒占比"
  323. name="input"></input>
  324. </view>
  325. </view>
  326. <view class="c-row ">
  327. <view class="title">杂质(%)</view>
  328. <view class="con-list">
  329. <input :disabled='flag==1' type="digit" v-model='gridList.impurity' placeholder="请输入杂质占比"
  330. name="input"></input>
  331. <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reImpurity' placeholder="请输入杂质占比"
  332. name="input"></input>
  333. </view>
  334. </view>
  335. <view class="c-row ">
  336. <view class="title">霉变粒(%)</view>
  337. <view class="con-list">
  338. <input :disabled='flag==1' type="digit" v-model='gridList.mildewGrain' placeholder="请输入霉变粒占比"
  339. name="input"></input>
  340. <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reMildewGrain' placeholder="请输入霉变粒占比"
  341. name="input"></input>
  342. </view>
  343. </view>
  344. <view class="c-row ">
  345. <view class="title">热损伤(%)</view>
  346. <view class="con-list">
  347. <input :disabled='flag==1' type="digit" v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
  348. name="input"></input>
  349. <input v-if='flag==1||flag==2' type="digit" v-model='gridList.reJiaorenli' placeholder="请输入热损伤占比"
  350. name="input"></input>
  351. <!-- <input v-model='gridList.jiaorenli' @click.stop="handleShowKeyboard1":disabled="true" placeholder="请输入热损伤占比" name="input"></input> -->
  352. </view>
  353. </view>
  354. </view>
  355. </view>
  356. <view class="footer">
  357. <view v-if='flag==1' @click='confirmInfo' class="button">确认初检信息</view>
  358. <view @click='submit' class="button">提交</view>
  359. </view>
  360. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  361. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  362. showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
  363. <u-popup v-model="isShowPrint" class="popup" @close="close" mode="bottom" border-radius="30" :closeable="true">
  364. <view class="buns_item">
  365. <view class="but_css" @click="print">打印小票</view>
  366. <view class="but_css" @click="close">返回</view>
  367. </view>
  368. </u-popup>
  369. <u-picker :range="warehouseList" range-key="binNumber" @confirm='binNumberpicker($event)'
  370. v-model="show" mode="selector">
  371. </u-picker>
  372. </view>
  373. </template>
  374. <script>
  375. import dragButton from "@/components/drag-button/drag-button.vue";
  376. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  377. import {
  378. mapState
  379. } from 'vuex';
  380. let startY = 0,
  381. moveY = 0,
  382. pageAtTop = true;
  383. export default {
  384. components: {
  385. dragButton,
  386. keyboard
  387. },
  388. data() {
  389. return {
  390. isShowPrint: false,
  391. inputShow: false,
  392. modalName: '',
  393. mycarStyle: '',
  394. feild: undefined,
  395. id: 0,
  396. show: false,
  397. show2:false,
  398. show4:false,
  399. show5:false,
  400. show7:false,
  401. show8:false,
  402. pricedisabled:false,
  403. multiSelector1:[{name:'他运',value:'他运'}],
  404. outType:'',
  405. selector: [],
  406. show1: false,
  407. pricetext:'锁定',
  408. goodsName: false,
  409. carstatus: false,
  410. params:{year: true,
  411. month: true,
  412. day: true,},
  413. inputContent: '',
  414. multiSelector: [{
  415. name: '汽运',
  416. value: '0',
  417. },
  418. {
  419. name: '火运',
  420. value: '1',
  421. },
  422. {
  423. name: '集装箱船',
  424. value: '2',
  425. },
  426. {
  427. name: '散船',
  428. value: '3',
  429. },
  430. ],
  431. coverTransform: 'translateY(0px)',
  432. coverTransition: '0s',
  433. moving: false,
  434. footprintList: [],
  435. zjid:'',
  436. searchKeyWord: '',
  437. isVip: false,
  438. flag: 0,
  439. freightstatus:false,
  440. coststatus:false,
  441. freighttext:'手动填写',
  442. costtext:'手动填写',
  443. userInfoTmp: [],
  444. inputStatus: 'none',
  445. carInfo: [],
  446. gridCol: 4,
  447. pageSize: 10,
  448. currentPage: 1,
  449. gridBorder: false,
  450. headUrl: "../../static/img/myimg/YongHu@3x.png",
  451. userphone: "",
  452. username: "请更改昵称",
  453. gridList: {
  454. natureOfGrainPurchase: '贸易粮',
  455. type: '潮粮',
  456. tidalGrainPrice: '',
  457. dryGrainPrice: '',
  458. carNumber: '',
  459. carModel: '',
  460. },
  461. managementType: '',
  462. warehouseName: '',
  463. warehouseList: [],
  464. showTran: true,
  465. companyId: 1,
  466. current: 4,
  467. value: false,
  468. carModeList: [],
  469. fleetNameList:[],
  470. gradeList: [{
  471. key: 1,
  472. value: '一等品'
  473. },
  474. {
  475. key: 2,
  476. value: '二等品'
  477. },
  478. {
  479. key: 3,
  480. value: '三等品'
  481. },
  482. {
  483. key: 4,
  484. value: '等外'
  485. },
  486. ],
  487. cangid: '',
  488. goodsList: [],
  489. taskNolist:[],
  490. isShowAlert: false,
  491. content: '确认初检信息后,初检员不需要再次确认质检信息,是否确定提交?',
  492. }
  493. },
  494. // #ifndef MP
  495. onNavigationBarButtonTap(e) {
  496. const index = e.index;
  497. if (index === 0) {
  498. this.navTo('/pages/set/set');
  499. } else if (index === 1) {
  500. // #ifdef APP-PLUS
  501. const pages = getCurrentPages();
  502. const page = pages[pages.length - 1];
  503. const currentWebview = page.$getAppWebview();
  504. currentWebview.hideTitleNViewButtonRedDot({
  505. index
  506. });
  507. // #endif
  508. uni.navigateTo({
  509. url: '/pages/notice/notice'
  510. })
  511. }
  512. },
  513. // #endif
  514. computed: {
  515. ...mapState(['hasLogin', 'userInfo']),
  516. // 手机号中间4位加*
  517. starUserphone() {
  518. let reg = /^(\d{3})\d{4}(\d{4})$/;
  519. if (this.userphone) {
  520. return this.userphone.replace(reg, "$1****$2");
  521. }
  522. }
  523. },
  524. onLoad(options) {
  525. this.id = options.id
  526. this.flag = options.flag
  527. this.cangid = options.cangid
  528. this.warehouseName=options.warehouseName
  529. this.managementType = options.managementType
  530. console.log(this.flag)
  531. var that = this
  532. this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
  533. id: this.id
  534. }).then(res => {
  535. if (res.data.data) {
  536. let data = res.data.data
  537. if (data.supplementaryRecording == 1) {
  538. that.value = true
  539. } else {
  540. that.value = false
  541. }
  542. that.gridList = data
  543. if(!that.gridList.reGrade){
  544. that.gridList.reGrade=that.gridList.grade
  545. }
  546. if(!that.gridList.reWaterContent){
  547. that.gridList.reWaterContent=that.gridList.waterContent
  548. }
  549. if(!that.gridList.reBulkDensity){
  550. that.gridList.reBulkDensity=that.gridList.bulkDensity
  551. }
  552. if(!that.gridList.reImperfectGrain){
  553. that.gridList.reImperfectGrain=that.gridList.imperfectGrain
  554. }
  555. if(!that.gridList.reImpurity){
  556. that.gridList.reImpurity=that.gridList.impurity
  557. }
  558. if(!that.gridList.reMildewGrain){
  559. that.gridList.reMildewGrain=that.gridList.mildewGrain
  560. }
  561. if(!that.gridList.reJiaorenli){
  562. that.gridList.reJiaorenli=that.gridList.jiaorenli
  563. }
  564. if(this.gridList.outType&&this.gridList.serviceManagementType==3){
  565. this.outType=this.gridList.outType
  566. }
  567. that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
  568. id: this.cangid
  569. }).then(res => {
  570. that.warehouseList = res.data.data.warehousePositionInfoList
  571. })
  572. }
  573. })
  574. this.$api.doRequest('get', 'commonSysParameter/getInfo', {
  575. constId: 'QUA1'
  576. }).then(res => {
  577. if (res.data.data) {
  578. that.carModeList = res.data.data
  579. }
  580. })
  581. //质检货名下拉
  582. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  583. warehouseId: this.cangid
  584. }).then(res => {
  585. if (res.data.data) {
  586. this.goodsList = res.data.data
  587. }
  588. })
  589. this.gridList.grade = this.gradeList[0].value
  590. this.gridList.gradeKey = this.gradeList[0].key
  591. },
  592. onShow() {
  593. this.multiSelector1=[{name:'他运',value:'他运'}]
  594. this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
  595. warehouseName:this.warehouseName
  596. }).then(res => {
  597. // console.log(res)
  598. if(res.data.data.contractManagementInfoList){
  599. for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
  600. res.data.data.contractMangementInfoList[i].name='自运 ('+
  601. res.data.data.contractMangementInfoList[i].contractNo+' '+res.data.data.contractMangementInfoList[i].seller+')'
  602. this.multiSelector1.push(res.data.data.contractManagementInfoList[i])
  603. }
  604. }else{
  605. this.multiSelector1=[{name:'他运',value:'他运'}]
  606. }
  607. // this.taskNolist=res.data.data
  608. })
  609. // uni.showLoading({title: '加载中'})
  610. // this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  611. // flag: 2,
  612. // warehouseName:this.warehouseName
  613. // }).then(res => {
  614. // console.log(res)
  615. // uni.hideLoading();
  616. // this.taskNolist=res.data.data
  617. // })
  618. let _kh = uni.getStorageSync('isClick')
  619. if (uni.getStorageSync('checkcustomer') && _kh) {
  620. let _customerInfo = uni.getStorageSync('checkcustomer')
  621. if (_customerInfo.shipperName) {
  622. this.gridList.identityId = _customerInfo.id
  623. //点击登记客户
  624. this.gridList.customerName = _customerInfo.shipperName
  625. this.gridList.customerPhone = _customerInfo.shipperPhone
  626. this.gridList.carNumber = _customerInfo.carNo
  627. } else {
  628. //点击搜索客户
  629. this.gridList.customerName = _customerInfo.customerName
  630. this.gridList.customerPhone = _customerInfo.customerPhone
  631. }
  632. this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  633. }
  634. },
  635. methods: {
  636. changeprice(){
  637. if(this.pricetext=='解锁'){
  638. this.pricedisabled=false
  639. this.pricetext='锁定'
  640. }else{
  641. this.pricedisabled=true
  642. this.pricetext='解锁'
  643. }
  644. },
  645. inputprice(){
  646. if(this.pricetext=='锁定'){
  647. this.pricedisabled=true
  648. this.pricetext='解锁'
  649. }
  650. },
  651. inOutDatepicker(e){
  652. this.gridList.inOutDate=e.year+'-'+e.month+'-'+e.day
  653. console.log(e)
  654. },
  655. fleetpicker(e){
  656. this.gridList.fleet=this.fleetNameList[e[0]].fleetName
  657. },
  658. changefreight(){
  659. this.freightstatus=!this.freightstatus
  660. if(this.freightstatus){
  661. this.freighttext='自动获取'
  662. }else{
  663. this.freighttext='手动填写'
  664. }
  665. },
  666. changecost(){
  667. this.coststatus=!this.coststatus
  668. if(this.coststatus){
  669. this.costtext='自动获取'
  670. }else{
  671. this.costtext='手动填写'
  672. }
  673. },
  674. gocustomer() {
  675. uni.navigateTo({
  676. url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList
  677. .warehouseName + '&goodsName=' + this.gridList.goodsName + '&status=edit'
  678. })
  679. },
  680. print() {
  681. uni.navigateTo({
  682. url: '/pages/erpbusiness/bleConnect'
  683. })
  684. },
  685. close() {
  686. this.isShowPrint = false
  687. uni.navigateBack({})
  688. },
  689. // focusConfig(type){
  690. // console.log('childclick',type)
  691. // // 0是上一项
  692. // if(type==0){
  693. // }else{}
  694. // },
  695. hidden() {
  696. this.$refs.keyboard.open(false)
  697. },
  698. carPicker(e) {
  699. this.gridList.carModel = this.carModeList[e[0]].constValue
  700. },
  701. handleShowKeyboard() {
  702. if (this.flag == 0) {
  703. if (this.$refs.keyboard.open) {
  704. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  705. } else {
  706. this.$refs.keyboard[0].open(true)
  707. }
  708. }
  709. },
  710. handleShowKeyboard1() {
  711. if (this.flag == 0) {
  712. if (this.$refs.keyboard1.open) {
  713. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  714. } else {
  715. this.$refs.keyboard1[0].open(true)
  716. }
  717. }
  718. },
  719. handleClick(e) {
  720. this.gridList.carNumber = e.value //键盘输入值
  721. },
  722. handleClick1(e) {
  723. this.gridList.jiaorenli = e.value //键盘输入值
  724. },
  725. change(e) {
  726. if (e) {
  727. this.gridList.supplementaryRecording = 1
  728. } else {
  729. this.gridList.supplementaryRecording = 0
  730. }
  731. },
  732. confirmInfo() {
  733. this.isShowAlert = true
  734. },
  735. alertBtn() {
  736. this.gridList.agent=this.userInfo.userName;
  737. var that = this
  738. that.gridList.reWaterContent = that.gridList.waterContent
  739. if (that.gridList.buckleMiscellaneous) {
  740. that.gridList.reBuckleMiscellaneous = that.gridList.buckleMiscellaneous
  741. }
  742. that.gridList.flag = 1
  743. if(this.flag==3){
  744. this.gridList.statusFlag=7
  745. }else if(this.flag==4||this.flag==0){
  746. this.gridList.statusFlag=0
  747. }
  748. else if(this.flag==1){
  749. this.gridList.statusFlag=1
  750. }else if(this.flag==2){
  751. this.gridList.statusFlag=2
  752. }
  753. this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', that.gridList).then(
  754. res => {
  755. if (res.data.code == "200") {
  756. that.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', {
  757. id: that.gridList.id,
  758. flag: 2
  759. }).then(res => {
  760. if (res.data.code == "200") {
  761. that.$api.msg('提交成功!')
  762. setTimeout(function() {
  763. uni.navigateBack({delta:Int16Array})
  764. }, 1000)
  765. } else {
  766. that.$api.msg('提交失败')
  767. }
  768. })
  769. } else {
  770. that.$api.msg('提交失败')
  771. }
  772. })
  773. },
  774. waterContentChange() {
  775. var that = this
  776. if (this.gridList.goodsName && this.cangid) {
  777. if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  778. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  779. warehouseId: this.cangid,
  780. goodsName: this.gridList.goodsName
  781. }).then(res => {
  782. that.gridList.dryGrainPrice = res.data.data
  783. })
  784. }
  785. }
  786. if (this.gridList.goodsName) {
  787. for (var i = 0; i < this.purchasePriceList.length; i++) {
  788. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  789. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  790. this.gridList.paramType = this.purchasePriceList[i].paramType
  791. }
  792. }
  793. }
  794. var numReg = /^[0-9]*$/
  795. var numRe = new RegExp(numReg)
  796. //潮粮单价改变事件
  797. if (
  798. this.gridList.goodsName &&
  799. this.gridList.waterContent &&
  800. this.gridList.grade &&
  801. numRe.test(this.gridList.waterContent)
  802. ) {
  803. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  804. warehouseId: this.cangid,
  805. goodsName: this.gridList.goodsName,
  806. waterContent: this.gridList.waterContent,
  807. grade: this.gridList.grade,
  808. }).then(res => {
  809. if (that.gridList.paramType == '1') {
  810. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  811. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  812. .dryGrainPrice)).toFixed(4)
  813. if (!that.gridList.tidalGrainPrice) {
  814. that.gridList.tidalGrainPrice = ''
  815. }
  816. } else {
  817. that.gridList.tidalGrainPrice = res.data.data
  818. }
  819. })
  820. }
  821. },
  822. goodsPicker(e) {
  823. this.gridList.goodsName = this.goodsList[e[0]].goodsName
  824. },
  825. submit() {
  826. this.gridList.agent=this.userInfo.userName;
  827. if(this.flag==3){
  828. this.gridList.statusFlag=7
  829. }else if(this.flag==4||this.flag==0){
  830. this.gridList.statusFlag=0
  831. }
  832. else if(this.flag==1){
  833. this.gridList.statusFlag=1
  834. }else if(this.flag==2){
  835. this.gridList.statusFlag=2
  836. }
  837. if(this.gridList.serviceManagementType==3){
  838. if(this.outType){
  839. this.gridList.outType=this.outType
  840. }
  841. }else{
  842. this.gridList.customerName = ''
  843. }
  844. var text=''
  845. if(this.utils.getCurrectRoles('acquisitionQuality.qview')&&!this.utils.getCurrectRoles('acquisitionQuality.initial')){
  846. text="确定提交钎样信息?"
  847. if(this.flag==3||this.flag==4||this.flag==0){
  848. this.gridList.brazer=1
  849. }
  850. }else{
  851. text="确定提交质检信息?"
  852. if(this.flag==3||this.flag==4||this.flag==0){
  853. this.gridList.brazer=0
  854. }
  855. }
  856. if(this.flag==4){
  857. this.gridList.flag = 0
  858. }else{
  859. this.gridList.flag = this.flag
  860. }
  861. // if(this.flag==2){
  862. // this.gridList.reInspector=this.userInfo.userName
  863. // }
  864. if (!this.gridList.qualityNo) {
  865. this.$api.msg('编号不能为空')
  866. return
  867. }
  868. var that = this
  869. if(this.flag==4||this.flag==0){
  870. if (!this.gridList.binNumber) {
  871. this.$api.msg('仓位不能为空')
  872. return
  873. }
  874. }
  875. if(this.gridList.serviceManagementType==3){
  876. if (!this.gridList.customerName) {
  877. this.$api.msg('客户不能为空')
  878. return
  879. }
  880. }
  881. // if (!this.gridList.storageTagNo) {
  882. // this.$api.msg('囤位号不能为空')
  883. // return
  884. // }
  885. // if (this.gridList.storageTagNo.length > 10) {
  886. // this.$api.msg('囤位号不能为空')
  887. // return
  888. // }
  889. if (!this.gridList.carNumber) {
  890. this.$api.msg('车牌号不能为空')
  891. return
  892. }
  893. if (this.gridList.carNumber.length > 7) {
  894. this.$api.msg('车牌号输入错误')
  895. return
  896. }
  897. if (!this.gridList.goodsName) {
  898. this.$api.msg('货名不能为空')
  899. return
  900. }
  901. if (this.gridList.paramType != 1 && this.gridList.buckleWeightRatio < 0 || this.gridList.paramType != 1 &&
  902. this.gridList.buckleWeightRatio > 2) {
  903. this.$api.msg('扣重比输入错误')
  904. return
  905. }
  906. if (
  907. this.gridList.paramType != 1 && String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
  908. String(this.gridList.buckleWeightRatio).length -
  909. (String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2) {
  910. this.$api.msg('扣重比输入错误')
  911. return
  912. }
  913. if (this.flag == 0 && this.gridList.paramType == 1 && this.gridList.buckleMiscellaneous < 0 || this.flag ==
  914. 0 && this.gridList.paramType == 1 && this.gridList.buckleMiscellaneous > 50) {
  915. this.$api.msg('初检扣杂输入错误')
  916. return
  917. }
  918. if (this.flag == 1 && this.gridList.paramType == 1 && this.gridList.reBuckleMiscellaneous < 0 || this
  919. .flag == 0 && this.gridList.paramType == 1 && this.gridList.reBuckleMiscellaneous > 50) {
  920. this.$api.msg('复检扣杂输入错误')
  921. return
  922. }
  923. if (!this.gridList.type) {
  924. this.$api.msg('类型不能为空')
  925. return
  926. }
  927. if (this.value == false&&this.flag!=3 || this.flag == 2) {
  928. if (!this.gridList.grade) {
  929. this.$api.msg('等级不能为空')
  930. return
  931. }
  932. if (!this.gridList.impurity) {
  933. this.$api.msg('杂质不能为空')
  934. return
  935. }
  936. if (!this.gridList.waterContent) {
  937. this.$api.msg('初检水分不能为空')
  938. return
  939. }
  940. // if (!this.gridList.reWaterContent) {
  941. // this.$api.msg('复检水分不能为空')
  942. // return
  943. // }
  944. if (!this.gridList.mildewGrain) {
  945. this.$api.msg('霉变粒不能为空')
  946. return
  947. }
  948. if(this.gridList.goodsName!="大豆"){
  949. if (!this.gridList.bulkDensity) {
  950. this.$api.msg('容重不能为空')
  951. return
  952. }
  953. }else{
  954. if (!this.gridList.bulkDensity) {
  955. this.$api.msg('蛋白不能为空')
  956. return
  957. }
  958. }
  959. if (!this.gridList.jiaorenli) {
  960. this.$api.msg('热损伤不能为空')
  961. return
  962. }
  963. if (!this.gridList.imperfectGrain) {
  964. this.$api.msg('不完整粒不能为空')
  965. return
  966. }
  967. }
  968. this.gridList.storageNumber = this.gridList.storageTagNo
  969. var kid=JSON.parse(JSON.stringify(this.gridList.warehouseInOutId))
  970. this.zjid=JSON.parse(JSON.stringify(this.gridList.id))
  971. that.gridList.warehouseInOutDetail={
  972. id:that.gridList.warehouseInOutId,
  973. grade:that.gridList.grade,
  974. reGrade:that.gridList.grade,
  975. waterContent:that.gridList.waterContent,
  976. reWaterContent:that.gridList.reWaterContent,
  977. imperfectGrain:that.gridList.imperfectGrain,
  978. reImperfectGrain:that.gridList.reImperfectGrain,
  979. impurity:that.gridList.impurity,
  980. reImpurity:that.gridList.reImpurity,
  981. jiaorenli:that.gridList.jiaorenli,
  982. reJiaorenli:that.gridList.reJiaorenli,
  983. bulkDensity:that.gridList.bulkDensity,
  984. reBulkDensity:that.gridList.reBulkDensity,
  985. mildewGrain:that.gridList.mildewGrain,
  986. reMildewGrain:that.gridList.reMildewGrain,
  987. }
  988. console.log(this.gridList)
  989. uni.showModal({
  990. content: text,
  991. showCancel: true,
  992. confirmText: '提交',
  993. success: function(res) {
  994. if (res.confirm) {
  995. that.$api.doRequest('post',
  996. '/qualityInspectionManagement/api/editQualityInspection', that.gridList)
  997. .then(res => {
  998. that.gridList.id=kid
  999. that.gridList.statusFlag=1
  1000. that.$api.doRequest('post',
  1001. '/warehouseInOutInfo/InOutWarehouse',
  1002. that.gridList)
  1003. .then(res => {
  1004. if (res.data.code == 200) {
  1005. that.$api.msg('编辑质检成功')
  1006. that.gridList.warehouseId = that.cangid
  1007. uni.setStorageSync("quality_print", that.gridList)
  1008. console.log('that.gridList', that.gridList)
  1009. if(that.utils.getCurrectRoles('acquisitionQuality.initial')){
  1010. that.isShowPrint = true
  1011. }else{
  1012. uni.navigateBack({delta:1})
  1013. }
  1014. // uni.getStorageSync("depotAcquisition_warehouseName")
  1015. // uni.navigateBack({})
  1016. }
  1017. })
  1018. })
  1019. }
  1020. }
  1021. })
  1022. },
  1023. gradepicker(e) {
  1024. console.log(e)
  1025. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1026. this.gridList.grade = this.gradeList[e[0]].value
  1027. this.gridList.gradeKey = this.gradeList[e[0]].key
  1028. this.waterContentChange()
  1029. },
  1030. gradepicker1(e) {
  1031. console.log(e)
  1032. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1033. this.gridList.reGrade = this.gradeList[e[0]].value
  1034. this.gridList.reGradeKey = this.gradeList[e[0]].key
  1035. },
  1036. binNumberpicker(e) {
  1037. this.gridList.binNumber = this.warehouseList[e[0]].binNumber
  1038. },
  1039. del(item) {
  1040. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection', {
  1041. id: item.id
  1042. }).then(res => {
  1043. if (res.data.code == 200) {
  1044. this.$api.msg('删除成功')
  1045. } else {
  1046. this.$api.msg('系统异常,请联系管理员')
  1047. }
  1048. })
  1049. },
  1050. contactUs() {
  1051. const that = this
  1052. uni.makePhoneCall({
  1053. // 手机号
  1054. phoneNumber: '18241771147',
  1055. // 成功回调
  1056. success: (res) => {},
  1057. // 失败回调
  1058. fail: (res) => {}
  1059. });
  1060. },
  1061. loadData() {
  1062. // const that = this
  1063. // if(uni.getStorageSync("PageCur")){
  1064. // that.PageCur = uni.getStorageSync("PageCur");
  1065. // }
  1066. // that.userInfoTmp = uni.getStorageSync("userInfo")
  1067. // uni.showLoading({
  1068. // title: '正在加载',
  1069. // mask:true
  1070. // })
  1071. // that.$api.request('integral', 'getIndexData', failres => {
  1072. // that.$api.msg(failres.errmsg)
  1073. // uni.hideLoading()
  1074. // }).then(res => {
  1075. // let data = res.data
  1076. // uni.setStorageSync("message", data.message);
  1077. // uni.setStorageSync("task", data.task);
  1078. // uni.setStorageSync("contract", data.contract);
  1079. // uni.setStorageSync('showTran', data.showTran);
  1080. // that.showTran = data.showTran
  1081. // that.gridList[4].tips = data.task
  1082. // that.gridList[2].tips = data.contract
  1083. // that.companyId = data.companyId
  1084. // uni.hideLoading()
  1085. // })
  1086. },
  1087. confirm() {
  1088. const that = this
  1089. if (!that.inputContent) {
  1090. that.$api.msg('输入不能为空')
  1091. return
  1092. }
  1093. let obj = {}
  1094. obj[that.feild] = that.inputContent
  1095. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  1096. that.userInfo.nickname = that.inputContent
  1097. that.inputContent = ''
  1098. that.$store.commit('login', that.userInfo)
  1099. })
  1100. },
  1101. cancel() {
  1102. this.inputShow = false
  1103. this.inputStatus = 'none'
  1104. this.genderShow = false
  1105. },
  1106. myAccount() {
  1107. uni.navigateTo({
  1108. url: `/pageA/pages/contract`
  1109. })
  1110. },
  1111. /**
  1112. * 统一跳转接口,拦截未登录路由
  1113. * navigator标签现在默认没有转场动画,所以用view
  1114. */
  1115. navTo(url) {
  1116. if (!this.hasLogin) {
  1117. url = '/pages/public/login';
  1118. }
  1119. uni.navigateTo({
  1120. url
  1121. })
  1122. },
  1123. mycarClick(carNo) {
  1124. this.modalName = null
  1125. uni.navigateTo({
  1126. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  1127. })
  1128. },
  1129. scanCode() {
  1130. uni.scanCode({
  1131. success: function(res) {
  1132. uni.navigateTo({
  1133. url: res.result
  1134. })
  1135. }
  1136. })
  1137. },
  1138. hideModal(e) {
  1139. this.modalName = null
  1140. },
  1141. }
  1142. }
  1143. </script>
  1144. <style lang='scss' scoped>
  1145. .title_b {
  1146. margin: 20rpx 20rpx 0rpx 20rpx;
  1147. padding: 20rpx 10rpx 20rpx 10rpx;
  1148. font-size: 18px;
  1149. font-weight: 550;
  1150. }
  1151. page {
  1152. background: #F5F6FA;
  1153. }
  1154. .wrap {
  1155. padding-bottom: 10px;
  1156. font-size: 14px;
  1157. background: #fff;
  1158. margin: 10px;
  1159. border-radius: 10px;
  1160. input {
  1161. font-size: 14px;
  1162. }
  1163. >.title {
  1164. padding: 10px 16px;
  1165. }
  1166. .b-b:after {
  1167. border-bottom: 1px solid #eee;
  1168. }
  1169. }
  1170. .footer {
  1171. background: #fff;
  1172. position: fixed;
  1173. bottom: 0;
  1174. width: 100%;
  1175. padding: 20px 10px;
  1176. z-index: 10;
  1177. .button {
  1178. background: #22C572;
  1179. width: 90%;
  1180. margin: 20rpx auto;
  1181. padding: 10px;
  1182. color: #fff;
  1183. text-align: center;
  1184. border-radius: 30px;
  1185. }
  1186. }
  1187. .c-row {
  1188. display: -webkit-box;
  1189. display: -webkit-flex;
  1190. display: flex;
  1191. -webkit-box-align: center;
  1192. -webkit-align-items: center;
  1193. align-items: center;
  1194. padding: 20rpx 30rpx;
  1195. position: relative;
  1196. }
  1197. .con-list {
  1198. -webkit-box-flex: 1;
  1199. -webkit-flex: 1;
  1200. flex: 1;
  1201. display: -webkit-box;
  1202. display: -webkit-flex;
  1203. display: flex;
  1204. -webkit-box-orient: vertical;
  1205. -webkit-box-direction: normal;
  1206. -webkit-flex-direction: column;
  1207. flex-direction: column;
  1208. color: #303133;
  1209. line-height: 40rpx;
  1210. text-align: right;
  1211. padding-right: 20rpx;
  1212. }
  1213. input:disabled {
  1214. color: #ccc;
  1215. }
  1216. .textarea-style {
  1217. border: 1px solid #EEEEEE;
  1218. width: 100%;
  1219. padding: 20rpx;
  1220. border-radius: 20rpx;
  1221. }
  1222. .c-row-fj {
  1223. padding: 20rpx
  1224. }
  1225. .buns_item {
  1226. display: flex;
  1227. padding: 80rpx 0 50rpx 0;
  1228. justify-content: space-around;
  1229. }
  1230. .but_css {
  1231. background: #22C572;
  1232. width: 40%;
  1233. padding: 20rpx;
  1234. color: #fff;
  1235. text-align: center;
  1236. border-radius: 20rpx;
  1237. }
  1238. </style>