warehouseManagementPut.vue 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127
  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. >
  15. <img
  16. width="6"
  17. height="10"
  18. style="vertical-align: bottom; margin-right: 3px"
  19. src="../../../public/img/lujing.png"
  20. alt
  21. />返回
  22. </el-button>
  23. </el-col>
  24. </el-row>
  25. <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
  26. <div class="basicInformation">
  27. <h2>
  28. <img
  29. style="position: relative; top: 2px"
  30. width="19"
  31. height="19"
  32. src="../../../public/img/cangku.png"
  33. alt
  34. />
  35. {{ deptBudgetList.warehouseName }}
  36. <span class="position" v-show="this.$route.query.warehouseType == 1"
  37. >{{ deptBudgetList.binNumber }}仓位</span
  38. >
  39. <span v-show="this.$route.query.warehouseType == 2">(临)</span>
  40. </h2>
  41. <ws-info-table>
  42. <!--合同编号-->
  43. <ws-form-item label="合同编号" span="1" prop="contractNo">
  44. <el-select
  45. filterable
  46. :filter-method="dataFilter1"
  47. v-model="deptBudgetList.contractNo"
  48. placeholder="请选择合同编号或移库任务编号"
  49. class="typeselect"
  50. @change="contractNoChange"
  51. >
  52. <el-option
  53. v-for="item in options1"
  54. :key="item.constKey"
  55. :label="item.contractNo"
  56. :value="item.contractNo"
  57. />
  58. </el-select>
  59. </ws-form-item>
  60. <!-- 货名 -->
  61. <ws-form-item label="货名" span="1">
  62. <ws-select
  63. disabled
  64. v-model="deptBudgetList.goodsName"
  65. placeholder
  66. class="typeselect"
  67. @change="selectgoodsName"
  68. >
  69. <ws-option
  70. v-for="item in goodnameList"
  71. :key="item.constKey"
  72. :label="item.constValue"
  73. :value="item.constValue"
  74. />
  75. </ws-select>
  76. </ws-form-item>
  77. <ws-form-item label="类型" span="1" prop="type">
  78. <ws-select v-model="deptBudgetList.type" @change="typeChange">
  79. <ws-option
  80. v-for="item in typeList"
  81. :key="item"
  82. :label="item"
  83. :value="item"
  84. />
  85. </ws-select>
  86. </ws-form-item>
  87. <!--毛重(吨)-->
  88. <ws-form-item label="毛重(吨)" span="1" prop="grossWeight">
  89. <ws-input
  90. @input="grossWeightchange"
  91. v-model="deptBudgetList.grossWeight"
  92. placeholder="请输入毛重"
  93. maxlength="20"
  94. type="number"
  95. @mousewheel.native.prevent
  96. size="small"
  97. />
  98. </ws-form-item>
  99. <!--皮重(吨)-->
  100. <ws-form-item
  101. label="皮重(吨)"
  102. span="1"
  103. prop="tare"
  104. class="readonly"
  105. >
  106. <ws-input
  107. @input="tarechange"
  108. v-model="deptBudgetList.tare"
  109. placeholder="请输入皮重"
  110. type="number"
  111. @mousewheel.native.prevent
  112. maxlength="100"
  113. size="small"
  114. />
  115. </ws-form-item>
  116. <ws-form-item
  117. label="扣重(吨)"
  118. span="1"
  119. prop="deductionWeight"
  120. class="readonly"
  121. >
  122. <ws-input
  123. @input="tarechange"
  124. v-model="deptBudgetList.deductionWeight"
  125. placeholder="请输入扣重"
  126. type="number"
  127. @mousewheel.native.prevent
  128. maxlength="100"
  129. size="small"
  130. />
  131. </ws-form-item>
  132. <!--净重(吨)-->
  133. <ws-form-item label="净重(吨)" span="1" prop="netWeight">
  134. <ws-input
  135. readonly="readonly"
  136. v-model="deptBudgetList.netWeight"
  137. placeholder="不可编辑,自动计算"
  138. maxlength="120"
  139. size="small"
  140. />
  141. </ws-form-item>
  142. <ws-form-item
  143. v-if="deptBudgetList.type == '潮粮'"
  144. label="扣重比"
  145. span="1"
  146. prop="buckleWeightRatio"
  147. class="readonly"
  148. >
  149. <ws-input
  150. @input="pureweight"
  151. v-model="deptBudgetList.buckleWeightRatio"
  152. placeholder="请输入扣重比"
  153. type="number"
  154. @mousewheel.native.prevent
  155. maxlength="100"
  156. size="small"
  157. />
  158. </ws-form-item>
  159. <ws-form-item
  160. v-if="deptBudgetList.type == '潮粮'"
  161. label="干粮水分占比"
  162. span="1"
  163. prop="solidGrainWater"
  164. class="readonly"
  165. >
  166. <ws-input
  167. @input="pureweight"
  168. v-model="deptBudgetList.solidGrainWater"
  169. placeholder="请输入干粮水分占比"
  170. maxlength="100"
  171. type="number"
  172. @mousewheel.native.prevent
  173. size="small"
  174. />
  175. </ws-form-item>
  176. <ws-form-item
  177. v-if="deptBudgetList.type == '潮粮'"
  178. label="潮粮水分占比"
  179. span="1"
  180. prop="tidalGrainWater"
  181. class="readonly"
  182. >
  183. <ws-input
  184. @input="pureweight(1)"
  185. v-model="deptBudgetList.tidalGrainWater"
  186. placeholder="请输入潮粮水分占比"
  187. maxlength="100"
  188. type="number"
  189. @mousewheel.native.prevent
  190. size="small"
  191. />
  192. </ws-form-item>
  193. <ws-form-item
  194. v-if="deptBudgetList.type == '潮粮'"
  195. label="纯重"
  196. span="1"
  197. prop="pureWeight"
  198. class="readonly"
  199. >
  200. <ws-input
  201. disabled
  202. v-model="deptBudgetList.pureWeight"
  203. placeholder="不可编辑,自动计算"
  204. maxlength="100"
  205. size="small"
  206. />
  207. </ws-form-item>
  208. <!--净重(吨)-->
  209. <ws-form-item label="扣款(元/吨)" span="1" prop="deductionAmount">
  210. <ws-input
  211. @input="kkInput(deptBudgetList.deductionAmount)"
  212. v-model="deptBudgetList.deductionAmount"
  213. placeholder="请输入扣款金额"
  214. maxlength="120"
  215. size="small"
  216. />
  217. </ws-form-item>
  218. <!-- 品级 -->
  219. <ws-form-item label="品级" span="1" class="readonly">
  220. <ws-select
  221. v-model="deptBudgetList.grade"
  222. placeholder
  223. class="typeselect"
  224. @change="selectpackingMethod"
  225. >
  226. <ws-option
  227. v-for="item in gradeList"
  228. :key="item.constKey"
  229. :label="item.constValue"
  230. :value="item.constValue"
  231. />
  232. </ws-select>
  233. </ws-form-item>
  234. <!--经办人-->
  235. <ws-form-item label="经办人" span="1" prop="agent">
  236. <el-select
  237. v-model="deptBudgetList.agent"
  238. placeholder="请选择经办人"
  239. filterable
  240. clearable
  241. :filter-method="dataFilter"
  242. @change="selectstaff"
  243. >
  244. <el-option
  245. v-for="item in options"
  246. :key="item.value"
  247. :label="item.staffName"
  248. :value="item.staffName"
  249. />
  250. </el-select>
  251. </ws-form-item>
  252. <!--出库日期-->
  253. <ws-form-item
  254. label="入库日期"
  255. span="1"
  256. prop="inOutDate"
  257. class="deliverydate"
  258. >
  259. <el-date-picker
  260. v-model="deptBudgetList.inOutDate"
  261. placeholder="请选择入库日期"
  262. type="date"
  263. value-format="yyyy-MM-dd"
  264. ></el-date-picker>
  265. </ws-form-item>
  266. <!-- 入库类型 -->
  267. <ws-form-item label="入库类型" span="1">
  268. <ws-select
  269. v-model="deptBudgetList.inOutType"
  270. placeholder
  271. class="typeselect"
  272. @change="selectstorageType"
  273. :disabled="isSelectType"
  274. >
  275. <ws-option
  276. v-for="item in storageType"
  277. :key="item.constKey"
  278. :label="item.constValue"
  279. :value="item.constValue"
  280. />
  281. </ws-select>
  282. </ws-form-item>
  283. <!--车牌号 -->
  284. <ws-form-item label="车牌号" span="1" prop="carNo">
  285. <ws-input
  286. v-if="!carstatus"
  287. v-model="deptBudgetList.carNo"
  288. placeholder="请输入车牌号"
  289. maxlength="7"
  290. size="small"
  291. />
  292. <el-select
  293. v-if="carstatus"
  294. filterable
  295. :filter-method="dataFilter2"
  296. v-model="deptBudgetList.carNo"
  297. placeholder="请选择车牌号"
  298. class="typeselect"
  299. @change="carChange"
  300. >
  301. <el-option
  302. v-for="item in options2"
  303. :key="item.constKey"
  304. :label="item.carNo + '(' + item.tranCarNo + ')'"
  305. :value="item.carNo"
  306. />
  307. </el-select>
  308. </ws-form-item>
  309. <ws-form-item label="成本" span="1" prop="cost">
  310. <ws-input
  311. :disabled="disabled1"
  312. v-model="deptBudgetList.cost"
  313. placeholder="请输入成本"
  314. size="small"
  315. type="number"
  316. @mousewheel.native.prevent
  317. />
  318. <img
  319. width="17"
  320. height="18"
  321. style="vertical-align: text-top; position: relative; top: -1px"
  322. src="../../../public/img/edit.png"
  323. @click="editClick(1)"
  324. alt=""
  325. />
  326. </ws-form-item>
  327. <ws-form-item label="运费" span="1" prop="freight">
  328. <ws-input
  329. :disabled="disabled2"
  330. v-model="deptBudgetList.freight"
  331. placeholder="请输入运费"
  332. size="small"
  333. type="number"
  334. @mousewheel.native.prevent
  335. />
  336. <img
  337. width="17"
  338. height="18"
  339. style="vertical-align: text-top; position: relative; top: -1px"
  340. src="../../../public/img/edit.png"
  341. @click="editClick(2)"
  342. alt=""
  343. />
  344. </ws-form-item>
  345. <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
  346. </ws-info-table>
  347. <div
  348. v-show="
  349. this.$route.query.warehouseType == 2 &&
  350. this.deptBudgetList.createType == 2
  351. "
  352. >
  353. <el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
  354. <ws-info-table
  355. v-show="checked == true && this.deptBudgetList.createType == 2"
  356. >
  357. <!-- 出库类型 -->
  358. <ws-form-item label="出库类型" span="1" prop="temporaryOutType">
  359. <!-- v-model="deptBudgetList.deliveryType" -->
  360. <ws-select
  361. v-model="deptBudgetList.temporaryOutType"
  362. placeholder
  363. class="typeselect"
  364. >
  365. <ws-option
  366. v-for="item in deliveryType"
  367. :key="item.constKey"
  368. :label="item.constValue"
  369. :value="item.constValue"
  370. />
  371. </ws-select>
  372. </ws-form-item>
  373. <!-- 出库合同编号 -->
  374. <ws-form-item label="出库合同编号" span="1">
  375. <ws-select
  376. v-model="deptBudgetList.outContractNo"
  377. placeholder="请选择合同编号或移库任务编号"
  378. class="typeselect"
  379. >
  380. <ws-option
  381. v-for="item in outContractNo"
  382. :key="item.constKey"
  383. :label="item.contractNo"
  384. :value="item.contractNo"
  385. />
  386. </ws-select>
  387. </ws-form-item>
  388. </ws-info-table>
  389. </div>
  390. </div>
  391. <div class="small-title">上传磅单照片</div>
  392. <el-upload
  393. action="https://www.zthymaoyi.com/upload/admin"
  394. :show-file-list="false"
  395. :on-success="
  396. (res) => {
  397. uploadSuccessHandle1(res)
  398. }
  399. "
  400. class="avatar-uploader"
  401. accept=".jpg, .jpeg, .png, .gif"
  402. >
  403. <el-button size="small" type="primary">点击上传</el-button>
  404. </el-upload>
  405. <div v-if='deptBudgetList.addressUrl!=""'>
  406. <img
  407. style="width: 100px; height: 100px"
  408. :src="deptBudgetList.addressUrl"
  409. alt=""
  410. />
  411. </div>
  412. <div class="small-title">化验数据(选填)</div>
  413. <div class="inspector">
  414. <!--自检员-->
  415. <!-- <ws-form-item label="质检员" span="1" prop="qualityInspector">
  416. <ws-input
  417. v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
  418. placeholder="请输入质检员姓名"
  419. maxlength="10"
  420. size="small"
  421. />
  422. </ws-form-item> -->
  423. <ws-form-item label="质检员" span="1" prop="qualityInspector">
  424. <el-select
  425. v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
  426. placeholder="请选择质检员"
  427. filterable
  428. clearable
  429. @change="qualityInspectorChange"
  430. >
  431. <el-option
  432. v-for="item in qualityInspectorList"
  433. :key="item.value"
  434. :label="item.staffName"
  435. :value="item.staffName"
  436. />
  437. </el-select>
  438. </ws-form-item>
  439. </div>
  440. <div class="neifor">
  441. <ws-info-table>
  442. <!--水分(%)<=-->
  443. <ws-form-item label="水分(%)" span="1" prop="waterContent">
  444. <ws-input
  445. v-model="deptBudgetList.warehouseInOutDetail.waterContent"
  446. type="number"
  447. @mousewheel.native.prevent
  448. placeholder="请输入水分占比"
  449. maxlength="40"
  450. size="small"
  451. />
  452. </ws-form-item>
  453. <!--杂质(%)<=-->
  454. <ws-form-item label="杂质(%)" span="1" prop="impurity">
  455. <ws-input
  456. v-model="deptBudgetList.warehouseInOutDetail.impurity"
  457. type="number"
  458. @mousewheel.native.prevent
  459. placeholder="请输入杂质占比"
  460. maxlength="40"
  461. size="small"
  462. />
  463. </ws-form-item>
  464. <!--容重(克/升)-->
  465. <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
  466. <ws-input
  467. v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
  468. type="number"
  469. @mousewheel.native.prevent
  470. placeholder="请输入容重"
  471. maxlength="40"
  472. size="small"
  473. />
  474. </ws-form-item>
  475. <!--霉变粒(%)<=-->
  476. <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
  477. <ws-input
  478. v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
  479. type="number"
  480. @mousewheel.native.prevent
  481. placeholder="请输入霉变粒占比"
  482. maxlength="40"
  483. size="small"
  484. />
  485. </ws-form-item>
  486. <!--热损伤(%)<=-->
  487. <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
  488. <ws-input
  489. v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
  490. type="number"
  491. @mousewheel.native.prevent
  492. placeholder="请输入热损伤占比"
  493. maxlength="40"
  494. size="small"
  495. />
  496. </ws-form-item>
  497. <!--不完善粒(%)<=-->
  498. <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
  499. <ws-input
  500. v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
  501. type="number"
  502. @mousewheel.native.prevent
  503. placeholder="请输入不完善粒占比"
  504. maxlength="40"
  505. size="small"
  506. />
  507. </ws-form-item>
  508. </ws-info-table>
  509. </div>
  510. <div style="text-align: right; padding: 10px">
  511. <el-button
  512. class="bg-bottom-up"
  513. type="primary"
  514. size="small"
  515. @click="temporaryStorage()"
  516. >暂存</el-button
  517. >
  518. <el-button
  519. class="bg-bottom-up"
  520. type="primary"
  521. size="small"
  522. @click="submit()"
  523. >提交</el-button
  524. >
  525. </div>
  526. </ws-form>
  527. </div>
  528. </template>
  529. <script>
  530. import {
  531. pullDown,
  532. addstorageputList,
  533. xialaNo,
  534. getstaff,
  535. } from '@/model/warehouse/index'
  536. import Pagination from '@/components/Pagination'
  537. import WsUpload from '@/components/WsUpload'
  538. // import { dayjs, fmoney, EventBus } from 'base-core-lib'
  539. import { dayjs, EventBus } from 'base-core-lib'
  540. export default {
  541. name: 'viewSpareMoney',
  542. components: {
  543. WsUpload,
  544. Pagination,
  545. },
  546. watch: {
  547. // vesselId(val) {
  548. // this.getList()
  549. // },
  550. isShow(val) {
  551. this.showType = val
  552. },
  553. },
  554. data() {
  555. return {
  556. qualityInspectorList:[],
  557. isGetCost:false,
  558. isSelectType:true,
  559. //弹出框
  560. dialogViewSpareMoney: false,
  561. dialogApproveFormVisible: false,
  562. // 船舶类型
  563. monetaryKey: null,
  564. // 表格显示数据
  565. tableDate: [],
  566. // 是否显示
  567. showType: true,
  568. typeList: ['干粮', '潮粮'],
  569. // 年
  570. year: '',
  571. carstatus: false,
  572. deptBudgetTotal: 0,
  573. currentPage: 1,
  574. pageSize: 10,
  575. searchType: 1,
  576. searchKeyWord: '',
  577. contractType: 2,
  578. startDate: null,
  579. endDate: null,
  580. goodnameList: {},
  581. checked: true,
  582. agent: [],
  583. staffList: [],
  584. options: [],
  585. options1: [],
  586. options2: [],
  587. outContractNo1: [],
  588. outContractNo: [],
  589. // 提交类型
  590. submitType: true,
  591. storageType: [],
  592. deliveryType: [],
  593. readonly: true,
  594. appendixIdsAdd: '',
  595. uploadSuccess: {},
  596. onChange: {},
  597. gradeList: [],
  598. rules: {
  599. netWeight: [
  600. {
  601. required: true,
  602. type: 'number',
  603. message: '请输入活动名称',
  604. trigger: 'blur',
  605. },
  606. ],
  607. },
  608. size: 10,
  609. disabled1: true,
  610. disabled2: true,
  611. tranCarInfoList: [],
  612. compId: sessionStorage.getItem('ws-pf_compId'),
  613. deptCircularPage: {},
  614. packtypeList: {},
  615. date: {
  616. year: dayjs().format('YYYY'),
  617. month: dayjs().format('MM'),
  618. },
  619. contractList: [],
  620. deptBudgetList: {
  621. type: '干粮',
  622. freight: 0,
  623. cost: '',
  624. addressUrl:'',
  625. warehouseInOutDetail: {},
  626. deductionAmount:0,
  627. },
  628. historyList: [],
  629. cost:'',
  630. pickerBeginDateBefore: {
  631. disabledDate: (time) => {
  632. return time.getTime() > Date.now()
  633. },
  634. },
  635. accessoryTFs: false,
  636. }
  637. },
  638. mounted() {
  639. this.deptBudgetList.baseId = this.$route.query.baseId
  640. this.deptBudgetList.positionId = this.$route.query.positionId
  641. this.deptBudgetList.warehouseName = this.$route.query.warehouseName
  642. this.deptBudgetList.binNumber = this.$route.query.binNumber
  643. this.deptBudgetList.warehouseType = this.$route.query.warehouseType
  644. this.deptBudgetList.createType = this.$route.query.createType
  645. this.getList()
  646. this.deptBudgetList.grade = '一等品'
  647. this.deptBudgetList.gradeKey = '1'
  648. this.deptBudgetList.inOutTypeFlag=1
  649. if(this.deptBudgetList.cost){
  650. if(this.deptBudgetList.cost>this.deptBudgetList.deductionAmount){
  651. this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
  652. }
  653. else{
  654. }
  655. }
  656. // if (this.deptBudgetList.warehouseType == 1) {
  657. // // this.deptBudgetList.inOutType = '采购入库'
  658. // this.deptBudgetList.inOutTypeKey = '1'
  659. // } else {
  660. // // this.deptBudgetList.inOutType = '退库'
  661. // this.deptBudgetList.inOutTypeKey = '1'
  662. // }
  663. },
  664. methods: {
  665. qualityInspectorChange(e){
  666. console.log(e)
  667. },
  668. kkInput(val){
  669. console.log(val)
  670. if(this.isGetCost){
  671. if(this.deptBudgetList.cost>val){
  672. this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
  673. }
  674. }
  675. },
  676. uploadSuccessHandle1(res) {
  677. this.deptBudgetList.addressUrl = res.url
  678. console.log(this.deptBudgetList.addressUrl)
  679. },
  680. dataFilter1(val) {
  681. console.log(val)
  682. this.deptBudgetList.contractNo = val
  683. if (val) {
  684. //val存在
  685. this.options1 = this.outContractNo1.filter((item) => {
  686. if (
  687. !!~item.contractNo.indexOf(val) ||
  688. !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
  689. ) {
  690. return true
  691. }
  692. })
  693. } else {
  694. //val为空时,还原数组
  695. this.options1 = this.outContractNo
  696. }
  697. },
  698. dataFilter2(val) {
  699. this.deptBudgetList.carNo = val
  700. if (val) {
  701. //val存在
  702. this.options1 = this.outContractNo1.filter((item) => {
  703. if (
  704. !!~item.carNo.indexOf(val) ||
  705. !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
  706. ) {
  707. return true
  708. }
  709. })
  710. } else {
  711. //val为空时,还原数组
  712. this.options2 = this.tranCarInfoList
  713. }
  714. },
  715. editClick(status) {
  716. this.isGetCost = false
  717. if (status == 1) {
  718. this.disabled1 = !this.disabled1
  719. } else {
  720. this.disabled2 = !this.disabled2
  721. }
  722. },
  723. //返回按钮
  724. revert() {
  725. this.$router.push({ path: 'warehouseManagementList' })
  726. },
  727. carChange(e) {
  728. for (let i = 0; i < this.tranCarInfoList.length; i++) {
  729. if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
  730. this.deptBudgetList.tranCarNo=this.tranCarInfoList[i].tranCarNo
  731. this.deptBudgetList.freight = this.tranCarInfoList[i].tranPrice
  732. }
  733. }
  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. submit() {
  762. if (!this.deptBudgetList.goodsName) {
  763. this.$message({
  764. message: '货名不能为空',
  765. type: 'warning',
  766. })
  767. return
  768. }
  769. if (!this.deptBudgetList.grossWeight) {
  770. this.$message({
  771. message: '毛重不能为空',
  772. type: 'warning',
  773. })
  774. return
  775. }
  776. if (
  777. this.deptBudgetList.grossWeight < 0 ||
  778. this.deptBudgetList.grossWeight > 10000 ||
  779. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  780. String(this.deptBudgetList.grossWeight).length -
  781. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  782. 3)
  783. ) {
  784. this.$message({
  785. message: '毛重输入错误',
  786. type: 'warning',
  787. })
  788. return
  789. }
  790. if (!this.deptBudgetList.tare) {
  791. this.$message({
  792. message: '皮重不能为空',
  793. type: 'warning',
  794. })
  795. return
  796. }
  797. if (
  798. this.deptBudgetList.tare < 0 ||
  799. this.deptBudgetList.tare > 10000 ||
  800. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  801. String(this.deptBudgetList.tare).length -
  802. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  803. 3)
  804. ) {
  805. this.$message({
  806. message: '皮重输入错误',
  807. type: 'warning',
  808. })
  809. return
  810. }
  811. if (!this.deptBudgetList.deductionWeight) {
  812. this.$message({
  813. message: '扣重不能为空',
  814. type: 'warning',
  815. })
  816. return
  817. }
  818. if (
  819. this.deptBudgetList.deductionWeight < 0 ||
  820. this.deptBudgetList.deductionWeight > 10 ||
  821. (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
  822. String(this.deptBudgetList.deductionWeight).length -
  823. (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
  824. 3)
  825. ) {
  826. this.$message({
  827. message: '扣重输入错误',
  828. type: 'warning',
  829. })
  830. return
  831. }
  832. if (
  833. this.deptBudgetList.type == '潮粮' &&
  834. !this.deptBudgetList.buckleWeightRatio
  835. ) {
  836. this.$message({
  837. message: '扣重比不能为空',
  838. type: 'warning',
  839. })
  840. return
  841. }
  842. if (
  843. (this.deptBudgetList.type == '潮粮' &&
  844. this.deptBudgetList.buckleWeightRatio < 0) ||
  845. (this.deptBudgetList.type == '潮粮' &&
  846. this.deptBudgetList.buckleWeightRatio > 3) ||
  847. (this.deptBudgetList.type == '潮粮' &&
  848. String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  849. String(this.deptBudgetList.buckleWeightRatio).length -
  850. (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  851. 2)
  852. ) {
  853. this.$message({
  854. message: '扣重比输入错误',
  855. type: 'warning',
  856. })
  857. return
  858. }
  859. if (
  860. this.deptBudgetList.type == '潮粮' &&
  861. !this.deptBudgetList.tidalGrainWater
  862. ) {
  863. this.$message({
  864. message: '潮粮水分不能为空',
  865. type: 'warning',
  866. })
  867. return
  868. }
  869. if (
  870. (this.deptBudgetList.type == '潮粮' &&
  871. this.deptBudgetList.tidalGrainWater < 1) ||
  872. (this.deptBudgetList.type == '潮粮' &&
  873. this.deptBudgetList.tidalGrainWater > 40) ||
  874. (this.deptBudgetList.type == '潮粮' &&
  875. String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  876. String(this.deptBudgetList.tidalGrainWater).length -
  877. (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  878. 2)
  879. ) {
  880. this.$message({
  881. message: '潮粮水分输入错误',
  882. type: 'warning',
  883. })
  884. return
  885. }
  886. if (
  887. this.deptBudgetList.type == '潮粮' &&
  888. !this.deptBudgetList.solidGrainWater
  889. ) {
  890. this.$message({
  891. message: '干粮水分不能为空',
  892. type: 'warning',
  893. })
  894. return
  895. }
  896. if (
  897. (this.deptBudgetList.type == '潮粮' &&
  898. this.deptBudgetList.solidGrainWater < 1) ||
  899. (this.deptBudgetList.type == '潮粮' &&
  900. this.deptBudgetList.solidGrainWater > 40) ||
  901. (this.deptBudgetList.type == '潮粮' &&
  902. String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  903. String(this.deptBudgetList.solidGrainWater).length -
  904. (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  905. 1)
  906. ) {
  907. this.$message({
  908. message: '干粮水分输入错误',
  909. type: 'warning',
  910. })
  911. return
  912. }
  913. if (!String(this.deptBudgetList.deductionAmount)) {
  914. this.$message({
  915. message: '扣款不能为空',
  916. type: 'warning',
  917. })
  918. return
  919. }
  920. if (
  921. this.deptBudgetList.deductionAmount < 0 ||
  922. this.deptBudgetList.deductionAmount > 10000 ||
  923. (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
  924. String(this.deptBudgetList.deductionAmount).length -
  925. (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
  926. 2)
  927. ) {
  928. this.$message({
  929. message: '扣款输入错误',
  930. type: 'warning',
  931. })
  932. return
  933. }
  934. if (!this.deptBudgetList.cost) {
  935. this.$message({
  936. message: '未获取到成本,请编辑后提交',
  937. type: 'warning',
  938. })
  939. return
  940. }
  941. if (
  942. this.deptBudgetList.cost < 0 ||
  943. this.deptBudgetList.cost > 20000 ||
  944. (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
  945. String(this.deptBudgetList.cost).length -
  946. (String(this.deptBudgetList.cost).indexOf('.') + 1) >
  947. 2)
  948. ) {
  949. this.$message({
  950. message: '成本输入错误',
  951. type: 'warning',
  952. })
  953. return
  954. }
  955. if (!String(this.deptBudgetList.freight)) {
  956. this.$message({
  957. message: '运费不能为空',
  958. type: 'warning',
  959. })
  960. return
  961. }
  962. if (
  963. this.deptBudgetList.freight < 0 ||
  964. this.deptBudgetList.freight > 100000 ||
  965. (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
  966. String(this.deptBudgetList.freight).length -
  967. (String(this.deptBudgetList.freight).indexOf('.') + 1) >
  968. 2)
  969. ) {
  970. this.$message({
  971. message: '运费输入错误',
  972. type: 'warning',
  973. })
  974. return
  975. }
  976. if (!this.deptBudgetList.agent) {
  977. this.$message({
  978. message: '经办人不能为空',
  979. type: 'warning',
  980. })
  981. return
  982. }
  983. if (
  984. this.deptBudgetList.agent.length < 2 ||
  985. this.deptBudgetList.agent.length > 10
  986. ) {
  987. this.$message({
  988. message: '经办人输入有误',
  989. type: 'warning',
  990. })
  991. return
  992. }
  993. if (!this.deptBudgetList.grade) {
  994. this.$message({
  995. message: '品级不能为空!',
  996. type: 'warning',
  997. })
  998. return
  999. }
  1000. if (!this.deptBudgetList.inOutDate) {
  1001. this.$message({
  1002. message: '入库日期不能为空!',
  1003. type: 'warning',
  1004. })
  1005. return
  1006. }
  1007. if (!this.deptBudgetList.inOutType) {
  1008. this.$message({
  1009. message: '入库类型不能为空!',
  1010. type: 'warning',
  1011. })
  1012. return
  1013. }
  1014. if (!this.deptBudgetList.carNo) {
  1015. this.$message({
  1016. message: '车牌号不能为空',
  1017. type: 'warning',
  1018. })
  1019. return
  1020. }
  1021. if (this.deptBudgetList.carNo.length > 7) {
  1022. this.$message({
  1023. message: '车牌号输入错误,请输入7个字符之内',
  1024. type: 'warning',
  1025. })
  1026. return
  1027. }
  1028. if (!this.deptBudgetList.contractNo) {
  1029. this.$message({
  1030. message: '合同编号不能为空',
  1031. type: 'warning',
  1032. })
  1033. return
  1034. }
  1035. // if (
  1036. // this.deptBudgetList.contractNo.length < 6 ||
  1037. // this.deptBudgetList.contractNo.length > 20
  1038. // ) {
  1039. // this.$message({
  1040. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1041. // type: 'warning',
  1042. // })
  1043. // return
  1044. // }
  1045. if (!this.deptBudgetList.addressUrl) {
  1046. this.$message({
  1047. message: '附件不能为空',
  1048. type: 'warning',
  1049. })
  1050. return
  1051. }
  1052. //自检员
  1053. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1054. if (
  1055. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1056. 2 ||
  1057. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1058. ) {
  1059. this.$message({
  1060. message: '质检员姓名长度错误!',
  1061. type: 'warning',
  1062. })
  1063. return
  1064. }
  1065. }
  1066. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  1067. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  1068. this.$message({
  1069. message: '水分(%)非数字!',
  1070. type: 'warning',
  1071. })
  1072. return
  1073. }
  1074. if (
  1075. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  1076. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  1077. (String(
  1078. this.deptBudgetList.warehouseInOutDetail.waterContent
  1079. ).indexOf('.') != -1 &&
  1080. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  1081. .length -
  1082. (String(
  1083. this.deptBudgetList.warehouseInOutDetail.waterContent
  1084. ).indexOf('.') +
  1085. 1) >
  1086. 2)
  1087. ) {
  1088. this.$message({
  1089. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1090. type: 'warning',
  1091. })
  1092. return
  1093. }
  1094. }
  1095. //杂质
  1096. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  1097. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  1098. this.$message({
  1099. message: '杂质(%)非数字!',
  1100. type: 'warning',
  1101. })
  1102. return
  1103. }
  1104. if (
  1105. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  1106. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  1107. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  1108. '.'
  1109. ) != -1 &&
  1110. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  1111. (String(
  1112. this.deptBudgetList.warehouseInOutDetail.impurity
  1113. ).indexOf('.') +
  1114. 1) >
  1115. 2)
  1116. ) {
  1117. this.$message({
  1118. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1119. type: 'warning',
  1120. })
  1121. return
  1122. }
  1123. }
  1124. //霉变
  1125. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  1126. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  1127. this.$message({
  1128. message: '霉变粒(%)非数字!',
  1129. type: 'warning',
  1130. })
  1131. return
  1132. }
  1133. if (
  1134. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  1135. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  1136. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  1137. '.'
  1138. ) != -1 &&
  1139. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  1140. .length -
  1141. (String(
  1142. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  1143. ).indexOf('.') +
  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.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  1156. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  1157. this.$message({
  1158. message: '热损伤(%)非数字!',
  1159. type: 'warning',
  1160. })
  1161. return
  1162. }
  1163. if (
  1164. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  1165. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  1166. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  1167. '.'
  1168. ) != -1 &&
  1169. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  1170. (String(
  1171. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  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.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  1185. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  1186. this.$message({
  1187. message: '不完善粒(%)非数字!',
  1188. type: 'warning',
  1189. })
  1190. return
  1191. }
  1192. if (
  1193. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  1194. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  1195. (String(
  1196. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1197. ).indexOf('.') != -1 &&
  1198. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  1199. .length -
  1200. (String(
  1201. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1202. ).indexOf('.') +
  1203. 1) >
  1204. 2)
  1205. ) {
  1206. this.$message({
  1207. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1208. type: 'warning',
  1209. })
  1210. return
  1211. }
  1212. }
  1213. //容重
  1214. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  1215. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  1216. this.$message({
  1217. message: '容重(克/升)非数字!',
  1218. type: 'warning',
  1219. })
  1220. return
  1221. }
  1222. if (
  1223. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  1224. String(
  1225. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1226. ).indexOf('.') != -1 &&
  1227. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  1228. .length -
  1229. (String(
  1230. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1231. ).indexOf('.') +
  1232. 1) >
  1233. 2) ||
  1234. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  1235. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  1236. ) {
  1237. this.$message({
  1238. message: '容重输入错误',
  1239. type: 'warning',
  1240. })
  1241. return
  1242. }
  1243. }
  1244. console.log(this.deptBudgetList, '入库对象')
  1245. this.deptBudgetList.id = this.$route.query.id
  1246. this.$confirm(`确定提交入库信息`, {
  1247. cancelButtonText: '取消',
  1248. confirmButtonText: '确定',
  1249. type: 'warning',
  1250. })
  1251. .then(() => {
  1252. this.$refs.deptBudgetList.validate((valid) => {
  1253. if (valid) {
  1254. this.deptBudgetList.compId =
  1255. sessionStorage.getItem('ws-pf_compId')
  1256. this.deptBudgetList.inOutFlag = 2
  1257. this.deptBudgetList.pcFlag = 1
  1258. this.deptBudgetList.statusFlag = 3
  1259. addstorageputList(this.deptBudgetList)
  1260. .toPromise()
  1261. .then((response) => {
  1262. this.$message.success('添加成功')
  1263. this.$router.push({ path: 'warehouseManagementList' })
  1264. })
  1265. } else {
  1266. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1267. return false
  1268. }
  1269. })
  1270. })
  1271. .catch(() => {
  1272. return false
  1273. })
  1274. },
  1275. temporaryStorage() {
  1276. if (!this.deptBudgetList.goodsName) {
  1277. this.$message({
  1278. message: '货名不能为空',
  1279. type: 'warning',
  1280. })
  1281. return
  1282. }
  1283. if (!this.deptBudgetList.grossWeight) {
  1284. this.$message({
  1285. message: '毛重不能为空',
  1286. type: 'warning',
  1287. })
  1288. return
  1289. }
  1290. if (
  1291. this.deptBudgetList.grossWeight < 0 ||
  1292. this.deptBudgetList.grossWeight > 10000 ||
  1293. (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
  1294. String(this.deptBudgetList.grossWeight).length -
  1295. (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
  1296. 3)
  1297. ) {
  1298. this.$message({
  1299. message: '毛重输入错误',
  1300. type: 'warning',
  1301. })
  1302. return
  1303. }
  1304. if (!this.deptBudgetList.tare) {
  1305. this.$message({
  1306. message: '皮重不能为空',
  1307. type: 'warning',
  1308. })
  1309. return
  1310. }
  1311. if (
  1312. this.deptBudgetList.tare < 0 ||
  1313. this.deptBudgetList.tare > 10000 ||
  1314. (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
  1315. String(this.deptBudgetList.tare).length -
  1316. (String(this.deptBudgetList.tare).indexOf('.') + 1) >
  1317. 3)
  1318. ) {
  1319. this.$message({
  1320. message: '皮重输入错误',
  1321. type: 'warning',
  1322. })
  1323. return
  1324. }
  1325. if (!this.deptBudgetList.deductionWeight) {
  1326. this.$message({
  1327. message: '扣重不能为空',
  1328. type: 'warning',
  1329. })
  1330. return
  1331. }
  1332. if (
  1333. this.deptBudgetList.deductionWeight < 0 ||
  1334. this.deptBudgetList.deductionWeight > 10 ||
  1335. (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
  1336. String(this.deptBudgetList.deductionWeight).length -
  1337. (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
  1338. 3)
  1339. ) {
  1340. this.$message({
  1341. message: '扣重输入错误',
  1342. type: 'warning',
  1343. })
  1344. return
  1345. }
  1346. if (
  1347. this.deptBudgetList.type == '潮粮' &&
  1348. !this.deptBudgetList.buckleWeightRatio
  1349. ) {
  1350. this.$message({
  1351. message: '扣重比不能为空',
  1352. type: 'warning',
  1353. })
  1354. return
  1355. }
  1356. if (
  1357. (this.deptBudgetList.type == '潮粮' &&
  1358. this.deptBudgetList.buckleWeightRatio < 0) ||
  1359. (this.deptBudgetList.type == '潮粮' &&
  1360. this.deptBudgetList.buckleWeightRatio > 3) ||
  1361. (this.deptBudgetList.type == '潮粮' &&
  1362. String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
  1363. String(this.deptBudgetList.buckleWeightRatio).length -
  1364. (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
  1365. 2)
  1366. ) {
  1367. this.$message({
  1368. message: '扣重比输入错误',
  1369. type: 'warning',
  1370. })
  1371. return
  1372. }
  1373. if (
  1374. this.deptBudgetList.type == '潮粮' &&
  1375. !this.deptBudgetList.tidalGrainWater
  1376. ) {
  1377. this.$message({
  1378. message: '潮粮水分不能为空',
  1379. type: 'warning',
  1380. })
  1381. return
  1382. }
  1383. if (
  1384. (this.deptBudgetList.type == '潮粮' &&
  1385. this.deptBudgetList.tidalGrainWater < 1) ||
  1386. (this.deptBudgetList.type == '潮粮' &&
  1387. this.deptBudgetList.tidalGrainWater > 40) ||
  1388. (this.deptBudgetList.type == '潮粮' &&
  1389. String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
  1390. String(this.deptBudgetList.tidalGrainWater).length -
  1391. (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
  1392. 2)
  1393. ) {
  1394. this.$message({
  1395. message: '潮粮水分输入错误',
  1396. type: 'warning',
  1397. })
  1398. return
  1399. }
  1400. if (
  1401. this.deptBudgetList.type == '潮粮' &&
  1402. !this.deptBudgetList.solidGrainWater
  1403. ) {
  1404. this.$message({
  1405. message: '干粮水分不能为空',
  1406. type: 'warning',
  1407. })
  1408. return
  1409. }
  1410. if (
  1411. (this.deptBudgetList.type == '潮粮' &&
  1412. this.deptBudgetList.solidGrainWater < 1) ||
  1413. (this.deptBudgetList.type == '潮粮' &&
  1414. this.deptBudgetList.solidGrainWater > 40) ||
  1415. (this.deptBudgetList.type == '潮粮' &&
  1416. String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
  1417. String(this.deptBudgetList.solidGrainWater).length -
  1418. (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
  1419. 1)
  1420. ) {
  1421. this.$message({
  1422. message: '干粮水分输入错误',
  1423. type: 'warning',
  1424. })
  1425. return
  1426. }
  1427. if (!this.deptBudgetList.deductionAmount) {
  1428. this.$message({
  1429. message: '扣款不能为空',
  1430. type: 'warning',
  1431. })
  1432. return
  1433. }
  1434. if (
  1435. this.deptBudgetList.deductionAmount < 0 ||
  1436. this.deptBudgetList.deductionAmount > 10000 ||
  1437. (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
  1438. String(this.deptBudgetList.deductionAmount).length -
  1439. (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
  1440. 2)
  1441. ) {
  1442. this.$message({
  1443. message: '扣款输入错误',
  1444. type: 'warning',
  1445. })
  1446. return
  1447. }
  1448. if (!this.deptBudgetList.cost) {
  1449. this.$message({
  1450. message: '未获取到成本,请编辑后提交',
  1451. type: 'warning',
  1452. })
  1453. return
  1454. }
  1455. if (
  1456. this.deptBudgetList.cost < 0 ||
  1457. this.deptBudgetList.cost > 20000 ||
  1458. (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
  1459. String(this.deptBudgetList.cost).length -
  1460. (String(this.deptBudgetList.cost).indexOf('.') + 1) >
  1461. 2)
  1462. ) {
  1463. this.$message({
  1464. message: '成本输入错误',
  1465. type: 'warning',
  1466. })
  1467. return
  1468. }
  1469. if (!this.deptBudgetList.freight) {
  1470. this.$message({
  1471. message: '运费不能为空',
  1472. type: 'warning',
  1473. })
  1474. return
  1475. }
  1476. if (
  1477. this.deptBudgetList.freight < 0 ||
  1478. this.deptBudgetList.freight > 100000 ||
  1479. (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
  1480. String(this.deptBudgetList.freight).length -
  1481. (String(this.deptBudgetList.freight).indexOf('.') + 1) >
  1482. 2)
  1483. ) {
  1484. this.$message({
  1485. message: '运费输入错误',
  1486. type: 'warning',
  1487. })
  1488. return
  1489. }
  1490. if (!this.deptBudgetList.agent) {
  1491. this.$message({
  1492. message: '经办人不能为空',
  1493. type: 'warning',
  1494. })
  1495. return
  1496. }
  1497. if (
  1498. this.deptBudgetList.agent.length < 2 ||
  1499. this.deptBudgetList.agent.length > 10
  1500. ) {
  1501. this.$message({
  1502. message: '经办人输入有误',
  1503. type: 'warning',
  1504. })
  1505. return
  1506. }
  1507. // if (!this.deptBudgetList.carNo) {
  1508. // this.$message({
  1509. // message: '车牌号不能为空',
  1510. // type: 'warning'
  1511. // })
  1512. // return
  1513. // }
  1514. // if (this.deptBudgetList.carNo.length > 7) {
  1515. // this.$message({
  1516. // message: '车牌号输入错误,请输入7个字符之内',
  1517. // type: 'warning'
  1518. // })
  1519. // return
  1520. // }
  1521. if (!this.deptBudgetList.contractNo) {
  1522. this.$message({
  1523. message: '合同编号不能为空',
  1524. type: 'warning',
  1525. })
  1526. return
  1527. }
  1528. // if (
  1529. // this.deptBudgetList.contractNo.length < 6 ||
  1530. // this.deptBudgetList.contractNo.length > 20
  1531. // ) {
  1532. // this.$message({
  1533. // message: '合同编号长度不符合要求,请输入6-20个字符之内',
  1534. // type: 'warning',
  1535. // })
  1536. // return
  1537. // }
  1538. // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
  1539. // this.$message({
  1540. // message: '入库量大于该仓库容量!',
  1541. // type: 'warning',
  1542. // })
  1543. // return
  1544. // }
  1545. //自检员
  1546. if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
  1547. if (
  1548. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
  1549. 2 ||
  1550. this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
  1551. ) {
  1552. this.$message({
  1553. message: '质检员姓名长度错误!',
  1554. type: 'warning',
  1555. })
  1556. return
  1557. }
  1558. }
  1559. if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
  1560. if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
  1561. this.$message({
  1562. message: '水分(%)非数字!',
  1563. type: 'warning',
  1564. })
  1565. return
  1566. }
  1567. if (
  1568. this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
  1569. this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
  1570. (String(
  1571. this.deptBudgetList.warehouseInOutDetail.waterContent
  1572. ).indexOf('.') != -1 &&
  1573. String(this.deptBudgetList.warehouseInOutDetail.waterContent)
  1574. .length -
  1575. (String(
  1576. this.deptBudgetList.warehouseInOutDetail.waterContent
  1577. ).indexOf('.') +
  1578. 1) >
  1579. 2)
  1580. ) {
  1581. this.$message({
  1582. message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1583. type: 'warning',
  1584. })
  1585. return
  1586. }
  1587. }
  1588. //杂质
  1589. if (this.deptBudgetList.warehouseInOutDetail.impurity) {
  1590. if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
  1591. this.$message({
  1592. message: '杂质(%)非数字!',
  1593. type: 'warning',
  1594. })
  1595. return
  1596. }
  1597. if (
  1598. this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
  1599. this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
  1600. (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
  1601. '.'
  1602. ) != -1 &&
  1603. String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
  1604. (String(
  1605. this.deptBudgetList.warehouseInOutDetail.impurity
  1606. ).indexOf('.') +
  1607. 1) >
  1608. 2)
  1609. ) {
  1610. this.$message({
  1611. message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1612. type: 'warning',
  1613. })
  1614. return
  1615. }
  1616. }
  1617. //霉变
  1618. if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
  1619. if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
  1620. this.$message({
  1621. message: '霉变粒(%)非数字!',
  1622. type: 'warning',
  1623. })
  1624. return
  1625. }
  1626. if (
  1627. this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
  1628. this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
  1629. (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
  1630. '.'
  1631. ) != -1 &&
  1632. String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
  1633. .length -
  1634. (String(
  1635. this.deptBudgetList.warehouseInOutDetail.mildewGrain
  1636. ).indexOf('.') +
  1637. 1) >
  1638. 2)
  1639. ) {
  1640. this.$message({
  1641. message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1642. type: 'warning',
  1643. })
  1644. return
  1645. }
  1646. }
  1647. //热损伤
  1648. if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
  1649. if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
  1650. this.$message({
  1651. message: '热损伤(%)非数字!',
  1652. type: 'warning',
  1653. })
  1654. return
  1655. }
  1656. if (
  1657. this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
  1658. this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
  1659. (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
  1660. '.'
  1661. ) != -1 &&
  1662. String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
  1663. (String(
  1664. this.deptBudgetList.warehouseInOutDetail.jiaorenli
  1665. ).indexOf('.') +
  1666. 1) >
  1667. 2)
  1668. ) {
  1669. this.$message({
  1670. message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1671. type: 'warning',
  1672. })
  1673. return
  1674. }
  1675. }
  1676. //不完善粒(%)
  1677. if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
  1678. if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
  1679. this.$message({
  1680. message: '不完善粒(%)非数字!',
  1681. type: 'warning',
  1682. })
  1683. return
  1684. }
  1685. if (
  1686. this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
  1687. this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
  1688. (String(
  1689. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1690. ).indexOf('.') != -1 &&
  1691. String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
  1692. .length -
  1693. (String(
  1694. this.deptBudgetList.warehouseInOutDetail.imperfectGrain
  1695. ).indexOf('.') +
  1696. 1) >
  1697. 2)
  1698. ) {
  1699. this.$message({
  1700. message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
  1701. type: 'warning',
  1702. })
  1703. return
  1704. }
  1705. }
  1706. //容重
  1707. if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
  1708. if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
  1709. this.$message({
  1710. message: '容重(克/升)非数字!',
  1711. type: 'warning',
  1712. })
  1713. return
  1714. }
  1715. if (
  1716. (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
  1717. String(
  1718. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1719. ).indexOf('.') != -1 &&
  1720. String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
  1721. .length -
  1722. (String(
  1723. this.deptBudgetList.warehouseInOutDetail.bulkDensity
  1724. ).indexOf('.') +
  1725. 1) >
  1726. 2) ||
  1727. this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
  1728. this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
  1729. ) {
  1730. this.$message({
  1731. message: '容重输入错误',
  1732. type: 'warning',
  1733. })
  1734. return
  1735. }
  1736. }
  1737. this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
  1738. cancelButtonText: '取消',
  1739. confirmButtonText: '确定',
  1740. type: 'warning',
  1741. })
  1742. .then(() => {
  1743. this.$refs.deptBudgetList.validate((valid) => {
  1744. if (valid) {
  1745. this.deptBudgetList.compId =
  1746. sessionStorage.getItem('ws-pf_compId')
  1747. this.deptBudgetList.inOutFlag = 2
  1748. this.deptBudgetList.statusFlag = 1
  1749. let _data = JSON.parse(sessionStorage.getItem('winseaview-userInfo'))
  1750. this.deptBudgetList.backOffice = _data.content.showCompName+'-' +_data.content.staffName
  1751. addstorageputList(this.deptBudgetList)
  1752. .toPromise()
  1753. .then((response) => {
  1754. this.$message.success('暂存成功')
  1755. this.$router.push({ path: 'warehouseManagementList' })
  1756. })
  1757. } else {
  1758. EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
  1759. return false
  1760. }
  1761. })
  1762. })
  1763. .catch(() => {
  1764. return false
  1765. })
  1766. },
  1767. tarechange(e) {
  1768. if (
  1769. this.deptBudgetList.grossWeight &&
  1770. this.deptBudgetList.tare &&
  1771. this.deptBudgetList.deductionWeight
  1772. ) {
  1773. this.deptBudgetList.netWeight = Number(
  1774. this.deptBudgetList.grossWeight -
  1775. this.deptBudgetList.tare -
  1776. this.deptBudgetList.deductionWeight
  1777. )
  1778. }
  1779. },
  1780. grossWeightchange(e) {
  1781. if (
  1782. this.deptBudgetList.grossWeight &&
  1783. this.deptBudgetList.tare &&
  1784. this.deptBudgetList.deductionWeight
  1785. ) {
  1786. this.deptBudgetList.netWeight = Number(
  1787. this.deptBudgetList.grossWeight -
  1788. this.deptBudgetList.tare -
  1789. this.deptBudgetList.deductionWeight
  1790. )
  1791. }
  1792. },
  1793. contractNoChange(e) {
  1794. for (var i = 0; i < this.outContractNo.length; i++) {
  1795. if (this.outContractNo[i].contractNo == e) {
  1796. if (this.outContractNo[i].inOutType == '采购入库') {
  1797. this.deptBudgetList.inOutTypeKey = 1
  1798. } else if (this.outContractNo[i].inOutType == '移库入库') {
  1799. this.deptBudgetList.inOutTypeKey = 3
  1800. } else if (this.outContractNo[i].inOutType == '暂存入库') {
  1801. this.deptBudgetList.inOutTypeKey = 4
  1802. } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
  1803. this.deptBudgetList.inOutTypeKey = 5
  1804. } else if (this.detailData.inOutType == '退库') {
  1805. this.deptBudgetList.inOutTypeKey = 6
  1806. }
  1807. this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
  1808. this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
  1809. // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
  1810. this.cost = this.outContractNo[i].contractPrice
  1811. if(this.cost){
  1812. this.isGetCost = true
  1813. this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
  1814. }else{
  1815. this.isGetCost = false
  1816. this.deptBudgetList.cost = this.deptBudgetList.cost
  1817. }
  1818. this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
  1819. if(this.outContractNo[i].inOutType=='移库入库'){
  1820. this.isSelectType = false
  1821. }else{
  1822. this.isSelectType = true
  1823. }
  1824. if (this.outContractNo[i].tranCarInfoList) {
  1825. this.options2 = this.outContractNo[i].tranCarInfoList
  1826. this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
  1827. this.carstatus = true
  1828. }
  1829. }
  1830. }
  1831. },
  1832. typeChange(e) {},
  1833. pureweight(status) {
  1834. console.log(this.deptBudgetList)
  1835. if (
  1836. this.deptBudgetList.netWeight &&
  1837. this.deptBudgetList.tidalGrainWater &&
  1838. this.deptBudgetList.solidGrainWater &&
  1839. this.deptBudgetList.buckleWeightRatio
  1840. ) {
  1841. this.deptBudgetList.pureWeight =
  1842. (this.deptBudgetList.netWeight *
  1843. (100 -
  1844. (this.deptBudgetList.tidalGrainWater -
  1845. this.deptBudgetList.solidGrainWater) *
  1846. this.deptBudgetList.buckleWeightRatio)) /
  1847. 100
  1848. }
  1849. },
  1850. selectgoodsName(e) {
  1851. for (var i = 0; i < this.goodnameList.length; i++) {
  1852. if (this.goodnameList[i].constValue == e) {
  1853. this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
  1854. }
  1855. }
  1856. },
  1857. selectpackingMethod(e) {
  1858. for (var i = 0; i < this.packtypeList.length; i++) {
  1859. if (this.packtypeList[i].constValue == e) {
  1860. this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
  1861. }
  1862. }
  1863. },
  1864. selectstorageType(e) {
  1865. for (var i = 0; i < this.storageType.length; i++) {
  1866. if (this.storageType[i].constValue == e) {
  1867. this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
  1868. }
  1869. }
  1870. },
  1871. handleClose() {
  1872. this.accessoryTFs = false
  1873. },
  1874. handleSizeChange(val) {
  1875. console.log(`每页 ${val} 条`)
  1876. this.pageSize = val
  1877. this.getList()
  1878. },
  1879. handleCurrentChange(val) {
  1880. this.currentPage = val
  1881. console.log(`当前页: ${val}`)
  1882. this.getList()
  1883. },
  1884. getList() {
  1885. // 货名
  1886. pullDown({ constId: 'CON2' })
  1887. .toPromise()
  1888. .then((response) => {
  1889. this.goodnameList = response
  1890. })
  1891. // 品级
  1892. pullDown({ constId: 'CON3' })
  1893. .toPromise()
  1894. .then((response) => {
  1895. this.gradeList = response
  1896. })
  1897. // 类型
  1898. if (this.deptBudgetList.warehouseType == '1') {
  1899. this.storageType = []
  1900. pullDown({ constId: 'CON5' })
  1901. .toPromise()
  1902. .then((response) => {
  1903. // this.storageType = response
  1904. for(let i = 0;i<response.length;i++){
  1905. if(response[i].constValue=='移库入库'||response[i].constValue=='退库'){
  1906. this.storageType.push(response[i])
  1907. }
  1908. }
  1909. })
  1910. } else if (this.deptBudgetList.warehouseType == '2') {
  1911. pullDown({ constId: 'WARE1' })
  1912. .toPromise()
  1913. .then((response) => {
  1914. this.storageType = response
  1915. })
  1916. pullDown({ constId: 'WARE2' })
  1917. .toPromise()
  1918. .then((response) => {
  1919. this.deliveryType = response
  1920. })
  1921. }
  1922. //合同编号
  1923. xialaNo({ compId: sessionStorage.getItem('ws-pf_compId'), flag: 6 })
  1924. .toPromise()
  1925. .then((response) => {
  1926. this.options1 = response
  1927. this.outContractNo = response
  1928. })
  1929. //合同编号2
  1930. xialaNo({ compId: sessionStorage.getItem('ws-pf_compId'), flag: 7 })
  1931. .toPromise()
  1932. .then((response) => {
  1933. this.outContractNo1 = response
  1934. })
  1935. //经办人
  1936. getstaff({
  1937. compId: sessionStorage.getItem('ws-pf_compId'),
  1938. warehouseId: this.deptBudgetList.baseId,
  1939. })
  1940. .toPromise()
  1941. .then((response) => {
  1942. this.options = response
  1943. this.qualityInspectorList = response
  1944. this.staffList = response
  1945. // this.agent = response
  1946. })
  1947. },
  1948. selecttaskType(e) {
  1949. for (var i = 0; i < this.taskTypeList.length; i++) {
  1950. if (this.taskTypeList[i].value == e) {
  1951. this.searchType = this.taskTypeList[i].type
  1952. }
  1953. }
  1954. },
  1955. fujian(row) {
  1956. if (
  1957. row.receiveAttachmentPath === null ||
  1958. row.receiveAttachmentPath === ''
  1959. ) {
  1960. EventBus.$emit(
  1961. 'warning',
  1962. this.$t('system.noticeCircular.NoInformation')
  1963. )
  1964. } else {
  1965. this.accessoryTFs = true
  1966. }
  1967. this.appendixIdss = row.receiveAttachmentPath
  1968. },
  1969. handleExamine(row) {
  1970. this.$router.push({
  1971. name: 'salesContractExamine',
  1972. query: { id: row.id },
  1973. })
  1974. },
  1975. },
  1976. }
  1977. </script>
  1978. <style lang="scss" scoped>
  1979. /deep/.basicInformation {
  1980. .ws-info-table {
  1981. border: none;
  1982. }
  1983. .el-form-item {
  1984. width: 33.3333%;
  1985. border: none;
  1986. .el-form-item__label {
  1987. background: transparent;
  1988. border: none;
  1989. }
  1990. .el-form-item__content {
  1991. border: none;
  1992. }
  1993. }
  1994. }
  1995. .title {
  1996. position: relative;
  1997. padding-left: 10px;
  1998. }
  1999. .title::before {
  2000. content: '';
  2001. display: inline-block;
  2002. width: 5px;
  2003. height: 30px;
  2004. background: #5473e8;
  2005. position: absolute;
  2006. left: 0;
  2007. }
  2008. .el-form {
  2009. padding: 0 10%;
  2010. }
  2011. .el-button--primary {
  2012. background-color: #5878e8;
  2013. border-color: #5878e8;
  2014. }
  2015. .el-col {
  2016. background: #f6f7fc;
  2017. }
  2018. .bg-right {
  2019. text-align: right;
  2020. padding: 16px 20px;
  2021. }
  2022. .center {
  2023. position: relative;
  2024. top: 50px;
  2025. width: 40%;
  2026. height: 2000px;
  2027. margin: 0 auto;
  2028. }
  2029. //选填
  2030. /deep/.el-form-item {
  2031. width: 50%;
  2032. }
  2033. .container {
  2034. overflow: scroll;
  2035. height: 120vh;
  2036. }
  2037. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2038. text-align: center;
  2039. }
  2040. .deliverydate {
  2041. display: inline-block;
  2042. width: 10%;
  2043. }
  2044. .center {
  2045. margin-top: -60px;
  2046. width: 80%;
  2047. }
  2048. //仓位
  2049. .position {
  2050. background: #afb5cb;
  2051. border-radius: 2px;
  2052. font-size: 12px;
  2053. color: #ffffff;
  2054. line-height: 20px;
  2055. display: inline-grid;
  2056. padding: 2px 4px;
  2057. }
  2058. //表格文字
  2059. /deep/.ws-info-table .el-form-item .el-form-item__label {
  2060. text-align: left;
  2061. font-size: 14px;
  2062. font-family: PingFangSC-Regular, PingFang SC;
  2063. font-weight: 400;
  2064. color: #8890b1;
  2065. line-height: 16px;
  2066. }
  2067. .inspector {
  2068. width: 50%;
  2069. }
  2070. //质检员
  2071. .inspector .el-form-item__content {
  2072. text-align: left;
  2073. margin-left: 0px;
  2074. }
  2075. .small-title {
  2076. position: relative;
  2077. padding: 10px;
  2078. font-weight: 600;
  2079. }
  2080. .small-title::before {
  2081. position: absolute;
  2082. content: '';
  2083. display: block;
  2084. background: #5473e8;
  2085. width: 4px;
  2086. height: 14px;
  2087. left: 0px;
  2088. top: 13px;
  2089. padding: 4px 2px;
  2090. }
  2091. //下面列表
  2092. .neifor {
  2093. width: 80%;
  2094. background-color: #f6f7fc;
  2095. }
  2096. /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
  2097. width: 35%;
  2098. text-align: center;
  2099. }
  2100. /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
  2101. width: 60%;
  2102. background-color: #f6f7fc;
  2103. }
  2104. /deep/.neifor .el-input--small .el-input__inner {
  2105. width: 100%;
  2106. }
  2107. </style>