inOutWarehouseTaskEdit.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167
  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 class="bg-bottom" type="primary" size="small" @click="returnsales()">
  10. <img
  11. width="6"
  12. height="10"
  13. style="vertical-align: bottom; margin-right: 3px"
  14. src="../../../public/img/lujing.png"
  15. alt
  16. />返回
  17. </el-button>
  18. </el-col>
  19. </el-row>
  20. <div class="basicInformation">
  21. <el-radio-group @change="tasktypechange" v-model="dataList.taskTypeKey">
  22. <!-- <el-radio label="1">出库</el-radio>
  23. <el-radio label="2">入库</el-radio>
  24. <el-radio label="3">移库</el-radio>
  25. <el-radio label="4">退库并出库</el-radio>-->
  26. </el-radio-group>
  27. <div class="nav">
  28. <span class="ziti">
  29. 任务类型:
  30. <h1 class="ziti1">{{dataList.inOutType}}</h1>
  31. </span>
  32. </div>
  33. <div class="nav2"></div>
  34. <div v-if="dataList.taskTypeKey != 2&&dataList.taskTypeKey != 4" class="center1">
  35. <!--出库=-->
  36. <div class="small-title">
  37. <img
  38. style="position: relative; top: 40px; left: -22px;"
  39. width="19"
  40. height="19"
  41. src="../../../public/img/cangku.png"
  42. alt
  43. />
  44. <h3>出库任务({{ dataList.inOutTaskNo }} )</h3>
  45. </div>
  46. <el-form ref="dataList" :model="dataList" label-width="140px">
  47. <!-- 仓库名 -->
  48. <el-form-item label="仓库名">
  49. <!-- <el-select
  50. disabled
  51. v-model="dataList.warehouseName"
  52. placeholder="请选择仓库名"
  53. class="typeselect"
  54. >-->
  55. <el-option
  56. v-for="item in warehouseNameList"
  57. :key="item.constKey"
  58. :label="item.warehouseName"
  59. :value="item.warehouseName"
  60. />
  61. {{dataList.warehouseName}}
  62. <!-- </el-select> -->
  63. </el-form-item>
  64. <!-- 出库类型 -->
  65. <el-form-item label="出库类型">
  66. <!-- <el-select
  67. disabled
  68. v-model="dataList.inOutType"
  69. placeholder="请选择出库类型"
  70. class="typeselect"
  71. >-->
  72. <el-option
  73. v-for="item in storageType"
  74. :key="item.constKey"
  75. v-if="
  76. (dataList.taskTypeKey == 1 &&
  77. item.constValue != '移库出库') ||
  78. (dataList.taskTypeKey == 3 &&
  79. item.constValue == '移库出库') ||
  80. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  81. "
  82. :label="item.constValue"
  83. :value="item.constValue"
  84. />
  85. {{dataList.inOutType}}
  86. <!-- </el-select> -->
  87. </el-form-item>
  88. <!-- 合同编号 -->
  89. <el-form-item label="合同编号">
  90. <!-- <el-select
  91. disabled
  92. v-model="dataList.contractNo"
  93. placeholder="请输入合同编号"
  94. class="typeselect"
  95. >-->
  96. <el-option
  97. v-for="item in contractNoList"
  98. :key="item.constKey"
  99. :label="item.contractNo"
  100. :value="item.contractNo"
  101. ></el-option>
  102. {{dataList.contractNo}}
  103. <!-- </el-select> -->
  104. </el-form-item>
  105. <!-- 货名 -->
  106. <el-form-item label="货名" class="huom">
  107. <!-- <el-select
  108. disabled
  109. v-model="dataList.goodsName"
  110. placeholder="货名"
  111. class="huom"
  112. >-->
  113. <el-option
  114. v-for="item in goodnameList"
  115. :key="item.constKey"
  116. :label="item.constValue"
  117. :value="item.constValue"
  118. ></el-option>
  119. {{dataList.goodsName}}
  120. <!-- </el-select> -->
  121. </el-form-item>
  122. <!--重量(吨)-->
  123. <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
  124. <!-- <el-input
  125. disabled
  126. v-model="dataList.weight"
  127. placeholder="请输入重量"
  128. maxlength="120"
  129. class="huom"
  130. />-->
  131. {{dataList.weight}}
  132. </el-form-item>
  133. <!-- 品级 -->
  134. <el-form-item label="品级">
  135. <!-- <el-select
  136. v-model="dataList.grade"
  137. placeholder=""
  138. class="typeselect"
  139. disabled
  140. >-->
  141. <el-option
  142. v-for="item in gradeList"
  143. :key="item.constKey"
  144. :label="item.constValue"
  145. :value="item.constValue"
  146. />
  147. {{dataList.grade}}
  148. <!-- </el-select> -->
  149. </el-form-item>
  150. <!--容重(克/升)>=-->
  151. <el-form-item label="容重(克/升)>=">
  152. <!-- <el-input
  153. disabled
  154. v-model="dataList.bulkDensity"
  155. placeholder="请输入容重"
  156. maxlength="120"
  157. size="small"
  158. class="huom"
  159. />-->
  160. {{dataList.bulkDensity}}
  161. </el-form-item>
  162. <!--水分(%)<=-->
  163. <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
  164. <!-- <el-input
  165. disabled
  166. v-model="dataList.waterContent"
  167. placeholder="请输入水分占比"
  168. maxlength="120"
  169. size="small"
  170. class="huom"
  171. />-->
  172. {{dataList.waterContent}}
  173. </el-form-item>
  174. <!--单价(元/吨)-->
  175. <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
  176. <!-- <el-input
  177. disabled
  178. v-model="dataList.unitPrice"
  179. placeholder="请输入单价"
  180. maxlength="120"
  181. size="small"
  182. class="huom"
  183. />-->
  184. {{dataList.unitPrice}}
  185. </el-form-item>
  186. <!--预计出库日期-->
  187. <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
  188. <!-- <el-date-picker
  189. disabled
  190. v-model="dataList.predictDate"
  191. type="date"
  192. placeholder="请选择预计出库日期"
  193. value-format="yyyy-MM-dd"
  194. />-->
  195. {{dataList.predictDate}}
  196. </el-form-item>
  197. <!--经办人-->
  198. <el-form-item label="出库经办人">
  199. <!-- <el-select
  200. disabled
  201. v-model="dataList.agent"
  202. placeholder="请选择经办人"
  203. filterable
  204. :filter-method="dataFilter"
  205. >-->
  206. {{dataList.agent}}
  207. <el-option
  208. v-for="item in options"
  209. :key="item.value"
  210. :label="item.staffName"
  211. :value="item.staffName"
  212. />
  213. <!-- </el-select> -->
  214. </el-form-item>
  215. <!--业务描述=-->
  216. <el-form-item label="业务描述">
  217. <!-- <el-input
  218. disabled
  219. v-model="dataList.businessDescribe"
  220. placeholder="请输入业务描述,不超过150字"
  221. maxlength="150"
  222. size="small"
  223. />-->
  224. {{dataList.businessDescribe}}
  225. </el-form-item>
  226. </el-form>
  227. </div>
  228. <div v-if="dataList.taskTypeKey != 1" class="center1">
  229. <div class="small-title">
  230. <img
  231. style="position: relative; top: 40px; left: -22px;"
  232. width="19"
  233. height="19"
  234. src="../../../public/img/cangku.png"
  235. alt
  236. />
  237. <h3>入库任务({{dataList.inOutTaskNo }} )</h3>
  238. </div>
  239. <el-form ref="form" :model="form" label-width="140px">
  240. <!-- 仓库名 -->
  241. <el-form-item label="仓库名">
  242. <!-- <el-select
  243. v-model="dataList1.warehouseName"
  244. placeholder="请选择仓库名"
  245. class="typeselect"
  246. disabled
  247. >-->
  248. {{dataList1.warehouseName}}
  249. <el-option
  250. v-for="item in warehouseNameList"
  251. :key="item.constKey"
  252. :label="item.warehouseName"
  253. :value="item.warehouseName"
  254. />
  255. <!-- </el-select> -->
  256. </el-form-item>
  257. <!-- 出库类型 -->
  258. <el-form-item label="入库类型">
  259. <!-- <el-select
  260. v-model="dataList1.inOutType"
  261. placeholder="请选择入库类型"
  262. class="typeselect"
  263. disabled
  264. >-->
  265. <el-option
  266. v-for="item in storageType1"
  267. :key="item.constKey"
  268. v-if="
  269. (dataList.taskTypeKey == 2 &&
  270. item.constValue != '移库入库') ||
  271. (dataList.taskTypeKey == 3 &&
  272. item.constValue == '移库入库') ||
  273. (dataList.taskTypeKey == 4 && item.constValue == '退库')
  274. "
  275. :label="item.constValue"
  276. :value="item.constValue"
  277. />
  278. {{dataList1.inOutType}}
  279. <!-- </el-select> -->
  280. </el-form-item>
  281. <!-- 合同编号 -->
  282. <el-form-item label="合同编号">
  283. <!-- <el-select
  284. disabled
  285. v-model="dataList1.contractNo"
  286. placeholder="请输入合同编号"
  287. class="typeselect"
  288. >-->
  289. <el-option
  290. v-for="item in contractNoList"
  291. :key="item.constKey"
  292. :label="item.contractNo"
  293. :value="item.contractNo"
  294. ></el-option>
  295. {{dataList1.contractNo}}
  296. <!-- </el-select> -->
  297. </el-form-item>
  298. <!-- 货名 -->
  299. <el-form-item label="货名" class="huom">
  300. <!-- <el-select
  301. disabled
  302. v-model="dataList1.goodsName"
  303. placeholder="货名"
  304. class="huom"
  305. >-->
  306. <el-option
  307. v-for="item in goodnameList"
  308. :key="item.constKey"
  309. :label="item.constValue"
  310. :value="item.constValue"
  311. ></el-option>
  312. {{dataList1.goodsName}}
  313. <!-- </el-select> -->
  314. </el-form-item>
  315. <!--重量(吨)-->
  316. <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
  317. <!-- <el-input
  318. disabled
  319. v-model="dataList1.weight"
  320. placeholder="请输入重量"
  321. maxlength="120"
  322. size="small"
  323. class="huom"
  324. />-->
  325. {{dataList1.weight}}
  326. </el-form-item>
  327. <!-- 品级 -->
  328. <el-form-item label="品级">
  329. <!-- <el-select
  330. disabled
  331. v-model="dataList1.grade"
  332. placeholder=""
  333. class="typeselect"
  334. >-->
  335. <el-option
  336. v-for="item in gradeList"
  337. :key="item.constKey"
  338. :label="item.constValue"
  339. :value="item.constValue"
  340. />
  341. {{dataList1.grade}}
  342. <!-- </el-select> -->
  343. </el-form-item>
  344. <!--容重(克/升)>=-->
  345. <el-form-item label="容重(克/升)>=">
  346. <!-- <el-input
  347. disabled
  348. v-model="dataList1.bulkDensity"
  349. placeholder="请输入容重"
  350. maxlength="120"
  351. size="small"
  352. class="huom"
  353. />-->
  354. {{dataList1.bulkDensity}}
  355. </el-form-item>
  356. <!--水分(%)<=-->
  357. <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
  358. <!-- <el-input
  359. disabled
  360. v-model="dataList1.waterContent"
  361. placeholder="请输入水分占比"
  362. maxlength="120"
  363. size="small"
  364. class="huom"
  365. />-->
  366. {{dataList1.waterContent}}
  367. </el-form-item>
  368. <!--单价(元/吨)-->
  369. <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
  370. <!-- <el-input
  371. disabled
  372. v-model="dataList1.unitPrice"
  373. placeholder="请输入单价"
  374. maxlength="120"
  375. size="small"
  376. class="huom"
  377. />-->
  378. {{dataList1.unitPrice}}
  379. </el-form-item>
  380. <!--预计出库日期-->
  381. <el-form-item label="预计入库日期" span="1" prop="predictDate" class="deliverydate">
  382. <!-- <el-date-picker
  383. disabled
  384. v-model="dataList1.predictDate"
  385. type="date"
  386. placeholder="请选择预计入库日期"
  387. value-format="yyyy-MM-dd"
  388. />-->
  389. {{dataList1.predictDate}}
  390. </el-form-item>
  391. <!--经办人-->
  392. <el-form-item label="入库经办人">
  393. <!-- <el-select
  394. disabled
  395. v-model="dataList1.agent"
  396. placeholder="请选择经办人"
  397. filterable
  398. :filter-method="dataFilter"
  399. >-->
  400. <el-option
  401. v-for="item in options"
  402. :key="item.value"
  403. :label="item.staffName"
  404. :value="item.staffName"
  405. />
  406. {{dataList1.agent}}
  407. <!-- </el-select> -->
  408. </el-form-item>
  409. <!--业务描述=-->
  410. <el-form-item label="业务描述">
  411. <!-- <el-input
  412. disabled
  413. v-model="dataList1.businessDescribe"
  414. placeholder="请输入业务描述,不超过150字"
  415. maxlength="150"
  416. size="small"
  417. />-->
  418. {{dataList1.businessDescribe}}
  419. </el-form-item>
  420. </el-form>
  421. </div>
  422. <div v-if="dataList.taskTypeKey == 4" class="center1">
  423. <!--出库=-->
  424. <div class="small-title">
  425. <img
  426. style="position: relative; top: 40px; left: -22px;"
  427. width="19"
  428. height="19"
  429. src="../../../public/img/cangku.png"
  430. alt
  431. />
  432. <h3>出库任务({{ dataList.inOutTaskNo }} )</h3>
  433. </div>
  434. <el-form ref="dataList" :model="dataList" label-width="140px">
  435. <!-- 仓库名 -->
  436. <el-form-item label="仓库名">
  437. <!-- <el-select
  438. disabled
  439. v-model="dataList.warehouseName"
  440. placeholder="请选择仓库名"
  441. class="typeselect"
  442. >-->
  443. <el-option
  444. v-for="item in warehouseNameList"
  445. :key="item.constKey"
  446. :label="item.warehouseName"
  447. :value="item.warehouseName"
  448. />
  449. {{dataList.warehouseName}}
  450. <!-- </el-select> -->
  451. </el-form-item>
  452. <!-- 出库类型 -->
  453. <el-form-item label="出库类型">
  454. <!-- <el-select
  455. disabled
  456. v-model="dataList.inOutType"
  457. placeholder="请选择出库类型"
  458. class="typeselect"
  459. >-->
  460. <el-option
  461. v-for="item in storageType"
  462. :key="item.constKey"
  463. v-if="
  464. (dataList.taskTypeKey == 1 &&
  465. item.constValue != '移库出库') ||
  466. (dataList.taskTypeKey == 3 &&
  467. item.constValue == '移库出库') ||
  468. (dataList.taskTypeKey == 4 && item.constValue == '销售出库')
  469. "
  470. :label="item.constValue"
  471. :value="item.constValue"
  472. />
  473. {{dataList.inOutType}}
  474. <!-- </el-select> -->
  475. </el-form-item>
  476. <!-- 合同编号 -->
  477. <el-form-item label="合同编号">
  478. <!-- <el-select
  479. disabled
  480. v-model="dataList.contractNo"
  481. placeholder="请输入合同编号"
  482. class="typeselect"
  483. >-->
  484. <el-option
  485. v-for="item in contractNoList"
  486. :key="item.constKey"
  487. :label="item.contractNo"
  488. :value="item.contractNo"
  489. ></el-option>
  490. {{dataList.contractNo}}
  491. <!-- </el-select> -->
  492. </el-form-item>
  493. <!-- 货名 -->
  494. <el-form-item label="货名" class="huom">
  495. <!-- <el-select
  496. disabled
  497. v-model="dataList.goodsName"
  498. placeholder="货名"
  499. class="huom"
  500. >-->
  501. <el-option
  502. v-for="item in goodnameList"
  503. :key="item.constKey"
  504. :label="item.constValue"
  505. :value="item.constValue"
  506. ></el-option>
  507. {{dataList.goodsName}}
  508. <!-- </el-select> -->
  509. </el-form-item>
  510. <!--重量(吨)-->
  511. <el-form-item label="重量(吨)" span="1" style=" margin-left: 350px; margin-top: -40px">
  512. <!-- <el-input
  513. disabled
  514. v-model="dataList.weight"
  515. placeholder="请输入重量"
  516. maxlength="120"
  517. class="huom"
  518. />-->
  519. {{dataList.weight}}
  520. </el-form-item>
  521. <!-- 品级 -->
  522. <el-form-item label="品级">
  523. <!-- <el-select
  524. v-model="dataList.grade"
  525. placeholder=""
  526. class="typeselect"
  527. disabled
  528. >-->
  529. <el-option
  530. v-for="item in gradeList"
  531. :key="item.constKey"
  532. :label="item.constValue"
  533. :value="item.constValue"
  534. />
  535. {{dataList.grade}}
  536. <!-- </el-select> -->
  537. </el-form-item>
  538. <!--容重(克/升)>=-->
  539. <el-form-item label="容重(克/升)>=">
  540. <!-- <el-input
  541. disabled
  542. v-model="dataList.bulkDensity"
  543. placeholder="请输入容重"
  544. maxlength="120"
  545. size="small"
  546. class="huom"
  547. />-->
  548. {{dataList.bulkDensity}}
  549. </el-form-item>
  550. <!--水分(%)<=-->
  551. <el-form-item label="水分(%)<=" span="1" style=" margin-left: 350px; margin-top: -40px">
  552. <!-- <el-input
  553. disabled
  554. v-model="dataList.waterContent"
  555. placeholder="请输入水分占比"
  556. maxlength="120"
  557. size="small"
  558. class="huom"
  559. />-->
  560. {{dataList.waterContent}}
  561. </el-form-item>
  562. <!--单价(元/吨)-->
  563. <el-form-item label="单价(元/吨)" span="1" style=" margin-left: 650px; margin-top: -40px">
  564. <!-- <el-input
  565. disabled
  566. v-model="dataList.unitPrice"
  567. placeholder="请输入单价"
  568. maxlength="120"
  569. size="small"
  570. class="huom"
  571. />-->
  572. {{dataList.unitPrice}}
  573. </el-form-item>
  574. <!--预计出库日期-->
  575. <el-form-item label="预计出库日期" span="1" prop="predictDate" class="deliverydate">
  576. <!-- <el-date-picker
  577. disabled
  578. v-model="dataList.predictDate"
  579. type="date"
  580. placeholder="请选择预计出库日期"
  581. value-format="yyyy-MM-dd"
  582. />-->
  583. {{dataList.predictDate}}
  584. </el-form-item>
  585. <!--经办人-->
  586. <el-form-item label="出库经办人">
  587. <!-- <el-select
  588. disabled
  589. v-model="dataList.agent"
  590. placeholder="请选择经办人"
  591. filterable
  592. :filter-method="dataFilter"
  593. >-->
  594. {{dataList.agent}}
  595. <el-option
  596. v-for="item in options"
  597. :key="item.value"
  598. :label="item.staffName"
  599. :value="item.staffName"
  600. />
  601. <!-- </el-select> -->
  602. </el-form-item>
  603. <!--业务描述=-->
  604. <el-form-item label="业务描述">
  605. <!-- <el-input
  606. disabled
  607. v-model="dataList.businessDescribe"
  608. placeholder="请输入业务描述,不超过150字"
  609. maxlength="150"
  610. size="small"
  611. />-->
  612. {{dataList.businessDescribe}}
  613. </el-form-item>
  614. </el-form>
  615. </div>
  616. </div>
  617. <!-- 提交 -->
  618. <div style="text-align: right; padding: 10px" class="center">
  619. <el-button class="bg-bottom" type="primary" size="small" @click="close()">关闭</el-button>
  620. </div>
  621. </div>
  622. </template>
  623. <script>
  624. import {
  625. getwarehousename,
  626. xialaNo,
  627. addoreditoutput,
  628. outexamine
  629. } from '@/model/tasksport/index'
  630. import { packList } from '@/model/contarct/index'
  631. import { pullDown, getstaff } from '@/model/warehouse/index'
  632. import { downloadFile } from '@/utils/batchDown'
  633. import Pagination from '@/components/Pagination'
  634. import { mapActions, mapGetters, mapState } from 'vuex'
  635. import WsUpload from '@/components/WsUpload'
  636. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  637. import { dayjs, EventBus } from 'base-core-lib'
  638. export default {
  639. name: 'viewSpareMoney',
  640. components: {
  641. WsUpload,
  642. Pagination
  643. },
  644. watch: {
  645. // vesselId(val) {
  646. // this.getList()
  647. // },
  648. isShow(val) {
  649. this.showType = val
  650. }
  651. },
  652. computed: {
  653. ...mapGetters(['deptBudgetList'])
  654. },
  655. data() {
  656. return {
  657. //弹出框
  658. dialogViewSpareMoney: false,
  659. dialogApproveFormVisible: false,
  660. // 船舶类型
  661. monetaryKey: null,
  662. // 表格显示数据
  663. tableDate: [],
  664. // 是否显示
  665. showType: true,
  666. // 年
  667. year: '',
  668. contractNoList: [],
  669. deptBudgetTotal: 0,
  670. readonly: true,
  671. currentPage: 1,
  672. pageSize: 10,
  673. searchType: 1,
  674. searchKeyWord: '',
  675. radio: '1',
  676. contractType: 2,
  677. startDate: null,
  678. endDate: null,
  679. goodnameList: [],
  680. checked: true,
  681. form: {},
  682. staffList: [],
  683. options: [],
  684. storageType: [],
  685. storageType1: [],
  686. outContractNo: [],
  687. // 提交类型
  688. submitType: true,
  689. status: [],
  690. unitPricechange: [],
  691. warehouseNameList: [],
  692. warehouseNameList1: [],
  693. waterContentchange: [],
  694. appendixIdsAdd: '',
  695. uploadSuccess: {},
  696. warehouseInOutDetail: {},
  697. onChange: {},
  698. deptBudgetList1: [],
  699. gradeList: [],
  700. rules: {
  701. netWeight: [
  702. {
  703. required: true,
  704. type: 'number',
  705. message: '请输入活动名称',
  706. trigger: 'blur'
  707. }
  708. ]
  709. },
  710. size: 10,
  711. compId: sessionStorage.getItem('ws-pf_compId'),
  712. deptCircularPage: {},
  713. packtypeList: {},
  714. date: {
  715. year: dayjs().format('YYYY'),
  716. month: dayjs().format('MM')
  717. },
  718. contractList: [],
  719. inOutTaskNo: '',
  720. inOutTaskNo1: '',
  721. dataList: { taskTypeKey: '1' },
  722. dataList1: { taskTypeKey: '1' },
  723. historyList: [],
  724. pickerBeginDateBefore: {
  725. disabledDate: time => {
  726. return time.getTime() > Date.now()
  727. }
  728. },
  729. accessoryTFs: false
  730. }
  731. },
  732. mounted() {
  733. this.getList()
  734. },
  735. methods: {
  736. //返回按钮
  737. revert() {
  738. this.$router.go(-1)
  739. },
  740. returnsales() {
  741. this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
  742. },
  743. // 获取当前年月日
  744. getdate() {
  745. var date = new Date()
  746. var year = date.getFullYear() //获取完整的年份(4位)
  747. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  748. var datetime = date.getDate() //获取当前日(1-31)
  749. if (mouth < 10) {
  750. mouth = '0' + mouth
  751. }
  752. if (datetime < 10) {
  753. datetime = '0' + datetime
  754. }
  755. return year + mouth + datetime
  756. },
  757. // 随机验证码
  758. verifyinit() {
  759. var arr = []
  760. for (var i = 48; i < 123; i++) {
  761. if (i > 57 && i < 65) continue
  762. if (i > 90 && i < 97) continue
  763. arr.push(String.fromCharCode(i))
  764. }
  765. arr.sort(function() {
  766. return Math.random() - 0.5
  767. })
  768. arr.length = 4
  769. return arr.join('')
  770. },
  771. dataFilter(val) {
  772. // console.log(val,"名")
  773. this.deptBudgetList.staffList = val
  774. if (val) {
  775. //val存在
  776. this.options = this.staffList.filter(item => {
  777. if (
  778. !!~item.staffName.indexOf(val) ||
  779. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  780. ) {
  781. return true
  782. }
  783. })
  784. } else {
  785. //val为空时,还原数组
  786. this.options = this.staffList
  787. }
  788. },
  789. selectstaff(e) {
  790. for (var i = 0; i < this.staffList.length; i++) {
  791. if (this.staffList[i].staffName == e) {
  792. this.dataList.agentKey = this.staffList[i].staffId
  793. }
  794. }
  795. },
  796. selectstaff1(e) {
  797. for (var i = 0; i < this.staffList.length; i++) {
  798. if (this.staffList[i].staffName == e) {
  799. this.dataList1.agentKey = this.staffList[i].staffId
  800. }
  801. }
  802. },
  803. requestadd(list, status) {
  804. this.$refs.dataList.validate(valid => {
  805. if (valid) {
  806. list.compId = sessionStorage.getItem('ws-pf_compId')
  807. list.publisher =
  808. sessionStorage.getItem('ws-pf_roleName') +
  809. sessionStorage.getItem('ws-pf_staffName')
  810. addoreditoutput(list)
  811. .toPromise()
  812. .then(response => {
  813. this.$message.success('添加成功')
  814. this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
  815. })
  816. } else {
  817. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  818. return false
  819. }
  820. })
  821. },
  822. //关闭
  823. close() {
  824. this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
  825. },
  826. //提交按钮
  827. // submit() {
  828. // if (this.dataList.taskTypeKey == 1) {
  829. // this.dataList.inOutTaskNo = this.inOutTaskNo
  830. // this.requestadd(this.dataList)
  831. // } else if (this.dataList.taskTypeKey == 2) {
  832. // this.dataList.inOutTaskNo = this.inOutTaskNo1
  833. // this.requestadd(this.dataList)
  834. // } else if (
  835. // this.dataList.taskTypeKey == 3 ||
  836. // this.dataList.taskTypeKey == 4
  837. // ) {
  838. // this.dataList.inOutTaskNo = this.inOutTaskNo
  839. // this.dataList.relevanceId = this.GetRandomNum(100000, 999999)
  840. // this.requestadd(this.dataList, 'repetition')
  841. // this.dataList1.inOutTaskNo = this.inOutTaskNo1
  842. // this.dataList1.relevanceId = this.dataList.relevanceId
  843. // this.requestadd(this.dataList1, 'repetition')
  844. // }
  845. // },
  846. selectwarehouseName() {},
  847. tarechange(e) {
  848. if (this.dataList.grossWeight && this.dataList.tare) {
  849. this.dataList.netWeight = Number(
  850. this.dataList.grossWeight - this.dataList.tare
  851. )
  852. }
  853. },
  854. grossWeightchange(e) {
  855. if (this.dataList.grossWeight && this.dataList.tare) {
  856. this.dataList.netWeight = Number(
  857. this.dataList.grossWeight - this.dataList.tare
  858. )
  859. }
  860. },
  861. selectgoodsName(e) {
  862. for (var i = 0; i < this.goodnameList.length; i++) {
  863. if (this.goodnameList[i].constValue == e) {
  864. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  865. }
  866. }
  867. },
  868. selectgoodsName1(e) {
  869. for (var i = 0; i < this.goodnameList.length; i++) {
  870. if (this.goodnameList[i].constValue == e) {
  871. this.dataList1.goodsNameKey = this.goodnameList[i].constKey
  872. }
  873. }
  874. },
  875. selectpackingMethod(e) {
  876. for (var i = 0; i < this.packtypeList.length; i++) {
  877. if (this.packtypeList[i].constValue == e) {
  878. this.dataList.packingMethodKey = this.packtypeList[i].constKey
  879. }
  880. }
  881. },
  882. selectpackingMethod1(e) {
  883. for (var i = 0; i < this.packtypeList.length; i++) {
  884. if (this.packtypeList[i].constValue == e) {
  885. this.dataList1.packingMethodKey = this.packtypeList[i].constKey
  886. }
  887. }
  888. },
  889. selectstorageType(e) {
  890. for (var i = 0; i < this.storageType.length; i++) {
  891. if (this.storageType[i].constValue == e) {
  892. this.dataList.inOutTypeKey = this.storageType[i].constKey
  893. }
  894. }
  895. },
  896. selectstorageType1(e) {
  897. for (var i = 0; i < this.storageType1.length; i++) {
  898. if (this.storageType1[i].constValue == e) {
  899. this.dataList1.inOutTypeKey = this.storageType[i].constKey
  900. }
  901. }
  902. },
  903. handleClose() {
  904. this.accessoryTFs = false
  905. },
  906. tasktypechange() {
  907. this.tasknumber()
  908. },
  909. GetRandomNum(Min, Max) {
  910. var Range = Max - Min
  911. var Rand = Math.random()
  912. return Min + Math.round(Rand * Range)
  913. },
  914. getList() {
  915. outexamine({ relevanceId: this.$route.query.relevanceId })
  916. .toPromise()
  917. .then(response => {
  918. if (response.length > 1) {
  919. this.dataList = response[0]
  920. this.dataList1 = response[1]
  921. } else {
  922. console.log(response[0].taskTypeKey)
  923. if(response[0].taskTypeKey==2){
  924. this.dataList1 = response[0]
  925. }else{
  926. this.dataList = response[0]
  927. }
  928. }
  929. })
  930. },
  931. // deletecontract(){},
  932. //删除
  933. approve() {},
  934. listQuery() {},
  935. total() {},
  936. clearfiltQuery() {},
  937. selectCrtDuty() {}
  938. }
  939. }
  940. </script>
  941. <style lang="scss" scoped>
  942. /deep/.basicInformation {
  943. .el-info-table {
  944. border: none;
  945. position: relative;
  946. }
  947. .el-form-item {
  948. width: 33.3333%;
  949. border: none;
  950. margin: 0;
  951. .el-form-item__label {
  952. text-align: left;
  953. font-size: 14px;
  954. font-family: PingFangSC-Regular, PingFang SC;
  955. font-weight: 400;
  956. color: #8890b1;
  957. }
  958. .el-form-item__content {
  959. padding-left: 0px;
  960. padding-right: 10px;
  961. // background: #fff;
  962. white-space: nowrap;
  963. height: 40px;
  964. display: flex;
  965. -webkit-box-align: center;
  966. align-items: center;
  967. text-align: left;
  968. overflow: hidden;
  969. }
  970. }
  971. }
  972. /deep/.el-radio {
  973. color: #606266;
  974. font-weight: 500;
  975. line-height: 1;
  976. cursor: pointer;
  977. white-space: nowrap;
  978. outline: 0;
  979. margin-right: 30px;
  980. margin-top: 15px;
  981. }
  982. /deep/.el-radio__inner {
  983. border: 1px solid #dcdfe6;
  984. border-radius: 100%;
  985. width: 14px;
  986. height: 14px;
  987. background-color: #fff;
  988. cursor: pointer;
  989. -webkit-box-sizing: border-box;
  990. box-sizing: border-box;
  991. margin-left: 100px;
  992. }
  993. /deep/.el-radio__input {
  994. white-space: nowrap;
  995. cursor: pointer;
  996. outline: 0;
  997. line-height: 1;
  998. vertical-align: middle;
  999. margin-top: -1px;
  1000. }
  1001. .title {
  1002. position: relative;
  1003. padding-left: 10px;
  1004. }
  1005. .title::before {
  1006. content: '';
  1007. display: inline-block;
  1008. width: 5px;
  1009. height: 30px;
  1010. background: #5473e8;
  1011. position: absolute;
  1012. left: 0;
  1013. }
  1014. .el-form {
  1015. padding: 0 15%;
  1016. display: flex;
  1017. flex-wrap: wrap;
  1018. margin-left: -50px;
  1019. margin-top: 15px;
  1020. width: 110%;
  1021. }
  1022. .el-button--primary {
  1023. background-color: #5878e8;
  1024. border-color: #5878e8;
  1025. }
  1026. .el-col {
  1027. background: #f6f7fc;
  1028. }
  1029. .bg-right {
  1030. text-align: right;
  1031. padding: 16px 20px;
  1032. }
  1033. .center {
  1034. position: relative;
  1035. top: 50px;
  1036. width: 40%;
  1037. height: 2000px;
  1038. margin: 0 auto;
  1039. margin-right: 180px;
  1040. }
  1041. /deep/.el-form-item__label {
  1042. width: 160px;
  1043. }
  1044. .inspector {
  1045. width: 50%;
  1046. }
  1047. /deep/.el-form-item--small .el-form-item__label,
  1048. .el-form-item--small .el-form-item__content {
  1049. text-align: left;
  1050. }
  1051. /deep/.el-input--small {
  1052. font-size: 13px;
  1053. position: relative;
  1054. display: inline-block;
  1055. }
  1056. .center1 .small-title {
  1057. margin-left: 323px;
  1058. }
  1059. .center1 {
  1060. width: 90%;
  1061. margin: 0 auto;
  1062. margin-left: 10px;
  1063. margin-top: 25px;
  1064. }
  1065. /deep/.el-input--small .el-input__inner {
  1066. height: 32px;
  1067. line-height: 32px;
  1068. }
  1069. /deep/.el-select {
  1070. display: inline-block;
  1071. position: relative;
  1072. width: 100%;
  1073. }
  1074. .annu {
  1075. height: 81px;
  1076. background: #ffffff;
  1077. border-radius: 4px;
  1078. }
  1079. .basicInformation .el-form-item {
  1080. width: 50.3333%;
  1081. border: none;
  1082. margin: 0;
  1083. }
  1084. .huom {
  1085. width: 100px;
  1086. }
  1087. .el-form {
  1088. font-size: 14px;
  1089. font-family: PingFangSC-Regular, PingFang SC;
  1090. font-weight: 400;
  1091. color: #8890b1;
  1092. line-height: 16px;
  1093. margin-left: 130px;
  1094. }
  1095. .a {
  1096. margin-left: -32px;
  1097. }
  1098. .el-radio-group {
  1099. margin-left: 80px;
  1100. }
  1101. .ding {
  1102. height: 23px;
  1103. background: #e8ecf6;
  1104. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  1105. }
  1106. .nav2 {
  1107. height: 25px;
  1108. background: #e8ecf6;
  1109. margin-top: 15px;
  1110. }
  1111. .ziti {
  1112. width: 72px;
  1113. height: 20px;
  1114. font-size: 14px;
  1115. font-family: PingFangSC-Regular, PingFang SC;
  1116. font-weight: 400;
  1117. color: #8890b1;
  1118. line-height: 20px;
  1119. margin-left: 314px;
  1120. /* margin-top: 112px; */
  1121. }
  1122. /deep/.ziti1 {
  1123. height: 40px;
  1124. font-size: 16px;
  1125. font-family: PingFangSC-Medium, PingFang SC;
  1126. font-weight: 500;
  1127. color: #262626;
  1128. line-height: 20px;
  1129. margin-left: 381px;
  1130. margin-top: -21px;
  1131. width: 100px;
  1132. }
  1133. .winseaview-view {
  1134. padding: 0 0 20px;
  1135. }
  1136. .container {
  1137. overflow: scroll;
  1138. height: 93vh;
  1139. }
  1140. /deep/.basicInformation .el-form-item .el-form-item__content {
  1141. padding-left: 0px;
  1142. padding-right: 10px;
  1143. white-space: nowrap;
  1144. height: 40px;
  1145. display: -webkit-box;
  1146. display: -ms-flexbox;
  1147. display: flex;
  1148. -webkit-box-align: center;
  1149. -ms-flex-align: center;
  1150. align-items: center;
  1151. text-align: left;
  1152. overflow: hidden;
  1153. font-size: 12px;
  1154. font-family: PingFangSC-Regular, PingFang SC;
  1155. font-weight: 400;
  1156. color: #232323;
  1157. line-height: 14px;
  1158. }
  1159. .nav {
  1160. width: 400px;
  1161. height: 20px;
  1162. }
  1163. </style>