tranManagementWarehouseInOutTaskAudit.vue 47 KB

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