edit_quality_testing.vue 60 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741
  1. <template>
  2. <view :style='{"margin-bottom":InputEvent!=""?"200px":0}' 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 class="c-row ">
  25. <view class="title">已完成量</view>
  26. <view class="con-list">
  27. <view >{{gridList.donecount?gridList.donecount:'自动获取,不可编辑'}}</view>
  28. </view>
  29. </view>
  30. <view v-if='gridList.serviceManagementType==1&&gridList.inOutType!="移库入库"&&flag!=3||gridList.serviceManagementType==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='gridList.serviceManagementType==1&&gridList.inOutType=="移库入库"&&flag!=3' class="c-row ">
  37. <view class="title">移库编号</view>
  38. <view class="con-list">
  39. {{gridList.contractNo}}
  40. </view>
  41. </view>
  42. <view v-if='flag!=3' class="c-row ">
  43. <view class="title">业务编号</view>
  44. <view class="con-list">
  45. {{gridList.qualityNo}}
  46. </view>
  47. </view>
  48. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  49. <view class="title">成本</view>
  50. <view class="con-list">
  51. <view v-if='!coststatus'>{{gridList.cost?gridList.cost:'自动获取,不可编辑'}}</view>
  52. <view v-if='coststatus'>
  53. <input v-model='gridList.cost' placeholder="请输入成本" name="input" type="digit"></input>
  54. </view>
  55. </view>
  56. <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
  57. </view>
  58. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  59. <view class="title">运费</view>
  60. <view class="con-list flex">
  61. <view v-if='!freightstatus'>{{gridList.freight?gridList.freight:'自动获取,不可编辑'}}</view>
  62. <view v-if='freightstatus'>
  63. <input v-model='gridList.freight' placeholder="请输入运费" name="input" type="digit"></input>
  64. </view>
  65. </view>
  66. <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
  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. <input v-if='flag==4||flag==0' v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
  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. {{gridList.inOutType?gridList.inOutType:'自动获取,不可编辑'}}
  78. </view>
  79. </view>
  80. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  81. <view class="title">入库日期</view>
  82. <view class="con-list">
  83. <view v-if='flag==4||flag==0' @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  84. <view v-else @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  85. <u-picker @confirm='inOutDatepicker($event)' :params="params" v-model="show5"
  86. mode="time">
  87. </u-picker>
  88. </view>
  89. </view>
  90. <view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
  91. <view class="title">客户</view>
  92. <view class="con-list">
  93. <view v-if='flag==4||flag==3' @click='gocustomer'>
  94. {{gridList.customerName}}({{gridList.customerPhone}})
  95. </view>
  96. <view v-else>
  97. {{gridList.customerName}}({{gridList.customerPhone}})
  98. </view>
  99. </view>
  100. </view>
  101. <!-- <view v-if='flag!=0' class="c-row "> -->
  102. <view class="c-row ">
  103. <view class="title">车牌号</view>
  104. <view class="con-list">
  105. <input :disabled="flag!=4&&flag!=3" v-model='gridList.carNumber' @click.stop="handleShowKeyboard" placeholder="请输入车牌号"
  106. name="input"></input>
  107. <master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
  108. :defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
  109. <!-- <input :disabled='flag==1' v-model='gridList.carNumber' placeholder="请输入车牌号" name="input"></input> -->
  110. </view>
  111. </view>
  112. <!-- <view v-if="gridList.paramType != '1'" class="c-row ">
  113. <view class="title">扣重比</view>
  114. <view class="con-list">
  115. <input :disabled='flag==1' v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比"
  116. name="input"></input>
  117. </view>
  118. </view>
  119. <view v-else class="c-row ">
  120. <view class="title">扣杂</view>
  121. <view class="con-list">
  122. <input :disabled='flag==1' v-model='gridList.buckleMiscellaneous' placeholder="初检扣杂"
  123. @input="waterContentChange" name="input"></input>
  124. <input v-if='flag==0' value='未复检' disabled placeholder="复检扣杂" name="input"></input>
  125. <input v-else :disabled='flag!=1' v-model='gridList.reBuckleMiscellaneous' placeholder="复检扣杂"
  126. name="input"></input>
  127. </view>
  128. </view> -->
  129. <view v-if='gridList.serviceManagementType==3&&flag!=3' class="c-row ">
  130. <view class="title">购粮性质</view>
  131. <view class="con-list">
  132. <input :disabled='flag==1' v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质"
  133. name="input"></input>
  134. </view>
  135. </view>
  136. <view v-if='flag!=3' class="c-row ">
  137. <view class="title">仓位号</view>
  138. <view class="con-list">
  139. <view v-if='flag!=1' @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
  140. <view v-else>{{gridList.binNumber}}</view>
  141. </view>
  142. </view>
  143. <view v-if='flag!=3' class="c-row ">
  144. <view class="title">囤位号</view>
  145. <view class="con-list">
  146. <input :disabled="flag!=4&&flag!=0" v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
  147. </view>
  148. </view>
  149. <view v-if='flag!=3' class="c-row ">
  150. <view class="title">货名</view>
  151. <view class="con-list">
  152. <!-- <view v-if="flag != '0'">
  153. {{gridList.goodsName}}
  154. </view> -->
  155. <view v-if='flag==4||flag==0'>{{gridList.goodsName}}</view>
  156. <view v-else>{{gridList.goodsName}}</view>
  157. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodsPicker($event)'
  158. v-model="goodsName" mode="selector">
  159. </u-picker>
  160. </view>
  161. </view>
  162. <view v-if='flag!=3' class="c-row ">
  163. <view class="title">类型</view>
  164. <view class="con-list">
  165. {{gridList.type}}
  166. </view>
  167. </view>
  168. <view v-if='gridList.serviceManagementType==1' class="c-row ">
  169. <view class="title">运输方式</view>
  170. <view class="con-list">
  171. <view v-if='flag==4||flag==0' @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  172. <view v-else>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  173. <u-picker :range="multiSelector" range-key="name" @confirm='outtypepicker($event,0)' v-model="show7"
  174. mode="selector">
  175. </u-picker>
  176. </view>
  177. </view>
  178. <view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
  179. <view class="title">运输方式</view>
  180. <view class="con-list">
  181. <view v-if='flag==4||flag==3' @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
  182. <view v-else>{{outType?outType:'请选择运输方式'}}</view>
  183. <u-picker :range="multiSelector1" range-key="name" @confirm='outtypepicker($event,1)' v-model="show8"
  184. mode="selector">
  185. </u-picker>
  186. </view>
  187. </view>
  188. <view v-if='gridList.serviceManagementType==1&&flag!=3||gridList.serviceManagementType==3&&gridList.outType=="自运"&&flag!=3' class="c-row ">
  189. <view class="title">车队</view>
  190. <view class="con-list">
  191. <view v-if='flag==4||flag==0' @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  192. <view v-else>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  193. <u-picker @confirm='fleetpicker($event)' :range="fleetNameList" range-key="fleetName" v-model="show6"
  194. mode="selector">
  195. </u-picker>
  196. </view>
  197. </view>
  198. <view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  199. <view class="title">箱号-1</view>
  200. <view class="con-list">
  201. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  202. </view>
  203. </view>
  204. <view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  205. <view class="title">封号-1</view>
  206. <view class="con-list">
  207. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  208. </view>
  209. </view>
  210. <view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  211. <view class="title">箱号-2</view>
  212. <view class="con-list">
  213. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  214. </view>
  215. </view>
  216. <view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  217. <view class="title">封号-2</view>
  218. <view class="con-list">
  219. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  220. </view>
  221. </view>
  222. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  223. <view class="title">箱号-1</view>
  224. <view class="con-list">
  225. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  226. </view>
  227. </view>
  228. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  229. <view class="title">封号-1</view>
  230. <view class="con-list">
  231. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  232. </view>
  233. </view>
  234. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  235. <view class="title">箱号-2</view>
  236. <view class="con-list">
  237. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  238. </view>
  239. </view>
  240. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  241. <view class="title">封号-2</view>
  242. <view class="con-list">
  243. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  244. </view>
  245. </view>
  246. <view class="c-row-fj" v-if="flag==2||flag==1">
  247. <view style="margin: 0px 0px 30rpx 10rpx;">复检备注</view>
  248. <textarea class='textarea-style' v-model='gridList.reMemo' placeholder="请输入复检备注"
  249. maxlength="300"></textarea>
  250. </view>
  251. <view class="c-row" v-if="flag==1&&gridList.warehouseName=='鲅鱼圈金信库'">
  252. <view class="title">车型</view>
  253. <view class="con-list">
  254. <view @click='carstatus = true'>{{gridList.carModel?gridList.carModel:'请选择车型'}}</view>
  255. <u-picker :range="carModeList" range-key="constValue" @confirm='carPicker($event)'
  256. v-model="carstatus" mode="selector">
  257. </u-picker>
  258. </view>
  259. </view>
  260. </view>
  261. <view v-if='flag!=3' style='padding-bottom:500rpx;'>
  262. <view class='wrap'>
  263. <view style='margin-right:10px;' class='flex justify-between align-item-center'>
  264. <view class='title_b'>化验信息</view>
  265. <view v-if='flag==0||flag==4' class='flex justify-between align-item-center'>补录:<u-switch activeColor="#22C572"
  266. v-model="value" @change="change"></u-switch>
  267. </view>
  268. </view>
  269. <view class="c-row ">
  270. <view class="title">等级</view>
  271. <view class="con-list">
  272. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker($event)' v-model="show1"
  273. mode="selector">
  274. </u-picker>
  275. <view v-if='flag!=1' @click='show1=true'>{{gridList.grade?gridList.grade:'请选择等级'}}</view>
  276. <view v-else>{{gridList.grade}}</view>
  277. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker1($event)' v-model="show2"
  278. mode="selector">
  279. </u-picker>
  280. <view v-if='flag==1' @click='show2=true'>{{gridList.reGrade?gridList.reGrade:'请选择等级'}}</view>
  281. <view v-if='flag==2'>{{gridList.reGrade}}</view>
  282. </view>
  283. </view>
  284. <view class="c-row ">
  285. <view class="title">水分(%)</view>
  286. <view class="con-list">
  287. <MyNumberInput :myvalue="gridList.waterContent" :Isedit="Isedit" :IsShow="MykeywordShow"
  288. :myevent="'waterContent'"
  289. @setValue="mykeywordset" v-if="InputEvent=='waterContent'"
  290. @Cancelword="Cancelword"
  291. @goNext="goNext('waterContent')"></MyNumberInput>
  292. <input v-else :disabled='flag==1' @click="SetInputKey('waterContent')" v-model='gridList.waterContent' placeholder="初检水分"
  293. @input="waterContentChange" type="digit" name="input"></input>
  294. <MyNumberInput :myvalue="gridList.reWaterContent" :Isedit="Isedit" :IsShow="MykeywordShow"
  295. :myevent="'reWaterContent'"
  296. @setValue="mykeywordset" v-if="InputEvent=='reWaterContent'"
  297. @Cancelword="Cancelword"
  298. @goNext="goNext('reWaterContent')"></MyNumberInput>
  299. <input @click="SetInputKey('reWaterContent')" v-if="flag==1&&InputEvent!='reWaterContent'||flag==2&&InputEvent!='reWaterContent'" type="digit" v-model='gridList.reWaterContent' placeholder="复检水分"
  300. name="input"></input>
  301. </view>
  302. </view>
  303. <view class="c-row " v-if='gridList.goodsName!="大豆"'>
  304. <view class="title">容重(克/升)</view>
  305. <view class="con-list">
  306. <MyNumberInput :myvalue="gridList.bulkDensity" :Isedit="Isedit" :IsShow="MykeywordShow"
  307. :myevent="'bulkDensity'"
  308. @setValue="mykeywordset" v-if="InputEvent=='bulkDensity'"
  309. @Cancelword="Cancelword"
  310. @goNext="goNext('bulkDensity')"></MyNumberInput>
  311. <input v-else @click="SetInputKey('bulkDensity')" :disabled='flag==1' type="digit" v-model='gridList.bulkDensity' placeholder="请输入容重"
  312. name="input" @input="obtainPrice"></input>
  313. <MyNumberInput :myvalue="gridList.reBulkDensity" :Isedit="Isedit" :IsShow="MykeywordShow"
  314. :myevent="'reBulkDensity'"
  315. @setValue="mykeywordset" v-if="InputEvent=='reBulkDensity'"
  316. @Cancelword="Cancelword"
  317. @goNext="goNext('reBulkDensity')"></MyNumberInput>
  318. <input @click="SetInputKey('reBulkDensity')" v-if="flag==1&&InputEvent!='reBulkDensity'||flag==2&&InputEvent!='reBulkDensity'" type="digit" v-model='gridList.reBulkDensity' placeholder="请输入容重"
  319. name="input"></input>
  320. </view>
  321. </view>
  322. <view class="c-row" v-else>
  323. <view class="title">蛋白</view>
  324. <view class="con-list">
  325. <MyNumberInput :myvalue="gridList.protein" :Isedit="Isedit" :IsShow="MykeywordShow"
  326. :myevent="'protein'"
  327. @setValue="mykeywordset" v-if="InputEvent=='protein'"
  328. @Cancelword="Cancelword"
  329. @goNext="goNext('protein')"></MyNumberInput>
  330. <input v-else @click="SetInputKey('protein')" :disabled='flag==1' type="digit" v-model='gridList.protein' placeholder="请输入蛋白"
  331. name="input" @input="obtainPrice"></input>
  332. <MyNumberInput :myvalue="gridList.reProtein" :Isedit="Isedit" :IsShow="MykeywordShow"
  333. :myevent="'reProtein'"
  334. @setValue="mykeywordset" v-if="InputEvent=='reProtein'"
  335. @Cancelword="Cancelword"
  336. @goNext="goNext('reProtein')"></MyNumberInput>
  337. <input @click="SetInputKey('reProtein')" v-if="flag==1&&InputEvent!='reProtein'||flag==2&&InputEvent!='reProtein'" type="digit" v-model='gridList.reProtein' placeholder="请输入蛋白"
  338. name="input"></input>
  339. </view>
  340. </view>
  341. <view class="c-row " v-if='gridList.goodsName!="大豆"'>
  342. <view class="title">不完善粒(%)</view>
  343. <view class="con-list">
  344. <MyNumberInput :myvalue="gridList.imperfectGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  345. :myevent="'imperfectGrain'"
  346. @setValue="mykeywordset" v-if="InputEvent=='imperfectGrain'"
  347. @Cancelword="Cancelword"
  348. @goNext="goNext('imperfectGrain')"></MyNumberInput>
  349. <input v-else @click="SetInputKey('imperfectGrain')" :disabled='flag==1' type="digit" v-model='gridList.imperfectGrain' placeholder="请输入不完整粒占比"
  350. name="input"></input>
  351. <MyNumberInput :myvalue="gridList.reImperfectGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  352. :myevent="'reImperfectGrain'"
  353. @setValue="mykeywordset" v-if="InputEvent=='reImperfectGrain'"
  354. @Cancelword="Cancelword"
  355. @goNext="goNext('reImperfectGrain')"></MyNumberInput>
  356. <input @click="SetInputKey('reImperfectGrain')" v-if="flag==1&&InputEvent!='reImperfectGrain'||flag==2&&InputEvent!='reImperfectGrain'" type="digit" v-model='gridList.reImperfectGrain' placeholder="请输入不完整粒占比"
  357. name="input"></input>
  358. </view>
  359. </view>
  360. <view class="c-row" v-else>
  361. <view class="title">完整粒率(%)</view>
  362. <view class="con-list">
  363. <MyNumberInput :myvalue="gridList.completeGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  364. :myevent="'completeGrain'"
  365. @setValue="mykeywordset" v-if="InputEvent=='completeGrain'"
  366. @Cancelword="Cancelword"
  367. @goNext="goNext('completeGrain')"></MyNumberInput>
  368. <input v-else @click="SetInputKey('completeGrain')" :disabled='flag==1' type="digit" v-model='gridList.completeGrain' placeholder="请输入完整粒率占比"
  369. name="input"></input>
  370. <MyNumberInput :myvalue="gridList.reCompleteGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  371. :myevent="'reCompleteGrain'"
  372. @setValue="mykeywordset" v-if="InputEvent=='reCompleteGrain'"
  373. @Cancelword="Cancelword"
  374. @goNext="goNext('reCompleteGrain')"></MyNumberInput>
  375. <input @click="SetInputKey('reCompleteGrain')" v-if="flag==1&&InputEvent!='reCompleteGrain'||flag==2&&InputEvent!='reCompleteGrain'" type="digit" v-model='gridList.reCompleteGrain' placeholder="请输入完整粒率占比"
  376. name="input"></input>
  377. </view>
  378. </view>
  379. <view class="c-row ">
  380. <view class="title">杂质(%)</view>
  381. <view class="con-list">
  382. <MyNumberInput :myvalue="gridList.impurity" :Isedit="Isedit" :IsShow="MykeywordShow"
  383. :myevent="'impurity'"
  384. @setValue="mykeywordset" v-if="InputEvent=='impurity'"
  385. @Cancelword="Cancelword"
  386. @goNext="goNext('impurity')"></MyNumberInput>
  387. <input v-else @click="SetInputKey('impurity')" :disabled='flag==1' type="digit" v-model='gridList.impurity' placeholder="请输入杂质占比"
  388. name="input"></input>
  389. <MyNumberInput :myvalue="gridList.reImpurity" :Isedit="Isedit" :IsShow="MykeywordShow"
  390. :myevent="'reImpurity'"
  391. @setValue="mykeywordset" v-if="InputEvent=='reImpurity'"
  392. @Cancelword="Cancelword"
  393. @goNext="goNext('reImpurity')"></MyNumberInput>
  394. <input @click="SetInputKey('reImpurity')" v-if="flag==1&&InputEvent!='reImpurity'||flag==2&&InputEvent!='reImpurity'" type="digit" v-model='gridList.reImpurity' placeholder="请输入杂质占比"
  395. name="input"></input>
  396. </view>
  397. </view>
  398. <view class="c-row ">
  399. <view class="title">霉变粒(%)</view>
  400. <view class="con-list">
  401. <MyNumberInput :myvalue="gridList.mildewGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  402. :myevent="'mildewGrain'"
  403. @setValue="mykeywordset" v-if="InputEvent=='mildewGrain'"
  404. @Cancelword="Cancelword"
  405. @goNext="goNext('mildewGrain')"></MyNumberInput>
  406. <input v-else @click="SetInputKey('mildewGrain')" :disabled='flag==1' type="digit" v-model='gridList.mildewGrain' placeholder="请输入霉变粒占比"
  407. name="input"></input>
  408. <MyNumberInput :myvalue="gridList.reMildewGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  409. :myevent="'reMildewGrain'"
  410. @setValue="mykeywordset" v-if="InputEvent=='reMildewGrain'"
  411. @Cancelword="Cancelword"
  412. @goNext="goNext('reMildewGrain')"></MyNumberInput>
  413. <input @click="SetInputKey('reMildewGrain')" v-if="flag==1&&InputEvent!='reMildewGrain'||flag==2&&InputEvent!='reMildewGrain'" type="digit" v-model='gridList.reMildewGrain' placeholder="请输入霉变粒占比"
  414. name="input"></input>
  415. </view>
  416. </view>
  417. <view class="c-row ">
  418. <view class="title">热损伤(%)</view>
  419. <view class="con-list">
  420. <MyNumberInput :myvalue="gridList.jiaorenli" :Isedit="Isedit" :IsShow="MykeywordShow"
  421. :myevent="'jiaorenli'"
  422. @setValue="mykeywordset" v-if="InputEvent=='jiaorenli'"
  423. @Cancelword="Cancelword"
  424. @goNext="goNext('jiaorenli')"></MyNumberInput>
  425. <input v-else @click="SetInputKey('jiaorenli')" :disabled='flag==1' type="digit" v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
  426. name="input"></input>
  427. <MyNumberInput :myvalue="gridList.reJiaorenli" :Isedit="Isedit" :IsShow="MykeywordShow"
  428. :myevent="'reJiaorenli'"
  429. @setValue="mykeywordset" v-if="InputEvent=='reJiaorenli'"
  430. @Cancelword="Cancelword"
  431. @goNext="goNext('reJiaorenli')"></MyNumberInput>
  432. <input @click="SetInputKey('reJiaorenli')" v-if="flag==1&&InputEvent!='reJiaorenli'||flag==2&&InputEvent!='reJiaorenli'" type="digit" v-model='gridList.reJiaorenli' placeholder="请输入热损伤占比"
  433. name="input"></input>
  434. <!-- <input v-model='gridList.jiaorenli' @click.stop="handleShowKeyboard1":disabled="true" placeholder="请输入热损伤占比" name="input"></input> -->
  435. </view>
  436. </view>
  437. <view class="c-row" v-if="gridList.goodsName == '大豆'">
  438. <view class="title">转基因</view>
  439. <view class="con-list">
  440. <view @click="transgeneShow=true">{{gridList.transgene}}</view>
  441. <!-- 转基因 -->
  442. <u-picker :range="transgeneList" range-key="value" @confirm='transgeneClick($event)' v-model="transgeneShow"
  443. mode="selector">
  444. </u-picker>
  445. <view @click="transgeneShow=true">{{gridList.reTransgene?gridList.reTransgene:"请选择是否转基因"}}</view>
  446. <!-- 转基因 -->
  447. <u-picker :range="transgeneList" range-key="value" @confirm='transgeneClick1($event)' v-model="transgeneShow"
  448. mode="selector">
  449. </u-picker>
  450. </view>
  451. </view>
  452. <view class="c-row" v-if="gridList.goodsName == '大豆'">
  453. <view class="title">色泽/气味</view>
  454. <view class="con-list">
  455. <div >{{gridList.colorLustre}}</div>
  456. <u-picker :range="colorLustreList" range-key="value" @confirm='colorLustreClick($event)' v-model="colorLustreShow"
  457. mode="selector">
  458. </u-picker>
  459. <div @click="colorLustreShow = true">{{gridList.reColorLustre?gridList.reColorLustre:"请选择色泽/气味是否正常"}}</div>
  460. <u-picker :range="colorLustreList" range-key="value" @confirm='colorLustreClick1($event)' v-model="colorLustreShow"
  461. mode="selector">
  462. </u-picker>
  463. </view>
  464. </view>
  465. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  466. class="c-row">
  467. <view class="title">水分增价(元/吨)</view>
  468. <view class="con-list">
  469. <input v-model='gridList.waterPriceIncrease' @focus="pricefocus($event,1)" @blur="priceblur($event,1)" @input='deductionchange'
  470. placeholder="请输入水分增价" name="input" type="digit"></input>
  471. </view>
  472. </view>
  473. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  474. class="c-row">
  475. <view class="title">水分扣价(元/吨)</view>
  476. <view class="con-list">
  477. <input v-model='gridList.waterPriceDeduction' @focus="pricefocus($event,2)" @blur="priceblur($event,2)" @input='deductionchange'
  478. placeholder="请输入水分扣价" name="input" type="digit"></input>
  479. </view>
  480. </view>
  481. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  482. class="c-row">
  483. <view class="title">质量增价(元/吨)</view>
  484. <view class="con-list">
  485. <input v-model='gridList.qualityPriceIncrease' @focus="pricefocus($event,3)" @blur="priceblur($event,3)" @input='deductionchange'
  486. placeholder="请输入质量增价" name="input" type="digit"></input>
  487. </view>
  488. </view>
  489. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  490. class="c-row">
  491. <view class="title">质量扣价(元/吨)</view>
  492. <view class="con-list">
  493. <input v-model='gridList.qualityPriceDeduction' @focus="pricefocus($event,4)" @blur="priceblur($event,4)" @input='deductionchange'
  494. placeholder="请输入质量扣价" name="input" type="digit"></input>
  495. </view>
  496. </view>
  497. <view v-if="gridList.type == '潮粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
  498. <view class="title">净重单价(元/公斤)</view>
  499. <view class="con-list">
  500. <input :disabled='flag==1&&pricedisabled' v-model='gridList.tidalGrainPrice' @blur='inputprice' placeholder="自动获取,不可编辑"
  501. name="input"></input>
  502. </view>
  503. <!-- <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button> -->
  504. </view>
  505. <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
  506. <view class="title">干粮单价(元/公斤)</view>
  507. <view class="con-list">
  508. <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
  509. </view>
  510. <!-- <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button> -->
  511. </view>
  512. <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==1&&flag!=3" class="c-row">
  513. <view class="title">干粮单价(元/公斤)</view>
  514. <view class="con-list">
  515. <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
  516. </view>
  517. </view>
  518. </view>
  519. </view>
  520. <view class="footer">
  521. <view v-if='flag==1' @click='confirmInfo' class="button">确认初检信息</view>
  522. <view @click='submit' class="button">提交</view>
  523. </view>
  524. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  525. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  526. :showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
  527. <u-popup v-model="isShowPrint" class="popup" @close="close" mode="bottom" border-radius="30" :closeable="true">
  528. <view class="buns_item">
  529. <view class="but_css" @click="print">打印小票</view>
  530. <view class="but_css" @click="close">返回</view>
  531. </view>
  532. </u-popup>
  533. <u-picker :range="warehouseList" range-key="binNumber" @confirm='binNumberpicker($event)'
  534. v-model="show" mode="selector">
  535. </u-picker>
  536. </view>
  537. </template>
  538. <script>
  539. const Equ_List=['waterContent','bulkDensity','imperfectGrain','impurity','mildewGrain','jiaorenli'];
  540. const Equ_List1=['reWaterContent','reBulkDensity','reImperfectGrain','reImpurity','reMildewGrain','reJiaorenli'];
  541. import dragButton from "@/components/drag-button/drag-button.vue";
  542. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  543. import MyNumberInput from "@/components/MyNumberInput.vue";
  544. import {
  545. mapState
  546. } from 'vuex';
  547. let startY = 0,
  548. moveY = 0,
  549. pageAtTop = true;
  550. export default {
  551. components: {
  552. dragButton,
  553. keyboard,
  554. MyNumberInput
  555. },
  556. data() {
  557. return {
  558. isShowPrint: false,
  559. inputShow: false,
  560. modalName: '',
  561. mycarStyle: '',
  562. feild: undefined,
  563. id: 0,
  564. show: false,
  565. show2:false,
  566. show4:false,
  567. show5:false,
  568. show7:false,
  569. show8:false,
  570. pricedisabled:false,
  571. multiSelector1:[{name:'他运',value:'他运'}],
  572. outType:'',
  573. selector: [],
  574. show1: false,
  575. pricetext:'锁定',
  576. goodsName: false,
  577. carstatus: false,
  578. params:{year: true,
  579. month: true,
  580. day: true,},
  581. inputContent: '',
  582. multiSelector: [{
  583. name: '汽运',
  584. value: '0',
  585. },
  586. {
  587. name: '火运',
  588. value: '1',
  589. },
  590. {
  591. name: '集装箱船',
  592. value: '2',
  593. },
  594. {
  595. name: '散船',
  596. value: '3',
  597. },
  598. ],
  599. coverTransform: 'translateY(0px)',
  600. coverTransition: '0s',
  601. moving: false,
  602. footprintList: [],
  603. zjid:'',
  604. searchKeyWord: '',
  605. isVip: false,
  606. flag: 0,
  607. freightstatus:false,
  608. coststatus:false,
  609. freighttext:'手动填写',
  610. costtext:'手动填写',
  611. userInfoTmp: [],
  612. inputStatus: 'none',
  613. carInfo: [],
  614. gridCol: 4,
  615. pageSize: 10,
  616. currentPage: 1,
  617. gridBorder: false,
  618. headUrl: "../../static/img/myimg/YongHu@3x.png",
  619. userphone: "",
  620. username: "请更改昵称",
  621. gridList: {
  622. natureOfGrainPurchase: '贸易粮',
  623. type: '潮粮',
  624. tidalGrainPrice: '',
  625. dryGrainPrice: '',
  626. carNumber: '',
  627. carModel: '',
  628. serviceManagementType:'3'
  629. },
  630. managementType: '',
  631. warehouseName: '',
  632. warehouseList: [],
  633. InputEvent:'',
  634. bottomHeight:'10rpx',
  635. MykeywordShow:false,
  636. showTran: true,
  637. companyId: 1,
  638. current: 4,
  639. value: false,
  640. carModeList: [],
  641. fleetNameList:[],
  642. gradeList: [{
  643. key: 1,
  644. value: '一等品'
  645. },
  646. {
  647. key: 2,
  648. value: '二等品'
  649. },
  650. {
  651. key: 3,
  652. value: '三等品'
  653. },
  654. {
  655. key: 4,
  656. value: '等外'
  657. },
  658. ],
  659. cangid: '',
  660. goodsList: [],
  661. taskNolist:[],
  662. dryGrainPrice:0,
  663. tidalGrainPrice:0,
  664. isShowAlert: false,
  665. content: '确认初检信息后,初检员不需要再次确认质检信息,是否确定提交?',
  666. transgeneShow:false,
  667. transgeneList:[{value:'非转基因'},{value:'转基因'}],
  668. colorLustreShow : false,
  669. colorLustreList:[{value:'正常'},{value:'异常'}]
  670. }
  671. },
  672. // #ifndef MP
  673. onNavigationBarButtonTap(e) {
  674. const index = e.index;
  675. if (index === 0) {
  676. this.navTo('/pages/set/set');
  677. } else if (index === 1) {
  678. // #ifdef APP-PLUS
  679. const pages = getCurrentPages();
  680. const page = pages[pages.length - 1];
  681. const currentWebview = page.$getAppWebview();
  682. currentWebview.hideTitleNViewButtonRedDot({
  683. index
  684. });
  685. // #endif
  686. uni.navigateTo({
  687. url: '/pages/notice/notice'
  688. })
  689. }
  690. },
  691. // #endif
  692. computed: {
  693. ...mapState(['hasLogin', 'userInfo']),
  694. // 手机号中间4位加*
  695. starUserphone() {
  696. let reg = /^(\d{3})\d{4}(\d{4})$/;
  697. if (this.userphone) {
  698. return this.userphone.replace(reg, "$1****$2");
  699. }
  700. }
  701. },
  702. onLoad(options) {
  703. this.id = options.id
  704. this.flag = options.flag
  705. this.cangid = options.cangid
  706. this.warehouseName=options.warehouseName
  707. this.managementType = options.managementType
  708. console.log(this.flag)
  709. var that = this
  710. uni.showLoading({
  711. title:"加载中"
  712. })
  713. this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
  714. id: this.id
  715. }).then(res => {
  716. uni.hideLoading()
  717. if (res.data.data) {
  718. let data = res.data.data
  719. if (data.supplementaryRecording == 1) {
  720. that.value = true
  721. } else {
  722. that.value = false
  723. }
  724. that.gridList = data
  725. if(that.gridList.type=='干粮'){
  726. if (this.gridList.goodsName &&
  727. this.gridList.bulkDensity &&
  728. this.cangid) {
  729. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  730. warehouseId: this.cangid,
  731. goodsName: this.gridList.goodsName,
  732. bulkDensity:this.gridList.bulkDensity
  733. }).then(res => {
  734. if(res.data.data != 0){
  735. this.gridList.dryGrainPrice = res.data.data
  736. this.dryGrainPrice = res.data.data
  737. this.deductionchange()
  738. }
  739. })
  740. }
  741. }else if(that.gridList.type=='潮粮'){
  742. if (
  743. this.gridList.goodsName &&
  744. this.gridList.waterContent &&
  745. this.gridList.grade
  746. ) {
  747. console.log('123123')
  748. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  749. warehouseId: this.cangid,
  750. goodsName: this.gridList.goodsName,
  751. waterContent: this.gridList.waterContent,
  752. grade: this.gridList.grade,
  753. }).then(res => {
  754. if (that.gridList.paramType == '1') {
  755. // console.log(that.gridList)
  756. if(that.gridList.buckleMiscellaneous){
  757. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  758. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  759. .dryGrainPrice)).toFixed(4)
  760. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  761. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  762. .dryGrainPrice)).toFixed(4)
  763. }
  764. if (!that.gridList.tidalGrainPrice) {
  765. that.gridList.tidalGrainPrice = ''
  766. }
  767. } else {
  768. that.gridList.tidalGrainPrice = res.data.data
  769. that.tidalGrainPrice = res.data.data
  770. }
  771. this.deductionchange()
  772. })
  773. }
  774. }
  775. // if(that.gridList.dryGrainPrice){
  776. // that.dryGrainPrice=that.gridList.dryGrainPrice
  777. // }
  778. // if(that.gridList.tidalGrainPrice){
  779. // that.tidalGrainPrice=that.gridList.tidalGrainPrice
  780. // }
  781. if(!that.gridList.reGrade){
  782. that.gridList.reGrade=that.gridList.grade
  783. }
  784. if(!that.gridList.reWaterContent){
  785. that.gridList.reWaterContent=that.gridList.waterContent
  786. }
  787. if(!that.gridList.reBulkDensity){
  788. that.gridList.reBulkDensity=that.gridList.bulkDensity
  789. }
  790. if(!that.gridList.reImperfectGrain){
  791. that.gridList.reImperfectGrain=that.gridList.imperfectGrain
  792. }
  793. if(!that.gridList.reImpurity){
  794. that.gridList.reImpurity=that.gridList.impurity
  795. }
  796. if(!that.gridList.reMildewGrain){
  797. that.gridList.reMildewGrain=that.gridList.mildewGrain
  798. }
  799. if(!that.gridList.reJiaorenli){
  800. that.gridList.reJiaorenli=that.gridList.jiaorenli
  801. }
  802. if(this.gridList.outType&&this.gridList.serviceManagementType==3){
  803. this.outType=this.gridList.outType
  804. }
  805. that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
  806. id: this.cangid
  807. }).then(res => {
  808. that.warehouseList = res.data.data.warehousePositionInfoList
  809. })
  810. //质检货名下拉
  811. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  812. warehouseId: this.cangid
  813. }).then(res => {
  814. if (res.data.data) {
  815. that.goodsList = res.data.data
  816. if (that.goodsList.length > 0) {
  817. if(!that.gridList.goodsName){
  818. that.gridList.goodsName = that.goodsList[0].goodsName
  819. }
  820. uni.setStorageSync('purchasePriceList', that.goodsList)
  821. that.purchasePriceList = uni.getStorageSync('purchasePriceList')
  822. }
  823. }
  824. else if(res.data.code != 200 && that.gridList.serviceManagementType==3){
  825. uni.showModal({
  826. content:res.data.message,
  827. showCancel:false
  828. })
  829. }
  830. })
  831. }
  832. })
  833. this.$api.doRequest('get', 'commonSysParameter/getInfo', {
  834. constId: 'QUA1'
  835. }).then(res => {
  836. if (res.data.data) {
  837. that.carModeList = res.data.data
  838. }
  839. })
  840. this.gridList.grade = this.gradeList[2].value
  841. this.gridList.gradeKey = this.gradeList[2].key
  842. },
  843. onShow() {
  844. this.multiSelector1=[{name:'他运',value:'他运'}]
  845. this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
  846. warehouseName:this.warehouseName
  847. }).then(res => {
  848. // console.log(res)
  849. if(res.data.data.contractManagementInfoList){
  850. for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
  851. res.data.data.contractMangementInfoList[i].name='自运 ('+
  852. res.data.data.contractMangementInfoList[i].contractNo+' '+res.data.data.contractMangementInfoList[i].seller+')'
  853. this.multiSelector1.push(res.data.data.contractManagementInfoList[i])
  854. }
  855. }else{
  856. this.multiSelector1=[{name:'他运',value:'他运'}]
  857. }
  858. // this.taskNolist=res.data.data
  859. })
  860. // uni.showLoading({title: '加载中'})
  861. // this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  862. // flag: 2,
  863. // warehouseName:this.warehouseName
  864. // }).then(res => {
  865. // console.log(res)
  866. // uni.hideLoading();
  867. // this.taskNolist=res.data.data
  868. // })
  869. let _kh = uni.getStorageSync('isClick')
  870. if (uni.getStorageSync('checkcustomer') && _kh) {
  871. let _customerInfo = uni.getStorageSync('checkcustomer')
  872. if (_customerInfo.shipperName) {
  873. this.gridList.identityId = _customerInfo.id
  874. //点击登记客户
  875. this.gridList.customerName = _customerInfo.shipperName
  876. this.gridList.customerPhone = _customerInfo.shipperPhone
  877. this.gridList.carNumber = _customerInfo.carNo
  878. } else {
  879. //点击搜索客户
  880. this.gridList.customerName = _customerInfo.customerName
  881. this.gridList.customerPhone = _customerInfo.customerPhone
  882. }
  883. this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  884. }
  885. },
  886. methods: {
  887. colorLustreClick(e){
  888. this.gridList.colorLustre = this.colorLustreList[e[0]].value
  889. },
  890. colorLustreClick1(e){
  891. this.gridList.reColorLustre = this.colorLustreList[e[0]].value
  892. },
  893. transgeneClick(e){
  894. this.gridList.transgene = this.transgeneList[e[0]].value
  895. },
  896. transgeneClick1(e){
  897. this.gridList.reTransgene = this.transgeneList[e[0]].value
  898. },
  899. Cancelword(){
  900. this.bottomHeight = '10rpx';
  901. this.MykeywordShow =false;
  902. this.InputEvent = '';
  903. },
  904. goNext(val){
  905. if(this.flag==0||this.flag==3||this.flag==4){
  906. var inputList = Equ_List;
  907. }else{
  908. var inputList = Equ_List1;
  909. }
  910. var index = inputList.indexOf(val);
  911. this.setScrollTops(val);
  912. if(index<inputList.length-1){
  913. this.InputEvent = inputList[index+1];
  914. }else{
  915. this.InputEvent=''
  916. this.bottomHeight = '10rpx';
  917. this.MykeywordShow = false;
  918. }
  919. },
  920. mykeywordset(datatxt){
  921. var arr = JSON.parse(datatxt);
  922. this.gridList[arr.even] = arr.value;
  923. if(arr.even=='waterContent'){
  924. this.waterContentChange()
  925. }else if(arr.even=='bulkDensity'){
  926. this.obtainPrice()
  927. }
  928. },
  929. SetInputKey(even){
  930. uni.hideKeyboard();
  931. this.InputEvent = even;
  932. this.setScrollTops(even);
  933. if(!this.MykeywordShow){
  934. this.bottomHeight = '320rpx';
  935. this.MykeywordShow = true;
  936. }
  937. },
  938. setScrollTops(even){
  939. if(this.flag==0||this.flag==3||this.flag==4){
  940. var inputList = Equ_List;
  941. }else{
  942. var inputList = Equ_List1;
  943. }
  944. var index = inputList.indexOf(even);
  945. this.viewTop = (index + 1) * 60 + 100;
  946. },
  947. pricefocus(e,status){
  948. console.log(e)
  949. if(status==1){
  950. if(e.detail.value==0){
  951. this.gridList.waterPriceIncrease=''
  952. }
  953. }else if(status==2){
  954. if(e.detail.value==0){
  955. this.gridList.waterPriceDeduction=''
  956. }
  957. }else if(status==3){
  958. if(e.detail.value==0){
  959. this.gridList.qualityPriceIncrease=''
  960. }
  961. }else if(status==4){
  962. if(e.detail.value==0){
  963. this.gridList.qualityPriceDeduction=''
  964. }
  965. }
  966. },
  967. priceblur(e,status){
  968. console.log(e)
  969. if(status==1){
  970. if(e.detail.value==''){
  971. this.gridList.waterPriceIncrease=0
  972. }
  973. }else if(status==2){
  974. if(e.detail.value==''){
  975. this.gridList.waterPriceDeduction=0
  976. }
  977. }else if(status==3){
  978. if(e.detail.value==''){
  979. this.gridList.qualityPriceIncrease=0
  980. }
  981. }else if(status==4){
  982. if(e.detail.value==''){
  983. this.gridList.qualityPriceDeduction=0
  984. }
  985. }
  986. },
  987. deductionchange(){
  988. console.log(this.gridList.type,this.tidalGrainPrice,
  989. Number(this.tidalGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(4))
  990. if(this.gridList.type=='干粮'){
  991. if(this.dryGrainPrice!=''){
  992. console.log(Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)),Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(2))
  993. this.gridList.dryGrainPrice=Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(4)
  994. }
  995. }else if(this.gridList.type=='潮粮'){
  996. if(this.tidalGrainPrice!=''){
  997. this.gridList.tidalGrainPrice=Number(this.tidalGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(4)
  998. }
  999. }
  1000. this.$forceUpdate()
  1001. },
  1002. obtainPrice(){//根据容重获取价格
  1003. if (this.gridList.goodsName && this.cangid && this.gridList.bulkDensity) {
  1004. // if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1005. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1006. warehouseId: this.cangid,
  1007. goodsName: this.gridList.goodsName,
  1008. bulkDensity:this.gridList.bulkDensity
  1009. }).then(res => {
  1010. if(res.data.data != 0){
  1011. this.gridList.dryGrainPrice = res.data.data
  1012. this.dryGrainPrice = res.data.data
  1013. this.gridList.waterPriceIncrease=0
  1014. this.gridList.waterPriceDeduction=0
  1015. this.gridList.qualityPriceIncrease=0
  1016. this.gridList.qualityPriceDeduction=0
  1017. }
  1018. })
  1019. // }
  1020. }
  1021. },
  1022. changeprice(){
  1023. if(this.pricetext=='解锁'){
  1024. this.pricedisabled=false
  1025. this.pricetext='锁定'
  1026. }else{
  1027. this.pricedisabled=true
  1028. this.pricetext='解锁'
  1029. }
  1030. },
  1031. inputprice(){
  1032. if(this.pricetext=='锁定'){
  1033. this.pricedisabled=true
  1034. this.pricetext='解锁'
  1035. }
  1036. },
  1037. inOutDatepicker(e){
  1038. this.gridList.inOutDate=e.year+'-'+e.month+'-'+e.day
  1039. console.log(e)
  1040. },
  1041. fleetpicker(e){
  1042. this.gridList.fleet=this.fleetNameList[e[0]].fleetName
  1043. },
  1044. changefreight(){
  1045. this.freightstatus=!this.freightstatus
  1046. if(this.freightstatus){
  1047. this.freighttext='自动获取'
  1048. }else{
  1049. this.freighttext='手动填写'
  1050. }
  1051. },
  1052. changecost(){
  1053. this.coststatus=!this.coststatus
  1054. if(this.coststatus){
  1055. this.costtext='自动获取'
  1056. }else{
  1057. this.costtext='手动填写'
  1058. }
  1059. },
  1060. gocustomer() {
  1061. uni.navigateTo({
  1062. url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList
  1063. .warehouseName + '&goodsName=' + this.gridList.goodsName + '&status=edit'
  1064. })
  1065. },
  1066. print() {
  1067. uni.navigateTo({
  1068. url: '/pages/erpbusiness/bleConnect'
  1069. })
  1070. },
  1071. close() {
  1072. this.isShowPrint = false
  1073. uni.navigateBack({})
  1074. },
  1075. // focusConfig(type){
  1076. // console.log('childclick',type)
  1077. // // 0是上一项
  1078. // if(type==0){
  1079. // }else{}
  1080. // },
  1081. hidden() {
  1082. this.$refs.keyboard.open(false)
  1083. },
  1084. carPicker(e) {
  1085. this.gridList.carModel = this.carModeList[e[0]].constValue
  1086. },
  1087. handleShowKeyboard() {
  1088. if (this.flag == 0) {
  1089. if (this.$refs.keyboard.open) {
  1090. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  1091. } else {
  1092. this.$refs.keyboard[0].open(true)
  1093. }
  1094. }
  1095. },
  1096. handleShowKeyboard1() {
  1097. if (this.flag == 0) {
  1098. if (this.$refs.keyboard1.open) {
  1099. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  1100. } else {
  1101. this.$refs.keyboard1[0].open(true)
  1102. }
  1103. }
  1104. },
  1105. handleClick(e) {
  1106. this.gridList.carNumber = e.value //键盘输入值
  1107. },
  1108. handleClick1(e) {
  1109. this.gridList.jiaorenli = e.value //键盘输入值
  1110. },
  1111. change(e) {
  1112. if (e) {
  1113. this.gridList.supplementaryRecording = 1
  1114. } else {
  1115. this.gridList.supplementaryRecording = 0
  1116. }
  1117. },
  1118. confirmInfo() {
  1119. this.isShowAlert = true
  1120. },
  1121. alertBtn() {
  1122. this.gridList.agent=this.userInfo.userName;
  1123. var that = this
  1124. that.gridList.reWaterContent = that.gridList.waterContent
  1125. if (that.gridList.buckleMiscellaneous) {
  1126. that.gridList.reBuckleMiscellaneous = that.gridList.buckleMiscellaneous
  1127. }
  1128. that.gridList.flag = 1
  1129. if(this.flag==3){
  1130. this.gridList.statusFlag=7
  1131. }else if(this.flag==4||this.flag==0){
  1132. this.gridList.statusFlag=0
  1133. }
  1134. else if(this.flag==1){
  1135. this.gridList.statusFlag=1
  1136. }else if(this.flag==2){
  1137. this.gridList.statusFlag=2
  1138. }
  1139. this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', that.gridList).then(
  1140. res => {
  1141. if (res.data.code == "200") {
  1142. that.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', {
  1143. id: that.gridList.id,
  1144. flag: 2
  1145. }).then(res => {
  1146. if (res.data.code == "200") {
  1147. that.$api.msg('提交成功!')
  1148. setTimeout(function() {
  1149. uni.navigateBack({delta:Int16Array})
  1150. }, 1000)
  1151. } else {
  1152. that.$api.msg('提交失败')
  1153. }
  1154. })
  1155. } else {
  1156. that.$api.msg('提交失败')
  1157. }
  1158. })
  1159. },
  1160. waterContentChange() {
  1161. var that = this
  1162. if (this.gridList.goodsName) {
  1163. for (var i = 0; i < this.purchasePriceList.length; i++) {
  1164. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  1165. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  1166. this.gridList.paramType = this.purchasePriceList[i].paramType
  1167. }
  1168. }
  1169. }
  1170. console.log(this.gridList.serviceManagementType)
  1171. // debugger
  1172. if(this.gridList.serviceManagementType != 3){ //非收购入库 不需在获取价格
  1173. return
  1174. }
  1175. if (this.gridList.goodsName && this.cangid) {
  1176. if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1177. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1178. warehouseId: this.cangid,
  1179. goodsName: this.gridList.goodsName
  1180. }).then(res => {
  1181. that.gridList.dryGrainPrice = res.data.data
  1182. that.dryGrainPrice = res.data.data
  1183. })
  1184. }
  1185. }
  1186. that.gridList.waterPriceIncrease=0
  1187. that.gridList.waterPriceDeduction=0
  1188. that.gridList.qualityPriceIncrease=0
  1189. that.gridList.qualityPriceDeduction=0
  1190. //潮粮单价改变事件
  1191. if (
  1192. this.gridList.goodsName &&
  1193. this.gridList.waterContent &&
  1194. this.gridList.grade
  1195. ) {
  1196. console.log('123123')
  1197. uni.showLoading({
  1198. title:"加载中"
  1199. })
  1200. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1201. warehouseId: this.cangid,
  1202. goodsName: this.gridList.goodsName,
  1203. waterContent: this.gridList.waterContent,
  1204. grade: this.gridList.grade,
  1205. }).then(res => {
  1206. if (that.gridList.paramType == '1') {
  1207. // console.log(that.gridList)
  1208. if(that.gridList.buckleMiscellaneous){
  1209. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1210. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1211. .dryGrainPrice)).toFixed(4)
  1212. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1213. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1214. .dryGrainPrice)).toFixed(4)
  1215. }
  1216. if (!that.gridList.tidalGrainPrice) {
  1217. that.gridList.tidalGrainPrice = ''
  1218. }
  1219. if(that.gridList.type == '干粮'){
  1220. that.gridList.dryGrainPrice = res.data.data
  1221. that.dryGrainPrice = that.gridList.dryGrainPrice
  1222. }
  1223. } else {
  1224. that.gridList.tidalGrainPrice = res.data.data
  1225. if(that.gridList.type == '干粮'){
  1226. that.gridList.dryGrainPrice = res.data.data
  1227. that.dryGrainPrice = that.gridList.dryGrainPrice
  1228. }else{
  1229. that.gridList.tidalGrainPrice = res.data.data
  1230. that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1231. }
  1232. }
  1233. // that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1234. uni.hideLoading()
  1235. })
  1236. }
  1237. },
  1238. goodsPicker(e) {
  1239. this.gridList.goodsName = this.goodsList[e[0]].goodsName
  1240. },
  1241. submit() {
  1242. this.$delete(this.gridList,'status')
  1243. this.gridList.agent=this.userInfo.userName;
  1244. this.gridList.waterContent = Number(this.gridList.waterContent)
  1245. // if(!this.$u.test.isEmpty(this.gridList.tidalGrainPrice)){
  1246. // this.gridList.tidalGrainPrice=''
  1247. // return
  1248. // }
  1249. if(this.flag==3){
  1250. this.gridList.statusFlag=7
  1251. }else if(this.flag==4||this.flag==0){
  1252. this.gridList.statusFlag=0
  1253. }
  1254. else if(this.flag==1){
  1255. this.gridList.statusFlag=1
  1256. }else if(this.flag==2){
  1257. this.gridList.statusFlag=2
  1258. }
  1259. if(this.gridList.serviceManagementType==3){
  1260. if(this.outType){
  1261. this.gridList.outType=this.outType
  1262. }
  1263. }else{
  1264. this.gridList.customerName = ''
  1265. }
  1266. var text=''
  1267. if(this.utils.getCurrectRoles('acquisitionQuality.qview')&&!this.utils.getCurrectRoles('acquisitionQuality.initial')){
  1268. text="确定提交钎样信息?"
  1269. if(this.flag==3||this.flag==4||this.flag==0){
  1270. this.gridList.brazer=1
  1271. }
  1272. }else{
  1273. text="确定提交质检信息?"
  1274. if(this.flag==3||this.flag==4||this.flag==0){
  1275. this.gridList.brazer=0
  1276. }
  1277. }
  1278. if(this.flag==4){
  1279. this.gridList.flag = 0
  1280. }else{
  1281. this.gridList.flag = this.flag
  1282. }
  1283. // if(this.flag==2){
  1284. // this.gridList.reInspector=this.userInfo.userName
  1285. // }
  1286. if (!this.gridList.qualityNo) {
  1287. this.$api.msg('编号不能为空')
  1288. return
  1289. }
  1290. var that = this
  1291. if(this.flag==4||this.flag==0){
  1292. if (!this.gridList.binNumber) {
  1293. this.$api.msg('仓位不能为空')
  1294. return
  1295. }
  1296. }
  1297. if(this.gridList.serviceManagementType==3){
  1298. if (!this.gridList.customerName) {
  1299. this.$api.msg('客户不能为空')
  1300. return
  1301. }
  1302. }
  1303. // if (!this.gridList.storageTagNo) {
  1304. // this.$api.msg('囤位号不能为空')
  1305. // return
  1306. // }
  1307. // if (this.gridList.storageTagNo.length > 10) {
  1308. // this.$api.msg('囤位号不能为空')
  1309. // return
  1310. // }
  1311. if (!this.gridList.carNumber) {
  1312. this.$api.msg('车牌号不能为空')
  1313. return
  1314. }
  1315. if (this.gridList.carNumber.length > 7) {
  1316. this.$api.msg('车牌号输入错误')
  1317. return
  1318. }
  1319. if (!this.gridList.goodsName) {
  1320. this.$api.msg('货名不能为空')
  1321. return
  1322. }
  1323. if (this.gridList.paramType != 1 && this.gridList.buckleWeightRatio < 0 || this.gridList.paramType != 1 &&
  1324. this.gridList.buckleWeightRatio > 2) {
  1325. this.$api.msg('扣重比输入错误')
  1326. return
  1327. }
  1328. if (
  1329. this.gridList.paramType != 1 && String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
  1330. String(this.gridList.buckleWeightRatio).length -
  1331. (String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2) {
  1332. this.$api.msg('扣重比输入错误')
  1333. return
  1334. }
  1335. if (this.flag == 0 && this.gridList.paramType == 1 && this.gridList.buckleMiscellaneous < 0 || this.flag ==
  1336. 0 && this.gridList.paramType == 1 && this.gridList.buckleMiscellaneous > 50) {
  1337. this.$api.msg('初检扣杂输入错误')
  1338. return
  1339. }
  1340. if (this.flag == 1 && this.gridList.paramType == 1 && this.gridList.reBuckleMiscellaneous < 0 || this
  1341. .flag == 0 && this.gridList.paramType == 1 && this.gridList.reBuckleMiscellaneous > 50) {
  1342. this.$api.msg('复检扣杂输入错误')
  1343. return
  1344. }
  1345. if (!this.gridList.type) {
  1346. this.$api.msg('类型不能为空')
  1347. return
  1348. }
  1349. if (this.value == false&&this.flag!=3 || this.flag == 2) {
  1350. if (!this.gridList.grade) {
  1351. this.$api.msg('等级不能为空')
  1352. return
  1353. }
  1354. if (!this.gridList.impurity) {
  1355. this.$api.msg('杂质不能为空')
  1356. return
  1357. }
  1358. debugger
  1359. console.log(this.gridList.waterContent)
  1360. console.log(Number(this.gridList.waterContent))
  1361. if (!this.gridList.waterContent) {
  1362. this.$api.msg('初检水分不能为空')
  1363. return
  1364. }
  1365. // if (!this.gridList.reWaterContent) {
  1366. // this.$api.msg('复检水分不能为空')
  1367. // return
  1368. // }
  1369. if (!this.gridList.mildewGrain) {
  1370. this.$api.msg('霉变粒不能为空')
  1371. return
  1372. }
  1373. if(this.gridList.goodsName!="大豆"){
  1374. if (!this.gridList.bulkDensity) {
  1375. this.$api.msg('容重不能为空')
  1376. return
  1377. }
  1378. }
  1379. if (!this.gridList.jiaorenli) {
  1380. this.$api.msg('热损伤不能为空')
  1381. return
  1382. }
  1383. if (!this.gridList.imperfectGrain) {
  1384. this.$api.msg('不完整粒不能为空')
  1385. return
  1386. }
  1387. }
  1388. this.gridList.storageNumber = this.gridList.storageTagNo
  1389. var kid=JSON.parse(JSON.stringify(this.gridList.warehouseInOutId))
  1390. this.zjid=JSON.parse(JSON.stringify(this.gridList.id))
  1391. that.gridList.warehouseInOutDetail={
  1392. id:that.gridList.warehouseInOutDetailId,
  1393. grade:that.gridList.grade,
  1394. reGrade:that.gridList.grade,
  1395. waterContent:that.gridList.waterContent,
  1396. reWaterContent:that.gridList.reWaterContent,
  1397. imperfectGrain:that.gridList.imperfectGrain,
  1398. reImperfectGrain:that.gridList.reImperfectGrain,
  1399. impurity:that.gridList.impurity,
  1400. reImpurity:that.gridList.reImpurity,
  1401. jiaorenli:that.gridList.jiaorenli,
  1402. reJiaorenli:that.gridList.reJiaorenli,
  1403. bulkDensity:that.gridList.bulkDensity,
  1404. reBulkDensity:that.gridList.reBulkDensity,
  1405. mildewGrain:that.gridList.mildewGrain,
  1406. reMildewGrain:that.gridList.reMildewGrain,
  1407. }
  1408. console.log(this.gridList)
  1409. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  1410. warehouseId: this.cangid
  1411. }).then(res => {
  1412. if(res.data.code != 200 && that.gridList.serviceManagementType==3){
  1413. uni.showModal({
  1414. content:res.data.message,
  1415. showCancel:false
  1416. })
  1417. return;
  1418. }
  1419. else{
  1420. uni.showModal({
  1421. content: text,
  1422. showCancel: true,
  1423. confirmText: '提交',
  1424. success: function(res) {
  1425. if (res.confirm) {
  1426. that.$api.doRequest('post',
  1427. '/qualityInspectionManagement/api/editQualityInspection', that.gridList)
  1428. .then(res => {
  1429. uni.setStorageSync("quality_print", that.gridList)
  1430. // that.gridList.id=kid
  1431. // that.gridList.statusFlag=1
  1432. // that.$api.doRequest('post',
  1433. // '/warehouseInOutInfo/InOutWarehouse',
  1434. // that.gridList)
  1435. // .then(res => {
  1436. if (res.data.code == 200) {
  1437. that.$api.msg('编辑质检成功')
  1438. that.gridList.warehouseId = that.cangid
  1439. uni.setStorageSync('checkcustomer',{})
  1440. console.log('that.gridList', that.gridList)
  1441. if(that.utils.getCurrectRoles('acquisitionQuality.initial')){
  1442. that.isShowPrint = true
  1443. }else{
  1444. uni.navigateBack({delta:1})
  1445. }
  1446. // uni.getStorageSync("depotAcquisition_warehouseName")
  1447. // uni.navigateBack({})
  1448. }
  1449. // })
  1450. })
  1451. }
  1452. }
  1453. })
  1454. }
  1455. })
  1456. },
  1457. gradepicker(e) {
  1458. console.log(e)
  1459. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1460. this.gridList.grade = this.gradeList[e[0]].value
  1461. this.gridList.gradeKey = this.gradeList[e[0]].key
  1462. this.waterContentChange()
  1463. },
  1464. gradepicker1(e) {
  1465. console.log(e)
  1466. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1467. this.gridList.reGrade = this.gradeList[e[0]].value
  1468. this.gridList.reGradeKey = this.gradeList[e[0]].key
  1469. },
  1470. binNumberpicker(e) {
  1471. this.gridList.binNumber = this.warehouseList[e[0]].binNumber
  1472. },
  1473. del(item) {
  1474. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection', {
  1475. id: item.id
  1476. }).then(res => {
  1477. if (res.data.code == 200) {
  1478. this.$api.msg('删除成功')
  1479. } else {
  1480. this.$api.msg('系统异常,请联系管理员')
  1481. }
  1482. })
  1483. },
  1484. contactUs() {
  1485. const that = this
  1486. uni.makePhoneCall({
  1487. // 手机号
  1488. phoneNumber: '18241771147',
  1489. // 成功回调
  1490. success: (res) => {},
  1491. // 失败回调
  1492. fail: (res) => {}
  1493. });
  1494. },
  1495. loadData() {
  1496. // const that = this
  1497. // if(uni.getStorageSync("PageCur")){
  1498. // that.PageCur = uni.getStorageSync("PageCur");
  1499. // }
  1500. // that.userInfoTmp = uni.getStorageSync("userInfo")
  1501. // uni.showLoading({
  1502. // title: '正在加载',
  1503. // mask:true
  1504. // })
  1505. // that.$api.request('integral', 'getIndexData', failres => {
  1506. // that.$api.msg(failres.errmsg)
  1507. // uni.hideLoading()
  1508. // }).then(res => {
  1509. // let data = res.data
  1510. // uni.setStorageSync("message", data.message);
  1511. // uni.setStorageSync("task", data.task);
  1512. // uni.setStorageSync("contract", data.contract);
  1513. // uni.setStorageSync('showTran', data.showTran);
  1514. // that.showTran = data.showTran
  1515. // that.gridList[4].tips = data.task
  1516. // that.gridList[2].tips = data.contract
  1517. // that.companyId = data.companyId
  1518. // uni.hideLoading()
  1519. // })
  1520. },
  1521. confirm() {
  1522. const that = this
  1523. if (!that.inputContent) {
  1524. that.$api.msg('输入不能为空')
  1525. return
  1526. }
  1527. let obj = {}
  1528. obj[that.feild] = that.inputContent
  1529. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  1530. that.userInfo.nickname = that.inputContent
  1531. that.inputContent = ''
  1532. that.$store.commit('login', that.userInfo)
  1533. })
  1534. },
  1535. cancel() {
  1536. this.inputShow = false
  1537. this.inputStatus = 'none'
  1538. this.genderShow = false
  1539. },
  1540. myAccount() {
  1541. uni.navigateTo({
  1542. url: `/pageA/pages/contract`
  1543. })
  1544. },
  1545. /**
  1546. * 统一跳转接口,拦截未登录路由
  1547. * navigator标签现在默认没有转场动画,所以用view
  1548. */
  1549. navTo(url) {
  1550. if (!this.hasLogin) {
  1551. url = '/pages/public/login';
  1552. }
  1553. uni.navigateTo({
  1554. url
  1555. })
  1556. },
  1557. mycarClick(carNo) {
  1558. this.modalName = null
  1559. uni.navigateTo({
  1560. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  1561. })
  1562. },
  1563. scanCode() {
  1564. uni.scanCode({
  1565. success: function(res) {
  1566. uni.navigateTo({
  1567. url: res.result
  1568. })
  1569. }
  1570. })
  1571. },
  1572. hideModal(e) {
  1573. this.modalName = null
  1574. },
  1575. }
  1576. }
  1577. </script>
  1578. <style lang='scss' scoped>
  1579. .title_b {
  1580. margin: 20rpx 20rpx 0rpx 20rpx;
  1581. padding: 20rpx 10rpx 20rpx 10rpx;
  1582. font-size: 18px;
  1583. font-weight: 550;
  1584. }
  1585. page {
  1586. background: #F5F6FA;
  1587. }
  1588. .wrap {
  1589. padding-bottom: 10px;
  1590. font-size: 14px;
  1591. background: #fff;
  1592. margin: 10px;
  1593. border-radius: 10px;
  1594. input {
  1595. font-size: 14px;
  1596. }
  1597. >.title {
  1598. padding: 10px 16px;
  1599. }
  1600. .b-b:after {
  1601. border-bottom: 1px solid #eee;
  1602. }
  1603. }
  1604. .footer {
  1605. background: #fff;
  1606. position: fixed;
  1607. bottom: 0;
  1608. width: 100%;
  1609. padding: 20px 10px;
  1610. z-index: 10;
  1611. .button {
  1612. background: #22C572;
  1613. width: 90%;
  1614. margin: 20rpx auto;
  1615. padding: 10px;
  1616. color: #fff;
  1617. text-align: center;
  1618. border-radius: 30px;
  1619. }
  1620. }
  1621. .c-row {
  1622. display: -webkit-box;
  1623. display: -webkit-flex;
  1624. display: flex;
  1625. -webkit-box-align: center;
  1626. -webkit-align-items: center;
  1627. align-items: center;
  1628. padding: 20rpx 30rpx;
  1629. position: relative;
  1630. }
  1631. .con-list {
  1632. -webkit-box-flex: 1;
  1633. -webkit-flex: 1;
  1634. flex: 1;
  1635. display: -webkit-box;
  1636. display: -webkit-flex;
  1637. display: flex;
  1638. -webkit-box-orient: vertical;
  1639. -webkit-box-direction: normal;
  1640. -webkit-flex-direction: column;
  1641. flex-direction: column;
  1642. color: #303133;
  1643. line-height: 40rpx;
  1644. text-align: right;
  1645. padding-right: 20rpx;
  1646. }
  1647. input:disabled {
  1648. color: #ccc;
  1649. }
  1650. .textarea-style {
  1651. border: 1px solid #EEEEEE;
  1652. width: 100%;
  1653. padding: 20rpx;
  1654. border-radius: 20rpx;
  1655. }
  1656. .c-row-fj {
  1657. padding: 20rpx
  1658. }
  1659. .buns_item {
  1660. display: flex;
  1661. padding: 80rpx 0 50rpx 0;
  1662. justify-content: space-around;
  1663. }
  1664. .but_css {
  1665. background: #22C572;
  1666. width: 40%;
  1667. padding: 20rpx;
  1668. color: #fff;
  1669. text-align: center;
  1670. border-radius: 20rpx;
  1671. }
  1672. </style>