index.vue 152 KB

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