tranManagementWarehouseInOutTaskEdit.vue 67 KB

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