index.vue 146 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503
  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" />
  277. <el-table-column label="司机身份证" align="center" prop="fDriverIdCar" />
  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. :remote-method="warehouseRemoteMethod"
  468. placeholder="请输入模糊查找"
  469. >
  470. <el-option
  471. v-for="(dict, index) in warehouseOptions"
  472. :key="index.fId"
  473. :label="dict.fName"
  474. :value="dict.fId"
  475. ></el-option>
  476. </el-select>
  477. </el-form-item>
  478. </el-col>
  479. </el-row>
  480. <el-row>
  481. <el-col :span="8">
  482. <el-form-item label="计划件数" prop="fPlanqty">
  483. <el-input
  484. v-model="form.fPlanqty"
  485. style="width: 80%"
  486. maxlength="9"
  487. laceholder="计划件数"
  488. oninput='this.value=this.value.replace(/\D/g,"")'
  489. :disabled="browseStatus"
  490. />
  491. </el-form-item>
  492. </el-col>
  493. <el-col :span="8">
  494. <el-form-item label="计划净重" prop="fPlannetweight">
  495. <el-input
  496. v-model="form.fPlannetweight"
  497. style="width: 80%"
  498. maxlength="9"
  499. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  500. laceholder="计划净重"
  501. :disabled="browseStatus"
  502. />
  503. </el-form-item>
  504. </el-col>
  505. <el-col :span="8">
  506. <el-form-item label="计划毛重" prop="fPlangrossweight">
  507. <el-input
  508. v-model="form.fPlangrossweight"
  509. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  510. style="width: 80%"
  511. laceholder="计划毛重"
  512. maxlength="9"
  513. :disabled="browseStatus"
  514. />
  515. </el-form-item>
  516. </el-col>
  517. </el-row>
  518. <el-row>
  519. <el-col :span="8">
  520. <el-form-item label="存货编号" prop="fBscorpno">
  521. <el-input
  522. disabled
  523. v-model="form.fBscorpno"
  524. style="width: 80%"
  525. laceholder="存货编号"
  526. />
  527. </el-form-item>
  528. </el-col>
  529. <el-col :span="8">
  530. <el-form-item label="计费单位" prop="fFeetunit">
  531. <el-select
  532. v-model="form.fFeetunit"
  533. placeholder="请选择计费单位"
  534. clearable
  535. :disabled="browseStatus || formBrowseStatus"
  536. style="width: 80%"
  537. >
  538. <el-option
  539. v-for="(dict, index) in fFeetunitOptions"
  540. :key="index.dictValue"
  541. :label="dict.dictLabel"
  542. :value="dict.dictValue"
  543. />
  544. </el-select>
  545. </el-form-item>
  546. </el-col>
  547. <el-col :span="8">
  548. <el-form-item label="车号">
  549. <el-input
  550. v-model="form.fTruckno"
  551. style="width: 80%"
  552. :disabled="browseStatus || formBrowseStatus"
  553. placeholder="车号"
  554. />
  555. </el-form-item>
  556. </el-col>
  557. </el-row>
  558. <el-row>
  559. <el-col :span="8">
  560. <el-form-item label="司机姓名">
  561. <el-input
  562. v-model="form.fDriverName"
  563. style="width: 80%"
  564. :disabled="browseStatus"
  565. placeholder="司机姓名"
  566. />
  567. </el-form-item>
  568. </el-col>
  569. <el-col :span="8">
  570. <el-form-item label="司机身份证">
  571. <el-input
  572. v-model="form.fDriverIdCar"
  573. style="width: 80%"
  574. :disabled="browseStatus"
  575. placeholder="司机身份证"
  576. />
  577. </el-form-item>
  578. </el-col>
  579. <el-col :span="8">
  580. <el-form-item label="司机电话">
  581. <el-input
  582. v-model="form.fDriverTel"
  583. style="width: 80%"
  584. :disabled="browseStatus"
  585. placeholder="司机电话"
  586. />
  587. </el-form-item>
  588. </el-col>
  589. </el-row>
  590. <el-row>
  591. <el-col :span="8">
  592. <el-form-item label="品牌">
  593. <el-input
  594. v-model="form.fMarks"
  595. style="width: 80%"
  596. disabled
  597. placeholder="品牌"
  598. />
  599. </el-form-item>
  600. </el-col>
  601. <el-col :span="16">
  602. <el-form-item label="备注" prop="remark">
  603. <el-input
  604. style="width: 100%"
  605. v-model="form.remark"
  606. type="textarea"
  607. :disabled="browseStatus"
  608. placeholder="请输入内容"
  609. />
  610. </el-form-item>
  611. </el-col>
  612. <el-col :span="8">
  613. <el-form-item label="品名" prop="fProductName">
  614. <el-input
  615. v-model="form.fProductName"
  616. style="width: 80%"
  617. disabled
  618. placeholder="品名"
  619. />
  620. </el-form-item>
  621. </el-col>
  622. </el-row>
  623. <div v-if="detailsHidden">
  624. <el-row style="margin-top: 30px">
  625. <el-col :span="8">
  626. <el-form-item label="仓库联系人" prop="fContacts">
  627. <el-input
  628. v-model="form.fContacts"
  629. style="width: 80%"
  630. :disabled="browseStatus || formBrowseStatus"
  631. placeholder="仓库联系人"
  632. />
  633. </el-form-item>
  634. </el-col>
  635. <el-col :span="8">
  636. <el-form-item label="仓库电话" prop="fTel">
  637. <el-input
  638. v-model="form.fTel"
  639. :disabled="browseStatus || formBrowseStatus"
  640. style="width: 80%"
  641. placeholder="请输仓库入电话"
  642. />
  643. </el-form-item>
  644. </el-col>
  645. <el-col :span="8">
  646. <el-form-item label="船名航次" prop="fVslvoy">
  647. <el-input
  648. v-model="form.fVslvoy"
  649. style="width: 80%"
  650. :disabled="browseStatus || formBrowseStatus"
  651. placeholder="船名航次"
  652. />
  653. </el-form-item>
  654. </el-col>
  655. </el-row>
  656. <el-row>
  657. <el-col :span="8">
  658. <el-form-item label="到港日期" prop="fEta">
  659. <el-date-picker
  660. v-model="form.fEta"
  661. style="width: 80%"
  662. type="date"
  663. :disabled="browseStatus || formBrowseStatus"
  664. value-format="timestamp"
  665. placeholder="到港日期"
  666. >
  667. </el-date-picker>
  668. </el-form-item>
  669. </el-col>
  670. <el-col :span="8">
  671. <el-form-item label="报关单号" prop="fCustomno">
  672. <el-input
  673. v-model="form.fCustomno"
  674. style="width: 80%"
  675. :disabled="browseStatus || formBrowseStatus"
  676. laceholder="报关单号"
  677. />
  678. </el-form-item>
  679. </el-col>
  680. <el-col :span="8">
  681. <el-form-item label="经营单位" prop="fSbu">
  682. <el-select
  683. v-model="form.fSbu"
  684. filterable
  685. remote
  686. :disabled="browseStatus || formBrowseStatus"
  687. :remote-method="fSbuRemoteMethod"
  688. style="width: 80%"
  689. placeholder="请选择经营单位"
  690. >
  691. <el-option
  692. v-for="(dict, index) in fMblnoOptions"
  693. :key="index.fId"
  694. :label="dict.fName"
  695. :value="dict.fId"
  696. ></el-option>
  697. </el-select>
  698. </el-form-item>
  699. </el-col>
  700. </el-row>
  701. <el-row>
  702. <el-col :span="8">
  703. <el-form-item label="单据编号" prop="fBillno">
  704. <el-input
  705. v-model="form.fBillno"
  706. disabled
  707. style="width: 80%"
  708. placeholder="单据编号"
  709. />
  710. </el-form-item>
  711. </el-col>
  712. <el-col :span="8">
  713. <el-form-item label="贸易方式" prop="fTrademodeid">
  714. <el-select
  715. v-model="form.fTrademodeid"
  716. placeholder="请选择贸易方式"
  717. :disabled="browseStatus || formBrowseStatus"
  718. clearable
  719. style="width: 80%"
  720. >
  721. <el-option
  722. v-for="(dict, index) in fTrademodeidOptions"
  723. :key="index.dictValue"
  724. :label="dict.dictLabel"
  725. :value="dict.dictValue"
  726. />
  727. </el-select>
  728. </el-form-item>
  729. </el-col>
  730. <el-col :span="8">
  731. <el-form-item label="制单人" prop="createBy">
  732. <el-input
  733. disabled
  734. v-model="form.createBy"
  735. style="width: 80%"
  736. placeholder="制单人"
  737. />
  738. </el-form-item>
  739. </el-col>
  740. </el-row>
  741. <el-row>
  742. <el-col :span="8">
  743. <el-form-item label="制单部门" prop="fDeptid">
  744. <el-select
  745. v-model="form.fDeptid"
  746. filterable
  747. disabled
  748. style="width: 80%"
  749. remote
  750. >
  751. <el-option
  752. v-for="(dict, index) in deptOptions"
  753. :key="index.deptId"
  754. :label="dict.deptName"
  755. :value="dict.deptId"
  756. ></el-option>
  757. </el-select>
  758. </el-form-item>
  759. </el-col>
  760. <el-col :span="8">
  761. <el-form-item disabled label="制单日期" prop="fbilldate">
  762. <el-date-picker
  763. v-model="form.createTime"
  764. size="large"
  765. type="date"
  766. disabled
  767. style="width: 80%"
  768. value-format="timestamp"
  769. placeholder="制单日期"
  770. >
  771. </el-date-picker>
  772. </el-form-item>
  773. </el-col>
  774. <el-col :span="8">
  775. <el-form-item label="过磅" prop="fIfweigh">
  776. <el-select
  777. v-model="form.fIfweigh"
  778. placeholder="请选择是否过磅"
  779. clearable
  780. :disabled="browseStatus || formBrowseStatus"
  781. style="width: 80%"
  782. >
  783. <el-option
  784. v-for="(dict, index) in fIfweighOptions"
  785. :key="index.dictValue"
  786. :label="dict.dictLabel"
  787. :value="dict.dictValue"
  788. />
  789. </el-select>
  790. </el-form-item>
  791. </el-col>
  792. </el-row>
  793. <el-row>
  794. <el-col :span="8">
  795. <el-form-item label="质押" prop="fIfpledge">
  796. <el-select
  797. v-model="form.fIfpledge"
  798. placeholder="请选择是否质押"
  799. clearable
  800. :disabled="browseStatus || formBrowseStatus"
  801. style="width: 80%"
  802. >
  803. <el-option
  804. v-for="(dict, index) in fIfpledgeOptions"
  805. :key="index.dictValue"
  806. :label="dict.dictLabel"
  807. :value="dict.dictValue"
  808. />
  809. </el-select>
  810. </el-form-item>
  811. </el-col>
  812. <el-col :span="8">
  813. <el-form-item label="质押银行" prop="fBankcorpid">
  814. <el-select
  815. v-model="queryParams.fBankcorpid"
  816. filterable
  817. remote
  818. clearable
  819. style="width: 80%"
  820. :disabled="browseStatus || formBrowseStatus"
  821. @keyup.enter.native="handleQuery"
  822. :remote-method="corpsRemoteMethodd"
  823. placeholder="请输入模糊查找"
  824. >
  825. <el-option
  826. v-for="(dict, index) in Pledgebank"
  827. :key="index.fId"
  828. :label="dict.fName"
  829. :value="dict.fId"
  830. ></el-option>
  831. </el-select>
  832. </el-form-item>
  833. </el-col>
  834. </el-row>
  835. </div>
  836. </el-form>
  837. <div
  838. class="dialogTableTitle flex a-center jlr"
  839. style="
  840. display: flex;
  841. justify-content: space-between;
  842. align-items: center;
  843. margin: 10px 0;
  844. "
  845. >
  846. <div>
  847. <el-button
  848. type="primary"
  849. :disabled="browseStatus"
  850. @click.prevent="addRelevant(10)"
  851. >新行
  852. </el-button>
  853. <el-button
  854. :disabled="browseStatus"
  855. type="primary"
  856. @click="submitForm(2)"
  857. >保 存</el-button
  858. >
  859. </div>
  860. <div>
  861. <el-button
  862. @click="
  863. detailsHidden ? (detailsHidden = false) : (detailsHidden = true)
  864. "
  865. >{{ detailsHidden ? '隐藏' : '展开' }}
  866. </el-button
  867. >
  868. <el-button type="info" :disabled="browseStatus" prop="打印" @click="showEditDialog_sss"
  869. >作业单
  870. </el-button>
  871. <el-button @click="discharge" :disabled="browseStatus">卸货</el-button>
  872. <el-button
  873. :disabled="dataListSelection.length <= 0 || browseStatus"
  874. @click.prevent="creditClick"
  875. >入库确认
  876. </el-button>
  877. <el-button
  878. :disabled="dataWithdrawList.length <= 0 || browseStatus"
  879. @click.prevent="withdrawClick"
  880. >撤回入库
  881. </el-button
  882. >
  883. <el-button type="success" :disabled="browseStatus" prop="打印" @click="showEditDialog_ss"
  884. >收货单
  885. </el-button>
  886. <el-button type="warning" :disabled="browseStatus" prop="打印" @click="showEditDialog_s"
  887. >入库单
  888. </el-button>
  889. <el-button
  890. :disabled="browseStatus"
  891. style="background-color: #008000; color: #fff"
  892. @click="submitForm(6)"
  893. >请核
  894. </el-button>
  895. <el-select
  896. v-model="form.fBusinessType"
  897. filterable
  898. :disabled="browseStatus"
  899. >
  900. <el-option
  901. v-for="(dict, index) in businessTypeOption"
  902. :key="index.name"
  903. :label="dict.name"
  904. :value="dict.name"
  905. ></el-option>
  906. </el-select>
  907. </div>
  908. <div style="font-size: 18px">入库明细</div>
  909. </div>
  910. <el-table
  911. :data="dataList"
  912. tooltip-effect="dark"
  913. :rules="checkout"
  914. ref="checkout"
  915. border
  916. stripe
  917. :summary-method="getSummaries"
  918. @selection-change="Selectinventory"
  919. show-summary
  920. >
  921. <el-table-column type="selection" width="55" align="center" />
  922. <el-table-column label="序号" type="index" width="80">
  923. </el-table-column>
  924. <el-table-column
  925. prop="fBsdate"
  926. header-align="center"
  927. align="center"
  928. width="150px"
  929. label="入库日期"
  930. >
  931. <template slot-scope="scope">
  932. <el-date-picker
  933. v-model="scope.row.fBsdate"
  934. style="width: 138px"
  935. :disabled="
  936. browseStatus ||
  937. scope.row.fBillstatus === 20 ||
  938. scope.row.fBillstatus === 30 ||
  939. scope.row.fBillstatus === 40
  940. "
  941. type="date"
  942. value-format="timestamp"
  943. placeholder="入库日期"
  944. >
  945. </el-date-picker>
  946. </template>
  947. </el-table-column>
  948. <el-table-column
  949. prop="fGoodsid"
  950. header-align="center"
  951. align="center"
  952. width="140px"
  953. label="品名"
  954. >
  955. <template slot-scope="scope">
  956. <el-select
  957. v-model="scope.row.fGoodsid"
  958. filterable
  959. :disabled="
  960. browseStatus ||
  961. scope.row.fBillstatus === 20 ||
  962. scope.row.fBillstatus === 30 ||
  963. scope.row.fBillstatus === 40
  964. "
  965. remote
  966. :remote-method="goodsRemoteMethod"
  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="remarks"
  1694. header-align="center"
  1695. align="center"
  1696. width="150px"
  1697. label="备注"
  1698. >
  1699. <template slot-scope="scope">
  1700. <el-input
  1701. v-model="scope.row.Remarks"
  1702. :disabled="browseStatus"
  1703. placeholder="备注"
  1704. show-word-limit
  1705. />
  1706. </template>
  1707. </el-table-column>
  1708. <el-table-column
  1709. header-align="center"
  1710. align="center"
  1711. label="操作"
  1712. width="200px"
  1713. >
  1714. <template slot-scope="scope">
  1715. <!-- <el-button size="small">审核费用</el-button> -->
  1716. <el-button
  1717. @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"
  1718. size="small"
  1719. >移除</el-button
  1720. >
  1721. </template>
  1722. </el-table-column>
  1723. </el-table>
  1724. <div
  1725. class="dialogTableTitle flex a-center jlr"
  1726. style="
  1727. display: flex;
  1728. justify-content: space-between;
  1729. align-items: center;
  1730. margin: 10px 0;
  1731. "
  1732. >
  1733. <div>
  1734. <el-button
  1735. type="primary"
  1736. :disabled="browseStatus"
  1737. @click.prevent="addpayment()"
  1738. >新行
  1739. </el-button>
  1740. <!-- <el-button :disabled="browseStatus" @click.prevent="deleteRow(warehouseCrList)"
  1741. >删除
  1742. </el-button> -->
  1743. <el-button type="primary" @click="submitForm(2)" :disabled="browseStatus">保 存</el-button>
  1744. <!-- <el-button type="warning">仓储费协议</el-button> -->
  1745. <el-button type="danger" @click.prevent="addAgreements()" :disabled="browseStatus"
  1746. >作业费协议</el-button
  1747. >
  1748. </div>
  1749. <div style="font-size: 18px">付款信息</div>
  1750. </div>
  1751. <el-table
  1752. :data="warehouseCrList"
  1753. ref="table"
  1754. tooltip-effect="dark"
  1755. border
  1756. stripe
  1757. show-summary
  1758. @selection-change="Paymentoptions"
  1759. :summary-method="warehouseDrSummaries"
  1760. >
  1761. <el-table-column type="selection" width="55" align="center" />
  1762. <el-table-column label="序号" type="index" width="80">
  1763. </el-table-column>
  1764. <el-table-column
  1765. prop="fCorpid"
  1766. header-align="center"
  1767. align="center"
  1768. width="180px"
  1769. label="客户名称"
  1770. >
  1771. <template slot-scope="scope">
  1772. <el-select
  1773. v-model="scope.row.fCorpid"
  1774. filterable
  1775. remote
  1776. :disabled="browseStatus"
  1777. :remote-method="corpsRemoteMethod"
  1778. placeholder="客户名称"
  1779. >
  1780. <el-option
  1781. v-for="(dict, index) in KHblnoOptions"
  1782. :key="index.fId"
  1783. :label="dict.fName"
  1784. :value="dict.fId"
  1785. ></el-option>
  1786. </el-select>
  1787. </template>
  1788. </el-table-column>
  1789. <el-table-column
  1790. prop="fFeeid"
  1791. header-align="center"
  1792. align="center"
  1793. width="180px"
  1794. label="费用名称"
  1795. >
  1796. <template slot-scope="scope">
  1797. <el-select
  1798. v-model="scope.row.fFeeid"
  1799. filterable
  1800. :disabled="browseStatus"
  1801. remote
  1802. :remote-method="fWRemoteMethod"
  1803. placeholder="费用名称"
  1804. >
  1805. <el-option
  1806. v-for="(dict, index) in fWbuOptions"
  1807. :key="index.fId"
  1808. :label="dict.fName"
  1809. :value="dict.fId"
  1810. ></el-option>
  1811. </el-select>
  1812. </template>
  1813. </el-table-column>
  1814. <el-table-column
  1815. prop="fFeeUnitid"
  1816. header-align="center"
  1817. align="center"
  1818. width="180px"
  1819. label="计价单位"
  1820. >
  1821. <template slot-scope="scope">
  1822. <el-select
  1823. v-model="scope.row.fFeeUnitid"
  1824. filterable
  1825. remote
  1826. @change="changeFeeUnit(scope.row)"
  1827. :disabled="browseStatus"
  1828. :remote-method="corpsRemoteMethod"
  1829. placeholder="计价单位"
  1830. >
  1831. <el-option
  1832. v-for="(dict, index) in jFeetunitOptions"
  1833. :key="index.dictValue"
  1834. :label="dict.dictLabel"
  1835. :value="dict.dictValue"
  1836. ></el-option>
  1837. </el-select>
  1838. </template>
  1839. </el-table-column>
  1840. <el-table-column
  1841. prop="fQty"
  1842. header-align="center"
  1843. align="center"
  1844. width="150px"
  1845. label="数量"
  1846. >
  1847. <template slot-scope="scope">
  1848. <el-input
  1849. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'
  1850. v-model="scope.row.fQty"
  1851. :disabled="browseStatus"
  1852. @change="changeContractAmt(scope.row)"
  1853. placeholder="数量"
  1854. show-word-limit
  1855. />
  1856. </template>
  1857. </el-table-column>
  1858. <el-table-column
  1859. prop="fUnitprice"
  1860. header-align="center"
  1861. align="center"
  1862. width="150px"
  1863. label="单价"
  1864. >
  1865. <template slot-scope="scope">
  1866. <el-input
  1867. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1868. v-model="scope.row.fUnitprice"
  1869. :disabled="browseStatus"
  1870. @change="changeContractAmt(scope.row)"
  1871. placeholder="单价"
  1872. show-word-limit
  1873. />
  1874. </template>
  1875. </el-table-column>
  1876. <el-table-column
  1877. prop="fAmount"
  1878. header-align="center"
  1879. align="center"
  1880. width="150px"
  1881. label="金额"
  1882. >
  1883. <template slot-scope="scope">
  1884. <el-input
  1885. disabled
  1886. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1887. v-model="scope.row.fAmount"
  1888. placeholder="金额"
  1889. show-word-limit
  1890. />
  1891. </template>
  1892. </el-table-column>
  1893. <el-table-column
  1894. prop="fCurrency"
  1895. header-align="center"
  1896. align="center"
  1897. width="150px"
  1898. label="币别"
  1899. >
  1900. <template slot-scope="scope">
  1901. <el-input
  1902. v-model="scope.row.fCurrency"
  1903. :disabled="browseStatus"
  1904. placeholder="币别"
  1905. show-word-limit
  1906. />
  1907. </template>
  1908. </el-table-column>
  1909. <el-table-column
  1910. prop="fExrate"
  1911. header-align="center"
  1912. align="center"
  1913. width="150px"
  1914. label="汇率"
  1915. >
  1916. <template slot-scope="scope">
  1917. <el-input
  1918. v-model="scope.row.fExrate"
  1919. :disabled="browseStatus"
  1920. placeholder="汇率"
  1921. show-word-limit
  1922. />
  1923. </template>
  1924. </el-table-column>
  1925. <el-table-column
  1926. prop="fTaxrate"
  1927. header-align="center"
  1928. align="center"
  1929. width="150px"
  1930. label="税率"
  1931. >
  1932. <template slot-scope="scope">
  1933. <el-input
  1934. v-model="scope.row.fTaxrate"
  1935. :disabled="browseStatus"
  1936. placeholder="税率"
  1937. show-word-limit
  1938. />
  1939. </template>
  1940. </el-table-column>
  1941. <el-table-column
  1942. prop="remarks"
  1943. header-align="center"
  1944. align="center"
  1945. width="150px"
  1946. label="备注"
  1947. >
  1948. <template slot-scope="scope">
  1949. <el-input
  1950. v-model="scope.row.remarks"
  1951. :disabled="browseStatus"
  1952. placeholder="备注"
  1953. show-word-limit
  1954. />
  1955. </template>
  1956. </el-table-column>
  1957. <el-table-column
  1958. header-align="center"
  1959. align="center"
  1960. width="200px"
  1961. label="操作"
  1962. >
  1963. <template slot-scope="scope">
  1964. <!-- <el-button size="small">审核费用</el-button> -->
  1965. <el-button
  1966. @click.native.prevent="deleteRoww(scope.$index, warehouseCrList)"
  1967. size="small"
  1968. >移除</el-button
  1969. >
  1970. </template>
  1971. </el-table-column>
  1972. </el-table>
  1973. <div slot="footer" class="dialog-footer">
  1974. <!-- 弹窗, 新增 / 修改 -->
  1975. <add-or-update
  1976. v-if="addOrUpdateVisible"
  1977. ref="addOrUpdate"
  1978. @refreshDataList="getDataList"
  1979. ></add-or-update>
  1980. <approval-comments
  1981. v-if="addOrUpdateVisib"
  1982. ref="ApprovalComments"
  1983. @refreshDataList="returnData"
  1984. ></approval-comments>
  1985. <el-button
  1986. type="primary"
  1987. :disabled="approvalStatus"
  1988. @click="addOrUpdateHandle(form)"
  1989. >查看审批</el-button>
  1990. <el-button
  1991. type="primary"
  1992. v-if="approVal === true"
  1993. @click="addOrUpdateHand(form)"
  1994. >审批</el-button>
  1995. <el-button :disabled="browseStatus" type="success" prop="打印" @click="showEditDialog_ss"
  1996. >收货单
  1997. </el-button>
  1998. <el-button :disabled="browseStatus" type="warning" prop="打印" @click="showEditDialog_s"
  1999. >入库单
  2000. </el-button>
  2001. <el-button @click="discharge" :disabled="browseStatus">卸货</el-button>
  2002. <el-button type="info" :disabled="browseStatus" prop="打印" @click="showEditDialog_sss"
  2003. >作业单
  2004. </el-button>
  2005. <el-button
  2006. :disabled="browseStatus"
  2007. type="primary"
  2008. @click="submitForm(2)"
  2009. >保 存</el-button
  2010. >
  2011. <el-button
  2012. :disabled="browseStatus"
  2013. style="background-color: #008000; color: #fff"
  2014. @click="submitForm(6)"
  2015. >请核</el-button>
  2016. <el-button type="danger" v-if="form.fBillstatus === 6" @click="revoke">撤销请核</el-button>
  2017. <el-button type="danger" v-if="form.fBillstatus === 4 && current == before" :disabled="doNot" @click="revokeTwo">撤销请核</el-button>
  2018. <el-button @click="cancelTwo" v-if="approVal === true">取 消</el-button>
  2019. <el-button @click="cancel" v-else>取 消</el-button>
  2020. </div>
  2021. <!-- 入库新行计划重量导入 -->
  2022. <el-dialog
  2023. title="入库明细"
  2024. :modal="false"
  2025. style="height: 500px"
  2026. height="50%"
  2027. :close-on-click-modal="false"
  2028. :visible.sync="weightList"
  2029. @close="closeDialog"
  2030. width="70%"
  2031. >
  2032. <el-form
  2033. ref="planningList"
  2034. :model="form"
  2035. :rules="rules"
  2036. label-width="120px"
  2037. >
  2038. <el-row>
  2039. <el-col :span="8">
  2040. <el-form-item label="计划件数" prop="fPlanqty">
  2041. <el-input
  2042. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2043. v-model="planningList.fPlanqty"
  2044. style="width: 80%"
  2045. laceholder="计划件数"
  2046. @input="changeList(form)"
  2047. />
  2048. </el-form-item>
  2049. </el-col>
  2050. <el-col :span="8">
  2051. <el-form-item label="计划净重" prop="fPlannetweight">
  2052. <el-input
  2053. v-model="planningList.fPlannetweight"
  2054. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2055. style="width: 80%"
  2056. disabled
  2057. laceholder="计划毛重"
  2058. />
  2059. </el-form-item>
  2060. </el-col>
  2061. <el-col :span="8">
  2062. <el-form-item label="计划毛重" prop="fPlangrossweight">
  2063. <el-input
  2064. v-model="planningList.fPlangrossweight"
  2065. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  2066. style="width: 80%"
  2067. disabled
  2068. laceholder="计划毛重"
  2069. />
  2070. </el-form-item>
  2071. </el-col>
  2072. </el-row>
  2073. </el-form>
  2074. <div slot="footer" class="dialog-footer">
  2075. <el-button type="primary" @click="costList">导入库存明细</el-button>
  2076. <el-button @click="weightList = false">取 消</el-button>
  2077. </div>
  2078. </el-dialog>
  2079. <!-- 选择作业费协议数据 -->
  2080. <el-dialog
  2081. title="作业费协议"
  2082. :close-on-click-modal="false"
  2083. :modal="false"
  2084. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2085. :visible.sync="warehousingagreement"
  2086. width="70%"
  2087. >
  2088. <el-table
  2089. :data="tasklegList"
  2090. ref="table"
  2091. tooltip-effect="dark"
  2092. width="100%"
  2093. border
  2094. stripe
  2095. @selection-change="whgenlegSelectionChange"
  2096. >
  2097. <el-table-column type="selection" width="55"> </el-table-column>
  2098. <el-table-column label="行号" type="index" width="80">
  2099. </el-table-column>
  2100. <el-table-column
  2101. prop="fCorpname"
  2102. header-align="center"
  2103. align="center"
  2104. label="客户名称"
  2105. >
  2106. </el-table-column>
  2107. <el-table-column
  2108. prop="fName"
  2109. header-align="center"
  2110. align="center"
  2111. label="费用名称"
  2112. >
  2113. </el-table-column>
  2114. <el-table-column
  2115. prop="fFeeUnitid"
  2116. header-align="center"
  2117. align="center"
  2118. width="180px"
  2119. label="计价单位"
  2120. >
  2121. <template slot-scope="scope">
  2122. <el-select
  2123. v-model="scope.row.fFeeUnitid"
  2124. placeholder="请选择计费单位"
  2125. @change="changeFeeUnit(scope.row)"
  2126. disabled
  2127. clearable
  2128. >
  2129. <el-option
  2130. v-for="dict in jFeetunitOptions"
  2131. :key="dict.dictValue"
  2132. :label="dict.dictLabel"
  2133. :value="dict.dictValue"
  2134. />
  2135. </el-select>
  2136. </template>
  2137. </el-table-column>
  2138. <el-table-column
  2139. prop="fPrice"
  2140. header-align="center"
  2141. align="center"
  2142. label="单价"
  2143. >
  2144. </el-table-column>
  2145. <!-- <el-table-column
  2146. prop="fMarks"
  2147. header-align="center"
  2148. align="center"
  2149. label="唛头"
  2150. >
  2151. </el-table-column> -->
  2152. </el-table>
  2153. <pagination
  2154. v-show="whgenlegTotal > 0"
  2155. :total="whgenlegTotal"
  2156. :page.sync="queryParams.pageNum"
  2157. :limit.sync="queryParams.pageSize"
  2158. @pagination="getWhgenlegList"
  2159. />
  2160. <div slot="footer" class="dialog-footer">
  2161. <el-button type="primary" @click="whgenlegData"
  2162. >导入作业费协议</el-button
  2163. >
  2164. <el-button @click="warehousingagreement = false">取 消</el-button>
  2165. </div>
  2166. </el-dialog>
  2167. <!-- 选择作业费协议数据 -->
  2168. <el-dialog
  2169. title="作业费协议"
  2170. :close-on-click-modal="false"
  2171. :modal="false"
  2172. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2173. :visible.sync="warehousingagreements"
  2174. width="70%"
  2175. >
  2176. <el-table
  2177. :data="tasklegList"
  2178. ref="table"
  2179. tooltip-effect="dark"
  2180. width="100%"
  2181. border
  2182. stripe
  2183. @selection-change="whgenlegSelectionChange"
  2184. >
  2185. <el-table-column type="selection" width="55"> </el-table-column>
  2186. <el-table-column label="行号" type="index" width="80">
  2187. </el-table-column>
  2188. <el-table-column
  2189. prop="fCorpname"
  2190. header-align="center"
  2191. align="center"
  2192. label="客户名称"
  2193. >
  2194. </el-table-column>
  2195. <el-table-column
  2196. prop="fName"
  2197. header-align="center"
  2198. align="center"
  2199. label="费用名称"
  2200. >
  2201. </el-table-column>
  2202. <el-table-column
  2203. prop="fFeeUnitid"
  2204. header-align="center"
  2205. align="center"
  2206. width="180px"
  2207. label="计价单位"
  2208. >
  2209. <template slot-scope="scope">
  2210. <el-select
  2211. v-model="scope.row.fFeeUnitid"
  2212. placeholder="请选择计费单位"
  2213. @change="changeFeeUnit(scope.row)"
  2214. disabled
  2215. clearable
  2216. >
  2217. <el-option
  2218. v-for="dict in jFeetunitOptions"
  2219. :key="dict.dictValue"
  2220. :label="dict.dictLabel"
  2221. :value="dict.dictValue"
  2222. />
  2223. </el-select>
  2224. </template>
  2225. </el-table-column>
  2226. <el-table-column
  2227. prop="fPrice"
  2228. header-align="center"
  2229. align="center"
  2230. label="单价"
  2231. >
  2232. </el-table-column>
  2233. </el-table>
  2234. <pagination
  2235. v-show="whgenlegTotal > 0"
  2236. :total="whgenlegTotal"
  2237. :page.sync="queryParams.pageNum"
  2238. :limit.sync="queryParams.pageSize"
  2239. @pagination="getWhgenlegList"
  2240. />
  2241. <div slot="footer" class="dialog-footer">
  2242. <el-button type="primary" @click="zhgenlegData">导入</el-button>
  2243. <el-button @click="warehousingagreements = false">取 消</el-button>
  2244. </div>
  2245. </el-dialog>
  2246. <el-dialog
  2247. title=""
  2248. :modal="false"
  2249. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2250. :visible.sync="editDialogVisible_s"
  2251. :close-on-click-modal="false"
  2252. @close="closeDialog"
  2253. width="70%"
  2254. >
  2255. <table
  2256. id="print_area2"
  2257. class="biaoge zzss"
  2258. border="1"
  2259. style="border-collapse: collapse; border: none"
  2260. >
  2261. <tr>
  2262. <td
  2263. width="100"
  2264. colspan="7"
  2265. class="zzss"
  2266. style="font-size: 28px; font-weight: bold; border: none"
  2267. >
  2268. 青岛大木进仓单
  2269. </td>
  2270. </tr>
  2271. <tr>
  2272. <td
  2273. width="100"
  2274. colspan="7"
  2275. class="zzss"
  2276. style="font-size: 28px; font-weight: bold; border: none"
  2277. >
  2278. &nbsp;
  2279. </td>
  2280. </tr>
  2281. <tr>
  2282. <td width="450" colspan="2" class="zzss">
  2283. 货权方:{{ form.fCorpidName }}
  2284. </td>
  2285. <td width="450" colspan="2" class="zzss">
  2286. 仓库:{{ form.fWarehouseid }}
  2287. </td>
  2288. <td width="450" colspan="3" class="zzss">地址:{{ fAddr }}</td>
  2289. </tr>
  2290. <tr>
  2291. <td width="200" colspan="2" class="zzss">保管方:大木有限公司</td>
  2292. <td width="200" colspan="2" class="zzss">
  2293. 联系人:{{ form.fContacts }}
  2294. </td>
  2295. <td width="200" colspan="3" class="zzss">电话:{{ form.fTel }}</td>
  2296. </tr>
  2297. <tr>
  2298. <td width="100" border="1">提单号</td>
  2299. <td width="100">品名</td>
  2300. <td width="100">箱型</td>
  2301. <td width="100">品牌</td>
  2302. <td width="100">件数</td>
  2303. <td width="100">重量</td>
  2304. <td width="100">包装规格</td>
  2305. </tr>
  2306. <tr>
  2307. <td width="100">{{ form.fMblno }}</td>
  2308. <td width="100">{{ form.fProductName }}</td>
  2309. <td width="100">{{ dataList.fCntrtype }}</td>
  2310. <td width="100">{{ form.fMarks }}</td>
  2311. <td width="100">包</td>
  2312. <td width="100">吨</td>
  2313. <td width="100">{{ fPackagespecs }}</td>
  2314. </tr>
  2315. <tr>
  2316. <td width="100">序号</td>
  2317. <td width="100">入货日期</td>
  2318. <td width="100">箱量(20GP)</td>
  2319. <td width="100">重量</td>
  2320. <td width="100">件数</td>
  2321. <td width="100">入库重量</td>
  2322. <td width="100">入库件数</td>
  2323. </tr>
  2324. <tr v-for="(item, indexx) in Printinglist" :key="indexx">
  2325. <td width="100">{{ indexx + 1 }}</td>
  2326. <td width="100">{{ item.fBsdate }}</td>
  2327. <td width="100">{{ item.fCntqty }}</td>
  2328. <td width="100">{{ (item.fGrossweight / 1000).toFixed(2) }}</td>
  2329. <td width="100">{{ item.fPlanqty }}</td>
  2330. <td width="100">{{ (item.fNetweight / 1000).toFixed(2) }}</td>
  2331. <td width="100">{{ item.fQty }}</td>
  2332. </tr>
  2333. <tr>
  2334. <td width="100" colspan="2">合计:</td>
  2335. <td width="100">{{ fCntqty }}</td>
  2336. <td width="100">{{ form.sumFGrossweight }}</td>
  2337. <td width="100">{{ fPlanqty }}</td>
  2338. <td width="100">{{ form.sumFNetweight}}</td>
  2339. <td width="100">{{ fQty }}</td>
  2340. </tr>
  2341. <tr>
  2342. <td width="100">备注:</td>
  2343. <td width="100" colspan="6"></td>
  2344. </tr>
  2345. <tr>
  2346. <td width="100" colspan="7" class="zzss">
  2347. 本进仓单经仓管员签字并经保管方盖章后即专项作为货物所有人的货权证明,本单据不得转让。
  2348. </td>
  2349. </tr>
  2350. <tr style="border: none">
  2351. <td width="100" colspan="2" class="zzss" style="border: none">
  2352. 开单员:
  2353. </td>
  2354. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  2355. <td width="100" colspan="2" class="zzss" style="border: none">
  2356. 仓管员:
  2357. </td>
  2358. </tr>
  2359. <tr style="border: none">
  2360. <td width="100" colspan="2" class="zzss" style="border: none">
  2361. 开单时间:
  2362. </td>
  2363. <td width="100" colspan="3" class="zzss" style="border: none"></td>
  2364. <td width="100" colspan="2" class="zzss" style="border: none">
  2365. (盖章)
  2366. </td>
  2367. </tr>
  2368. </table>
  2369. <el-button @click="printSomething1">打印</el-button>
  2370. <el-button @click="editDialogVisible_s = false">取消 </el-button>
  2371. </el-dialog>
  2372. <el-dialog
  2373. title=""
  2374. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2375. :visible.sync="editDialogVisible_ss"
  2376. :close-on-click-modal="false"
  2377. width="70%"
  2378. :modal="false"
  2379. >
  2380. <table
  2381. id="print_area3"
  2382. class="biaoge zzss"
  2383. border="1"
  2384. style="border-collapse: collapse; border: none;margin-top:100px;"
  2385. >
  2386. <tr>
  2387. <td
  2388. width="1400"
  2389. colspan="6"
  2390. class="zzss"
  2391. style="font-size: 26px; font-weight: bold; border: none"
  2392. >
  2393. 大木国际物流(青岛)有限公司收货单
  2394. </td>
  2395. </tr>
  2396. <!-- <div v-for="{{}}" :key="index"> -->
  2397. <tr>
  2398. <td width="400">车号:</td>
  2399. <td width="400" v-if="Printinglist.length === 0"></td>
  2400. <td width="400" v-else>{{ Printinglist[0].fTruckno }}</td>
  2401. <td
  2402. width="500"
  2403. colspan="4"
  2404. style="padding-bottom: 0px; font-weight: bold; border: none"
  2405. class="zzss"
  2406. v-if="Printinglist.length === 0"
  2407. >
  2408. 日期:
  2409. </td>
  2410. <td
  2411. width="500"
  2412. colspan="4"
  2413. style="padding-bottom: 0px; font-weight: bold; border: none"
  2414. class="zzss"
  2415. v-else
  2416. >
  2417. 日期:{{ Printinglist[0].fOriginalbilldate }}
  2418. </td>
  2419. <!-- <td
  2420. width="500"
  2421. colspan="2"
  2422. style="padding-bottom: 0px; font-weight: bold; border: none"
  2423. class="zzss"
  2424. >
  2425. </td> -->
  2426. </tr>
  2427. <tr v-for="(item, index) in Printinglist" :key="index">
  2428. <td width="250">货物品名:</td>
  2429. <td width="200" colspan="">{{ item.fGoodsids }}</td>
  2430. <!-- <td width="200" colspan="2">件数: 161件</td> -->
  2431. <!-- <td width="200"></td> -->
  2432. <td width="200" colspan="4" class="zzss">
  2433. 件数: {{ item.fQty }}件
  2434. </td>
  2435. </tr>
  2436. <!-- <tr>
  2437. <td width="1400" colspan="6">&nbsp;</td>
  2438. </tr> -->
  2439. <tr>
  2440. <td>备注:</td>
  2441. <td colspan="5">{{ form.remark }}</td>
  2442. </tr>
  2443. <tr>
  2444. <td>司机签字:</td>
  2445. <td></td>
  2446. <td colspan="2">司机电话:</td>
  2447. <td colspan="2" v-if="dataList.length !== 0">{{ dataList[0].fDriverTel }}</td>
  2448. <td colspan="2" v-else>1</td>
  2449. </tr>
  2450. <tr>
  2451. <td>制单人:</td>
  2452. <td>{{ form.createBy }}</td>
  2453. <td colspan="2">收货人:</td>
  2454. <td colspan="2">{{ form.fContacts }}</td>
  2455. </tr>
  2456. <!-- <tr>
  2457. <td colspan="6" class="zzss">&nbsp;</td>
  2458. </tr> -->
  2459. <tr>
  2460. <td width="280" class="zzss"></td>
  2461. <td width="280" class="zzss"></td>
  2462. <td width="280" class="zzss"></td>
  2463. <td width="280" class="zzss"></td>
  2464. <td width="290" class="zzss">地址:{{ fAddr }}</td>
  2465. <td width="290" class="zzss">电话:{{ form.fTel }}</td>
  2466. </tr>
  2467. <!-- </div> -->
  2468. </table>
  2469. <el-button @click="printSomething">打印</el-button>
  2470. <el-button @click="editDialogVisible_ss = false">取消 </el-button>
  2471. </el-dialog>
  2472. <el-dialog
  2473. title=""
  2474. style="box-shadow: 0 1px 3px rgba(0, 0, 0, 0) !important"
  2475. :visible.sync="editDialogVisible_sss"
  2476. :close-on-click-modal="false"
  2477. width="70%"
  2478. :modal="false"
  2479. >
  2480. <table
  2481. id="print_area1"
  2482. class="biaoge zzss"
  2483. border="1"
  2484. style="border-collapse: collapse; border: none"
  2485. >
  2486. <tr>
  2487. <td
  2488. width="1400"
  2489. colspan="6"
  2490. class="zzss"
  2491. style="font-size: 28px; font-weight: bold; border: none"
  2492. >
  2493. 大木国际物流(青岛)有限公司作业单
  2494. </td>
  2495. </tr>
  2496. <tr>
  2497. <td
  2498. width="900"
  2499. colspan="4"
  2500. class="zzss"
  2501. style="font-size: 28px; font-weight: bold"
  2502. >
  2503. </td>
  2504. <td
  2505. width="500"
  2506. colspan="2"
  2507. style="padding-bottom: 0px; font-weight: bold; border: none"
  2508. class="zzss"
  2509. >
  2510. 入库日期:{{ fBsdates }}
  2511. </td>
  2512. </tr>
  2513. <tr v-for="(item, index) in Printinglist" :key="index">
  2514. <td width="200">车号</td>
  2515. <td width="200">{{ item.fTruckno }}</td>
  2516. <td width="200">货物品名</td>
  2517. <td width="200" class="zzss">
  2518. {{ item.fGoodsids }}
  2519. </td>
  2520. <td width="200">{{item.fBusinessTypes}}</td>
  2521. <td width="200">{{item.fMarks}}</td>
  2522. </tr>
  2523. <tr>
  2524. <td width="1400" colspan="6">&nbsp;</td>
  2525. </tr>
  2526. <tr>
  2527. <td>备注:</td>
  2528. <td colspan="5">{{ form.remark }}</td>
  2529. </tr>
  2530. <tr
  2531. v-for="(item, indexe) in Collectionoptionss"
  2532. :key="indexe + 'index'"
  2533. >
  2534. <td>收费</td>
  2535. <td>{{ item.fFeeids }}</td>
  2536. <td>{{ item.fAmount }} 元</td>
  2537. <!-- <td colspan="4">办单费:5元,过磅费自理</td> -->
  2538. </tr>
  2539. <tr>
  2540. <td>司机签字:</td>
  2541. <td></td>
  2542. <td>电话</td>
  2543. <td>{{ fDriverTel }}</td>
  2544. <td colspan="2" rowspan="2">
  2545. 确认货物数量无误,包装于货物完好!<br />出库盖好篷布,如有违背责任自负<br />装卸工是否收小费
  2546. </td>
  2547. </tr>
  2548. <tr>
  2549. <td>制表:</td>
  2550. <td>{{ form.createBy }}</td>
  2551. <td>机械/人工:</td>
  2552. <td></td>
  2553. </tr>
  2554. <tr>
  2555. <td colspan="6" class="zzss">&nbsp;</td>
  2556. </tr>
  2557. <tr>
  2558. <td width="280" class="zzss"></td>
  2559. <td width="280" class="zzss"></td>
  2560. <td width="280" class="zzss"></td>
  2561. <td width="280" class="zzss"></td>
  2562. <td width="290" class="zzss">地址:{{ fAddr }}</td>
  2563. <td width="290" class="zzss">电话:{{ form.fTel }}</td>
  2564. </tr>
  2565. </table>
  2566. <div>
  2567. <el-button
  2568. type="primary"
  2569. :disabled="browseStatus"
  2570. @click="printSomething2"
  2571. >打印
  2572. </el-button>
  2573. <el-button @click="editDialogVisible_sss = false">取消 </el-button>
  2574. </div>
  2575. </el-dialog>
  2576. </el-dialog>
  2577. </div>
  2578. </template>
  2579. <script>
  2580. import print from "print-js";
  2581. import {
  2582. addWhgenleg,
  2583. addJoblist,
  2584. disChargelist,
  2585. updateCredit,
  2586. listWarehousebills,
  2587. getWarehousebills,
  2588. delWarehousebills,
  2589. addWarehousebills,
  2590. addWarehouse,
  2591. updateWarehousebills,
  2592. exportWarehousebills,
  2593. revoke,
  2594. revokeTwo
  2595. } from "@/api/warehouseBusiness/warehouseInStock";
  2596. import { listAgreement, operationAgreement } from "@/api/agreement/agreement";
  2597. import { listCorps } from "@/api/basicdata/corps";
  2598. import { listFees, getFees } from "@/api/basicdata/fees";
  2599. import { listWarehouse } from "@/api/basicdata/warehouse";
  2600. import { listArea } from "@/api/basicdata/area";
  2601. import { listGoods } from "@/api/basicdata/goods";
  2602. import { listUser, queryUserVal } from "@/api/system/user";
  2603. import UploadFile from "@/components/Uploadfile";
  2604. import AddOrUpdate from "@/views/viewApproval";
  2605. import ApprovalComments from "@/views/startApproval";
  2606. import { getCharge } from '@/api/finance/charge'
  2607. import Global from '@/layout/components/global'
  2608. export default {
  2609. name: "Warehousebills",
  2610. components: {
  2611. UploadFile,
  2612. AddOrUpdate,
  2613. ApprovalComments,
  2614. },
  2615. data() {
  2616. return {
  2617. doNot:false,
  2618. // 修改查看状态
  2619. browseStatus: false,
  2620. // 审批状态控制
  2621. approvalStatus: false,
  2622. detailsHidden: false,
  2623. warehousingagreement: false,
  2624. warehousingagreements: false,
  2625. formBrowseStatus: false,
  2626. fTruckno: "",
  2627. fBsdates: "",
  2628. fCntrtype: "",
  2629. fGoodsids: "",
  2630. fPlaNnumber: "",
  2631. fPlangNumber: "",
  2632. // fPlannetweight: "",
  2633. fPlanvolumn: "",
  2634. // 司机电话
  2635. fDriverTel: "",
  2636. fPlanqty: "",
  2637. fPlangrossweight: "",
  2638. fPlannetweight: "",
  2639. fFeeUnitid: "",
  2640. fFeeUnitids: "",
  2641. fGrossweight: 0,
  2642. fid: "",
  2643. fCntqty: "",
  2644. fPackagespecs: "",
  2645. fNetweight: 0,
  2646. fQty: 0,
  2647. mum: 0,
  2648. // 遮罩层
  2649. loading: true,
  2650. // 选中数组
  2651. ids: [],
  2652. Collectionoptionss: [],
  2653. userVal: {
  2654. userName: null,
  2655. nickName: null,
  2656. deptId: null,
  2657. },
  2658. closeButton:true,
  2659. //表单校验
  2660. checkout: {
  2661. fGoodsid:[
  2662. { required: true, message: ' ', trigger: 'blur' }
  2663. ],
  2664. fMarks: [
  2665. { required: true, message: ' ', trigger: 'blur' }
  2666. ],
  2667. fWarehouselocid:[
  2668. { required: true, message: ' ', trigger: 'blur'}
  2669. ],
  2670. fGrossweight:[
  2671. { required: true, message: ' ', trigger: 'blur'}
  2672. ],
  2673. fNetweight:[
  2674. { required: true, message: ' ', trigger: 'blur'}
  2675. ],
  2676. fQty:[
  2677. { required: true, message: ' ', trigger: 'blur'}
  2678. ],
  2679. fPackagespecs:[
  2680. { required: true, message: ' ', trigger: 'blur'}
  2681. ],
  2682. fTruckno:[
  2683. { required: true, message: ' ', trigger: 'blur'}
  2684. ],
  2685. fDriverName:[
  2686. { required: true, message: ' ', trigger: 'blur'}
  2687. ],
  2688. fDriverTel:[
  2689. { required: true, message: ' ', trigger: 'blur'}
  2690. ],
  2691. fDriverIdCar:[
  2692. { required: true, message: ' ', trigger: 'blur'}
  2693. ]
  2694. },
  2695. queryForm: {},
  2696. // 新增用户对话框
  2697. editDialogVisible_s: false,
  2698. editDialogVisible_ss: false,
  2699. editDialogVisible_sss: false,
  2700. editDialogClosed_ss: false,
  2701. addOrUpdateVisible: false,
  2702. addOrUpdateVisib: false,
  2703. // 新增计划净重
  2704. weightList: false,
  2705. dataList: [],
  2706. warehouseCrList: [],
  2707. warehouseDrList: [],
  2708. Pledgebank: [],
  2709. relevantAttachments: [],
  2710. // 非单个禁用
  2711. single: true,
  2712. // 非多个禁用
  2713. multiple: true,
  2714. // 显示搜索条件
  2715. showSearch: true,
  2716. // 总条数
  2717. total: 0,
  2718. // 仓库主(出入库)表格数据
  2719. warehousebillsList: [],
  2720. // 弹出层标题
  2721. title: "",
  2722. // 是否显示弹出层
  2723. open: false,
  2724. // 货权方(客户数据)
  2725. fMblnoOptions: [],
  2726. // 货权方(客户数据)
  2727. // 客户名称
  2728. KHblnoOptions: [],
  2729. // 作业费协议
  2730. tasklegList: [],
  2731. whgenlegTotal: 0,
  2732. Printinglist: [],
  2733. // 库存明细入账数组
  2734. dataListSelection: [],
  2735. fAddr: "",
  2736. // 库存明细撤回入账数组
  2737. dataWithdrawList: [],
  2738. fSbuOptions: [],
  2739. // 操作员
  2740. userOptions: [],
  2741. // 操作员
  2742. goodsOptions: [],
  2743. // 制单部门
  2744. deptOptions: [],
  2745. // 主表状态
  2746. businessTypeOption: [{
  2747. name: '场地直装'
  2748. }, {
  2749. name: '常规入账'
  2750. }],
  2751. // 仓库(仓库数据)
  2752. warehouseOptions: [],
  2753. kqhouseOptions: [],
  2754. // 贸易方式(数据字典),对应t_trademodels 字典
  2755. fTrademodeidOptions: [],
  2756. // 仓储类型 入库时选择 产地 规格 品牌 所用,对应storage_type 字典
  2757. fStorageTypeOptions: [],
  2758. // 计费单位(数据字典),下拉选择毛重或净重字典
  2759. fFeetunitOptions: [
  2760. { dictLabel: "件数", dictValue: "1" },
  2761. { dictLabel: "毛重", dictValue: "2" },
  2762. { dictLabel: "净重", dictValue: "3" },
  2763. { dictLabel: "尺码", dictValue: "4" },
  2764. { dictLabel: "固定", dictValue: "5" },
  2765. ],
  2766. // 结算方式(数据字典),下拉选择字典
  2767. fStltypeOptions: [],
  2768. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  2769. fIfweighOptions: [],
  2770. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典
  2771. fIfpledgeOptions: [],
  2772. // 是否破损(数据字典),默认F否则T字典
  2773. fIfdamageOptions: [],
  2774. // 单据类型(数据字典)SJRK字典
  2775. fBilltypeOptions: [],
  2776. // 状态(数据字典),N 入字典
  2777. fBillstatusOptions: [],
  2778. // 费用名称
  2779. fWbuOptions: [],
  2780. // 计价单位
  2781. jFeetunitOptions: [
  2782. { dictLabel: "件数", dictValue: "1" },
  2783. { dictLabel: "毛重", dictValue: "2" },
  2784. { dictLabel: "净重", dictValue: "3" },
  2785. { dictLabel: "尺码", dictValue: "4" },
  2786. { dictLabel: "固定", dictValue: "5" },
  2787. ],
  2788. current:'',
  2789. before:'',
  2790. // 查询参数
  2791. queryParams: {
  2792. pageNum: 1,
  2793. pageSize: 10,
  2794. fBillno: null,
  2795. createBy: null,
  2796. createTime: null,
  2797. fCustomsdeclartion: null,
  2798. fOriginalbillno: null,
  2799. fDeptid: null,
  2800. timeInterval: null,
  2801. fBsdeptid: null,
  2802. fContacts: null,
  2803. fTel: null,
  2804. fCorpid: null,
  2805. fTocorpid: null,
  2806. fStltypeid: null,
  2807. fBscorpno: null,
  2808. fWarehouseid: null,
  2809. fStorekeeper: null,
  2810. fBsdate: null,
  2811. fPlanqty: null,
  2812. fPlangrossweight: null,
  2813. fPlannetweight: null,
  2814. fPlanvolumn: null,
  2815. fQty: null,
  2816. fGrossweight: null,
  2817. fNetweight: null,
  2818. fVolumn: null,
  2819. fTrademodeid: null,
  2820. fSbu: null,
  2821. fFeetunit: null,
  2822. fMblno: null,
  2823. fVslvoy: null,
  2824. fEta: null,
  2825. fCustomno: null,
  2826. fIfweigh: null,
  2827. fIfpledge: null,
  2828. fIfdamage: null,
  2829. fBankcorpid: null,
  2830. fBilltype: null,
  2831. fBillstatus: null,
  2832. fBusinessType: '常规入账',
  2833. fCreateby: null,
  2834. fCreatetime: null,
  2835. fGoodsid: null,
  2836. fCntrtype: null,
  2837. fCntqty: null,
  2838. },
  2839. // // 作业费参数
  2840. // queryParams: {
  2841. // pageNum: 1,
  2842. // pageSize: 10,
  2843. // fCorpid: null,
  2844. // fLineno: null,
  2845. // },
  2846. planningList: {
  2847. fPlanqty: null,
  2848. fPlannetweight: null,
  2849. fPlangrossweight: null,
  2850. },
  2851. approVal:false,
  2852. // 表单参数
  2853. form: {
  2854. fItemsStatus: null,
  2855. },
  2856. // 表单校验
  2857. rules: {
  2858. fDeptid: [{ required: true, message: " ", trigger: "blur" }],
  2859. fMblno: [{ required: true, message: " ", trigger: "blur" }],
  2860. fBsdeptid: [{ required: true, message: " ", trigger: "blur" }],
  2861. fCorpid: [
  2862. {
  2863. required: true,
  2864. message: " ",
  2865. trigger: "blur",
  2866. },
  2867. ],
  2868. fFeetunit: [{ required: true, message: " ", trigger: "blur" }],
  2869. fPlanqty: [{ required: true, message: " ", trigger: "blur" }],
  2870. fPlangrossweight: [{ required: true, message: " ", trigger: "blur" }],
  2871. fPlannetweight: [{ required: true, message: " ", trigger: "blur" }],
  2872. fChargedate: [{ required: true, message: " ", trigger: "blur" }],
  2873. fMarks: [{ required: true, message: " ", trigger: "blur" }],
  2874. fBsdate: [{ required: true, message: " ", trigger: "blur" }],
  2875. fTrademodeid: [{ required: true, message: " ", trigger: "blur" }],
  2876. fSbu: [{ required: true, message: " ", trigger: "blur" }],
  2877. fStorekeeper: {
  2878. required: true,
  2879. message: " ",
  2880. trigger: "blur",
  2881. },
  2882. fWarehouseid: [{ required: true, message: " ", trigger: "blur" }],
  2883. fbillingway: [
  2884. {
  2885. required: true,
  2886. message: " ",
  2887. trigger: "blur",
  2888. },
  2889. ],
  2890. fTocorpid: [
  2891. {
  2892. required: true,
  2893. message: " ",
  2894. trigger: "blur",
  2895. },
  2896. ],
  2897. },
  2898. };
  2899. },
  2900. created() {
  2901. this.getList();
  2902. this.getDicts("storage_type").then((response) => {
  2903. this.fStorageTypeOptions = response.data;
  2904. });
  2905. this.getDicts("data_trademodes").then((response) => {
  2906. this.fTrademodeidOptions = response.data;
  2907. });
  2908. this.getDicts("data_stltype_type").then((response) => {
  2909. this.fStltypeOptions = response.data;
  2910. });
  2911. this.getDicts("tax_rate").then((response) => {
  2912. this.fTaxrate = response.data[0].dictValue;
  2913. });
  2914. this.getDicts("data_ifweigh_status").then((response) => {
  2915. this.fIfweighOptions = response.data;
  2916. });
  2917. this.getDicts("data_ifpledge_status").then((response) => {
  2918. this.fIfpledgeOptions = response.data;
  2919. });
  2920. this.getDicts("data_ifdamage_status").then((response) => {
  2921. this.fIfdamageOptions = response.data;
  2922. });
  2923. this.getDicts("data_billtype_type").then((response) => {
  2924. this.fBilltypeOptions = response.data;
  2925. });
  2926. this.getDicts("sys_common_status").then((response) => {
  2927. this.fBillstatusOptions = response.data;
  2928. });
  2929. },
  2930. activated() {
  2931. this.adoPt()
  2932. },
  2933. methods: {
  2934. adoPt(){
  2935. this.approval = this.$route.query.data
  2936. if (this.approval){
  2937. this.doNot = true
  2938. this.closeButton = false
  2939. this.approval = JSON.parse(this.approval)
  2940. this.approVal = true
  2941. this.browseStatus = status;
  2942. this.reset();
  2943. this.detailsHidden = false;
  2944. this.formBrowseStatus = false;
  2945. this.dataList = [];
  2946. getWarehousebills(this.approval.billId).then((response) => {
  2947. if (response.data.warehousebills) {
  2948. this.form = response.data.warehousebills;
  2949. if (this.form.fBillstatus > 2) {
  2950. this.approvalStatus = false;
  2951. } else {
  2952. this.approvalStatus = true;
  2953. }
  2954. }
  2955. if (response.data.warehouseBillsItem) {
  2956. this.dataList = response.data.warehouseBillsItem;
  2957. for (let list in this.dataList) {
  2958. if (this.dataList[list].fBillstatus > 10) {
  2959. this.formBrowseStatus = true;
  2960. }
  2961. }
  2962. }
  2963. if (response.data.corps) {
  2964. this.fMblnoOptions = response.data.corps;
  2965. this.KHblnoOptions = response.data.corps;
  2966. this.fSbuOptions = response.data.corps;
  2967. }
  2968. if (response.data.feesList) {
  2969. this.fWbuOptions = response.data.feesList;
  2970. }
  2971. if (response.data.warehouse) {
  2972. this.warehouseOptions = response.data.warehouse;
  2973. }
  2974. if (response.data.warehouseBillsItem) {
  2975. this.dataList = response.data.warehouseBillsItem;
  2976. }
  2977. if (response.data.enclosures) {
  2978. this.relevantAttachments = response.data.enclosures;
  2979. }
  2980. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  2981. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  2982. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  2983. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  2984. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  2985. this.$set(
  2986. this.form,
  2987. "fPlannetweight",
  2988. this.form.fPlannetweight.toFixed(2)
  2989. );
  2990. this.$set(
  2991. this.form,
  2992. "fPlangrossweight",
  2993. this.form.fPlangrossweight.toFixed(2)
  2994. );
  2995. for (let list in this.dataList) {
  2996. this.$set(
  2997. this.dataList[list],
  2998. "fBsdate",
  2999. Date.parse(this.dataList[list].fBsdate)
  3000. );
  3001. }
  3002. this.goodsOptions = response.data.goodsList;
  3003. this.kqhouseOptions = response.data.warehouseAreas;
  3004. this.warehouseDrList = response.data.warehousebillsfeesDr;
  3005. for (let dr in this.warehouseDrList) {
  3006. this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + "");
  3007. this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
  3008. this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
  3009. }
  3010. this.warehouseCrList = response.data.warehousebillsfeesCr;
  3011. for (let cr in this.warehouseCrList) {
  3012. this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + '');
  3013. }
  3014. this.userOptions = response.data.sysUser;
  3015. this.open = true;
  3016. this.title = "修改仓入库";
  3017. });
  3018. }
  3019. },
  3020. //关闭弹框的事件
  3021. addCloseDialog(){
  3022. this.getList()
  3023. },
  3024. cancelTwo(){
  3025. this.open = false
  3026. let view = {
  3027. fullPath: "/business/inStock",
  3028. hash: "",
  3029. matched: Array(2),
  3030. meta: Object,
  3031. name: "InStock",
  3032. params: Object,
  3033. path: "/business/inStock",
  3034. query: Object,
  3035. title: "入库"
  3036. }
  3037. this.$router.push({ path: '/index'})
  3038. this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
  3039. if (this.isActive(view)) {
  3040. this.toLastView(visitedViews, view)
  3041. }
  3042. })
  3043. Global.$emit("removeCache", "closeSelectedTag", view);
  3044. },
  3045. // 上传成功返回数据
  3046. showFile(row) {
  3047. for (let list in this.relevantAttachments) {
  3048. this.$set(this.relevantAttachments[list], "fUrl", row.url);
  3049. this.$set(this.relevantAttachments[list], "fName", row.fileName);
  3050. }
  3051. },
  3052. revoke(){
  3053. revoke(this.form.fId).then(data=>{
  3054. if (data.code === 200){
  3055. this.reset();
  3056. this.open = false;
  3057. }
  3058. })
  3059. },
  3060. revokeTwo(){
  3061. let data = {
  3062. actId:110,
  3063. billId:this.form.fId,
  3064. id:this.form.fId
  3065. }
  3066. revokeTwo(data).then(data =>{
  3067. if (data.code === 200) {
  3068. this.msgSuccess("撤销成功");
  3069. this.open = false;
  3070. this.reset();
  3071. }
  3072. })
  3073. },
  3074. printSomething() {
  3075. // 此处的style即为打印时的样式
  3076. const style =
  3077. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  3078. print({
  3079. printable: "print_area3",
  3080. type: "html",
  3081. style: style, // 亦可使用引入的外部css;
  3082. scanStyles: false,
  3083. });
  3084. },
  3085. printSomething1() {
  3086. // 此处的style即为打印时的样式
  3087. const style =
  3088. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  3089. print({
  3090. printable: "print_area2",
  3091. type: "html",
  3092. style: style, // 亦可使用引入的外部css;
  3093. scanStyles: false,
  3094. });
  3095. },
  3096. printSomething2() {
  3097. // 此处的style即为打印时的样式
  3098. const style =
  3099. "@media print { .print-div{ padding:8px;background-color:#cccccc;line-height:12px } .red{ color:#f00} .green{color:green} td{text-align: center}}";
  3100. print({
  3101. printable: "print_area1",
  3102. type: "html",
  3103. style: style, // 亦可使用引入的外部css;
  3104. scanStyles: false,
  3105. });
  3106. this.addList();
  3107. this.editDialogVisible_sss = false;
  3108. },
  3109. // 新增附件上传
  3110. addRelevt() {
  3111. this.relevantAttachments.push({
  3112. fUrl: null,
  3113. fName: null,
  3114. createBy: this.form.createBy,
  3115. createTime: Date.parse(new Date()),
  3116. });
  3117. },
  3118. // 新增作业费协议
  3119. addAgreement() {
  3120. if (!this.form.fCorpid) {
  3121. this.$message({
  3122. message: "请维护货权方",
  3123. type: "warning",
  3124. });
  3125. }else if(this.dataList[0].fGoodsid == undefined) {
  3126. this.$message({
  3127. message: "请维护入库明细品名",
  3128. type: "warning",
  3129. });
  3130. }else {
  3131. this.whgenlegList = [];
  3132. this.dialogWhgenlegList = [];
  3133. this.whgenlegTotal = 0;
  3134. this.warehousingagreement = true;
  3135. this.getWhgenlegList();
  3136. }
  3137. },
  3138. // 新增付款作业费协议
  3139. addAgreements() {
  3140. if (!this.form.fCorpid) {
  3141. this.$message({
  3142. message: "请维护货权方",
  3143. type: "warning",
  3144. });
  3145. } else {
  3146. this.whgenlegList = [];
  3147. this.dialogWhgenlegList = [];
  3148. this.whgenlegTotal = 0;
  3149. this.warehousingagreements = true;
  3150. this.getWhgenlegList();
  3151. }
  3152. },
  3153. // 新增list
  3154. addRelevant(status) {
  3155. if (!this.form.fPlannetweight || !this.form.fPlangrossweight || !this.form.fPlanqty) {
  3156. this.$message({ message: "请维护计划净重,计划毛重,计划件数", type: "warning", });
  3157. return false;
  3158. }
  3159. this.fPlaNnumber = this.form.fPlannetweight / this.form.fPlanqty;
  3160. this.fPlangNumber = this.form.fPlangrossweight / this.form.fPlanqty;
  3161. this.planningList.fPlanqty = parseFloat(Number(this.form.fPlanqty) - Number(this.mum)).toFixed(2)
  3162. this.planningList.fPlannetweight = parseFloat(Number(this.fPlaNnumber) * Number(this.planningList.fPlanqty).toFixed(2))
  3163. this.planningList.fPlangrossweight = parseFloat(Number(this.fPlangNumber) * Number(this.planningList.fPlanqty)).toFixed(2)
  3164. this.weightList = true
  3165. },
  3166. // 收货单打印界面
  3167. showEditDialog_s() {
  3168. if (this.Printinglist.length > 0) {
  3169. this.editDialogVisible_s = true;
  3170. let sumFNetweight = 0
  3171. let sumFGrossweight = 0
  3172. for (let aorp in this.Printinglist) {
  3173. sumFNetweight = Number(sumFNetweight) + Number(this.Printinglist[aorp].fNetweight)
  3174. sumFGrossweight = Number(sumFGrossweight) + Number(this.Printinglist[aorp].fGrossweight)
  3175. var date = new Date(this.Printinglist[aorp].fBsdate);
  3176. var Y = date.getFullYear() + "-";
  3177. var M =
  3178. (date.getMonth() + 1 < 10
  3179. ? "0" + (date.getMonth() + 1)
  3180. : date.getMonth() + 1) + "-";
  3181. var D =
  3182. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
  3183. this.$set(this.Printinglist[aorp], "fBsdate", Y + M + D);
  3184. }
  3185. this.$set(this.form , 'sumFNetweight', parseFloat(Number(sumFNetweight) / 1000).toFixed(2))
  3186. this.$set(this.form , 'sumFGrossweight', parseFloat(Number(sumFGrossweight) / 1000).toFixed(2))
  3187. for (let corp in this.fMblnoOptions) {
  3188. if (this.form.fCorpid === this.fMblnoOptions[corp].fId) {
  3189. this.$set(this.form, "fCorpidName", this.fMblnoOptions[corp].fName);
  3190. }
  3191. }
  3192. for (let sorp in this.warehouseOptions) {
  3193. if (this.form.fWarehouseid === this.warehouseOptions[sorp].fId) {
  3194. this.$set(this.form, "fWarehouseid", this.warehouseOptions[sorp].fName);
  3195. }
  3196. }
  3197. } else {
  3198. this.$message.error("请选择需要打印的明细!");
  3199. }
  3200. },
  3201. closeDialog() {
  3202. for (let aorp in this.Printinglist) {
  3203. this.$set(
  3204. this.Printinglist[aorp],
  3205. "fBsdate",
  3206. Date.parse(this.Printinglist[aorp].fBsdate)
  3207. );
  3208. }
  3209. },
  3210. showEditDialog_ss() {
  3211. if (this.Printinglist.length > 0) {
  3212. for (let li in this.Printinglist) {
  3213. if (this.dataListSelection.length > 0) {
  3214. this.fTruckno = this.dataListSelection[0].fTruckno;
  3215. this.fCntrtype = this.dataListSelection[0].fCntrtype;
  3216. this.fGoodsids = this.dataListSelection[0].fGoodsids;
  3217. this.fPackagespecs = this.dataListSelection[0].fPackagespecs;
  3218. var date = new Date(this.dataListSelection[0].fBsdate);
  3219. var Y = date.getFullYear() + "-";
  3220. var M =
  3221. (date.getMonth() + 1 < 10
  3222. ? "0" + (date.getMonth() + 1)
  3223. : date.getMonth() + 1) + "-";
  3224. var D =
  3225. (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) +
  3226. " ";
  3227. this.fBsdates = Y + M + D;
  3228. }
  3229. for (let list in this.goodsOptions) {
  3230. if (
  3231. this.Printinglist[li].fGoodsid === this.goodsOptions[list].fId
  3232. ) {
  3233. this.$set(
  3234. this.Printinglist[li],
  3235. "fGoodsids",
  3236. this.goodsOptions[list].fName
  3237. );
  3238. }
  3239. }
  3240. }
  3241. this.editDialogVisible_ss = true;
  3242. } else {
  3243. this.$message.error("请选择需要打印的明细!");
  3244. }
  3245. },
  3246. showEditDialog_sss() {
  3247. if (this.Printinglist.length > 0) {
  3248. for (let li in this.Printinglist) {
  3249. if (!this.Printinglist[li].fBsdate) {
  3250. this.$message.error('请选择入库日期')
  3251. return false
  3252. }
  3253. if (!this.Printinglist[li].fGoodsid) {
  3254. this.$message.error('请选择品名')
  3255. return false
  3256. }
  3257. if (!this.Printinglist[li].fWarehouselocid) {
  3258. this.$message.error('请选择库区')
  3259. return false
  3260. }
  3261. if (!this.Printinglist[li].fPackagespecs) {
  3262. this.$message.error('请输入包装规格')
  3263. return false
  3264. }
  3265. if (!this.Printinglist[li].fMarks) {
  3266. this.$message.error('请输入品牌')
  3267. return false
  3268. }
  3269. if (!this.Printinglist[li].fDriverName) {
  3270. this.$message.error('请输入司机姓名')
  3271. return false
  3272. }
  3273. if (!this.Printinglist[li].fDriverTel) {
  3274. this.$message.error('请输入司机电话')
  3275. return false
  3276. }
  3277. if (!this.Printinglist[li].fTruckno) {
  3278. this.$message.error('请输入车号')
  3279. return false
  3280. }
  3281. if (this.Printinglist[li].fTruckno !== this.Printinglist[0].fTruckno) {
  3282. this.$message.error('请选择车相同车号')
  3283. return false
  3284. }
  3285. if (this.Printinglist[li].fDriverName !== this.Printinglist[0].fDriverName) {
  3286. this.$message.error('请选择相同司机名')
  3287. return false
  3288. }
  3289. if (!this.Printinglist[li].fId) {
  3290. this.$message.error('请先保存!')
  3291. return false
  3292. }
  3293. if (!this.Printinglist[li].fBusinessType) {
  3294. this.$message.error('请先维护业务类型!')
  3295. return false
  3296. }
  3297. if (!this.Printinglist[li].fMarks) {
  3298. this.$message.error('请先维护业务详情!')
  3299. return false
  3300. }
  3301. for (let list in this.goodsOptions) {
  3302. if (this.Printinglist[li].fGoodsid === this.goodsOptions[list].fId) {
  3303. this.$set(this.Printinglist[li], 'fGoodsids', this.goodsOptions[list].fName)
  3304. break
  3305. }
  3306. }
  3307. for (let list in this.fStorageTypeOptions) {
  3308. if (this.Printinglist[li].fBusinessType === this.fStorageTypeOptions[list].dictValue) {
  3309. this.$set(this.Printinglist[li], 'fBusinessTypes', this.fStorageTypeOptions[list].dictLabel)
  3310. break
  3311. }
  3312. }
  3313. }
  3314. if (this.dataListSelection.length > 0) {
  3315. this.fTruckno = this.dataListSelection[0].fTruckno
  3316. this.fCntrtype = this.dataListSelection[0].fCntrtype
  3317. this.fGoodsids = this.dataListSelection[0].fGoodsids
  3318. this.fDriverTel = this.dataListSelection[0].fDriverTel
  3319. this.fPackagespecs = this.dataListSelection[0].fPackagespecs
  3320. var date = new Date(this.dataListSelection[0].fBsdate)
  3321. var Y = date.getFullYear() + '-'
  3322. var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-'
  3323. var D = (date.getDate() < 10 ? '0' + date.getDate() : date.getDate()) + ' '
  3324. this.fBsdates = Y + M + D
  3325. }
  3326. this.editDialogVisible_sss = true
  3327. } else {
  3328. this.$message.error('请选择需要打印的明细!')
  3329. }
  3330. },
  3331. // 收款信息
  3332. addCollection() {
  3333. this.warehouseDrList.push({
  3334. fCorpid: null,
  3335. fFeeid: null,
  3336. fFeeUnitid: null,
  3337. fQty: null,
  3338. fUnitprice: null,
  3339. fAmount: null,
  3340. fCurrency: "RMB",
  3341. fExrate: "1",
  3342. fTaxrate: this.fTaxrate,
  3343. fCxrate: null,
  3344. fRate: null,
  3345. remarks: null,
  3346. });
  3347. },
  3348. addpayment() {
  3349. this.warehouseCrList.push({
  3350. fCorpid: null,
  3351. fFeeid: null,
  3352. fFeeUnitid: null,
  3353. fQty: null,
  3354. fUnitprice: null,
  3355. fAmount: null,
  3356. fCurrency: "RMB",
  3357. fExrate: "1",
  3358. fTaxrate: this.fTaxrate,
  3359. fCxrate: null,
  3360. fRate: null,
  3361. remarks: null,
  3362. });
  3363. },
  3364. queryUser() {
  3365. queryUserVal().then((response) => {
  3366. if (response.user !== null) {
  3367. this.userVal = response.user;
  3368. this.$set(this.form, "fDeptid", this.userVal.deptId);
  3369. this.$set(this.form, "createBy", this.userVal.userName);
  3370. this.$set(this.form, "fIfdamage", "1");
  3371. this.$set(this.form, "fIfweigh", "1");
  3372. this.$set(this.form, "fTrademodeid", "1");
  3373. this.$set(this.form, "createTime", Date.parse(new Date()));
  3374. }
  3375. if (response.dept !== null) {
  3376. this.deptOptions = [];
  3377. this.deptOptions.push(response.dept);
  3378. }
  3379. });
  3380. },
  3381. /** 查询仓库主(出入库)列表 */
  3382. getList() {
  3383. this.loading = true;
  3384. listWarehousebills(this.queryParams).then((response) => {
  3385. this.warehousebillsList = response.rows;
  3386. this.total = response.total;
  3387. this.loading = false;
  3388. });
  3389. },
  3390. // 查询作业费信息
  3391. getWhgenlegList() {
  3392. // this.queryParams.fCorpid = this.form.fCorpid;
  3393. // this.queryParams.fLineno = this.form.fCorpid;
  3394. let data = {
  3395. pageNum:1,
  3396. pageSize:10,
  3397. fLineno:this.form.fCorpid,
  3398. fFeeid:this.dataList[0].fGoodsid
  3399. }
  3400. operationAgreement(data).then((response) => {
  3401. this.tasklegList = response.rows;
  3402. for (let li in this.tasklegList) {
  3403. this.$set(
  3404. this.tasklegList[li],
  3405. "fFeeUnitid",
  3406. this.tasklegList[li].fFeeUnitid + ""
  3407. );
  3408. }
  3409. this.whgenlegTotal = response.total;
  3410. });
  3411. },
  3412. // 导入计划重量
  3413. costList() {
  3414. if (Number(this.planningList.fPlanqty) > Number(this.form.fPlanqty)) {
  3415. this.$message({ message: "计划费件数不能大于主表计划费件数!", type: "warning", });
  3416. return false;
  3417. }
  3418. if (Number(this.planningList.fPlanqty === 0)) {
  3419. this.$message({ message: "计划件数不能为0", type: "warning", });
  3420. return false;
  3421. }
  3422. let fTruckno = null
  3423. let fDriverTel = null
  3424. let fDriverName = null
  3425. let fDriverIdCar = null
  3426. if (this.form.fTruckno) {
  3427. fTruckno = this.form.fTruckno
  3428. }
  3429. if (this.form.fDriverTel) {
  3430. fDriverTel = this.form.fDriverTel
  3431. }
  3432. if (this.form.fDriverName) {
  3433. fDriverName = this.form.fDriverName
  3434. }
  3435. if (this.form.fDriverIdCar) {
  3436. fDriverIdCar = this.form.fDriverIdCar
  3437. }
  3438. this.dataList.push({
  3439. fBsdate: this.form.fBsdate,
  3440. fGoodsid: null,
  3441. fCntrtype: null,
  3442. fCntqty: 1,
  3443. fNetweight: this.planningList.fPlannetweight,
  3444. fPlanvolumn: 0,
  3445. fGrossweight: this.planningList.fPlangrossweight,
  3446. fQty: this.planningList.fPlanqty,
  3447. fPackagespecs: null,
  3448. fWarehouselocid: null,
  3449. fBoxno: null,
  3450. fMarks: this.form.fMarks,
  3451. fGoodsval: null,
  3452. fTruckno: fTruckno,
  3453. fDriverTel: fDriverTel,
  3454. fDriverName: fDriverName,
  3455. fDriverIdCar: fDriverIdCar,
  3456. remark: null,
  3457. fBillstatus: 10,
  3458. });
  3459. this.weightList = false;
  3460. },
  3461. // 导入付款信息
  3462. whgenlegData() {
  3463. if (this.dialogWhgenlegList.length === 0) {
  3464. this.$message({
  3465. message: "请选择需要导入的数据",
  3466. type: "warning",
  3467. });
  3468. } else {
  3469. for (let whgen in this.dialogWhgenlegList) {
  3470. let feeId = this.dialogWhgenlegList[whgen].feeFId;
  3471. getFees(feeId).then((response) => {
  3472. this.fWbuOptions.push(response.data);
  3473. });
  3474. this.warehouseDrList.push({
  3475. fCorpid: this.dialogWhgenlegList[whgen].fCorpid,
  3476. fFeeid: feeId,
  3477. fFeeUnitid: this.dialogWhgenlegList[whgen].fFeeUnitid + "",
  3478. fUnitprice: this.dialogWhgenlegList[whgen].fPrice,
  3479. fCurrency: "RMB",
  3480. fExrate: "1",
  3481. fTaxrate: this.fTaxrate,
  3482. });
  3483. }
  3484. for (let list in this.warehouseDrList) {
  3485. if (this.warehouseDrList[list].fFeeUnitid == 1) {
  3486. this.$set(this.warehouseDrList[list], "fQty", this.fQty.toFixed(2));
  3487. } else if (this.warehouseDrList[list].fFeeUnitid == 2) {
  3488. this.$set(this.warehouseDrList[list], "fQty", this.fGrossweight.toFixed(2));
  3489. } else if (this.warehouseDrList[list].fFeeUnitid == 3) {
  3490. this.$set(this.warehouseDrList[list], "fQty", this.fNetweight.toFixed(2));
  3491. } else {
  3492. this.$set(this.warehouseDrList[list], "fQty", 0);
  3493. }
  3494. this.$set(this.warehouseDrList[list], "fAmount", (Number(this.warehouseDrList[list].fUnitprice) * Number(this.warehouseDrList[list].fQty)).toFixed(2)
  3495. );
  3496. }
  3497. this.warehousingagreement = false;
  3498. }
  3499. },
  3500. zhgenlegData() {
  3501. if (this.dialogWhgenlegList.length === 0) {
  3502. this.$message({
  3503. message: "请选择需要导入的数据",
  3504. type: "warning",
  3505. });
  3506. } else {
  3507. for (let zhgen in this.dialogWhgenlegList) {
  3508. let feeId = this.dialogWhgenlegList[zhgen].feeFId;
  3509. getFees(feeId).then((response) => {
  3510. this.fWbuOptions.push(response.data);
  3511. });
  3512. this.warehouseCrList.push({
  3513. fCorpid: this.dialogWhgenlegList[zhgen].fCorpid,
  3514. fFeeid: feeId,
  3515. fFeeUnitid: this.dialogWhgenlegList[zhgen].fFeeUnitid + "",
  3516. fUnitprice: this.dialogWhgenlegList[zhgen].fPrice,
  3517. fCurrency: "RMB",
  3518. fExrate: "1",
  3519. fTaxrate: this.fTaxrate,
  3520. });
  3521. }
  3522. for (let list in this.warehouseCrList) {
  3523. if (this.warehouseCrList[list].fFeeUnitid == 1) {
  3524. this.$set(this.warehouseCrList[list], "fQty", this.fQty.toFixed(2));
  3525. } else if (this.warehouseCrList[list].fFeeUnitid == 2) {
  3526. this.$set(
  3527. this.warehouseCrList[list],
  3528. "fQty",
  3529. this.fGrossweight.toFixed(2)
  3530. );
  3531. } else if (this.warehouseCrList[list].fFeeUnitid == 3) {
  3532. this.$set(
  3533. this.warehouseCrList[list],
  3534. "fQty",
  3535. this.fNetweight.toFixed(2)
  3536. );
  3537. } else {
  3538. this.$set(this.warehouseCrList[list], "fQty", 0);
  3539. }
  3540. this.$set(
  3541. this.warehouseCrList[list],
  3542. "fAmount",
  3543. (
  3544. Number(this.warehouseCrList[list].fUnitprice) *
  3545. Number(this.warehouseCrList[list].fQty)
  3546. ).toFixed(2)
  3547. );
  3548. }
  3549. this.warehousingagreements = false;
  3550. }
  3551. },
  3552. // 贸易方式(数据字典),对���t_trademodels 字典翻译
  3553. fTrademodeidFormat(row, column) {
  3554. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  3555. },
  3556. // 计费单位(数据字典),下拉选择毛重或净重字典翻译
  3557. fFeetunitFormat(row, column) {
  3558. return this.selectDictLabel(this.fFeetunitOptions, row.fFeetunit);
  3559. },
  3560. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  3561. fIfweighFormat(row, column) {
  3562. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  3563. },
  3564. // 编号字典翻译
  3565. fStltypeidFormat(row, column) {
  3566. return this.selectDictLabel(this.fStltypeOptions, row.fStltypeid);
  3567. },
  3568. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典翻译
  3569. fIfpledgeFormat(row, column) {
  3570. return this.selectDictLabel(this.fIfpledgeOptions, row.fIfpledge);
  3571. },
  3572. // 是否破损(数据字典),默认F否则T字典翻译
  3573. fIfdamageFormat(row, column) {
  3574. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  3575. },
  3576. // 单据类型(数据字典)SJRK字典翻译
  3577. fBilltypeFormat(row, column) {
  3578. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  3579. },
  3580. // 状态(数据字典),N 入字典翻译
  3581. fBillstatusFormat(row, column) {
  3582. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  3583. },
  3584. // 取消按钮
  3585. cancel() {
  3586. this.open = false;
  3587. this.reset();
  3588. },
  3589. // 表单重置
  3590. reset() {
  3591. this.form = {
  3592. fId: null,
  3593. fBillno: null,
  3594. fCustomsdeclartion: null,
  3595. fOriginalbillno: null,
  3596. fDeptid: null,
  3597. fBsdeptid: null,
  3598. fContacts: null,
  3599. fTel: null,
  3600. fCorpid: null,
  3601. fTocorpid: null,
  3602. fStltypeid: null,
  3603. fBscorpno: null,
  3604. fWarehouseid: null,
  3605. fStorekeeper: null,
  3606. fBsdate: null,
  3607. fPlanqty: null,
  3608. fPlangrossweight: null,
  3609. fPlannetweight: null,
  3610. fPlanvolumn: null,
  3611. fQty: null,
  3612. fGrossweight: null,
  3613. fNetweight: null,
  3614. fVolumn: null,
  3615. fTrademodeid: null,
  3616. fSbu: null,
  3617. fFeetunit: null,
  3618. fMblno: null,
  3619. fVslvoy: null,
  3620. fEta: null,
  3621. fCustomno: null,
  3622. fIfweigh: null,
  3623. fIfpledge: null,
  3624. fIfdamage: null,
  3625. fBankcorpid: null,
  3626. fBilltype: null,
  3627. fBillstatus: null,
  3628. delFlag: null,
  3629. createBy: null,
  3630. createTime: null,
  3631. updateBy: null,
  3632. updateTime: null,
  3633. remark: null,
  3634. fCreateby: null,
  3635. fCreatetime: null,
  3636. fGoodsid: null,
  3637. fCntrtype: null,
  3638. fCntqty: null,
  3639. };
  3640. this.fMblnoOptions = [];
  3641. this.userOptions = [];
  3642. this.warehouseOptions = [];
  3643. this.fSbuOptions = [];
  3644. this.goodsOptions = [];
  3645. this.kqhouseOptions = [];
  3646. this.relevantAttachments = [];
  3647. this.KHblnoOptions = [];
  3648. this.fWbuOptions = [];
  3649. this.resetForm("form");
  3650. },
  3651. /** 搜索按钮操作 */
  3652. handleQuery() {
  3653. this.queryParams.pageNum = 1;
  3654. this.getList();
  3655. },
  3656. /** 重置按钮操作 */
  3657. resetQuery() {
  3658. this.resetForm("queryForm");
  3659. this.handleQuery();
  3660. },
  3661. // 多选框选中数据
  3662. handleSelectionChange(selection) {
  3663. this.ids = selection.map((item) => item.fId);
  3664. this.single = selection.length !== 1;
  3665. this.multiple = !selection.length;
  3666. },
  3667. // 库存明细多选
  3668. Selectinventory(selection) {
  3669. this.Printinglist = selection;
  3670. this.Printinglists = selection;
  3671. this.dataListSelection = [];
  3672. this.dataWithdrawList = [];
  3673. if (!selection || selection.length === 0) {
  3674. return false;
  3675. } else {
  3676. for (let se in selection) {
  3677. if (!selection[se].fBillstatus || selection[se].fBillstatus !== 40) {
  3678. this.dataListSelection.push(selection[se]);
  3679. } else if (
  3680. selection[se].fBillstatus &&
  3681. selection[se].fBillstatus === 40
  3682. ) {
  3683. this.dataWithdrawList.push(selection[se]);
  3684. }
  3685. }
  3686. }
  3687. // 打印回显仓库
  3688. for (let corp in this.warehouseOptions) {
  3689. this.fAddr = this.warehouseOptions[corp].fAddr;
  3690. }
  3691. },
  3692. // 收款选
  3693. Collectionoptions(selection) {
  3694. this.Collectionoptionss = selection;
  3695. for (let lest in this.fWbuOptions) {
  3696. for (let li in this.Collectionoptionss) {
  3697. if (
  3698. this.fWbuOptions[lest].fId == this.Collectionoptionss[li].fFeeid
  3699. ) {
  3700. this.$set(
  3701. this.Collectionoptionss[li],
  3702. "fFeeids",
  3703. this.fWbuOptions[lest].fName
  3704. );
  3705. }
  3706. }
  3707. }
  3708. },
  3709. // 收款删除
  3710. deleteRow(index, rows) {
  3711. rows.splice(index, 1);
  3712. },
  3713. deleteRoww(index, rows) {
  3714. rows.splice(index, 1);
  3715. },
  3716. // 付款选择
  3717. Paymentoptions(selection) {
  3718. },
  3719. /** 新增按钮操作 */
  3720. handleAdd(status) {
  3721. this.browseStatus = status;
  3722. this.reset();
  3723. this.queryUser();
  3724. this.open = true;
  3725. this.detailsHidden = false;
  3726. this.dataList = [];
  3727. this.warehouseCrList = [];
  3728. this.warehouseDrList = [];
  3729. this.relevantAttachments = [];
  3730. this.mum = 0;
  3731. this.title = "入库单";
  3732. this.formBrowseStatus = false;
  3733. },
  3734. /** 修改按钮操作 */
  3735. handleUpdate(row, status) {
  3736. this.browseStatus = status;
  3737. this.reset();
  3738. this.detailsHidden = false;
  3739. this.formBrowseStatus = false;
  3740. const fId = row.fId || this.ids;
  3741. this.dataList = [];
  3742. getWarehousebills(fId).then((response) => {
  3743. if (response.data.warehousebills) {
  3744. this.form = response.data.warehousebills;
  3745. this.before = this.form.createBy
  3746. if (this.form.fBillstatus > 2) {
  3747. this.approvalStatus = false;
  3748. } else {
  3749. this.approvalStatus = true;
  3750. }
  3751. }
  3752. if (response.data.warehouseBillsItem) {
  3753. this.dataList = response.data.warehouseBillsItem;
  3754. for (let list in this.dataList) {
  3755. this.$set(this.dataList[list], 'fBusinessType', this.dataList[list].fBusinessType + '')
  3756. if (this.dataList[list].fBillstatus > 10) {
  3757. this.formBrowseStatus = true;
  3758. this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '')
  3759. }
  3760. }
  3761. }
  3762. if (response.data.corps) {
  3763. this.fMblnoOptions = response.data.corps;
  3764. this.KHblnoOptions = response.data.corps;
  3765. this.fSbuOptions = response.data.corps;
  3766. }
  3767. if (response.data.feesList) {
  3768. this.fWbuOptions = response.data.feesList;
  3769. }
  3770. if (response.data.warehouse) {
  3771. this.warehouseOptions = response.data.warehouse;
  3772. }
  3773. if (response.data.warehouseBillsItem) {
  3774. this.dataList = response.data.warehouseBillsItem;
  3775. }
  3776. if (response.data.enclosures) {
  3777. this.relevantAttachments = response.data.enclosures;
  3778. }
  3779. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  3780. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  3781. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  3782. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  3783. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  3784. this.$set(this.form, "fPlannetweight", this.form.fPlannetweight.toFixed(2));
  3785. this.$set(this.form, "fPlangrossweight", this.form.fPlangrossweight.toFixed(2));
  3786. for (let list in this.dataList) {
  3787. this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
  3788. }
  3789. this.goodsOptions = response.data.goodsList;
  3790. this.kqhouseOptions = response.data.warehouseAreas;
  3791. this.warehouseDrList = response.data.warehousebillsfeesDr;
  3792. for (let dr in this.warehouseDrList) {
  3793. this.$set(this.warehouseDrList[dr], "fFeeUnitid", this.warehouseDrList[dr].fFeeunitid + "");
  3794. this.$set(this.warehouseDrList[dr], "fQty", this.warehouseDrList[dr].fQty.toFixed(2));
  3795. this.$set(this.warehouseDrList[dr], "fAmount", this.warehouseDrList[dr].fAmount.toFixed(2));
  3796. }
  3797. this.warehouseCrList = response.data.warehousebillsfeesCr;
  3798. for (let cr in this.warehouseCrList) {
  3799. this.$set(this.warehouseCrList[cr], "fFeeUnitid", this.warehouseCrList[cr].fFeeunitid + "");
  3800. }
  3801. this.userOptions = response.data.sysUser;
  3802. this.open = true;
  3803. this.title = "修改仓入库";
  3804. });
  3805. queryUserVal().then((response)=>{
  3806. this.current = response.user.userName
  3807. })
  3808. },
  3809. // 库存总账多选框
  3810. whgenlegSelectionChange(selection) {
  3811. this.dialogWhgenlegList = selection;
  3812. },
  3813. // 合计
  3814. getSummaries(param) {
  3815. const { columns, data } = param;
  3816. const sums = [];
  3817. var values = [];
  3818. columns.forEach((column, index) => {
  3819. if (index === 0) {
  3820. sums[index] = "";
  3821. return;
  3822. }
  3823. if (column.property === "fPlanvolumn") {
  3824. values = data.map((item) => Number(item["fPlanvolumn"]));
  3825. }
  3826. if (column.property === "fGrossweight") {
  3827. values = data.map((item) => Number(item["fGrossweight"]));
  3828. }
  3829. if (column.property === "fNetweight") {
  3830. values = data.map((item) => Number(item["fNetweight"]));
  3831. }
  3832. if (column.property === "fQty") {
  3833. values = data.map((item) => Number(item["fQty"]));
  3834. }
  3835. if (column.property === "fCntqty") {
  3836. values = data.map((item) => Number(item["fCntqty"]));
  3837. }
  3838. if (
  3839. column.property === "fPlanvolumn" ||
  3840. column.property === "fGrossweight" ||
  3841. column.property === "fNetweight" ||
  3842. column.property === "fQty" ||
  3843. column.property === "fCntqty"
  3844. ) {
  3845. sums[index] = values.reduce((prev, curr) => {
  3846. const value = Number(curr);
  3847. if (!isNaN(value)) {
  3848. if (column.property === "fPlanvolumn") {
  3849. this.fPlanvolumn = prev + curr;
  3850. }
  3851. if (column.property === "fGrossweight") {
  3852. this.fGrossweight = prev + curr;
  3853. }
  3854. if (column.property === "fNetweight") {
  3855. this.fNetweight = prev + curr;
  3856. }
  3857. if (column.property === "fQty") {
  3858. this.fQty = prev + curr;
  3859. this.mum = prev + curr;
  3860. }
  3861. if (column.property === "fCntqty") {
  3862. this.fCntqty = prev + curr;
  3863. }
  3864. return prev + curr;
  3865. } else {
  3866. if (column.property === "fQty") {
  3867. this.fQty = prev;
  3868. this.mum = prev;
  3869. }
  3870. return prev;
  3871. }
  3872. }, 0);
  3873. sums[index] = sums[index].toFixed(2);
  3874. }
  3875. });
  3876. this.sums = sums;
  3877. return sums;
  3878. },
  3879. // 付款合计
  3880. warehouseDrSummaries(param) {
  3881. const { columns, data } = param;
  3882. const sums = [];
  3883. columns.forEach((column, index) => {
  3884. if (index === 0) {
  3885. sums[index] = "合计";
  3886. return;
  3887. }
  3888. const values = data.map((item) => Number(item[column.property]));
  3889. if (
  3890. column.property === "fUnitprice" ||
  3891. column.property === "fAmount" ||
  3892. column.property === "fQty" ||
  3893. column.property === "fQty"
  3894. ) {
  3895. sums[index] = values.reduce((prev, curr) => {
  3896. const value = Number(curr);
  3897. if (!isNaN(value)) {
  3898. return prev + curr;
  3899. } else {
  3900. return prev;
  3901. }
  3902. }, 0);
  3903. sums[index] = sums[index].toFixed(2);
  3904. }
  3905. });
  3906. return sums;
  3907. },
  3908. // 计划废用导入计算
  3909. changeList(row) {
  3910. this.fPlaNnumber = this.form.fPlannetweight / this.form.fPlanqty;
  3911. this.fPlangNumber = this.form.fPlangrossweight / this.form.fPlanqty;
  3912. this.planningList.fPlannetweight = (
  3913. Number(this.planningList.fPlanqty) * Number(this.fPlaNnumber)
  3914. ).toFixed(2);
  3915. this.planningList.fPlangrossweight = (
  3916. Number(this.planningList.fPlanqty) * Number(this.fPlangNumber)
  3917. ).toFixed(2);
  3918. },
  3919. // 数量计算
  3920. changeContractAmt(row) {
  3921. let fQty = 0;
  3922. let fUnitprice = 0;
  3923. if (row.fUnitprice) {
  3924. fUnitprice = row.fUnitprice;
  3925. }
  3926. if (row.fQty) {
  3927. fQty = row.fQty;
  3928. }
  3929. this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
  3930. },
  3931. changefCorpid(row) {
  3932. this.$set(row, "fSbu", row.fCorpid);
  3933. for (let corp in this.fMblnoOptions) {
  3934. if (row.fCorpid === this.fMblnoOptions[corp].fId) {
  3935. this.$set(
  3936. this.form,
  3937. "fStltypeid",
  3938. this.fMblnoOptions[corp].fStltypeid + ""
  3939. );
  3940. }
  3941. }
  3942. },
  3943. // 品名改变
  3944. changefGoodsid(row) {
  3945. for (let corp in this.goodsOptions) {
  3946. if (row.fGoodsid === this.goodsOptions[corp].fId) {
  3947. this.$set(row, "fGoodsids", this.goodsOptions[corp].fName);
  3948. this.$set(row, "fPackagespecs", this.goodsOptions[corp].fPackagespecs);
  3949. }
  3950. }
  3951. },
  3952. // 变更计价单位
  3953. changeFeeUnit(row) {
  3954. if (!row.fFeeUnitid) {
  3955. return false;
  3956. }
  3957. if (row.fFeeUnitid === "2") {
  3958. this.$set(row, "fQty", this.fGrossweight);
  3959. } else if (row.fFeeUnitid === "1") {
  3960. this.$set(row, "fQty", this.fQty);
  3961. } else if (row.fFeeUnitid === "3") {
  3962. this.$set(row, "fQty", this.fNetweight);
  3963. } else {
  3964. this.$set(row, "fQty", 0);
  3965. }
  3966. if (row.fUnitprice) {
  3967. this.$set(
  3968. row,
  3969. "fAmount",
  3970. parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
  3971. );
  3972. }
  3973. },
  3974. changefBsdate(row) {
  3975. if (this.dataList.length > 0) {
  3976. for (var i = 0; i < this.dataList.length; i++) {
  3977. this.$set(this.dataList[i], "fBsdate", row);
  3978. }
  3979. }
  3980. },
  3981. // 入账
  3982. creditClick() {
  3983. this.$refs['form'].validate((valid) => {
  3984. for (let warehouseCr in this.dataListSelection) {
  3985. if (this.dataListSelection[warehouseCr].fBillstatus === 20) {
  3986. this.$message.error('请先卸货')
  3987. return false
  3988. }
  3989. if (this.dataListSelection[warehouseCr].fBillstatus !== 30) {
  3990. this.$message.error('请先打印作业单')
  3991. return false
  3992. }
  3993. if (!this.dataListSelection[warehouseCr].fBusinessType) {
  3994. this.$message.error('请维护业务类型')
  3995. return false
  3996. }
  3997. if (!this.dataListSelection[warehouseCr].fMarks) {
  3998. this.$message.error('请维护业务详情')
  3999. return false
  4000. }
  4001. if (!this.dataListSelection[warehouseCr].fWarehouselocid) {
  4002. this.$message.error('请选择库区')
  4003. return false
  4004. }
  4005. if (!this.dataListSelection[warehouseCr].fGoodsid) {
  4006. this.$message.error('请选择品名')
  4007. return false
  4008. }
  4009. if (!this.dataListSelection[warehouseCr].fGrossweight) {
  4010. this.$message.error('请选择入库毛重')
  4011. return false
  4012. }
  4013. if (!this.dataListSelection[warehouseCr].fNetweight) {
  4014. this.$message.error('请选择入库净重')
  4015. return false
  4016. }
  4017. if (!this.dataListSelection[warehouseCr].fQty) {
  4018. this.$message.error('请选择入库件数')
  4019. return false
  4020. }
  4021. if (!this.dataListSelection[warehouseCr].fDriverName) {
  4022. this.$message.error('请输入司机姓名')
  4023. return false
  4024. }
  4025. }
  4026. if (valid) {
  4027. let formData = new window.FormData()
  4028. formData.append('warehouseBills', JSON.stringify(this.form))
  4029. formData.append('warehousebillsitems', JSON.stringify(this.dataListSelection))
  4030. formData.append('warehousebillsfeesDr', JSON.stringify(this.warehouseDrList))
  4031. formData.append('warehousebillsfeesCr', JSON.stringify(this.warehouseCrList))
  4032. formData.append('tEnclosure', JSON.stringify(this.relevantAttachments))
  4033. formData.append('whgenleg', JSON.stringify(this.relevantAttachments))
  4034. addWhgenleg(formData).then((response) => {
  4035. this.fid = response.data
  4036. this.formBrowseStatus = true
  4037. let warehouseItem = response.data.warehousebillsitems
  4038. for (let item in warehouseItem) {
  4039. for (let li in this.dataList) {
  4040. if (warehouseItem[item].fId === this.dataList[li].fId) {
  4041. this.$set(this.dataList[li], 'fBillstatus', warehouseItem[item].fBillstatus)
  4042. this.$set(this.dataList[li], 'fIsInventory', warehouseItem[item].fIsInventory)
  4043. break
  4044. }
  4045. }
  4046. }
  4047. this.msgSuccess('入账成功')
  4048. this.$refs.checkout.clearSelection()
  4049. })
  4050. }
  4051. })
  4052. },
  4053. // 打印作业单
  4054. addList() {
  4055. this.$refs["form"].validate((valid) => {
  4056. if (valid) {
  4057. let formData = new window.FormData();
  4058. formData.append("warehouseBills", JSON.stringify(this.form));
  4059. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  4060. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4061. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4062. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4063. addJoblist(formData).then((response) => {
  4064. this.formBrowseStatus = true
  4065. let dataSelection = response.data.warehousebillsitems
  4066. for (let li in dataSelection) {
  4067. for (let i in this.dataList) {
  4068. if (dataSelection[li].fId === this.dataList[i].fId && this.dataList[i].fBillstatus === 10) {
  4069. this.$set(this.dataList[i], 'fBillstatus', dataSelection[li].fBillstatus)
  4070. this.$set(this.dataList[i], 'fSerialNumber', dataSelection[li].fSerialNumber)
  4071. break
  4072. }
  4073. }
  4074. }
  4075. this.$refs.checkout.clearSelection()
  4076. })
  4077. }
  4078. });
  4079. },
  4080. // 撤回入账
  4081. withdrawClick() {
  4082. // 撤回入库
  4083. let formData = new window.FormData();
  4084. formData.append("warehouseBills", JSON.stringify(this.form));
  4085. formData.append("warehousebillsitems", JSON.stringify(this.dataWithdrawList));
  4086. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4087. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4088. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4089. updateCredit(formData).then((response) => {
  4090. this.fid = response.data;
  4091. this.formBrowseStatus = false;
  4092. this.msgSuccess("撤销入账成功");
  4093. for (let li in this.dataWithdrawList) {
  4094. for (let i in this.dataList) {
  4095. if (this.dataWithdrawList[li].fId === this.dataList[i].fId) {
  4096. this.$set(this.dataList[i], "fBillstatus", 10);
  4097. break
  4098. }
  4099. }
  4100. }
  4101. this.$refs.checkout.clearSelection();
  4102. });
  4103. },
  4104. // 卸货按钮
  4105. discharge() {
  4106. if (this.Printinglist.length > 0) {
  4107. for (let warehouseCr in this.Printinglist) {
  4108. if (this.Printinglist[warehouseCr].fBillstatus === 10) {
  4109. this.$message.error("请先打印作业单");
  4110. return false;
  4111. }
  4112. if (this.Printinglist[warehouseCr].fBillstatus >= 30) {
  4113. this.$message.error("请勿重复卸货");
  4114. return false;
  4115. }
  4116. if (!this.Printinglist[warehouseCr].fQty || this.Printinglist[warehouseCr].fQty === 0) {
  4117. this.$message.error("请维护入库件数");
  4118. return false;
  4119. }
  4120. if (!this.Printinglist[warehouseCr].fNetweight || this.Printinglist[warehouseCr].fNetweight === 0) {
  4121. this.$message.error("请维护入库净重");
  4122. return false;
  4123. }
  4124. if (!this.Printinglist[warehouseCr].fGrossweight || this.Printinglist[warehouseCr].fGrossweight === 0) {
  4125. this.$message.error("请维护入库毛重");
  4126. return false;
  4127. }
  4128. }
  4129. this.$refs["form"].validate((valid) => {
  4130. if (valid) {
  4131. let dataSelection = JSON.parse(JSON.stringify(this.dataListSelection))
  4132. let formData = new window.FormData();
  4133. formData.append("warehouseBills", JSON.stringify(this.form));
  4134. formData.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4135. formData.append("warehousebillsitems", JSON.stringify(this.dataListSelection));
  4136. formData.append("warehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4137. formData.append("warehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4138. if (!this.form.fId) {
  4139. this.form.fId = this.fid;
  4140. }
  4141. disChargelist(formData).then((response) => {
  4142. this.dataList = response.data.warehousebillsitems
  4143. for (let li in this.dataList) {
  4144. this.$set(this.dataList[li], "fBsdate", Date.parse(this.dataList[li].fBsdate));
  4145. this.$set(this.dataList[li], "fBusinessType", this.dataList[li].fBusinessType + '')
  4146. }
  4147. this.msgSuccess("卸货成功");
  4148. this.$refs.checkout.clearSelection();
  4149. });
  4150. }
  4151. });
  4152. } else {
  4153. this.$message.error("请选择需要卸货的明细!");
  4154. }
  4155. },
  4156. /** 提交按钮 */
  4157. submitForm(status) {
  4158. this.updateDeduplication()
  4159. if (status === 2) {
  4160. this.preservation();
  4161. } else {
  4162. this.pleaseCheck();
  4163. }
  4164. },
  4165. // 更新主表唛头、品名并去重
  4166. updateDeduplication: function() {
  4167. if (this.dataList.length === 0) {
  4168. return false
  4169. }
  4170. let fMarks = []
  4171. let fGoodsid = []
  4172. for (let li in this.dataList) {
  4173. fMarks.push(this.dataList[li].fMarks)
  4174. fGoodsid.push(this.dataList[li].fGoodsids)
  4175. }
  4176. this.$set(this.form, 'fMarks', Array.from(new Set(fMarks)).join(","))
  4177. this.$set(this.form, 'fProductName', Array.from(new Set(fGoodsid)).join(","))
  4178. },
  4179. // 提交保存保存成功
  4180. preservation() {
  4181. this.$refs["form"].validate((valid) => {
  4182. if (valid) {
  4183. this.form.fBillstatus = status;
  4184. this.form.fNetweight = this.fNetweight;
  4185. this.form.fPlanvolumn = this.fPlanvolumn;
  4186. this.form.fGrossweight = this.fGrossweight;
  4187. this.form.fQty = this.fQty;
  4188. if (!this.form.fId) {
  4189. this.form.fId = this.fid;
  4190. }
  4191. let formDatae = new window.FormData();
  4192. // 附件数据
  4193. this.form.fBillingway = this.form.fFeetunit;
  4194. formDatae.append("tWarehouseBills", JSON.stringify(this.form));
  4195. // 库存明细
  4196. formDatae.append("tWarehousebillsitems", JSON.stringify(this.dataList));
  4197. // 附件数据
  4198. formDatae.append("tEnclosure", JSON.stringify(this.relevantAttachments));
  4199. // 费用明细付款
  4200. formDatae.append("tWarehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  4201. // 收款
  4202. formDatae.append("tWarehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  4203. addWarehousebills(formDatae).then((response) => {
  4204. this.msgSuccess("保存成功");
  4205. this.form = response.data.warehouseBills;
  4206. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  4207. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  4208. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  4209. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  4210. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  4211. this.dataList = response.data.warehousebillsitems;
  4212. for (let list in this.dataList) {
  4213. this.$set(this.dataList[list], "fBsdate", Date.parse(this.dataList[list].fBsdate));
  4214. this.$set(this.dataList[list], "fBusinessType", this.dataList[list].fBusinessType + '');
  4215. }
  4216. this.fid = response.data.warehouseBills.fId;
  4217. this.getList();
  4218. });
  4219. }
  4220. });
  4221. },
  4222. // 请核成功
  4223. pleaseCheck() {
  4224. this.updateDeduplication()
  4225. this.$refs["form"].validate((valid) => {
  4226. if (this.dataList.length === 0) {
  4227. this.$message.error("请新增库存明细!");
  4228. return false;
  4229. }
  4230. for (let list in this.dataList) {
  4231. if (!this.dataList[list].fGoodsid) {
  4232. this.$message.error("请输入品名!");
  4233. return false;
  4234. }
  4235. if (!this.dataList[list].fWarehouselocid) {
  4236. this.$message.error("请输入库区!");
  4237. return false;
  4238. }
  4239. if (this.dataList[list].fBillstatus != 40) {
  4240. this.$message.error("请入账库存明细!");
  4241. return false;
  4242. }
  4243. }
  4244. if (valid) {
  4245. this.form.fBillstatus = status;
  4246. this.form.fNetweight = this.fNetweight;
  4247. // this.form.fPlangrossweight = this.fPlangrossweight;
  4248. // this.form.fPlannetweight = this.fPlannetweight;
  4249. this.form.fPlanvolumn = this.fPlanvolumn;
  4250. // this.form.fPlanqty = this.fPlanqty;
  4251. this.form.fGrossweight = this.fGrossweight;
  4252. this.form.fQty = this.fQty;
  4253. if (!this.form.fId) {
  4254. this.form.fId = this.fid;
  4255. }
  4256. let formData = new window.FormData();
  4257. // 附件数据
  4258. this.form.fBillingway = this.form.fFeetunit;
  4259. formData.append("tWarehouseBills", JSON.stringify(this.form));
  4260. // 库存明细
  4261. formData.append(
  4262. "tWarehousebillsitems",
  4263. JSON.stringify(this.dataList)
  4264. );
  4265. // 附件数据
  4266. formData.append(
  4267. "tEnclosure",
  4268. JSON.stringify(this.relevantAttachments)
  4269. );
  4270. // 费用明细付款
  4271. formData.append(
  4272. "tWarehousebillsfeesCr",
  4273. JSON.stringify(this.warehouseCrList)
  4274. );
  4275. // 收款
  4276. formData.append(
  4277. "tWarehousebillsfeesDr",
  4278. JSON.stringify(this.warehouseDrList)
  4279. );
  4280. addWarehouse(formData).then((response) => {
  4281. this.msgSuccess("提交成功");
  4282. this.open = false;
  4283. this.getList();
  4284. });
  4285. }
  4286. });
  4287. },
  4288. /** 删除按钮操作 */
  4289. handleDelete(row) {
  4290. const fIds = row.fId || this.ids;
  4291. this.$confirm(
  4292. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  4293. "警告",
  4294. {
  4295. confirmButtonText: "确定",
  4296. cancelButtonText: "取消",
  4297. type: "warning",
  4298. }
  4299. )
  4300. .then(function () {
  4301. return delWarehousebills(fIds);
  4302. })
  4303. .then(() => {
  4304. this.getList();
  4305. this.msgSuccess("删除成功");
  4306. });
  4307. },
  4308. /** 导出按钮操作 */
  4309. handleExport() {
  4310. const queryParams = this.queryParams;
  4311. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  4312. confirmButtonText: "确定",
  4313. cancelButtonText: "取消",
  4314. type: "warning",
  4315. })
  4316. .then(function () {
  4317. return exportWarehousebills(queryParams);
  4318. })
  4319. .then((response) => {
  4320. this.download(response.msg);
  4321. });
  4322. },
  4323. wDeleteRow(index, rows) {
  4324. rows.splice(index, 1);
  4325. if (this.dataList.length === 0) {
  4326. this.formBrowseStatus = false
  4327. return false
  4328. }
  4329. let sum = 0
  4330. for (let li in this.dataList) {
  4331. if (this.dataList[li].fQty) {
  4332. sum = Number(sum) + Number(this.dataList[li].fQty)
  4333. }
  4334. if (this.dataList[li].fBillstatus > 10) {
  4335. this.formBrowseStatus = true
  4336. }
  4337. }
  4338. this.mum = sum
  4339. },
  4340. // 查看审批流
  4341. getDataList() {
  4342. this.addOrUpdateVisible = false;
  4343. },
  4344. returnData() {
  4345. this.addOrUpdateVisib = false;
  4346. this.cancelTwo()
  4347. },
  4348. addOrUpdateHandle(form) {
  4349. this.addOrUpdateVisible = true;
  4350. let id = form.fId;
  4351. let actId = "110";
  4352. this.$nextTick(() => {
  4353. this.$refs.addOrUpdate.init(id, actId);
  4354. });
  4355. },
  4356. addOrUpdateHand(form) {
  4357. this.addOrUpdateVisib = true;
  4358. this.$nextTick(() => {
  4359. this.$refs.ApprovalComments.init(form.fId, 110);
  4360. });
  4361. },
  4362. /* 远程模糊查询用户 */
  4363. corpsRemoteMethod(name) {
  4364. if (name == null || name === "") {
  4365. return false;
  4366. }
  4367. let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 1 };
  4368. listCorps(queryParams).then((response) => {
  4369. this.fMblnoOptions = response.rows;
  4370. this.KHblnoOptions = response.rows;
  4371. });
  4372. },
  4373. /* 远程模糊查询质押银行 */
  4374. corpsRemoteMethodd(name) {
  4375. if (name == null || name === "") {
  4376. return false;
  4377. }
  4378. let queryParams = { pageNum: 1, pageSize: 10, fName: name, type: 5 };
  4379. listCorps(queryParams).then((response) => {
  4380. this.Pledgebank = response.rows;
  4381. });
  4382. },
  4383. /* 远程模糊查询商品 */
  4384. goodsRemoteMethod(name) {
  4385. if (name == null || name === "") {
  4386. return false;
  4387. }
  4388. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4389. listGoods(queryParams).then((response) => {
  4390. this.goodsOptions = response.rows;
  4391. });
  4392. },
  4393. // 远程模糊查询费用名称
  4394. fWRemoteMethod(name) {
  4395. if (name == null || name === "") {
  4396. return false;
  4397. }
  4398. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4399. listFees(queryParams).then((response) => {
  4400. this.fWbuOptions = response.rows;
  4401. });
  4402. },
  4403. /* 远程模糊查询经营单位 */
  4404. fSbuRemoteMethod(name) {
  4405. if (name == null || name === "") {
  4406. return false;
  4407. }
  4408. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4409. listCorps(queryParams).then((response) => {
  4410. this.fSbuOptions = response.rows;
  4411. });
  4412. },
  4413. /* 远程模糊查询仓库 */
  4414. warehouseRemoteMethod(name) {
  4415. if (name == null || name === "") {
  4416. return false;
  4417. }
  4418. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  4419. listWarehouse(queryParams).then((response) => {
  4420. this.warehouseOptions = response.rows;
  4421. });
  4422. },
  4423. /* 远程模糊查询库区 */
  4424. kqhouseRemoteMethod(name) {
  4425. if (name == null || name === "") {
  4426. return false;
  4427. }
  4428. if (!this.form.fWarehouseid) {
  4429. this.$message.error("请输入仓库!");
  4430. return false;
  4431. }
  4432. let queryParams = {
  4433. pageNum: 1,
  4434. pageSize: 10,
  4435. fWarehouseid: this.form.fWarehouseid,
  4436. fName: name,
  4437. };
  4438. listArea(queryParams).then((response) => {
  4439. this.kqhouseOptions = response.rows;
  4440. });
  4441. },
  4442. /* 远程模糊查询操作用户 */
  4443. userRemoteMethod(name) {
  4444. if (name == null || name === "") {
  4445. return false;
  4446. }
  4447. let queryParams = { pageNum: 1, pageSize: 10, userName: name };
  4448. listUser(queryParams).then((response) => {
  4449. this.userOptions = response.rows;
  4450. });
  4451. },
  4452. },
  4453. };
  4454. </script>
  4455. <style lang="scss">
  4456. .juzhong > th {
  4457. text-align: center;
  4458. }
  4459. .biaoge > tr > td {
  4460. height: 50px;
  4461. text-align: center;
  4462. border-right: 1px solid #dfe6ec !important;
  4463. order-bottom: 1px solid #dfe6ec !important;
  4464. border-bottom: 1px solid #dfe6ec !important;
  4465. }
  4466. .el-table thead th {
  4467. background: #1890ff;
  4468. color: #fff;
  4469. }
  4470. .upload-demo {
  4471. margin-left: 50px;
  4472. }
  4473. .el-form-item {
  4474. margin-bottom: 5px !important;
  4475. }
  4476. .el-form-item__label {
  4477. font-size: 12px !important;
  4478. }
  4479. </style>