add_quality_testing.vue 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267
  1. <template>
  2. <view :style='{"margin-bottom":InputEvent!=""?"100px":0}'>
  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. <u-radio-group @change="groupChange" v-model="typevalue">
  9. <u-radio v-show="utils.getCurrectRoles('acquisitionQuality.initial')" key="1" label="贸易入库"
  10. name="1">贸易入库</u-radio>
  11. <u-radio v-show="utils.getCurrectRoles('acquisitionQuality.qview')" key="3" label="收购入库"
  12. name="3">
  13. 收购入库</u-radio>
  14. </u-radio-group>
  15. </view>
  16. </view>
  17. <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  18. <view class="title">仓库</view>
  19. <view class="con-list">
  20. {{gridList.warehouseName}}
  21. </view>
  22. </view>
  23. <view class="c-row ">
  24. <view class="title">任务编号</view>
  25. <view class="con-list">
  26. <view @click='show4=true'>{{gridList.inOutTaskNo?gridList.inOutTaskNo:'请选择任务编号'}}</view>
  27. <u-picker :range="taskNolist" range-key="inOutTaskNo1" @confirm='tasknopicker($event)'
  28. v-model="show4" mode="selector">
  29. </u-picker>
  30. </view>
  31. </view>
  32. <view v-show='typevalue==1&&gridList.inOutType!="移库入库"||typevalue==3' class="c-row ">
  33. <view class="title">合同编号</view>
  34. <view class="con-list">
  35. {{gridList.contractNo?gridList.contractNo:'自动获取,不可编辑'}}
  36. </view>
  37. </view>
  38. <view v-show='typevalue==1&&gridList.inOutType=="移库入库"' class="c-row ">
  39. <view class="title">移库编号</view>
  40. <view class="con-list">
  41. {{gridList.contractNo?gridList.contractNo:'自动获取,不可编辑'}}
  42. </view>
  43. </view>
  44. <!-- <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  45. <view class="title">业务编号</view>
  46. <view class="con-list">
  47. {{gridList.qualityNo}}
  48. </view>
  49. </view> -->
  50. <view v-show='typevalue==1' style=' align-items: flex-start;' class="c-row ">
  51. <view class="title">提示</view>
  52. <view class="con-list">
  53. {{gridList.tips?gridList.tips:'自动获取,不可编辑'}}
  54. </view>
  55. </view>
  56. <!-- <view v-show='typevalue==1' class="c-row ">
  57. <view class="title">成本</view>
  58. <view class="con-list">
  59. <view v-show='!coststatus'>{{gridList.cost?gridList.cost:'自动获取,不可编辑'}}</view>
  60. <view v-show='coststatus'>
  61. <input v-model='gridList.cost' placeholder="请输入成本" name="input" type="digit"></input>
  62. </view>
  63. </view>
  64. <button class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
  65. </view>
  66. <view v-show='typevalue==1' class="c-row ">
  67. <view class="title">运费</view>
  68. <view class="con-list flex">
  69. <view v-show='!freightstatus'>{{gridList.freight?gridList.freight:'自动获取,不可编辑'}}</view>
  70. <view v-show='freightstatus'>
  71. <input v-model='gridList.freight' placeholder="请输入运费" name="input" type="digit"></input>
  72. </view>
  73. </view>
  74. <button class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
  75. </view> -->
  76. <!-- <view v-show='typevalue==1' class="c-row ">
  77. <view class="title">扣款</view>
  78. <view class="con-list">
  79. <input v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
  80. </view>
  81. </view> -->
  82. <view v-show='typevalue==1' class="c-row ">
  83. <view class="title">入库类型</view>
  84. <view class="con-list">
  85. {{gridList.inOutType?gridList.inOutType:'自动获取,不可编辑'}}
  86. </view>
  87. </view>
  88. <view v-show='typevalue==1' class="c-row ">
  89. <view class="title">入库日期</view>
  90. <view class="con-list">
  91. <view @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  92. <u-picker @confirm='inOutDatepicker($event)' :params="params" v-model="show5" mode="time">
  93. </u-picker>
  94. </view>
  95. </view>
  96. <view
  97. v-show='typevalue==1||typevalue==3&&gridList.outType=="自运"&&utils.getCurrectRoles("acquisitionQuality.initial")'
  98. class="c-row ">
  99. <view class="title">车队</view>
  100. <view class="con-list">
  101. <view @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  102. <u-picker @confirm='fleetpicker($event)' :range="fleetNameList" range-key="fleetName"
  103. v-model="show6" mode="selector">
  104. </u-picker>
  105. </view>
  106. </view>
  107. <!-- <view v-show="gridList.paramType != '1'&&utils.getCurrectRoles('acquisitionQuality.initial')" class="c-row ">
  108. <view class="title">扣重比</view>
  109. <view class="con-list">
  110. <input v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比" name="input" type="digit"></input>
  111. </view>
  112. </view> -->
  113. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")||typevalue==1' class="c-row ">
  114. <view class="title">货名</view>
  115. <view class="con-list">
  116. <view>{{gridList.goodsName}}</view>
  117. <!-- <view v-show='goodsdisabled'>{{gridList.goodsName}}</view> -->
  118. <!-- <view v-show='!goodsdisabled' @click='show2=true'>{{gridList.goodsName}}</view> -->
  119. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodspicker($event)' v-model="show2"
  120. mode="selector">
  121. </u-picker>
  122. </view>
  123. </view>
  124. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  125. <view class="title">购粮性质</view>
  126. <view class="con-list">
  127. <input v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质" name="input"></input>
  128. </view>
  129. </view>
  130. <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  131. <view class="title">类型</view>
  132. <view class="con-list">{{gridList.type?gridList.type:'干粮'}}</view>
  133. </view>
  134. <view v-show='typevalue==1' class="c-row ">
  135. <view class="title">运输方式</view>
  136. <view class="con-list">
  137. <view @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  138. <u-picker :range="multiSelector" range-key="name" @confirm='outtypepicker($event,0)' v-model="show7"
  139. mode="selector">
  140. </u-picker>
  141. </view>
  142. </view>
  143. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")' class="c-row ">
  144. <view class="title">运输方式</view>
  145. <view class="con-list">
  146. <view @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
  147. <u-picker :range="multiSelector1" range-key="name" @confirm='outtypepicker($event,1)'
  148. v-model="show8" mode="selector">
  149. </u-picker>
  150. </view>
  151. </view>
  152. <view v-show='typevalue==1' class="c-row ">
  153. <view class="title">车牌号</view>
  154. <view class="con-list" v-show='gridList.inOutType!="移库入库"||gridList.outType!="汽运"'>
  155. <input v-model='gridList.carNumber' @click.stop="handleShowKeyboard" :disabled="true"
  156. placeholder="请输入车牌号" name="input"></input>
  157. <master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
  158. :defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
  159. </view>
  160. <view class="con-list" v-show='gridList.inOutType=="移库入库"&&gridList.outType=="汽运"'>
  161. <view @click='show9=true'>{{gridList.carNumber?gridList.carNumber:'请选择车牌号'}}</view>
  162. <u-picker :range="tranCarInfoList" range-key="carNo1" @confirm='carNopicker($event,1)'
  163. v-model="show9" mode="selector">
  164. </u-picker>
  165. </view>
  166. </view>
  167. <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  168. <view class="title">仓位号</view>
  169. <view class="con-list">
  170. <view @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
  171. <u-picker :range="warehouseList" range-key="binNumber" @confirm='binNumberpicker($event)'
  172. v-model="show" mode="selector">
  173. </u-picker>
  174. </view>
  175. </view>
  176. <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  177. <view class="title">囤位号(选填)</view>
  178. <view class="con-list">
  179. <input type="digit" v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
  180. </view>
  181. </view>
  182. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")' class="c-row ">
  183. <view class="title">客户</view>
  184. <view class="con-list">
  185. <view @click='gocustomer' v-show='gridList.customerName'>
  186. {{gridList.customerName}}({{gridList.customerPhone}})
  187. </view>
  188. <view @click='gocustomer' v-show='!gridList.customerName'>
  189. 选择客户
  190. </view>
  191. </view>
  192. </view>
  193. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")' class="c-row ">
  194. <view class="title">交易量</view>
  195. <view class="con-list">
  196. <view :style="redstatus?'color:red;':''">
  197. {{gridList.volumeofbusiness?gridList.volumeofbusiness:'0'}}
  198. </view>
  199. </view>
  200. </view>
  201. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")' class="c-row ">
  202. <view class="title">车牌号</view>
  203. <view class="con-list" v-show='gridList.inOutType!="移库入库" ||gridList.outType!="汽运"'>
  204. <input v-model='gridList.carNumber' @click.stop="handleShowKeyboard1" :disabled="true"
  205. placeholder="请输入车牌号" name="input"></input>
  206. <master-keyboard ref="keyboard1" keyboardtype="car" :randomNumber="true" :newCar="false"
  207. :defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
  208. </view>
  209. <view class="con-list" v-show='gridList.inOutType=="移库入库"&&gridList.outType=="汽运"'>
  210. <view @click='show9=true'>{{gridList.carNumber?gridList.carNumber:'请选择车牌号'}}</view>
  211. <u-picker :range="tranCarInfoList" range-key="carNo1" @confirm='carNopicker($event,1)'
  212. v-model="show9" mode="selector">
  213. </u-picker>
  214. </view>
  215. </view>
  216. <!-- <view v-show="gridList.paramType != '1'&&utils.getCurrectRoles('acquisitionQuality.initial')" class="c-row ">
  217. <view class="title">扣重比</view>
  218. <view class="con-list">
  219. <input v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比" name="input" type="digit"></input>
  220. </view>
  221. </view> -->
  222. <!-- <view v-else class="c-row ">
  223. <view class="title">扣杂</view>
  224. <view class="con-list">
  225. <input v-model='gridList.buckleMiscellaneous' placeholder="初检扣杂" @input="waterContentChange"
  226. name="input" type="digit"></input>
  227. <input v-model='gridList.reBuckleMiscellaneous' placeholder="复检扣杂" @input="waterContentChange"
  228. name="input" type="digit"></input>
  229. </view>
  230. </view> -->
  231. <view v-show="typevalue==3&&utils.getCurrectRoles('acquisitionQuality.qview')" class="c-row">
  232. <view class="title">箱号-1</view>
  233. <view class="con-list">
  234. <input v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  235. </view>
  236. </view>
  237. <view v-show="typevalue==3&&utils.getCurrectRoles('acquisitionQuality.qview')" class="c-row">
  238. <view class="title">封号-1</view>
  239. <view class="con-list">
  240. <input v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  241. </view>
  242. </view>
  243. <view v-show="typevalue==3&&utils.getCurrectRoles('acquisitionQuality.qview')" class="c-row">
  244. <view class="title">箱号-2</view>
  245. <view class="con-list">
  246. <input v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  247. </view>
  248. </view>
  249. <view v-show="typevalue==3&&utils.getCurrectRoles('acquisitionQuality.qview')" class="c-row">
  250. <view class="title">封号-2</view>
  251. <view class="con-list">
  252. <input v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  253. </view>
  254. </view>
  255. <view v-show="typevalue==1 " class="c-row ">
  256. <view class="title">箱号-1</view>
  257. <view class="con-list">
  258. <input v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  259. </view>
  260. </view>
  261. <view v-show="typevalue==1 " class="c-row ">
  262. <view class="title">封号-1</view>
  263. <view class="con-list">
  264. <input v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  265. </view>
  266. </view>
  267. <view v-show="typevalue==1 " class="c-row ">
  268. <view class="title">箱号-2</view>
  269. <view class="con-list">
  270. <input v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  271. </view>
  272. </view>
  273. <view v-show="typevalue==1 " class="c-row ">
  274. <view class="title">封号-2</view>
  275. <view class="con-list">
  276. <input v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  277. </view>
  278. </view>
  279. </view>
  280. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')" style='padding-bottom:300rpx;'>
  281. <view class='wrap'>
  282. <view style='margin-right:10px;' class='flex justify-between align-item-center'>
  283. <view class='title_b'>化验信息</view>
  284. <view class='flex justify-between align-item-center'>补录:<u-switch activeColor="#22C572"
  285. v-model="value" @change="change"></u-switch>
  286. </view>
  287. </view>
  288. <view class="c-row ">
  289. <view class="title">等级</view>
  290. <view class="con-list">
  291. <view @click='show1=true'>{{gridList.grade?gridList.grade:'请选择等级'}}</view>
  292. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker($event)' v-model="show1"
  293. mode="selector">
  294. </u-picker>
  295. </view>
  296. </view>
  297. <view class="c-row ">
  298. <view class="title">水分(%)</view>
  299. <view class="con-list">
  300. <MyNumberInput :myvalue="gridList.waterContent" :Isedit="Isedit" :IsShow="MykeywordShow"
  301. :myevent="'waterContent'" @setValue="mykeywordset" v-if="InputEvent=='waterContent'"
  302. @Cancelword="Cancelword" @goNext="goNext('waterContent')"></MyNumberInput>
  303. <input v-else v-model='gridList.waterContent' @click="SetInputKey('waterContent')"
  304. placeholder="初检水分" @input="waterContentChange" name="input" type="digit"></input>
  305. <!-- <input v-model='gridList.waterContent' placeholder="初检水分" @input="waterContentChange"
  306. name="input" type="digit"></input> -->
  307. </view>
  308. </view>
  309. <view class="c-row" v-if="gridList.goodsName!='大豆'">
  310. <view class="title">容重(克/升)</view>
  311. <view class="con-list">
  312. <MyNumberInput :myvalue="gridList.bulkDensity" :Isedit="Isedit" :IsShow="MykeywordShow"
  313. :myevent="'bulkDensity'" @setValue="mykeywordset" v-if="InputEvent=='bulkDensity'"
  314. @Cancelword="Cancelword" @goNext="goNext('bulkDensity')"></MyNumberInput>
  315. <input v-else v-model='gridList.bulkDensity' placeholder="请输入容重"
  316. @click="SetInputKey('bulkDensity')" name="input" type="digit" @input="obtainPrice"></input>
  317. <!-- <input v-model='gridList.bulkDensity' placeholder="请输入容重" name="input" type="digit" @input="obtainPrice"></input> -->
  318. </view>
  319. </view>
  320. <view class="c-row" v-else>
  321. <view class="title">蛋白</view>
  322. <view class="con-list">
  323. <MyNumberInput :myvalue="gridList.protein" :Isedit="Isedit" :IsShow="MykeywordShow"
  324. :myevent="'protein'" @setValue="mykeywordset" v-if="InputEvent=='protein'"
  325. @Cancelword="Cancelword" @goNext="goNext('protein')"></MyNumberInput>
  326. <input v-else v-model='gridList.protein' placeholder="请输入蛋白"
  327. @click="SetInputKey('protein')" name="input" type="digit" @input="obtainPrice"></input>
  328. </view>
  329. </view>
  330. <view class="c-row " v-if="gridList.goodsName != '大豆'">
  331. <view class="title">不完善粒(%)</view>
  332. <view class="con-list">
  333. <MyNumberInput :myvalue="gridList.imperfectGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  334. :myevent="'imperfectGrain'" @setValue="mykeywordset" v-if="InputEvent=='imperfectGrain'"
  335. @Cancelword="Cancelword" @goNext="goNext('imperfectGrain')"></MyNumberInput>
  336. <input v-else v-model='gridList.imperfectGrain' @click="SetInputKey('imperfectGrain')"
  337. placeholder="请输入不完整粒占比" name="input" type="digit"></input>
  338. </view>
  339. </view>
  340. <view class="c-row" v-else>
  341. <view class="title">完整粒率(%)</view>
  342. <view class="con-list">
  343. <MyNumberInput :myvalue="gridList.completeGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  344. :myevent="'completeGrain'" @setValue="mykeywordset" v-if="InputEvent=='completeGrain'"
  345. @Cancelword="Cancelword" @goNext="goNext('impurity')"></MyNumberInput>
  346. <input v-else v-model='gridList.completeGrain'
  347. placeholder="请输入完善粒率占比" name="input" type="digit"></input>
  348. </view>
  349. </view>
  350. <view class="c-row ">
  351. <view class="title">杂质(%)</view>
  352. <view class="con-list">
  353. <MyNumberInput :myvalue="gridList.impurity" :Isedit="Isedit" :IsShow="MykeywordShow"
  354. :myevent="'impurity'" @setValue="mykeywordset" v-if="InputEvent=='impurity'"
  355. @Cancelword="Cancelword" @goNext="goNext('impurity')"></MyNumberInput>
  356. <input v-else v-model='gridList.impurity' placeholder="请输入杂质占比" @click="SetInputKey('impurity')"
  357. name="input" type="digit"></input>
  358. </view>
  359. </view>
  360. <view class="c-row ">
  361. <view class="title">霉变粒(%)</view>
  362. <view class="con-list">
  363. <MyNumberInput :myvalue="gridList.mildewGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  364. :myevent="'mildewGrain'" @setValue="mykeywordset" v-if="InputEvent=='mildewGrain'"
  365. @Cancelword="Cancelword" @goNext="goNext('mildewGrain')"></MyNumberInput>
  366. <input v-else v-model='gridList.mildewGrain' @click="SetInputKey('mildewGrain')"
  367. placeholder="请输入霉变粒占比" name="input" type="digit"></input>
  368. </view>
  369. </view>
  370. <view class="c-row">
  371. <view class="title">热损伤(%)</view>
  372. <view class="con-list">
  373. <MyNumberInput :myvalue="gridList.jiaorenli" :Isedit="Isedit" :IsShow="MykeywordShow"
  374. :myevent="'jiaorenli'" @setValue="mykeywordset" v-if="InputEvent=='jiaorenli'"
  375. @Cancelword="Cancelword" @goNext="goNext('jiaorenli')"></MyNumberInput>
  376. <input v-else v-model='gridList.jiaorenli' @click="SetInputKey('jiaorenli')"
  377. placeholder="请输入热损伤占比" name="input" type="digit"></input>
  378. </view>
  379. </view>
  380. <view class="c-row" v-if="gridList.goodsName == '大豆'">
  381. <view class="title">转基因</view>
  382. <view class="con-list">
  383. <MyNumberInput :myvalue="gridList.transgene" :Isedit="Isedit" :IsShow="MykeywordShow"
  384. :myevent="'transgene'" @setValue="mykeywordset" v-if="InputEvent=='transgene'"
  385. @Cancelword="Cancelword" @goNext="goNext('transgene')"></MyNumberInput>
  386. <view @click="transgeneShow=true">
  387. {{gridList.transgene}}
  388. </view>
  389. <!-- 转基因 -->
  390. <u-picker :range="transgeneList" range-key="value" @confirm='transgeneClick($event)' v-model="transgeneShow"
  391. mode="selector">
  392. </u-picker>
  393. </view>
  394. </view>
  395. <view class="c-row" v-if="gridList.goodsName == '大豆'">
  396. <view class="title">色泽/气味</view>
  397. <view class="con-list">
  398. <MyNumberInput :myvalue="gridList.colorLustre" :Isedit="Isedit" :IsShow="MykeywordShow"
  399. :myevent="'colorLustre'" @setValue="mykeywordset" v-if="InputEvent=='colorLustre'"
  400. @Cancelword="Cancelword" @goNext="goNext('colorLustre')"></MyNumberInput>
  401. <!-- <input v-else v-model='gridList.colorLustre' @click="SetInputKey('colorLustre')"
  402. placeholder="请选择色泽/气味是否正常" name="input" type="digit"></input> -->
  403. <div @click="colorLustreShow = true">{{gridList.colorLustre}}</div>
  404. <!-- 转基因 -->
  405. <u-picker :range="colorLustreList" range-key="value" @confirm='colorLustreClick($event)' v-model="colorLustreShow"
  406. mode="selector">
  407. </u-picker>
  408. </view>
  409. </view>
  410. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3" class="c-row">
  411. <view class="title">水分增价(元/吨)</view>
  412. <view class="con-list">
  413. <input v-model='gridList.waterPriceIncrease' @focus="pricefocus($event,1)"
  414. @input='deductionchange' placeholder="请输入水分增价" name="input" type="digit"></input>
  415. </view>
  416. </view>
  417. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3" class="c-row">
  418. <view class="title">水分扣价(元/吨)</view>
  419. <view class="con-list">
  420. <input v-model='gridList.waterPriceDeduction' @focus="pricefocus($event,2)"
  421. @input='deductionchange' placeholder="请输入水分扣价" name="input" type="digit"></input>
  422. </view>
  423. </view>
  424. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3" class="c-row">
  425. <view class="title">质量增价(元/吨)</view>
  426. <view class="con-list">
  427. <input v-model='gridList.qualityPriceIncrease' @focus="pricefocus($event,3)"
  428. @input='deductionchange' placeholder="请输入质量增价" name="input" type="digit"></input>
  429. </view>
  430. </view>
  431. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3" class="c-row">
  432. <view class="title">质量扣价(元/吨)</view>
  433. <view class="con-list">
  434. <input v-model='gridList.qualityPriceDeduction' @focus="pricefocus($event,4)"
  435. @input='deductionchange' placeholder="请输入质量扣价" name="input" type="digit"></input>
  436. </view>
  437. </view>
  438. <view v-show="gridList.type == '干粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3"
  439. class="c-row">
  440. <view class="title">干粮单价(元/公斤)</view>
  441. <view class="con-list">
  442. <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' @blur='inputprice'
  443. placeholder="请输入干粮单价" name="input" type="digit"></input>
  444. </view>
  445. <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
  446. </view>
  447. <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==3"
  448. class="c-row">
  449. <view class="title">净重单价(元/公斤)</view>
  450. <view class="con-list">
  451. <input v-model='gridList.tidalGrainPrice' :disabled='pricedisabled' @blur='inputprice'
  452. placeholder="自动获取,不可编辑" name="input" type="digit"></input>
  453. </view>
  454. <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
  455. </view>
  456. <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
  457. class="c-row">
  458. <view class="title">净重单价(元/公斤)</view>
  459. <view class="con-list">
  460. <input v-model='gridList.tidalGrainPrice' :disabled='disabled1' @blur='inputprice'
  461. placeholder="自动获取,不可编辑" name="input" type="digit"></input>
  462. </view>
  463. </view>
  464. <!-- <view v-show="gridList.type == '潮粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
  465. class="c-row">
  466. <view class="title">净重单价(元/公斤)</view>
  467. <view class="con-list">
  468. <input v-model='gridList.tidalGrainPrice' :disabled='disabled1' @blur='inputprice'
  469. placeholder="自动获取,不可编辑" name="input" type="digit"></input>
  470. </view>
  471. </view> -->
  472. <view v-show="gridList.type == '干粮'&&utils.getCurrectRoles('acquisitionQuality.initial')&&typevalue==1"
  473. class="c-row">
  474. <view class="title">干粮单价(元/公斤)</view>
  475. <view class="con-list">
  476. <input v-model='gridList.dryGrainPrice' :disabled='disabled1' @blur='inputprice'
  477. placeholder="请输入干粮单价" name="input" type="digit"></input>
  478. </view>
  479. </view>
  480. </view>
  481. </view>
  482. <view class="footer">
  483. <!-- <view @click='confirmInfo' class="button">确认初检信息</view> -->
  484. <view @click='submit' class="button">提交</view>
  485. </view>
  486. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  487. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  488. :showCancelButton='false' :content="content" @cancel="cancelClick"></u-modal>
  489. <!-- @confirm="alertBtn" -->
  490. <u-popup v-model="isShowPrint" class="popup" @close="close" mode="bottom" border-radius="30" :closeable="true">
  491. <view class="buns_item">
  492. <view class="but_css" @click="print">打印小票</view>
  493. <view class="but_css" @click="close">返回</view>
  494. </view>
  495. </u-popup>
  496. </view>
  497. </template>
  498. <script>
  499. var that;
  500. const Equ_List = ['waterContent', 'bulkDensity', 'imperfectGrain', 'impurity', 'mildewGrain', 'jiaorenli','protein','completeGrain'];
  501. import dragButton from "@/components/drag-button/drag-button.vue";
  502. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  503. import MyNumberInput from "@/components/MyNumberInput.vue";
  504. import {
  505. mapState
  506. } from 'vuex';
  507. let startY = 0,
  508. moveY = 0,
  509. pageAtTop = true;
  510. export default {
  511. components: {
  512. dragButton,
  513. keyboard,
  514. MyNumberInput
  515. },
  516. data() {
  517. return {
  518. isQY: false,
  519. isZJ: false,
  520. redstatus: false,
  521. isShowPrint: false,
  522. isShowAlert: false,
  523. disabled1: false,
  524. content: '确认初检信息后,初检员不需要再次确认质检信息,是否确定提交?',
  525. inputShow: false,
  526. params: {
  527. year: true,
  528. month: true,
  529. day: true,
  530. },
  531. Data: {
  532. ktv: '111111'
  533. },
  534. Isedit: false,
  535. MykeywordShow: false,
  536. InputEvent: '',
  537. dryGrainPrice: 0,
  538. tidalGrainPrice: 0,
  539. modalName: '',
  540. pricetext: '锁定',
  541. pricedisabled: false,
  542. show8: false,
  543. mycarStyle: '',
  544. feild: undefined,
  545. id: 0,
  546. outType: '他运',
  547. show: false,
  548. show4: false,
  549. show5: false,
  550. show6: false,
  551. show7: false,
  552. show9: false,
  553. edit: true,
  554. goodsdisabled: false,
  555. freighttext: '手动填写',
  556. costtext: '手动填写',
  557. selector: [],
  558. show1: false,
  559. inputContent: '',
  560. multiSelector1: [{
  561. name: '他运',
  562. value: '他运'
  563. }],
  564. printId: '',
  565. typevalue: '3',
  566. coverTransform: 'translateY(0px)',
  567. coverTransition: '0s',
  568. moving: false,
  569. footprintList: [],
  570. searchKeyWord: '',
  571. isVip: false,
  572. userInfoTmp: [],
  573. inputStatus: 'none',
  574. carInfo: [],
  575. gridCol: 4,
  576. freightstatus: false,
  577. coststatus: false,
  578. pageSize: 10,
  579. show3: false,
  580. show2: false,
  581. goodsList: [],
  582. currentPage: 1,
  583. value: false,
  584. gridBorder: false,
  585. headUrl: "../../static/img/myimg/YongHu@3x.png",
  586. userphone: "",
  587. username: "请更改昵称",
  588. contractFlag: 10,
  589. gridList: {
  590. outType: '汽运',
  591. natureOfGrainPurchase: '贸易粮',
  592. type: '',
  593. tidalGrainPrice: '',
  594. dryGrainPrice: '',
  595. buckleMiscellaneous: '',
  596. carNumber: '',
  597. customerName: '',
  598. customerPhone: '',
  599. bulkDensity: "",
  600. imperfectGrain: "",
  601. waterPriceIncrease: 0,
  602. waterPriceDeduction: 0,
  603. qualityPriceIncrease: 0,
  604. qualityPriceDeduction: 0,
  605. waterContent: "",
  606. jiaorenli: "",
  607. impurity: "",
  608. mildewGrain: "",
  609. compName: "",
  610. type: '',
  611. freight: 0,
  612. cost: '',
  613. addressUrl: '',
  614. tidalGrainPrice: 0,
  615. buckleWeightRatio: 0,
  616. buckleMiscellaneous: 0,
  617. paramType: 1,
  618. warehouseInOutDetail: {
  619. grade: '',
  620. reGrade: '',
  621. imperfectGrain: '',
  622. reImperfectGrain: '',
  623. impurity: '',
  624. reImpurity: '',
  625. jiaorenli: '',
  626. reJiaorenli: '',
  627. bulkDensity: '',
  628. reBulkDensity: '',
  629. mildewGrain: '',
  630. reMildewGrain: '',
  631. },
  632. disablednotarize: false,
  633. deductionAmount: 0,
  634. deductionWeight: 0,
  635. grossWeight: 0,
  636. tare: 0,
  637. grade: '',
  638. inOutDate: new Date().toISOString().slice(0, 10),
  639. netWeight: 0,
  640. pureWeight: 0,
  641. deductionWeight: 0,
  642. waterContent: '',
  643. reWaterContent: '',
  644. reGrade: '',
  645. imperfectGrain: '',
  646. reImperfectGrain: '',
  647. impurity: '',
  648. reImpurity: '',
  649. jiaorenli: '',
  650. reJiaorenli: '',
  651. bulkDensity: '',
  652. reBulkDensity: '',
  653. reMemo: '',
  654. storageTagNo: '',
  655. mildewGrain: '',
  656. reMildewGrain: '',
  657. boxNo: '',
  658. boxNoOther: '',
  659. titleNo: '',
  660. titleNoOther: '',
  661. statusFlag: 1
  662. },
  663. gridListInit: {
  664. natureOfGrainPurchase: '贸易粮',
  665. type: '',
  666. tidalGrainPrice: '',
  667. dryGrainPrice: '',
  668. buckleMiscellaneous: '',
  669. carNumber: '',
  670. customerName: '',
  671. customerPhone: '',
  672. bulkDensity: "",
  673. imperfectGrain: "",
  674. waterContent: "",
  675. jiaorenli: "",
  676. impurity: "",
  677. mildewGrain: "",
  678. compName: "",
  679. type: '',
  680. freight: 0,
  681. cost: '',
  682. addressUrl: '',
  683. tidalGrainPrice: 0,
  684. buckleWeightRatio: 0,
  685. buckleMiscellaneous: 0,
  686. paramType: 1,
  687. warehouseInOutDetail: {
  688. grade: '',
  689. reGrade: '',
  690. imperfectGrain: '',
  691. reImperfectGrain: '',
  692. impurity: '',
  693. reImpurity: '',
  694. jiaorenli: '',
  695. reJiaorenli: '',
  696. bulkDensity: '',
  697. reBulkDensity: '',
  698. mildewGrain: '',
  699. reMildewGrain: '',
  700. },
  701. disablednotarize: false,
  702. deductionAmount: 0,
  703. deductionWeight: 0,
  704. grossWeight: 0,
  705. tare: 0,
  706. grade: '',
  707. // inOutDate: new Date().toISOString().slice(0, 10),
  708. netWeight: 0,
  709. pureWeight: 0,
  710. deductionWeight: 0,
  711. waterContent: '',
  712. reWaterContent: '',
  713. reGrade: '',
  714. imperfectGrain: '',
  715. reImperfectGrain: '',
  716. impurity: '',
  717. reImpurity: '',
  718. jiaorenli: '',
  719. reJiaorenli: '',
  720. bulkDensity: '',
  721. reBulkDensity: '',
  722. reMemo: '',
  723. storageTagNo: '',
  724. mildewGrain: '',
  725. reMildewGrain: '',
  726. boxNo: '',
  727. boxNoOther: '',
  728. titleNo: '',
  729. titleNoOther: '',
  730. statusFlag: 1
  731. },
  732. typeList: ['潮粮', '干粮'],
  733. managementType: '',
  734. flag: 2,
  735. warehouseName: '',
  736. warehouseList: [],
  737. warehouseCount: '',
  738. commonWarehouseNo: '',
  739. warehouseTradeCount: 0,
  740. showTran: true,
  741. companyId: 1,
  742. contractNolist: [],
  743. current: 4,
  744. taskNolist: [],
  745. tranCarInfoList: [],
  746. fleetNameList: [],
  747. multiSelector: [{
  748. name: '汽运',
  749. value: '0',
  750. },
  751. {
  752. name: '火运',
  753. value: '1',
  754. },
  755. {
  756. name: '集装箱船',
  757. value: '2',
  758. },
  759. {
  760. name: '散船',
  761. value: '3',
  762. },
  763. ],
  764. gradeList: [{
  765. key: 1,
  766. value: '一等品'
  767. },
  768. {
  769. key: 2,
  770. value: '二等品'
  771. },
  772. {
  773. key: 3,
  774. value: '三等品'
  775. },
  776. {
  777. key: 4,
  778. value: '等外'
  779. },
  780. ],
  781. cangid: '',
  782. inType: "" ,//入库类型
  783. transgeneShow:false,
  784. transgeneList:[{value:'非转基因'},{value:'转基因'}],
  785. colorLustreShow : false,
  786. colorLustreList:[{value:'正常'},{value:'异常'}]
  787. }
  788. },
  789. // #ifndef MP
  790. onNavigationBarButtonTap(e) {
  791. const index = e.index;
  792. if (index === 0) {
  793. this.navTo('/pages/set/set');
  794. } else if (index === 1) {
  795. // #ifdef APP-PLUS
  796. const pages = getCurrentPages();
  797. const page = pages[pages.length - 1];
  798. const currentWebview = page.$getAppWebview();
  799. currentWebview.hideTitleNViewButtonRedDot({
  800. index
  801. });
  802. // #endif
  803. uni.navigateTo({
  804. url: '/pages/notice/notice'
  805. })
  806. }
  807. },
  808. // #endif
  809. computed: {
  810. ...mapState(['hasLogin', 'userInfo']),
  811. // 手机号中间4位加*
  812. starUserphone() {
  813. let reg = /^(\d{3})\d{4}(\d{4})$/;
  814. if (this.userphone) {
  815. return this.userphone.replace(reg, "$1****$2");
  816. }
  817. }
  818. },
  819. onLoad(options) {
  820. that = this
  821. console.log(that)
  822. console.log(this.cangid)
  823. this.commonWarehouseNo = options.commonWarehouseNo
  824. this.warehouseCount = Number(options.warehouseCount) + 1
  825. this.warehouseTradeCount = Number(options.warehouseTradeCount) + 1
  826. let number = '000' + this.warehouseCount
  827. number = number.substring(number.length - 4, number.length)
  828. this.gridList.warehouseName = options.warehouseName
  829. // this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
  830. this.cangid = options.cangid
  831. this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
  832. id: this.cangid
  833. }).then(res => {
  834. console.log(res)
  835. this.warehouseList = res.data.data.warehousePositionInfoList
  836. })
  837. if (uni.getStorageSync('compName1')) {
  838. this.gridList.compName = uni.getStorageSync('compName1').company
  839. }
  840. this.gridList.person = options.personCharge
  841. this.gridList.personPhone = options.personPhone
  842. this.gridList.qualityInspector = uni.getStorageSync("userInfo").userName
  843. // this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  844. // warehouseId: this.cangid
  845. // }).then(res => {
  846. // if (res.data.data) {
  847. // this.setGoodName([0])
  848. // }
  849. // })
  850. this.managementType = options.managementType
  851. let that = this
  852. this.purchasePriceList = uni.getStorageSync('purchasePriceList')
  853. // if (uni.getStorageSync('checkcustomer')) {
  854. // let _customerInfo = uni.getStorageSync('checkcustomer')
  855. // if (_customerInfo.shipperName) {
  856. // this.gridList.identityId = _customerInfo.id
  857. // //点击登记客户
  858. // this.gridList.customerName = _customerInfo.shipperName
  859. // this.gridList.customerPhone = _customerInfo.shipperPhone
  860. // this.gridList.carNumber=_customerInfo.carNo
  861. // } else {
  862. // //点击搜索客户
  863. // this.gridList.customerName = _customerInfo.customerName
  864. // this.gridList.customerPhone = _customerInfo.customerPhone
  865. // }
  866. // this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  867. // }
  868. this.gridList.grade = this.gradeList[1].value
  869. this.gridList.gradeKey = this.gradeList[1].key
  870. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  871. warehouseId: this.cangid
  872. }).then(res => {
  873. if (res.data.data) {
  874. that.goodsList = res.data.data
  875. if (that.goodsList.length > 0) {
  876. that.gridList.goodsName = that.goodsList[0].goodsName
  877. uni.setStorageSync('purchasePriceList', that.goodsList)
  878. that.purchasePriceList = uni.getStorageSync('purchasePriceList')
  879. }
  880. } else if (res.data.code != 200) {
  881. uni.showModal({
  882. content: res.data.message,
  883. showCancel: false
  884. })
  885. }
  886. })
  887. console.log(this.gridList)
  888. this.gridListInit = this.gridList
  889. },
  890. async onShow() {
  891. this.isQY = this.utils.getCurrectRoles('acquisitionQuality.qview')
  892. this.isZJ = this.utils.getCurrectRoles('acquisitionQuality.initial')
  893. if (this.isZJ && !this.isQY) {
  894. this.typevalue = '1'
  895. this.contractFlag = 7
  896. } else {
  897. this.typevalue = '3'
  898. this.contractFlag = 10
  899. }
  900. uni.showLoading({
  901. title: '加载中',
  902. mask: true
  903. })
  904. if (this.typevalue == '3') {
  905. this.flag = 3
  906. } else {
  907. this.flag = 2
  908. }
  909. await this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  910. flag: this.flag,
  911. warehouseName: this.gridList.warehouseName
  912. }).then(res => {
  913. console.log(1)
  914. console.log(res)
  915. for (let i = 0; i < res.data.data.length; i++) {
  916. this.$set(res.data.data[i],'inOutTaskNo1',res.data.data[i].inOutTaskNo+(res.data.data[i].taskFlag?'('+res.data.data[i].taskFlag+')':''))
  917. }
  918. console.log(res.data.data,22222)
  919. this.taskNolist = res.data.data
  920. })
  921. this.multiSelector1 = [{
  922. name: '他运',
  923. value: '他运'
  924. }]
  925. await this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
  926. warehouseName: this.gridList.warehouseName
  927. }).then(res => {
  928. uni.hideLoading();
  929. console.log(2)
  930. // console.log(res)
  931. if (res.data.data.contractManagementInfoList) {
  932. for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
  933. res.data.data.contractMangementInfoList[i].name = '自运 (' +
  934. res.data.data.contractMangementInfoList[i].contractNo + ' ' + res.data.data
  935. .contractMangementInfoList[i].seller + ')'
  936. this.multiSelector1.push(res.data.data.contractManagementInfoList[i])
  937. }
  938. } else {
  939. this.multiSelector1 = [{
  940. name: '他运',
  941. value: '他运'
  942. }]
  943. }
  944. // this.taskNolist=res.data.data
  945. })
  946. if (uni.getStorageSync('checkcustomer')) {
  947. let _customerInfo = uni.getStorageSync('checkcustomer')
  948. if (_customerInfo.shipperName) {
  949. this.gridList.identityId = _customerInfo.id
  950. //点击登记客户
  951. this.gridList.customerName = _customerInfo.shipperName
  952. this.gridList.customerPhone = _customerInfo.shipperPhone
  953. this.gridList.carNumber = _customerInfo.carNo
  954. } else {
  955. //点击搜索客户
  956. this.gridList.customerName = _customerInfo.customerName
  957. this.gridList.customerPhone = _customerInfo.customerPhone
  958. }
  959. this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  960. var that = this
  961. setTimeout(() => {}, 1000)
  962. console.log(this.gridList.goodsName)
  963. if (!this.gridList.goodsName) {
  964. this.gridList.goodsName = uni.getStorageSync('goodsName')
  965. }
  966. if (this.gridList.goodsName) {
  967. uni.showLoading({
  968. title: '加载中',
  969. mask: true
  970. })
  971. await this.$api.doRequest('get',
  972. '/qualityInspectionManagement/getQualityInspectionManagementMap', {
  973. goodsName: this.gridList.goodsName,
  974. compId: uni.getStorageSync('pcUserInfo').compId,
  975. customerNumberCard: this.gridList.customerNumberCard,
  976. warehouseName: this.gridList.warehouseName
  977. }).then(res => {
  978. uni.hideLoading();
  979. if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data.D - 50) {
  980. that.redstatus = true
  981. } else {
  982. that.redstatus = false
  983. }
  984. var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) + '吨,' : ''
  985. var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) + '吨,' : ''
  986. var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
  987. that.gridList.volumeofbusiness = a + b + c
  988. console.log(that.gridList.volumeofbusiness)
  989. that.$forceUpdate()
  990. })
  991. }
  992. }
  993. },
  994. methods: {
  995. colorLustreClick(e){
  996. this.gridList.colorLustre = this.colorLustreList[e[0]].value
  997. },
  998. transgeneClick(e){
  999. this.gridList.transgene = this.transgeneList[e[0]].value
  1000. },
  1001. Cancelword() {
  1002. this.bottomHeight = '10rpx';
  1003. this.MykeywordShow = false;
  1004. this.InputEvent = '';
  1005. },
  1006. goNext(val) {
  1007. var inputList = Equ_List;
  1008. if (this.menuIndex == 1) {
  1009. inputList = Sign_List;
  1010. }
  1011. var index = inputList.indexOf(val);
  1012. this.setScrollTops(val);
  1013. if (index < inputList.length - 1) {
  1014. this.InputEvent = inputList[index + 1];
  1015. } else {
  1016. this.InputEvent = ''
  1017. this.bottomHeight = '10rpx';
  1018. this.MykeywordShow = false;
  1019. }
  1020. },
  1021. mykeywordset(datatxt) {
  1022. var arr = JSON.parse(datatxt);
  1023. this.gridList[arr.even] = arr.value;
  1024. if (arr.even == 'waterContent') {
  1025. this.waterContentChange()
  1026. } else if (arr.even == 'bulkDensity') {
  1027. this.obtainPrice()
  1028. }
  1029. },
  1030. SetInputKey(even) {
  1031. uni.hideKeyboard();
  1032. this.InputEvent = even;
  1033. this.setScrollTops(even);
  1034. if (!this.MykeywordShow) {
  1035. this.bottomHeight = '320rpx';
  1036. this.MykeywordShow = true;
  1037. }
  1038. },
  1039. setScrollTops(even) {
  1040. var inputList = Equ_List;
  1041. var index = inputList.indexOf(even);
  1042. this.viewTop = (index + 1) * 60 + 100;
  1043. },
  1044. pricefocus(e, status) {
  1045. console.log(e)
  1046. if (status == 1) {
  1047. if (e.detail.value == 0) {
  1048. this.gridList.waterPriceIncrease = ''
  1049. }
  1050. } else if (status == 2) {
  1051. if (e.detail.value == 0) {
  1052. this.gridList.waterPriceDeduction = ''
  1053. }
  1054. } else if (status == 3) {
  1055. if (e.detail.value == 0) {
  1056. this.gridList.qualityPriceIncrease = ''
  1057. }
  1058. } else if (status == 4) {
  1059. if (e.detail.value == 0) {
  1060. this.gridList.qualityPriceDeduction = ''
  1061. }
  1062. }
  1063. },
  1064. deductionchange() {
  1065. if (this.gridList.type == '干粮') {
  1066. if (this.dryGrainPrice != '') {
  1067. console.log(Number(this.dryGrainPrice + (this.gridList.waterPriceIncrease / 1000) - (this.gridList
  1068. .waterPriceDeduction / 1000) + (this.gridList.qualityPriceIncrease / 1000) - (this
  1069. .gridList.qualityPriceDeduction / 1000)), Number(this.dryGrainPrice + (this.gridList
  1070. .waterPriceIncrease / 1000) - (this.gridList.waterPriceDeduction / 1000) + (this
  1071. .gridList.qualityPriceIncrease / 1000) - (this.gridList.qualityPriceDeduction /
  1072. 1000)).toFixed(2))
  1073. this.gridList.dryGrainPrice = Number(this.dryGrainPrice + (this.gridList.waterPriceIncrease /
  1074. 1000) - (this.gridList.waterPriceDeduction / 1000) + (this.gridList
  1075. .qualityPriceIncrease /
  1076. 1000) - (this.gridList.qualityPriceDeduction / 1000)).toFixed(4)
  1077. }
  1078. } else if (this.gridList.type == '潮粮') {
  1079. if (this.tidalGrainPrice != '') {
  1080. this.gridList.tidalGrainPrice = Number(this.tidalGrainPrice + (this.gridList.waterPriceIncrease /
  1081. 1000) - (this.gridList.waterPriceDeduction / 1000) + (this.gridList
  1082. .qualityPriceIncrease / 1000) - (this.gridList.qualityPriceDeduction / 1000)).toFixed(4)
  1083. }
  1084. }
  1085. this.$forceUpdate()
  1086. },
  1087. carNopicker(e) {
  1088. this.gridList.carNumber = this.tranCarInfoList[e[0]].carNo
  1089. for (let i = 0; i < this.tranCarInfoList.length; i++) {
  1090. if (i == e[0]) {
  1091. this.gridList.carNo = this.tranCarInfoList[i].carNo
  1092. this.gridList.carNoCopy = this.tranCarInfoList[i].carNo + '(' + this.tranCarInfoList[i].tranCarNo +
  1093. ')'
  1094. this.gridList.tranCarNo = this.tranCarInfoList[i].tranCarNo
  1095. this.gridList.carId = this.tranCarInfoList[i].id
  1096. this.gridList.freight = Math.round(
  1097. this.tranCarInfoList[i].tranPrice
  1098. )
  1099. if (this.gridList.inOutType == '移库入库') {
  1100. if (!this.gridList.cost) {
  1101. this.gridList.cost = this.tranCarInfoList[i].cost
  1102. }
  1103. this.gridList.loadNetWeight =
  1104. this.tranCarInfoList[i].loadNetWeight
  1105. }
  1106. }
  1107. }
  1108. },
  1109. obtainPrice() { //根据容重获取价格
  1110. if (this.gridList.goodsName && this.cangid && this.gridList.bulkDensity) {
  1111. // if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1112. let quality = this.gridList.goodsName=='大豆'?this.gridList.protein:this.gridList.bulkDensity
  1113. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1114. warehouseId: this.cangid,
  1115. goodsName: this.gridList.goodsName,
  1116. bulkDensity: quality
  1117. }).then(res => {
  1118. if (res.data.data != 0) {
  1119. this.gridList.dryGrainPrice = res.data.data
  1120. this.dryGrainPrice = res.data.data
  1121. this.gridList.waterPriceIncrease = 0
  1122. this.gridList.waterPriceDeduction = 0
  1123. this.gridList.qualityPriceIncrease = 0
  1124. this.gridList.qualityPriceDeduction = 0
  1125. }
  1126. })
  1127. // }
  1128. }
  1129. },
  1130. changeprice() {
  1131. if (this.pricetext == '解锁') {
  1132. this.pricedisabled = false
  1133. this.pricetext = '锁定'
  1134. } else {
  1135. this.pricedisabled = true
  1136. this.pricetext = '解锁'
  1137. }
  1138. },
  1139. inputprice() {
  1140. if (this.pricetext == '锁定') {
  1141. this.pricedisabled = true
  1142. this.pricetext = '解锁'
  1143. }
  1144. console.log(this.gridList.dryGrainPrice, this.gridList.tidalGrainPrice)
  1145. if (this.gridList.type == '干粮') {
  1146. this.dryGrainPrice = this.gridList.dryGrainPrice
  1147. }
  1148. if (this.gridList.type == '潮粮') {
  1149. this.tidalGrainPrice = this.gridList.tidalGrainPrice
  1150. }
  1151. },
  1152. groupChange(e) {
  1153. console.log(e, this.gridListInit)
  1154. this.gridListInit.warehouseName = this.gridList.warehouseName
  1155. if (uni.getStorageSync('checkcustomer')) {
  1156. uni.setStorageSync('checkcustomer', '')
  1157. this.gridListInit.identityId = ''
  1158. this.gridListInit.customerName = ''
  1159. this.gridListInit.customerPhone = ''
  1160. this.gridListInit.carNumber = ''
  1161. this.gridListInit.customerNumberCard = ''
  1162. this.$forceUpdate()
  1163. }
  1164. // this.gridList = JSON.parse(JSON.stringify(this.gridListInit))
  1165. this.gridList = this.$u.deepClone(this.gridListInit)
  1166. this.gridList.serviceManagementType = e
  1167. if (e == 1) {
  1168. if (this.flag != 2) {
  1169. this.gridList.inOutTaskNo = ''
  1170. this.gridList.contractNo = ''
  1171. }
  1172. this.gridList.qualityNo = ''
  1173. this.flag = 2
  1174. // this.contractFlag = 7
  1175. } else {
  1176. if (this.flag != 3) {
  1177. this.gridList.inOutTaskNo = ''
  1178. this.gridList.contractNo = ''
  1179. }
  1180. this.flag = 3
  1181. // this.contractFlag = 10
  1182. // let number = '000' + this.warehouseCount
  1183. // number = number.substring(number.length - 4, number.length)
  1184. // this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
  1185. }
  1186. this.gridList.grade = this.gradeList[1].value
  1187. this.gridList.gradeKey = this.gradeList[1].key
  1188. this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  1189. flag: this.flag,
  1190. warehouseName: this.gridList.warehouseName
  1191. }).then(res => {
  1192. console.log(res)
  1193. for (let i = 0; i < res.data.data.length; i++) {
  1194. this.$set(res.data.data[i],'inOutTaskNo1',res.data.data[i].inOutTaskNo+(res.data.data[i].taskFlag?'('+res.data.data[i].taskFlag+')':''))
  1195. }
  1196. this.taskNolist = res.data.data
  1197. })
  1198. console.log(this.gridList, 111111111111)
  1199. },
  1200. outtypepicker(e, status) {
  1201. console.log(e, status)
  1202. if (status == 0) {
  1203. this.gridList.outType = this.multiSelector[e[0]].name
  1204. } else {
  1205. if (this.multiSelector1[e[0]].name == '他运') {
  1206. this.goodsdisabled = false
  1207. this.gridList.outType = this.multiSelector1[e[0]].name
  1208. } else {
  1209. this.gridList.outType = '自运'
  1210. this.goodsdisabled = true
  1211. this.outType = this.multiSelector1[e[0]].name
  1212. this.gridList.contractNo = this.multiSelector1[i].contractNo
  1213. // if (this.gridList.contractNo == this.contractNolist[i].contractNo) {
  1214. // this.gridList.goodsName = this.outContractNo[q].goodsName
  1215. // this.gridList.goodsNameKey = this.outContractNo[q].goodsNameKey
  1216. // }
  1217. this.$api.doRequest('get', '/contractManagementInfo/getInContract', {
  1218. contractNo: this.gridList.contractNo,
  1219. compId: uni.getStorageSync('pcUserInfo').compId
  1220. }).then(res => {
  1221. this.contractNolist = res.data.data
  1222. this.gridList.goodsName = this.contractNolist.goodsName
  1223. this.gridList.goodsNameKey = this.contractNolist.goodsNameKey
  1224. })
  1225. this.waterContentChange()
  1226. }
  1227. }
  1228. console.log(this.gridList.outType)
  1229. },
  1230. changefreight() {
  1231. this.freightstatus = !this.freightstatus
  1232. if (this.freightstatus) {
  1233. this.freighttext = '自动获取'
  1234. } else {
  1235. this.freighttext = '手动填写'
  1236. }
  1237. },
  1238. changecost() {
  1239. this.coststatus = !this.coststatus
  1240. if (this.coststatus) {
  1241. this.costtext = '自动获取'
  1242. } else {
  1243. this.costtext = '手动填写'
  1244. }
  1245. },
  1246. inOutDatepicker(e) {
  1247. this.gridList.inOutDate = e.year + '-' + e.month + '-' + e.day
  1248. console.log(e)
  1249. },
  1250. fleetpicker(e) {
  1251. this.gridList.fleet = this.fleetNameList[e[0]].fleetName
  1252. },
  1253. change(e) {
  1254. if (e) {
  1255. this.gridList.supplementaryRecording = 1
  1256. } else {
  1257. this.gridList.supplementaryRecording = 0
  1258. }
  1259. },
  1260. tasknopicker(e) {
  1261. console.log("切换任务编号", e)
  1262. this.gridList.inOutTaskNo = this.taskNolist[e[0]].inOutTaskNo
  1263. var data = this.taskNolist[e[0]]
  1264. if (this.taskNolist[e[0]].inOutType == '收购入库') {
  1265. this.gridList.contractNo = this.taskNolist[e[0]].contractNo
  1266. this.inType = this.taskNolist[e[0]].inOutType
  1267. this.gridList.goodsName = this.taskNolist[e[0]].goodsName
  1268. if (this.taskNolist[e[0]].goodsName.indexOf("潮粮") != -1) { //收购从合同中带出货名 单价等信息 用货名是否带有潮粮字符来判断干潮类型
  1269. this.gridList.type = "潮粮"
  1270. this.gridList.imperfectGrain = 8
  1271. this.gridList.impurity = 1
  1272. this.gridList.mildewGrain = 2
  1273. this.gridList.jiaorenli = 0
  1274. } else {
  1275. this.gridList.type = "干粮"
  1276. this.gridList.imperfectGrain = 8
  1277. this.gridList.impurity = 1
  1278. this.gridList.mildewGrain = 2
  1279. this.gridList.jiaorenli = 1
  1280. }
  1281. }
  1282. if (this.taskNolist[e[0]].contractNo) {
  1283. this.gridList.contractNo = this.taskNolist[e[0]].contractNo
  1284. } else {
  1285. this.gridList.contractNo = this.taskNolist[e[0]].moveTaskNo
  1286. }
  1287. this.$api.doRequest('get', '/contractManagementInfo/getInContract', {
  1288. contractNo: this.gridList.contractNo,
  1289. compId: uni.getStorageSync('pcUserInfo').compId
  1290. }).then(res => {
  1291. this.contractNolist = res.data.data
  1292. if (this.typevalue == 3) {
  1293. var gooddata = this.goodsList.filter((item) => {
  1294. return item.goodsName == this.contractNolist.goodsName
  1295. })
  1296. if (this.contractNolist.priceType == "定价收购" && this.inType == "收购入库") {
  1297. this.gridList.dryGrainPrice = Number(this.contractNolist.unitContractPrice / 1000)
  1298. .toFixed(3)
  1299. }
  1300. if (gooddata.length > 0) {
  1301. // 收购入库
  1302. for (let q = 0; q < this.goodsList.length; q++) {
  1303. if (this.goodsList[q].goodsName == this.contractNolist.goodsName) {
  1304. this.gridList.goodsName = this.contractNolist.goodsName
  1305. this.setGoodName([q])
  1306. }
  1307. }
  1308. } else {
  1309. if (this.inType != "收购入库") { //收购入库不校验仓库设置中的货名
  1310. uni.showModal({
  1311. title: '提示',
  1312. content: '仓库设置中无该合同货名',
  1313. showCancel: false,
  1314. confirmText: '返回',
  1315. success: function(res) {
  1316. if (res.confirm) {
  1317. uni.navigateBack({
  1318. delta: 1
  1319. })
  1320. }
  1321. }
  1322. });
  1323. }
  1324. }
  1325. } else {
  1326. this.gridList.goodsName = this.contractNolist.goodsName
  1327. if (this.gridList.goodsName == '玉米') {
  1328. this.gridList.type = '干粮'
  1329. this.gridList.imperfectGrain = 8
  1330. this.gridList.impurity = 1
  1331. this.gridList.mildewGrain = 2
  1332. this.gridList.jiaorenli = 1
  1333. if (this.contractNolist.priceType != '随行就市') {
  1334. this.gridList.dryGrainPrice = Number(this.contractNolist.contractPrice / 1000)
  1335. .toFixed(3)
  1336. }
  1337. this.edit = true
  1338. } else if (this.gridList.goodsName.indexOf('潮粮') > -1) {
  1339. this.gridList.type = '潮粮'
  1340. this.edit = true
  1341. if (this.contractNolist.priceType != '随行就市') {
  1342. this.gridList.tidalGrainPrice = this.contractNolist.contractPrice
  1343. this.tidalGrainPrice = this.contractNolist.contractPrice
  1344. }
  1345. this.gridList.imperfectGrain = 8
  1346. this.gridList.impurity = 1
  1347. this.gridList.mildewGrain = 2
  1348. this.gridList.jiaorenli = 0
  1349. } else {
  1350. this.gridList.type = '干粮'
  1351. this.gridList.imperfectGrain = 8
  1352. this.gridList.impurity = 1
  1353. this.gridList.mildewGrain = 2
  1354. this.gridList.jiaorenli = 1
  1355. this.edit = false
  1356. if (this.contractNolist.priceType != '随行就市') {
  1357. this.gridList.dryGrainPrice = Number(this.contractNolist.contractPrice / 1000)
  1358. .toFixed(3)
  1359. }
  1360. }
  1361. }
  1362. this.gridList.goodsNameKey = this.contractNolist.goodsNameKey
  1363. this.gridList.grade = this.gradeList[1].value
  1364. this.gridList.gradeKey = this.gradeList[1].key
  1365. // this.gridList.grade = this.contractNolist.grade
  1366. this.gridList.inOutType = this.contractNolist.inOutType
  1367. if(this.gridList.goodsName == "大豆"){ //货名为大豆是设置默认
  1368. this.gridList.transgene= "非转基因"
  1369. this.gridList.reTransgene= "非转基因"
  1370. this.gridList.colorLustre = "正常"
  1371. this.gridList.reColorLustre = "正常"
  1372. }else{
  1373. delete this.gridList.transgene
  1374. delete this.gridList.reTransgene
  1375. delete this.gridList.colorLustre
  1376. delete this.gridList.reColorLustre
  1377. }
  1378. if (this.gridList.inOutType == '采购入库') {
  1379. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1380. // this.gridList.qualityNo='CGRK'+this.getdate()+this.commonWarehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1381. if (!this.contractNolist.unitContractPrice) {
  1382. this.gridList.tips = '卖方' + this.contractNolist.seller
  1383. } else {
  1384. this.gridList.tips = '卖方' + this.contractNolist.seller + '( ' + this.contractNolist
  1385. .unitContractPrice + '元/吨)'
  1386. }
  1387. this.gridList.inOutTypeKey = 1
  1388. console.log("this.gridList.inOutTypeKey", 1)
  1389. } else if (this.gridList.inOutType == '移库入库') {
  1390. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1391. // this.gridList.qualityNo='YKRK'+this.getdate()+this.commonWarehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1392. if (this.contractNolist.unitContractPrice) {
  1393. this.gridList.tips = '出货库' + data.sendWarehouse + ' (' + this.contractNolist
  1394. .unitContractPrice + '元/吨)'
  1395. } else {
  1396. this.gridList.tips = '出货库' + data.sendWarehouse
  1397. }
  1398. this.gridList.inOutTypeKey = 3
  1399. } else if (this.contractNolist.inOutType == '移库出库') {
  1400. this.gridList.tips = '入货库' + data.receiveWarehouse
  1401. } else if (this.contractNolist.inOutType == '暂存入库') {
  1402. this.gridList.inOutTypeKey = 4
  1403. } else if (this.contractNolist.inOutType == '贸易服务入库') {
  1404. this.gridList.inOutTypeKey = 5
  1405. } else if (this.contractNolist.inOutType == '退库') {
  1406. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1407. // this.gridList.qualityNo = 'CGRK' + this.getdate() + this.commonWarehouseNo + this
  1408. // .warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1409. if (this.contractNolist.contractNo) {
  1410. this.gridList.tips = '买方' + this.contractNolist.buyer
  1411. } else {
  1412. this.gridList.tips = '出货库' + data.sendWarehouse
  1413. }
  1414. this.gridList.inOutTypeKey = 6
  1415. }
  1416. this.cost = this.contractNolist.contractPrice
  1417. if (this.cost) {
  1418. this.isGetCost = true
  1419. this.gridList.cost = this.cost - this.gridList.deductionAmount
  1420. } else {
  1421. this.isGetCost = false
  1422. this.gridList.cost = this.gridList.cost
  1423. }
  1424. if (this.contractNolist.inOutType == '移库入库') {
  1425. this.isSelectType = false
  1426. } else {
  1427. this.isSelectType = true
  1428. }
  1429. if (this.contractNolist.priceType == '随行就市') {
  1430. this.disabled1 = true
  1431. } else {
  1432. this.disabled1 = false
  1433. }
  1434. if (this.contractNolist.deliverType == '1') {
  1435. this.carstatus = true
  1436. } else {
  1437. this.carstatus = false
  1438. }
  1439. this.tranCarInfoList = []
  1440. if (this.contractNolist.tranCarInfoList) {
  1441. for (var q = 0; q < this.contractNolist.tranCarInfoList.length; q++) {
  1442. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist.tranCarInfoList[q]
  1443. .carNo
  1444. if (this.contractNolist.tranCarInfoList[q].tranCarNo) {
  1445. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist
  1446. .tranCarInfoList[q].carNo + '(' + this.contractNolist.tranCarInfoList[q]
  1447. .tranCarNo + ')'
  1448. } else {
  1449. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist.tranCarInfoList
  1450. .carNo
  1451. }
  1452. }
  1453. this.tranCarInfoList = this.contractNolist.tranCarInfoList
  1454. // this.carstatus = true
  1455. } else {
  1456. this.tranCarInfoList = []
  1457. }
  1458. this.fleetNameList = this.contractNolist.tranCarInfoList1
  1459. if (this.gridList.goodsName && this.gridList.customerNumberCard) {
  1460. uni.showLoading({
  1461. title: '加载中',
  1462. mask: true
  1463. })
  1464. let that = this
  1465. this.$api.doRequest('get',
  1466. '/qualityInspectionManagement/getQualityInspectionManagementMap', {
  1467. goodsName: this.gridList.goodsName,
  1468. compId: uni.getStorageSync('pcUserInfo').compId,
  1469. customerNumberCard: this.gridList.customerNumberCard
  1470. }).then(res => {
  1471. uni.hideLoading();
  1472. if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data
  1473. .D - 50) {
  1474. that.redstatus = true
  1475. } else {
  1476. that.redstatus = false
  1477. }
  1478. var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) +
  1479. '吨,' : ''
  1480. var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) +
  1481. '吨,' : ''
  1482. var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
  1483. that.gridList.volumeofbusiness = a + b + c
  1484. console.log(that.gridList.volumeofbusiness)
  1485. that.$forceUpdate()
  1486. })
  1487. }
  1488. })
  1489. this.$forceUpdate()
  1490. console.log(this.gridList)
  1491. },
  1492. print() {
  1493. console.log(this.printId)
  1494. if(this.printId){
  1495. uni.showLoading({
  1496. title:"加载中",
  1497. mask:true
  1498. })
  1499. this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
  1500. id: this.printId
  1501. }).then(res => {
  1502. uni.hideLoading()
  1503. uni.setStorageSync("quality_print", res.data.data)
  1504. uni.navigateTo({
  1505. url: '/pages/erpbusiness/bleConnect'
  1506. })
  1507. })
  1508. }
  1509. },
  1510. close() {
  1511. this.isShowPrint = false
  1512. uni.navigateBack({})
  1513. },
  1514. hidden() {
  1515. this.$refs.keyboard.open(false)
  1516. },
  1517. handleShowKeyboard() {
  1518. if (this.$refs.keyboard.open) {
  1519. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  1520. } else {
  1521. this.$refs.keyboard[0].open(true)
  1522. }
  1523. },
  1524. handleShowKeyboard1() {
  1525. if (this.$refs.keyboard1.open) {
  1526. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  1527. } else {
  1528. this.$refs.keyboard1[0].open(true)
  1529. }
  1530. },
  1531. handleClick(e) {
  1532. this.gridList.carNumber = e.value //键盘输入值
  1533. },
  1534. cancelClick() {
  1535. this.isShowAlert = false
  1536. },
  1537. waterContentChange() {
  1538. var that = this
  1539. if (this.gridList.goodsName) {
  1540. for (var i = 0; i < this.purchasePriceList.length; i++) {
  1541. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  1542. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  1543. this.gridList.paramType = this.purchasePriceList[i].paramType
  1544. }
  1545. }
  1546. }
  1547. if (this.inType != "收购入库") { //非收购入库 价格取自合同
  1548. return
  1549. }
  1550. if (this.gridList.goodsName && this.cangid) {
  1551. if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1552. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1553. warehouseId: this.cangid,
  1554. goodsName: this.gridList.goodsName
  1555. }).then(res => {
  1556. that.gridList.dryGrainPrice = res.data.data
  1557. that.dryGrainPrice = res.data.data
  1558. })
  1559. }
  1560. }
  1561. that.gridList.waterPriceIncrease = 0
  1562. that.gridList.waterPriceDeduction = 0
  1563. that.gridList.qualityPriceIncrease = 0
  1564. that.gridList.qualityPriceDeduction = 0
  1565. //潮粮单价改变事件
  1566. if (
  1567. this.gridList.goodsName &&
  1568. this.gridList.waterContent &&
  1569. this.gridList.grade
  1570. ) {
  1571. uni.showLoading({
  1572. title: "加载中",
  1573. mask:true
  1574. })
  1575. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1576. warehouseId: this.cangid,
  1577. goodsName: this.gridList.goodsName,
  1578. waterContent: this.gridList.waterContent,
  1579. grade: this.gridList.grade,
  1580. }).then(res => {
  1581. if (that.gridList.paramType == '1') {
  1582. // console.log(that.gridList)
  1583. if (that.gridList.buckleMiscellaneous) {
  1584. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(
  1585. that
  1586. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1587. .dryGrainPrice)).toFixed(4)
  1588. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1589. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1590. .dryGrainPrice)).toFixed(4)
  1591. }
  1592. if (!that.gridList.tidalGrainPrice) {
  1593. that.gridList.tidalGrainPrice = ''
  1594. }
  1595. if (that.gridList.type == '干粮') {
  1596. that.gridList.dryGrainPrice = res.data.data
  1597. that.dryGrainPrice = that.gridList.dryGrainPrice
  1598. }
  1599. } else {
  1600. that.gridList.tidalGrainPrice = res.data.data
  1601. if (that.gridList.type == '干粮') {
  1602. that.gridList.dryGrainPrice = res.data.data
  1603. that.dryGrainPrice = that.gridList.dryGrainPrice
  1604. } else {
  1605. that.gridList.tidalGrainPrice = res.data.data
  1606. that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1607. }
  1608. }
  1609. uni.hideLoading()
  1610. })
  1611. }
  1612. },
  1613. gocustomer() {
  1614. uni.navigateTo({
  1615. url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList
  1616. .warehouseName + '&goodsName=' + this.gridList.goodsName
  1617. })
  1618. },
  1619. getdate() {
  1620. var date = new Date()
  1621. var year = date.getFullYear() //获取完整的年份(4位)
  1622. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  1623. var datetime = date.getDate() //获取当前日(1-31)
  1624. if (mouth < 10) {
  1625. mouth = '0' + mouth
  1626. }
  1627. if (datetime < 10) {
  1628. datetime = '0' + datetime
  1629. }
  1630. return year + '' + mouth + '' + datetime
  1631. },
  1632. async addQualityInspection(type) {
  1633. if (type == 1) {
  1634. await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
  1635. .gridList)
  1636. .then(res => {
  1637. console.log(res)
  1638. this.printId = res.data.data
  1639. uni.hideLoading()
  1640. if (res.data.code == 200) {
  1641. console.log("addQualityInspection")
  1642. this.$api.msg('提交成功')
  1643. this.gridList.warehouseId = this.cangid
  1644. this.gridList.compId = uni.getStorageSync(
  1645. 'pcUserInfo').compId
  1646. uni.setStorageSync("quality_print", this.gridList)
  1647. if (this.isZJ) {
  1648. this.isShowPrint = true
  1649. } else {
  1650. uni.navigateBack({})
  1651. }
  1652. console.log('that.gridList', this.gridList)
  1653. // uni.navigateBack({})
  1654. } else {
  1655. this.$api.msg('提交失败')
  1656. }
  1657. })
  1658. return
  1659. }
  1660. if (type == 2) {
  1661. await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
  1662. .gridList)
  1663. .then(res => {
  1664. console.log("addQualityInspection")
  1665. this.printId = res.data.data
  1666. uni.hideLoading()
  1667. if (res.data.code == 200) {
  1668. this.$api.msg('提交成功')
  1669. this.gridList.warehouseId = this.cangid
  1670. this.gridList.compId = uni.getStorageSync('pcUserInfo').compId
  1671. uni.setStorageSync("quality_print", this.gridList)
  1672. if (this.isZJ) {
  1673. this.isShowPrint = true
  1674. } else {
  1675. uni.navigateBack({})
  1676. }
  1677. uni.setStorageSync(
  1678. 'checkcustomer', {}
  1679. )
  1680. console.log('that.gridList', this.gridList)
  1681. // uni.navigateBack({})
  1682. } else {
  1683. this.$api.msg('提交失败')
  1684. }
  1685. })
  1686. }
  1687. },
  1688. async inOutWarehouse(type) {
  1689. if (type == 1) {
  1690. await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
  1691. .then(res => {
  1692. console.log("InOutWarehouse")
  1693. this.gridList.warehouseInOutId = res.data.data
  1694. this.addQualityInspection(1)
  1695. })
  1696. return
  1697. }
  1698. if (type == 2) {
  1699. await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
  1700. .then(res => {
  1701. console.log("InOutWarehouse")
  1702. if (this.isQY) {
  1703. if (!this.isZJ) {
  1704. this.gridList.brazer=1
  1705. this.gridList.statusFlag = 7
  1706. } else {
  1707. this.gridList.statusFlag = 0
  1708. }
  1709. }
  1710. this.gridList.warehouseInOutId = res.data.data
  1711. this.addQualityInspection(2)
  1712. })
  1713. return
  1714. }
  1715. },
  1716. async cumulant(type) {
  1717. if (type == 1) {
  1718. await this.$api.doRequest('get', '/paymentManagement/cumulant', {
  1719. compId: uni.getStorageSync('pcUserInfo').compId,
  1720. customerNumberCard: this.gridList.customerNumberCard,
  1721. goodsName: this.gridList.goodsName,
  1722. })
  1723. .then(response => {
  1724. console.log("cumulant")
  1725. if (response.data.code == 200) {
  1726. for (let i = 0; i < this.purchasePriceList.length; i++) {
  1727. if (this.gridList.goodsName == this.purchasePriceList[i].goodsName) {
  1728. let count = (this.purchasePriceList[i].saleLimit - response.data.data /
  1729. 1000)
  1730. .toFixed(2)
  1731. console.log(count, this.purchasePriceList[i].saleLimit, response.data.data)
  1732. if (Number(count) <= 0) {
  1733. count = 0
  1734. this.$api.msg('该客户累计销售' + this.gridList.goodsName + (response.data
  1735. .data /
  1736. 1000).toFixed(2) + '吨,还可售粮' + count + '吨', )
  1737. uni.hideLoading()
  1738. break;
  1739. }
  1740. this.gridList.inOutFlag = 2
  1741. this.inOutWarehouse(2)
  1742. }
  1743. }
  1744. }
  1745. })
  1746. return
  1747. }
  1748. },
  1749. async getGoodsName() {
  1750. let that = this
  1751. await this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  1752. warehouseId: this.cangid
  1753. }).then(res => {
  1754. if (res.data.code != 200 && that.typevalue == 3) {
  1755. uni.showModal({
  1756. content: res.data.message,
  1757. showCancel: false
  1758. })
  1759. return;
  1760. }
  1761. uni.showModal({
  1762. content: "确定提交质检信息?",
  1763. showCancel: true,
  1764. confirmText: '提交',
  1765. success: function(res) {
  1766. if (res.confirm) {
  1767. that.gridList.serviceManagementType = that.typevalue
  1768. if (that.typevalue == 3) {
  1769. that.cumulant(1)
  1770. return
  1771. }
  1772. that.gridList.inOutFlag = 2
  1773. that.inOutWarehouse(1)
  1774. // that.addQualityInspection(1)
  1775. }
  1776. }
  1777. })
  1778. })
  1779. },
  1780. submit() {
  1781. console.log(this.isQY, "isQY")
  1782. console.log(this.isZJ, "isZJ")
  1783. if (this.typevalue == 3) {
  1784. if (this.outType) {
  1785. this.gridList.outType = this.outType
  1786. }
  1787. }
  1788. var that = this
  1789. this.gridList.agent = this.userInfo.userName;
  1790. this.gridList.carNo = this.gridList.carNumber
  1791. this.gridList.baseId = this.cangid
  1792. this.gridList.warehouseId = this.cangid
  1793. if (this.typevalue == 1) {
  1794. if (this.gridList.inOutType == '移库入库') {
  1795. this.gridList.numberLetter = 'YKRK'
  1796. } else {
  1797. this.gridList.numberLetter = 'CGRK'
  1798. }
  1799. } else {
  1800. this.gridList.numberLetter = 'SGRK'
  1801. }
  1802. this.gridList.warehouseNo = this.commonWarehouseNo
  1803. if (!this.gridList.inOutTaskNo) {
  1804. this.$api.msg('任务编号不能为空')
  1805. return
  1806. }
  1807. if (this.utils.getCurrectRoles('acquisitionQuality.initial')) {
  1808. if (!this.gridList.binNumber) {
  1809. this.$api.msg('仓位不能为空')
  1810. return
  1811. }
  1812. if (this.typevalue == 3) {
  1813. if (!this.gridList.natureOfGrainPurchase) {
  1814. this.$api.msg('购粮性质不能为空')
  1815. return
  1816. }
  1817. }
  1818. if (!this.gridList.type) {
  1819. this.$api.msg('类型不能为空')
  1820. return
  1821. }
  1822. if (this.value == false) {
  1823. if (!this.gridList.grade) {
  1824. this.$api.msg('等级不能为空')
  1825. return
  1826. }
  1827. if (!this.gridList.impurity) {
  1828. this.$api.msg('杂质不能为空')
  1829. return
  1830. }
  1831. if (!this.gridList.waterContent) {
  1832. this.$api.msg('初检水分不能为空')
  1833. return
  1834. }
  1835. // if (!this.gridList.reWaterContent) {
  1836. // this.$api.msg('复检水分不能为空')
  1837. // return
  1838. // }
  1839. if (!this.gridList.mildewGrain) {
  1840. this.$api.msg('霉变粒不能为空')
  1841. return
  1842. }
  1843. if (this.gridList.goodsName != "大豆") {
  1844. if (!this.gridList.bulkDensity) {
  1845. this.$api.msg('容重不能为空')
  1846. return
  1847. }
  1848. }
  1849. if(this.gridList.goodsName == "大豆"){
  1850. if (!this.gridList.protein) {
  1851. this.$api.msg('蛋白不能为空')
  1852. return
  1853. }
  1854. }
  1855. if (!this.gridList.jiaorenli && this.gridList.jiaorenli != 0) {
  1856. this.$api.msg('热损伤不能为空')
  1857. return
  1858. }
  1859. if (!this.gridList.imperfectGrain) {
  1860. this.$api.msg('不完整粒不能为空')
  1861. return
  1862. }
  1863. }
  1864. }
  1865. if (this.isQY) {
  1866. if (this.typevalue == 3) {
  1867. if (!this.gridList.customerName) {
  1868. this.$api.msg('客户不能为空')
  1869. return
  1870. }
  1871. }
  1872. if (!this.gridList.carNumber) {
  1873. this.$api.msg('车牌号不能为空')
  1874. return
  1875. }
  1876. if (this.gridList.carNumber.length != 7) {
  1877. this.$api.msg('车牌号输入错误')
  1878. return
  1879. }
  1880. if (!this.gridList.goodsName) {
  1881. this.$api.msg('货名不能为空')
  1882. return
  1883. }
  1884. }
  1885. // 钎样提交
  1886. if (this.isQY && !this.isZJ) {
  1887. that.gridList.serviceManagementType = that.typevalue
  1888. uni.showModal({
  1889. content: "确定提交钎样信息?",
  1890. showCancel: true,
  1891. confirmText: '提交',
  1892. success: function(res) {
  1893. if (res.confirm) {
  1894. // 收购入库
  1895. if (that.typevalue == 3) {
  1896. uni.showLoading({
  1897. title: "加载中",
  1898. mask:true
  1899. })
  1900. that.cumulant(1)
  1901. return
  1902. }
  1903. uni.showLoading({
  1904. title: "加载中",
  1905. mask:true
  1906. })
  1907. that.gridList.inOutFlag = 2
  1908. that.inOutWarehouse(1)
  1909. }
  1910. }
  1911. })
  1912. } else {
  1913. this.gridList.brazer = 0
  1914. this.getGoodsName()
  1915. }
  1916. // // 质检提交
  1917. // if (!this.isQY && this.isZJ) {
  1918. // }
  1919. },
  1920. gradepicker(e) {
  1921. console.log(e)
  1922. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1923. this.gridList.grade = this.gradeList[e[0]].value
  1924. this.gridList.gradeKey = this.gradeList[e[0]].key
  1925. this.waterContentChange()
  1926. },
  1927. setGoodName(e, status) {
  1928. // console.log(this.goodsList[e[0]].goodsName,111111111)
  1929. //
  1930. // [e[0]] = 0
  1931. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1932. if (this.goodsList[e[0]].goodsName == '玉米') {
  1933. this.gridList.type = '干粮'
  1934. this.edit = true
  1935. } else if (this.goodsList[e[0]].goodsName.indexOf('潮粮') > -1) {
  1936. this.gridList.type = '潮粮'
  1937. this.edit = true
  1938. } else {
  1939. this.gridList.type = '干粮'
  1940. this.edit = false
  1941. }
  1942. var that = this
  1943. this.gridList.goodsName = this.goodsList[e[0]].goodsName
  1944. // this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
  1945. // warehouseId: this.cangid,
  1946. // goodsName: this.gridList.goodsName
  1947. // }).then(res => {
  1948. // if (res.data.data) {
  1949. // uni.hideLoading()
  1950. // // let data = res.data.data
  1951. // // that.gridList =data
  1952. // }
  1953. // })
  1954. uni.setStorageSync('goodsName', this.gridList.goodsName)
  1955. if (this.gridList.type == "干粮" && this.gridList.goodsName) {
  1956. if (this.inType == "收购入库") { //收购入库 价格取自合同
  1957. return
  1958. }
  1959. if (!status) {
  1960. uni.showLoading({
  1961. title: '加载中',
  1962. mask: true
  1963. })
  1964. }
  1965. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1966. warehouseId: this.cangid,
  1967. goodsName: this.gridList.goodsName
  1968. }).then(res => {
  1969. this.gridList.dryGrainPrice = res.data.data
  1970. if (!status) {
  1971. uni.hideLoading()
  1972. }
  1973. })
  1974. }
  1975. this.waterContentChange()
  1976. },
  1977. goodspicker(e) {
  1978. console.log(e)
  1979. this.setGoodName(e)
  1980. },
  1981. typepicker(e) {
  1982. var that = this
  1983. this.gridList.type = this.typeList[e[0]]
  1984. if (this.inType == "收购入库") { //收购入库 价格取自合同
  1985. return
  1986. }
  1987. if (this.gridList.type == "干粮" && this.gridList.goodsName) {
  1988. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1989. warehouseId: this.cangid,
  1990. goodsName: this.gridList.goodsName
  1991. }).then(res => {
  1992. that.gridList.dryGrainPrice = res.data.data
  1993. })
  1994. }
  1995. },
  1996. binNumberpicker(e) {
  1997. console.log(this.warehouseList[e[0]])
  1998. this.gridList.binNumber = this.warehouseList[e[0]].binNumber
  1999. this.gridList.positionId = this.warehouseList[e[0]].id
  2000. },
  2001. del(item) {
  2002. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection', {
  2003. id: item.id
  2004. }).then(res => {
  2005. if (res.data.code == 200) {
  2006. this.$api.msg('删除成功')
  2007. } else {
  2008. this.$api.msg('系统异常,请联系管理员')
  2009. }
  2010. })
  2011. },
  2012. contactUs() {
  2013. const that = this
  2014. uni.makePhoneCall({
  2015. // 手机号
  2016. phoneNumber: '18241771147',
  2017. // 成功回调
  2018. success: (res) => {},
  2019. // 失败回调
  2020. fail: (res) => {}
  2021. });
  2022. },
  2023. loadData() {
  2024. // const that = this
  2025. // if(uni.getStorageSync("PageCur")){
  2026. // that.PageCur = uni.getStorageSync("PageCur");
  2027. // }
  2028. // that.userInfoTmp = uni.getStorageSync("userInfo")
  2029. // uni.showLoading({
  2030. // title: '正在加载',
  2031. // mask:true
  2032. // })
  2033. // that.$api.request('integral', 'getIndexData', failres => {
  2034. // that.$api.msg(failres.errmsg)
  2035. // uni.hideLoading()
  2036. // }).then(res => {
  2037. // let data = res.data
  2038. // uni.setStorageSync("message", data.message);
  2039. // uni.setStorageSync("task", data.task);
  2040. // uni.setStorageSync("contract", data.contract);
  2041. // uni.setStorageSync('showTran', data.showTran);
  2042. // that.showTran = data.showTran
  2043. // that.gridList[4].tips = data.task
  2044. // that.gridList[2].tips = data.contract
  2045. // that.companyId = data.companyId
  2046. // uni.hideLoading()
  2047. // })
  2048. },
  2049. confirm() {
  2050. const that = this
  2051. if (!that.inputContent) {
  2052. that.$api.msg('输入不能为空')
  2053. return
  2054. }
  2055. let obj = {}
  2056. obj[that.feild] = that.inputContent
  2057. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  2058. that.userInfo.nickname = that.inputContent
  2059. that.inputContent = ''
  2060. that.$store.commit('login', that.userInfo)
  2061. })
  2062. },
  2063. cancel() {
  2064. this.inputShow = false
  2065. this.inputStatus = 'none'
  2066. this.genderShow = false
  2067. },
  2068. myAccount() {
  2069. uni.navigateTo({
  2070. url: `/pageA/pages/contract`
  2071. })
  2072. },
  2073. /**
  2074. * 统一跳转接口,拦截未登录路由
  2075. * navigator标签现在默认没有转场动画,所以用view
  2076. */
  2077. navTo(url) {
  2078. if (!this.hasLogin) {
  2079. url = '/pages/public/login';
  2080. }
  2081. uni.navigateTo({
  2082. url
  2083. })
  2084. },
  2085. mycarClick(carNo) {
  2086. this.modalName = null
  2087. uni.navigateTo({
  2088. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  2089. })
  2090. },
  2091. scanCode() {
  2092. uni.scanCode({
  2093. success: function(res) {
  2094. uni.navigateTo({
  2095. url: res.result
  2096. })
  2097. }
  2098. })
  2099. },
  2100. hideModal(e) {
  2101. this.modalName = null
  2102. },
  2103. }
  2104. }
  2105. </script>
  2106. <style lang='scss' scoped>
  2107. page {
  2108. background: #F5F6FA;
  2109. }
  2110. .title_b {
  2111. margin: 20rpx 20rpx 0rpx 20rpx;
  2112. padding: 20rpx 10rpx 20rpx 10rpx;
  2113. font-size: 18px;
  2114. font-weight: 550;
  2115. }
  2116. .c-row {
  2117. display: -webkit-box;
  2118. display: -webkit-flex;
  2119. display: flex;
  2120. -webkit-box-align: center;
  2121. -webkit-align-items: center;
  2122. align-items: center;
  2123. padding: 20rpx 30rpx;
  2124. position: relative;
  2125. }
  2126. .con-list {
  2127. -webkit-box-flex: 1;
  2128. -webkit-flex: 1;
  2129. flex: 1;
  2130. display: -webkit-box;
  2131. display: -webkit-flex;
  2132. display: flex;
  2133. -webkit-box-orient: vertical;
  2134. -webkit-box-direction: normal;
  2135. -webkit-flex-direction: column;
  2136. flex-direction: column;
  2137. color: #303133;
  2138. line-height: 40rpx;
  2139. text-align: right;
  2140. padding-right: 20rpx;
  2141. }
  2142. .wrap {
  2143. padding-bottom: 10px;
  2144. font-size: 14px;
  2145. background: #fff;
  2146. margin: 10px;
  2147. border-radius: 10px;
  2148. input {
  2149. font-size: 14px;
  2150. }
  2151. >.title {
  2152. padding: 10px 16px;
  2153. }
  2154. }
  2155. .footer {
  2156. background: #fff;
  2157. position: fixed;
  2158. bottom: 0;
  2159. width: 100%;
  2160. padding: 20px 10px;
  2161. z-index: 10;
  2162. .button {
  2163. background: #22C572;
  2164. width: 90%;
  2165. margin: 20rpx auto;
  2166. padding: 10px;
  2167. color: #fff;
  2168. text-align: center;
  2169. border-radius: 30px;
  2170. }
  2171. }
  2172. .buns_item {
  2173. display: flex;
  2174. padding: 80rpx 0 50rpx 0;
  2175. justify-content: space-around;
  2176. }
  2177. .but_css {
  2178. background: #22C572;
  2179. width: 40%;
  2180. padding: 20rpx;
  2181. color: #fff;
  2182. text-align: center;
  2183. border-radius: 20rpx;
  2184. }
  2185. /deep/.u-radio-group {
  2186. flex-direction: row-reverse;
  2187. }
  2188. </style>