add_quality_testing.vue 58 KB

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