index.vue 110 KB

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