add_quality_testing.vue 75 KB

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