index.vue 87 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675
  1. <template>
  2. <!-- 仓储费计算列表 + 弹窗页面 -->
  3. <div class="app-container">
  4. <el-form
  5. :model="queryParams"
  6. ref="queryForm"
  7. :inline="true"
  8. v-show="showSearch"
  9. label-width="88px"
  10. >
  11. <el-form-item label="业务编号" prop="fBillno">
  12. <el-input
  13. v-model="queryParams.fBillno"
  14. placeholder="请输入业务编号"
  15. clearable
  16. style="width: 200px"
  17. size="small"
  18. @keyup.enter.native="handleQuery"
  19. />
  20. </el-form-item>
  21. <el-form-item label="制单人" prop="createBy">
  22. <el-select
  23. v-model="queryParams.createBy"
  24. filterable
  25. remote
  26. clearable
  27. style="width: 200px"
  28. :remote-method="userRemoteMethod"
  29. placeholder="请选择制单人"
  30. >
  31. <el-option
  32. v-for="(dict, index) in userOptions"
  33. :key="index.userName"
  34. :label="dict.nickName"
  35. :value="dict.userName"
  36. ></el-option>
  37. </el-select>
  38. </el-form-item>
  39. <el-form-item label="货权方" prop="fCorpid">
  40. <el-select
  41. v-model="queryParams.fCorpid"
  42. filterable
  43. remote
  44. clearable
  45. style="width: 200px"
  46. @keyup.enter.native="handleQuery"
  47. :remote-method="corpsRemoteMethod"
  48. placeholder="请选择货权方"
  49. >
  50. <el-option
  51. v-for="(dict, index) in fMblnoOptions"
  52. :key="index.fId"
  53. :label="dict.fName"
  54. :value="dict.fId"
  55. ></el-option>
  56. </el-select>
  57. </el-form-item>
  58. <el-form-item label="提单号" prop="fMblno">
  59. <el-input
  60. v-model="queryParams.fMblno"
  61. placeholder="请输入提单号"
  62. clearable
  63. size="small"
  64. @keyup.enter.native="handleQuery"
  65. />
  66. </el-form-item>
  67. <el-form-item label="唛头" prop="fMarks">
  68. <el-input
  69. v-model="queryParams.fMarks"
  70. placeholder="请输入唛头"
  71. clearable
  72. size="small"
  73. style="width: 200px"
  74. @keyup.enter.native="handleQuery"
  75. />
  76. </el-form-item>
  77. <el-form-item label="单据状态" prop="fBillstatus">
  78. <el-select
  79. style="width:200px"
  80. v-model="queryParams.fBillstatus"
  81. placeholder="请输入单据状态"
  82. >
  83. <el-option label="新建" value="1"></el-option>
  84. <el-option label="暂存" value="2"></el-option>
  85. <el-option label="审核驳回" value="3"></el-option>
  86. <el-option label="提交审核" value="4"></el-option>
  87. <el-option label="审核中" value="5"></el-option>
  88. <el-option label="审核通过" value="6"></el-option>
  89. </el-select>
  90. </el-form-item>
  91. <el-form-item label="计费日期" prop="timeInterval2">
  92. <el-date-picker
  93. v-model="queryParams.timeInterval2"
  94. type="daterange"
  95. value-format="yyyy-MM-dd"
  96. clearable
  97. style="width: 240px"
  98. range-separator="至"
  99. start-placeholder="开始日期"
  100. end-placeholder="结束日期"
  101. @keyup.enter.native="handleQuery"
  102. :picker-options="pickerOptions"
  103. unlink-panels
  104. >
  105. </el-date-picker>
  106. </el-form-item>
  107. <el-form-item>
  108. <el-button
  109. type="cyan"
  110. icon="el-icon-search"
  111. size="mini"
  112. @click="handleQuery"
  113. >搜索
  114. </el-button>
  115. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  116. >重置
  117. </el-button>
  118. </el-form-item>
  119. </el-form>
  120. <el-row :gutter="10" class="mb8">
  121. <el-col :span="1.5">
  122. <el-button
  123. type="primary"
  124. icon="el-icon-plus"
  125. size="mini"
  126. @click="handleAdd(false)"
  127. v-hasPermi="['warehouseBusiness:storageFeeCalculation:add']"
  128. >新增
  129. </el-button>
  130. </el-col>
  131. <el-col :span="1.5">
  132. <el-button
  133. type="success"
  134. icon="el-icon-edit"
  135. size="mini"
  136. :disabled="single"
  137. @click="handleUpdate"
  138. v-hasPermi="['warehouseBusiness:storageFeeCalculation:edit']"
  139. >修改
  140. </el-button>
  141. </el-col>
  142. <!-- <el-col :span="1.5">-->
  143. <!-- <el-button-->
  144. <!-- type="danger"-->
  145. <!-- icon="el-icon-delete"-->
  146. <!-- size="mini"-->
  147. <!-- :disabled="multiple"-->
  148. <!-- @click="handleDelete"-->
  149. <!-- v-hasPermi="['warehouseBusiness:storageFeeCalculation:remove']"-->
  150. <!-- >删除-->
  151. <!-- </el-button>-->
  152. <!-- </el-col>-->
  153. <el-col :span="1.5">
  154. <el-button
  155. type="warning"
  156. icon="el-icon-download"
  157. size="mini"
  158. @click="handleExport"
  159. v-hasPermi="['warehouseBusiness:storageFeeCalculation:export']"
  160. >导出
  161. </el-button>
  162. </el-col>
  163. <el-col :span="1.5">
  164. <el-button
  165. type="warning"
  166. icon="el-icon-download"
  167. size="mini"
  168. @click="handleExport"
  169. :disabled="multiple"
  170. v-hasPermi="['warehouseBusiness:storageFeeCalculation:export']"
  171. >导入
  172. </el-button>
  173. </el-col>
  174. <div class="tabSetting">
  175. <right-toolbar
  176. :showSearch.sync="showSearch"
  177. @queryTable="getList"
  178. ></right-toolbar>
  179. <div style="margin: 0 12px">
  180. <el-button
  181. icon="el-icon-setting"
  182. size="mini"
  183. circle
  184. @click="showSetting = !showSetting"
  185. ></el-button>
  186. </div>
  187. </div>
  188. </el-row>
  189. <el-dialog title="自定义列显示" :visible.sync="showSetting" width="700px" v-dialogDrag>
  190. <template slot="title">
  191. <div class="avue-crud__dialog__header">
  192. <span class="el-dialog__title">
  193. <span
  194. style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px"></span>
  195. </span>
  196. </div>
  197. </template>
  198. <div>配置排序列数据(拖动调整顺序)</div>
  199. <div style="margin-left: 17px">
  200. <el-checkbox
  201. v-model="allCheck"
  202. label="全选"
  203. @change="allChecked"
  204. ></el-checkbox>
  205. </div>
  206. <div style="padding: 4px; display: flex; justify-content: center">
  207. <draggable
  208. v-model="setRowList"
  209. group="site"
  210. animation="300"
  211. @start="onStart"
  212. @end="onEnd"
  213. handle=".indraggable"
  214. >
  215. <transition-group>
  216. <div
  217. v-for="item in setRowList"
  218. :key="item.surface"
  219. class="listStyle"
  220. >
  221. <div style="width: 500px" class="indraggable">
  222. <div class="progress" :style="{ width: item.width + 'px' }">
  223. <el-checkbox
  224. :label="item.name"
  225. v-model="item.checked"
  226. :true-label="0"
  227. :false-label="1"
  228. >{{ item.name }}
  229. </el-checkbox>
  230. </div>
  231. </div>
  232. <el-input-number
  233. v-model.number="item.width"
  234. controls-position="right"
  235. :min="1"
  236. :max="500"
  237. size="mini"
  238. ></el-input-number>
  239. </div>
  240. </transition-group>
  241. </draggable>
  242. </div>
  243. <span slot="footer" class="dialog-footer">
  244. <el-button @click="showSetting = false">取 消</el-button>
  245. <el-button type="primary" @click="save()">确 定</el-button>
  246. </span>
  247. </el-dialog>
  248. <el-table
  249. v-loading="loading"
  250. :data="warehousebillsList"
  251. @selection-change="handleSelectionChange"
  252. ref="table"
  253. :height="tableHeight"
  254. >
  255. <el-table-column type="selection" width="55" align="center"/>
  256. <el-table-column type="index" label="行号" align="center"/>
  257. <el-table-column
  258. :show-overflow-tooltip="true"
  259. label="单据编号"
  260. align="center"
  261. width="160"
  262. prop="fBillno"
  263. />
  264. <el-table-column label="客户名称" align="center" width="300" sortable prop="fCorpid" show-overflow-tooltip/>
  265. <el-table-column
  266. label="计费日期"
  267. align="center"
  268. sortable
  269. prop="fBillingDeadline"
  270. width="180"
  271. >
  272. <template slot-scope="scope">
  273. <span>{{ parseTime(scope.row.fBillingDeadline, "{y}-{m}-{d}") }}</span>
  274. </template>
  275. </el-table-column>
  276. <el-table-column
  277. label="备注"
  278. align="center"
  279. prop="remark"
  280. />
  281. <el-table-column
  282. label="单据状态"
  283. align="center"
  284. sortable
  285. prop="fBillstatus"
  286. >
  287. <!-- <template slot-scope="scope">
  288. <span v-if="scope.row.fBillstatus === 1">新建</span>
  289. <span v-if="scope.row.fBillstatus === 2">暂存</span>
  290. <span v-if="scope.row.fBillstatus === 3">审核驳回</span>
  291. <span v-if="scope.row.fBillstatus === 4">提交审核</span>
  292. <span v-if="scope.row.fBillstatus === 5">审核中</span>
  293. <span v-if="scope.row.fBillstatus === 6">审核通过</span>
  294. </template>-->
  295. </el-table-column>
  296. <el-table-column
  297. label="制单人"
  298. align="center"
  299. prop="createBy"
  300. />
  301. <el-table-column
  302. label="制单日期"
  303. align="center"
  304. prop="createTime"
  305. width="160"
  306. >
  307. <template slot-scope="scope">
  308. {{ scope.row.createTime.slice(0, 10) }}
  309. </template>
  310. </el-table-column>
  311. <el-table-column
  312. label="操作"
  313. align="center"
  314. class-name="small-padding fixed-width"
  315. min-width="180"
  316. >
  317. <template slot-scope="scope">
  318. <el-button
  319. size="mini"
  320. type="text"
  321. icon="el-icon-edit"
  322. @click="handleUpdate_s(scope.row, true)"
  323. v-hasPermi="['warehouseBusiness:storageFeeCalculation:edit']"
  324. >查看
  325. </el-button>
  326. <el-button
  327. size="mini"
  328. type="text"
  329. icon="el-icon-view"
  330. @click="handleUpdate(scope.row, true)"
  331. v-hasPermi="['warehouseBusiness:storageFeeCalculation:edit']"
  332. v-if="scope.row.fBillstatus == '请核' || scope.row.fBillstatus == '审核中' || scope.row.fBillstatus == '提交审核'"
  333. >审批进度
  334. </el-button
  335. >
  336. <el-button
  337. size="mini"
  338. type="text"
  339. icon="el-icon-edit"
  340. v-if="
  341. scope.row.fBillstatus == '录入' ||
  342. scope.row.fBillstatus == '暂存' ||
  343. scope.row.fBillstatus == '审核驳回' ||
  344. scope.row.fBillstatus == '保存' ||
  345. scope.row.fBillstatus == '请核驳回'
  346. "
  347. @click="handleUpdate(scope.row, false)"
  348. v-hasPermi="['warehouseBusiness:storageFeeCalculation:edit']"
  349. >修改
  350. </el-button>
  351. <el-button
  352. size="mini"
  353. type="text"
  354. icon="el-icon-delete"
  355. v-if="
  356. scope.row.fBillstatus == '录入' ||
  357. scope.row.fBillstatus == '暂存' ||
  358. scope.row.fBillstatus == '审核驳回' ||
  359. scope.row.fBillstatus == '保存' ||
  360. scope.row.fBillstatus == '请核驳回'
  361. "
  362. @click="handleDelete(scope.row)"
  363. v-hasPermi="['warehouseBusiness:storageFeeCalculation:remove']"
  364. >删除
  365. </el-button>
  366. </template>
  367. </el-table-column>
  368. </el-table>
  369. <pagination
  370. v-show="total > 0"
  371. :total="total"
  372. :page.sync="queryParams.pageNum"
  373. :limit.sync="queryParams.pageSize"
  374. @pagination="getList"
  375. />
  376. <!-- 新增或修改仓储费计算对话框 -->
  377. <el-dialog
  378. v-dialogDrag
  379. :fullscreen="dialogFull"
  380. :visible.sync="open"
  381. :close-on-click-modal="false"
  382. width="80%"
  383. append-to-body
  384. :show-close="Xbutton"
  385. :before-close="handleClose"
  386. >
  387. <template slot="title">
  388. <div class="avue-crud__dialog__header">
  389. <span class="el-dialog__title">
  390. <span
  391. style="display:inline-block;width:3px;height:20px;margin-right:5px; float: left;margin-top:2px"></span>
  392. </span>
  393. <div class="avue-crud__dialog__menu enlarge" @click="full">
  394. <i style="cursor: pointer;display: block;width:12px;height:12px;border:1px solid #909399;border-top:3px solid #909399;margin-top: -3px;"></i>
  395. </div>
  396. </div>
  397. </template>
  398. <el-form ref="form" :model="form" :rules="rules" label-width="120px">
  399. <el-row>
  400. <el-col :span="8">
  401. <el-form-item label="客户名称" prop="fCorpid">
  402. <el-select
  403. v-model="form.fCorpid"
  404. filterable
  405. clearable
  406. remote
  407. :disabled="browseStatus"
  408. style="width:80%"
  409. placeholder="请输入模糊查找客户名称"
  410. @change="changeFeeDate"
  411. >
  412. <el-option
  413. v-for="(dict, index) in NfMblnoOptions"
  414. :key="index.fId"
  415. :label="dict.fName"
  416. :value="dict.fId"
  417. ></el-option>
  418. </el-select>
  419. </el-form-item>
  420. </el-col>
  421. <el-col :span="8">
  422. <el-form-item label="货品名称" prop="fGoodsid">
  423. <el-select
  424. v-model="form.fGoodsid"
  425. filterable
  426. style="width:80%"
  427. :disabled="browseStatus"
  428. remote
  429. clearable
  430. :remote-method="goodsRemoteMethod"
  431. placeholder="请输入模糊查找货品名称"
  432. @change="changeFeeDate"
  433. >
  434. <el-option
  435. v-for="(dict, index) in goodsOptions"
  436. :key="index.fId"
  437. :label="dict.fName"
  438. :value="dict.fId"
  439. ></el-option>
  440. </el-select>
  441. </el-form-item>
  442. </el-col>
  443. <el-col :span="8">
  444. <el-form-item label="提单号" prop="fMblno">
  445. <el-input
  446. v-model="form.fMblno"
  447. style="width:80%"
  448. clearable
  449. :disabled="browseStatus"
  450. placeholder="手工输入"
  451. />
  452. </el-form-item>
  453. </el-col>
  454. </el-row>
  455. <el-row>
  456. <el-col :span="8">
  457. <el-form-item disabled label="仓储费截止日期" prop="fBillingDeadline">
  458. <el-date-picker
  459. v-model="form.fBillingDeadline"
  460. size="large"
  461. type="date"
  462. style="width:80%"
  463. :disabled="browseStatus"
  464. value-format="timestamp"
  465. placeholder="仓储费计算截止日期"
  466. @change="changeFeeDate"
  467. >
  468. </el-date-picker>
  469. </el-form-item>
  470. </el-col>
  471. <el-col :span="8">
  472. <el-form-item label="业务编号" prop="fBillno">
  473. <el-input
  474. disabled
  475. v-model="form.fBillno"
  476. style="width:80%"
  477. placeholder="业务编号"
  478. />
  479. </el-form-item>
  480. </el-col>
  481. <el-col :span="8">
  482. <el-form-item label="制单人" prop="createBy">
  483. <el-input
  484. disabled
  485. v-model="form.createBy"
  486. style="width:80%"
  487. placeholder="制单人"
  488. />
  489. </el-form-item>
  490. </el-col>
  491. <!-- <el-col :span="8">-->
  492. <!-- <el-form-item label="仓储费方式" prop="fChargetype">-->
  493. <!-- <span>-->
  494. <!-- <el-select v-model="form.fChargetype" slot="prepend" :disabled="browseStatus" placeholder="请选择" style="width:80%">-->
  495. <!-- <el-option label="实际入库日期" value="0"></el-option>-->
  496. <!-- <el-option label="最早入库日期" value="1"></el-option>-->
  497. <!-- </el-select>-->
  498. <!-- </span>-->
  499. <!-- </el-form-item>-->
  500. <!-- </el-col>-->
  501. <!-- <el-col :span="8">-->
  502. <!-- <el-form-item label="仓储费方式" prop="fChargetype">-->
  503. <!-- <span>-->
  504. <!-- <el-select v-model="form.fChargetype" slot="prepend" :disabled="browseStatus" placeholder="请选择" style="width:80%">-->
  505. <!-- <el-option label="实际入库日期" value="0"></el-option>-->
  506. <!-- <el-option label="最早入库日期" value="1"></el-option>-->
  507. <!-- </el-select>-->
  508. <!-- </span>-->
  509. <!-- </el-form-item>-->
  510. <!-- </el-col>-->
  511. </el-row>
  512. <el-row>
  513. <el-col :span="8">
  514. <el-form-item disabled label="制单日期" prop="fbilldate">
  515. <el-date-picker
  516. v-model="form.createTime"
  517. size="large"
  518. type="date"
  519. disabled
  520. style="width:80%"
  521. value-format="timestamp"
  522. placeholder="制单日期"
  523. >
  524. </el-date-picker>
  525. </el-form-item>
  526. </el-col>
  527. <el-col :span="8" v-if="showWarehouse == '0'">
  528. <el-form-item label="仓库" prop="fWarehouseid">
  529. <el-select v-model="form.fWarehouseid"
  530. :disabled="notChange"
  531. placeholder="请选择仓库库区"
  532. clearable
  533. filterable
  534. @change="changeFeeDate"
  535. >
  536. <el-option
  537. v-for="(item, index) in warehouseOptions"
  538. :key="index.fId"
  539. :label="item.fName"
  540. :value="item.fId"
  541. style="width: 210px;"
  542. ></el-option>
  543. </el-select>
  544. </el-form-item>
  545. </el-col>
  546. <el-col :span="8">
  547. <el-form-item disabled label="备注" prop="remark">
  548. <el-input
  549. style="width:80%"
  550. :disabled="browseStatus"
  551. v-model="form.remark"
  552. placeholder="请输入备注"
  553. />
  554. </el-form-item>
  555. </el-col>
  556. </el-row>
  557. </el-form>
  558. <div style="font-size:18px; padding-top:8px">
  559. 计费物资明细
  560. <el-button :disabled="browseStatus" @click="calculateCost">计算仓储费</el-button>
  561. <el-button type="primary" :disabled="browseStatus" @click="submitForm(2)">保 存</el-button>
  562. <el-button
  563. type="warning"
  564. icon="el-icon-download"
  565. @click="handleExportItems"
  566. >导出
  567. </el-button>
  568. <el-button
  569. type="warning"
  570. icon="el-icon-download"
  571. @click="exportDetail"
  572. v-show="dataList.length > 0 && form.fMblno"
  573. >明细导出</el-button>
  574. <el-button type="danger" v-show="showAgreementStatus" @click="showAgreement">查看仓储费用协议</el-button>
  575. </div>
  576. <div class="dialogTableTitle flex a-center jlr"
  577. style="display:flex;justify-content:space-between;align-items:center;margin: 10px 0;">
  578. <el-table
  579. :data="dataList"
  580. ref="tableList"
  581. tooltip-effect="dark"
  582. border
  583. stripe
  584. :summary-method="getSummaries"
  585. show-summary
  586. >
  587. <el-table-column label="序号" type="index" width="80">
  588. </el-table-column>
  589. <el-table-column
  590. prop="fBilltype"
  591. header-align="center"
  592. align="center"
  593. width="140px"
  594. label="业务来源"
  595. >
  596. <template slot-scope="scope">
  597. <span v-if="scope.row.fBilltype === 'SJRK'">入库</span>
  598. <span v-if="scope.row.fBilltype === 'SJCK'">出库</span>
  599. <span v-if="scope.row.fBilltype === 'KCZZ'">库存总账</span>
  600. <span v-if="scope.row.fBilltype === 'HQZY'">货权转移</span>
  601. </template>
  602. </el-table-column>
  603. <el-table-column
  604. prop="fMblno"
  605. header-align="center"
  606. align="center"
  607. width="140px"
  608. label="业务单号"
  609. >
  610. </el-table-column>
  611. <el-table-column
  612. prop="fProductName"
  613. header-align="center"
  614. align="center"
  615. width="140px"
  616. label="货物名称"
  617. >
  618. </el-table-column>
  619. <el-table-column
  620. prop="warehouseName"
  621. header-align="center"
  622. align="center"
  623. width="140px"
  624. label="仓库"
  625. v-if="showWarehouse == '0'"
  626. >
  627. </el-table-column>
  628. <el-table-column
  629. prop="fMarks"
  630. header-align="center"
  631. align="center"
  632. width="140px"
  633. label="唛头"
  634. />
  635. <el-table-column
  636. prop="fBsdate"
  637. header-align="center"
  638. align="center"
  639. width="140px"
  640. label="业务日期"
  641. >
  642. <template slot-scope="scope">
  643. <el-date-picker
  644. v-model="scope.row.fBsdate"
  645. size="large"
  646. type="date"
  647. disabled
  648. value-format="timestamp"
  649. placeholder="业务日期"
  650. >
  651. </el-date-picker>
  652. </template>
  653. </el-table-column>
  654. <el-table-column
  655. prop="fBillingway"
  656. header-align="center"
  657. align="center"
  658. width="180px"
  659. label="计费单位"
  660. >
  661. <template slot-scope="scope">
  662. <el-select
  663. v-model="scope.row.fBillingway"
  664. placeholder="请选择计费单位"
  665. disabled
  666. clearable
  667. >
  668. <el-option
  669. v-for="dict in fFeetunitOptions"
  670. :key="dict.dictValue"
  671. :label="dict.dictLabel"
  672. :value="dict.dictValue"
  673. />
  674. </el-select>
  675. </template>
  676. </el-table-column>
  677. <el-table-column
  678. prop="fBillingQty"
  679. header-align="center"
  680. align="center"
  681. width="140px"
  682. label="计费数量"
  683. >
  684. </el-table-column>
  685. <el-table-column
  686. prop="fChargedate"
  687. header-align="center"
  688. align="center"
  689. width="140px"
  690. label="计费起始日期"
  691. >
  692. <template slot-scope="scope">
  693. <el-date-picker
  694. v-model="scope.row.fChargedate"
  695. size="large"
  696. type="date"
  697. disabled
  698. value-format="timestamp"
  699. placeholder="计费起始日期"
  700. >
  701. </el-date-picker>
  702. </template>
  703. </el-table-column>
  704. <el-table-column
  705. prop="fBillingDeadline"
  706. header-align="center"
  707. align="center"
  708. width="140px"
  709. label="计费截止日期"
  710. >
  711. <template slot-scope="scope">
  712. <el-date-picker
  713. v-model="scope.row.fBillingDeadline"
  714. size="large"
  715. type="date"
  716. disabled
  717. value-format="timestamp"
  718. placeholder="计费截止日期"
  719. >
  720. </el-date-picker>
  721. </template>
  722. </el-table-column>
  723. <el-table-column
  724. prop="fBillingDays"
  725. header-align="center"
  726. align="center"
  727. width="140px"
  728. label="计费天数"
  729. >
  730. </el-table-column>
  731. <el-table-column
  732. prop="fInventoryDays"
  733. header-align="center"
  734. align="center"
  735. width="140px"
  736. label="库存天数"
  737. >
  738. </el-table-column>
  739. <el-table-column
  740. prop="fAmt"
  741. header-align="center"
  742. align="center"
  743. width="140px"
  744. label="计费金额"
  745. >
  746. </el-table-column>
  747. <el-table-column
  748. prop="remark"
  749. header-align="center"
  750. width="150px"
  751. align="center"
  752. label="备注"
  753. show-overflow-tooltip
  754. >
  755. <template slot-scope="scope">
  756. <el-input
  757. v-model="scope.row.remark"
  758. placeholder="备注"
  759. v-if="!browseStatus"
  760. show-word-limit
  761. />
  762. <span v-else>{{scope.row.remark}}</span>
  763. </template>
  764. </el-table-column>
  765. <el-table-column
  766. prop="priceDateRemarks"
  767. header-align="center"
  768. width="150px"
  769. align="center"
  770. label="计费详情"
  771. show-overflow-tooltip
  772. >
  773. <template slot-scope="scope">
  774. <span @click="showRemarkDetail(scope.row)">{{scope.row.priceDateRemarks}}</span>
  775. </template>
  776. </el-table-column>
  777. <el-table-column
  778. header-align="center"
  779. align="center"
  780. label="操作"
  781. width="130PX"
  782. >
  783. <template slot-scope="scope">
  784. <el-button
  785. @click.native.prevent="
  786. deleteRow(scope.$index, dataList)
  787. "
  788. :disabled="browseStatus"
  789. size="small"
  790. >移除
  791. </el-button>
  792. </template>
  793. </el-table-column>
  794. </el-table>
  795. </div>
  796. <!-- <div>-->
  797. <!-- <el-button :disabled="browseStatus" @click.prevent="addCollection()"-->
  798. <!-- >新行-->
  799. <!-- </el-button>-->
  800. <!-- <el-button type="primary" :disabled="browseStatus" @click="submitForm(2)">保 存</el-button>-->
  801. <!-- </div>-->
  802. <!-- <div style="font-size:18px">应收款明细</div>-->
  803. <!-- <div class="dialogTableTitle flex a-center jlr"-->
  804. <!-- style="display:flex;justify-content:space-between;align-items:center;margin: 10px 0;">-->
  805. <!-- <el-table-->
  806. <!-- :data="warehouseDrList"-->
  807. <!-- ref="table"-->
  808. <!-- tooltip-effect="dark"-->
  809. <!-- border-->
  810. <!-- stripe-->
  811. <!-- show-summary-->
  812. <!-- :summary-method="warehouseDrSummaries"-->
  813. <!-- >-->
  814. <!-- <el-table-column label="序号" type="index" width="80">-->
  815. <!-- </el-table-column>-->
  816. <!-- <el-table-column-->
  817. <!-- prop="fCorpid"-->
  818. <!-- header-align="center"-->
  819. <!-- align="center"-->
  820. <!-- width="180px"-->
  821. <!-- label="客户名称"-->
  822. <!-- >-->
  823. <!-- <template slot-scope="scope">-->
  824. <!-- <el-select-->
  825. <!-- v-model="scope.row.fCorpid"-->
  826. <!-- filterable-->
  827. <!-- remote-->
  828. <!-- :disabled="browseStatus"-->
  829. <!-- :remote-method="corpsRemoteMethod"-->
  830. <!-- placeholder="客户名称"-->
  831. <!-- >-->
  832. <!-- <el-option-->
  833. <!-- v-for="(dict, index) in fMblnoOptions"-->
  834. <!-- :key="index.fId"-->
  835. <!-- :label="dict.fName"-->
  836. <!-- :value="dict.fId"-->
  837. <!-- ></el-option>-->
  838. <!-- </el-select>-->
  839. <!-- </template>-->
  840. <!-- </el-table-column>-->
  841. <!-- <el-table-column-->
  842. <!-- prop="fFeeid"-->
  843. <!-- header-align="center"-->
  844. <!-- align="center"-->
  845. <!-- width="180px"-->
  846. <!-- label="费用名称"-->
  847. <!-- >-->
  848. <!-- <template slot-scope="scope">-->
  849. <!-- <el-select-->
  850. <!-- v-model="scope.row.fFeeid"-->
  851. <!-- filterable-->
  852. <!-- remote-->
  853. <!-- :disabled="browseStatus"-->
  854. <!-- :remote-method="fWRemoteMethod"-->
  855. <!-- placeholder="费用名称"-->
  856. <!-- >-->
  857. <!-- <el-option-->
  858. <!-- v-for="dict in fWbuOptions"-->
  859. <!-- :key="dict.fId"-->
  860. <!-- :label="dict.fName"-->
  861. <!-- :value="dict.fId"-->
  862. <!-- ></el-option>-->
  863. <!-- </el-select>-->
  864. <!-- </template>-->
  865. <!-- </el-table-column>-->
  866. <!-- <el-table-column-->
  867. <!-- prop="fFeeunitid"-->
  868. <!-- header-align="center"-->
  869. <!-- align="center"-->
  870. <!-- width="180px"-->
  871. <!-- label="计价单位"-->
  872. <!-- >-->
  873. <!-- <template slot-scope="scope">-->
  874. <!-- <el-select-->
  875. <!-- v-model="scope.row.fFeeunitid"-->
  876. <!-- placeholder="请选择计价单位"-->
  877. <!-- :disabled="browseStatus"-->
  878. <!-- clearable-->
  879. <!-- >-->
  880. <!-- <el-option-->
  881. <!-- v-for="dict in fFeetunitOptions"-->
  882. <!-- :key="dict.dictValue"-->
  883. <!-- :label="dict.dictLabel"-->
  884. <!-- :value="dict.dictValue"-->
  885. <!-- />-->
  886. <!-- </el-select>-->
  887. <!-- </template>-->
  888. <!-- </el-table-column>-->
  889. <!-- <el-table-column-->
  890. <!-- prop="fQty"-->
  891. <!-- header-align="center"-->
  892. <!-- align="center"-->
  893. <!-- width="150px"-->
  894. <!-- label="数量"-->
  895. <!-- >-->
  896. <!-- <template slot-scope="scope">-->
  897. <!-- <el-input-->
  898. <!-- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d\d\d).*$/, "$1$2.$3")'-->
  899. <!-- v-model="scope.row.fQty"-->
  900. <!-- @change="changeEstmateAmt(scope.row)"-->
  901. <!-- :disabled="browseStatus"-->
  902. <!-- placeholder="数量"-->
  903. <!-- show-word-limit-->
  904. <!-- />-->
  905. <!-- </template>-->
  906. <!-- </el-table-column>-->
  907. <!-- <el-table-column-->
  908. <!-- prop="fUnitprice"-->
  909. <!-- header-align="center"-->
  910. <!-- align="center"-->
  911. <!-- width="150px"-->
  912. <!-- label="单价"-->
  913. <!-- >-->
  914. <!-- <template slot-scope="scope">-->
  915. <!-- <el-input-->
  916. <!-- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'-->
  917. <!-- v-model="scope.row.fUnitprice"-->
  918. <!-- @change="changeEstmateAmt(scope.row)"-->
  919. <!-- :disabled="browseStatus"-->
  920. <!-- placeholder="单价"-->
  921. <!-- show-word-limit-->
  922. <!-- />-->
  923. <!-- </template>-->
  924. <!-- </el-table-column>-->
  925. <!-- <el-table-column-->
  926. <!-- prop="fAmount"-->
  927. <!-- header-align="center"-->
  928. <!-- align="center"-->
  929. <!-- width="150px"-->
  930. <!-- label="金额"-->
  931. <!-- >-->
  932. <!-- <template slot-scope="scope">-->
  933. <!-- <el-input-->
  934. <!-- disabled-->
  935. <!-- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'-->
  936. <!-- v-model="scope.row.fAmount"-->
  937. <!-- placeholder="金额"-->
  938. <!-- show-word-limit-->
  939. <!-- />-->
  940. <!-- </template>-->
  941. <!-- </el-table-column>-->
  942. <!-- <el-table-column-->
  943. <!-- prop="fCurrency"-->
  944. <!-- header-align="center"-->
  945. <!-- align="center"-->
  946. <!-- width="150px"-->
  947. <!-- label="币别"-->
  948. <!-- >-->
  949. <!-- <template slot-scope="scope">-->
  950. <!-- <el-input-->
  951. <!-- v-model="scope.row.fCurrency"-->
  952. <!-- :disabled="browseStatus"-->
  953. <!-- placeholder="币别"-->
  954. <!-- show-word-limit-->
  955. <!-- />-->
  956. <!-- </template>-->
  957. <!-- </el-table-column>-->
  958. <!-- <el-table-column-->
  959. <!-- prop="fExrate"-->
  960. <!-- header-align="center"-->
  961. <!-- align="center"-->
  962. <!-- width="150px"-->
  963. <!-- label="汇率"-->
  964. <!-- >-->
  965. <!-- <template slot-scope="scope">-->
  966. <!-- <el-input-->
  967. <!-- v-model="scope.row.fExrate"-->
  968. <!-- :disabled="browseStatus"-->
  969. <!-- placeholder="汇率"-->
  970. <!-- show-word-limit-->
  971. <!-- />-->
  972. <!-- </template>-->
  973. <!-- </el-table-column>-->
  974. <!-- <el-table-column-->
  975. <!-- prop="fTaxrate"-->
  976. <!-- header-align="center"-->
  977. <!-- align="center"-->
  978. <!-- width="150px"-->
  979. <!-- label="税率"-->
  980. <!-- >-->
  981. <!-- <template slot-scope="scope">-->
  982. <!-- <el-input-->
  983. <!-- v-model="scope.row.fTaxrate"-->
  984. <!-- :disabled="browseStatus"-->
  985. <!-- placeholder="税率"-->
  986. <!-- show-word-limit-->
  987. <!-- />-->
  988. <!-- </template>-->
  989. <!-- </el-table-column>-->
  990. <!-- <el-table-column-->
  991. <!-- prop="fMblno"-->
  992. <!-- header-align="center"-->
  993. <!-- align="center"-->
  994. <!-- width="130px"-->
  995. <!-- label="提单号"-->
  996. <!-- >-->
  997. <!-- <template slot-scope="scope">-->
  998. <!-- <el-input-->
  999. <!-- v-model="scope.row.fMblno"-->
  1000. <!-- :disabled="browseStatus"-->
  1001. <!-- placeholder="提单号"-->
  1002. <!-- show-word-limit-->
  1003. <!-- />-->
  1004. <!-- </template>-->
  1005. <!-- </el-table-column>-->
  1006. <!-- <el-table-column-->
  1007. <!-- prop="fProductName"-->
  1008. <!-- header-align="center"-->
  1009. <!-- align="center"-->
  1010. <!-- width="140px"-->
  1011. <!-- label="品名"-->
  1012. <!-- >-->
  1013. <!-- <template slot-scope="scope">-->
  1014. <!-- <el-input-->
  1015. <!-- v-model="scope.row.fProductName"-->
  1016. <!-- :disabled="browseStatus"-->
  1017. <!-- placeholder="品名"-->
  1018. <!-- show-word-limit-->
  1019. <!-- />-->
  1020. <!-- </template>-->
  1021. <!-- </el-table-column>-->
  1022. <!-- <el-table-column-->
  1023. <!-- prop="fMarks"-->
  1024. <!-- header-align="center"-->
  1025. <!-- align="center"-->
  1026. <!-- width="130px"-->
  1027. <!-- label="品牌"-->
  1028. <!-- >-->
  1029. <!-- <template slot-scope="scope">-->
  1030. <!-- <el-input-->
  1031. <!-- v-model="scope.row.fMarks"-->
  1032. <!-- :disabled="browseStatus"-->
  1033. <!-- placeholder="品牌"-->
  1034. <!-- show-word-limit-->
  1035. <!-- />-->
  1036. <!-- </template>-->
  1037. <!-- </el-table-column>-->
  1038. <!-- <el-table-column-->
  1039. <!-- prop="remark"-->
  1040. <!-- header-align="center"-->
  1041. <!-- align="center"-->
  1042. <!-- width="150px"-->
  1043. <!-- label="备注"-->
  1044. <!-- >-->
  1045. <!-- <template slot-scope="scope">-->
  1046. <!-- <el-input-->
  1047. <!-- v-model="scope.row.remark"-->
  1048. <!-- :disabled="browseStatus"-->
  1049. <!-- placeholder="备注"-->
  1050. <!-- show-word-limit-->
  1051. <!-- />-->
  1052. <!-- </template>-->
  1053. <!-- </el-table-column>-->
  1054. <!-- <el-table-column-->
  1055. <!-- header-align="center"-->
  1056. <!-- align="center"-->
  1057. <!-- width="200px"-->
  1058. <!-- label="操作"-->
  1059. <!-- >-->
  1060. <!-- <template slot-scope="scope">-->
  1061. <!-- <el-button-->
  1062. <!-- @click.native.prevent="deleteRow(scope.$index, warehouseDrList)"-->
  1063. <!-- size="small"-->
  1064. <!-- >移除-->
  1065. <!-- </el-button-->
  1066. <!-- >-->
  1067. <!-- </template>-->
  1068. <!-- </el-table-column>-->
  1069. <!-- </el-table>-->
  1070. <!-- </div>-->
  1071. <div slot="footer" class="dialog-footer">
  1072. <el-button type="success" v-if="form.fBillstatus === 6" @click="backrRconciliation">撤销请核</el-button>
  1073. <el-button v-if="approve === true" @click="goApproval('f_billstatus')">审批</el-button>
  1074. <el-button type="primary" v-if="form.fBillstatus > 3" @click="addOrUpdateHandle('f_billstatus')">查看审批流
  1075. </el-button>
  1076. <el-button v-if="cancelButton === true" @click="cancel">取 消</el-button>
  1077. <el-button v-if="cancelButton === false" @click="homePage">取 消</el-button>
  1078. <el-button type="danger" :disabled="disappear" v-if="form.fBillstatus === '4' && Operator === Lander"
  1079. @click="backApproval('f_billstatus')">撤销审批
  1080. </el-button>
  1081. <el-button type="primary" :disabled="browseStatus" @click="submitForm(2)">保 存</el-button>
  1082. <el-button
  1083. :disabled="browseStatus"
  1084. style="background-color: #008000; color: #fff"
  1085. @click="submitForm(4)"
  1086. >请 核
  1087. </el-button>
  1088. </div>
  1089. <!-- 内置备注显示-->
  1090. <el-dialog
  1091. append-to-body
  1092. width="30%"
  1093. title="计费日期详情"
  1094. :visible.sync="innerVisible"
  1095. >
  1096. <div style="margin-top: 5px">
  1097. <p v-for="(item, index) in showDetail.priceDateRemarks" :key="index">{{ item }}</p>
  1098. </div>
  1099. <div slot="footer" class="dialog-footer">
  1100. <el-button @click="innerVisible = false">关 闭</el-button>
  1101. </div>
  1102. </el-dialog>
  1103. </el-dialog>
  1104. <add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
  1105. <approval-comments v-if="addOrUpdateVisib" ref="ApprovalComments" @refreshDataList="returnData"></approval-comments>
  1106. <!-- 当弹出未找到计费规则是弹出仓储费对话框 -->
  1107. <el-dialog
  1108. v-dialogDrag
  1109. :fullscreen="dialogFull"
  1110. title="仓储费协议"
  1111. :visible.sync="openAgreement" width="80%"
  1112. append-to-body
  1113. >
  1114. <div style="display: flex;">
  1115. <el-table border :data="contractnoList" @selection-change="handleSelectionChange" style="width: 30%;float:left;flex: 1;">
  1116. <el-table-column
  1117. prop="fContractno"
  1118. header-align="center"
  1119. align="center"
  1120. width="150"
  1121. label="合同编号"
  1122. >
  1123. <template slot-scope="scope">
  1124. <el-link type="primary" @click="selectShow(scope.row)">{{ scope.row.fContractno }}</el-link>
  1125. </template>
  1126. </el-table-column>
  1127. <el-table-column
  1128. prop="tPackages"
  1129. header-align="center"
  1130. align="center"
  1131. width="140"
  1132. label="货物类别"
  1133. >
  1134. <template slot-scope="scope">
  1135. <el-select
  1136. v-model="scope.row.tPackages"
  1137. placeholder="请选择货物类别"
  1138. clearable
  1139. :disabled="true"
  1140. multiple
  1141. >
  1142. <el-option
  1143. v-for="(dict, index) in fTypeidOptions"
  1144. :key="index.dictValue"
  1145. :label="dict.dictLabel"
  1146. :value="dict.dictValue"
  1147. ></el-option>
  1148. </el-select>
  1149. </template>
  1150. </el-table-column>
  1151. <el-table-column label="有效期至" sortable align="center" prop="fEnddate" width="120">
  1152. <template slot-scope="scope">
  1153. <span>{{ parseTime(scope.row.fEnddate, '{y}-{m}-{d}') }}</span>
  1154. </template>
  1155. </el-table-column>
  1156. </el-table>
  1157. <el-table v-loading="loading_s" border :data="agreementitemsList" @selection-change="handleSelectionChange" style="width: 70%;float:right;flex: 1.86;">
  1158. <el-table-column label="行号" align="center" type="index" fixed="left" width="100"/>
  1159. <el-table-column
  1160. prop="fFeeunitid"
  1161. header-align="center"
  1162. align="center"
  1163. width="125"
  1164. label="计价单位"
  1165. >
  1166. <template slot-scope="scope">
  1167. <el-select
  1168. v-model="scope.row.fFeeunitid"
  1169. placeholder="请选择计价单位"
  1170. @change="changeFeeUnit(scope.row)"
  1171. clearable
  1172. :disabled="true"
  1173. >
  1174. <el-option
  1175. v-for="(dict, index) in jFeetunitOptions"
  1176. :key="index.dictValue"
  1177. :label="dict.dictLabel"
  1178. :value="dict.dictValue"
  1179. />
  1180. </el-select>
  1181. </template>
  1182. </el-table-column>
  1183. <el-table-column label="开始天数" align="center" width="90">
  1184. <template slot-scope="scope">
  1185. <el-input
  1186. v-model="scope.row.fFromdays"
  1187. placeholder="请输入开始天数"
  1188. oninput='value = value.replace(/[^\d.]/g,"")'
  1189. clearable
  1190. size="small"
  1191. :disabled="true"
  1192. />
  1193. </template>
  1194. </el-table-column>
  1195. <el-table-column label="结束天数" align="center" width="90">
  1196. <template slot-scope="scope">
  1197. <el-input
  1198. v-model="scope.row.fEndays"
  1199. placeholder="请输入结束天数"
  1200. oninput='value = value.replace(/[^\d.]/g,"")'
  1201. clearable
  1202. size="small"
  1203. :disabled="true"
  1204. />
  1205. </template>
  1206. </el-table-column>
  1207. <!-- <el-table-column label="单价" align="center" width="90">
  1208. <el-input
  1209. slot-scope="scope"
  1210. v-model="scope.row.fPrice"
  1211. placeholder="请输入单价"
  1212. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  1213. clearable
  1214. size="small"
  1215. :disabled="true"
  1216. />
  1217. </el-table-column>
  1218. <el-table-column label="录入人" align="center" width="120">
  1219. <el-input
  1220. slot-scope="scope"
  1221. v-model="scope.row.createBy"
  1222. :disabled="true"
  1223. placeholder="默认录入人"
  1224. clearable
  1225. size="small"
  1226. />
  1227. </el-table-column>-->
  1228. <el-table-column label="录入时间" align="center" width="200">
  1229. <el-input
  1230. slot-scope="scope"
  1231. v-model="scope.row.createTime"
  1232. placeholder="默认录入时间"
  1233. :disabled="true"
  1234. clearable
  1235. size="small"
  1236. />
  1237. </el-table-column>
  1238. <el-table-column
  1239. prop="fFeeid"
  1240. header-align="center"
  1241. align="center"
  1242. width="160"
  1243. label="费用名称"
  1244. >
  1245. <template slot-scope="scope">
  1246. <el-select
  1247. v-model="scope.row.fFeeid"
  1248. filterable
  1249. remote
  1250. :disabled="true"
  1251. :remote-method="fWRemoteMethod"
  1252. placeholder="费用名称"
  1253. >
  1254. <el-option
  1255. v-for="(dict, index) in fWbuOptions"
  1256. :key="index.fId"
  1257. :label="dict.fName"
  1258. :value="dict.fId"
  1259. ></el-option>
  1260. </el-select>
  1261. </template>
  1262. </el-table-column>
  1263. </el-table>
  1264. </div>
  1265. </el-dialog>
  1266. </div>
  1267. </template>
  1268. <script>
  1269. import {
  1270. backFee,
  1271. calculateStorageFees,
  1272. getStorageFeeCalculation,
  1273. delStorageFeeCalculation,
  1274. addStorageFeeCalculation,
  1275. listStorageFeeCalculation,
  1276. updateStorageFeeCalculation,
  1277. exportStorageFeeCalculation,
  1278. exportWarehousebillsitems,
  1279. delstorageFeeCalculation_s,
  1280. exportWarehousebills,
  1281. exportDetail, getAgreementByFCorpId
  1282. } from '@/api/warehouseBusiness/storageFeeCalculation'
  1283. import {listUser, queryUserVal} from "@/api/system/user";
  1284. import {listGoods} from "@/api/basicdata/goods";
  1285. import {listFees} from "@/api/basicdata/fees";
  1286. import { agreementListCorps, agreementListCorpsNoParams, listCorps } from '@/api/basicdata/corps'
  1287. import moment from 'moment'
  1288. import AddOrUpdate from '@/views/viewApproval'
  1289. import ApprovalComments from '@/views/startApproval'
  1290. import Global from '@/layout/components/global'
  1291. import {getCharge} from '@/api/finance/charge'
  1292. import {RevocationApproval} from '@/api/finance/contrast'
  1293. import Vue from 'vue'
  1294. import UploadFile from '@/components/Uploadfile'
  1295. import draggable from "vuedraggable";
  1296. import Cookies from 'js-cookie'
  1297. import {addSet, select} from '@/api/system/set'
  1298. import {
  1299. listWarehousesss,
  1300. } from "@/api/basicdata/warehouse";
  1301. import { getAgreement } from '@/api/warehouseBusiness/agreement'
  1302. Vue.directive('dialogDrag', {
  1303. bind(el, binding, vnode, oldVnode) {
  1304. const dialogHeaderEl = el.querySelector('.el-dialog__header')
  1305. const dragDom = el.querySelector('.el-dialog')
  1306. const enlarge = el.querySelector('.enlarge')
  1307. dialogHeaderEl.style.cursor = 'move'
  1308. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  1309. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null)
  1310. if (enlarge) {
  1311. enlarge.onclick = (e) => {
  1312. dragDom.style.top = '0px'
  1313. dragDom.style.left = '0px'
  1314. }
  1315. }
  1316. dialogHeaderEl.onmousedown = (e) => {
  1317. // 鼠标按下,计算当前元素距离可视区的距离
  1318. const disX = e.clientX - dialogHeaderEl.offsetLeft
  1319. const disY = e.clientY - dialogHeaderEl.offsetTop
  1320. // 获取到的值带px 正则匹配替换
  1321. let styL, styT
  1322. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  1323. if (sty.left.includes('%')) {
  1324. styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, '') / 100)
  1325. styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, '') / 100)
  1326. } else {
  1327. styL = +sty.left.replace(/\px/g, '')
  1328. styT = +sty.top.replace(/\px/g, '')
  1329. }
  1330. document.onmousemove = function (e) {
  1331. // 通过事件委托,计算移动的距离
  1332. const l = e.clientX - disX
  1333. const t = e.clientY - disY
  1334. // 移动当前元素
  1335. if ((t + styT) >= 0) {
  1336. dragDom.style.top = `${t + styT}px`
  1337. }
  1338. dragDom.style.left = `${l + styL}px`
  1339. // 将此时的位置传出去
  1340. // binding.value({x:e.pageX,y:e.pageY})
  1341. }
  1342. document.onmouseup = function (e) {
  1343. document.onmousemove = null
  1344. document.onmouseup = null
  1345. }
  1346. }
  1347. }
  1348. })
  1349. export default {
  1350. name: "StorageFeeCalculation",
  1351. components: {
  1352. UploadFile,
  1353. AddOrUpdate,
  1354. ApprovalComments,
  1355. draggable,
  1356. },
  1357. data() {
  1358. return {
  1359. // 仓库
  1360. warehouseOptions: [],
  1361. innerVisible:false,
  1362. showDetail: {
  1363. priceDateRemarks: [],
  1364. },
  1365. showWarehouse: null,
  1366. tableHeight: '600',
  1367. dialogFull: false,
  1368. drag: false,
  1369. countstate: false,
  1370. setRowList: [
  1371. {
  1372. surface: "1",
  1373. label: "createBy",
  1374. name: "制单人",
  1375. checked: 0,
  1376. width: null,
  1377. },
  1378. {
  1379. surface: "2",
  1380. label: "fBillno",
  1381. name: "单据编号",
  1382. checked: 0,
  1383. width: null,
  1384. },
  1385. {
  1386. surface: "3",
  1387. label: "fCorpid",
  1388. name: "客户名称",
  1389. checked: 0,
  1390. width: null,
  1391. },
  1392. {
  1393. surface: "4",
  1394. label: "fBillingDeadline",
  1395. name: "计费日期",
  1396. checked: 0,
  1397. width: null,
  1398. },
  1399. {
  1400. surface: "5",
  1401. label: "remark",
  1402. name: "备注",
  1403. checked: 0,
  1404. width: null,
  1405. },
  1406. {
  1407. surface: "6",
  1408. label: "fBillstatus",
  1409. name: "单据状态",
  1410. checked: 0,
  1411. width: null,
  1412. },
  1413. {
  1414. surface: "7",
  1415. label: "createTime",
  1416. name: "制单日期",
  1417. checked: 0,
  1418. width: null,
  1419. },
  1420. ],
  1421. getRowList: [
  1422. {
  1423. surface: "1",
  1424. label: "createBy",
  1425. name: "制单人",
  1426. checked: 0,
  1427. width: null,
  1428. },
  1429. {
  1430. surface: "2",
  1431. label: "fBillno",
  1432. name: "单据编号",
  1433. checked: 0,
  1434. width: null,
  1435. },
  1436. {
  1437. surface: "3",
  1438. label: "fCorpid",
  1439. name: "客户名称",
  1440. checked: 0,
  1441. width: null,
  1442. },
  1443. {
  1444. surface: "4",
  1445. label: "fBillingDeadline",
  1446. name: "计费日期",
  1447. checked: 0,
  1448. width: null,
  1449. },
  1450. {
  1451. surface: "5",
  1452. label: "remark",
  1453. name: "备注",
  1454. checked: 0,
  1455. width: null,
  1456. },
  1457. {
  1458. surface: "6",
  1459. label: "fBillstatus",
  1460. name: "单据状态",
  1461. checked: 0,
  1462. width: null,
  1463. },
  1464. {
  1465. surface: "7",
  1466. label: "createTime",
  1467. name: "制单日期",
  1468. checked: 0,
  1469. width: null,
  1470. },
  1471. ],
  1472. allCheck: false,
  1473. showSetting: false,
  1474. Lander: '',
  1475. Operator: '',
  1476. actId: 150,
  1477. disappear: false,
  1478. cancelButton: true,
  1479. Xbutton: true,
  1480. approve: false,
  1481. addOrUpdateVisib: false,
  1482. addOrUpdateVisible: false,
  1483. notChange: false,
  1484. // 遮罩层
  1485. loading: true,
  1486. loading_s: false,
  1487. contractnoList: [],
  1488. agreementitemsList: [],
  1489. jFeetunitOptions: [],
  1490. fTypeidOptions: [],
  1491. showAgreementStatus: false,
  1492. // 选中数组
  1493. ids: [],
  1494. userVal: {
  1495. userName: null,
  1496. nickName: null,
  1497. deptId: null,
  1498. },
  1499. queryForm: {},
  1500. // 库存总账表
  1501. whgenlegList: [],
  1502. dataList: [],
  1503. warehouseDrList: [],
  1504. browseStatus: false,
  1505. // 非单个禁用
  1506. single: true,
  1507. // 非多个禁用
  1508. multiple: true,
  1509. // 显示搜索条件
  1510. showSearch: true,
  1511. // 总条数
  1512. total: 0,
  1513. // 仓库主(出入库)表格数据
  1514. warehousebillsList: [],
  1515. // 弹出层标题
  1516. title: "",
  1517. // 是否显示弹出层
  1518. open: false,
  1519. openAgreement: false,
  1520. // 货品名
  1521. goodsOptions: [],
  1522. // 货权方(客户数据)
  1523. fMblnoOptions: [],
  1524. NfMblnoOptions: [],
  1525. // 操作员
  1526. userOptions: [],
  1527. // 制单部门
  1528. deptOptions: [],
  1529. // 计费单位(数据字典),下拉选择毛重或净重字典
  1530. fFeetunitOptions: [/*{
  1531. dictLabel: '件数',
  1532. dictValue: 1
  1533. }, {
  1534. dictLabel: '毛重',
  1535. dictValue: 2
  1536. }, {
  1537. dictLabel: '净重',
  1538. dictValue: 3
  1539. }, {
  1540. dictLabel: '尺码',
  1541. dictValue: 4
  1542. }, {
  1543. dictLabel: '固定',
  1544. dictValue: 5
  1545. }*/],
  1546. fTaxrate: 0,
  1547. // 费用名称
  1548. fWbuOptions: [],
  1549. // 查询参数
  1550. queryParams: {
  1551. pageNum: 1,
  1552. pageSize: 10,
  1553. fBillno: null,
  1554. createBy: null,
  1555. createTime: null,
  1556. fCustomsdeclartion: null,
  1557. fOriginalbillno: null,
  1558. fDeptid: null,
  1559. fBsdeptid: null,
  1560. fContacts: null,
  1561. fTel: null,
  1562. fCorpid: null,
  1563. fTocorpid: null,
  1564. fStltypeid: null,
  1565. fBscorpno: null,
  1566. fWarehouseid: null,
  1567. fStorekeeper: null,
  1568. fBsdate: null,
  1569. fPlanqty: null,
  1570. fPlangrossweight: null,
  1571. fPlannetweight: null,
  1572. fPlanvolumn: null,
  1573. fQty: null,
  1574. fGrossweight: null,
  1575. fNetweight: null,
  1576. fVolumn: null,
  1577. fTrademodeid: null,
  1578. fSbu: null,
  1579. fFeetunit: null,
  1580. fMblno: null,
  1581. fVslvoy: null,
  1582. fEta: null,
  1583. fCustomno: null,
  1584. fIfweigh: null,
  1585. fIfpledge: null,
  1586. fIfdamage: null,
  1587. fBankcorpid: null,
  1588. fBilltype: null,
  1589. fBillstatus: null,
  1590. fCreateby: null,
  1591. fCreatetime: null,
  1592. fGoodsid: null,
  1593. fCntrtype: null,
  1594. fCntqty: null,
  1595. timeInterval2: null
  1596. },
  1597. // 表单参数
  1598. form: {},
  1599. // 表单校验
  1600. rules: {
  1601. fCorpid: [{required: true, message: " ", trigger: "blur",}],
  1602. fBillingDeadline: [{required: true, message: " ", trigger: "blur",}],
  1603. fGoodsid: [{required: false, message: " ", trigger: "blur",}]
  1604. },
  1605. pickerOptions: {
  1606. shortcuts: [{
  1607. text: '最近一周',
  1608. onClick(picker) {
  1609. const end = new Date();
  1610. const start = new Date();
  1611. start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
  1612. picker.$emit('pick', [start, end]);
  1613. }
  1614. }, {
  1615. text: '最近一个月',
  1616. onClick(picker) {
  1617. const end = new Date();
  1618. const start = new Date();
  1619. start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
  1620. picker.$emit('pick', [start, end]);
  1621. }
  1622. }, {
  1623. text: '最近三个月',
  1624. onClick(picker) {
  1625. const end = new Date();
  1626. const start = new Date();
  1627. start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
  1628. picker.$emit('pick', [start, end]);
  1629. }
  1630. }]
  1631. },
  1632. };
  1633. },
  1634. created() {
  1635. let date = new Date();
  1636. let lYear = parseInt(date.getFullYear())
  1637. let lMonth = parseInt(date.getMonth())
  1638. if (lMonth == 0) {
  1639. lMonth = 12
  1640. lYear = lYear - 1
  1641. }
  1642. let nYear = parseInt(date.getFullYear())
  1643. let nMonth = parseInt(date.getMonth() + 2)
  1644. if (nMonth > 12) {
  1645. nMonth = nMonth - 12
  1646. nYear = nYear + 1
  1647. }
  1648. let day30 = [4, 6, 9, 11]
  1649. let day31 = [1, 3, 5, 7, 8, 10, 12]
  1650. let nDay = null
  1651. if (day31.indexOf(nMonth) > -1) {
  1652. nDay = 31
  1653. } else if (day30.indexOf(nMonth) > -1) {
  1654. nDay = 30
  1655. } else if ((nYear % 4 == 0) && (nYear % 100 != 0 || nYear % 400 == 0)) {
  1656. nDay = 29
  1657. } else {
  1658. nDay = 28
  1659. }
  1660. this.queryParams.timeInterval2 = [lYear + '-' + lMonth + '-' + '01', nYear + '-' + nMonth + '-' + nDay]
  1661. this.getList();
  1662. this.getDicts("tax_rate").then((response) => {
  1663. this.fTaxrate = response.data[0].dictValue
  1664. });
  1665. this.getDicts('data_unitfees').then((response) => {
  1666. this.fFeetunitOptions = response.data
  1667. })
  1668. this.getConfigKey("agreement.warehouse").then((response) => {
  1669. this.showWarehouse = response.msg;
  1670. });
  1671. this.register()
  1672. listWarehousesss({fStatus: 0, delFlag: 0}).then((response) => {
  1673. this.warehouseOptions = response.rows;
  1674. });
  1675. agreementListCorpsNoParams().then((res) => {
  1676. if (res.data.corpList) {
  1677. this.NfMblnoOptions = res.data.corpList;
  1678. }
  1679. });
  1680. this.getDicts('data_goods_category').then(response => {
  1681. this.fTypeidOptions = response.data
  1682. })
  1683. },
  1684. activated() {
  1685. this.Jump()
  1686. if (this.$route.query.id) {
  1687. let data = {fId: this.$route.query.id}
  1688. this.handleUpdate_s(data, true)
  1689. }
  1690. },
  1691. mounted() {
  1692. this.$nextTick(() => {
  1693. // 监听浏览器高度变化,改变表格高度
  1694. window.onresize = () => {
  1695. this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
  1696. }
  1697. })
  1698. },
  1699. methods: {
  1700. full() {
  1701. this.dialogFull = !this.dialogFull
  1702. },
  1703. // 获取当前月的第一天和最后一天
  1704. getMonth() {
  1705. let date = new Date();
  1706. let year = parseInt(date.getFullYear())
  1707. let month = parseInt(date.getMonth() + 1)
  1708. let currentMonth = date.getMonth()
  1709. let nextMonth = ++currentMonth
  1710. let nextMonthFirstDay = new Date(date.getFullYear(), nextMonth, 1) // 下个月的第一天
  1711. let oneDay = 1000*60*60*24
  1712. let lastTime = new Date(nextMonthFirstDay - oneDay) // 下个月的第一天减去一天,就是上个月的最后一天
  1713. let day = lastTime.getDate()
  1714. if (day < 10) {
  1715. day = '0' + day
  1716. }
  1717. this.queryParams.timeInterval = [year + '-' + month + '-' + '01 00:00:00', year + '-' + month + '-' + day + ' 23:59:59']
  1718. },
  1719. //列设置全选
  1720. allChecked() {
  1721. if (this.allCheck == true) {
  1722. this.setRowList.map((e) => {
  1723. return (e.checked = 0);
  1724. });
  1725. } else {
  1726. this.setRowList.map((e) => {
  1727. return (e.checked = 1);
  1728. });
  1729. }
  1730. },
  1731. //查询列数据
  1732. getRow() {
  1733. let that = this;
  1734. this.data = {
  1735. tableName: "货转",
  1736. userId: Cookies.get("userName"),
  1737. };
  1738. select(this.data).then((res) => {
  1739. if (res.data.length != 0) {
  1740. this.getRowList = res.data.filter((e) => e.checked == 0);
  1741. this.setRowList = res.data;
  1742. this.setRowList = this.setRowList.reduce((res, item) => {
  1743. res.push({
  1744. surface: item.surface,
  1745. label: item.label,
  1746. name: item.name,
  1747. checked: item.checked,
  1748. width: item.width,
  1749. });
  1750. return res;
  1751. }, []);
  1752. }
  1753. });
  1754. },
  1755. //保存列设置
  1756. save() {
  1757. this.showSetting = false;
  1758. this.data = {
  1759. tableName: "货转",
  1760. userId: Cookies.get("userName"),
  1761. sysTableSetList: this.setRowList,
  1762. };
  1763. addSet(this.data).then((res) => {
  1764. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  1765. });
  1766. },
  1767. //开始拖拽事件
  1768. onStart() {
  1769. this.drag = true;
  1770. },
  1771. //拖拽结束事件
  1772. onEnd() {
  1773. this.drag = false;
  1774. },
  1775. // 撤销审核
  1776. backrRconciliation() {
  1777. // this.form.fBillstatus = '1'
  1778. backFee(this.form.fId).then(response => {
  1779. this.msgSuccess("撤回成功")
  1780. this.getList()
  1781. this.open = false
  1782. this.getList()
  1783. })
  1784. },
  1785. // 默认录入人
  1786. register() {
  1787. queryUserVal().then((response) => {
  1788. this.Lander = response.user.userName
  1789. })
  1790. },
  1791. // 撤销审批
  1792. backApproval() {
  1793. let data = {
  1794. id: this.form.fId,
  1795. actId: 150,
  1796. billId: this.form.fId
  1797. }
  1798. RevocationApproval(data).then(response => {
  1799. this.msgSuccess("撤销审批成功")
  1800. this.disappear = true
  1801. this.open = false
  1802. this.getList()
  1803. })
  1804. },
  1805. homepaGe() {
  1806. let view = {
  1807. fullPath: "/business/agreement",
  1808. hash: "",
  1809. matched: Array(2),
  1810. meta: Object,
  1811. name: "Agreement",
  1812. params: Object,
  1813. path: "/business/agreement",
  1814. query: Object,
  1815. title: "仓储费"
  1816. }
  1817. this.$router.push({path: '/index'})
  1818. this.$store.dispatch('tagsView/delView', view).then(({visitedViews}) => {
  1819. if (this.isActive(view)) {
  1820. this.toLastView(visitedViews, view)
  1821. }
  1822. })
  1823. Global.$emit("removeCache", "closeSelectedTag", view);
  1824. },
  1825. Jump() {
  1826. this.approval = this.$route.query.data
  1827. if (this.approval) {
  1828. this.reset()
  1829. this.browseStatus = status;
  1830. this.Xbutton = false
  1831. this.approval = JSON.parse(this.approval)
  1832. // this.hide = false
  1833. this.notChange = true
  1834. this.approve = true
  1835. this.cancelButton = false
  1836. getStorageFeeCalculation(this.approval.billId).then(response => {
  1837. this.fMblnoOptions = []
  1838. if (response.data.corps) {
  1839. this.fMblnoOptions.push(response.data.corps)
  1840. }
  1841. if (response.data.warehouse) {
  1842. this.form = response.data.warehouse
  1843. this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
  1844. this.$set(this.form, 'fBillingDeadline', Date.parse(this.form.fBillingDeadline))
  1845. }
  1846. if (response.data.warehouseItemsList) {
  1847. this.dataList = response.data.warehouseItemsList
  1848. for (let li in this.dataList) {
  1849. this.$set(this.dataList[li], 'fBillingway', this.dataList[li].fBillingway + '')
  1850. this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
  1851. this.$set(this.dataList[li], 'fChargedate', Date.parse(this.dataList[li].fChargedate))
  1852. this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
  1853. this.$set(this.dataList[li], 'fStorageFeeDeadline', Date.parse(this.dataList[li].fStorageFeeDeadline))
  1854. }
  1855. }
  1856. if (response.data.warehouseFeesList) {
  1857. this.warehouseDrList = response.data.warehouseFeesList
  1858. for (let dr in this.warehouseDrList) {
  1859. this.$set(this.warehouseDrList[dr], "fFeeunitid", this.warehouseDrList[dr].fFeeunitid + '');
  1860. }
  1861. }
  1862. if (response.data.feesList) {
  1863. this.fWbuOptions = response.data.feesList
  1864. }
  1865. this.userOptions = response.data.sysUser;
  1866. this.open = true;
  1867. this.title = "编辑仓储费计算";
  1868. });
  1869. }
  1870. },
  1871. // 审批按钮
  1872. goApproval(status) {
  1873. this.addOrUpdateVisib = true
  1874. this.$nextTick(() => {
  1875. this.$refs.ApprovalComments.init(this.form.fId, status, this.actId)
  1876. })
  1877. },
  1878. homePage() {
  1879. this.open = false
  1880. this.showAgreementStatus = false
  1881. let view = {
  1882. fullPath: "/business/agreement",
  1883. hash: "",
  1884. matched: Array(2),
  1885. meta: Object,
  1886. name: "Agreement",
  1887. params: Object,
  1888. path: "/business/agreement",
  1889. query: Object,
  1890. title: "仓储费"
  1891. }
  1892. this.$router.push({path: '/index'})
  1893. this.$store.dispatch('tagsView/delView', view).then(({visitedViews}) => {
  1894. if (this.isActive(view)) {
  1895. this.toLastView(visitedViews, view)
  1896. }
  1897. })
  1898. Global.$emit("removeCache", "closeSelectedTag", view);
  1899. },
  1900. // 查看审批流
  1901. addOrUpdateHandle(status) {
  1902. this.addOrUpdateVisible = true
  1903. this.addOrUpdateVisib = false
  1904. let id = '448'
  1905. let actId = '110'
  1906. this.$nextTick(() => {
  1907. this.$refs.addOrUpdate.init(this.form.fId, this.actId, status)
  1908. })
  1909. },
  1910. returnData() {
  1911. this.addOrUpdateVisib = false
  1912. this.open = false
  1913. this.homepaGe()
  1914. },
  1915. getDataList() {
  1916. this.addOrUpdateVisible = false
  1917. },
  1918. queryUser() {
  1919. queryUserVal().then((response) => {
  1920. if (response.user !== null) {
  1921. this.userVal = response.user;
  1922. this.$set(this.form, "fDeptid", this.userVal.deptId);
  1923. this.$set(this.form, "createBy", this.userVal.userName);
  1924. this.$set(this.form, "fIfdamage", "1");
  1925. this.$set(this.form, "fIfweigh", "1");
  1926. this.$set(this.form, "fTrademodeid", "1");
  1927. this.$set(this.form, "createTime", Date.parse(new Date()));
  1928. }
  1929. if (response.dept !== null) {
  1930. this.deptOptions = [];
  1931. this.deptOptions.push(response.dept);
  1932. }
  1933. });
  1934. },
  1935. /** 查询仓库主(出入库)列表 */
  1936. getList() {
  1937. this.loading = true;
  1938. listStorageFeeCalculation(this.queryParams).then((response) => {
  1939. this.warehousebillsList = response.rows;
  1940. this.$set(this.form, 'createTime', moment(Date.parse(this.warehousebillsList.createTime)).format("YYYY-MM-DD HH:mm:ss"))
  1941. this.total = response.total;
  1942. this.loading = false;
  1943. // 根据浏览器高度设置初始高度
  1944. setTimeout(() => {
  1945. this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 70
  1946. }, 300)
  1947. });
  1948. },
  1949. // 取消按钮
  1950. cancel() {
  1951. this.open = false;
  1952. this.showAgreementStatus = false;
  1953. this.reset();
  1954. this.getList();
  1955. },
  1956. changeFeeDate() {
  1957. if (!this.form.fCorpid || !this.form.fBillingDeadline) return
  1958. this.dataList = []
  1959. this.getStorageFee()
  1960. // if (this.dataList.length !== 0) {
  1961. // this.$confirm(`仓储费已经存在,确定要删除重新计算吗?`, '提示', {
  1962. // confirmButtonText: '确定',
  1963. // cancelButtonText: '取消',
  1964. // type: 'warning'
  1965. // }).then(() => {
  1966. // this.dataList = []
  1967. // this.getStorageFee()
  1968. // }).catch(() => {
  1969. // return false
  1970. // })
  1971. // } else {
  1972. // this.dataList = []
  1973. // this.getStorageFee()
  1974. // }
  1975. },
  1976. // 计算仓储费
  1977. calculateCost() {
  1978. this.countstate = true
  1979. if (!this.form.fCorpid || !this.form.fBillingDeadline) {
  1980. this.$message({message: '请维护客户名称以及,仓储费计算截止日期', type: 'warning'})
  1981. this.countstate = false
  1982. return false
  1983. }
  1984. if (this.dataList.length !== 0) {
  1985. this.$confirm(`仓储费已经存在,确定要删除重新计算吗?`, '提示', {
  1986. confirmButtonText: '确定',
  1987. cancelButtonText: '取消',
  1988. type: 'warning'
  1989. }).then(() => {
  1990. this.dataList = []
  1991. this.getStorageFee()
  1992. }).catch(() => {
  1993. return false
  1994. })
  1995. } else {
  1996. this.dataList = []
  1997. this.getStorageFee()
  1998. }
  1999. },
  2000. // 添加费用新行
  2001. // 收款信息
  2002. addCollection() {
  2003. this.warehouseDrList.push({
  2004. fCorpid: null,
  2005. fFeeid: null,
  2006. fFeeunitid: "2",
  2007. fQty: 0,
  2008. fUnitprice: 0,
  2009. fAmount: 0,
  2010. fCurrency: "RMB",
  2011. fExrate: "1",
  2012. fTaxrate: this.fTaxrate,
  2013. fCxrate: "1",
  2014. fRate: null,
  2015. remark: null,
  2016. });
  2017. },
  2018. getStorageFee() {
  2019. calculateStorageFees(this.form).then((response) => {
  2020. this.dataList = []
  2021. this.warehouseDrList = []
  2022. this.form.fId = response.data.warehouseBills.fId
  2023. this.form.fBillno = response.data.warehouseBills.fBillno
  2024. if (response.data.warehouseFeesList) {
  2025. this.warehouseDrList = response.data.warehouseFeesList
  2026. }
  2027. if (response.data.warehouseItemList) {
  2028. this.dataList = response.data.warehouseItemList
  2029. for (let li in this.dataList) {
  2030. this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
  2031. this.$set(this.dataList[li], 'fBillingway', this.dataList[li].fBillingway + '')
  2032. this.$set(this.dataList[li], 'fChargedate', Date.parse(this.dataList[li].fChargedate))
  2033. this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
  2034. this.$set(this.dataList[li], 'fOriginalbilldate', Date.parse(this.dataList[li].fOriginalbilldate))
  2035. this.$set(this.dataList[li], 'fBillingway', this.dataList[li].fBillingway + '')
  2036. }
  2037. }
  2038. if (response.data.feesList) {
  2039. this.fWbuOptions = response.data.feesList
  2040. }
  2041. this.countstate = false
  2042. },(error) => {
  2043. this.showAgreementStatus = true
  2044. });
  2045. },
  2046. showAgreement() {
  2047. getAgreementByFCorpId(this.form.fCorpid).then((res) => {
  2048. this.contractnoList = res.data.contractnoList;
  2049. this.contractnoList.forEach(item => {
  2050. item.tPackages = item.tPackages.map(e => e = e.toString())
  2051. })
  2052. })
  2053. this.openAgreement = true
  2054. },
  2055. handleClose () {
  2056. this.showAgreementStatus = false;
  2057. this.open = false;
  2058. },
  2059. selectShow(row) {
  2060. getAgreement(row.fId).then(response => {
  2061. this.agreementitemsList = response.data.tWarehouseAgreementitems
  2062. for (let item in this.agreementitemsList) {
  2063. this.$set(this.agreementitemsList[item], 'fFeeunitid', this.agreementitemsList[item].fFeeunitid + '')
  2064. }
  2065. this.fWbuOptions = response.data.feesList
  2066. })
  2067. this.getDicts("data_unitfees").then(response => {
  2068. this.jFeetunitOptions = response.data;
  2069. });
  2070. },
  2071. // 变更计价单位
  2072. changeFeeUnit(row) {
  2073. if (!row.fFeeUnitid) {
  2074. return false
  2075. }
  2076. if (row.fFeeUnitid === '0') {
  2077. this.$set(row, 'fQty', this.fCntqty)
  2078. } else if (row.fFeeUnitid === '1') {
  2079. this.$set(row, 'fQty', this.fGrossweight)
  2080. }
  2081. if (row.fUnitprice) {
  2082. this.$set(
  2083. row,
  2084. 'fAmount',
  2085. parseFloat(Number(row.fUnitprice) * Number(row.fQty)).toFixed(2)
  2086. )
  2087. }
  2088. },
  2089. /* 远程模糊查询商品 */
  2090. goodsRemoteMethod(name) {
  2091. if (name == null || name === "") {
  2092. return false;
  2093. }
  2094. let queryParams = {fName: name};
  2095. listGoods(queryParams).then((response) => {
  2096. this.goodsOptions = response.rows;
  2097. });
  2098. },
  2099. // 表单重置
  2100. reset() {
  2101. this.form = {
  2102. fId: null,
  2103. fBillno: null,
  2104. fCustomsdeclartion: null,
  2105. fOriginalbillno: null,
  2106. fDeptid: null,
  2107. fBsdeptid: null,
  2108. fContacts: null,
  2109. fTel: null,
  2110. fCorpid: null,
  2111. fTocorpid: null,
  2112. fStltypeid: null,
  2113. fBscorpno: null,
  2114. fWarehouseid: null,
  2115. fStorekeeper: null,
  2116. fBsdate: null,
  2117. fPlanqty: null,
  2118. fPlangrossweight: null,
  2119. fPlannetweight: null,
  2120. fPlanvolumn: null,
  2121. fQty: null,
  2122. fGrossweight: null,
  2123. fNetweight: null,
  2124. fVolumn: null,
  2125. fTrademodeid: null,
  2126. fSbu: null,
  2127. fFeetunit: null,
  2128. fMblno: null,
  2129. fVslvoy: null,
  2130. fEta: null,
  2131. fCustomno: null,
  2132. fIfweigh: null,
  2133. fIfpledge: null,
  2134. fIfdamage: null,
  2135. fBankcorpid: null,
  2136. fBilltype: null,
  2137. fBillstatus: null,
  2138. delFlag: null,
  2139. createBy: null,
  2140. createTime: null,
  2141. updateBy: null,
  2142. updateTime: null,
  2143. remark: null,
  2144. fCreateby: null,
  2145. fCreatetime: null,
  2146. fGoodsid: null,
  2147. fCntrtype: null,
  2148. fCntqty: null,
  2149. };
  2150. this.deptOptions = [];
  2151. this.userOptions = [];
  2152. this.fWbuOptions = [];
  2153. this.fMblnoOptions = [];
  2154. this.disappear = false
  2155. this.addOrUpdateVisib = false
  2156. this.addOrUpdateVisible = false
  2157. this.notChange = false
  2158. this.loading = false
  2159. this.browseStatus = false
  2160. this.resetForm("form");
  2161. },
  2162. /** 搜索按钮操作 */
  2163. handleQuery() {
  2164. this.queryParams.pageNum = 1;
  2165. this.getList();
  2166. },
  2167. /** 重置按钮操作 */
  2168. resetQuery() {
  2169. this.queryParams = {
  2170. fBillstatus: null,
  2171. fBillno: null,
  2172. createBy: null,
  2173. timeInterval: null,
  2174. fCorpid: null,
  2175. fMblno: null,
  2176. fSbu: null,
  2177. fGoodsid: null,
  2178. fWarehouseid: null,
  2179. fMarks: null,
  2180. }
  2181. this.resetForm("queryForm");
  2182. this.handleQuery();
  2183. },
  2184. // 多选框选中数据
  2185. handleSelectionChange(selection) {
  2186. this.ids = selection;
  2187. // this.ids = selection.map((item) => item.fId);
  2188. this.single = selection.length !== 1 || selection.map((item) => item.fBillstatus) == 6 || selection.map((item) => item.fBillstatus) == 4;
  2189. this.multiple = !selection.length;
  2190. },
  2191. /** 新增按钮操作 */
  2192. handleAdd(status) {
  2193. this.reset();
  2194. this.browseStatus = status;
  2195. this.queryUser();
  2196. this.open = true;
  2197. this.dataList = [];
  2198. this.warehouseCrList = [];
  2199. this.warehouseDrList = [];
  2200. this.relevantAttachments = [];
  2201. this.title = "出库单";
  2202. },
  2203. handleUpdate_s(row, status) {
  2204. const queryParams = {fName: ''};
  2205. listGoods(queryParams).then((response) => {
  2206. this.goodsOptions = response.rows;
  2207. });
  2208. this.reset();
  2209. this.notChange = true
  2210. this.browseStatus = status;
  2211. let data = row || this.ids;
  2212. getStorageFeeCalculation(data.fId).then((response) => {
  2213. this.fMblnoOptions = []
  2214. if (response.data.corps) {
  2215. this.fMblnoOptions.push(response.data.corps)
  2216. }
  2217. if (response.data.warehouse) {
  2218. this.form = response.data.warehouse
  2219. this.Operator = this.form.createBy
  2220. this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
  2221. this.$set(this.form, 'fBillingDeadline', Date.parse(this.form.fBillingDeadline))
  2222. }
  2223. if (response.data.warehouseItemsList) {
  2224. this.dataList = response.data.warehouseItemsList
  2225. for (let li in this.dataList) {
  2226. this.$set(this.dataList[li], 'fBillingway', this.dataList[li].fBillingway + '')
  2227. this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
  2228. this.$set(this.dataList[li], 'fChargedate', Date.parse(this.dataList[li].fChargedate))
  2229. this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
  2230. this.$set(this.dataList[li], 'fStorageFeeDeadline', Date.parse(this.dataList[li].fStorageFeeDeadline))
  2231. }
  2232. }
  2233. if (response.data.warehouseFeesList) {
  2234. this.warehouseDrList = response.data.warehouseFeesList
  2235. for (let dr in this.warehouseDrList) {
  2236. this.$set(this.warehouseDrList[dr], "fFeeunitid", this.warehouseDrList[dr].fFeeunitid + '');
  2237. }
  2238. }
  2239. if (response.data.feesList) {
  2240. this.fWbuOptions = response.data.feesList
  2241. }
  2242. this.userOptions = response.data.sysUser;
  2243. this.open = true;
  2244. this.title = "编辑仓储费计算";
  2245. });
  2246. },
  2247. /** 修改按钮操作 */
  2248. handleUpdate(row, status) {
  2249. const queryParams = {fName: ''};
  2250. listGoods(queryParams).then((response) => {
  2251. this.goodsOptions = response.rows;
  2252. });
  2253. this.reset();
  2254. this.disappear = false
  2255. this.notChange = true
  2256. this.browseStatus = status;
  2257. let fId = row.fId || this.ids;
  2258. if (fId.length === 1) {
  2259. fId = fId[0].fId
  2260. }
  2261. getStorageFeeCalculation(fId).then((response) => {
  2262. this.fMblnoOptions = []
  2263. if (response.data.corps) {
  2264. this.fMblnoOptions.push(response.data.corps)
  2265. }
  2266. if (response.data.warehouse) {
  2267. this.form = response.data.warehouse
  2268. this.Operator = this.form.createBy
  2269. this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
  2270. this.$set(this.form, 'fBillingDeadline', Date.parse(this.form.fBillingDeadline))
  2271. }
  2272. if (response.data.warehouseItemsList) {
  2273. this.dataList = response.data.warehouseItemsList
  2274. for (let li in this.dataList) {
  2275. this.$set(this.dataList[li], 'fBillingway', this.dataList[li].fBillingway + '')
  2276. this.$set(this.dataList[li], 'fBsdate', Date.parse(this.dataList[li].fBsdate))
  2277. this.$set(this.dataList[li], 'fChargedate', Date.parse(this.dataList[li].fChargedate))
  2278. this.$set(this.dataList[li], 'fBillingDeadline', Date.parse(this.dataList[li].fBillingDeadline))
  2279. this.$set(this.dataList[li], 'fStorageFeeDeadline', Date.parse(this.dataList[li].fStorageFeeDeadline))
  2280. }
  2281. }
  2282. if (response.data.warehouseFeesList) {
  2283. this.warehouseDrList = response.data.warehouseFeesList
  2284. for (let dr in this.warehouseDrList) {
  2285. this.$set(this.warehouseDrList[dr], "fFeeunitid", this.warehouseDrList[dr].fFeeunitid + '');
  2286. }
  2287. }
  2288. if (response.data.feesList) {
  2289. this.fWbuOptions = response.data.feesList
  2290. }
  2291. this.userOptions = response.data.sysUser;
  2292. this.open = true;
  2293. this.title = "编辑仓储费计算";
  2294. });
  2295. },
  2296. changeEstmateAmt(row) {
  2297. let fQty = 0
  2298. let fUnitprice = 0
  2299. if (row.fUnitprice && row.fUnitprice !== "") {
  2300. fUnitprice = row.fUnitprice
  2301. }
  2302. if (row.fQty && row.fQty !== "") {
  2303. fQty = row.fQty
  2304. }
  2305. this.$set(row, "fAmount", Number(fUnitprice) * Number(fQty)).toFixed(2);
  2306. },
  2307. changefBsdate(row) {
  2308. if (this.dataList.length > 0) {
  2309. for (var i = 0; i < this.dataList.length; i++) {
  2310. this.$set(this.dataList[i], "fBsdate", row);
  2311. }
  2312. }
  2313. },
  2314. // 合计
  2315. getSummaries(param) {
  2316. const {columns, data} = param;
  2317. const sums = [];
  2318. var values = [];
  2319. columns.forEach((column, index) => {
  2320. if (index === 0) {
  2321. sums[index] = "合计";
  2322. return;
  2323. }
  2324. if (column.property === "fBillingQty") {
  2325. values = data.map((item) => Number(item["fBillingQty"]));
  2326. }
  2327. if (column.property === "fAmt") {
  2328. values = data.map((item) => Number(item["fAmt"]));
  2329. }
  2330. // const values = data.map(item => Number(item[column.property]))
  2331. if (column.property === "fBillingQty" || column.property === "fAmt") {
  2332. sums[index] = values.reduce((prev, curr) => {
  2333. const value = Number(curr);
  2334. if (!isNaN(value)) {
  2335. return prev + curr;
  2336. } else {
  2337. return prev;
  2338. }
  2339. }, 0);
  2340. sums[index] = sums[index].toFixed(2)
  2341. } else {
  2342. sums[index] = '-'
  2343. }
  2344. });
  2345. return sums;
  2346. },
  2347. // 付款合计
  2348. warehouseDrSummaries(param) {
  2349. const {columns, data} = param;
  2350. const sums = [];
  2351. columns.forEach((column, index) => {
  2352. if (index === 0) {
  2353. sums[index] = "合计";
  2354. return;
  2355. }
  2356. const values = data.map((item) => Number(item[column.property]));
  2357. if (column.property === "fAmount") {
  2358. sums[index] = values.reduce((prev, curr) => {
  2359. const value = Number(curr);
  2360. if (!isNaN(value)) {
  2361. return prev + curr;
  2362. } else {
  2363. return prev;
  2364. }
  2365. }, 0); // sums[index]
  2366. sums[index] = sums[index].toFixed(2)
  2367. } else {
  2368. sums[index] = '-'
  2369. }
  2370. });
  2371. return sums;
  2372. },
  2373. /** 删除按钮操作 */
  2374. handleDelete(row) {
  2375. console.log(this.ids)
  2376. let ids_FId = [];
  2377. this.ids.forEach(item => {
  2378. ids_FId.push(item.fId)
  2379. })
  2380. // const fIds = row.fId || this.ids.fId;
  2381. const fIds = row.fId || ids_FId;
  2382. console.log(fIds)
  2383. let tips = ''
  2384. delstorageFeeCalculation_s(fIds).then(data => {
  2385. console.log(data)
  2386. switch (data.msg) {
  2387. case '0': {
  2388. this.$message.error('当前数据已被其他操作员操作请刷新页面')
  2389. break
  2390. }
  2391. case '1': {
  2392. tips = '当前主表有数据从表无数据是否删除'
  2393. this.delete_s(fIds, tips)
  2394. break
  2395. }
  2396. case '2': {
  2397. tips = '当前主表有数据从表有数据是否删除'
  2398. this.delete_s(fIds, tips)
  2399. break
  2400. }
  2401. default: {
  2402. return this.$message.error('未知错误,无状态')
  2403. }
  2404. }
  2405. })
  2406. },
  2407. delete_s(fIds, tips) {
  2408. this.$confirm(
  2409. tips,
  2410. "警告",
  2411. {
  2412. confirmButtonText: "确定",
  2413. cancelButtonText: "取消",
  2414. type: "warning",
  2415. }
  2416. )
  2417. .then(function () {
  2418. return delStorageFeeCalculation(fIds);
  2419. })
  2420. .then(() => {
  2421. this.getList();
  2422. this.msgSuccess("删除成功");
  2423. });
  2424. },
  2425. /** 导出按钮操作 */
  2426. handleExport() {
  2427. const queryParams = this.queryParams;
  2428. this.$confirm("是否确认导出所有仓库主(出入库)数据项?", "警告", {
  2429. confirmButtonText: "确定",
  2430. cancelButtonText: "取消",
  2431. type: "warning",
  2432. })
  2433. .then(function () {
  2434. return exportWarehousebills(queryParams);
  2435. })
  2436. .then((response) => {
  2437. this.download(response.msg);
  2438. });
  2439. },
  2440. handleExportItems() {
  2441. const fIds = this.form.fId
  2442. if (fIds !== null) {
  2443. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  2444. confirmButtonText: "确定",
  2445. cancelButtonText: "取消",
  2446. type: "warning",
  2447. })
  2448. .then(function () {
  2449. return exportWarehousebillsitems(fIds);
  2450. })
  2451. .then((response) => {
  2452. this.download(response.msg);
  2453. });
  2454. } else {
  2455. this.$message("请先保存")
  2456. }
  2457. },
  2458. exportDetail() {
  2459. const fIds = this.form.fId
  2460. if (fIds !== null) {
  2461. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  2462. confirmButtonText: "确定",
  2463. cancelButtonText: "取消",
  2464. type: "warning",
  2465. })
  2466. .then(function () {
  2467. return exportDetail(fIds);
  2468. })
  2469. .then((response) => {
  2470. this.download(response.msg);
  2471. });
  2472. } else {
  2473. this.$message("请先保存")
  2474. }
  2475. },
  2476. deleteRow(index, rows) {
  2477. rows.splice(index, 1);
  2478. },
  2479. /* 远程模糊查询用户 */
  2480. corpsRemoteMethod(name) {
  2481. if (name == null || name === "") {
  2482. return false;
  2483. }
  2484. let queryParams = {pageNum: 1, pageSize: 10, fName: name};
  2485. agreementListCorps(queryParams).then((response) => {
  2486. this.fMblnoOptions = response.rows;
  2487. });
  2488. },
  2489. // 远程模糊查询费用名称
  2490. fWRemoteMethod(name) {
  2491. if (name == null || name === "") {
  2492. return false;
  2493. }
  2494. let queryParams = {pageNum: 1, pageSize: 10, fName: name};
  2495. listFees(queryParams).then((response) => {
  2496. this.fWbuOptions = response.rows;
  2497. });
  2498. },
  2499. /* 远程模糊查询操作用户 */
  2500. userRemoteMethod(name) {
  2501. if (name == null || name === "") {
  2502. return false;
  2503. }
  2504. let queryParams = {pageNum: 1, pageSize: 10, userName: name};
  2505. listUser(queryParams).then((response) => {
  2506. this.userOptions = response.rows;
  2507. });
  2508. },
  2509. /** 提交按钮 */
  2510. submitForm(status) {
  2511. this.$refs["form"].validate((valid) => {
  2512. if (valid) {
  2513. if (status !== 2) {
  2514. if (this.dataList.length === 0) {
  2515. this.$message.error("请维护计费物资明细!");
  2516. return false;
  2517. }
  2518. }
  2519. if (!this.form.fCorpid) {
  2520. this.$message({message: '请维护货权方', type: 'warning'})
  2521. return false
  2522. }
  2523. if (!this.form.fBillingDeadline) {
  2524. this.$message({message: '请维护仓储费计算截止日期', type: 'warning'})
  2525. return false
  2526. }
  2527. if (this.form.fBillstatus !== 4) {
  2528. this.form.fBillstatus = status
  2529. }
  2530. let formData = new window.FormData();
  2531. formData.append("warehouseBills", JSON.stringify(this.form));
  2532. formData.append("warehouseItems", JSON.stringify(this.dataList));
  2533. formData.append("warehouseFees", JSON.stringify(this.warehouseDrList));
  2534. addStorageFeeCalculation(formData).then((response) => {
  2535. this.msgSuccess("操作成功");
  2536. if (status !== 2) {
  2537. this.open = false;
  2538. this.reset()
  2539. this.getList();
  2540. } else {
  2541. this.form = response.data
  2542. this.$set(this.form, 'createTime', Date.parse(this.form.createTime))
  2543. this.$set(this.form, 'fBillingDeadline', Date.parse(this.form.fBillingDeadline))
  2544. }
  2545. })
  2546. }
  2547. });
  2548. },
  2549. showRemarkDetail(row) {
  2550. let data = row.priceDateRemarks.split(',');
  2551. this.showDetail.priceDateRemarks = data
  2552. this.innerVisible = true;
  2553. },
  2554. }
  2555. };
  2556. </script>
  2557. <style lang="scss" scoped>
  2558. @import 'src/assets/styles/element-variables.scss';
  2559. .tabSetting {
  2560. display: flex;
  2561. justify-content: flex-end;
  2562. }
  2563. .listStyle {
  2564. display: flex;
  2565. border-top: 1px solid #dcdfe6;
  2566. border-left: 1px solid #dcdfe6;
  2567. border-right: 1px solid #dcdfe6;
  2568. }
  2569. .listStyle:last-child {
  2570. border-bottom: 1px solid #dcdfe6;
  2571. }
  2572. .progress {
  2573. display: flex;
  2574. align-items: center;
  2575. padding: 2px;
  2576. background-color: rgba(0, 0, 0, 0.05);
  2577. height: 100%;
  2578. }
  2579. .juzhong > th {
  2580. text-align: center;
  2581. }
  2582. .biaoge > tr > td {
  2583. height: 30px;
  2584. text-align: center;
  2585. border-right: 1px solid #dfe6ec !important;
  2586. border-bottom: 1px solid #dfe6ec !important;
  2587. border-bottom: 1px solid #dfe6ec !important;
  2588. }
  2589. .el-table thead th {
  2590. background: #1890ff;
  2591. color: #fff;
  2592. }
  2593. .upload-demo {
  2594. margin-left: 50px;
  2595. }
  2596. .el-form-item {
  2597. margin-bottom: 5px !important;
  2598. }
  2599. .el-form-item__label {
  2600. font-size: 12px !important;
  2601. }
  2602. .avue-crud__dialog__header {
  2603. display: -webkit-box;
  2604. display: -ms-flexbox;
  2605. display: flex;
  2606. -webkit-box-align: center;
  2607. -ms-flex-align: center;
  2608. align-items: center;
  2609. -webkit-box-pack: justify;
  2610. -ms-flex-pack: justify;
  2611. justify-content: space-between;
  2612. }
  2613. .el-dialog__title {
  2614. color: rgba(0, 0, 0, .85);
  2615. font-weight: 500;
  2616. word-wrap: break-word;
  2617. }
  2618. .avue-crud__dialog__menu {
  2619. padding-right: 20px;
  2620. float: left;
  2621. }
  2622. .avue-crud__dialog__menu i {
  2623. color: #909399;
  2624. font-size: 15px;
  2625. }
  2626. .el-icon-full-screen {
  2627. cursor: pointer;
  2628. }
  2629. .el-icon-full-screen:before {
  2630. content: "\e719";
  2631. }
  2632. </style>