tranManagementWarehouseInOutTaskEdit.vue 66 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179
  1. // 编辑出入库任务
  2. <template>
  3. <div class="container">
  4. <el-row>
  5. <el-col :span="12">
  6. <h2 class="bg-left title">编辑出入库任务</h2>
  7. </el-col>
  8. <el-col :span="12" class="bg-right">
  9. <el-button
  10. class="bg-bottom"
  11. type="primary"
  12. size="small"
  13. @click="returnsales()"
  14. >
  15. <img
  16. width="6"
  17. height="10"
  18. style="vertical-align: bottom; margin-right: 3px"
  19. src="../../../public/img/lujing.png"
  20. alt
  21. />返回
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. <div class="basicInformation">
  26. <div class="annu">
  27. <el-radio-group
  28. @change="tasktypechange"
  29. v-model="dataList.taskTypeKey"
  30. ></el-radio-group>
  31. <div class="nav">
  32. <span class="ziti">
  33. 任务类型:
  34. <h1
  35. class="ziti1"
  36. v-show="
  37. dataList.inOutType == '移库入库' ||
  38. dataList.inOutType == '移库出库'
  39. "
  40. >
  41. 移库任务
  42. </h1>
  43. <h1
  44. class="ziti1"
  45. v-show="
  46. dataList.inOutType == '销售出库' ||
  47. dataList.inOutType == '暂存出库' ||
  48. dataList.inOutType == '贸易服务出库' ||
  49. dataList.inOutType == '采购出库'
  50. "
  51. >
  52. 出库任务
  53. </h1>
  54. <h1
  55. class="ziti1"
  56. v-show="
  57. dataList.inOutType == '采购入库' ||
  58. dataList.inOutType == '暂存入库' ||
  59. dataList.inOutType == '贸易服务入库' ||
  60. dataList.inOutType == '退库'
  61. "
  62. >
  63. 入库任务
  64. </h1>
  65. </span>
  66. </div>
  67. </div>
  68. <div class="ding"></div>
  69. <!-- <div
  70. v-if="
  71. dataList.taskTypeKey == 1 ||
  72. (dataList.taskTypeKey == 3 && inOutFlag == 1)
  73. "
  74. class="center1"
  75. > -->
  76. <div
  77. v-if="
  78. dataList.taskTypeKey == 1 ||dataList.taskTypeKey == 3
  79. "
  80. class="center1"
  81. >
  82. <img
  83. style="position: relative; top: 40px; left: 300px"
  84. width="19"
  85. height="19"
  86. src="../../../public/img/cangku.png"
  87. alt
  88. />
  89. <!--出库=-->
  90. <div class="small-title">
  91. <h3>出库任务({{ dataList.inOutTaskNo }})</h3>
  92. </div>
  93. <el-form ref="dataList" :model="dataList" label-width="140px">
  94. <!-- 仓库名 -->
  95. <el-form-item label="仓库名">
  96. <el-select
  97. v-model="dataList.warehouseName"
  98. placeholder="请选择仓库名"
  99. class="typeselect"
  100. @change="selectwarehouseName"
  101. disabled
  102. filterable
  103. clearable
  104. >
  105. <el-option
  106. v-for="item in warehouseNameList"
  107. :key="item.constKey"
  108. :label="item.warehouseName"
  109. :value="item.id"
  110. />
  111. </el-select>
  112. </el-form-item>
  113. <!-- 出库类型 -->
  114. <el-form-item label="出库类型">
  115. <el-select
  116. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  117. v-model="dataList.inOutType"
  118. placeholder="请选择出库类型"
  119. class="typeselect"
  120. @change="selectstorageType"
  121. filterable
  122. clearable
  123. >
  124. <el-option
  125. v-for="item in storageType"
  126. :key="item.constKey"
  127. v-if="
  128. (dataList.taskTypeKey == 1 &&
  129. item.constValue != '移库出库') ||
  130. (dataList.taskTypeKey == 3 &&
  131. item.constValue == '移库出库') ||
  132. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  133. "
  134. :label="item.constValue"
  135. :value="item.constValue"
  136. />
  137. </el-select>
  138. </el-form-item>
  139. <!-- 合同编号 -->
  140. <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
  141. <el-select
  142. @change="changecontract"
  143. v-model="dataList.contractNo"
  144. placeholder="请输入合同编号"
  145. class="typeselect"
  146. filterable
  147. clearable
  148. >
  149. <el-option
  150. v-for="item in contractNoList"
  151. :key="item.constKey"
  152. :label="item.contractNo"
  153. :value="item.contractNo"
  154. ></el-option>
  155. </el-select>
  156. </el-form-item>
  157. <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
  158. <el-input
  159. disabled
  160. v-model="dataList.moveTaskNo"
  161. placeholder="请输入移库任务编号"
  162. size="small"
  163. />
  164. </el-form-item>
  165. <!-- 货名 -->
  166. <el-form-item label="货源" class="huom">
  167. <el-input disabled v-model="goods" placeholder="请选择货源"
  168. maxlength="120" size="small" class="huom" />
  169. <el-button class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
  170. </el-form-item>
  171. <!--重量(吨)-->
  172. <el-form-item
  173. label="重量(吨)"
  174. span="1"
  175. >
  176. <el-input
  177. v-model="dataList.weight"
  178. placeholder="请输入重量(吨)"
  179. maxlength="120"
  180. size="small"
  181. />
  182. </el-form-item>
  183. <!-- 品级 -->
  184. <el-form-item label="品级">
  185. <el-select
  186. v-model="dataList.grade"
  187. placeholder
  188. class="typeselect"
  189. @change="selectpackingMethod"
  190. filterable
  191. clearable
  192. >
  193. <el-option
  194. v-for="item in gradeList"
  195. :key="item.constKey"
  196. :label="item.constValue"
  197. :value="item.constValue"
  198. />
  199. </el-select>
  200. </el-form-item>
  201. <!--容重(克/升)>=-->
  202. <el-form-item
  203. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  204. label="容重(克/升)>="
  205. >
  206. <el-input
  207. @input="bulkDensitychange"
  208. v-model="dataList.bulkDensity"
  209. placeholder="请输入容重"
  210. maxlength="120"
  211. size="small"
  212. />
  213. </el-form-item>
  214. <!--水分(%)<=-->
  215. <el-form-item
  216. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  217. label="水分(%)<="
  218. span="1"
  219. >
  220. <el-input
  221. @input="waterContentchange"
  222. v-model="dataList.waterContent"
  223. placeholder="请输入水分占比"
  224. maxlength="120"
  225. size="small"
  226. />
  227. </el-form-item>
  228. <!--单价(元/吨)-->
  229. <el-form-item
  230. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  231. label="单价(元/吨)"
  232. span="1"
  233. v-show="Pricetype"
  234. >
  235. <el-input
  236. @input="unitPricechange"
  237. v-model="dataList.unitPrice"
  238. placeholder="请输入单价"
  239. maxlength="120"
  240. size="small"
  241. />
  242. </el-form-item>
  243. <!--预计出库日期-->
  244. <el-form-item
  245. label="预计出库日期"
  246. span="1"
  247. prop="predictDate"
  248. class="deliverydate"
  249. >
  250. <el-date-picker
  251. v-model="dataList.predictDate"
  252. type="date"
  253. placeholder="请选择预计出库日期"
  254. value-format="yyyy-MM-dd"
  255. />
  256. </el-form-item>
  257. <!--预估运费(元/吨)-->
  258. <!-- <el-form-item label="预估运费(元/吨)" span="1" >
  259. <el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
  260. maxlength="20" size="small" />
  261. </el-form-item> -->
  262. <!--发货人-->
  263. <el-form-item label="发货人">
  264. <el-select
  265. v-model="dataList.agent"
  266. placeholder="请选择发货人"
  267. filterable
  268. disabled
  269. @change="selectstaff"
  270. >
  271. <el-option
  272. v-for="item in options"
  273. :key="item.value"
  274. :label="item.staffName"
  275. :value="item.staffName"
  276. />
  277. </el-select>
  278. </el-form-item>
  279. <!--业务描述=-->
  280. <el-form-item
  281. v-if="dataList.taskTypeKey != 3"
  282. label="业务描述"
  283. span="1"
  284. >
  285. <el-input
  286. v-model="dataList.businessDescribe"
  287. placeholder="请输入业务描述,不超过150字"
  288. maxlength="150"
  289. size="large"
  290. class="yewu"
  291. />
  292. </el-form-item>
  293. </el-form>
  294. </div>
  295. <!-- <div
  296. v-show="
  297. dataList.taskTypeKey == 2 ||
  298. dataList.taskTypeKey == 4 ||
  299. (dataList.taskTypeKey == 3 && inOutFlag == 2)
  300. "
  301. class="center1"
  302. > -->
  303. <div
  304. v-show="
  305. dataList.taskTypeKey == 2 ||
  306. dataList.taskTypeKey == 4 ||
  307. dataList.taskTypeKey == 3
  308. "
  309. class="center1"
  310. >
  311. <img
  312. style="position: relative; top: 40px; left: 300px"
  313. width="19"
  314. height="19"
  315. src="../../../public/img/cangku.png"
  316. alt
  317. />
  318. <div class="small-title">
  319. <h3>
  320. 入库任务({{ dataList1.inOutTaskNo }})
  321. <span v-if="deletetask" style="color: red">已删除</span>
  322. </h3>
  323. </div>
  324. <el-form
  325. v-if="!deletetask"
  326. ref="form"
  327. :model="form"
  328. label-width="140px"
  329. >
  330. <!-- 仓库名 -->
  331. <el-form-item label="仓库名">
  332. <el-select
  333. v-model="dataList1.warehouseName"
  334. placeholder="请选择仓库名"
  335. class="typeselect"
  336. disabled
  337. filterable
  338. clearable
  339. >
  340. <el-option
  341. v-for="item in warehouseNameList"
  342. :key="item.constKey"
  343. :label="item.warehouseName"
  344. :value="item.warehouseName"
  345. />
  346. </el-select>
  347. </el-form-item>
  348. <!-- 入库类型 -->
  349. <el-form-item label="入库类型">
  350. <el-select
  351. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  352. v-model="dataList1.inOutType"
  353. placeholder="请选择入库类型"
  354. class="typeselect"
  355. @change="selectstorageType1"
  356. filterable
  357. clearable
  358. >
  359. <el-option
  360. v-for="item in storageType1"
  361. :key="item.constKey"
  362. v-if="
  363. (dataList1.taskTypeKey == 2 &&
  364. item.constValue != '移库入库') ||
  365. (dataList1.taskTypeKey == 3 &&
  366. item.constValue == '移库入库') ||
  367. (dataList1.taskTypeKey == 4 && item.constValue == '退库')
  368. "
  369. :label="item.constValue"
  370. :value="item.constValue"
  371. />
  372. </el-select>
  373. </el-form-item>
  374. <!-- 合同编号 -->
  375. <el-form-item v-if="dataList1.taskTypeKey != 3" label="合同编号">
  376. <el-select
  377. @change="changecontract1"
  378. v-model="dataList1.contractNo"
  379. placeholder="请输入合同编号"
  380. class="typeselect"
  381. filterable
  382. clearable
  383. >
  384. <el-option
  385. v-for="item in contractNoList"
  386. :key="item.constKey"
  387. :label="item.contractNo"
  388. :value="item.contractNo"
  389. ></el-option>
  390. </el-select>
  391. </el-form-item>
  392. <el-form-item v-if="dataList1.taskTypeKey == 3" label="移库任务编号">
  393. <el-input
  394. disabled
  395. v-model="dataList.moveTaskNo"
  396. placeholder="请输入移库任务编号"
  397. size="small"
  398. />
  399. </el-form-item>
  400. <!-- 货名 -->
  401. <el-form-item v-if='dataList1.inOutType!="退库"&&dataList1.taskTypeKey == 2' label="货名" class="huom">
  402. <el-select disabled v-model="dataList1.goodsName" placeholder="货名" class="huom" @change="selectgoodsName1"
  403. filterable clearable>
  404. <el-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
  405. :value="item.constValue"></el-option>
  406. </el-select>
  407. </el-form-item>
  408. <el-form-item v-else label="货源" class="huom">
  409. <el-input disabled v-model="goods" placeholder="请选择货源"
  410. maxlength="120" size="small" class="huom" />
  411. <el-button v-if='dataList.taskTypeKey!=3' class="bg-bottom" type="primary" size="small" @click="supplygoods()">选择货源</el-button>
  412. </el-form-item>
  413. <!--重量(吨)-->
  414. <el-form-item
  415. label="重量(吨)"
  416. span="1"
  417. >
  418. <el-input
  419. @input="weightchange"
  420. v-model="dataList1.weight"
  421. placeholder="请输入重量(吨)"
  422. maxlength="120"
  423. size="small"
  424. />
  425. </el-form-item>
  426. <!-- 品级 -->
  427. <el-form-item label="品级">
  428. <el-select
  429. :disabled="dataList.taskTypeKey == 3"
  430. v-model="dataList1.grade"
  431. placeholder
  432. class="typeselect"
  433. @change="selectpackingMethod1"
  434. filterable
  435. clearable
  436. >
  437. <el-option
  438. v-for="item in gradeList"
  439. :key="item.constKey"
  440. :label="item.constValue"
  441. :value="item.constValue"
  442. />
  443. </el-select>
  444. </el-form-item>
  445. <!--容重(克/升)>=-->
  446. <el-form-item
  447. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  448. label="容重(克/升)>="
  449. >
  450. <el-input
  451. @input="bulkDensitychange"
  452. :disabled="dataList.taskTypeKey == 3"
  453. v-model="dataList1.bulkDensity"
  454. placeholder="请输入容重"
  455. maxlength="120"
  456. size="small"
  457. />
  458. </el-form-item>
  459. <!--水分(%)<=-->
  460. <el-form-item
  461. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  462. label="水分(%)<="
  463. span="1"
  464. >
  465. <el-input
  466. @input="waterContentchange"
  467. :disabled="dataList.taskTypeKey == 3"
  468. v-model="dataList1.waterContent"
  469. placeholder="请输入水分占比"
  470. maxlength="120"
  471. size="small"
  472. />
  473. </el-form-item>
  474. <!--单价(元/吨)-->
  475. <el-form-item
  476. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  477. label="单价(元/吨)"
  478. span="1"
  479. v-show="Pricetype"
  480. >
  481. <el-input
  482. @input="unitPricechange"
  483. :disabled="dataList.taskTypeKey == 3"
  484. v-model="dataList1.unitPrice"
  485. placeholder="请输入单价"
  486. maxlength="120"
  487. size="small"
  488. />
  489. </el-form-item>
  490. <!--预计出库日期-->
  491. <el-form-item
  492. label="预计入库日期"
  493. span="1"
  494. prop="predictDate"
  495. class="deliverydate"
  496. >
  497. <el-date-picker
  498. v-model="dataList1.predictDate"
  499. type="date"
  500. placeholder="请选择预计入库日期"
  501. value-format="yyyy-MM-dd"
  502. />
  503. </el-form-item>
  504. <!--预估运费(元/吨)-->
  505. <!-- <el-form-item label="预估运费(元/吨)" span="1" >
  506. <el-input v-model="dataList1.estimatedFreight" placeholder="请输入预估运费"
  507. maxlength="20" size="small" />
  508. </el-form-item> -->
  509. <!-- 经办人-->
  510. <el-form-item label="收货人">
  511. <el-select
  512. v-model="dataList1.agent"
  513. placeholder="请选择收货人"
  514. filterable
  515. disabled
  516. @change="selectstaff1"
  517. >
  518. <el-option
  519. v-for="item in options"
  520. :key="item.value"
  521. :label="item.staffName"
  522. :value="item.staffName"
  523. />
  524. </el-select>
  525. </el-form-item>
  526. <!--业务描述=-->
  527. <el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
  528. <el-input
  529. v-model="dataList1.businessDescribe"
  530. placeholder="请输入业务描述,不超过150字"
  531. maxlength="150"
  532. size="large"
  533. />
  534. </el-form-item>
  535. </el-form>
  536. </div>
  537. <div v-if="dataList.taskTypeKey == 4" class="center1">
  538. <!--出库=-->
  539. <div class="small-title">
  540. <img
  541. style="position: relative; top: 40px; left: -22px"
  542. width="19"
  543. height="19"
  544. src="../../../public/img/cangku.png"
  545. alt
  546. />
  547. <h3>出库任务({{ inOutTaskNo }})</h3>
  548. </div>
  549. <el-form ref="dataList" :model="dataList" label-width="140px">
  550. <!-- 仓库名 -->
  551. <el-form-item label="仓库名">
  552. <el-select
  553. v-model="dataList.warehouseName"
  554. placeholder="请选择仓库名"
  555. class="typeselect"
  556. @change="selectwarehouseName"
  557. disabled
  558. filterable
  559. clearable
  560. >
  561. <el-option
  562. v-for="item in warehouseNameList"
  563. :key="item.constKey"
  564. :label="item.warehouseName"
  565. :value="item.id"
  566. />
  567. </el-select>
  568. </el-form-item>
  569. <!-- 出库类型 -->
  570. <el-form-item label="出库类型">
  571. <el-select
  572. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  573. v-model="dataList.inOutType"
  574. placeholder="请选择出库类型"
  575. class="typeselect"
  576. @change="selectstorageType"
  577. filterable
  578. clearable
  579. >
  580. <el-option
  581. v-for="item in storageType"
  582. :key="item.constKey"
  583. v-if="
  584. (dataList.taskTypeKey == 1 &&
  585. item.constValue != '移库出库') ||
  586. (dataList.taskTypeKey == 3 &&
  587. item.constValue == '移库出库') ||
  588. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  589. "
  590. :label="item.constValue"
  591. :value="item.constValue"
  592. />
  593. </el-select>
  594. </el-form-item>
  595. <!-- 合同编号 -->
  596. <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
  597. <el-select
  598. @change="changecontract"
  599. v-model="dataList.contractNo"
  600. placeholder="请输入合同编号"
  601. class="typeselect"
  602. filterable
  603. clearable
  604. >
  605. <el-option
  606. v-for="item in contractNoList"
  607. :key="item.constKey"
  608. :label="item.contractNo"
  609. :value="item.contractNo"
  610. ></el-option>
  611. </el-select>
  612. </el-form-item>
  613. <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
  614. <el-input
  615. disabled
  616. v-model="dataList.moveTaskNo"
  617. placeholder="请输入移库任务编号"
  618. size="small"
  619. />
  620. </el-form-item>
  621. <!-- 货名 -->
  622. <el-form-item label="货源" class="huom">
  623. <el-input disabled v-model="goods" placeholder="请选择货源"
  624. maxlength="120" size="small" class="huom" />
  625. <el-button class="bg-bottom" v-if='dataList.taskTypeKey!=4' type="primary" size="small" @click="supplygoods()">选择货源</el-button>
  626. </el-form-item>
  627. <!--重量(吨)-->
  628. <el-form-item
  629. label="重量(吨)"
  630. span="1"
  631. >
  632. <el-input
  633. v-model="dataList.weight"
  634. placeholder="请输入重量(吨)"
  635. maxlength="120"
  636. size="small"
  637. />
  638. </el-form-item>
  639. <!-- 品级 -->
  640. <el-form-item label="品级">
  641. <el-select
  642. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  643. v-model="dataList.grade"
  644. placeholder
  645. class="typeselect"
  646. @change="selectpackingMethod"
  647. filterable
  648. clearable
  649. >
  650. <el-option
  651. v-for="item in gradeList"
  652. :key="item.constKey"
  653. :label="item.constValue"
  654. :value="item.constValue"
  655. />
  656. </el-select>
  657. </el-form-item>
  658. <!--容重(克/升)>=-->
  659. <el-form-item
  660. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  661. label="容重(克/升)>="
  662. >
  663. <el-input
  664. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  665. v-model="dataList.bulkDensity"
  666. placeholder="请输入容重"
  667. maxlength="120"
  668. size="small"
  669. />
  670. </el-form-item>
  671. <!--水分(%)<=-->
  672. <el-form-item
  673. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  674. label="水分(%)<="
  675. span="1"
  676. >
  677. <el-input
  678. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  679. v-model="dataList.waterContent"
  680. placeholder="请输入水分占比"
  681. maxlength="120"
  682. size="small"
  683. />
  684. </el-form-item>
  685. <!--单价(元/吨)-->
  686. <el-form-item
  687. v-if="dataList.taskTypeKey != 3 || dataList1.taskTypeKey != 3"
  688. label="单价(元/吨)"
  689. span="1"
  690. v-show="Pricetype"
  691. >
  692. <el-input
  693. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  694. v-model="dataList.unitPrice"
  695. placeholder="请输入单价"
  696. maxlength="120"
  697. size="small"
  698. />
  699. </el-form-item>
  700. <!--预计出库日期-->
  701. <el-form-item
  702. label="预计出库日期"
  703. span="1"
  704. prop="predictDate"
  705. class="deliverydate"
  706. >
  707. <el-date-picker
  708. v-model="dataList.predictDate"
  709. type="date"
  710. placeholder="请选择预计出库日期"
  711. value-format="yyyy-MM-dd"
  712. />
  713. </el-form-item>
  714. <!--预估运费(元/吨)-->
  715. <!-- <el-form-item label="预估运费(元/吨)" span="1" >
  716. <el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
  717. maxlength="20" size="small" />
  718. </el-form-item> -->
  719. <!--发货人-->
  720. <el-form-item label="出库发货人">
  721. <el-select
  722. v-model="dataList.agent"
  723. placeholder="请选择发货人"
  724. filterable
  725. disabled
  726. @change="selectstaff"
  727. >
  728. <el-option
  729. v-for="item in options"
  730. :key="item.value"
  731. :label="item.staffName"
  732. :value="item.staffName"
  733. />
  734. </el-select>
  735. </el-form-item>
  736. <!--业务描述=-->
  737. <el-form-item label="业务描述">
  738. <el-input
  739. v-model="dataList.businessDescribe"
  740. placeholder="请输入业务描述,不超过150字"
  741. maxlength="150"
  742. size="large"
  743. />
  744. </el-form-item>
  745. </el-form>
  746. </div>
  747. </div>
  748. <!-- 提交 -->
  749. <div style="text-align: right; padding: 10px" class="center">
  750. <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
  751. >提交</el-button
  752. >
  753. </div>
  754. </div>
  755. </template>
  756. <script>
  757. import {
  758. getwarehousename,
  759. xialaNo,
  760. addoreditoutput,
  761. outexamine,
  762. getGoodsName,
  763. } from '@/model/tasksport/index'
  764. import { pullDown, getstaff } from '@/model/warehouse/index'
  765. import { downloadFile } from '@/utils/batchDown'
  766. import Pagination from '@/components/Pagination'
  767. import { mapGetters } from 'vuex'
  768. import WsUpload from '@/components/WsUpload'
  769. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  770. import { dayjs, EventBus } from 'base-core-lib'
  771. export default {
  772. name: 'viewSpareMoney',
  773. components: {
  774. WsUpload,
  775. Pagination,
  776. },
  777. watch: {
  778. // vesselId(val) {
  779. // this.getList()
  780. // },
  781. isShow(val) {
  782. this.showType = val
  783. },
  784. },
  785. computed: {
  786. ...mapGetters(['deptBudgetList']),
  787. },
  788. data() {
  789. return {
  790. //弹出框
  791. dialogViewSpareMoney: false,
  792. dialogApproveFormVisible: false,
  793. // 船舶类型
  794. monetaryKey: null,
  795. goods: '',
  796. // 表格显示数据
  797. tableDate: [],
  798. // 是否显示
  799. showType: true,
  800. disabled: false,
  801. // 年
  802. year: '',
  803. contractNoList: [],
  804. deptBudgetTotal: 0,
  805. readonly: true,
  806. currentPage: 1,
  807. pageSize: 10,
  808. searchType: 1,
  809. searchKeyWord: '',
  810. radio: '1',
  811. contractType: 2,
  812. startDate: null,
  813. endDate: null,
  814. goodnameList: [],
  815. checked: true,
  816. form: {},
  817. staffList: [],
  818. options: [],
  819. storageType: [],
  820. storageType1: [],
  821. outContractNo: [],
  822. // 提交类型
  823. submitType: true,
  824. status: [],
  825. warehouseNameList: [],
  826. warehouseNameList1: [],
  827. appendixIdsAdd: '',
  828. uploadSuccess: {},
  829. warehouseInOutDetail: {},
  830. onChange: {},
  831. deptBudgetList1: [],
  832. gradeList: [],
  833. deletetask: false,
  834. rules: {
  835. netWeight: [
  836. {
  837. required: true,
  838. type: 'number',
  839. message: '请输入活动名称',
  840. trigger: 'blur',
  841. },
  842. ],
  843. },
  844. size: 10,
  845. compId: localStorage.getItem('ws-pf_compId'),
  846. deptCircularPage: {},
  847. packtypeList: {},
  848. date: {
  849. year: dayjs().format('YYYY'),
  850. month: dayjs().format('MM'),
  851. },
  852. contractList: [],
  853. inOutTaskNo: '',
  854. inOutTaskNo1: '',
  855. dataList: { taskTypeKey: '1', weight: 0 },
  856. dataList1: { taskTypeKey: '1', weight: 0 },
  857. historyList: [],
  858. pickerBeginDateBefore: {
  859. disabledDate: (time) => {
  860. return time.getTime() > Date.now()
  861. },
  862. },
  863. accessoryTFs: false,
  864. inOutFlag: 1,
  865. Pricetype: true,
  866. }
  867. },
  868. activated() {
  869. this.dataList.weight = 0
  870. this.dataList1.weight = 0
  871. this.getList()
  872. if(localStorage.getItem("taskTypeKey")){
  873. this.dataList.taskTypeKey=localStorage.getItem("taskTypeKey")
  874. this.dataList1.taskTypeKey=localStorage.getItem("taskTypeKey")
  875. if(this.dataList.taskTypeKey==1||this.dataList.taskTypeKey==3){
  876. this.dataList.warehouseName=localStorage.getItem("warehouse")
  877. this.dataList.contractNo=localStorage.getItem("contractNo")
  878. }
  879. else if(this.dataList.taskTypeKey==2||this.dataList.taskTypeKey==4){
  880. this.dataList1.warehouseName=localStorage.getItem("warehouse")
  881. this.dataList1.contractNo=localStorage.getItem("contractNo")
  882. }
  883. }
  884. var num = 0
  885. this.sourceId = ''
  886. },
  887. methods: {
  888. //返回按钮
  889. revert() {
  890. this.$router.go(-1)
  891. },
  892. returnsales() {
  893. this.$router.go(-1)
  894. localStorage.removeItem('supplygoods1')
  895. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  896. },
  897. supplygoods() {
  898. if (this.dataList.taskTypeKey == 1 || this.dataList.taskTypeKey == 3) {
  899. if (this.dataList.warehouseName) {
  900. localStorage.setItem("warehouse",this.dataList.warehouseName);
  901. localStorage.setItem("contractNo",this.dataList.contractNo);
  902. localStorage.setItem("taskTypeKey",this.dataList.taskTypeKey);
  903. this.$router.push({
  904. name: 'supplyofgoodsedit',
  905. query: {
  906. list: JSON.stringify(this.dataList.sourceRelationInfoList),
  907. },
  908. })
  909. } else {
  910. this.$message({
  911. message: '请先选择仓库',
  912. type: 'warning',
  913. })
  914. }
  915. } else if (
  916. (this.dataList1.taskTypeKey == 2 && dataList1.inOutType == '退库') ||
  917. this.dataList1.taskTypeKey == 4
  918. ) {
  919. if (this.dataList1.moveTaskNo || this.dataList1.contractNo) {
  920. localStorage.setItem("warehouse",this.dataList1.warehouseName);
  921. localStorage.setItem("contractNo",this.dataList1.contractNo);
  922. localStorage.setItem("taskTypeKey",this.dataList1.taskTypeKey);
  923. this.$router.push({
  924. name: 'outsupplyofgoodsedit',
  925. query: {
  926. list: JSON.stringify(this.dataList1.sourceRelationInfoList),
  927. contractNo:this.dataList1.contractNo,
  928. taskTypeKey:this.dataList1.taskTypeKey
  929. },
  930. })
  931. } else {
  932. this.$message({
  933. message: '请先选择合同/移库编号',
  934. type: 'warning',
  935. })
  936. }
  937. }
  938. },
  939. // 获取当前年月日
  940. getdate() {
  941. var date = new Date()
  942. var year = date.getFullYear() //获取完整的年份(4位)
  943. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  944. var datetime = date.getDate() //获取当前日(1-31)
  945. if (mouth < 10) {
  946. mouth = '0' + mouth
  947. }
  948. if (datetime < 10) {
  949. datetime = '0' + datetime
  950. }
  951. return year + '' + mouth + datetime
  952. },
  953. // 随机验证码
  954. verifyinit() {
  955. var arr = []
  956. for (var i = 48; i < 123; i++) {
  957. if (i > 57 && i < 65) continue
  958. if (i > 90) continue
  959. arr.push(String.fromCharCode(i))
  960. }
  961. arr.sort(function () {
  962. return Math.random() - 0.5
  963. })
  964. arr.length = 4
  965. return arr.join('')
  966. },
  967. selectTaskNo(e) {
  968. if (this.dataList.taskTypeKey == 3) {
  969. this.dataList1.moveTaskNo = e
  970. }
  971. },
  972. dataFilter(val) {
  973. // console.log(val,"名")
  974. this.deptBudgetList.staffList = val
  975. if (val) {
  976. //val存在
  977. this.options = this.staffList.filter((item) => {
  978. if (
  979. !!~item.staffName.indexOf(val) ||
  980. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  981. ) {
  982. return true
  983. }
  984. })
  985. } else {
  986. //val为空时,还原数组
  987. this.options = this.staffList
  988. }
  989. },
  990. weightchange(e) {
  991. if (this.dataList.taskTypeKey == 4) {
  992. this.$set(this.dataList, 'weight', e)
  993. }
  994. },
  995. bulkDensitychange(e) {
  996. if (this.dataList.taskTypeKey == 4) {
  997. this.$set(this.dataList, 'bulkDensity', e)
  998. } else if (this.dataList1.taskTypeKey == 3) {
  999. this.$set(this.dataList1, 'bulkDensity', e)
  1000. }
  1001. },
  1002. waterContentchange(e) {
  1003. if (this.dataList.taskTypeKey == 4) {
  1004. this.$set(this.dataList, 'waterContent', e)
  1005. } else if (this.dataList1.taskTypeKey == 3) {
  1006. this.$set(this.dataList1, 'waterContent', e)
  1007. }
  1008. },
  1009. unitPricechange(e) {
  1010. if (this.dataList.taskTypeKey == 4) {
  1011. this.$set(this.dataList, 'unitPrice', e)
  1012. } else if (this.dataList1.taskTypeKey == 3) {
  1013. this.$set(this.dataList1, 'unitPrice', e)
  1014. }
  1015. },
  1016. changecontract(e) {
  1017. if (this.dataList.taskTypeKey != 3) {
  1018. for (let i = 0; i < this.contractNoList.length; i++) {
  1019. if (this.contractNoList[i].contractNo == e) {
  1020. if (this.contractNoList[i].priceType == '随行就市') {
  1021. this.Pricetype = false
  1022. } else {
  1023. this.Pricetype = true
  1024. }
  1025. getGoodsName({
  1026. contractId: this.contractNoList[i].id,
  1027. contractNo: this.contractNoList[i].contractNo,
  1028. })
  1029. .toPromise()
  1030. .then((response) => {
  1031. this.$set(this.dataList, 'goodsName', response.goodsName)
  1032. this.$set(this.dataList, 'goodsNameKey', response.goodsNameKey)
  1033. this.$set(this.dataList, 'grade', response.grade)
  1034. this.$set(this.dataList, 'gradeKey', response.gradeKey)
  1035. this.$set(this.dataList, 'waterContent', response.waterContent)
  1036. this.$set(this.dataList, 'bulkDensity', response.bulkDensity)
  1037. // this.$set(this.dataList, 'weight', response.weight)
  1038. this.$set(
  1039. this.dataList,
  1040. 'unitPrice',
  1041. response.unitContractPrice
  1042. )
  1043. })
  1044. }
  1045. }
  1046. }
  1047. },
  1048. changecontract1(e) {
  1049. if (this.dataList1.taskTypeKey != 3) {
  1050. for (let i = 0; i < this.contractNoList.length; i++) {
  1051. if (this.contractNoList[i].contractNo == e) {
  1052. if (this.contractNoList[i].priceType == '随行就市') {
  1053. this.Pricetype = false
  1054. } else {
  1055. this.Pricetype = true
  1056. }
  1057. getGoodsName({
  1058. contractId: this.contractNoList[i].id,
  1059. contractNo: this.contractNoList[i].contractNo,
  1060. })
  1061. .toPromise()
  1062. .then((response) => {
  1063. this.$set(this.dataList1, 'goodsName', response.goodsName)
  1064. this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
  1065. this.$set(this.dataList1, 'grade', response.grade)
  1066. this.$set(this.dataList1, 'gradeKey', response.gradeKey)
  1067. this.$set(this.dataList1, 'waterContent', response.waterContent)
  1068. this.$set(this.dataList1, 'bulkDensity', response.bulkDensity)
  1069. this.$set(this.dataList1, 'weight', response.weight)
  1070. this.$set(
  1071. this.dataList1,
  1072. 'unitPrice',
  1073. response.unitContractPrice
  1074. )
  1075. })
  1076. }
  1077. }
  1078. }
  1079. },
  1080. selectstaff(e) {
  1081. for (var i = 0; i < this.staffList.length; i++) {
  1082. if (this.staffList[i].staffName == e) {
  1083. this.dataList.agentKey = this.staffList[i].staffId
  1084. }
  1085. }
  1086. },
  1087. selectstaff1(e) {
  1088. for (var i = 0; i < this.staffList.length; i++) {
  1089. if (this.staffList[i].staffName == e) {
  1090. this.dataList1.agentKey = this.staffList[i].staffId
  1091. }
  1092. }
  1093. },
  1094. requestadd(list, status) {
  1095. localStorage.removeItem('supplygoods1')
  1096. list.compId = localStorage.getItem('ws-pf_compId')
  1097. list.publisher =
  1098. localStorage.getItem('ws-pf_roleName') +
  1099. localStorage.getItem('ws-pf_staffName')
  1100. addoreditoutput(list)
  1101. .toPromise()
  1102. .then((response) => {
  1103. this.$message.success('编辑成功')
  1104. // this.$router.go(-1)
  1105. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  1106. })
  1107. },
  1108. //提交按钮
  1109. submit() {
  1110. localStorage.removeItem("warehouse")
  1111. localStorage.removeItem("contractNo");
  1112. localStorage.removeItem("taskTypeKey");
  1113. this.dataList.inOutFlag = 1
  1114. this.dataList1.inOutFlag = 2
  1115. var supplygoods = JSON.parse(localStorage.getItem('supplygoods'))
  1116. // if (data) {
  1117. // for (let i = 0; i < data.length; i++) {
  1118. // data[i].sourceId = data[i].id
  1119. // }
  1120. // }
  1121. this.dataList.sourceRelationInfoList = supplygoods
  1122. this.dataList1.sourceRelationInfoList = supplygoods
  1123. if (this.dataList.taskTypeKey == 1) {
  1124. if (!this.dataList.warehouseName) {
  1125. this.$message({
  1126. message: '仓库名不能为空!',
  1127. type: 'warning',
  1128. })
  1129. return
  1130. }
  1131. if (!this.dataList.contractNo) {
  1132. this.$message({
  1133. message: '合同编号不能为空!',
  1134. type: 'warning',
  1135. })
  1136. return
  1137. }
  1138. if (!this.dataList.weight) {
  1139. this.$message({
  1140. message: '重量(吨)不能为空!',
  1141. type: 'warning',
  1142. })
  1143. return
  1144. }
  1145. if (
  1146. isNaN(this.dataList.weight) ||
  1147. (String(this.dataList.weight).indexOf('.') != -1 &&
  1148. String(this.dataList.weight).length -
  1149. (String(this.dataList.weight).indexOf('.') + 1) >
  1150. 2) ||
  1151. this.dataList.weight < 0 ||
  1152. this.dataList.weight > 200000
  1153. ) {
  1154. this.$message({
  1155. message: '重量(吨)输入有误!',
  1156. type: 'warning',
  1157. })
  1158. return
  1159. }
  1160. if (!this.dataList.bulkDensity) {
  1161. this.$message({
  1162. message: '容重不能为空!',
  1163. type: 'warning',
  1164. })
  1165. return
  1166. }
  1167. if (this.dataList.bulkDensity < 0 || this.dataList.bulkDensity > 1000) {
  1168. this.$message({
  1169. message: '容重输入错误',
  1170. type: 'warning',
  1171. })
  1172. return
  1173. }
  1174. if (
  1175. String(this.dataList.bulkDensity).indexOf('.') != -1 &&
  1176. String(this.dataList.bulkDensity).length -
  1177. (String(this.dataList.bulkDensity).indexOf('.') + 1) >
  1178. 0
  1179. ) {
  1180. this.$message({
  1181. message: '容重需输入整数',
  1182. type: 'warning',
  1183. })
  1184. return
  1185. }
  1186. if (!this.dataList.waterContent) {
  1187. this.$message({
  1188. message: '水分不能为空!',
  1189. type: 'warning',
  1190. })
  1191. return
  1192. }
  1193. if (this.dataList.waterContent < 0 || this.dataList.waterContent > 40) {
  1194. this.$message({
  1195. message: '水分输入错误',
  1196. type: 'warning',
  1197. })
  1198. return
  1199. }
  1200. if (
  1201. String(this.dataList.waterContent).indexOf('.') != -1 &&
  1202. String(this.dataList.waterContent).length -
  1203. (String(this.dataList.waterContent).indexOf('.') + 1) >
  1204. 1
  1205. ) {
  1206. this.$message({
  1207. message: '水分输入错误',
  1208. type: 'warning',
  1209. })
  1210. return
  1211. }
  1212. // if (!this.dataList.unitPrice) {
  1213. // this.$message({
  1214. // message: '单价不能为空!',
  1215. // type: 'warning'
  1216. // })
  1217. // return
  1218. // }
  1219. // if (
  1220. // (this.dataList.unitPrice &&
  1221. // String(this.dataList.unitPrice).indexOf('.') != -1 &&
  1222. // String(this.dataList.unitPrice).length -
  1223. // (String(this.dataList.unitPrice).indexOf('.') + 1) >
  1224. // 2) ||
  1225. // this.dataList.unitPrice > 100000 ||
  1226. // this.dataList.unitPrice < 1
  1227. // ) {
  1228. // this.$message({
  1229. // message: '单价输入错误',
  1230. // type: 'warning'
  1231. // })
  1232. // return
  1233. // }
  1234. if (!this.dataList.predictDate) {
  1235. this.$message({
  1236. message: '预计出库日期不能为空!',
  1237. type: 'warning',
  1238. })
  1239. return
  1240. }
  1241. // if (!this.dataList.agent) {
  1242. // this.$message({
  1243. // message: '出库经办人不能为空!',
  1244. // type: 'warning'
  1245. // })
  1246. // return
  1247. // }
  1248. if (!this.dataList.businessDescribe) {
  1249. this.$message({
  1250. message: '业务描述不能为空!',
  1251. type: 'warning',
  1252. })
  1253. return
  1254. }
  1255. this.requestadd(this.dataList)
  1256. } else if (this.dataList1.taskTypeKey == 2) {
  1257. if (!this.dataList1.warehouseName) {
  1258. this.$message({
  1259. message: '仓库名不能为空!',
  1260. type: 'warning',
  1261. })
  1262. return
  1263. }
  1264. if (!this.dataList1.contractNo) {
  1265. this.$message({
  1266. message: '合同编号不能为空!',
  1267. type: 'warning',
  1268. })
  1269. return
  1270. }
  1271. if (!this.dataList1.weight) {
  1272. this.$message({
  1273. message: '重量(吨)不能为空!',
  1274. type: 'warning',
  1275. })
  1276. return
  1277. }
  1278. if (
  1279. isNaN(this.dataList1.weight) ||
  1280. (String(this.dataList1.weight).indexOf('.') != -1 &&
  1281. String(this.dataList1.weight).length -
  1282. (String(this.dataList1.weight).indexOf('.') + 1) >
  1283. 2) ||
  1284. this.dataList1.weight < 0 ||
  1285. this.dataList1.weight > 200000
  1286. ) {
  1287. this.$message({
  1288. message: '重量(吨)输入有误!',
  1289. type: 'warning',
  1290. })
  1291. return
  1292. }
  1293. if (!this.dataList1.bulkDensity) {
  1294. this.$message({
  1295. message: '容重不能为空!',
  1296. type: 'warning',
  1297. })
  1298. return
  1299. }
  1300. if (
  1301. this.dataList1.bulkDensity < 0 ||
  1302. this.dataList1.bulkDensity > 1000
  1303. ) {
  1304. this.$message({
  1305. message: '容重输入错误',
  1306. type: 'warning',
  1307. })
  1308. return
  1309. }
  1310. if (
  1311. String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
  1312. String(this.dataList1.bulkDensity).length -
  1313. (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
  1314. 0
  1315. ) {
  1316. this.$message({
  1317. message: '容重需输入整数',
  1318. type: 'warning',
  1319. })
  1320. return
  1321. }
  1322. if (!this.dataList1.waterContent) {
  1323. this.$message({
  1324. message: '水分不能为空!',
  1325. type: 'warning',
  1326. })
  1327. return
  1328. }
  1329. if (
  1330. this.dataList1.waterContent < 0 ||
  1331. this.dataList1.waterContent > 40
  1332. ) {
  1333. this.$message({
  1334. message: '水分输入错误',
  1335. type: 'warning',
  1336. })
  1337. return
  1338. }
  1339. if (
  1340. String(this.dataList1.waterContent).indexOf('.') != -1 &&
  1341. String(this.dataList1.waterContent).length -
  1342. (String(this.dataList1.waterContent).indexOf('.') + 1) >
  1343. 1
  1344. ) {
  1345. this.$message({
  1346. message: '水分输入错误',
  1347. type: 'warning',
  1348. })
  1349. return
  1350. }
  1351. // if (!this.dataList1.unitPrice) {
  1352. // this.$message({
  1353. // message: '单价不能为空!',
  1354. // type: 'warning'
  1355. // })
  1356. // return
  1357. // }
  1358. // if (
  1359. // (this.dataList1.unitPrice &&
  1360. // String(this.dataList1.unitPrice).indexOf('.') != -1 &&
  1361. // String(this.dataList1.unitPrice).length -
  1362. // (String(this.dataList1.unitPrice).indexOf('.') + 1) >
  1363. // 2) ||
  1364. // this.dataList1.unitPrice > 100000 ||
  1365. // this.dataList1.unitPrice < 1
  1366. // ) {
  1367. // this.$message({
  1368. // message: '单价输入错误',
  1369. // type: 'warning'
  1370. // })
  1371. // return
  1372. // }
  1373. if (!this.dataList1.predictDate) {
  1374. this.$message({
  1375. message: '预计入库日期不能为空!',
  1376. type: 'warning',
  1377. })
  1378. return
  1379. }
  1380. // if (!this.dataList1.agent) {
  1381. // this.$message({
  1382. // message: '入库经办人不能为空!',
  1383. // type: 'warning'
  1384. // })
  1385. // return
  1386. // }
  1387. if (!this.dataList1.businessDescribe) {
  1388. this.$message({
  1389. message: '业务描述不能为空!',
  1390. type: 'warning',
  1391. })
  1392. return
  1393. }
  1394. this.requestadd(this.dataList1)
  1395. } else if (
  1396. this.dataList.taskTypeKey == 3 ||
  1397. this.dataList.taskTypeKey == 4
  1398. ) {
  1399. this.dataList1.moveTaskNo=this.dataList1.contractNo
  1400. if (!this.dataList.warehouseName) {
  1401. this.$message({
  1402. message: '出库仓库名不能为空!',
  1403. type: 'warning',
  1404. })
  1405. return
  1406. }
  1407. if (!this.dataList1.warehouseName) {
  1408. this.$message({
  1409. message: '入库仓库名不能为空!',
  1410. type: 'warning',
  1411. })
  1412. return
  1413. }
  1414. if (!this.dataList1.moveTaskNo) {
  1415. this.$message({
  1416. message: '移库任务编号不能为空!',
  1417. type: 'warning',
  1418. })
  1419. return
  1420. }
  1421. if (!this.dataList1.weight) {
  1422. this.$message({
  1423. message: '重量(吨)不能为空!',
  1424. type: 'warning',
  1425. })
  1426. return
  1427. }
  1428. if (
  1429. isNaN(this.dataList1.weight) ||
  1430. (String(this.dataList1.weight).indexOf('.') != -1 &&
  1431. String(this.dataList1.weight).length -
  1432. (String(this.dataList1.weight).indexOf('.') + 1) >
  1433. 2) ||
  1434. this.dataList1.weight < 0 ||
  1435. this.dataList1.weight > 200000
  1436. ) {
  1437. this.$message({
  1438. message: '重量(吨)输入有误!',
  1439. type: 'warning',
  1440. })
  1441. return
  1442. }
  1443. if (this.dataList.taskTypeKey != 3 || this.dataList1.taskTypeKey != 3) {
  1444. if (!this.dataList1.bulkDensity) {
  1445. this.$message({
  1446. message: '容重不能为空!',
  1447. type: 'warning',
  1448. })
  1449. return
  1450. }
  1451. if (
  1452. this.dataList1.bulkDensity < 0 ||
  1453. this.dataList1.bulkDensity > 1000
  1454. ) {
  1455. this.$message({
  1456. message: '容重输入错误',
  1457. type: 'warning',
  1458. })
  1459. return
  1460. }
  1461. if (
  1462. String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
  1463. String(this.dataList1.bulkDensity).length -
  1464. (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
  1465. 0
  1466. ) {
  1467. this.$message({
  1468. message: '容重需输入整数',
  1469. type: 'warning',
  1470. })
  1471. return
  1472. }
  1473. if (!this.dataList1.waterContent) {
  1474. this.$message({
  1475. message: '水分不能为空!',
  1476. type: 'warning',
  1477. })
  1478. return
  1479. }
  1480. if (
  1481. this.dataList1.waterContent < 0 ||
  1482. this.dataList1.waterContent > 40
  1483. ) {
  1484. this.$message({
  1485. message: '水分输入错误',
  1486. type: 'warning',
  1487. })
  1488. return
  1489. }
  1490. if (
  1491. String(this.dataList1.waterContent).indexOf('.') != -1 &&
  1492. String(this.dataList1.waterContent).length -
  1493. (String(this.dataList1.waterContent).indexOf('.') + 1) >
  1494. 1
  1495. ) {
  1496. this.$message({
  1497. message: '水分输入错误',
  1498. type: 'warning',
  1499. })
  1500. return
  1501. }
  1502. // if (!this.dataList1.unitPrice) {
  1503. // this.$message({
  1504. // message: '单价不能为空!',
  1505. // type: 'warning'
  1506. // })
  1507. // return
  1508. // }
  1509. // if (
  1510. // (this.dataList1.unitPrice &&
  1511. // String(this.dataList1.unitPrice).indexOf('.') != -1 &&
  1512. // String(this.dataList1.unitPrice).length -
  1513. // (String(this.dataList1.unitPrice).indexOf('.') + 1) >
  1514. // 2) ||
  1515. // this.dataList1.unitPrice > 100000 ||
  1516. // this.dataList1.unitPrice < 1
  1517. // ) {
  1518. // this.$message({
  1519. // message: '单价输入错误',
  1520. // type: 'warning'
  1521. // })
  1522. // return
  1523. // }
  1524. }
  1525. if (!this.dataList.predictDate) {
  1526. this.$message({
  1527. message: '预计出库日期不能为空!',
  1528. type: 'warning',
  1529. })
  1530. return
  1531. }
  1532. if (!this.dataList1.predictDate) {
  1533. this.$message({
  1534. message: '预计入库日期不能为空!',
  1535. type: 'warning',
  1536. })
  1537. return
  1538. }
  1539. // if (!this.dataList.agent) {
  1540. // this.$message({
  1541. // message: '出库经办人不能为空!',
  1542. // type: 'warning'
  1543. // })
  1544. // return
  1545. // }
  1546. // if (!this.dataList1.agent) {
  1547. // this.$message({
  1548. // message: '入库经办人不能为空!',
  1549. // type: 'warning'
  1550. // })
  1551. // return
  1552. // }
  1553. if (!this.dataList1.businessDescribe) {
  1554. this.$message({
  1555. message: '业务描述不能为空!',
  1556. type: 'warning',
  1557. })
  1558. return
  1559. }
  1560. this.dataList.relevanceId = this.GetRandomNum(100000, 999999)
  1561. if (this.dataList.taskTypeKey == 3) {
  1562. this.dataList.businessDescribe = this.dataList1.businessDescribe
  1563. } else {
  1564. this.dataList1.businessDescribe = this.dataList.businessDescribe
  1565. }
  1566. this.requestadd(this.dataList, 'repetition')
  1567. this.dataList1.relevanceId = this.dataList.relevanceId
  1568. if (!this.deletetask) {
  1569. this.requestadd(this.dataList1, 'repetition')
  1570. }
  1571. }
  1572. },
  1573. selectwarehouseName(e) {
  1574. //经办人
  1575. getstaff({
  1576. compId: localStorage.getItem('ws-pf_compId'),
  1577. warehouseId: e,
  1578. })
  1579. .toPromise()
  1580. .then((response) => {
  1581. this.options = response
  1582. this.staffList = response
  1583. // this.agent = response
  1584. })
  1585. },
  1586. tarechange(e) {
  1587. if (this.dataList.grossWeight && this.dataList.tare) {
  1588. this.dataList.netWeight = Number(
  1589. this.dataList.grossWeight - this.dataList.tare
  1590. )
  1591. }
  1592. },
  1593. grossWeightchange(e) {
  1594. if (this.dataList.grossWeight && this.dataList.tare) {
  1595. this.dataList.netWeight = Number(
  1596. this.dataList.grossWeight - this.dataList.tare
  1597. )
  1598. }
  1599. },
  1600. selectgoodsName(e) {
  1601. for (var i = 0; i < this.goodnameList.length; i++) {
  1602. if (this.goodnameList[i].constValue == e) {
  1603. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  1604. }
  1605. }
  1606. },
  1607. selectgoodsName1(e) {
  1608. for (var i = 0; i < this.goodnameList.length; i++) {
  1609. if (this.goodnameList[i].constValue == e) {
  1610. this.dataList1.goodsNameKey = this.goodnameList[i].constKey
  1611. }
  1612. }
  1613. },
  1614. selectpackingMethod(e) {
  1615. for (var i = 0; i < this.gradeList.length; i++) {
  1616. if (this.gradeList[i].constValue == e) {
  1617. this.dataList.gradeKey = this.gradeList[i].constKey
  1618. if (this.dataList.taskTypeKey == 3) {
  1619. this.$set(this.dataList1, 'grade', e)
  1620. this.$set(this.dataList1, 'gradeKey', this.gradeList[i].constKey)
  1621. }
  1622. }
  1623. }
  1624. },
  1625. selectpackingMethod1(e) {
  1626. for (var i = 0; i < this.gradeList.length; i++) {
  1627. if (this.gradeList[i].constValue == e) {
  1628. this.dataList1.packingMethodKey = this.gradeList[i].constKey
  1629. if (this.dataList1.taskTypeKey == 4) {
  1630. this.$set(this.dataList, 'grade', e)
  1631. this.$set(this.dataList, 'gradeKey', this.gradeList[i].constKey)
  1632. }
  1633. }
  1634. }
  1635. },
  1636. selectstorageType(e) {
  1637. for (var i = 0; i < this.storageType.length; i++) {
  1638. if (this.storageType[i].constValue == e) {
  1639. this.dataList.inOutTypeKey = this.storageType[i].constKey
  1640. }
  1641. }
  1642. },
  1643. selectstorageType1(e) {
  1644. for (var i = 0; i < this.storageType1.length; i++) {
  1645. if (this.storageType1[i].constValue == e) {
  1646. this.dataList1.inOutTypeKey = this.storageType1[i].constKey
  1647. }
  1648. }
  1649. },
  1650. handleClose() {
  1651. this.accessoryTFs = false
  1652. },
  1653. handleSizeChange(val) {
  1654. console.log(`每页 ${val} 条`)
  1655. this.pageSize = val
  1656. this.getList()
  1657. },
  1658. businessDescriptionchange(e) {
  1659. console.log(e)
  1660. },
  1661. handleCurrentChange(val) {
  1662. this.currentPage = val
  1663. console.log(`当前页: ${val}`)
  1664. this.getList()
  1665. },
  1666. tasknumber() {
  1667. if (this.dataList.taskTypeKey == 1) {
  1668. this.inOutTaskNo = 'CK' + this.getdate() + this.verifyinit()
  1669. } else if (this.dataList.taskTypeKey == 2) {
  1670. this.inOutTaskNo1 = 'RK' + this.getdate() + this.verifyinit()
  1671. } else if (this.dataList.taskTypeKey == 3) {
  1672. var random = this.getdate() + this.verifyinit()
  1673. this.inOutTaskNo = 'YKC' + random
  1674. this.inOutTaskNo1 = 'YKR' + random
  1675. } else if (this.dataList.taskTypeKey == 4) {
  1676. var random = this.getdate() + this.verifyinit()
  1677. this.inOutTaskNo = 'TCC' + random
  1678. this.inOutTaskNo1 = 'TCR' + random
  1679. }
  1680. },
  1681. tasktypechange(e) {
  1682. if (!this.$route.query.relevanceId) {
  1683. this.tasknumber()
  1684. }
  1685. this.dataList1.taskTypeKey = e
  1686. if (this.dataList.taskTypeKey == 1) {
  1687. this.dataList.inOutType = '销售出库'
  1688. this.dataList.inOutTypeKey = '1'
  1689. }
  1690. if (this.dataList1.taskTypeKey == 2) {
  1691. this.dataList1.inOutType = '采购入库'
  1692. this.dataList1.inOutTypeKey = '1'
  1693. } else if (this.dataList1.taskTypeKey == 3) {
  1694. this.disabled = true
  1695. this.dataList1.inOutType = '移库入库'
  1696. this.dataList1.inOutTypeKey = '3'
  1697. this.dataList.inOutType = '移库出库'
  1698. this.dataList.inOutTypeKey = '3'
  1699. } else if (this.dataList1.taskTypeKey == 4) {
  1700. this.disabled = true
  1701. this.dataList1.inOutType = '退库'
  1702. this.dataList1.inOutTypeKey = '6'
  1703. this.dataList.inOutType = '销售出库'
  1704. this.dataList.inOutTypeKey = '1'
  1705. }
  1706. },
  1707. GetRandomNum(Min, Max) {
  1708. var Range = Max - Min
  1709. var Rand = Math.random()
  1710. return Min + Math.round(Rand * Range)
  1711. },
  1712. getList() {
  1713. this.inOutFlag = this.$route.query.inOutFlag
  1714. if (this.$route.query.relevanceId) {
  1715. outexamine({ relevanceId: this.$route.query.relevanceId })
  1716. .toPromise()
  1717. .then((response) => {
  1718. if (response.length > 1) {
  1719. console.log(122222)
  1720. this.dataList = response[0]
  1721. this.dataList1 = response[1]
  1722. // console.log(this.dataList1.inOutTaskNo, '入库任务')
  1723. } else {
  1724. if (response[0].taskTypeKey == 3) {
  1725. this.deletetask = true
  1726. this.dataList1.inOutTaskNo =
  1727. 'YKR' +
  1728. response[0].inOutTaskNo.substr(
  1729. response[0].inOutTaskNo.indexOf('C') + 1,
  1730. response[0].inOutTaskNo.length
  1731. )
  1732. }
  1733. this.dataList = response[0]
  1734. if (response[0].taskTypeKey == 2) {
  1735. this.dataList1 = response[0]
  1736. } else {
  1737. // this.dataList = response[0]
  1738. }
  1739. }
  1740. this.goods = ''
  1741. if (this.dataList.sourceRelationInfoList) {
  1742. for (let i = 0;i < this.dataList.sourceRelationInfoList.length;i++) {
  1743. if ((this.dataList.taskTypeKey == 2 &&this.dataList.inOutType == '退库') ||this.dataList.taskTypeKey == 4) {
  1744. this.goods=this.dataList1.sourceId
  1745. } else if (
  1746. this.dataList.taskTypeKey == 1 ||
  1747. this.dataList.taskTypeKey == 3
  1748. ) {
  1749. this.goods =
  1750. this.goods != ''
  1751. ? this.goods + ','
  1752. : '' + this.dataList.sourceRelationInfoList[i].goodsName
  1753. }
  1754. }
  1755. }
  1756. if (localStorage.getItem('supplygoods1')) {
  1757. this.goods = ''
  1758. this.dataList1.weight = 0
  1759. this.dataList.weight = 0
  1760. if (
  1761. (this.dataList1.taskTypeKey == 2 &&
  1762. this.dataList1.inOutType == '退库') ||
  1763. this.dataList.taskTypeKey == 4
  1764. ) {
  1765. var supplygoods = JSON.parse(localStorage.getItem('supplygoods1'))
  1766. for (let i = 0; i < supplygoods.length; i++) {
  1767. var goods=supplygoods[i].goodsName.split(',')
  1768. for (let q = 0; q < goods.length; q++) {
  1769. if (this.goods.indexOf(goods[q]) == -1&&goods[q]!='') {
  1770. this.goods =this.goods != ''? this.goods + ',': '' + supplygoods[i].goodsName
  1771. }
  1772. }
  1773. if(supplygoods[i].returnTickFlag==1){
  1774. this.dataList1.weight =
  1775. Number(this.dataList1.weight) +
  1776. Number(
  1777. supplygoods[i].estimateOutWarehouseWeight
  1778. )
  1779. this.dataList.weight =
  1780. Number(this.dataList.weight) +
  1781. Number(
  1782. supplygoods[i].estimateOutWarehouseWeight
  1783. )
  1784. }
  1785. }
  1786. } else if (
  1787. this.dataList.taskTypeKey == 1 ||
  1788. this.dataList.taskTypeKey == 3
  1789. ) {
  1790. var supplygoods = JSON.parse(
  1791. localStorage.getItem('supplygoods1')
  1792. )
  1793. for (let i = 0; i < supplygoods.length; i++) {
  1794. console.log(this.goods)
  1795. this.goods =
  1796. this.goods != ''
  1797. ? this.goods + ','
  1798. : '' + supplygoods[i].goodsName
  1799. this.dataList1.weight =
  1800. Number(this.dataList1.weight) +
  1801. Number(supplygoods[i].estimateOutWarehouseWeight)
  1802. this.dataList.weight =
  1803. Number(this.dataList.weight) +
  1804. Number(supplygoods[i].estimateOutWarehouseWeight)
  1805. }
  1806. }
  1807. }
  1808. // if(localStorage.getItem("supplygoods1")){
  1809. // this.goods=''
  1810. // this.dataList1.weight=0
  1811. // this.dataList.weight=0
  1812. // var supplygoods=JSON.parse(localStorage.getItem("supplygoods1"))
  1813. // for (let i = 0; i < supplygoods.length; i++) {
  1814. // this.goods=this.goods!=''?this.goods+',':''+supplygoods[i].goodsName
  1815. // this.dataList1.weight=Number(this.dataList1.weight)+Number(supplygoods[i].estimateOutWarehouseWeight)
  1816. // this.dataList.weight=Number(this.dataList.weight)+Number(supplygoods[i].estimateOutWarehouseWeight)
  1817. // }
  1818. // }
  1819. })
  1820. } else {
  1821. this.tasknumber()
  1822. this.$set(this.dataList, 'inOutType', '销售出库')
  1823. this.$set(this.dataList, 'inOutTypeKey', '1')
  1824. this.$set(this.dataList, 'goodsName', '玉米')
  1825. this.$set(this.dataList, 'goodsNameKey', '1')
  1826. this.$set(this.dataList, 'grade', '一等品')
  1827. this.$set(this.dataList, 'gradeKey', '1')
  1828. this.$set(this.dataList1, 'goodsName', '玉米')
  1829. this.$set(this.dataList1, 'goodsNameKey', '1')
  1830. this.$set(this.dataList1, 'grade', '一等品')
  1831. this.$set(this.dataList1, 'gradeKey', '1')
  1832. }
  1833. // 货名
  1834. pullDown({ constId: 'CON2' })
  1835. .toPromise()
  1836. .then((response) => {
  1837. this.goodnameList = response
  1838. })
  1839. // 品级
  1840. pullDown({ constId: 'CON3' })
  1841. .toPromise()
  1842. .then((response) => {
  1843. this.gradeList = response
  1844. })
  1845. pullDown({ constId: 'CON6' })
  1846. .toPromise()
  1847. .then((response) => {
  1848. this.storageType = response
  1849. })
  1850. pullDown({ constId: 'CON5' })
  1851. .toPromise()
  1852. .then((response) => {
  1853. this.storageType1 = response
  1854. })
  1855. xialaNo({
  1856. compId: this.compId,
  1857. })
  1858. .toPromise()
  1859. .then((response) => {
  1860. this.contractNoList = response
  1861. for (let i = 0; i < this.contractNoList.length; i++) {
  1862. if (this.contractNoList[i].contractNo == this.dataList.contractNo) {
  1863. if (this.contractNoList[i].priceType == '随行就市') {
  1864. this.Pricetype = false
  1865. } else {
  1866. this.Pricetype = true
  1867. }
  1868. }
  1869. }
  1870. })
  1871. // //临时仓库入库类型
  1872. // pullDown({ constId: 'WARE1' })
  1873. // .toPromise()
  1874. // .then((response) => {
  1875. // this.storageType = respons
  1876. // })
  1877. // //临时仓库出库类型
  1878. // pullDown({ constId: 'WARE2' })
  1879. // .toPromise()
  1880. // .then((response) => {
  1881. // this.deliveryType = response
  1882. // })
  1883. //仓库名
  1884. getwarehousename({
  1885. compId: this.compId,
  1886. warehouseType: 1,
  1887. })
  1888. .toPromise()
  1889. .then((response) => {
  1890. this.warehouseNameList = response
  1891. })
  1892. getwarehousename({
  1893. compId: this.compId,
  1894. warehouseType: 2,
  1895. })
  1896. .toPromise()
  1897. .then((response) => {
  1898. this.warehouseNameList1 = response
  1899. })
  1900. },
  1901. selecttaskType(e) {
  1902. for (var i = 0; i < this.taskTypeList.length; i++) {
  1903. if (this.taskTypeList[i].value == e) {
  1904. this.searchType = this.taskTypeList[i].type
  1905. }
  1906. }
  1907. },
  1908. fujian(row) {
  1909. if (
  1910. row.receiveAttachmentPath === null ||
  1911. row.receiveAttachmentPath === ''
  1912. ) {
  1913. EventBus.$emit(
  1914. 'warning',
  1915. this.$t('system.noticeCircular.NoInformation')
  1916. )
  1917. } else {
  1918. this.accessoryTFs = true
  1919. }
  1920. this.appendixIdss = row.receiveAttachmentPath
  1921. },
  1922. handleExamine(row) {
  1923. this.$router.push({
  1924. name: 'salesContractExamine',
  1925. query: { id: row.id },
  1926. })
  1927. },
  1928. // 关闭 dialog时 处理文件url 初始化upload组件
  1929. handleCloe() {
  1930. this.dialogViewSpareMoney = false
  1931. },
  1932. history(row) {
  1933. billoperatehis({ id: row.id })
  1934. .toPromise()
  1935. .then((response) => {
  1936. this.historyList = response
  1937. })
  1938. },
  1939. async exportlist() {
  1940. const { data } = await export1(
  1941. {
  1942. compId: localStorage.getItem('ws-pf_compId'),
  1943. contractType: this.contractType,
  1944. currentPage: this.currentPage,
  1945. pageSize: this.pageSize,
  1946. searchType: this.searchType,
  1947. searchKeyWord: this.searchKeyWord,
  1948. startDate: this.startDate,
  1949. endDate: this.endDate,
  1950. },
  1951. {},
  1952. { responseType: 'blob' }
  1953. ).toPromise()
  1954. downloadFile({
  1955. res: data,
  1956. fileName: `${
  1957. this.date.year + (this.date.month ? `-${this.date.month}` : '')
  1958. }_采购合同`,
  1959. type: 'xls',
  1960. })
  1961. },
  1962. // deletecontract(){},
  1963. //删除
  1964. approve() {},
  1965. listQuery() {},
  1966. total() {},
  1967. clearfiltQuery() {},
  1968. selectCrtDuty() {},
  1969. },
  1970. }
  1971. </script>
  1972. <style lang="scss" scoped>
  1973. /deep/.basicInformation {
  1974. .el-info-table {
  1975. border: none;
  1976. position: relative;
  1977. }
  1978. .el-form-item {
  1979. width: 33.3333%;
  1980. border: none;
  1981. margin: 0;
  1982. .el-form-item__label {
  1983. text-align: left;
  1984. font-size: 14px;
  1985. font-family: PingFangSC-Regular, PingFang SC;
  1986. font-weight: 400;
  1987. color: #8890b1;
  1988. }
  1989. .el-form-item__content {
  1990. padding-left: 0px;
  1991. padding-right: 10px;
  1992. // background: #fff;
  1993. white-space: nowrap;
  1994. height: 40px;
  1995. display: flex;
  1996. -webkit-box-align: center;
  1997. align-items: center;
  1998. text-align: left;
  1999. overflow: hidden;
  2000. }
  2001. }
  2002. }
  2003. /deep/.el-radio {
  2004. color: #606266;
  2005. font-weight: 500;
  2006. line-height: 1;
  2007. cursor: pointer;
  2008. white-space: nowrap;
  2009. outline: 0;
  2010. margin-right: 30px;
  2011. margin-top: 15px;
  2012. }
  2013. /deep/.el-radio__inner {
  2014. border: 1px solid #dcdfe6;
  2015. border-radius: 100%;
  2016. width: 14px;
  2017. height: 14px;
  2018. background-color: #fff;
  2019. cursor: pointer;
  2020. -webkit-box-sizing: border-box;
  2021. box-sizing: border-box;
  2022. margin-left: 100px;
  2023. }
  2024. /deep/.el-radio__input {
  2025. white-space: nowrap;
  2026. cursor: pointer;
  2027. outline: 0;
  2028. line-height: 1;
  2029. vertical-align: middle;
  2030. margin-top: -1px;
  2031. }
  2032. .title {
  2033. position: relative;
  2034. padding-left: 10px;
  2035. }
  2036. .title::before {
  2037. content: '';
  2038. display: inline-block;
  2039. width: 5px;
  2040. height: 30px;
  2041. background: #5473e8;
  2042. position: absolute;
  2043. left: 0;
  2044. }
  2045. .el-form {
  2046. padding: 0 15%;
  2047. display: flex;
  2048. flex-wrap: wrap;
  2049. margin-left: -50px;
  2050. margin-top: 15px;
  2051. width: 110%;
  2052. }
  2053. .el-button--primary {
  2054. background-color: #5878e8;
  2055. border-color: #5878e8;
  2056. }
  2057. .el-col {
  2058. background: #f6f7fc;
  2059. }
  2060. .bg-right {
  2061. text-align: right;
  2062. padding: 16px 20px;
  2063. }
  2064. .center {
  2065. position: relative;
  2066. top: 50px;
  2067. width: 40%;
  2068. height: 2000px;
  2069. margin: 0 auto;
  2070. margin-right: 180px;
  2071. }
  2072. /deep/.el-form-item__label {
  2073. width: 160px;
  2074. }
  2075. .inspector {
  2076. width: 50%;
  2077. }
  2078. /deep/.el-form-item--small .el-form-item__label,
  2079. .el-form-item--small .el-form-item__content {
  2080. text-align: left;
  2081. }
  2082. /deep/.el-input--small {
  2083. font-size: 13px;
  2084. position: relative;
  2085. display: inline-block;
  2086. }
  2087. .center1 .small-title {
  2088. margin-left: 323px;
  2089. }
  2090. .center1 {
  2091. width: 90%;
  2092. margin: 0 auto;
  2093. margin-left: 10px;
  2094. margin-top: 25px;
  2095. }
  2096. /deep/.el-input--small .el-input__inner {
  2097. height: 32px;
  2098. line-height: 32px;
  2099. }
  2100. /deep/.el-select {
  2101. display: inline-block;
  2102. position: relative;
  2103. width: 100%;
  2104. }
  2105. .annu {
  2106. height: 81px;
  2107. background: #ffffff;
  2108. border-radius: 4px;
  2109. }
  2110. .basicInformation .el-form-item {
  2111. width: 50.3333%;
  2112. border: none;
  2113. margin: 0;
  2114. }
  2115. .huom {
  2116. width: 100px;
  2117. }
  2118. .el-form {
  2119. font-size: 14px;
  2120. font-family: PingFangSC-Regular, PingFang SC;
  2121. font-weight: 400;
  2122. color: #8890b1;
  2123. line-height: 16px;
  2124. margin-left: 130px;
  2125. }
  2126. .a {
  2127. margin-left: -32px;
  2128. }
  2129. .el-radio-group {
  2130. margin-left: 80px;
  2131. }
  2132. .ding {
  2133. height: 23px;
  2134. background: #e8ecf6;
  2135. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  2136. }
  2137. .ziti {
  2138. width: 72px;
  2139. height: 20px;
  2140. font-size: 14px;
  2141. font-family: PingFangSC-Regular, PingFang SC;
  2142. font-weight: 400;
  2143. color: #8890b1;
  2144. line-height: 20px;
  2145. margin-left: 310px;
  2146. /* margin-top: 112px; */
  2147. }
  2148. .ziti1 {
  2149. width: 100px;
  2150. font-size: 16px;
  2151. font-family: PingFangSC-Medium, PingFang SC;
  2152. font-weight: 500;
  2153. color: #262626;
  2154. line-height: 22px;
  2155. margin-left: 381px;
  2156. margin-top: -21px;
  2157. }
  2158. .winseaview-view {
  2159. padding: 0 0 20px;
  2160. }
  2161. .container {
  2162. overflow: scroll;
  2163. height: 93vh;
  2164. }
  2165. .nav {
  2166. width: 380px;
  2167. height: 20px;
  2168. }
  2169. </style>