tranManagementWarehouseInOutTaskAudit.vue 48 KB

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