tranManagementWarehouseInOutTaskAudit.vue 50 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690
  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="单价(元/吨)">
  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="单价(元/吨)">
  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="单价(元/吨)">
  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. rules: {
  910. netWeight: [
  911. {
  912. required: true,
  913. type: 'number',
  914. message: '请输入活动名称',
  915. trigger: 'blur',
  916. },
  917. ],
  918. },
  919. size: 10,
  920. compId: sessionStorage.getItem('ws-pf_compId'),
  921. deptCircularPage: {},
  922. packtypeList: {},
  923. date: {
  924. year: dayjs().format('YYYY'),
  925. month: dayjs().format('MM'),
  926. },
  927. contractList: [],
  928. inOutTaskNo: '',
  929. inOutTaskNo1: '',
  930. dataList: { taskTypeKey: '1' },
  931. dataList1: { taskTypeKey: '1' },
  932. historyList: [],
  933. pickerBeginDateBefore: {
  934. disabledDate: (time) => {
  935. return time.getTime() > Date.now()
  936. },
  937. },
  938. binNumberList: [],
  939. binNumberList1:[],
  940. accessoryTFs: false,
  941. }
  942. },
  943. activated() {
  944. this.getList()
  945. },
  946. methods: {
  947. // 仓位号改变
  948. binNumberChange(e) {
  949. this.dataList1.binNumber = e
  950. },
  951. binNumberChange1(e) {
  952. this.dataList.binNumber = e
  953. },
  954. //返回按钮
  955. revert() {
  956. this.$router.go(-1)
  957. },
  958. returnsales() {
  959. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  960. },
  961. // 获取当前年月日
  962. getdate() {
  963. var date = new Date()
  964. var year = date.getFullYear() //获取完整的年份(4位)
  965. var mouth = date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
  966. var datetime = date.getDate() //获取当前日(1-31)
  967. if (mouth < 10) {
  968. mouth = '0' + mouth
  969. }
  970. if (datetime < 10) {
  971. datetime = '0' + datetime
  972. }
  973. return year + '' + mouth + datetime
  974. },
  975. reject() {
  976. this.outerVisible = true
  977. },
  978. // 随机验证码
  979. verifyinit() {
  980. var arr = []
  981. for (var i = 48; i < 123; i++) {
  982. if (i > 57 && i < 65) continue
  983. if (i > 90) continue
  984. arr.push(String.fromCharCode(i))
  985. }
  986. arr.sort(function () {
  987. return Math.random() - 0.5
  988. })
  989. arr.length = 4
  990. return arr.join('')
  991. },
  992. MathRand() {
  993. var Num = ''
  994. for (var i = 0; i < 4; i++) {
  995. Num += Math.floor(Math.random() * 10)
  996. }
  997. return Num
  998. },
  999. selectTaskNo(e) {
  1000. if (this.dataList.taskTypeKey == 3) {
  1001. this.dataList1.moveTaskNo = e
  1002. }
  1003. },
  1004. dataFilter(val) {
  1005. // console.log(val,"名")
  1006. this.deptBudgetList.staffList = val
  1007. if (val) {
  1008. //val存在
  1009. this.options = this.staffList.filter((item) => {
  1010. if (
  1011. !!~item.staffName.indexOf(val) ||
  1012. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  1013. ) {
  1014. return true
  1015. }
  1016. })
  1017. } else {
  1018. //val为空时,还原数组
  1019. this.options = this.staffList
  1020. }
  1021. },
  1022. weightchange(e) {
  1023. if (this.dataList.taskTypeKey == 4) {
  1024. this.$set(this.dataList, 'weight', e)
  1025. }
  1026. },
  1027. bulkDensitychange(e) {
  1028. if (this.dataList.taskTypeKey == 4) {
  1029. this.$set(this.dataList, 'bulkDensity', e)
  1030. } else if (this.dataList1.taskTypeKey == 3) {
  1031. this.$set(this.dataList1, 'bulkDensity', e)
  1032. }
  1033. },
  1034. waterContentchange(e) {
  1035. if (this.dataList.taskTypeKey == 4) {
  1036. this.$set(this.dataList, 'waterContent', e)
  1037. } else if (this.dataList1.taskTypeKey == 3) {
  1038. this.$set(this.dataList1, 'waterContent', e)
  1039. }
  1040. },
  1041. unitPricechange(e) {
  1042. if (this.dataList.taskTypeKey == 4) {
  1043. this.$set(this.dataList, 'unitPrice', e)
  1044. } else if (this.dataList1.taskTypeKey == 3) {
  1045. this.$set(this.dataList1, 'unitPrice', e)
  1046. }
  1047. },
  1048. changecontract(e) {
  1049. if (this.dataList.taskTypeKey != 3) {
  1050. for (let i = 0; i < this.contractNoList.length; i++) {
  1051. if (this.contractNoList[i].contractNo == e) {
  1052. getGoodsName({
  1053. contractId: this.contractNoList[i].id,
  1054. contractNo: this.contractNoList[i].contractNo,
  1055. })
  1056. .toPromise()
  1057. .then((response) => {
  1058. this.$set(this.dataList, 'goodsName', response.goodsName)
  1059. this.$set(this.dataList, 'goodsNameKey', response.goodsNameKey)
  1060. this.$set(this.dataList, 'grade', response.grade)
  1061. this.$set(this.dataList, 'gradeKey', response.gradeKey)
  1062. this.$set(this.dataList, 'waterContent', response.waterContent)
  1063. this.$set(this.dataList, 'bulkDensity', response.bulkDensity)
  1064. // this.$set(this.dataList, 'weight', response.weight)
  1065. this.$set(
  1066. this.dataList,
  1067. 'unitPrice',
  1068. response.unitContractPrice
  1069. )
  1070. })
  1071. }
  1072. }
  1073. }
  1074. },
  1075. changecontract1(e) {
  1076. if (this.dataList1.taskTypeKey != 3) {
  1077. for (let i = 0; i < this.contractNoList.length; i++) {
  1078. if (this.contractNoList[i].contractNo == e) {
  1079. getGoodsName({
  1080. contractId: this.contractNoList[i].id,
  1081. contractNo: this.contractNoList[i].contractNo,
  1082. })
  1083. .toPromise()
  1084. .then((response) => {
  1085. this.$set(this.dataList1, 'goodsName', response.goodsName)
  1086. this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
  1087. this.$set(this.dataList1, 'grade', response.grade)
  1088. this.$set(this.dataList1, 'gradeKey', response.gradeKey)
  1089. this.$set(this.dataList1, 'waterContent', response.waterContent)
  1090. this.$set(this.dataList1, 'bulkDensity', response.bulkDensity)
  1091. this.$set(this.dataList1, 'weight', response.weight)
  1092. this.$set(
  1093. this.dataList1,
  1094. 'unitPrice',
  1095. response.unitContractPrice
  1096. )
  1097. })
  1098. }
  1099. }
  1100. }
  1101. },
  1102. selectstaff(e) {
  1103. for (var i = 0; i < this.staffList.length; i++) {
  1104. if (this.staffList[i].staffName == e) {
  1105. this.dataList.agentKey = this.staffList[i].staffId
  1106. }
  1107. }
  1108. },
  1109. selectstaff1(e) {
  1110. for (var i = 0; i < this.staffList.length; i++) {
  1111. if (this.staffList[i].staffName == e) {
  1112. this.dataList1.agentKey = this.staffList[i].staffId
  1113. }
  1114. }
  1115. },
  1116. requestadd(list, status) {
  1117. list.compId = sessionStorage.getItem('ws-pf_compId')
  1118. list.publisher =
  1119. sessionStorage.getItem('ws-pf_roleName') +
  1120. sessionStorage.getItem('ws-pf_staffName')
  1121. warehousetask(list)
  1122. .toPromise()
  1123. .then((response) => {
  1124. woekflowhandle({
  1125. taskId: list.taskId,
  1126. approved: true,
  1127. auditMind: '34',
  1128. needReapply: false,
  1129. })
  1130. .toPromise()
  1131. .then((response) => {
  1132. this.$message.success('审核成功')
  1133. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  1134. })
  1135. })
  1136. },
  1137. requestaudit(list, status) {
  1138. list.compId = sessionStorage.getItem('ws-pf_compId')
  1139. list.publisher =
  1140. sessionStorage.getItem('ws-pf_roleName') +
  1141. sessionStorage.getItem('ws-pf_staffName')
  1142. warehousetask(list)
  1143. .toPromise()
  1144. .then((response) => {
  1145. woekflowhandle({
  1146. taskId: list.taskId,
  1147. approved: false,
  1148. auditMind: this.auditMind,
  1149. needReapply: true,
  1150. })
  1151. .toPromise()
  1152. .then((response) => {
  1153. this.$message.success('驳回成功')
  1154. this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
  1155. })
  1156. })
  1157. },
  1158. //提交按钮
  1159. submit() {
  1160. this.dataList.inOutFlag = 1
  1161. this.dataList1.inOutFlag = 2
  1162. if (this.dataList.taskTypeKey == 1) {
  1163. this.requestadd(this.dataList)
  1164. } else if (this.dataList1.taskTypeKey == 2) {
  1165. this.requestadd(this.dataList1)
  1166. } else if (
  1167. this.dataList.taskTypeKey == 3 ||
  1168. this.dataList.taskTypeKey == 4
  1169. ) {
  1170. this.requestadd(this.dataList, 'repetition')
  1171. if (!this.deletetask) {
  1172. this.requestadd(this.dataList1, 'repetition')
  1173. }
  1174. }
  1175. },
  1176. disableReasons() {
  1177. this.dataList.inOutFlag = 1
  1178. this.dataList1.inOutFlag = 2
  1179. if (!this.auditMind) {
  1180. this.$message({
  1181. message: '驳回原因不能为空!',
  1182. type: 'warning',
  1183. })
  1184. return
  1185. }
  1186. if (this.dataList.taskTypeKey == 1) {
  1187. this.requestaudit(this.dataList)
  1188. } else if (this.dataList1.taskTypeKey == 2) {
  1189. this.requestaudit(this.dataList1)
  1190. } else if (
  1191. this.dataList.taskTypeKey == 3 ||
  1192. this.dataList.taskTypeKey == 4
  1193. ) {
  1194. this.requestaudit(this.dataList, 'repetition')
  1195. if (!this.deletetask) {
  1196. this.requestaudit(this.dataList1, 'repetition')
  1197. }
  1198. }
  1199. },
  1200. selectwarehouseName() {},
  1201. tarechange(e) {
  1202. if (this.dataList.grossWeight && this.dataList.tare) {
  1203. this.dataList.netWeight = Number(
  1204. this.dataList.grossWeight - this.dataList.tare
  1205. )
  1206. }
  1207. },
  1208. grossWeightchange(e) {
  1209. if (this.dataList.grossWeight && this.dataList.tare) {
  1210. this.dataList.netWeight = Number(
  1211. this.dataList.grossWeight - this.dataList.tare
  1212. )
  1213. }
  1214. },
  1215. selectgoodsName(e) {
  1216. for (var i = 0; i < this.goodnameList.length; i++) {
  1217. if (this.goodnameList[i].constValue == e) {
  1218. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  1219. }
  1220. }
  1221. },
  1222. selectgoodsName1(e) {
  1223. for (var i = 0; i < this.goodnameList.length; i++) {
  1224. if (this.goodnameList[i].constValue == e) {
  1225. this.dataList1.goodsNameKey = this.goodnameList[i].constKey
  1226. }
  1227. }
  1228. },
  1229. selectpackingMethod(e) {
  1230. for (var i = 0; i < this.gradeList.length; i++) {
  1231. if (this.gradeList[i].constValue == e) {
  1232. this.dataList.gradeKey = this.gradeList[i].constKey
  1233. if (this.dataList.taskTypeKey == 3) {
  1234. this.$set(this.dataList1, 'grade', e)
  1235. this.$set(this.dataList1, 'gradeKey', this.gradeList[i].constKey)
  1236. }
  1237. }
  1238. }
  1239. },
  1240. selectpackingMethod1(e) {
  1241. for (var i = 0; i < this.gradeList.length; i++) {
  1242. if (this.gradeList[i].constValue == e) {
  1243. this.dataList1.packingMethodKey = this.gradeList[i].constKey
  1244. if (this.dataList1.taskTypeKey == 4) {
  1245. this.$set(this.dataList, 'grade', e)
  1246. this.$set(this.dataList, 'gradeKey', this.gradeList[i].constKey)
  1247. }
  1248. }
  1249. }
  1250. },
  1251. selectstorageType(e) {
  1252. for (var i = 0; i < this.storageType.length; i++) {
  1253. if (this.storageType[i].constValue == e) {
  1254. this.dataList.inOutTypeKey = this.storageType[i].constKey
  1255. }
  1256. }
  1257. },
  1258. selectstorageType1(e) {
  1259. for (var i = 0; i < this.storageType1.length; i++) {
  1260. if (this.storageType1[i].constValue == e) {
  1261. this.dataList1.inOutTypeKey = this.storageType1[i].constKey
  1262. }
  1263. }
  1264. },
  1265. handleClose() {
  1266. this.accessoryTFs = false
  1267. },
  1268. handleSizeChange(val) {
  1269. console.log(`每页 ${val} 条`)
  1270. this.pageSize = val
  1271. this.getList()
  1272. },
  1273. businessDescriptionchange(e) {
  1274. console.log(e)
  1275. },
  1276. handleCurrentChange(val) {
  1277. this.currentPage = val
  1278. console.log(`当前页: ${val}`)
  1279. this.getList()
  1280. },
  1281. tasknumber() {
  1282. if (this.dataList.taskTypeKey == 1) {
  1283. this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
  1284. } else if (this.dataList.taskTypeKey == 2) {
  1285. this.inOutTaskNo1 = 'RK' + this.getdate() + this.MathRand()
  1286. } else if (this.dataList.taskTypeKey == 3) {
  1287. var random = this.getdate() + this.MathRand()
  1288. this.inOutTaskNo = 'YKC' + random
  1289. this.inOutTaskNo1 = 'YKR' + random
  1290. } else if (this.dataList.taskTypeKey == 4) {
  1291. var random = this.getdate() + this.MathRand()
  1292. this.inOutTaskNo = 'TCC' + random
  1293. this.inOutTaskNo1 = 'TCR' + random
  1294. }
  1295. },
  1296. tasktypechange(e) {
  1297. if (!this.$route.query.relevanceId) {
  1298. this.tasknumber()
  1299. }
  1300. this.dataList1.taskTypeKey = e
  1301. if (this.dataList.taskTypeKey == 1) {
  1302. this.dataList.inOutType = '销售出库'
  1303. this.dataList.inOutTypeKey = '1'
  1304. }
  1305. if (this.dataList1.taskTypeKey == 2) {
  1306. this.dataList1.inOutType = '采购入库'
  1307. this.dataList1.inOutTypeKey = '1'
  1308. } else if (this.dataList1.taskTypeKey == 3) {
  1309. this.disabled = true
  1310. this.dataList1.inOutType = '移库入库'
  1311. this.dataList1.inOutTypeKey = '3'
  1312. this.dataList.inOutType = '移库出库'
  1313. this.dataList.inOutTypeKey = '3'
  1314. } else if (this.dataList1.taskTypeKey == 4) {
  1315. this.disabled = true
  1316. this.dataList1.inOutType = '退库'
  1317. this.dataList1.inOutTypeKey = '6'
  1318. this.dataList.inOutType = '销售出库'
  1319. this.dataList.inOutTypeKey = '1'
  1320. }
  1321. },
  1322. GetRandomNum(Min, Max) {
  1323. var Range = Max - Min
  1324. var Rand = Math.random()
  1325. return Min + Math.round(Rand * Range)
  1326. },
  1327. getList() {
  1328. gettaskhistories({
  1329. businessKey: this.$route.query.businessKey,
  1330. workflowId: this.$route.query.workflowId,
  1331. })
  1332. .toPromise()
  1333. .then((response) => {
  1334. this.taskhistories = response
  1335. })
  1336. if (this.$route.query.relevanceId) {
  1337. outexamine({ relevanceId: this.$route.query.relevanceId })
  1338. .toPromise()
  1339. .then((response) => {
  1340. if (response.length > 1) {
  1341. if (response[0].taskTypeKey == 3) {
  1342. if (response[0].inOutType == '移库出库') {
  1343. this.dataList = response[0]
  1344. this.dataList1 = response[1]
  1345. } else {
  1346. this.dataList = response[1]
  1347. this.dataList1 = response[0]
  1348. }
  1349. }
  1350. } else {
  1351. if (response[0].taskTypeKey == 3) {
  1352. this.deletetask = true
  1353. this.dataList1.inOutTaskNo =
  1354. 'YKR' +
  1355. response[0].inOutTaskNo.substr(
  1356. response[0].inOutTaskNo.indexOf('C') + 1,
  1357. response[0].inOutTaskNo.length
  1358. )
  1359. } else if (response[0].taskTypeKey == 2) {
  1360. this.dataList1 = response[0]
  1361. }
  1362. this.dataList = response[0]
  1363. }
  1364. })
  1365. } else {
  1366. this.tasknumber()
  1367. this.$set(this.dataList, 'inOutType', '销售出库')
  1368. this.$set(this.dataList, 'inOutTypeKey', '1')
  1369. this.$set(this.dataList, 'goodsName', '玉米')
  1370. this.$set(this.dataList, 'goodsNameKey', '1')
  1371. this.$set(this.dataList, 'grade', '一等品')
  1372. this.$set(this.dataList, 'gradeKey', '1')
  1373. this.$set(this.dataList1, 'goodsName', '玉米')
  1374. this.$set(this.dataList1, 'goodsNameKey', '1')
  1375. this.$set(this.dataList1, 'grade', '一等品')
  1376. this.$set(this.dataList1, 'gradeKey', '1')
  1377. }
  1378. // 货名
  1379. pullDown({ constId: 'CON2' })
  1380. .toPromise()
  1381. .then((response) => {
  1382. this.goodnameList = response
  1383. })
  1384. // 品级
  1385. pullDown({ constId: 'CON3' })
  1386. .toPromise()
  1387. .then((response) => {
  1388. this.gradeList = response
  1389. })
  1390. pullDown({ constId: 'CON6' })
  1391. .toPromise()
  1392. .then((response) => {
  1393. this.storageType = response
  1394. })
  1395. pullDown({ constId: 'CON5' })
  1396. .toPromise()
  1397. .then((response) => {
  1398. this.storageType1 = response
  1399. })
  1400. xialaNo({
  1401. compId: this.compId,
  1402. })
  1403. .toPromise()
  1404. .then((response) => {
  1405. this.contractNoList = response
  1406. })
  1407. //仓库名
  1408. getwarehousename({
  1409. compId: this.compId,
  1410. warehouseType: 1,
  1411. })
  1412. .toPromise()
  1413. .then((response) => {
  1414. this.warehouseNameList = response
  1415. for (let i = 0; i < this.warehouseNameList.length; i++) {
  1416. if (
  1417. this.dataList.warehouseName ==
  1418. this.warehouseNameList[i].warehouseName
  1419. ) {
  1420. this.binNumberList1 = this.warehouseNameList[i].positionInfos
  1421. }
  1422. if (
  1423. this.dataList1.warehouseName ==
  1424. this.warehouseNameList[i].warehouseName
  1425. ) {
  1426. this.binNumberList = this.warehouseNameList[i].positionInfos
  1427. }
  1428. }
  1429. })
  1430. getwarehousename({
  1431. compId: this.compId,
  1432. warehouseType: 2,
  1433. })
  1434. .toPromise()
  1435. .then((response) => {
  1436. this.warehouseNameList1 = response
  1437. })
  1438. //经办人
  1439. getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
  1440. .toPromise()
  1441. .then((response) => {
  1442. this.options = response
  1443. this.staffList = response
  1444. // this.agent = response
  1445. })
  1446. },
  1447. selecttaskType(e) {
  1448. for (var i = 0; i < this.taskTypeList.length; i++) {
  1449. if (this.taskTypeList[i].value == e) {
  1450. this.searchType = this.taskTypeList[i].type
  1451. }
  1452. }
  1453. },
  1454. fujian(row) {
  1455. if (
  1456. row.receiveAttachmentPath === null ||
  1457. row.receiveAttachmentPath === ''
  1458. ) {
  1459. EventBus.$emit(
  1460. 'warning',
  1461. this.$t('system.noticeCircular.NoInformation')
  1462. )
  1463. } else {
  1464. this.accessoryTFs = true
  1465. }
  1466. this.appendixIdss = row.receiveAttachmentPath
  1467. },
  1468. handleExamine(row) {
  1469. this.$router.push({
  1470. name: 'salesContractExamine',
  1471. query: { id: row.id },
  1472. })
  1473. },
  1474. // 关闭 dialog时 处理文件url 初始化upload组件
  1475. handleCloe() {
  1476. this.dialogViewSpareMoney = false
  1477. },
  1478. history(row) {
  1479. console.log(row)
  1480. billoperatehis({ id: row.id })
  1481. .toPromise()
  1482. .then((response) => {
  1483. this.historyList = response
  1484. })
  1485. },
  1486. },
  1487. }
  1488. </script>
  1489. <style lang="scss" scoped>
  1490. /deep/.basicInformation {
  1491. .el-info-table {
  1492. border: none;
  1493. position: relative;
  1494. }
  1495. .el-form-item {
  1496. width: 33.3333%;
  1497. border: none;
  1498. margin: 0;
  1499. .el-form-item__label {
  1500. text-align: left;
  1501. font-size: 14px;
  1502. font-family: PingFangSC-Regular, PingFang SC;
  1503. font-weight: 400;
  1504. color: #8890b1;
  1505. }
  1506. .el-form-item__content {
  1507. padding-left: 0px;
  1508. padding-right: 10px;
  1509. // background: #fff;
  1510. white-space: nowrap;
  1511. height: 40px;
  1512. display: flex;
  1513. -webkit-box-align: center;
  1514. align-items: center;
  1515. text-align: left;
  1516. overflow: hidden;
  1517. }
  1518. }
  1519. }
  1520. /deep/.el-radio {
  1521. color: #606266;
  1522. font-weight: 500;
  1523. line-height: 1;
  1524. cursor: pointer;
  1525. white-space: nowrap;
  1526. outline: 0;
  1527. margin-right: 30px;
  1528. margin-top: 15px;
  1529. }
  1530. /deep/.el-radio__inner {
  1531. border: 1px solid #dcdfe6;
  1532. border-radius: 100%;
  1533. width: 14px;
  1534. height: 14px;
  1535. background-color: #fff;
  1536. cursor: pointer;
  1537. -webkit-box-sizing: border-box;
  1538. box-sizing: border-box;
  1539. margin-left: 100px;
  1540. }
  1541. /deep/.el-radio__input {
  1542. white-space: nowrap;
  1543. cursor: pointer;
  1544. outline: 0;
  1545. line-height: 1;
  1546. vertical-align: middle;
  1547. margin-top: -1px;
  1548. }
  1549. .title {
  1550. position: relative;
  1551. padding-left: 10px;
  1552. }
  1553. .title::before {
  1554. content: '';
  1555. display: inline-block;
  1556. width: 5px;
  1557. height: 30px;
  1558. background: #5473e8;
  1559. position: absolute;
  1560. left: 0;
  1561. }
  1562. .el-form {
  1563. padding: 0 15%;
  1564. display: flex;
  1565. flex-wrap: wrap;
  1566. margin-left: -50px;
  1567. margin-top: 15px;
  1568. width: 110%;
  1569. }
  1570. .el-button--primary {
  1571. background-color: #5878e8;
  1572. border-color: #5878e8;
  1573. }
  1574. .el-col {
  1575. background: #f6f7fc;
  1576. }
  1577. .bg-right {
  1578. text-align: right;
  1579. padding: 16px 20px;
  1580. }
  1581. .center {
  1582. height: 100px;
  1583. margin: 10px auto;
  1584. margin-right: 180px;
  1585. }
  1586. /deep/.el-form-item__label {
  1587. width: 160px;
  1588. }
  1589. .inspector {
  1590. width: 50%;
  1591. }
  1592. /deep/.el-form-item--small .el-form-item__label,
  1593. .el-form-item--small .el-form-item__content {
  1594. text-align: left;
  1595. }
  1596. /deep/.el-input--small {
  1597. font-size: 13px;
  1598. position: relative;
  1599. display: inline-block;
  1600. }
  1601. .center1 .small-title {
  1602. margin-left: 323px;
  1603. }
  1604. .center1 {
  1605. width: 90%;
  1606. margin: 0 auto;
  1607. margin-left: 10px;
  1608. margin-top: 25px;
  1609. }
  1610. /deep/.el-input--small .el-input__inner {
  1611. height: 32px;
  1612. line-height: 32px;
  1613. }
  1614. /deep/.el-select {
  1615. display: inline-block;
  1616. position: relative;
  1617. width: 100%;
  1618. }
  1619. .annu {
  1620. height: 81px;
  1621. background: #ffffff;
  1622. border-radius: 4px;
  1623. }
  1624. .basicInformation .el-form-item {
  1625. width: 50.3333%;
  1626. border: none;
  1627. margin: 0;
  1628. }
  1629. .huom {
  1630. width: 100%;
  1631. }
  1632. .el-form {
  1633. font-size: 14px;
  1634. font-family: PingFangSC-Regular, PingFang SC;
  1635. font-weight: 400;
  1636. color: #8890b1;
  1637. line-height: 16px;
  1638. margin-left: 130px;
  1639. }
  1640. .a {
  1641. margin-left: -32px;
  1642. }
  1643. .el-radio-group {
  1644. margin-left: 80px;
  1645. }
  1646. .ding {
  1647. height: 23px;
  1648. background: #e8ecf6;
  1649. box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  1650. }
  1651. .ziti {
  1652. width: 72px;
  1653. height: 20px;
  1654. font-size: 14px;
  1655. font-family: PingFangSC-Regular, PingFang SC;
  1656. font-weight: 400;
  1657. color: #8890b1;
  1658. line-height: 20px;
  1659. margin-left: 310px;
  1660. /* margin-top: 112px; */
  1661. }
  1662. .ziti1 {
  1663. width: 100px;
  1664. font-size: 16px;
  1665. font-family: PingFangSC-Medium, PingFang SC;
  1666. font-weight: 500;
  1667. color: #262626;
  1668. line-height: 22px;
  1669. margin-left: 381px;
  1670. margin-top: -21px;
  1671. }
  1672. .winseaview-view {
  1673. padding: 0 0 20px;
  1674. }
  1675. .container {
  1676. overflow: scroll;
  1677. height: 93vh;
  1678. }
  1679. .nav {
  1680. width: 381px;
  1681. height: 20px;
  1682. }
  1683. .wenzi {
  1684. margin: 0 auto;
  1685. }
  1686. </style>