add_quality_testing.vue 58 KB

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