index.vue 87 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832
  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. this.form = response.data.warehousebills;
  2322. this.fMblnoOptions = response.data.corps;
  2323. this.KHblnoOptions = response.data.corps;
  2324. this.fSbuOptions = response.data.corps;
  2325. this.fWbuOptions = response.data.feesList;
  2326. this.warehouseOptions = response.data.warehouse;
  2327. this.$set(this.form, "fStltypeid", this.form.fStltypeid + "");
  2328. this.$set(this.form, "fEta", Date.parse(this.form.fEta));
  2329. this.$set(this.form, "createTime", Date.parse(this.form.createTime));
  2330. this.$set(this.form, "fTrademodeid", this.form.fTrademodeid + "");
  2331. this.dataList = response.data.warehouseBillsItem;
  2332. for (let list in this.dataList) {
  2333. this.$set(
  2334. this.dataList[list],
  2335. "fBsdate",
  2336. Date.parse(this.dataList[list].fBsdate)
  2337. );
  2338. }
  2339. this.goodsOptions = response.data.goodsList;
  2340. this.kqhouseOptions = response.data.warehouseAreas;
  2341. this.relevantAttachments = response.data.enclosures;
  2342. this.warehouseDrList = response.data.warehousebillsfeesDr;
  2343. for (let dr in this.warehouseDrList) {
  2344. this.$set(
  2345. this.warehouseDrList[dr],
  2346. "fFeeUnitid",
  2347. this.warehouseDrList[dr].fFeeUnitid + ""
  2348. );
  2349. }
  2350. this.warehouseCrList = response.data.warehousebillsfeesCr;
  2351. for (let cr in this.warehouseCrList) {
  2352. this.$set(
  2353. this.warehouseCrList[cr],
  2354. "fFeeUnitid",
  2355. this.warehouseCrList[cr].fFeeUnitid + ""
  2356. );
  2357. }
  2358. this.userOptions = response.data.sysUser;
  2359. this.$set(this.form, "fBsdate", Date.parse(this.form.fBsdate));
  2360. this.open = true;
  2361. this.title = "修改仓入库)";
  2362. });
  2363. },
  2364. // 合计
  2365. getSummaries(param) {
  2366. console.log(param);
  2367. const { columns, data } = param;
  2368. const sums = [];
  2369. var values = [];
  2370. columns.forEach((column, index) => {
  2371. if (index === 0) {
  2372. sums[index] = "总价";
  2373. return;
  2374. }
  2375. if (column.property === "fPlangrossweight") {
  2376. values = data.map((item) => Number(item["fPlangrossweight"]));
  2377. }
  2378. if (column.property === "fPlannetweight") {
  2379. values = data.map((item) => Number(item["fPlannetweight"]));
  2380. }
  2381. if (column.property === "fPlanvolumn") {
  2382. values = data.map((item) => Number(item["fPlanvolumn"]));
  2383. }
  2384. if (column.property === "fPlanqty") {
  2385. values = data.map((item) => Number(item["fPlanqty"]));
  2386. }
  2387. if (column.property === "fGrossweight") {
  2388. values = data.map((item) => Number(item["fGrossweight"]));
  2389. }
  2390. if (column.property === "fNetweight") {
  2391. values = data.map((item) => Number(item["fNetweight"]));
  2392. }
  2393. if (column.property === "fQty") {
  2394. values = data.map((item) => Number(item["fQty"]));
  2395. }
  2396. if (column.property === "fCntqty") {
  2397. values = data.map((item) => Number(item["fCntqty"]));
  2398. } // const values = data.map(item => Number(item[column.property]))
  2399. if (
  2400. column.property === "fPlangrossweight" ||
  2401. column.property === "fPlannetweight" ||
  2402. column.property === "fPlanvolumn" ||
  2403. column.property === "fPlanqty" ||
  2404. column.property === "fGrossweight" ||
  2405. column.property === "fNetweight" ||
  2406. column.property === "fQty" ||
  2407. column.property === "fCntqty"
  2408. ) {
  2409. sums[index] = values.reduce((prev, curr) => {
  2410. const value = Number(curr);
  2411. if (!isNaN(value)) {
  2412. if (column.property === "fPlangrossweight") {
  2413. this.fPlangrossweight = prev + curr;
  2414. }
  2415. if (column.property === "fPlannetweight") {
  2416. this.fPlannetweight = prev + curr;
  2417. }
  2418. if (column.property === "fPlanvolumn") {
  2419. this.fPlanvolumn = prev + curr;
  2420. }
  2421. if (column.property === "fPlanqty") {
  2422. this.fPlanqty = prev + curr;
  2423. }
  2424. if (column.property === "fGrossweight") {
  2425. this.fGrossweight = prev + curr;
  2426. }
  2427. if (column.property === "fNetweight") {
  2428. this.fNetweight = prev + curr;
  2429. }
  2430. if (column.property === "fQty") {
  2431. this.fQty = prev + curr;
  2432. }
  2433. if (column.property === "fCntqty") {
  2434. this.fCntqty = prev + curr;
  2435. }
  2436. return prev + curr;
  2437. } else {
  2438. return prev;
  2439. }
  2440. }, 0); // sums[index]
  2441. }
  2442. });
  2443. this.sums = sums;
  2444. return sums;
  2445. },
  2446. // 付款合计
  2447. warehouseDrSummaries(param) {
  2448. const { columns, data } = param;
  2449. const sums = [];
  2450. columns.forEach((column, index) => {
  2451. if (index === 0) {
  2452. sums[index] = "合计";
  2453. return;
  2454. }
  2455. const values = data.map((item) => Number(item[column.property]));
  2456. if (
  2457. column.property === "fUnitprice" ||
  2458. column.property === "fAmount" ||
  2459. column.property === "fQty" ||
  2460. column.property === "fQty"
  2461. ) {
  2462. sums[index] = values.reduce((prev, curr) => {
  2463. const value = Number(curr);
  2464. if (!isNaN(value)) {
  2465. return prev + curr;
  2466. } else {
  2467. return prev;
  2468. }
  2469. }, 0); // sums[index]
  2470. }
  2471. });
  2472. return sums;
  2473. },
  2474. // 数量计算
  2475. changeContractAmt(row) {
  2476. let fQty = 0;
  2477. let fUnitprice = 0;
  2478. if (row.fUnitprice) {
  2479. fUnitprice = row.fUnitprice;
  2480. }
  2481. if (row.fQty) {
  2482. fQty = row.fQty;
  2483. }
  2484. this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
  2485. },
  2486. changefBsdate(row) {
  2487. if (this.dataList.length > 0) {
  2488. for (var i = 0; i < this.dataList.length; i++) {
  2489. this.$set(this.dataList[i], "fBsdate", row);
  2490. }
  2491. }
  2492. },
  2493. // 变更计价单位
  2494. changeFeeUnit(row) {
  2495. console.log(this.fCntqty);
  2496. console.log(row);
  2497. if (!row.fFeeUnitid) {
  2498. return false;
  2499. }
  2500. if (row.fFeeUnitid === "0") {
  2501. this.$set(row, "fQty", this.fCntqty);
  2502. } else if (row.fFeeUnitid === "1") {
  2503. this.$set(row, "fQty", this.fGrossweight);
  2504. }
  2505. if (row.fUnitprice) {
  2506. this.$set(
  2507. row,
  2508. "fAmount",
  2509. parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
  2510. );
  2511. }
  2512. },
  2513. changefBsdate(row) {
  2514. if (this.dataList.length > 0) {
  2515. for (var i = 0; i < this.dataList.length; i++) {
  2516. this.$set(this.dataList[i], "fBsdate", row);
  2517. }
  2518. }
  2519. },
  2520. /** 提交按钮 */
  2521. submitForm(status) {
  2522. this.$refs["form"].validate((valid) => {
  2523. if(status === 2) {
  2524. console.log("@@")
  2525. console.log(this.form)
  2526. console.log(this.dataList)
  2527. console.log(this.warehouseCrList)
  2528. console.log(this.warehouseDrList)
  2529. if (valid) {
  2530. this.form.fBillstatus = status;
  2531. this.form.fNetweight = this.fNetweight;
  2532. this.form.fPlangrossweight = this.fPlangrossweight;
  2533. this.form.fPlannetweight = this.fPlannetweight;
  2534. this.form.fPlanvolumn = this.fPlanvolumn;
  2535. this.form.fPlanqty = this.fPlanqty;
  2536. this.form.fGrossweight = this.fGrossweight;
  2537. this.form.fQty = this.fQty;
  2538. let formData = new window.FormData();
  2539. // 附件数据
  2540. formData.append("tWarehouseBills", JSON.stringify(this.form));
  2541. // 库存明细
  2542. formData.append(
  2543. "tWarehousebillsitems",
  2544. JSON.stringify(this.dataList)
  2545. );
  2546. // 附件数据
  2547. formData.append(
  2548. "tWhgenleg",
  2549. JSON.stringify(this.relevantAttachments)
  2550. );
  2551. // 费用明细付款
  2552. formData.append(
  2553. "tWarehousebillsfeesCr",
  2554. JSON.stringify(this.warehouseCrList)
  2555. );
  2556. // 收款
  2557. formData.append(
  2558. "tWarehousebillsfeesDr",
  2559. JSON.stringify(this.warehouseDrList)
  2560. );
  2561. addWarehousebills(formData).then((response) => {
  2562. this.msgSuccess("提交成功");
  2563. this.open = false;
  2564. this.getList();
  2565. });
  2566. }
  2567. }else {
  2568. if (this.dataList.length === 0) {
  2569. this.$message.error("请添加库存明细!");
  2570. return false;
  2571. }
  2572. if (this.relevantAttachments.length === 0) {
  2573. this.$message.error("请添加附件上传!");
  2574. return false;
  2575. }
  2576. if (this.warehouseDrList.length === 0) {
  2577. this.$message.error("请添加收款信息!");
  2578. return false;
  2579. }
  2580. if (this.warehouseCrList.length === 0) {
  2581. this.$message.error("请添加付款信息!");
  2582. return false;
  2583. }
  2584. for (let list in this.dataList) {
  2585. if (!this.dataList[list].fGoodsid) {
  2586. this.$message.error("请输入品名!");
  2587. return false;
  2588. }
  2589. if (!this.dataList[list].fWarehouselocid) {
  2590. this.$message.error("请输入库区!");
  2591. return false;
  2592. }
  2593. }
  2594. for (let relevant in this.relevantAttachments) {
  2595. if (!this.relevantAttachments[relevant].fName) {
  2596. this.$message.error("请输入附件名称!");
  2597. return false;
  2598. }
  2599. }
  2600. for (let warehouseDr in this.warehouseDrList) {
  2601. if (!this.warehouseDrList[warehouseDr].fCorpid) {
  2602. this.$message.error("请选择客户名称");
  2603. return false;
  2604. }
  2605. if (!this.warehouseDrList[warehouseDr].fFeeid) {
  2606. this.$message.error("请选择费用名称");
  2607. return false;
  2608. }
  2609. if (!this.warehouseDrList[warehouseDr]) {
  2610. this.$message.error("请选择收款计费单位");
  2611. return false;
  2612. }
  2613. }
  2614. for (let warehouseCr in this.warehouseCrList) {
  2615. if (!this.warehouseCrList[warehouseCr].fCorpid) {
  2616. this.$message.error("请选择客户名称");
  2617. return false;
  2618. }
  2619. if (!this.warehouseCrList[warehouseCr].fFeeid) {
  2620. this.$message.error("请选择费用名称");
  2621. return false;
  2622. }
  2623. if (!this.warehouseCrList[warehouseCr].fFeeUnitid) {
  2624. this.$message.error("请选择付款计费单位");
  2625. return false;
  2626. }
  2627. }
  2628. if (valid) {
  2629. this.form.fBillstatus = status;
  2630. this.form.fNetweight = this.fNetweight;
  2631. this.form.fPlangrossweight = this.fPlangrossweight;
  2632. this.form.fPlannetweight = this.fPlannetweight;
  2633. this.form.fPlanvolumn = this.fPlanvolumn;
  2634. this.form.fPlanqty = this.fPlanqty;
  2635. this.form.fGrossweight = this.fGrossweight;
  2636. this.form.fQty = this.fQty;
  2637. console.log(this.amt);
  2638. let formData = new window.FormData();
  2639. // 附件数据
  2640. formData.append("tWarehouseBills", JSON.stringify(this.form));
  2641. // 库存明细
  2642. formData.append(
  2643. "tWarehousebillsitems",
  2644. JSON.stringify(this.dataList)
  2645. );
  2646. // 附件数据
  2647. formData.append(
  2648. "tWhgenleg",
  2649. JSON.stringify(this.relevantAttachments)
  2650. );
  2651. // 费用明细付款
  2652. formData.append(
  2653. "tWarehousebillsfeesCr",
  2654. JSON.stringify(this.warehouseCrList)
  2655. );
  2656. // 收款
  2657. formData.append(
  2658. "tWarehousebillsfeesDr",
  2659. JSON.stringify(this.warehouseDrList)
  2660. );
  2661. addWarehousebills(formData).then((response) => {
  2662. this.msgSuccess("提交成功");
  2663. this.open = false;
  2664. this.getList();
  2665. });
  2666. }
  2667. }
  2668. });
  2669. },
  2670. /** 删除按钮操作 */
  2671. handleDelete(row) {
  2672. const fIds = row.fId || this.ids;
  2673. this.$confirm(
  2674. '是否确认删除仓库主(出入库)编号为"' + fIds + '"的数据项?',
  2675. "警告",
  2676. {
  2677. confirmButtonText: "确定",
  2678. cancelButtonText: "取消",
  2679. type: "warning",
  2680. }
  2681. )
  2682. .then(function () {
  2683. return delWarehousebills(fIds);
  2684. })
  2685. .then(() => {
  2686. this.getList();
  2687. this.msgSuccess("删除成功");
  2688. });
  2689. },
  2690. /** 导出按钮操作 */
  2691. handleExport() {
  2692. const queryParams = this.queryParams;
  2693. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  2694. confirmButtonText: "确定",
  2695. cancelButtonText: "取消",
  2696. type: "warning",
  2697. })
  2698. .then(function () {
  2699. return exportWarehousebills(queryParams);
  2700. })
  2701. .then((response) => {
  2702. this.download(response.msg);
  2703. });
  2704. },
  2705. deleteRow(index, rows) {
  2706. rows.splice(index, 1);
  2707. },
  2708. /* 远程模糊查询用户 */
  2709. corpsRemoteMethod(name) {
  2710. if (name == null || name === "") {
  2711. return false;
  2712. }
  2713. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2714. listCorps(queryParams).then((response) => {
  2715. this.fMblnoOptions = response.rows;
  2716. this.KHblnoOptions = response.rows;
  2717. });
  2718. },
  2719. /* 远程模糊查询商品 */
  2720. goodsRemoteMethod(name) {
  2721. if (name == null || name === "") {
  2722. return false;
  2723. }
  2724. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2725. listGoods(queryParams).then((response) => {
  2726. this.goodsOptions = response.rows;
  2727. });
  2728. },
  2729. // 远程模糊查询费用名称
  2730. fWRemoteMethod(name) {
  2731. if (name == null || name === "") {
  2732. return false;
  2733. }
  2734. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2735. listFees(queryParams).then((response) => {
  2736. this.fWbuOptions = response.rows;
  2737. });
  2738. },
  2739. /* 远程模糊查询经营单位 */
  2740. fSbuRemoteMethod(name) {
  2741. if (name == null || name === "") {
  2742. return false;
  2743. }
  2744. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2745. listCorps(queryParams).then((response) => {
  2746. this.fSbuOptions = response.rows;
  2747. });
  2748. },
  2749. /* 远程模糊查询仓库 */
  2750. warehouseRemoteMethod(name) {
  2751. if (name == null || name === "") {
  2752. return false;
  2753. }
  2754. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  2755. listWarehouse(queryParams).then((response) => {
  2756. this.warehouseOptions = response.rows;
  2757. });
  2758. },
  2759. /* 远程模糊查询库区 */
  2760. kqhouseRemoteMethod(name) {
  2761. if (name == null || name === "") {
  2762. return false;
  2763. }
  2764. if (!this.form.fWarehouseid) {
  2765. this.$message.error("请输入仓库!");
  2766. return false;
  2767. }
  2768. let queryParams = {
  2769. pageNum: 1,
  2770. pageSize: 10,
  2771. fWarehouseid: this.form.fWarehouseid,
  2772. fName: name,
  2773. };
  2774. listArea(queryParams).then((response) => {
  2775. this.kqhouseOptions = response.rows;
  2776. });
  2777. },
  2778. /* 远程模糊查询操作用户 */
  2779. userRemoteMethod(name) {
  2780. if (name == null || name === "") {
  2781. return false;
  2782. }
  2783. let queryParams = { pageNum: 1, pageSize: 10, userName: name };
  2784. listUser(queryParams).then((response) => {
  2785. this.userOptions = response.rows;
  2786. });
  2787. },
  2788. },
  2789. };
  2790. </script>
  2791. <style lang="scss">
  2792. .juzhong > th {
  2793. text-align: center;
  2794. }
  2795. .biaoge > tr > td {
  2796. height: 30px;
  2797. text-align: center;
  2798. border-right: 1px solid #dfe6ec !important;
  2799. order-bottom: 1px solid #dfe6ec !important;
  2800. border-bottom: 1px solid #dfe6ec !important;
  2801. }
  2802. .el-table thead th {
  2803. background: #1890ff;
  2804. color: #fff;
  2805. }
  2806. .upload-demo {
  2807. margin-left: 50px;
  2808. }
  2809. </style>