add_quality_testing.vue 75 KB

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