detailsPageEdit.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931
  1. <template>
  2. <div class="borderless" v-loading="pageLoading">
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <!-- <i class="back-icon el-icon-arrow-left"></i><i style="font-style:normal">返回管理列表</i>-->
  6. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  7. @click="backToList">返回列表
  8. </el-button>
  9. </div>
  10. <div class="add-customer-btn">
  11. <el-button
  12. v-if="detailData.seeDisabled"
  13. size="small"
  14. @click="editHandle"
  15. type="primary"
  16. style="margin-right: 8px"
  17. :loading="saveLoading"
  18. >编 辑</el-button>
  19. <el-dropdown style="margin-right: 8px;">
  20. <el-button
  21. type="warning"
  22. size="small"
  23. :loading="saveLoading"
  24. >
  25. 账单处理<i class="el-icon-arrow-down el-icon--right"></i>
  26. </el-button>
  27. <el-dropdown-menu slot="dropdown">
  28. <el-dropdown-item
  29. :disabled="detailData.seeDisabled || !form.id"
  30. @click.native="applyPayment('申请')"
  31. >
  32. 申请货款
  33. </el-dropdown-item>
  34. <!-- <el-dropdown-item-->
  35. <!-- @click.stop.native="applyPayment('收费')"-->
  36. <!-- :disabled="!this.form.id"-->
  37. <!-- >申请退款-->
  38. <!-- </el-dropdown-item>-->
  39. <el-dropdown-item
  40. @click.native="openApplicationDialog"
  41. :disabled="!form.id"
  42. >查看账单
  43. </el-dropdown-item>
  44. </el-dropdown-menu>
  45. </el-dropdown>
  46. <el-button type="primary"
  47. size="small"
  48. :loading="saveLoading"
  49. :disabled="detailData.seeDisabled || !form.id"
  50. @click="postMessage"
  51. >发送消息</el-button>
  52. <el-button
  53. size="small"
  54. class="el-button--small-yh"
  55. type="success"
  56. @click="copyOrder"
  57. :loading="saveLoading"
  58. :disabled="detailData.seeDisabled || !this.form.id"
  59. >
  60. 复制单据
  61. </el-button>
  62. <el-button
  63. size="small"
  64. class="el-button--small-yh"
  65. type="primary"
  66. :disabled="disabled || detailData.seeDisabled"
  67. @click="editCustomer(false)"
  68. :loading="saveLoading"
  69. >保 存
  70. </el-button>
  71. <div v-if="checkDisabled" style="float: right;margin-left: 8px">
  72. <el-button type="primary"
  73. size="small"
  74. class="el-button--small-yh"
  75. @click.stop="openCheckDialog">
  76. 审批
  77. </el-button>
  78. </div>
  79. </div>
  80. </div>
  81. <div class="customer-main">
  82. <el-form :model="form" ref="form" label-width="130px" class="demo-ruleForm">
  83. <containerTitle title="基础资料"></containerTitle>
  84. <basic-container :showBtn="true">
  85. <el-row>
  86. <el-col v-for="(item,index) in basicData.column" :key="index" :span="item.span?item.span:8">
  87. <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
  88. <!-- <avue-input-tree v-if="item.prop === 'corpsTypeId'" leaf-only multiple :props="{label:'title'}" v-model="form[item.prop]" placeholder="请选择内容" type="tree" :dic="dic"-->
  89. <!-- ></avue-input-tree>-->
  90. <el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]"
  91. size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss" :disabled="detailData.seeDisabled"/>
  92. <el-date-picker v-else-if="item.type === 'date'" style="width: 100%;" v-model="form[item.prop]"
  93. size="small" type="date" placeholder="选择日期"
  94. :disabled="detailData.seeDisabled"/>
  95. <el-select v-else-if="item.prop === 'paymentType'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
  96. <el-option v-for="(item,index) in paymentOption" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
  97. </el-select>
  98. <crop-select
  99. v-else-if="item.prop === 'corpId'"
  100. v-model="form[item.prop]"
  101. corpType="GYS"
  102. @getCorpData="returnBack"
  103. :disabled="detailData.seeDisabled"
  104. ></crop-select>
  105. <crop-select
  106. v-else-if="item.prop === 'belongToCorpId'"
  107. v-model="form[item.prop]"
  108. corpType="GS"
  109. :disabled="detailData.seeDisabled"
  110. @getCorpData="getGSName"
  111. ></crop-select>
  112. <el-select v-else-if="item.prop === 'banks'"
  113. v-model="form[item.prop]" placeholder="请选择"
  114. clearable
  115. filterable
  116. allow-create
  117. default-first-option
  118. size="small"
  119. style="width: 100%;"
  120. @change="banksChange"
  121. :disabled="detailData.seeDisabled">
  122. <el-option v-for="(item,index) in bankList" :key="index" :label="item.accountNo" :value="item.accountNo"></el-option>
  123. </el-select>
  124. <el-input
  125. v-else-if="item.type == 'number'"
  126. placeholder="请输入"
  127. v-input-limit="2"
  128. size="small"
  129. :disabled="item.disabled || detailData.seeDisabled"
  130. v-model.trim="form[item.prop]"
  131. />
  132. <el-select v-else-if="item.prop === 'packageRemarks'" v-model="form[item.prop]" placeholder="请选择" clearable filterable style="width: 100%" size="small" :disabled="detailData.seeDisabled">
  133. <el-option v-for="(item,index) in packageOptions" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
  134. </el-select>
  135. <el-input type="textarea" v-else-if="item.type === 'textarea'" v-model.trim="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled || detailData.seeDisabled"></el-input>
  136. <el-input type="age" v-else v-model.trim="form[item.prop]" size="small" autocomplete="off" :disabled="item.disabled || detailData.seeDisabled" placeholder="请输入"></el-input>
  137. </el-form-item>
  138. </el-col>
  139. </el-row>
  140. </basic-container>
  141. <containerTitle title="商品信息"></containerTitle>
  142. <basic-container>
  143. <avue-crud
  144. :option="customerContact"
  145. v-model="contactsForm"
  146. :data="contactsData"
  147. ref="crudContact"
  148. @row-save="rowSave"
  149. @row-click="handleRowClick"
  150. @row-update="rowUpdate"
  151. @row-del="rowDel"
  152. @selection-change="productSelection"
  153. @saveColumn="saveColumn('goods')"
  154. @resetColumn="resetColumn"
  155. :key="crudIndex"
  156. >
  157. <template slot="headerSerial" slot-scope="{column}">
  158. <el-button type="primary" icon="el-icon-circle-plus-outline" circle size="mini" @click="$refs.crudContact.rowCellAdd()"></el-button>
  159. </template>
  160. <template slot="cname" slot-scope="{ row }">
  161. <goods-select v-if="row.$cellEdit" v-model="row.cname" @getRow="getGoodsRow($event, row)"
  162. :configuration="goodsConfiguration" @receiveList="receiveGoodList" @returnRow="getRow($event, row)"/>
  163. <span v-else>
  164. {{ row.cname }}
  165. <!-- <span v-for="item in goodsConfiguration.dicData" v-if="item.cname == row.cname">{{ item.cname }}</span>-->
  166. </span>
  167. </template>
  168. <template slot="orderQuantity" slot-scope="{ row }">
  169. <el-input
  170. v-if="row.$cellEdit"
  171. v-model.trim="row.orderQuantity"
  172. oninput='this.value=this.value.replace(/[^(\d)]/g,"")' size="small"
  173. @input="changeContractAmt(row)"
  174. ></el-input>
  175. <span v-else>{{ row.orderQuantity | IntegerFormat }}</span>
  176. </template>
  177. <template slot="purchaseAmount" slot-scope="{ row }">
  178. <el-select
  179. v-if="row.$cellEdit"
  180. v-model="row.purchaseAmount"
  181. @change="changeContractAmt(row)"
  182. allow-create
  183. filterable
  184. v-input-limit="2"
  185. default-first-option
  186. >
  187. <el-option
  188. v-for="(item, index) in purchasePriceOption"
  189. :key="index"
  190. :label="item.purchasePrice"
  191. :value="item.purchasePrice"></el-option>
  192. </el-select>
  193. <span v-else>{{ row.purchaseAmount | decimalFormat }}</span>
  194. </template>
  195. <template slot="amount" slot-scope="{ row }">
  196. <span>{{ row.amount | decimalFormat }}</span>
  197. </template>
  198. <template slot="actualQuantity" slot-scope="{ row }">
  199. <span>{{ row.actualQuantity | IntegerFormat }}</span>
  200. </template>
  201. <template slot="storageQuantity" slot-scope="{ row }">
  202. <span>{{ row.storageQuantity | IntegerFormat }}</span>
  203. </template>
  204. <template slot="code" slot-scope="{row,index}">
  205. <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="commodityChoice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>
  206. <span>{{ row.code }}</span>
  207. </template>
  208. <template slot-scope="{row,index}" slot="menu">
  209. <el-button
  210. type="text"
  211. size="small"
  212. @click="rowCell(row,index)"
  213. :disabled="detailData.seeDisabled"
  214. >{{ row.$cellEdit ? '保存' : '修改' }}
  215. </el-button>
  216. <el-button
  217. size="small"
  218. icon="el-icon-delete"
  219. type="text"
  220. @click="rowDel(row, index)"
  221. :disabled="detailData.seeDisabled"
  222. v-if="!row.$cellEdit"
  223. >删 除</el-button>
  224. </template>
  225. <template slot="menuLeft" slot-scope="{size}">
  226. <el-button type="primary"
  227. icon="el-icon-plus"
  228. size="small"
  229. @click="commoditySelection"
  230. :disabled="detailData.seeDisabled"
  231. >录入明细
  232. </el-button>
  233. <el-button type="warning"
  234. icon="el-icon-plus"
  235. size="small"
  236. :disabled="selection.length < 1 || detailData.seeDisabled || form.createFreight == 1"
  237. @click="getShipmentC">生成工厂发货
  238. </el-button>
  239. <el-button type="info" :size="size" icon="el-icon-printer" @click.stop="openReport()">报 表</el-button>
  240. </template>
  241. </avue-crud>
  242. </basic-container>
  243. <!-- 注释,怕再次需要-->
  244. <!-- <fee-info-->
  245. <!-- ref="feeInfo"-->
  246. <!-- :orderFeesList="advantageProjectData"-->
  247. <!-- :disabled="detailData.seeDisabled"-->
  248. <!-- feeUrl="/trade-purchase/purchase-order/removeByFees"-->
  249. <!-- optionType="GN"-->
  250. <!-- itemType="采购"-->
  251. <!-- @beforeFinance="beforeFinance"-->
  252. <!-- :corpId="form.corpId"-->
  253. <!-- :tabShow="3"-->
  254. <!-- />-->
  255. <containerTitle title="附件上传"></containerTitle>
  256. <c-upload
  257. :data="bankOfDepositData"
  258. deleteUrl="/api/trade-purchase/purchase-order/removeByFiles"
  259. :enumerationValue="77"
  260. />
  261. </el-form>
  262. </div>
  263. <el-dialog
  264. title="导入商品"
  265. append-to-body
  266. class="el-dialogDeep"
  267. :visible.sync="dialogVisible"
  268. width="80%"
  269. :close-on-click-modal="false"
  270. :destroy-on-close="true"
  271. :close-on-press-escape="false"
  272. @close="closeGoods">
  273. <el-row :style="{height: rowHeight}">
  274. <el-col :span="5" style="height: 100%;overflow-y: auto">
  275. <div>
  276. <el-scrollbar>
  277. <basic-container>
  278. <avue-tree :option="treeOption" :data="treeDataGoods" @node-click="nodeClick"/>
  279. </basic-container>
  280. </el-scrollbar>
  281. </div>
  282. </el-col>
  283. <el-col :span="19">
  284. <basic-container>
  285. <avue-crud :option="optionTwo"
  286. :table-loading="loading"
  287. :data="goodsListShow"
  288. ref="crud"
  289. @refresh-change="refreshChange"
  290. @selection-change="selectionChange"
  291. :page.sync="page"
  292. @search-change="goodsSearch"
  293. @on-load="onLoad">
  294. <template slot="menuLeft" slot-scope="{size}">
  295. <el-tabs v-model="activeName" @tab-click="tabHandle">
  296. <el-tab-pane label="查询结果" name="searchList"></el-tab-pane>
  297. <el-tab-pane label="已选定数据" name="importStaging"></el-tab-pane>
  298. </el-tabs>
  299. </template>
  300. <template slot-scope="scope" slot="menu">
  301. <el-button
  302. type="text"
  303. icon="el-icon-edit"
  304. size="small"
  305. @click.stop="importStagList(scope.row,scope.index)"
  306. v-if="activeName=='searchList'"
  307. :disabled="goodsListSave.findIndex(item => item.id == scope.row.id) !== -1"
  308. >选择
  309. </el-button>
  310. <el-button
  311. type="text"
  312. icon="el-icon-delete"
  313. size="small"
  314. @click.stop="removeStagList(scope.row,scope.index)"
  315. v-else
  316. >移除
  317. </el-button>
  318. </template>
  319. </avue-crud>
  320. </basic-container>
  321. </el-col>
  322. </el-row>
  323. <span slot="footer" class="dialog-footer">
  324. <el-button @click="dialogVisible = false">取 消</el-button>
  325. <el-button type="primary" @click="importGoods" v-if="commodityData !== true">导入</el-button>
  326. <el-button type="primary" @click="importChoice" v-if="commodityData === true"
  327. :disabled="tableData.length !== 1">导入</el-button>
  328. </span>
  329. </el-dialog>
  330. <el-dialog
  331. title="导入费用"
  332. append-to-body
  333. class="el-dialogDeep"
  334. :visible.sync="dialogCost"
  335. width="80%"
  336. :close-on-click-modal="false"
  337. :destroy-on-close="true"
  338. :close-on-press-escape="false"
  339. @close="closeFees">
  340. <el-row :style="{height: rowHeight}">
  341. <el-col :span="5" style="height: 100%;overflow-y: auto">
  342. <div>
  343. <el-scrollbar>
  344. <basic-container>
  345. <avue-tree :option="treeOptionCost" :data="treeData" @node-click="nodeClickCost"/>
  346. </basic-container>
  347. </el-scrollbar>
  348. </div>
  349. </el-col>
  350. <el-col :span="19">
  351. <basic-container>
  352. <avue-crud :option="optionTwoCost"
  353. :table-loading="loadingCost"
  354. :data="dataCost"
  355. ref="crud"
  356. @refresh-change="refreshChangeCost"
  357. @selection-change="selectionChangeCost"
  358. :page.sync="pageCost"
  359. @searchChange="feesSearch"
  360. @on-load="onLoadCost">
  361. </avue-crud>
  362. </basic-container>
  363. </el-col>
  364. </el-row>
  365. <span slot="footer" class="dialog-footer">
  366. <el-button @click="dialogCost = false">取 消</el-button>
  367. <el-button type="primary" @click="importCost" v-if="choiceData !== true">导入</el-button>
  368. <el-button type="primary" @click="choiceCost" v-if="choiceData === true"
  369. :disabled="tableDataCost.length !== 1">导入</el-button>
  370. </span>
  371. </el-dialog>
  372. <el-dialog
  373. append-to-body
  374. title="账单"
  375. class="el-dialogDeep"
  376. :visible.sync="financialAccountDialog"
  377. width="70%"
  378. :close-on-click-modal="false"
  379. :destroy-on-close="true"
  380. :close-on-press-escape="false"
  381. v-dialog-drag
  382. >
  383. <financial-account
  384. v-if="financialAccountDialog"
  385. :billType="billType"
  386. :billData="billData"
  387. :arrList="applyPaymentList"
  388. :checkData="financeData"
  389. tradeType="GN"
  390. @choceFun="choceFun"
  391. @submit="feeSubmit"
  392. >
  393. </financial-account>
  394. </el-dialog>
  395. <el-dialog
  396. title="申请记录"
  397. append-to-body
  398. class="el-dialogDeep"
  399. :visible.sync="applicationDialog"
  400. width="60%"
  401. :close-on-click-modal="false"
  402. :destroy-on-close="true"
  403. :close-on-press-escape="false"
  404. v-dialog-drag
  405. >
  406. <bill-application
  407. :billId="form.id"
  408. @choceApplication="choceApplication"
  409. >
  410. </bill-application>
  411. </el-dialog>
  412. <report-dialog
  413. :switchDialog="switchDialog"
  414. :reportId="form.id"
  415. reportName="发货通知单"
  416. @onClose="onClose()"
  417. ></report-dialog>
  418. <el-dialog
  419. append-to-body
  420. title="审批"
  421. class="el-dialogDeep"
  422. :visible.sync="checkDialog"
  423. width="50%"
  424. :close-on-click-modal="false"
  425. :destroy-on-close="true"
  426. :close-on-press-escape="false"
  427. v-dialog-drag
  428. >
  429. <check
  430. :checkData="checkData"
  431. :checkDetail="false"
  432. :idList="[]"
  433. @choceCheckFun="choceCheckFun"
  434. >
  435. </check>
  436. </el-dialog>
  437. <el-dialog
  438. append-to-body
  439. title="审批进度"
  440. class="el-dialogDeep"
  441. :visible.sync="checkScheduleDialog"
  442. width="40%"
  443. :close-on-click-modal="false"
  444. :destroy-on-close="true"
  445. :close-on-press-escape="false"
  446. v-dialog-drag
  447. >
  448. <check-schedule
  449. :checkId="checkId"
  450. :batchNo="batchNo"
  451. @choceScheduleFun="choceScheduleFun"
  452. >
  453. </check-schedule>
  454. </el-dialog>
  455. <messagePost
  456. v-if="messageVisble"
  457. ref="messagePost"
  458. @closeDialog="closeDialog"
  459. ></messagePost>
  460. </div>
  461. </template>
  462. <script>
  463. import {
  464. typeSave,
  465. detail,
  466. corpsattn,
  467. corpsbank,
  468. corpsitem,
  469. // getList,
  470. getDeptLazyTreeS,
  471. getSysNo,
  472. generateShipment
  473. } from "@/api/basicData/purchaseOrder"
  474. import {getList} from "@/api/basicData/commodityType";
  475. import customerContact from "./configuration/customerContact.json"
  476. import advantageProject from "./configuration/advantageProject.json"
  477. import bankOfDeposit from "./configuration/bankOfDeposit.json"
  478. import commodity from "./configuration/commodity.json"
  479. import optionTwoCost from "./configuration/mainListCost.json"
  480. import {getDeptLazyTree, customerList} from "@/api/basicData/basicFeesDesc";
  481. import {selectGoodsNum} from "@/api/basicData/inventoryAccount"
  482. import { contrastObj, contrastList } from "@/util/contrastData";
  483. //账单组件
  484. import ApplyPayment from "../../../components/finance/applyPayment";
  485. import billApplication from "@/components/bill/billApplication";
  486. import { getlistBankBy, pleaseCheck, } from "@/api/basicData/configuration"
  487. import feeInfo from "@/components/fee-info/main";
  488. import {
  489. isDiscount,
  490. isPercentage,
  491. micrometerFormat,
  492. IntegerFormat
  493. } from "@/util/validate";
  494. import financialAccount from "../../../components/finance/financialAccount";
  495. import reportDialog from "@/components/report-dialog/main";
  496. import check from "@/components/check/check";
  497. import checkSchedule from "@/components/check/checkSchedule";
  498. import { customerList as feeList } from "@/api/basicData/basicFeesDesc";
  499. import { getMarketPrice, getPurchasePrice } from "@/api/basicData/fees";
  500. export default {
  501. name: "detailsPage",
  502. props: {
  503. detailData: {
  504. type: Object,
  505. default: {
  506. seeDisabled: false
  507. }
  508. }
  509. },
  510. components:{
  511. ApplyPayment,
  512. billApplication,
  513. feeInfo,
  514. financialAccount,
  515. reportDialog,
  516. check,
  517. checkSchedule,
  518. },
  519. data() {
  520. return {
  521. configuration: {
  522. multipleChoices: false,
  523. multiple: false,
  524. collapseTags: false,
  525. placeholder: '请点击右边按钮选择',
  526. dicData: []
  527. },
  528. goodsConfiguration: {
  529. multipleChoices: false,
  530. multiple: false,
  531. collapseTags: false,
  532. placeholder: '请点击右边按钮选择',
  533. dicData: []
  534. },
  535. form: {},
  536. data: [],
  537. loadingCost: false,
  538. choiceData: false,
  539. commodityData: false,
  540. financialAccountDialog:false,
  541. dataCost: [],
  542. choiceIndex: '',
  543. dialogCost: false,
  544. treeDeptId: '',
  545. treeDeptIdCost: '',
  546. pageCost: {
  547. pageSize: 10,
  548. currentPage: 1,
  549. total: 0
  550. },
  551. page: {
  552. pageSize: 10,
  553. currentPage: 1,
  554. total: 0
  555. },
  556. loading: false,
  557. contactsForm: {},
  558. optionTwo: commodity,
  559. optionTwoCost: optionTwoCost,
  560. treeDataGoods: [],
  561. treeData: [],
  562. treeOptionCost: {
  563. nodeKey: 'id',
  564. lazy: true,
  565. treeLoad: function (node, resolve) {
  566. const parentId = (node.level === 0) ? 0 : node.data.id;
  567. getDeptLazyTree(parentId).then(res => {
  568. resolve(res.data.data.map(item => {
  569. return {
  570. ...item,
  571. leaf: !item.hasChildren
  572. }
  573. }))
  574. });
  575. },
  576. addBtn: false,
  577. menu: false,
  578. size: 'small',
  579. props: {
  580. labelText: '标题',
  581. label: 'title',
  582. value: 'value',
  583. children: 'children'
  584. }
  585. },
  586. treeOption: {
  587. nodeKey: 'id',
  588. lazy: true,
  589. treeLoad: function (node, resolve) {
  590. const parentId = (node.level === 0) ? 0 : node.data.id;
  591. getDeptLazyTreeS(parentId).then(res => {
  592. resolve(res.data.data.map(item => {
  593. return {
  594. ...item,
  595. leaf: !item.hasChildren
  596. }
  597. }))
  598. });
  599. },
  600. addBtn: false,
  601. menu: false,
  602. size: 'small',
  603. props: {
  604. labelText: '标题',
  605. label: 'title',
  606. value: 'value',
  607. children: 'children'
  608. }
  609. },
  610. billType:"申请", //账单类型
  611. billData:{}, //账单需要数据
  612. financeData: {
  613. url:"/financialManagement/paymentRequest/index",
  614. pageStatus:"this.$store.getters.pqStatus",
  615. pageLabel:"付费申请",
  616. checkType: 'ffsq'
  617. }, // 账单请核需要的路由
  618. applyPaymentDialog:false,//生成账单组件
  619. applicationDialog: false,// 申请记录
  620. dialogVisible: false,
  621. advantageProjectForm: {},
  622. bankOfDepositForm: {},
  623. contactsData: [],
  624. advantageProjectData: [],
  625. saveLoading: false,
  626. disabled: false,
  627. bankOfDepositData: [],
  628. tableDataCost: [],
  629. dic: [],
  630. tableData: [],
  631. customerContact: {},
  632. advantageProject: {},
  633. bankOfDeposit: bankOfDeposit,
  634. basicData: {
  635. column: [
  636. {
  637. label: '供应商',
  638. prop: 'corpId',
  639. span: 16,
  640. rules: [
  641. {
  642. required: true,
  643. message: ' ',
  644. trigger: 'blur'
  645. }
  646. ]
  647. },{
  648. label: '付款方式',
  649. prop: 'paymentType',
  650. rules: [
  651. {
  652. required: true,
  653. message: ' ',
  654. trigger: 'blur'
  655. }
  656. ]
  657. },{
  658. label: '所属公司',
  659. prop: 'belongToCorpId',
  660. span: 16,
  661. rules: [
  662. {
  663. required: true,
  664. message: ' ',
  665. trigger: 'blur'
  666. }
  667. ]
  668. },{
  669. label: '要求到货日期',
  670. prop: 'requiredArrivalDate',
  671. type: 'datetime',
  672. rules: [
  673. {
  674. required: true,
  675. message: ' ',
  676. trigger: 'blur'
  677. }
  678. ]
  679. },{
  680. label: '银行账号',
  681. prop: 'banks',
  682. rules: [
  683. {
  684. required: true,
  685. message: ' ',
  686. trigger: 'blur'
  687. }
  688. ]
  689. }, {
  690. label: '公司户头',
  691. prop: 'banksAccountName',
  692. rules: [
  693. {
  694. required: false,
  695. message: ' ',
  696. trigger: 'blur'
  697. }
  698. ]
  699. }, {
  700. label: '包装要求',
  701. prop: 'packageRemarks',
  702. rules: [
  703. {
  704. required: false,
  705. message: ' ',
  706. trigger: 'blur'
  707. }
  708. ]
  709. },
  710. {
  711. label: '系统编号',
  712. prop: 'sysNo',
  713. disabled: true,
  714. rules: [
  715. {
  716. required: false,
  717. message: ' ',
  718. trigger: 'blur'
  719. }
  720. ]
  721. }, {
  722. label: '来源单号',
  723. prop: 'orgOrderNo',
  724. disabled: true,
  725. rules: [
  726. {
  727. required: false,
  728. message: ' ',
  729. trigger: 'blur'
  730. }
  731. ]
  732. },
  733. // {
  734. // label: '预估运费',
  735. // prop: 'predictOceanFreight',
  736. // type: 'number',
  737. // rules: [
  738. // {
  739. // required: false,
  740. // message: ' ',
  741. // trigger: 'blur'
  742. // }
  743. // ]
  744. // },
  745. {
  746. label: '应付金额',
  747. prop: 'debitAmount',
  748. type: 'number',
  749. disabled: true,
  750. rules: [
  751. {
  752. required: false,
  753. message: ' ',
  754. trigger: 'blur'
  755. }
  756. ]
  757. },
  758. {
  759. label: '已付金额',
  760. prop: 'settlmentAmount',
  761. type: 'number',
  762. disabled: true,
  763. rules: [
  764. {
  765. required: false,
  766. message: ' ',
  767. trigger: 'blur'
  768. }
  769. ]
  770. },{
  771. label: '重量合计',
  772. prop: 'cartonWeight',
  773. disabled: true,
  774. rules: [
  775. {
  776. required: false,
  777. message: ' ',
  778. trigger: 'blur'
  779. }
  780. ]
  781. },{
  782. label: '体积合计',
  783. prop: 'cntrVolumn',
  784. disabled: true,
  785. rules: [
  786. {
  787. required: false,
  788. message: ' ',
  789. trigger: 'blur'
  790. }
  791. ]
  792. },{
  793. label: "备注",
  794. span: 24,
  795. prop: "orderRemark",
  796. type: 'textarea',
  797. mock: {
  798. type: 'county'
  799. }
  800. }
  801. ]
  802. },
  803. paymentOption: [],
  804. maxFeeNum: 0,
  805. maxGoodsNum: 0,
  806. selection: [],
  807. oldForm: {
  808. orderStatus: "录入"
  809. },
  810. oldGoodsList: [],
  811. oldFeesList: [],
  812. oldUploadList: [],
  813. // 弹窗高度
  814. rowHeight: '',
  815. // 查询时loading页面
  816. pageLoading: false,
  817. // 银行账号下拉
  818. bankList: [],
  819. activeName: 'searchList',
  820. // 商品列表数据合计
  821. goodsListShow: [],
  822. // 商品列表暂存
  823. goodsListSave: [],
  824. goodsListTotal: 0,
  825. goodsListSaveTotal: 0,
  826. pageList: {
  827. pageSize: 10,
  828. currentPage: 1,
  829. total: 0
  830. },
  831. itemType: '采购',
  832. packageOptions: [],
  833. switchDialog: false,
  834. // 请核状态禁用
  835. browse: false,
  836. checkDisabled: false,
  837. checkData: {},
  838. checkDialog: false,
  839. checkScheduleDialog: false,
  840. checkId: '',
  841. batchNo:'',
  842. feesOption: [],
  843. applyPaymentList: [],
  844. messageVisble: false,
  845. purchasePriceOption: [],
  846. crudIndex: 0,
  847. }
  848. },
  849. mounted() {
  850. this.$nextTick(() => {
  851. // 监听浏览器高度变化,改变表格高度
  852. window.onresize = () => {
  853. this.rowHeight = (window.innerHeight - 130) + 'px'
  854. }
  855. })
  856. },
  857. filters: {
  858. IntegerFormat(num) {
  859. return IntegerFormat(num);
  860. },
  861. decimalFormat(num) {
  862. return num ? Number(num).toFixed(2) : "0.00";
  863. },
  864. },
  865. //初始化查询
  866. async created() {
  867. this.rowHeight = (window.innerHeight - 130) + 'px'
  868. this.customerContact = customerContact
  869. // this.customerContact = await this.getColumnData(this.getColumnName(18), customerContact);
  870. this.advantageProject = await this.getColumnData(this.getColumnName(19), advantageProject);
  871. this.getWorkDicts("payment_term").then(res => {
  872. this.paymentOption = res.data.data
  873. })
  874. this.getWorkDicts("packageRemarks").then(res => {
  875. this.packageOptions = res.data.data;
  876. });
  877. feeList().then(res => {
  878. this.feesOption = res.data.data.records
  879. })
  880. if (this.detailData.check) {
  881. this.checkDisabled = true
  882. this.batchNo = this.detailData.check.batchNo
  883. }
  884. if (this.detailData.id) {
  885. this.queryData(this.detailData.id)
  886. } else if(this.detailData.copyId) {
  887. this.queryData(this.detailData.copyId, true)
  888. } else {
  889. }
  890. this.customerContact.height = window.innerHeight - 240;
  891. this.crudIndex++;
  892. },
  893. updated() {
  894. this.$nextTick(() => {
  895. this.$refs.crudContact.doLayout();
  896. })
  897. },
  898. watch: {
  899. },
  900. methods: {
  901. // 明细查询
  902. queryData(id, isCopy = false) {
  903. this.pageLoading = true
  904. this.saveLoading = true
  905. detail(id).then(res => {
  906. this.form = res.data.data;
  907. this.browse = this.form.status > 0? true: false
  908. this.contactsData = this.form.orderItemsList? this.form.orderItemsList: []
  909. this.advantageProjectData = this.form.orderFeesList? this.form.orderFeesList: []
  910. this.bankOfDepositData = this.form.orderFilesList? this.form.orderFilesList: []
  911. if (!this.form.orderItemsList) {
  912. this.contactsData = []
  913. } else {
  914. this.contactsData = this.form.orderItemsList
  915. }
  916. // if (!this.form.orderFeesList) {
  917. // this.advantageProjectData = []
  918. // } else {
  919. // this.advantageProjectData = this.form.orderFeesList
  920. // }
  921. // if (!this.form.orderFilesList) {
  922. // this.bankOfDepositData = []
  923. // } else {
  924. // this.bankOfDepositData = this.form.orderFilesList
  925. // }
  926. if (this.form.corpsName) {
  927. this.configuration.dicData = this.form.corpsName
  928. }
  929. let feesData = []
  930. this.advantageProjectData.forEach(item => {
  931. let a = {
  932. cname: item.corpName,
  933. id: item.corpId
  934. }
  935. feesData.push(a)
  936. })
  937. this.configuration.dicData = this.configuration.dicData.concat(feesData)
  938. // 去重
  939. this.removeRepeat()
  940. let goodsData = []
  941. this.form.orderItemsList = this.form.orderItemsList? this.form.orderItemsList: []
  942. this.form.orderItemsList.forEach(item => {
  943. let a = {
  944. cname: item.cname,
  945. }
  946. goodsData.push(a)
  947. })
  948. this.goodsConfiguration.dicData = [].concat(goodsData)
  949. this.removeGoodsRepeat()
  950. delete this.form.orderItemsList
  951. delete this.form.orderFeesList
  952. delete this.form.orderFilesList
  953. // delete this.form.corpsName
  954. // 获取最大值
  955. let num = []
  956. this.advantageProjectData.forEach(item => {
  957. num.push(item.sort)
  958. })
  959. if (num.length == 0) {
  960. this.maxFeeNum = 0;
  961. } else {
  962. this.maxFeeNum = num.reduce((a, b) => {
  963. return b > a? b: a;
  964. })
  965. }
  966. let goodsNum = []
  967. this.contactsData.forEach(item => {
  968. goodsNum.push(item.sort)
  969. })
  970. if (goodsNum.length == 0) {
  971. this.maxGoodsNum = 0;
  972. } else {
  973. this.maxGoodsNum = goodsNum.reduce((a, b) => {
  974. return b > a? b: a;
  975. })
  976. }
  977. this.oldGoodsList = []
  978. this.oldFeesList = []
  979. this.oldUploadList = []
  980. this.oldForm = Object.assign({}, this.form)
  981. this.oldGoodsList = this.deepClone(this.contactsData)
  982. this.oldFeesList = this.deepClone(this.advantageProjectData)
  983. this.oldUploadList = this.deepClone(this.bankOfDepositData)
  984. if (isCopy) {
  985. delete this.form.sysNo;
  986. delete this.form.id
  987. this.form.status = 0
  988. this.browse = false
  989. this.contactsData.forEach(item => {
  990. delete item.id
  991. delete item.pid
  992. delete item.itemId
  993. })
  994. this.advantageProjectData.forEach(item => {
  995. delete item.id
  996. delete item.pid
  997. })
  998. this.bankOfDepositData.forEach(item => {
  999. delete item.id
  1000. delete item.pid
  1001. })
  1002. }
  1003. }).finally(() => {
  1004. this.saveLoading = false
  1005. this.pageLoading = false
  1006. });
  1007. },
  1008. copyOrder() {
  1009. this.queryData(this.form.id, true)
  1010. },
  1011. getGoodsRow(event,row) {
  1012. row.priceCategory = event.goodsTypeName
  1013. row.code = event.code
  1014. row.typeno = event.typeno
  1015. row.itemType = event.typeno
  1016. row.itemId = event.id
  1017. },
  1018. receiveGoodList(data) {
  1019. this.goodsConfiguration.dicData = this.goodsConfiguration.dicData.concat(data)
  1020. this.removeGoodsRepeat()
  1021. },
  1022. getRow(event,row) {
  1023. row.priceCategory = event[0].goodsTypeName
  1024. row.code = event[0].code
  1025. row.typeno = event[0].typeno
  1026. row.itemType = event[0].typeno
  1027. row.itemId = event[0].id
  1028. },
  1029. removeGoodsRepeat() {
  1030. let obj = []
  1031. this.goodsConfiguration.dicData = this.goodsConfiguration.dicData.reduce((current,next) => {
  1032. obj[next.cname] ? '': obj[next.cname] = true && current.push(next)
  1033. return current
  1034. }, [])
  1035. },
  1036. getShipmentC() {
  1037. for (let item in this.selection) {
  1038. if (!this.selection[item].id) {
  1039. return this.$message.error('选中数据有新数据,请先保存')
  1040. }
  1041. }
  1042. if (this.$store.getters.domTakeStatus) {
  1043. this.$alert("收货单存在,请保存发货单再进行操作", "温馨提示", {
  1044. confirmButtonText: "确定",
  1045. type: "warning",
  1046. callback: action => {
  1047. console.log(action);
  1048. }
  1049. });
  1050. } else {
  1051. this.generateShipmentC();
  1052. }
  1053. },
  1054. //生成收货单
  1055. generateShipmentC() {
  1056. let lsit = []
  1057. if (contrastObj(this.form, this.oldForm) ||
  1058. contrastList(this.contactsData, this.oldGoodsList) ||
  1059. contrastList(this.advantageProjectData, this.oldFeesList) ||
  1060. contrastList(this.bankOfDepositData, this.oldUploadList)
  1061. ) {
  1062. this.$confirm("数据发生变化未有提交记录, 是否保存?", "提示", {
  1063. confirmButtonText: "确定",
  1064. cancelButtonText: "取消",
  1065. type: "warning"
  1066. }).then(async () => {
  1067. await this.editCustomer(false, '收货')
  1068. }).catch(() => {
  1069. this.$message({
  1070. type: 'info',
  1071. message: '已取消'
  1072. });
  1073. })
  1074. } else {
  1075. this.selection.forEach(item => {
  1076. lsit.push(item.id)
  1077. })
  1078. let data = {
  1079. id: this.form.id,
  1080. orderItemIds: lsit
  1081. }
  1082. generateShipment(data).then(res => {
  1083. this.$router.$avueRouter.closeTag("/businessManagement/receipt/index");
  1084. this.$router.push({
  1085. path: "/businessManagement/receipt/index",
  1086. query: {form: JSON.stringify(res.data.data)},
  1087. });
  1088. })
  1089. }
  1090. },
  1091. //点击行可编辑
  1092. handleRowClick(row, event, column) {
  1093. },
  1094. //商品编辑
  1095. rowCell(row, index) {
  1096. if (row.$cellEdit) {
  1097. if (Number(row.orderQuantity) < Number(row.actualQuantity)) {
  1098. return this.$message.error('订货数量不能小于发货数量')
  1099. }
  1100. }
  1101. this.$refs.crudContact.rowCell(row, row.$index)
  1102. },
  1103. //费用编辑
  1104. rowCellTwo(row, index) {
  1105. this.$refs.crudProject.rowCell(row, row.$index)
  1106. },
  1107. //商品选中触发
  1108. productSelection(selection) {
  1109. this.selection = selection
  1110. },
  1111. //费用新增触发
  1112. costIncrease() {
  1113. this.dialogCost = !this.dialogCost
  1114. this.choiceData = false
  1115. },
  1116. //商品新增触发
  1117. commoditySelection() {
  1118. this.dialogVisible = !this.dialogVisible
  1119. this.tableData = []
  1120. this.commodityData = false
  1121. this.goodsListSave = [];
  1122. },
  1123. //点击费用明细选择触发
  1124. choice(row) {
  1125. this.dialogCost = !this.dialogCost
  1126. this.choiceData = true
  1127. this.choiceIndex = row.$index
  1128. },
  1129. //点击商品明细选择触发
  1130. commodityChoice(row) {
  1131. this.dialogVisible = !this.dialogVisible
  1132. this.commodityData = true
  1133. this.choiceIndexT = row.$index
  1134. },
  1135. //导入商品触发
  1136. importChoice() {
  1137. if (this.tableData.length === 1) {
  1138. this.contactsData[this.choiceIndexT].cname = this.tableData[0].cname
  1139. this.contactsData[this.choiceIndexT].code = this.tableData[0].code
  1140. this.contactsData[this.choiceIndexT].typeno = this.tableData[0].typeno
  1141. this.contactsData[this.choiceIndexT].itemType = this.tableData[0].typeno
  1142. this.contactsData[this.choiceIndexT].itemId = this.tableData[0].id
  1143. this.contactsData[this.choiceIndexT].priceCategory = this.tableData[0].goodsTypeName
  1144. this.contactsData[this.choiceIndexT].orderQuantity = 0
  1145. this.contactsData[this.choiceIndexT].price = 0
  1146. this.contactsData[this.choiceIndexT].amount = 0
  1147. getPurchasePrice({code: this.contactsData[this.choiceIndexT].code}).then(res => {
  1148. if (res.data.data.length > 0) {
  1149. this.$set(this.contactsData[this.choiceIndexT], 'purchaseAmount', res.data.data[0].purchasePrice)
  1150. } else {
  1151. this.$set(this.contactsData[this.choiceIndexT], 'purchaseAmount', '0')
  1152. }
  1153. })
  1154. selectGoodsNum({
  1155. goodsId: this.tableData[0].id,
  1156. itemType: this.tableData[0].typeno
  1157. }).then(res => {
  1158. this.contactsData[this.choiceIndexT].storageQuantity = res.data.data
  1159. })
  1160. }
  1161. this.dialogVisible = !this.dialogVisible
  1162. this.commodityData = false
  1163. },
  1164. //费用编辑导入触发
  1165. choiceCost() {
  1166. if (this.tableDataCost.length === 1) {
  1167. this.advantageProjectData[this.choiceIndex].feeName = this.tableDataCost[0].cname
  1168. this.advantageProjectData[this.choiceIndex].itemId = this.tableDataCost[0].id
  1169. this.advantageProjectData[this.choiceIndex].code = this.tableDataCost[0].code
  1170. }
  1171. this.dialogCost = !this.dialogCost
  1172. this.choiceData = false
  1173. },
  1174. //费用导入触发
  1175. importCost() {
  1176. // this.advantageProjectForm = this.advantageProjectForm.concat(this.tableDataCost)
  1177. if (this.tableDataCost.length > 0) {
  1178. for (let item in this.tableDataCost) {
  1179. this.tableDataCost[item].itemId = this.tableDataCost[item].id
  1180. this.tableDataCost[item].feeName = this.tableDataCost[item].cname
  1181. this.tableDataCost[item].sort = this.maxFeeNum + 1
  1182. this.maxFeeNum++
  1183. delete this.tableDataCost[item].id
  1184. this.$refs.crudProject.rowCellAdd(this.tableDataCost[item]);
  1185. this.$refs.crudProject.rowCell(this.tableDataCost[item], this.advantageProjectForm.length - 1)
  1186. }
  1187. }
  1188. this.tableDataCost = []
  1189. this.dialogCost = false
  1190. },
  1191. //确认导入触发
  1192. importGoods() {
  1193. if (this.goodsListSave.length > 0) {
  1194. for (let item in this.goodsListSave) {
  1195. getPurchasePrice({code: this.goodsListSave[item].code}).then(res => {
  1196. if (res.data.data.length > 0) {
  1197. this.$set(this.goodsListSave[item], 'purchaseAmount', res.data.data[0].purchasePrice)
  1198. } else {
  1199. this.$set(this.goodsListSave[item], 'purchaseAmount', '0')
  1200. }
  1201. })
  1202. selectGoodsNum({
  1203. goodsId: this.goodsListSave[item].id,
  1204. itemType: this.goodsListSave[item].typeno
  1205. }).then(res => {
  1206. this.$set(this.goodsListSave[item], 'storageQuantity', res.data.data)
  1207. this.goodsListSave[item].itemId = this.goodsListSave[item].id
  1208. this.goodsListSave[item].priceCategory = this.goodsListSave[item].goodsTypeName
  1209. delete this.goodsListSave[item].id
  1210. this.$set(this.goodsListSave[item], 'itemType', this.goodsListSave[item].typeno)
  1211. this.$set(this.goodsListSave[item], 'specificationAndModel', this.goodsListSave[item].typeno)
  1212. this.$set(this.goodsListSave[item], 'priceType', '一般')
  1213. this.$set(this.goodsListSave[item], 'orderQuantity', 0)
  1214. this.$set(this.goodsListSave[item], 'actualQuantity', 0)
  1215. this.goodsListSave[item].price = 0
  1216. this.goodsListSave[item].amount = 0
  1217. this.goodsListSave[item].sort = this.maxGoodsNum + 1
  1218. this.maxGoodsNum++
  1219. this.$refs.crudContact.rowCellAdd(this.goodsListSave[item]);
  1220. // this.$refs.crudContact.rowCell(this.goodsListSave[item], this.goodsListSave.length - 1)
  1221. })
  1222. }
  1223. } else {
  1224. for (let item in this.tableData) {
  1225. getPurchasePrice({code: this.tableData[item].code}).then(res => {
  1226. if (res.data.data.length > 0) {
  1227. this.$set(this.tableData[item], 'purchaseAmount', res.data.data[0].purchasePrice)
  1228. } else {
  1229. this.$set(this.tableData[item], 'purchaseAmount', '0')
  1230. }
  1231. })
  1232. selectGoodsNum({
  1233. goodsId: this.tableData[item].id,
  1234. itemType: this.tableData[item].typeno
  1235. }).then(res => {
  1236. this.$set(this.tableData[item], 'storageQuantity', res.data.data)
  1237. this.tableData[item].itemId = this.tableData[item].id
  1238. this.tableData[item].priceCategory = this.tableData[item].goodsTypeName
  1239. delete this.tableData[item].id
  1240. this.$set(this.tableData[item], 'itemType', this.tableData[item].typeno)
  1241. this.$set(this.tableData[item], 'specificationAndModel', this.tableData[item].typeno)
  1242. this.$set(this.tableData[item], 'priceType', '一般')
  1243. this.$set(this.tableData[item], 'orderQuantity', 0)
  1244. this.$set(this.tableData[item], 'actualQuantity', 0)
  1245. this.tableData[item].price = 0
  1246. this.tableData[item].amount = 0
  1247. this.tableData[item].sort = this.maxGoodsNum + 1
  1248. this.maxGoodsNum++
  1249. this.$refs.crudContact.rowCellAdd(this.tableData[item]);
  1250. // this.$refs.crudContact.rowCell(this.tableData[item], this.tableData.length - 1)
  1251. })
  1252. }
  1253. }
  1254. if (this.tableData.length > 0) {
  1255. }
  1256. this.dialogVisible = false
  1257. },
  1258. closeGoods() {
  1259. this.treeDataGoods = [];
  1260. this.treeDeptId = "";
  1261. this.activeName = "searchList";
  1262. },
  1263. closeFees() {
  1264. this.treeDeptIdCost = "";
  1265. this.treeData = [];
  1266. },
  1267. //选中触发
  1268. selectionChange(list) {
  1269. this.tableData = list
  1270. },
  1271. //费用选中触发
  1272. selectionChangeCost(list) {
  1273. this.tableDataCost = list
  1274. },
  1275. //导入页左商品类型查询
  1276. nodeClick(data) {
  1277. this.treeDeptId = data.id;
  1278. this.page.currentPage = 1;
  1279. this.onLoad(this.page);
  1280. },
  1281. //导入页左费用类型查询
  1282. nodeClickCost(data) {
  1283. this.treeDeptIdCost = data.id;
  1284. this.pageCost.currentPage = 1;
  1285. this.onLoadCost(this.pageCost);
  1286. },
  1287. //刷新触发
  1288. refreshChange() {
  1289. this.treeDeptId = '';
  1290. this.page.currentPage = 1;
  1291. this.onLoad(this.page);
  1292. },
  1293. //费用刷新触发
  1294. refreshChangeCost() {
  1295. this.treeDeptIdCost = '';
  1296. this.pageCost.currentPage = 1;
  1297. this.onLoadCost(this.pageCost);
  1298. },
  1299. //新增商品信息保存触发
  1300. rowSave(row, done, loading) {
  1301. // this.contactsData.push(row)
  1302. done()
  1303. },
  1304. //修改商品信息触发
  1305. rowUpdate(row, index, done, loading) {
  1306. done(row);
  1307. },
  1308. //删除商品信息触发
  1309. rowDel(row, index, donerowDel) {
  1310. this.$confirm("确定将选择数据删除?", {
  1311. confirmButtonText: "确定",
  1312. cancelButtonText: "取消",
  1313. type: "warning"
  1314. }).then(() => {
  1315. //商品判断是否需要调用删除接口
  1316. if (row.id) {
  1317. corpsattn(row.id).then(res => {
  1318. this.$message({
  1319. type: "success",
  1320. message: "操作成功!"
  1321. });
  1322. this.contactsData.splice(row.$index, 1);
  1323. })
  1324. } else {
  1325. this.$message({
  1326. type: "success",
  1327. message: "操作成功!"
  1328. });
  1329. this.contactsData.splice(row.$index, 1);
  1330. }
  1331. })
  1332. },
  1333. //新增费用明细保存触发
  1334. rowSaveProject(row, done, loading) {
  1335. // this.advantageProjectData.push(row)
  1336. done()
  1337. },
  1338. //修改费用明细触发
  1339. rowUpdateProject(row, index, done, loading) {
  1340. done(row);
  1341. },
  1342. goodsSearch(params, done) {
  1343. this.treeDeptId = '';
  1344. this.onLoad(this.page, params);
  1345. done()
  1346. },
  1347. //商品列表查询
  1348. onLoad(page, params = {}) {
  1349. this.loading = true;
  1350. getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => {
  1351. const data = res.data.data;
  1352. this.page.total = data.total;
  1353. this.data = data.records;
  1354. this.goodsListShow = data.records;
  1355. this.loading = false;
  1356. });
  1357. },
  1358. // 费用查询按钮
  1359. feesSearch(params, done) {
  1360. this.treeDeptIdCost = '';
  1361. this.onLoadCost(this.pageCost, params)
  1362. done()
  1363. },
  1364. //费用查询
  1365. onLoadCost(page, params = {}) {
  1366. this.loadingCost = true;
  1367. let queryParams = Object.assign({}, params, {
  1368. pageSize: page.pageSize,
  1369. pageNum: page.currentPage,
  1370. parentId: 0,
  1371. feesTypeId: this.treeDeptIdCost
  1372. })
  1373. customerList(queryParams).then(res => {
  1374. const data = res.data.data;
  1375. this.pageCost.total = data.total;
  1376. this.dataCost = data.records;
  1377. this.loadingCost = false;
  1378. });
  1379. },
  1380. //删除费用明细触发
  1381. rowDelProject(row, index, donerowDel) {
  1382. this.$confirm("确定将选择数据删除?", {
  1383. confirmButtonText: "确定",
  1384. cancelButtonText: "取消",
  1385. type: "warning"
  1386. }).then(() => {
  1387. //费用判断是否需要调用删除接口
  1388. if (row.id) {
  1389. corpsitem(row.id).then(res => {
  1390. this.$message({
  1391. type: "success",
  1392. message: "操作成功!"
  1393. });
  1394. this.advantageProjectData.splice(row.$index, 1);
  1395. })
  1396. } else {
  1397. this.$message({
  1398. type: "success",
  1399. message: "操作成功!"
  1400. });
  1401. this.advantageProjectData.splice(row.$index, 1);
  1402. }
  1403. })
  1404. },
  1405. // 计算费用
  1406. changeContractAmt(row) {
  1407. getPurchasePrice({code: row.code}).then(res => {
  1408. this.purchasePriceOption = res.data.data
  1409. })
  1410. let orderQuantity = 0;
  1411. let purchaseAmount = 0;
  1412. if (row.purchaseAmount) {
  1413. purchaseAmount = row.purchaseAmount;
  1414. }
  1415. if (row.orderQuantity) {
  1416. orderQuantity = row.orderQuantity;
  1417. }
  1418. this.$set(row, "amount", Number(orderQuantity) * Number(purchaseAmount)).toFixed(2);
  1419. },
  1420. // 去重
  1421. removeRepeat() {
  1422. let obj = []
  1423. this.configuration.dicData = this.configuration.dicData.reduce((current,next) => {
  1424. obj[next.id] ? '': obj[next.id] = true && current.push(next)
  1425. return current
  1426. }, [])
  1427. },
  1428. receiveList(data){
  1429. this.configuration.dicData = this.configuration.dicData.concat(data)
  1430. this.removeRepeat()
  1431. },
  1432. //修改提交触发
  1433. editCustomer(isBack = false, type) {
  1434. this.$refs["form"].validate((valid) => {
  1435. if (valid) {
  1436. for (let item in this.contactsData) {
  1437. if (Number(this.contactsData[item].orderQuantity) < Number(this.contactsData[item].actualQuantity)) {
  1438. return this.$message.error('商品信息第'+ (parseInt(item) + 1) + '行订货数量不能小于发货数量')
  1439. }
  1440. }
  1441. this.form.orderAmount = 0;
  1442. this.$set(this.form, 'debitAmount', 0)
  1443. this.contactsData.forEach(item => {
  1444. this.form.orderAmount = Number(this.form.orderAmount) + Number(item.amount)
  1445. this.form.debitAmount = Number(this.form.debitAmount) + Number(item.amount)
  1446. })
  1447. //商品信息
  1448. this.form.itemsVOList = this.contactsData
  1449. // this.form.orderFeesList = this.advantageProjectData
  1450. // this.form.orderFeesList = this.$refs.feeInfo.submitData()
  1451. this.form.orderFilesList = this.bankOfDepositData
  1452. if (typeof this.form.corpsTypeId == 'object') {
  1453. this.form.corpsTypeId = this.form.corpsTypeId.join(",")
  1454. }
  1455. this.saveLoading = true
  1456. this.form.billType = 'CG'
  1457. this.$set(this.form, 'tradeType', 'GN')
  1458. // 如果有id解锁,没有跳过
  1459. // this.form.id && this.unLock({moduleName: 'cg',tableName: 'business_order', billId: this.form.id})
  1460. typeSave(this.form).then(res => {
  1461. this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
  1462. // this.$set(this.detailData, 'seeDisabled', true);
  1463. if (isBack) {
  1464. //成功关闭此页面回到列表页
  1465. this.$emit("goBack");
  1466. this.leaveDetailsKey(this.$route.name)
  1467. } else {
  1468. this.queryData(res.data.data)
  1469. }
  1470. if (type == '收货') {
  1471. let lsit = []
  1472. this.selection.forEach(item => {
  1473. lsit.push(item.id)
  1474. })
  1475. let data = {
  1476. id: this.form.id,
  1477. orderItemIds: lsit
  1478. }
  1479. generateShipment(data).then(res => {
  1480. this.$router.$avueRouter.closeTag("/businessManagement/receipt/index");
  1481. this.$router.push({
  1482. path: "/businessManagement/receipt/index",
  1483. query: {form: JSON.stringify(res.data.data)},
  1484. });
  1485. })
  1486. }
  1487. }).catch(() => {
  1488. this.pageLoading = false
  1489. this.saveLoading = false
  1490. })
  1491. } else {
  1492. return false;
  1493. }
  1494. });
  1495. },
  1496. beforeBillData(bool,type){
  1497. this.applyPaymentList = [];
  1498. let arr = [];
  1499. this.billType = type
  1500. this.financeData = {
  1501. url:"/financialManagement/paymentRequest/index",
  1502. pageStatus:"this.$store.getters.pqStatus",
  1503. pageLabel:"付费申请",
  1504. checkType: 'ffsq'
  1505. }
  1506. let amount = 0;
  1507. let quantity = 0;
  1508. console.log(this.contactsData)
  1509. this.contactsData.map(e => {
  1510. amount += Number(e.amount)
  1511. quantity += Number(e.orderQuantity)
  1512. })
  1513. const price = quantity === 0? 0: Number(amount) / Number(quantity)
  1514. this.billData = {
  1515. belongCompany: this.form.belongCompany,
  1516. srcOrderno:this.form.orderNo,
  1517. itemType:"采购",
  1518. corpsName:this.form.corpsName,
  1519. corpId:this.form.corpId,
  1520. srcParentId: this.form.id,
  1521. currency: 'CNY',
  1522. exchangeRate: '1',
  1523. taxRate: '0',
  1524. accDate: this.form.businesDate,
  1525. srcType: 1,
  1526. tradeType: 'GN',
  1527. optionType: 'GN',
  1528. costType: this.feesOption.find(e => e.cname == '货款')? this.feesOption.find(e => e.cname == '货款').id: null,
  1529. amount,
  1530. quantity,
  1531. price,
  1532. unit: '条',
  1533. remarks: this.form.orderRemark,
  1534. }
  1535. // this.contactsData.map(e => {
  1536. // if (e.submitPay != 1) {
  1537. // const form = {
  1538. // belongCompany: this.form.belongCompany,
  1539. // srcOrderno:this.form.orderNo,
  1540. // itemType:"采购",
  1541. // corpsName:this.form.corpsName,
  1542. // corpId:this.form.corpId,
  1543. // srcParentId: this.form.id,
  1544. // currency: 'CNY',
  1545. // exchangeRate: '1',
  1546. // taxRate: '0',
  1547. // accDate: this.form.businesDate,
  1548. // srcType: 1, // 1.采购or销售主表货款申请 2. 采购or销售-费用明细申请 3.收发货-费用明细
  1549. // tradeType: 'GN',
  1550. // optionType: 'GN',
  1551. // amount: e.amount,
  1552. // goodName: e.cname,
  1553. // price: e.purchaseAmount,
  1554. // unit: e.unit,
  1555. // quantity: e.orderQuantity,
  1556. // srcFeesId: e.id,
  1557. // costType: this.feesOption.find(e => e.cname == '货款')? this.feesOption.find(e => e.cname == '货款').id: null,
  1558. // }
  1559. // arr.push(form)
  1560. // }
  1561. // })
  1562. // let getFeeList = this.$refs.feeInfo.submitData().filter(item => item.feesType == 2 && item.submitPay != 1)
  1563. // getFeeList.forEach(item => {
  1564. // let form = {
  1565. // srcOrderno:this.form.orderNo,
  1566. // itemType:"采购",
  1567. // corpsName:item.corpName,
  1568. // corpId: item.corpId,
  1569. // srcParentId: this.form.id,
  1570. // currency: 'CNY',
  1571. // exchangeRate: '1',
  1572. // taxRate: '0',
  1573. // accDate: this.form.businesDate,
  1574. // srcType: 2,
  1575. // tradeType: 'GN',
  1576. // optionType: 'GN',
  1577. // chargeMember: this.form.chargeMember,
  1578. // parentId: this.form.id,
  1579. // amount: item.amount,
  1580. // costType: item.itemId,
  1581. // srcFeesId: item.id,
  1582. // quantity: item.quantity, // 数量
  1583. // price: item.price,
  1584. // }
  1585. // arr.push(form)
  1586. // })
  1587. // this.applyPaymentList = [...arr]
  1588. if(bool){ //申请货款
  1589. // this.billData.srcId = -1
  1590. }
  1591. },
  1592. // 查看申请记录
  1593. openApplicationDialog(){
  1594. this.applicationDialog = true
  1595. },
  1596. //关闭申记录
  1597. choceApplication(){
  1598. this.applicationDialog = false
  1599. },
  1600. //申请货款
  1601. applyPayment(type){
  1602. this.beforeBillData(true,type);
  1603. this.financialAccountDialog = true;
  1604. },
  1605. //关闭账单
  1606. choceFun(){
  1607. this.financialAccountDialog = false
  1608. },
  1609. feeSubmit() {
  1610. this.queryData(this.form.id);
  1611. },
  1612. //返回列表
  1613. backToList() {
  1614. if (contrastObj(this.form, this.oldForm) ||
  1615. contrastList(this.contactsData, this.oldGoodsList) ||
  1616. contrastList(this.advantageProjectData, this.oldFeesList) ||
  1617. contrastList(this.bankOfDepositData, this.oldUploadList)
  1618. ) {
  1619. this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
  1620. confirmButtonText: "确定",
  1621. cancelButtonText: "取消",
  1622. type: "warning"
  1623. }).then(() => {
  1624. this.editCustomer(true)
  1625. }).catch(() => {
  1626. !this.detailData.seeDisabled && this.form.id && this.unLock({moduleName: 'cg',tableName: 'business_order', billId: this.form.id})
  1627. this.$emit("goBack");
  1628. this.leaveDetailsKey(this.$route.name)
  1629. })
  1630. } else {
  1631. !this.detailData.seeDisabled && this.form.id && this.unLock({moduleName: 'cg',tableName: 'business_order', billId: this.form.id})
  1632. this.$emit("goBack");
  1633. this.leaveDetailsKey(this.$route.name)
  1634. }
  1635. },
  1636. // 保存列设置
  1637. async saveColumn(name) {
  1638. if (name == 'goods') {
  1639. const inSave = await this.saveColumnData(
  1640. this.getColumnName(18),
  1641. this.customerContact
  1642. );
  1643. if (inSave) {
  1644. this.$message.success("保存成功");
  1645. //关闭窗口
  1646. this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
  1647. this.$nextTick(() => {
  1648. this.$refs.crudContact.doLayout()
  1649. })
  1650. }
  1651. } else if (name === 'fees') {
  1652. const inSave = await this.saveColumnData(
  1653. this.getColumnName(19),
  1654. this.advantageProject
  1655. );
  1656. if (inSave) {
  1657. this.$message.success("保存成功");
  1658. //关闭窗口
  1659. this.$refs.crudProject.$refs.dialogColumn.columnBox = false;
  1660. }
  1661. }
  1662. },
  1663. async resetColumn() {
  1664. this.customerContact = customerContact
  1665. const inSave = await this.delColumnData(
  1666. this.getColumnName(18),
  1667. customerContact
  1668. );
  1669. if (inSave) {
  1670. this.$nextTick(() => {
  1671. this.$refs.crudContact.doLayout()
  1672. })
  1673. this.$message.success("重置成功");
  1674. //关闭窗口
  1675. this.$refs.crudContact.$refs.dialogColumn.columnBox = false;
  1676. }
  1677. },
  1678. returnBack(row) {
  1679. if (row.belongtocompany) {
  1680. // this.form.belongToCorpId = row.belongtocompany
  1681. }
  1682. this.$set(this.form, 'paymentType', row.paymentType)
  1683. this.$set(this.form, 'packageRemarks', row.packageRemarks)
  1684. getlistBankBy(row.id).then(res =>{
  1685. this.$set(this.form, 'banks', null)
  1686. this.$set(this.form, 'banksAccountName', null)
  1687. this.$set(this.form, 'accountBank', null)
  1688. this.bankList = res.data
  1689. if (this.bankList.length > 0) {
  1690. this.form.banks = this.bankList[0].accountNo
  1691. this.form.banksAccountName = this.bankList[0].accountName
  1692. this.form.accountBank = this.bankList[0].accountBank
  1693. }
  1694. })
  1695. },
  1696. // 银行账号变化
  1697. banksChange(val) {
  1698. let isTrue = false
  1699. this.bankList.forEach(item => {
  1700. if (val == item.accountNo) {
  1701. this.$set(this.form, 'banksAccountName', item.accountName)
  1702. this.$set(this.form, 'accountBank', item.accountBank)
  1703. isTrue = true
  1704. }
  1705. })
  1706. if (!isTrue) {
  1707. this.$set(this.form, 'banksAccountName', null)
  1708. this.$set(this.form, 'accountBank', null)
  1709. }
  1710. },
  1711. // 标签页切换
  1712. tabHandle(data) {
  1713. if (data.name == 'searchList') {
  1714. this.goodsListShow = this.data;
  1715. this.page.total = this.pageList.total
  1716. } else if (data.name == 'importStaging') {
  1717. this.goodsListShow = this.goodsListSave;
  1718. this.page.total = 0
  1719. }
  1720. },
  1721. removeStagList(row, index) {
  1722. this.goodsListSave.splice(row.$index, 1)
  1723. },
  1724. importStagList(row, index) {
  1725. this.goodsListSave.push(row);
  1726. },
  1727. beforeFinance(feesData,callback) {
  1728. this.advantageProjectData = feesData;
  1729. let params = {}
  1730. params.valid = true
  1731. params.parentId = this.form.id
  1732. params.srcOrderno = this.form.orderNo
  1733. callback(params)
  1734. },
  1735. // 报表
  1736. openReport() {
  1737. this.switchDialog =! this.switchDialog;
  1738. },
  1739. onClose(val) {
  1740. this.switchDialog = val;
  1741. },
  1742. //请核
  1743. pleaseCheck() {
  1744. // this.verification()
  1745. if (this.verification()) {
  1746. this.$confirm("您确定提交此次申请吗?", {
  1747. confirmButtonText: "确定",
  1748. cancelButtonText: "取消",
  1749. type: "warning"
  1750. }).then(() => {
  1751. const data = {
  1752. id : this.form.id,
  1753. checkType: 'cgqh',
  1754. url: '/businessManagement/purchaseOrder/index',
  1755. pageStatus:"this.$store.getters.domPurStatus",
  1756. pageLabel:"采购订单(N)",
  1757. checkFlag: 1,
  1758. }
  1759. this.pageLoading = true
  1760. this.saveLoading = true
  1761. pleaseCheck(data).then(res => {
  1762. this.$message.success('请核成功')
  1763. // this.pageLoading = false
  1764. this.saveActives = ''
  1765. this.queryData(this.form.id)
  1766. }).finally(() => {
  1767. this.pageLoading = false
  1768. this.saveLoading = false
  1769. })
  1770. })
  1771. } else {
  1772. }
  1773. },
  1774. verification() {
  1775. let getFeeList = this.$refs.feeInfo.submitData()
  1776. if (contrastObj(this.form, this.oldForm) ||
  1777. contrastList(this.contactsData, this.oldGoodsList) ||
  1778. // contrastList(getFeeList, this.oldFeesList) ||
  1779. contrastList(this.bankOfDepositData, this.oldUploadList)
  1780. ) {
  1781. this.$confirm("数据发生变化未有提交记录, 是否提交?", "提示", {
  1782. confirmButtonText: "确定",
  1783. cancelButtonText: "取消",
  1784. type: "warning"
  1785. }).then(() => {
  1786. this.editCustomer(false)
  1787. }).catch(() => {
  1788. return false; //取消改动数据
  1789. })
  1790. } else {
  1791. return true; //没有动过数据
  1792. }
  1793. },
  1794. //打开审核
  1795. openCheckDialog(){
  1796. this.checkData = this.detailData.check
  1797. this.checkDialog = true;
  1798. },
  1799. //关闭审核
  1800. choceCheckFun(){
  1801. this.checkDialog = false;
  1802. },
  1803. choceScheduleFun(){
  1804. this.checkScheduleDialog = false
  1805. },
  1806. editHandle() {
  1807. const data = {
  1808. moduleName: 'cg',
  1809. tableName: 'business_order',
  1810. billId: this.form.id,
  1811. no: localStorage.getItem('browserID'),
  1812. billNo: this.form.orderNo
  1813. }
  1814. this.saveLoading = true
  1815. this.checkLock(data).then(res => {
  1816. if (res.data.code == 200) {
  1817. this.onLock(data).then(response => {
  1818. this.queryData(this.form.id)
  1819. })
  1820. this.inDetailsKey(this.$route.name, {
  1821. moduleName: 'cg',
  1822. tableName: 'business_order',
  1823. billId: this.form.id,
  1824. })
  1825. this.detailData.seeDisabled = false;
  1826. }
  1827. }).catch(error => {
  1828. }).finally(() => {
  1829. this.saveLoading = false
  1830. })
  1831. },
  1832. getGSName(row) {
  1833. this.form.belongCompany = row.cname
  1834. },
  1835. // 发送消息
  1836. postMessage() {
  1837. this.messageVisble = true
  1838. this.$nextTick(() => {
  1839. this.$refs.messagePost.init()
  1840. })
  1841. },
  1842. closeDialog() {
  1843. this.messageVisble = false
  1844. },
  1845. }
  1846. }
  1847. </script>
  1848. <style lang="scss" scoped>
  1849. .back-icon {
  1850. line-height: 64px;
  1851. font-size: 20px;
  1852. margin-right: 8px;
  1853. }
  1854. //.add-customer-btn {
  1855. // position: fixed;
  1856. // right: 36px;
  1857. // top: 115px;
  1858. //}
  1859. ::v-deep .el-form-item {
  1860. margin-bottom: 0;
  1861. }
  1862. .el-dialogDeep {
  1863. ::v-deep .el-dialog {
  1864. margin: 1vh auto 0 !important;
  1865. padding-bottom: 10px !important;
  1866. .el-dialog__body, .el-dialog__footer {
  1867. padding-bottom: 0 !important;
  1868. padding-top: 0 !important;
  1869. }
  1870. }
  1871. }
  1872. .print-div {
  1873. color: #000;
  1874. }
  1875. .print_table {
  1876. table {
  1877. border-right: 1px solid #000;
  1878. border-bottom: 1px solid #000;
  1879. font-size: 12px;
  1880. margin-bottom: 5px;
  1881. }
  1882. table td {
  1883. border-left: 1px solid #000;
  1884. border-top: 1px solid #000;
  1885. vertical-align: middle;
  1886. padding: 2px;
  1887. text-align: center;
  1888. }
  1889. }
  1890. .table {
  1891. border-collapse: collapse;
  1892. border-spacing: 0;
  1893. background-color: transparent;
  1894. display: table;
  1895. width: 99%;
  1896. max-width: 100%;
  1897. margin: 0 auto;
  1898. }
  1899. .table td {
  1900. text-align: left;
  1901. vertical-align: middle;
  1902. font-size: 14px;
  1903. color: #000000;
  1904. padding: 10.5px 0 10.5px 30px;
  1905. //border: 1px solid #000;
  1906. }
  1907. ::v-deep .el-form-item {
  1908. margin-bottom: 0;
  1909. }
  1910. ::v-deep .el-form-item__content{
  1911. line-height: 32px;
  1912. }
  1913. </style>