tranManagementWarehouseInOutTaskAudit.vue 51 KB

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