index.vue 87 KB

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