index.vue 150 KB

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