add_quality_testing.vue 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268
  1. <template>
  2. <view :style='{"margin-bottom":InputEvent!=""?"100px":0}'>
  3. <view @click='hidden' class='wrap'>
  4. <view class='title_b'>基本信息</view>
  5. <view class="c-row ">
  6. <view class="title">类型</view>
  7. <view class="con-list">
  8. <u-radio-group @change="groupChange" v-model="typevalue">
  9. <u-radio v-show="utils.getCurrectRoles('acquisitionQuality.initial')" key="1" label="贸易入库"
  10. name="1">贸易入库</u-radio>
  11. <u-radio v-show="utils.getCurrectRoles('acquisitionQuality.qview')" key="3" label="收购入库"
  12. name="3">
  13. 收购入库</u-radio>
  14. </u-radio-group>
  15. </view>
  16. </view>
  17. <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  18. <view class="title">仓库</view>
  19. <view class="con-list">
  20. {{gridList.warehouseName}}
  21. </view>
  22. </view>
  23. <view class="c-row ">
  24. <view class="title">任务编号</view>
  25. <view class="con-list">
  26. <view @click='show4=true'>{{gridList.inOutTaskNo?gridList.inOutTaskNo:'请选择任务编号'}}</view>
  27. <u-picker :range="taskNolist" range-key="inOutTaskNo1" @confirm='tasknopicker($event)'
  28. v-model="show4" mode="selector">
  29. </u-picker>
  30. </view>
  31. </view>
  32. <view v-show='typevalue==1&&gridList.inOutType!="移库入库"||typevalue==3' class="c-row ">
  33. <view class="title">合同编号</view>
  34. <view class="con-list">
  35. {{gridList.contractNo?gridList.contractNo:'自动获取,不可编辑'}}
  36. </view>
  37. </view>
  38. <view v-show='typevalue==1&&gridList.inOutType=="移库入库"' class="c-row ">
  39. <view class="title">移库编号</view>
  40. <view class="con-list">
  41. {{gridList.contractNo?gridList.contractNo:'自动获取,不可编辑'}}
  42. </view>
  43. </view>
  44. <!-- <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  45. <view class="title">业务编号</view>
  46. <view class="con-list">
  47. {{gridList.qualityNo}}
  48. </view>
  49. </view> -->
  50. <view v-show='typevalue==1' style=' align-items: flex-start;' class="c-row ">
  51. <view class="title">提示</view>
  52. <view class="con-list">
  53. {{gridList.tips?gridList.tips:'自动获取,不可编辑'}}
  54. </view>
  55. </view>
  56. <!-- <view v-show='typevalue==1' class="c-row ">
  57. <view class="title">成本</view>
  58. <view class="con-list">
  59. <view v-show='!coststatus'>{{gridList.cost?gridList.cost:'自动获取,不可编辑'}}</view>
  60. <view v-show='coststatus'>
  61. <input v-model='gridList.cost' placeholder="请输入成本" name="input" type="digit"></input>
  62. </view>
  63. </view>
  64. <button class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
  65. </view>
  66. <view v-show='typevalue==1' class="c-row ">
  67. <view class="title">运费</view>
  68. <view class="con-list flex">
  69. <view v-show='!freightstatus'>{{gridList.freight?gridList.freight:'自动获取,不可编辑'}}</view>
  70. <view v-show='freightstatus'>
  71. <input v-model='gridList.freight' placeholder="请输入运费" name="input" type="digit"></input>
  72. </view>
  73. </view>
  74. <button class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
  75. </view> -->
  76. <!-- <view v-show='typevalue==1' class="c-row ">
  77. <view class="title">扣款</view>
  78. <view class="con-list">
  79. <input v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
  80. </view>
  81. </view> -->
  82. <view v-show='typevalue==1' class="c-row ">
  83. <view class="title">入库类型</view>
  84. <view class="con-list">
  85. {{gridList.inOutType?gridList.inOutType:'自动获取,不可编辑'}}
  86. </view>
  87. </view>
  88. <view v-show='typevalue==1' class="c-row ">
  89. <view class="title">入库日期</view>
  90. <view class="con-list">
  91. <view @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  92. <u-picker @confirm='inOutDatepicker($event)' :params="params" v-model="show5" mode="time">
  93. </u-picker>
  94. </view>
  95. </view>
  96. <view
  97. v-show='typevalue==1||typevalue==3&&gridList.outType=="自运"&&utils.getCurrectRoles("acquisitionQuality.initial")'
  98. class="c-row ">
  99. <view class="title">车队</view>
  100. <view class="con-list">
  101. <view @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  102. <u-picker @confirm='fleetpicker($event)' :range="fleetNameList" range-key="fleetName"
  103. v-model="show6" mode="selector">
  104. </u-picker>
  105. </view>
  106. </view>
  107. <!-- <view v-show="gridList.paramType != '1'&&utils.getCurrectRoles('acquisitionQuality.initial')" class="c-row ">
  108. <view class="title">扣重比</view>
  109. <view class="con-list">
  110. <input v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比" name="input" type="digit"></input>
  111. </view>
  112. </view> -->
  113. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")||typevalue==1' class="c-row ">
  114. <view class="title">货名</view>
  115. <view class="con-list">
  116. <view>{{gridList.goodsName}}</view>
  117. <!-- <view v-show='goodsdisabled'>{{gridList.goodsName}}</view> -->
  118. <!-- <view v-show='!goodsdisabled' @click='show2=true'>{{gridList.goodsName}}</view> -->
  119. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodspicker($event)' v-model="show2"
  120. mode="selector">
  121. </u-picker>
  122. </view>
  123. </view>
  124. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  125. <view class="title">购粮性质</view>
  126. <view class="con-list">
  127. <input v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质" name="input"></input>
  128. </view>
  129. </view>
  130. <view v-show='utils.getCurrectRoles("acquisitionQuality.initial")' class="c-row ">
  131. <view class="title">类型</view>
  132. <view class="con-list">{{gridList.type?gridList.type:'干粮'}}</view>
  133. </view>
  134. <view v-show='typevalue==1' class="c-row ">
  135. <view class="title">运输方式</view>
  136. <view class="con-list">
  137. <view @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  138. <u-picker :range="multiSelector" range-key="name" @confirm='outtypepicker($event,0)' v-model="show7"
  139. mode="selector">
  140. </u-picker>
  141. </view>
  142. </view>
  143. <view v-show='typevalue==3&&utils.getCurrectRoles("acquisitionQuality.qview")' class="c-row ">
  144. <view class="title">运输方式</view>
  145. <view class="con-list">
  146. <view @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
  147. <u-picker :range="multiSelector1" range-key="name" @confirm='outtypepicker($event,1)'
  148. v-model="show8" mode="selector">
  149. </u-picker>
  150. </view>
  151. </view>
  152. <view v-show='typevalue==1' class="c-row ">
  153. <view class="title">车牌号</view>
  154. <view class="con-list" v-show='(gridList.inOutType!="移库入库"||gridList.outType!="汽运")&&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. var data = this.taskNolist[e[0]]
  1265. if (this.taskNolist[e[0]].inOutType == '收购入库') {
  1266. this.gridList.contractNo = this.taskNolist[e[0]].contractNo
  1267. this.inType = this.taskNolist[e[0]].inOutType
  1268. this.gridList.goodsName = this.taskNolist[e[0]].goodsName
  1269. if (this.taskNolist[e[0]].goodsName.indexOf("潮粮") != -1) { //收购从合同中带出货名 单价等信息 用货名是否带有潮粮字符来判断干潮类型
  1270. this.gridList.type = "潮粮"
  1271. this.gridList.imperfectGrain = 8
  1272. this.gridList.impurity = 1
  1273. this.gridList.mildewGrain = 2
  1274. this.gridList.jiaorenli = 0
  1275. } else {
  1276. this.gridList.type = "干粮"
  1277. this.gridList.imperfectGrain = 8
  1278. this.gridList.impurity = 1
  1279. this.gridList.mildewGrain = 2
  1280. this.gridList.jiaorenli = 1
  1281. }
  1282. }
  1283. if (this.taskNolist[e[0]].contractNo) {
  1284. this.gridList.contractNo = this.taskNolist[e[0]].contractNo
  1285. } else {
  1286. this.gridList.contractNo = this.taskNolist[e[0]].moveTaskNo
  1287. }
  1288. this.$api.doRequest('get', '/contractManagementInfo/getInContract', {
  1289. contractNo: this.gridList.contractNo,
  1290. compId: uni.getStorageSync('pcUserInfo').compId
  1291. }).then(res => {
  1292. this.contractNolist = res.data.data
  1293. if (this.typevalue == 3) {
  1294. var gooddata = this.goodsList.filter((item) => {
  1295. return item.goodsName == this.contractNolist.goodsName
  1296. })
  1297. if (this.contractNolist.priceType == "定价收购" && this.inType == "收购入库") {
  1298. this.gridList.dryGrainPrice = Number(this.contractNolist.unitContractPrice / 1000)
  1299. .toFixed(3)
  1300. }
  1301. if (gooddata.length > 0) {
  1302. // 收购入库
  1303. for (let q = 0; q < this.goodsList.length; q++) {
  1304. if (this.goodsList[q].goodsName == this.contractNolist.goodsName) {
  1305. this.gridList.goodsName = this.contractNolist.goodsName
  1306. this.setGoodName([q])
  1307. }
  1308. }
  1309. } else {
  1310. if (this.inType != "收购入库") { //收购入库不校验仓库设置中的货名
  1311. uni.showModal({
  1312. title: '提示',
  1313. content: '仓库设置中无该合同货名',
  1314. showCancel: false,
  1315. confirmText: '返回',
  1316. success: function(res) {
  1317. if (res.confirm) {
  1318. uni.navigateBack({
  1319. delta: 1
  1320. })
  1321. }
  1322. }
  1323. });
  1324. }
  1325. }
  1326. } else {
  1327. this.gridList.goodsName = this.contractNolist.goodsName
  1328. if (this.gridList.goodsName == '玉米') {
  1329. this.gridList.type = '干粮'
  1330. this.gridList.imperfectGrain = 8
  1331. this.gridList.impurity = 1
  1332. this.gridList.mildewGrain = 2
  1333. this.gridList.jiaorenli = 1
  1334. if (this.contractNolist.priceType != '随行就市') {
  1335. this.gridList.dryGrainPrice = Number(this.contractNolist.contractPrice / 1000)
  1336. .toFixed(3)
  1337. }
  1338. this.edit = true
  1339. } else if (this.gridList.goodsName.indexOf('潮粮') > -1) {
  1340. this.gridList.type = '潮粮'
  1341. this.edit = true
  1342. if (this.contractNolist.priceType != '随行就市') {
  1343. this.gridList.tidalGrainPrice = this.contractNolist.contractPrice
  1344. this.tidalGrainPrice = this.contractNolist.contractPrice
  1345. }
  1346. this.gridList.imperfectGrain = 8
  1347. this.gridList.impurity = 1
  1348. this.gridList.mildewGrain = 2
  1349. this.gridList.jiaorenli = 0
  1350. } else {
  1351. this.gridList.type = '干粮'
  1352. this.gridList.imperfectGrain = 8
  1353. this.gridList.impurity = 1
  1354. this.gridList.mildewGrain = 2
  1355. this.gridList.jiaorenli = 1
  1356. this.edit = false
  1357. if (this.contractNolist.priceType != '随行就市') {
  1358. this.gridList.dryGrainPrice = Number(this.contractNolist.contractPrice / 1000)
  1359. .toFixed(3)
  1360. }
  1361. }
  1362. }
  1363. this.gridList.goodsNameKey = this.contractNolist.goodsNameKey
  1364. this.gridList.grade = this.gradeList[1].value
  1365. this.gridList.gradeKey = this.gradeList[1].key
  1366. // this.gridList.grade = this.contractNolist.grade
  1367. this.gridList.inOutType = this.contractNolist.inOutType
  1368. if(this.gridList.goodsName == "大豆"){ //货名为大豆是设置默认
  1369. this.gridList.transgene= "非转基因"
  1370. this.gridList.reTransgene= "非转基因"
  1371. this.gridList.colorLustre = "正常"
  1372. this.gridList.reColorLustre = "正常"
  1373. }else{
  1374. delete this.gridList.transgene
  1375. delete this.gridList.reTransgene
  1376. delete this.gridList.colorLustre
  1377. delete this.gridList.reColorLustre
  1378. }
  1379. if (this.gridList.inOutType == '采购入库') {
  1380. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1381. // this.gridList.qualityNo='CGRK'+this.getdate()+this.commonWarehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1382. if (!this.contractNolist.unitContractPrice) {
  1383. this.gridList.tips = '卖方' + this.contractNolist.seller
  1384. } else {
  1385. this.gridList.tips = '卖方' + this.contractNolist.seller + '( ' + this.contractNolist
  1386. .unitContractPrice + '元/吨)'
  1387. }
  1388. this.gridList.inOutTypeKey = 1
  1389. console.log("this.gridList.inOutTypeKey", 1)
  1390. } else if (this.gridList.inOutType == '移库入库') {
  1391. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1392. // this.gridList.qualityNo='YKRK'+this.getdate()+this.commonWarehouseNo+this.warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1393. if (this.contractNolist.unitContractPrice) {
  1394. this.gridList.tips = '出货库' + data.sendWarehouse + ' (' + this.contractNolist
  1395. .unitContractPrice + '元/吨)'
  1396. } else {
  1397. this.gridList.tips = '出货库' + data.sendWarehouse
  1398. }
  1399. this.gridList.inOutTypeKey = 3
  1400. } else if (this.contractNolist.inOutType == '移库出库') {
  1401. this.gridList.tips = '入货库' + data.receiveWarehouse
  1402. } else if (this.contractNolist.inOutType == '暂存入库') {
  1403. this.gridList.inOutTypeKey = 4
  1404. } else if (this.contractNolist.inOutType == '贸易服务入库') {
  1405. this.gridList.inOutTypeKey = 5
  1406. } else if (this.contractNolist.inOutType == '退库') {
  1407. //退库有无运输任务标识
  1408. this.gridList.tranTaskFlag=this.contractNolist.tranTaskFlag
  1409. this.warehouseTradeCount = '000' + this.warehouseTradeCount
  1410. // this.gridList.qualityNo = 'CGRK' + this.getdate() + this.commonWarehouseNo + this
  1411. // .warehouseTradeCount.substring(this.warehouseTradeCount.length - 4)
  1412. if (this.contractNolist.contractNo) {
  1413. this.gridList.tips = '买方' + this.contractNolist.buyer
  1414. } else {
  1415. this.gridList.tips = '出货库' + data.sendWarehouse
  1416. }
  1417. this.gridList.inOutTypeKey = 6
  1418. }
  1419. this.cost = this.contractNolist.contractPrice
  1420. if (this.cost) {
  1421. this.isGetCost = true
  1422. this.gridList.cost = this.cost - this.gridList.deductionAmount
  1423. } else {
  1424. this.isGetCost = false
  1425. this.gridList.cost = this.gridList.cost
  1426. }
  1427. if (this.contractNolist.inOutType == '移库入库') {
  1428. this.isSelectType = false
  1429. } else {
  1430. this.isSelectType = true
  1431. }
  1432. if (this.contractNolist.priceType == '随行就市') {
  1433. this.disabled1 = true
  1434. } else {
  1435. this.disabled1 = false
  1436. }
  1437. if (this.contractNolist.deliverType == '1') {
  1438. this.carstatus = true
  1439. } else {
  1440. this.carstatus = false
  1441. }
  1442. this.tranCarInfoList = []
  1443. if (this.contractNolist.tranCarInfoList) {
  1444. for (var q = 0; q < this.contractNolist.tranCarInfoList.length; q++) {
  1445. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist.tranCarInfoList[q]
  1446. .carNo
  1447. if (this.contractNolist.tranCarInfoList[q].tranCarNo) {
  1448. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist
  1449. .tranCarInfoList[q].carNo + '(' + this.contractNolist.tranCarInfoList[q]
  1450. .tranCarNo + ')'
  1451. } else {
  1452. this.contractNolist.tranCarInfoList[q].carNo1 = this.contractNolist.tranCarInfoList
  1453. .carNo
  1454. }
  1455. }
  1456. this.tranCarInfoList = this.contractNolist.tranCarInfoList
  1457. // this.carstatus = true
  1458. } else {
  1459. this.tranCarInfoList = []
  1460. }
  1461. this.fleetNameList = this.contractNolist.tranCarInfoList1
  1462. if (this.gridList.goodsName && this.gridList.customerNumberCard) {
  1463. uni.showLoading({
  1464. title: '加载中',
  1465. mask: true
  1466. })
  1467. let that = this
  1468. this.$api.doRequest('get',
  1469. '/qualityInspectionManagement/getQualityInspectionManagementMap', {
  1470. goodsName: this.gridList.goodsName,
  1471. compId: uni.getStorageSync('pcUserInfo').compId,
  1472. customerNumberCard: this.gridList.customerNumberCard
  1473. }).then(res => {
  1474. uni.hideLoading();
  1475. if (res.data.data.A + res.data.data.B + res.data.data.C * 50 > res.data.data
  1476. .D - 50) {
  1477. that.redstatus = true
  1478. } else {
  1479. that.redstatus = false
  1480. }
  1481. var a = res.data.data.A > 0 ? '已完成' + Number(res.data.data.A).toFixed(2) +
  1482. '吨,' : ''
  1483. var b = res.data.data.B > 0 ? '进行中' + Number(res.data.data.B).toFixed(2) +
  1484. '吨,' : ''
  1485. var c = res.data.data.C > 0 ? '未称重' + Number(res.data.data.C) + '车' : ''
  1486. that.gridList.volumeofbusiness = a + b + c
  1487. console.log(that.gridList.volumeofbusiness)
  1488. that.$forceUpdate()
  1489. })
  1490. }
  1491. })
  1492. this.$forceUpdate()
  1493. console.log(this.gridList)
  1494. },
  1495. print() {
  1496. console.log(this.printId)
  1497. if(this.printId){
  1498. uni.showLoading({
  1499. title:"加载中",
  1500. mask:true
  1501. })
  1502. this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
  1503. id: this.printId
  1504. }).then(res => {
  1505. uni.hideLoading()
  1506. uni.setStorageSync("quality_print", res.data.data)
  1507. uni.navigateTo({
  1508. url: '/pages/erpbusiness/bleConnect'
  1509. })
  1510. })
  1511. }
  1512. },
  1513. close() {
  1514. this.isShowPrint = false
  1515. uni.navigateBack({})
  1516. },
  1517. hidden() {
  1518. this.$refs.keyboard.open(false)
  1519. },
  1520. handleShowKeyboard() {
  1521. if (this.$refs.keyboard.open) {
  1522. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  1523. } else {
  1524. this.$refs.keyboard[0].open(true)
  1525. }
  1526. },
  1527. handleShowKeyboard1() {
  1528. if (this.$refs.keyboard1.open) {
  1529. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  1530. } else {
  1531. this.$refs.keyboard1[0].open(true)
  1532. }
  1533. },
  1534. handleClick(e) {
  1535. this.gridList.carNumber = e.value //键盘输入值
  1536. },
  1537. cancelClick() {
  1538. this.isShowAlert = false
  1539. },
  1540. waterContentChange() {
  1541. var that = this
  1542. if (this.gridList.goodsName) {
  1543. for (var i = 0; i < this.purchasePriceList.length; i++) {
  1544. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  1545. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  1546. this.gridList.paramType = this.purchasePriceList[i].paramType
  1547. }
  1548. }
  1549. }
  1550. if (this.inType != "收购入库") { //非收购入库 价格取自合同
  1551. return
  1552. }
  1553. if (this.gridList.goodsName && this.cangid) {
  1554. if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1555. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1556. warehouseId: this.cangid,
  1557. goodsName: this.gridList.goodsName
  1558. }).then(res => {
  1559. that.gridList.dryGrainPrice = res.data.data
  1560. that.dryGrainPrice = res.data.data
  1561. })
  1562. }
  1563. }
  1564. that.gridList.waterPriceIncrease = 0
  1565. that.gridList.waterPriceDeduction = 0
  1566. that.gridList.qualityPriceIncrease = 0
  1567. that.gridList.qualityPriceDeduction = 0
  1568. //潮粮单价改变事件
  1569. if (
  1570. this.gridList.goodsName &&
  1571. this.gridList.waterContent &&
  1572. this.gridList.grade
  1573. ) {
  1574. uni.showLoading({
  1575. title: "加载中",
  1576. mask:true
  1577. })
  1578. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1579. warehouseId: this.cangid,
  1580. goodsName: this.gridList.goodsName,
  1581. waterContent: this.gridList.waterContent,
  1582. grade: this.gridList.grade,
  1583. }).then(res => {
  1584. if (that.gridList.paramType == '1') {
  1585. // console.log(that.gridList)
  1586. if (that.gridList.buckleMiscellaneous) {
  1587. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(
  1588. that
  1589. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1590. .dryGrainPrice)).toFixed(4)
  1591. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1592. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1593. .dryGrainPrice)).toFixed(4)
  1594. }
  1595. if (!that.gridList.tidalGrainPrice) {
  1596. that.gridList.tidalGrainPrice = ''
  1597. }
  1598. if (that.gridList.type == '干粮') {
  1599. that.gridList.dryGrainPrice = res.data.data
  1600. that.dryGrainPrice = that.gridList.dryGrainPrice
  1601. }
  1602. } else {
  1603. that.gridList.tidalGrainPrice = res.data.data
  1604. if (that.gridList.type == '干粮') {
  1605. that.gridList.dryGrainPrice = res.data.data
  1606. that.dryGrainPrice = that.gridList.dryGrainPrice
  1607. } else {
  1608. that.gridList.tidalGrainPrice = res.data.data
  1609. that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1610. }
  1611. }
  1612. uni.hideLoading()
  1613. })
  1614. }
  1615. },
  1616. gocustomer() {
  1617. uni.navigateTo({
  1618. url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList
  1619. .warehouseName + '&goodsName=' + this.gridList.goodsName
  1620. })
  1621. },
  1622. getdate() {
  1623. var date = new Date()
  1624. var year = date.getFullYear() //获取完整的年份(4位)
  1625. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  1626. var datetime = date.getDate() //获取当前日(1-31)
  1627. if (mouth < 10) {
  1628. mouth = '0' + mouth
  1629. }
  1630. if (datetime < 10) {
  1631. datetime = '0' + datetime
  1632. }
  1633. return year + '' + mouth + '' + datetime
  1634. },
  1635. async addQualityInspection(type) {
  1636. if (type == 1) {
  1637. await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
  1638. .gridList)
  1639. .then(res => {
  1640. console.log(res)
  1641. this.printId = res.data.data
  1642. uni.hideLoading()
  1643. if (res.data.code == 200) {
  1644. console.log("addQualityInspection")
  1645. this.$api.msg('提交成功')
  1646. this.gridList.warehouseId = this.cangid
  1647. this.gridList.compId = uni.getStorageSync(
  1648. 'pcUserInfo').compId
  1649. uni.setStorageSync("quality_print", this.gridList)
  1650. if (this.isZJ) {
  1651. this.isShowPrint = true
  1652. } else {
  1653. uni.navigateBack({})
  1654. }
  1655. console.log('that.gridList', this.gridList)
  1656. // uni.navigateBack({})
  1657. } else {
  1658. this.$api.msg('提交失败')
  1659. }
  1660. })
  1661. return
  1662. }
  1663. if (type == 2) {
  1664. await this.$api.doRequest('post', '/qualityInspectionManagement/api/addQualityInspection', this
  1665. .gridList)
  1666. .then(res => {
  1667. console.log("addQualityInspection")
  1668. this.printId = res.data.data
  1669. uni.hideLoading()
  1670. if (res.data.code == 200) {
  1671. this.$api.msg('提交成功')
  1672. this.gridList.warehouseId = this.cangid
  1673. this.gridList.compId = uni.getStorageSync('pcUserInfo').compId
  1674. uni.setStorageSync("quality_print", this.gridList)
  1675. if (this.isZJ) {
  1676. this.isShowPrint = true
  1677. } else {
  1678. uni.navigateBack({})
  1679. }
  1680. uni.setStorageSync(
  1681. 'checkcustomer', {}
  1682. )
  1683. console.log('that.gridList', this.gridList)
  1684. // uni.navigateBack({})
  1685. } else {
  1686. this.$api.msg('提交失败')
  1687. }
  1688. })
  1689. }
  1690. },
  1691. async inOutWarehouse(type) {
  1692. if (type == 1) {
  1693. await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
  1694. .then(res => {
  1695. console.log("InOutWarehouse")
  1696. this.gridList.warehouseInOutId = res.data.data
  1697. this.addQualityInspection(1)
  1698. })
  1699. return
  1700. }
  1701. if (type == 2) {
  1702. await this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.gridList)
  1703. .then(res => {
  1704. console.log("InOutWarehouse")
  1705. if (this.isQY) {
  1706. if (!this.isZJ) {
  1707. this.gridList.brazer=1
  1708. this.gridList.statusFlag = 7
  1709. } else {
  1710. this.gridList.statusFlag = 0
  1711. }
  1712. }
  1713. this.gridList.warehouseInOutId = res.data.data
  1714. this.addQualityInspection(2)
  1715. })
  1716. return
  1717. }
  1718. },
  1719. async cumulant(type) {
  1720. if (type == 1) {
  1721. await this.$api.doRequest('get', '/paymentManagement/cumulant', {
  1722. compId: uni.getStorageSync('pcUserInfo').compId,
  1723. customerNumberCard: this.gridList.customerNumberCard,
  1724. goodsName: this.gridList.goodsName,
  1725. })
  1726. .then(response => {
  1727. console.log("cumulant")
  1728. if (response.data.code == 200) {
  1729. for (let i = 0; i < this.purchasePriceList.length; i++) {
  1730. if (this.gridList.goodsName == this.purchasePriceList[i].goodsName) {
  1731. let count = (this.purchasePriceList[i].saleLimit - response.data.data /
  1732. 1000)
  1733. .toFixed(2)
  1734. console.log(count, this.purchasePriceList[i].saleLimit, response.data.data)
  1735. if (Number(count) <= 0) {
  1736. count = 0
  1737. this.$api.msg('该客户累计销售' + this.gridList.goodsName + (response.data
  1738. .data /
  1739. 1000).toFixed(2) + '吨,还可售粮' + count + '吨', )
  1740. uni.hideLoading()
  1741. break;
  1742. }
  1743. this.gridList.inOutFlag = 2
  1744. this.inOutWarehouse(2)
  1745. }
  1746. }
  1747. }
  1748. })
  1749. return
  1750. }
  1751. },
  1752. async getGoodsName() {
  1753. let that = this
  1754. await this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  1755. warehouseId: this.cangid
  1756. }).then(res => {
  1757. if (res.data.code != 200 && that.typevalue == 3) {
  1758. uni.showModal({
  1759. content: res.data.message,
  1760. showCancel: false
  1761. })
  1762. return;
  1763. }
  1764. uni.showModal({
  1765. content: "确定提交质检信息?",
  1766. showCancel: true,
  1767. confirmText: '提交',
  1768. success: function(res) {
  1769. if (res.confirm) {
  1770. that.gridList.serviceManagementType = that.typevalue
  1771. if (that.typevalue == 3) {
  1772. that.cumulant(1)
  1773. return
  1774. }
  1775. that.gridList.inOutFlag = 2
  1776. that.inOutWarehouse(1)
  1777. // that.addQualityInspection(1)
  1778. }
  1779. }
  1780. })
  1781. })
  1782. },
  1783. submit() {
  1784. console.log(this.isQY, "isQY")
  1785. console.log(this.isZJ, "isZJ")
  1786. if (this.typevalue == 3) {
  1787. if (this.outType) {
  1788. this.gridList.outType = this.outType
  1789. }
  1790. }
  1791. var that = this
  1792. this.gridList.agent = this.userInfo.userName;
  1793. this.gridList.carNo = this.gridList.carNumber
  1794. this.gridList.baseId = this.cangid
  1795. this.gridList.warehouseId = this.cangid
  1796. if (this.typevalue == 1) {
  1797. if (this.gridList.inOutType == '移库入库') {
  1798. this.gridList.numberLetter = 'YKRK'
  1799. } else {
  1800. this.gridList.numberLetter = 'CGRK'
  1801. }
  1802. } else {
  1803. this.gridList.numberLetter = 'SGRK'
  1804. }
  1805. this.gridList.warehouseNo = this.commonWarehouseNo
  1806. if (!this.gridList.inOutTaskNo) {
  1807. this.$api.msg('任务编号不能为空')
  1808. return
  1809. }
  1810. if (this.utils.getCurrectRoles('acquisitionQuality.initial')) {
  1811. if (!this.gridList.binNumber) {
  1812. this.$api.msg('仓位不能为空')
  1813. return
  1814. }
  1815. if (this.typevalue == 3) {
  1816. if (!this.gridList.natureOfGrainPurchase) {
  1817. this.$api.msg('购粮性质不能为空')
  1818. return
  1819. }
  1820. }
  1821. if (!this.gridList.type) {
  1822. this.$api.msg('类型不能为空')
  1823. return
  1824. }
  1825. if (this.value == false) {
  1826. if (!this.gridList.grade) {
  1827. this.$api.msg('等级不能为空')
  1828. return
  1829. }
  1830. if (!this.gridList.impurity) {
  1831. this.$api.msg('杂质不能为空')
  1832. return
  1833. }
  1834. if (!this.gridList.waterContent) {
  1835. this.$api.msg('初检水分不能为空')
  1836. return
  1837. }
  1838. // if (!this.gridList.reWaterContent) {
  1839. // this.$api.msg('复检水分不能为空')
  1840. // return
  1841. // }
  1842. if (!this.gridList.mildewGrain) {
  1843. this.$api.msg('霉变粒不能为空')
  1844. return
  1845. }
  1846. if (this.gridList.goodsName != "大豆") {
  1847. if (!this.gridList.bulkDensity) {
  1848. this.$api.msg('容重不能为空')
  1849. return
  1850. }
  1851. }
  1852. if(this.gridList.goodsName == "大豆"){
  1853. if (!this.gridList.protein) {
  1854. this.$api.msg('蛋白不能为空')
  1855. return
  1856. }
  1857. }
  1858. if (!this.gridList.jiaorenli && this.gridList.jiaorenli != 0) {
  1859. this.$api.msg('热损伤不能为空')
  1860. return
  1861. }
  1862. if (!this.gridList.imperfectGrain) {
  1863. this.$api.msg('不完整粒不能为空')
  1864. return
  1865. }
  1866. }
  1867. }
  1868. if (this.isQY) {
  1869. if (this.typevalue == 3) {
  1870. if (!this.gridList.customerName) {
  1871. this.$api.msg('客户不能为空')
  1872. return
  1873. }
  1874. }
  1875. if (!this.gridList.carNumber) {
  1876. this.$api.msg('车牌号不能为空')
  1877. return
  1878. }
  1879. if (this.gridList.carNumber.length != 7) {
  1880. this.$api.msg('车牌号输入错误')
  1881. return
  1882. }
  1883. if (!this.gridList.goodsName) {
  1884. this.$api.msg('货名不能为空')
  1885. return
  1886. }
  1887. }
  1888. // 钎样提交
  1889. if (this.isQY && !this.isZJ) {
  1890. that.gridList.serviceManagementType = that.typevalue
  1891. uni.showModal({
  1892. content: "确定提交钎样信息?",
  1893. showCancel: true,
  1894. confirmText: '提交',
  1895. success: function(res) {
  1896. if (res.confirm) {
  1897. // 收购入库
  1898. if (that.typevalue == 3) {
  1899. uni.showLoading({
  1900. title: "加载中",
  1901. mask:true
  1902. })
  1903. that.cumulant(1)
  1904. return
  1905. }
  1906. uni.showLoading({
  1907. title: "加载中",
  1908. mask:true
  1909. })
  1910. that.gridList.inOutFlag = 2
  1911. that.inOutWarehouse(1)
  1912. }
  1913. }
  1914. })
  1915. } else {
  1916. this.gridList.brazer = 0
  1917. this.getGoodsName()
  1918. }
  1919. // // 质检提交
  1920. // if (!this.isQY && this.isZJ) {
  1921. // }
  1922. },
  1923. gradepicker(e) {
  1924. console.log(e)
  1925. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1926. this.gridList.grade = this.gradeList[e[0]].value
  1927. this.gridList.gradeKey = this.gradeList[e[0]].key
  1928. this.waterContentChange()
  1929. },
  1930. setGoodName(e, status) {
  1931. // console.log(this.goodsList[e[0]].goodsName,111111111)
  1932. //
  1933. // [e[0]] = 0
  1934. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1935. if (this.goodsList[e[0]].goodsName == '玉米') {
  1936. this.gridList.type = '干粮'
  1937. this.edit = true
  1938. } else if (this.goodsList[e[0]].goodsName.indexOf('潮粮') > -1) {
  1939. this.gridList.type = '潮粮'
  1940. this.edit = true
  1941. } else {
  1942. this.gridList.type = '干粮'
  1943. this.edit = false
  1944. }
  1945. var that = this
  1946. this.gridList.goodsName = this.goodsList[e[0]].goodsName
  1947. // this.$api.doRequest('get', '/identityAuthenticationInfo/identityAuthenticationInfoCustomer', {
  1948. // warehouseId: this.cangid,
  1949. // goodsName: this.gridList.goodsName
  1950. // }).then(res => {
  1951. // if (res.data.data) {
  1952. // uni.hideLoading()
  1953. // // let data = res.data.data
  1954. // // that.gridList =data
  1955. // }
  1956. // })
  1957. uni.setStorageSync('goodsName', this.gridList.goodsName)
  1958. if (this.gridList.type == "干粮" && this.gridList.goodsName) {
  1959. if (this.inType == "收购入库") { //收购入库 价格取自合同
  1960. return
  1961. }
  1962. if (!status) {
  1963. uni.showLoading({
  1964. title: '加载中',
  1965. mask: true
  1966. })
  1967. }
  1968. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1969. warehouseId: this.cangid,
  1970. goodsName: this.gridList.goodsName
  1971. }).then(res => {
  1972. this.gridList.dryGrainPrice = res.data.data
  1973. if (!status) {
  1974. uni.hideLoading()
  1975. }
  1976. })
  1977. }
  1978. this.waterContentChange()
  1979. },
  1980. goodspicker(e) {
  1981. console.log(e)
  1982. this.setGoodName(e)
  1983. },
  1984. typepicker(e) {
  1985. var that = this
  1986. this.gridList.type = this.typeList[e[0]]
  1987. if (this.inType == "收购入库") { //收购入库 价格取自合同
  1988. return
  1989. }
  1990. if (this.gridList.type == "干粮" && this.gridList.goodsName) {
  1991. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1992. warehouseId: this.cangid,
  1993. goodsName: this.gridList.goodsName
  1994. }).then(res => {
  1995. that.gridList.dryGrainPrice = res.data.data
  1996. })
  1997. }
  1998. },
  1999. binNumberpicker(e) {
  2000. console.log(this.warehouseList[e[0]])
  2001. this.gridList.binNumber = this.warehouseList[e[0]].binNumber
  2002. this.gridList.positionId = this.warehouseList[e[0]].id
  2003. },
  2004. del(item) {
  2005. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection', {
  2006. id: item.id
  2007. }).then(res => {
  2008. if (res.data.code == 200) {
  2009. this.$api.msg('删除成功')
  2010. } else {
  2011. this.$api.msg('系统异常,请联系管理员')
  2012. }
  2013. })
  2014. },
  2015. contactUs() {
  2016. const that = this
  2017. uni.makePhoneCall({
  2018. // 手机号
  2019. phoneNumber: '18241771147',
  2020. // 成功回调
  2021. success: (res) => {},
  2022. // 失败回调
  2023. fail: (res) => {}
  2024. });
  2025. },
  2026. loadData() {
  2027. // const that = this
  2028. // if(uni.getStorageSync("PageCur")){
  2029. // that.PageCur = uni.getStorageSync("PageCur");
  2030. // }
  2031. // that.userInfoTmp = uni.getStorageSync("userInfo")
  2032. // uni.showLoading({
  2033. // title: '正在加载',
  2034. // mask:true
  2035. // })
  2036. // that.$api.request('integral', 'getIndexData', failres => {
  2037. // that.$api.msg(failres.errmsg)
  2038. // uni.hideLoading()
  2039. // }).then(res => {
  2040. // let data = res.data
  2041. // uni.setStorageSync("message", data.message);
  2042. // uni.setStorageSync("task", data.task);
  2043. // uni.setStorageSync("contract", data.contract);
  2044. // uni.setStorageSync('showTran', data.showTran);
  2045. // that.showTran = data.showTran
  2046. // that.gridList[4].tips = data.task
  2047. // that.gridList[2].tips = data.contract
  2048. // that.companyId = data.companyId
  2049. // uni.hideLoading()
  2050. // })
  2051. },
  2052. confirm() {
  2053. const that = this
  2054. if (!that.inputContent) {
  2055. that.$api.msg('输入不能为空')
  2056. return
  2057. }
  2058. let obj = {}
  2059. obj[that.feild] = that.inputContent
  2060. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  2061. that.userInfo.nickname = that.inputContent
  2062. that.inputContent = ''
  2063. that.$store.commit('login', that.userInfo)
  2064. })
  2065. },
  2066. cancel() {
  2067. this.inputShow = false
  2068. this.inputStatus = 'none'
  2069. this.genderShow = false
  2070. },
  2071. myAccount() {
  2072. uni.navigateTo({
  2073. url: `/pageA/pages/contract`
  2074. })
  2075. },
  2076. /**
  2077. * 统一跳转接口,拦截未登录路由
  2078. * navigator标签现在默认没有转场动画,所以用view
  2079. */
  2080. navTo(url) {
  2081. if (!this.hasLogin) {
  2082. url = '/pages/public/login';
  2083. }
  2084. uni.navigateTo({
  2085. url
  2086. })
  2087. },
  2088. mycarClick(carNo) {
  2089. this.modalName = null
  2090. uni.navigateTo({
  2091. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  2092. })
  2093. },
  2094. scanCode() {
  2095. uni.scanCode({
  2096. success: function(res) {
  2097. uni.navigateTo({
  2098. url: res.result
  2099. })
  2100. }
  2101. })
  2102. },
  2103. hideModal(e) {
  2104. this.modalName = null
  2105. },
  2106. }
  2107. }
  2108. </script>
  2109. <style lang='scss' scoped>
  2110. page {
  2111. background: #F5F6FA;
  2112. }
  2113. .title_b {
  2114. margin: 20rpx 20rpx 0rpx 20rpx;
  2115. padding: 20rpx 10rpx 20rpx 10rpx;
  2116. font-size: 18px;
  2117. font-weight: 550;
  2118. }
  2119. .c-row {
  2120. display: -webkit-box;
  2121. display: -webkit-flex;
  2122. display: flex;
  2123. -webkit-box-align: center;
  2124. -webkit-align-items: center;
  2125. align-items: center;
  2126. padding: 20rpx 30rpx;
  2127. position: relative;
  2128. }
  2129. .con-list {
  2130. -webkit-box-flex: 1;
  2131. -webkit-flex: 1;
  2132. flex: 1;
  2133. display: -webkit-box;
  2134. display: -webkit-flex;
  2135. display: flex;
  2136. -webkit-box-orient: vertical;
  2137. -webkit-box-direction: normal;
  2138. -webkit-flex-direction: column;
  2139. flex-direction: column;
  2140. color: #303133;
  2141. line-height: 40rpx;
  2142. text-align: right;
  2143. padding-right: 20rpx;
  2144. }
  2145. .wrap {
  2146. padding-bottom: 10px;
  2147. font-size: 14px;
  2148. background: #fff;
  2149. margin: 10px;
  2150. border-radius: 10px;
  2151. input {
  2152. font-size: 14px;
  2153. }
  2154. >.title {
  2155. padding: 10px 16px;
  2156. }
  2157. }
  2158. .footer {
  2159. background: #fff;
  2160. position: fixed;
  2161. bottom: 0;
  2162. width: 100%;
  2163. padding: 20px 10px;
  2164. z-index: 10;
  2165. .button {
  2166. background: #22C572;
  2167. width: 90%;
  2168. margin: 20rpx auto;
  2169. padding: 10px;
  2170. color: #fff;
  2171. text-align: center;
  2172. border-radius: 30px;
  2173. }
  2174. }
  2175. .buns_item {
  2176. display: flex;
  2177. padding: 80rpx 0 50rpx 0;
  2178. justify-content: space-around;
  2179. }
  2180. .but_css {
  2181. background: #22C572;
  2182. width: 40%;
  2183. padding: 20rpx;
  2184. color: #fff;
  2185. text-align: center;
  2186. border-radius: 20rpx;
  2187. }
  2188. /deep/.u-radio-group {
  2189. flex-direction: row-reverse;
  2190. }
  2191. </style>