add_quality_testing.vue 79 KB

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