index.vue 144 KB

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