warehouseManagementPerfectDelivery.vue 47 KB

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