index.vue 145 KB

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