add_quality_testing.vue 58 KB

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