index.vue 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974
  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-input
  21. v-model="queryParams.createBy"
  22. placeholder="请输入制单人"
  23. clearable
  24. size="small"
  25. @keyup.enter.native="handleQuery"
  26. />
  27. </el-form-item>
  28. <el-form-item label="制单日期" prop="createTime">
  29. <el-date-picker
  30. clearable
  31. size="small"
  32. style="width: 400px"
  33. v-model="queryParams.createTime"
  34. type="date"
  35. value-format="timestamp"
  36. placeholder="选择制单日期"
  37. >
  38. </el-date-picker>
  39. </el-form-item>
  40. <el-form-item label="贸易方式" prop="ftrademodeid">
  41. <el-input
  42. v-model="queryParams.ftrademodeid"
  43. placeholder="请输入贸易方式"
  44. clearable
  45. size="small"
  46. @keyup.enter.native="handleQuery"
  47. />
  48. </el-form-item>
  49. <el-form-item label="货权方" prop="fCorpid">
  50. <el-input
  51. v-model="queryParams.fCorpid"
  52. placeholder="请输入货权方"
  53. clearable
  54. size="small"
  55. @keyup.enter.native="handleQuery"
  56. />
  57. </el-form-item>
  58. <el-form-item label="经营单位" prop="fsbu">
  59. <el-input
  60. v-model="queryParams.fsbu"
  61. placeholder="请输入经营单位"
  62. clearable
  63. size="small"
  64. @keyup.enter.native="handleQuery"
  65. />
  66. </el-form-item>
  67. <el-form-item label="提单号" prop="fmblno">
  68. <el-input
  69. v-model="queryParams.fmblno"
  70. placeholder="请输入提单号"
  71. clearable
  72. size="small"
  73. @keyup.enter.native="handleQuery"
  74. />
  75. </el-form-item>
  76. <el-form-item label="报关单号" prop="fcustomsdeclartion">
  77. <el-input
  78. v-model="queryParams.fcustomsdeclartion"
  79. placeholder="请输入报关单号"
  80. clearable
  81. size="small"
  82. @keyup.enter.native="handleQuery"
  83. />
  84. </el-form-item>
  85. <el-form-item label="货物名称" prop="fgoodsid">
  86. <el-select
  87. v-model="queryParams.fgoodsid"
  88. placeholder="请选择货物名称"
  89. clearable
  90. size="small"
  91. >
  92. <el-option label="请选择字典生成" value=""/>
  93. </el-select>
  94. </el-form-item>
  95. <el-form-item label="箱型" prop="fcntrtype">
  96. <el-select
  97. v-model="queryParams.fcntrtype"
  98. placeholder="请选择箱型"
  99. clearable
  100. size="small"
  101. >
  102. <el-option label="请选择字典生成" value=""/>
  103. </el-select>
  104. </el-form-item>
  105. <el-form-item label="箱量" prop="fCntqty">
  106. <el-input
  107. v-model="queryParams.fCntqty"
  108. placeholder="请输入箱量"
  109. clearable
  110. size="small"
  111. @keyup.enter.native="handleQuery"
  112. />
  113. </el-form-item>
  114. <el-form-item label="仓库" prop="fwarehouseid">
  115. <el-input
  116. v-model="queryParams.fwarehouseid"
  117. placeholder="请输入仓库"
  118. clearable
  119. size="small"
  120. @keyup.enter.native="handleQuery"
  121. />
  122. </el-form-item>
  123. <el-form-item>
  124. <el-button
  125. type="cyan"
  126. icon="el-icon-search"
  127. size="mini"
  128. @click="handleQuery"
  129. >搜索
  130. </el-button
  131. >
  132. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  133. >重置
  134. </el-button
  135. >
  136. </el-form-item>
  137. </el-form>
  138. <el-row :gutter="10" class="mb8">
  139. <el-col :span="1.5">
  140. <el-button
  141. type="primary"
  142. icon="el-icon-plus"
  143. size="mini"
  144. @click="handleAdd"
  145. v-hasPermi="['warehouseBusiness:warehousebills:add']"
  146. >新增
  147. </el-button
  148. >
  149. </el-col>
  150. <el-col :span="1.5">
  151. <el-button
  152. type="success"
  153. icon="el-icon-edit"
  154. size="mini"
  155. :disabled="single"
  156. @click="handleUpdate"
  157. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  158. >修改
  159. </el-button
  160. >
  161. </el-col>
  162. <el-col :span="1.5">
  163. <el-button
  164. type="danger"
  165. icon="el-icon-delete"
  166. size="mini"
  167. :disabled="multiple"
  168. @click="handleDelete"
  169. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  170. >删除
  171. </el-button
  172. >
  173. </el-col>
  174. <el-col :span="1.5">
  175. <el-button
  176. type="warning"
  177. icon="el-icon-download"
  178. size="mini"
  179. @click="handleExport"
  180. v-hasPermi="['warehouseBusiness:warehousebills:export']"
  181. >导出
  182. </el-button
  183. >
  184. </el-col>
  185. <right-toolbar
  186. :showSearch.sync="showSearch"
  187. @queryTable="getList"
  188. ></right-toolbar>
  189. </el-row>
  190. <el-table
  191. v-loading="loading"
  192. :data="warehousebillsList"
  193. @selection-change="handleSelectionChange"
  194. >
  195. <el-table-column type="selection" width="55" align="center"/>
  196. <el-table-column type="index" label="序号" align="center"/>
  197. <el-table-column label="业务编号" align="center" prop="fbillno"/>
  198. <el-table-column label="制单人" align="center" prop="createBy"/>
  199. <el-table-column label="客户名称" align="center" prop="fcorpid"/>
  200. <el-table-column label="贸易方式" align="center" prop="ftrademodeid"/>
  201. <!-- <el-table-column label="货转客户名称" align="center" prop="fTocorpid" /> -->
  202. <el-table-column label="入库毛重" align="center" prop="fgrossweight"/>
  203. <!-- <el-table-column
  204. label="入库日期"
  205. align="center"
  206. prop="fcreatetime"
  207. width="180"
  208. >
  209. <template slot-scope="scope">
  210. <span>{{ parseTime(scope.row.fcreatetime, "{y}-{m}-{d}") }}</span>
  211. </template>
  212. </el-table-column> -->
  213. <el-table-column label="入库件数" align="center" prop="fQty"/>
  214. <el-table-column label="入库毛重" align="center" prop="fGrossweight"/>
  215. <el-table-column
  216. label="净重"
  217. align="center"
  218. prop="fNetweight"
  219. />
  220. <el-table-column
  221. label="状态"
  222. align="center"
  223. prop="fBillstatus"
  224. :formatter="fBillstatusFormat"
  225. />
  226. <el-table-column
  227. label="是否质押"
  228. align="center"
  229. prop="fIfpledge"
  230. :formatter="fIfpledgeFormat"
  231. />
  232. <el-table-column label="质押银行" align="center" prop="fBankcorpid"/>
  233. <el-table-column label="业务编号" align="center" prop="fBillno"/>
  234. <el-table-column label="报关号" align="center" prop="fCustomno"/>
  235. <el-table-column
  236. label="原始业务编号,入库时和f_billno 相同,出库 取入库的f_originalbillno"
  237. align="center"
  238. prop="fOriginalbillno"
  239. />
  240. <el-table-column label="制单部门" align="center" prop="fDeptid"/>
  241. <el-table-column label="业务所属部门" align="center" prop="fBsdeptid"/>
  242. <el-table-column label="联系人" align="center" prop="fContacts"/>
  243. <el-table-column label="电话" align="center" prop="fTel"/>
  244. <el-table-column
  245. label="货权方,t_corps 中的no或 name,模糊查找选择后,存储id,显示name"
  246. align="center"
  247. prop="fCorpid"
  248. />
  249. <el-table-column
  250. label="货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效"
  251. align="center"
  252. prop="fTocorpid"
  253. />
  254. <el-table-column
  255. label="结算方式,默认提取corps中stltypeid 也可以从表t_stltypes中下拉选择,存储id,显示name"
  256. align="center"
  257. prop="fStltypeid"
  258. />
  259. <el-table-column
  260. label="客户存货编号,格式编号客户编号+YYYY +NNNN,
  261. 编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用,每年从001开始"
  262. align="center"
  263. prop="fBscorpno"
  264. />
  265. <el-table-column label="仓库" align="center" prop="fWarehouseid"/>
  266. <el-table-column label="仓管人" align="center" prop="fStorekeeper"/>
  267. <el-table-column
  268. label="计划件数,由明细表自动合计生成"
  269. align="center"
  270. prop="fPlanqty"
  271. />
  272. <el-table-column
  273. label="计划毛重,由明细表自动合计生成"
  274. align="center"
  275. prop="fPlangrossweight"
  276. />
  277. <el-table-column
  278. label="计划净重,由明细表自动合计生成"
  279. align="center"
  280. prop="fPlannetweight"
  281. />
  282. <el-table-column
  283. label="计划尺码,由明细表自动合计生成"
  284. align="center"
  285. prop="fPlanvolumn"
  286. />
  287. <el-table-column
  288. label="尺码,由明细表自动合计生成"
  289. align="center"
  290. prop="fVolumn"
  291. />
  292. <el-table-column
  293. label="贸易方式(数据字典),对应t_trademodels "
  294. align="center"
  295. prop="fTrademodeid"
  296. :formatter="fTrademodeidFormat"
  297. />
  298. <el-table-column label="经营单位(客户列表)" align="center" prop="fSbu"/>
  299. <el-table-column
  300. label="计费单位(数据字典),下拉选择毛重或净重"
  301. align="center"
  302. prop="fFeetunit"
  303. :formatter="fFeetunitFormat"
  304. />
  305. <el-table-column label="提单号" align="center" prop="fMblno"/>
  306. <el-table-column
  307. label="提单号"
  308. align="center"
  309. prop="fVslvoy"
  310. />
  311. <el-table-column label="到港日期" align="center" prop="fEta" width="180">
  312. <template slot-scope="scope">
  313. <span>{{ parseTime(scope.row.fEta, "{y}-{m}-{d}") }}</span>
  314. </template>
  315. </el-table-column>
  316. <el-table-column label="报关单号" align="center" prop="fCustomno"/>
  317. <el-table-column
  318. label="是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择"
  319. align="center"
  320. prop="fIfweigh"
  321. :formatter="fIfweighFormat"
  322. />
  323. <el-table-column
  324. label="单据类型(数据字典)SJRK"
  325. align="center"
  326. prop="fBilltype"
  327. :formatter="fBilltypeFormat"
  328. />
  329. <el-table-column label="备注" align="center" prop="remark"/>
  330. <el-table-column
  331. label="操作"
  332. align="center"
  333. class-name="small-padding fixed-width"
  334. >
  335. <template slot-scope="scope">
  336. <el-button
  337. size="mini"
  338. type="text"
  339. icon="el-icon-edit"
  340. @click="handleUpdate(scope.row)"
  341. v-hasPermi="['warehouseBusiness:warehousebills:edit']"
  342. >修改
  343. </el-button
  344. >
  345. <el-button
  346. size="mini"
  347. type="text"
  348. icon="el-icon-delete"
  349. @click="handleDelete(scope.row)"
  350. v-hasPermi="['warehouseBusiness:warehousebills:remove']"
  351. >删除
  352. </el-button
  353. >
  354. </template>
  355. </el-table-column>
  356. </el-table>
  357. <pagination
  358. v-show="total > 0"
  359. :total="total"
  360. :page.sync="queryParams.pageNum"
  361. :limit.sync="queryParams.pageSize"
  362. @pagination="getList"
  363. />
  364. <!-- 添加或修改仓库主(出入库)对话框 -->
  365. <el-dialog :title="title" :visible.sync="open" :close-on-click-modal="false" width="80%" append-to-body>
  366. <el-form
  367. style="height: 500px"
  368. ref="form"
  369. :model="form"
  370. :rules="rules"
  371. label-width="120px"
  372. >
  373. <el-row>
  374. <el-col :span="8">
  375. <el-form-item label="制单人" prop="createBy">
  376. <el-input disabled v-model="form.createBy" style="width: 220px" placeholder="制单人"/>
  377. </el-form-item>
  378. </el-col>
  379. <el-col :span="8">
  380. <el-form-item label="制单部门" prop="fDeptid">
  381. <el-select
  382. v-model="form.fDeptid"
  383. filterable
  384. disabled
  385. style="width: 220px"
  386. remote>
  387. <el-option
  388. v-for="dict in deptOptions"
  389. :key="dict.deptId"
  390. :label="dict.deptName"
  391. :value="dict.deptId"
  392. ></el-option>
  393. </el-select>
  394. </el-form-item>
  395. </el-col>
  396. <el-col :span="8">
  397. <el-form-item disabled label="制单日期" prop="fbilldate">
  398. <el-date-picker
  399. v-model="form.createTime"
  400. size="large"
  401. type="date"
  402. disabled
  403. value-format="timestamp"
  404. placeholder="制单日期"
  405. >
  406. </el-date-picker>
  407. </el-form-item>
  408. </el-col>
  409. </el-row>
  410. <el-row>
  411. <el-col :span="8">
  412. <el-form-item label="货权方" prop="fcorpid">
  413. <el-select
  414. v-model="form.fCorpid"
  415. filterable
  416. remote
  417. style="width: 220px"
  418. :remote-method="corpsRemoteMethod"
  419. placeholder="请选择货权方">
  420. <el-option
  421. v-for="dict in fMblnoOptions"
  422. :key="dict.fId"
  423. :label="dict.fName"
  424. :value="dict.fId"
  425. ></el-option>
  426. </el-select>
  427. </el-form-item>
  428. </el-col>
  429. <el-col :span="8">
  430. <el-form-item label="联系人" prop="fContacts">
  431. <el-select
  432. v-model="form.fContacts"
  433. filterable
  434. remote
  435. :remote-method="userRemoteMethod"
  436. style="width: 220px"
  437. placeholder="请选择联系人">
  438. <el-option
  439. v-for="dict in userOptions"
  440. :key="dict.userName"
  441. :label="dict.nickName"
  442. :value="dict.userName"
  443. ></el-option>
  444. </el-select>
  445. </el-form-item>
  446. </el-col>
  447. <el-col :span="8">
  448. <el-form-item label="电话" prop="ftel">
  449. <el-input v-model="form.fTel" style="width: 220px" placeholder="请输入电话"/>
  450. </el-form-item>
  451. </el-col>
  452. </el-row>
  453. <el-row>
  454. <el-col :span="8">
  455. <el-form-item label="提单号" prop="fmblno">
  456. <el-input v-model="form.fMblno" style="width: 220px" placeholder="请输入提单号"/>
  457. </el-form-item>
  458. </el-col>
  459. <el-col :span="8">
  460. <el-form-item label="船名航次" prop="fvslvoy">
  461. <el-input v-model="form.fVslvoy" style="width: 220px" placeholder="船名航次"/>
  462. </el-form-item>
  463. </el-col>
  464. <el-col :span="8">
  465. <el-form-item label="到港日期" prop="feta">
  466. <el-date-picker
  467. v-model="form.fEta"
  468. style="width: 220px"
  469. type="date"
  470. value-format="timestamp"
  471. placeholder="到港日期"
  472. >
  473. </el-date-picker>
  474. </el-form-item>
  475. </el-col>
  476. </el-row>
  477. <el-row>
  478. <el-col :span="8">
  479. <el-form-item label="报关单号" prop="fcustomno">
  480. <el-input v-model="form.fCustomno" style="width: 220px" laceholder="报关单号"/>
  481. </el-form-item>
  482. </el-col>
  483. <el-col :span="8">
  484. <el-form-item label="贸易方式" prop="ftrademodeid">
  485. <el-select v-model="form.fTrademodeid" placeholder="请选择贸易方式" clearable style="width: 220px">
  486. <el-option
  487. v-for="dict in fTrademodeidOptions"
  488. :key="dict.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="fstltypeid">
  497. <el-select
  498. v-model="form.fStltypeid"
  499. placeholder="请选择结算方式"
  500. clearable
  501. style="width: 220px;"
  502. >
  503. <el-option
  504. v-for="dict in fStltypeOptions"
  505. :key="dict.dictValue"
  506. :label="dict.dictLabel"
  507. :value="dict.dictValue"
  508. />
  509. </el-select>
  510. </el-form-item>
  511. </el-col>
  512. </el-row>
  513. <el-row>
  514. <el-col :span="8">
  515. <el-form-item label="仓库" prop="fwarehouseid">
  516. <el-select
  517. v-model="form.fWarehouseid"
  518. filterable
  519. remote
  520. style="width: 220px"
  521. :remote-method="warehouseRemoteMethod"
  522. placeholder="请选择仓库">
  523. <el-option
  524. v-for="dict in warehouseOptions"
  525. :key="dict.fId"
  526. :label="dict.fName"
  527. :value="dict.fId"
  528. ></el-option>
  529. </el-select>
  530. </el-form-item>
  531. </el-col>
  532. <el-col :span="8">
  533. <el-form-item label="仓管员" prop="fstorekeeper">
  534. <el-input v-model="form.fStorekeeper" placeholder="请输入仓管员" style="width: 220px"/>
  535. </el-form-item>
  536. </el-col><el-col :span="8">
  537. <el-form-item label="入库日期" prop="fbsdate">
  538. <el-date-picker
  539. v-model="form.fBsdate"
  540. style="width: 220px"
  541. type="date"
  542. value-format="timestamp"
  543. placeholder="入库日期"
  544. >
  545. </el-date-picker>
  546. </el-form-item>
  547. </el-col>
  548. </el-row>
  549. <el-row>
  550. <el-col :span="8">
  551. <el-form-item label="是否质押" prop="fifpledge">
  552. <el-select
  553. v-model="form.fIfpledge"
  554. placeholder="请选择是否过磅"
  555. clearable
  556. style="width: 220px"
  557. >
  558. <el-option
  559. v-for="dict in fIfpledgeOptions"
  560. :key="dict.dictValue"
  561. :label="dict.dictLabel"
  562. :value="dict.dictValue"
  563. />
  564. </el-select>
  565. </el-form-item>
  566. </el-col>
  567. <el-col :span="8">
  568. <el-form-item label="银行名称" prop="fbankcorpid">
  569. <el-input v-model="form.fBankcorpid" laceholder="银行名称" style="width: 220px"/>
  570. </el-form-item>
  571. </el-col>
  572. <el-col :span="8">
  573. <el-form-item label="经营单位" prop="fsbu">
  574. <el-select
  575. v-model="form.fSbu"
  576. filterable
  577. remote
  578. :remote-method="fSbuRemoteMethod"
  579. style="width: 220px"
  580. placeholder="请选择经营单位">
  581. <el-option
  582. v-for="dict in fSbuOptions"
  583. :key="dict.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="fifweigh">
  594. <el-select
  595. v-model="form.fIfweigh"
  596. placeholder="请选择是否过磅"
  597. clearable
  598. style="width: 220px"
  599. >
  600. <el-option
  601. v-for="dict in fIfweighOptions"
  602. :key="dict.dictValue"
  603. :label="dict.dictLabel"
  604. :value="dict.dictValue"
  605. />
  606. </el-select>
  607. </el-form-item>
  608. </el-col>
  609. <el-col :span="8">
  610. <el-form-item label="是否破损" prop="fifdamage">
  611. <el-select
  612. v-model="form.fIfdamage"
  613. placeholder="请选择是否破损"
  614. clearable
  615. style="width: 220px"
  616. >
  617. <el-option
  618. v-for="dict in fIfdamageOptions"
  619. :key="dict.dictValue"
  620. :label="dict.dictLabel"
  621. :value="dict.dictValue"
  622. />
  623. </el-select>
  624. </el-form-item>
  625. </el-col>
  626. <el-col :span="8">
  627. <el-form-item label="客户存货编号" prop="fbscorpno">
  628. <el-input v-model="form.fBscorpno" style="width: 220px" laceholder="客户存货编号"/>
  629. </el-form-item>
  630. </el-col>
  631. </el-row>
  632. <el-row>
  633. <el-col :span="8">
  634. <el-form-item label="计费方式" prop="fbillingway">
  635. <el-select v-model="form.fBillingway "
  636. placeholder="请选择计费方式"
  637. clearable
  638. style="width: 220px"
  639. >
  640. <el-option
  641. v-for="dict in fFeetunitOptions"
  642. :key="dict.dictValue"
  643. :label="dict.dictLabel"
  644. :value="dict.dictValue"
  645. />
  646. </el-select>
  647. </el-form-item>
  648. </el-col>
  649. <el-col :span="8">
  650. <el-form-item label="计费单位" prop="ffeetunit">
  651. <el-select
  652. v-model="form.fFeetunit"
  653. placeholder="请选择计费单位"
  654. clearable
  655. style="width: 220px"
  656. >
  657. <el-option
  658. v-for="dict in fFeetunitOptions"
  659. :key="dict.dictValue"
  660. :label="dict.dictLabel"
  661. :value="dict.dictValue"
  662. />
  663. </el-select>
  664. </el-form-item>
  665. </el-col>
  666. </el-row>
  667. <el-row>
  668. <el-form-item label="备注" prop="remark">
  669. <el-input
  670. style="width: 100%"
  671. v-model="form.remark"
  672. type="textarea"
  673. placeholder="请输入内容"
  674. />
  675. </el-form-item>
  676. </el-row>
  677. </el-form>
  678. <div class="dialogTableTitle flex a-center jlr">
  679. <h2>库存明细</h2>
  680. <el-button :disabled="browseStatus" @click.prevent="addRelevant()"
  681. >添加
  682. </el-button
  683. >
  684. </div>
  685. <el-table :data="dataList" ref="table" tooltip-effect="dark" border stripe show-summary>
  686. <el-table-column label="序号" type="index" width="80">
  687. </el-table-column>
  688. <el-table-column
  689. prop="fbsdate"
  690. header-align="center"
  691. align="center"
  692. label="入库日期"
  693. >
  694. <template slot-scope="scope">
  695. <el-date-picker
  696. v-model="scope.row.fBsdate"
  697. style="width: 375px"
  698. type="date"
  699. value-format="timestamp"
  700. placeholder=入库日期
  701. >
  702. </el-date-picker>
  703. </template>
  704. </el-table-column>
  705. <el-table-column
  706. prop="fgoodsid"
  707. header-align="center"
  708. align="center"
  709. label="品名"
  710. >
  711. <template slot-scope="scope">
  712. <el-select
  713. v-model="scope.row.fGoodsid"
  714. filterable
  715. remote
  716. :remote-method="goodsRemoteMethod"
  717. placeholder="请选择品名">
  718. <el-option
  719. v-for="dict in goodsOptions"
  720. :key="dict.fId"
  721. :label="dict.fName"
  722. :value="dict.fId"
  723. ></el-option>
  724. </el-select>
  725. </template>
  726. </el-table-column>
  727. <el-table-column
  728. prop="fcntrtype"
  729. header-align="center"
  730. align="center"
  731. label="箱型"
  732. >
  733. <template slot-scope="scope">
  734. <el-input
  735. oninput="value=value.replace(/[^\d.]/g,'')"
  736. v-model="scope.row.fCntrtype"
  737. placeholder="箱型"
  738. show-word-limit
  739. />
  740. </template>
  741. </el-table-column>
  742. <el-table-column
  743. prop="fCntqty"
  744. header-align="center"
  745. align="center"
  746. label="箱量"
  747. >
  748. <template slot-scope="scope">
  749. <el-input
  750. oninput="value=value.replace(/[^\d.]/g,'')"
  751. v-model="scope.row.fCntqty"
  752. placeholder="箱量"
  753. show-word-limit
  754. />
  755. </template>
  756. </el-table-column>
  757. <el-table-column
  758. prop="fplangrossweight"
  759. header-align="center"
  760. align="center"
  761. label="计划毛重"
  762. >
  763. <template slot-scope="scope">
  764. <el-input
  765. oninput="value=value.replace(/[^\d.]/g,'')"
  766. v-model="scope.row.fPlangrossweight"
  767. placeholder="计划毛重"
  768. show-word-limit
  769. />
  770. </template>
  771. </el-table-column>
  772. <el-table-column
  773. prop="fplannetweight"
  774. header-align="center"
  775. align="center"
  776. label="计划净重"
  777. >
  778. <template slot-scope="scope">
  779. <el-input
  780. oninput="value=value.replace(/[^\d.]/g,'')"
  781. v-model="scope.row.fplannetweight"
  782. placeholder="计划净重"
  783. show-word-limit
  784. />
  785. </template>
  786. </el-table-column>
  787. <el-table-column
  788. prop="fplanvolumn"
  789. header-align="center"
  790. align="center"
  791. label="计划尺码"
  792. >
  793. <template slot-scope="scope">
  794. <el-input
  795. oninput="value=value.replace(/[^\d.]/g,'')"
  796. v-model="scope.row.fPlanvolumn"
  797. placeholder="尺码"
  798. show-word-limit
  799. />
  800. </template>
  801. </el-table-column>
  802. <el-table-column
  803. prop="fplanqty"
  804. header-align="center"
  805. align="center"
  806. label="计划件数"
  807. >
  808. <template slot-scope="scope">
  809. <el-input
  810. oninput="value=value.replace(/[^\d.]/g,'')"
  811. v-model="scope.row.fPlanqty"
  812. placeholder="件数"
  813. show-word-limit
  814. />
  815. </template>
  816. </el-table-column>
  817. <el-table-column
  818. prop="fgrossweight"
  819. header-align="center"
  820. align="center"
  821. label="入库毛重"
  822. >
  823. <template slot-scope="scope">
  824. <el-input
  825. oninput="value=value.replace(/[^\d.]/g,'')"
  826. v-model="scope.row.fGrossweight"
  827. placeholder="入库毛重"
  828. show-word-limit
  829. />
  830. </template>
  831. </el-table-column>
  832. <el-table-column
  833. prop="fnetweight"
  834. header-align="center"
  835. align="center"
  836. label="入库净重"
  837. >
  838. <template slot-scope="scope">
  839. <el-input
  840. oninput="value=value.replace(/[^\d.]/g,'')"
  841. v-model="scope.row.fNetweight"
  842. placeholder="入库净重"
  843. show-word-limit
  844. />
  845. </template>
  846. </el-table-column>
  847. <el-table-column
  848. prop="fqty"
  849. header-align="center"
  850. align="center"
  851. label="入库件数"
  852. >
  853. <template slot-scope="scope">
  854. <el-input
  855. oninput="value=value.replace(/[^\d.]/g,'')"
  856. v-model="scope.row.fQty"
  857. placeholder="入库件数"
  858. show-word-limit
  859. />
  860. </template>
  861. </el-table-column>
  862. <el-table-column
  863. prop="fPackagespecs"
  864. header-align="center"
  865. align="center"
  866. label="包装规格"
  867. >
  868. <template slot-scope="scope">
  869. <el-input
  870. oninput="value=value.replace(/[^\d.]/g,'')"
  871. v-model="scope.row.fPackagespecs"
  872. placeholder="包装规格"
  873. show-word-limit
  874. />
  875. </template>
  876. </el-table-column>
  877. <el-table-column
  878. prop="fwarehouselocid"
  879. header-align="center"
  880. align="center"
  881. label="库区"
  882. >
  883. <template slot-scope="scope">
  884. <el-input
  885. oninput="value=value.replace(/[^\d.]/g,'')"
  886. v-model="scope.row.fWarehouselocid"
  887. placeholder="库区"
  888. show-word-limit
  889. />
  890. </template>
  891. </el-table-column>
  892. <el-table-column
  893. prop="fBoxno"
  894. header-align="center"
  895. align="center"
  896. label="箱号"
  897. >
  898. <template slot-scope="scope">
  899. <el-input
  900. v-model="scope.row.fBoxno"
  901. placeholder="箱号"
  902. show-word-limit
  903. />
  904. </template>
  905. </el-table-column>
  906. <el-table-column
  907. prop="fGoodsval"
  908. header-align="center"
  909. align="center"
  910. label="货值"
  911. >
  912. <template slot-scope="scope">
  913. <el-input
  914. oninput="value=value.replace(/[^\d.]/g,'')"
  915. v-model="scope.row.fGoodsval"
  916. placeholder="货值"
  917. show-word-limit
  918. />
  919. </template>
  920. </el-table-column>
  921. <el-table-column
  922. prop="ftruckno"
  923. header-align="center"
  924. align="center"
  925. label="车号"
  926. >
  927. <template slot-scope="scope">
  928. <el-input
  929. oninput="value=value.replace(/[^\d.]/g,'')"
  930. v-model="scope.row.fTruckno"
  931. placeholder="车号"
  932. show-word-limit
  933. />
  934. </template>
  935. </el-table-column>
  936. <el-table-column
  937. prop="remark"
  938. header-align="center"
  939. align="center"
  940. label="备注"
  941. >
  942. <template slot-scope="scope">
  943. <el-input
  944. v-model="scope.row.remark"
  945. placeholder="备注"
  946. show-word-limit
  947. />
  948. </template>
  949. </el-table-column>
  950. <el-table-column
  951. header-align="center"
  952. align="center"
  953. label="操作"
  954. width="130PX">
  955. <template slot-scope="scope">
  956. <el-button @click.native.prevent="deleteRow(scope.$index, dataList)" size="small">移除</el-button>
  957. </template>
  958. </el-table-column>
  959. </el-table>
  960. <div class="dialogTableTitle flex a-center jlr">
  961. <h2>附件上传</h2>
  962. <el-button :disabled="browseStatus" @click.prevent="addRelevt()"
  963. >添加
  964. </el-button
  965. >
  966. </div>
  967. <el-table
  968. :data="relevantAttachments"
  969. ref="table"
  970. tooltip-effect="dark"
  971. border
  972. stripe
  973. style="width: 100%"
  974. height="150"
  975. >
  976. <el-table-column label="序号" type="index" width="80">
  977. </el-table-column>
  978. <el-table-column
  979. prop="attachName"
  980. header-align="center"
  981. align="center"
  982. label="附件名称"
  983. >
  984. <template slot-scope="scope">
  985. <el-input
  986. v-model="scope.row.attachName"
  987. :disabled="browseStatus"
  988. placeholder="附件名称"
  989. show-word-limit
  990. />
  991. </template>
  992. </el-table-column>
  993. <el-table-column
  994. prop="opUserName"
  995. header-align="center"
  996. align="center"
  997. label="上传人"
  998. >
  999. </el-table-column>
  1000. <el-table-column
  1001. prop="opDate"
  1002. header-align="center"
  1003. align="center"
  1004. label="上传时间"
  1005. >
  1006. <template slot-scope="scope">
  1007. <el-date-picker
  1008. v-model="scope.row.opDate"
  1009. type="date"
  1010. disabled
  1011. placeholder="上传时间"
  1012. format="yyyy-MM-dd HH:mm"
  1013. value-format="timestamp"
  1014. ></el-date-picker>
  1015. </template>
  1016. </el-table-column>
  1017. <el-table-column
  1018. header-align="center"
  1019. align="center"
  1020. width="250PX"
  1021. label="上传附件"
  1022. >
  1023. <template slot-scope="scope">
  1024. <el-button style="float: left; height: 38px">
  1025. <a
  1026. :href="scope.row.attachId"
  1027. target="_blank"
  1028. class="buttonText"
  1029. style="float: left; margin-left: 1px"
  1030. >查看</a
  1031. >
  1032. </el-button>
  1033. <el-upload
  1034. class="upload-demo"
  1035. ref="upload"
  1036. action="node"
  1037. :on-change="checkType"
  1038. :disabled="browseStatus"
  1039. :show-file-list="false"
  1040. :auto-upload="false"
  1041. style="float: left"
  1042. >
  1043. <el-button
  1044. slot="trigger"
  1045. @click="clickAttachId(scope.$index)"
  1046. size="small"
  1047. type="primary"
  1048. style="margin-left: 5px"
  1049. >上传
  1050. </el-button>
  1051. </el-upload>
  1052. <el-button
  1053. style="margin-left: 5px"
  1054. @click.native.prevent="deleteAttach(scope.row)"
  1055. :disabled="browseStatus"
  1056. size="small"
  1057. >删除
  1058. </el-button>
  1059. </template>
  1060. </el-table-column>
  1061. <el-table-column
  1062. header-align="center"
  1063. align="center"
  1064. label="操作"
  1065. width="130PX"
  1066. >
  1067. <template slot-scope="scope">
  1068. <el-button
  1069. @click.native.prevent="deleteRow(scope.$index, relevantAttachments)"
  1070. :disabled="browseStatus"
  1071. size="small"
  1072. >移除
  1073. </el-button>
  1074. </template>
  1075. </el-table-column>
  1076. </el-table>
  1077. <div class="dialogTableTitle flex a-center jlr">
  1078. <h2>收款信息</h2>
  1079. <el-button :disabled="browseStatus" @click.prevent="addCollection()"
  1080. >添加
  1081. </el-button
  1082. >
  1083. </div>
  1084. <el-table
  1085. :data="warehouseDrList"
  1086. ref="table"
  1087. tooltip-effect="dark"
  1088. border
  1089. stripe
  1090. show-summary
  1091. >
  1092. <el-table-column label="序号" type="index" width="80">
  1093. </el-table-column>
  1094. <el-table-column
  1095. prop="fcorpid"
  1096. header-align="center"
  1097. align="center"
  1098. label="客户名称"
  1099. >
  1100. <template slot-scope="scope">
  1101. <el-input
  1102. v-model="scope.row.fCorpid"
  1103. :disabled="browseStatus"
  1104. placeholder="客户名称"
  1105. show-word-limit
  1106. />
  1107. </template>
  1108. </el-table-column>
  1109. <el-table-column
  1110. prop="ffeeid"
  1111. header-align="center"
  1112. align="center"
  1113. label="费用名称"
  1114. >
  1115. <template slot-scope="scope">
  1116. <el-input
  1117. v-model="scope.row.fFeeid"
  1118. placeholder="费用名称"
  1119. show-word-limit
  1120. />
  1121. </template>
  1122. </el-table-column>
  1123. <el-table-column
  1124. prop="ffeeUnitid"
  1125. header-align="center"
  1126. align="center"
  1127. label="计价单位">
  1128. <template slot-scope="scope">
  1129. <el-input
  1130. v-model="scope.row.fFeeUnitid"
  1131. placeholder="计价单位"
  1132. show-word-limit
  1133. />
  1134. </template>
  1135. </el-table-column>
  1136. <el-table-column
  1137. prop="fQty"
  1138. header-align="center"
  1139. align="center"
  1140. label="数量"
  1141. >
  1142. <template slot-scope="scope">
  1143. <el-input
  1144. oninput="value=value.replace(/[^\d.]/g,'')"
  1145. v-model="scope.row.fQty"
  1146. placeholder="数量"
  1147. show-word-limit
  1148. />
  1149. </template>
  1150. </el-table-column>
  1151. <el-table-column
  1152. prop="funitprice"
  1153. header-align="center"
  1154. align="center"
  1155. label="单价"
  1156. >
  1157. <template slot-scope="scope">
  1158. <el-input
  1159. oninput="value=value.replace(/[^\d.]/g,'')"
  1160. v-model="scope.row.fUnitprice"
  1161. placeholder="单价"
  1162. show-word-limit
  1163. />
  1164. </template>
  1165. </el-table-column>
  1166. <el-table-column
  1167. prop="fAmount"
  1168. header-align="center"
  1169. align="center"
  1170. label="金额"
  1171. >
  1172. <template slot-scope="scope">
  1173. <el-input
  1174. disabled
  1175. oninput="value=value.replace(/[^\d.]/g,'')"
  1176. v-model="scope.row.fAmount"
  1177. placeholder="金额"
  1178. show-word-limit
  1179. />
  1180. </template>
  1181. </el-table-column>
  1182. <el-table-column
  1183. prop="fCurrency"
  1184. header-align="center"
  1185. align="center"
  1186. label="币别"
  1187. >
  1188. <template slot-scope="scope">
  1189. <el-input
  1190. v-model="scope.row.fCurrency"
  1191. :disabled="browseStatus"
  1192. placeholder="币别"
  1193. show-word-limit
  1194. />
  1195. </template>
  1196. </el-table-column>
  1197. <el-table-column
  1198. prop="fCxrate"
  1199. header-align="center"
  1200. align="center"
  1201. label="汇率"
  1202. >
  1203. <template slot-scope="scope">
  1204. <el-input
  1205. v-model="scope.row.fCxrate"
  1206. :disabled="browseStatus"
  1207. placeholder="汇率"
  1208. show-word-limit
  1209. />
  1210. </template>
  1211. </el-table-column>
  1212. <el-table-column
  1213. prop="fRate"
  1214. header-align="center"
  1215. align="center"
  1216. label="税率"
  1217. >
  1218. <template slot-scope="scope">
  1219. <el-input
  1220. v-model="scope.row.fRate"
  1221. :disabled="browseStatus"
  1222. placeholder="税率"
  1223. show-word-limit
  1224. />
  1225. </template>
  1226. </el-table-column>
  1227. <el-table-column
  1228. prop="remarks"
  1229. header-align="center"
  1230. align="center"
  1231. label="备注"
  1232. >
  1233. <template slot-scope="scope">
  1234. <el-input
  1235. v-model="scope.row.remarks"
  1236. :disabled="browseStatus"
  1237. placeholder="备注"
  1238. show-word-limit
  1239. />
  1240. </template>
  1241. </el-table-column>
  1242. <el-table-column
  1243. header-align="center"
  1244. align="center"
  1245. label="操作"
  1246. width="130PX">
  1247. <template slot-scope="scope">
  1248. <el-button size="small">审核费用</el-button>
  1249. <el-button @click.native.prevent="deleteRow(scope.$index, warehouseDrList)" size="small">移除</el-button>
  1250. </template>
  1251. </el-table-column>
  1252. </el-table>
  1253. <div class="dialogTableTitle flex a-center jlr">
  1254. <h2>付款信息</h2>
  1255. <el-button :disabled="browseStatus" @click.prevent="addpayment()"
  1256. >添加
  1257. </el-button
  1258. >
  1259. </div>
  1260. <el-table
  1261. :data="warehouseCrList"
  1262. ref="table"
  1263. tooltip-effect="dark"
  1264. border
  1265. stripe
  1266. show-summary
  1267. >
  1268. <el-table-column label="序号" type="index" width="80">
  1269. </el-table-column>
  1270. <el-table-column
  1271. prop="fcorpid"
  1272. header-align="center"
  1273. align="center"
  1274. label="客户名称"
  1275. >
  1276. <template slot-scope="scope">
  1277. <el-input
  1278. v-model="scope.row.fCorpid"
  1279. :disabled="browseStatus"
  1280. placeholder="客户名称"
  1281. show-word-limit
  1282. />
  1283. </template>
  1284. </el-table-column>
  1285. <el-table-column
  1286. prop="ffeeid"
  1287. header-align="center"
  1288. align="center"
  1289. label="费用名称"
  1290. >
  1291. <template slot-scope="scope">
  1292. <el-input
  1293. v-model="scope.row.fFeeid"
  1294. placeholder="费用名称"
  1295. show-word-limit
  1296. />
  1297. </template>
  1298. </el-table-column>
  1299. <el-table-column
  1300. prop="ffeeUnitid"
  1301. header-align="center"
  1302. align="center"
  1303. label="计价单位">
  1304. <template slot-scope="scope">
  1305. <el-input
  1306. v-model="scope.row.fFeeUnitid"
  1307. placeholder="计价单位"
  1308. show-word-limit
  1309. />
  1310. </template>
  1311. </el-table-column>
  1312. <el-table-column
  1313. prop="fQty"
  1314. header-align="center"
  1315. align="center"
  1316. label="数量"
  1317. >
  1318. <template slot-scope="scope">
  1319. <el-input
  1320. oninput="value=value.replace(/[^\d.]/g,'')"
  1321. v-model="scope.row.fQty"
  1322. placeholder="数量"
  1323. show-word-limit
  1324. />
  1325. </template>
  1326. </el-table-column>
  1327. <el-table-column
  1328. prop="funitprice"
  1329. header-align="center"
  1330. align="center"
  1331. label="单价"
  1332. >
  1333. <template slot-scope="scope">
  1334. <el-input
  1335. oninput="value=value.replace(/[^\d.]/g,'')"
  1336. v-model="scope.row.fUnitprice"
  1337. placeholder="单价"
  1338. show-word-limit
  1339. />
  1340. </template>
  1341. </el-table-column>
  1342. <el-table-column
  1343. prop="fAmount"
  1344. header-align="center"
  1345. align="center"
  1346. label="金额"
  1347. >
  1348. <template slot-scope="scope">
  1349. <el-input
  1350. disabled
  1351. oninput="value=value.replace(/[^\d.]/g,'')"
  1352. v-model="scope.row.fAmount"
  1353. placeholder="金额"
  1354. show-word-limit
  1355. />
  1356. </template>
  1357. </el-table-column>
  1358. <el-table-column
  1359. prop="fCurrency"
  1360. header-align="center"
  1361. align="center"
  1362. label="币别"
  1363. >
  1364. <template slot-scope="scope">
  1365. <el-input
  1366. v-model="scope.row.fCurrency"
  1367. :disabled="browseStatus"
  1368. placeholder="币别"
  1369. show-word-limit
  1370. />
  1371. </template>
  1372. </el-table-column>
  1373. <el-table-column
  1374. prop="fCxrate"
  1375. header-align="center"
  1376. align="center"
  1377. label="汇率"
  1378. >
  1379. <template slot-scope="scope">
  1380. <el-input
  1381. v-model="scope.row.fCxrate"
  1382. :disabled="browseStatus"
  1383. placeholder="汇率"
  1384. show-word-limit
  1385. />
  1386. </template>
  1387. </el-table-column>
  1388. <el-table-column
  1389. prop="fRate"
  1390. header-align="center"
  1391. align="center"
  1392. label="税率"
  1393. >
  1394. <template slot-scope="scope">
  1395. <el-input
  1396. v-model="scope.row.fRate"
  1397. :disabled="browseStatus"
  1398. placeholder="税率"
  1399. show-word-limit
  1400. />
  1401. </template>
  1402. </el-table-column>
  1403. <el-table-column
  1404. prop="remarks"
  1405. header-align="center"
  1406. align="center"
  1407. label="备注"
  1408. >
  1409. <template slot-scope="scope">
  1410. <el-input
  1411. v-model="scope.row.remarks"
  1412. :disabled="browseStatus"
  1413. placeholder="备注"
  1414. show-word-limit
  1415. />
  1416. </template>
  1417. </el-table-column>
  1418. <el-table-column
  1419. header-align="center"
  1420. align="center"
  1421. label="操作"
  1422. width="130PX">
  1423. <template slot-scope="scope">
  1424. <el-button size="small">审核费用</el-button>
  1425. <el-button @click.native.prevent="deleteRow(scope.$index, warehouseCrList)" size="small">移除</el-button>
  1426. </template>
  1427. </el-table-column>
  1428. </el-table>
  1429. <div slot="footer" class="dialog-footer">
  1430. <el-button type="primary" @click="submitForm">确 定</el-button>
  1431. <el-button @click="cancel">取 消</el-button>
  1432. </div>
  1433. </el-dialog>
  1434. </div>
  1435. </template>
  1436. <script>
  1437. import {
  1438. listWarehousebills,
  1439. getWarehousebills,
  1440. delWarehousebills,
  1441. addWarehousebills,
  1442. updateWarehousebills,
  1443. exportWarehousebills,
  1444. } from "@/api/warehouseBusiness/warehouseInStock";
  1445. import {listCorps} from "@/api/basicdata/corps";
  1446. import {listWarehouse} from "@/api/basicdata/warehouse";
  1447. import {listGoods} from "@/api/basicdata/goods";
  1448. import {listUser, queryUserVal} from "@/api/system/user";
  1449. export default {
  1450. name: "Warehousebills",
  1451. components: {},
  1452. data() {
  1453. return {
  1454. // 遮罩层
  1455. loading: true,
  1456. // 选中数组
  1457. ids: [],
  1458. userVal: {
  1459. userName: null,
  1460. nickName: null,
  1461. deptId: null
  1462. },
  1463. queryForm: {},
  1464. dataList: [],
  1465. warehouseCrList: [],
  1466. warehouseDrList: [],
  1467. browseStatus: false,
  1468. relevantAttachments: [],
  1469. // 非单个禁用
  1470. single: true,
  1471. // 非多个禁用
  1472. multiple: true,
  1473. // 显示搜索条件
  1474. showSearch: true,
  1475. // 总条数
  1476. total: 0,
  1477. // 仓库主(出入库)表格数据
  1478. warehousebillsList: [],
  1479. // 弹出层标题
  1480. title: "",
  1481. // 是否显示弹出层
  1482. open: false,
  1483. // 货权方(客户数据)
  1484. fMblnoOptions: [],
  1485. // 货权方(客户数据)
  1486. fSbuOptions: [],
  1487. // 操作员
  1488. userOptions: [],
  1489. // 操作员
  1490. goodsOptions: [],
  1491. // 制单部门
  1492. deptOptions: [],
  1493. // 仓库(仓库数据)
  1494. warehouseOptions: [],
  1495. // 贸易方式(数据字典),对应t_trademodels 字典
  1496. fTrademodeidOptions: [],
  1497. // 计费单位(数据字典),下拉选择毛重或净重字典
  1498. fFeetunitOptions: [],
  1499. // 结算方式(数据字典),下拉选择字典
  1500. fStltypeOptions: [],
  1501. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典
  1502. fIfweighOptions: [],
  1503. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典
  1504. fIfpledgeOptions: [],
  1505. // 是否破损(数据字典),默认F否则T字典
  1506. fIfdamageOptions: [],
  1507. // 单据类型(数据字典)SJRK字典
  1508. fBilltypeOptions: [],
  1509. // 状态(数据字典),N 入字典
  1510. fBillstatusOptions: [],
  1511. // 查询参数
  1512. queryParams: {
  1513. pageNum: 1,
  1514. pageSize: 10,
  1515. fBillno: null,
  1516. createBy: null,
  1517. createTime: null,
  1518. fCustomsdeclartion: null,
  1519. fOriginalbillno: null,
  1520. fDeptid: null,
  1521. fBsdeptid: null,
  1522. fContacts: null,
  1523. fTel: null,
  1524. fCorpid: null,
  1525. fTocorpid: null,
  1526. fStltypeid: null,
  1527. fBscorpno: null,
  1528. fWarehouseid: null,
  1529. fStorekeeper: null,
  1530. fBsdate: null,
  1531. fPlanqty: null,
  1532. fPlangrossweight: null,
  1533. fPlannetweight: null,
  1534. fPlanvolumn: null,
  1535. fQty: null,
  1536. fGrossweight: null,
  1537. fNetweight: null,
  1538. fVolumn: null,
  1539. fTrademodeid: null,
  1540. fSbu: null,
  1541. fFeetunit: null,
  1542. fMblno: null,
  1543. fVslvoy: null,
  1544. fEta: null,
  1545. fCustomno: null,
  1546. fIfweigh: null,
  1547. fIfpledge: null,
  1548. fIfdamage: null,
  1549. fBankcorpid: null,
  1550. fBilltype: null,
  1551. fBillstatus: null,
  1552. fCreateby: null,
  1553. fCreatetime: null,
  1554. fGoodsid: null,
  1555. fCntrtype: null,
  1556. fCntqty: null
  1557. },
  1558. // 表单参数
  1559. form: {},
  1560. // 表单校验
  1561. rules: {
  1562. fDeptid: [
  1563. {required: true, message: "制单部门不能为空", trigger: "blur"},
  1564. ],
  1565. fBsdeptid: [
  1566. {required: true, message: "业务所属部门不能为空", trigger: "blur"},
  1567. ],
  1568. fCorpid: [
  1569. {
  1570. required: true,
  1571. message:
  1572. "客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name不能为空",
  1573. trigger: "blur",
  1574. },
  1575. ],
  1576. fTocorpid: [
  1577. {
  1578. required: true,
  1579. message:
  1580. "货转客户名称,t_corps 中的no或 name,模糊查找选择后,存储id,显示name,自有在货权转移是该字段有效不能为空",
  1581. trigger: "blur",
  1582. },
  1583. ],
  1584. fBscorpno: [
  1585. {
  1586. required: true,
  1587. message:
  1588. "客户存货编号,格式编号客户编号+YYYY +NNNN,编号不能断号,要连续、如果删除该编号,下次新建单据,优先使用,每年从001开始不能为空",
  1589. trigger: "blur",
  1590. },
  1591. ],
  1592. },
  1593. };
  1594. },
  1595. created() {
  1596. this.getList();
  1597. this.getDicts("data_trademodes").then((response) => {
  1598. this.fTrademodeidOptions = response.data;
  1599. });
  1600. this.getDicts("data_unitfees").then((response) => {
  1601. this.fFeetunitOptions = response.data;
  1602. });
  1603. this.getDicts("data_stltype_type").then((response) => {
  1604. this.fStltypeOptions = response.data;
  1605. });
  1606. this.getDicts("data_ifweigh_status").then((response) => {
  1607. this.fIfweighOptions = response.data;
  1608. });
  1609. this.getDicts("data_ifpledge_status").then((response) => {
  1610. this.fIfpledgeOptions = response.data;
  1611. });
  1612. this.getDicts("data_ifdamage_status").then((response) => {
  1613. this.fIfdamageOptions = response.data;
  1614. });
  1615. this.getDicts("data_billtype_type").then((response) => {
  1616. this.fBilltypeOptions = response.data;
  1617. });
  1618. this.getDicts("sys_common_status").then((response) => {
  1619. this.fBillstatusOptions = response.data;
  1620. });
  1621. },
  1622. methods: {
  1623. // 添加list
  1624. addRelevant() {
  1625. console.log(JSON.stringify(this.dataList))
  1626. this.dataList.push({
  1627. fbsdate: null,
  1628. fgoodsid: null,
  1629. fcntrtype: null,
  1630. fCntqty: null,
  1631. fplangrossweight: null,
  1632. fplanvolumn: null,
  1633. fplanqty: null,
  1634. fgrossweight: null,
  1635. fqty: null,
  1636. fPackagespecs: null,
  1637. fwarehouselocid: null,
  1638. fBoxno: null,
  1639. fGoodsval: null,
  1640. ftruckno: null,
  1641. remark: null
  1642. });
  1643. },
  1644. // 收款信息
  1645. addCollection() {
  1646. var obj = {};
  1647. this.warehouseDrList.push(obj);
  1648. },
  1649. addpayment() {
  1650. var obj = {};
  1651. this.warehouseCrList.push(obj);
  1652. },
  1653. queryUser() {
  1654. queryUserVal().then((response) => {
  1655. if (response.user !== null) {
  1656. this.userVal = response.user
  1657. this.$set(this.form, 'fDeptid', this.userVal.deptId)
  1658. this.$set(this.form, 'createBy', this.userVal.userName)
  1659. this.$set(this.form, 'createTime', Date.parse(new Date()))
  1660. }
  1661. if (response.dept !== null) {
  1662. this.deptOptions = []
  1663. this.deptOptions.push(response.dept)
  1664. }
  1665. });
  1666. },
  1667. /** 查询仓库主(出入库)列表 */
  1668. getList() {
  1669. this.loading = true;
  1670. listWarehousebills(this.queryParams).then((response) => {
  1671. this.warehousebillsList = response.rows;
  1672. this.total = response.total;
  1673. this.loading = false;
  1674. });
  1675. },
  1676. // 贸易方式(数据字典),对应t_trademodels 字典翻译
  1677. fTrademodeidFormat(row, column) {
  1678. return this.selectDictLabel(this.fTrademodeidOptions, row.fTrademodeid);
  1679. },
  1680. // 计费单位(数据字典),下拉选择毛重或净重字典翻译
  1681. fFeetunitFormat(row, column) {
  1682. return this.selectDictLabel(this.fFeetunitOptions, row.fFeetunit);
  1683. },
  1684. // 是否过磅(数据字典)默认 F ,过磅T 否者F 下拉选择字典翻译
  1685. fIfweighFormat(row, column) {
  1686. return this.selectDictLabel(this.fIfweighOptions, row.fIfweigh);
  1687. },
  1688. // 是否质押(数据字典),默认 F ,质押T 否者F 下拉选择字典翻译
  1689. fIfpledgeFormat(row, column) {
  1690. return this.selectDictLabel(this.fIfpledgeOptions, row.fIfpledge);
  1691. },
  1692. // 是否破损(数据字典),默认F否则T字典翻译
  1693. fIfdamageFormat(row, column) {
  1694. return this.selectDictLabel(this.fIfdamageOptions, row.fIfdamage);
  1695. },
  1696. // 单据类型(数据字典)SJRK字典翻译
  1697. fBilltypeFormat(row, column) {
  1698. return this.selectDictLabel(this.fBilltypeOptions, row.fBilltype);
  1699. },
  1700. // 状态(数据字典),N 入字典翻译
  1701. fBillstatusFormat(row, column) {
  1702. return this.selectDictLabel(this.fBillstatusOptions, row.fBillstatus);
  1703. },
  1704. // 取消按钮
  1705. cancel() {
  1706. this.open = false;
  1707. this.reset();
  1708. },
  1709. // 表单重置
  1710. reset() {
  1711. this.form = {
  1712. fId: null,
  1713. fBillno: null,
  1714. fCustomsdeclartion: null,
  1715. fOriginalbillno: null,
  1716. fDeptid: null,
  1717. fBsdeptid: null,
  1718. fContacts: null,
  1719. fTel: null,
  1720. fCorpid: null,
  1721. fTocorpid: null,
  1722. fStltypeid: null,
  1723. fBscorpno: null,
  1724. fWarehouseid: null,
  1725. fStorekeeper: null,
  1726. fBsdate: null,
  1727. fPlanqty: null,
  1728. fPlangrossweight: null,
  1729. fPlannetweight: null,
  1730. fPlanvolumn: null,
  1731. fQty: null,
  1732. fGrossweight: null,
  1733. fNetweight: null,
  1734. fVolumn: null,
  1735. fTrademodeid: null,
  1736. fSbu: null,
  1737. fFeetunit: null,
  1738. fMblno: null,
  1739. fVslvoy: null,
  1740. fEta: null,
  1741. fCustomno: null,
  1742. fIfweigh: null,
  1743. fIfpledge: null,
  1744. fIfdamage: null,
  1745. fBankcorpid: null,
  1746. fBilltype: null,
  1747. fBillstatus: null,
  1748. delFlag: null,
  1749. createBy: null,
  1750. createTime: null,
  1751. updateBy: null,
  1752. updateTime: null,
  1753. remark: null,
  1754. fCreateby: null,
  1755. fCreatetime: null,
  1756. fGoodsid: null,
  1757. fCntrtype: null,
  1758. fCntqty: null
  1759. };
  1760. this.resetForm("form");
  1761. },
  1762. /** 搜索按钮操作 */
  1763. handleQuery() {
  1764. this.queryParams.pageNum = 1;
  1765. this.getList();
  1766. },
  1767. /** 重置按钮操作 */
  1768. resetQuery() {
  1769. this.resetForm("queryForm");
  1770. this.handleQuery();
  1771. },
  1772. // 多选框选中数据
  1773. handleSelectionChange(selection) {
  1774. this.ids = selection.map((item) => item.fId);
  1775. this.single = selection.length !== 1;
  1776. this.multiple = !selection.length;
  1777. },
  1778. /** 新增按钮操作 */
  1779. handleAdd() {
  1780. this.reset();
  1781. this.queryUser()
  1782. this.open = true;
  1783. this.title = "入库单";
  1784. },
  1785. /** 修改按钮操作 */
  1786. handleUpdate(row) {
  1787. this.reset();
  1788. const fId = row.fid || this.ids;
  1789. getWarehousebills(row.fid).then((response) => {
  1790. this.form = response.data.warehousebills;
  1791. this.$set(this.form, 'fCorpid', response.data.warehousebills.fcorpid)
  1792. this.$set(this.form, 'fWarehouseid', response.data.warehousebills.fwarehouseid)
  1793. this.$set(this.form, 'fContacts', response.data.warehousebills.fcontacts)
  1794. this.$set(this.form, 'fTel', response.data.warehousebills.ftel)
  1795. this.$set(this.form, 'fMblno', response.data.warehousebills.fmblno)
  1796. this.$set(this.form, 'fBsdate', Date.parse(response.data.warehousebills.fbsdate))
  1797. this.$set(this.form, 'fStorekeeper', response.data.warehousebills.fstorekeeper)
  1798. this.$set(this.form, 'createBy', response.data.warehousebills.createBy)
  1799. this.$set(this.form, 'fDeptid', response.data.warehousebills.fdeptid)
  1800. this.$set(this.form, 'fDilldate', Date.parse(response.data.warehousebills.fbilldate))
  1801. this.$set(this.form, 'fVslvoy', response.data.warehousebills.fvslvoy)
  1802. this.$set(this.form, 'fEta', Date.parse(response.data.warehousebills.feta))
  1803. this.$set(this.form, 'createTime', Date.parse(response.data.warehousebills.createTime))
  1804. this.$set(this.form, 'fTrademodeid', response.data.warehousebills.ftrademodeid + '')
  1805. this.$set(this.form, 'fBillingway', response.data.warehousebills.fbillingway + '')
  1806. this.$set(this.form, 'fFeetunit', response.data.warehousebills.ffeetunit + '')
  1807. this.$set(this.form, 'fBscorpno', response.data.warehousebills.fbscorpno)
  1808. this.$set(this.form, 'fCustomno', response.data.warehousebills.fcustomno)
  1809. this.$set(this.form, 'fStltypeid', response.data.warehousebills.fstltypeid + '')
  1810. this.$set(this.form, 'fIfweigh', response.data.warehousebills.fifweigh + '')
  1811. this.$set(this.form, 'fIfdamage', response.data.warehousebills.fifdamage + '')
  1812. this.$set(this.form, 'fSbu', response.data.warehousebills.fsbu)
  1813. this.$set(this.form, 'fIfpledge', response.data.warehousebills.fifpledge + '')
  1814. this.$set(this.form, 'fBankcorpid', response.data.warehousebills.fbankcorpid)
  1815. this.$set(this.form, 'remark', response.data.warehousebills.remark)
  1816. this.deptOptions = []
  1817. this.deptOptions.push(response.data.dept)
  1818. this.fMblnoOptions = []
  1819. this.fMblnoOptions.push(response.data.fCorps)
  1820. if (response.data.fSbu !== null) {
  1821. this.fSbuOptions = []
  1822. this.fSbuOptions.push(response.data.fSbu)
  1823. }
  1824. if (response.data.warehouse !== null) {
  1825. this.warehouseOptions = []
  1826. this.warehouseOptions.push(response.data.warehouse)
  1827. }
  1828. if (typeof response.data.warehouseBillsItem !== 'undefined' && response.data.warehouseBillsItem !== null) {
  1829. this.dataList = response.data.warehouseBillsItem
  1830. if (response.data.goodsList !== null) {
  1831. this.goodsOptions = []
  1832. this.goodsOptions = response.data.goodsList
  1833. }
  1834. }
  1835. this.open = true;
  1836. this.title = "修改仓库主(出入库)";
  1837. });
  1838. },
  1839. /** 提交按钮 */
  1840. submitForm() {
  1841. this.$refs["form"].validate((valid) => {
  1842. if (valid) {
  1843. // let formData = new FormData()
  1844. // console.log(JSON.stringify(this.form));
  1845. // formData.append('tWarehouseBills', JSON.stringify(this.formData))
  1846. let formData = new window.FormData();
  1847. // 附件数据
  1848. formData.append("tWarehouseBills", JSON.stringify(this.form));
  1849. console.log(JSON.stringify(this.form));
  1850. // 附件数据
  1851. formData.append("tWhgenleg", null);
  1852. // // 费用明细付款
  1853. formData.append("tWarehousebillsfeesCr", JSON.stringify(this.warehouseCrList));
  1854. // // 收款
  1855. formData.append("tWarehousebillsfeesDr", JSON.stringify(this.warehouseDrList));
  1856. // // 库存明细
  1857. formData.append("tWarehousebillsitems", JSON.stringify(this.dataList));
  1858. // 附件数据
  1859. // formData.append('tWhgenleg', dataForm)
  1860. // // 费用明细付款
  1861. // formData.append('tWarehousebillsfeesCr', dataForm)
  1862. // // 收款
  1863. // formData.append('tWarehousebillsfeesDr"', dataForm)
  1864. // // 库存明细
  1865. // formData.append('tWarehousebillsitems', dataForm)
  1866. addWarehousebills(formData).then((response) => {
  1867. console.log(response);
  1868. this.msgSuccess("新增成功");
  1869. this.open = false;
  1870. this.getList();
  1871. });
  1872. }
  1873. });
  1874. },
  1875. /** 删除按钮操作 */
  1876. handleDelete(row) {
  1877. const fIds = row.fId || this.ids;
  1878. this.$confirm(
  1879. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  1880. "警告",
  1881. {
  1882. confirmButtonText: "确定",
  1883. cancelButtonText: "取消",
  1884. type: "warning",
  1885. }
  1886. )
  1887. .then(function () {
  1888. return delWarehousebills(fIds);
  1889. })
  1890. .then(() => {
  1891. this.getList();
  1892. this.msgSuccess("删除成功");
  1893. });
  1894. },
  1895. /** 导出按钮操作 */
  1896. handleExport() {
  1897. const queryParams = this.queryParams;
  1898. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  1899. confirmButtonText: "确定",
  1900. cancelButtonText: "取消",
  1901. type: "warning",
  1902. })
  1903. .then(function () {
  1904. return exportWarehousebills(queryParams);
  1905. })
  1906. .then((response) => {
  1907. this.download(response.msg);
  1908. });
  1909. },
  1910. deleteRow(index, rows) {
  1911. rows.splice(index, 1)
  1912. },
  1913. /* 远程模糊查询用户 */
  1914. corpsRemoteMethod(name) {
  1915. if (name == null || name === '') {
  1916. return false
  1917. }
  1918. let queryParams = {pageNum: 1, pageSize: 10, fName: name}
  1919. listCorps(queryParams).then((response) => {
  1920. this.fMblnoOptions = response.rows
  1921. });
  1922. },
  1923. /* 远程模糊查询商品 */
  1924. goodsRemoteMethod(name) {
  1925. if (name == null || name === '') {
  1926. return false
  1927. }
  1928. let queryParams = {pageNum: 1, pageSize: 10, fName: name}
  1929. listGoods(queryParams).then((response) => {
  1930. this.goodsOptions = response.rows
  1931. });
  1932. },
  1933. /* 远程模糊查询经营单位 */
  1934. fSbuRemoteMethod(name) {
  1935. if (name == null || name === '') {
  1936. return false
  1937. }
  1938. let queryParams = {pageNum: 1, pageSize: 10, fName: name}
  1939. listCorps(queryParams).then((response) => {
  1940. this.fSbuOptions = response.rows
  1941. });
  1942. },
  1943. /* 远程模糊查询仓库 */
  1944. warehouseRemoteMethod(name) {
  1945. if (name == null || name === '') {
  1946. return false
  1947. }
  1948. let queryParams = {pageNum: 1, pageSize: 10, fName: name}
  1949. listWarehouse(queryParams).then((response) => {
  1950. this.warehouseOptions = response.rows
  1951. });
  1952. },
  1953. /* 远程模糊查询操作用户 */
  1954. userRemoteMethod(name) {
  1955. if (name == null || name === '') {
  1956. return false
  1957. }
  1958. let queryParams = {pageNum: 1, pageSize: 10, userName: name}
  1959. listUser(queryParams).then((response) => {
  1960. this.userOptions = response.rows
  1961. });
  1962. },
  1963. },
  1964. };
  1965. </script>