tranManagementWarehouseInOutTaskEdit.vue 67 KB

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