index.vue 142 KB

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