index.vue 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="88px"
  9. >
  10. <el-form-item label="业务编号" prop="fBillno">
  11. <el-input
  12. v-model="queryParams.fBillno"
  13. placeholder="请输入业务编号"
  14. clearable
  15. size="small"
  16. @keyup.enter.native="handleQuery"
  17. />
  18. </el-form-item>
  19. <el-form-item label="制单人" prop="createBy">
  20. <el-select
  21. v-model="queryParams.createBy"
  22. filterable
  23. remote
  24. clearable
  25. style="width: 250px"
  26. :remote-method="userRemoteMethod"
  27. placeholder="请选择制单人"
  28. >
  29. <el-option
  30. v-for="(dict, index) in userOptions"
  31. :key="index.userName"
  32. :label="dict.nickName"
  33. :value="dict.userName"
  34. ></el-option>
  35. </el-select>
  36. </el-form-item>
  37. <el-form-item label="出库日期" prop="timeInterval">
  38. <el-date-picker
  39. v-model="queryParams.timeInterval"
  40. type="daterange"
  41. value-format="yyyy-MM-dd"
  42. clearable
  43. range-separator="至"
  44. start-placeholder="开始日期"
  45. end-placeholder="结束日期"
  46. @keyup.enter.native="handleQuery">
  47. </el-date-picker>
  48. </el-form-item>
  49. <el-form-item label="贸易方式" prop="fTrademodeid">
  50. <el-select
  51. v-model="queryParams.fTrademodeid"
  52. placeholder="请选择贸易方式"
  53. clearable
  54. style="width: 250px"
  55. @keyup.enter.native="handleQuery"
  56. >
  57. <el-option
  58. v-for="(dict, index) in fTrademodeidOptions"
  59. :key="index.dictValue"
  60. :label="dict.dictLabel"
  61. :value="dict.dictValue"
  62. />
  63. </el-select>
  64. </el-form-item>
  65. <el-form-item label="货权方" prop="fCorpid">
  66. <el-select
  67. v-model="queryParams.fCorpid"
  68. filterable
  69. remote
  70. clearable
  71. style="width: 250px"
  72. @keyup.enter.native="handleQuery"
  73. :remote-method="corpsRemoteMethod"
  74. placeholder="请选择货权方"
  75. >
  76. <el-option
  77. v-for="(dict, index) in fMblnoOptions"
  78. :key="index.fId"
  79. :label="dict.fName"
  80. :value="dict.fId"
  81. ></el-option>
  82. </el-select>
  83. </el-form-item>
  84. <el-form-item label="提单号" prop="fMblno">
  85. <el-input
  86. v-model="queryParams.fMblno"
  87. placeholder="请输入提单号"
  88. clearable
  89. size="small"
  90. @keyup.enter.native="handleQuery"
  91. />
  92. </el-form-item>
  93. <el-form-item label="经营单位" prop="fSbu">
  94. <el-select
  95. v-model="queryParams.fSbu"
  96. filterable
  97. remote
  98. clearable
  99. :remote-method="fSbuRemoteMethod"
  100. @keyup.enter.native="handleQuery"
  101. style="width: 250px"
  102. placeholder="请选择经营单位"
  103. >
  104. <el-option
  105. v-for="(dict, index) in fSbuOptions"
  106. :key="index.fId"
  107. :label="dict.fName"
  108. :value="dict.fId"
  109. ></el-option>
  110. </el-select>
  111. </el-form-item>
  112. <el-form-item label="货物名称" prop="fGoodsid">
  113. <el-select
  114. v-model="queryParams.fGoodsid"
  115. filterable
  116. remote
  117. clearable
  118. :remote-method="goodsRemoteMethod"
  119. @keyup.enter.native="handleQuery"
  120. placeholder="请选择货物名称"
  121. >
  122. <el-option
  123. v-for="(dict, index) in goodsOptions"
  124. :key="index.fId"
  125. :label="dict.fName"
  126. :value="dict.fId"
  127. ></el-option>
  128. </el-select>
  129. </el-form-item>
  130. <el-form-item label="仓库" prop="fWarehouseid">
  131. <el-select
  132. v-model="queryParams.fWarehouseid"
  133. filterable
  134. :disabled="browseStatus"
  135. remote
  136. clearable
  137. style="width: 250px"
  138. :remote-method="warehouseRemoteMethod"
  139. @keyup.enter.native="handleQuery"
  140. placeholder="请选择仓库"
  141. >
  142. <el-option
  143. v-for="(dict, index) in warehouseOptions"
  144. :key="index.fId"
  145. :label="dict.fName"
  146. :value="dict.fId"
  147. ></el-option>
  148. </el-select>
  149. </el-form-item>
  150. <el-form-item>
  151. <el-button
  152. type="cyan"
  153. icon="el-icon-search"
  154. size="mini"
  155. @click="handleQuery"
  156. >搜索
  157. </el-button>
  158. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  159. >重置
  160. </el-button>
  161. </el-form-item>
  162. </el-form>
  163. <el-row :gutter="10" class="mb8">
  164. <el-col :span="1.5">
  165. <el-button
  166. type="primary"
  167. icon="el-icon-plus"
  168. size="mini"
  169. @click="handleAdd(false)"
  170. v-hasPermi="['warehouseBusiness:warehousebills:add']"
  171. >新增
  172. </el-button>
  173. </el-col>
  174. <el-col :span="1.5">
  175. <el-button
  176. type="success"
  177. icon="el-icon-edit"
  178. size="mini"
  179. :disabled="single"
  180. @click="handleUpdate"
  181. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  182. >修改
  183. </el-button>
  184. </el-col>
  185. <el-col :span="1.5">
  186. <el-button
  187. type="danger"
  188. icon="el-icon-delete"
  189. size="mini"
  190. :disabled="multiple"
  191. @click="handleDelete"
  192. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  193. >删除
  194. </el-button>
  195. </el-col>
  196. <el-col :span="1.5">
  197. <el-button
  198. type="warning"
  199. icon="el-icon-download"
  200. size="mini"
  201. @click="handleExport"
  202. v-hasPermi="['warehouseBusiness:warehousebills:export']"
  203. >导出
  204. </el-button>
  205. </el-col>
  206. <right-toolbar
  207. :showSearch.sync="showSearch"
  208. @queryTable="getList"
  209. ></right-toolbar>
  210. </el-row>
  211. <el-table
  212. v-loading="loading"
  213. :data="warehousebillsList"
  214. @selection-change="handleSelectionChange"
  215. >
  216. <el-table-column type="selection" width="55" align="center" />
  217. <el-table-column type="index" label="行号" align="center" />
  218. <el-table-column label="货权方" align="center" prop="fCorpid" />
  219. <el-table-column label="提单号" align="center" prop="fMblno" />
  220. <el-table-column label="经营单位" align="center" prop="fSbu" />
  221. <el-table-column
  222. label="出库日期"
  223. align="center"
  224. prop="createTime"
  225. width="180"
  226. ><template slot-scope="scope">
  227. <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
  228. </template>
  229. </el-table-column>
  230. <el-table-column
  231. label="贸易方式"
  232. align="center"
  233. prop="fTrademodeid"
  234. :formatter="fTrademodeidFormat"
  235. />
  236. <el-table-column label="仓库" align="center" prop="fWarehouseid" />
  237. <el-table-column label="出库件数" align="center" prop="fQty" />
  238. <!-- <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>-->
  239. <!-- <el-table-column label="货转客户名称" align="center" prop="fTocorpid" /> -->
  240. <el-table-column label="出库毛重" align="center" prop="fGrossweight" />
  241. <el-table-column label="净重" align="center" prop="fNetweight" />
  242. <el-table-column
  243. label="操作"
  244. align="center"
  245. class-name="small-padding fixed-width"
  246. width="100"
  247. >
  248. <template slot-scope="scope">
  249. <el-button
  250. size="mini"
  251. type="text"
  252. icon="el-icon-edit"
  253. @click="handleUpdate(scope.row, true)"
  254. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  255. >查看
  256. </el-button>
  257. <el-button
  258. size="mini"
  259. type="text"
  260. icon="el-icon-edit"
  261. @click="handleUpdate(scope.row, false)"
  262. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  263. >修改
  264. </el-button>
  265. <el-button
  266. size="mini"
  267. type="text"
  268. icon="el-icon-delete"
  269. v-if="scope.row.fBillstatus !== '6'"
  270. @click="handleDelete(scope.row)"
  271. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  272. >删除
  273. </el-button>
  274. </template>
  275. </el-table-column>
  276. </el-table>
  277. <pagination
  278. v-show="total > 0"
  279. :total="total"
  280. :page.sync="queryParams.pageNum"
  281. :limit.sync="queryParams.pageSize"
  282. @pagination="getList"
  283. />
  284. <!-- 添加或修改仓库主(出入库)对话框 -->
  285. <el-dialog
  286. :title="title"
  287. :visible.sync="open"
  288. :close-on-click-modal="false"
  289. width="80%"
  290. append-to-body
  291. >
  292. <el-form
  293. ref="form"
  294. :model="form"
  295. :rules="rules"
  296. label-width="120px"
  297. >
  298. <el-row>
  299. <el-col :span="8">
  300. <el-form-item label="原货权方" prop="fCorpid">
  301. <el-select
  302. v-model="form.fCorpid"
  303. filterable
  304. remote
  305. :disabled="browseStatus"
  306. style="width: 250px"
  307. :remote-method="corpsRemoteMethod"
  308. placeholder="请选择原货权方"
  309. >
  310. <el-option
  311. v-for="(dict,index) in fMblnoOptions"
  312. :key="index.fId"
  313. :label="dict.fName"
  314. :value="dict.fId"
  315. ></el-option>
  316. </el-select>
  317. </el-form-item>
  318. </el-col>
  319. <el-col :span="8">
  320. <el-form-item label="结算方式" prop="fstltypeid">
  321. <el-select
  322. v-model="form.fStltypeid"
  323. placeholder="请选择结算方式"
  324. :disabled="browseStatus"
  325. clearable
  326. style="width: 250px"
  327. >
  328. <el-option
  329. v-for="(dict,index) in fStltypeOptions"
  330. :key="index.dictValue"
  331. :label="dict.dictLabel"
  332. :value="dict.dictValue"
  333. />
  334. </el-select>
  335. </el-form-item>
  336. </el-col>
  337. <el-col :span="8">
  338. <el-form-item label="提单号" prop="fMblno">
  339. <el-input
  340. v-model="form.fMblno"
  341. style="width: 250px"
  342. :disabled="browseStatus"
  343. placeholder="手工输入"
  344. />
  345. </el-form-item>
  346. </el-col>
  347. </el-row>
  348. <el-row>
  349. <el-col :span="8">
  350. <el-form-item label="业务日期" prop="fBsdate">
  351. <el-date-picker
  352. v-model="form.fBsdate"
  353. style="width: 250px"
  354. type="date"
  355. :disabled="browseStatus"
  356. @change="changefBsdate"
  357. value-format="timestamp"
  358. placeholder="业务日期"
  359. >
  360. </el-date-picker>
  361. </el-form-item>
  362. </el-col>
  363. <el-col :span="8">
  364. <el-form-item label="仓管员" prop="fStorekeeper">
  365. <el-select
  366. v-model="form.fStorekeeper"
  367. filterable
  368. remote
  369. :disabled="browseStatus"
  370. style="width: 250px"
  371. :remote-method="userRemoteMethod"
  372. placeholder="请选择仓管员"
  373. >
  374. <el-option
  375. v-for="dict in userOptions"
  376. :key="dict.userName"
  377. :label="dict.nickName"
  378. :value="dict.userName"
  379. ></el-option>
  380. </el-select>
  381. </el-form-item>
  382. </el-col>
  383. <el-col :span="8">
  384. <el-form-item label="仓库" prop="fWarehouseid">
  385. <el-select
  386. v-model="form.fWarehouseid"
  387. filterable
  388. remote
  389. :disabled="browseStatus"
  390. style="width: 250px"
  391. :remote-method="warehouseRemoteMethod"
  392. placeholder="请选择仓库"
  393. >
  394. <el-option
  395. v-for="(dict,index) in warehouseOptions"
  396. :key="index.fId"
  397. :label="dict.fName"
  398. :value="dict.fId"
  399. ></el-option>
  400. </el-select>
  401. </el-form-item>
  402. </el-col>
  403. </el-row>
  404. <el-row>
  405. <el-col :span="8">
  406. <el-form-item label="存货编号" prop="fBscorpno">
  407. <el-input
  408. disabled
  409. v-model="form.fBscorpno"
  410. style="width: 250px"
  411. laceholder="存货编号"
  412. />
  413. </el-form-item>
  414. </el-col>
  415. <el-col :span="8">
  416. <el-form-item label="破损" prop="fifdamage">
  417. <el-select
  418. v-model="form.fIfdamage"
  419. placeholder="请选择是否破损"
  420. :disabled="browseStatus"
  421. clearable
  422. style="width: 250px"
  423. >
  424. <el-option
  425. v-for="dict in fIfdamageOptions"
  426. :key="dict.dictValue"
  427. :label="dict.dictLabel"
  428. :value="dict.dictValue"
  429. />
  430. </el-select>
  431. </el-form-item>
  432. </el-col>
  433. <el-col :span="8">
  434. <el-form-item label="过磅" prop="fifweigh">
  435. <el-select
  436. v-model="form.fIfweigh"
  437. placeholder="请选择是否过磅"
  438. :disabled="browseStatus"
  439. clearable
  440. style="width: 250px"
  441. >
  442. <el-option
  443. v-for="dict in fIfweighOptions"
  444. :key="dict.dictValue"
  445. :label="dict.dictLabel"
  446. :value="dict.dictValue"
  447. />
  448. </el-select>
  449. </el-form-item>
  450. </el-col>
  451. </el-row>
  452. <el-row>
  453. <el-col :span="8">
  454. <el-form-item label="质押" prop="fifpledge">
  455. <el-select
  456. v-model="form.fIfpledge"
  457. placeholder="请选择是否过磅"
  458. :disabled="browseStatus"
  459. clearable
  460. style="width: 250px"
  461. >
  462. <el-option
  463. v-for="dict in fIfpledgeOptions"
  464. :key="dict.dictValue"
  465. :label="dict.dictLabel"
  466. :value="dict.dictValue"
  467. />
  468. </el-select>
  469. </el-form-item>
  470. </el-col>
  471. <el-col :span="8">
  472. <el-form-item label="质押银行" prop="fbankcorpid">
  473. <el-input
  474. v-model="form.fBankcorpid"
  475. :disabled="browseStatus"
  476. laceholder="质押银行"
  477. style="width: 250px"
  478. />
  479. </el-form-item>
  480. </el-col>
  481. <el-col :span="8">
  482. <el-form-item label="计费单位" prop="ffeetunit">
  483. <el-select
  484. v-model="form.fFeetunit"
  485. placeholder="请选择计费单位"
  486. :disabled="browseStatus"
  487. clearable
  488. style="width: 250px"
  489. >
  490. <el-option
  491. v-for="dict in fFeetunitOptions"
  492. :key="dict.dictValue"
  493. :label="dict.dictLabel"
  494. :value="dict.dictValue"
  495. />
  496. </el-select>
  497. </el-form-item>
  498. </el-col>
  499. </el-row>
  500. <el-row>
  501. <el-form-item label="备注" prop="remark">
  502. <el-input
  503. style="width: 100%"
  504. v-model="form.remark"
  505. :disabled="browseStatus"
  506. type="textarea"
  507. placeholder="请输入内容"
  508. />
  509. </el-form-item>
  510. </el-row>
  511. <!--点击展开-->
  512. <el-button
  513. @click="
  514. detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
  515. "
  516. >展开</el-button
  517. >
  518. <div v-if="detailsHidden">
  519. <el-row style="margin-top: 30px">
  520. <el-col :span="8">
  521. <el-form-item label="仓库联系人" prop="fContacts">
  522. <el-input
  523. v-model="form.fContacts"
  524. style="width: 250px"
  525. placeholder="仓库联系人"
  526. />
  527. </el-form-item>
  528. </el-col>
  529. <el-col :span="8">
  530. <el-form-item label="仓库电话" prop="ftel">
  531. <el-input
  532. v-model="form.fTel"
  533. :disabled="browseStatus"
  534. style="width: 250px"
  535. placeholder="请输仓库入电话"
  536. />
  537. </el-form-item>
  538. </el-col>
  539. <el-col :span="8">
  540. <el-form-item label="船名航次" prop="fvslvoy">
  541. <el-input
  542. v-model="form.fVslvoy"
  543. :disabled="browseStatus"
  544. style="width: 250px"
  545. placeholder="船名航次"
  546. />
  547. </el-form-item>
  548. </el-col>
  549. </el-row>
  550. <el-row>
  551. <el-col :span="8">
  552. <el-form-item label="到港日期" prop="feta">
  553. <el-date-picker
  554. v-model="form.fEta"
  555. style="width: 250px"
  556. type="date"
  557. :disabled="browseStatus"
  558. value-format="timestamp"
  559. placeholder="到港日期"
  560. >
  561. </el-date-picker>
  562. </el-form-item>
  563. </el-col>
  564. <el-col :span="8">
  565. <el-form-item label="报关单号" prop="fcustomno">
  566. <el-input
  567. v-model="form.fCustomno"
  568. style="width: 250px"
  569. :disabled="browseStatus"
  570. laceholder="报关单号"
  571. />
  572. </el-form-item>
  573. </el-col>
  574. <el-col :span="8">
  575. <el-form-item label="经营单位" prop="fSbu">
  576. <el-select
  577. v-model="form.fSbu"
  578. filterable
  579. remote
  580. :disabled="browseStatus"
  581. :remote-method="fSbuRemoteMethod"
  582. style="width: 250px"
  583. placeholder="请选择经营单位"
  584. >
  585. <el-option
  586. v-for="(dict,index) in fSbuOptions"
  587. :key="index.fId"
  588. :label="dict.fName"
  589. :value="dict.fId"
  590. ></el-option>
  591. </el-select>
  592. </el-form-item>
  593. </el-col>
  594. </el-row>
  595. <el-row>
  596. <el-col :span="8">
  597. <el-form-item label="单据编号" prop="foriginalbillno">
  598. <el-input
  599. v-model="form.fOriginalbillno"
  600. style="width: 250px"
  601. :disabled="browseStatus"
  602. placeholder="单据编号"
  603. />
  604. </el-form-item>
  605. </el-col>
  606. <el-col :span="8">
  607. <el-form-item label="贸易方式" prop="fTrademodeid">
  608. <el-select
  609. v-model="form.fTrademodeid"
  610. placeholder="请选择贸易方式"
  611. :disabled="browseStatus"
  612. clearable
  613. style="width: 250px"
  614. >
  615. <el-option
  616. v-for="dict in fTrademodeidOptions"
  617. :key="dict.dictValue"
  618. :label="dict.dictLabel"
  619. :value="dict.dictValue"
  620. />
  621. </el-select>
  622. </el-form-item>
  623. </el-col>
  624. <el-col :span="8">
  625. <el-form-item label="制单人" prop="createBy">
  626. <el-input
  627. disabled
  628. v-model="form.createBy"
  629. style="width: 250px"
  630. placeholder="制单人"
  631. />
  632. </el-form-item>
  633. </el-col>
  634. </el-row>
  635. <el-row>
  636. <el-col :span="8">
  637. <el-form-item label="制单部门" prop="fDeptid">
  638. <el-select
  639. v-model="form.fDeptid"
  640. filterable
  641. disabled
  642. style="width: 250px"
  643. remote
  644. >
  645. <el-option
  646. v-for="dict in deptOptions"
  647. :key="dict.deptId"
  648. :label="dict.deptName"
  649. :value="dict.deptId"
  650. ></el-option>
  651. </el-select>
  652. </el-form-item>
  653. </el-col>
  654. <el-col :span="8">
  655. <el-form-item disabled label="制单日期" prop="fbilldate">
  656. <el-date-picker
  657. v-model="form.createTime"
  658. size="large"
  659. type="date"
  660. disabled
  661. value-format="timestamp"
  662. placeholder="制单日期"
  663. >
  664. </el-date-picker>
  665. </el-form-item>
  666. </el-col>
  667. <el-col :span="8">
  668. <el-form-item label="唛头" prop="fbarks">
  669. <el-input
  670. v-model="form.fMarks"
  671. style="width: 250px"
  672. :disabled="browseStatus"
  673. placeholder="唛头"
  674. />
  675. </el-form-item>
  676. </el-col>
  677. </el-row>
  678. </div>
  679. </el-form>
  680. <div class="dialogTableTitle flex a-center jlr">
  681. <h2>库存明细</h2>
  682. <el-button :disabled="browseStatus" @click.prevent="addRelevant()"
  683. >添加
  684. </el-button>
  685. </div>
  686. <el-table
  687. :data="dataList"
  688. ref="table"
  689. tooltip-effect="dark"
  690. border
  691. stripe
  692. :summary-method="getSummaries"
  693. show-summary
  694. >
  695. <el-table-column label="序号" type="index" width="80">
  696. </el-table-column>
  697. <el-table-column
  698. prop="fMblno"
  699. header-align="center"
  700. align="center"
  701. width="140px"
  702. label="提单号"
  703. >
  704. <template slot-scope="scope">
  705. <el-input
  706. disabled
  707. v-model="scope.row.fMblno"
  708. style="width: 250px"
  709. placeholder="手工输入"
  710. />
  711. </template>
  712. </el-table-column>
  713. <el-table-column
  714. prop="fGoodsid"
  715. header-align="center"
  716. align="center"
  717. width="140px"
  718. label="品名"
  719. >
  720. <template slot-scope="scope">
  721. <el-select
  722. v-model="scope.row.fGoodsids"
  723. filterable
  724. disabled
  725. remote
  726. :remote-method="goodsRemoteMethod"
  727. placeholder="请选择品名"
  728. >
  729. <el-option
  730. v-for="(dict,index) in goodsOptions"
  731. :key="index.fId"
  732. :label="dict.fName"
  733. :value="dict.fId"
  734. ></el-option>
  735. </el-select>
  736. </template>
  737. </el-table-column>
  738. <el-table-column
  739. prop="fcntrtype"
  740. header-align="center"
  741. align="center"
  742. width="140px"
  743. label="箱型"
  744. >
  745. <template slot-scope="scope">
  746. <el-input
  747. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  748. v-model="scope.row.fCntrtype"
  749. :disabled="browseStatus"
  750. placeholder="箱型"
  751. show-word-limit
  752. />
  753. </template>
  754. </el-table-column>
  755. <el-table-column
  756. prop="fCntqty"
  757. header-align="center"
  758. align="center"
  759. width="140px"
  760. label="箱量"
  761. >
  762. <template slot-scope="scope">
  763. <el-input
  764. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  765. v-model="scope.row.fCntqty"
  766. placeholder="箱量"
  767. :disabled="browseStatus"
  768. show-word-limit
  769. />
  770. </template>
  771. </el-table-column>
  772. <el-table-column
  773. prop="fQtyblc"
  774. header-align="center"
  775. align="center"
  776. width="180px"
  777. label="当前库存"
  778. >
  779. </el-table-column>
  780. <el-table-column
  781. prop="fgrossweight"
  782. header-align="center"
  783. width="180px"
  784. align="center"
  785. label="出库毛重"
  786. >
  787. <template slot-scope="scope">
  788. <el-input
  789. :disabled="browseStatus"
  790. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  791. v-model="scope.row.fGrossweight"
  792. placeholder="出库毛重"
  793. show-word-limit
  794. />
  795. </template>
  796. </el-table-column>
  797. <el-table-column
  798. prop="fnetweight"
  799. header-align="center"
  800. width="180px"
  801. align="center"
  802. label="出库净重"
  803. >
  804. <template slot-scope="scope">
  805. <el-input
  806. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  807. v-model="scope.row.fNetweight"
  808. :disabled="browseStatus"
  809. placeholder="出库净重"
  810. show-word-limit
  811. />
  812. </template>
  813. </el-table-column>
  814. <el-table-column
  815. prop="fqty"
  816. header-align="center"
  817. width="180px"
  818. align="center"
  819. label="出库件数"
  820. >
  821. <template slot-scope="scope">
  822. <el-input
  823. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  824. v-model="scope.row.fQty"
  825. :disabled="browseStatus"
  826. placeholder="出库件数"
  827. show-word-limit
  828. />
  829. </template>
  830. </el-table-column>
  831. <el-table-column
  832. prop="fPackagespecs"
  833. header-align="center"
  834. width="180px"
  835. align="center"
  836. label="包装规格"
  837. >
  838. <template slot-scope="scope">
  839. <el-input
  840. oninput="value=value.replace(/[^\d.]/g,'')"
  841. v-model="scope.row.fPackagespecs"
  842. :disabled="browseStatus"
  843. placeholder="包装规格"
  844. show-word-limit
  845. />
  846. </template>
  847. </el-table-column>
  848. <el-table-column
  849. prop="fwarehouselocid"
  850. header-align="center"
  851. width="150px"
  852. align="center"
  853. label="库区"
  854. >
  855. <template slot-scope="scope">
  856. <el-select
  857. v-model="scope.row.fWarehouselocid"
  858. filterable
  859. remote
  860. disabled
  861. :remote-method="kqhouseRemoteMethod"
  862. placeholder="请选择库区"
  863. >
  864. <el-option
  865. v-for="dict in kqhouseOptions"
  866. :key="dict.fId"
  867. :label="dict.fName"
  868. :disabled="browseStatus"
  869. :value="dict.fId"
  870. ></el-option>
  871. </el-select>
  872. </template>
  873. </el-table-column>
  874. <el-table-column
  875. prop="fCntrno"
  876. header-align="center"
  877. width="150px"
  878. align="center"
  879. label="箱号"
  880. >
  881. <template slot-scope="scope">
  882. <el-input
  883. v-model="scope.row.fCntrno"
  884. placeholder="箱号"
  885. :disabled="browseStatus"
  886. show-word-limit
  887. />
  888. </template>
  889. </el-table-column>
  890. <el-table-column
  891. prop="fGoodsval"
  892. header-align="center"
  893. width="150px"
  894. align="center"
  895. label="货值"
  896. >
  897. <template slot-scope="scope">
  898. <el-input
  899. oninput="value=value.replace(/[^\d.]/g,'')"
  900. v-model="scope.row.fGoodsval"
  901. placeholder="货值"
  902. :disabled="browseStatus"
  903. show-word-limit
  904. />
  905. </template>
  906. </el-table-column>
  907. <el-table-column
  908. prop="ftruckno"
  909. header-align="center"
  910. width="150px"
  911. align="center"
  912. label="车号"
  913. >
  914. <template slot-scope="scope">
  915. <el-input
  916. oninput="value=value.replace(/[^\d.]/g,'')"
  917. v-model="scope.row.fTruckno"
  918. placeholder="车号"
  919. :disabled="browseStatus"
  920. show-word-limit
  921. />
  922. </template>
  923. </el-table-column>
  924. <el-table-column
  925. prop="remark"
  926. header-align="center"
  927. width="150px"
  928. align="center"
  929. label="备注"
  930. >
  931. <template slot-scope="scope">
  932. <el-input
  933. v-model="scope.row.remark"
  934. placeholder="备注"
  935. :disabled="browseStatus"
  936. show-word-limit
  937. />
  938. </template>
  939. </el-table-column>
  940. <el-table-column
  941. header-align="center"
  942. align="center"
  943. label="操作"
  944. width="130PX"
  945. >
  946. <template slot-scope="scope">
  947. <el-button
  948. @click.native.prevent="deleteRow(scope.$index, dataList)"
  949. size="small"
  950. >移除</el-button
  951. >
  952. </template>
  953. </el-table-column>
  954. </el-table>
  955. <div class="dialogTableTitle flex a-center jlr">
  956. <h2>附件上传</h2>
  957. <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
  958. >添加
  959. </el-button>
  960. </div>
  961. <el-table
  962. :data="relevantAttachments"
  963. ref="table"
  964. tooltip-effect="dark"
  965. border
  966. stripe
  967. style="width: 100%"
  968. height="150"
  969. >
  970. <el-table-column label="序号" type="index" width="80">
  971. </el-table-column>
  972. <el-table-column
  973. prop="fName"
  974. header-align="center"
  975. align="center"
  976. label="附件名称"
  977. >
  978. <template slot-scope="scope">
  979. <el-input
  980. v-model="scope.row.fName"
  981. :disabled="browseStatus"
  982. placeholder="附件名称"
  983. show-word-limit
  984. />
  985. </template>
  986. </el-table-column>
  987. <el-table-column
  988. prop="createBy"
  989. header-align="center"
  990. align="center"
  991. label="上传人"
  992. >
  993. <template slot-scope="scope">
  994. <el-input
  995. v-model="scope.row.createBy"
  996. :disabled="browseStatus"
  997. placeholder="上传人"
  998. show-word-limit
  999. />
  1000. </template>
  1001. </el-table-column>
  1002. <el-table-column
  1003. prop="createTime"
  1004. header-align="center"
  1005. align="center"
  1006. label="上传时间"
  1007. >
  1008. <template slot-scope="scope">
  1009. <el-date-picker
  1010. v-model="scope.row.createTime"
  1011. type="date"
  1012. disabled
  1013. placeholder="上传时间"
  1014. format="yyyy-MM-dd HH:mm"
  1015. value-format="timestamp"
  1016. ></el-date-picker>
  1017. </template>
  1018. </el-table-column>
  1019. <el-table-column
  1020. prop="fUrl"
  1021. header-align="center"
  1022. align="center"
  1023. width="250PX"
  1024. label="上传附件"
  1025. >
  1026. <template slot-scope="scope">
  1027. <uploadFile @input="showFile" v-model="scope.row.fUrl" />
  1028. </template>
  1029. </el-table-column>
  1030. <el-table-column
  1031. header-align="center"
  1032. align="center"
  1033. label="操作"
  1034. width="130PX"
  1035. >
  1036. <template slot-scope="scope">
  1037. <el-button
  1038. @click.native.prevent="
  1039. deleteRow(scope.$index, relevantAttachments)
  1040. "
  1041. :disabled="browseStatus"
  1042. size="small"
  1043. >移除
  1044. </el-button>
  1045. </template>
  1046. </el-table-column>
  1047. </el-table>
  1048. <div class="dialogTableTitle flex a-center jlr">
  1049. <h2>收款信息</h2>
  1050. <el-button :disabled="browseStatus" @click.prevent="addCollection()"
  1051. >添加
  1052. </el-button>
  1053. </div>
  1054. <el-table
  1055. :data="warehouseDrList"
  1056. ref="table"
  1057. tooltip-effect="dark"
  1058. border
  1059. stripe
  1060. show-summary
  1061. :summary-method="warehouseDrSummaries"
  1062. >
  1063. <el-table-column label="序号" type="index" width="80">
  1064. </el-table-column>
  1065. <el-table-column
  1066. prop="fCorpid"
  1067. header-align="center"
  1068. align="center"
  1069. width="180px"
  1070. label="客户名称"
  1071. >
  1072. <template slot-scope="scope">
  1073. <el-select
  1074. v-model="scope.row.fCorpid"
  1075. filterable
  1076. remote
  1077. :disabled="browseStatus"
  1078. :remote-method="corpsRemoteMethod"
  1079. placeholder="客户名称"
  1080. >
  1081. <el-option
  1082. v-for="(dict,index) in KHblnoOptions"
  1083. :key="index.fId"
  1084. :label="dict.fName"
  1085. :value="dict.fId"
  1086. ></el-option>
  1087. </el-select>
  1088. </template>
  1089. </el-table-column>
  1090. <el-table-column
  1091. prop="fFeeid"
  1092. header-align="center"
  1093. align="center"
  1094. width="180px"
  1095. label="费用名称"
  1096. >
  1097. <template slot-scope="scope">
  1098. <el-select
  1099. v-model="scope.row.fFeeid"
  1100. filterable
  1101. remote
  1102. :disabled="browseStatus"
  1103. :remote-method="fWRemoteMethod"
  1104. placeholder="费用名称"
  1105. >
  1106. <el-option
  1107. v-for="dict in fWbuOptions"
  1108. :key="dict.fId"
  1109. :label="dict.fName"
  1110. :value="dict.fId"
  1111. ></el-option>
  1112. </el-select>
  1113. </template>
  1114. </el-table-column>
  1115. <el-table-column
  1116. prop="ffeeUnitid"
  1117. header-align="center"
  1118. align="center"
  1119. width="180px"
  1120. label="计价单位"
  1121. >
  1122. <template slot-scope="scope">
  1123. <!-- <el-input
  1124. v-model="scope.row.fFeeUnitid"
  1125. placeholder="计价单位"
  1126. show-word-limit
  1127. /> -->
  1128. <el-select
  1129. v-model="scope.row.fFeeUnitid"
  1130. placeholder="请选择计费单位"
  1131. @change="changeFeeUnit(scope.row)"
  1132. :disabled="browseStatus"
  1133. clearable
  1134. >
  1135. <el-option
  1136. v-for="dict in jFeetunitOptions"
  1137. :key="dict.dictValue"
  1138. :label="dict.dictLabel"
  1139. :value="dict.dictValue"
  1140. />
  1141. </el-select>
  1142. </template>
  1143. </el-table-column>
  1144. <el-table-column
  1145. prop="fQty"
  1146. header-align="center"
  1147. align="center"
  1148. width="150px"
  1149. label="数量"
  1150. >
  1151. <template slot-scope="scope">
  1152. <el-input
  1153. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1154. v-model="scope.row.fQty"
  1155. placeholder="数量"
  1156. :disabled="browseStatus"
  1157. @change="changeEstmateAmt(scope.row)"
  1158. show-word-limit
  1159. />
  1160. </template>
  1161. </el-table-column>
  1162. <el-table-column
  1163. prop="funitprice"
  1164. header-align="center"
  1165. align="center"
  1166. width="150px"
  1167. label="单价"
  1168. >
  1169. <template slot-scope="scope">
  1170. <el-input
  1171. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1172. v-model="scope.row.fUnitprice"
  1173. placeholder="单价"
  1174. :disabled="browseStatus"
  1175. @change="changeContractAmt(scope.row)"
  1176. show-word-limit
  1177. />
  1178. </template>
  1179. </el-table-column>
  1180. <el-table-column
  1181. prop="fAmount"
  1182. header-align="center"
  1183. align="center"
  1184. width="150px"
  1185. label="金额"
  1186. >
  1187. <template slot-scope="scope">
  1188. <el-input
  1189. disabled
  1190. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1191. v-model="scope.row.fAmount"
  1192. placeholder="金额"
  1193. show-word-limit
  1194. />
  1195. </template>
  1196. </el-table-column>
  1197. <el-table-column
  1198. prop="fCurrency"
  1199. header-align="center"
  1200. align="center"
  1201. width="150px"
  1202. label="币别"
  1203. >
  1204. <template slot-scope="scope">
  1205. <el-input
  1206. v-model="scope.row.fCurrency"
  1207. :disabled="browseStatus"
  1208. placeholder="币别"
  1209. show-word-limit
  1210. />
  1211. </template>
  1212. </el-table-column>
  1213. <el-table-column
  1214. prop="fCxrate"
  1215. header-align="center"
  1216. align="center"
  1217. width="150px"
  1218. label="汇率"
  1219. >
  1220. <template slot-scope="scope">
  1221. <el-input
  1222. v-model="scope.row.fCxrate"
  1223. :disabled="browseStatus"
  1224. placeholder="汇率"
  1225. show-word-limit
  1226. />
  1227. </template>
  1228. </el-table-column>
  1229. <el-table-column
  1230. prop="fRate"
  1231. header-align="center"
  1232. align="center"
  1233. width="150px"
  1234. label="税率"
  1235. >
  1236. <template slot-scope="scope">
  1237. <el-input
  1238. v-model="scope.row.fRate"
  1239. :disabled="browseStatus"
  1240. placeholder="税率"
  1241. show-word-limit
  1242. />
  1243. </template>
  1244. </el-table-column>
  1245. <el-table-column
  1246. prop="remarks"
  1247. header-align="center"
  1248. align="center"
  1249. width="150px"
  1250. label="备注"
  1251. >
  1252. <template slot-scope="scope">
  1253. <el-input
  1254. v-model="scope.row.remarks"
  1255. :disabled="browseStatus"
  1256. placeholder="备注"
  1257. show-word-limit
  1258. />
  1259. </template>
  1260. </el-table-column>
  1261. <el-table-column
  1262. header-align="center"
  1263. align="center"
  1264. label="操作"
  1265. width="200px"
  1266. >
  1267. <template slot-scope="scope">
  1268. <el-button size="small">审核费用</el-button>
  1269. <el-button
  1270. @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
  1271. size="small"
  1272. >移除</el-button
  1273. >
  1274. </template>
  1275. </el-table-column>
  1276. </el-table>
  1277. <div class="dialogTableTitle flex a-center jlr">
  1278. <h2>付款信息</h2>
  1279. <el-button :disabled="browseStatus" @click.prevent="addpayment()"
  1280. >添加
  1281. </el-button>
  1282. </div>
  1283. <el-table
  1284. :data="warehouseCrList"
  1285. ref="table"
  1286. tooltip-effect="dark"
  1287. border
  1288. stripe
  1289. show-summary
  1290. :summary-method="warehouseDrSummaries"
  1291. >
  1292. <el-table-column label="序号" type="index" width="80">
  1293. </el-table-column>
  1294. <el-table-column
  1295. prop="fCorpid"
  1296. header-align="center"
  1297. align="center"
  1298. width="180px"
  1299. label="客户名称"
  1300. >
  1301. <template slot-scope="scope">
  1302. <el-select
  1303. v-model="scope.row.fCorpid"
  1304. filterable
  1305. remote
  1306. :disabled="browseStatus"
  1307. :remote-method="corpsRemoteMethod"
  1308. placeholder="客户名称"
  1309. >
  1310. <el-option
  1311. v-for="(dict, index) in KHblnoOptions"
  1312. :key="index.fId"
  1313. :label="dict.fName"
  1314. :value="dict.fId"
  1315. ></el-option>
  1316. </el-select>
  1317. </template>
  1318. </el-table-column>
  1319. <el-table-column
  1320. prop="fFeeid"
  1321. header-align="center"
  1322. align="center"
  1323. width="180px"
  1324. label="费用名称"
  1325. >
  1326. <template slot-scope="scope">
  1327. <el-select
  1328. v-model="scope.row.fFeeid"
  1329. filterable
  1330. remote
  1331. :disabled="browseStatus"
  1332. :remote-method="fWRemoteMethod"
  1333. placeholder="费用名称"
  1334. >
  1335. <el-option
  1336. v-for="dict in fWbuOptions"
  1337. :key="dict.fId"
  1338. :label="dict.fName"
  1339. :value="dict.fId"
  1340. ></el-option>
  1341. </el-select>
  1342. </template>
  1343. </el-table-column>
  1344. <el-table-column
  1345. prop="ffeeUnitid"
  1346. header-align="center"
  1347. align="center"
  1348. width="180px"
  1349. label="计价单位"
  1350. >
  1351. <template slot-scope="scope">
  1352. <el-select
  1353. v-model="scope.row.fFeeUnitid"
  1354. placeholder="请选择计费单位"
  1355. @change="changeFeeUnit(scope.row)"
  1356. :disabled="browseStatus"
  1357. clearable
  1358. >
  1359. <el-option
  1360. v-for="dict in jFeetunitOptions"
  1361. :key="dict.dictValue"
  1362. :label="dict.dictLabel"
  1363. :value="dict.dictValue"
  1364. />
  1365. </el-select>
  1366. </template>
  1367. </el-table-column>
  1368. <el-table-column
  1369. prop="fQty"
  1370. header-align="center"
  1371. align="center"
  1372. width="150px"
  1373. label="数量"
  1374. >
  1375. <template slot-scope="scope">
  1376. <el-input
  1377. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  1378. v-model="scope.row.fQty"
  1379. @change="changeEstmateAmt(scope.row)"
  1380. :disabled="browseStatus"
  1381. placeholder="数量"
  1382. show-word-limit
  1383. />
  1384. </template>
  1385. </el-table-column>
  1386. <el-table-column
  1387. prop="funitprice"
  1388. header-align="center"
  1389. align="center"
  1390. width="150px"
  1391. label="单价"
  1392. >
  1393. <template slot-scope="scope">
  1394. <el-input
  1395. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1396. v-model="scope.row.fUnitprice"
  1397. @change="changeContractAmt(scope.row)"
  1398. :disabled="browseStatus"
  1399. placeholder="单价"
  1400. show-word-limit
  1401. />
  1402. </template>
  1403. </el-table-column>
  1404. <el-table-column
  1405. prop="fAmount"
  1406. header-align="center"
  1407. align="center"
  1408. width="150px"
  1409. label="金额"
  1410. >
  1411. <template slot-scope="scope">
  1412. <el-input
  1413. disabled
  1414. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1415. v-model="scope.row.fAmount"
  1416. placeholder="金额"
  1417. show-word-limit
  1418. />
  1419. </template>
  1420. </el-table-column>
  1421. <el-table-column
  1422. prop="fCurrency"
  1423. header-align="center"
  1424. align="center"
  1425. width="150px"
  1426. label="币别"
  1427. >
  1428. <template slot-scope="scope">
  1429. <el-input
  1430. v-model="scope.row.fCurrency"
  1431. :disabled="browseStatus"
  1432. placeholder="币别"
  1433. show-word-limit
  1434. />
  1435. </template>
  1436. </el-table-column>
  1437. <el-table-column
  1438. prop="fCxrate"
  1439. header-align="center"
  1440. align="center"
  1441. width="150px"
  1442. label="汇率"
  1443. >
  1444. <template slot-scope="scope">
  1445. <el-input
  1446. v-model="scope.row.fCxrate"
  1447. :disabled="browseStatus"
  1448. placeholder="汇率"
  1449. show-word-limit
  1450. />
  1451. </template>
  1452. </el-table-column>
  1453. <el-table-column
  1454. prop="fRate"
  1455. header-align="center"
  1456. align="center"
  1457. width="150px"
  1458. label="税率"
  1459. >
  1460. <template slot-scope="scope">
  1461. <el-input
  1462. v-model="scope.row.fRate"
  1463. :disabled="browseStatus"
  1464. placeholder="税率"
  1465. show-word-limit
  1466. />
  1467. </template>
  1468. </el-table-column>
  1469. <el-table-column
  1470. prop="remarks"
  1471. header-align="center"
  1472. align="center"
  1473. width="150px"
  1474. label="备注"
  1475. >
  1476. <template slot-scope="scope">
  1477. <el-input
  1478. v-model="scope.row.remarks"
  1479. :disabled="browseStatus"
  1480. placeholder="备注"
  1481. show-word-limit
  1482. />
  1483. </template>
  1484. </el-table-column>
  1485. <el-table-column
  1486. header-align="center"
  1487. align="center"
  1488. width="200px"
  1489. label="操作"
  1490. >
  1491. <template slot-scope="scope">
  1492. <el-button size="small">审核费用</el-button>
  1493. <el-button
  1494. @click.native.prevent="deleteRow(scope.$index, warehouseCrList)"
  1495. size="small"
  1496. >移除</el-button
  1497. >
  1498. </template>
  1499. </el-table-column>
  1500. </el-table>
  1501. <div slot="footer" class="dialog-footer">
  1502. <el-button
  1503. type="danger"
  1504. size="mini"
  1505. prop="打印"
  1506. @click="showEditDialog_ss"
  1507. >收货单
  1508. </el-button>
  1509. <el-button
  1510. type="danger"
  1511. size="mini"
  1512. prop="打印"
  1513. @click="showEditDialog_s"
  1514. >出库单
  1515. </el-button>
  1516. <el-button type="primary" @click="submitForm(2)">暂 存</el-button>
  1517. <el-button type="primary" @click="submitForm(6)">确 定</el-button>
  1518. <el-button @click="cancel">取 消</el-button>
  1519. </div>
  1520. <!-- 选择库存总账数据 -->
  1521. <el-dialog
  1522. title="库存总账"
  1523. :modal="false"
  1524. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1525. :visible.sync="whgenlegVisible"
  1526. width="70%"
  1527. >
  1528. <el-table
  1529. :data="whgenlegList"
  1530. ref="table"
  1531. tooltip-effect="dark"
  1532. width="100%"
  1533. border
  1534. stripe
  1535. @selection-change="whgenlegSelectionChange"
  1536. >
  1537. <el-table-column
  1538. type="selection"
  1539. width="55">
  1540. </el-table-column>
  1541. <el-table-column
  1542. prop="fMblno"
  1543. header-align="center"
  1544. align="center"
  1545. label="提单号"
  1546. >
  1547. </el-table-column>
  1548. <el-table-column
  1549. prop="createTime"
  1550. header-align="center"
  1551. align="center"
  1552. width="180px"
  1553. label="入库日期"
  1554. >
  1555. </el-table-column>
  1556. <el-table-column
  1557. prop="fGoodsid"
  1558. header-align="center"
  1559. align="center"
  1560. label="品名"
  1561. >
  1562. </el-table-column>
  1563. <el-table-column
  1564. prop="fQtyblc"
  1565. header-align="center"
  1566. align="center"
  1567. label="结余数量"
  1568. >
  1569. </el-table-column>
  1570. <el-table-column
  1571. prop="fWarehouseLocationid"
  1572. header-align="center"
  1573. align="center"
  1574. label="库区"
  1575. >
  1576. </el-table-column>
  1577. </el-table>
  1578. <pagination
  1579. v-show="whgenlegTotal>0"
  1580. :total="whgenlegTotal"
  1581. :page.sync="whgenlegParams.pageNum"
  1582. :limit.sync="whgenlegParams.pageSize"
  1583. @pagination="getWhgenlegList"
  1584. />
  1585. <div slot="footer" class="dialog-footer">
  1586. <el-button type="primary" @click="whgenlegData">导入</el-button>
  1587. <el-button @click="whgenlegVisible = false">取 消</el-button>
  1588. </div>
  1589. </el-dialog>
  1590. <el-dialog
  1591. title="入库页面"
  1592. :modal="false"
  1593. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1594. :visible.sync="editDialogVisible_s"
  1595. width="70%"
  1596. >
  1597. <table
  1598. id="print_area"
  1599. class="biaoge zzss"
  1600. border="1"
  1601. style="border-collapse: collapse; border: none"
  1602. >
  1603. <tr>
  1604. <td
  1605. width="100"
  1606. colspan="7"
  1607. class="zzss"
  1608. style="font-size: 28px; font-weight: bold; border: none"
  1609. >
  1610. 青岛大木进进仓单
  1611. </td>
  1612. </tr>
  1613. <tr>
  1614. <td
  1615. width="100"
  1616. colspan="7"
  1617. class="zzss"
  1618. style="font-size: 28px; font-weight: bold; border: none"
  1619. >
  1620. &nbsp;
  1621. </td>
  1622. </tr>
  1623. <tr>
  1624. <td width="450" colspan="2" class="zzss">货权方:某某有限公司</td>
  1625. <td width="450" colspan="2" class="zzss">仓库:某某3号大仓</td>
  1626. <td width="450" colspan="3" class="zzss">
  1627. 地址:青岛市市北区郑州路1344号
  1628. </td>
  1629. </tr>
  1630. <tr>
  1631. <td width="200" colspan="2" class="zzss">保管方:某某有限公司</td>
  1632. <td width="200" colspan="2" class="zzss">联系人:张三</td>
  1633. <td width="200" colspan="3" class="zzss">
  1634. 电话:0532-561651561-546
  1635. </td>
  1636. </tr>
  1637. <tr>
  1638. <td width="100" border="1">提单号</td>
  1639. <td width="100">品名</td>
  1640. <td width="100">箱型</td>
  1641. <td width="100">品牌</td>
  1642. <td width="100">件数</td>
  1643. <td width="100">重量</td>
  1644. <td width="100">包装规格</td>
  1645. </tr>
  1646. <tr>
  1647. <td width="100">56165654555</td>
  1648. <td width="100">某某商品</td>
  1649. <td width="100">20GP</td>
  1650. <td width="100">某某</td>
  1651. <td width="100">包</td>
  1652. <td width="100">吨</td>
  1653. <td width="100">50kg</td>
  1654. </tr>
  1655. <tr>
  1656. <td width="100">序号</td>
  1657. <td width="100">入货日期</td>
  1658. <td width="100">箱量(20GP)</td>
  1659. <td width="100">重量</td>
  1660. <td width="100">件数</td>
  1661. <td width="100">入库重量</td>
  1662. <td width="100">入库件数</td>
  1663. </tr>
  1664. <tr>
  1665. <td width="100">1</td>
  1666. <td width="100">2020-11-20</td>
  1667. <td width="100">10</td>
  1668. <td width="100">100</td>
  1669. <td width="100">10000</td>
  1670. <td width="100">20</td>
  1671. <td width="100">3000</td>
  1672. </tr>
  1673. <tr>
  1674. <td width="100">2</td>
  1675. <td width="100">2020-11-20</td>
  1676. <td width="100">10</td>
  1677. <td width="100">100</td>
  1678. <td width="100">10000</td>
  1679. <td width="100">20</td>
  1680. <td width="100">3000</td>
  1681. </tr>
  1682. <tr>
  1683. <td width="100">3</td>
  1684. <td width="100">2020-11-20</td>
  1685. <td width="100">10</td>
  1686. <td width="100">100</td>
  1687. <td width="100">10000</td>
  1688. <td width="100">20</td>
  1689. <td width="100">3000</td>
  1690. </tr>
  1691. <tr>
  1692. <td width="100">4</td>
  1693. <td width="100">2020-11-20</td>
  1694. <td width="100">10</td>
  1695. <td width="100">100</td>
  1696. <td width="100">10000</td>
  1697. <td width="100">20</td>
  1698. <td width="100">3000</td>
  1699. </tr>
  1700. <tr>
  1701. <td width="100">5</td>
  1702. <td width="100">2020-11-20</td>
  1703. <td width="100">10</td>
  1704. <td width="100">100</td>
  1705. <td width="100">10000</td>
  1706. <td width="100">20</td>
  1707. <td width="100">3000</td>
  1708. </tr>
  1709. <tr>
  1710. <td width="100">6</td>
  1711. <td width="100">2020-11-20</td>
  1712. <td width="100">10</td>
  1713. <td width="100">100</td>
  1714. <td width="100">10000</td>
  1715. <td width="100">20</td>
  1716. <td width="100">3000</td>
  1717. </tr>
  1718. <tr>
  1719. <td width="100">7</td>
  1720. <td width="100">2020-11-20</td>
  1721. <td width="100">10</td>
  1722. <td width="100">100</td>
  1723. <td width="100">10000</td>
  1724. <td width="100">20</td>
  1725. <td width="100">3000</td>
  1726. </tr>
  1727. <tr>
  1728. <td width="100" colspan="2">合计:</td>
  1729. <td width="100">10</td>
  1730. <td width="100">100</td>
  1731. <td width="100">10000</td>
  1732. <td width="100">20</td>
  1733. <td width="100">3000</td>
  1734. </tr>
  1735. <tr>
  1736. <td width="100">备注:</td>
  1737. <td width="100" colspan="6"></td>
  1738. </tr>
  1739. <tr>
  1740. <td width="100" colspan="7" class="zzss">
  1741. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  1742. </td>
  1743. </tr>
  1744. <tr style="border: none">
  1745. <td width="100" colspan="2" class="zzss" style="border: none">
  1746. 开单员:
  1747. </td>
  1748. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  1749. <td width="100" colspan="2" class="zzss" style="border: none">
  1750. 仓管员:张三
  1751. </td>
  1752. </tr>
  1753. <tr style="border: none">
  1754. <td width="100" colspan="2" class="zzss" style="border: none">
  1755. 开单时间:
  1756. </td>
  1757. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  1758. <td width="100" colspan="2" class="zzss" style="border: none">
  1759. (盖章)
  1760. </td>
  1761. </tr>
  1762. </table>
  1763. <button @click="printSomething">打印</button>
  1764. </el-dialog>
  1765. <el-dialog
  1766. title="收货单打印"
  1767. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1768. :visible.sync="editDialogVisible_ss"
  1769. width="70%"
  1770. :modal="false"
  1771. >
  1772. <table
  1773. id="print_area"
  1774. class="biaoge zzss"
  1775. border="1"
  1776. style="border-collapse: collapse; border: none"
  1777. >
  1778. <tr>
  1779. <td
  1780. width="1400"
  1781. colspan="6"
  1782. class="zzss"
  1783. style="font-size: 28px; font-weight: bold; border: none"
  1784. >
  1785. 大木国际物流(青岛)有限公司收货单
  1786. </td>
  1787. </tr>
  1788. <tr>
  1789. <td
  1790. width="900"
  1791. colspan="4"
  1792. class="zzss"
  1793. style="font-size: 28px; font-weight: bold"
  1794. >
  1795. &nbsp;
  1796. </td>
  1797. <td
  1798. width="500"
  1799. colspan="2"
  1800. style="padding-bottom: 0px; font-weight: bold; border: none"
  1801. class="zzss"
  1802. >
  1803. 出库日期:2020-11-20
  1804. </td>
  1805. </tr>
  1806. <tr>
  1807. <td width="200">车号</td>
  1808. <td width="200">苏HFN751</td>
  1809. <td width="200">货物品名</td>
  1810. <td width="200" colspan="4" class="zzss">某某商品名</td>
  1811. </tr>
  1812. <tr>
  1813. <td width="1400" colspan="6">&nbsp;</td>
  1814. </tr>
  1815. <tr>
  1816. <td>备注:</td>
  1817. <td colspan="5"></td>
  1818. </tr>
  1819. <tr>
  1820. <td>收费</td>
  1821. <td>装箱费</td>
  1822. <td>100元</td>
  1823. <td colspan="4">办单费:5元,过磅费自理</td>
  1824. </tr>
  1825. <tr>
  1826. <td>司机签字:</td>
  1827. <td></td>
  1828. <td>电话</td>
  1829. <td>15896154516</td>
  1830. <td colspan="2" rowspan="2">
  1831. 确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
  1832. </td>
  1833. </tr>
  1834. <tr>
  1835. <td>制表:</td>
  1836. <td>张三</td>
  1837. <td>机械/人工:</td>
  1838. <td></td>
  1839. </tr>
  1840. <tr>
  1841. <td colspan="6" class="zzss">&nbsp;</td>
  1842. </tr>
  1843. <tr>
  1844. <td width="280" class="zzss"></td>
  1845. <td width="280" class="zzss"></td>
  1846. <td width="280" class="zzss"></td>
  1847. <td width="280" class="zzss"></td>
  1848. <td width="290" class="zzss">地址:淮河东路96号</td>
  1849. <td width="290" class="zzss">电话:18685818919</td>
  1850. </tr>
  1851. </table>
  1852. <button @click="printSomething">打印</button>
  1853. </el-dialog>
  1854. </el-dialog>
  1855. </div>
  1856. </template>
  1857. <script>
  1858. import print from "print-js";
  1859. import {
  1860. listWarehousebills,
  1861. getWarehousebills,
  1862. delWarehousebills,
  1863. addWarehousebills,
  1864. updateWarehousebills,
  1865. exportWarehousebills,
  1866. } from "@/api/warehouseBusiness/warehouseOutStock";
  1867. import { listCorps } from "@/api/basicdata/corps";
  1868. import { listFees } from "@/api/basicdata/fees";
  1869. import { listWarehouse } from "@/api/basicdata/warehouse";
  1870. import { listArea } from "@/api/basicdata/area";
  1871. import { listGoods } from "@/api/basicdata/goods";
  1872. import { listUser, queryUserVal } from "@/api/system/user";
  1873. import UploadFile from "@/components/Uploadfile";
  1874. import { listWhgenleg } from '@/api/reportManagement/whgenleg'
  1875. export default {
  1876. name: "Warehousebills",
  1877. components: {
  1878. UploadFile,
  1879. },
  1880. data() {
  1881. return {
  1882. fFeeUnitid: "",
  1883. fFeeUnitids: "",
  1884. browseStatus: false,
  1885. detailsHidden: false,
  1886. fGrossweight: '',
  1887. fNetweight: '',
  1888. fQty: '',
  1889. // 遮罩层
  1890. loading: true,
  1891. // 选中数组
  1892. ids: [],
  1893. userVal: {
  1894. userName: null,
  1895. nickName: null,
  1896. deptId: null,
  1897. },
  1898. queryForm: {},
  1899. // 库存总账表
  1900. whgenlegList: [],
  1901. whgenlegTotal: 0,
  1902. // 弹窗库存总账数据
  1903. dialogWhgenlegList: [],
  1904. // 库存总账对话框
  1905. whgenlegVisible: false,
  1906. // 添加用户对话框
  1907. editDialogVisible_s: false,
  1908. editDialogVisible_ss: false,
  1909. editDialogClosed_ss: false,
  1910. dataList: [],
  1911. warehouseCrList: [],
  1912. warehouseDrList: [],
  1913. browseStatus: false,
  1914. relevantAttachments: [],
  1915. // 非单个禁用
  1916. single: true,
  1917. // 非多个禁用
  1918. multiple: true,
  1919. // 显示搜索条件
  1920. showSearch: true,
  1921. // 总条数
  1922. total: 0,
  1923. // 仓库主(出入库)表格数据
  1924. warehousebillsList: [],
  1925. // 弹出层标题
  1926. title: "",
  1927. // 是否显示弹出层
  1928. open: false,
  1929. // 货权方(客户数据)
  1930. fMblnoOptions: [],
  1931. // 货权方(客户数据)
  1932. // 客户名称
  1933. KHblnoOptions: [],
  1934. fSbuOptions: [],
  1935. // 操作员
  1936. userOptions: [],
  1937. // 操作员
  1938. goodsOptions: [],
  1939. // 制单部门
  1940. deptOptions: [],
  1941. // 仓库(仓库数据)
  1942. warehouseOptions: [],
  1943. kqhouseOptions: [],
  1944. // 贸易方式(数据字典),对应t_trademodels 字典
  1945. fTrademodeidOptions: [],
  1946. // 计费单位(数据字典),下拉选择毛重或净重字典
  1947. fFeetunitOptions: [],
  1948. // 结算方式(数据字典),下拉选择字典
  1949. fStltypeOptions: [],
  1950. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  1951. fIfweighOptions: [],
  1952. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典
  1953. fIfpledgeOptions: [],
  1954. // 是否破损(数据字典),默认F否则T字典
  1955. fIfdamageOptions: [],
  1956. // 单据类型(数据字典)SJRK字典
  1957. fBilltypeOptions: [],
  1958. // 状态(数据字典),N 入字典
  1959. fBillstatusOptions: [],
  1960. // 费用名称
  1961. fWbuOptions: [],
  1962. // 计价单位
  1963. jFeetunitOptions: [],
  1964. // 查询参数
  1965. queryParams: {
  1966. pageNum: 1,
  1967. pageSize: 10,
  1968. fBillno: null,
  1969. createBy: null,
  1970. createTime: null,
  1971. fCustomsdeclartion: null,
  1972. fOriginalbillno: null,
  1973. fDeptid: null,
  1974. fBsdeptid: null,
  1975. fContacts: null,
  1976. fTel: null,
  1977. fCorpid: null,
  1978. fTocorpid: null,
  1979. fStltypeid: null,
  1980. fBscorpno: null,
  1981. fWarehouseid: null,
  1982. fStorekeeper: null,
  1983. fBsdate: null,
  1984. fPlanqty: null,
  1985. fPlangrossweight: null,
  1986. fPlannetweight: null,
  1987. fPlanvolumn: null,
  1988. fQty: null,
  1989. fGrossweight: null,
  1990. fNetweight: null,
  1991. fVolumn: null,
  1992. fTrademodeid: null,
  1993. fSbu: null,
  1994. fFeetunit: null,
  1995. fMblno: null,
  1996. fVslvoy: null,
  1997. fEta: null,
  1998. fCustomno: null,
  1999. fIfweigh: null,
  2000. fIfpledge: null,
  2001. fIfdamage: null,
  2002. fBankcorpid: null,
  2003. fBilltype: null,
  2004. fBillstatus: null,
  2005. fCreateby: null,
  2006. fCreatetime: null,
  2007. fGoodsid: null,
  2008. fCntrtype: null,
  2009. fCntqty: null,
  2010. },
  2011. // 库存总账参数
  2012. whgenlegParams: {
  2013. pageNum: 1,
  2014. pageSize: 10,
  2015. fMblno: null,
  2016. fCorpid: null,
  2017. fWarehouseid: null
  2018. },
  2019. // 表单参数
  2020. form: {
  2021. fMblno: null,
  2022. fCorpid: null,
  2023. fTrademodeid: null,
  2024. fWarehouseid: null
  2025. },
  2026. // 表单校验
  2027. rules: {
  2028. fDeptid: [
  2029. { required: true, message: "制单部门不能为空", trigger: "blur" },
  2030. ],
  2031. fMblno: [{ required: true, message: "请输入提单号", trigger: "blur" }],
  2032. fBsdeptid: [
  2033. { required: true, message: "业务所属部门不能为空", trigger: "blur" },
  2034. ],
  2035. fCorpid: [
  2036. {
  2037. required: true,
  2038. message: "请选择货权方",
  2039. trigger: "blur",
  2040. },
  2041. ],
  2042. fBsdate: [
  2043. { required: true, message: "请选择业务日期", trigger: "blur" },
  2044. ],
  2045. fTrademodeid: [
  2046. { required: true, message: "请选择贸易方式", trigger: "blur" },
  2047. ],
  2048. fSbu: [
  2049. { required: true, message: "请选择经营方式", trigger: "blur" },
  2050. ],
  2051. fStorekeeper: {
  2052. required: true,
  2053. message: "请输入仓管员",
  2054. trigger: "blur",
  2055. },
  2056. fWarehouseid: [
  2057. { required: true, message: "请选择仓库", trigger: "blur" },
  2058. ],
  2059. // fBscorpno: [
  2060. // { required: true, message: "请输入存货编号", trigger: "blur" },
  2061. // ],
  2062. fbillingway: [
  2063. {
  2064. required: true,
  2065. message: "请选择结算方式",
  2066. trigger: "blur",
  2067. },
  2068. ],
  2069. fTocorpid: [
  2070. {
  2071. required: true,
  2072. message:
  2073. "货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效不能为空",
  2074. trigger: "blur",
  2075. },
  2076. ],
  2077. },
  2078. };
  2079. },
  2080. created() {
  2081. this.getList();
  2082. this.getDicts("data_trademodes").then((response) => {
  2083. this.fTrademodeidOptions = response.data;
  2084. });
  2085. this.getDicts("data_unitfees").then((response) => {
  2086. this.fFeetunitOptions = response.data;
  2087. this.jFeetunitOptions = response.data;
  2088. });
  2089. this.getDicts("data_stltype_type").then((response) => {
  2090. this.fStltypeOptions = response.data;
  2091. });
  2092. this.getDicts("data_ifweigh_status").then((response) => {
  2093. this.fIfweighOptions = response.data;
  2094. });
  2095. this.getDicts("data_ifpledge_status").then((response) => {
  2096. this.fIfpledgeOptions = response.data;
  2097. });
  2098. this.getDicts("data_ifdamage_status").then((response) => {
  2099. this.fIfdamageOptions = response.data;
  2100. });
  2101. this.getDicts("data_billtype_type").then((response) => {
  2102. this.fBilltypeOptions = response.data;
  2103. });
  2104. this.getDicts("sys_common_status").then((response) => {
  2105. this.fBillstatusOptions = response.data;
  2106. });
  2107. },
  2108. methods: {
  2109. // 上传成功返回数据
  2110. showFile(row) {
  2111. // this.$set(this.relevantAttachments[0], 'fName', row.fileName)
  2112. this.$set(this.relevantAttachments[0], 'fUrl', row.url)
  2113. },
  2114. printSomething() {
  2115. // 此处的style即为打印时的样式
  2116. const style =
  2117. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  2118. print({
  2119. printable: "print_area",
  2120. type: "html",
  2121. style: style, // 亦可使用引入的外部css;
  2122. scanStyles: false,
  2123. });
  2124. },
  2125. // 添加附件上传
  2126. addRelevt() {
  2127. this.relevantAttachments.push({
  2128. fUrl: null,
  2129. fName: null,
  2130. createBy: this.queryParams.createBy,
  2131. createTime: Date.parse(new Date()),
  2132. });
  2133. },
  2134. // 添加list
  2135. addRelevant() {
  2136. let corpidStatus = typeof this.form.fCorpid === 'undefined' || this.form.fCorpid == null || this.form.fCorpid === ''
  2137. let ftrademodeids = typeof this.form.fTrademodeid === 'undefined' || this.form.fTrademodeid == null || this.form.fTrademodeid === ''
  2138. let warehouseidStatus = typeof this.form.fWarehouseid === 'undefined' || this.form.fWarehouseid == null || this.form.fWarehouseid === ''
  2139. if (corpidStatus || warehouseidStatus || ftrademodeids) {
  2140. this.$message({ message: '请维护货权方、仓库、贸易方式', type: 'warning' })
  2141. return false
  2142. }
  2143. this.whgenlegList = []
  2144. this.dialogWhgenlegList = []
  2145. this.whgenlegTotal = 0
  2146. this.whgenlegVisible = true
  2147. this.getWhgenlegList()
  2148. },
  2149. // 库存总账导出数据
  2150. whgenlegData () {
  2151. console.log(this.dialogWhgenlegList)
  2152. for (let whgen in this.dialogWhgenlegList) {
  2153. this.dataList.push({
  2154. fMblno: this.dialogWhgenlegList[whgen].fMblno,
  2155. fGoodsid: this.dialogWhgenlegList[whgen].fGoodsid,
  2156. fCntrtype: null,
  2157. fQtyblc: this.dialogWhgenlegList[whgen].fQtyblc,
  2158. fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
  2159. fGoodsids: this.dialogWhgenlegList[whgen].fGoodsids,
  2160. fGrossweight: 0,
  2161. fNetweight: 0,
  2162. fQty: 0,
  2163. fCntqty: 1,
  2164. fPackagespecs: null,
  2165. fWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
  2166. fCntrno: this.dialogWhgenlegList[whgen].fCntrno,
  2167. fGoodsval: null,
  2168. fTruckno: null,
  2169. remark: null
  2170. })
  2171. }
  2172. this.whgenlegVisible = false
  2173. },
  2174. // 收货单打印界面
  2175. showEditDialog_s() {
  2176. this.editDialogVisible_s = true;
  2177. },
  2178. showEditDialog_ss() {
  2179. this.editDialogVisible_ss = true;
  2180. },
  2181. // 收款信息
  2182. addCollection() {
  2183. this.warehouseDrList.push({
  2184. fcorpid: null,
  2185. ffeeid: null,
  2186. fFeeUnitid: null,
  2187. fQty: null,
  2188. funitprice: null,
  2189. fAmount: null,
  2190. fCurrency: null,
  2191. fCxrate: null,
  2192. fRate: null,
  2193. remarks: null,
  2194. });
  2195. },
  2196. addpayment() {
  2197. this.warehouseCrList.push({
  2198. fcorpid: null,
  2199. ffeeid: null,
  2200. fFeeUnitid: null,
  2201. fQty: null,
  2202. funitprice: null,
  2203. fAmount: null,
  2204. fCurrency: null,
  2205. fCxrate: null,
  2206. fRate: null,
  2207. remarks: null,
  2208. });
  2209. },
  2210. queryUser() {
  2211. queryUserVal().then((response) => {
  2212. if (response.user !== null) {
  2213. this.userVal = response.user;
  2214. this.$set(this.form, "fDeptid", this.userVal.deptId);
  2215. this.$set(this.form, "createBy", this.userVal.userName);
  2216. this.$set(this.form, "createTime", Date.parse(new Date()));
  2217. }
  2218. if (response.dept !== null) {
  2219. this.deptOptions = [];
  2220. this.deptOptions.push(response.dept);
  2221. }
  2222. });
  2223. },
  2224. /** 查询仓库主(出入库)列表 */
  2225. getList() {
  2226. this.loading = true;
  2227. listWarehousebills(this.queryParams).then((response) => {
  2228. this.warehousebillsList = response.rows;
  2229. console.log(response.rows)
  2230. this.total = response.total;
  2231. this.loading = false;
  2232. });
  2233. },
  2234. // 查询库存总账信息
  2235. getWhgenlegList () {
  2236. this.whgenlegParams.fMblno = this.form.fMblno
  2237. this.whgenlegParams.fCorpid = this.form.fCorpid
  2238. this.whgenlegParams.fWarehouseid = this.form.fWarehouseid
  2239. this.whgenlegParams.fTrademodeid = this.form.fTrademodeid
  2240. listWhgenleg(this.whgenlegParams).then(response => {
  2241. this.whgenlegList = response.rows
  2242. this.whgenlegTotal = response.total
  2243. })
  2244. },
  2245. // 贸易方式(数据字典),对应t_trademodels 字典翻译
  2246. fTrademodeidFormat(row, column) {
  2247. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  2248. },
  2249. // 计费单位(数据字典),下拉选择毛重或净重字典翻译
  2250. fFeetunitFormat(row, column) {
  2251. return this.selectDictLabel(this.fFeetunitOptions, row.fFeetunit);
  2252. },
  2253. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  2254. fIfweighFormat(row, column) {
  2255. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  2256. },
  2257. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典翻译
  2258. fIfpledgeFormat(row, column) {
  2259. return this.selectDictLabel(this.fIfpledgeOptions, row.fIfpledge);
  2260. },
  2261. // 是否破损(数据字典),默认F否则T字典翻译
  2262. fIfdamageFormat(row, column) {
  2263. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  2264. },
  2265. // 单据类型(数据字典)SJRK字典翻译
  2266. fBilltypeFormat(row, column) {
  2267. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  2268. },
  2269. // 状态(数据字典),N 入字典翻译
  2270. fBillstatusFormat(row, column) {
  2271. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  2272. },
  2273. // 取消按钮
  2274. cancel() {
  2275. this.open = false;
  2276. this.reset();
  2277. },
  2278. // 表单重置
  2279. reset() {
  2280. this.form = {
  2281. fId: null,
  2282. fBillno: null,
  2283. fCustomsdeclartion: null,
  2284. fOriginalbillno: null,
  2285. fDeptid: null,
  2286. fBsdeptid: null,
  2287. fContacts: null,
  2288. fTel: null,
  2289. fCorpid: null,
  2290. fTocorpid: null,
  2291. fStltypeid: null,
  2292. fBscorpno: null,
  2293. fWarehouseid: null,
  2294. fStorekeeper: null,
  2295. fBsdate: null,
  2296. fPlanqty: null,
  2297. fPlangrossweight: null,
  2298. fPlannetweight: null,
  2299. fPlanvolumn: null,
  2300. fQty: null,
  2301. fGrossweight: null,
  2302. fNetweight: null,
  2303. fVolumn: null,
  2304. fTrademodeid: null,
  2305. fSbu: null,
  2306. fFeetunit: null,
  2307. fMblno: null,
  2308. fVslvoy: null,
  2309. fEta: null,
  2310. fCustomno: null,
  2311. fIfweigh: null,
  2312. fIfpledge: null,
  2313. fIfdamage: null,
  2314. fBankcorpid: null,
  2315. fBilltype: null,
  2316. fBillstatus: null,
  2317. delFlag: null,
  2318. createBy: null,
  2319. createTime: null,
  2320. updateBy: null,
  2321. updateTime: null,
  2322. remark: null,
  2323. fCreateby: null,
  2324. fCreatetime: null,
  2325. fGoodsid: null,
  2326. fCntrtype: null,
  2327. fCntqty: null,
  2328. };
  2329. this.deptOptions = []
  2330. this.userOptions = []
  2331. this.fSbuOptions = []
  2332. this.fWbuOptions = []
  2333. this.goodsOptions = []
  2334. this.KHblnoOptions = []
  2335. this.fMblnoOptions = []
  2336. this.kqhouseOptions = []
  2337. this.resetForm("form");
  2338. },
  2339. /** 搜索按钮操作 */
  2340. handleQuery() {
  2341. this.queryParams.pageNum = 1;
  2342. this.getList();
  2343. },
  2344. /** 重置按钮操作 */
  2345. resetQuery() {
  2346. this.resetForm("queryForm");
  2347. this.handleQuery();
  2348. },
  2349. // 多选框选中数据
  2350. handleSelectionChange(selection) {
  2351. this.ids = selection.map((item) => item.fId);
  2352. this.single = selection.length !== 1;
  2353. this.multiple = !selection.length;
  2354. },
  2355. // 库存总账多选框
  2356. whgenlegSelectionChange (selection) {
  2357. this.dialogWhgenlegList = selection
  2358. },
  2359. /** 新增按钮操作 */
  2360. handleAdd(status) {
  2361. this.browseStatus = status
  2362. this.reset();
  2363. this.queryUser();
  2364. this.open = true;
  2365. this.dataList = [];
  2366. this.warehouseCrList = [];
  2367. this.warehouseDrList = [];
  2368. this.relevantAttachments = []
  2369. this.title = "出库单";
  2370. },
  2371. /** 修改按钮操作 */
  2372. handleUpdate(row, status) {
  2373. this.browseStatus = status
  2374. this.reset();
  2375. const fId = row.fId || this.ids;
  2376. getWarehousebills(fId).then((response) => {
  2377. if(response.data.warehousebills){
  2378. this.form = response.data.warehousebills;
  2379. }
  2380. if(response.data.corps){
  2381. this.fMblnoOptions = response.data.corps;
  2382. this.KHblnoOptions = response.data.corps;
  2383. this.fSbuOptions = response.data.corps;
  2384. }
  2385. if(response.data.feesList){
  2386. this.fWbuOptions = response.data.feesList;
  2387. }
  2388. if(response.data.warehouse){
  2389. this.warehouseOptions = response.data.warehouse;
  2390. }
  2391. if(response.data.warehouseBillsItem) {
  2392. this.dataList = response.data.warehouseBillsItem;
  2393. }
  2394. if(response.data.enclosures) {
  2395. this.relevantAttachments = response.data.enclosures;
  2396. }
  2397. // this.fMblnoOptions = []
  2398. this.dataList = response.data.warehouseBillsItem;
  2399. this.warehouseDrList = response.data.warehousebillsfeesDr;
  2400. this.warehouseCrList = response.data.warehousebillsfeesCr;
  2401. this.fWbuOptions = response.data.feesList;
  2402. this.warehouseOptions = response.data.warehouse;
  2403. this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
  2404. this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
  2405. for (let list in this.dataList) {
  2406. this.$set(this.dataList[list], 'fBsdate', Date.parse(this.dataList[list].fBsdate))
  2407. this.$set(this.dataList[list], 'fGoodsids', this.dataList[list].fGoodsid)
  2408. }
  2409. for (let dr in this.warehouseDrList) {
  2410. this.$set(this.warehouseDrList[dr], 'fFeeUnitid', this.warehouseDrList[dr].fFeeUnitid + "")
  2411. }
  2412. this.warehouseCrList = response.data.warehousebillsfeesCr
  2413. for (let cr in this.warehouseCrList) {
  2414. this.$set(this.warehouseCrList[cr], 'fFeeUnitid', this.warehouseCrList[cr].fFeeUnitid + "")
  2415. }
  2416. this.userOptions = response.data.sysUser;
  2417. this.goodsOptions = response.data.goodsList;
  2418. this.goodsOptions = response.data.goodsList
  2419. this.kqhouseOptions = response.data.warehouseAreas
  2420. this.$set(
  2421. this.form,
  2422. "fBsdate",
  2423. Date.parse(response.data.warehousebills.fBsdate)
  2424. );
  2425. this.open = true;
  2426. this.title = "修改出库";
  2427. });
  2428. },
  2429. // 数量计算
  2430. changeContractAmt(row) {
  2431. if (row.fUnitprice !== "") {
  2432. if (row.fQty !== "") {
  2433. this.$set(
  2434. row,
  2435. "fAmount",
  2436. Number(row.fUnitprice) * Number(row.fQty)
  2437. ).toFixed(2);
  2438. } else {
  2439. this.$set(row, "fAmount", row.fUnitprice);
  2440. }
  2441. }
  2442. },
  2443. changeEstmateAmt(row) {
  2444. if (row.fUnitprice !== "") {
  2445. if (row.fQty !== "") {
  2446. this.$set(
  2447. row,
  2448. "fAmount",
  2449. Number(row.fUnitprice) * Number(row.fQty)
  2450. ).toFixed(2);
  2451. } else {
  2452. this.$set(row, "fAmount", row.fUnitprice);
  2453. }
  2454. }
  2455. },
  2456. changefBsdate(row) {
  2457. if (this.dataList.length > 0) {
  2458. for (var i = 0; i < this.dataList.length; i++) {
  2459. this.$set(this.dataList[i], "fBsdate", row);
  2460. }
  2461. }
  2462. },
  2463. // 合计
  2464. getSummaries (param) {
  2465. console.log(param)
  2466.         const {columns, data} = param
  2467.          const sums = []
  2468.          var values = []
  2469.       columns.forEach((column, index) => {
  2470. if (index === 0) {
  2471. sums[index] = '总价'
  2472. return
  2473. }
  2474.         if (column.property === 'fgrossweight') {
  2475.             values = data.map(item => Number(item['fGrossweight']))
  2476.           }
  2477.           if (column.property === 'fnetweight') {
  2478.             values = data.map(item => Number(item['fNetweight']))
  2479.           }
  2480.           if (column.property === 'fqty') {
  2481.             values = data.map(item => Number(item['fQty']))
  2482.           }
  2483. if (column.property === "fCntqty") {
  2484. values = data.map((item) => Number(item["fCntqty"]));
  2485. }
  2486.       
  2487.         // const values = data.map(item => Number(item[column.property]))
  2488.         if (column.property === 'fgrossweight' || column.property === 'fnetweight' || column.property === 'fqty' ||
  2489. column.property === "fCntqty") {
  2490.           sums[index] = values.reduce((prev, curr) => {
  2491.             const value = Number(curr)
  2492.             if (!isNaN(value)) {
  2493. if (column.property === 'fgrossweight') {
  2494. this.form.fGrossweight = prev + curr
  2495. this.fGrossweight = prev + curr;
  2496. }
  2497. if (column.property === 'fnetweight') {
  2498. this.form.fNetweight = prev + curr
  2499. }
  2500. if (column.property === 'fqty') {
  2501. this.form.fQty = prev + curr
  2502. }
  2503. if (column.property === "fCntqty") {
  2504. this.fCntqty = prev + curr;
  2505. }
  2506.               return prev + curr
  2507.             } else {
  2508.               return prev
  2509.             }
  2510.           }, 0)
  2511.           // sums[index]
  2512.         }
  2513.       })
  2514.     this.sums = sums
  2515.    return sums
  2516. },
  2517. // 付款合计
  2518. warehouseDrSummaries (param) {
  2519.         const {columns, data} = param
  2520.          const sums = []
  2521.       columns.forEach((column, index) => {
  2522. if (index === 0) {
  2523. sums[index] = '合计'
  2524. return
  2525. }
  2526.         const values = data.map(item => Number(item[column.property]))
  2527.         if (column.property === 'fUnitprice' || column.property === 'fAmount'|| column.property === 'fQty'|| column.property === 'fQty') {
  2528.           sums[index] = values.reduce((prev, curr) => {
  2529.             const value = Number(curr)
  2530.             if (!isNaN(value)) {
  2531.               return prev + curr
  2532.             } else {
  2533.               return prev
  2534.             }
  2535.           }, 0)
  2536.           // sums[index]
  2537.         }
  2538.       })
  2539.    return sums
  2540. },
  2541. // 变更计价单位
  2542. changeFeeUnit (row) {
  2543. console.log(this.fCntqty)
  2544. console.log(row)
  2545. if (!row.fFeeUnitid) {
  2546. return false
  2547. }
  2548. if (row.fFeeUnitid === '0') {
  2549. this.$set(row, 'fQty', this.fCntqty)
  2550. } else if (row.fFeeUnitid === '1') {
  2551. this.$set(row, 'fQty', this.fGrossweight)
  2552. }
  2553. if (row.fUnitprice) {
  2554. this.$set(row, 'fAmount', parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2))
  2555. }
  2556. },
  2557. // 付款信息计价单位合计
  2558. getwarehouseCrList(param) {
  2559. console.log(param);
  2560. const { columns, data } = param;
  2561. const sums = [];
  2562. var values = [];
  2563. columns.forEach((column, index) => {
  2564. if (index === 0) {
  2565. sums[index] = "总价";
  2566. return;
  2567. }
  2568. if (index === 3) {
  2569. // values = data.map((item) => Number(item["fFeeUnitid"]));
  2570. sums[index] = this.fFeeUnitids;
  2571. return;
  2572. }
  2573. });
  2574. this.sums = sums;
  2575. return sums;
  2576. },
  2577. // 计价单位选择
  2578. changefFeeunitid(row) {
  2579. console.log(row)
  2580. if(row === "0"){
  2581. console.log(this.fCntqty)
  2582. this.fFeeUnitid = this.fCntqty
  2583. }else{
  2584. console.log(this.fGrossweight)
  2585. this.fFeeUnitid = this.fGrossweight
  2586. }
  2587. },
  2588. // 计价单位选择
  2589. changefFeeunitids(row) {
  2590. console.log(row)
  2591. if(row === "0"){
  2592. console.log(this.fFeeUnitid)
  2593. this.fFeeUnitids = this.fCntqty
  2594. }else{
  2595. this.fFeeUnitids = this.fGrossweight
  2596. }
  2597. },
  2598. /** 提交按钮 */
  2599. submitForm(status) {
  2600. this.$refs["form"].validate((valid) => {
  2601. console.log(this.dataList)
  2602. if(status === 2) {
  2603. if (valid) {
  2604. this.form.fBillstatus = status;
  2605. this.form.fNetweight = this.fNetweight;
  2606. this.form.fPlangrossweight = this.fPlangrossweight;
  2607. this.form.fPlannetweight = this.fPlannetweight;
  2608. this.form.fPlanvolumn = this.fPlanvolumn;
  2609. this.form.fPlanqty = this.fPlanqty;
  2610. this.form.fGrossweight = this.fGrossweight;
  2611. this.form.fQty = this.fQty;
  2612. console.log(this.amt);
  2613. let formData = new window.FormData();
  2614. // 附件数据
  2615. formData.append("tWarehouseBills", JSON.stringify(this.form));
  2616. // 库存明细
  2617. formData.append(
  2618. "tWarehousebillsitems",
  2619. JSON.stringify(this.dataList)
  2620. );
  2621. // 附件数据
  2622. formData.append(
  2623. "tWhgenleg",
  2624. JSON.stringify(this.relevantAttachments)
  2625. );
  2626. // 费用明细付款
  2627. formData.append(
  2628. "tWarehousebillsfeesCr",
  2629. JSON.stringify(this.warehouseCrList)
  2630. );
  2631. // 收款
  2632. formData.append(
  2633. "tWarehousebillsfeesDr",
  2634. JSON.stringify(this.warehouseDrList)
  2635. );
  2636. addWarehousebills(formData).then((response) => {
  2637. this.msgSuccess("提交成功");
  2638. this.open = false;
  2639. this.getList();
  2640. });
  2641. }
  2642. }else {
  2643. if (this.dataList.length === 0) {
  2644. this.$message.error('请添加库存明细!')
  2645. return false
  2646. }
  2647. if (this.relevantAttachments.length === 0) {
  2648. this.$message.error('请添加附件上传!')
  2649. return false
  2650. }
  2651. if (this.warehouseDrList.length === 0) {
  2652. this.$message.error('请添加收款信息!')
  2653. return false
  2654. }
  2655. if (this.warehouseCrList.length === 0) {
  2656. this.$message.error('请添加付款信息!')
  2657. return false
  2658. }
  2659. for (let list in this.dataList) {
  2660. if (!this.dataList[list].fWarehouselocid) {
  2661. this.$message.error('请输入库区!')
  2662. return false
  2663. }
  2664. }
  2665. for (let list in this.dataList) {
  2666. if (this.dataList[list].fQty === '') {
  2667. this.$message.error('请输入出库件数!')
  2668. return false
  2669. }
  2670. }
  2671. for (let list in this.relevantAttachments) {
  2672. if (this.relevantAttachments[list].fName === null) {
  2673. this.$message.error('请输入附件名称!')
  2674. return false
  2675. }
  2676. }
  2677. for (let list in this.warehouseDrList) {
  2678. if (!this.warehouseDrList[list].fCorpid) {
  2679. this.$message.error('请选择客户名称')
  2680. return false
  2681. }
  2682. }
  2683. for (let list in this.warehouseCrList) {
  2684. if (!this.warehouseCrList[list].fCorpid) {
  2685. this.$message.error('请选择客户名称')
  2686. return false
  2687. }
  2688. }
  2689. if (valid) {
  2690. this.form.fBillstatus = status;
  2691. let formData = new window.FormData();
  2692. // 附件数据
  2693. formData.append("tWarehouseBills", JSON.stringify(this.form));
  2694. // 附件数据
  2695. formData.append("tWhgenleg", JSON.stringify(this.relevantAttachments));
  2696. // // 费用明细付款
  2697. formData.append(
  2698. "tWarehousebillsfeesCr",
  2699. JSON.stringify(this.warehouseCrList)
  2700. );
  2701. // // 收款
  2702. formData.append(
  2703. "tWarehousebillsfeesDr",
  2704. JSON.stringify(this.warehouseDrList)
  2705. );
  2706. // // 库存明细
  2707. formData.append(
  2708. "tWarehousebillsitems",
  2709. JSON.stringify(this.dataList)
  2710. );
  2711. addWarehousebills(formData).then((response) => {
  2712. this.msgSuccess("新增成功");
  2713. this.open = false;
  2714. this.getList();
  2715. });
  2716. }
  2717. }
  2718. });
  2719. },
  2720. /** 删除按钮操作 */
  2721. handleDelete(row) {
  2722. const fIds = row.fId || this.ids;
  2723. this.$confirm(
  2724. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  2725. "警告",
  2726. {
  2727. confirmButtonText: "确定",
  2728. cancelButtonText: "取消",
  2729. type: "warning",
  2730. }
  2731. )
  2732. .then(function () {
  2733. return delWarehousebills(fIds);
  2734. })
  2735. .then(() => {
  2736. this.getList();
  2737. this.msgSuccess("删除成功");
  2738. });
  2739. },
  2740. /** 导出按钮操作 */
  2741. handleExport() {
  2742. const queryParams = this.queryParams;
  2743. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  2744. confirmButtonText: "确定",
  2745. cancelButtonText: "取消",
  2746. type: "warning",
  2747. })
  2748. .then(function () {
  2749. return exportWarehousebills(queryParams);
  2750. })
  2751. .then((response) => {
  2752. this.download(response.msg);
  2753. });
  2754. },
  2755. deleteRow(index, rows) {
  2756. rows.splice(index, 1);
  2757. },
  2758. /* 远程模糊查询用户 */
  2759. corpsRemoteMethod(name) {
  2760. if (name == null || name === "") {
  2761. return false;
  2762. }
  2763. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2764. listCorps(queryParams).then((response) => {
  2765. this.fMblnoOptions = response.rows;
  2766. this.KHblnoOptions = response.rows;
  2767. });
  2768. },
  2769. /* 远程模糊查询商品 */
  2770. goodsRemoteMethod(name) {
  2771. if (name == null || name === "") {
  2772. return false;
  2773. }
  2774. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2775. listGoods(queryParams).then((response) => {
  2776. this.goodsOptions = response.rows;
  2777. });
  2778. },
  2779. // 远程模糊查询费用名称
  2780. fWRemoteMethod(name) {
  2781. if (name == null || name === "") {
  2782. return false;
  2783. }
  2784. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2785. listFees(queryParams).then((response) => {
  2786. this.fWbuOptions = response.rows;
  2787. });
  2788. },
  2789. /* 远程模糊查询经营单位 */
  2790. fSbuRemoteMethod(name) {
  2791. if (name == null || name === "") {
  2792. return false;
  2793. }
  2794. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2795. listCorps(queryParams).then((response) => {
  2796. this.fSbuOptions = response.rows;
  2797. });
  2798. },
  2799. /* 远程模糊查询仓库 */
  2800. warehouseRemoteMethod(name) {
  2801. if (name == null || name === "") {
  2802. return false;
  2803. }
  2804. let queryParams = { pageNum: 1, pageSize: 10, fName: name};
  2805. listWarehouse(queryParams).then((response) => {
  2806. this.warehouseOptions = response.rows;
  2807. });
  2808. },
  2809. /* 远程模糊查询库区 */
  2810. kqhouseRemoteMethod(name) {
  2811. if (name == null || name === "") {
  2812. return false;
  2813. }
  2814. if (!this.form.fWarehouseid) {
  2815.         this.$message.error('请输入仓库!')
  2816.         return false
  2817.       }
  2818. let queryParams = { pageNum: 1, pageSize: 10, fWarehouseid:this.form.fWarehouseid , fName: name };
  2819. listArea(queryParams).then((response) => {
  2820. console.log(response);
  2821. this.kqhouseOptions = response.rows;
  2822. });
  2823. },
  2824. /* 远程模糊查询操作用户 */
  2825. userRemoteMethod(name) {
  2826. if (name == null || name === "") {
  2827. return false;
  2828. }
  2829. let queryParams = { pageNum: 1, pageSize: 10, userName: name };
  2830. listUser(queryParams).then((response) => {
  2831. this.userOptions = response.rows;
  2832. });
  2833. },
  2834. },
  2835. };
  2836. </script>
  2837. <style lang="scss">
  2838. .juzhong > th {
  2839. text-align: center;
  2840. }
  2841. .biaoge > tr > td {
  2842. height: 30px;
  2843. text-align: center;
  2844. border-right: 1px solid #dfe6ec !important;
  2845. order-bottom: 1px solid #dfe6ec !important;
  2846. border-bottom: 1px solid #dfe6ec !important;
  2847. }
  2848. .el-table thead th {
  2849. background: #1890ff;
  2850. color: #fff;
  2851. }
  2852. .upload-demo {
  2853. margin-left: 50px;
  2854. }
  2855. </style>