warehouseManagementPerfectDelivery.vue 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537
  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. if(this.$route.query.addressUrl.indexOf(',')!=-1){
  703. this.dataList.addressUrl=this.$route.query.addressUrl.split(',')
  704. }else{
  705. this.dataList.addressUrl=this.$route.query.addressUrl
  706. }
  707. this.dataList.carNo = this.$route.query.carNo
  708. this.dataList.outType = this.$route.query.outType
  709. this.dataList.inOutDate = this.$route.query.inOutDate
  710. this.dataList.contractNo = this.$route.query.contractNo
  711. this.dataList.inOutType = this.$route.query.inOutType
  712. this.dataList.compId = this.$route.query.compId
  713. this.dataList.goodsName = this.$route.query.goodsName
  714. this.dataList.goodsNameKey = Number(this.$route.query.goodsNameKey)
  715. this.dataList.inOutFlag = this.$route.inOutFlag
  716. this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
  717. this.dataList.statusFlag = this.$route.statusFlag
  718. this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
  719. console.log(this.dataList)
  720. },
  721. methods: {
  722. imgBig(item){
  723. console.log(item)
  724. this.img=item
  725. this.imgshow=true
  726. },
  727. pureweight(status){
  728. console.log(this.deptBudgetList)
  729. if(this.deptBudgetList.netWeight&&this.deptBudgetList.tidalGrainWater&&this.deptBudgetList.solidGrainWater&&this.deptBudgetList.buckleWeightRatio){
  730. this.deptBudgetList.pureWeight=(this.deptBudgetList.netWeight*(100-(this.deptBudgetList.tidalGrainWater-this.deptBudgetList.solidGrainWater)*this.deptBudgetList.buckleWeightRatio))/100
  731. }
  732. },
  733. uploadSuccessHandle1(res){
  734. this.dataList.addressUrl=res.url
  735. },
  736. //返回按钮
  737. revert() {
  738. this.$router.go(-1)
  739. },
  740. dataFilter(val) {
  741. // console.log(val,"名")
  742. this.deptBudgetList.staffList = val
  743. if (val) {
  744. //val存在
  745. this.options = this.staffList.filter((item) => {
  746. if (
  747. !!~item.staffName.indexOf(val) ||
  748. !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
  749. ) {
  750. return true
  751. }
  752. })
  753. } else {
  754. //val为空时,还原数组
  755. this.options = this.staffList
  756. }
  757. },
  758. selectstaff(e) {
  759. for (var i = 0; i < this.staffList.length; i++) {
  760. if (this.staffList[i].staffName == e) {
  761. this.deptBudgetList.personChargeKey = this.staffList[i].staffId
  762. }
  763. }
  764. },
  765. //暂存按钮
  766. temporaryStorage() {
  767. this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
  768. cancelButtonText: '取消',
  769. confirmButtonText: '确定',
  770. type: 'warning',
  771. })
  772. .then(() => {
  773. this.$refs.dataList.validate((valid) => {
  774. if (valid) {
  775. this.dataList.compId = localStorage.getItem('ws-pf_compId')
  776. this.dataList.inOutFlag = 1
  777. this.dataList.statusFlag = 1
  778. addstorageputList(this.dataList)
  779. .toPromise()
  780. .then((response) => {
  781. this.$message.success('暂存成功')
  782. this.$router.go(-1)
  783. })
  784. } else {
  785. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  786. return false
  787. }
  788. })
  789. })
  790. .catch(() => {
  791. return false
  792. })
  793. },
  794. contractNoChange(e){
  795. for (var i = 0; i < this.outContractNo.length; i++) {
  796. if (this.outContractNo[i].contractNo == e) {
  797. if (this.outContractNo[i].inOutType == '销售出库') {
  798. this.deptBudgetList.inOutTypeKey = 1
  799. } else if (this.outContractNo[i].inOutType == '移库出库') {
  800. this.deptBudgetList.inOutTypeKey = 3
  801. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  802. this.deptBudgetList.inOutTypeKey = 4
  803. } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
  804. this.deptBudgetList.inOutTypeKey = 5
  805. } else if (this.detailData.inOutType == '采购出库') {
  806. this.deptBudgetList.inOutTypeKey = 6
  807. }
  808. this.dataList.goodsName = this.outContractNo[i].goodsName
  809. this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
  810. if(this.outContractNo[i].tranCarInfoList){
  811. this.options2=this.outContractNo[i].tranCarInfoList
  812. this.tranCarInfoList=this.outContractNo[i].tranCarInfoList
  813. this.carstatus=true
  814. }
  815. }
  816. }
  817. },
  818. typeChange(e){
  819. },
  820. //提交按钮
  821. submit() {
  822. if (!this.dataList.goodsName) {
  823. this.$message({
  824. message: '货名不能为空',
  825. type: 'warning',
  826. })
  827. return
  828. }
  829. if (!this.dataList.grossWeight) {
  830. this.$message({
  831. message: '毛重不能为空',
  832. type: 'warning',
  833. })
  834. return
  835. }
  836. if (
  837. this.dataList.grossWeight <= 0 ||
  838. this.dataList.grossWeight > 10000 ||
  839. (String(this.dataList.grossWeight).indexOf('.') != -1 &&
  840. String(this.dataList.grossWeight).length -
  841. (String(this.dataList.grossWeight).indexOf('.') + 1) >
  842. 3)
  843. ) {
  844. this.$message({
  845. message: '毛重输入错误',
  846. type: 'warning',
  847. })
  848. return
  849. }
  850. if (
  851. this.dataList.tare < 0 ||
  852. this.dataList.tare > 10000 ||
  853. (String(this.dataList.tare).indexOf('.') != -1 &&
  854. String(this.dataList.tare).length -
  855. (String(this.dataList.tare).indexOf('.') + 1) >
  856. 3)
  857. ) {
  858. this.$message({
  859. message: '皮重输入错误',
  860. type: 'warning',
  861. })
  862. return
  863. }
  864. if (this.dataList.type=='潮粮'&&!this.dataList.buckleWeightRatio) {
  865. this.$message({
  866. message: '扣重比不能为空',
  867. type: 'warning'
  868. })
  869. return
  870. }
  871. if (
  872. this.dataList.type=='潮粮'&&this.dataList.buckleWeightRatio < 0 ||
  873. this.dataList.type=='潮粮'&&this.dataList.buckleWeightRatio > 3 ||
  874. (this.dataList.type=='潮粮'&&String(this.dataList.buckleWeightRatio).indexOf('.') != -1 &&
  875. String(this.dataList.buckleWeightRatio).length -
  876. (String(this.dataList.buckleWeightRatio).indexOf('.') + 1) >
  877. 2)
  878. ) {
  879. this.$message({
  880. message: '扣重比输入错误',
  881. type: 'warning'
  882. })
  883. return
  884. }
  885. if (this.dataList.type=='潮粮'&&!this.dataList.tidalGrainWater) {
  886. this.$message({
  887. message: '潮粮水分不能为空',
  888. type: 'warning'
  889. })
  890. return
  891. }
  892. if (
  893. this.dataList.type=='潮粮'&&this.dataList.tidalGrainWater < 1 ||
  894. this.dataList.type=='潮粮'&&this.dataList.tidalGrainWater > 40 ||
  895. (this.dataList.type=='潮粮'&&String(this.dataList.tidalGrainWater).indexOf('.') != -1 &&
  896. String(this.dataList.tidalGrainWater).length -
  897. (String(this.dataList.tidalGrainWater).indexOf('.') + 1) >
  898. 2)
  899. ) {
  900. this.$message({
  901. message: '潮粮水分输入错误',
  902. type: 'warning'
  903. })
  904. return
  905. }
  906. if (this.dataList.type=='潮粮'&&!this.dataList.solidGrainWater) {
  907. this.$message({
  908. message: '干粮水分不能为空',
  909. type: 'warning'
  910. })
  911. return
  912. }
  913. if (
  914. this.dataList.type=='潮粮'&&this.dataList.solidGrainWater < 1 ||
  915. this.dataList.type=='潮粮'&&this.dataList.solidGrainWater > 40 ||
  916. (this.dataList.type=='潮粮'&&String(this.dataList.solidGrainWater).indexOf('.') != -1 &&
  917. String(this.dataList.solidGrainWater).length -
  918. (String(this.dataList.solidGrainWater).indexOf('.') + 1) >
  919. 1)
  920. ) {
  921. this.$message({
  922. message: '干粮水分输入错误',
  923. type: 'warning'
  924. })
  925. return
  926. }
  927. if (!this.dataList.agent) {
  928. this.$message({
  929. message: '经办人不能为空',
  930. type: 'warning',
  931. })
  932. return
  933. }
  934. if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
  935. this.$message({
  936. message: '经办人输入有误',
  937. type: 'warning',
  938. })
  939. return
  940. }
  941. if (!this.dataList.grade) {
  942. this.$message({
  943. message: '品级不能为空!',
  944. type: 'warning',
  945. })
  946. return
  947. }
  948. if (!this.dataList.inOutDate) {
  949. this.$message({
  950. message: '入库日期不能为空!',
  951. type: 'warning',
  952. })
  953. return
  954. }
  955. if (!this.dataList.inOutType) {
  956. this.$message({
  957. message: '出库类型不能为空!',
  958. type: 'warning',
  959. })
  960. return
  961. }
  962. if (!this.dataList.carNo) {
  963. this.$message({
  964. message: '车牌号不能为空',
  965. type: 'warning',
  966. })
  967. return
  968. }
  969. if (this.dataList.carNo.length > 7) {
  970. this.$message({
  971. message: '车牌号输入错误,请输入7个字符之内',
  972. type: 'warning',
  973. })
  974. return
  975. }
  976. if (this.deptBudgetList.boxNo&&this.deptBudgetList.boxNo.length > 20) {
  977. this.$message({
  978. message: '箱号-1输入错误',
  979. type: 'warning',
  980. })
  981. return
  982. }
  983. if (this.deptBudgetList.boxNoOther&&this.deptBudgetList.boxNoOther.length > 20) {
  984. this.$message({
  985. message: '箱号-2输入错误',
  986. type: 'warning',
  987. })
  988. return
  989. }
  990. if (this.deptBudgetList.titleNo&&this.deptBudgetList.titleNo.length > 20) {
  991. this.$message({
  992. message: '封号-1输入错误',
  993. type: 'warning',
  994. })
  995. return
  996. }
  997. if (this.deptBudgetList.titleNoOther&&this.deptBudgetList.titleNoOther.length > 20) {
  998. this.$message({
  999. message: '封号-2输入错误',
  1000. type: 'warning',
  1001. })
  1002. return
  1003. }
  1004. if (!this.dataList.contractNo) {
  1005. this.$message({
  1006. message: '合同编号不能为空',
  1007. type: 'warning',
  1008. })
  1009. return
  1010. }
  1011. // if (
  1012. // this.dataList.contractNo.length < 6 ||
  1013. // this.dataList.contractNo.length > 20
  1014. // ) {
  1015. // this.$message({
  1016. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1017. // type: 'warning',
  1018. // })
  1019. // return
  1020. // }
  1021. if (this.dataList.netWeight > this.$route.query.capacity) {
  1022. this.$message({
  1023. message: '入库量大于该仓库容量!',
  1024. type: 'warning',
  1025. })
  1026. return
  1027. }
  1028. //自检员
  1029. if (this.dataList.warehouseInOutDetail.qualityInspector) {
  1030. if (
  1031. this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
  1032. this.dataList.warehouseInOutDetail.qualityInspector.length > 10
  1033. ) {
  1034. this.$message({
  1035. message: '质检员姓名长度错误!',
  1036. type: 'warning',
  1037. })
  1038. return
  1039. }
  1040. }
  1041. if (this.dataList.warehouseInOutDetail.waterContent) {
  1042. if (isNaN(this.dataList.warehouseInOutDetail.waterContent)) {
  1043. this.$message({
  1044. message: '水分(%)非数字!',
  1045. type: 'warning',
  1046. })
  1047. return
  1048. }
  1049. if (
  1050. this.dataList.warehouseInOutDetail.waterContent < 1 ||
  1051. this.dataList.warehouseInOutDetail.waterContent > 40 ||
  1052. (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
  1053. '.'
  1054. ) != -1 &&
  1055. String(this.dataList.warehouseInOutDetail.waterContent).length -
  1056. (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
  1057. '.'
  1058. ) +
  1059. 1) >
  1060. 2)
  1061. ) {
  1062. this.$message({
  1063. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1064. type: 'warning',
  1065. })
  1066. return
  1067. }
  1068. }
  1069. //杂质
  1070. if (this.dataList.warehouseInOutDetail.impurity) {
  1071. if (isNaN(this.dataList.warehouseInOutDetail.impurity)) {
  1072. this.$message({
  1073. message: '杂质(%)非数字!',
  1074. type: 'warning',
  1075. })
  1076. return
  1077. }
  1078. if (
  1079. this.dataList.warehouseInOutDetail.impurity < 1 ||
  1080. this.dataList.warehouseInOutDetail.impurity > 40 ||
  1081. (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
  1082. -1 &&
  1083. String(this.dataList.warehouseInOutDetail.impurity).length -
  1084. (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
  1085. '.'
  1086. ) +
  1087. 1) >
  1088. 2)
  1089. ) {
  1090. this.$message({
  1091. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1092. type: 'warning',
  1093. })
  1094. return
  1095. }
  1096. }
  1097. //霉变
  1098. if (this.dataList.warehouseInOutDetail.mildewGrain) {
  1099. if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
  1100. this.$message({
  1101. message: '霉变粒(%)非数字!',
  1102. type: 'warning',
  1103. })
  1104. return
  1105. }
  1106. if (
  1107. this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
  1108. this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
  1109. (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
  1110. '.'
  1111. ) != -1 &&
  1112. String(this.dataList.warehouseInOutDetail.mildewGrain).length -
  1113. (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
  1114. '.'
  1115. ) +
  1116. 1) >
  1117. 2)
  1118. ) {
  1119. this.$message({
  1120. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1121. type: 'warning',
  1122. })
  1123. return
  1124. }
  1125. }
  1126. //热损伤
  1127. if (this.dataList.warehouseInOutDetail.jiaorenli) {
  1128. if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
  1129. this.$message({
  1130. message: '热损伤(%)非数字!',
  1131. type: 'warning',
  1132. })
  1133. return
  1134. }
  1135. if (
  1136. this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
  1137. this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
  1138. (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
  1139. -1 &&
  1140. String(this.dataList.warehouseInOutDetail.jiaorenli).length -
  1141. (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
  1142. '.'
  1143. ) +
  1144. 1) >
  1145. 2)
  1146. ) {
  1147. this.$message({
  1148. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1149. type: 'warning',
  1150. })
  1151. return
  1152. }
  1153. }
  1154. //不完善粒(%)
  1155. if (this.dataList.warehouseInOutDetail.imperfectGrain) {
  1156. if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
  1157. this.$message({
  1158. message: '不完善粒(%)非数字!',
  1159. type: 'warning',
  1160. })
  1161. return
  1162. }
  1163. if (
  1164. this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
  1165. this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
  1166. (String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
  1167. '.'
  1168. ) != -1 &&
  1169. String(this.dataList.warehouseInOutDetail.imperfectGrain).length -
  1170. (String(
  1171. this.dataList.warehouseInOutDetail.imperfectGrain
  1172. ).indexOf('.') +
  1173. 1) >
  1174. 2)
  1175. ) {
  1176. this.$message({
  1177. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1178. type: 'warning',
  1179. })
  1180. return
  1181. }
  1182. }
  1183. //容重
  1184. if (this.dataList.warehouseInOutDetail.bulkDensity) {
  1185. if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
  1186. this.$message({
  1187. message: '容重(克/升)非数字!',
  1188. type: 'warning',
  1189. })
  1190. return
  1191. }
  1192. if (
  1193. (this.dataList.warehouseInOutDetail.bulkDensity &&
  1194. String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
  1195. String(this.dataList.warehouseInOutDetail.bulkDensity).length -
  1196. (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
  1197. 2) || this.dataList.warehouseInOutDetail.bulkDensity > 1000 || this.dataList.warehouseInOutDetail.bulkDensity < 0
  1198. ) {
  1199. this.$message({
  1200. message: '容重输入错误',
  1201. type: 'warning',
  1202. })
  1203. return
  1204. }
  1205. }
  1206. this.$refs.dataList.validate((valid) => {
  1207. if (valid) {
  1208. this.dataList.compId = localStorage.getItem('ws-pf_compId')
  1209. this.dataList.inOutFlag = 1
  1210. this.dataList.statusFlag = 3
  1211. addstorageputList(this.dataList)
  1212. .toPromise()
  1213. .then((response) => {
  1214. this.$message.success('添加成功')
  1215. this.$router.go(-1)
  1216. })
  1217. } else {
  1218. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1219. return false
  1220. }
  1221. })
  1222. },
  1223. tarechange(e) {
  1224. if (this.dataList.grossWeight && this.dataList.tare) {
  1225. this.dataList.netWeight = Number(
  1226. this.dataList.grossWeight - this.dataList.tare
  1227. ).toFixed(2)
  1228. }
  1229. },
  1230. grossWeightchange(e) {
  1231. if (this.dataList.grossWeight && this.dataList.tare) {
  1232. this.dataList.netWeight = Number(
  1233. this.dataList.grossWeight - this.dataList.tare
  1234. ).toFixed(2)
  1235. }
  1236. },
  1237. selectgoodsName(e) {
  1238. for (var i = 0; i < this.goodnameList.length; i++) {
  1239. if (this.goodnameList[i].constValue == e) {
  1240. this.dataList.goodsNameKey = this.goodnameList[i].constKey
  1241. if(e=='玉米(潮粮)'){
  1242. this.dataList.type='潮粮'
  1243. }else{
  1244. this.dataList.type='干粮'
  1245. }
  1246. }
  1247. }
  1248. },
  1249. selectpackingMethod(e) {
  1250. for (var i = 0; i < this.packtypeList.length; i++) {
  1251. if (this.packtypeList[i].constValue == e) {
  1252. this.dataList.packingMethodKey = this.packtypeList[i].constKey
  1253. }
  1254. }
  1255. },
  1256. selectstorageType(e) {
  1257. for (var i = 0; i < this.deliveryType.length; i++) {
  1258. if (this.deliveryType[i].constValue == e) {
  1259. this.dataList.inOutTypeKey = this.deliveryType[i].constKey
  1260. }
  1261. }
  1262. },
  1263. handleClose() {
  1264. this.accessoryTFs = false
  1265. },
  1266. handleSizeChange(val) {
  1267. console.log(`每页 ${val} 条`)
  1268. this.pageSize = val
  1269. this.getList()
  1270. },
  1271. handleCurrentChange(val) {
  1272. this.currentPage = val
  1273. console.log(`当前页: ${val}`)
  1274. this.getList()
  1275. },
  1276. getList() {
  1277. // 货名
  1278. pullDown({ constId: 'CON2' })
  1279. .toPromise()
  1280. .then((response) => {
  1281. this.goodnameList = response
  1282. })
  1283. // 品级
  1284. pullDown({ constId: 'CON3' })
  1285. .toPromise()
  1286. .then((response) => {
  1287. this.gradeList = response
  1288. })
  1289. // 类型
  1290. if (this.$route.query.warehouseType == '1') {
  1291. pullDown({ constId: 'CON6' })
  1292. .toPromise()
  1293. .then((response) => {
  1294. this.deliveryType = response
  1295. })
  1296. } else if (this.$route.query.warehouseType == '2') {
  1297. //临时仓库出库类型
  1298. pullDown({ constId: 'WARE2' })
  1299. .toPromise()
  1300. .then((response) => {
  1301. this.deliveryType = response
  1302. })
  1303. }
  1304. //合同编号
  1305. xialaNo({ compId: localStorage.getItem('ws-pf_compId'),flag:5 })
  1306. .toPromise()
  1307. .then((response) => {
  1308. this.outContractNo = response
  1309. })
  1310. //经办人
  1311. getstaff({ compId: localStorage.getItem('ws-pf_compId'),warehouseId:this.dataList.baseId })
  1312. .toPromise()
  1313. .then((response) => {
  1314. this.options = response
  1315. this.staffList = response
  1316. // this.agent = response
  1317. })
  1318. },
  1319. selecttaskType(e) {
  1320. for (var i = 0; i < this.taskTypeList.length; i++) {
  1321. if (this.taskTypeList[i].value == e) {
  1322. this.searchType = this.taskTypeList[i].type
  1323. }
  1324. }
  1325. },
  1326. fujian(row) {
  1327. if (
  1328. row.receiveAttachmentPath === null ||
  1329. row.receiveAttachmentPath === ''
  1330. ) {
  1331. EventBus.$emit(
  1332. 'warning',
  1333. this.$t('system.noticeCircular.NoInformation')
  1334. )
  1335. } else {
  1336. this.accessoryTFs = true
  1337. }
  1338. this.appendixIdss = row.receiveAttachmentPath
  1339. },
  1340. handleExamine(row) {
  1341. this.$router.push({
  1342. name: 'salesContractExamine',
  1343. query: { id: row.id },
  1344. })
  1345. },
  1346. // 关闭 dialog时 处理文件url 初始化upload组件
  1347. handleCloe() {
  1348. this.dialogViewSpareMoney = false
  1349. },
  1350. history(row) {
  1351. console.log(row)
  1352. billoperatehis({ id: row.id })
  1353. .toPromise()
  1354. .then((response) => {
  1355. this.historyList = response
  1356. })
  1357. },
  1358. //删除
  1359. approve() {},
  1360. listQuery() {},
  1361. total() {},
  1362. clearfiltQuery() {},
  1363. selectCrtDuty() {},
  1364. },
  1365. }
  1366. </script>
  1367. <style lang="scss" scoped>
  1368. /deep/.basicInformation {
  1369. .ws-info-table {
  1370. border: none;
  1371. }
  1372. .left{
  1373. .el-form-item {
  1374. width: 50%;
  1375. // width: 33.3333%;
  1376. border: none;
  1377. .el-form-item__label {
  1378. background: transparent;
  1379. border: none;
  1380. }
  1381. .el-form-item__content {
  1382. border: none;
  1383. }
  1384. }
  1385. }
  1386. .right{
  1387. .el-form-item {
  1388. width: 100%;
  1389. // width: 33.3333%;
  1390. border: none;
  1391. .el-form-item__label {
  1392. background: transparent;
  1393. border: none;
  1394. }
  1395. .el-form-item__content {
  1396. border: none;
  1397. }
  1398. }
  1399. }
  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 10%;
  1416. }
  1417. .el-button--primary {
  1418. background-color: #5878e8;
  1419. border-color: #5878e8;
  1420. }
  1421. .el-col {
  1422. background: #f6f7fc;
  1423. }
  1424. .bg-right {
  1425. text-align: right;
  1426. padding: 16px 20px;
  1427. }
  1428. .center {
  1429. position: relative;
  1430. top: 50px;
  1431. width: 40%;
  1432. height: 2000px;
  1433. margin: 0 auto;
  1434. }
  1435. /deep/.el-form-item__label {
  1436. width: 160px;
  1437. }
  1438. //选填
  1439. /deep/.el-form-item {
  1440. width: 50%;
  1441. }
  1442. .container {
  1443. overflow: scroll;
  1444. height: 120vh;
  1445. }
  1446. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1447. text-align: center;
  1448. }
  1449. .deliverydate {
  1450. display: inline-block;
  1451. width: 10%;
  1452. }
  1453. .center {
  1454. margin-top: -60px;
  1455. width: 80%;
  1456. }
  1457. //仓位
  1458. .position {
  1459. width: 52px;
  1460. height: 20px;
  1461. background: #afb5cb;
  1462. border-radius: 2px;
  1463. font-size: 12px;
  1464. font-family: PingFangSC-Medium, PingFang SC;
  1465. color: #ffffff;
  1466. line-height: 20px;
  1467. }
  1468. //表格文字
  1469. /deep/.ws-info-table .el-form-item .el-form-item__label {
  1470. text-align: left;
  1471. font-size: 14px;
  1472. font-family: PingFangSC-Regular, PingFang SC;
  1473. font-weight: 400;
  1474. color: #8890b1;
  1475. line-height: 16px;
  1476. }
  1477. .inspector {
  1478. width: 50%;
  1479. }
  1480. //质检员
  1481. .inspector .el-form-item__content {
  1482. text-align: left;
  1483. margin-left: 0px;
  1484. }
  1485. /deep/[data-v-d228e17e] .el-form-item__label {
  1486. width: 60px;
  1487. }
  1488. .small-title {
  1489. position: relative;
  1490. padding: 10px;
  1491. font-weight: 600;
  1492. }
  1493. .small-title::before {
  1494. position: absolute;
  1495. content: '';
  1496. display: block;
  1497. background: #5473e8;
  1498. width: 4px;
  1499. height: 14px;
  1500. left: 0px;
  1501. top: 13px;
  1502. }
  1503. //下面列表
  1504. .neifor {
  1505. width: 80%;
  1506. background-color: #f6f7fc;
  1507. }
  1508. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  1509. width: 35%;
  1510. text-align: center;
  1511. }
  1512. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  1513. width: 60%;
  1514. background-color: #f6f7fc;
  1515. }
  1516. /deep/.neifor .el-input--small .el-input__inner {
  1517. width: 100%;
  1518. }
  1519. .el-input__inner {
  1520. width: 150px;
  1521. }
  1522. </style>