add_quality_testing.vue 78 KB

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