detailsPage.vue 44 KB

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