index.vue 100 KB

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