tranManagementWarehouseInOutTaskAudit.vue 52 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733
  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="dataList.taskTypeKey != 2 && dataList.taskTypeKey != 4"
  71. class="center1"
  72. >
  73. <img
  74. style="position: relative; top: 40px; left: 300px"
  75. width="19"
  76. height="19"
  77. src="../../../public/img/cangku.png"
  78. alt
  79. />
  80. <!--出库=-->
  81. <div class="small-title">
  82. <h3>出库任务({{ dataList.inOutTaskNo }})</h3>
  83. </div>
  84. <el-form ref="dataList" :model="dataList" label-width="140px">
  85. <!-- 仓库名 -->
  86. <el-form-item label="仓库名">
  87. <el-select
  88. disabled
  89. v-model="dataList.warehouseName"
  90. placeholder="请选择仓库名"
  91. class="typeselect"
  92. @change="selectwarehouseName"
  93. filterable clearable
  94. >
  95. <el-option
  96. v-for="item in warehouseNameList"
  97. :key="item.constKey"
  98. :label="item.warehouseName"
  99. :value="item.warehouseName"
  100. />
  101. </el-select>
  102. </el-form-item>
  103. <!-- 出库类型 -->
  104. <el-form-item label="出库类型">
  105. <el-select
  106. disabled
  107. v-model="dataList.inOutType"
  108. placeholder="请选择出库类型"
  109. class="typeselect"
  110. @change="selectstorageType"
  111. filterable clearable
  112. >
  113. <el-option
  114. v-for="item in storageType"
  115. :key="item.constKey"
  116. v-if="
  117. (dataList.taskTypeKey == 1 &&
  118. item.constValue != '移库出库') ||
  119. (dataList.taskTypeKey == 3 &&
  120. item.constValue == '移库出库') ||
  121. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  122. "
  123. :label="item.constValue"
  124. :value="item.constValue"
  125. />
  126. </el-select>
  127. </el-form-item>
  128. <!-- 合同编号 -->
  129. <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
  130. <el-select
  131. disabled
  132. @change="changecontract"
  133. v-model="dataList.contractNo"
  134. placeholder="请输入合同编号"
  135. class="typeselect"
  136. filterable clearable
  137. >
  138. <el-option
  139. v-for="item in contractNoList"
  140. :key="item.constKey"
  141. :label="item.contractNo"
  142. :value="item.contractNo"
  143. ></el-option>
  144. </el-select>
  145. </el-form-item>
  146. <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
  147. <el-select
  148. disabled
  149. @change="selectTaskNo"
  150. v-model="dataList.moveTaskNo"
  151. placeholder="请输入移库任务编号"
  152. class="typeselect"
  153. filterable clearable
  154. >
  155. <el-option
  156. v-for="item in contractNoList"
  157. :key="item.constKey"
  158. :label="item.contractNo"
  159. :value="item.contractNo"
  160. ></el-option>
  161. </el-select>
  162. </el-form-item>
  163. <!-- 货名 -->
  164. <el-form-item label="货名" class="huom">
  165. <el-select
  166. disabled
  167. v-model="dataList.goodsName"
  168. placeholder="货名"
  169. class="huom"
  170. @change="selectgoodsName"
  171. filterable clearable
  172. >
  173. <el-option
  174. v-for="item in goodnameList"
  175. :key="item.constKey"
  176. :label="item.constValue"
  177. :value="item.constValue"
  178. ></el-option>
  179. </el-select>
  180. </el-form-item>
  181. <!--重量(吨)-->
  182. <el-form-item label="重量(吨)">
  183. <el-input
  184. disabled
  185. v-model="dataList.weight"
  186. placeholder="请输入重量(吨)"
  187. maxlength="120"
  188. size="small"
  189. class="huom"
  190. />
  191. </el-form-item>
  192. <!-- 品级 -->
  193. <el-form-item label="品级">
  194. <el-select
  195. v-model="dataList.grade"
  196. placeholder
  197. class="typeselect"
  198. @change="selectpackingMethod"
  199. filterable clearable
  200. >
  201. <el-option
  202. v-for="item in gradeList"
  203. :key="item.constKey"
  204. :label="item.constValue"
  205. :value="item.constValue"
  206. />
  207. </el-select>
  208. </el-form-item>
  209. <!--容重(克/升)>=-->
  210. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
  211. <el-input
  212. @input="bulkDensitychange"
  213. v-model="dataList.bulkDensity"
  214. placeholder="请输入容重"
  215. maxlength="120"
  216. size="small"
  217. class="huom"
  218. />
  219. </el-form-item>
  220. <!--水分(%)<=-->
  221. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
  222. <el-input
  223. @input="waterContentchange"
  224. v-model="dataList.waterContent"
  225. placeholder="请输入水分占比"
  226. maxlength="120"
  227. size="small"
  228. class="huom"
  229. />
  230. </el-form-item>
  231. <!--单价(元/吨)-->
  232. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
  233. <el-input
  234. @input="unitPricechange"
  235. v-model="dataList.unitPrice"
  236. placeholder="请输入单价"
  237. maxlength="120"
  238. size="small"
  239. class="huom"
  240. />
  241. </el-form-item>
  242. <!--预计出库日期-->
  243. <el-form-item
  244. label="预计出库日期"
  245. span="1"
  246. prop="predictDate"
  247. class="deliverydate"
  248. >
  249. <el-date-picker
  250. disabled
  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
  260. v-model="dataList.estimatedFreight"
  261. placeholder="请输入预估运费"
  262. maxlength="20"
  263. size="small"
  264. />
  265. </el-form-item> -->
  266. <!--收货人-->
  267. <el-form-item label="发货人">
  268. <el-select
  269. disabled
  270. v-model="dataList.agent"
  271. placeholder="请选择发货人"
  272. @change="selectstaff"
  273. filterable clearable
  274. >
  275. <el-option
  276. v-for="item in options"
  277. :key="item.value"
  278. :label="item.staffName"
  279. :value="item.staffName"
  280. />
  281. </el-select>
  282. </el-form-item>
  283. <!--业务描述=-->
  284. <el-form-item
  285. v-if="dataList.taskTypeKey != 3"
  286. label="业务描述"
  287. span="1"
  288. >
  289. <el-input
  290. v-model="dataList.businessDescribe"
  291. placeholder="请输入业务描述,不超过150字"
  292. maxlength="150"
  293. size="large"
  294. class="yewu"
  295. />
  296. </el-form-item>
  297. <el-form-item label="仓位号(选填)" span="1">
  298. <el-select
  299. v-model="dataList.binNumber"
  300. placeholder="请输入仓位号"
  301. filterable clearable
  302. @change="binNumberChange1"
  303. >
  304. <el-option
  305. v-for="(item, index) in binNumberList1"
  306. :Key="index"
  307. :label="item.binNumber"
  308. :value="item.binNumber"
  309. >
  310. </el-option>
  311. </el-select>
  312. <!-- <el-input
  313. v-model="dataList.binNumber"
  314. placeholder="请输入仓位号"
  315. maxlength="150"
  316. size="large"
  317. class="yewu"
  318. /> -->
  319. </el-form-item>
  320. </el-form>
  321. </div>
  322. <div v-show="dataList.taskTypeKey != 1" class="center1">
  323. <img
  324. style="position: relative; top: 40px; left: 300px"
  325. width="19"
  326. height="19"
  327. src="../../../public/img/cangku.png"
  328. alt
  329. />
  330. <div class="small-title">
  331. <h3>
  332. 入库任务({{ dataList1.inOutTaskNo }})
  333. <span v-if="deletetask" style="color: red">已删除</span>
  334. </h3>
  335. </div>
  336. <el-form
  337. v-if="!deletetask"
  338. ref="form"
  339. :model="form"
  340. label-width="140px"
  341. >
  342. <!-- 仓库名 -->
  343. <el-form-item label="仓库名" v-if="dataList1.inOutType == '移库入库'">
  344. <el-select
  345. disabled
  346. v-model="dataList1.warehouseName"
  347. placeholder="请选择仓库名"
  348. class="typeselect"
  349. filterable clearable
  350. >
  351. <el-option
  352. v-for="item in warehouseNameList"
  353. :key="item.constKey"
  354. :label="item.warehouseName"
  355. :value="item.warehouseName"
  356. />
  357. </el-select>
  358. </el-form-item>
  359. <!-- 出库类型 -->
  360. <el-form-item
  361. label="入库类型"
  362. v-if="dataList1.inOutType == '移库入库'"
  363. >
  364. <el-select
  365. disabled
  366. v-model="dataList1.inOutType"
  367. placeholder="请选择入库类型"
  368. class="typeselect"
  369. @change="selectstorageType1"
  370. filterable clearable
  371. >
  372. <el-option
  373. v-for="item in storageType1"
  374. :key="item.constKey"
  375. v-if="
  376. (dataList1.taskTypeKey == 2 &&
  377. item.constValue != '移库入库') ||
  378. (dataList1.taskTypeKey == 3 &&
  379. item.constValue == '移库入库') ||
  380. (dataList1.taskTypeKey == 4 && item.constValue == '退库')
  381. "
  382. :label="item.constValue"
  383. :value="item.constValue"
  384. />
  385. </el-select>
  386. </el-form-item>
  387. <!-- 合同编号 -->
  388. <el-form-item v-if="dataList1.taskTypeKey != 3" label="合同编号">
  389. <el-select
  390. disabled
  391. @change="changecontract1"
  392. v-model="dataList1.contractNo"
  393. placeholder="请输入合同编号"
  394. class="typeselect"
  395. filterable clearable
  396. >
  397. <el-option
  398. v-for="item in contractNoList"
  399. :key="item.constKey"
  400. :label="item.contractNo"
  401. :value="item.contractNo"
  402. ></el-option>
  403. </el-select>
  404. </el-form-item>
  405. <el-form-item v-if="dataList1.taskTypeKey == 3" label="移库任务编号">
  406. <el-select
  407. disabled
  408. v-model="dataList1.moveTaskNo"
  409. placeholder="请输入移库任务编号"
  410. class="typeselect"
  411. filterable clearable
  412. >
  413. <el-option
  414. v-for="item in contractNoList"
  415. :key="item.constKey"
  416. :label="item.contractNo"
  417. :value="item.contractNo"
  418. ></el-option>
  419. </el-select>
  420. </el-form-item>
  421. <!-- 货名 -->
  422. <el-form-item label="货名" class="huom">
  423. <el-select
  424. disabled
  425. v-model="dataList1.goodsName"
  426. placeholder="货名"
  427. class="huom"
  428. @change="selectgoodsName1"
  429. filterable clearable
  430. >
  431. <el-option
  432. v-for="item in goodnameList"
  433. :key="item.constKey"
  434. :label="item.constValue"
  435. :value="item.constValue"
  436. ></el-option>
  437. </el-select>
  438. </el-form-item>
  439. <!--重量(吨)-->
  440. <el-form-item label="重量(吨)">
  441. <el-input
  442. @input="weightchange"
  443. v-model="dataList1.weight"
  444. placeholder="请输入重量(吨)"
  445. maxlength="120"
  446. size="small"
  447. class="huom"
  448. />
  449. </el-form-item>
  450. <!-- 品级 -->
  451. <el-form-item label="品级">
  452. <el-select
  453. :disabled="dataList.taskTypeKey == 3"
  454. v-model="dataList1.grade"
  455. placeholder
  456. class="typeselect"
  457. @change="selectpackingMethod1"
  458. filterable clearable
  459. >
  460. <el-option
  461. v-for="item in gradeList"
  462. :key="item.constKey"
  463. :label="item.constValue"
  464. :value="item.constValue"
  465. />
  466. </el-select>
  467. </el-form-item>
  468. <!--容重(克/升)>=-->
  469. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
  470. <el-input
  471. @input="bulkDensitychange"
  472. :disabled="dataList.taskTypeKey == 3"
  473. v-model="dataList1.bulkDensity"
  474. placeholder="请输入容重"
  475. maxlength="120"
  476. size="small"
  477. class="huom"
  478. />
  479. </el-form-item>
  480. <!--水分(%)<=-->
  481. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
  482. <el-input
  483. @input="waterContentchange"
  484. :disabled="dataList.taskTypeKey == 3"
  485. v-model="dataList1.waterContent"
  486. placeholder="请输入水分占比"
  487. maxlength="120"
  488. size="small"
  489. class="huom"
  490. />
  491. </el-form-item>
  492. <!--单价(元/吨)-->
  493. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
  494. <el-input
  495. @input="unitPricechange"
  496. :disabled="dataList.taskTypeKey == 3"
  497. v-model="dataList1.unitPrice"
  498. placeholder="请输入单价"
  499. maxlength="120"
  500. size="small"
  501. class="huom"
  502. />
  503. </el-form-item>
  504. <!--预计出库日期-->
  505. <el-form-item
  506. label="预计入库日期"
  507. span="1"
  508. prop="predictDate"
  509. class="deliverydate"
  510. >
  511. <el-date-picker
  512. disabled
  513. v-model="dataList1.predictDate"
  514. type="date"
  515. placeholder="请选择预计入库日期"
  516. value-format="yyyy-MM-dd"
  517. />
  518. </el-form-item>
  519. <!--预估运费(元/吨)-->
  520. <!-- <el-form-item label="预估运费(元/吨)" span="1">
  521. <el-input
  522. v-model="dataList1.estimatedFreight"
  523. placeholder="请输入预估运费"
  524. maxlength="20"
  525. size="small"
  526. />
  527. </el-form-item> -->
  528. <!--收货人-->
  529. <el-form-item label="收货人">
  530. <el-select
  531. disabled
  532. v-model="dataList1.agent"
  533. placeholder="请选择收货人"
  534. filterable
  535. @change="selectstaff1"
  536. filterable clearable
  537. >
  538. <el-option
  539. v-for="item in options"
  540. :key="item.value"
  541. :label="item.staffName"
  542. :value="item.staffName"
  543. />
  544. </el-select>
  545. </el-form-item>
  546. <!--业务描述=-->
  547. <el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
  548. <el-input
  549. v-model="dataList1.businessDescribe"
  550. placeholder="请输入业务描述,不超过150字"
  551. maxlength="150"
  552. size="large"
  553. />
  554. </el-form-item>
  555. <el-form-item label="仓位号(选填)" span="1">
  556. <el-select
  557. v-model="dataList1.binNumber"
  558. placeholder="请输入仓位号"
  559. @change="binNumberChange"
  560. filterable clearable
  561. >
  562. <el-option
  563. v-for="(item, index) in binNumberList"
  564. :Key="index"
  565. :label="item.binNumber"
  566. :value="item.binNumber"
  567. >
  568. </el-option>
  569. </el-select>
  570. <!-- <el-input
  571. v-model="dataList1.binNumber"
  572. placeholder="请输入仓位号"
  573. maxlength="150"
  574. size="large"
  575. class="yewu"
  576. /> -->
  577. </el-form-item>
  578. </el-form>
  579. </div>
  580. <div v-if="dataList.taskTypeKey == 4" class="center1">
  581. <!--出库=-->
  582. <div class="small-title">
  583. <img
  584. style="position: relative; top: 40px; left: -22px"
  585. width="19"
  586. height="19"
  587. src="../../../public/img/cangku.png"
  588. alt
  589. />
  590. <h3>出库任务({{ inOutTaskNo }})</h3>
  591. </div>
  592. <el-form ref="dataList" :model="dataList" label-width="140px">
  593. <!-- 仓库名 -->
  594. <el-form-item label="仓库名">
  595. <el-select
  596. disabled
  597. v-model="dataList.warehouseName"
  598. placeholder="请选择仓库名"
  599. class="typeselect"
  600. filterable clearable
  601. >
  602. <el-option
  603. v-for="item in warehouseNameList"
  604. :key="item.constKey"
  605. :label="item.warehouseName"
  606. :value="item.warehouseName"
  607. />
  608. </el-select>
  609. </el-form-item>
  610. <!-- 出库类型 -->
  611. <el-form-item label="出库类型">
  612. <el-select
  613. :disabled="dataList.taskTypeKey == 3 || dataList.taskTypeKey == 4"
  614. v-model="dataList.inOutType"
  615. placeholder="请选择出库类型"
  616. class="typeselect"
  617. @change="selectstorageType"
  618. filterable clearable
  619. >
  620. <el-option
  621. v-for="item in storageType"
  622. :key="item.constKey"
  623. v-if="
  624. (dataList.taskTypeKey == 1 &&
  625. item.constValue != '移库出库') ||
  626. (dataList.taskTypeKey == 3 &&
  627. item.constValue == '移库出库') ||
  628. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  629. "
  630. :label="item.constValue"
  631. :value="item.constValue"
  632. />
  633. </el-select>
  634. </el-form-item>
  635. <!-- 合同编号 -->
  636. <el-form-item v-if="dataList.taskTypeKey != 3" label="合同编号">
  637. <el-select
  638. disabled
  639. v-model="dataList.contractNo"
  640. placeholder="请输入合同编号"
  641. class="typeselect"
  642. filterable clearable
  643. >
  644. <el-option
  645. v-for="item in contractNoList"
  646. :key="item.constKey"
  647. :label="item.contractNo"
  648. :value="item.contractNo"
  649. ></el-option>
  650. </el-select>
  651. </el-form-item>
  652. <el-form-item v-if="dataList.taskTypeKey == 3" label="移库任务编号">
  653. <el-select
  654. @change="selectTaskNo"
  655. v-model="dataList.moveTaskNo"
  656. placeholder="请输入移库任务编号"
  657. class="typeselect"
  658. filterable clearable
  659. >
  660. <el-option
  661. v-for="item in contractNoList"
  662. :key="item.constKey"
  663. :label="item.contractNo"
  664. :value="item.contractNo"
  665. ></el-option>
  666. </el-select>
  667. </el-form-item>
  668. <!-- 货名 -->
  669. <el-form-item label="货名" class="huom">
  670. <el-select
  671. disabled
  672. v-model="dataList.goodsName"
  673. placeholder="货名"
  674. class="huom"
  675. @change="selectgoodsName"
  676. filterable clearable
  677. >
  678. <el-option
  679. v-for="item in goodnameList"
  680. :key="item.constKey"
  681. :label="item.constValue"
  682. :value="item.constValue"
  683. ></el-option>
  684. </el-select>
  685. </el-form-item>
  686. <!--重量(吨)-->
  687. <el-form-item label="重量(吨)">
  688. <el-input
  689. disabled
  690. v-model="dataList.weight"
  691. placeholder="请输入重量(吨)"
  692. maxlength="120"
  693. size="small"
  694. class="huom"
  695. />
  696. </el-form-item>
  697. <!-- 品级 -->
  698. <el-form-item label="品级">
  699. <el-select
  700. disabled
  701. v-model="dataList.grade"
  702. placeholder
  703. class="typeselect"
  704. @change="selectpackingMethod"
  705. filterable clearable
  706. >
  707. <el-option
  708. v-for="item in gradeList"
  709. :key="item.constKey"
  710. :label="item.constValue"
  711. :value="item.constValue"
  712. />
  713. </el-select>
  714. </el-form-item>
  715. <!--容重(克/升)>=-->
  716. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="容重(克/升)>=">
  717. <el-input
  718. disabled
  719. v-model="dataList.bulkDensity"
  720. placeholder="请输入容重"
  721. maxlength="120"
  722. size="small"
  723. class="huom"
  724. />
  725. </el-form-item>
  726. <!--水分(%)<=-->
  727. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="水分(%)<=">
  728. <el-input
  729. disabled
  730. v-model="dataList.waterContent"
  731. placeholder="请输入水分占比"
  732. maxlength="120"
  733. size="small"
  734. class="huom"
  735. />
  736. </el-form-item>
  737. <!--单价(元/吨)-->
  738. <el-form-item v-if='dataList.taskTypeKey != 3||dataList1.taskTypeKey != 3' label="单价(元/吨)" v-show="Pricetype">
  739. <el-input
  740. disabled
  741. v-model="dataList.unitPrice"
  742. placeholder="请输入单价"
  743. maxlength="120"
  744. size="small"
  745. class="huom"
  746. />
  747. </el-form-item>
  748. <!--预计出库日期-->
  749. <el-form-item
  750. label="预计出库日期"
  751. span="1"
  752. prop="predictDate"
  753. class="deliverydate"
  754. >
  755. <el-date-picker
  756. v-model="dataList.predictDate"
  757. type="date"
  758. placeholder="请选择预计出库日期"
  759. value-format="yyyy-MM-dd"
  760. />
  761. </el-form-item>
  762. <!--预估运费(元/吨)-->
  763. <!-- <el-form-item label="预估运费(元/吨)" span="1">
  764. <el-input
  765. v-model="dataList.estimatedFreight"
  766. placeholder="请输入预估运费"
  767. maxlength="20"
  768. size="small"
  769. />
  770. </el-form-item> -->
  771. <!--发货人-->
  772. <el-form-item label="发货人">
  773. <el-select
  774. v-model="dataList.agent"
  775. placeholder="请选择发货人"
  776. @change="selectstaff"
  777. filterable clearable
  778. >
  779. <el-option
  780. v-for="item in options"
  781. :key="item.value"
  782. :label="item.staffName"
  783. :value="item.staffName"
  784. />
  785. </el-select>
  786. </el-form-item>
  787. <!--业务描述=-->
  788. <el-form-item label="业务描述">
  789. <el-input
  790. v-model="dataList.businessDescribe"
  791. placeholder="请输入业务描述,不超过150字"
  792. maxlength="150"
  793. size="large"
  794. />
  795. </el-form-item>
  796. </el-form>
  797. </div>
  798. </div>
  799. <!-- 提交 -->
  800. <div style="text-align: right; padding: 10px" class="center">
  801. <el-button class="bg-bottom" type="primary" size="small" @click="reject()"
  802. >驳回</el-button
  803. >
  804. <el-button class="bg-bottom" type="primary" size="small" @click="submit()"
  805. >通过</el-button
  806. >
  807. </div>
  808. <el-table
  809. class="wenzi"
  810. :data="taskhistories"
  811. style="width: 80%"
  812. height="180"
  813. >
  814. <el-table-column
  815. prop="operatorMajorRoleName"
  816. label="审核人"
  817. ></el-table-column>
  818. <el-table-column prop="inOutTaskNo" label="审核结果">
  819. <template scope="scope">
  820. <span v-if="scope.row.approved">通过</span>
  821. <span v-if="!scope.row.approved">驳回</span>
  822. </template>
  823. </el-table-column>
  824. <el-table-column prop="createTime" label="审核时间"></el-table-column>
  825. <el-table-column prop="auditMind" label="审核意见"></el-table-column>
  826. </el-table>
  827. <WinseaContentModal
  828. v-model="outerVisible"
  829. title="驳回原因"
  830. @on-cancel="handleClose"
  831. >
  832. <el-input
  833. type="textarea"
  834. :rows="2"
  835. maxlength="30"
  836. placeholder="请输入驳回原因,1~30个字"
  837. v-model="auditMind"
  838. ></el-input>
  839. <div class="dialog-footer">
  840. <el-button @click="outerVisible = false">取 消</el-button>
  841. <el-button type="primary" @click="disableReasons">确定</el-button>
  842. </div>
  843. </WinseaContentModal>
  844. </div>
  845. </template>
  846. <script>
  847. import {
  848. getwarehousename,
  849. xialaNo,
  850. outexamine,
  851. getGoodsName,
  852. warehousetask,
  853. woekflowhandle,
  854. gettaskhistories,
  855. workflowcontent
  856. } from '@/model/tasksport/index'
  857. import { pullDown, getstaff } from '@/model/warehouse/index'
  858. import Pagination from '@/components/Pagination'
  859. import WsUpload from '@/components/WsUpload'
  860. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  861. import { dayjs, EventBus } from 'base-core-lib'
  862. import { mapGetters } from 'vuex'
  863. export default {
  864. name: 'viewSpareMoney',
  865. components: {
  866. WsUpload,
  867. Pagination,
  868. },
  869. watch: {
  870. // vesselId(val) {
  871. // this.getList()
  872. // },
  873. isShow(val) {
  874. this.showType = val
  875. },
  876. },
  877. computed: {
  878. ...mapGetters(['deptBudgetList']),
  879. },
  880. data() {
  881. return {
  882. //弹出框
  883. dialogViewSpareMoney: false,
  884. dialogApproveFormVisible: false,
  885. // 船舶类型
  886. monetaryKey: null,
  887. // 表格显示数据
  888. tableDate: [],
  889. // 是否显示
  890. showType: true,
  891. disabled: false,
  892. // 年
  893. year: '',
  894. disableReason: '',
  895. contractNoList: [],
  896. deptBudgetTotal: 0,
  897. readonly: true,
  898. currentPage: 1,
  899. pageSize: 10,
  900. searchType: 1,
  901. searchKeyWord: '',
  902. radio: '1',
  903. contractType: 2,
  904. startDate: null,
  905. endDate: null,
  906. taskhistories: [],
  907. goodnameList: [],
  908. checked: true,
  909. form: {},
  910. outerVisible: false,
  911. staffList: [],
  912. options: [],
  913. storageType: [],
  914. storageType1: [],
  915. outContractNo: [],
  916. // 提交类型
  917. submitType: true,
  918. status: [],
  919. auditMind: '',
  920. deletetask: false,
  921. warehouseNameList: [],
  922. warehouseNameList1: [],
  923. appendixIdsAdd: '',
  924. uploadSuccess: {},
  925. warehouseInOutDetail: {},
  926. onChange: {},
  927. deptBudgetList1: [],
  928. gradeList: [],
  929. Pricetype:true,
  930. rules: {
  931. netWeight: [
  932. {
  933. required: true,
  934. type: 'number',
  935. message: '请输入活动名称',
  936. trigger: 'blur',
  937. },
  938. ],
  939. },
  940. size: 10,
  941. compId: localStorage.getItem('ws-pf_compId'),
  942. deptCircularPage: {},
  943. packtypeList: {},
  944. date: {
  945. year: dayjs().format('YYYY'),
  946. month: dayjs().format('MM'),
  947. },
  948. contractList: [],
  949. inOutTaskNo: '',
  950. inOutTaskNo1: '',
  951. dataList: { taskTypeKey: '1' },
  952. dataList1: { taskTypeKey: '1' },
  953. historyList: [],
  954. pickerBeginDateBefore: {
  955. disabledDate: (time) => {
  956. return time.getTime() > Date.now()
  957. },
  958. },
  959. binNumberList: [],
  960. binNumberList1:[],
  961. accessoryTFs: false,
  962. }
  963. },
  964. activated() {
  965. this.getList()
  966. },
  967. methods: {
  968. // 仓位号改变
  969. binNumberChange(e) {
  970. this.dataList1.binNumber = e
  971. },
  972. binNumberChange1(e) {
  973. this.dataList.binNumber = e
  974. },
  975. //返回按钮
  976. revert() {
  977. this.$router.go(-1)
  978. },
  979. returnsales() {
  980. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  981. },
  982. // 获取当前年月日
  983. getdate() {
  984. var date = new Date()
  985. var year = date.getFullYear() //获取完整的年份(4位)
  986. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  987. var datetime = date.getDate() //获取当前日(1-31)
  988. if (mouth < 10) {
  989. mouth = '0' + mouth
  990. }
  991. if (datetime < 10) {
  992. datetime = '0' + datetime
  993. }
  994. return year + '' + mouth + datetime
  995. },
  996. reject() {
  997. this.outerVisible = true
  998. },
  999. // 随机验证码
  1000. verifyinit() {
  1001. var arr = []
  1002. for (var i = 48; i < 123; i++) {
  1003. if (i > 57 && i < 65) continue
  1004. if (i > 90) continue
  1005. arr.push(String.fromCharCode(i))
  1006. }
  1007. arr.sort(function () {
  1008. return Math.random() - 0.5
  1009. })
  1010. arr.length = 4
  1011. return arr.join('')
  1012. },
  1013. MathRand() {
  1014. var Num = ''
  1015. for (var i = 0; i < 4; i++) {
  1016. Num += Math.floor(Math.random() * 10)
  1017. }
  1018. return Num
  1019. },
  1020. selectTaskNo(e) {
  1021. if (this.dataList.taskTypeKey == 3) {
  1022. this.dataList1.moveTaskNo = e
  1023. }
  1024. },
  1025. dataFilter(val) {
  1026. // console.log(val,"名")
  1027. this.deptBudgetList.staffList = val
  1028. if (val) {
  1029. //val存在
  1030. this.options = this.staffList.filter((item) => {
  1031. if (
  1032. !!~item.staffName.indexOf(val) ||
  1033. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  1034. ) {
  1035. return true
  1036. }
  1037. })
  1038. } else {
  1039. //val为空时,还原数组
  1040. this.options = this.staffList
  1041. }
  1042. },
  1043. weightchange(e) {
  1044. if (this.dataList.taskTypeKey == 4) {
  1045. this.$set(this.dataList, 'weight', e)
  1046. }
  1047. },
  1048. bulkDensitychange(e) {
  1049. if (this.dataList.taskTypeKey == 4) {
  1050. this.$set(this.dataList, 'bulkDensity', e)
  1051. } else if (this.dataList1.taskTypeKey == 3) {
  1052. this.$set(this.dataList1, 'bulkDensity', e)
  1053. }
  1054. },
  1055. waterContentchange(e) {
  1056. if (this.dataList.taskTypeKey == 4) {
  1057. this.$set(this.dataList, 'waterContent', e)
  1058. } else if (this.dataList1.taskTypeKey == 3) {
  1059. this.$set(this.dataList1, 'waterContent', e)
  1060. }
  1061. },
  1062. unitPricechange(e) {
  1063. if (this.dataList.taskTypeKey == 4) {
  1064. this.$set(this.dataList, 'unitPrice', e)
  1065. } else if (this.dataList1.taskTypeKey == 3) {
  1066. this.$set(this.dataList1, 'unitPrice', e)
  1067. }
  1068. },
  1069. changecontract(e) {
  1070. if (this.dataList.taskTypeKey != 3) {
  1071. for (let i = 0; i < this.contractNoList.length; i++) {
  1072. if (this.contractNoList[i].contractNo == e) {
  1073. getGoodsName({
  1074. contractId: this.contractNoList[i].id,
  1075. contractNo: this.contractNoList[i].contractNo,
  1076. })
  1077. .toPromise()
  1078. .then((response) => {
  1079. this.$set(this.dataList, 'goodsName', response.goodsName)
  1080. this.$set(this.dataList, 'goodsNameKey', response.goodsNameKey)
  1081. this.$set(this.dataList, 'grade', response.grade)
  1082. this.$set(this.dataList, 'gradeKey', response.gradeKey)
  1083. this.$set(this.dataList, 'waterContent', response.waterContent)
  1084. this.$set(this.dataList, 'bulkDensity', response.bulkDensity)
  1085. // this.$set(this.dataList, 'weight', response.weight)
  1086. this.$set(
  1087. this.dataList,
  1088. 'unitPrice',
  1089. response.unitContractPrice
  1090. )
  1091. })
  1092. }
  1093. }
  1094. }
  1095. },
  1096. changecontract1(e) {
  1097. if (this.dataList1.taskTypeKey != 3) {
  1098. for (let i = 0; i < this.contractNoList.length; i++) {
  1099. if (this.contractNoList[i].contractNo == e) {
  1100. getGoodsName({
  1101. contractId: this.contractNoList[i].id,
  1102. contractNo: this.contractNoList[i].contractNo,
  1103. })
  1104. .toPromise()
  1105. .then((response) => {
  1106. this.$set(this.dataList1, 'goodsName', response.goodsName)
  1107. this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
  1108. this.$set(this.dataList1, 'grade', response.grade)
  1109. this.$set(this.dataList1, 'gradeKey', response.gradeKey)
  1110. this.$set(this.dataList1, 'waterContent', response.waterContent)
  1111. this.$set(this.dataList1, 'bulkDensity', response.bulkDensity)
  1112. this.$set(this.dataList1, 'weight', response.weight)
  1113. this.$set(
  1114. this.dataList1,
  1115. 'unitPrice',
  1116. response.unitContractPrice
  1117. )
  1118. })
  1119. }
  1120. }
  1121. }
  1122. },
  1123. selectstaff(e) {
  1124. for (var i = 0; i < this.staffList.length; i++) {
  1125. if (this.staffList[i].staffName == e) {
  1126. this.dataList.agentKey = this.staffList[i].staffId
  1127. }
  1128. }
  1129. },
  1130. selectstaff1(e) {
  1131. for (var i = 0; i < this.staffList.length; i++) {
  1132. if (this.staffList[i].staffName == e) {
  1133. this.dataList1.agentKey = this.staffList[i].staffId
  1134. }
  1135. }
  1136. },
  1137. requestadd(list, status) {
  1138. console.log(list)
  1139. list.compId = localStorage.getItem('ws-pf_compId')
  1140. list.publisher =
  1141. localStorage.getItem('ws-pf_roleName') +
  1142. localStorage.getItem('ws-pf_staffName')
  1143. warehousetask(list)
  1144. .toPromise()
  1145. .then((response) => {
  1146. woekflowhandle({
  1147. taskId: list.taskId,
  1148. approved: true,
  1149. auditMind: '34',
  1150. needReapply: false,
  1151. })
  1152. .toPromise()
  1153. .then((response) => {
  1154. // workflowcontent({workflowId:list.workflowId,businessKey:list.id}).toPromise()
  1155. // .then((response1) => {
  1156. // console.log(response1)
  1157. workflowcontent({workflowId:item.workflowId,businessKey:item.id,type:'出入库任务'}).toPromise()
  1158. .then((response1) => {
  1159. this.$message.success('审核成功')
  1160. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  1161. })
  1162. // })
  1163. })
  1164. })
  1165. },
  1166. requestaudit(list, status) {
  1167. list.compId = localStorage.getItem('ws-pf_compId')
  1168. list.publisher =
  1169. localStorage.getItem('ws-pf_roleName') +
  1170. localStorage.getItem('ws-pf_staffName')
  1171. warehousetask(list)
  1172. .toPromise()
  1173. .then((response) => {
  1174. woekflowhandle({
  1175. taskId: list.taskId,
  1176. approved: false,
  1177. auditMind: this.auditMind,
  1178. needReapply: true,
  1179. })
  1180. .toPromise()
  1181. .then((response) => {
  1182. workflowcontent({workflowId:item.workflowId,businessKey:item.id,type:'出入库任务'}).toPromise()
  1183. .then((response1) => {
  1184. this.$message.success('驳回成功')
  1185. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  1186. })
  1187. })
  1188. })
  1189. },
  1190. //提交按钮
  1191. submit() {
  1192. this.dataList.inOutFlag = 1
  1193. this.dataList1.inOutFlag = 2
  1194. if (this.dataList.taskTypeKey == 1) {
  1195. this.requestadd(this.dataList)
  1196. } else if (this.dataList1.taskTypeKey == 2) {
  1197. this.requestadd(this.dataList1)
  1198. } else if (
  1199. this.dataList.taskTypeKey == 3 ||
  1200. this.dataList.taskTypeKey == 4
  1201. ) {
  1202. this.requestadd(this.dataList, 'repetition')
  1203. if (!this.deletetask) {
  1204. this.requestadd(this.dataList1, 'repetition')
  1205. }
  1206. }
  1207. },
  1208. disableReasons() {
  1209. this.dataList.inOutFlag = 1
  1210. this.dataList1.inOutFlag = 2
  1211. if (!this.auditMind) {
  1212. this.$message({
  1213. message: '驳回原因不能为空!',
  1214. type: 'warning',
  1215. })
  1216. return
  1217. }
  1218. if (this.dataList.taskTypeKey == 1) {
  1219. this.requestaudit(this.dataList)
  1220. } else if (this.dataList1.taskTypeKey == 2) {
  1221. this.requestaudit(this.dataList1)
  1222. } else if (
  1223. this.dataList.taskTypeKey == 3 ||
  1224. this.dataList.taskTypeKey == 4
  1225. ) {
  1226. this.requestaudit(this.dataList, 'repetition')
  1227. if (!this.deletetask) {
  1228. this.requestaudit(this.dataList1, 'repetition')
  1229. }
  1230. }
  1231. },
  1232. selectwarehouseName() {},
  1233. tarechange(e) {
  1234. if (this.dataList.grossWeight && this.dataList.tare) {
  1235. this.dataList.netWeight = Number(
  1236. this.dataList.grossWeight - this.dataList.tare
  1237. )
  1238. }
  1239. },
  1240. grossWeightchange(e) {
  1241. if (this.dataList.grossWeight && this.dataList.tare) {
  1242. this.dataList.netWeight = Number(
  1243. this.dataList.grossWeight - this.dataList.tare
  1244. )
  1245. }
  1246. },
  1247. selectgoodsName(e) {
  1248. for (var i = 0; i < this.goodnameList.length; i++) {
  1249. if (this.goodnameList[i].constValue == e) {
  1250. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  1251. }
  1252. }
  1253. },
  1254. selectgoodsName1(e) {
  1255. for (var i = 0; i < this.goodnameList.length; i++) {
  1256. if (this.goodnameList[i].constValue == e) {
  1257. this.dataList1.goodsNameKey = this.goodnameList[i].constKey
  1258. }
  1259. }
  1260. },
  1261. selectpackingMethod(e) {
  1262. for (var i = 0; i < this.gradeList.length; i++) {
  1263. if (this.gradeList[i].constValue == e) {
  1264. this.dataList.gradeKey = this.gradeList[i].constKey
  1265. if (this.dataList.taskTypeKey == 3) {
  1266. this.$set(this.dataList1, 'grade', e)
  1267. this.$set(this.dataList1, 'gradeKey', this.gradeList[i].constKey)
  1268. }
  1269. }
  1270. }
  1271. },
  1272. selectpackingMethod1(e) {
  1273. for (var i = 0; i < this.gradeList.length; i++) {
  1274. if (this.gradeList[i].constValue == e) {
  1275. this.dataList1.packingMethodKey = this.gradeList[i].constKey
  1276. if (this.dataList1.taskTypeKey == 4) {
  1277. this.$set(this.dataList, 'grade', e)
  1278. this.$set(this.dataList, 'gradeKey', this.gradeList[i].constKey)
  1279. }
  1280. }
  1281. }
  1282. },
  1283. selectstorageType(e) {
  1284. for (var i = 0; i < this.storageType.length; i++) {
  1285. if (this.storageType[i].constValue == e) {
  1286. this.dataList.inOutTypeKey = this.storageType[i].constKey
  1287. }
  1288. }
  1289. },
  1290. selectstorageType1(e) {
  1291. for (var i = 0; i < this.storageType1.length; i++) {
  1292. if (this.storageType1[i].constValue == e) {
  1293. this.dataList1.inOutTypeKey = this.storageType1[i].constKey
  1294. }
  1295. }
  1296. },
  1297. handleClose() {
  1298. this.accessoryTFs = false
  1299. },
  1300. handleSizeChange(val) {
  1301. console.log(`每页 ${val} 条`)
  1302. this.pageSize = val
  1303. this.getList()
  1304. },
  1305. businessDescriptionchange(e) {
  1306. console.log(e)
  1307. },
  1308. handleCurrentChange(val) {
  1309. this.currentPage = val
  1310. console.log(`当前页: ${val}`)
  1311. this.getList()
  1312. },
  1313. tasknumber() {
  1314. if (this.dataList.taskTypeKey == 1) {
  1315. this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
  1316. } else if (this.dataList.taskTypeKey == 2) {
  1317. this.inOutTaskNo1 = 'RK' + this.getdate() + this.MathRand()
  1318. } else if (this.dataList.taskTypeKey == 3) {
  1319. var random = this.getdate() + this.MathRand()
  1320. this.inOutTaskNo = 'YKC' + random
  1321. this.inOutTaskNo1 = 'YKR' + random
  1322. } else if (this.dataList.taskTypeKey == 4) {
  1323. var random = this.getdate() + this.MathRand()
  1324. this.inOutTaskNo = 'TCC' + random
  1325. this.inOutTaskNo1 = 'TCR' + random
  1326. }
  1327. },
  1328. tasktypechange(e) {
  1329. if (!this.$route.query.relevanceId) {
  1330. this.tasknumber()
  1331. }
  1332. this.dataList1.taskTypeKey = e
  1333. if (this.dataList.taskTypeKey == 1) {
  1334. this.dataList.inOutType = '销售出库'
  1335. this.dataList.inOutTypeKey = '1'
  1336. }
  1337. if (this.dataList1.taskTypeKey == 2) {
  1338. this.dataList1.inOutType = '采购入库'
  1339. this.dataList1.inOutTypeKey = '1'
  1340. } else if (this.dataList1.taskTypeKey == 3) {
  1341. this.disabled = true
  1342. this.dataList1.inOutType = '移库入库'
  1343. this.dataList1.inOutTypeKey = '3'
  1344. this.dataList.inOutType = '移库出库'
  1345. this.dataList.inOutTypeKey = '3'
  1346. } else if (this.dataList1.taskTypeKey == 4) {
  1347. this.disabled = true
  1348. this.dataList1.inOutType = '退库'
  1349. this.dataList1.inOutTypeKey = '6'
  1350. this.dataList.inOutType = '销售出库'
  1351. this.dataList.inOutTypeKey = '1'
  1352. }
  1353. },
  1354. GetRandomNum(Min, Max) {
  1355. var Range = Max - Min
  1356. var Rand = Math.random()
  1357. return Min + Math.round(Rand * Range)
  1358. },
  1359. getList() {
  1360. gettaskhistories({
  1361. businessKey: this.$route.query.businessKey,
  1362. workflowId: this.$route.query.workflowId,
  1363. })
  1364. .toPromise()
  1365. .then((response) => {
  1366. this.taskhistories = response
  1367. })
  1368. if (this.$route.query.relevanceId) {
  1369. outexamine({ relevanceId: this.$route.query.relevanceId })
  1370. .toPromise()
  1371. .then((response) => {
  1372. if (response.length > 1) {
  1373. if (response[0].taskTypeKey == 3) {
  1374. if (response[0].inOutType == '移库出库') {
  1375. this.dataList = response[0]
  1376. this.dataList1 = response[1]
  1377. } else {
  1378. this.dataList = response[1]
  1379. this.dataList1 = response[0]
  1380. }
  1381. }
  1382. } else {
  1383. if (response[0].taskTypeKey == 3) {
  1384. this.deletetask = true
  1385. this.dataList1.inOutTaskNo =
  1386. 'YKR' +
  1387. response[0].inOutTaskNo.substr(
  1388. response[0].inOutTaskNo.indexOf('C') + 1,
  1389. response[0].inOutTaskNo.length
  1390. )
  1391. } else if (response[0].taskTypeKey == 2) {
  1392. this.dataList1 = response[0]
  1393. }
  1394. this.dataList = response[0]
  1395. }
  1396. })
  1397. } else {
  1398. this.tasknumber()
  1399. this.$set(this.dataList, 'inOutType', '销售出库')
  1400. this.$set(this.dataList, 'inOutTypeKey', '1')
  1401. this.$set(this.dataList, 'goodsName', '玉米')
  1402. this.$set(this.dataList, 'goodsNameKey', '1')
  1403. this.$set(this.dataList, 'grade', '一等品')
  1404. this.$set(this.dataList, 'gradeKey', '1')
  1405. this.$set(this.dataList1, 'goodsName', '玉米')
  1406. this.$set(this.dataList1, 'goodsNameKey', '1')
  1407. this.$set(this.dataList1, 'grade', '一等品')
  1408. this.$set(this.dataList1, 'gradeKey', '1')
  1409. }
  1410. // 货名
  1411. pullDown({ constId: 'CON2' })
  1412. .toPromise()
  1413. .then((response) => {
  1414. this.goodnameList = response
  1415. })
  1416. // 品级
  1417. pullDown({ constId: 'CON3' })
  1418. .toPromise()
  1419. .then((response) => {
  1420. this.gradeList = response
  1421. })
  1422. pullDown({ constId: 'CON6' })
  1423. .toPromise()
  1424. .then((response) => {
  1425. this.storageType = response
  1426. })
  1427. pullDown({ constId: 'CON5' })
  1428. .toPromise()
  1429. .then((response) => {
  1430. this.storageType1 = response
  1431. })
  1432. xialaNo({
  1433. compId: this.compId,
  1434. })
  1435. .toPromise()
  1436. .then((response) => {
  1437. this.contractNoList = response
  1438. for (let i = 0; i < this.contractNoList.length; i++) {
  1439. if ( this.contractNoList[i].contractNo == this.dataList.contractNo) {
  1440. if( this.contractNoList[i].priceType == "随行就市"){
  1441. this.Pricetype = false
  1442. }else{
  1443. this.Pricetype = true
  1444. }
  1445. }
  1446. }
  1447. })
  1448. //仓库名
  1449. getwarehousename({
  1450. compId: this.compId,
  1451. warehouseType: 1,
  1452. })
  1453. .toPromise()
  1454. .then((response) => {
  1455. this.warehouseNameList = response
  1456. for (let i = 0; i < this.warehouseNameList.length; i++) {
  1457. if (
  1458. this.dataList.warehouseName ==
  1459. this.warehouseNameList[i].warehouseName
  1460. ) {
  1461. this.binNumberList1 = this.warehouseNameList[i].positionInfos
  1462. }
  1463. if (
  1464. this.dataList1.warehouseName ==
  1465. this.warehouseNameList[i].warehouseName
  1466. ) {
  1467. this.binNumberList = this.warehouseNameList[i].positionInfos
  1468. }
  1469. }
  1470. })
  1471. getwarehousename({
  1472. compId: this.compId,
  1473. warehouseType: 2,
  1474. })
  1475. .toPromise()
  1476. .then((response) => {
  1477. this.warehouseNameList1 = response
  1478. })
  1479. //经办人
  1480. getstaff({ compId: localStorage.getItem('ws-pf_compId') })
  1481. .toPromise()
  1482. .then((response) => {
  1483. this.options = response
  1484. this.staffList = response
  1485. // this.agent = response
  1486. })
  1487. },
  1488. selecttaskType(e) {
  1489. for (var i = 0; i < this.taskTypeList.length; i++) {
  1490. if (this.taskTypeList[i].value == e) {
  1491. this.searchType = this.taskTypeList[i].type
  1492. }
  1493. }
  1494. },
  1495. fujian(row) {
  1496. if (
  1497. row.receiveAttachmentPath === null ||
  1498. row.receiveAttachmentPath === ''
  1499. ) {
  1500. EventBus.$emit(
  1501. 'warning',
  1502. this.$t('system.noticeCircular.NoInformation')
  1503. )
  1504. } else {
  1505. this.accessoryTFs = true
  1506. }
  1507. this.appendixIdss = row.receiveAttachmentPath
  1508. },
  1509. handleExamine(row) {
  1510. this.$router.push({
  1511. name: 'salesContractExamine',
  1512. query: { id: row.id },
  1513. })
  1514. },
  1515. // 关闭 dialog时 处理文件url 初始化upload组件
  1516. handleCloe() {
  1517. this.dialogViewSpareMoney = false
  1518. },
  1519. history(row) {
  1520. console.log(row)
  1521. billoperatehis({ id: row.id })
  1522. .toPromise()
  1523. .then((response) => {
  1524. this.historyList = response
  1525. })
  1526. },
  1527. },
  1528. }
  1529. </script>
  1530. <style lang="scss" scoped>
  1531. /deep/.basicInformation {
  1532. .el-info-table {
  1533. border: none;
  1534. position: relative;
  1535. }
  1536. .el-form-item {
  1537. width: 33.3333%;
  1538. border: none;
  1539. margin: 0;
  1540. .el-form-item__label {
  1541. text-align: left;
  1542. font-size: 14px;
  1543. font-family: PingFangSC-Regular, PingFang SC;
  1544. font-weight: 400;
  1545. color: #8890b1;
  1546. }
  1547. .el-form-item__content {
  1548. padding-left: 0px;
  1549. padding-right: 10px;
  1550. // background: #fff;
  1551. white-space: nowrap;
  1552. height: 40px;
  1553. display: flex;
  1554. -webkit-box-align: center;
  1555. align-items: center;
  1556. text-align: left;
  1557. overflow: hidden;
  1558. }
  1559. }
  1560. }
  1561. /deep/.el-radio {
  1562. color: #606266;
  1563. font-weight: 500;
  1564. line-height: 1;
  1565. cursor: pointer;
  1566. white-space: nowrap;
  1567. outline: 0;
  1568. margin-right: 30px;
  1569. margin-top: 15px;
  1570. }
  1571. /deep/.el-radio__inner {
  1572. border: 1px solid #dcdfe6;
  1573. border-radius: 100%;
  1574. width: 14px;
  1575. height: 14px;
  1576. background-color: #fff;
  1577. cursor: pointer;
  1578. -webkit-box-sizing: border-box;
  1579. box-sizing: border-box;
  1580. margin-left: 100px;
  1581. }
  1582. /deep/.el-radio__input {
  1583. white-space: nowrap;
  1584. cursor: pointer;
  1585. outline: 0;
  1586. line-height: 1;
  1587. vertical-align: middle;
  1588. margin-top: -1px;
  1589. }
  1590. .title {
  1591. position: relative;
  1592. padding-left: 10px;
  1593. }
  1594. .title::before {
  1595. content: '';
  1596. display: inline-block;
  1597. width: 5px;
  1598. height: 30px;
  1599. background: #5473e8;
  1600. position: absolute;
  1601. left: 0;
  1602. }
  1603. .el-form {
  1604. padding: 0 15%;
  1605. display: flex;
  1606. flex-wrap: wrap;
  1607. margin-left: -50px;
  1608. margin-top: 15px;
  1609. width: 110%;
  1610. }
  1611. .el-button--primary {
  1612. background-color: #5878e8;
  1613. border-color: #5878e8;
  1614. }
  1615. .el-col {
  1616. background: #f6f7fc;
  1617. }
  1618. .bg-right {
  1619. text-align: right;
  1620. padding: 16px 20px;
  1621. }
  1622. .center {
  1623. height: 100px;
  1624. margin: 10px auto;
  1625. margin-right: 180px;
  1626. }
  1627. /deep/.el-form-item__label {
  1628. width: 160px;
  1629. }
  1630. .inspector {
  1631. width: 50%;
  1632. }
  1633. /deep/.el-form-item--small .el-form-item__label,
  1634. .el-form-item--small .el-form-item__content {
  1635. text-align: left;
  1636. }
  1637. /deep/.el-input--small {
  1638. font-size: 13px;
  1639. position: relative;
  1640. display: inline-block;
  1641. }
  1642. .center1 .small-title {
  1643. margin-left: 323px;
  1644. }
  1645. .center1 {
  1646. width: 90%;
  1647. margin: 0 auto;
  1648. margin-left: 10px;
  1649. margin-top: 25px;
  1650. }
  1651. /deep/.el-input--small .el-input__inner {
  1652. height: 32px;
  1653. line-height: 32px;
  1654. }
  1655. /deep/.el-select {
  1656. display: inline-block;
  1657. position: relative;
  1658. width: 100%;
  1659. }
  1660. .annu {
  1661. height: 81px;
  1662. background: #ffffff;
  1663. border-radius: 4px;
  1664. }
  1665. .basicInformation .el-form-item {
  1666. width: 50.3333%;
  1667. border: none;
  1668. margin: 0;
  1669. }
  1670. .huom {
  1671. width: 100%;
  1672. }
  1673. .el-form {
  1674. font-size: 14px;
  1675. font-family: PingFangSC-Regular, PingFang SC;
  1676. font-weight: 400;
  1677. color: #8890b1;
  1678. line-height: 16px;
  1679. margin-left: 130px;
  1680. }
  1681. .a {
  1682. margin-left: -32px;
  1683. }
  1684. .el-radio-group {
  1685. margin-left: 80px;
  1686. }
  1687. .ding {
  1688. height: 23px;
  1689. background: #e8ecf6;
  1690. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  1691. }
  1692. .ziti {
  1693. width: 72px;
  1694. height: 20px;
  1695. font-size: 14px;
  1696. font-family: PingFangSC-Regular, PingFang SC;
  1697. font-weight: 400;
  1698. color: #8890b1;
  1699. line-height: 20px;
  1700. margin-left: 310px;
  1701. /* margin-top: 112px; */
  1702. }
  1703. .ziti1 {
  1704. width: 100px;
  1705. font-size: 16px;
  1706. font-family: PingFangSC-Medium, PingFang SC;
  1707. font-weight: 500;
  1708. color: #262626;
  1709. line-height: 22px;
  1710. margin-left: 381px;
  1711. margin-top: -21px;
  1712. }
  1713. .winseaview-view {
  1714. padding: 0 0 20px;
  1715. }
  1716. .container {
  1717. overflow: scroll;
  1718. height: 93vh;
  1719. }
  1720. .nav {
  1721. width: 381px;
  1722. height: 20px;
  1723. }
  1724. .wenzi {
  1725. margin: 0 auto;
  1726. }
  1727. </style>