add_quality_testing.vue 75 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269
  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.inOutTaskNo1?gridList.inOutTaskNo1:'请选择任务编号'}}</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!="汽运")&&gridList.tranTaskFlag!="1"'>
  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=="汽运"||gridList.tranTaskFlag=="1"'>
  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. tranTaskFlag:0,
  538. dryGrainPrice: 0,
  539. tidalGrainPrice: 0,
  540. modalName: '',
  541. pricetext: '锁定',
  542. pricedisabled: false,
  543. show8: false,
  544. mycarStyle: '',
  545. feild: undefined,
  546. id: 0,
  547. outType: '他运',
  548. show: false,
  549. show4: false,
  550. show5: false,
  551. show6: false,
  552. show7: false,
  553. show9: false,
  554. edit: true,
  555. goodsdisabled: false,
  556. freighttext: '手动填写',
  557. costtext: '手动填写',
  558. selector: [],
  559. show1: false,
  560. inputContent: '',
  561. multiSelector1: [{
  562. name: '他运',
  563. value: '他运'
  564. }],
  565. printId: '',
  566. typevalue: '3',
  567. coverTransform: 'translateY(0px)',
  568. coverTransition: '0s',
  569. moving: false,
  570. footprintList: [],
  571. searchKeyWord: '',
  572. isVip: false,
  573. userInfoTmp: [],
  574. inputStatus: 'none',
  575. carInfo: [],
  576. gridCol: 4,
  577. freightstatus: false,
  578. coststatus: false,
  579. pageSize: 10,
  580. show3: false,
  581. show2: false,
  582. goodsList: [],
  583. currentPage: 1,
  584. value: false,
  585. gridBorder: false,
  586. headUrl: "../../static/img/myimg/YongHu@3x.png",
  587. userphone: "",
  588. username: "请更改昵称",
  589. contractFlag: 10,
  590. gridList: {
  591. outType: '汽运',
  592. natureOfGrainPurchase: '贸易粮',
  593. type: '',
  594. tidalGrainPrice: '',
  595. dryGrainPrice: '',
  596. buckleMiscellaneous: '',
  597. carNumber: '',
  598. customerName: '',
  599. customerPhone: '',
  600. bulkDensity: "",
  601. imperfectGrain: "",
  602. waterPriceIncrease: 0,
  603. waterPriceDeduction: 0,
  604. qualityPriceIncrease: 0,
  605. qualityPriceDeduction: 0,
  606. waterContent: "",
  607. jiaorenli: "",
  608. impurity: "",
  609. mildewGrain: "",
  610. compName: "",
  611. type: '',
  612. freight: 0,
  613. cost: '',
  614. addressUrl: '',
  615. tidalGrainPrice: 0,
  616. buckleWeightRatio: 0,
  617. buckleMiscellaneous: 0,
  618. paramType: 1,
  619. warehouseInOutDetail: {
  620. grade: '',
  621. reGrade: '',
  622. imperfectGrain: '',
  623. reImperfectGrain: '',
  624. impurity: '',
  625. reImpurity: '',
  626. jiaorenli: '',
  627. reJiaorenli: '',
  628. bulkDensity: '',
  629. reBulkDensity: '',
  630. mildewGrain: '',
  631. reMildewGrain: '',
  632. },
  633. disablednotarize: false,
  634. deductionAmount: 0,
  635. deductionWeight: 0,
  636. grossWeight: 0,
  637. tare: 0,
  638. grade: '',
  639. inOutDate: new Date().toISOString().slice(0, 10),
  640. netWeight: 0,
  641. pureWeight: 0,
  642. deductionWeight: 0,
  643. waterContent: '',
  644. reWaterContent: '',
  645. reGrade: '',
  646. imperfectGrain: '',
  647. reImperfectGrain: '',
  648. impurity: '',
  649. reImpurity: '',
  650. jiaorenli: '',
  651. reJiaorenli: '',
  652. bulkDensity: '',
  653. reBulkDensity: '',
  654. reMemo: '',
  655. storageTagNo: '',
  656. mildewGrain: '',
  657. reMildewGrain: '',
  658. boxNo: '',
  659. boxNoOther: '',
  660. titleNo: '',
  661. titleNoOther: '',
  662. statusFlag: 1
  663. },
  664. gridListInit: {
  665. natureOfGrainPurchase: '贸易粮',
  666. type: '',
  667. tidalGrainPrice: '',
  668. dryGrainPrice: '',
  669. buckleMiscellaneous: '',
  670. carNumber: '',
  671. customerName: '',
  672. customerPhone: '',
  673. bulkDensity: "",
  674. imperfectGrain: "",
  675. waterContent: "",
  676. jiaorenli: "",
  677. impurity: "",
  678. mildewGrain: "",
  679. compName: "",
  680. type: '',
  681. freight: 0,
  682. cost: '',
  683. addressUrl: '',
  684. tidalGrainPrice: 0,
  685. buckleWeightRatio: 0,
  686. buckleMiscellaneous: 0,
  687. paramType: 1,
  688. warehouseInOutDetail: {
  689. grade: '',
  690. reGrade: '',
  691. imperfectGrain: '',
  692. reImperfectGrain: '',
  693. impurity: '',
  694. reImpurity: '',
  695. jiaorenli: '',
  696. reJiaorenli: '',
  697. bulkDensity: '',
  698. reBulkDensity: '',
  699. mildewGrain: '',
  700. reMildewGrain: '',
  701. },
  702. disablednotarize: false,
  703. deductionAmount: 0,
  704. deductionWeight: 0,
  705. grossWeight: 0,
  706. tare: 0,
  707. grade: '',
  708. // inOutDate: new Date().toISOString().slice(0, 10),
  709. netWeight: 0,
  710. pureWeight: 0,
  711. deductionWeight: 0,
  712. waterContent: '',
  713. reWaterContent: '',
  714. reGrade: '',
  715. imperfectGrain: '',
  716. reImperfectGrain: '',
  717. impurity: '',
  718. reImpurity: '',
  719. jiaorenli: '',
  720. reJiaorenli: '',
  721. bulkDensity: '',
  722. reBulkDensity: '',
  723. reMemo: '',
  724. storageTagNo: '',
  725. mildewGrain: '',
  726. reMildewGrain: '',
  727. boxNo: '',
  728. boxNoOther: '',
  729. titleNo: '',
  730. titleNoOther: '',
  731. statusFlag: 1
  732. },
  733. typeList: ['潮粮', '干粮'],
  734. managementType: '',
  735. flag: 2,
  736. warehouseName: '',
  737. warehouseList: [],
  738. warehouseCount: '',
  739. commonWarehouseNo: '',
  740. warehouseTradeCount: 0,
  741. showTran: true,
  742. companyId: 1,
  743. contractNolist: [],
  744. current: 4,
  745. taskNolist: [],
  746. tranCarInfoList: [],
  747. fleetNameList: [],
  748. multiSelector: [{
  749. name: '汽运',
  750. value: '0',
  751. },
  752. {
  753. name: '火运',
  754. value: '1',
  755. },
  756. {
  757. name: '集装箱船',
  758. value: '2',
  759. },
  760. {
  761. name: '散船',
  762. value: '3',
  763. },
  764. ],
  765. gradeList: [{
  766. key: 1,
  767. value: '一等品'
  768. },
  769. {
  770. key: 2,
  771. value: '二等品'
  772. },
  773. {
  774. key: 3,
  775. value: '三等品'
  776. },
  777. {
  778. key: 4,
  779. value: '等外'
  780. },
  781. ],
  782. cangid: '',
  783. inType: "" ,//入库类型
  784. transgeneShow:false,
  785. transgeneList:[{value:'非转基因'},{value:'转基因'}],
  786. colorLustreShow : false,
  787. colorLustreList:[{value:'正常'},{value:'异常'}]
  788. }
  789. },
  790. // #ifndef MP
  791. onNavigationBarButtonTap(e) {
  792. const index = e.index;
  793. if (index === 0) {
  794. this.navTo('/pages/set/set');
  795. } else if (index === 1) {
  796. // #ifdef APP-PLUS
  797. const pages = getCurrentPages();
  798. const page = pages[pages.length - 1];
  799. const currentWebview = page.$getAppWebview();
  800. currentWebview.hideTitleNViewButtonRedDot({
  801. index
  802. });
  803. // #endif
  804. uni.navigateTo({
  805. url: '/pages/notice/notice'
  806. })
  807. }
  808. },
  809. // #endif
  810. computed: {
  811. ...mapState(['hasLogin', 'userInfo']),
  812. // 手机号中间4位加*
  813. starUserphone() {
  814. let reg = /^(\d{3})\d{4}(\d{4})$/;
  815. if (this.userphone) {
  816. return this.userphone.replace(reg, "$1****$2");
  817. }
  818. }
  819. },
  820. onLoad(options) {
  821. that = this
  822. console.log(that)
  823. console.log(this.cangid)
  824. this.commonWarehouseNo = options.commonWarehouseNo
  825. this.warehouseCount = Number(options.warehouseCount) + 1
  826. this.warehouseTradeCount = Number(options.warehouseTradeCount) + 1
  827. let number = '000' + this.warehouseCount
  828. number = number.substring(number.length - 4, number.length)
  829. this.gridList.warehouseName = options.warehouseName
  830. // this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
  831. this.cangid = options.cangid
  832. this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
  833. id: this.cangid
  834. }).then(res => {
  835. console.log(res)
  836. this.warehouseList = res.data.data.warehousePositionInfoList
  837. })
  838. if (uni.getStorageSync('compName1')) {
  839. this.gridList.compName = uni.getStorageSync('compName1').company
  840. }
  841. this.gridList.person = options.personCharge
  842. this.gridList.personPhone = options.personPhone
  843. this.gridList.qualityInspector = uni.getStorageSync("userInfo").userName
  844. // this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  845. // warehouseId: this.cangid
  846. // }).then(res => {
  847. // if (res.data.data) {
  848. // this.setGoodName([0])
  849. // }
  850. // })
  851. this.managementType = options.managementType
  852. let that = this
  853. this.purchasePriceList = uni.getStorageSync('purchasePriceList')
  854. // if (uni.getStorageSync('checkcustomer')) {
  855. // let _customerInfo = uni.getStorageSync('checkcustomer')
  856. // if (_customerInfo.shipperName) {
  857. // this.gridList.identityId = _customerInfo.id
  858. // //点击登记客户
  859. // this.gridList.customerName = _customerInfo.shipperName
  860. // this.gridList.customerPhone = _customerInfo.shipperPhone
  861. // this.gridList.carNumber=_customerInfo.carNo
  862. // } else {
  863. // //点击搜索客户
  864. // this.gridList.customerName = _customerInfo.customerName
  865. // this.gridList.customerPhone = _customerInfo.customerPhone
  866. // }
  867. // this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  868. // }
  869. this.gridList.grade = this.gradeList[1].value
  870. this.gridList.gradeKey = this.gradeList[1].key
  871. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  872. warehouseId: this.cangid
  873. }).then(res => {
  874. if (res.data.data) {
  875. that.goodsList = res.data.data
  876. if (that.goodsList.length > 0) {
  877. that.gridList.goodsName = that.goodsList[0].goodsName
  878. uni.setStorageSync('purchasePriceList', that.goodsList)
  879. that.purchasePriceList = uni.getStorageSync('purchasePriceList')
  880. }
  881. } else if (res.data.code != 200) {
  882. uni.showModal({
  883. content: res.data.message,
  884. showCancel: false
  885. })
  886. }
  887. })
  888. console.log(this.gridList)
  889. this.gridListInit = this.gridList
  890. },
  891. async onShow() {
  892. this.isQY = this.utils.getCurrectRoles('acquisitionQuality.qview')
  893. this.isZJ = this.utils.getCurrectRoles('acquisitionQuality.initial')
  894. if (this.isZJ && !this.isQY) {
  895. this.typevalue = '1'
  896. this.contractFlag = 7
  897. } else {
  898. this.typevalue = '3'
  899. this.contractFlag = 10
  900. }
  901. uni.showLoading({
  902. title: '加载中',
  903. mask: true
  904. })
  905. if (this.typevalue == '3') {
  906. this.flag = 3
  907. } else {
  908. this.flag = 2
  909. }
  910. await this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  911. flag: this.flag,
  912. warehouseName: this.gridList.warehouseName
  913. }).then(res => {
  914. console.log(1)
  915. console.log(res)
  916. for (let i = 0; i < res.data.data.length; i++) {
  917. this.$set(res.data.data[i],'inOutTaskNo1',res.data.data[i].inOutTaskNo+(res.data.data[i].taskFlag?'('+res.data.data[i].taskFlag+')':''))
  918. }
  919. console.log(res.data.data,22222)
  920. this.taskNolist = res.data.data
  921. })
  922. this.multiSelector1 = [{
  923. name: '他运',
  924. value: '他运'
  925. }]
  926. await this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
  927. warehouseName: this.gridList.warehouseName
  928. }).then(res => {
  929. uni.hideLoading();
  930. console.log(2)
  931. // console.log(res)
  932. if (res.data.data.contractManagementInfoList) {
  933. for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
  934. res.data.data.contractMangementInfoList[i].name = '自运 (' +
  935. res.data.data.contractMangementInfoList[i].contractNo + ' ' + res.data.data
  936. .contractMangementInfoList[i].seller + ')'
  937. this.multiSelector1.push(res.data.data.contractManagementInfoList[i])
  938. }
  939. } else {
  940. this.multiSelector1 = [{
  941. name: '他运',
  942. value: '他运'
  943. }]
  944. }
  945. // this.taskNolist=res.data.data
  946. })
  947. if (uni.getStorageSync('checkcustomer')) {
  948. let _customerInfo = uni.getStorageSync('checkcustomer')
  949. if (_customerInfo.shipperName) {
  950. this.gridList.identityId = _customerInfo.id
  951. //点击登记客户
  952. this.gridList.customerName = _customerInfo.shipperName
  953. this.gridList.customerPhone = _customerInfo.shipperPhone
  954. this.gridList.carNumber = _customerInfo.carNo
  955. } else {
  956. //点击搜索客户
  957. this.gridList.customerName = _customerInfo.customerName
  958. this.gridList.customerPhone = _customerInfo.customerPhone
  959. }
  960. this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  961. var that = this
  962. setTimeout(() => {}, 1000)
  963. console.log(this.gridList.goodsName)
  964. if (!this.gridList.goodsName) {
  965. this.gridList.goodsName = uni.getStorageSync('goodsName')
  966. }
  967. if (this.gridList.goodsName) {
  968. uni.showLoading({
  969. title: '加载中',
  970. mask: true
  971. })
  972. await this.$api.doRequest('get',
  973. '/qualityInspectionManagement/getQualityInspectionManagementMap', {
  974. goodsName: this.gridList.goodsName,
  975. compId: uni.getStorageSync('pcUserInfo').compId,
  976. customerNumberCard: this.gridList.customerNumberCard,
  977. warehouseName: this.gridList.warehouseName
  978. }).then(res => {
  979. uni.hideLoading();
  980. if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data.D - 50) {
  981. that.redstatus = true
  982. } else {
  983. that.redstatus = false
  984. }
  985. var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) + '吨,' : ''
  986. var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) + '吨,' : ''
  987. var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
  988. that.gridList.volumeofbusiness = a + b + c
  989. console.log(that.gridList.volumeofbusiness)
  990. that.$forceUpdate()
  991. })
  992. }
  993. }
  994. },
  995. methods: {
  996. colorLustreClick(e){
  997. this.gridList.colorLustre = this.colorLustreList[e[0]].value
  998. },
  999. transgeneClick(e){
  1000. this.gridList.transgene = this.transgeneList[e[0]].value
  1001. },
  1002. Cancelword() {
  1003. this.bottomHeight = '10rpx';
  1004. this.MykeywordShow = false;
  1005. this.InputEvent = '';
  1006. },
  1007. goNext(val) {
  1008. var inputList = Equ_List;
  1009. if (this.menuIndex == 1) {
  1010. inputList = Sign_List;
  1011. }
  1012. var index = inputList.indexOf(val);
  1013. this.setScrollTops(val);
  1014. if (index < inputList.length - 1) {
  1015. this.InputEvent = inputList[index + 1];
  1016. } else {
  1017. this.InputEvent = ''
  1018. this.bottomHeight = '10rpx';
  1019. this.MykeywordShow = false;
  1020. }
  1021. },
  1022. mykeywordset(datatxt) {
  1023. var arr = JSON.parse(datatxt);
  1024. this.gridList[arr.even] = arr.value;
  1025. if (arr.even == 'waterContent') {
  1026. this.waterContentChange()
  1027. } else if (arr.even == 'bulkDensity') {
  1028. this.obtainPrice()
  1029. }
  1030. },
  1031. SetInputKey(even) {
  1032. uni.hideKeyboard();
  1033. this.InputEvent = even;
  1034. this.setScrollTops(even);
  1035. if (!this.MykeywordShow) {
  1036. this.bottomHeight = '320rpx';
  1037. this.MykeywordShow = true;
  1038. }
  1039. },
  1040. setScrollTops(even) {
  1041. var inputList = Equ_List;
  1042. var index = inputList.indexOf(even);
  1043. this.viewTop = (index + 1) * 60 + 100;
  1044. },
  1045. pricefocus(e, status) {
  1046. console.log(e)
  1047. if (status == 1) {
  1048. if (e.detail.value == 0) {
  1049. this.gridList.waterPriceIncrease = ''
  1050. }
  1051. } else if (status == 2) {
  1052. if (e.detail.value == 0) {
  1053. this.gridList.waterPriceDeduction = ''
  1054. }
  1055. } else if (status == 3) {
  1056. if (e.detail.value == 0) {
  1057. this.gridList.qualityPriceIncrease = ''
  1058. }
  1059. } else if (status == 4) {
  1060. if (e.detail.value == 0) {
  1061. this.gridList.qualityPriceDeduction = ''
  1062. }
  1063. }
  1064. },
  1065. deductionchange() {
  1066. if (this.gridList.type == '干粮') {
  1067. if (this.dryGrainPrice != '') {
  1068. console.log(Number(this.dryGrainPrice + (this.gridList.waterPriceIncrease / 1000) - (this.gridList
  1069. .waterPriceDeduction / 1000) + (this.gridList.qualityPriceIncrease / 1000) - (this
  1070. .gridList.qualityPriceDeduction / 1000)), Number(this.dryGrainPrice + (this.gridList
  1071. .waterPriceIncrease / 1000) - (this.gridList.waterPriceDeduction / 1000) + (this
  1072. .gridList.qualityPriceIncrease / 1000) - (this.gridList.qualityPriceDeduction /
  1073. 1000)).toFixed(2))
  1074. this.gridList.dryGrainPrice = Number(this.dryGrainPrice + (this.gridList.waterPriceIncrease /
  1075. 1000) - (this.gridList.waterPriceDeduction / 1000) + (this.gridList
  1076. .qualityPriceIncrease /
  1077. 1000) - (this.gridList.qualityPriceDeduction / 1000)).toFixed(4)
  1078. }
  1079. } else if (this.gridList.type == '潮粮') {
  1080. if (this.tidalGrainPrice != '') {
  1081. this.gridList.tidalGrainPrice = Number(this.tidalGrainPrice + (this.gridList.waterPriceIncrease /
  1082. 1000) - (this.gridList.waterPriceDeduction / 1000) + (this.gridList
  1083. .qualityPriceIncrease / 1000) - (this.gridList.qualityPriceDeduction / 1000)).toFixed(4)
  1084. }
  1085. }
  1086. this.$forceUpdate()
  1087. },
  1088. carNopicker(e) {
  1089. this.gridList.carNumber = this.tranCarInfoList[e[0]].carNo
  1090. for (let i = 0; i < this.tranCarInfoList.length; i++) {
  1091. if (i == e[0]) {
  1092. this.gridList.carNo = this.tranCarInfoList[i].carNo
  1093. this.gridList.carNoCopy = this.tranCarInfoList[i].carNo + '(' + this.tranCarInfoList[i].tranCarNo +
  1094. ')'
  1095. this.gridList.tranCarNo = this.tranCarInfoList[i].tranCarNo
  1096. this.gridList.carId = this.tranCarInfoList[i].id
  1097. this.gridList.freight = Math.round(
  1098. this.tranCarInfoList[i].tranPrice
  1099. )
  1100. if (this.gridList.inOutType == '移库入库') {
  1101. if (!this.gridList.cost) {
  1102. this.gridList.cost = this.tranCarInfoList[i].cost
  1103. }
  1104. this.gridList.loadNetWeight =
  1105. this.tranCarInfoList[i].loadNetWeight
  1106. }
  1107. }
  1108. }
  1109. },
  1110. obtainPrice() { //根据容重获取价格
  1111. if (this.gridList.goodsName && this.cangid && this.gridList.bulkDensity) {
  1112. // if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1113. let quality = this.gridList.goodsName=='大豆'?this.gridList.protein:this.gridList.bulkDensity
  1114. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1115. warehouseId: this.cangid,
  1116. goodsName: this.gridList.goodsName,
  1117. bulkDensity: quality
  1118. }).then(res => {
  1119. if (res.data.data != 0) {
  1120. this.gridList.dryGrainPrice = res.data.data
  1121. this.dryGrainPrice = res.data.data
  1122. this.gridList.waterPriceIncrease = 0
  1123. this.gridList.waterPriceDeduction = 0
  1124. this.gridList.qualityPriceIncrease = 0
  1125. this.gridList.qualityPriceDeduction = 0
  1126. }
  1127. })
  1128. // }
  1129. }
  1130. },
  1131. changeprice() {
  1132. if (this.pricetext == '解锁') {
  1133. this.pricedisabled = false
  1134. this.pricetext = '锁定'
  1135. } else {
  1136. this.pricedisabled = true
  1137. this.pricetext = '解锁'
  1138. }
  1139. },
  1140. inputprice() {
  1141. if (this.pricetext == '锁定') {
  1142. this.pricedisabled = true
  1143. this.pricetext = '解锁'
  1144. }
  1145. console.log(this.gridList.dryGrainPrice, this.gridList.tidalGrainPrice)
  1146. if (this.gridList.type == '干粮') {
  1147. this.dryGrainPrice = this.gridList.dryGrainPrice
  1148. }
  1149. if (this.gridList.type == '潮粮') {
  1150. this.tidalGrainPrice = this.gridList.tidalGrainPrice
  1151. }
  1152. },
  1153. groupChange(e) {
  1154. console.log(e, this.gridListInit)
  1155. this.gridListInit.warehouseName = this.gridList.warehouseName
  1156. if (uni.getStorageSync('checkcustomer')) {
  1157. uni.setStorageSync('checkcustomer', '')
  1158. this.gridListInit.identityId = ''
  1159. this.gridListInit.customerName = ''
  1160. this.gridListInit.customerPhone = ''
  1161. this.gridListInit.carNumber = ''
  1162. this.gridListInit.customerNumberCard = ''
  1163. this.$forceUpdate()
  1164. }
  1165. // this.gridList = JSON.parse(JSON.stringify(this.gridListInit))
  1166. this.gridList = this.$u.deepClone(this.gridListInit)
  1167. this.gridList.serviceManagementType = e
  1168. if (e == 1) {
  1169. if (this.flag != 2) {
  1170. this.gridList.inOutTaskNo = ''
  1171. this.gridList.contractNo = ''
  1172. }
  1173. this.gridList.qualityNo = ''
  1174. this.flag = 2
  1175. // this.contractFlag = 7
  1176. } else {
  1177. if (this.flag != 3) {
  1178. this.gridList.inOutTaskNo = ''
  1179. this.gridList.contractNo = ''
  1180. }
  1181. this.flag = 3
  1182. // this.contractFlag = 10
  1183. // let number = '000' + this.warehouseCount
  1184. // number = number.substring(number.length - 4, number.length)
  1185. // this.gridList.qualityNo = 'SGRK' + this.getdate() + this.commonWarehouseNo + number
  1186. }
  1187. this.gridList.grade = this.gradeList[1].value
  1188. this.gridList.gradeKey = this.gradeList[1].key
  1189. this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  1190. flag: this.flag,
  1191. warehouseName: this.gridList.warehouseName
  1192. }).then(res => {
  1193. console.log(res)
  1194. for (let i = 0; i < res.data.data.length; i++) {
  1195. this.$set(res.data.data[i],'inOutTaskNo1',res.data.data[i].inOutTaskNo+(res.data.data[i].taskFlag?'('+res.data.data[i].taskFlag+')':''))
  1196. }
  1197. this.taskNolist = res.data.data
  1198. })
  1199. console.log(this.gridList, 111111111111)
  1200. },
  1201. outtypepicker(e, status) {
  1202. console.log(e, status)
  1203. if (status == 0) {
  1204. this.gridList.outType = this.multiSelector[e[0]].name
  1205. } else {
  1206. if (this.multiSelector1[e[0]].name == '他运') {
  1207. this.goodsdisabled = false
  1208. this.gridList.outType = this.multiSelector1[e[0]].name
  1209. } else {
  1210. this.gridList.outType = '自运'
  1211. this.goodsdisabled = true
  1212. this.outType = this.multiSelector1[e[0]].name
  1213. this.gridList.contractNo = this.multiSelector1[i].contractNo
  1214. // if (this.gridList.contractNo == this.contractNolist[i].contractNo) {
  1215. // this.gridList.goodsName = this.outContractNo[q].goodsName
  1216. // this.gridList.goodsNameKey = this.outContractNo[q].goodsNameKey
  1217. // }
  1218. this.$api.doRequest('get', '/contractManagementInfo/getInContract', {
  1219. contractNo: this.gridList.contractNo,
  1220. compId: uni.getStorageSync('pcUserInfo').compId
  1221. }).then(res => {
  1222. this.contractNolist = res.data.data
  1223. this.gridList.goodsName = this.contractNolist.goodsName
  1224. this.gridList.goodsNameKey = this.contractNolist.goodsNameKey
  1225. })
  1226. this.waterContentChange()
  1227. }
  1228. }
  1229. console.log(this.gridList.outType)
  1230. },
  1231. changefreight() {
  1232. this.freightstatus = !this.freightstatus
  1233. if (this.freightstatus) {
  1234. this.freighttext = '自动获取'
  1235. } else {
  1236. this.freighttext = '手动填写'
  1237. }
  1238. },
  1239. changecost() {
  1240. this.coststatus = !this.coststatus
  1241. if (this.coststatus) {
  1242. this.costtext = '自动获取'
  1243. } else {
  1244. this.costtext = '手动填写'
  1245. }
  1246. },
  1247. inOutDatepicker(e) {
  1248. this.gridList.inOutDate = e.year + '-' + e.month + '-' + e.day
  1249. console.log(e)
  1250. },
  1251. fleetpicker(e) {
  1252. this.gridList.fleet = this.fleetNameList[e[0]].fleetName
  1253. },
  1254. change(e) {
  1255. if (e) {
  1256. this.gridList.supplementaryRecording = 1
  1257. } else {
  1258. this.gridList.supplementaryRecording = 0
  1259. }
  1260. },
  1261. tasknopicker(e) {
  1262. console.log("切换任务编号", e)
  1263. this.gridList.inOutTaskNo = this.taskNolist[e[0]].inOutTaskNo
  1264. this.gridList.inOutTaskNo1 = this.taskNolist[e[0]].inOutTaskNo1
  1265. var data = this.taskNolist[e[0]]
  1266. if (this.taskNolist[e[0]].inOutType == '收购入库') {
  1267. this.gridList.contractNo = this.taskNolist[e[0]].contractNo
  1268. this.inType = this.taskNolist[e[0]].inOutType
  1269. this.gridList.goodsName = this.taskNolist[e[0]].goodsName
  1270. if (this.taskNolist[e[0]].goodsName.indexOf("潮粮") != -1) { //收购从合同中带出货名 单价等信息 用货名是否带有潮粮字符来判断干潮类型
  1271. this.gridList.type = "潮粮"
  1272. this.gridList.imperfectGrain = 8
  1273. this.gridList.impurity = 1
  1274. this.gridList.mildewGrain = 2
  1275. this.gridList.jiaorenli = 0
  1276. } else {
  1277. this.gridList.type = "干粮"
  1278. this.gridList.imperfectGrain = 8
  1279. this.gridList.impurity = 1
  1280. this.gridList.mildewGrain = 2
  1281. this.gridList.jiaorenli = 1
  1282. }
  1283. }
  1284. if (this.taskNolist[e[0]].contractNo) {
  1285. this.gridList.contractNo = this.taskNolist[e[0]].contractNo
  1286. } else {
  1287. this.gridList.contractNo = this.taskNolist[e[0]].moveTaskNo
  1288. }
  1289. this.$api.doRequest('get', '/contractManagementInfo/getInContract', {
  1290. contractNo: this.gridList.contractNo,
  1291. compId: uni.getStorageSync('pcUserInfo').compId
  1292. }).then(res => {
  1293. this.contractNolist = res.data.data
  1294. if (this.typevalue == 3) {
  1295. var gooddata = this.goodsList.filter((item) => {
  1296. return item.goodsName == this.contractNolist.goodsName
  1297. })
  1298. if (this.contractNolist.priceType == "定价收购" && this.inType == "收购入库") {
  1299. this.gridList.dryGrainPrice = Number(this.contractNolist.unitContractPrice / 1000)
  1300. .toFixed(3)
  1301. }
  1302. if (gooddata.length > 0) {
  1303. // 收购入库
  1304. for (let q = 0; q < this.goodsList.length; q++) {
  1305. if (this.goodsList[q].goodsName == this.contractNolist.goodsName) {
  1306. this.gridList.goodsName = this.contractNolist.goodsName
  1307. this.setGoodName([q])
  1308. }
  1309. }
  1310. } else {
  1311. if (this.inType != "收购入库") { //收购入库不校验仓库设置中的货名
  1312. uni.showModal({
  1313. title: '提示',
  1314. content: '仓库设置中无该合同货名',
  1315. showCancel: false,
  1316. confirmText: '返回',
  1317. success: function(res) {
  1318. if (res.confirm) {
  1319. uni.navigateBack({
  1320. delta: 1
  1321. })
  1322. }
  1323. }
  1324. });
  1325. }
  1326. }
  1327. } else {
  1328. this.gridList.goodsName = this.contractNolist.goodsName
  1329. if (this.gridList.goodsName == '玉米') {
  1330. this.gridList.type = '干粮'
  1331. this.gridList.imperfectGrain = 8
  1332. this.gridList.impurity = 1
  1333. this.gridList.mildewGrain = 2
  1334. this.gridList.jiaorenli = 1
  1335. if (this.contractNolist.priceType != '随行就市') {
  1336. this.gridList.dryGrainPrice = Number(this.contractNolist.contractPrice / 1000)
  1337. .toFixed(3)
  1338. }
  1339. this.edit = true
  1340. } else if (this.gridList.goodsName.indexOf('潮粮') > -1) {
  1341. this.gridList.type = '潮粮'
  1342. this.edit = true
  1343. if (this.contractNolist.priceType != '随行就市') {
  1344. this.gridList.tidalGrainPrice = this.contractNolist.contractPrice
  1345. this.tidalGrainPrice = this.contractNolist.contractPrice
  1346. }
  1347. this.gridList.imperfectGrain = 8
  1348. this.gridList.impurity = 1
  1349. this.gridList.mildewGrain = 2
  1350. this.gridList.jiaorenli = 0
  1351. } else {
  1352. this.gridList.type = '干粮'
  1353. this.gridList.imperfectGrain = 8
  1354. this.gridList.impurity = 1
  1355. this.gridList.mildewGrain = 2
  1356. this.gridList.jiaorenli = 1
  1357. this.edit = false
  1358. if (this.contractNolist.priceType != '随行就市') {
  1359. this.gridList.dryGrainPrice = Number(this.contractNolist.contractPrice / 1000)
  1360. .toFixed(3)
  1361. }
  1362. }
  1363. }
  1364. this.gridList.goodsNameKey = this.contractNolist.goodsNameKey
  1365. this.gridList.grade = this.gradeList[1].value
  1366. this.gridList.gradeKey = this.gradeList[1].key
  1367. // this.gridList.grade = this.contractNolist.grade
  1368. this.gridList.inOutType = this.contractNolist.inOutType
  1369. if(this.gridList.goodsName == "大豆"){ //货名为大豆是设置默认
  1370. this.gridList.transgene= "非转基因"
  1371. this.gridList.reTransgene= "非转基因"
  1372. this.gridList.colorLustre = "正常"
  1373. this.gridList.reColorLustre = "正常"
  1374. }else{
  1375. delete this.gridList.transgene
  1376. delete this.gridList.reTransgene
  1377. delete this.gridList.colorLustre
  1378. delete this.gridList.reColorLustre
  1379. }
  1380. if (this.gridList.inOutType == '采购入库') {
  1381. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1382. // this.gridList.qualityNo='CGRK'+this.getdate()+this.commonWarehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1383. if (!this.contractNolist.unitContractPrice) {
  1384. this.gridList.tips = '卖方' + this.contractNolist.seller
  1385. } else {
  1386. this.gridList.tips = '卖方' + this.contractNolist.seller + '( ' + this.contractNolist
  1387. .unitContractPrice + '元/吨)'
  1388. }
  1389. this.gridList.inOutTypeKey = 1
  1390. console.log("this.gridList.inOutTypeKey", 1)
  1391. } else if (this.gridList.inOutType == '移库入库') {
  1392. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1393. // this.gridList.qualityNo='YKRK'+this.getdate()+this.commonWarehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1394. if (this.contractNolist.unitContractPrice) {
  1395. this.gridList.tips = '出货库' + data.sendWarehouse + ' (' + this.contractNolist
  1396. .unitContractPrice + '元/吨)'
  1397. } else {
  1398. this.gridList.tips = '出货库' + data.sendWarehouse
  1399. }
  1400. this.gridList.inOutTypeKey = 3
  1401. } else if (this.contractNolist.inOutType == '移库出库') {
  1402. this.gridList.tips = '入货库' + data.receiveWarehouse
  1403. } else if (this.contractNolist.inOutType == '暂存入库') {
  1404. this.gridList.inOutTypeKey = 4
  1405. } else if (this.contractNolist.inOutType == '贸易服务入库') {
  1406. this.gridList.inOutTypeKey = 5
  1407. } else if (this.contractNolist.inOutType == '退库') {
  1408. //退库有无运输任务标识
  1409. this.gridList.tranTaskFlag=this.contractNolist.tranTaskFlag
  1410. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1411. // this.gridList.qualityNo = 'CGRK' + this.getdate() + this.commonWarehouseNo + this
  1412. // .warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1413. if (this.contractNolist.contractNo) {
  1414. this.gridList.tips = '买方' + this.contractNolist.buyer
  1415. } else {
  1416. this.gridList.tips = '出货库' + data.sendWarehouse
  1417. }
  1418. this.gridList.inOutTypeKey = 6
  1419. }
  1420. this.cost = this.contractNolist.contractPrice
  1421. if (this.cost) {
  1422. this.isGetCost = true
  1423. this.gridList.cost = this.cost - this.gridList.deductionAmount
  1424. } else {
  1425. this.isGetCost = false
  1426. this.gridList.cost = this.gridList.cost
  1427. }
  1428. if (this.contractNolist.inOutType == '移库入库') {
  1429. this.isSelectType = false
  1430. } else {
  1431. this.isSelectType = true
  1432. }
  1433. if (this.contractNolist.priceType == '随行就市') {
  1434. this.disabled1 = true
  1435. } else {
  1436. this.disabled1 = false
  1437. }
  1438. if (this.contractNolist.deliverType == '1') {
  1439. this.carstatus = true
  1440. } else {
  1441. this.carstatus = false
  1442. }
  1443. this.tranCarInfoList = []
  1444. if (this.contractNolist.tranCarInfoList) {
  1445. for (var q = 0; q < this.contractNolist.tranCarInfoList.length; q++) {
  1446. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist.tranCarInfoList[q]
  1447. .carNo
  1448. if (this.contractNolist.tranCarInfoList[q].tranCarNo) {
  1449. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist
  1450. .tranCarInfoList[q].carNo + '(' + this.contractNolist.tranCarInfoList[q]
  1451. .tranCarNo + ')'
  1452. } else {
  1453. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist.tranCarInfoList
  1454. .carNo
  1455. }
  1456. }
  1457. this.tranCarInfoList = this.contractNolist.tranCarInfoList
  1458. // this.carstatus = true
  1459. } else {
  1460. this.tranCarInfoList = []
  1461. }
  1462. this.fleetNameList = this.contractNolist.tranCarInfoList1
  1463. if (this.gridList.goodsName && this.gridList.customerNumberCard) {
  1464. uni.showLoading({
  1465. title: '加载中',
  1466. mask: true
  1467. })
  1468. let that = this
  1469. this.$api.doRequest('get',
  1470. '/qualityInspectionManagement/getQualityInspectionManagementMap', {
  1471. goodsName: this.gridList.goodsName,
  1472. compId: uni.getStorageSync('pcUserInfo').compId,
  1473. customerNumberCard: this.gridList.customerNumberCard
  1474. }).then(res => {
  1475. uni.hideLoading();
  1476. if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data
  1477. .D - 50) {
  1478. that.redstatus = true
  1479. } else {
  1480. that.redstatus = false
  1481. }
  1482. var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) +
  1483. '吨,' : ''
  1484. var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) +
  1485. '吨,' : ''
  1486. var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
  1487. that.gridList.volumeofbusiness = a + b + c
  1488. console.log(that.gridList.volumeofbusiness)
  1489. that.$forceUpdate()
  1490. })
  1491. }
  1492. })
  1493. this.$forceUpdate()
  1494. console.log(this.gridList)
  1495. },
  1496. print() {
  1497. console.log(this.printId)
  1498. if(this.printId){
  1499. uni.showLoading({
  1500. title:"加载中",
  1501. mask:true
  1502. })
  1503. this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
  1504. id: this.printId
  1505. }).then(res => {
  1506. uni.hideLoading()
  1507. uni.setStorageSync("quality_print", res.data.data)
  1508. uni.navigateTo({
  1509. url: '/pages/erpbusiness/bleConnect'
  1510. })
  1511. })
  1512. }
  1513. },
  1514. close() {
  1515. this.isShowPrint = false
  1516. uni.navigateBack({})
  1517. },
  1518. hidden() {
  1519. this.$refs.keyboard.open(false)
  1520. },
  1521. handleShowKeyboard() {
  1522. if (this.$refs.keyboard.open) {
  1523. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  1524. } else {
  1525. this.$refs.keyboard[0].open(true)
  1526. }
  1527. },
  1528. handleShowKeyboard1() {
  1529. if (this.$refs.keyboard1.open) {
  1530. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  1531. } else {
  1532. this.$refs.keyboard1[0].open(true)
  1533. }
  1534. },
  1535. handleClick(e) {
  1536. this.gridList.carNumber = e.value //键盘输入值
  1537. },
  1538. cancelClick() {
  1539. this.isShowAlert = false
  1540. },
  1541. waterContentChange() {
  1542. var that = this
  1543. if (this.gridList.goodsName) {
  1544. for (var i = 0; i < this.purchasePriceList.length; i++) {
  1545. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  1546. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  1547. this.gridList.paramType = this.purchasePriceList[i].paramType
  1548. }
  1549. }
  1550. }
  1551. if (this.inType != "收购入库") { //非收购入库 价格取自合同
  1552. return
  1553. }
  1554. if (this.gridList.goodsName && this.cangid) {
  1555. if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1556. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1557. warehouseId: this.cangid,
  1558. goodsName: this.gridList.goodsName
  1559. }).then(res => {
  1560. that.gridList.dryGrainPrice = res.data.data
  1561. that.dryGrainPrice = res.data.data
  1562. })
  1563. }
  1564. }
  1565. that.gridList.waterPriceIncrease = 0
  1566. that.gridList.waterPriceDeduction = 0
  1567. that.gridList.qualityPriceIncrease = 0
  1568. that.gridList.qualityPriceDeduction = 0
  1569. //潮粮单价改变事件
  1570. if (
  1571. this.gridList.goodsName &&
  1572. this.gridList.waterContent &&
  1573. this.gridList.grade
  1574. ) {
  1575. uni.showLoading({
  1576. title: "加载中",
  1577. mask:true
  1578. })
  1579. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1580. warehouseId: this.cangid,
  1581. goodsName: this.gridList.goodsName,
  1582. waterContent: this.gridList.waterContent,
  1583. grade: this.gridList.grade,
  1584. }).then(res => {
  1585. if (that.gridList.paramType == '1') {
  1586. // console.log(that.gridList)
  1587. if (that.gridList.buckleMiscellaneous) {
  1588. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(
  1589. that
  1590. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1591. .dryGrainPrice)).toFixed(4)
  1592. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1593. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1594. .dryGrainPrice)).toFixed(4)
  1595. }
  1596. if (!that.gridList.tidalGrainPrice) {
  1597. that.gridList.tidalGrainPrice = ''
  1598. }
  1599. if (that.gridList.type == '干粮') {
  1600. that.gridList.dryGrainPrice = res.data.data
  1601. that.dryGrainPrice = that.gridList.dryGrainPrice
  1602. }
  1603. } else {
  1604. that.gridList.tidalGrainPrice = res.data.data
  1605. if (that.gridList.type == '干粮') {
  1606. that.gridList.dryGrainPrice = res.data.data
  1607. that.dryGrainPrice = that.gridList.dryGrainPrice
  1608. } else {
  1609. that.gridList.tidalGrainPrice = res.data.data
  1610. that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1611. }
  1612. }
  1613. uni.hideLoading()
  1614. })
  1615. }
  1616. },
  1617. gocustomer() {
  1618. uni.navigateTo({
  1619. url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList
  1620. .warehouseName + '&goodsName=' + this.gridList.goodsName
  1621. })
  1622. },
  1623. getdate() {
  1624. var date = new Date()
  1625. var year = date.getFullYear() //获取完整的年份(4位)
  1626. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  1627. var datetime = date.getDate() //获取当前日(1-31)
  1628. if (mouth < 10) {
  1629. mouth = '0' + mouth
  1630. }
  1631. if (datetime < 10) {
  1632. datetime = '0' + datetime
  1633. }
  1634. return year + '' + mouth + '' + datetime
  1635. },
  1636. async addQualityInspection(type) {
  1637. if (type == 1) {
  1638. await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
  1639. .gridList)
  1640. .then(res => {
  1641. console.log(res)
  1642. this.printId = res.data.data
  1643. uni.hideLoading()
  1644. if (res.data.code == 200) {
  1645. console.log("addQualityInspection")
  1646. this.$api.msg('提交成功')
  1647. this.gridList.warehouseId = this.cangid
  1648. this.gridList.compId = uni.getStorageSync(
  1649. 'pcUserInfo').compId
  1650. uni.setStorageSync("quality_print", this.gridList)
  1651. if (this.isZJ) {
  1652. this.isShowPrint = true
  1653. } else {
  1654. uni.navigateBack({})
  1655. }
  1656. console.log('that.gridList', this.gridList)
  1657. // uni.navigateBack({})
  1658. } else {
  1659. this.$api.msg('提交失败')
  1660. }
  1661. })
  1662. return
  1663. }
  1664. if (type == 2) {
  1665. await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
  1666. .gridList)
  1667. .then(res => {
  1668. console.log("addQualityInspection")
  1669. this.printId = res.data.data
  1670. uni.hideLoading()
  1671. if (res.data.code == 200) {
  1672. this.$api.msg('提交成功')
  1673. this.gridList.warehouseId = this.cangid
  1674. this.gridList.compId = uni.getStorageSync('pcUserInfo').compId
  1675. uni.setStorageSync("quality_print", this.gridList)
  1676. if (this.isZJ) {
  1677. this.isShowPrint = true
  1678. } else {
  1679. uni.navigateBack({})
  1680. }
  1681. uni.setStorageSync(
  1682. 'checkcustomer', {}
  1683. )
  1684. console.log('that.gridList', this.gridList)
  1685. // uni.navigateBack({})
  1686. } else {
  1687. this.$api.msg('提交失败')
  1688. }
  1689. })
  1690. }
  1691. },
  1692. async inOutWarehouse(type) {
  1693. if (type == 1) {
  1694. await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
  1695. .then(res => {
  1696. console.log("InOutWarehouse")
  1697. this.gridList.warehouseInOutId = res.data.data
  1698. this.addQualityInspection(1)
  1699. })
  1700. return
  1701. }
  1702. if (type == 2) {
  1703. await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
  1704. .then(res => {
  1705. console.log("InOutWarehouse")
  1706. if (this.isQY) {
  1707. if (!this.isZJ) {
  1708. this.gridList.brazer=1
  1709. this.gridList.statusFlag = 7
  1710. } else {
  1711. this.gridList.statusFlag = 0
  1712. }
  1713. }
  1714. this.gridList.warehouseInOutId = res.data.data
  1715. this.addQualityInspection(2)
  1716. })
  1717. return
  1718. }
  1719. },
  1720. async cumulant(type) {
  1721. if (type == 1) {
  1722. await this.$api.doRequest('get', '/paymentManagement/cumulant', {
  1723. compId: uni.getStorageSync('pcUserInfo').compId,
  1724. customerNumberCard: this.gridList.customerNumberCard,
  1725. goodsName: this.gridList.goodsName,
  1726. })
  1727. .then(response => {
  1728. console.log("cumulant")
  1729. if (response.data.code == 200) {
  1730. for (let i = 0; i < this.purchasePriceList.length; i++) {
  1731. if (this.gridList.goodsName == this.purchasePriceList[i].goodsName) {
  1732. let count = (this.purchasePriceList[i].saleLimit - response.data.data /
  1733. 1000)
  1734. .toFixed(2)
  1735. console.log(count, this.purchasePriceList[i].saleLimit, response.data.data)
  1736. if (Number(count) <= 0) {
  1737. count = 0
  1738. this.$api.msg('该客户累计销售' + this.gridList.goodsName + (response.data
  1739. .data /
  1740. 1000).toFixed(2) + '吨,还可售粮' + count + '吨', )
  1741. uni.hideLoading()
  1742. break;
  1743. }
  1744. this.gridList.inOutFlag = 2
  1745. this.inOutWarehouse(2)
  1746. }
  1747. }
  1748. }
  1749. })
  1750. return
  1751. }
  1752. },
  1753. async getGoodsName() {
  1754. let that = this
  1755. await this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  1756. warehouseId: this.cangid
  1757. }).then(res => {
  1758. if (res.data.code != 200 && that.typevalue == 3) {
  1759. uni.showModal({
  1760. content: res.data.message,
  1761. showCancel: false
  1762. })
  1763. return;
  1764. }
  1765. uni.showModal({
  1766. content: "确定提交质检信息?",
  1767. showCancel: true,
  1768. confirmText: '提交',
  1769. success: function(res) {
  1770. if (res.confirm) {
  1771. that.gridList.serviceManagementType = that.typevalue
  1772. if (that.typevalue == 3) {
  1773. that.cumulant(1)
  1774. return
  1775. }
  1776. that.gridList.inOutFlag = 2
  1777. that.inOutWarehouse(1)
  1778. // that.addQualityInspection(1)
  1779. }
  1780. }
  1781. })
  1782. })
  1783. },
  1784. submit() {
  1785. console.log(this.isQY, "isQY")
  1786. console.log(this.isZJ, "isZJ")
  1787. if (this.typevalue == 3) {
  1788. if (this.outType) {
  1789. this.gridList.outType = this.outType
  1790. }
  1791. }
  1792. var that = this
  1793. this.gridList.agent = this.userInfo.userName;
  1794. this.gridList.carNo = this.gridList.carNumber
  1795. this.gridList.baseId = this.cangid
  1796. this.gridList.warehouseId = this.cangid
  1797. if (this.typevalue == 1) {
  1798. if (this.gridList.inOutType == '移库入库') {
  1799. this.gridList.numberLetter = 'YKRK'
  1800. } else {
  1801. this.gridList.numberLetter = 'CGRK'
  1802. }
  1803. } else {
  1804. this.gridList.numberLetter = 'SGRK'
  1805. }
  1806. this.gridList.warehouseNo = this.commonWarehouseNo
  1807. if (!this.gridList.inOutTaskNo) {
  1808. this.$api.msg('任务编号不能为空')
  1809. return
  1810. }
  1811. if (this.utils.getCurrectRoles('acquisitionQuality.initial')) {
  1812. if (!this.gridList.binNumber) {
  1813. this.$api.msg('仓位不能为空')
  1814. return
  1815. }
  1816. if (this.typevalue == 3) {
  1817. if (!this.gridList.natureOfGrainPurchase) {
  1818. this.$api.msg('购粮性质不能为空')
  1819. return
  1820. }
  1821. }
  1822. if (!this.gridList.type) {
  1823. this.$api.msg('类型不能为空')
  1824. return
  1825. }
  1826. if (this.value == false) {
  1827. if (!this.gridList.grade) {
  1828. this.$api.msg('等级不能为空')
  1829. return
  1830. }
  1831. if (!this.gridList.impurity) {
  1832. this.$api.msg('杂质不能为空')
  1833. return
  1834. }
  1835. if (!this.gridList.waterContent) {
  1836. this.$api.msg('初检水分不能为空')
  1837. return
  1838. }
  1839. // if (!this.gridList.reWaterContent) {
  1840. // this.$api.msg('复检水分不能为空')
  1841. // return
  1842. // }
  1843. if (!this.gridList.mildewGrain) {
  1844. this.$api.msg('霉变粒不能为空')
  1845. return
  1846. }
  1847. if (this.gridList.goodsName != "大豆") {
  1848. if (!this.gridList.bulkDensity) {
  1849. this.$api.msg('容重不能为空')
  1850. return
  1851. }
  1852. }
  1853. if(this.gridList.goodsName == "大豆"){
  1854. if (!this.gridList.protein) {
  1855. this.$api.msg('蛋白不能为空')
  1856. return
  1857. }
  1858. }
  1859. if (!this.gridList.jiaorenli && this.gridList.jiaorenli != 0) {
  1860. this.$api.msg('热损伤不能为空')
  1861. return
  1862. }
  1863. if (!this.gridList.imperfectGrain) {
  1864. this.$api.msg('不完整粒不能为空')
  1865. return
  1866. }
  1867. }
  1868. }
  1869. if (this.isQY) {
  1870. if (this.typevalue == 3) {
  1871. if (!this.gridList.customerName) {
  1872. this.$api.msg('客户不能为空')
  1873. return
  1874. }
  1875. }
  1876. if (!this.gridList.carNumber) {
  1877. this.$api.msg('车牌号不能为空')
  1878. return
  1879. }
  1880. if (this.gridList.carNumber.length != 7) {
  1881. this.$api.msg('车牌号输入错误')
  1882. return
  1883. }
  1884. if (!this.gridList.goodsName) {
  1885. this.$api.msg('货名不能为空')
  1886. return
  1887. }
  1888. }
  1889. // 钎样提交
  1890. if (this.isQY && !this.isZJ) {
  1891. that.gridList.serviceManagementType = that.typevalue
  1892. uni.showModal({
  1893. content: "确定提交钎样信息?",
  1894. showCancel: true,
  1895. confirmText: '提交',
  1896. success: function(res) {
  1897. if (res.confirm) {
  1898. // 收购入库
  1899. if (that.typevalue == 3) {
  1900. uni.showLoading({
  1901. title: "加载中",
  1902. mask:true
  1903. })
  1904. that.cumulant(1)
  1905. return
  1906. }
  1907. uni.showLoading({
  1908. title: "加载中",
  1909. mask:true
  1910. })
  1911. that.gridList.inOutFlag = 2
  1912. that.inOutWarehouse(1)
  1913. }
  1914. }
  1915. })
  1916. } else {
  1917. this.gridList.brazer = 0
  1918. this.getGoodsName()
  1919. }
  1920. // // 质检提交
  1921. // if (!this.isQY && this.isZJ) {
  1922. // }
  1923. },
  1924. gradepicker(e) {
  1925. console.log(e)
  1926. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1927. this.gridList.grade = this.gradeList[e[0]].value
  1928. this.gridList.gradeKey = this.gradeList[e[0]].key
  1929. this.waterContentChange()
  1930. },
  1931. setGoodName(e, status) {
  1932. // console.log(this.goodsList[e[0]].goodsName,111111111)
  1933. //
  1934. // [e[0]] = 0
  1935. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1936. if (this.goodsList[e[0]].goodsName == '玉米') {
  1937. this.gridList.type = '干粮'
  1938. this.edit = true
  1939. } else if (this.goodsList[e[0]].goodsName.indexOf('潮粮') > -1) {
  1940. this.gridList.type = '潮粮'
  1941. this.edit = true
  1942. } else {
  1943. this.gridList.type = '干粮'
  1944. this.edit = false
  1945. }
  1946. var that = this
  1947. this.gridList.goodsName = this.goodsList[e[0]].goodsName
  1948. // this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
  1949. // warehouseId: this.cangid,
  1950. // goodsName: this.gridList.goodsName
  1951. // }).then(res => {
  1952. // if (res.data.data) {
  1953. // uni.hideLoading()
  1954. // // let data = res.data.data
  1955. // // that.gridList =data
  1956. // }
  1957. // })
  1958. uni.setStorageSync('goodsName', this.gridList.goodsName)
  1959. if (this.gridList.type == "干粮" && this.gridList.goodsName) {
  1960. if (this.inType == "收购入库") { //收购入库 价格取自合同
  1961. return
  1962. }
  1963. if (!status) {
  1964. uni.showLoading({
  1965. title: '加载中',
  1966. mask: true
  1967. })
  1968. }
  1969. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1970. warehouseId: this.cangid,
  1971. goodsName: this.gridList.goodsName
  1972. }).then(res => {
  1973. this.gridList.dryGrainPrice = res.data.data
  1974. if (!status) {
  1975. uni.hideLoading()
  1976. }
  1977. })
  1978. }
  1979. this.waterContentChange()
  1980. },
  1981. goodspicker(e) {
  1982. console.log(e)
  1983. this.setGoodName(e)
  1984. },
  1985. typepicker(e) {
  1986. var that = this
  1987. this.gridList.type = this.typeList[e[0]]
  1988. if (this.inType == "收购入库") { //收购入库 价格取自合同
  1989. return
  1990. }
  1991. if (this.gridList.type == "干粮" && this.gridList.goodsName) {
  1992. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1993. warehouseId: this.cangid,
  1994. goodsName: this.gridList.goodsName
  1995. }).then(res => {
  1996. that.gridList.dryGrainPrice = res.data.data
  1997. })
  1998. }
  1999. },
  2000. binNumberpicker(e) {
  2001. console.log(this.warehouseList[e[0]])
  2002. this.gridList.binNumber = this.warehouseList[e[0]].binNumber
  2003. this.gridList.positionId = this.warehouseList[e[0]].id
  2004. },
  2005. del(item) {
  2006. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection', {
  2007. id: item.id
  2008. }).then(res => {
  2009. if (res.data.code == 200) {
  2010. this.$api.msg('删除成功')
  2011. } else {
  2012. this.$api.msg('系统异常,请联系管理员')
  2013. }
  2014. })
  2015. },
  2016. contactUs() {
  2017. const that = this
  2018. uni.makePhoneCall({
  2019. // 手机号
  2020. phoneNumber: '18241771147',
  2021. // 成功回调
  2022. success: (res) => {},
  2023. // 失败回调
  2024. fail: (res) => {}
  2025. });
  2026. },
  2027. loadData() {
  2028. // const that = this
  2029. // if(uni.getStorageSync("PageCur")){
  2030. // that.PageCur = uni.getStorageSync("PageCur");
  2031. // }
  2032. // that.userInfoTmp = uni.getStorageSync("userInfo")
  2033. // uni.showLoading({
  2034. // title: '正在加载',
  2035. // mask:true
  2036. // })
  2037. // that.$api.request('integral', 'getIndexData', failres => {
  2038. // that.$api.msg(failres.errmsg)
  2039. // uni.hideLoading()
  2040. // }).then(res => {
  2041. // let data = res.data
  2042. // uni.setStorageSync("message", data.message);
  2043. // uni.setStorageSync("task", data.task);
  2044. // uni.setStorageSync("contract", data.contract);
  2045. // uni.setStorageSync('showTran', data.showTran);
  2046. // that.showTran = data.showTran
  2047. // that.gridList[4].tips = data.task
  2048. // that.gridList[2].tips = data.contract
  2049. // that.companyId = data.companyId
  2050. // uni.hideLoading()
  2051. // })
  2052. },
  2053. confirm() {
  2054. const that = this
  2055. if (!that.inputContent) {
  2056. that.$api.msg('输入不能为空')
  2057. return
  2058. }
  2059. let obj = {}
  2060. obj[that.feild] = that.inputContent
  2061. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  2062. that.userInfo.nickname = that.inputContent
  2063. that.inputContent = ''
  2064. that.$store.commit('login', that.userInfo)
  2065. })
  2066. },
  2067. cancel() {
  2068. this.inputShow = false
  2069. this.inputStatus = 'none'
  2070. this.genderShow = false
  2071. },
  2072. myAccount() {
  2073. uni.navigateTo({
  2074. url: `/pageA/pages/contract`
  2075. })
  2076. },
  2077. /**
  2078. * 统一跳转接口,拦截未登录路由
  2079. * navigator标签现在默认没有转场动画,所以用view
  2080. */
  2081. navTo(url) {
  2082. if (!this.hasLogin) {
  2083. url = '/pages/public/login';
  2084. }
  2085. uni.navigateTo({
  2086. url
  2087. })
  2088. },
  2089. mycarClick(carNo) {
  2090. this.modalName = null
  2091. uni.navigateTo({
  2092. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  2093. })
  2094. },
  2095. scanCode() {
  2096. uni.scanCode({
  2097. success: function(res) {
  2098. uni.navigateTo({
  2099. url: res.result
  2100. })
  2101. }
  2102. })
  2103. },
  2104. hideModal(e) {
  2105. this.modalName = null
  2106. },
  2107. }
  2108. }
  2109. </script>
  2110. <style lang='scss' scoped>
  2111. page {
  2112. background: #F5F6FA;
  2113. }
  2114. .title_b {
  2115. margin: 20rpx 20rpx 0rpx 20rpx;
  2116. padding: 20rpx 10rpx 20rpx 10rpx;
  2117. font-size: 18px;
  2118. font-weight: 550;
  2119. }
  2120. .c-row {
  2121. display: -webkit-box;
  2122. display: -webkit-flex;
  2123. display: flex;
  2124. -webkit-box-align: center;
  2125. -webkit-align-items: center;
  2126. align-items: center;
  2127. padding: 20rpx 30rpx;
  2128. position: relative;
  2129. }
  2130. .con-list {
  2131. -webkit-box-flex: 1;
  2132. -webkit-flex: 1;
  2133. flex: 1;
  2134. display: -webkit-box;
  2135. display: -webkit-flex;
  2136. display: flex;
  2137. -webkit-box-orient: vertical;
  2138. -webkit-box-direction: normal;
  2139. -webkit-flex-direction: column;
  2140. flex-direction: column;
  2141. color: #303133;
  2142. line-height: 40rpx;
  2143. text-align: right;
  2144. padding-right: 20rpx;
  2145. }
  2146. .wrap {
  2147. padding-bottom: 10px;
  2148. font-size: 14px;
  2149. background: #fff;
  2150. margin: 10px;
  2151. border-radius: 10px;
  2152. input {
  2153. font-size: 14px;
  2154. }
  2155. >.title {
  2156. padding: 10px 16px;
  2157. }
  2158. }
  2159. .footer {
  2160. background: #fff;
  2161. position: fixed;
  2162. bottom: 0;
  2163. width: 100%;
  2164. padding: 20px 10px;
  2165. z-index: 10;
  2166. .button {
  2167. background: #22C572;
  2168. width: 90%;
  2169. margin: 20rpx auto;
  2170. padding: 10px;
  2171. color: #fff;
  2172. text-align: center;
  2173. border-radius: 30px;
  2174. }
  2175. }
  2176. .buns_item {
  2177. display: flex;
  2178. padding: 80rpx 0 50rpx 0;
  2179. justify-content: space-around;
  2180. }
  2181. .but_css {
  2182. background: #22C572;
  2183. width: 40%;
  2184. padding: 20rpx;
  2185. color: #fff;
  2186. text-align: center;
  2187. border-radius: 20rpx;
  2188. }
  2189. /deep/.u-radio-group {
  2190. flex-direction: row-reverse;
  2191. }
  2192. </style>