index.vue 145 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400
  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 fSbuOptions"
  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. :remote-method="goodsRemoteMethod"
  123. @keyup.enter.native="handleQuery"
  124. placeholder="请选择货物名称"
  125. >
  126. <el-option
  127. v-for="(dict, index) in goodsOptions"
  128. :key="index.fId"
  129. :label="dict.fName"
  130. :value="dict.fId"
  131. ></el-option>
  132. </el-select>
  133. </el-form-item>
  134. <el-form-item label="仓库" prop="fWarehouseid">
  135. <el-select
  136. v-model="queryParams.fWarehouseid"
  137. filterable
  138. remote
  139. clearable
  140. style="width: 80%"
  141. :remote-method="warehouseRemoteMethod"
  142. @keyup.enter.native="handleQuery"
  143. placeholder="请选择仓库"
  144. >
  145. <el-option
  146. v-for="(dict, index) in warehouseOptions"
  147. :key="index.fId"
  148. :label="dict.fName"
  149. :value="dict.fId"
  150. ></el-option>
  151. </el-select>
  152. </el-form-item>
  153. <el-form-item label="品牌" prop="fMarks">
  154. <el-input
  155. v-model="queryParams.fMarks"
  156. placeholder="请输入品牌"
  157. clearable
  158. size="small"
  159. style="width: 80%"
  160. @keyup.enter.native="handleQuery"
  161. />
  162. </el-form-item>
  163. <el-form-item>
  164. <el-button
  165. type="cyan"
  166. icon="el-icon-search"
  167. size="mini"
  168. @click="handleQuery"
  169. >搜索
  170. </el-button>
  171. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  172. >重置
  173. </el-button>
  174. </el-form-item>
  175. </el-form>
  176. <el-row :gutter="10" class="mb8">
  177. <el-col :span="1.5">
  178. <el-button
  179. type="primary"
  180. icon="el-icon-plus"
  181. size="mini"
  182. @click="handleAdd(false)"
  183. v-hasPermi="['warehouseBusiness:outStock:add']"
  184. >新增
  185. </el-button>
  186. </el-col>
  187. <el-col :span="1.5">
  188. <el-button
  189. type="success"
  190. icon="el-icon-edit"
  191. size="mini"
  192. :disabled="single"
  193. @click="handleUpdate"
  194. v-hasPermi="['warehouseBusiness:outStock:edit']"
  195. >修改
  196. </el-button>
  197. </el-col>
  198. <el-col :span="1.5">
  199. <el-button
  200. type="warning"
  201. icon="el-icon-download"
  202. size="mini"
  203. @click="handleExport"
  204. v-hasPermi="['warehouseBusiness:outStock:export']"
  205. >导出
  206. </el-button>
  207. </el-col>
  208. <el-col :span="1.5">
  209. <el-button
  210. type="warning"
  211. icon="el-icon-download"
  212. size="mini"
  213. @click="handleExport"
  214. :disabled="multiple"
  215. v-hasPermi="['warehouseBusiness:outStock:export']"
  216. >导入
  217. </el-button>
  218. </el-col>
  219. <right-toolbar
  220. :showSearch.sync="showSearch"
  221. @queryTable="getList"
  222. ></right-toolbar>
  223. </el-row>
  224. <el-table
  225. v-loading="loading"
  226. :data="warehousebillsList"
  227. @selection-change="handleSelectionChange"
  228. >
  229. <el-table-column type="selection" width="55" align="center" />
  230. <el-table-column type="index" label="行号" align="center" />
  231. <el-table-column
  232. :show-overflow-tooltip="true"
  233. label="货权方"
  234. align="center"
  235. prop="fCorpid"
  236. />
  237. <el-table-column label="提单号" align="center" prop="fMblno" show-overflow-tooltip/>
  238. <el-table-column label="品名" :show-overflow-tooltip="true" align="ceter" prop="fProductName" />
  239. <el-table-column label="品牌" align="center" prop="fMarks" />
  240. <el-table-column
  241. label="出库日期"
  242. align="center"
  243. prop="createTime"
  244. style="width: 60%"
  245. show-overflow-tooltip
  246. ><template slot-scope="scope">
  247. <span>{{ parseTime(scope.row.fBsdate, "{y}-{m}-{d}") }}</span>
  248. </template>
  249. </el-table-column>
  250. <el-table-column label="仓库" align="center" prop="fWarehouseid" />
  251. <el-table-column label="出库件数" align="center" prop="fPlanqty" />
  252. <el-table-column label="出库毛重" align="center" prop="fPlangrossweight" />
  253. <el-table-column label="出库净重" align="center" prop="fPlannetweight" />
  254. <el-table-column label="车号" align="center" prop="fTruckno" />
  255. <el-table-column label="司机" align="center" prop="fDriverName" />
  256. <el-table-column label="司机电话" align="center" prop="fDriverTel" show-overflow-tooltip/>
  257. <el-table-column label="司机身份证" align="center" prop="fDriverIdCar" show-overflow-tooltip/>
  258. <el-table-column label="业务类别" align="center" prop="fBusinessType" />
  259. <el-table-column
  260. width="100"
  261. label="出库状态"
  262. align="center"
  263. prop="fItemsStatus"
  264. >
  265. <template slot-scope="scope">
  266. <span v-if="scope.row.fItemsStatus === 1">计划</span>
  267. <span v-if="scope.row.fItemsStatus === 2">卸货中</span>
  268. <span v-if="scope.row.fItemsStatus === 3">已装货</span>
  269. <span v-if="scope.row.fItemsStatus === 4">已出库</span>
  270. </template>
  271. </el-table-column>
  272. <el-table-column
  273. width="100"
  274. label="费用状态"
  275. align="center"
  276. prop="fBillstatus"
  277. >
  278. <template slot-scope="scope">
  279. <span v-if="scope.row.fBillstatus === 1">录入</span>
  280. <span v-if="scope.row.fBillstatus === 2">录入</span>
  281. <span v-if="scope.row.fBillstatus === 3">驳回</span>
  282. <span v-if="scope.row.fBillstatus === 4">请核</span>
  283. <span v-if="scope.row.fBillstatus === 5">审核中</span>
  284. <span v-if="scope.row.fBillstatus === 6">全部入账</span>
  285. </template>
  286. </el-table-column>
  287. <el-table-column
  288. label="操作"
  289. align="center"
  290. class-name="small-padding fixed-width"
  291. width="180"
  292. >
  293. <template slot-scope="scope">
  294. <el-button
  295. size="mini"
  296. type="text"
  297. icon="el-icon-edit"
  298. @click="handleUpdate(scope.row, true)"
  299. v-hasPermi="['warehouseBusiness:outStock:edit']"
  300. >查看
  301. </el-button>
  302. <el-button
  303. size="mini"
  304. type="text"
  305. icon="el-icon-edit"
  306. v-if="
  307. scope.row.fBillstatus === 1 ||
  308. scope.row.fBillstatus === 2 ||
  309. scope.row.fBillstatus === 3
  310. "
  311. @click="handleUpdate(scope.row, false)"
  312. v-hasPermi="['warehouseBusiness:outStock:edit']"
  313. >修改
  314. </el-button>
  315. <el-button
  316. size="mini"
  317. type="text"
  318. icon="el-icon-delete"
  319. v-if="scope.row.fItemsStatus === 1"
  320. @click="handleDelete(scope.row)"
  321. v-hasPermi="['warehouseBusiness:outStock:remove']"
  322. >删除
  323. </el-button>
  324. <el-button
  325. size="mini"
  326. type="text"
  327. icon="el-icon-delete"
  328. v-if="scope.row.fBillstatus === 4 || scope.row.fBillstatus === 5"
  329. @click="handleUpdate(scope.row, true)"
  330. >审核进度
  331. </el-button>
  332. </template>
  333. </el-table-column>
  334. </el-table>
  335. <add-or-update
  336. v-if="addOrUpdateVisible"
  337. ref="addOrUpdate"
  338. @refreshDataList="getDataList"
  339. ></add-or-update>
  340. <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
  341. <pagination
  342. v-show="total > 0"
  343. :total="total"
  344. :page.sync="queryParams.pageNum"
  345. :limit.sync="queryParams.pageSize"
  346. @pagination="getList"
  347. />
  348. <!-- 新增或修改仓库主(出入库)对话框 -->
  349. <el-dialog
  350. :visible.sync="open"
  351. :close-on-click-modal="false"
  352. @close='addCloseDialog'
  353. width="80%"
  354. append-to-body
  355. >
  356. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  357. <el-row>
  358. <el-col :span="8">
  359. <el-form-item label="货权方" prop="fCorpid">
  360. <el-select
  361. v-model="form.fCorpid"
  362. filterable
  363. remote
  364. :disabled="browseStatus || formBrowseStatus"
  365. @change="changefCorpid(form)"
  366. style="width: 80%"
  367. :remote-method="corpsRemoteMethod"
  368. placeholder="请输入模糊查找"
  369. >
  370. <el-option
  371. v-for="(dict, index) in fMblnoOptions"
  372. :key="index.fId"
  373. :label="dict.fName"
  374. :value="dict.fId"
  375. ></el-option>
  376. </el-select>
  377. </el-form-item>
  378. </el-col>
  379. <el-col :span="8">
  380. <el-form-item label="结算方式" prop="fstltypeid">
  381. <el-select
  382. v-model="form.fStltypeid"
  383. placeholder="请选择结算方式"
  384. :disabled="browseStatus || formBrowseStatus"
  385. clearable
  386. style="width: 80%"
  387. >
  388. <el-option
  389. v-for="(dict, index) in fStltypeOptions"
  390. :key="index.dictValue"
  391. :label="dict.dictLabel"
  392. :value="dict.dictValue"
  393. />
  394. </el-select>
  395. </el-form-item>
  396. </el-col>
  397. <el-col :span="8">
  398. <el-form-item label="提单号" prop="fMblno">
  399. <el-input
  400. v-model="form.fMblno"
  401. style="width: 80%"
  402. disabled
  403. placeholder=""
  404. />
  405. </el-form-item>
  406. </el-col>
  407. </el-row>
  408. <el-row>
  409. <el-col :span="8">
  410. <el-form-item label="业务日期" prop="fBsdate">
  411. <el-date-picker
  412. v-model="form.fBsdate"
  413. style="width: 80%"
  414. type="date"
  415. :disabled="browseStatus || formBrowseStatus"
  416. @change="changefBsdate"
  417. value-format="timestamp"
  418. placeholder="业务日期"
  419. >
  420. </el-date-picker>
  421. </el-form-item>
  422. </el-col>
  423. <el-col :span="8">
  424. <el-form-item label="仓管员" prop="fStorekeeper">
  425. <el-select
  426. v-model="form.fStorekeeper"
  427. filterable
  428. remote
  429. :disabled="browseStatus || formBrowseStatus"
  430. style="width: 80%"
  431. :remote-method="userRemoteMethod"
  432. placeholder="请输入模糊查找"
  433. >
  434. <el-option
  435. v-for="(dict, index) in userOptions"
  436. :key="index.userName"
  437. :label="dict.nickName"
  438. :value="dict.userName"
  439. ></el-option>
  440. </el-select>
  441. </el-form-item>
  442. </el-col>
  443. <el-col :span="8">
  444. <el-form-item label="仓库" prop="fWarehouseid">
  445. <el-select
  446. v-model="form.fWarehouseid"
  447. filterable
  448. remote
  449. @change="changefWarehouseid(form)"
  450. :disabled="browseStatus || formBrowseStatus"
  451. style="width: 80%"
  452. :remote-method="warehouseRemoteMethod"
  453. placeholder="请输入模糊查找"
  454. >
  455. <el-option
  456. v-for="(dict, index) in warehouseOptions"
  457. :key="index.fId"
  458. :label="dict.fName"
  459. :value="dict.fId"
  460. ></el-option>
  461. </el-select>
  462. </el-form-item>
  463. </el-col>
  464. </el-row>
  465. <el-row>
  466. <el-col :span="8">
  467. <el-form-item label="计划件数">
  468. <el-input
  469. v-model="form.fPlanqty"
  470. style="width: 80%"
  471. laceholder="计划件数"
  472. maxlength="9"
  473. oninput='this.value=this.value.replace(/\D/g,"")'
  474. :disabled="browseStatus"
  475. />
  476. </el-form-item>
  477. </el-col>
  478. <el-col :span="8">
  479. <el-form-item label="计划净重" prop="fPlannetweight">
  480. <el-input
  481. v-model="form.fPlannetweight"
  482. style="width: 80%"
  483. maxlength="9"
  484. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  485. laceholder="计划净重"
  486. :disabled="browseStatus"
  487. />
  488. </el-form-item>
  489. </el-col>
  490. <el-col :span="8">
  491. <el-form-item label="计划毛重" prop="fPlangrossweight">
  492. <el-input
  493. v-model="form.fPlangrossweight"
  494. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  495. style="width: 80%"
  496. maxlength="9"
  497. laceholder="计划毛重"
  498. :disabled="browseStatus"
  499. />
  500. </el-form-item>
  501. </el-col>
  502. </el-row>
  503. <el-row>
  504. <el-col :span="8">
  505. <el-form-item label="车号" prop="fTruckno">
  506. <el-input
  507. v-model="form.fTruckno"
  508. :disabled="browseStatus || formBrowseStatus"
  509. style="width: 80%"
  510. placeholder="请输货车车号"
  511. @change="changeInformation(whgenlegList)"
  512. />
  513. </el-form-item>
  514. </el-col>
  515. <el-col :span="8">
  516. <el-form-item label="司机" prop="fDriverName">
  517. <el-input
  518. v-model="form.fDriverName"
  519. :disabled="browseStatus || formBrowseStatus"
  520. style="width: 80%"
  521. placeholder="请输司机姓名"
  522. />
  523. </el-form-item>
  524. </el-col>
  525. <el-col :span="8">
  526. <el-form-item label="司机电话" prop="fDriverTel">
  527. <el-input
  528. oninput='this.value=this.value.replace(/[^\-?\d]/g,"")'
  529. v-model="form.fDriverTel"
  530. :disabled="browseStatus || formBrowseStatus"
  531. style="width: 80%"
  532. placeholder="请输司机电话"
  533. />
  534. </el-form-item>
  535. </el-col>
  536. <el-col :span="8">
  537. <el-form-item label="司机身份证" prop="fDriverIdCar">
  538. <el-input
  539. v-model="form.fDriverIdCar"
  540. :disabled="browseStatus || formBrowseStatus"
  541. style="width: 80%"
  542. placeholder="请输司机身份证"
  543. />
  544. </el-form-item>
  545. </el-col>
  546. <el-col :span="8">
  547. <el-form-item label="品牌" prop="fMarks">
  548. <el-input
  549. v-model="form.fMarks"
  550. style="width: 80%"
  551. disabled
  552. placeholder="品牌"
  553. />
  554. </el-form-item>
  555. </el-col>
  556. <el-col :span="8">
  557. <el-form-item label="品名" prop="fProductName">
  558. <el-input
  559. v-model="form.fProductName"
  560. style="width: 80%"
  561. disabled
  562. placeholder="品名"
  563. />
  564. </el-form-item>
  565. </el-col>
  566. <el-col :span="8">
  567. <el-form-item label="计费单位" prop="fFeetunit">
  568. <el-select
  569. v-model="form.fFeetunit"
  570. placeholder="请选择计费单位"
  571. :disabled="browseStatus || formBrowseStatus"
  572. clearable
  573. style="width: 80%"
  574. >
  575. <el-option
  576. v-for="(dict, index) in jFeetunitOptions"
  577. :key="index.dictValue"
  578. :label="dict.dictLabel"
  579. :value="dict.dictValue"
  580. />
  581. </el-select>
  582. </el-form-item>
  583. </el-col>
  584. </el-row>
  585. <el-row>
  586. <el-form-item label="备注" prop="remark">
  587. <el-input
  588. style="width: 100%"
  589. v-model="form.remark"
  590. :disabled="browseStatus "
  591. type="textarea"
  592. placeholder="请输入内容"
  593. />
  594. </el-form-item>
  595. </el-row>
  596. <div v-if="detailsHidden">
  597. <el-row style="margin-top: 30px">
  598. <el-col :span="8">
  599. <el-form-item label="仓库联系人" prop="fContacts">
  600. <el-input
  601. v-model="form.fContacts"
  602. :disabled="browseStatus || formBrowseStatus"
  603. style="width: 80%"
  604. placeholder="仓库联系人"
  605. />
  606. </el-form-item>
  607. </el-col>
  608. <el-col :span="8">
  609. <el-form-item label="仓库电话" prop="ftel">
  610. <el-input
  611. v-model="form.fTel"
  612. :disabled="browseStatus || formBrowseStatus"
  613. style="width: 80%"
  614. placeholder="请输仓库入电话"
  615. />
  616. </el-form-item>
  617. </el-col>
  618. <el-col :span="8">
  619. <el-form-item label="贸易方式" prop="fTrademodeid">
  620. <el-select
  621. v-model="form.fTrademodeid"
  622. placeholder="请选择贸易方式"
  623. :disabled="browseStatus || formBrowseStatus"
  624. clearable
  625. style="width: 80%"
  626. >
  627. <el-option
  628. v-for="(dict, index) in fTrademodeidOptions"
  629. :key="index.dictValue"
  630. :label="dict.dictLabel"
  631. :value="dict.dictValue"
  632. />
  633. </el-select>
  634. </el-form-item>
  635. </el-col>
  636. </el-row>
  637. <el-row>
  638. <el-col :span="8">
  639. <el-form-item label="单据编号" prop="fBillno">
  640. <el-input
  641. v-model="form.fBillno"
  642. style="width: 80%"
  643. disabled
  644. placeholder="单据编号"
  645. />
  646. </el-form-item>
  647. </el-col>
  648. <el-col :span="8">
  649. <el-form-item label="破损" prop="fifdamage">
  650. <el-select
  651. v-model="form.fIfdamage"
  652. placeholder="请选择是否破损"
  653. :disabled="browseStatus || formBrowseStatus"
  654. clearable
  655. style="width: 80%"
  656. >
  657. <el-option
  658. v-for="(dict, index) in fIfdamageOptions"
  659. :key="index.dictValue"
  660. :label="dict.dictLabel"
  661. :value="dict.dictValue"
  662. />
  663. </el-select>
  664. </el-form-item>
  665. </el-col>
  666. <el-col :span="8">
  667. <el-form-item label="过磅" prop="fifweigh">
  668. <el-select
  669. v-model="form.fIfweigh"
  670. placeholder="请选择是否过磅"
  671. :disabled="browseStatus || formBrowseStatus"
  672. clearable
  673. style="width: 80%"
  674. >
  675. <el-option
  676. v-for="(dict, index) in fIfweighOptions"
  677. :key="index.dictValue"
  678. :label="dict.dictLabel"
  679. :value="dict.dictValue"
  680. />
  681. </el-select>
  682. </el-form-item>
  683. </el-col>
  684. </el-row>
  685. <el-row>
  686. <el-col :span="8">
  687. <el-form-item label="制单人" prop="createBy">
  688. <el-input
  689. disabled
  690. v-model="form.createBy"
  691. style="width: 80%"
  692. placeholder="制单人"
  693. />
  694. </el-form-item>
  695. </el-col>
  696. <el-col :span="8">
  697. <el-form-item label="制单部门" prop="fDeptid">
  698. <el-select
  699. v-model="form.fDeptid"
  700. filterable
  701. disabled
  702. style="width: 80%"
  703. remote
  704. >
  705. <el-option
  706. v-for="(dict, index) in deptOptions"
  707. :key="index.deptId"
  708. :label="dict.deptName"
  709. :value="dict.deptId"
  710. ></el-option>
  711. </el-select>
  712. </el-form-item>
  713. </el-col>
  714. <el-col :span="8">
  715. <el-form-item disabled label="制单日期" prop="fbilldate">
  716. <el-date-picker
  717. v-model="form.createTime"
  718. size="large"
  719. type="date"
  720. disabled
  721. value-format="timestamp"
  722. placeholder="制单日期"
  723. >
  724. </el-date-picker>
  725. </el-form-item>
  726. </el-col>
  727. </el-row>
  728. </div>
  729. </el-form>
  730. <div style="
  731. display: flex;
  732. justify-content: space-between;
  733. align-items: center;
  734. margin: 10px 0;
  735. ">
  736. <div>
  737. <el-button
  738. type="primary"
  739. :disabled="browseStatus"
  740. @click.prevent="addRelevant(10)"
  741. >新行
  742. </el-button>
  743. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
  744. >删除
  745. </el-button> -->
  746. <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
  747. </div>
  748. <div style="display: flex">
  749. <el-button @click="detailsHidden ? (detailsHidden = false) : (detailsHidden = true)">{{ detailsHidden ? "隐藏" : "展开" }}</el-button>
  750. <el-button type="info" :disabled="printinglist.length <= 0 || browseStatus" prop="打印" @click="printJobSheet">作业单</el-button>
  751. <el-button :disabled="printinglist.length <= 0 || browseStatus" @click="discharge">装货完成</el-button>
  752. <el-button
  753. :disabled="dataListSelection.length <= 0 || browseStatus"
  754. @click.prevent="creditClick"
  755. >出库确认
  756. </el-button>
  757. <el-button
  758. :disabled="dataWithdrawList.length <= 0 || browseStatus"
  759. @click.prevent="withdrawClick"
  760. >撤回出库</el-button
  761. >
  762. <el-button type="warning" prop="打印" :disabled="printinglist.length <= 0 || browseStatus" @click="showEditDialog_s"
  763. >出库单
  764. </el-button>
  765. <!-- <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button> -->
  766. <el-button
  767. style="background-color: #008000; color: #fff"
  768. @click="submitForm"
  769. :disabled="browseStatus"
  770. >请核</el-button
  771. >
  772. <el-select
  773. v-model="form.fBusinessType"
  774. filterable
  775. :disabled="contrOl"
  776. >
  777. <el-option
  778. v-for="(dict, index) in businessTypeOption"
  779. :key="index.name"
  780. :label="dict.name"
  781. :value="dict.name"
  782. ></el-option>
  783. </el-select>
  784. </div>
  785. <div style="font-size: 18px">出库明细</div>
  786. <!--点击展开-->
  787. </div>
  788. <el-table
  789. :data="dataList"
  790. ref="tableList"
  791. tooltip-effect="dark"
  792. border
  793. stripe
  794. :summary-method="getSummaries"
  795. @selection-change="selectinventory"
  796. show-summary
  797. >
  798. <el-table-column type="selection" width="55" align="center" />
  799. <el-table-column label="序号" type="index" width="80">
  800. </el-table-column>
  801. <el-table-column
  802. prop="fMblno"
  803. header-align="center"
  804. align="center"
  805. width="140px"
  806. label="提单号"
  807. >
  808. </el-table-column>
  809. <el-table-column
  810. prop="fGoodsids"
  811. header-align="center"
  812. align="center"
  813. width="140px"
  814. label="品名"
  815. >
  816. </el-table-column>
  817. <el-table-column
  818. prop="fBusinessType"
  819. header-align="center"
  820. width="140px"
  821. align="center"
  822. label="*货物属性"
  823. >
  824. <template slot-scope="scope">
  825. <el-select v-model="scope.row.fBusinessType"
  826. filterable
  827. disabled
  828. :remote-method="kqhouseRemoteMethod"
  829. placeholder="请选择商品属性"
  830. >
  831. <el-option
  832. v-for="(dict, index) in fStorageTypeOptions"
  833. :key="index.dictValue"
  834. :label="dict.dictLabel"
  835. :value="dict.dictValue"
  836. />
  837. </el-select>
  838. </template>
  839. </el-table-column>
  840. <el-table-column
  841. prop="fMarks"
  842. header-align="center"
  843. align="center"
  844. width="140px"
  845. label="*属性详情"
  846. >
  847. </el-table-column>
  848. <el-table-column
  849. prop="fWarehouselocids"
  850. header-align="center"
  851. width="150px"
  852. align="center"
  853. label="*库区"
  854. >
  855. </el-table-column>
  856. <el-table-column
  857. prop="fPlanqty"
  858. header-align="center"
  859. align="center"
  860. width="180px"
  861. label="*结余库存"
  862. >
  863. </el-table-column>
  864. <el-table-column
  865. prop="fPlangrossweight"
  866. header-align="center"
  867. align="center"
  868. width="180px"
  869. label="*结余毛重"
  870. >
  871. </el-table-column>
  872. <el-table-column
  873. prop="fPlannetweight"
  874. header-align="center"
  875. align="center"
  876. width="180px"
  877. label="*结余净重"
  878. >
  879. </el-table-column>
  880. <el-table-column
  881. prop="fQty"
  882. header-align="center"
  883. width="180px"
  884. align="center"
  885. label="*出库件数"
  886. >
  887. <template slot-scope="scope">
  888. <el-input
  889. oninput='this.value=this.value.replace(/[^\-?\d]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "")'
  890. @change="qtyChange(scope.row)"
  891. v-model="scope.row.fQty"
  892. :disabled="browseStatus || scope.row.fBillstatus === 40"
  893. placeholder="出库件数"
  894. show-word-limit
  895. />
  896. </template>
  897. </el-table-column>
  898. <el-table-column
  899. prop="fGrossweight"
  900. header-align="center"
  901. width="180px"
  902. align="center"
  903. label="*出库毛重"
  904. >
  905. <template slot-scope="scope">
  906. <el-input
  907. :disabled="browseStatus || scope.row.fBillstatus === 40"
  908. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  909. v-model="scope.row.fGrossweight"
  910. @change="changeOutStock(scope.row)"
  911. placeholder="出库毛重"
  912. show-word-limit
  913. />
  914. </template>
  915. </el-table-column>
  916. <el-table-column
  917. prop="fNetweight"
  918. header-align="center"
  919. width="180px"
  920. align="center"
  921. label="*出库净重"
  922. >
  923. <template slot-scope="scope">
  924. <el-input
  925. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  926. v-model="scope.row.fNetweight"
  927. :disabled="browseStatus || scope.row.fBillstatus === 40"
  928. @change="changeOutStock(scope.row)"
  929. placeholder="出库净重"
  930. show-word-limit
  931. />
  932. </template>
  933. </el-table-column>
  934. <el-table-column
  935. prop="fPackagespecs"
  936. header-align="center"
  937. width="180px"
  938. align="center"
  939. label="*包装规格"
  940. >
  941. <template slot-scope="scope">
  942. <el-input
  943. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  944. v-model="scope.row.fPackagespecs"
  945. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  946. placeholder="包装规格"
  947. show-word-limit
  948. />
  949. </template>
  950. </el-table-column>
  951. <el-table-column
  952. prop="fCntrtype"
  953. header-align="center"
  954. align="center"
  955. width="140px"
  956. label="箱型"
  957. >
  958. <template slot-scope="scope">
  959. <el-input
  960. v-model="scope.row.fCntrtype"
  961. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  962. placeholder="箱型"
  963. show-word-limit
  964. />
  965. </template>
  966. </el-table-column>
  967. <el-table-column
  968. prop="fCntqty"
  969. header-align="center"
  970. align="center"
  971. width="140px"
  972. label="箱量"
  973. >
  974. <template slot-scope="scope">
  975. <el-input
  976. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  977. v-model="scope.row.fCntqty"
  978. placeholder="箱量"
  979. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  980. show-word-limit
  981. />
  982. </template>
  983. </el-table-column>
  984. <el-table-column
  985. prop="fCntrno"
  986. header-align="center"
  987. width="150px"
  988. align="center"
  989. label="箱号"
  990. >
  991. <template slot-scope="scope">
  992. <el-input
  993. v-model="scope.row.fCntrno"
  994. placeholder="箱号"
  995. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  996. show-word-limit
  997. />
  998. </template>
  999. </el-table-column>
  1000. <el-table-column
  1001. prop="fGoodsval"
  1002. header-align="center"
  1003. width="150px"
  1004. align="center"
  1005. label="货值"
  1006. >
  1007. <template slot-scope="scope">
  1008. <el-input
  1009. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  1010. v-model="scope.row.fGoodsval"
  1011. placeholder="货值"
  1012. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  1013. show-word-limit
  1014. />
  1015. </template>
  1016. </el-table-column>
  1017. <el-table-column
  1018. prop="ftruckno"
  1019. header-align="center"
  1020. width="150px"
  1021. align="center"
  1022. label="*车号"
  1023. >
  1024. <template slot-scope="scope">
  1025. <el-input
  1026. v-model="scope.row.fTruckno"
  1027. placeholder="车号"
  1028. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  1029. show-word-limit
  1030. />
  1031. </template>
  1032. </el-table-column>
  1033. <el-table-column
  1034. prop="fDriverName"
  1035. header-align="center"
  1036. width="130px"
  1037. align="center"
  1038. label="*司机名"
  1039. >
  1040. <template slot-scope="scope">
  1041. <el-input
  1042. v-model="scope.row.fDriverName"
  1043. placeholder="司机名"
  1044. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  1045. show-word-limit
  1046. />
  1047. </template>
  1048. </el-table-column>
  1049. <el-table-column
  1050. prop="fDriverTel"
  1051. header-align="center"
  1052. width="130px"
  1053. align="center"
  1054. label="*司机电话"
  1055. >
  1056. <template slot-scope="scope">
  1057. <el-input
  1058. oninput='this.value=this.value.replace(/[^\-?\d]/g,"")'
  1059. v-model="scope.row.fDriverTel"
  1060. placeholder="司机电话"
  1061. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  1062. show-word-limit
  1063. />
  1064. </template>
  1065. </el-table-column>
  1066. <el-table-column
  1067. prop="fDriverIdCar"
  1068. header-align="center"
  1069. width="200px"
  1070. align="center"
  1071. label="*司机身份证"
  1072. >
  1073. <template slot-scope="scope">
  1074. <el-input
  1075. v-model="scope.row.fDriverIdCar"
  1076. placeholder="司机身份证"
  1077. :disabled="browseStatus || scope.row.fBillstatus === 20 || scope.row.fBillstatus === 30 || scope.row.fBillstatus === 40"
  1078. show-word-limit
  1079. />
  1080. </template>
  1081. </el-table-column>
  1082. <el-table-column
  1083. prop="fIsPass"
  1084. header-align="center"
  1085. width="130px"
  1086. align="center"
  1087. label="是否放行"
  1088. >
  1089. <template slot-scope="scope">
  1090. <el-select
  1091. v-model="scope.row.fIsPass"
  1092. placeholder="是否放行"
  1093. :disabled="browseStatus || scope.row.fBillstatus === 40"
  1094. style="width: 80%"
  1095. >
  1096. <el-option
  1097. v-for="(dict, index) in releaseList"
  1098. :key="index.dictValue"
  1099. :label="dict.dictLabel"
  1100. :value="dict.dictValue"
  1101. />
  1102. </el-select>
  1103. </template>
  1104. </el-table-column>
  1105. <el-table-column
  1106. prop="fSerialNumber"
  1107. header-align="center"
  1108. width="160px"
  1109. align="center"
  1110. label="流水号"
  1111. >
  1112. </el-table-column>
  1113. <el-table-column
  1114. prop="remark"
  1115. header-align="center"
  1116. width="150px"
  1117. align="center"
  1118. label="备注"
  1119. >
  1120. <template slot-scope="scope">
  1121. <el-input
  1122. v-model="scope.row.remark"
  1123. placeholder="备注"
  1124. :disabled="browseStatus"
  1125. show-word-limit
  1126. />
  1127. </template>
  1128. </el-table-column>
  1129. <el-table-column
  1130. prop="fBillstatus"
  1131. header-align="center"
  1132. width="150px"
  1133. align="center"
  1134. label="状态"
  1135. >
  1136. <template slot-scope="scope">
  1137. <span v-if="form.fBusinessType === '出库装箱'">
  1138. <span v-if="scope.row.fBillstatus === 40">已装箱</span>
  1139. <span v-if="scope.row.fBillstatus === 20">待装箱</span>
  1140. <span v-if="scope.row.fBillstatus === 30">装箱中</span>
  1141. <span v-if="scope.row.fBillstatus === 10">计划</span>
  1142. </span>
  1143. <span v-if="form.fBusinessType === '来车提货'">
  1144. <span v-if="scope.row.fBillstatus === 40">已出库</span>
  1145. <span v-if="scope.row.fBillstatus === 20">待出库</span>
  1146. <span v-if="scope.row.fBillstatus === 30">出库中</span>
  1147. <span v-if="scope.row.fBillstatus === 10">计划</span>
  1148. </span>
  1149. </template>
  1150. </el-table-column>
  1151. <el-table-column
  1152. header-align="center"
  1153. align="center"
  1154. label="操作"
  1155. width="130PX"
  1156. >
  1157. <template slot-scope="scope">
  1158. <el-button
  1159. @click.native.prevent="deleteRow(scope.$index, dataList)"
  1160. size="small"
  1161. :disabled="browseStatus || scope.row.fBillstatus === 40"
  1162. >移除
  1163. </el-button>
  1164. </template>
  1165. </el-table-column>
  1166. </el-table>
  1167. <div
  1168. class="dialogTableTitle flex a-center jlr"
  1169. style="
  1170. display: flex;
  1171. justify-content: space-between;
  1172. align-items: center;
  1173. margin: 10px 0;
  1174. "
  1175. >
  1176. <div>
  1177. <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
  1178. >新行
  1179. </el-button>
  1180. </div>
  1181. <div style="font-size: 18px">附件明细</div>
  1182. </div>
  1183. <el-table
  1184. :data="relevantAttachments"
  1185. ref="table"
  1186. tooltip-effect="dark"
  1187. border
  1188. stripe
  1189. style="width: 100%"
  1190. height="150"
  1191. >
  1192. <el-table-column label="序号" type="index" width="80">
  1193. </el-table-column>
  1194. <el-table-column
  1195. prop="fName"
  1196. header-align="center"
  1197. align="center"
  1198. width="250px"
  1199. label="附件名称"
  1200. >
  1201. <template slot-scope="scope">
  1202. <el-input
  1203. v-model="scope.row.fName"
  1204. :disabled="browseStatus"
  1205. placeholder="附件名称"
  1206. show-word-limit
  1207. />
  1208. </template>
  1209. </el-table-column>
  1210. <el-table-column
  1211. prop="createBy"
  1212. header-align="center"
  1213. align="center"
  1214. width="250px"
  1215. label="上传人"
  1216. >
  1217. <template slot-scope="scope">
  1218. <el-input
  1219. v-model="scope.row.createBy"
  1220. disabled
  1221. placeholder="上传人"
  1222. show-word-limit
  1223. />
  1224. </template>
  1225. </el-table-column>
  1226. <el-table-column
  1227. prop="createTime"
  1228. header-align="center"
  1229. align="center"
  1230. label="上传时间"
  1231. >
  1232. <template slot-scope="scope">
  1233. <el-date-picker
  1234. v-model="scope.row.createTime"
  1235. type="date"
  1236. disabled
  1237. placeholder="上传时间"
  1238. format="yyyy-MM-dd HH:mm"
  1239. value-format="timestamp"
  1240. ></el-date-picker>
  1241. </template>
  1242. </el-table-column>
  1243. <el-table-column
  1244. prop="fUrl"
  1245. header-align="center"
  1246. align="center"
  1247. width="300px"
  1248. label="上传附件"
  1249. >
  1250. <template slot-scope="scope">
  1251. <uploadFile @input="showFile" v-model="scope.row.fUrl" />
  1252. </template>
  1253. </el-table-column>
  1254. <el-table-column header-align="center" align="center" label="操作">
  1255. <template slot-scope="scope">
  1256. <el-button
  1257. @click.native.prevent="deleteRow(scope.$index, relevantAttachments)"
  1258. :disabled="browseStatus"
  1259. size="small"
  1260. >移除
  1261. </el-button>
  1262. </template>
  1263. </el-table-column>
  1264. </el-table>
  1265. <div
  1266. class="dialogTableTitle flex a-center jlr"
  1267. style="
  1268. display: flex;
  1269. justify-content: space-between;
  1270. align-items: center;
  1271. margin: 10px 0;
  1272. "
  1273. >
  1274. <div>
  1275. <el-button :disabled="browseStatus" @click.prevent="addCollection()"
  1276. >新行
  1277. </el-button>
  1278. <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
  1279. <!--暂时隐藏-->
  1280. <!-- <el-button type="warning" @click.prevent="addStorages('Dr')">仓储费协议</el-button >-->
  1281. <el-button type="danger"
  1282. :disabled="browseStatus"
  1283. @click.prevent="addAgreement('Dr')"
  1284. >作业费协议</el-button
  1285. >
  1286. </div>
  1287. <div style="font-size: 18px">收款信息</div>
  1288. </div>
  1289. <el-table
  1290. :data="warehouseDrList"
  1291. ref="tableDr"
  1292. tooltip-effect="dark"
  1293. border
  1294. stripe
  1295. show-summary
  1296. @selection-change="collectionoptions"
  1297. :summary-method="warehouseDrSummaries"
  1298. >
  1299. <el-table-column type="selection" width="55" align="center" />
  1300. <el-table-column label="序号" type="index" width="80">
  1301. </el-table-column>
  1302. <el-table-column
  1303. prop="fCorpid"
  1304. header-align="center"
  1305. align="center"
  1306. width="180px"
  1307. label="客户名称"
  1308. >
  1309. <template slot-scope="scope">
  1310. <el-select
  1311. v-model="scope.row.fCorpid"
  1312. filterable
  1313. remote
  1314. :disabled="browseStatus"
  1315. :remote-method="corpsRemoteMethod"
  1316. placeholder="客户名称"
  1317. >
  1318. <el-option
  1319. v-for="(dict, index) in KHblnoOptions"
  1320. :key="index.fId"
  1321. :label="dict.fName"
  1322. :value="dict.fId"
  1323. ></el-option>
  1324. </el-select>
  1325. </template>
  1326. </el-table-column>
  1327. <el-table-column
  1328. prop="fFeeid"
  1329. header-align="center"
  1330. align="center"
  1331. width="180px"
  1332. label="费用名称"
  1333. >
  1334. <template slot-scope="scope">
  1335. <el-select
  1336. v-model="scope.row.fFeeid"
  1337. filterable
  1338. remote
  1339. :disabled="browseStatus"
  1340. :remote-method="fWRemoteMethod"
  1341. @change="changeFeeId(scope.row)"
  1342. placeholder="费用名称"
  1343. >
  1344. <el-option
  1345. v-for="(dict, index) in fWbuOptions"
  1346. :key="index.fId"
  1347. :label="dict.fName"
  1348. :value="dict.fId"
  1349. ></el-option>
  1350. </el-select>
  1351. </template>
  1352. </el-table-column>
  1353. <el-table-column
  1354. prop="fFeeunitid"
  1355. header-align="center"
  1356. align="center"
  1357. width="180px"
  1358. label="计价单位"
  1359. >
  1360. <template slot-scope="scope">
  1361. <el-select
  1362. v-model="scope.row.fFeeunitid"
  1363. placeholder="请选择计费单位"
  1364. @change="changeFeeUnit(scope.row)"
  1365. :disabled="browseStatus"
  1366. clearable
  1367. >
  1368. <el-option
  1369. v-for="(dict, index) in jFeetunitOptions"
  1370. :key="index.dictValue"
  1371. :label="dict.dictLabel"
  1372. :value="dict.dictValue"
  1373. />
  1374. </el-select>
  1375. </template>
  1376. </el-table-column>
  1377. <el-table-column
  1378. prop="fQty"
  1379. header-align="center"
  1380. align="center"
  1381. width="150px"
  1382. label="数量"
  1383. >
  1384. <template slot-scope="scope">
  1385. <el-input
  1386. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1387. v-model="scope.row.fQty"
  1388. placeholder="数量"
  1389. :disabled="browseStatus"
  1390. @change="changeContractAmt(scope.row)"
  1391. show-word-limit
  1392. />
  1393. </template>
  1394. </el-table-column>
  1395. <el-table-column
  1396. prop="funitprice"
  1397. header-align="center"
  1398. align="center"
  1399. width="150px"
  1400. label="单价"
  1401. >
  1402. <template slot-scope="scope">
  1403. <el-input
  1404. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1405. v-model="scope.row.fUnitprice"
  1406. placeholder="单价"
  1407. :disabled="browseStatus"
  1408. @change="changeContractAmt(scope.row)"
  1409. show-word-limit
  1410. />
  1411. </template>
  1412. </el-table-column>
  1413. <el-table-column
  1414. prop="fAmount"
  1415. header-align="center"
  1416. align="center"
  1417. width="150px"
  1418. label="金额"
  1419. >
  1420. <template slot-scope="scope">
  1421. <el-input
  1422. disabled
  1423. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1424. v-model="scope.row.fAmount"
  1425. placeholder="金额"
  1426. show-word-limit
  1427. />
  1428. </template>
  1429. </el-table-column>
  1430. <el-table-column
  1431. prop="fCurrency"
  1432. header-align="center"
  1433. align="center"
  1434. width="150px"
  1435. label="币别"
  1436. >
  1437. <template slot-scope="scope">
  1438. <el-input
  1439. v-model="scope.row.fCurrency"
  1440. :disabled="browseStatus"
  1441. placeholder="币别"
  1442. show-word-limit
  1443. />
  1444. </template>
  1445. </el-table-column>
  1446. <el-table-column
  1447. prop="fExrate"
  1448. header-align="center"
  1449. align="center"
  1450. width="150px"
  1451. label="汇率"
  1452. >
  1453. <template slot-scope="scope">
  1454. <el-input
  1455. v-model="scope.row.fExrate"
  1456. :disabled="browseStatus"
  1457. placeholder="汇率"
  1458. show-word-limit
  1459. />
  1460. </template>
  1461. </el-table-column>
  1462. <el-table-column
  1463. prop="fTaxrate"
  1464. header-align="center"
  1465. align="center"
  1466. width="150px"
  1467. label="税率"
  1468. >
  1469. <template slot-scope="scope">
  1470. <el-input
  1471. v-model="scope.row.fTaxrate"
  1472. :disabled="browseStatus"
  1473. placeholder="税率"
  1474. show-word-limit
  1475. />
  1476. </template>
  1477. </el-table-column>
  1478. <el-table-column
  1479. prop="fMblno"
  1480. header-align="center"
  1481. align="center"
  1482. width="130px"
  1483. label="提单号"
  1484. >
  1485. <template slot-scope="scope">
  1486. <el-input
  1487. v-model="scope.row.fMblno"
  1488. :disabled="browseStatus"
  1489. placeholder="提单号"
  1490. show-word-limit
  1491. />
  1492. </template>
  1493. </el-table-column>
  1494. <el-table-column
  1495. prop="fProductName"
  1496. header-align="center"
  1497. align="center"
  1498. width="140px"
  1499. label="品名"
  1500. >
  1501. <template slot-scope="scope">
  1502. <el-input
  1503. v-model="scope.row.fProductName"
  1504. :disabled="browseStatus"
  1505. placeholder="品名"
  1506. show-word-limit
  1507. />
  1508. </template>
  1509. </el-table-column>
  1510. <el-table-column
  1511. prop="fMarks"
  1512. header-align="center"
  1513. align="center"
  1514. width="130px"
  1515. label="品牌"
  1516. >
  1517. <template slot-scope="scope">
  1518. <el-input
  1519. v-model="scope.row.fMarks"
  1520. :disabled="browseStatus"
  1521. placeholder="品牌"
  1522. show-word-limit
  1523. />
  1524. </template>
  1525. </el-table-column>
  1526. <el-table-column
  1527. prop="remarks"
  1528. header-align="center"
  1529. align="center"
  1530. width="150px"
  1531. label="备注"
  1532. >
  1533. <template slot-scope="scope">
  1534. <el-input
  1535. v-model="scope.row.remarks"
  1536. :disabled="browseStatus"
  1537. placeholder="备注"
  1538. show-word-limit
  1539. />
  1540. </template>
  1541. </el-table-column>
  1542. <el-table-column
  1543. header-align="center"
  1544. align="center"
  1545. label="操作"
  1546. width="200px"
  1547. >
  1548. <template slot-scope="scope">
  1549. <el-button
  1550. @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
  1551. size="small"
  1552. >移除</el-button
  1553. >
  1554. </template>
  1555. </el-table-column>
  1556. </el-table>
  1557. <div
  1558. class="dialogTableTitle flex a-center jlr"
  1559. style="
  1560. display: flex;
  1561. justify-content: space-between;
  1562. align-items: center;
  1563. margin: 10px 0;
  1564. "
  1565. >
  1566. <div>
  1567. <el-button :disabled="browseStatus" @click.prevent="addpayment()"
  1568. >新行
  1569. </el-button>
  1570. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseDrList)"
  1571. >删除
  1572. </el-button> -->
  1573. <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
  1574. <!--暂时隐藏-->
  1575. <!-- <el-button type="warning" @click.prevent="addStorages('Cr')">仓储费协议</el-button>-->
  1576. <el-button type="danger"
  1577. :disabled="browseStatus"
  1578. @click.prevent="addAgreement('Cr')"
  1579. >作业费协议</el-button
  1580. >
  1581. </div>
  1582. <div style="font-size: 18px">付款信息</div>
  1583. </div>
  1584. <el-table
  1585. :data="warehouseCrList"
  1586. ref="table"
  1587. tooltip-effect="dark"
  1588. border
  1589. stripe
  1590. show-summary
  1591. @selection-change="collectionoptions"
  1592. :summary-method="warehouseDrSummaries"
  1593. >
  1594. <el-table-column type="selection" width="55" align="center" />
  1595. <el-table-column label="序号" type="index" width="80">
  1596. </el-table-column>
  1597. <el-table-column
  1598. prop="fCorpid"
  1599. header-align="center"
  1600. align="center"
  1601. width="180px"
  1602. label="客户名称"
  1603. >
  1604. <template slot-scope="scope">
  1605. <el-select
  1606. v-model="scope.row.fCorpid"
  1607. filterable
  1608. remote
  1609. :disabled="browseStatus"
  1610. :remote-method="corpsRemoteMethod"
  1611. placeholder="客户名称"
  1612. >
  1613. <el-option
  1614. v-for="(dict, index) in KHblnoOptions"
  1615. :key="index.fId"
  1616. :label="dict.fName"
  1617. :value="dict.fId"
  1618. ></el-option>
  1619. </el-select>
  1620. </template>
  1621. </el-table-column>
  1622. <el-table-column
  1623. prop="fFeeid"
  1624. header-align="center"
  1625. align="center"
  1626. width="180px"
  1627. label="费用名称"
  1628. >
  1629. <template slot-scope="scope">
  1630. <el-select
  1631. v-model="scope.row.fFeeid"
  1632. filterable
  1633. remote
  1634. :disabled="browseStatus"
  1635. :remote-method="fWRemoteMethod"
  1636. @change="changeFeeId(scope.row)"
  1637. placeholder="费用名称"
  1638. >
  1639. <el-option
  1640. v-for="(dict, index) in fWbuOptions"
  1641. :key="index.fId"
  1642. :label="dict.fName"
  1643. :value="dict.fId"
  1644. ></el-option>
  1645. </el-select>
  1646. </template>
  1647. </el-table-column>
  1648. <el-table-column
  1649. prop="fFeeunitid"
  1650. header-align="center"
  1651. align="center"
  1652. width="180px"
  1653. label="计价单位"
  1654. >
  1655. <template slot-scope="scope">
  1656. <el-select
  1657. v-model="scope.row.fFeeunitid"
  1658. placeholder="请选择计费单位"
  1659. @change="changeFeeUnit(scope.row)"
  1660. :disabled="browseStatus"
  1661. clearable
  1662. >
  1663. <el-option
  1664. v-for="(dict, index) in jFeetunitOptions"
  1665. :key="index.dictValue"
  1666. :label="dict.dictLabel"
  1667. :value="dict.dictValue"
  1668. ></el-option>
  1669. </el-select>
  1670. </template>
  1671. </el-table-column>
  1672. <el-table-column
  1673. prop="fQty"
  1674. header-align="center"
  1675. align="center"
  1676. width="150px"
  1677. label="数量"
  1678. >
  1679. <template slot-scope="scope">
  1680. <el-input
  1681. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1682. v-model="scope.row.fQty"
  1683. @change="changeContractAmt(scope.row)"
  1684. :disabled="browseStatus"
  1685. placeholder="数量"
  1686. show-word-limit
  1687. />
  1688. </template>
  1689. </el-table-column>
  1690. <el-table-column
  1691. prop="funitprice"
  1692. header-align="center"
  1693. align="center"
  1694. width="150px"
  1695. label="单价"
  1696. >
  1697. <template slot-scope="scope">
  1698. <el-input
  1699. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1700. v-model="scope.row.fUnitprice"
  1701. @change="changeContractAmt(scope.row)"
  1702. :disabled="browseStatus"
  1703. placeholder="单价"
  1704. show-word-limit
  1705. />
  1706. </template>
  1707. </el-table-column>
  1708. <el-table-column
  1709. prop="fAmount"
  1710. header-align="center"
  1711. align="center"
  1712. width="150px"
  1713. label="金额"
  1714. >
  1715. <template slot-scope="scope">
  1716. <el-input
  1717. disabled
  1718. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1719. v-model="scope.row.fAmount"
  1720. placeholder="金额"
  1721. show-word-limit
  1722. />
  1723. </template>
  1724. </el-table-column>
  1725. <el-table-column
  1726. prop="fCurrency"
  1727. header-align="center"
  1728. align="center"
  1729. width="150px"
  1730. label="币别"
  1731. >
  1732. <template slot-scope="scope">
  1733. <el-input
  1734. v-model="scope.row.fCurrency"
  1735. :disabled="browseStatus"
  1736. placeholder="币别"
  1737. show-word-limit
  1738. />
  1739. </template>
  1740. </el-table-column>
  1741. <el-table-column
  1742. prop="fExrate"
  1743. header-align="center"
  1744. align="center"
  1745. width="150px"
  1746. label="汇率"
  1747. >
  1748. <template slot-scope="scope">
  1749. <el-input
  1750. v-model="scope.row.fExrate"
  1751. :disabled="browseStatus"
  1752. placeholder="汇率"
  1753. show-word-limit
  1754. />
  1755. </template>
  1756. </el-table-column>
  1757. <el-table-column
  1758. prop="fTaxrate"
  1759. header-align="center"
  1760. align="center"
  1761. width="150px"
  1762. label="税率"
  1763. >
  1764. <template slot-scope="scope">
  1765. <el-input
  1766. v-model="scope.row.fTaxrate"
  1767. :disabled="browseStatus"
  1768. placeholder="税率"
  1769. show-word-limit
  1770. />
  1771. </template>
  1772. </el-table-column>
  1773. <el-table-column
  1774. prop="fMblno"
  1775. header-align="center"
  1776. align="center"
  1777. width="130px"
  1778. label="提单号"
  1779. >
  1780. <template slot-scope="scope">
  1781. <el-input
  1782. v-model="scope.row.fMblno"
  1783. :disabled="browseStatus"
  1784. placeholder="提单号"
  1785. show-word-limit
  1786. />
  1787. </template>
  1788. </el-table-column>
  1789. <el-table-column
  1790. prop="fProductName"
  1791. header-align="center"
  1792. align="center"
  1793. width="140px"
  1794. label="品名"
  1795. >
  1796. <template slot-scope="scope">
  1797. <el-input
  1798. v-model="scope.row.fProductName"
  1799. :disabled="browseStatus"
  1800. placeholder="品名"
  1801. show-word-limit
  1802. />
  1803. </template>
  1804. </el-table-column>
  1805. <el-table-column
  1806. prop="fMarks"
  1807. header-align="center"
  1808. align="center"
  1809. width="130px"
  1810. label="品牌"
  1811. >
  1812. <template slot-scope="scope">
  1813. <el-input
  1814. v-model="scope.row.fMarks"
  1815. :disabled="browseStatus"
  1816. placeholder="品牌"
  1817. show-word-limit
  1818. />
  1819. </template>
  1820. </el-table-column>
  1821. <el-table-column
  1822. prop="remarks"
  1823. header-align="center"
  1824. align="center"
  1825. width="150px"
  1826. label="备注"
  1827. >
  1828. <template slot-scope="scope">
  1829. <el-input
  1830. v-model="scope.row.remarks"
  1831. :disabled="browseStatus"
  1832. placeholder="备注"
  1833. show-word-limit
  1834. />
  1835. </template>
  1836. </el-table-column>
  1837. <el-table-column
  1838. header-align="center"
  1839. align="center"
  1840. width="200px"
  1841. label="操作"
  1842. >
  1843. <template slot-scope="scope">
  1844. <el-button
  1845. @click.native.prevent="deleteRow(scope.$index, warehouseCrList)"
  1846. size="small"
  1847. >移除</el-button
  1848. >
  1849. </template>
  1850. </el-table-column>
  1851. </el-table>
  1852. <div slot="footer" class="dialog-footer">
  1853. <!-- <el-button type="success" prop="打印" @click="showEditDialog_ss"
  1854. >收货单
  1855. </el-button> -->
  1856. <el-button
  1857. type="primary"
  1858. :disabled="approvalStatus"
  1859. @click="addOrUpdateHandle(form)"
  1860. v-if="form.fBillstatus > 3"
  1861. >查看审批</el-button>
  1862. <el-button
  1863. type="primary"
  1864. v-if="approVal === true"
  1865. @click="addOrUpdateHand(form)"
  1866. >审批</el-button>
  1867. <el-button type="warning" prop="打印" :disabled="printinglist.length <= 0 || browseStatus" @click="showEditDialog_s"
  1868. >出库单
  1869. </el-button>
  1870. <el-button :disabled="printinglist.length <= 0 || browseStatus" @click="discharge">装货</el-button>
  1871. <el-button type="info" prop="打印" :disabled="printinglist.length <= 0 || browseStatus" @click="printJobSheet"
  1872. >作业单
  1873. </el-button>
  1874. <el-button type="primary" :disabled="browseStatus" @click="saveForm">保 存</el-button>
  1875. <el-button
  1876. style="background-color: #008000; color: #fff"
  1877. @click="submitForm"
  1878. :disabled="browseStatus"
  1879. >请核</el-button
  1880. >
  1881. <el-button type="danger" v-if="form.fBillstatus === 6" @click="revoke">撤销请核</el-button>
  1882. <el-button type="danger" v-if="form.fBillstatus === 4 && current === before" :disabled="doNot" @click="revokeTwo">撤销请核</el-button>
  1883. <el-button @click="cancelTwo" v-if="approVal === true">取 消</el-button>
  1884. <el-button @click="cancel" v-else>取 消</el-button>
  1885. </div>
  1886. <!-- 选择库存总账数据 -->
  1887. <el-dialog
  1888. title="库存总账"
  1889. :modal="false"
  1890. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1891. :visible.sync="whgenlegVisible"
  1892. width="70%"
  1893. >
  1894. <el-table
  1895. :data="whgenlegList"
  1896. ref="table"
  1897. tooltip-effect="dark"
  1898. width="100%"
  1899. border
  1900. stripe
  1901. @selection-change="whgenlegSelectionChange"
  1902. >
  1903. <el-table-column type="selection" width="55"> </el-table-column>
  1904. <el-table-column
  1905. prop="fMblno"
  1906. header-align="center"
  1907. align="center"
  1908. label="提单号"
  1909. >
  1910. </el-table-column>
  1911. <el-table-column
  1912. prop="createTime"
  1913. header-align="center"
  1914. align="center"
  1915. width="180px"
  1916. label="入库日期"
  1917. >
  1918. </el-table-column>
  1919. <el-table-column
  1920. prop="fGoodsids"
  1921. header-align="center"
  1922. align="center"
  1923. label="品名"
  1924. >
  1925. </el-table-column>
  1926. <el-table-column
  1927. prop="fQtyblc"
  1928. header-align="center"
  1929. align="center"
  1930. label="结余数量"
  1931. >
  1932. </el-table-column>
  1933. <el-table-column
  1934. prop="fWarehouseids"
  1935. header-align="center"
  1936. align="center"
  1937. label="仓库"
  1938. >
  1939. </el-table-column>
  1940. <el-table-column
  1941. prop="fWarehouseLocationids"
  1942. header-align="center"
  1943. align="center"
  1944. label="库区"
  1945. >
  1946. </el-table-column>
  1947. <el-table-column
  1948. prop="fMarks"
  1949. header-align="center"
  1950. align="center"
  1951. label="品牌"
  1952. >
  1953. </el-table-column>
  1954. </el-table>
  1955. <pagination
  1956. v-show="whgenlegTotal > 0"
  1957. :total="whgenlegTotal"
  1958. :page.sync="whgenlegParams.pageNum"
  1959. :limit.sync="whgenlegParams.pageSize"
  1960. @pagination="getWhgenlegList"
  1961. />
  1962. <div slot="footer" class="dialog-footer">
  1963. <el-button type="primary" @click="whgenlegData">导入库存总账</el-button>
  1964. <el-button @click="whgenlegVisible = false">取 消</el-button>
  1965. </div>
  1966. </el-dialog>
  1967. <!-- 选择作业费协议数据 -->
  1968. <el-dialog
  1969. title="作业费协议"
  1970. :modal="false"
  1971. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  1972. :visible.sync="warehousingagreements"
  1973. width="70%"
  1974. >
  1975. <el-table
  1976. :data="tasklegList"
  1977. ref="table"
  1978. tooltip-effect="dark"
  1979. width="100%"
  1980. border
  1981. stripe
  1982. @selection-change="whgenlegSelectionChange"
  1983. >
  1984. <el-table-column type="selection" width="55"> </el-table-column>
  1985. <el-table-column label="行号" type="index" width="80">
  1986. </el-table-column>
  1987. <el-table-column
  1988. prop="fCorpname"
  1989. header-align="center"
  1990. align="center"
  1991. label="客户名称"
  1992. >
  1993. </el-table-column>
  1994. <el-table-column
  1995. prop="fName"
  1996. header-align="center"
  1997. align="center"
  1998. width="180px"
  1999. label="费用名称"
  2000. >
  2001. </el-table-column>
  2002. <el-table-column
  2003. prop="fFeeUnitid"
  2004. header-align="center"
  2005. align="center"
  2006. label="计价单位"
  2007. >
  2008. <template slot-scope="scope">
  2009. <span v-if="scope.row.fFeeUnitid === 1">件数</span>
  2010. <span v-if="scope.row.fFeeUnitid === 2">毛重</span>
  2011. <span v-if="scope.row.fFeeUnitid === 3">净重</span>
  2012. <span v-if="scope.row.fFeeUnitid === 4">尺码</span>
  2013. <span v-if="scope.row.fFeeUnitid === 5">固定</span>
  2014. </template>
  2015. </el-table-column>
  2016. <el-table-column
  2017. prop="fPrice"
  2018. header-align="center"
  2019. align="center"
  2020. label="单价"
  2021. >
  2022. </el-table-column>
  2023. </el-table>
  2024. <pagination
  2025. v-show="whgenlegTotal > 0"
  2026. :total="whgenlegTotal"
  2027. :page.sync="queryParams.pageNum"
  2028. :limit.sync="queryParams.pageSize"
  2029. @pagination="getWhgenlegList"
  2030. />
  2031. <div slot="footer" class="dialog-footer">
  2032. <el-button type="primary" @click="zhgenlegData">导入作业费</el-button>
  2033. <el-button @click="warehousingagreements = false">取 消</el-button>
  2034. </div>
  2035. </el-dialog>
  2036. <!-- 选择仓储费协议数据 -->
  2037. <el-dialog
  2038. title="仓储费协议"
  2039. :modal="false"
  2040. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2041. :visible.sync="storageAgreements"
  2042. width="70%"
  2043. >
  2044. <el-table
  2045. :data="tasklegList"
  2046. ref="table"
  2047. tooltip-effect="dark"
  2048. width="100%"
  2049. border
  2050. stripe
  2051. @selection-change="whgenlegSelectionChange"
  2052. >
  2053. <el-table-column type="selection" width="55"> </el-table-column>
  2054. <el-table-column label="行号" type="index" width="80"></el-table-column>
  2055. <el-table-column
  2056. prop="fContractno"
  2057. header-align="center"
  2058. align="center"
  2059. label="提单号"
  2060. >
  2061. </el-table-column>
  2062. <el-table-column
  2063. prop="fCorpid"
  2064. header-align="center"
  2065. align="center"
  2066. label="客户名称"
  2067. >
  2068. </el-table-column>
  2069. <el-table-column
  2070. prop="fGoodsids"
  2071. header-align="center"
  2072. align="center"
  2073. label="品名"
  2074. >
  2075. </el-table-column>
  2076. <el-table-column
  2077. prop="fBegindate"
  2078. header-align="center"
  2079. align="center"
  2080. width="180px"
  2081. label="入库日期"
  2082. >
  2083. </el-table-column>
  2084. </el-table>
  2085. <pagination
  2086. v-show="whgenlegTotal > 0"
  2087. :total="whgenlegTotal"
  2088. :page.sync="whgenlegParams.pageNum"
  2089. :limit.sync="whgenlegParams.pageSize"
  2090. @pagination="getWhgenlegList"
  2091. />
  2092. <div slot="footer" class="dialog-footer">
  2093. <el-button type="primary" @click="storageFeeExport">导入仓储费</el-button>
  2094. <el-button @click="storageAgreements = false">取 消</el-button>
  2095. </div>
  2096. </el-dialog>
  2097. <el-dialog
  2098. title="出库页面"
  2099. :modal="false"
  2100. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2101. :visible.sync="editDialogVisible_s"
  2102. :close-on-click-modal="false"
  2103. width="70%"
  2104. >
  2105. <table
  2106. id="print_area"
  2107. class="biaoge zzss"
  2108. border="1"
  2109. style="border-collapse: collapse; border: none"
  2110. >
  2111. <tr>
  2112. <td
  2113. width="100"
  2114. colspan="7"
  2115. class="zzss"
  2116. style="font-size: 28px; font-weight: bold; border: none"
  2117. >
  2118. 青岛大木进仓单
  2119. </td>
  2120. </tr>
  2121. <tr>
  2122. <td
  2123. width="100"
  2124. colspan="7"
  2125. class="zzss"
  2126. style="font-size: 28px; font-weight: bold; border: none"
  2127. >
  2128. &nbsp;
  2129. </td>
  2130. </tr>
  2131. <tr>
  2132. <td width="450" colspan="2" class="zzss">
  2133. 货权方:{{ form.fCorpName }}
  2134. </td>
  2135. <td width="450" colspan="2" class="zzss">
  2136. 仓库:{{ form.fWarehouseids }}
  2137. </td>
  2138. <td width="450" colspan="3" class="zzss">地址:{{ fAddr }}</td>
  2139. </tr>
  2140. <tr>
  2141. <td width="200" colspan="2" class="zzss">保管方:大木有限公司</td>
  2142. <td width="200" colspan="2" class="zzss">
  2143. 联系人:{{ form.fContacts }}
  2144. </td>
  2145. <td width="200" colspan="3" class="zzss">电话:{{ form.fTel }}</td>
  2146. </tr>
  2147. <tr>
  2148. <td width="100" border="1">提单号</td>
  2149. <td width="100">品名</td>
  2150. <td width="100">箱型</td>
  2151. <td width="100">品牌</td>
  2152. <td width="100">件数</td>
  2153. <td width="100">重量</td>
  2154. <td width="100">包装规格</td>
  2155. </tr>
  2156. <tr>
  2157. <td width="100">{{ form.fMblno }}</td>
  2158. <td width="100">{{ form.fProductName }}</td>
  2159. <td width="100">{{ dataList.fCntrtype }}</td>
  2160. <td width="100">{{ form.fMarks }}</td>
  2161. <td width="100">包</td>
  2162. <td width="100">吨</td>
  2163. <td width="100" v-if="dataList.length !== 0">{{ dataList[0].fPackagespecs }}</td>
  2164. <td width="100" v-else></td>
  2165. </tr>
  2166. <tr>
  2167. <td width="100">序号</td>
  2168. <td width="100">入货日期</td>
  2169. <td width="100">箱量(20GP)</td>
  2170. <td width="100">重量</td>
  2171. <td width="100">件数</td>
  2172. <td width="100">入库重量</td>
  2173. <td width="100">入库件数</td>
  2174. </tr>
  2175. <tr v-for="(item, index) in printinglist" :key="index">
  2176. <td width="100">{{ index + 1 }}</td>
  2177. <td width="100">{{ item.fChargedate }}</td>
  2178. <td width="100">{{ item.fCntqty }}</td>
  2179. <td width="100">{{ item.fGrossweight }}</td>
  2180. <td width="100">{{ item.fPlanqty }}</td>
  2181. <td width="100">{{ item.fNetweight }}</td>
  2182. <td width="100">{{ item.fQty }}</td>
  2183. </tr>
  2184. <tr>
  2185. <td width="100" colspan="2">合计:</td>
  2186. <td width="100">{{ fCntqty }}</td>
  2187. <td width="100">{{ fGrossweight }}</td>
  2188. <td width="100">{{ fPlanqty }}</td>
  2189. <td width="100">{{ fNetweight }}</td>
  2190. <td width="100">{{ fQty }}</td>
  2191. </tr>
  2192. <tr>
  2193. <td width="100">备注:</td>
  2194. <td width="100" colspan="6"></td>
  2195. </tr>
  2196. <tr>
  2197. <td width="100" colspan="7" class="zzss">
  2198. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  2199. </td>
  2200. </tr>
  2201. <tr style="border: none">
  2202. <td width="100" colspan="2" class="zzss" style="border: none">
  2203. 开单员:
  2204. </td>
  2205. <td width="100" colspan="3" class="zzss" style="border: none">
  2206. {{ form.createBy }}
  2207. </td>
  2208. <td width="100" colspan="2" class="zzss" style="border: none">
  2209. 仓管员:{{ form.fStorekeeper }}
  2210. </td>
  2211. </tr>
  2212. <tr style="border: none">
  2213. <td width="100" colspan="2" class="zzss" style="border: none">
  2214. 开单时间:
  2215. </td>
  2216. <td width="100" colspan="3" class="zzss" style="border: none">
  2217. {{ fBsdate }}
  2218. </td>
  2219. <td width="100" colspan="2" class="zzss" style="border: none">
  2220. (盖章)
  2221. </td>
  2222. </tr>
  2223. </table>
  2224. <button @click="printSomething">打印</button>
  2225. </el-dialog>
  2226. <el-dialog
  2227. title="收货单打印"
  2228. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2229. :visible.sync="editDialogVisible_ss"
  2230. :close-on-click-modal="false"
  2231. width="70%"
  2232. :modal="false"
  2233. >
  2234. <table
  2235. id="print_area"
  2236. class="biaoge zzss"
  2237. border="1"
  2238. style="border-collapse: collapse; border: none;margin-top:100px;"
  2239. >
  2240. <tr>
  2241. <td
  2242. width="1400"
  2243. colspan="6"
  2244. class="zzss"
  2245. style="font-size: 26px; font-weight: bold; border: none"
  2246. >
  2247. 大木国际物流(青岛)有限公司收货单
  2248. </td>
  2249. </tr>
  2250. <!-- <div v-for="{{}}" :key="index"> -->
  2251. <tr>
  2252. <td width="400">车号:</td>
  2253. <td width="400">{{ fTruckno }}</td>
  2254. <td
  2255. width="500"
  2256. colspan="2"
  2257. style="padding-bottom: 0px; font-weight: bold; border: none"
  2258. class="zzss"
  2259. >
  2260. 日期:
  2261. </td>
  2262. <td
  2263. width="500"
  2264. colspan="2"
  2265. style="padding-bottom: 0px; font-weight: bold; border: none"
  2266. class="zzss"
  2267. >
  2268. {{ fBsdate }}
  2269. </td>
  2270. </tr>
  2271. <tr v-for="(item, index) in printinglist" :key="index">
  2272. <td width="250">货物品名:</td>
  2273. <td width="250">{{ item.fGoodsids }}</td>
  2274. <td width="250">白色聚吕</td>
  2275. <!-- <td width="200" colspan="2">件数: 161件</td> -->
  2276. <!-- <td width="200"></td> -->
  2277. <td width="200" colspan="4" class="zzss">
  2278. 件数: {{ item.fQty }}件
  2279. </td>
  2280. </tr>
  2281. <!-- <tr>
  2282. <td width="1400" colspan="6">&nbsp;</td>
  2283. </tr> -->
  2284. <tr v-for="(item, index) in printinglist" :key="index">
  2285. <td>备注:</td>
  2286. <td colspan="5">{{ item.remark }}</td>
  2287. </tr>
  2288. <tr>
  2289. <td>司机签字:</td>
  2290. <td></td>
  2291. <td colspan="2">司机电话:</td>
  2292. <td colspan="2">{{ form.fTel }}</td>
  2293. </tr>
  2294. <tr>
  2295. <td>制单人:</td>
  2296. <td>{{ form.createBy }}</td>
  2297. <td colspan="2">收货人:</td>
  2298. <td colspan="2">{{ form.fContacts }}</td>
  2299. </tr>
  2300. <!-- <tr>
  2301. <td colspan="6" class="zzss">&nbsp;</td>
  2302. </tr> -->
  2303. <tr>
  2304. <td width="280" class="zzss"></td>
  2305. <td width="280" class="zzss"></td>
  2306. <td width="280" class="zzss"></td>
  2307. <td width="280" class="zzss"></td>
  2308. <td width="290" class="zzss">地址:{{ fAddr }}</td>
  2309. <td width="290" class="zzss">电话:{{ form.fTel }}</td>
  2310. </tr>
  2311. <!-- </div> -->
  2312. </table>
  2313. <button @click="printSomething">打印</button>
  2314. </el-dialog>
  2315. <el-dialog
  2316. title="出库作业单打印"
  2317. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2318. :visible.sync="openPrintJobSheet"
  2319. :close-on-click-modal="false"
  2320. width="70%"
  2321. :modal="false"
  2322. >
  2323. <table id="print_area"
  2324. class="biaoge zzss"
  2325. border="1"
  2326. style="border-collapse: collapse; border: none"
  2327. >
  2328. <tr>
  2329. <td
  2330. width="1400"
  2331. colspan="6"
  2332. class="zzss"
  2333. style="font-size: 28px; font-weight: bold; border: none"
  2334. >
  2335. 大木国际物流(青岛)有限公司作业单
  2336. </td>
  2337. </tr>
  2338. <tr>
  2339. <td
  2340. width="900"
  2341. colspan="4"
  2342. class="zzss"
  2343. style="font-size: 28px; font-weight: bold"
  2344. >
  2345. &nbsp;
  2346. </td>
  2347. <td
  2348. width="500"
  2349. colspan="2"
  2350. style="padding-bottom: 0px; font-weight: bold; border: none"
  2351. class="zzss"
  2352. >
  2353. 出库日期:{{ fBsdate }}
  2354. </td>
  2355. </tr>
  2356. <tr v-for="(item, index) in printinglist" :key="index">
  2357. <td width="200">车号</td>
  2358. <td width="200">{{ item.fTruckno }}</td>
  2359. <td width="200">货物品名</td>
  2360. <td width="200">{{ item.fGoodsids }}</td>
  2361. <td width="200">{{item.fBusinessTypes}}</td>
  2362. <td width="200">{{item.fMarks}}</td>
  2363. </tr>
  2364. <tr>
  2365. <td width="1400" colspan="6">&nbsp;</td>
  2366. </tr>
  2367. <tr>
  2368. <td>备注:</td>
  2369. <td colspan="5">{{form.remark}}</td>
  2370. </tr>
  2371. <tr v-for="(item, index) in feelDrSelection" :key="'info2-'+index">
  2372. <td width="200">收费</td>
  2373. <td width="200">{{ item.fFeeName }}</td>
  2374. <td width="200">货物品名</td>
  2375. <td width="200">元</td>
  2376. <td width="200">{{ item.fAmount }}</td>
  2377. </tr>
  2378. <tr>
  2379. <td>司机签字:</td>
  2380. <td></td>
  2381. <td>电话</td>
  2382. <td colspan="1" v-if="dataList.length !== 0">{{ dataList[0].fDriverTel }}</td>
  2383. <td colspan="1" v-else>1</td>
  2384. <td colspan="2" rowspan="2">
  2385. 确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
  2386. </td>
  2387. </tr>
  2388. <tr>
  2389. <td>制表:</td>
  2390. <td>{{ form.createBy }}</td>
  2391. <td>机械/人工:</td>
  2392. <td>{{ form.fContacts }}</td>
  2393. </tr>
  2394. <tr>
  2395. <td colspan="6" class="zzss">&nbsp;</td>
  2396. </tr>
  2397. <tr>
  2398. <td width="280" class="zzss"></td>
  2399. <td width="280" class="zzss"></td>
  2400. <td width="280" class="zzss"></td>
  2401. <td width="280" class="zzss"></td>
  2402. <td width="290" class="zzss">地址:{{ fAddr }}</td>
  2403. <td width="290" class="zzss">电话:{{ form.fTel }}</td>
  2404. </tr>
  2405. </table>
  2406. <div>
  2407. <el-button type="primary" @click="printSomething">打印</el-button>
  2408. <el-button @click="closeWindow">取消</el-button>
  2409. </div>
  2410. </el-dialog>
  2411. </el-dialog>
  2412. </div>
  2413. </template>
  2414. <script>
  2415. import print from "print-js";
  2416. import {
  2417. addWhgenleg,
  2418. listWarehousebills,
  2419. getWarehousebills,
  2420. delWarehousebills,
  2421. addWarehousebills,
  2422. updateCredit,
  2423. addJoblist,
  2424. disChargelist,
  2425. warehouseSubmission,
  2426. updateWarehousebills,
  2427. exportWarehousebills,
  2428. revokeTwo,
  2429. revoke,
  2430. } from "@/api/warehouseBusiness/warehouseOutStock";
  2431. import { listAgreement, operationAgreement } from "@/api/agreement/agreement";
  2432. import { listAgreements } from "@/api/warehouseBusiness/agreement";
  2433. import { listCorps } from "@/api/basicdata/corps";
  2434. import { listFees, getFees } from "@/api/basicdata/fees";
  2435. import { listWarehouse } from "@/api/basicdata/warehouse";
  2436. import { listArea } from "@/api/basicdata/area";
  2437. import { listGoods } from "@/api/basicdata/goods";
  2438. import { listUser, queryUserVal } from "@/api/system/user";
  2439. import UploadFile from "@/components/Uploadfile";
  2440. import { listWhgenleg } from "@/api/reportManagement/whgenleg";
  2441. import Global from '@/layout/components/global'
  2442. import AddOrUpdate from "@/views/viewApproval";
  2443. import ApprovalComments from '@/views/startApproval'
  2444. export default {
  2445. name: "Warehousebills",
  2446. components: {
  2447. UploadFile,
  2448. AddOrUpdate,
  2449. ApprovalComments,
  2450. },
  2451. data() {
  2452. return {
  2453. doNot:false,
  2454. WarehouseInformation:[],
  2455. addOrUpdateVisible: false,
  2456. addOrUpdateVisib: false,
  2457. fFeeUnitid: null,
  2458. fFeeUnitids: null,
  2459. formBrowseStatus: false,
  2460. detailsHidden: false,
  2461. warehousingagreements: false,
  2462. fTruckno: null,
  2463. fBsdate: null,
  2464. fCntrtype: null,
  2465. fGoodsids: null,
  2466. fPlanqty: null,
  2467. fPlannetweight: null,
  2468. fPlanvolumn: null,
  2469. fGrossweight: 0,
  2470. fCntqty: 0,
  2471. fNetweight: 0,
  2472. fVolumn: 0,
  2473. fid: 0,
  2474. fQty: 0,
  2475. fSbu: 0,
  2476. before:'',
  2477. // 遮罩层
  2478. loading: true,
  2479. // 打印地址
  2480. fAddr: "",
  2481. // 税率
  2482. fTaxrate: null,
  2483. // 选中数组
  2484. ids: [],
  2485. userVal: {
  2486. userName: null,
  2487. nickName: null,
  2488. deptId: null,
  2489. },
  2490. queryForm: {},
  2491. // 费用状态
  2492. costStatus: 'Dr',
  2493. // 库存总账表
  2494. whgenlegList: [],
  2495. whgenlegTotal: 0,
  2496. // 弹窗库存总账数据
  2497. dialogWhgenlegList: [],
  2498. // 库存总账对话框
  2499. whgenlegVisible: false,
  2500. // 收费多选框
  2501. feelDrSelection: [],
  2502. approvalStatus: false,
  2503. // 新增用户对话框
  2504. editDialogVisible_s: false,
  2505. editDialogVisible_ss: false,
  2506. openPrintJobSheet: false,
  2507. editDialogClosed_ss: false,
  2508. storageAgreements: false,
  2509. dataList: [],
  2510. warehouseCrList: [],
  2511. current:'',
  2512. warehouseDrList: [],
  2513. printinglist: [],
  2514. browseStatus: false,
  2515. contrOl:false,
  2516. relevantAttachments: [],
  2517. // 非单个禁用
  2518. single: true,
  2519. // 非多个禁用
  2520. multiple: true,
  2521. // 显示搜索条件
  2522. showSearch: true,
  2523. // 总条数
  2524. total: 0,
  2525. // 仓库主(出入库)表格数据
  2526. warehousebillsList: [],
  2527. // 弹出层标题
  2528. title: "",
  2529. // 是否显示弹出层
  2530. open: false,
  2531. // 货权方(客户数据)
  2532. fMblnoOptions: [],
  2533. // 货权方(客户数据)
  2534. // 客户名称
  2535. KHblnoOptions: [],
  2536. // 作业费协议
  2537. tasklegList: [],
  2538. fSbuOptions: [],
  2539. // 操作员
  2540. userOptions: [],
  2541. // 操作员
  2542. goodsOptions: [],
  2543. // 制单部门
  2544. deptOptions: [],
  2545. // 主表状态
  2546. businessTypeOption: [{
  2547. name: '出库装箱'
  2548. }, {
  2549. name: '来车提货'
  2550. }],
  2551. // 仓库(仓库数据)
  2552. warehouseOptions: [],
  2553. // 库存明细入账数组
  2554. dataListSelection: [],
  2555. // 库存明细撤回入账数组
  2556. dataWithdrawList: [],
  2557. kqhouseOptions: [],
  2558. // 仓储类型 入库时选择 产地 规格 品牌 所用,对应storage_type 字典
  2559. fStorageTypeOptions: [],
  2560. // 贸易方式(数据字典),对应t_trademodels 字典
  2561. fTrademodeidOptions: [],
  2562. // 是否放行
  2563. releaseList: [
  2564. {dictLabel: "已放行",dictValue: "T"},
  2565. {dictLabel: "未放行",dictValue: "F"},
  2566. ],
  2567. // 结算方式(数据字典),下拉选择字典
  2568. fStltypeOptions: [],
  2569. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  2570. fIfweighOptions: [],
  2571. // 是否破损(数据字典),默认F否则T字典
  2572. fIfdamageOptions: [],
  2573. // 单据类型(数据字典)SJRK字典
  2574. fBilltypeOptions: [],
  2575. // 状态(数据字典),N 入字典
  2576. fBillstatusOptions: [],
  2577. // 费用名称
  2578. fWbuOptions: [],
  2579. approVal:false,
  2580. // 计价单位
  2581. jFeetunitOptions: [],
  2582. // 查询参数
  2583. queryParams: {
  2584. pageNum: 1,
  2585. pageSize: 10,
  2586. fBillno: null,
  2587. createBy: null,
  2588. createTime: null,
  2589. fCustomsdeclartion: null,
  2590. fOriginalbillno: null,
  2591. fDeptid: null,
  2592. fBsdeptid: null,
  2593. fContacts: null,
  2594. fTel: null,
  2595. fCorpid: null,
  2596. fTocorpid: null,
  2597. fStltypeid: null,
  2598. fBscorpno: null,
  2599. fWarehouseid: null,
  2600. fStorekeeper: null,
  2601. fBsdate: null,
  2602. fPlanqty: null,
  2603. fPlangrossweight: null,
  2604. fPlannetweight: null,
  2605. fPlanvolumn: null,
  2606. fQty: null,
  2607. fGrossweight: null,
  2608. fNetweight: null,
  2609. fVolumn: null,
  2610. fTrademodeid: null,
  2611. fSbu: null,
  2612. fFeetunit: null,
  2613. fMblno: null,
  2614. fVslvoy: null,
  2615. fEta: null,
  2616. fCustomno: null,
  2617. fIfweigh: null,
  2618. fIfpledge: null,
  2619. fIfdamage: null,
  2620. fBankcorpid: null,
  2621. fBilltype: null,
  2622. fBillstatus: null,
  2623. fCreateby: null,
  2624. fCreatetime: null,
  2625. fGoodsid: null,
  2626. fCntrtype: null,
  2627. fCntqty: null,
  2628. },
  2629. // 库存总账参数
  2630. whgenlegParams: {
  2631. pageNum: 1,
  2632. pageSize: 10,
  2633. fMblno: null,
  2634. fCorpid: null,
  2635. fWarehouseid: null,
  2636. fTruckno:null
  2637. },
  2638. // 表单参数
  2639. form: {
  2640. fMblno: null,
  2641. fCorpid: null,
  2642. fTrademodeid: null,
  2643. fWarehouseid: null,
  2644. fBusinessType: '出库装箱',
  2645. },
  2646. // 表单校验
  2647. rules: {
  2648. fDeptid: [{ required: true, message: " ", trigger: "blur" }],
  2649. fBsdeptid: [{ required: true, message: " ", trigger: "blur" }],
  2650. fCorpid: [{ required: true, message: " ", trigger: "blur"},],
  2651. fFeeUnitid: [{ required: true, message: " ", trigger: "blur" }],
  2652. fChargedate: [{ required: true, message: " ", trigger: "blur" }],
  2653. fBillingway: [{ required: true, message: " ", trigger: "blur" }],
  2654. fBsdate: [{ required: true, message: " ", trigger: "blur" }],
  2655. fTrademodeid: [{ required: true, message: " ", trigger: "blur" }],
  2656. fSbu: [{ required: true, message: " ", trigger: "blur" }],
  2657. fStorekeeper: {
  2658. required: true,
  2659. message: " ",
  2660. trigger: "blur",
  2661. },
  2662. fWarehouseid: [{ required: true, message: " ", trigger: "blur" }],
  2663. // fBscorpno: [
  2664. // { required: true, message: "请输入存货编号", trigger: "blur" },
  2665. // ],
  2666. fbillingway: [
  2667. {
  2668. required: true,
  2669. message: " ",
  2670. trigger: "blur",
  2671. },
  2672. ],
  2673. fTocorpid: [
  2674. {
  2675. required: true,
  2676. message: " ",
  2677. trigger: "blur",
  2678. },
  2679. ],
  2680. },
  2681. };
  2682. },
  2683. created() {
  2684. this.getList();
  2685. this.getDicts("storage_type").then((response) => {
  2686. this.fStorageTypeOptions = response.data;
  2687. });
  2688. this.getDicts("data_trademodes").then((response) => {
  2689. this.fTrademodeidOptions = response.data;
  2690. });
  2691. this.getDicts("data_stltype_type").then((response) => {
  2692. this.fStltypeOptions = response.data;
  2693. });
  2694. this.getDicts("tax_rate").then((response) => {
  2695. this.fTaxrate = response.data[0].dictValue
  2696. });
  2697. this.getDicts("data_ifweigh_status").then((response) => {
  2698. this.fIfweighOptions = response.data;
  2699. });
  2700. this.getDicts("data_ifdamage_status").then((response) => {
  2701. this.fIfdamageOptions = response.data;
  2702. });
  2703. this.getDicts("data_billtype_type").then((response) => {
  2704. this.fBilltypeOptions = response.data;
  2705. });
  2706. this.getDicts("sys_common_status").then((response) => {
  2707. this.fBillstatusOptions = response.data;
  2708. });
  2709. this.getDicts("data_unitfees").then((response) => {
  2710. this.jFeetunitOptions = response.data;
  2711. });
  2712. },
  2713. activated() {
  2714. this.adoPt()
  2715. },
  2716. methods: {
  2717. adoPt(){
  2718. this.approval = this.$route.query.data
  2719. if (this.approval){
  2720. this.reset();
  2721. this.doNot = true
  2722. this.closeButton = false
  2723. this.approval = JSON.parse(this.approval)
  2724. this.approVal = true
  2725. this.browseStatus = status;
  2726. this.detailsHidden = false;
  2727. this.formBrowseStatus = false;
  2728. this.dataList = [];
  2729. getWarehousebills(this.approval.billId).then((response) => {
  2730. if (response.data.warehousebills) {
  2731. this.form = response.data.warehousebills;
  2732. if (this.form.fBillstatus > 2) {
  2733. this.approvalStatus = false;
  2734. } else {
  2735. this.approvalStatus = true;
  2736. }
  2737. }
  2738. if (response.data.warehouseBillsItem) {
  2739. this.dataList = response.data.warehouseBillsItem;
  2740. for (let list in this.dataList) {
  2741. if (this.dataList[list].fBillstatus > 10) {
  2742. this.formBrowseStatus = true;
  2743. }
  2744. }
  2745. }
  2746. if (response.data.corps) {
  2747. this.fMblnoOptions = response.data.corps;
  2748. this.KHblnoOptions = response.data.corps;
  2749. this.fSbuOptions = response.data.corps;
  2750. }
  2751. if (response.data.feesList) {
  2752. this.fWbuOptions = response.data.feesList;
  2753. }
  2754. if (response.data.warehouse) {
  2755. this.warehouseOptions = response.data.warehouse;
  2756. }
  2757. if (response.data.warehouseBillsItem) {
  2758. this.dataList = response.data.warehouseBillsItem;
  2759. }
  2760. if (response.data.enclosures) {
  2761. this.relevantAttachments = response.data.enclosures;
  2762. }
  2763. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  2764. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  2765. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  2766. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  2767. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  2768. console.log(this.form.fPlannetweight)
  2769. this.$set(
  2770. this.form,
  2771. "fPlannetweight",
  2772. this.form.fPlannetweight
  2773. );
  2774. this.$set(
  2775. this.form,
  2776. "fPlangrossweight",
  2777. this.form.fPlangrossweight
  2778. );
  2779. for (let list in this.dataList) {
  2780. this.$set(
  2781. this.dataList[list],
  2782. "fBsdate",
  2783. Date.parse(this.dataList[list].fBsdate)
  2784. );
  2785. }
  2786. this.goodsOptions = response.data.goodsList;
  2787. this.kqhouseOptions = response.data.warehouseAreas;
  2788. this.warehouseDrList = response.data.warehousebillsfeesDr;
  2789. for (let dr in this.warehouseDrList) {
  2790. this.$set(
  2791. this.warehouseDrList[dr],
  2792. "fFeeUnitid",
  2793. this.warehouseDrList[dr].fFeeunitid + ""
  2794. );
  2795. this.$set(
  2796. this.warehouseDrList[dr],
  2797. "fQty",
  2798. this.warehouseDrList[dr].fQty.toFixed(2)
  2799. );
  2800. this.$set(
  2801. this.warehouseDrList[dr],
  2802. "fAmount",
  2803. this.warehouseDrList[dr].fAmount.toFixed(2)
  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. getDataList() {
  2821. this.addOrUpdateVisible = false;
  2822. },
  2823. returnData() {
  2824. this.addOrUpdateVisib = false;
  2825. this.cancelTwo()
  2826. },
  2827. addOrUpdateHandle(form) {
  2828. this.addOrUpdateVisible = true;
  2829. this.$nextTick(() => {
  2830. this.$refs.addOrUpdate.init(form.fId, 120);
  2831. });
  2832. },
  2833. addOrUpdateHand(form) {
  2834. this.addOrUpdateVisib = true;
  2835. this.$nextTick(() => {
  2836. this.$refs.ApprovalComments.init(form.fId, 120);
  2837. });
  2838. },
  2839. cancelTwo(){
  2840. this.open = false
  2841. let view = {
  2842. fullPath: "/business/outStock",
  2843. hash: "",
  2844. matched: Array(2),
  2845. meta: Object,
  2846. name: "OutStock",
  2847. params: Object,
  2848. path: "/business/outStock",
  2849. query: Object,
  2850. title: "出库"
  2851. }
  2852. this.$router.push({ path: '/index'})
  2853. this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
  2854. if (this.isActive(view)) {
  2855. this.toLastView(visitedViews, view)
  2856. }
  2857. })
  2858. Global.$emit("removeCache", "closeSelectedTag", view);
  2859. },
  2860. //关闭弹框的事件
  2861. addCloseDialog(){
  2862. this.getList()
  2863. },
  2864. // 上传成功返回数据
  2865. showFile(row) {
  2866. for(let list in this.relevantAttachments) {
  2867. this.$set(this.relevantAttachments[list], "fUrl", row.url);
  2868. this.$set(this.relevantAttachments[list], "fName", row.fileName);
  2869. }
  2870. },
  2871. revoke(){
  2872. revoke(this.form.fId).then(data=>{
  2873. if (data.code == 200){
  2874. this.open = false;
  2875. this.getList()
  2876. }
  2877. })
  2878. },
  2879. printSomething() {
  2880. // 此处的style即为打印时的样式
  2881. const style = "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  2882. print({ printable: "print_area", type: "html",
  2883. style: style, // 亦可使用引入的外部css;
  2884. scanStyles: false,
  2885. });
  2886. this.addList();
  2887. this.openPrintJobSheet = false;
  2888. },
  2889. // 关闭二级弹窗
  2890. closeWindow () {
  2891. this.openPrintJobSheet = false
  2892. },
  2893. // 新增附件上传
  2894. addRelevt() {
  2895. this.relevantAttachments.push({
  2896. fUrl: null,
  2897. fName: null,
  2898. createBy: this.form.createBy,
  2899. createTime: Date.parse(new Date()),
  2900. });
  2901. },
  2902. // 新增作业费协议
  2903. addAgreement(status) {
  2904. this.costStatus = status
  2905. if (!this.form.fCorpid) {
  2906. this.$message({ message: "请维护货权方", type: "warning", });
  2907. }else if(!this.dataList[0].fGoodsid) {
  2908. this.$message({
  2909. message: "请维护入库明细品名",
  2910. type: "warning",
  2911. });
  2912. } else {
  2913. this.whgenlegList = [];
  2914. this.dialogWhgenlegList = [];
  2915. this.whgenlegTotal = 0;
  2916. this.warehousingagreements = true;
  2917. this.getWhgenlegListt();
  2918. }
  2919. },
  2920. // 新增仓储费协议
  2921. addStorages() {
  2922. if (!this.form.fCorpid) {
  2923. this.$message({ message: "请维护货权方", type: "warning", });
  2924. return false
  2925. }
  2926. this.whgenlegList = [];
  2927. this.dialogWhgenlegList = [];
  2928. this.whgenlegTotal = 0;
  2929. this.storageAgreements = true;
  2930. this.getAgreement();
  2931. },
  2932. // 查询仓储费协议
  2933. getAgreement() {
  2934. this.queryParams.fCorpid = this.form.fCorpid;
  2935. listAgreements(this.queryParams).then((response) => {
  2936. this.tasklegList = response.rows;
  2937. this.whgenlegTotal = response.total;
  2938. });
  2939. },
  2940. // 查询作业费信息
  2941. getWhgenlegListt() {
  2942. let data = {
  2943. pageNum:1,
  2944. pageSize:10,
  2945. fLineno:this.form.fCorpid,
  2946. fFeeid:this.dataList[0].fGoodsid
  2947. }
  2948. operationAgreement(data).then((response) => {
  2949. this.tasklegList = response.rows;
  2950. this.whgenlegTotal = response.total;
  2951. });
  2952. },
  2953. revokeTwo(){
  2954. let data = {
  2955. actId:120,
  2956. billId:this.form.fId,
  2957. id:this.form.fId
  2958. }
  2959. revokeTwo(data).then(data =>{
  2960. if (data.code === 200) {
  2961. this.msgSuccess("撤销成功");
  2962. this.open = false;
  2963. this.getList()
  2964. this.reset();
  2965. }
  2966. })
  2967. },
  2968. // 导入付款信息
  2969. whgenlegDatas() {
  2970. if (this.dialogWhgenlegList.length === 0) {
  2971. this.$message({
  2972. message: "请选择需要导入的数据",
  2973. type: "warning",
  2974. });
  2975. } else {
  2976. for (let whgen in this.dialogWhgenlegList) {
  2977. let feeId = this.dialogWhgenlegList[whgen].feeFId;
  2978. getFees(feeId).then((response) => {
  2979. this.fWbuOptions.push(response.data);
  2980. });
  2981. this.warehouseDrList.push({
  2982. fCorpid: this.dialogWhgenlegList[whgen].fCorpid,
  2983. fFeeid: feeId,
  2984. fFeeUnitid: this.dialogWhgenlegList[whgen].fFeeUnitid + "",
  2985. fUnitprice: this.dialogWhgenlegList[whgen].fPrice,
  2986. fCurrency: "RMB",
  2987. fExrate: 1,
  2988. fTaxrate: this.fTaxrate
  2989. });
  2990. }
  2991. this.warehousingagreements = false;
  2992. }
  2993. },
  2994. // 导出作业费
  2995. zhgenlegData() {
  2996. if (this.dialogWhgenlegList.length === 0) {
  2997. this.$message({ message: "请选择需要导入的数据", type: "warning", });
  2998. return false
  2999. }
  3000. for (let zhgen in this.dialogWhgenlegList) {
  3001. let haveGoods = false
  3002. let feeId = this.dialogWhgenlegList[zhgen].feeFId
  3003. if (this.fWbuOptions.length !== 0) {
  3004. for (let wbu in this.fWbuOptions) {
  3005. if (this.fWbuOptions[wbu].fId === feeId) {
  3006. haveGoods = true
  3007. break
  3008. }
  3009. }
  3010. }
  3011. if (!haveGoods) {
  3012. getFees(feeId).then((response) => {
  3013. this.fWbuOptions.push(response.data)
  3014. })
  3015. }
  3016. let qty = 1;
  3017. if (this.dialogWhgenlegList[zhgen].fFeeUnitid === 1) {
  3018. qty = (this.fQty/1000).toFixed(2)
  3019. } else if (this.dialogWhgenlegList[zhgen].fFeeUnitid === 2) {
  3020. qty = (this.fGrossweight/1000).toFixed(2)
  3021. } else if (this.dialogWhgenlegList[zhgen].fFeeUnitid === 3) {
  3022. qty = this.fNetweight
  3023. } else if (this.dialogWhgenlegList[zhgen].fFeeUnitid === 4) {
  3024. qty = this.fVolumn
  3025. }
  3026. qty=(qty/1000).toFixed(2);
  3027. let fAmount = parseFloat(Number(this.dialogWhgenlegList[zhgen].fPrice) * Number(qty)).toFixed(2)
  3028. if (this.costStatus === 'Cr') {
  3029. this.warehouseCrList.push({
  3030. fQty: qty,
  3031. fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
  3032. fFeeid: feeId,
  3033. fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid,
  3034. fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
  3035. fCurrency: 'RMB',
  3036. fExrate: 1,
  3037. fAmount: fAmount,
  3038. fTaxrate: this.fTaxrate,
  3039. })
  3040. console.log(this.fQty)
  3041. } else {
  3042. this.warehouseDrList.push({
  3043. fQty: qty,
  3044. fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
  3045. fFeeid: feeId,
  3046. fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid,
  3047. fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
  3048. fCurrency: 'RMB',
  3049. fExrate: 1,
  3050. fAmount: fAmount,
  3051. fTaxrate: this.fTaxrate
  3052. })
  3053. }
  3054. }
  3055. this.warehousingagreements = false
  3056. },
  3057. // 导出仓储费
  3058. storageFeeExport () {
  3059. if (this.dialogWhgenlegList.length === 0) {
  3060. this.$message({ message: "请选择需要导入的数据", type: "warning", });
  3061. return false
  3062. }
  3063. for (let zhgen in this.dialogWhgenlegList) {
  3064. let haveGoods = false
  3065. if (this.fWbuOptions.length !== 0) {
  3066. for (let wbu in this.fWbuOptions) {
  3067. if (this.fWbuOptions[wbu].fId === this.dialogWhgenlegList[zhgen].fGoodsid) {
  3068. haveGoods = true
  3069. break
  3070. }
  3071. }
  3072. }
  3073. if (!haveGoods) {
  3074. let feeId = this.dialogWhgenlegList[zhgen].feeFId
  3075. getFees(feeId).then((response) => {
  3076. this.fWbuOptions.push(response.data)
  3077. })
  3078. }
  3079. if (this.costStatus === 'Cr') {
  3080. this.warehouseCrList.push({
  3081. fQty: 0,
  3082. fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
  3083. fFeeid: null,
  3084. fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid,
  3085. fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
  3086. fCurrency: 'RMB',
  3087. fExrate: 1,
  3088. fAmount: 0,
  3089. fTaxrate: this.fTaxrate
  3090. })
  3091. } else {
  3092. this.warehouseDrList.push({
  3093. fQty: 0,
  3094. fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
  3095. fFeeid: null,
  3096. fFeeunitid: this.dialogWhgenlegList[zhgen].fFeeUnitid,
  3097. fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
  3098. fCurrency: 'RMB',
  3099. fExrate: 1,
  3100. fAmount: 0,
  3101. fTaxrate: this.fTaxrate
  3102. })
  3103. }
  3104. }
  3105. this.storageAgreements = false
  3106. },
  3107. // 新增list
  3108. addRelevant() {
  3109. this.$refs['form'].validate((valid) => {
  3110. if (valid) {
  3111. this.whgenlegList = [];
  3112. this.dialogWhgenlegList = [];
  3113. this.whgenlegTotal = 0;
  3114. this.whgenlegVisible = true;
  3115. this.getWhgenlegList();
  3116. // this.changeInformation()
  3117. }
  3118. })
  3119. },
  3120. // 库存总账导出数据
  3121. whgenlegData() {
  3122. if (this.dialogWhgenlegList.length === 0) {
  3123. this.$message({ message: "未勾选信息", type: "warning" });
  3124. return false;
  3125. }
  3126. for (let whgen in this.dialogWhgenlegList) {
  3127. if (!this.form.fMblno || this.form.fMblno === "") {
  3128. this.$set(this.form, "fMblno", this.dialogWhgenlegList[whgen].fMblno);
  3129. }
  3130. this.changeInformation()
  3131. // for (let list in this.fStorageTypeOptions) {
  3132. // if (this.dialogWhgenlegList[whgen].fBusinessType === this.fStorageTypeOptions[list].dictValue) {
  3133. // this.$set(this.dialogWhgenlegList[whgen], 'fBusinessType', this.fStorageTypeOptions[list].dictLabel)
  3134. // break
  3135. // }
  3136. // }
  3137. this.dataList.push({
  3138. fId: null,
  3139. fMblno: this.dialogWhgenlegList[whgen].fMblno,
  3140. fGoodsid: this.dialogWhgenlegList[whgen].fGoodsid,
  3141. fCntrtype: null,
  3142. fPlanqty: this.dialogWhgenlegList[whgen].fQtyblc,
  3143. fPlannetweight: this.dialogWhgenlegList[whgen].fNetweightblc,
  3144. fPlangrossweight: this.dialogWhgenlegList[whgen].fGrossweightblc,
  3145. fWarehouseLocationids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
  3146. fGoodsids: this.dialogWhgenlegList[whgen].fGoodsids,
  3147. fBillingway: this.dialogWhgenlegList[whgen].fBillingway,
  3148. fChargedate: this.dialogWhgenlegList[whgen].fChargedate,
  3149. fMarks: this.dialogWhgenlegList[whgen].fMarks,
  3150. fOriginalbilldate: this.dialogWhgenlegList[whgen].fOriginalbilldate,
  3151. fOriginalbillno: this.dialogWhgenlegList[whgen].fOriginalbillno,
  3152. fPackagespecs: this.dialogWhgenlegList[whgen].fPackagespecs,
  3153. fVolumn: this.dialogWhgenlegList[whgen].fVolumnblc,
  3154. fGrossweight: 0,
  3155. fNetweight: 0,
  3156. fQty: 0,
  3157. fCntqty: 1,
  3158. fBillstatus: 10,
  3159. fWarehouselocid: this.dialogWhgenlegList[whgen].fWarehouseLocationid,
  3160. fWarehouselocids: this.dialogWhgenlegList[whgen].fWarehouseLocationids,
  3161. fCntrno: this.dialogWhgenlegList[whgen].fCntrno,
  3162. fGoodsval: null,
  3163. fTruckno: this.whgenlegList.fTruckno,
  3164. remark: null,
  3165. fIsPass: 'F',
  3166. fDriverName:this.whgenlegList.fDriverName,
  3167. fDriverTel:this.whgenlegList.fDriverTel,
  3168. fDriverIdCar:this.whgenlegList.fDriverIdCar,
  3169. fBusinessType:this.dialogWhgenlegList[whgen].fBusinessType + ''
  3170. });
  3171. }
  3172. this.whgenlegVisible = false;
  3173. this.contrOl = true
  3174. },
  3175. // 收货单打印界面
  3176. showEditDialog_s() {
  3177. if (this.printinglist.length <= 0) {
  3178. this.$message.error("请选择需要打印的明细!");
  3179. return false
  3180. }
  3181. for (let aorp in this.printinglist) {
  3182. var date = new Date(this.printinglist[aorp].fBsdate);
  3183. var Y = date.getFullYear() + "-";
  3184. var M = (date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) + "-";
  3185. var D = (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  3186. this.$set(this.printinglist[aorp], "fBsdates", Y + M + D);
  3187. }
  3188. this.editDialogVisible_s = true;
  3189. for (let corp in this.fMblnoOptions) {
  3190. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  3191. this.$set(this.form, "fCorpName", this.fMblnoOptions[corp].fName);
  3192. }
  3193. }
  3194. for (let sorp in this.warehouseOptions) {
  3195. if (this.form.fWarehouseid === this.warehouseOptions[sorp].fId) {
  3196. this.$set(this.form, "fWarehouseids", this.warehouseOptions[sorp].fName);
  3197. }
  3198. }
  3199. },
  3200. // 作业单打印
  3201. printJobSheet() {
  3202. if (this.printinglist.length <= 0) {
  3203. this.$message.error("请维护出库明细!");
  3204. return false;
  3205. }
  3206. let fTruckno = this.printinglist[0].fTruckno
  3207. let fDriverName = this.printinglist[0].fDriverName
  3208. for (let li in this.printinglist) {
  3209. for (let list in this.fStorageTypeOptions) {
  3210. if (this.printinglist[li].fBusinessType === this.fStorageTypeOptions[list].dictValue) {
  3211. this.$set(this.printinglist[li], 'fBusinessTypes', this.fStorageTypeOptions[list].dictLabel)
  3212. break
  3213. }
  3214. }
  3215. if (!this.printinglist[li].fId) {
  3216. this.$message.error("请先保存!");
  3217. return false;
  3218. }
  3219. if(this.form.fFeetunit > 3){
  3220. this.$message.error('请维护主表计费单位为件数、毛重或净重')
  3221. return false
  3222. }
  3223. // if (!this.printinglist[li].fBusinessType) {
  3224. // this.$message.error('请先维护业务类型!')
  3225. // return false
  3226. // }
  3227. // if (!this.printinglist[li].fMarks) {
  3228. // this.$message.error('请先维护业务详情!')
  3229. // return false
  3230. // }
  3231. if (!this.printinglist[li].fTruckno || this.printinglist[li].fTruckno !== fTruckno) {
  3232. this.$message.error('请填写车号或选择车相同车号')
  3233. return false
  3234. } else if (!this.printinglist[li].fDriverName || this.printinglist[li].fDriverName !== fDriverName) {
  3235. this.$message.error('请填写司机姓名选择相同司机姓名')
  3236. return false
  3237. } else if (!this.printinglist[li].fDriverTel) {
  3238. this.$message.error('请选填写司机电话')
  3239. return false
  3240. } else if (!this.printinglist[li].fDriverIdCar) {
  3241. this.$message.error('请选填写司机身份证')
  3242. return false
  3243. } else if (!this.printinglist[li].fDriverName) {
  3244. this.$message.error('请输入司机姓名')
  3245. return false
  3246. } else if (!this.printinglist[li].fDriverTel) {
  3247. this.$message.error('请输入司机电话')
  3248. return false
  3249. }
  3250. // 获取业务日期
  3251. var date = new Date(this.form.fBsdate)
  3252. var Y = date.getFullYear() + '-'
  3253. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
  3254. var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
  3255. this.fBsdate = Y + M + D
  3256. for (let dr in this.feelDrSelection) {
  3257. for (let opt in this.fWbuOptions) {
  3258. if (this.fWbuOptions[opt].fId === this.feelDrSelection[dr].fFeeid) {
  3259. this.$set(this.feelDrSelection[dr], 'fFeeName', this.fWbuOptions[opt].fName)
  3260. break
  3261. }
  3262. }
  3263. }
  3264. console.log(this.printinglist)
  3265. setTimeout(() => {
  3266. this.openPrintJobSheet = true
  3267. }, 200);
  3268. }
  3269. },
  3270. showEditDialog_ss() {
  3271. if (this.printinglist.length > 0) {
  3272. for (let warehouseCr in this.printinglist) {
  3273. if (this.printinglist[warehouseCr].fTruckno !== this.printinglist[0].fTruckno) {
  3274. this.$message.error("请选择车相同车号");
  3275. return false;
  3276. }
  3277. if (!this.printinglist[warehouseCr].fGoodsid) {
  3278. this.$message.error("请选择品名");
  3279. return false;
  3280. }
  3281. if (!this.printinglist[warehouseCr].fWarehouselocids) {
  3282. this.$message.error("请选择库区");
  3283. return false;
  3284. }
  3285. if (!this.printinglist[warehouseCr].fGrossweight) {
  3286. this.$message.error("请选择入库毛重");
  3287. return false;
  3288. }
  3289. if (!this.printinglist[warehouseCr].fNetweight) {
  3290. this.$message.error("请选择入库净重");
  3291. return false;
  3292. }
  3293. if (this.printinglist[warehouseCr].fQty) {
  3294. this.$message.error("请选择入库件数");
  3295. return false;
  3296. }
  3297. if (!this.printinglist[warehouseCr].fDriverName) {
  3298. this.$message.error("请输入司机姓名");
  3299. return false;
  3300. }
  3301. if (!this.printinglist[warehouseCr].fDriverTel) {
  3302. this.$message.error("请输入司机电话");
  3303. return false;
  3304. }
  3305. }
  3306. this.openPrintJobSheet = true;
  3307. // this.addList()
  3308. } else {
  3309. this.$message.error("请选择需要打印的明细!");
  3310. }
  3311. },
  3312. // 收款信息
  3313. addCollection() {
  3314. this.warehouseDrList.push({
  3315. fcorpid: this.form.fCorpid,
  3316. ffeeid: null,
  3317. fFeeUnitid: null,
  3318. fQty: 0,
  3319. funitprice: 0,
  3320. fAmount: 0,
  3321. fCurrency: "RMB",
  3322. fExrate: 1,
  3323. fTaxrate: this.fTaxrate,
  3324. remarks: null,
  3325. fMblno:this.form.fMblno,
  3326. fProductName:this.form.fProductName,
  3327. fMarks:this.form.fMarks
  3328. });
  3329. },
  3330. addpayment() {
  3331. this.warehouseCrList.push({
  3332. fcorpid: this.form.fCorpid,
  3333. ffeeid: null,
  3334. fFeeUnitid: null,
  3335. fQty: 0,
  3336. funitprice: 0,
  3337. fAmount: 0,
  3338. fCurrency: "RMB",
  3339. fExrate: 1,
  3340. fTaxrate: this.fTaxrate,
  3341. remarks: null,
  3342. fMblno:this.form.fMblno,
  3343. fProductName:this.form.fProductName,
  3344. fMarks:this.form.fMarks
  3345. });
  3346. },
  3347. queryUser() {
  3348. queryUserVal().then((response) => {
  3349. if (response.user !== null) {
  3350. this.userVal = response.user;
  3351. this.$set(this.form, "fDeptid", this.userVal.deptId);
  3352. this.$set(this.form, "createBy", this.userVal.userName);
  3353. this.$set(this.form,"fStorekeeper",this.userVal.userName)
  3354. this.$set(this.form, "fIfdamage", "1");
  3355. this.$set(this.form, "fIfweigh", "1");
  3356. this.$set(this.form, "fTrademodeid", "1");
  3357. this.$set(this.form, "createTime", Date.parse(new Date()));
  3358. }
  3359. if (response.dept !== null) {
  3360. this.deptOptions = [];
  3361. this.deptOptions.push(response.dept);
  3362. }
  3363. });
  3364. },
  3365. /** 查询仓库主(出入库)列表 */
  3366. getList() {
  3367. this.loading = true;
  3368. listWarehousebills(this.queryParams).then((response) => {
  3369. this.warehousebillsList = response.rows;
  3370. this.total = response.total;
  3371. this.loading = false;
  3372. });
  3373. },
  3374. // 查询库存总账信息
  3375. getWhgenlegList() {
  3376. this.whgenlegParams.fMblno = this.form.fMblno;
  3377. this.whgenlegParams.fCorpid = this.form.fCorpid;
  3378. this.whgenlegParams.fWarehouseid = this.form.fWarehouseid;
  3379. this.whgenlegParams.fTrademodeid = this.form.fTrademodeid;
  3380. listWhgenleg(this.whgenlegParams).then((response) => {
  3381. this.whgenlegList = response.rows;
  3382. this.whgenlegTotal = response.total;
  3383. });
  3384. },
  3385. // 贸易方式(数据字典),对应t_trademodels 字典翻译
  3386. fTrademodeidFormat(row, column) {
  3387. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  3388. },
  3389. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  3390. fIfweighFormat(row, column) {
  3391. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  3392. },
  3393. // 是否破损(数据字典),默认F否则T字典翻译
  3394. fIfdamageFormat(row, column) {
  3395. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  3396. },
  3397. // 单据类型(数据字典)SJRK字典翻译
  3398. fBilltypeFormat(row, column) {
  3399. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  3400. },
  3401. // 状态(数据字典),N 入字典翻译
  3402. fBillstatusFormat(row, column) {
  3403. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  3404. },
  3405. // 取消按钮
  3406. cancel() {
  3407. this.open = false;
  3408. this.reset();
  3409. },
  3410. // 表单重置
  3411. reset() {
  3412. this.form = {
  3413. fId: null,
  3414. fBillno: null,
  3415. fCustomsdeclartion: null,
  3416. fOriginalbillno: null,
  3417. fDeptid: null,
  3418. fBsdeptid: null,
  3419. fContacts: null,
  3420. fTel: null,
  3421. fCorpid: null,
  3422. fTocorpid: null,
  3423. fStltypeid: null,
  3424. fBscorpno: null,
  3425. fWarehouseid: null,
  3426. fStorekeeper: null,
  3427. fBsdate: null,
  3428. fPlanqty: null,
  3429. fPlangrossweight: null,
  3430. fPlannetweight: null,
  3431. fPlanvolumn: null,
  3432. fQty: null,
  3433. fGrossweight: null,
  3434. fNetweight: null,
  3435. fVolumn: null,
  3436. fTrademodeid: null,
  3437. fSbu: null,
  3438. fFeetunit: null,
  3439. fMblno: null,
  3440. fVslvoy: null,
  3441. fEta: null,
  3442. fCustomno: null,
  3443. fIfweigh: null,
  3444. fIfpledge: null,
  3445. fIfdamage: null,
  3446. fBankcorpid: null,
  3447. fBilltype: null,
  3448. fBillstatus: null,
  3449. delFlag: null,
  3450. createBy: null,
  3451. createTime: null,
  3452. updateBy: null,
  3453. updateTime: null,
  3454. remark: null,
  3455. fCreateby: null,
  3456. fCreatetime: null,
  3457. fGoodsid: null,
  3458. fCntrtype: null,
  3459. fCntqty: null,
  3460. fBusinessType: '出库装箱'
  3461. };
  3462. this.deptOptions = [];
  3463. this.userOptions = [];
  3464. this.fSbuOptions = [];
  3465. this.fWbuOptions = [];
  3466. this.goodsOptions = [];
  3467. this.KHblnoOptions = [];
  3468. this.fMblnoOptions = [];
  3469. this.kqhouseOptions = [];
  3470. this.addOrUpdateVisible = false
  3471. this.addOrUpdateVisib = false
  3472. this.formBrowseStatus = false
  3473. this.detailsHidden = false
  3474. this.warehousingagreements = false
  3475. this.whgenlegVisible = false
  3476. this.approvalStatus = false
  3477. this.editDialogVisible_s = false
  3478. this.editDialogVisible_ss = false
  3479. this.openPrintJobSheet = false
  3480. this.editDialogClosed_ss = false
  3481. this.storageAgreements = false
  3482. this.browseStatus = false
  3483. this.doNot = false
  3484. this.resetForm("form");
  3485. },
  3486. /** 搜索按钮操作 */
  3487. handleQuery() {
  3488. this.queryParams.pageNum = 1;
  3489. this.getList();
  3490. },
  3491. /** 重置按钮操作 */
  3492. resetQuery() {
  3493. this.resetForm("queryForm");
  3494. this.handleQuery();
  3495. },
  3496. // 多选框选中数据
  3497. handleSelectionChange(selection) {
  3498. this.ids = selection;
  3499. // this.ids = selection.map((item) => item.fId);
  3500. this.single = selection.length !== 1;
  3501. this.multiple = !selection.length;
  3502. },
  3503. // 库存总账多选框
  3504. whgenlegSelectionChange(selection) {
  3505. this.dialogWhgenlegList = selection;
  3506. },
  3507. /** 新增按钮操作 */
  3508. handleAdd(status) {
  3509. this.reset();
  3510. this.browseStatus = status;
  3511. this.queryUser();
  3512. this.open = true;
  3513. this.detailsHidden = false;
  3514. this.dataList = [];
  3515. this.warehouseCrList = [];
  3516. this.warehouseDrList = [];
  3517. this.relevantAttachments = [];
  3518. this.title = "出库单";
  3519. this.formBrowseStatus = false;
  3520. this.form.fFeetunit = "2"
  3521. },
  3522. /** 修改按钮操作 */
  3523. handleUpdate(row, status) {
  3524. this.reset();
  3525. if (this.dataList.length === 0){
  3526. this.contrOl = true
  3527. }
  3528. this.browseStatus = status;
  3529. this.detailsHidden = false;
  3530. this.formBrowseStatus = false;
  3531. const fId = row.fId || this.ids;
  3532. this.dataList = [];
  3533. getWarehousebills(fId).then((response) => {
  3534. if (response.data.warehousebills) {
  3535. this.form = response.data.warehousebills;
  3536. this.before = this.form.createBy
  3537. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  3538. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  3539. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  3540. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  3541. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  3542. if (this.form.fBillstatus > 2) {
  3543. this.approvalStatus = false;
  3544. } else {
  3545. this.approvalStatus = true;
  3546. }
  3547. }
  3548. if (response.data.warehouseBillsItem) {
  3549. this.dataList = response.data.warehouseBillsItem;
  3550. for (let list in this.dataList) {
  3551. this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
  3552. if (this.dataList[list].fBillstatus > 10) {
  3553. this.formBrowseStatus = true;
  3554. this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '')
  3555. }
  3556. }
  3557. }
  3558. if (response.data.corps) {
  3559. this.fMblnoOptions = response.data.corps;
  3560. this.KHblnoOptions = response.data.corps;
  3561. this.fSbuOptions = response.data.corps;
  3562. }
  3563. if (response.data.feesList) {
  3564. this.fWbuOptions = response.data.feesList;
  3565. }
  3566. if (response.data.warehouse) {
  3567. this.warehouseOptions = response.data.warehouse;
  3568. }
  3569. if (response.data.warehouseBillsItem) {
  3570. this.dataList = response.data.warehouseBillsItem;
  3571. for (let list in this.dataList) {
  3572. this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
  3573. }
  3574. }
  3575. if (response.data.enclosures) {
  3576. this.relevantAttachments = response.data.enclosures;
  3577. }
  3578. this.goodsOptions = response.data.goodsList;
  3579. this.kqhouseOptions = response.data.warehouseAreas;
  3580. this.warehouseDrList = response.data.warehousebillsfeesDr;
  3581. for (let dr in this.warehouseDrList) {
  3582. this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + "");
  3583. this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
  3584. this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
  3585. }
  3586. this.warehouseCrList = response.data.warehousebillsfeesCr;
  3587. for (let cr in this.warehouseCrList) {
  3588. this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + "");
  3589. }
  3590. this.userOptions = response.data.sysUser;
  3591. this.open = true;
  3592. this.title = "修改仓入库";
  3593. });
  3594. queryUserVal().then((response)=>{
  3595. this.current = response.user.userName
  3596. })
  3597. },
  3598. // 数量计算
  3599. changeContractAmt(row) {
  3600. let fQty = 0
  3601. let fUnitprice = 0
  3602. if (row.fUnitprice) {
  3603. fUnitprice = row.fUnitprice
  3604. }
  3605. if (row.fQty) {
  3606. fQty = row.fQty
  3607. }
  3608. this.$set(row, 'fAmount', parseFloat(Number(fUnitprice) * Number(fQty)).toFixed(2))
  3609. },
  3610. changefBsdate(row) {
  3611. if (this.dataList.length > 0) {
  3612. for (var i = 0; i < this.dataList.length; i++) {
  3613. this.$set(this.dataList[i], "fBsdate", row);
  3614. }
  3615. }
  3616. },
  3617. // change仓库
  3618. changefWarehouseid(row) {
  3619. for (let corp in this.warehouseOptions) {
  3620. if (row.fWarehouseid === this.warehouseOptions[corp].fId) {
  3621. this.$set(
  3622. this.form,
  3623. "fContacts",
  3624. this.warehouseOptions[corp].fContacts
  3625. );
  3626. this.$set(this.form, "fTel", this.warehouseOptions[corp].fTel);
  3627. this.fAddr = this.warehouseOptions[corp].fAddr;
  3628. }
  3629. }
  3630. },
  3631. //change司机信息
  3632. changeInformation(){
  3633. if(this.form.fTruckno !== null){
  3634. this.$set(this.whgenlegList, 'fTruckno', this.form.fTruckno)
  3635. }
  3636. if(this.form.fDriverName !== null){
  3637. this.$set(this.whgenlegList, 'fDriverName', this.form.fDriverName)
  3638. }
  3639. if(this.form.fDriverTel !== null){
  3640. this.$set(this.whgenlegList, 'fDriverTel', this.form.fDriverTel)
  3641. }
  3642. if(this.form.fDriverIdCar !== null){
  3643. this.$set(this.whgenlegList, 'fDriverIdCar', this.form.fDriverIdCar)
  3644. }
  3645. },
  3646. // 选择按钮
  3647. collectionoptions(selection) {
  3648. this.feelDrSelection = selection
  3649. },
  3650. changefCorpid(row) {
  3651. this.$set(row, "fSbu", row.fCorpid);
  3652. for (let corp in this.fMblnoOptions) {
  3653. if (row.fCorpid === this.fMblnoOptions[corp].fId) {
  3654. this.$set(this.form, "fStltypeid", this.fMblnoOptions[corp].fStltypeid + "");
  3655. }
  3656. }
  3657. },
  3658. // 合计
  3659. getSummaries(param) {
  3660. const { columns, data } = param;
  3661. const sums = [];
  3662. var values = [];
  3663. columns.forEach((column, index) => {
  3664. if (index === 0) {
  3665. sums[index] = "合计";
  3666. return;
  3667. }
  3668. if (column.property === "fGrossweight") {
  3669. values = data.map((item) => Number(item["fGrossweight"]));
  3670. }
  3671. if (column.property === "fNetweight") {
  3672. values = data.map((item) => Number(item["fNetweight"]));
  3673. }
  3674. if (column.property === "fQty") {
  3675. values = data.map((item) => Number(item["fQty"]));
  3676. }
  3677. if (column.property === "fCntqty") {
  3678. values = data.map((item) => Number(item["fCntqty"]));
  3679. } // const values = data.map(item => Number(item[column.property]))
  3680. if (
  3681. column.property === "fGrossweight" ||
  3682. column.property === "fNetweight" ||
  3683. column.property === "fQty" ||
  3684. column.property === "fCntqty"
  3685. ) {
  3686. sums[index] = values.reduce((prev, curr) => {
  3687. const value = Number(curr);
  3688. if (!isNaN(value)) {
  3689. if (column.property === "fGrossweight") {
  3690. this.fGrossweight = prev + curr;
  3691. }
  3692. if (column.property === "fNetweight") {
  3693. this.fNetweight = prev + curr;
  3694. }
  3695. if (column.property === "fVolumn") {
  3696. this.fVolumn = prev + curr;
  3697. }
  3698. if (column.property === "fQty") {
  3699. this.fQty = prev + curr;
  3700. }
  3701. if (column.property === "fCntqty") {
  3702. this.fCntqty = prev + curr;
  3703. }
  3704. return prev + curr;
  3705. } else {
  3706. return prev;
  3707. }
  3708. }, 0); // sums[index]
  3709. sums[index] = sums[index].toFixed(2);
  3710. }
  3711. });
  3712. this.sums = sums;
  3713. return sums;
  3714. },
  3715. // 付款合计
  3716. warehouseDrSummaries(param) {
  3717. const { columns, data } = param;
  3718. const sums = [];
  3719. columns.forEach((column, index) => {
  3720. if (index === 0) {
  3721. sums[index] = "合计";
  3722. return;
  3723. }
  3724. const values = data.map((item) => Number(item[column.property]));
  3725. if (
  3726. column.property === "fUnitprice" ||
  3727. column.property === "fAmount" ||
  3728. column.property === "fQty" ||
  3729. column.property === "fQty"
  3730. ) {
  3731. sums[index] = values.reduce((prev, curr) => {
  3732. const value = Number(curr);
  3733. if (!isNaN(value)) {
  3734. return prev + curr;
  3735. } else {
  3736. return prev;
  3737. }
  3738. }, 0); // sums[index]
  3739. sums[index] = sums[index].toFixed(2);
  3740. }
  3741. });
  3742. return sums;
  3743. },
  3744. // 库存明细多选框结果
  3745. dataListChange(row) {
  3746. this.dataListSelection = row;
  3747. },
  3748. // 变更计价单位
  3749. changeFeeUnit(row) {
  3750. if (!row.fFeeunitid) {
  3751. return false
  3752. }
  3753. let fQty = 0;
  3754. let fGrossweight = 0;
  3755. let fNetweight = 0;
  3756. let volumn = 0;
  3757. let fixed = 1;
  3758. for (let li in this.dataList) {
  3759. if (this.dataList[li].fQty) {
  3760. fQty = parseFloat(Number(fQty) + Number(this.dataList[li].fQty)).toFixed(2)
  3761. }
  3762. if (this.dataList[li].fGrossweight) {
  3763. fGrossweight = parseFloat(Number(fGrossweight) + Number(this.dataList[li].fGrossweight)).toFixed(2)
  3764. }
  3765. if (this.dataList[li].fNetweight) {
  3766. fNetweight = parseFloat(Number(fNetweight) + Number(this.dataList[li].fNetweight)).toFixed(2)
  3767. }
  3768. if (this.dataList[li].volumn) {
  3769. volumn = parseFloat(Number(volumn) + Number(this.dataList[li].volumn)).toFixed(2)
  3770. }
  3771. }
  3772. if (row.fFeeunitid === 1) {
  3773. this.$set(row, 'fQty', fQty)
  3774. } else if (row.fFeeunitid === 2) {
  3775. this.$set(row, 'fQty', fGrossweight)
  3776. }else if (row.fFeeunitid === 3) {
  3777. this.$set(row, 'fQty', fNetweight)
  3778. }else if (row.fFeeunitid === 4) {
  3779. this.$set(row, 'fQty', volumn)
  3780. }else if (row.fFeeunitid === 5) {
  3781. this.$set(row, 'fQty', fixed)
  3782. }
  3783. if (row.fUnitprice) {
  3784. this.$set(row, 'fAmount', parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2))
  3785. }
  3786. },
  3787. // 出库确认
  3788. creditClick() {
  3789. this.$refs["form"].validate((valid) => {
  3790. for (let warehouseCr in this.dataListSelection) {
  3791. if(this.form.fFeetunit > 3){
  3792. this.$message.error('请维护主表计费单位为件数、毛重或净重')
  3793. return false
  3794. }
  3795. if (this.dataListSelection[warehouseCr].fBillstatus === 10) {
  3796. this.$message.error("请先打印作业单");
  3797. return false;
  3798. } else if (this.dataListSelection[warehouseCr].fBillstatus === 20) {
  3799. this.$message.error("请先装货");
  3800. return false;
  3801. } else if (!this.dataListSelection[warehouseCr].fBusinessType) {
  3802. this.$message.error('请维护业务类型')
  3803. return false
  3804. }else if (!this.dataListSelection[warehouseCr].fMarks) {
  3805. this.$message.error('请维护业务详情')
  3806. return false
  3807. } else if (!this.dataListSelection[warehouseCr].fGrossweight) {
  3808. this.$message.error("请选择入库毛重");
  3809. return false;
  3810. } else if (!this.dataListSelection[warehouseCr].fNetweight) {
  3811. this.$message.error("请选择入库净重");
  3812. return false;
  3813. } else if (!this.dataListSelection[warehouseCr].fQty) {
  3814. this.$message.error("请维护出库件数");
  3815. return false;
  3816. } else if (this.dataListSelection[warehouseCr].fIsPass !== 'T') {
  3817. this.$message.error("请放行才能出库");
  3818. return false;
  3819. }
  3820. }
  3821. if (valid) {
  3822. let listSelection = JSON.parse(JSON.stringify(this.dataListSelection))
  3823. let formData = new window.FormData();
  3824. formData.append("warehouseBills", JSON.stringify(this.form));
  3825. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  3826. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  3827. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  3828. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  3829. addWhgenleg(formData).then((response) => {
  3830. this.fid = response.data.fPid;
  3831. // 暂时注释掉,后续可能会加回来 仓储费得出的明细
  3832. /* this.fWbuOptions = response.data.fees;
  3833. let warehousebillsfees = response.data.warehousebillsfees;
  3834. for (let fees in warehousebillsfees) {
  3835. this.$set(warehousebillsfees[fees], "fFeeid", warehousebillsfees[fees].fFeeid + "");
  3836. this.$set(warehousebillsfees[fees], "fCorpid", warehousebillsfees[fees].fCorpid + "");
  3837. this.$set(warehousebillsfees[fees], "fFeeUnitid", warehousebillsfees[fees].fFeeUnitid + "");
  3838. this.warehouseDrList.push(warehousebillsfees[fees]);
  3839. } */
  3840. this.dataWithdrawList = []
  3841. this.dataListSelection = []
  3842. this.msgSuccess("出库成功");
  3843. this.$refs.tableList.clearSelection();
  3844. this.formBrowseStatus = true;
  3845. for (let li in listSelection) {
  3846. for (let i in this.dataList) {
  3847. if (listSelection[li].fId === this.dataList[i].fId) {
  3848. this.$set(this.dataList[i], "fBillstatus", 40);
  3849. }
  3850. }
  3851. }
  3852. });
  3853. }
  3854. });
  3855. },
  3856. // 打印作业单
  3857. addList() {
  3858. this.$refs["form"].validate((valid) => {
  3859. if (valid) {
  3860. let listSelection = JSON.parse(JSON.stringify(this.dataListSelection))
  3861. let formData = new window.FormData();
  3862. formData.append("warehouseBills", JSON.stringify(this.form));
  3863. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  3864. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  3865. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  3866. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  3867. addJoblist(formData).then((response) => {
  3868. this.formBrowseStatus = true;
  3869. this.$refs.tableDr.clearSelection();
  3870. this.$refs.tableList.clearSelection();
  3871. let dataitem = response.data.warehousebillsitems
  3872. for (let ite in dataitem) {
  3873. for (let li in this.dataList) {
  3874. if (this.dataList[li].fId === dataitem[ite].fId) {
  3875. this.$set(this.dataList[li], 'fBillstatus', dataitem[ite].fBillstatus)
  3876. this.$set(this.dataList[li], 'fSerialNumber', dataitem[ite].fSerialNumber)
  3877. }
  3878. }
  3879. }
  3880. });
  3881. }
  3882. });
  3883. },
  3884. // 撤回入账
  3885. withdrawClick() {
  3886. for (let li in this.dataWithdrawList) {
  3887. if (this.dataWithdrawList[li].fBillstatus < 40) {
  3888. this.$message.error("所选信息中存在未出库数据!");
  3889. return false
  3890. }
  3891. }
  3892. let formData = new window.FormData();
  3893. // 撤回入库
  3894. let withdrawList = JSON.parse(JSON.stringify(this.dataWithdrawList))
  3895. formData.append("warehouseBills", JSON.stringify(this.form));
  3896. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  3897. formData.append("warehousebillsitems", JSON.stringify(this.dataWithdrawList));
  3898. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  3899. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  3900. updateCredit(formData).then((response) => {
  3901. this.fid = response.data;
  3902. this.formBrowseStatus = false;
  3903. this.msgSuccess("撤销入账成功");
  3904. this.$refs.tableList.clearSelection();
  3905. let mun = 0;
  3906. for (let i in this.dataList) {
  3907. for (let li in withdrawList) {
  3908. if (withdrawList[li].fId === this.dataList[i].fId) {
  3909. this.$set(this.dataList[i], 'fBillstatus', 10)
  3910. }
  3911. }
  3912. if (this.dataList[i].fBillstatus && this.dataList[i].fBillstatus > 10) {
  3913. mun ++;
  3914. }
  3915. }
  3916. if (mun > 0) {
  3917. this.formBrowseStatus = true
  3918. } else {
  3919. this.formBrowseStatus = false
  3920. }
  3921. });
  3922. },
  3923. // 装货按钮
  3924. discharge() {
  3925. if (this.printinglist.length <= 0) {
  3926. this.$message.error("请选择需要装货的明细!");
  3927. return false
  3928. }
  3929. for (let li in this.dataListSelection) {
  3930. if (!this.dataListSelection[li].fId) {
  3931. this.$message.error('请先保存!')
  3932. return false
  3933. } else if (this.dataListSelection[li].fBillstatus === 10) {
  3934. this.$message.error('请先打印')
  3935. return false
  3936. } else if (this.dataListSelection[li].fBillstatus >= 30) {
  3937. this.$message.error('请勿重复装货')
  3938. return false
  3939. } else if (!this.dataListSelection[li].fQty || this.dataListSelection[li].fQty === 0) {
  3940. this.$message.error('请维护出库件数')
  3941. return false
  3942. } else if (!this.dataListSelection[li].fGrossweight || this.dataListSelection[li].fGrossweight === 0) {
  3943. this.$message.error('请维护出库毛重')
  3944. return false
  3945. } else if (!this.dataListSelection[li].fNetweight || this.dataListSelection[li].fNetweight === 0) {
  3946. this.$message.error('请维护出库净重')
  3947. return false
  3948. }
  3949. }
  3950. this.$refs['form'].validate((valid) => {
  3951. if (valid) {
  3952. let withdrawList = JSON.parse(JSON.stringify(this.dataListSelection))
  3953. console.log(withdrawList)
  3954. let formData = new window.FormData()
  3955. formData.append("warehouseBills", JSON.stringify(this.form));
  3956. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  3957. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  3958. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  3959. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  3960. this.formBrowseStatus = true
  3961. this.$refs.tableList.clearSelection()
  3962. disChargelist(formData).then((response) => {
  3963. for (let li in withdrawList) {
  3964. for (let i in this.dataList) {
  3965. if (withdrawList[li].fId === this.dataList[i].fId) {
  3966. this.$set(this.dataList[i], 'fBillstatus', 30)
  3967. }
  3968. }
  3969. }
  3970. this.msgSuccess('装货成功')
  3971. console.log(this.dataList)
  3972. })
  3973. }
  3974. })
  3975. },
  3976. // 付款信息计价单位合计
  3977. getwarehouseCrList(param) {
  3978. const { columns, data } = param
  3979. const sums = []
  3980. var values = []
  3981. columns.forEach((column, index) => {
  3982. if (index === 0) {
  3983. sums[index] = "合计";
  3984. return;
  3985. }
  3986. if (index === 3) {
  3987. // values = data.map((item) => Number(item["fFeeUnitid"]));
  3988. sums[index] = this.fFeeUnitids;
  3989. return;
  3990. }
  3991. });
  3992. this.sums = sums;
  3993. return sums;
  3994. },
  3995. // 库存明细多选
  3996. selectinventory(selection) {
  3997. this.printinglist = selection;
  3998. this.dataWithdrawList = [];
  3999. this.dataListSelection = [];
  4000. if (!selection || selection.length === 0) {
  4001. return false
  4002. }
  4003. for (let se in selection) {
  4004. if (!selection[se].fBillstatus || selection[se].fBillstatus !== 40) {
  4005. this.dataListSelection.push(selection[se])
  4006. } else if (selection[se].fBillstatus && selection[se].fBillstatus === 40) {
  4007. this.dataWithdrawList.push(selection[se])
  4008. }
  4009. }
  4010. this.fTruckno = selection[0].fTruckno
  4011. this.fCntrtype = selection[0].fCntrtype
  4012. this.fGoodsids = selection[0].fGoodsids
  4013. },
  4014. // 更新主表品名并去重
  4015. updateDeduplication: function() {
  4016. if (this.dataList.length === 0) {
  4017. return false
  4018. }
  4019. let fMarks = []
  4020. let fProductName = []
  4021. let fMblno = []
  4022. for (let li in this.dataList) {
  4023. fMarks.push(this.dataList[li].fMarks)
  4024. fProductName.push(this.dataList[li].fGoodsids)
  4025. fMblno.push(this.dataList[li].fMblno)
  4026. }
  4027. this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
  4028. this.$set(this.form, 'fProductName', Array.from(new Set(fProductName)).join(","))
  4029. this.$set(this.form, 'fMblno', Array.from(new Set(fMblno)).join(","))
  4030. },
  4031. // 保存
  4032. saveForm () {
  4033. this.updateDeduplication()
  4034. this.$refs['form'].validate((valid) => {
  4035. if (this.dataList.length === 0) {
  4036. this.$message.error('请添加库存明细!')
  4037. return false
  4038. }
  4039. for (let li in this.dataList) {
  4040. for(let list in this.fStorageTypeOptions){
  4041. if (this.dataList[li].fBusinessType === this.fStorageTypeOptions[list].dictLabel) {
  4042. this.$set(this.dataList[li], 'fBusinessType', this.fStorageTypeOptions[list].dictValue)
  4043. break
  4044. }
  4045. }
  4046. }
  4047. // for (let list in this.dataList) {
  4048. // this.changeOutStock(this.dataList[list])
  4049. // if (!this.dataList[list].fQty || Number(this.dataList[list].fQty) === 0) {
  4050. // this.$message.error('请维护序号为' + (Number(list) + 1) + '的出库件数!')
  4051. // return false
  4052. // }
  4053. // if (!this.dataList[list].fGrossweight || Number(this.dataList[list].fGrossweight) === 0) {
  4054. // this.$message.error('请维护序号为' + (Number(list) + 1) + '的出库毛重!')
  4055. // return false
  4056. // }
  4057. // if (!this.dataList[list].fNetweight || Number(this.dataList[list].fNetweight) === 0) {
  4058. // this.$message.error('请维护序号为' + (Number(list) + 1) + '的出库净重!')
  4059. // return false
  4060. // }
  4061. // }
  4062. if (valid) {
  4063. setTimeout(() => {
  4064. this.form.fBillstatus = 2
  4065. let formData = new window.FormData()
  4066. console.log(this.form)
  4067. formData.append("warehouseBills", JSON.stringify(this.form));
  4068. formData.append("warehousebillsitems", JSON.stringify(this.dataList));
  4069. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4070. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4071. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4072. addWarehousebills(formData).then((response) => {
  4073. this.msgSuccess('保存成功')
  4074. this.form = response.data.warehouseBills
  4075. this.$set(this.form, 'fEta', Date.parse(this.form.fEta))
  4076. this.$set(this.form, 'fTrademodeid', this.form.fTrademodeid + '')
  4077. this.$set(this.form, 'fStltypeid', this.form.fStltypeid + '')
  4078. this.$set(this.form, 'fFeetunit', this.form.fFeetunit + '')
  4079. this.$set(this.form, 'fBsdate', Date.parse(this.form.fBsdate))
  4080. this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
  4081. this.$set(this.form, 'fChargedate', Date.parse(this.form.fChargedate))
  4082. this.dataList = response.data.warehousebillsitems
  4083. for (let list in this.dataList) {
  4084. // this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
  4085. this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '');
  4086. }
  4087. })
  4088. }, 200);
  4089. }
  4090. })
  4091. },
  4092. /** 提交按钮 */
  4093. submitForm() {
  4094. this.updateDeduplication()
  4095. this.$refs['form'].validate((valid) => {
  4096. if (this.dataList.length === 0) {
  4097. this.$message.error('请新增库存明细!')
  4098. return false
  4099. }
  4100. for (let list in this.dataList) {
  4101. this.changeOutStock(this.dataList[list])
  4102. if (this.dataList[list].fQty === 0) {
  4103. this.$message.error('请输入出库件数!')
  4104. return false
  4105. }
  4106. if (this.dataList[list].fNetweight === 0) {
  4107. this.$message.error('请输入出库净重!')
  4108. return false
  4109. }
  4110. if (this.dataList[list].fGrossweight === 0) {
  4111. this.$message.error('请输入出库毛重!')
  4112. return false
  4113. }
  4114. if (this.dataList[list].fBillstatus !== 40) {
  4115. this.$message.error('请入账库存明细!')
  4116. return false
  4117. }
  4118. }
  4119. for (let list in this.warehouseDrList) {
  4120. if (!this.warehouseDrList[list].fCorpid) {
  4121. this.$message.error('请选择客户名称')
  4122. return false
  4123. }
  4124. }
  4125. for (let list in this.warehouseCrList) {
  4126. if (!this.warehouseCrList[list].fCorpid) {
  4127. this.$message.error('请选择客户名称')
  4128. return false
  4129. }
  4130. }
  4131. if (valid) {
  4132. setTimeout(() => {
  4133. this.form.fBillstatus = status
  4134. this.form.fNetweight = this.fNetweight
  4135. this.form.fPlangrossweight = this.fPlangrossweight
  4136. this.form.fPlannetweight = this.fPlannetweight
  4137. this.form.fPlanvolumn = this.fPlanvolumn
  4138. this.form.fPlanqty = this.fPlanqty
  4139. this.form.fGrossweight = this.fGrossweight
  4140. this.form.fQty = this.fQty
  4141. if (!this.form.fId) {
  4142. this.form.fId = this.fid
  4143. }
  4144. let formData = new window.FormData()
  4145. formData.append("warehouseBills", JSON.stringify(this.form));
  4146. formData.append("warehousebillsitems", JSON.stringify(this.dataList));
  4147. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4148. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4149. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4150. warehouseSubmission(formData).then((response) => {
  4151. this.msgSuccess('提交成功')
  4152. this.cancel()
  4153. this.getList()
  4154. })
  4155. }, 200);
  4156. }
  4157. })
  4158. },
  4159. /** 删除按钮操作 */
  4160. handleDelete(row) {
  4161. const fIds = row.fId || this.ids.fId;
  4162. this.$confirm(
  4163. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  4164. "警告",
  4165. {
  4166. confirmButtonText: "确定",
  4167. cancelButtonText: "取消",
  4168. type: "warning",
  4169. }
  4170. )
  4171. .then(function () {
  4172. return delWarehousebills(fIds);
  4173. })
  4174. .then(() => {
  4175. this.getList();
  4176. this.msgSuccess("删除成功");
  4177. });
  4178. },
  4179. /** 导出按钮操作 */
  4180. handleExport() {
  4181. const queryParams = this.queryParams;
  4182. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  4183. confirmButtonText: "确定",
  4184. cancelButtonText: "取消",
  4185. type: "warning",
  4186. })
  4187. .then(function () {
  4188. return exportWarehousebills(queryParams);
  4189. })
  4190. .then((response) => {
  4191. this.download(response.msg);
  4192. });
  4193. },
  4194. // 出库件数的计算
  4195. qtyChange(row) {
  4196. if (!row.fQty || row.fQty === "") {
  4197. this.$set(row, "fNetweight", 0);
  4198. this.$set(row, "fGrossweight", 0);
  4199. return false;
  4200. }
  4201. if (row.fPlanqty < row.fQty) {
  4202. this.$message.error("出库件数超出结余件数!");
  4203. this.$set(row, 'fQty', 0)
  4204. this.$set(row, 'fNetweight', 0)
  4205. this.$set(row, 'fGrossweight', 0)
  4206. return false;
  4207. }
  4208. // 净重 fPlannetweight
  4209. // 毛重 fPlangrossweight
  4210. let fVolumn = parseFloat(Number(row.fVolumn) / Number(row.fPlanqty)).toFixed(2);
  4211. let netweight = parseFloat(Number(row.fPlannetweight) / Number(row.fPlanqty)).toFixed(2);
  4212. let grossweigh = parseFloat(Number(row.fPlangrossweight) / Number(row.fPlanqty)).toFixed(2);
  4213. this.$set(row, "fVolumn", parseFloat(Number(fVolumn) * Number(row.fQty)).toFixed(2));
  4214. this.$set(row, "fNetweight", parseFloat(Number(netweight) * Number(row.fQty)).toFixed(2));
  4215. this.$set(row, "fGrossweight", parseFloat(Number(grossweigh) * Number(row.fQty)).toFixed(2));
  4216. },
  4217. // 修改毛重净重
  4218. changeOutStock (row) {
  4219. let fNetweight = 0;
  4220. let fGrossweight = 0;
  4221. if (row.fNetweight) {
  4222. fNetweight = row.fNetweight
  4223. }
  4224. if (row.fGrossweight) {
  4225. fGrossweight = row.fGrossweight
  4226. }
  4227. if (row.fPlannetweight < fNetweight) {
  4228. this.$message({ message: '出库净重超出结余净重', type: 'warning' })
  4229. return false
  4230. }
  4231. if (row.fPlangrossweight < fGrossweight) {
  4232. this.$message({ message: '出库毛重超出结余毛重', type: 'warning' })
  4233. return false
  4234. }
  4235. },
  4236. deleteRow(index, rows) {
  4237. rows.splice(index, 1);
  4238. if (this.dataList.length === 0) {
  4239. this.formBrowseStatus = false
  4240. this.contrOl = false
  4241. return false
  4242. }
  4243. for (let li in this.dataList) {
  4244. if (this.dataList[li].fBillstatus > 10) {
  4245. this.formBrowseStatus = true
  4246. return false
  4247. }
  4248. }
  4249. },
  4250. /* 远程模糊查询用户 */
  4251. corpsRemoteMethod(name) {
  4252. if (name == null || name === "") {
  4253. return false;
  4254. }
  4255. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4256. listCorps(queryParams).then((response) => {
  4257. this.fMblnoOptions = response.rows;
  4258. this.KHblnoOptions = response.rows;
  4259. });
  4260. },
  4261. /* 远程模糊查询商品 */
  4262. goodsRemoteMethod(name) {
  4263. if (name == null || name === "") {
  4264. return false;
  4265. }
  4266. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4267. listGoods(queryParams).then((response) => {
  4268. this.goodsOptions = response.rows;
  4269. });
  4270. },
  4271. // 选择费用信息时获取计价单位
  4272. changeFeeId (row) {
  4273. for (let li in this.fWbuOptions) {
  4274. if (row.fFeeid === this.fWbuOptions[li].fId) {
  4275. this.$set(row, 'fFeeUnitid', this.fWbuOptions[li].fFeeunitid + '')
  4276. this.changeFeeUnit(row)
  4277. break
  4278. }
  4279. }
  4280. },
  4281. // 远程模糊查询费用名称
  4282. fWRemoteMethod(name) {
  4283. if (name == null || name === "") {
  4284. return false;
  4285. }
  4286. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4287. listFees(queryParams).then((response) => {
  4288. this.fWbuOptions = response.rows;
  4289. });
  4290. },
  4291. /* 远程模糊查询经营单位 */
  4292. fSbuRemoteMethod(name) {
  4293. if (name == null || name === "") {
  4294. return false;
  4295. }
  4296. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4297. listCorps(queryParams).then((response) => {
  4298. this.fSbuOptions = response.rows;
  4299. });
  4300. },
  4301. /* 远程模糊查询仓库 */
  4302. warehouseRemoteMethod(name) {
  4303. if (name == null || name === "") {
  4304. return false;
  4305. }
  4306. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4307. listWarehouse(queryParams).then((response) => {
  4308. this.warehouseOptions = response.rows;
  4309. });
  4310. },
  4311. /* 远程模糊查询库区 */
  4312. kqhouseRemoteMethod(name) {
  4313. if (name == null || name === "") {
  4314. return false;
  4315. }
  4316. if (!this.form.fWarehouseid) {
  4317. this.$message.error("请输入仓库!");
  4318. return false;
  4319. }
  4320. let queryParams = {
  4321. pageNum: 1,
  4322. pageSize: 10,
  4323. fWarehouseid: this.form.fWarehouseid,
  4324. fName: name,
  4325. };
  4326. listArea(queryParams).then((response) => {
  4327. this.kqhouseOptions = response.rows;
  4328. });
  4329. },
  4330. /* 远程模糊查询操作用户 */
  4331. userRemoteMethod(name) {
  4332. if (name == null || name === "") {
  4333. return false;
  4334. }
  4335. let queryParams = { pageNum: 1, pageSize: 10, userName: name };
  4336. listUser(queryParams).then((response) => {
  4337. this.userOptions = response.rows;
  4338. });
  4339. },
  4340. },
  4341. };
  4342. </script>
  4343. <style lang="scss">
  4344. .juzhong > th {
  4345. text-align: center;
  4346. }
  4347. .biaoge > tr > td {
  4348. height: 50px;
  4349. text-align: center;
  4350. border-right: 1px solid #dfe6ec !important;
  4351. // order-bottom: 1px solid #dfe6ec !important;
  4352. border-bottom: 1px solid #dfe6ec !important;
  4353. }
  4354. .el-table thead th {
  4355. background: #1890ff;
  4356. color: #fff;
  4357. }
  4358. .upload-demo {
  4359. margin-left: 50px;
  4360. }
  4361. .el-form-item {
  4362. margin-bottom: 5px !important;
  4363. }
  4364. .el-form-item__label {
  4365. font-size: 12px !important;
  4366. }
  4367. </style>