edit_quality_testing.vue 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659
  1. <template>
  2. <view :style='{"margin-bottom":InputEvent!=""?"200px":0}' ref="all-input">
  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. <view v-if='gridList.serviceManagementType==1'>贸易入库</view>
  9. <view v-if='gridList.serviceManagementType==3'>收购入库</view>
  10. </view>
  11. </view>
  12. <view v-if="flag!=3" class="c-row ">
  13. <view class="title">仓库</view>
  14. <view class="con-list">
  15. {{gridList.warehouseName}}
  16. </view>
  17. </view>
  18. <view class="c-row ">
  19. <view class="title">任务编号</view>
  20. <view class="con-list">
  21. <view >{{gridList.inOutTaskNo}}</view>
  22. </view>
  23. </view>
  24. <view v-if='gridList.serviceManagementType==1&&gridList.inOutType!="移库入库"&&flag!=3||gridList.serviceManagementType==3' class="c-row ">
  25. <view class="title">合同编号</view>
  26. <view class="con-list">
  27. {{gridList.contractNo}}
  28. </view>
  29. </view>
  30. <view v-if='gridList.serviceManagementType==1&&gridList.inOutType=="移库入库"&&flag!=3' class="c-row ">
  31. <view class="title">移库编号</view>
  32. <view class="con-list">
  33. {{gridList.contractNo}}
  34. </view>
  35. </view>
  36. <view v-if='flag!=3' class="c-row ">
  37. <view class="title">业务编号</view>
  38. <view class="con-list">
  39. {{gridList.qualityNo}}
  40. </view>
  41. </view>
  42. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  43. <view class="title">成本</view>
  44. <view class="con-list">
  45. <view v-if='!coststatus'>{{gridList.cost?gridList.cost:'自动获取,不可编辑'}}</view>
  46. <view v-if='coststatus'>
  47. <input v-model='gridList.cost' placeholder="请输入成本" name="input" type="digit"></input>
  48. </view>
  49. </view>
  50. <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changecost">{{costtext}}</button>
  51. </view>
  52. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  53. <view class="title">运费</view>
  54. <view class="con-list flex">
  55. <view v-if='!freightstatus'>{{gridList.freight?gridList.freight:'自动获取,不可编辑'}}</view>
  56. <view v-if='freightstatus'>
  57. <input v-model='gridList.freight' placeholder="请输入运费" name="input" type="digit"></input>
  58. </view>
  59. </view>
  60. <button v-if='flag==4||flag==0' class='cu-btn bg-green shadow' @click="changefreight">{{freighttext}}</button>
  61. </view>
  62. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  63. <view class="title">扣款</view>
  64. <view class="con-list">
  65. <input v-if='flag==4||flag==0' v-model='gridList.deductionAmount' placeholder="请输入扣款" name="input" type="digit"></input>
  66. </view>
  67. </view>
  68. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  69. <view class="title">入库类型</view>
  70. <view class="con-list">
  71. {{gridList.inOutType?gridList.inOutType:'自动获取,不可编辑'}}
  72. </view>
  73. </view>
  74. <view v-if='gridList.serviceManagementType==1&&flag!=3' class="c-row ">
  75. <view class="title">入库日期</view>
  76. <view class="con-list">
  77. <view v-if='flag==4||flag==0' @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  78. <view v-else @click='show5=true'>{{gridList.inOutDate?gridList.inOutDate:'请选择入库日期'}}</view>
  79. <u-picker @confirm='inOutDatepicker($event)' :params="params" v-model="show5"
  80. mode="time">
  81. </u-picker>
  82. </view>
  83. </view>
  84. <view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
  85. <view class="title">客户</view>
  86. <view class="con-list">
  87. <view v-if='flag==4||flag==3' @click='gocustomer'>
  88. {{gridList.customerName}}({{gridList.customerPhone}})
  89. </view>
  90. <view v-else>
  91. {{gridList.customerName}}({{gridList.customerPhone}})
  92. </view>
  93. </view>
  94. </view>
  95. <!-- <view v-if='flag!=0' class="c-row "> -->
  96. <view class="c-row ">
  97. <view class="title">车牌号</view>
  98. <view class="con-list">
  99. <input :disabled="flag!=4&&flag!=3" v-model='gridList.carNumber' @click.stop="handleShowKeyboard" placeholder="请输入车牌号"
  100. name="input"></input>
  101. <master-keyboard ref="keyboard" keyboardtype="car" :randomNumber="true" :newCar="false"
  102. :defaultValue="gridList.carNumber" @keyboardClick="handleClick"></master-keyboard>
  103. <!-- <input :disabled='flag==1' v-model='gridList.carNumber' placeholder="请输入车牌号" name="input"></input> -->
  104. </view>
  105. </view>
  106. <!-- <view v-if="gridList.paramType != '1'" class="c-row ">
  107. <view class="title">扣重比</view>
  108. <view class="con-list">
  109. <input :disabled='flag==1' v-model='gridList.buckleWeightRatio' placeholder="请输入扣重比"
  110. name="input"></input>
  111. </view>
  112. </view>
  113. <view v-else class="c-row ">
  114. <view class="title">扣杂</view>
  115. <view class="con-list">
  116. <input :disabled='flag==1' v-model='gridList.buckleMiscellaneous' placeholder="初检扣杂"
  117. @input="waterContentChange" name="input"></input>
  118. <input v-if='flag==0' value='未复检' disabled placeholder="复检扣杂" name="input"></input>
  119. <input v-else :disabled='flag!=1' v-model='gridList.reBuckleMiscellaneous' placeholder="复检扣杂"
  120. name="input"></input>
  121. </view>
  122. </view> -->
  123. <view v-if='gridList.serviceManagementType==3&&flag!=3' class="c-row ">
  124. <view class="title">购粮性质</view>
  125. <view class="con-list">
  126. <input :disabled='flag==1' v-model='gridList.natureOfGrainPurchase' placeholder="请输入购粮性质"
  127. name="input"></input>
  128. </view>
  129. </view>
  130. <view v-if='flag!=3' class="c-row ">
  131. <view class="title">仓位号</view>
  132. <view class="con-list">
  133. <view v-if='flag!=1' @click='show=true'>{{gridList.binNumber?gridList.binNumber:'请选择仓位号'}}</view>
  134. <view v-else>{{gridList.binNumber}}</view>
  135. </view>
  136. </view>
  137. <view v-if='flag!=3' class="c-row ">
  138. <view class="title">囤位号</view>
  139. <view class="con-list">
  140. <input :disabled="flag!=4&&flag!=0" v-model='gridList.storageTagNo' placeholder="请输入囤位号" name="input"></input>
  141. </view>
  142. </view>
  143. <view v-if='flag!=3' class="c-row ">
  144. <view class="title">货名</view>
  145. <view class="con-list">
  146. <!-- <view v-if="flag != '0'">
  147. {{gridList.goodsName}}
  148. </view> -->
  149. <view v-if='flag==4||flag==0'>{{gridList.goodsName}}</view>
  150. <view v-else>{{gridList.goodsName}}</view>
  151. <u-picker :range="goodsList" range-key="goodsName" @confirm='goodsPicker($event)'
  152. v-model="goodsName" mode="selector">
  153. </u-picker>
  154. </view>
  155. </view>
  156. <view v-if='flag!=3' class="c-row ">
  157. <view class="title">类型</view>
  158. <view class="con-list">
  159. {{gridList.type}}
  160. </view>
  161. </view>
  162. <view v-if='gridList.serviceManagementType==1' class="c-row ">
  163. <view class="title">运输方式</view>
  164. <view class="con-list">
  165. <view v-if='flag==4||flag==0' @click='show7=true'>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  166. <view v-else>{{gridList.outType?gridList.outType:'请选择运输方式'}}</view>
  167. <u-picker :range="multiSelector" range-key="name" @confirm='outtypepicker($event,0)' v-model="show7"
  168. mode="selector">
  169. </u-picker>
  170. </view>
  171. </view>
  172. <view v-if='gridList.serviceManagementType==3&&flag!=0' class="c-row ">
  173. <view class="title">运输方式</view>
  174. <view class="con-list">
  175. <view v-if='flag==4||flag==3' @click='show8=true'>{{outType?outType:'请选择运输方式'}}</view>
  176. <view v-else>{{outType?outType:'请选择运输方式'}}</view>
  177. <u-picker :range="multiSelector1" range-key="name" @confirm='outtypepicker($event,1)' v-model="show8"
  178. mode="selector">
  179. </u-picker>
  180. </view>
  181. </view>
  182. <view v-if='gridList.serviceManagementType==1&&flag!=3||gridList.serviceManagementType==3&&gridList.outType=="自运"&&flag!=3' class="c-row ">
  183. <view class="title">车队</view>
  184. <view class="con-list">
  185. <view v-if='flag==4||flag==0' @click='show6=true'>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  186. <view v-else>{{gridList.fleet?ridList.fleet:'非车队车辆'}}</view>
  187. <u-picker @confirm='fleetpicker($event)' :range="fleetNameList" range-key="fleetName" v-model="show6"
  188. mode="selector">
  189. </u-picker>
  190. </view>
  191. </view>
  192. <view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  193. <view class="title">箱号-1</view>
  194. <view class="con-list">
  195. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  196. </view>
  197. </view>
  198. <view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  199. <view class="title">封号-1</view>
  200. <view class="con-list">
  201. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  202. </view>
  203. </view>
  204. <view v-if="gridList.outType=='汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  205. <view class="title">箱号-2</view>
  206. <view class="con-list">
  207. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  208. </view>
  209. </view>
  210. <view v-if="gridList.outType== '汽运'&&gridList.serviceManagementType==1 ||gridList.outType == '集装箱船'&&gridList.serviceManagementType==1" class="c-row ">
  211. <view class="title">封号-2</view>
  212. <view class="con-list">
  213. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  214. </view>
  215. </view>
  216. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  217. <view class="title">箱号-1</view>
  218. <view class="con-list">
  219. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNo' placeholder="请输入箱号" name="input" type="digit"></input>
  220. </view>
  221. </view>
  222. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  223. <view class="title">封号-1</view>
  224. <view class="con-list">
  225. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNo' placeholder="请输入封号" name="input" type="digit"></input>
  226. </view>
  227. </view>
  228. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  229. <view class="title">箱号-2</view>
  230. <view class="con-list">
  231. <input :disabled='flag!=4&&flag!=0' v-model='gridList.boxNoOther' placeholder="请输入箱号" name="input" type="digit"></input>
  232. </view>
  233. </view>
  234. <view v-if="gridList.serviceManagementType==3&&flag!=0" class="c-row">
  235. <view class="title">封号-2</view>
  236. <view class="con-list">
  237. <input :disabled='flag!=4&&flag!=0' v-model='gridList.titleNoOther' placeholder="请输入封号" name="input" type="digit"></input>
  238. </view>
  239. </view>
  240. <view class="c-row-fj" v-if="flag==2||flag==1">
  241. <view style="margin: 0px 0px 30rpx 10rpx;">复检备注</view>
  242. <textarea class='textarea-style' v-model='gridList.reMemo' placeholder="请输入复检备注"
  243. maxlength="300"></textarea>
  244. </view>
  245. <view class="c-row" v-if="flag==1&&gridList.warehouseName=='鲅鱼圈金信库'">
  246. <view class="title">车型</view>
  247. <view class="con-list">
  248. <view @click='carstatus = true'>{{gridList.carModel?gridList.carModel:'请选择车型'}}</view>
  249. <u-picker :range="carModeList" range-key="constValue" @confirm='carPicker($event)'
  250. v-model="carstatus" mode="selector">
  251. </u-picker>
  252. </view>
  253. </view>
  254. </view>
  255. <view v-if='flag!=3' style='padding-bottom:500rpx;'>
  256. <view class='wrap'>
  257. <view style='margin-right:10px;' class='flex justify-between align-item-center'>
  258. <view class='title_b'>化验信息</view>
  259. <view v-if='flag==0||flag==4' class='flex justify-between align-item-center'>补录:<u-switch activeColor="#22C572"
  260. v-model="value" @change="change"></u-switch>
  261. </view>
  262. </view>
  263. <view class="c-row ">
  264. <view class="title">等级</view>
  265. <view class="con-list">
  266. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker($event)' v-model="show1"
  267. mode="selector">
  268. </u-picker>
  269. <view v-if='flag!=1' @click='show1=true'>{{gridList.grade?gridList.grade:'请选择等级'}}</view>
  270. <view v-else>{{gridList.grade}}</view>
  271. <u-picker :range="gradeList" range-key="value" @confirm='gradepicker1($event)' v-model="show2"
  272. mode="selector">
  273. </u-picker>
  274. <view v-if='flag==1' @click='show2=true'>{{gridList.reGrade?gridList.reGrade:'请选择等级'}}</view>
  275. <view v-if='flag==2'>{{gridList.reGrade}}</view>
  276. </view>
  277. </view>
  278. <view class="c-row ">
  279. <view class="title">水分(%)</view>
  280. <view class="con-list">
  281. <MyNumberInput :myvalue="gridList.waterContent" :Isedit="Isedit" :IsShow="MykeywordShow"
  282. :myevent="'waterContent'"
  283. @setValue="mykeywordset" v-if="InputEvent=='waterContent'"
  284. @Cancelword="Cancelword"
  285. @goNext="goNext('waterContent')"></MyNumberInput>
  286. <input v-else :disabled='flag==1' @click="SetInputKey('waterContent')" v-model='gridList.waterContent' placeholder="初检水分"
  287. @input="waterContentChange" type="digit" name="input"></input>
  288. <MyNumberInput :myvalue="gridList.reWaterContent" :Isedit="Isedit" :IsShow="MykeywordShow"
  289. :myevent="'reWaterContent'"
  290. @setValue="mykeywordset" v-if="InputEvent=='reWaterContent'"
  291. @Cancelword="Cancelword"
  292. @goNext="goNext('reWaterContent')"></MyNumberInput>
  293. <input @click="SetInputKey('reWaterContent')" v-if="flag==1&&InputEvent!='reWaterContent'||flag==2&&InputEvent!='reWaterContent'" type="digit" v-model='gridList.reWaterContent' placeholder="复检水分"
  294. name="input"></input>
  295. </view>
  296. </view>
  297. <view class="c-row ">
  298. <view v-if='gridList.goodsName!="大豆"' class="title">容重(克/升)</view>
  299. <view v-else class="title">蛋白</view>
  300. <view class="con-list">
  301. <MyNumberInput :myvalue="gridList.bulkDensity" :Isedit="Isedit" :IsShow="MykeywordShow"
  302. :myevent="'bulkDensity'"
  303. @setValue="mykeywordset" v-if="InputEvent=='bulkDensity'"
  304. @Cancelword="Cancelword"
  305. @goNext="goNext('bulkDensity')"></MyNumberInput>
  306. <input v-else @click="SetInputKey('bulkDensity')" :disabled='flag==1' type="digit" v-model='gridList.bulkDensity' placeholder="请输入容重"
  307. name="input" @input="obtainPrice"></input>
  308. <MyNumberInput :myvalue="gridList.reBulkDensity" :Isedit="Isedit" :IsShow="MykeywordShow"
  309. :myevent="'reBulkDensity'"
  310. @setValue="mykeywordset" v-if="InputEvent=='reBulkDensity'"
  311. @Cancelword="Cancelword"
  312. @goNext="goNext('reBulkDensity')"></MyNumberInput>
  313. <input @click="SetInputKey('reBulkDensity')" v-if="flag==1&&InputEvent!='reBulkDensity'||flag==2&&InputEvent!='reBulkDensity'" type="digit" v-model='gridList.reBulkDensity' placeholder="请输入容重"
  314. name="input"></input>
  315. </view>
  316. </view>
  317. <view class="c-row ">
  318. <view class="title">不完善粒(%)</view>
  319. <view class="con-list">
  320. <MyNumberInput :myvalue="gridList.imperfectGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  321. :myevent="'imperfectGrain'"
  322. @setValue="mykeywordset" v-if="InputEvent=='imperfectGrain'"
  323. @Cancelword="Cancelword"
  324. @goNext="goNext('imperfectGrain')"></MyNumberInput>
  325. <input v-else @click="SetInputKey('imperfectGrain')" :disabled='flag==1' type="digit" v-model='gridList.imperfectGrain' placeholder="请输入不完整粒占比"
  326. name="input"></input>
  327. <MyNumberInput :myvalue="gridList.reImperfectGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  328. :myevent="'reImperfectGrain'"
  329. @setValue="mykeywordset" v-if="InputEvent=='reImperfectGrain'"
  330. @Cancelword="Cancelword"
  331. @goNext="goNext('reImperfectGrain')"></MyNumberInput>
  332. <input @click="SetInputKey('reImperfectGrain')" v-if="flag==1&&InputEvent!='reImperfectGrain'||flag==2&&InputEvent!='reImperfectGrain'" type="digit" v-model='gridList.reImperfectGrain' placeholder="请输入不完整粒占比"
  333. name="input"></input>
  334. </view>
  335. </view>
  336. <view class="c-row ">
  337. <view class="title">杂质(%)</view>
  338. <view class="con-list">
  339. <MyNumberInput :myvalue="gridList.impurity" :Isedit="Isedit" :IsShow="MykeywordShow"
  340. :myevent="'impurity'"
  341. @setValue="mykeywordset" v-if="InputEvent=='impurity'"
  342. @Cancelword="Cancelword"
  343. @goNext="goNext('impurity')"></MyNumberInput>
  344. <input v-else @click="SetInputKey('impurity')" :disabled='flag==1' type="digit" v-model='gridList.impurity' placeholder="请输入杂质占比"
  345. name="input"></input>
  346. <MyNumberInput :myvalue="gridList.reImpurity" :Isedit="Isedit" :IsShow="MykeywordShow"
  347. :myevent="'reImpurity'"
  348. @setValue="mykeywordset" v-if="InputEvent=='reImpurity'"
  349. @Cancelword="Cancelword"
  350. @goNext="goNext('reImpurity')"></MyNumberInput>
  351. <input @click="SetInputKey('reImpurity')" v-if="flag==1&&InputEvent!='reImpurity'||flag==2&&InputEvent!='reImpurity'" type="digit" v-model='gridList.reImpurity' placeholder="请输入杂质占比"
  352. name="input"></input>
  353. </view>
  354. </view>
  355. <view class="c-row ">
  356. <view class="title">霉变粒(%)</view>
  357. <view class="con-list">
  358. <MyNumberInput :myvalue="gridList.mildewGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  359. :myevent="'mildewGrain'"
  360. @setValue="mykeywordset" v-if="InputEvent=='mildewGrain'"
  361. @Cancelword="Cancelword"
  362. @goNext="goNext('mildewGrain')"></MyNumberInput>
  363. <input v-else @click="SetInputKey('mildewGrain')" :disabled='flag==1' type="digit" v-model='gridList.mildewGrain' placeholder="请输入霉变粒占比"
  364. name="input"></input>
  365. <MyNumberInput :myvalue="gridList.reMildewGrain" :Isedit="Isedit" :IsShow="MykeywordShow"
  366. :myevent="'reMildewGrain'"
  367. @setValue="mykeywordset" v-if="InputEvent=='reMildewGrain'"
  368. @Cancelword="Cancelword"
  369. @goNext="goNext('reMildewGrain')"></MyNumberInput>
  370. <input @click="SetInputKey('reMildewGrain')" v-if="flag==1&&InputEvent!='reMildewGrain'||flag==2&&InputEvent!='reMildewGrain'" type="digit" v-model='gridList.reMildewGrain' placeholder="请输入霉变粒占比"
  371. name="input"></input>
  372. </view>
  373. </view>
  374. <view class="c-row ">
  375. <view class="title">热损伤(%)</view>
  376. <view class="con-list">
  377. <MyNumberInput :myvalue="gridList.jiaorenli" :Isedit="Isedit" :IsShow="MykeywordShow"
  378. :myevent="'jiaorenli'"
  379. @setValue="mykeywordset" v-if="InputEvent=='jiaorenli'"
  380. @Cancelword="Cancelword"
  381. @goNext="goNext('jiaorenli')"></MyNumberInput>
  382. <input v-else @click="SetInputKey('jiaorenli')" :disabled='flag==1' type="digit" v-model='gridList.jiaorenli' placeholder="请输入热损伤占比"
  383. name="input"></input>
  384. <MyNumberInput :myvalue="gridList.reJiaorenli" :Isedit="Isedit" :IsShow="MykeywordShow"
  385. :myevent="'reJiaorenli'"
  386. @setValue="mykeywordset" v-if="InputEvent=='reJiaorenli'"
  387. @Cancelword="Cancelword"
  388. @goNext="goNext('reJiaorenli')"></MyNumberInput>
  389. <input @click="SetInputKey('reJiaorenli')" v-if="flag==1&&InputEvent!='reJiaorenli'||flag==2&&InputEvent!='reJiaorenli'" type="digit" v-model='gridList.reJiaorenli' placeholder="请输入热损伤占比"
  390. name="input"></input>
  391. <!-- <input v-model='gridList.jiaorenli' @click.stop="handleShowKeyboard1":disabled="true" placeholder="请输入热损伤占比" name="input"></input> -->
  392. </view>
  393. </view>
  394. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  395. class="c-row">
  396. <view class="title">水分增价(元/吨)</view>
  397. <view class="con-list">
  398. <input v-model='gridList.waterPriceIncrease' @focus="pricefocus($event,1)" @blur="priceblur($event,1)" @input='deductionchange'
  399. placeholder="请输入水分增价" name="input" type="digit"></input>
  400. </view>
  401. </view>
  402. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  403. class="c-row">
  404. <view class="title">水分扣价(元/吨)</view>
  405. <view class="con-list">
  406. <input v-model='gridList.waterPriceDeduction' @focus="pricefocus($event,2)" @blur="priceblur($event,2)" @input='deductionchange'
  407. placeholder="请输入水分扣价" name="input" type="digit"></input>
  408. </view>
  409. </view>
  410. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  411. class="c-row">
  412. <view class="title">质量增价(元/吨)</view>
  413. <view class="con-list">
  414. <input v-model='gridList.qualityPriceIncrease' @focus="pricefocus($event,3)" @blur="priceblur($event,3)" @input='deductionchange'
  415. placeholder="请输入质量增价" name="input" type="digit"></input>
  416. </view>
  417. </view>
  418. <view v-show="utils.getCurrectRoles('acquisitionQuality.initial')"
  419. class="c-row">
  420. <view class="title">质量扣价(元/吨)</view>
  421. <view class="con-list">
  422. <input v-model='gridList.qualityPriceDeduction' @focus="pricefocus($event,4)" @blur="priceblur($event,4)" @input='deductionchange'
  423. placeholder="请输入质量扣价" name="input" type="digit"></input>
  424. </view>
  425. </view>
  426. <view v-if="gridList.type == '潮粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
  427. <view class="title">净重单价(元/公斤)</view>
  428. <view class="con-list">
  429. <input :disabled='flag==1&&pricedisabled' v-model='gridList.tidalGrainPrice' @blur='inputprice' placeholder="自动获取,不可编辑"
  430. name="input"></input>
  431. </view>
  432. <!-- <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button> -->
  433. </view>
  434. <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
  435. <view class="title">干粮单价(元/公斤)</view>
  436. <view class="con-list">
  437. <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
  438. </view>
  439. <!-- <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button> -->
  440. </view>
  441. <view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==1&&flag!=3" class="c-row">
  442. <view class="title">干粮单价(元/公斤)</view>
  443. <view class="con-list">
  444. <input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit" @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
  445. </view>
  446. </view>
  447. </view>
  448. </view>
  449. <view class="footer">
  450. <view v-if='flag==1' @click='confirmInfo' class="button">确认初检信息</view>
  451. <view @click='submit' class="button">提交</view>
  452. </view>
  453. <u-modal v-model="isShowAlert" :title-style="{fontSize: '18px',fontWeight:'500'}"
  454. :content-style="{fontSize: '14px',fontWeight:'400'}" confirm-color='#22C572' confirm-text='确定' title='提示'
  455. :showCancelButton='false' :content="content" @confirm="alertBtn" @cancel="cancelClick"></u-modal>
  456. <u-popup v-model="isShowPrint" class="popup" @close="close" mode="bottom" border-radius="30" :closeable="true">
  457. <view class="buns_item">
  458. <view class="but_css" @click="print">打印小票</view>
  459. <view class="but_css" @click="close">返回</view>
  460. </view>
  461. </u-popup>
  462. <u-picker :range="warehouseList" range-key="binNumber" @confirm='binNumberpicker($event)'
  463. v-model="show" mode="selector">
  464. </u-picker>
  465. </view>
  466. </template>
  467. <script>
  468. const Equ_List=['waterContent','bulkDensity','imperfectGrain','impurity','mildewGrain','jiaorenli'];
  469. const Equ_List1=['reWaterContent','reBulkDensity','reImperfectGrain','reImpurity','reMildewGrain','reJiaorenli'];
  470. import dragButton from "@/components/drag-button/drag-button.vue";
  471. import keyboard from "@/components/master-keyboard/master-keyboard.vue";
  472. import MyNumberInput from "@/components/MyNumberInput.vue";
  473. import {
  474. mapState
  475. } from 'vuex';
  476. let startY = 0,
  477. moveY = 0,
  478. pageAtTop = true;
  479. export default {
  480. components: {
  481. dragButton,
  482. keyboard,
  483. MyNumberInput
  484. },
  485. data() {
  486. return {
  487. isShowPrint: false,
  488. inputShow: false,
  489. modalName: '',
  490. mycarStyle: '',
  491. feild: undefined,
  492. id: 0,
  493. show: false,
  494. show2:false,
  495. show4:false,
  496. show5:false,
  497. show7:false,
  498. show8:false,
  499. pricedisabled:false,
  500. multiSelector1:[{name:'他运',value:'他运'}],
  501. outType:'',
  502. selector: [],
  503. show1: false,
  504. pricetext:'锁定',
  505. goodsName: false,
  506. carstatus: false,
  507. params:{year: true,
  508. month: true,
  509. day: true,},
  510. inputContent: '',
  511. multiSelector: [{
  512. name: '汽运',
  513. value: '0',
  514. },
  515. {
  516. name: '火运',
  517. value: '1',
  518. },
  519. {
  520. name: '集装箱船',
  521. value: '2',
  522. },
  523. {
  524. name: '散船',
  525. value: '3',
  526. },
  527. ],
  528. coverTransform: 'translateY(0px)',
  529. coverTransition: '0s',
  530. moving: false,
  531. footprintList: [],
  532. zjid:'',
  533. searchKeyWord: '',
  534. isVip: false,
  535. flag: 0,
  536. freightstatus:false,
  537. coststatus:false,
  538. freighttext:'手动填写',
  539. costtext:'手动填写',
  540. userInfoTmp: [],
  541. inputStatus: 'none',
  542. carInfo: [],
  543. gridCol: 4,
  544. pageSize: 10,
  545. currentPage: 1,
  546. gridBorder: false,
  547. headUrl: "../../static/img/myimg/YongHu@3x.png",
  548. userphone: "",
  549. username: "请更改昵称",
  550. gridList: {
  551. natureOfGrainPurchase: '贸易粮',
  552. type: '潮粮',
  553. tidalGrainPrice: '',
  554. dryGrainPrice: '',
  555. carNumber: '',
  556. carModel: '',
  557. serviceManagementType:'3'
  558. },
  559. managementType: '',
  560. warehouseName: '',
  561. warehouseList: [],
  562. InputEvent:'',
  563. bottomHeight:'10rpx',
  564. MykeywordShow:false,
  565. showTran: true,
  566. companyId: 1,
  567. current: 4,
  568. value: false,
  569. carModeList: [],
  570. fleetNameList:[],
  571. gradeList: [{
  572. key: 1,
  573. value: '一等品'
  574. },
  575. {
  576. key: 2,
  577. value: '二等品'
  578. },
  579. {
  580. key: 3,
  581. value: '三等品'
  582. },
  583. {
  584. key: 4,
  585. value: '等外'
  586. },
  587. ],
  588. cangid: '',
  589. goodsList: [],
  590. taskNolist:[],
  591. dryGrainPrice:0,
  592. tidalGrainPrice:0,
  593. isShowAlert: false,
  594. content: '确认初检信息后,初检员不需要再次确认质检信息,是否确定提交?',
  595. }
  596. },
  597. // #ifndef MP
  598. onNavigationBarButtonTap(e) {
  599. const index = e.index;
  600. if (index === 0) {
  601. this.navTo('/pages/set/set');
  602. } else if (index === 1) {
  603. // #ifdef APP-PLUS
  604. const pages = getCurrentPages();
  605. const page = pages[pages.length - 1];
  606. const currentWebview = page.$getAppWebview();
  607. currentWebview.hideTitleNViewButtonRedDot({
  608. index
  609. });
  610. // #endif
  611. uni.navigateTo({
  612. url: '/pages/notice/notice'
  613. })
  614. }
  615. },
  616. // #endif
  617. computed: {
  618. ...mapState(['hasLogin', 'userInfo']),
  619. // 手机号中间4位加*
  620. starUserphone() {
  621. let reg = /^(\d{3})\d{4}(\d{4})$/;
  622. if (this.userphone) {
  623. return this.userphone.replace(reg, "$1****$2");
  624. }
  625. }
  626. },
  627. onLoad(options) {
  628. this.id = options.id
  629. this.flag = options.flag
  630. this.cangid = options.cangid
  631. this.warehouseName=options.warehouseName
  632. this.managementType = options.managementType
  633. console.log(this.flag)
  634. var that = this
  635. uni.showLoading({
  636. title:"加载中"
  637. })
  638. this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
  639. id: this.id
  640. }).then(res => {
  641. uni.hideLoading()
  642. if (res.data.data) {
  643. let data = res.data.data
  644. if (data.supplementaryRecording == 1) {
  645. that.value = true
  646. } else {
  647. that.value = false
  648. }
  649. that.gridList = data
  650. if(that.gridList.type=='干粮'){
  651. if (this.gridList.goodsName &&
  652. this.gridList.bulkDensity &&
  653. this.cangid) {
  654. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  655. warehouseId: this.cangid,
  656. goodsName: this.gridList.goodsName,
  657. bulkDensity:this.gridList.bulkDensity
  658. }).then(res => {
  659. if(res.data.data != 0){
  660. this.gridList.dryGrainPrice = res.data.data
  661. this.dryGrainPrice = res.data.data
  662. this.deductionchange()
  663. }
  664. })
  665. }
  666. }else if(that.gridList.type=='潮粮'){
  667. if (
  668. this.gridList.goodsName &&
  669. this.gridList.waterContent &&
  670. this.gridList.grade
  671. ) {
  672. console.log('123123')
  673. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  674. warehouseId: this.cangid,
  675. goodsName: this.gridList.goodsName,
  676. waterContent: this.gridList.waterContent,
  677. grade: this.gridList.grade,
  678. }).then(res => {
  679. if (that.gridList.paramType == '1') {
  680. // console.log(that.gridList)
  681. if(that.gridList.buckleMiscellaneous){
  682. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  683. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  684. .dryGrainPrice)).toFixed(4)
  685. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  686. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  687. .dryGrainPrice)).toFixed(4)
  688. }
  689. if (!that.gridList.tidalGrainPrice) {
  690. that.gridList.tidalGrainPrice = ''
  691. }
  692. } else {
  693. that.gridList.tidalGrainPrice = res.data.data
  694. that.tidalGrainPrice = res.data.data
  695. }
  696. this.deductionchange()
  697. })
  698. }
  699. }
  700. // if(that.gridList.dryGrainPrice){
  701. // that.dryGrainPrice=that.gridList.dryGrainPrice
  702. // }
  703. // if(that.gridList.tidalGrainPrice){
  704. // that.tidalGrainPrice=that.gridList.tidalGrainPrice
  705. // }
  706. if(!that.gridList.reGrade){
  707. that.gridList.reGrade=that.gridList.grade
  708. }
  709. if(!that.gridList.reWaterContent){
  710. that.gridList.reWaterContent=that.gridList.waterContent
  711. }
  712. if(!that.gridList.reBulkDensity){
  713. that.gridList.reBulkDensity=that.gridList.bulkDensity
  714. }
  715. if(!that.gridList.reImperfectGrain){
  716. that.gridList.reImperfectGrain=that.gridList.imperfectGrain
  717. }
  718. if(!that.gridList.reImpurity){
  719. that.gridList.reImpurity=that.gridList.impurity
  720. }
  721. if(!that.gridList.reMildewGrain){
  722. that.gridList.reMildewGrain=that.gridList.mildewGrain
  723. }
  724. if(!that.gridList.reJiaorenli){
  725. that.gridList.reJiaorenli=that.gridList.jiaorenli
  726. }
  727. if(this.gridList.outType&&this.gridList.serviceManagementType==3){
  728. this.outType=this.gridList.outType
  729. }
  730. that.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
  731. id: this.cangid
  732. }).then(res => {
  733. that.warehouseList = res.data.data.warehousePositionInfoList
  734. })
  735. //质检货名下拉
  736. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  737. warehouseId: this.cangid
  738. }).then(res => {
  739. if (res.data.data) {
  740. that.goodsList = res.data.data
  741. if (that.goodsList.length > 0) {
  742. if(!that.gridList.goodsName){
  743. that.gridList.goodsName = that.goodsList[0].goodsName
  744. }
  745. uni.setStorageSync('purchasePriceList', that.goodsList)
  746. that.purchasePriceList = uni.getStorageSync('purchasePriceList')
  747. }
  748. }
  749. else if(res.data.code != 200 && that.gridList.serviceManagementType==3){
  750. uni.showModal({
  751. content:res.data.message,
  752. showCancel:false
  753. })
  754. }
  755. })
  756. }
  757. })
  758. this.$api.doRequest('get', 'commonSysParameter/getInfo', {
  759. constId: 'QUA1'
  760. }).then(res => {
  761. if (res.data.data) {
  762. that.carModeList = res.data.data
  763. }
  764. })
  765. this.gridList.grade = this.gradeList[0].value
  766. this.gridList.gradeKey = this.gradeList[0].key
  767. },
  768. onShow() {
  769. this.multiSelector1=[{name:'他运',value:'他运'}]
  770. this.$api.doRequest('get', '/inOutWarehouseTask/getContractNo', {
  771. warehouseName:this.warehouseName
  772. }).then(res => {
  773. // console.log(res)
  774. if(res.data.data.contractManagementInfoList){
  775. for (let i = 0; i < res.data.data.contractManagementInfoList.length; i++) {
  776. res.data.data.contractMangementInfoList[i].name='自运 ('+
  777. res.data.data.contractMangementInfoList[i].contractNo+' '+res.data.data.contractMangementInfoList[i].seller+')'
  778. this.multiSelector1.push(res.data.data.contractManagementInfoList[i])
  779. }
  780. }else{
  781. this.multiSelector1=[{name:'他运',value:'他运'}]
  782. }
  783. // this.taskNolist=res.data.data
  784. })
  785. // uni.showLoading({title: '加载中'})
  786. // this.$api.doRequest('get', '/inOutWarehouseTask/selectInOutWarehouseNo', {
  787. // flag: 2,
  788. // warehouseName:this.warehouseName
  789. // }).then(res => {
  790. // console.log(res)
  791. // uni.hideLoading();
  792. // this.taskNolist=res.data.data
  793. // })
  794. let _kh = uni.getStorageSync('isClick')
  795. if (uni.getStorageSync('checkcustomer') && _kh) {
  796. let _customerInfo = uni.getStorageSync('checkcustomer')
  797. if (_customerInfo.shipperName) {
  798. this.gridList.identityId = _customerInfo.id
  799. //点击登记客户
  800. this.gridList.customerName = _customerInfo.shipperName
  801. this.gridList.customerPhone = _customerInfo.shipperPhone
  802. this.gridList.carNumber = _customerInfo.carNo
  803. } else {
  804. //点击搜索客户
  805. this.gridList.customerName = _customerInfo.customerName
  806. this.gridList.customerPhone = _customerInfo.customerPhone
  807. }
  808. this.gridList.customerNumberCard = _customerInfo.customerNumberCard
  809. }
  810. },
  811. methods: {
  812. Cancelword(){
  813. this.bottomHeight = '10rpx';
  814. this.MykeywordShow =false;
  815. this.InputEvent = '';
  816. },
  817. goNext(val){
  818. if(this.flag==0||this.flag==3||this.flag==4){
  819. var inputList = Equ_List;
  820. }else{
  821. var inputList = Equ_List1;
  822. }
  823. var index = inputList.indexOf(val);
  824. this.setScrollTops(val);
  825. if(index<inputList.length-1){
  826. this.InputEvent = inputList[index+1];
  827. }else{
  828. this.InputEvent=''
  829. this.bottomHeight = '10rpx';
  830. this.MykeywordShow = false;
  831. }
  832. },
  833. mykeywordset(datatxt){
  834. var arr = JSON.parse(datatxt);
  835. this.gridList[arr.even] = arr.value;
  836. if(arr.even=='waterContent'){
  837. this.waterContentChange()
  838. }else if(arr.even=='bulkDensity'){
  839. this.obtainPrice()
  840. }
  841. },
  842. SetInputKey(even){
  843. uni.hideKeyboard();
  844. this.InputEvent = even;
  845. this.setScrollTops(even);
  846. if(!this.MykeywordShow){
  847. this.bottomHeight = '320rpx';
  848. this.MykeywordShow = true;
  849. }
  850. },
  851. setScrollTops(even){
  852. if(this.flag==0||this.flag==3||this.flag==4){
  853. var inputList = Equ_List;
  854. }else{
  855. var inputList = Equ_List1;
  856. }
  857. var index = inputList.indexOf(even);
  858. this.viewTop = (index + 1) * 60 + 100;
  859. },
  860. pricefocus(e,status){
  861. console.log(e)
  862. if(status==1){
  863. if(e.detail.value==0){
  864. this.gridList.waterPriceIncrease=''
  865. }
  866. }else if(status==2){
  867. if(e.detail.value==0){
  868. this.gridList.waterPriceDeduction=''
  869. }
  870. }else if(status==3){
  871. if(e.detail.value==0){
  872. this.gridList.qualityPriceIncrease=''
  873. }
  874. }else if(status==4){
  875. if(e.detail.value==0){
  876. this.gridList.qualityPriceDeduction=''
  877. }
  878. }
  879. },
  880. priceblur(e,status){
  881. console.log(e)
  882. if(status==1){
  883. if(e.detail.value==''){
  884. this.gridList.waterPriceIncrease=0
  885. }
  886. }else if(status==2){
  887. if(e.detail.value==''){
  888. this.gridList.waterPriceDeduction=0
  889. }
  890. }else if(status==3){
  891. if(e.detail.value==''){
  892. this.gridList.qualityPriceIncrease=0
  893. }
  894. }else if(status==4){
  895. if(e.detail.value==''){
  896. this.gridList.qualityPriceDeduction=0
  897. }
  898. }
  899. },
  900. deductionchange(){
  901. console.log(this.gridList.type,this.tidalGrainPrice,
  902. Number(this.tidalGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(4))
  903. if(this.gridList.type=='干粮'){
  904. if(this.dryGrainPrice!=''){
  905. console.log(Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)),Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(2))
  906. this.gridList.dryGrainPrice=Number(this.dryGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(4)
  907. }
  908. }else if(this.gridList.type=='潮粮'){
  909. if(this.tidalGrainPrice!=''){
  910. this.gridList.tidalGrainPrice=Number(this.tidalGrainPrice+(this.gridList.waterPriceIncrease/1000)-(this.gridList.waterPriceDeduction/1000)+(this.gridList.qualityPriceIncrease/1000)-(this.gridList.qualityPriceDeduction/1000)).toFixed(4)
  911. }
  912. }
  913. this.$forceUpdate()
  914. },
  915. obtainPrice(){//根据容重获取价格
  916. if (this.gridList.goodsName && this.cangid && this.gridList.bulkDensity) {
  917. // if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  918. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  919. warehouseId: this.cangid,
  920. goodsName: this.gridList.goodsName,
  921. bulkDensity:this.gridList.bulkDensity
  922. }).then(res => {
  923. if(res.data.data != 0){
  924. this.gridList.dryGrainPrice = res.data.data
  925. this.dryGrainPrice = res.data.data
  926. this.gridList.waterPriceIncrease=0
  927. this.gridList.waterPriceDeduction=0
  928. this.gridList.qualityPriceIncrease=0
  929. this.gridList.qualityPriceDeduction=0
  930. }
  931. })
  932. // }
  933. }
  934. },
  935. changeprice(){
  936. if(this.pricetext=='解锁'){
  937. this.pricedisabled=false
  938. this.pricetext='锁定'
  939. }else{
  940. this.pricedisabled=true
  941. this.pricetext='解锁'
  942. }
  943. },
  944. inputprice(){
  945. if(this.pricetext=='锁定'){
  946. this.pricedisabled=true
  947. this.pricetext='解锁'
  948. }
  949. },
  950. inOutDatepicker(e){
  951. this.gridList.inOutDate=e.year+'-'+e.month+'-'+e.day
  952. console.log(e)
  953. },
  954. fleetpicker(e){
  955. this.gridList.fleet=this.fleetNameList[e[0]].fleetName
  956. },
  957. changefreight(){
  958. this.freightstatus=!this.freightstatus
  959. if(this.freightstatus){
  960. this.freighttext='自动获取'
  961. }else{
  962. this.freighttext='手动填写'
  963. }
  964. },
  965. changecost(){
  966. this.coststatus=!this.coststatus
  967. if(this.coststatus){
  968. this.costtext='自动获取'
  969. }else{
  970. this.costtext='手动填写'
  971. }
  972. },
  973. gocustomer() {
  974. uni.navigateTo({
  975. url: '/pages/erpbusiness/customer?cangid=' + this.cangid + '&warehouseName=' + this.gridList
  976. .warehouseName + '&goodsName=' + this.gridList.goodsName + '&status=edit'
  977. })
  978. },
  979. print() {
  980. uni.navigateTo({
  981. url: '/pages/erpbusiness/bleConnect'
  982. })
  983. },
  984. close() {
  985. this.isShowPrint = false
  986. uni.navigateBack({})
  987. },
  988. // focusConfig(type){
  989. // console.log('childclick',type)
  990. // // 0是上一项
  991. // if(type==0){
  992. // }else{}
  993. // },
  994. hidden() {
  995. this.$refs.keyboard.open(false)
  996. },
  997. carPicker(e) {
  998. this.gridList.carModel = this.carModeList[e[0]].constValue
  999. },
  1000. handleShowKeyboard() {
  1001. if (this.flag == 0) {
  1002. if (this.$refs.keyboard.open) {
  1003. this.$refs.keyboard.open(true) //true 键盘显示 false 键盘隐藏
  1004. } else {
  1005. this.$refs.keyboard[0].open(true)
  1006. }
  1007. }
  1008. },
  1009. handleShowKeyboard1() {
  1010. if (this.flag == 0) {
  1011. if (this.$refs.keyboard1.open) {
  1012. this.$refs.keyboard1.open(true) //true 键盘显示 false 键盘隐藏
  1013. } else {
  1014. this.$refs.keyboard1[0].open(true)
  1015. }
  1016. }
  1017. },
  1018. handleClick(e) {
  1019. this.gridList.carNumber = e.value //键盘输入值
  1020. },
  1021. handleClick1(e) {
  1022. this.gridList.jiaorenli = e.value //键盘输入值
  1023. },
  1024. change(e) {
  1025. if (e) {
  1026. this.gridList.supplementaryRecording = 1
  1027. } else {
  1028. this.gridList.supplementaryRecording = 0
  1029. }
  1030. },
  1031. confirmInfo() {
  1032. this.isShowAlert = true
  1033. },
  1034. alertBtn() {
  1035. this.gridList.agent=this.userInfo.userName;
  1036. var that = this
  1037. that.gridList.reWaterContent = that.gridList.waterContent
  1038. if (that.gridList.buckleMiscellaneous) {
  1039. that.gridList.reBuckleMiscellaneous = that.gridList.buckleMiscellaneous
  1040. }
  1041. that.gridList.flag = 1
  1042. if(this.flag==3){
  1043. this.gridList.statusFlag=7
  1044. }else if(this.flag==4||this.flag==0){
  1045. this.gridList.statusFlag=0
  1046. }
  1047. else if(this.flag==1){
  1048. this.gridList.statusFlag=1
  1049. }else if(this.flag==2){
  1050. this.gridList.statusFlag=2
  1051. }
  1052. this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', that.gridList).then(
  1053. res => {
  1054. if (res.data.code == "200") {
  1055. that.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', {
  1056. id: that.gridList.id,
  1057. flag: 2
  1058. }).then(res => {
  1059. if (res.data.code == "200") {
  1060. that.$api.msg('提交成功!')
  1061. setTimeout(function() {
  1062. uni.navigateBack({delta:Int16Array})
  1063. }, 1000)
  1064. } else {
  1065. that.$api.msg('提交失败')
  1066. }
  1067. })
  1068. } else {
  1069. that.$api.msg('提交失败')
  1070. }
  1071. })
  1072. },
  1073. waterContentChange() {
  1074. var that = this
  1075. if (this.gridList.goodsName) {
  1076. for (var i = 0; i < this.purchasePriceList.length; i++) {
  1077. if (this.purchasePriceList[i].goodsName == this.gridList.goodsName) {
  1078. this.gridList.buckleWeightRatio = this.purchasePriceList[i].deductWeight
  1079. this.gridList.paramType = this.purchasePriceList[i].paramType
  1080. }
  1081. }
  1082. }
  1083. console.log(this.gridList.serviceManagementType)
  1084. // debugger
  1085. if(this.gridList.serviceManagementType != 3){ //非收购入库 不需在获取价格
  1086. return
  1087. }
  1088. if (this.gridList.goodsName && this.cangid) {
  1089. if (!this.gridList.dryGrainPrice || this.gridList.dryGrainPrice == 0) {
  1090. this.$api.doRequest('get', '/purchasePrice/dryGrainPrice', {
  1091. warehouseId: this.cangid,
  1092. goodsName: this.gridList.goodsName
  1093. }).then(res => {
  1094. that.gridList.dryGrainPrice = res.data.data
  1095. that.dryGrainPrice = res.data.data
  1096. })
  1097. }
  1098. }
  1099. that.gridList.waterPriceIncrease=0
  1100. that.gridList.waterPriceDeduction=0
  1101. that.gridList.qualityPriceIncrease=0
  1102. that.gridList.qualityPriceDeduction=0
  1103. //潮粮单价改变事件
  1104. if (
  1105. this.gridList.goodsName &&
  1106. this.gridList.waterContent &&
  1107. this.gridList.grade
  1108. ) {
  1109. console.log('123123')
  1110. uni.showLoading({
  1111. title:"加载中"
  1112. })
  1113. this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
  1114. warehouseId: this.cangid,
  1115. goodsName: this.gridList.goodsName,
  1116. waterContent: this.gridList.waterContent,
  1117. grade: this.gridList.grade,
  1118. }).then(res => {
  1119. if (that.gridList.paramType == '1') {
  1120. // console.log(that.gridList)
  1121. if(that.gridList.buckleMiscellaneous){
  1122. that.gridList.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1123. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1124. .dryGrainPrice)).toFixed(4)
  1125. that.tidalGrainPrice = parseFloat(parseFloat(res.data.data) - parseFloat(that
  1126. .gridList.buckleMiscellaneous) / 100 * parseFloat(that.gridList
  1127. .dryGrainPrice)).toFixed(4)
  1128. }
  1129. if (!that.gridList.tidalGrainPrice) {
  1130. that.gridList.tidalGrainPrice = ''
  1131. }
  1132. if(that.gridList.type == '干粮'){
  1133. that.gridList.dryGrainPrice = res.data.data
  1134. that.dryGrainPrice = that.gridList.dryGrainPrice
  1135. }
  1136. } else {
  1137. that.gridList.tidalGrainPrice = res.data.data
  1138. if(that.gridList.type == '干粮'){
  1139. that.gridList.dryGrainPrice = res.data.data
  1140. that.dryGrainPrice = that.gridList.dryGrainPrice
  1141. }else{
  1142. that.gridList.tidalGrainPrice = res.data.data
  1143. that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1144. }
  1145. }
  1146. // that.tidalGrainPrice = that.gridList.tidalGrainPrice
  1147. uni.hideLoading()
  1148. })
  1149. }
  1150. },
  1151. goodsPicker(e) {
  1152. this.gridList.goodsName = this.goodsList[e[0]].goodsName
  1153. },
  1154. submit() {
  1155. this.$delete(this.gridList,'status')
  1156. this.gridList.agent=this.userInfo.userName;
  1157. this.gridList.waterContent = Number(this.gridList.waterContent)
  1158. // if(!this.$u.test.isEmpty(this.gridList.tidalGrainPrice)){
  1159. // this.gridList.tidalGrainPrice=''
  1160. // return
  1161. // }
  1162. if(this.flag==3){
  1163. this.gridList.statusFlag=7
  1164. }else if(this.flag==4||this.flag==0){
  1165. this.gridList.statusFlag=0
  1166. }
  1167. else if(this.flag==1){
  1168. this.gridList.statusFlag=1
  1169. }else if(this.flag==2){
  1170. this.gridList.statusFlag=2
  1171. }
  1172. if(this.gridList.serviceManagementType==3){
  1173. if(this.outType){
  1174. this.gridList.outType=this.outType
  1175. }
  1176. }else{
  1177. this.gridList.customerName = ''
  1178. }
  1179. var text=''
  1180. if(this.utils.getCurrectRoles('acquisitionQuality.qview')&&!this.utils.getCurrectRoles('acquisitionQuality.initial')){
  1181. text="确定提交钎样信息?"
  1182. if(this.flag==3||this.flag==4||this.flag==0){
  1183. this.gridList.brazer=1
  1184. }
  1185. }else{
  1186. text="确定提交质检信息?"
  1187. if(this.flag==3||this.flag==4||this.flag==0){
  1188. this.gridList.brazer=0
  1189. }
  1190. }
  1191. if(this.flag==4){
  1192. this.gridList.flag = 0
  1193. }else{
  1194. this.gridList.flag = this.flag
  1195. }
  1196. // if(this.flag==2){
  1197. // this.gridList.reInspector=this.userInfo.userName
  1198. // }
  1199. if (!this.gridList.qualityNo) {
  1200. this.$api.msg('编号不能为空')
  1201. return
  1202. }
  1203. var that = this
  1204. if(this.flag==4||this.flag==0){
  1205. if (!this.gridList.binNumber) {
  1206. this.$api.msg('仓位不能为空')
  1207. return
  1208. }
  1209. }
  1210. if(this.gridList.serviceManagementType==3){
  1211. if (!this.gridList.customerName) {
  1212. this.$api.msg('客户不能为空')
  1213. return
  1214. }
  1215. }
  1216. // if (!this.gridList.storageTagNo) {
  1217. // this.$api.msg('囤位号不能为空')
  1218. // return
  1219. // }
  1220. // if (this.gridList.storageTagNo.length > 10) {
  1221. // this.$api.msg('囤位号不能为空')
  1222. // return
  1223. // }
  1224. if (!this.gridList.carNumber) {
  1225. this.$api.msg('车牌号不能为空')
  1226. return
  1227. }
  1228. if (this.gridList.carNumber.length > 7) {
  1229. this.$api.msg('车牌号输入错误')
  1230. return
  1231. }
  1232. if (!this.gridList.goodsName) {
  1233. this.$api.msg('货名不能为空')
  1234. return
  1235. }
  1236. if (this.gridList.paramType != 1 && this.gridList.buckleWeightRatio < 0 || this.gridList.paramType != 1 &&
  1237. this.gridList.buckleWeightRatio > 2) {
  1238. this.$api.msg('扣重比输入错误')
  1239. return
  1240. }
  1241. if (
  1242. this.gridList.paramType != 1 && String(this.gridList.buckleWeightRatio).indexOf('.') != -1 &&
  1243. String(this.gridList.buckleWeightRatio).length -
  1244. (String(this.gridList.buckleWeightRatio).indexOf('.') + 1) > 2) {
  1245. this.$api.msg('扣重比输入错误')
  1246. return
  1247. }
  1248. if (this.flag == 0 && this.gridList.paramType == 1 && this.gridList.buckleMiscellaneous < 0 || this.flag ==
  1249. 0 && this.gridList.paramType == 1 && this.gridList.buckleMiscellaneous > 50) {
  1250. this.$api.msg('初检扣杂输入错误')
  1251. return
  1252. }
  1253. if (this.flag == 1 && this.gridList.paramType == 1 && this.gridList.reBuckleMiscellaneous < 0 || this
  1254. .flag == 0 && this.gridList.paramType == 1 && this.gridList.reBuckleMiscellaneous > 50) {
  1255. this.$api.msg('复检扣杂输入错误')
  1256. return
  1257. }
  1258. if (!this.gridList.type) {
  1259. this.$api.msg('类型不能为空')
  1260. return
  1261. }
  1262. if (this.value == false&&this.flag!=3 || this.flag == 2) {
  1263. if (!this.gridList.grade) {
  1264. this.$api.msg('等级不能为空')
  1265. return
  1266. }
  1267. if (!this.gridList.impurity) {
  1268. this.$api.msg('杂质不能为空')
  1269. return
  1270. }
  1271. debugger
  1272. console.log(this.gridList.waterContent)
  1273. console.log(Number(this.gridList.waterContent))
  1274. if (!this.gridList.waterContent) {
  1275. this.$api.msg('初检水分不能为空')
  1276. return
  1277. }
  1278. // if (!this.gridList.reWaterContent) {
  1279. // this.$api.msg('复检水分不能为空')
  1280. // return
  1281. // }
  1282. if (!this.gridList.mildewGrain) {
  1283. this.$api.msg('霉变粒不能为空')
  1284. return
  1285. }
  1286. if(this.gridList.goodsName!="大豆"){
  1287. if (!this.gridList.bulkDensity) {
  1288. this.$api.msg('容重不能为空')
  1289. return
  1290. }
  1291. }else{
  1292. if (!this.gridList.bulkDensity) {
  1293. this.$api.msg('蛋白不能为空')
  1294. return
  1295. }
  1296. }
  1297. if (!this.gridList.jiaorenli) {
  1298. this.$api.msg('热损伤不能为空')
  1299. return
  1300. }
  1301. if (!this.gridList.imperfectGrain) {
  1302. this.$api.msg('不完整粒不能为空')
  1303. return
  1304. }
  1305. }
  1306. this.gridList.storageNumber = this.gridList.storageTagNo
  1307. var kid=JSON.parse(JSON.stringify(this.gridList.warehouseInOutId))
  1308. this.zjid=JSON.parse(JSON.stringify(this.gridList.id))
  1309. that.gridList.warehouseInOutDetail={
  1310. id:that.gridList.warehouseInOutDetailId,
  1311. grade:that.gridList.grade,
  1312. reGrade:that.gridList.grade,
  1313. waterContent:that.gridList.waterContent,
  1314. reWaterContent:that.gridList.reWaterContent,
  1315. imperfectGrain:that.gridList.imperfectGrain,
  1316. reImperfectGrain:that.gridList.reImperfectGrain,
  1317. impurity:that.gridList.impurity,
  1318. reImpurity:that.gridList.reImpurity,
  1319. jiaorenli:that.gridList.jiaorenli,
  1320. reJiaorenli:that.gridList.reJiaorenli,
  1321. bulkDensity:that.gridList.bulkDensity,
  1322. reBulkDensity:that.gridList.reBulkDensity,
  1323. mildewGrain:that.gridList.mildewGrain,
  1324. reMildewGrain:that.gridList.reMildewGrain,
  1325. }
  1326. console.log(this.gridList)
  1327. this.$api.doRequest('get', '/qualityInspectionManagement/api/goodsName', {
  1328. warehouseId: this.cangid
  1329. }).then(res => {
  1330. if(res.data.code != 200 && that.gridList.serviceManagementType==3){
  1331. uni.showModal({
  1332. content:res.data.message,
  1333. showCancel:false
  1334. })
  1335. return;
  1336. }
  1337. else{
  1338. uni.showModal({
  1339. content: text,
  1340. showCancel: true,
  1341. confirmText: '提交',
  1342. success: function(res) {
  1343. if (res.confirm) {
  1344. that.$api.doRequest('post',
  1345. '/qualityInspectionManagement/api/editQualityInspection', that.gridList)
  1346. .then(res => {
  1347. uni.setStorageSync("quality_print", that.gridList)
  1348. // that.gridList.id=kid
  1349. // that.gridList.statusFlag=1
  1350. // that.$api.doRequest('post',
  1351. // '/warehouseInOutInfo/InOutWarehouse',
  1352. // that.gridList)
  1353. // .then(res => {
  1354. if (res.data.code == 200) {
  1355. that.$api.msg('编辑质检成功')
  1356. that.gridList.warehouseId = that.cangid
  1357. uni.setStorageSync('checkcustomer',{})
  1358. console.log('that.gridList', that.gridList)
  1359. if(that.utils.getCurrectRoles('acquisitionQuality.initial')){
  1360. that.isShowPrint = true
  1361. }else{
  1362. uni.navigateBack({delta:1})
  1363. }
  1364. // uni.getStorageSync("depotAcquisition_warehouseName")
  1365. // uni.navigateBack({})
  1366. }
  1367. // })
  1368. })
  1369. }
  1370. }
  1371. })
  1372. }
  1373. })
  1374. },
  1375. gradepicker(e) {
  1376. console.log(e)
  1377. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1378. this.gridList.grade = this.gradeList[e[0]].value
  1379. this.gridList.gradeKey = this.gradeList[e[0]].key
  1380. this.waterContentChange()
  1381. },
  1382. gradepicker1(e) {
  1383. console.log(e)
  1384. // this.$set(this.gradeList,'grade',this.gradeList[e[0]].value)
  1385. this.gridList.reGrade = this.gradeList[e[0]].value
  1386. this.gridList.reGradeKey = this.gradeList[e[0]].key
  1387. },
  1388. binNumberpicker(e) {
  1389. this.gridList.binNumber = this.warehouseList[e[0]].binNumber
  1390. },
  1391. del(item) {
  1392. this.$api.doRequest('get', '/qualityInspectionManagement/api/deleteQualityInspection', {
  1393. id: item.id
  1394. }).then(res => {
  1395. if (res.data.code == 200) {
  1396. this.$api.msg('删除成功')
  1397. } else {
  1398. this.$api.msg('系统异常,请联系管理员')
  1399. }
  1400. })
  1401. },
  1402. contactUs() {
  1403. const that = this
  1404. uni.makePhoneCall({
  1405. // 手机号
  1406. phoneNumber: '18241771147',
  1407. // 成功回调
  1408. success: (res) => {},
  1409. // 失败回调
  1410. fail: (res) => {}
  1411. });
  1412. },
  1413. loadData() {
  1414. // const that = this
  1415. // if(uni.getStorageSync("PageCur")){
  1416. // that.PageCur = uni.getStorageSync("PageCur");
  1417. // }
  1418. // that.userInfoTmp = uni.getStorageSync("userInfo")
  1419. // uni.showLoading({
  1420. // title: '正在加载',
  1421. // mask:true
  1422. // })
  1423. // that.$api.request('integral', 'getIndexData', failres => {
  1424. // that.$api.msg(failres.errmsg)
  1425. // uni.hideLoading()
  1426. // }).then(res => {
  1427. // let data = res.data
  1428. // uni.setStorageSync("message", data.message);
  1429. // uni.setStorageSync("task", data.task);
  1430. // uni.setStorageSync("contract", data.contract);
  1431. // uni.setStorageSync('showTran', data.showTran);
  1432. // that.showTran = data.showTran
  1433. // that.gridList[4].tips = data.task
  1434. // that.gridList[2].tips = data.contract
  1435. // that.companyId = data.companyId
  1436. // uni.hideLoading()
  1437. // })
  1438. },
  1439. confirm() {
  1440. const that = this
  1441. if (!that.inputContent) {
  1442. that.$api.msg('输入不能为空')
  1443. return
  1444. }
  1445. let obj = {}
  1446. obj[that.feild] = that.inputContent
  1447. that.$api.request('user', 'syncUserInfo', obj).then(res => {
  1448. that.userInfo.nickname = that.inputContent
  1449. that.inputContent = ''
  1450. that.$store.commit('login', that.userInfo)
  1451. })
  1452. },
  1453. cancel() {
  1454. this.inputShow = false
  1455. this.inputStatus = 'none'
  1456. this.genderShow = false
  1457. },
  1458. myAccount() {
  1459. uni.navigateTo({
  1460. url: `/pageA/pages/contract`
  1461. })
  1462. },
  1463. /**
  1464. * 统一跳转接口,拦截未登录路由
  1465. * navigator标签现在默认没有转场动画,所以用view
  1466. */
  1467. navTo(url) {
  1468. if (!this.hasLogin) {
  1469. url = '/pages/public/login';
  1470. }
  1471. uni.navigateTo({
  1472. url
  1473. })
  1474. },
  1475. mycarClick(carNo) {
  1476. this.modalName = null
  1477. uni.navigateTo({
  1478. url: `/pageB/car/mycar_detail?carNo=${carNo}`
  1479. })
  1480. },
  1481. scanCode() {
  1482. uni.scanCode({
  1483. success: function(res) {
  1484. uni.navigateTo({
  1485. url: res.result
  1486. })
  1487. }
  1488. })
  1489. },
  1490. hideModal(e) {
  1491. this.modalName = null
  1492. },
  1493. }
  1494. }
  1495. </script>
  1496. <style lang='scss' scoped>
  1497. .title_b {
  1498. margin: 20rpx 20rpx 0rpx 20rpx;
  1499. padding: 20rpx 10rpx 20rpx 10rpx;
  1500. font-size: 18px;
  1501. font-weight: 550;
  1502. }
  1503. page {
  1504. background: #F5F6FA;
  1505. }
  1506. .wrap {
  1507. padding-bottom: 10px;
  1508. font-size: 14px;
  1509. background: #fff;
  1510. margin: 10px;
  1511. border-radius: 10px;
  1512. input {
  1513. font-size: 14px;
  1514. }
  1515. >.title {
  1516. padding: 10px 16px;
  1517. }
  1518. .b-b:after {
  1519. border-bottom: 1px solid #eee;
  1520. }
  1521. }
  1522. .footer {
  1523. background: #fff;
  1524. position: fixed;
  1525. bottom: 0;
  1526. width: 100%;
  1527. padding: 20px 10px;
  1528. z-index: 10;
  1529. .button {
  1530. background: #22C572;
  1531. width: 90%;
  1532. margin: 20rpx auto;
  1533. padding: 10px;
  1534. color: #fff;
  1535. text-align: center;
  1536. border-radius: 30px;
  1537. }
  1538. }
  1539. .c-row {
  1540. display: -webkit-box;
  1541. display: -webkit-flex;
  1542. display: flex;
  1543. -webkit-box-align: center;
  1544. -webkit-align-items: center;
  1545. align-items: center;
  1546. padding: 20rpx 30rpx;
  1547. position: relative;
  1548. }
  1549. .con-list {
  1550. -webkit-box-flex: 1;
  1551. -webkit-flex: 1;
  1552. flex: 1;
  1553. display: -webkit-box;
  1554. display: -webkit-flex;
  1555. display: flex;
  1556. -webkit-box-orient: vertical;
  1557. -webkit-box-direction: normal;
  1558. -webkit-flex-direction: column;
  1559. flex-direction: column;
  1560. color: #303133;
  1561. line-height: 40rpx;
  1562. text-align: right;
  1563. padding-right: 20rpx;
  1564. }
  1565. input:disabled {
  1566. color: #ccc;
  1567. }
  1568. .textarea-style {
  1569. border: 1px solid #EEEEEE;
  1570. width: 100%;
  1571. padding: 20rpx;
  1572. border-radius: 20rpx;
  1573. }
  1574. .c-row-fj {
  1575. padding: 20rpx
  1576. }
  1577. .buns_item {
  1578. display: flex;
  1579. padding: 80rpx 0 50rpx 0;
  1580. justify-content: space-around;
  1581. }
  1582. .but_css {
  1583. background: #22C572;
  1584. width: 40%;
  1585. padding: 20rpx;
  1586. color: #fff;
  1587. text-align: center;
  1588. border-radius: 20rpx;
  1589. }
  1590. </style>