index.vue 113 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489
  1. <template>
  2. <div class="app-container">
  3. <!-- 主列表页面-->
  4. <div v-show="mainTable == false">
  5. <el-form
  6. :model="tableFilter"
  7. :inline="true"
  8. v-show="showSearch"
  9. label-width="68px"
  10. >
  11. <el-form-item label="系统编号" prop="fCtrlcorpid">
  12. <el-input
  13. v-model="tableFilter.fBillno"
  14. placeholder="请输入系统编号"
  15. clearable
  16. size="small"
  17. style="width: 200px"
  18. @keyup.enter.native="handleQuery"
  19. />
  20. </el-form-item>
  21. <el-form-item label="货权方" prop="fCtrlcorpid">
  22. <el-input
  23. v-model="tableFilter.fCtrlcorpid"
  24. placeholder="请输入货权方"
  25. clearable
  26. size="small"
  27. style="width: 200px"
  28. @keyup.enter.native="handleQuery"
  29. />
  30. </el-form-item>
  31. <el-form-item label="结算单位" prop="fCorpid">
  32. <el-select
  33. v-model="tableFilter.fCorpid"
  34. filterable
  35. remote
  36. clearable
  37. size="small"
  38. style="width: 200px"
  39. @keyup.enter.native="handleQuery"
  40. :remote-method="corpsRemoteMethod"
  41. placeholder="请输入结算单位"
  42. >
  43. <el-option
  44. v-for="(dict, index) in fMblnoOptions"
  45. :key="index.fId"
  46. :label="dict.fName"
  47. :value="dict.fId"
  48. ></el-option>
  49. </el-select>
  50. </el-form-item>
  51. <el-form-item label="对账日期" prop="timeInterval">
  52. <el-date-picker
  53. type="daterange"
  54. size="small"
  55. style="width: 240px"
  56. v-model="tableFilter.timeInterval"
  57. start-placeholder="开始日期"
  58. end-placeholder="结束日期"
  59. value-format="yyyy-MM-dd"
  60. :default-time="['00:00:00', '23:59:59']"
  61. >
  62. </el-date-picker>
  63. </el-form-item>
  64. <el-form-item>
  65. <el-button
  66. type="cyan"
  67. icon="el-icon-search"
  68. size="mini"
  69. @click="handleQuery"
  70. >搜索</el-button
  71. >
  72. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
  73. >重置</el-button
  74. >
  75. </el-form-item>
  76. </el-form>
  77. <el-row :gutter="10" class="mb8">
  78. <el-col :span="1.5">
  79. <el-button
  80. type="primary"
  81. icon="el-icon-plus"
  82. size="mini"
  83. @click="handleAdd"
  84. v-hasPermi="['finance:payment:add']"
  85. >新增
  86. </el-button>
  87. </el-col>
  88. <el-col :span="1.5">
  89. <el-button
  90. type="success"
  91. icon="el-icon-edit"
  92. size="mini"
  93. :disabled="single"
  94. @click="handleUpdate"
  95. v-hasPermi="['finance:payment:edit']"
  96. >修改
  97. </el-button>
  98. </el-col>
  99. <!-- <el-col :span="1.5">-->
  100. <!-- <el-button-->
  101. <!-- type="danger"-->
  102. <!-- icon="el-icon-delete"-->
  103. <!-- size="mini"-->
  104. <!-- :disabled="multiple"-->
  105. <!-- @click="handleDelete"-->
  106. <!-- v-hasPermi="['finance:charge:remove']"-->
  107. <!-- >删除-->
  108. <!-- </el-button>-->
  109. <!-- </el-col>-->
  110. <el-col :span="1.5">
  111. <el-button
  112. type="warning"
  113. icon="el-icon-download"
  114. size="mini"
  115. @click="handleExport"
  116. v-hasPermi="['finance:payment:export']"
  117. >导出
  118. </el-button>
  119. </el-col>
  120. <div class="tabSetting">
  121. <right-toolbar
  122. :showSearch.sync="showSearch"
  123. @queryTable="getList"
  124. ></right-toolbar>
  125. <div style="margin: 0 12px">
  126. <el-button
  127. icon="el-icon-setting"
  128. size="mini"
  129. circle
  130. @click="showSetting = !showSetting"
  131. ></el-button>
  132. </div>
  133. </div>
  134. </el-row>
  135. <el-dialog
  136. title="自定义列显示"
  137. :visible.sync="showSetting"
  138. width="700px"
  139. v-dialogDrag
  140. >
  141. <template slot="title">
  142. <div class="avue-crud__dialog__header">
  143. <span class="el-dialog__title">
  144. <span
  145. style="
  146. display: inline-block;
  147. width: 3px;
  148. height: 20px;
  149. margin-right: 5px;
  150. float: left;
  151. margin-top: 2px;
  152. "
  153. ></span>
  154. </span>
  155. </div>
  156. </template>
  157. <div>配置排序列数据(拖动调整顺序)</div>
  158. <div style="margin-left: 17px">
  159. <el-checkbox
  160. v-model="allCheck"
  161. label="全选"
  162. @change="allChecked"
  163. ></el-checkbox>
  164. </div>
  165. <div style="padding: 4px; display: flex; justify-content: center">
  166. <draggable
  167. v-model="setRowList"
  168. group="site"
  169. animation="300"
  170. @start="onStart"
  171. @end="onEnd"
  172. handle=".indraggable"
  173. >
  174. <transition-group>
  175. <div
  176. v-for="item in setRowList"
  177. :key="item.surface"
  178. class="listStyle"
  179. >
  180. <div style="width: 500px" class="indraggable">
  181. <div class="progress" :style="{ width: item.width + 'px' }">
  182. <el-checkbox
  183. :label="item.name"
  184. v-model="item.checked"
  185. :true-label="0"
  186. :false-label="1"
  187. >{{ item.name }}
  188. </el-checkbox>
  189. </div>
  190. </div>
  191. <el-input-number
  192. v-model.number="item.width"
  193. controls-position="right"
  194. :min="1"
  195. :max="500"
  196. size="mini"
  197. ></el-input-number>
  198. </div>
  199. </transition-group>
  200. </draggable>
  201. </div>
  202. <span slot="footer" class="dialog-footer">
  203. <el-button @click="showSetting = false">取 消</el-button>
  204. <el-button @click="delRow" type="danger">重 置</el-button>
  205. <el-button type="primary" @click="save()">确 定</el-button>
  206. </span>
  207. </el-dialog>
  208. <el-table
  209. v-loading="loading"
  210. :data="chargeList"
  211. @selection-change="handleSelectionChange"
  212. show-summary
  213. :summary-method="listTotal"
  214. >
  215. <el-table-column type="selection" width="100" align="center" />
  216. <el-table-column
  217. label="序号"
  218. type="index"
  219. width="55"
  220. align="center"
  221. fixed
  222. />
  223. <el-table-column
  224. v-for="(item, index) in getRowList"
  225. :key="index"
  226. :label="item.name"
  227. :width="item.width"
  228. :prop="item.label"
  229. align="center"
  230. :show-overflow-tooltip="true"
  231. sortable
  232. :fixed="item.fixed"
  233. />
  234. <el-table-column
  235. label="操作"
  236. align="center"
  237. class-name="small-padding fixed-width"
  238. min-width="180"
  239. fixed="right"
  240. >
  241. <template slot-scope="scope">
  242. <el-button
  243. size="mini"
  244. type="text"
  245. icon="el-icon-view"
  246. @click="check(scope.row, 0)"
  247. v-hasPermi="['finance:payment:edit']"
  248. >查看</el-button
  249. >
  250. <el-button
  251. size="mini"
  252. type="text"
  253. icon="el-icon-view"
  254. @click="check(scope.row, 1)"
  255. v-hasPermi="['finance:payment:edit']"
  256. v-if="
  257. scope.row.fBillstatus == '提交审核' ||
  258. scope.row.fBillstatus == '审核中'
  259. "
  260. >审批进度</el-button
  261. >
  262. <el-button
  263. size="mini"
  264. type="text"
  265. icon="el-icon-edit"
  266. @click="handleUpdate(scope.row)"
  267. v-hasPermi="['finance:payment:edit']"
  268. v-if="
  269. scope.row.fBillstatus == '保存' ||
  270. scope.row.fBillstatus == '暂存' ||
  271. scope.row.fBillstatus == '审批驳回'
  272. "
  273. >修改
  274. </el-button>
  275. <el-button
  276. size="mini"
  277. type="text"
  278. icon="el-icon-delete"
  279. @click="handleDelete(scope.row)"
  280. v-hasPermi="['finance:payment:remove']"
  281. v-if="
  282. scope.row.fBillstatus == '保存' ||
  283. scope.row.fBillstatus == '暂存' ||
  284. scope.row.fBillstatus == '审批驳回'
  285. "
  286. >删除
  287. </el-button>
  288. <!-- <el-button-->
  289. <!-- size="mini"-->
  290. <!-- type="text"-->
  291. <!-- icon="el-icon-delete"-->
  292. <!-- v-if="scope.row.fBillstatus === 6"-->
  293. <!-- >查看-->
  294. <!-- </el-button>-->
  295. <!-- <el-button-->
  296. <!-- size="mini"-->
  297. <!-- type="text"-->
  298. <!-- icon="el-icon-delete"-->
  299. <!-- v-if="scope.row.fBillstatus > 3 && scope.row.fBillstatus < 6"-->
  300. <!-- >查看审批流-->
  301. <!-- </el-button>-->
  302. </template>
  303. </el-table-column>
  304. <!-- <el-table-column label="单据类型" align="center" prop="fBilltype"/>-->
  305. <!-- <el-table-column label="制单部门" align="center" prop="fDeptid"/>-->
  306. </el-table>
  307. <pagination
  308. v-show="total > 0"
  309. :total="total"
  310. :page.sync="queryParams.pageNum"
  311. :limit.sync="queryParams.pageSize"
  312. @pagination="getList"
  313. />
  314. </div>
  315. <!-- 新增页面-->
  316. <div v-show="mainTable == true">
  317. <template slot="title">
  318. <div class="avue-crud__dialog__header">
  319. <span class="el-dialog__title">
  320. <span
  321. style="
  322. display: inline-block;
  323. width: 3px;
  324. height: 20px;
  325. margin-right: 5px;
  326. float: left;
  327. margin-top: 2px;
  328. "
  329. ></span>
  330. 添加财务数据主
  331. </span>
  332. <div class="avue-crud__dialog__menu enlarge" @click="full">
  333. <i
  334. style="
  335. cursor: pointer;
  336. display: block;
  337. width: 12px;
  338. height: 12px;
  339. border: 1px solid #909399;
  340. border-top: 3px solid #909399;
  341. margin-top: -3px;
  342. "
  343. ></i>
  344. </div>
  345. </div>
  346. </template>
  347. <el-form
  348. :model="queryParams"
  349. :rules="ruless"
  350. ref="ruless"
  351. :inline="true"
  352. v-show="showSearch"
  353. label-width="68px"
  354. >
  355. <el-form-item label="货权方" prop="fCtrlcorpid">
  356. <el-input
  357. v-model="queryParams.fCtrlcorpid"
  358. placeholder="请输入货权方"
  359. clearable
  360. size="small"
  361. :disabled="notChange"
  362. style="width: 200px"
  363. @keyup.enter.native="handleQuery"
  364. />
  365. </el-form-item>
  366. <el-form-item label="结算单位" label-width="78px" prop="fCorpid">
  367. <el-select
  368. v-model="queryParams.fCorpid"
  369. filterable
  370. remote
  371. clearable
  372. size="small"
  373. style="width: 200px"
  374. @keyup.enter.native="handleQuery"
  375. :remote-method="corpsRemoteMethod"
  376. :disabled="doNot"
  377. placeholder="请输入结算单位"
  378. >
  379. <el-option
  380. v-for="(dict, index) in fMblnoOptions"
  381. :key="index.fId"
  382. :label="dict.fName"
  383. :value="dict.fId"
  384. ></el-option>
  385. </el-select>
  386. </el-form-item>
  387. <el-form-item label="付费日期" label-width="78px" prop="fAccbilldate">
  388. <el-date-picker
  389. clearable
  390. size="small"
  391. style="width: 200px"
  392. v-model="queryParams.fAccbilldate"
  393. type="date"
  394. value-format="yyyy-MM-dd"
  395. placeholder="选择账单日期"
  396. :disabled="notChange"
  397. >
  398. </el-date-picker>
  399. </el-form-item>
  400. <el-form-item label="系统编号" prop="fBillno">
  401. <el-input
  402. v-model="queryParams.fBillno"
  403. placeholder="请输入系统编号"
  404. clearable
  405. disabled
  406. style="width: 200px"
  407. size="small"
  408. @keyup.enter.native="handleQuery"
  409. />
  410. </el-form-item>
  411. <el-form-item label="收费方式" prop="chargingMethod">
  412. <el-select
  413. v-model="queryParams.chargingMethod"
  414. placeholder="请选择收费方式"
  415. clearable
  416. style="width: 200px"
  417. :disabled="notChange"
  418. size="small"
  419. >
  420. <el-option
  421. v-for="(dict, index) in methodOptions"
  422. :key="index.dictValue"
  423. :label="dict.dictLabel"
  424. :value="dict.dictValue"
  425. ></el-option>
  426. </el-select>
  427. </el-form-item>
  428. <el-form-item label="收款银行" prop="bank">
  429. <el-input
  430. v-model="queryParams.bank"
  431. placeholder="请输入收款银行"
  432. clearable
  433. size="small"
  434. style="width: 200px"
  435. :disabled="notChange"
  436. />
  437. </el-form-item>
  438. <el-form-item label="发票号" prop="invoiceNo">
  439. <el-input
  440. v-model="queryParams.invoiceNo"
  441. placeholder="请输入发票号"
  442. clearable
  443. size="small"
  444. style="width: 200px"
  445. :disabled="notChange"
  446. />
  447. </el-form-item>
  448. <el-form-item label="水单号" prop="waterBillNo">
  449. <el-input
  450. v-model="queryParams.waterBillNo"
  451. placeholder="请输入收款银行"
  452. clearable
  453. size="small"
  454. style="width: 200px"
  455. :disabled="notChange"
  456. />
  457. </el-form-item>
  458. <el-form-item label="备注" prop="fRemarks">
  459. <el-input
  460. v-model="queryParams.fRemarks"
  461. placeholder="请输入备注"
  462. clearable
  463. size="small"
  464. style="width: 200px"
  465. :disabled="notChange"
  466. @keyup.enter.native="handleQuery"
  467. />
  468. </el-form-item>
  469. <el-form-item label="业务类型" prop="fSystemType">
  470. <el-select
  471. v-model="queryParams.fSystemType"
  472. placeholder="请选择业务类型"
  473. size="small"
  474. disabled
  475. style="width: 200px"
  476. >
  477. <el-option
  478. v-for="item in typeoptions"
  479. :key="item.value"
  480. :label="item.label"
  481. :value="item.value"
  482. >
  483. </el-option>
  484. </el-select>
  485. </el-form-item>
  486. </el-form>
  487. <div style="width: 100%; display: flex; justify-content: space-between">
  488. <div style="display: flex">
  489. <el-button
  490. type="warning"
  491. size="small"
  492. @click="charGe"
  493. :disabled="notChange"
  494. v-if="queryParams.fBillstatus < '4'"
  495. >检索</el-button
  496. >
  497. <el-button
  498. type="primary"
  499. size="small"
  500. @click="confirmCharge"
  501. :disabled="notChange"
  502. v-if="queryParams.fBillstatus < '4'"
  503. >确认付费</el-button
  504. >
  505. <el-button type="warning" size="small" @click="handleExportItems"
  506. >导出</el-button
  507. >
  508. <el-button
  509. type="success"
  510. size="small"
  511. @click="revokeCharge"
  512. v-if="queryParams.fBillstatus === '6'"
  513. >撤销付费</el-button
  514. >
  515. <!-- <el-button type="info" size="small" @click="printing">打印</el-button>-->
  516. <!-- <el-button type="danger" size="small" :disabled="notChange" v-show="Lander == Operator">撤销审批</el-button>-->
  517. <el-button
  518. type="danger"
  519. size="small"
  520. :disabled="tablefilter"
  521. @click="approvalRevocation"
  522. v-show="queryParams.fBillstatus === '4'"
  523. >撤销审批</el-button
  524. >
  525. </div>
  526. <div style="margin: 0 12px">
  527. <el-button
  528. icon="el-icon-setting"
  529. size="mini"
  530. circle
  531. @click="showSetting2 = !showSetting2"
  532. ></el-button>
  533. </div>
  534. </div>
  535. <el-dialog
  536. title="自定义列显示"
  537. :visible.sync="showSetting2"
  538. width="700px"
  539. v-dialogDrag
  540. append-to-body
  541. >
  542. <template slot="title">
  543. <div class="avue-crud__dialog__header">
  544. <span class="el-dialog__title">
  545. <span
  546. style="
  547. display: inline-block;
  548. width: 3px;
  549. height: 20px;
  550. margin-right: 5px;
  551. float: left;
  552. margin-top: 2px;
  553. "
  554. ></span>
  555. </span>
  556. </div>
  557. </template>
  558. <div>配置排序列数据(拖动调整顺序)</div>
  559. <div style="margin-left: 17px">
  560. <el-checkbox
  561. v-model="allCheck2"
  562. label="全选"
  563. @change="allChecked2"
  564. ></el-checkbox>
  565. </div>
  566. <div style="padding: 4px; display: flex; justify-content: center">
  567. <draggable
  568. v-model="setRowList2"
  569. group="site"
  570. animation="300"
  571. @start="onStart"
  572. @end="onEnd"
  573. handle=".indraggable"
  574. >
  575. <transition-group>
  576. <div
  577. v-for="item in setRowList2"
  578. :key="item.surface"
  579. class="listStyle"
  580. >
  581. <div style="width: 500px" class="indraggable">
  582. <div class="progress" :style="{ width: item.width + 'px' }">
  583. <el-checkbox
  584. :label="item.name"
  585. v-model="item.checked"
  586. :true-label="0"
  587. :false-label="1"
  588. >{{ item.name }}
  589. </el-checkbox>
  590. </div>
  591. </div>
  592. <el-input-number
  593. v-model.number="item.width"
  594. controls-position="right"
  595. :min="1"
  596. :max="500"
  597. size="mini"
  598. ></el-input-number>
  599. </div>
  600. </transition-group>
  601. </draggable>
  602. </div>
  603. <span slot="footer" class="dialog-footer">
  604. <el-button @click="showSetting2 = false">取 消</el-button>
  605. <el-button @click="delRow2" type="danger">重 置</el-button>
  606. <el-button type="primary" @click="save2()">确 定</el-button>
  607. </span>
  608. </el-dialog>
  609. <el-table
  610. v-loading="loading"
  611. :data="increase_s"
  612. @selection-change="handleSelectionChange_s"
  613. >
  614. <!-- <el-table-column type="selection" width="55" align="center"/> -->
  615. <el-table-column label="序号" type="index" align="center" />
  616. <el-table-column
  617. v-for="(item, index) in getRowList2"
  618. :key="index"
  619. :label="item.name"
  620. :width="item.width"
  621. :prop="item.label"
  622. align="center"
  623. :show-overflow-tooltip="true"
  624. sortable
  625. :fixed="item.fixed"
  626. />
  627. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />
  628. <el-table-column label="存货单号" align="center" prop="fBscorpno" />
  629. <el-table-column label="品名" align="center" prop="fProductName" />
  630. <el-table-column label="业务日期" align="center">
  631. <template slot-scope="scope" v-if="scope.row.fBsdate">
  632. <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  633. </template>
  634. </el-table-column>
  635. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  636. <el-table-column label="收/付" align="center" prop="fSrcdc">
  637. <template slot-scope="scope">
  638. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  639. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  640. </template>
  641. </el-table-column>
  642. <el-table-column label="业务类型" align="center" prop="fBilltype">
  643. <template slot-scope="scope">
  644. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  645. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  646. <span v-else>{{ scope.row.fBilltype }}</span>
  647. </template>
  648. </el-table-column>
  649. <el-table-column label="作业类型" align="center" prop="fBusinessType" />
  650. <el-table-column label="金额" align="center" prop="fAmtdr" />
  651. <el-table-column label="本次金额" align="center" prop="fAmt" />
  652. <el-table-column label="备注" align="center" prop="fRemarks" /> -->
  653. <el-table-column
  654. label="操作"
  655. align="center"
  656. class-name="small-padding fixed-width"
  657. >
  658. <template slot-scope="scope">
  659. <el-button
  660. size="mini"
  661. type="text"
  662. icon="el-icon-delete"
  663. @click.native.prevent="deleteRow(scope.$index, increase_s)"
  664. :disabled="notChange"
  665. >删除
  666. </el-button>
  667. </template>
  668. </el-table-column>
  669. </el-table>
  670. <div slot="footer" class="dialog-footer">
  671. <add-or-update
  672. v-if="addOrUpdateVisible"
  673. ref="addOrUpdate"
  674. @refreshDataList="getDataList"
  675. ></add-or-update>
  676. <approval-comments
  677. v-if="addOrUpdateVisib"
  678. ref="ApprovalComments"
  679. @refreshDataList="returnData"
  680. ></approval-comments>
  681. <el-button v-if="approve === true" @click="immediateApproval"
  682. >审批</el-button
  683. >
  684. <el-button
  685. type="primary"
  686. v-if="queryParams.fBillstatus >= '3'"
  687. @click="addOrUpdateHandle"
  688. >查看审批流</el-button
  689. >
  690. <el-button type="primary" @click="submitForm" :disabled="notChange"
  691. >保 存</el-button
  692. >
  693. <el-button v-if="cancelButton === true" @click="mainTable = false"
  694. >取 消</el-button
  695. >
  696. <el-button v-if="cancelButton === false" @click="homePage"
  697. >取 消</el-button
  698. >
  699. </div>
  700. <el-dialog
  701. v-dialogDrag
  702. :fullscreen="dialogFull"
  703. :close-on-click-modal="false"
  704. width="70%"
  705. :visible.sync="innerVisible"
  706. title="导入数据"
  707. append-to-body
  708. >
  709. <template slot="title">
  710. <div class="avue-crud__dialog__header">
  711. <span class="el-dialog__title">
  712. <span
  713. style="
  714. display: inline-block;
  715. width: 3px;
  716. height: 20px;
  717. margin-right: 5px;
  718. float: left;
  719. margin-top: 2px;
  720. "
  721. ></span>
  722. 导入数据
  723. </span>
  724. <div class="avue-crud__dialog__menu enlarge" @click="full">
  725. <i
  726. style="
  727. cursor: pointer;
  728. display: block;
  729. width: 12px;
  730. height: 12px;
  731. border: 1px solid #909399;
  732. border-top: 3px solid #909399;
  733. margin-top: -3px;
  734. "
  735. ></i>
  736. </div>
  737. </div>
  738. </template>
  739. <el-form
  740. ref="form"
  741. :model="queryParameter"
  742. :rules="rules"
  743. label-width="80px"
  744. style="display: flex; flex-wrap: wrap"
  745. >
  746. <el-form-item label="货权方" prop="fCtrlcorpid">
  747. <!-- <el-input v-model="queryParameter.fCorpid" placeholder="请输入货权方" style="width: 200px;"/>-->
  748. <el-select
  749. v-model="queryParams.fCorpid"
  750. filterable
  751. remote
  752. clearable
  753. size="small"
  754. style="width: 200px"
  755. @keyup.enter.native="handleQuery"
  756. :remote-method="corpsRemoteMethod"
  757. placeholder="请选择货权方"
  758. >
  759. <el-option
  760. v-for="(dict, index) in fMblnoOptions"
  761. :key="index.fId"
  762. :label="dict.fName"
  763. :value="dict.fId"
  764. ></el-option>
  765. </el-select>
  766. </el-form-item>
  767. <el-form-item label="结算单位" prop="fToCorpid">
  768. <el-select
  769. v-model="queryParameter.fToCorpid"
  770. filterable
  771. remote
  772. clearable
  773. size="small"
  774. :disabled="doNot"
  775. style="width: 200px"
  776. @keyup.enter.native="handleQuery"
  777. :remote-method="corpsRemoteMethod"
  778. placeholder="请输入结算单位"
  779. >
  780. <el-option
  781. v-for="(dict, index) in fMblnoOptions"
  782. :key="index.fId"
  783. :label="dict.fName"
  784. :value="dict.fId"
  785. ></el-option>
  786. </el-select>
  787. </el-form-item>
  788. <el-form-item label="提单号" prop="tMblno">
  789. <el-input
  790. v-model="queryParameter.fMblno"
  791. placeholder="请输入提单号"
  792. style="width: 200px"
  793. size="small"
  794. />
  795. </el-form-item>
  796. <el-form-item label="对账单号" prop="fStatementNo">
  797. <el-input
  798. v-model="queryParameter.fStatementNo"
  799. placeholder="请输入提单号"
  800. size="small"
  801. style="width: 200px"
  802. />
  803. </el-form-item>
  804. <el-form-item label="费用名称" prop="fFeeid">
  805. <template>
  806. <el-select
  807. v-model="queryParameter.fFeeid"
  808. filterable
  809. remote
  810. size="small"
  811. style="width: 200px"
  812. :remote-method="fWRemoteMethod"
  813. placeholder="费用名称"
  814. multiple
  815. >
  816. <el-option
  817. v-for="item in fWbuOptions"
  818. :key="item.fId"
  819. :label="item.fName"
  820. :value="item.fId"
  821. >
  822. </el-option>
  823. </el-select>
  824. </template>
  825. </el-form-item>
  826. <el-form-item label="仓储业务" prop="fFeeid" v-if="typevalue == 1">
  827. <el-select
  828. v-model="queryParameter.fBilltype"
  829. size="small"
  830. style="width: 200px"
  831. @change="changefBilltype"
  832. placeholder="请选择仓储业务"
  833. >
  834. <el-option label="入库" value="SJRK"></el-option>
  835. <el-option label="出库" value="SJCK"></el-option>
  836. <el-option label="货权转移" value="HQZY"></el-option>
  837. </el-select>
  838. </el-form-item>
  839. <el-form-item label="作业类型" prop="fBusinessType">
  840. <el-select
  841. v-model="queryParameter.fBusinessType"
  842. filterable
  843. remote
  844. size="small"
  845. style="width: 200px"
  846. placeholder="作业类型"
  847. multiple
  848. >
  849. <el-option
  850. v-for="(dict, index) in businessTypeOption"
  851. :key="index.dictValue"
  852. :label="dict.dictLabel"
  853. :value="dict.dictValue"
  854. >
  855. </el-option>
  856. </el-select>
  857. </el-form-item>
  858. <el-form-item
  859. label="审核日期"
  860. prop="timeExamine"
  861. v-if="typevalue == 1"
  862. >
  863. <el-date-picker
  864. size="small"
  865. style="width: 240px"
  866. v-model="queryParameter.timeExamine"
  867. type="daterange"
  868. start-placeholder="开始日期"
  869. end-placeholder="结束日期"
  870. value-format="yyyy-MM-dd"
  871. :default-time="['00:00:00', '23:59:59']"
  872. >
  873. </el-date-picker>
  874. </el-form-item>
  875. <el-form-item
  876. label="出入库日期"
  877. label-width="85px"
  878. prop="fAccbilldate"
  879. v-if="typevalue == 1"
  880. >
  881. <el-date-picker
  882. size="small"
  883. style="width: 240px"
  884. v-model="queryParameter.timeInterval"
  885. type="daterange"
  886. start-placeholder="开始日期"
  887. end-placeholder="结束日期"
  888. value-format="yyyy-MM-dd"
  889. :default-time="['00:00:00', '23:59:59']"
  890. >
  891. </el-date-picker>
  892. </el-form-item>
  893. <el-form-item>
  894. <el-button
  895. type="cyan"
  896. icon="el-icon-search"
  897. size="mini"
  898. @click="importSearch"
  899. >搜索</el-button
  900. >
  901. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery_s"
  902. >重置</el-button
  903. >
  904. </el-form-item>
  905. </el-form>
  906. <el-table
  907. v-loading="loading"
  908. :data="chargeList_s"
  909. ref="chargeList"
  910. show-summary
  911. :summary-method="getSum"
  912. @selection-change="handleSelectionChange_s"
  913. >
  914. <el-table-column type="selection" width="55" align="center" />
  915. <el-table-column
  916. label="序号"
  917. type="index"
  918. width="55"
  919. align="center"
  920. />
  921. <el-table-column label="货权方" align="center" prop="fName" />
  922. <el-table-column label="提单号" align="center" prop="fMblno" />
  923. <el-table-column label="品名" align="center" prop="fProductName" />
  924. <el-table-column label="业务日期" align="center">
  925. <template slot-scope="scope" v-if="scope.row.fBsdate">
  926. <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  927. </template>
  928. </el-table-column>
  929. <el-table-column label="业务类型" align="center" prop="fBilltype">
  930. <template slot-scope="scope">
  931. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  932. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  933. <span v-else>{{ scope.row.fBilltype }}</span>
  934. </template>
  935. </el-table-column>
  936. <el-table-column
  937. label="作业类型"
  938. align="center"
  939. prop="fBusinessType"
  940. />
  941. <el-table-column label="审核日期" align="center" prop="fReviewDate" />
  942. <el-table-column label="费用名称" align="center" prop="fFeeName" />
  943. <el-table-column label="金额" align="center" prop="fAmtdr" />
  944. <el-table-column
  945. label="本次金额"
  946. align="center"
  947. prop="fAmt"
  948. width="100"
  949. >
  950. <template slot-scope="scope">
  951. <el-input
  952. v-model="scope.row.fAmt"
  953. placeholder="请输入本次金额"
  954. clearable
  955. size="small"
  956. oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
  957. @change="imgChangeI(scope.row)"
  958. />
  959. </template>
  960. </el-table-column>
  961. <el-table-column label="备注" align="center" prop="fRemarks">
  962. <template slot-scope="scope">
  963. <el-input
  964. v-model="scope.row.fRemarks"
  965. placeholder="请输入备注"
  966. clearable
  967. size="small"
  968. width="100"
  969. />
  970. </template>
  971. </el-table-column>
  972. </el-table>
  973. <div slot="footer" class="dialog-footer">
  974. <el-button type="primary" @click="confirmImport">确 定</el-button>
  975. <el-button @click="signOut">取 消</el-button>
  976. </div>
  977. </el-dialog>
  978. </div>
  979. <!-- 添加或修改财务数据主对话框 -->
  980. <!-- <el-dialog-->
  981. <!-- v-dialogDrag-->
  982. <!-- :fullscreen="dialogFull"-->
  983. <!-- :close-on-click-modal="false"-->
  984. <!-- :title="title"-->
  985. <!-- :show-close="Xbutton"-->
  986. <!-- :visible.sync="open"-->
  987. <!-- width="70%"-->
  988. <!-- append-to-body-->
  989. <!-- >-->
  990. <!-- <template slot="title">-->
  991. <!-- <div class="avue-crud__dialog__header">-->
  992. <!-- <span class="el-dialog__title">-->
  993. <!-- <span-->
  994. <!-- style="-->
  995. <!-- display: inline-block;-->
  996. <!-- width: 3px;-->
  997. <!-- height: 20px;-->
  998. <!-- margin-right: 5px;-->
  999. <!-- float: left;-->
  1000. <!-- margin-top: 2px;-->
  1001. <!-- "-->
  1002. <!-- ></span>-->
  1003. <!-- 添加财务数据主-->
  1004. <!-- </span>-->
  1005. <!-- <div class="avue-crud__dialog__menu enlarge" @click="full">-->
  1006. <!-- <i-->
  1007. <!-- style="-->
  1008. <!-- cursor: pointer;-->
  1009. <!-- display: block;-->
  1010. <!-- width: 12px;-->
  1011. <!-- height: 12px;-->
  1012. <!-- border: 1px solid #909399;-->
  1013. <!-- border-top: 3px solid #909399;-->
  1014. <!-- margin-top: -3px;-->
  1015. <!-- "-->
  1016. <!-- ></i>-->
  1017. <!-- </div>-->
  1018. <!-- </div>-->
  1019. <!-- </template>-->
  1020. <!-- <el-form-->
  1021. <!-- :model="queryParams"-->
  1022. <!-- :rules="ruless"-->
  1023. <!-- ref="ruless"-->
  1024. <!-- :inline="true"-->
  1025. <!-- v-show="showSearch"-->
  1026. <!-- label-width="68px"-->
  1027. <!-- >-->
  1028. <!-- <el-form-item label="货权方" prop="fCtrlcorpid">-->
  1029. <!-- <el-input-->
  1030. <!-- v-model="queryParams.fCtrlcorpid"-->
  1031. <!-- placeholder="请输入货权方"-->
  1032. <!-- clearable-->
  1033. <!-- size="small"-->
  1034. <!-- :disabled="notChange"-->
  1035. <!-- style="width: 200px"-->
  1036. <!-- @keyup.enter.native="handleQuery"-->
  1037. <!-- />-->
  1038. <!-- </el-form-item>-->
  1039. <!-- <el-form-item label="结算单位" label-width="78px" prop="fCorpid">-->
  1040. <!-- <el-select-->
  1041. <!-- v-model="queryParams.fCorpid"-->
  1042. <!-- filterable-->
  1043. <!-- remote-->
  1044. <!-- clearable-->
  1045. <!-- size="small"-->
  1046. <!-- style="width: 200px"-->
  1047. <!-- @keyup.enter.native="handleQuery"-->
  1048. <!-- :remote-method="corpsRemoteMethod"-->
  1049. <!-- :disabled="doNot"-->
  1050. <!-- placeholder="请输入结算单位"-->
  1051. <!-- >-->
  1052. <!-- <el-option-->
  1053. <!-- v-for="(dict, index) in fMblnoOptions"-->
  1054. <!-- :key="index.fId"-->
  1055. <!-- :label="dict.fName"-->
  1056. <!-- :value="dict.fId"-->
  1057. <!-- ></el-option>-->
  1058. <!-- </el-select>-->
  1059. <!-- </el-form-item>-->
  1060. <!-- <el-form-item label="付费日期" label-width="78px" prop="fAccbilldate">-->
  1061. <!-- <el-date-picker-->
  1062. <!-- clearable-->
  1063. <!-- size="small"-->
  1064. <!-- style="width: 200px"-->
  1065. <!-- v-model="queryParams.fAccbilldate"-->
  1066. <!-- type="date"-->
  1067. <!-- value-format="yyyy-MM-dd"-->
  1068. <!-- placeholder="选择账单日期"-->
  1069. <!-- :disabled="notChange"-->
  1070. <!-- >-->
  1071. <!-- </el-date-picker>-->
  1072. <!-- </el-form-item>-->
  1073. <!-- <el-form-item label="系统编号" prop="fBillno">-->
  1074. <!-- <el-input-->
  1075. <!-- v-model="queryParams.fBillno"-->
  1076. <!-- placeholder="请输入系统编号"-->
  1077. <!-- clearable-->
  1078. <!-- disabled-->
  1079. <!-- style="width: 200px"-->
  1080. <!-- size="small"-->
  1081. <!-- @keyup.enter.native="handleQuery"-->
  1082. <!-- />-->
  1083. <!-- </el-form-item>-->
  1084. <!-- <el-form-item label="收费方式" prop="chargingMethod">-->
  1085. <!-- <el-select-->
  1086. <!-- v-model="queryParams.chargingMethod"-->
  1087. <!-- placeholder="请选择收费方式"-->
  1088. <!-- clearable-->
  1089. <!-- style="width: 200px"-->
  1090. <!-- :disabled="notChange"-->
  1091. <!-- size="small"-->
  1092. <!-- >-->
  1093. <!-- <el-option-->
  1094. <!-- v-for="(dict, index) in methodOptions"-->
  1095. <!-- :key="index.dictValue"-->
  1096. <!-- :label="dict.dictLabel"-->
  1097. <!-- :value="dict.dictValue"-->
  1098. <!-- ></el-option>-->
  1099. <!-- </el-select>-->
  1100. <!-- </el-form-item>-->
  1101. <!-- <el-form-item label="收款银行" prop="bank">-->
  1102. <!-- <el-input-->
  1103. <!-- v-model="queryParams.bank"-->
  1104. <!-- placeholder="请输入收款银行"-->
  1105. <!-- clearable-->
  1106. <!-- size="small"-->
  1107. <!-- style="width: 200px"-->
  1108. <!-- :disabled="notChange"-->
  1109. <!-- />-->
  1110. <!-- </el-form-item>-->
  1111. <!-- <el-form-item label="发票号" prop="invoiceNo">-->
  1112. <!-- <el-input-->
  1113. <!-- v-model="queryParams.invoiceNo"-->
  1114. <!-- placeholder="请输入发票号"-->
  1115. <!-- clearable-->
  1116. <!-- size="small"-->
  1117. <!-- style="width: 200px"-->
  1118. <!-- :disabled="notChange"-->
  1119. <!-- />-->
  1120. <!-- </el-form-item>-->
  1121. <!-- <el-form-item label="水单号" prop="waterBillNo">-->
  1122. <!-- <el-input-->
  1123. <!-- v-model="queryParams.waterBillNo"-->
  1124. <!-- placeholder="请输入收款银行"-->
  1125. <!-- clearable-->
  1126. <!-- size="small"-->
  1127. <!-- style="width: 200px"-->
  1128. <!-- :disabled="notChange"-->
  1129. <!-- />-->
  1130. <!-- </el-form-item>-->
  1131. <!-- <el-form-item label="备注" prop="fRemarks">-->
  1132. <!-- <el-input-->
  1133. <!-- v-model="queryParams.fRemarks"-->
  1134. <!-- placeholder="请输入备注"-->
  1135. <!-- clearable-->
  1136. <!-- size="small"-->
  1137. <!-- style="width: 200px"-->
  1138. <!-- :disabled="notChange"-->
  1139. <!-- @keyup.enter.native="handleQuery"-->
  1140. <!-- />-->
  1141. <!-- </el-form-item>-->
  1142. <!-- <el-form-item label="业务类型" prop="fSystemType">-->
  1143. <!-- <el-select-->
  1144. <!-- v-model="queryParams.fSystemType"-->
  1145. <!-- placeholder="请选择业务类型"-->
  1146. <!-- size="small"-->
  1147. <!-- disabled-->
  1148. <!-- style="width: 200px"-->
  1149. <!-- >-->
  1150. <!-- <el-option-->
  1151. <!-- v-for="item in typeoptions"-->
  1152. <!-- :key="item.value"-->
  1153. <!-- :label="item.label"-->
  1154. <!-- :value="item.value"-->
  1155. <!-- >-->
  1156. <!-- </el-option>-->
  1157. <!-- </el-select>-->
  1158. <!-- </el-form-item>-->
  1159. <!-- </el-form>-->
  1160. <!-- <div style="width: 100%; display: flex; justify-content: space-between">-->
  1161. <!-- <div style="display: flex">-->
  1162. <!-- <el-button-->
  1163. <!-- type="warning"-->
  1164. <!-- size="small"-->
  1165. <!-- @click="charGe"-->
  1166. <!-- :disabled="notChange"-->
  1167. <!-- v-if="queryParams.fBillstatus < '4'"-->
  1168. <!-- >检索</el-button-->
  1169. <!-- >-->
  1170. <!-- <el-button-->
  1171. <!-- type="primary"-->
  1172. <!-- size="small"-->
  1173. <!-- @click="confirmCharge"-->
  1174. <!-- :disabled="notChange"-->
  1175. <!-- v-if="queryParams.fBillstatus < '4'"-->
  1176. <!-- >确认付费</el-button-->
  1177. <!-- >-->
  1178. <!-- <el-button type="warning" size="small" @click="handleExportItems"-->
  1179. <!-- >导出</el-button-->
  1180. <!-- >-->
  1181. <!-- <el-button-->
  1182. <!-- type="success"-->
  1183. <!-- size="small"-->
  1184. <!-- @click="revokeCharge"-->
  1185. <!-- v-if="queryParams.fBillstatus === '6'"-->
  1186. <!-- >撤销付费</el-button-->
  1187. <!-- >-->
  1188. <!-- &lt;!&ndash; <el-button type="info" size="small" @click="printing">打印</el-button>&ndash;&gt;-->
  1189. <!-- &lt;!&ndash; <el-button type="danger" size="small" :disabled="notChange" v-show="Lander == Operator">撤销审批</el-button>&ndash;&gt;-->
  1190. <!-- <el-button-->
  1191. <!-- type="danger"-->
  1192. <!-- size="small"-->
  1193. <!-- :disabled="tablefilter"-->
  1194. <!-- @click="approvalRevocation"-->
  1195. <!-- v-show="queryParams.fBillstatus === '4'"-->
  1196. <!-- >撤销审批</el-button-->
  1197. <!-- >-->
  1198. <!-- </div>-->
  1199. <!-- <div style="margin: 0 12px">-->
  1200. <!-- <el-button-->
  1201. <!-- icon="el-icon-setting"-->
  1202. <!-- size="mini"-->
  1203. <!-- circle-->
  1204. <!-- @click="showSetting2 = !showSetting2"-->
  1205. <!-- ></el-button>-->
  1206. <!-- </div>-->
  1207. <!-- </div>-->
  1208. <!-- <el-dialog-->
  1209. <!-- title="自定义列显示"-->
  1210. <!-- :visible.sync="showSetting2"-->
  1211. <!-- width="700px"-->
  1212. <!-- v-dialogDrag-->
  1213. <!-- append-to-body-->
  1214. <!-- >-->
  1215. <!-- <template slot="title">-->
  1216. <!-- <div class="avue-crud__dialog__header">-->
  1217. <!-- <span class="el-dialog__title">-->
  1218. <!-- <span-->
  1219. <!-- style="-->
  1220. <!-- display: inline-block;-->
  1221. <!-- width: 3px;-->
  1222. <!-- height: 20px;-->
  1223. <!-- margin-right: 5px;-->
  1224. <!-- float: left;-->
  1225. <!-- margin-top: 2px;-->
  1226. <!-- "-->
  1227. <!-- ></span>-->
  1228. <!-- </span>-->
  1229. <!-- </div>-->
  1230. <!-- </template>-->
  1231. <!-- <div>配置排序列数据(拖动调整顺序)</div>-->
  1232. <!-- <div style="margin-left: 17px">-->
  1233. <!-- <el-checkbox-->
  1234. <!-- v-model="allCheck2"-->
  1235. <!-- label="全选"-->
  1236. <!-- @change="allChecked2"-->
  1237. <!-- ></el-checkbox>-->
  1238. <!-- </div>-->
  1239. <!-- <div style="padding: 4px; display: flex; justify-content: center">-->
  1240. <!-- <draggable-->
  1241. <!-- v-model="setRowList2"-->
  1242. <!-- group="site"-->
  1243. <!-- animation="300"-->
  1244. <!-- @start="onStart"-->
  1245. <!-- @end="onEnd"-->
  1246. <!-- handle=".indraggable"-->
  1247. <!-- >-->
  1248. <!-- <transition-group>-->
  1249. <!-- <div-->
  1250. <!-- v-for="item in setRowList2"-->
  1251. <!-- :key="item.surface"-->
  1252. <!-- class="listStyle"-->
  1253. <!-- >-->
  1254. <!-- <div style="width: 500px" class="indraggable">-->
  1255. <!-- <div class="progress" :style="{ width: item.width + 'px' }">-->
  1256. <!-- <el-checkbox-->
  1257. <!-- :label="item.name"-->
  1258. <!-- v-model="item.checked"-->
  1259. <!-- :true-label="0"-->
  1260. <!-- :false-label="1"-->
  1261. <!-- >{{ item.name }}-->
  1262. <!-- </el-checkbox>-->
  1263. <!-- </div>-->
  1264. <!-- </div>-->
  1265. <!-- <el-input-number-->
  1266. <!-- v-model.number="item.width"-->
  1267. <!-- controls-position="right"-->
  1268. <!-- :min="1"-->
  1269. <!-- :max="500"-->
  1270. <!-- size="mini"-->
  1271. <!-- ></el-input-number>-->
  1272. <!-- </div>-->
  1273. <!-- </transition-group>-->
  1274. <!-- </draggable>-->
  1275. <!-- </div>-->
  1276. <!-- <span slot="footer" class="dialog-footer">-->
  1277. <!-- <el-button @click="showSetting2 = false">取 消</el-button>-->
  1278. <!-- <el-button @click="delRow2" type="danger">重 置</el-button>-->
  1279. <!-- <el-button type="primary" @click="save2()">确 定</el-button>-->
  1280. <!-- </span>-->
  1281. <!-- </el-dialog>-->
  1282. <!-- <el-table-->
  1283. <!-- v-loading="loading"-->
  1284. <!-- :data="increase_s"-->
  1285. <!-- @selection-change="handleSelectionChange_s"-->
  1286. <!-- >-->
  1287. <!-- &lt;!&ndash; <el-table-column type="selection" width="55" align="center"/> &ndash;&gt;-->
  1288. <!-- <el-table-column label="序号" type="index" align="center" />-->
  1289. <!-- <el-table-column-->
  1290. <!-- v-for="(item, index) in getRowList2"-->
  1291. <!-- :key="index"-->
  1292. <!-- :label="item.name"-->
  1293. <!-- :width="item.width"-->
  1294. <!-- :prop="item.label"-->
  1295. <!-- align="center"-->
  1296. <!-- :show-overflow-tooltip="true"-->
  1297. <!-- sortable-->
  1298. <!-- :fixed="item.fixed"-->
  1299. <!-- />-->
  1300. <!-- &lt;!&ndash; <el-table-column label="提单号" align="center" prop="fMblno" />-->
  1301. <!-- <el-table-column label="存货单号" align="center" prop="fBscorpno" />-->
  1302. <!-- <el-table-column label="品名" align="center" prop="fProductName" />-->
  1303. <!-- <el-table-column label="业务日期" align="center">-->
  1304. <!-- <template slot-scope="scope" v-if="scope.row.fBsdate">-->
  1305. <!-- <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>-->
  1306. <!-- </template>-->
  1307. <!-- </el-table-column>-->
  1308. <!-- <el-table-column label="费用名称" align="center" prop="fFeeName" />-->
  1309. <!-- <el-table-column label="收/付" align="center" prop="fSrcdc">-->
  1310. <!-- <template slot-scope="scope">-->
  1311. <!-- <span v-if="scope.row.fSrcdc == 'D'">收</span>-->
  1312. <!-- <span v-else-if="scope.row.fSrcdc == 'C'">付</span>-->
  1313. <!-- </template>-->
  1314. <!-- </el-table-column>-->
  1315. <!-- <el-table-column label="业务类型" align="center" prop="fBilltype">-->
  1316. <!-- <template slot-scope="scope">-->
  1317. <!-- <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>-->
  1318. <!-- <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>-->
  1319. <!-- <span v-else>{{ scope.row.fBilltype }}</span>-->
  1320. <!-- </template>-->
  1321. <!-- </el-table-column>-->
  1322. <!-- <el-table-column label="作业类型" align="center" prop="fBusinessType" />-->
  1323. <!-- <el-table-column label="金额" align="center" prop="fAmtdr" />-->
  1324. <!-- <el-table-column label="本次金额" align="center" prop="fAmt" />-->
  1325. <!-- <el-table-column label="备注" align="center" prop="fRemarks" /> &ndash;&gt;-->
  1326. <!-- <el-table-column-->
  1327. <!-- label="操作"-->
  1328. <!-- align="center"-->
  1329. <!-- class-name="small-padding fixed-width"-->
  1330. <!-- >-->
  1331. <!-- <template slot-scope="scope">-->
  1332. <!-- <el-button-->
  1333. <!-- size="mini"-->
  1334. <!-- type="text"-->
  1335. <!-- icon="el-icon-delete"-->
  1336. <!-- @click.native.prevent="deleteRow(scope.$index, increase_s)"-->
  1337. <!-- :disabled="notChange"-->
  1338. <!-- >删除-->
  1339. <!-- </el-button>-->
  1340. <!-- </template>-->
  1341. <!-- </el-table-column>-->
  1342. <!-- </el-table>-->
  1343. <!-- <div slot="footer" class="dialog-footer">-->
  1344. <!-- <add-or-update-->
  1345. <!-- v-if="addOrUpdateVisible"-->
  1346. <!-- ref="addOrUpdate"-->
  1347. <!-- @refreshDataList="getDataList"-->
  1348. <!-- ></add-or-update>-->
  1349. <!-- <approval-comments-->
  1350. <!-- v-if="addOrUpdateVisib"-->
  1351. <!-- ref="ApprovalComments"-->
  1352. <!-- @refreshDataList="returnData"-->
  1353. <!-- ></approval-comments>-->
  1354. <!-- <el-button v-if="approve === true" @click="immediateApproval"-->
  1355. <!-- >审批</el-button-->
  1356. <!-- >-->
  1357. <!-- <el-button-->
  1358. <!-- type="primary"-->
  1359. <!-- v-if="queryParams.fBillstatus >= '3'"-->
  1360. <!-- @click="addOrUpdateHandle"-->
  1361. <!-- >查看审批流</el-button-->
  1362. <!-- >-->
  1363. <!-- <el-button type="primary" @click="submitForm" :disabled="notChange"-->
  1364. <!-- >保 存</el-button-->
  1365. <!-- >-->
  1366. <!-- <el-button v-if="cancelButton === true" @click="cancel"-->
  1367. <!-- >取 消</el-button-->
  1368. <!-- >-->
  1369. <!-- <el-button v-if="cancelButton === false" @click="homePage"-->
  1370. <!-- >取 消</el-button-->
  1371. <!-- >-->
  1372. <!-- </div>-->
  1373. <!-- <el-dialog-->
  1374. <!-- v-dialogDrag-->
  1375. <!-- :fullscreen="dialogFull"-->
  1376. <!-- :close-on-click-modal="false"-->
  1377. <!-- width="70%"-->
  1378. <!-- :visible.sync="innerVisible"-->
  1379. <!-- title="导入数据"-->
  1380. <!-- append-to-body-->
  1381. <!-- >-->
  1382. <!-- <template slot="title">-->
  1383. <!-- <div class="avue-crud__dialog__header">-->
  1384. <!-- <span class="el-dialog__title">-->
  1385. <!-- <span-->
  1386. <!-- style="-->
  1387. <!-- display: inline-block;-->
  1388. <!-- width: 3px;-->
  1389. <!-- height: 20px;-->
  1390. <!-- margin-right: 5px;-->
  1391. <!-- float: left;-->
  1392. <!-- margin-top: 2px;-->
  1393. <!-- "-->
  1394. <!-- ></span>-->
  1395. <!-- 导入数据-->
  1396. <!-- </span>-->
  1397. <!-- <div class="avue-crud__dialog__menu enlarge" @click="full">-->
  1398. <!-- <i-->
  1399. <!-- style="-->
  1400. <!-- cursor: pointer;-->
  1401. <!-- display: block;-->
  1402. <!-- width: 12px;-->
  1403. <!-- height: 12px;-->
  1404. <!-- border: 1px solid #909399;-->
  1405. <!-- border-top: 3px solid #909399;-->
  1406. <!-- margin-top: -3px;-->
  1407. <!-- "-->
  1408. <!-- ></i>-->
  1409. <!-- </div>-->
  1410. <!-- </div>-->
  1411. <!-- </template>-->
  1412. <!-- <el-form-->
  1413. <!-- ref="form"-->
  1414. <!-- :model="queryParameter"-->
  1415. <!-- :rules="rules"-->
  1416. <!-- label-width="80px"-->
  1417. <!-- style="display: flex; flex-wrap: wrap"-->
  1418. <!-- >-->
  1419. <!-- <el-form-item label="货权方" prop="fCtrlcorpid">-->
  1420. <!-- &lt;!&ndash; <el-input v-model="queryParameter.fCorpid" placeholder="请输入货权方" style="width: 200px;"/>&ndash;&gt;-->
  1421. <!-- <el-select-->
  1422. <!-- v-model="queryParams.fCorpid"-->
  1423. <!-- filterable-->
  1424. <!-- remote-->
  1425. <!-- clearable-->
  1426. <!-- size="small"-->
  1427. <!-- style="width: 200px"-->
  1428. <!-- @keyup.enter.native="handleQuery"-->
  1429. <!-- :remote-method="corpsRemoteMethod"-->
  1430. <!-- placeholder="请选择货权方"-->
  1431. <!-- >-->
  1432. <!-- <el-option-->
  1433. <!-- v-for="(dict, index) in fMblnoOptions"-->
  1434. <!-- :key="index.fId"-->
  1435. <!-- :label="dict.fName"-->
  1436. <!-- :value="dict.fId"-->
  1437. <!-- ></el-option>-->
  1438. <!-- </el-select>-->
  1439. <!-- </el-form-item>-->
  1440. <!-- <el-form-item label="结算单位" prop="fToCorpid">-->
  1441. <!-- <el-select-->
  1442. <!-- v-model="queryParameter.fToCorpid"-->
  1443. <!-- filterable-->
  1444. <!-- remote-->
  1445. <!-- clearable-->
  1446. <!-- size="small"-->
  1447. <!-- :disabled="doNot"-->
  1448. <!-- style="width: 200px"-->
  1449. <!-- @keyup.enter.native="handleQuery"-->
  1450. <!-- :remote-method="corpsRemoteMethod"-->
  1451. <!-- placeholder="请输入结算单位"-->
  1452. <!-- >-->
  1453. <!-- <el-option-->
  1454. <!-- v-for="(dict, index) in fMblnoOptions"-->
  1455. <!-- :key="index.fId"-->
  1456. <!-- :label="dict.fName"-->
  1457. <!-- :value="dict.fId"-->
  1458. <!-- ></el-option>-->
  1459. <!-- </el-select>-->
  1460. <!-- </el-form-item>-->
  1461. <!-- <el-form-item label="提单号" prop="tMblno">-->
  1462. <!-- <el-input-->
  1463. <!-- v-model="queryParameter.fMblno"-->
  1464. <!-- placeholder="请输入提单号"-->
  1465. <!-- style="width: 200px"-->
  1466. <!-- size="small"-->
  1467. <!-- />-->
  1468. <!-- </el-form-item>-->
  1469. <!-- <el-form-item label="对账单号" prop="fStatementNo">-->
  1470. <!-- <el-input-->
  1471. <!-- v-model="queryParameter.fStatementNo"-->
  1472. <!-- placeholder="请输入提单号"-->
  1473. <!-- size="small"-->
  1474. <!-- style="width: 200px"-->
  1475. <!-- />-->
  1476. <!-- </el-form-item>-->
  1477. <!-- <el-form-item label="费用名称" prop="fFeeid">-->
  1478. <!-- <template>-->
  1479. <!-- <el-select-->
  1480. <!-- v-model="queryParameter.fFeeid"-->
  1481. <!-- filterable-->
  1482. <!-- remote-->
  1483. <!-- size="small"-->
  1484. <!-- style="width: 200px"-->
  1485. <!-- :remote-method="fWRemoteMethod"-->
  1486. <!-- placeholder="费用名称"-->
  1487. <!-- multiple-->
  1488. <!-- >-->
  1489. <!-- <el-option-->
  1490. <!-- v-for="item in fWbuOptions"-->
  1491. <!-- :key="item.fId"-->
  1492. <!-- :label="item.fName"-->
  1493. <!-- :value="item.fId"-->
  1494. <!-- >-->
  1495. <!-- </el-option>-->
  1496. <!-- </el-select>-->
  1497. <!-- </template>-->
  1498. <!-- </el-form-item>-->
  1499. <!-- <el-form-item label="仓储业务" prop="fFeeid" v-if="typevalue == 1">-->
  1500. <!-- <el-select-->
  1501. <!-- v-model="queryParameter.fBilltype"-->
  1502. <!-- size="small"-->
  1503. <!-- style="width: 200px"-->
  1504. <!-- @change="changefBilltype"-->
  1505. <!-- placeholder="请选择仓储业务"-->
  1506. <!-- >-->
  1507. <!-- <el-option label="入库" value="SJRK"></el-option>-->
  1508. <!-- <el-option label="出库" value="SJCK"></el-option>-->
  1509. <!-- <el-option label="货权转移" value="HQZY"></el-option>-->
  1510. <!-- </el-select>-->
  1511. <!-- </el-form-item>-->
  1512. <!-- <el-form-item label="作业类型" prop="fBusinessType">-->
  1513. <!-- <el-select-->
  1514. <!-- v-model="queryParameter.fBusinessType"-->
  1515. <!-- filterable-->
  1516. <!-- remote-->
  1517. <!-- size="small"-->
  1518. <!-- style="width: 200px"-->
  1519. <!-- placeholder="作业类型"-->
  1520. <!-- multiple-->
  1521. <!-- >-->
  1522. <!-- <el-option-->
  1523. <!-- v-for="(dict, index) in businessTypeOption"-->
  1524. <!-- :key="index.dictValue"-->
  1525. <!-- :label="dict.dictLabel"-->
  1526. <!-- :value="dict.dictValue"-->
  1527. <!-- >-->
  1528. <!-- </el-option>-->
  1529. <!-- </el-select>-->
  1530. <!-- </el-form-item>-->
  1531. <!-- <el-form-item-->
  1532. <!-- label="审核日期"-->
  1533. <!-- prop="timeExamine"-->
  1534. <!-- v-if="typevalue == 1"-->
  1535. <!-- >-->
  1536. <!-- <el-date-picker-->
  1537. <!-- size="small"-->
  1538. <!-- style="width: 240px"-->
  1539. <!-- v-model="queryParameter.timeExamine"-->
  1540. <!-- type="daterange"-->
  1541. <!-- start-placeholder="开始日期"-->
  1542. <!-- end-placeholder="结束日期"-->
  1543. <!-- value-format="yyyy-MM-dd"-->
  1544. <!-- :default-time="['00:00:00', '23:59:59']"-->
  1545. <!-- >-->
  1546. <!-- </el-date-picker>-->
  1547. <!-- </el-form-item>-->
  1548. <!-- <el-form-item-->
  1549. <!-- label="出入库日期"-->
  1550. <!-- label-width="85px"-->
  1551. <!-- prop="fAccbilldate"-->
  1552. <!-- v-if="typevalue == 1"-->
  1553. <!-- >-->
  1554. <!-- <el-date-picker-->
  1555. <!-- size="small"-->
  1556. <!-- style="width: 240px"-->
  1557. <!-- v-model="queryParameter.timeInterval"-->
  1558. <!-- type="daterange"-->
  1559. <!-- start-placeholder="开始日期"-->
  1560. <!-- end-placeholder="结束日期"-->
  1561. <!-- value-format="yyyy-MM-dd"-->
  1562. <!-- :default-time="['00:00:00', '23:59:59']"-->
  1563. <!-- >-->
  1564. <!-- </el-date-picker>-->
  1565. <!-- </el-form-item>-->
  1566. <!-- <el-form-item>-->
  1567. <!-- <el-button-->
  1568. <!-- type="cyan"-->
  1569. <!-- icon="el-icon-search"-->
  1570. <!-- size="mini"-->
  1571. <!-- @click="importSearch"-->
  1572. <!-- >搜索</el-button-->
  1573. <!-- >-->
  1574. <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery_s"-->
  1575. <!-- >重置</el-button-->
  1576. <!-- >-->
  1577. <!-- </el-form-item>-->
  1578. <!-- </el-form>-->
  1579. <!-- <el-table-->
  1580. <!-- v-loading="loading"-->
  1581. <!-- :data="chargeList_s"-->
  1582. <!-- ref="chargeList"-->
  1583. <!-- show-summary-->
  1584. <!-- :summary-method="getSum"-->
  1585. <!-- @selection-change="handleSelectionChange_s"-->
  1586. <!-- >-->
  1587. <!-- <el-table-column type="selection" width="55" align="center" />-->
  1588. <!-- <el-table-column-->
  1589. <!-- label="序号"-->
  1590. <!-- type="index"-->
  1591. <!-- width="55"-->
  1592. <!-- align="center"-->
  1593. <!-- />-->
  1594. <!-- <el-table-column label="货权方" align="center" prop="fName" />-->
  1595. <!-- <el-table-column label="提单号" align="center" prop="fMblno" />-->
  1596. <!-- <el-table-column label="品名" align="center" prop="fProductName" />-->
  1597. <!-- <el-table-column label="业务日期" align="center">-->
  1598. <!-- <template slot-scope="scope" v-if="scope.row.fBsdate">-->
  1599. <!-- <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>-->
  1600. <!-- </template>-->
  1601. <!-- </el-table-column>-->
  1602. <!-- <el-table-column label="业务类型" align="center" prop="fBilltype">-->
  1603. <!-- <template slot-scope="scope">-->
  1604. <!-- <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>-->
  1605. <!-- <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>-->
  1606. <!-- <span v-else>{{ scope.row.fBilltype }}</span>-->
  1607. <!-- </template>-->
  1608. <!-- </el-table-column>-->
  1609. <!-- <el-table-column-->
  1610. <!-- label="作业类型"-->
  1611. <!-- align="center"-->
  1612. <!-- prop="fBusinessType"-->
  1613. <!-- />-->
  1614. <!-- <el-table-column label="审核日期" align="center" prop="fReviewDate" />-->
  1615. <!-- <el-table-column label="费用名称" align="center" prop="fFeeName" />-->
  1616. <!-- <el-table-column label="金额" align="center" prop="fAmtdr" />-->
  1617. <!-- <el-table-column-->
  1618. <!-- label="本次金额"-->
  1619. <!-- align="center"-->
  1620. <!-- prop="fAmt"-->
  1621. <!-- width="100"-->
  1622. <!-- >-->
  1623. <!-- <template slot-scope="scope">-->
  1624. <!-- <el-input-->
  1625. <!-- v-model="scope.row.fAmt"-->
  1626. <!-- placeholder="请输入本次金额"-->
  1627. <!-- clearable-->
  1628. <!-- size="small"-->
  1629. <!-- oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'-->
  1630. <!-- @change="imgChangeI(scope.row)"-->
  1631. <!-- />-->
  1632. <!-- </template>-->
  1633. <!-- </el-table-column>-->
  1634. <!-- <el-table-column label="备注" align="center" prop="fRemarks">-->
  1635. <!-- <template slot-scope="scope">-->
  1636. <!-- <el-input-->
  1637. <!-- v-model="scope.row.fRemarks"-->
  1638. <!-- placeholder="请输入备注"-->
  1639. <!-- clearable-->
  1640. <!-- size="small"-->
  1641. <!-- width="100"-->
  1642. <!-- />-->
  1643. <!-- </template>-->
  1644. <!-- </el-table-column>-->
  1645. <!-- </el-table>-->
  1646. <!-- <div slot="footer" class="dialog-footer">-->
  1647. <!-- <el-button type="primary" @click="confirmImport">确 定</el-button>-->
  1648. <!-- <el-button @click="signOut">取 消</el-button>-->
  1649. <!-- </div>-->
  1650. <!-- </el-dialog>-->
  1651. <!-- </el-dialog>-->
  1652. <!-- 打印页面-->
  1653. <el-dialog
  1654. :visible.sync="printStatus"
  1655. width="80%"
  1656. :before-close="closePrinting"
  1657. >
  1658. <el-table
  1659. id="print_area2"
  1660. v-loading="loading"
  1661. ref="table"
  1662. :data="printObject"
  1663. @selection-change="handleSelectionChange_s"
  1664. >
  1665. <!-- <el-table-column type="selection" width="55" align="center"/> -->
  1666. <el-table-column label="序号" type="index" width="70" align="center" />
  1667. <el-table-column
  1668. label="提单号"
  1669. align="center"
  1670. prop="fMblno"
  1671. width="120"
  1672. />
  1673. <el-table-column
  1674. label="存货单号"
  1675. align="center"
  1676. prop="fBscorpno"
  1677. width="120"
  1678. />
  1679. <el-table-column
  1680. label="品名"
  1681. align="center"
  1682. prop="fProductName"
  1683. width="120"
  1684. />
  1685. <el-table-column label="业务日期" align="center" width="120">
  1686. <template slot-scope="scope" v-if="scope.row.fBsdate">
  1687. <span>{{ scope.row.fBsdate.slice(0, 10) }}</span>
  1688. </template>
  1689. </el-table-column>
  1690. <el-table-column
  1691. label="费用名称"
  1692. align="center"
  1693. prop="fFeeName"
  1694. width="120"
  1695. />
  1696. <el-table-column label="收/付" align="center" prop="fSrcdc" width="120">
  1697. <template slot-scope="scope">
  1698. <span v-if="scope.row.fSrcdc == 'D'">收</span>
  1699. <span v-else-if="scope.row.fSrcdc == 'C'">付</span>
  1700. </template>
  1701. </el-table-column>
  1702. <el-table-column
  1703. label="业务类型"
  1704. align="center"
  1705. prop="fBilltype"
  1706. width="120"
  1707. >
  1708. <template slot-scope="scope">
  1709. <span v-if="scope.row.fBilltype == 'SJRK'">入库</span>
  1710. <span v-else-if="scope.row.fBilltype == 'SJCK'">出库</span>
  1711. <span v-else>{{ scope.row.fBilltype }}</span>
  1712. </template>
  1713. </el-table-column>
  1714. <el-table-column
  1715. label="金额"
  1716. align="center"
  1717. prop="fAmtdr"
  1718. width="120"
  1719. />
  1720. <el-table-column
  1721. label="本次金额"
  1722. align="center"
  1723. prop="fAmt"
  1724. width="120"
  1725. />
  1726. </el-table>
  1727. <span slot="footer" class="dialog-footer">
  1728. <el-button
  1729. type="primary"
  1730. style="margintop: 10px"
  1731. @click="printSomething"
  1732. >打印</el-button
  1733. >
  1734. <el-button @click="printStatus = false">取 消</el-button>
  1735. </span>
  1736. </el-dialog>
  1737. </div>
  1738. </template>
  1739. <script>
  1740. import {
  1741. collectFee,
  1742. collectFees,
  1743. listCharge,
  1744. listCharges,
  1745. getCharge,
  1746. getCharges,
  1747. delCharge,
  1748. delCharges,
  1749. addCharge,
  1750. addCharges,
  1751. exportCharge,
  1752. search,
  1753. searchs,
  1754. listCorps,
  1755. delCharge_s,
  1756. delCharge_ss,
  1757. backCharge,
  1758. revocation,
  1759. exportWarehousebillsitems,
  1760. } from "@/api/finance/payment";
  1761. import { listFees } from "@/api/basicdata/fees";
  1762. import print from "print-js";
  1763. import AddOrUpdate from "@/views/viewApproval";
  1764. import ApprovalComments from "@/views/startApproval";
  1765. import { queryUserVal } from "@/api/warehouseBusiness/agreement";
  1766. import draggable from "vuedraggable";
  1767. import Global from "@/layout/components/global";
  1768. import Cookies from "js-cookie";
  1769. import Vue from "vue";
  1770. import { addSet, select, resetModule } from "@/api/system/set";
  1771. Vue.directive("dialogDrag", {
  1772. bind(el, binding, vnode, oldVnode) {
  1773. const dialogHeaderEl = el.querySelector(".el-dialog__header");
  1774. const dragDom = el.querySelector(".el-dialog");
  1775. const enlarge = el.querySelector(".enlarge");
  1776. dialogHeaderEl.style.cursor = "move";
  1777. // 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
  1778. const sty = dragDom.currentStyle || window.getComputedStyle(dragDom, null);
  1779. if (enlarge) {
  1780. enlarge.onclick = (e) => {
  1781. dragDom.style.top = "0px";
  1782. dragDom.style.left = "0px";
  1783. };
  1784. }
  1785. dialogHeaderEl.onmousedown = (e) => {
  1786. // 鼠标按下,计算当前元素距离可视区的距离
  1787. const disX = e.clientX - dialogHeaderEl.offsetLeft;
  1788. const disY = e.clientY - dialogHeaderEl.offsetTop;
  1789. // 获取到的值带px 正则匹配替换
  1790. let styL, styT;
  1791. // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
  1792. if (sty.left.includes("%")) {
  1793. styL =
  1794. +document.body.clientWidth * (+sty.left.replace(/\%/g, "") / 100);
  1795. styT =
  1796. +document.body.clientHeight * (+sty.top.replace(/\%/g, "") / 100);
  1797. } else {
  1798. styL = +sty.left.replace(/\px/g, "");
  1799. styT = +sty.top.replace(/\px/g, "");
  1800. }
  1801. document.onmousemove = function (e) {
  1802. // 通过事件委托,计算移动的距离
  1803. const l = e.clientX - disX;
  1804. const t = e.clientY - disY;
  1805. // 移动当前元素
  1806. if (t + styT >= 0) {
  1807. dragDom.style.top = `${t + styT}px`;
  1808. }
  1809. dragDom.style.left = `${l + styL}px`;
  1810. // 将此时的位置传出去
  1811. // binding.value({x:e.pageX,y:e.pageY})
  1812. };
  1813. document.onmouseup = function (e) {
  1814. document.onmousemove = null;
  1815. document.onmouseup = null;
  1816. };
  1817. };
  1818. },
  1819. });
  1820. export default {
  1821. name: "Charge",
  1822. data() {
  1823. return {
  1824. drag: false,
  1825. mainTable:false,
  1826. tableDate: [
  1827. {
  1828. surface: "1",
  1829. label: "createBy",
  1830. name: "制单人",
  1831. checked: 0,
  1832. fixed: "left",
  1833. width: 100,
  1834. },
  1835. {
  1836. surface: "2",
  1837. label: "fBillno",
  1838. name: "系统编号",
  1839. checked: 0,
  1840. fixed: "left",
  1841. width: 100,
  1842. },
  1843. {
  1844. surface: "3",
  1845. label: "fCtrlcorpid",
  1846. name: "货权方",
  1847. checked: 0,
  1848. width: 100,
  1849. },
  1850. {
  1851. surface: "4",
  1852. label: "createTime",
  1853. name: "制单日期",
  1854. checked: 0,
  1855. width: 100,
  1856. },
  1857. {
  1858. surface: "5",
  1859. label: "fAccbilldate",
  1860. name: "收费日期",
  1861. checked: 0,
  1862. width: 100,
  1863. },
  1864. {
  1865. surface: "6",
  1866. label: "tMblno",
  1867. name: "提单号",
  1868. checked: 0,
  1869. width: 100,
  1870. },
  1871. {
  1872. surface: "7",
  1873. label: "chargingMethod",
  1874. name: "收费方式",
  1875. checked: 0,
  1876. width: 100,
  1877. },
  1878. {
  1879. surface: "8",
  1880. label: "invoiceNo",
  1881. name: "发票号",
  1882. checked: 0,
  1883. width: 100,
  1884. },
  1885. {
  1886. surface: "9",
  1887. label: "bank",
  1888. name: "收款银行",
  1889. checked: 0,
  1890. width: 100,
  1891. },
  1892. {
  1893. surface: "10",
  1894. label: "waterBillNo",
  1895. name: "水单号",
  1896. checked: 0,
  1897. width: 100,
  1898. },
  1899. {
  1900. surface: "11",
  1901. label: "fAmtdr",
  1902. name: "应收合计",
  1903. checked: 0,
  1904. width: 100,
  1905. },
  1906. {
  1907. surface: "12",
  1908. label: "fAmtcr",
  1909. name: "实收合计",
  1910. checked: 0,
  1911. width: 100,
  1912. },
  1913. {
  1914. surface: "13",
  1915. label: "fRemarks",
  1916. name: "备注",
  1917. checked: 0,
  1918. width: 100,
  1919. },
  1920. {
  1921. surface: "14",
  1922. label: "fBillstatus",
  1923. name: "状态",
  1924. checked: 0,
  1925. width: 100,
  1926. },
  1927. ],
  1928. setRowList: [],
  1929. getRowList: [],
  1930. allCheck: false,
  1931. showSetting: false,
  1932. tableDate2: [
  1933. {
  1934. surface: "1",
  1935. label: "fMblno",
  1936. name: "提单号",
  1937. checked: 0,
  1938. width: 100,
  1939. },
  1940. {
  1941. surface: "2",
  1942. label: "fBscorpno",
  1943. name: "存货单号",
  1944. checked: 0,
  1945. width: 100,
  1946. },
  1947. {
  1948. surface: "3",
  1949. label: "fProductName",
  1950. name: "品名",
  1951. checked: 0,
  1952. width: 100,
  1953. },
  1954. {
  1955. surface: "4",
  1956. label: "fBsdate",
  1957. name: "业务日期",
  1958. checked: 0,
  1959. width: 100,
  1960. },
  1961. {
  1962. surface: "5",
  1963. label: "fFeeName",
  1964. name: "费用名称",
  1965. checked: 0,
  1966. width: 100,
  1967. },
  1968. {
  1969. surface: "6",
  1970. label: "fSrcdc",
  1971. name: "收/付",
  1972. checked: 0,
  1973. width: 100,
  1974. },
  1975. {
  1976. surface: "7",
  1977. label: "fBilltype",
  1978. name: "业务类型",
  1979. checked: 0,
  1980. width: 100,
  1981. },
  1982. {
  1983. surface: "8",
  1984. label: "fBusinessType",
  1985. name: "作业类型",
  1986. checked: 0,
  1987. width: 100,
  1988. },
  1989. {
  1990. surface: "9",
  1991. label: "fAmtdr",
  1992. name: "金额",
  1993. checked: 0,
  1994. width: 100,
  1995. },
  1996. {
  1997. surface: "10",
  1998. label: "fAmt",
  1999. name: "本次金额",
  2000. checked: 0,
  2001. width: 100,
  2002. },
  2003. {
  2004. surface: "11",
  2005. label: "fRemarks",
  2006. name: "备注",
  2007. checked: 0,
  2008. width: 100,
  2009. },
  2010. ],
  2011. setRowList2: [],
  2012. getRowList2: [],
  2013. allCheck2: false,
  2014. showSetting2: false,
  2015. typevalue: "",
  2016. typeoptions: [
  2017. {
  2018. value: "1",
  2019. label: "仓储",
  2020. },
  2021. {
  2022. value: "2",
  2023. label: "车队",
  2024. },
  2025. ],
  2026. //全屏放大
  2027. dialogFull: false,
  2028. //财务结算方式
  2029. methodOptions: [],
  2030. doNot: false,
  2031. Lander: "",
  2032. Operator: "",
  2033. approve: false,
  2034. addOrUpdateVisible: false,
  2035. contrastId: 230,
  2036. tablefilter: false,
  2037. hide: false,
  2038. openPrint: false,
  2039. notChange: false,
  2040. browseStatus: true,
  2041. nothing: [],
  2042. //打印表
  2043. printObject: [],
  2044. printStatus: false,
  2045. //导入状态
  2046. state_s: true,
  2047. fWbuOptions: [],
  2048. options: "",
  2049. // 遮罩层
  2050. loading: true,
  2051. //打开内部弹窗
  2052. innerVisible: false,
  2053. chargeList_s: [],
  2054. selection: [],
  2055. increase_s: [],
  2056. cancelButton: true,
  2057. // 选中数组
  2058. ids: [],
  2059. // 非单个禁用
  2060. single: true,
  2061. // 非多个禁用
  2062. multiple: true,
  2063. // 显示搜索条件
  2064. showSearch: true,
  2065. // 总条数
  2066. total: 0,
  2067. totAL: 0,
  2068. Ttime: 0,
  2069. //提单号暂存
  2070. fMblno: "",
  2071. // 财务数据主表格数据
  2072. chargeList: [],
  2073. // 弹出层标题
  2074. title: "",
  2075. // 是否显示弹出层
  2076. open: false,
  2077. businessTypeOption: [],
  2078. fMblnoOptions: "",
  2079. //导入查询参数
  2080. queryParameter: {
  2081. fCorpid: "",
  2082. fToCorpid: "",
  2083. fMblno: "",
  2084. fStatementNo: "",
  2085. fFeeid: "",
  2086. timeExamine: "",
  2087. timeInterval: "",
  2088. },
  2089. empty: [],
  2090. //导入从表传主表
  2091. pass: {
  2092. fAmtdr: 0, //应收合计
  2093. fAmtcr: 0, //应付合计
  2094. fMblno: "", //提单号
  2095. fName: "", //货权方
  2096. },
  2097. Xbutton: true,
  2098. // 查询参数
  2099. queryParams: {
  2100. fId: null,
  2101. pageNum: 1,
  2102. pageSize: 10,
  2103. fBillno: null,
  2104. fCtrlcorpid: null,
  2105. fCorpid: null,
  2106. tMblno: null,
  2107. fAmtdr: null,
  2108. fAmtcr: null,
  2109. fBilltype: null,
  2110. fBillstatus: null,
  2111. fRemarks: null,
  2112. fAccbilldate: null,
  2113. fDeptid: null,
  2114. chargingMethod: null,
  2115. invoiceNo: null,
  2116. bank: null,
  2117. waterBillNo: null,
  2118. },
  2119. addOrUpdateVisib: false,
  2120. // 主表查询参数
  2121. tableFilter: {
  2122. pageNum: 1,
  2123. pageSize: 10,
  2124. fBillno: null,
  2125. fCtrlcorpid: null,
  2126. fCorpid: null,
  2127. tMblno: null,
  2128. fAmtdr: null,
  2129. fAmtcr: null,
  2130. fBilltype: null,
  2131. fBillstatus: null,
  2132. fRemarks: null,
  2133. fAccbilldate: null,
  2134. fDeptid: null,
  2135. },
  2136. approval: [],
  2137. // 表单参数
  2138. form: {},
  2139. // 表单校验
  2140. ruless: {
  2141. fCtrlcorpid: [{ required: true, message: " ", trigger: "blur" }],
  2142. fCorpid: [{ required: true, message: " ", trigger: "blur" }],
  2143. fAccbilldate: [{ required: true, message: " ", trigger: "blur" }],
  2144. },
  2145. // 表单校验
  2146. rules: {
  2147. fBilltype: [{ required: true, message: " ", trigger: "change" }],
  2148. fBillstatus: [{ required: true, message: " ", trigger: "blur" }],
  2149. fDeptid: [{ required: true, message: " ", trigger: "blur" }],
  2150. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  2151. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  2152. },
  2153. };
  2154. },
  2155. components: {
  2156. draggable,
  2157. AddOrUpdate,
  2158. ApprovalComments,
  2159. },
  2160. created() {
  2161. this.setRowList = this.tableDate;
  2162. this.getRowList = this.tableDate;
  2163. this.setRowList2 = this.tableDate2;
  2164. this.getRowList2 = this.tableDate2;
  2165. this.typevalue = Cookies.get("sysType");
  2166. this.getList();
  2167. this.register();
  2168. this.getDicts("st_in_type").then((response) => {
  2169. this.businessTypeOption = response.data;
  2170. });
  2171. this.getDicts("data_settlement_type").then((response) => {
  2172. console.log(response);
  2173. this.methodOptions = response.data;
  2174. });
  2175. this.getRow();
  2176. this.getRow2();
  2177. },
  2178. activated() {
  2179. this.adoPt();
  2180. },
  2181. methods: {
  2182. //导出明细
  2183. handleExportItems() {
  2184. const fIds = this.queryParams.fId;
  2185. if (fIds !== null) {
  2186. this.$confirm("是否确认导出所有计费物资明细数据?", "警告", {
  2187. confirmButtonText: "确定",
  2188. cancelButtonText: "取消",
  2189. type: "warning",
  2190. })
  2191. .then(function () {
  2192. return exportWarehousebillsitems(fIds);
  2193. })
  2194. .then((response) => {
  2195. this.download(response.msg);
  2196. });
  2197. } else {
  2198. this.$message("请先保存");
  2199. }
  2200. },
  2201. full() {
  2202. this.dialogFull = !this.dialogFull;
  2203. },
  2204. //列设置全选
  2205. allChecked() {
  2206. if (this.allCheck == true) {
  2207. this.setRowList.map((e) => {
  2208. return (e.checked = 0);
  2209. });
  2210. } else {
  2211. this.setRowList.map((e) => {
  2212. return (e.checked = 1);
  2213. });
  2214. }
  2215. },
  2216. //查询列数据
  2217. getRow() {
  2218. let that = this;
  2219. this.data = {
  2220. tableName: "付费",
  2221. userId: Cookies.get("userName"),
  2222. };
  2223. select(this.data).then((res) => {
  2224. if (res.data.length != 0) {
  2225. this.getRowList = res.data.filter((e) => e.checked == 0);
  2226. this.setRowList = res.data;
  2227. this.setRowList = this.setRowList.reduce((res, item) => {
  2228. res.push({
  2229. surface: item.surface,
  2230. label: item.label,
  2231. name: item.name,
  2232. checked: item.checked,
  2233. width: item.width,
  2234. fixed: item.fixed,
  2235. });
  2236. return res;
  2237. }, []);
  2238. }
  2239. });
  2240. },
  2241. //保存列设置
  2242. save() {
  2243. this.showSetting = false;
  2244. this.data = {
  2245. tableName: "付费",
  2246. userId: Cookies.get("userName"),
  2247. sysTableSetList: this.setRowList,
  2248. };
  2249. addSet(this.data).then((res) => {
  2250. this.getRowList = this.setRowList.filter((e) => e.checked == 0);
  2251. });
  2252. },
  2253. //重置列表
  2254. delRow() {
  2255. this.data = {
  2256. tableName: "付费",
  2257. userId: Cookies.get("userName"),
  2258. };
  2259. resetModule(this.data).then((res) => {
  2260. if (res.code == 200) {
  2261. this.showSetting = false;
  2262. this.setRowList = this.tableDate;
  2263. this.getRowList = this.tableDate;
  2264. }
  2265. });
  2266. },
  2267. //列设置全选
  2268. allChecked2() {
  2269. if (this.allCheck2 == true) {
  2270. this.setRowList2.map((e) => {
  2271. return (e.checked = 0);
  2272. });
  2273. } else {
  2274. this.setRowList2.map((e) => {
  2275. return (e.checked = 1);
  2276. });
  2277. }
  2278. },
  2279. //查询列数据
  2280. getRow2() {
  2281. let that = this;
  2282. this.data = {
  2283. tableName: "付费明细",
  2284. userId: Cookies.get("userName"),
  2285. };
  2286. select(this.data).then((res) => {
  2287. if (res.data.length != 0) {
  2288. this.getRowList2 = res.data.filter((e) => e.checked == 0);
  2289. this.setRowList2 = res.data;
  2290. this.setRowList2 = this.setRowList2.reduce((res, item) => {
  2291. res.push({
  2292. surface: item.surface,
  2293. label: item.label,
  2294. name: item.name,
  2295. checked: item.checked,
  2296. width: item.width,
  2297. fixed: item.fixed,
  2298. });
  2299. return res;
  2300. }, []);
  2301. }
  2302. });
  2303. },
  2304. //保存列设置
  2305. save2() {
  2306. this.showSetting2 = false;
  2307. this.data = {
  2308. tableName: "付费明细",
  2309. userId: Cookies.get("userName"),
  2310. sysTableSetList: this.setRowList2,
  2311. };
  2312. addSet(this.data).then((res) => {
  2313. this.getRowList2 = this.setRowList2.filter((e) => e.checked == 0);
  2314. });
  2315. },
  2316. //重置列表
  2317. delRow2() {
  2318. this.data = {
  2319. tableName: "付费明细",
  2320. userId: Cookies.get("userName"),
  2321. };
  2322. resetModule(this.data).then((res) => {
  2323. if (res.code == 200) {
  2324. this.showSetting2 = false;
  2325. this.setRowList2 = this.tableDate2;
  2326. this.getRowList2 = this.tableDate2;
  2327. }
  2328. });
  2329. },
  2330. //开始拖拽事件
  2331. onStart() {
  2332. this.drag = true;
  2333. },
  2334. //拖拽结束事件
  2335. onEnd() {
  2336. this.drag = false;
  2337. },
  2338. //财务主取消
  2339. signOut() {
  2340. if (this.increase_s == 0) {
  2341. this.doNot = false;
  2342. } else {
  2343. this.doNot = true;
  2344. }
  2345. this.innerVisible = false;
  2346. this.feeList = [];
  2347. },
  2348. //付费页面合计
  2349. listTotal(param) {
  2350. const { columns, data } = param;
  2351. const sums = [];
  2352. columns.forEach((column, index) => {
  2353. if (index === 0) {
  2354. sums[index] = "合计";
  2355. } else if (index === 12 || index === 13 || index === 14) {
  2356. const values = data.map((item) => Number(item[column.property]));
  2357. if (!values.every((value) => isNaN(value))) {
  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);
  2366. }
  2367. }
  2368. });
  2369. return sums;
  2370. },
  2371. approvalRevocation() {
  2372. let data = {
  2373. id: this.queryParams.fId,
  2374. actId: this.contrastId,
  2375. billId: this.queryParams.fId,
  2376. };
  2377. revocation(data).then((data) => {
  2378. if (data.code === 200) {
  2379. this.$message.success("撤销成功");
  2380. this.open = false;
  2381. this.getList();
  2382. }
  2383. });
  2384. },
  2385. changefBilltype() {
  2386. this.businessTypeOption = [];
  2387. if (this.queryParameter.fBilltype == "SJRK") {
  2388. this.getDicts("st_in_type").then((response) => {
  2389. this.businessTypeOption = response.data;
  2390. });
  2391. } else if (this.queryParameter.fBilltype == "SJCK") {
  2392. this.getDicts("st_out_type").then((response) => {
  2393. this.businessTypeOption = response.data;
  2394. });
  2395. } else if (this.queryParameter.fBilltype == "HQZY") {
  2396. this.getDicts("st_trans_type").then((response) => {
  2397. this.businessTypeOption = response.data;
  2398. });
  2399. }
  2400. },
  2401. returnData() {
  2402. this.addOrUpdateVisib = false;
  2403. this.open = false;
  2404. this.homepaGe();
  2405. },
  2406. getDataList() {
  2407. this.addOrUpdateVisible = false;
  2408. },
  2409. homepaGe() {
  2410. let view = {
  2411. fullPath: "/finance/charge",
  2412. hash: "",
  2413. matched: Array(2),
  2414. meta: Object,
  2415. name: "Charge",
  2416. params: Object,
  2417. path: "/finance/charge",
  2418. query: Object,
  2419. title: "付费",
  2420. };
  2421. this.$router.push({ path: "/index" });
  2422. this.$store
  2423. .dispatch("tagsView/delView", view)
  2424. .then(({ visitedViews }) => {
  2425. if (this.isActive(view)) {
  2426. this.toLastView(visitedViews, view);
  2427. }
  2428. });
  2429. Global.$emit("removeCache", "closeSelectedTag", view);
  2430. },
  2431. adoPt() {
  2432. this.approval = this.$route.query.data;
  2433. if (this.approval) {
  2434. this.Xbutton = false;
  2435. this.approval = JSON.parse(this.approval);
  2436. this.hide = false;
  2437. this.tablefilter = true;
  2438. this.notChange = true;
  2439. this.approve = true;
  2440. this.cancelButton = false;
  2441. this.reset();
  2442. this.pass = {
  2443. fAmtdr: 0, //应收合计
  2444. fAmtcr: 0, //应付合计
  2445. fMblno: "", //提单号
  2446. fName: "", //货权方
  2447. fFeesName: "", //结算单位
  2448. fCorpid: "", //结算单位ID
  2449. };
  2450. if (Cookies.get("sysType") == 1) {
  2451. //大木
  2452. getCharge(this.approval.billId).then((response) => {
  2453. this.Operator = response.data.tFee.createBy;
  2454. if (response.data.feeDoList != 0) {
  2455. response.data.feeDoList.map((e) => {
  2456. if (e.fBsdate) {
  2457. e.fBsdate = e.fBsdate.slice(0, 10);
  2458. }
  2459. if (e.fSrcdc) {
  2460. if (e.fSrcdc == "D") {
  2461. e.fSrcdc = "收";
  2462. } else {
  2463. e.fSrcdc = "付";
  2464. }
  2465. }
  2466. });
  2467. }
  2468. this.increase_s = response.data.feeDoList;
  2469. this.fWbuOptions = response.data.feesList;
  2470. this.queryParams = response.data.tFee;
  2471. this.fWbuOptions = response.data.feesList;
  2472. this.fMblnoOptions = response.data.corps;
  2473. this.open = true;
  2474. this.title = "修改付费列表";
  2475. });
  2476. } else if (Cookies.get("sysType") == 2) {
  2477. //车队
  2478. getCharges(this.approval.billId).then((response) => {
  2479. this.Operator = response.data.tFee.createBy;
  2480. if (response.data.feeDoList != 0) {
  2481. response.data.feeDoList.map((e) => {
  2482. if (e.fBsdate) {
  2483. e.fBsdate = e.fBsdate.slice(0, 10);
  2484. }
  2485. if (e.fSrcdc) {
  2486. if (e.fSrcdc == "D") {
  2487. e.fSrcdc = "收";
  2488. } else {
  2489. e.fSrcdc = "付";
  2490. }
  2491. }
  2492. });
  2493. }
  2494. this.increase_s = response.data.feeDoList;
  2495. this.fWbuOptions = response.data.feesList;
  2496. this.queryParams = response.data.tFee;
  2497. this.fWbuOptions = response.data.feesList;
  2498. this.fMblnoOptions = response.data.corps;
  2499. this.open = true;
  2500. this.title = "修改付费列表";
  2501. });
  2502. }
  2503. }
  2504. },
  2505. homePage() {
  2506. this.open = false;
  2507. let view = {
  2508. fullPath: "/finance/charge",
  2509. hash: "",
  2510. matched: Array(2),
  2511. meta: Object,
  2512. name: "Charge",
  2513. params: Object,
  2514. path: "/finance/charge",
  2515. query: Object,
  2516. title: "付费",
  2517. };
  2518. this.$router.push({ path: "/index" });
  2519. this.$store
  2520. .dispatch("tagsView/delView", view)
  2521. .then(({ visitedViews }) => {
  2522. if (this.isActive(view)) {
  2523. this.toLastView(visitedViews, view);
  2524. }
  2525. });
  2526. Global.$emit("removeCache", "closeSelectedTag", view);
  2527. },
  2528. register() {
  2529. queryUserVal().then((response) => {
  2530. this.Lander = response.user.userName;
  2531. });
  2532. },
  2533. immediateApproval() {
  2534. this.addOrUpdateVisib = true;
  2535. this.$nextTick(() => {
  2536. this.$refs.ApprovalComments.init(
  2537. this.approval.billId,
  2538. this.approval.actId
  2539. );
  2540. });
  2541. },
  2542. // 查看审批流
  2543. addOrUpdateHandle() {
  2544. this.addOrUpdateVisible = true;
  2545. this.addOrUpdateVisib = false;
  2546. let id = "448";
  2547. let actId = "110";
  2548. this.$nextTick(() => {
  2549. this.$refs.addOrUpdate.init(this.queryParams.fId, this.contrastId);
  2550. });
  2551. },
  2552. // 撤销付费
  2553. revokeCharge() {
  2554. this.queryParams.fBillstatus = "1";
  2555. let formDate = new window.FormData();
  2556. formDate.append("tFee", JSON.stringify(this.queryParams));
  2557. formDate.append("tFeeDo", JSON.stringify(this.increase_s));
  2558. backCharge(formDate).then((response) => {
  2559. this.open = false;
  2560. this.msgSuccess("操作成功");
  2561. this.getList();
  2562. });
  2563. },
  2564. // 查看按钮
  2565. check(row, res) {
  2566. this.notChange = true;
  2567. if (Cookies.get("sysType") == 1) {
  2568. //大木
  2569. getCharge(row.fId).then((response) => {
  2570. this.Operator = response.data.tFee.createBy;
  2571. if (response.data.feeDoList != 0) {
  2572. response.data.feeDoList.map((e) => {
  2573. if (e.fBsdate) {
  2574. e.fBsdate = e.fBsdate.slice(0, 10);
  2575. }
  2576. if (e.fSrcdc) {
  2577. if (e.fSrcdc == "D") {
  2578. e.fSrcdc = "收";
  2579. } else {
  2580. e.fSrcdc = "付";
  2581. }
  2582. }
  2583. });
  2584. }
  2585. this.increase_s = response.data.feeDoList;
  2586. this.fWbuOptions = response.data.feesList;
  2587. this.queryParams = response.data.tFee;
  2588. this.fWbuOptions = response.data.feesList;
  2589. this.fMblnoOptions = response.data.corps;
  2590. this.open = true;
  2591. this.title = "付费列表";
  2592. this.tablefilter = true;
  2593. if (res == 1) {
  2594. this.notChange = true;
  2595. if (this.Operator == this.Lander) {
  2596. this.tablefilter = false;
  2597. this.reset();
  2598. this.pass = {
  2599. fAmtdr: 0, //应收合计
  2600. fAmtcr: 0, //应付合计
  2601. fMblno: "", //提单号
  2602. fName: "", //货权方
  2603. fFeesName: "", //结算单位
  2604. fCorpid: "", //结算单位ID
  2605. };
  2606. const fId = row.fId || this.ids;
  2607. getCharge(fId).then((response) => {
  2608. if (response.data.feeDoList != 0) {
  2609. response.data.feeDoList.map((e) => {
  2610. if (e.fBsdate) {
  2611. e.fBsdate = e.fBsdate.slice(0, 10);
  2612. }
  2613. if (e.fSrcdc) {
  2614. if (e.fSrcdc == "D") {
  2615. e.fSrcdc = "收";
  2616. } else {
  2617. e.fSrcdc = "付";
  2618. }
  2619. }
  2620. });
  2621. }
  2622. this.increase_s = response.data.feeDoList;
  2623. this.fWbuOptions = response.data.feesList;
  2624. this.queryParams = response.data.tFee;
  2625. this.fWbuOptions = response.data.feesList;
  2626. this.fMblnoOptions = response.data.corps;
  2627. this.open = true;
  2628. });
  2629. } else {
  2630. this.notChange = true;
  2631. // this.$message.error('未知异常,请联系管理员')
  2632. }
  2633. } else {
  2634. this.notChange = true;
  2635. this.reset();
  2636. this.pass = {
  2637. fAmtdr: 0, //应收合计
  2638. fAmtcr: 0, //应付合计
  2639. fMblno: "", //提单号
  2640. fName: "", //货权方
  2641. fFeesName: "", //结算单位
  2642. fCorpid: "", //结算单位ID
  2643. };
  2644. const fId = row.fId || this.ids;
  2645. getCharge(fId).then((response) => {
  2646. if (response.data.feeDoList != 0) {
  2647. response.data.feeDoList.map((e) => {
  2648. if (e.fBsdate) {
  2649. e.fBsdate = e.fBsdate.slice(0, 10);
  2650. }
  2651. if (e.fSrcdc) {
  2652. if (e.fSrcdc == "D") {
  2653. e.fSrcdc = "收";
  2654. } else {
  2655. e.fSrcdc = "付";
  2656. }
  2657. }
  2658. });
  2659. }
  2660. this.increase_s = response.data.feeDoList;
  2661. this.fWbuOptions = response.data.feesList;
  2662. this.queryParams = response.data.tFee;
  2663. this.fWbuOptions = response.data.feesList;
  2664. this.fMblnoOptions = response.data.corps;
  2665. this.open = true;
  2666. });
  2667. }
  2668. });
  2669. } else if (Cookies.get("sysType") == 2) {
  2670. //车队
  2671. getCharges(row.fId).then((response) => {
  2672. this.Operator = response.data.tFee.createBy;
  2673. if (response.data.feeDoList != 0) {
  2674. response.data.feeDoList.map((e) => {
  2675. if (e.fBsdate) {
  2676. e.fBsdate = e.fBsdate.slice(0, 10);
  2677. }
  2678. if (e.fSrcdc) {
  2679. if (e.fSrcdc == "D") {
  2680. e.fSrcdc = "收";
  2681. } else {
  2682. e.fSrcdc = "付";
  2683. }
  2684. }
  2685. });
  2686. }
  2687. this.increase_s = response.data.feeDoList;
  2688. this.fWbuOptions = response.data.feesList;
  2689. this.queryParams = response.data.tFee;
  2690. this.fWbuOptions = response.data.feesList;
  2691. this.fMblnoOptions = response.data.corps;
  2692. this.open = true;
  2693. this.title = "付费列表";
  2694. this.tablefilter = true;
  2695. if (res == 1) {
  2696. this.notChange = true;
  2697. if (this.Operator == this.Lander) {
  2698. this.tablefilter = false;
  2699. this.reset();
  2700. this.pass = {
  2701. fAmtdr: 0, //应收合计
  2702. fAmtcr: 0, //应付合计
  2703. fMblno: "", //提单号
  2704. fName: "", //货权方
  2705. fFeesName: "", //结算单位
  2706. fCorpid: "", //结算单位ID
  2707. };
  2708. const fId = row.fId || this.ids;
  2709. getCharges(fId).then((response) => {
  2710. if (response.data.feeDoList != 0) {
  2711. response.data.feeDoList.map((e) => {
  2712. if (e.fBsdate) {
  2713. e.fBsdate = e.fBsdate.slice(0, 10);
  2714. }
  2715. if (e.fSrcdc) {
  2716. if (e.fSrcdc == "D") {
  2717. e.fSrcdc = "收";
  2718. } else {
  2719. e.fSrcdc = "付";
  2720. }
  2721. }
  2722. });
  2723. }
  2724. this.increase_s = response.data.feeDoList;
  2725. this.fWbuOptions = response.data.feesList;
  2726. this.queryParams = response.data.tFee;
  2727. this.fWbuOptions = response.data.feesList;
  2728. this.fMblnoOptions = response.data.corps;
  2729. this.open = true;
  2730. });
  2731. } else {
  2732. this.notChange = true;
  2733. // this.$message.error('未知异常,请联系管理员')
  2734. }
  2735. } else {
  2736. this.notChange = true;
  2737. this.reset();
  2738. this.pass = {
  2739. fAmtdr: 0, //应收合计
  2740. fAmtcr: 0, //应付合计
  2741. fMblno: "", //提单号
  2742. fName: "", //货权方
  2743. fFeesName: "", //结算单位
  2744. fCorpid: "", //结算单位ID
  2745. };
  2746. const fId = row.fId || this.ids;
  2747. getCharges(fId).then((response) => {
  2748. if (response.data.feeDoList != 0) {
  2749. response.data.feeDoList.map((e) => {
  2750. if (e.fBsdate) {
  2751. e.fBsdate = e.fBsdate.slice(0, 10);
  2752. }
  2753. if (e.fSrcdc) {
  2754. if (e.fSrcdc == "D") {
  2755. e.fSrcdc = "收";
  2756. } else {
  2757. e.fSrcdc = "付";
  2758. }
  2759. }
  2760. });
  2761. }
  2762. this.increase_s = response.data.feeDoList;
  2763. this.fWbuOptions = response.data.feesList;
  2764. this.queryParams = response.data.tFee;
  2765. this.fWbuOptions = response.data.feesList;
  2766. this.fMblnoOptions = response.data.corps;
  2767. this.open = true;
  2768. });
  2769. }
  2770. });
  2771. }
  2772. },
  2773. //打印功能
  2774. printing() {
  2775. if (this.increase_s.length !== 0) {
  2776. this.printStatus = true;
  2777. this.printObject = this.increase_s;
  2778. } else {
  2779. this.$message.error("无数据,请检查是否有数据");
  2780. }
  2781. },
  2782. //确认打印
  2783. printSomething() {
  2784. // 此处的style即为打印时的样式
  2785. const style =
  2786. "table tr td,th { border-collapse: collapse;padding:0px;border:.5px #000 solid;text-align:center;}";
  2787. print({
  2788. printable: "print_area2",
  2789. type: "html",
  2790. header: "付费表",
  2791. style: style, // 亦可使用引入的外部css;
  2792. scanStyles: false,
  2793. });
  2794. },
  2795. //关闭打印弹窗
  2796. closePrinting() {
  2797. this.$confirm("确认关闭?")
  2798. .then((_) => {
  2799. this.printStatus = false;
  2800. })
  2801. .catch((_) => {});
  2802. },
  2803. // 确认付费
  2804. confirmCharge() {
  2805. this.$refs["ruless"].validate((valid) => {
  2806. if (valid) {
  2807. if (this.increase_s.length) {
  2808. // this.queryParams.fBillstatus = '4'
  2809. let formDate = new window.FormData();
  2810. formDate.append("tFee", JSON.stringify(this.queryParams));
  2811. formDate.append("tFeeDo", JSON.stringify(this.increase_s));
  2812. if (Cookies.get("sysType") == 1) {
  2813. collectFee(formDate).then((response) => {
  2814. this.msgSuccess("操作成功");
  2815. this.open = false;
  2816. this.getList();
  2817. });
  2818. } else {
  2819. collectFees(formDate).then((response) => {
  2820. this.msgSuccess("操作成功");
  2821. this.open = false;
  2822. this.getList();
  2823. });
  2824. }
  2825. } else {
  2826. this.$message.error("表单为空不允许操作");
  2827. }
  2828. }
  2829. });
  2830. },
  2831. charGe() {
  2832. if (!Cookies.get("sysType")) {
  2833. return this.$message("请先选择业务类型");
  2834. }
  2835. this.queryParameter = {
  2836. fToCorpid: this.queryParams.fCorpid,
  2837. };
  2838. this.chargeList_s = [];
  2839. // this.queryParameter.fToCorpid = this.queryParams.fCorpid
  2840. this.innerVisible = true;
  2841. if (this.queryParams.fCorpid) {
  2842. this.doNot = true;
  2843. }
  2844. },
  2845. getSum(param) {
  2846. const { columns, data } = param;
  2847. const sums = [];
  2848. columns.forEach((column, index) => {
  2849. sums[0] = "合计";
  2850. sums[10] = this.totAL.toFixed(2);
  2851. sums[9] = this.Ttime.toFixed(2);
  2852. });
  2853. return sums;
  2854. },
  2855. // 导入多选框
  2856. handleSelectionChange_s(selection) {
  2857. this.totAL = 0;
  2858. this.Ttime = 0;
  2859. this.selection = selection;
  2860. if (this.selection.length == 0) {
  2861. for (let item in this.chargeList_s) {
  2862. this.totAL += Number(this.chargeList_s[item].fAmt);
  2863. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  2864. }
  2865. } else {
  2866. for (let index in selection) {
  2867. this.totAL += Number(selection[index].fAmt);
  2868. this.Ttime += Number(selection[index].fAmtdr);
  2869. }
  2870. }
  2871. // this.getSummaries()
  2872. },
  2873. // 多选框选中数据
  2874. handleSelectionChange(selection) {
  2875. this.totAL = 0;
  2876. this.ids = selection.map((item) => item.fId);
  2877. this.single =
  2878. selection.length !== 1 ||
  2879. selection.map((item) => item.fBillstatus) == 4 ||
  2880. selection.map((item) => item.fBillstatus) == 6;
  2881. this.multiple = !selection.length;
  2882. },
  2883. imgChangeI(row) {
  2884. if (row.fAmt && Number(row.fAmt) > Number(row.fAmtdr)) {
  2885. this.$set(row, "fAmt", row.fAmtdr);
  2886. this.state_s = true;
  2887. }
  2888. if (this.selection.length !== 0) {
  2889. this.totAL = 0;
  2890. this.Ttime = 0;
  2891. for (let item in this.selection) {
  2892. this.totAL += Number(this.selection[item].fAmt);
  2893. this.Ttime += Number(this.selection[item].fAmtdr);
  2894. }
  2895. } else {
  2896. this.totAL = 0;
  2897. this.Ttime = 0;
  2898. for (let item in this.chargeList_s) {
  2899. this.totAL += Number(this.chargeList_s[item].fAmt);
  2900. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  2901. }
  2902. }
  2903. },
  2904. //确认导入
  2905. confirmImport() {
  2906. this.doNot = true;
  2907. this.hide = true;
  2908. for (let item in this.selection) {
  2909. this.pass.fAmtcr += Number(this.selection[item].fAmt);
  2910. this.pass.fAmtdr += Number(this.selection[item].fAmtdr);
  2911. }
  2912. console.log(this.pass.fAmtcr);
  2913. if (this.state_s == true) {
  2914. if (this.selection.length == "0") {
  2915. this.$message.error("未选择导入行");
  2916. } else {
  2917. for (let item in this.selection) {
  2918. this.empty.push(this.selection[item].fMblno);
  2919. this.nothing.push(this.selection[item].fName);
  2920. }
  2921. //去重提单号
  2922. this.empty = new Set(this.empty);
  2923. this.empty = Array.from(this.empty);
  2924. //去重货权方
  2925. this.nothing = new Set(this.nothing);
  2926. this.nothing = Array.from(this.nothing);
  2927. if (this.empty.length <= 1) {
  2928. this.pass.fMblno = this.empty[0];
  2929. } else {
  2930. this.pass.fMblno = this.empty[0] + "...";
  2931. }
  2932. if (this.nothing.length <= 1) {
  2933. this.pass.fName = this.nothing[0];
  2934. } else {
  2935. this.pass.fName = this.nothing[0] + "...";
  2936. }
  2937. this.increase_s = this.increase_s.concat(this.selection);
  2938. this.queryParams.tMblno = this.pass.fMblno; //提单号
  2939. this.queryParams.fCtrlcorpid = this.pass.fName;
  2940. this.queryParams.fCorpid = this.queryParameter.fToCorpid;
  2941. this.queryParams.fAmtcr = this.pass.fAmtcr;
  2942. this.queryParams.fAmtdr = this.pass.fAmtdr;
  2943. this.innerVisible = false;
  2944. this.chargeList_s = [];
  2945. this.queryParameter = {
  2946. fCorpid: "",
  2947. fToCorpid: "",
  2948. fMblno: "",
  2949. fStatementNo: "",
  2950. fFeeid: "",
  2951. timeExamine: "",
  2952. timeInterval: "",
  2953. };
  2954. }
  2955. } else if (this.state_s == false) {
  2956. this.$message.error("本次金额不能大于原定金额");
  2957. }
  2958. },
  2959. /** 查询财务数据主列表 */
  2960. getList() {
  2961. this.loading = true;
  2962. this.getDicts("approval_process").then((response) => {
  2963. this.options = response.data;
  2964. });
  2965. if (Cookies.get("sysType") == 1) {
  2966. //大木
  2967. listCharge(this.tableFilter).then((response) => {
  2968. this.chargeList = response.rows;
  2969. this.total = response.total;
  2970. this.loading = false;
  2971. });
  2972. } else if (Cookies.get("sysType") == 2) {
  2973. //车队
  2974. listCharges(this.tableFilter).then((response) => {
  2975. response.rows.map((e) => {
  2976. if (e.createTime) {
  2977. e.createTime = e.createTime.substring(0, 10);
  2978. }
  2979. });
  2980. this.chargeList = response.rows;
  2981. this.total = response.total;
  2982. this.loading = false;
  2983. });
  2984. }
  2985. },
  2986. // 取消按钮
  2987. cancel() {
  2988. this.open = false;
  2989. this.approve = false;
  2990. this.reset();
  2991. },
  2992. // 表单重置
  2993. reset() {
  2994. this.form = {
  2995. fId: null,
  2996. fBillno: null,
  2997. fCtrlcorpid: null,
  2998. fCorpid: null,
  2999. tMblno: null,
  3000. fAmtdr: null,
  3001. fAmtcr: null,
  3002. fBilltype: null,
  3003. fBillstatus: "0",
  3004. fRemarks: null,
  3005. fAccbilldate: null,
  3006. delFlag: null,
  3007. createBy: null,
  3008. fDeptid: null,
  3009. createTime: null,
  3010. updateBy: null,
  3011. updateTime: null,
  3012. };
  3013. this.resetForm("form");
  3014. },
  3015. /** 搜索按钮操作 */
  3016. handleQuery() {
  3017. this.queryParams.pageNum = 1;
  3018. this.getList();
  3019. },
  3020. /** 导入搜索 */
  3021. importSearch() {
  3022. // .join(',')
  3023. this.chargeList_s = [];
  3024. if (this.queryParameter.fStatementNo) {
  3025. this.rules = {};
  3026. if (Cookies.get("sysType") == 1) {
  3027. search(this.queryParameter).then((response) => {
  3028. this.chargeList_s = response.rows;
  3029. this.$message.success("查询成功");
  3030. for (let item in this.chargeList_s) {
  3031. this.totAL += Number(this.chargeList_s[item].fAmt);
  3032. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3033. }
  3034. });
  3035. } else {
  3036. searchs(this.queryParameter).then((response) => {
  3037. this.chargeList_s = response.rows;
  3038. this.$message.success("查询成功");
  3039. for (let item in this.chargeList_s) {
  3040. this.totAL += Number(this.chargeList_s[item].fAmt);
  3041. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3042. }
  3043. });
  3044. }
  3045. } else {
  3046. this.rules = {
  3047. fToCorpid: [{ required: true, message: " ", trigger: "blur" }],
  3048. timeExamine: [{ required: true, message: " ", trigger: "blur" }],
  3049. };
  3050. if (this.rules) {
  3051. this.$refs["form"].validate((valid) => {
  3052. if (valid) {
  3053. if (Cookies.get("sysType") == 1) {
  3054. search(this.queryParameter).then((response) => {
  3055. this.chargeList_s = response.rows;
  3056. if (this.chargeList_s.length !== 0) {
  3057. this.$message.success("查询成功");
  3058. this.totAL = 0;
  3059. this.Ttime = 0;
  3060. for (let item in this.chargeList_s) {
  3061. this.totAL += Number(this.chargeList_s[item].fAmt);
  3062. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3063. }
  3064. } else {
  3065. this.$message.error("暂无数据");
  3066. }
  3067. });
  3068. } else {
  3069. searchs(this.queryParameter).then((response) => {
  3070. this.chargeList_s = response.rows;
  3071. if (this.chargeList_s.length !== 0) {
  3072. this.$message.success("查询成功");
  3073. this.totAL = 0;
  3074. this.Ttime = 0;
  3075. for (let item in this.chargeList_s) {
  3076. this.totAL += Number(this.chargeList_s[item].fAmt);
  3077. this.Ttime += Number(this.chargeList_s[item].fAmtdr);
  3078. }
  3079. } else {
  3080. this.$message.error("暂无数据");
  3081. }
  3082. });
  3083. }
  3084. }
  3085. });
  3086. } else {
  3087. this.$message.error("操作频繁");
  3088. }
  3089. }
  3090. },
  3091. /** 远程模糊查询用户 */
  3092. corpsRemoteMethod(name) {
  3093. if (name == null || name === "") {
  3094. return false;
  3095. }
  3096. let queryParams = { fName: name };
  3097. listCorps(queryParams).then((response) => {
  3098. this.fMblnoOptions = response;
  3099. this.KHblnoOptions = response;
  3100. });
  3101. },
  3102. /** 重置按钮操作 */
  3103. resetQuery() {
  3104. this.tableFilter = {
  3105. pageNum: 1,
  3106. pageSize: 10,
  3107. timeInterval: null,
  3108. fBillno: null,
  3109. fCtrlcorpid: null,
  3110. fCorpid: null,
  3111. };
  3112. this.handleQuery();
  3113. },
  3114. //导入重置按钮
  3115. resetQuery_s() {
  3116. this.queryParameter = {
  3117. fCorpid: "",
  3118. fToCorpid: "",
  3119. fMblno: "",
  3120. fStatementNo: "",
  3121. fFeeid: "",
  3122. timeExamine: "",
  3123. timeInterval: "",
  3124. };
  3125. },
  3126. // 远程模糊查询费用名称
  3127. fWRemoteMethod(name) {
  3128. this.fWbuOptions = [];
  3129. if (name == null || name === "") {
  3130. return false;
  3131. }
  3132. let queryParams = { pageNum: 1, pageSize: 10, fName: name };
  3133. listFees(queryParams).then((response) => {
  3134. this.fWbuOptions = response.rows;
  3135. });
  3136. },
  3137. /** 新增按钮操作 */
  3138. handleAdd() {
  3139. // this.notChange = false;
  3140. this.mainTable = true
  3141. // this.hide = true;
  3142. // this.reset();
  3143. // (this.pass = {
  3144. // fAmtdr: 0, //应收合计
  3145. // fAmtcr: 0, //应付合计
  3146. // fMblno: "", //提单号
  3147. // fName: "", //货权方
  3148. // fFeesName: "", //结算单位
  3149. // fCorpid: "", //结算单位ID
  3150. // }),
  3151. // // this.queryParams = []
  3152. // (this.increase_s = []);
  3153. // this.queryParams = {
  3154. // pageNum: 1,
  3155. // pageSize: 10,
  3156. // fBillno: null,
  3157. // fCtrlcorpid: null,
  3158. // fCorpid: null,
  3159. // tMblno: null,
  3160. // fAmtdr: null,
  3161. // fAmtcr: null,
  3162. // fBilltype: null,
  3163. // fBillstatus: null,
  3164. // fRemarks: null,
  3165. // fAccbilldate: null,
  3166. // fDeptid: null,
  3167. // chargingMethod: null,
  3168. // invoiceNo: null,
  3169. // bank: null,
  3170. // waterBillNo: null,
  3171. // fSystemType: Cookies.get("sysType"),
  3172. // };
  3173. // this.resetForm("queryParams");
  3174. // this.open = true;
  3175. // this.title = "添加财务数据主";
  3176. },
  3177. /** 修改按钮操作 */
  3178. handleUpdate(row) {
  3179. this.approve = false;
  3180. this.hide = false;
  3181. this.notChange = false;
  3182. this.reset();
  3183. this.pass = {
  3184. fAmtdr: 0, //应收合计
  3185. fAmtcr: 0, //应付合计
  3186. fMblno: "", //提单号
  3187. fName: "", //货权方
  3188. fFeesName: "", //结算单位
  3189. fCorpid: "", //结算单位ID
  3190. };
  3191. const fId = row.fId || this.ids;
  3192. if (Cookies.get("sysType") == 1) {
  3193. //大木
  3194. getCharge(fId).then((response) => {
  3195. this.Operator = response.data.tFee.createBy;
  3196. if (response.data.feeDoList != 0) {
  3197. response.data.feeDoList.map((e) => {
  3198. if (e.fBsdate) {
  3199. e.fBsdate = e.fBsdate.slice(0, 10);
  3200. }
  3201. if (e.fSrcdc) {
  3202. if (e.fSrcdc == "D") {
  3203. e.fSrcdc = "收";
  3204. } else {
  3205. e.fSrcdc = "付";
  3206. }
  3207. }
  3208. });
  3209. }
  3210. this.increase_s = response.data.feeDoList;
  3211. this.fWbuOptions = response.data.feesList;
  3212. this.queryParams = response.data.tFee;
  3213. this.fWbuOptions = response.data.feesList;
  3214. this.fMblnoOptions = response.data.corps;
  3215. this.open = true;
  3216. this.title = "修改付费列表";
  3217. });
  3218. } else if (Cookies.get("sysType") == 2) {
  3219. //车队
  3220. getCharges(fId).then((response) => {
  3221. this.Operator = response.data.tFee.createBy;
  3222. if (response.data.feeDoList != 0) {
  3223. response.data.feeDoList.map((e) => {
  3224. if (e.fBsdate) {
  3225. e.fBsdate = e.fBsdate.slice(0, 10);
  3226. }
  3227. if (e.fSrcdc) {
  3228. if (e.fSrcdc == "D") {
  3229. e.fSrcdc = "收";
  3230. } else {
  3231. e.fSrcdc = "付";
  3232. }
  3233. }
  3234. });
  3235. }
  3236. this.increase_s = response.data.feeDoList;
  3237. this.fWbuOptions = response.data.feesList;
  3238. this.queryParams = response.data.tFee;
  3239. this.fWbuOptions = response.data.feesList;
  3240. this.fMblnoOptions = response.data.corps;
  3241. this.open = true;
  3242. this.title = "修改付费列表";
  3243. });
  3244. }
  3245. },
  3246. /** 提交按钮 */
  3247. submitForm() {
  3248. this.$refs["ruless"].validate((valid) => {
  3249. if (valid) {
  3250. if (this.queryParams.fId == null) {
  3251. // this.chargeList.fBillstatus = '1'
  3252. this.queryParams.fBillstatus = "1";
  3253. let formData = new window.FormData();
  3254. formData.append("tFee", JSON.stringify(this.queryParams));
  3255. formData.append("tFeeDo", JSON.stringify(this.increase_s));
  3256. if (Cookies.get("sysType") == 1) {
  3257. addCharge(formData).then((response) => {
  3258. this.msgSuccess("新增成功");
  3259. // this.increase_s = []
  3260. // this.open = false
  3261. this.getList();
  3262. });
  3263. } else {
  3264. addCharges(formData).then((response) => {
  3265. this.msgSuccess("新增成功");
  3266. // this.increase_s = []
  3267. // this.open = false
  3268. this.getList();
  3269. });
  3270. }
  3271. } else {
  3272. this.pass.fAmtcr = 0;
  3273. this.pass.fAmtdr = 0;
  3274. for (let item in this.increase_s) {
  3275. this.pass.fAmtcr += Number(this.increase_s[item].fAmt);
  3276. this.pass.fAmtdr += Number(this.increase_s[item].fAmtdr);
  3277. }
  3278. this.queryParams.fAmtcr = Number(this.pass.fAmtcr).toFixed(2);
  3279. this.queryParams.fAmtdr = Number(this.pass.fAmtdr).toFixed(2);
  3280. // this.pass.fAmtcr.toFixed(2);
  3281. this.queryParams.fBillstatus = "1";
  3282. let formData = new window.FormData();
  3283. formData.append("tFee", JSON.stringify(this.queryParams));
  3284. formData.append("tFeeDo", JSON.stringify(this.increase_s));
  3285. if (Cookies.get("sysType") == 1) {
  3286. addCharge(formData).then((response) => {
  3287. this.msgSuccess("修改成功");
  3288. // this.increase_s = []
  3289. // this.open = false
  3290. this.getList();
  3291. });
  3292. } else {
  3293. addCharges(formData).then((response) => {
  3294. this.msgSuccess("修改成功");
  3295. // this.increase_s = []
  3296. // this.open = false
  3297. this.getList();
  3298. });
  3299. }
  3300. }
  3301. }
  3302. });
  3303. },
  3304. /** 删除按钮操作 */
  3305. handleDelete(row) {
  3306. const fIds = row.fId || this.ids;
  3307. let tips = "";
  3308. if (Cookies.get("sysType") == 1) {
  3309. //大木
  3310. delCharge_s(fIds).then((data) => {
  3311. switch (data.msg) {
  3312. case "0": {
  3313. this.$message.error("当前数据已被其他操作员操作请刷新页面");
  3314. break;
  3315. }
  3316. case "1": {
  3317. tips = "当前主表有数据从表无数据是否删除";
  3318. this.delete_S(fIds, tips);
  3319. break;
  3320. }
  3321. case "2": {
  3322. tips = "当前主表有数据从表有数据是否删除";
  3323. this.delete_S(fIds, tips);
  3324. break;
  3325. }
  3326. default: {
  3327. return this.$message.error("未知错误,无状态");
  3328. }
  3329. }
  3330. });
  3331. } else if (Cookies.get("sysType") == 2) {
  3332. //车队
  3333. delCharge_ss(fIds).then((data) => {
  3334. switch (data.msg) {
  3335. case "0": {
  3336. this.$message.error("当前数据已被其他操作员操作请刷新页面");
  3337. break;
  3338. }
  3339. case "1": {
  3340. tips = "当前主表有数据从表无数据是否删除";
  3341. this.delete_S(fIds, tips);
  3342. break;
  3343. }
  3344. case "2": {
  3345. tips = "当前主表有数据从表有数据是否删除";
  3346. this.delete_S(fIds, tips);
  3347. break;
  3348. }
  3349. default: {
  3350. return this.$message.error("未知错误,无状态");
  3351. }
  3352. }
  3353. });
  3354. }
  3355. },
  3356. delete_S(fIds, tips) {
  3357. this.$confirm(tips, "警告", {
  3358. confirmButtonText: "确定",
  3359. cancelButtonText: "取消",
  3360. type: "warning",
  3361. })
  3362. .then(function () {
  3363. if (Cookies.get("sysType") == 1) {
  3364. return delCharge(fIds);
  3365. } else if (Cookies.get("sysType") == 2) {
  3366. return delCharges(fIds);
  3367. }
  3368. })
  3369. .then(() => {
  3370. this.getList();
  3371. this.msgSuccess("删除成功");
  3372. });
  3373. },
  3374. /** 导出按钮操作 */
  3375. handleExport() {
  3376. const queryParams = this.queryParams;
  3377. this.$confirm("是否确认导出所有财务数据主数据项?", "警告", {
  3378. confirmButtonText: "确定",
  3379. cancelButtonText: "取消",
  3380. type: "warning",
  3381. })
  3382. .then(function () {
  3383. return exportCharge(queryParams);
  3384. })
  3385. .then((response) => {
  3386. this.download(response.msg);
  3387. });
  3388. },
  3389. //清空一行
  3390. deleteRow(index, rows) {
  3391. this.queryParams.fAmtcr = 0;
  3392. this.queryParams.fAmtdr = 0;
  3393. rows.splice(index, 1);
  3394. for (let item in this.increase_s) {
  3395. this.queryParams.fAmtcr += this.increase_s[item].fAmt;
  3396. this.queryParams.fAmtdr += this.increase_s[item].fAmtdr;
  3397. }
  3398. if (this.increase_s == 0) {
  3399. this.doNot = false;
  3400. } else {
  3401. this.doNot = true;
  3402. }
  3403. },
  3404. // 财务结算方式(数据字典),对应data_settlement_type 字典翻译
  3405. methodTypeFormat(row, column) {
  3406. return this.selectDictLabel(this.methodOptions, row.chargingMethod);
  3407. },
  3408. },
  3409. };
  3410. </script>
  3411. <style lang="scss">
  3412. .tabSetting {
  3413. display: flex;
  3414. justify-content: flex-end;
  3415. }
  3416. .listStyle {
  3417. display: flex;
  3418. border-top: 1px solid #dcdfe6;
  3419. border-left: 1px solid #dcdfe6;
  3420. border-right: 1px solid #dcdfe6;
  3421. }
  3422. .listStyle:last-child {
  3423. border-bottom: 1px solid #dcdfe6;
  3424. }
  3425. .progress {
  3426. display: flex;
  3427. align-items: center;
  3428. padding: 2px;
  3429. background-color: rgba(0, 0, 0, 0.05);
  3430. height: 100%;
  3431. }
  3432. .avue-crud__dialog__header {
  3433. display: -webkit-box;
  3434. display: -ms-flexbox;
  3435. display: flex;
  3436. -webkit-box-align: center;
  3437. -ms-flex-align: center;
  3438. align-items: center;
  3439. -webkit-box-pack: justify;
  3440. -ms-flex-pack: justify;
  3441. justify-content: space-between;
  3442. }
  3443. .el-dialog__title {
  3444. color: rgba(0, 0, 0, 0.85);
  3445. font-weight: 500;
  3446. word-wrap: break-word;
  3447. }
  3448. .avue-crud__dialog__menu {
  3449. padding-right: 20px;
  3450. float: left;
  3451. }
  3452. .avue-crud__dialog__menu i {
  3453. color: #909399;
  3454. font-size: 15px;
  3455. }
  3456. .el-icon-full-screen {
  3457. cursor: pointer;
  3458. }
  3459. .el-icon-full-screen:before {
  3460. content: "\e719";
  3461. }
  3462. </style>