index.vue 127 KB

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