index.vue 106 KB

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