edit_quality_testing.vue 40 KB

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