index.vue 145 KB

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