tranManagementWarehouseInOutTaskAudit.vue 51 KB

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