add_quality_testing.vue 58 KB

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