detailsPage.vue 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335
  1. <template>
  2. <div>
  3. <div class="customer-head">
  4. <div class="customer-back">
  5. <el-button type="danger" style="border: none;background: none;color: red" icon="el-icon-arrow-left"
  6. @click="backToList(0)">返回列表
  7. </el-button>
  8. <el-button v-if="detailData.id" type="danger" style="border: none;background: none;color: red"
  9. icon="el-icon-arrow-left"
  10. @click="backToList(1)">返回审核列表
  11. </el-button>
  12. </div>
  13. <div class="add-customer-btn">
  14. <el-button class="el-button--small-yh" style="margin-right: 10px" type="primary" size="small"
  15. :disabled="form.status>0"
  16. @click="confirmEdit" v-if="optionForm.disabled === true">编辑
  17. </el-button>
  18. <el-dropdown style="margin-right: 10px">
  19. <el-button type="primary" size="small">
  20. 审核处理<i class="el-icon-arrow-down el-icon--right"></i>
  21. </el-button>
  22. <el-dropdown-menu slot="dropdown">
  23. <el-dropdown-item @click.native="pleaseCheck" :disabled="!(form.status === 0 || form.status === 4)">请核数据</el-dropdown-item>
  24. <el-dropdown-item @click.native="checkScheduleDialog = true,checkId = form.id">审核进度</el-dropdown-item>
  25. <el-dropdown-item @click.native="repealCancel" :disabled="!(form.status === 1 || form.status === 5)"
  26. v-if="!detailData.id">撤销请核
  27. </el-dropdown-item>
  28. <!-- <el-dropdown-item @click.native="changeApproveOpen">特殊审批</el-dropdown-item>-->
  29. </el-dropdown-menu>
  30. </el-dropdown>
  31. <el-button class="el-button--small-yh" type="primary" size="small" :disabled="form.status>0"
  32. @click="editCustomer">
  33. 保存数据
  34. </el-button>
  35. </div>
  36. </div>
  37. <trade-card title="基础资料" style="margin-top: 50px">
  38. <avue-form :option="optionForm" v-model="form" ref="form">
  39. <!-- <template slot="purchaseCompanyId" slot-scope="scope">-->
  40. <!-- <crop-select v-model="form.purchaseCompanyId"-->
  41. <!-- @getCorpData="(row)=>{getGSData(row,['form','purchaseCompanyName'])}" :disabled="scope.disabled"-->
  42. <!-- corpType="KH"/>-->
  43. <!-- </template>-->
  44. <template slot="domesticNo" slot-scope="scope">
  45. <crop-select v-model="form.domesticNo"
  46. label="code"
  47. :disabled="scope.disabled"
  48. @getCorpData="(row)=>{getGSData(row,['form','domesticName','domesticCustomsNo'])}"
  49. corpType="KH"/>
  50. </template>
  51. <template slot="abroadNo" slot-scope="scope">
  52. <crop-select v-model="form.abroadNo"
  53. label="code"
  54. :disabled="scope.disabled"
  55. @getCorpData="(row)=>{getGSData(row,['form','abroadName','abroadCustomsNo'])}"
  56. corpType="KH"/>
  57. </template>
  58. <template slot="consumptionUnitNo" slot-scope="scope">
  59. <crop-select v-model="form.consumptionUnitNo"
  60. label="code"
  61. :disabled="scope.disabled"
  62. @getCorpData="(row)=>{getGSData(row,['form','consumptionUnitName','consumptionUnitCustomsNo'])}"
  63. corpType="KH"/>
  64. </template>
  65. <template slot="applicantNo" slot-scope="scope">
  66. <crop-select v-model="form.applicantNo"
  67. label="code"
  68. :disabled="scope.disabled"
  69. @getCorpData="(row)=>{getGSData(row,['form','applicantName','applicantCustomsNo'])}"
  70. corpType="KH"/>
  71. </template>
  72. <template slot="countryOriginId" slot-scope="scope">
  73. <port-info v-model="form.countryOriginId" type="id" @balabalaTow="(row)=>{balabala(row,['form','countryOriginName'])}" :search="{typeName: '国家'}" :disabled="scope.disabled"/>
  74. </template>
  75. <template slot="tradeCountryId" slot-scope="scope">
  76. <port-info v-model="form.tradeCountryId" type="id" @balabalaTow="(row)=>{balabala(row,['form','tradeCountryName'])}" :search="{typeName: '国家'}" :disabled="scope.disabled"/>
  77. </template>
  78. <template slot="stopOverHarborId" slot-scope="scope">
  79. <port-info v-model="form.stopOverHarborId" type="id" @balabalaTow="(row)=>{balabala(row,['form','stopOverHarborName'])}" :search="{typeName: '港口'}" :disabled="scope.disabled"/>
  80. </template>
  81. <template slot="portDepartureId" slot-scope="scope">
  82. <port-info v-model="form.portDepartureId" type="id" @balabalaTow="(row)=>{balabala(row,['form','portDepartureName'])}" :search="{typeName: '港口'}" :disabled="scope.disabled"/>
  83. </template>
  84. <template slot="portEntryId" slot-scope="scope">
  85. <port-info v-model="form.portEntryId" type="id" @balabalaTow="(row)=>{balabala(row,['form','portEntryName'])}" :search="{typeName: '港口'}" :disabled="scope.disabled"/>
  86. </template>
  87. </avue-form>
  88. </trade-card>
  89. <trade-card title="商品信息">
  90. <avue-crud
  91. :option="option"
  92. :data="dataList"
  93. v-model="formTwo"
  94. ref="crud"
  95. :key="key"
  96. :before-open="beforeOpen"
  97. @row-save="rowSave"
  98. @row-update="rowUpdate"
  99. @resetColumn="resetColumnTwo('crud','option','optionBack',246.1)"
  100. @saveColumn="saveColumnTwo('crud','option','optionBack',246.1)">
  101. <template slot-scope="{type,size,row,index,disabled}" slot="menu">
  102. <el-button icon="el-icon-edit" :size="size" :disabled="disabled" :type="type"
  103. @click="$refs.crud.rowEdit(row,index)">编辑
  104. </el-button>
  105. <el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type"
  106. @click="rowDel(row,index,'SP')">删除
  107. </el-button>
  108. </template>
  109. <!-- <template slot="boxMakingCompanyForm" slot-scope="scope">-->
  110. <!-- <crop-select v-model="formTwo.boxMakingCompanyId" :disabled="scope.disabled" :refresh="false"-->
  111. <!-- @getCorpData="(row)=>{getGSData(row,['formTwo','boxMakingCompany'])}" corpType="GS"/>-->
  112. <!-- </template>-->
  113. <template slot="originatedCountriesIdForm" slot-scope="scope">
  114. <port-info v-model="formTwo.originatedCountriesId" type="id" @balabalaTow="(row)=>{balabala(row,['formTwo','originatedCountriesName'])}" :search="{typeName: '国家'}" :disabled="scope.disabled"/>
  115. </template>
  116. <template slot="finalDestinationCountryIdForm" slot-scope="scope">
  117. <port-info v-model="formTwo.finalDestinationCountryId" type="id" @balabalaTow="(row)=>{balabala(row,['formTwo','finalDestinationCountryName'])}" :search="{typeName: '国家'}" :disabled="scope.disabled"/>
  118. </template>
  119. </avue-crud>
  120. </trade-card>
  121. <trade-card title="集装箱">
  122. <avue-crud
  123. :option="optionTwo"
  124. :data="containerList"
  125. v-model="formTwoTwo"
  126. ref="crudTwo"
  127. :key="key"
  128. :before-open="beforeOpen"
  129. @row-save="rowSave"
  130. @row-update="rowUpdate"
  131. @resetColumn="resetColumnTwo('crudTwo','optionTwo','optionTwoBack',246.2)"
  132. @saveColumn="saveColumnTwo('crudTwo','optionTwo','optionTwoBack',246.2)">
  133. <template slot-scope="{type,size,row,index,disabled}" slot="menu">
  134. <el-button icon="el-icon-edit" :size="size" :disabled="disabled" :type="type"
  135. @click="$refs.crudTwo.rowEdit(row,index)">编辑
  136. </el-button>
  137. <el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type"
  138. @click="rowDel(row,index,'JZX')">删除
  139. </el-button>
  140. </template>
  141. </avue-crud>
  142. </trade-card>
  143. <trade-card title="单证">
  144. <avue-crud
  145. :option="optionThree"
  146. :data="documentsList"
  147. v-model="formTwoThree"
  148. ref="crudThree"
  149. :key="key"
  150. :before-open="beforeOpen"
  151. @row-save="rowSave"
  152. @row-update="rowUpdate"
  153. @resetColumn="resetColumnTwo('crudThree','optionThree','optionThreeBack',246.21)"
  154. @saveColumn="saveColumnTwo('crudThree','optionThree','optionThreeBack',246.21)">
  155. <template slot-scope="{type,size,row,index,disabled}" slot="menu">
  156. <el-button icon="el-icon-edit" :size="size" :disabled="disabled" :type="type"
  157. @click="$refs.crudThree.rowEdit(row,index)">编辑
  158. </el-button>
  159. <el-button icon="el-icon-delete" :size="size" :disabled="disabled" :type="type"
  160. @click="rowDel(row,index,'DZ')">删除
  161. </el-button>
  162. </template>
  163. </avue-crud>
  164. </trade-card>
  165. <!--费用信息组件-->
  166. <box-cost v-model="dataListTwo" activeName="second" ref="first" type="BG" @resetTrigger="resetTrigger" url="/api/blade-box-tube/declareCustomsFees/remove"></box-cost>
  167. <trade-card title="附件明细">
  168. <c-upload
  169. basic
  170. :data="tradingBoxFilesList"
  171. :disabled="disabled"
  172. deleteUrl="/api/blade-box-tube/declareCustomsFiles/remove"
  173. :enumerationValue="246.3"
  174. display
  175. />
  176. </trade-card>
  177. <el-dialog
  178. append-to-body
  179. title="审批进度"
  180. class="el-dialogDeep"
  181. :visible.sync="checkScheduleDialog"
  182. width="40%"
  183. :close-on-click-modal="false"
  184. :destroy-on-close="true"
  185. :close-on-press-escape="false"
  186. v-dialog-drag
  187. >
  188. <check-schedule
  189. :checkId="checkId"
  190. :batchNo="batchNo"
  191. @choceScheduleFun="choceScheduleFun"
  192. ></check-schedule>
  193. </el-dialog>
  194. </div>
  195. </template>
  196. <script>
  197. import {
  198. detail,
  199. submit,
  200. tradingBoxFiles,
  201. selectArchivesList,
  202. tradingBoxItem,
  203. tradingBoxFees,
  204. containerItem,
  205. documentsItem,
  206. pleaseCheck,
  207. repealCancel
  208. } from "@/api/importTrade/importDeclaration.js";
  209. import checkSchedule from "@/components/check/checkSchedule";
  210. import {selectByName} from "@/api/boxManagement";
  211. export default {
  212. name: "detailsPage",
  213. props: {
  214. onLoad: Object,
  215. detailData: Object
  216. },
  217. components: {checkSchedule},
  218. data() {
  219. return {
  220. key: 0,
  221. formTwoTwo:{},
  222. formTwoThree:{},
  223. containerList:[],
  224. documentsList:[],
  225. checkScheduleDialog: false,
  226. checkId: '',
  227. batchNo: '',
  228. breakConfiguration: {
  229. multipleChoices: false,
  230. multiple: false,
  231. disabled: false,
  232. searchShow: true,
  233. collapseTags: false,
  234. clearable: true,
  235. placeholder: "请点击右边按钮选择",
  236. dicData: []
  237. },
  238. form: {},
  239. formTwo: {},
  240. optionForm: {
  241. menuBtn: false,
  242. span: 6,
  243. column: [{
  244. label: '申报地海关',
  245. prop: 'customsDeclarationPlace',
  246. filterable: true,
  247. type: 'select',
  248. dicUrl: "/api/blade-system/dict-biz/dictionary?code=customs",
  249. props: {
  250. label: "dictValue",
  251. value: "dictValue"
  252. }
  253. }, {
  254. label: '申报状态',
  255. prop: 'declareStatus',
  256. filterable: true,
  257. type: 'select',
  258. dicUrl: "/api/blade-system/dict-biz/dictionary?code=declare_status",
  259. props: {
  260. label: "dictValue",
  261. value: "dictValue"
  262. }
  263. }, {
  264. label: '统一编号',
  265. prop: 'unifiedNumbering'
  266. }, {
  267. label: '预录入编号',
  268. prop: 'preEntryNo'
  269. }, {
  270. label: '海关编号',
  271. prop: 'customsNo'
  272. }, {
  273. label: '出境关别',
  274. prop: 'exitCustoms',
  275. filterable: true,
  276. type: 'select',
  277. dicUrl: "/api/blade-system/dict-biz/dictionary?code=customs",
  278. props: {
  279. label: "dictValue",
  280. value: "dictValue"
  281. }
  282. }, {
  283. label: '已实施防御性防疫',
  284. prop: 'whetherEpidemicPrevention',
  285. labelWidth:115,
  286. overHidden: true,
  287. filterable: true,
  288. type: 'select',
  289. dicData:[{
  290. label:'是',
  291. value:1
  292. },{
  293. label:'否',
  294. value:0
  295. }]
  296. }, {
  297. label: '备案号',
  298. prop: 'filingNo'
  299. }, {
  300. label: '合同协议号',
  301. prop: 'contractAgreementNo'
  302. }, {
  303. label: '出口日期',
  304. prop: 'importExportDate',
  305. type: "date",
  306. format: "yyyy-MM-dd",
  307. valueFormat: "yyyy-MM-dd HH:mm:ss"
  308. }, {
  309. label: '启运日期',
  310. prop: 'shipmentDate',
  311. type: "date",
  312. format: "yyyy-MM-dd",
  313. valueFormat: "yyyy-MM-dd HH:mm:ss"
  314. }, {
  315. label: '申报日期',
  316. prop: 'declareDate',
  317. type: "date",
  318. format: "yyyy-MM-dd",
  319. valueFormat: "yyyy-MM-dd HH:mm:ss"
  320. }, {
  321. label: '境内收发货人',
  322. prop: 'domesticConsigneeShipper'
  323. }, {
  324. label: '编码',
  325. prop: 'domesticNo'
  326. }, {
  327. label: '海关号',
  328. prop: 'domesticCustomsNo'
  329. }, {
  330. label: '名称',
  331. prop: 'domesticName'
  332. }, {
  333. label: '境外收发货人',
  334. prop: 'abroadConsigneeShipper'
  335. }, {
  336. label: '编码',
  337. prop: 'abroadNo'
  338. }, {
  339. label: '海关号',
  340. prop: 'abroadCustomsNo'
  341. }, {
  342. label: '名称',
  343. prop: 'abroadName'
  344. }, {
  345. label: '生产销售单位',
  346. prop: 'consumptionUnit'
  347. }, {
  348. label: '编码',
  349. prop: 'consumptionUnitNo'
  350. }, {
  351. label: '海关号',
  352. prop: 'consumptionUnitCustomsNo'
  353. }, {
  354. label: '名称',
  355. prop: 'consumptionUnitName'
  356. }, {
  357. label: '申报单位',
  358. prop: 'applicant'
  359. }, {
  360. label: '编码',
  361. prop: 'applicantNo'
  362. }, {
  363. label: '海关号',
  364. prop: 'applicantCustomsNo'
  365. }, {
  366. label: '名称',
  367. prop: 'applicantName'
  368. }, {
  369. label: '运输方式',
  370. prop: 'transportType',
  371. filterable: true,
  372. type: 'select',
  373. dicUrl: "/api/blade-system/dict-biz/dictionary?code=mode_transport",
  374. props: {
  375. label: "dictValue",
  376. value: "dictValue"
  377. }
  378. }, {
  379. label: '运输工具名称',
  380. prop: 'conveyanceName'
  381. }, {
  382. label: '航次号',
  383. prop: 'voyageNo'
  384. }, {
  385. label: '提运单号',
  386. prop: 'deliveryNumbers'
  387. }, {
  388. label: '监管方式',
  389. prop: 'superviseMode',
  390. span: 8,
  391. filterable: true,
  392. type: 'select',
  393. dicUrl: "/api/blade-system/dict-biz/dictionary?code=supervise_mode",
  394. props: {
  395. label: "dictValue",
  396. value: "dictValue"
  397. }
  398. }, {
  399. label: '征免性质',
  400. prop: 'expropriationExemptionNature',
  401. span: 8,
  402. filterable: true,
  403. type: 'select',
  404. dicUrl: "/api/blade-system/dict-biz/dictionary?code=expropriation_nature",
  405. props: {
  406. label: "dictValue",
  407. value: "dictValue"
  408. }
  409. }, {
  410. label: '许可证号',
  411. prop: 'licenseKey',
  412. span: 8
  413. }, {
  414. label: '启运国',
  415. prop: 'countryOriginId',
  416. span: 8
  417. }, {
  418. label: '经停港',
  419. prop: 'stopOverHarborId',
  420. span: 8
  421. }, {
  422. label: '成交方式',
  423. prop: 'transactionMode',
  424. span: 8,
  425. filterable: true,
  426. type: 'select',
  427. dicUrl: "/api/blade-system/dict-biz/dictionary?code=transaction_mode",
  428. props: {
  429. label: "dictValue",
  430. value: "dictValue"
  431. }
  432. }, {
  433. label: '运费',
  434. prop: 'freight',
  435. type: 'number',
  436. controls: false,
  437. precision:2
  438. }, {
  439. label: '方式',
  440. prop: 'freightMethod',
  441. filterable: true,
  442. type: 'select',
  443. dicUrl: "/api/blade-system/dict-biz/dictionary?code=method",
  444. props: {
  445. label: "dictValue",
  446. value: "dictValue"
  447. }
  448. }, {
  449. label: '金额',
  450. prop: 'freightAmount',
  451. type: 'number',
  452. controls: false,
  453. precision:2
  454. }, {
  455. label: '币别',
  456. prop: 'freightCurrency',
  457. overHidden: true,
  458. filterable: true,
  459. type: "select",
  460. dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
  461. props: {
  462. label: "dictValue",
  463. value: "dictValue"
  464. },
  465. }, {
  466. label: '保险',
  467. prop: 'insurance',
  468. type: 'number',
  469. controls: false,
  470. precision:2
  471. }, {
  472. label: '方式',
  473. prop: 'insuranceMethod',
  474. filterable: true,
  475. type: 'select',
  476. dicUrl: "/api/blade-system/dict-biz/dictionary?code=method",
  477. props: {
  478. label: "dictValue",
  479. value: "dictValue"
  480. }
  481. }, {
  482. label: '金额',
  483. prop: 'insuranceAmount',
  484. type: 'number',
  485. controls: false,
  486. precision:2
  487. }, {
  488. label: '币别',
  489. prop: 'insuranceCurrency',
  490. overHidden: true,
  491. filterable: true,
  492. type: "select",
  493. dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
  494. props: {
  495. label: "dictValue",
  496. value: "dictValue"
  497. },
  498. }, {
  499. label: '杂费',
  500. prop: 'sundryFees',
  501. type: 'number',
  502. controls: false,
  503. precision:2
  504. }, {
  505. label: '方式',
  506. prop: 'sundryFeesMethod',
  507. filterable: true,
  508. type: 'select',
  509. dicUrl: "/api/blade-system/dict-biz/dictionary?code=method",
  510. props: {
  511. label: "dictValue",
  512. value: "dictValue"
  513. }
  514. }, {
  515. label: '金额',
  516. prop: 'sundryFeesAmount',
  517. type: 'number',
  518. controls: false,
  519. precision:2
  520. }, {
  521. label: '币别',
  522. prop: 'sundryFeesCurrency',
  523. overHidden: true,
  524. filterable: true,
  525. type: "select",
  526. dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
  527. props: {
  528. label: "dictValue",
  529. value: "dictValue"
  530. },
  531. }, {
  532. label: '件数',
  533. prop: 'number',
  534. type: 'number',
  535. controls: false,
  536. precision:2
  537. }, {
  538. label: '包装',
  539. prop: 'packing',
  540. filterable: true,
  541. type: 'select',
  542. dicUrl: "/api/blade-system/dict-biz/dictionary?code=packing",
  543. props: {
  544. label: "dictValue",
  545. value: "dictValue"
  546. }
  547. }, {
  548. label: '毛重(kg)',
  549. prop: 'grossWeight',
  550. type: 'number',
  551. controls: false,
  552. precision:2
  553. }, {
  554. label: '净重(kg)',
  555. prop: 'netWeight'
  556. }, {
  557. label: '贸易国别(地区)',
  558. prop: 'tradeCountryId',
  559. labelWidth:100
  560. }, {
  561. label: '集装箱数',
  562. prop: 'containersNumber',
  563. type: 'number',
  564. controls: false,
  565. precision:2
  566. }, {
  567. label: '随附单证',
  568. prop: 'documentsAttached'
  569. }, {
  570. label: '入境口岸',
  571. prop: 'portEntryId'
  572. }, {
  573. label: '货物存放地点',
  574. prop: 'storagePlaceGoods'
  575. }, {
  576. label: '启运港',
  577. prop: 'portDepartureId'
  578. }, {
  579. label: '报关单类型',
  580. prop: 'customsDeclarationType',
  581. filterable: true,
  582. type: 'select',
  583. dicUrl: "/api/blade-system/dict-biz/dictionary?code=declaration_type",
  584. props: {
  585. label: "dictValue",
  586. value: "dictValue"
  587. }
  588. }, {
  589. label: '备注',
  590. prop: 'remark',
  591. type: 'textarea',
  592. minRows: 3,
  593. span: 12
  594. }, {
  595. label: '唛头',
  596. prop: 'shippingMark',
  597. type: 'textarea',
  598. minRows: 3,
  599. span: 12
  600. }]
  601. },
  602. option: {},
  603. optionBack: {
  604. align: 'center',
  605. index: true,
  606. addBtnText: "录入明细",
  607. refreshBtn: false,
  608. addBtn: true,
  609. span: 8,
  610. addRowBtn: false,
  611. cellBtn: false,
  612. editBtn: false,
  613. delBtn: false,
  614. menuWidth: 140,
  615. dialogTop: 25,
  616. dialogWidth: "80%",
  617. showSummary: true,
  618. sumColumnList: [{
  619. name: 'amount',
  620. type: 'sum',
  621. decimals: 2
  622. }],
  623. column: [{
  624. label: '备案编号',
  625. prop: 'goodsFilingNo',
  626. width: 100,
  627. overHidden: true
  628. }, {
  629. label: '商品编号',
  630. prop: 'commodityNo',
  631. width: 100,
  632. }, {
  633. label: '检验检疫名称',
  634. prop: 'quarantineName',
  635. width: 100
  636. }, {
  637. label: '商品名称',
  638. prop: 'commodityName',
  639. width: 100
  640. }, {
  641. label: '规格型号',
  642. prop: 'specificationModel',
  643. overHidden: true,
  644. width: 100
  645. }, {
  646. label: '成交数量',
  647. prop: 'transactionsNumber',
  648. overHidden: true,
  649. width: 100
  650. }, {
  651. label: '单位',
  652. prop: 'dealUnitMeasurement',
  653. overHidden: true,
  654. width: 100,
  655. filterable: true,
  656. type: 'select',
  657. dicUrl: "/api/blade-system/dict-biz/dictionary?code=deal_unit",
  658. props: {
  659. label: "dictValue",
  660. value: "dictValue"
  661. }
  662. }, {
  663. label: '单价',
  664. prop: 'price',
  665. overHidden: true,
  666. width: 100
  667. }, {
  668. label: '总价',
  669. prop: 'totalPrice',
  670. overHidden: true,
  671. width: 100
  672. }, {
  673. label: '币制',
  674. prop: 'currencySystem',
  675. overHidden: true,
  676. width: 100,
  677. filterable: true,
  678. type: 'select',
  679. dicUrl: "/api/blade-system/dict-biz/dictionary?code=currency",
  680. props: {
  681. label: "dictValue",
  682. value: "dictValue"
  683. }
  684. }, {
  685. label: '法定第一数量',
  686. prop: 'statutoryFirstQuantity',
  687. overHidden: true,
  688. width: 100
  689. }, {
  690. label: '法定第一计量单位',
  691. prop: 'statutoryFirstMeasurement',
  692. labelWidth: 120,
  693. overHidden: true,
  694. width: 120,
  695. filterable: true,
  696. type: 'select',
  697. dicUrl: "/api/blade-system/dict-biz/dictionary?code=deal_unit",
  698. props: {
  699. label: "dictValue",
  700. value: "dictValue"
  701. }
  702. }, {
  703. label: '加工成品单耗版本号',
  704. prop: 'versionNo',
  705. labelWidth:125,
  706. overHidden: true,
  707. width: 130
  708. }, {
  709. label: '货号',
  710. prop: 'articleNo',
  711. overHidden: true,
  712. width: 100
  713. }, {
  714. label: '最终目的国',
  715. prop: 'finalDestinationCountryId',
  716. overHidden: true,
  717. width: 100
  718. }, {
  719. label: '法定第二数量',
  720. prop: 'legalSecondQuantity',
  721. overHidden: true,
  722. width: 100
  723. }, {
  724. label: '法定第二计量单位',
  725. prop: 'legalSecondMeasurement',
  726. labelWidth: 120,
  727. overHidden: true,
  728. width: 120,
  729. filterable: true,
  730. type: 'select',
  731. dicUrl: "/api/blade-system/dict-biz/dictionary?code=deal_unit",
  732. props: {
  733. label: "dictValue",
  734. value: "dictValue"
  735. }
  736. }, {
  737. label: '原产国',
  738. prop: 'originatedCountriesId',
  739. overHidden: true,
  740. width: 100
  741. }, {
  742. label: '原产地区',
  743. prop: 'regionOrigin',
  744. overHidden: true,
  745. width: 100
  746. }, {
  747. label: '境内目的地',
  748. prop: 'domesticDestination',
  749. overHidden: true,
  750. width: 100
  751. }, {
  752. label: '征免方式',
  753. prop: 'expropriationExemptionType',
  754. overHidden: true,
  755. width: 100,
  756. filterable: true,
  757. type: 'select',
  758. dicUrl: "/api/blade-system/dict-biz/dictionary?code=expropriation_type",
  759. props: {
  760. label: "dictValue",
  761. value: "dictValue"
  762. }
  763. }]
  764. },
  765. optionTwo:{},
  766. optionTwoBack: {
  767. align: 'center',
  768. index: true,
  769. addBtnText: "录入明细",
  770. refreshBtn: false,
  771. addBtn: true,
  772. span: 8,
  773. addRowBtn: false,
  774. cellBtn: false,
  775. editBtn: false,
  776. delBtn: false,
  777. menuWidth: 140,
  778. dialogTop: 25,
  779. dialogWidth: "80%",
  780. showSummary: true,
  781. sumColumnList: [{
  782. name: 'amount',
  783. type: 'sum',
  784. decimals: 2
  785. }],
  786. column: [{
  787. label: '箱号',
  788. prop: 'caseNo',
  789. overHidden: true,
  790. rules: [{
  791. required: true,
  792. message: " ",
  793. trigger: "blur"
  794. }]
  795. }, {
  796. label: '箱类型',
  797. prop: 'boxType',
  798. overHidden: true
  799. }, {
  800. label: '拼箱标识',
  801. prop: 'lclSign',
  802. overHidden: true,
  803. filterable: true,
  804. type: 'select',
  805. dicData:[{
  806. label:'是',
  807. value:1
  808. },{
  809. label:'否',
  810. value:0
  811. }]
  812. }]
  813. },
  814. optionThree:{},
  815. optionThreeBack: {
  816. align: 'center',
  817. index: true,
  818. addBtnText: "录入明细",
  819. refreshBtn: false,
  820. addBtn: true,
  821. span: 8,
  822. addRowBtn: false,
  823. cellBtn: false,
  824. editBtn: false,
  825. delBtn: false,
  826. menuWidth: 140,
  827. dialogTop: 25,
  828. dialogWidth: "80%",
  829. showSummary: true,
  830. sumColumnList: [{
  831. name: 'amount',
  832. type: 'sum',
  833. decimals: 2
  834. }],
  835. column: [{
  836. label: '单证代码',
  837. prop: 'documentCode',
  838. overHidden: true
  839. },{
  840. label: '单证编码',
  841. prop: 'documentNo',
  842. overHidden: true
  843. }]
  844. },
  845. dataList: [],
  846. dataListTwo: [],
  847. tradingBoxFilesList: [],
  848. disabled: false,
  849. costData: {}
  850. }
  851. },
  852. async created() {
  853. this.option = await this.getColumnData(this.getColumnName(246.1), this.optionBack);
  854. this.optionTwo = await this.getColumnData(this.getColumnName(246.2), this.optionTwoBack);
  855. this.optionThree = await this.getColumnData(this.getColumnName(246.21), this.optionThreeBack);
  856. selectByName("买箱费").then(res => {
  857. this.costData = res.data.data
  858. })
  859. //下拉箱号带出对应信息
  860. // this.findObject(this.option.column, "code").change = ({value, column}) => {
  861. // selectArchivesList({code: value}).then(res => {
  862. // for (let item of res.data.data) {
  863. // if (value == item.code) {
  864. // this.formTwo = {
  865. // boxSource: item.boxSource,
  866. // boxStatus: item.boxStatus,
  867. // emptyWeight: item.emptyWeight,
  868. // grossWeight: item.gorssWeight,
  869. // tare: item.tare,
  870. // loadingWeight: item.loadingWeight,
  871. // volume: item.volume,
  872. // }
  873. // }
  874. // }
  875. // })
  876. // }
  877. this.key++
  878. if (this.onLoad.id && this.detailData.id) {
  879. this.refresh(this.onLoad.id, true)
  880. } else if (this.onLoad.id) {
  881. this.refresh(this.onLoad.id, true)
  882. }
  883. },
  884. methods: {
  885. confirmEdit() {
  886. if (this.form.status > 0) {
  887. //基础资料
  888. this.$set(this.optionForm, "disabled", true)
  889. //箱信息
  890. this.$set(this.option, "disabled", true)
  891. this.$set(this.option, "addBtn", false)
  892. this.$set(this.option, "menu", false)
  893. //费用信息
  894. this.$set(this.$refs.boxCost.option, "disabled", true)
  895. this.$set(this.$refs.boxCost.option, "addBtn", false)
  896. this.$set(this.$refs.boxCost.option, "menu", false)
  897. //集装箱
  898. this.$set(this.optionTwo, "disabled", true)
  899. this.$set(this.optionTwo, "addBtn", false)
  900. this.$set(this.optionTwo, "menu", false)
  901. //单证
  902. this.$set(this.optionThree, "disabled", true)
  903. this.$set(this.optionThree, "addBtn", false)
  904. this.$set(this.optionThree, "menu", false)
  905. //附件和顶部按钮
  906. this.disabled = true
  907. } else {
  908. //基础资料
  909. this.$set(this.optionForm, "disabled", false)
  910. //箱信息
  911. this.$set(this.option, "disabled", false)
  912. this.$set(this.option, "addBtn", true)
  913. this.$set(this.option, "menu", true)
  914. //集装箱
  915. this.$set(this.optionTwo, "disabled", false)
  916. this.$set(this.optionTwo, "addBtn", true)
  917. this.$set(this.optionTwo, "menu", true)
  918. //单证
  919. this.$set(this.optionThree, "disabled", false)
  920. this.$set(this.optionThree, "addBtn", true)
  921. this.$set(this.optionThree, "menu", true)
  922. //费用信息
  923. this.$set(this.$refs.boxCost.option, "disabled", false)
  924. this.$set(this.$refs.boxCost.option, "addBtn", true)
  925. this.$set(this.$refs.boxCost.option, "menu", true)
  926. //附件和顶部按钮
  927. this.disabled = false
  928. }
  929. },
  930. // 明细删除
  931. rowDel(row, index, type) {
  932. this.$confirm("确定将选择数据删除?", {
  933. confirmButtonText: "确定",
  934. cancelButtonText: "取消",
  935. type: "warning"
  936. }).then(() => {
  937. if (row.id) {
  938. if (type == "SP"){
  939. tradingBoxItem(row.id).then(res => {
  940. if (res.data.success) {
  941. this.$message.success("操作成功!");
  942. this.dataList.splice(index, 1);
  943. }
  944. });
  945. }
  946. if (type == "JZX"){
  947. containerItem(row.id).then(res => {
  948. if (res.data.success) {
  949. this.$message.success("操作成功!");
  950. this.containerList.splice(index, 1);
  951. }
  952. });
  953. }
  954. if (type == "DZ"){
  955. documentsItem(row.id).then(res => {
  956. if (res.data.success) {
  957. this.$message.success("操作成功!");
  958. this.documentsList.splice(index, 1);
  959. }
  960. });
  961. }
  962. } else {
  963. if (type == "DZ"){
  964. this.dataList.splice(index, 1);
  965. }
  966. if (type == "JZX"){
  967. this.containerList.splice(index, 1);
  968. }
  969. if (type == "DZ"){
  970. this.documentsList.splice(index, 1);
  971. }
  972. this.$message.success("操作成功!");
  973. }
  974. }
  975. )
  976. ;
  977. },
  978. balabala(row,type) {
  979. this[type[0]][type[1]] = row.cname
  980. },
  981. //选择费用名称
  982. selectValue(value) {
  983. this.formThree.itemName = value.cname
  984. },
  985. //撤销
  986. repealCancel() {
  987. this.$confirm("您确定撤回此次申请吗?", {
  988. confirmButtonText: "确定",
  989. cancelButtonText: "取消",
  990. type: "warning"
  991. }).then(() => {
  992. const data = {
  993. id: this.form.id,
  994. pageLabel: "出口报关",
  995. importExportSigns: "BGCK"
  996. }
  997. const loading = this.$loading({
  998. lock: true,
  999. text: '加载中',
  1000. spinner: 'el-icon-loading',
  1001. background: 'rgba(255,255,255,0.7)'
  1002. });
  1003. repealCancel(data).then(res => {
  1004. loading.close();
  1005. this.$message.success('撤回成功')
  1006. this.refresh(this.form.id)
  1007. }).catch(() => {
  1008. loading.close();
  1009. })
  1010. })
  1011. },
  1012. // 请核
  1013. pleaseCheck() {
  1014. this.$confirm("您确定提交请核申请吗?", {
  1015. confirmButtonText: "确定",
  1016. cancelButtonText: "取消",
  1017. type: "warning"
  1018. }).then(() => {
  1019. this.$refs["form"].validate((valid, done) => {
  1020. done()
  1021. if (valid) {
  1022. if (this.dataList.length === 0) {
  1023. return this.$message.error("商品信息不能为空")
  1024. }
  1025. if (this.$refs.boxCost.dataList.length === 0) {
  1026. return this.$message.error("费用信息不能为空")
  1027. } else {
  1028. for (let item of this.$refs.boxCost.dataList) {
  1029. if (!item.id) {
  1030. return this.$message.error("费用信息未保存")
  1031. }
  1032. }
  1033. }
  1034. let data = {
  1035. ...this.form,
  1036. itemList: this.dataList,
  1037. feesList: this.dataListTwo,
  1038. fileList: this.tradingBoxFilesList,
  1039. containerList:this.containerList,
  1040. documentsList:this.documentsList,
  1041. importExportSigns: "BGCK",
  1042. }
  1043. const loading = this.$loading({
  1044. lock: true,
  1045. text: '加载中',
  1046. spinner: 'el-icon-loading',
  1047. background: 'rgba(255,255,255,0.7)'
  1048. });
  1049. submit(data).then(res => {
  1050. const data = {
  1051. id: res.data.data.id,
  1052. url: '/purchase/exportDeclaration/index',
  1053. pageStatus: "this.$store.getters.domSaleStatus",
  1054. pageLabel: "出口报关",
  1055. checkFlag: 1,
  1056. }
  1057. pleaseCheck({
  1058. ...data,
  1059. importExportSigns: "BGCK"
  1060. }).then(rest => {
  1061. loading.close();
  1062. this.$message.success('请核成功')
  1063. this.refresh(res.data.data.id)
  1064. }).catch(() => {
  1065. loading.close();
  1066. })
  1067. }).catch(() => {
  1068. loading.close();
  1069. })
  1070. }
  1071. });
  1072. })
  1073. },
  1074. //审核关闭
  1075. choceScheduleFun() {
  1076. this.checkScheduleDialog = false
  1077. },
  1078. refresh(id, type) {
  1079. const loading = this.$loading({
  1080. lock: true,
  1081. text: '加载中',
  1082. spinner: 'el-icon-loading',
  1083. background: 'rgba(255,255,255,0.7)'
  1084. });
  1085. detail({id: id}).then(res => {
  1086. this.form = res.data.data
  1087. this.dataList = res.data.data.itemList
  1088. this.dataListTwo = res.data.data.feesList
  1089. this.tradingBoxFilesList = res.data.data.fileList
  1090. this.containerList = res.data.data.containerList
  1091. this.documentsList = res.data.data.documentsList
  1092. delete this.form.containerList
  1093. delete this.form.documentsList
  1094. delete this.form.itemList
  1095. delete this.form.feesList
  1096. delete this.form.fileList
  1097. loading.close();
  1098. if (type) {
  1099. //基础资料
  1100. this.$set(this.optionForm, "disabled", true)
  1101. //箱信息
  1102. this.$set(this.option, "disabled", true)
  1103. this.$set(this.option, "addBtn", false)
  1104. this.$set(this.option, "menu", false)
  1105. //集装箱
  1106. this.$set(this.optionTwo, "disabled", true)
  1107. this.$set(this.optionTwo, "addBtn", false)
  1108. this.$set(this.optionTwo, "menu", false)
  1109. //单证
  1110. this.$set(this.optionThree, "disabled", true)
  1111. this.$set(this.optionThree, "addBtn", false)
  1112. this.$set(this.optionThree, "menu", false)
  1113. //费用信息
  1114. this.$set(this.$refs.boxCost.option, "disabled", true)
  1115. this.$set(this.$refs.boxCost.option, "addBtn", false)
  1116. this.$set(this.$refs.boxCost.option, "menu", false)
  1117. //附件和顶部按钮
  1118. this.disabled = true
  1119. } else {
  1120. if (this.form.status > 0) {
  1121. //基础资料
  1122. this.$set(this.optionForm, "disabled", true)
  1123. //箱信息
  1124. this.$set(this.option, "disabled", true)
  1125. this.$set(this.option, "addBtn", false)
  1126. this.$set(this.option, "menu", false)
  1127. //集装箱
  1128. this.$set(this.optionTwo, "disabled", true)
  1129. this.$set(this.optionTwo, "addBtn", false)
  1130. this.$set(this.optionTwo, "menu", false)
  1131. //单证
  1132. this.$set(this.optionThree, "disabled", true)
  1133. this.$set(this.optionThree, "addBtn", false)
  1134. this.$set(this.optionThree, "menu", false)
  1135. //费用信息
  1136. this.$set(this.$refs.boxCost.option, "disabled", true)
  1137. this.$set(this.$refs.boxCost.option, "addBtn", false)
  1138. this.$set(this.$refs.boxCost.option, "menu", false)
  1139. //附件和顶部按钮
  1140. this.disabled = true
  1141. } else {
  1142. //基础资料
  1143. this.$set(this.optionForm, "disabled", false)
  1144. //箱信息
  1145. this.$set(this.option, "disabled", false)
  1146. this.$set(this.option, "addBtn", true)
  1147. this.$set(this.option, "menu", true)
  1148. //集装箱
  1149. this.$set(this.optionTwo, "disabled", false)
  1150. this.$set(this.optionTwo, "addBtn", true)
  1151. this.$set(this.optionTwo, "menu", true)
  1152. //单证
  1153. this.$set(this.optionThree, "disabled", false)
  1154. this.$set(this.optionThree, "addBtn", true)
  1155. this.$set(this.optionThree, "menu", true)
  1156. //费用信息
  1157. this.$set(this.$refs.boxCost.option, "disabled", false)
  1158. this.$set(this.$refs.boxCost.option, "addBtn", true)
  1159. this.$set(this.$refs.boxCost.option, "menu", true)
  1160. //附件和顶部按钮
  1161. this.disabled = false
  1162. }
  1163. }
  1164. })
  1165. },
  1166. //新增修改
  1167. editCustomer() {
  1168. this.$refs["form"].validate((valid, done) => {
  1169. done()
  1170. if (valid) {
  1171. let data = {
  1172. ...this.form,
  1173. itemList: this.dataList,
  1174. feesList: this.dataListTwo,
  1175. fileList: this.tradingBoxFilesList,
  1176. containerList:this.containerList,
  1177. documentsList:this.documentsList,
  1178. importExportSigns: "BGCK"
  1179. }
  1180. const loading = this.$loading({
  1181. lock: true,
  1182. text: '加载中',
  1183. spinner: 'el-icon-loading',
  1184. background: 'rgba(255,255,255,0.7)'
  1185. });
  1186. submit(data).then(res => {
  1187. if (this.form.id) {
  1188. this.$message.success("修改成功")
  1189. } else {
  1190. this.$message.success("新增成功")
  1191. }
  1192. loading.close();
  1193. this.refresh(res.data.data.id)
  1194. }).catch(() => {
  1195. loading.close();
  1196. })
  1197. }
  1198. });
  1199. },
  1200. rowSave(form, done, loading) {
  1201. done(form)
  1202. },
  1203. rowUpdate(form, index, done, loading) {
  1204. done(form)
  1205. },
  1206. //打开表单前
  1207. beforeOpen(done, type) {
  1208. done();
  1209. },
  1210. getGSData(row, type) {
  1211. // this[type[0]][type[1]] = row.cname
  1212. if (type[1] === "domesticName" || type[1] === "abroadName" || type[1] === "consumptionUnitName" || type[1] === "applicantName"){
  1213. this[type[0]][type[1]] = row.cname
  1214. this[type[0]][type[2]] = row.customsNo
  1215. }
  1216. },
  1217. backToList(type) {
  1218. if (type == 0) {
  1219. if (this.detailData.id) {
  1220. this.$router.push({
  1221. path: '/purchase/exportDeclaration/index'
  1222. });
  1223. }
  1224. this.$emit("backToList", type);
  1225. } else if (type == 1) {
  1226. this.$router.push({
  1227. path: '/approveData/index'
  1228. });
  1229. this.$emit("backToList", type);
  1230. }
  1231. },
  1232. //自定义列保存
  1233. async saveColumnTwo(ref, option, optionBack, code) {
  1234. /**
  1235. * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
  1236. * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
  1237. * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
  1238. */
  1239. const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
  1240. if (inSave) {
  1241. this.$message.success("保存成功");
  1242. //关闭窗口
  1243. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  1244. }
  1245. },
  1246. resetTrigger() {
  1247. if (this.optionForm.disabled == true) {
  1248. if (this.form.status > 0) {
  1249. //基础资料
  1250. this.$set(this.optionForm, "disabled", true)
  1251. //箱信息
  1252. this.$set(this.option, "disabled", true)
  1253. this.$set(this.option, "addBtn", false)
  1254. this.$set(this.option, "menu", false)
  1255. //集装箱
  1256. this.$set(this.optionTwo, "disabled", true)
  1257. this.$set(this.optionTwo, "addBtn", false)
  1258. this.$set(this.optionTwo, "menu", false)
  1259. //单证
  1260. this.$set(this.optionThree, "disabled", true)
  1261. this.$set(this.optionThree, "addBtn", false)
  1262. this.$set(this.optionThree, "menu", false)
  1263. //费用信息
  1264. this.$set(this.$refs.boxCost.option, "disabled", true)
  1265. this.$set(this.$refs.boxCost.option, "addBtn", false)
  1266. this.$set(this.$refs.boxCost.option, "menu", false)
  1267. //附件和顶部按钮
  1268. this.disabled = true
  1269. } else {
  1270. //基础资料
  1271. this.$set(this.optionForm, "disabled", false)
  1272. //箱信息
  1273. this.$set(this.option, "disabled", false)
  1274. this.$set(this.option, "addBtn", true)
  1275. this.$set(this.option, "menu", true)
  1276. //集装箱
  1277. this.$set(this.optionTwo, "disabled", false)
  1278. this.$set(this.optionTwo, "addBtn", true)
  1279. this.$set(this.optionTwo, "menu", true)
  1280. //单证
  1281. this.$set(this.optionThree, "disabled", false)
  1282. this.$set(this.optionThree, "addBtn", true)
  1283. this.$set(this.optionThree, "menu", true)
  1284. //费用信息
  1285. this.$set(this.$refs.boxCost.option, "disabled", false)
  1286. this.$set(this.$refs.boxCost.option, "addBtn", true)
  1287. this.$set(this.$refs.boxCost.option, "menu", true)
  1288. //附件和顶部按钮
  1289. this.disabled = false
  1290. }
  1291. } else {
  1292. //基础资料
  1293. this.$set(this.optionForm, "disabled", false)
  1294. //箱信息
  1295. this.$set(this.option, "disabled", false)
  1296. this.$set(this.option, "addBtn", true)
  1297. this.$set(this.option, "menu", true)
  1298. //集装箱
  1299. this.$set(this.optionTwo, "disabled", false)
  1300. this.$set(this.optionTwo, "addBtn", true)
  1301. this.$set(this.optionTwo, "menu", true)
  1302. //单证
  1303. this.$set(this.optionThree, "disabled", false)
  1304. this.$set(this.optionThree, "addBtn", true)
  1305. this.$set(this.optionThree, "menu", true)
  1306. //费用信息
  1307. this.$set(this.$refs.boxCost.option, "disabled", false)
  1308. this.$set(this.$refs.boxCost.option, "addBtn", true)
  1309. this.$set(this.$refs.boxCost.option, "menu", true)
  1310. //附件和顶部按钮
  1311. this.disabled = false
  1312. }
  1313. },
  1314. //自定义列重置
  1315. async resetColumnTwo(ref, option, optionBack, code) {
  1316. this[option] = this[optionBack];
  1317. const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
  1318. if (inSave) {
  1319. this.resetTrigger()
  1320. this.$message.success("重置成功");
  1321. this.$refs[ref].$refs.dialogColumn.columnBox = false;
  1322. }
  1323. }
  1324. }
  1325. }
  1326. </script>
  1327. <style scoped>
  1328. ::v-deep .el-form-item {
  1329. margin-bottom: 8px;
  1330. }
  1331. </style>