index.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForms" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-row>
  5. <el-form-item label="调入地点" prop="fUpdateaddress">
  6. <el-select
  7. style="width: 240px"
  8. v-model="queryParams.fUpdateaddress"
  9. placeholder="请输入调入地点"
  10. clearable
  11. @input="bringIn"
  12. size="small"
  13. filterable
  14. :remote-method="addressMethod"
  15. >
  16. <el-option
  17. v-for="item in this.addressOptions"
  18. :key="item.fId"
  19. :label="item.fName"
  20. :value="item.fId">
  21. <span style="float: left; color: #8492a6; font-size: 13px">{{ item.typesName }}</span>
  22. <span style="float: right;">{{ item.fName }}</span>
  23. </el-option>
  24. </el-select>
  25. </el-form-item>
  26. <el-form-item label="空重" prop="fUpdateEF">
  27. <el-select
  28. v-model="queryParams.fUpdateEF"
  29. style="width: 240px"
  30. placeholder="请输入空重"
  31. clearable
  32. size="small"
  33. @change="changeUpdateEF"
  34. >
  35. <el-option
  36. v-for="item in this.updateEFOptions"
  37. :key="item.dictValue"
  38. :label="item.dictLabel"
  39. :value="item.dictValue"/>
  40. </el-select>
  41. </el-form-item>
  42. <el-form-item label="状态" prop="fStatus">
  43. <el-select
  44. v-model="queryParams.fStatus"
  45. style="width: 240px"
  46. placeholder="请输入状态"
  47. clearable
  48. @change="changeStatus"
  49. size="small"
  50. >
  51. <el-option
  52. v-for="item in this.cntrstatusOptions"
  53. :key="item.dictValue"
  54. :label="item.dictLabel"
  55. :value="item.dictValue"/>
  56. </el-select>
  57. </el-form-item>
  58. <el-form-item label="调箱动作" prop="fOpctnstatus">
  59. <el-select
  60. v-model="queryParams.fOpctnstatus"
  61. style="width: 240px"
  62. placeholder="请输入状态"
  63. clearable
  64. @change="changeAction"
  65. size="small"
  66. >
  67. <el-option
  68. v-for="item in this.boxActionOptions"
  69. :key="item.dictValue"
  70. :label="item.dictLabel"
  71. :value="item.dictValue"/>
  72. </el-select>
  73. </el-form-item>
  74. <el-form-item label="时间" prop="fBdate">
  75. <el-date-picker
  76. v-model="queryParams.fBdate"
  77. type="date"
  78. value-format="yyyy-MM-dd"
  79. @change="changeDate"
  80. placeholder="选择日期">
  81. </el-date-picker>
  82. </el-form-item>
  83. <el-form-item>
  84. <el-button type="cyan" size="mini" @click="determine">提交</el-button>
  85. </el-form-item>
  86. </el-row>
  87. </el-form>
  88. <el-form :model="queryParam" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  89. <el-row>
  90. <el-form-item label="箱号" prop="fNo">
  91. <el-input
  92. v-model="queryParam.fNo"
  93. style="width: 240px"
  94. placeholder="请输入箱号"
  95. clearable
  96. size="small">
  97. </el-input>
  98. </el-form-item>
  99. <el-form-item label="箱型" prop="fTypeid">
  100. <el-select
  101. v-model="queryParam.fTypeid"
  102. style="width: 240px"
  103. placeholder="请输入箱型"
  104. clearable
  105. size="small">
  106. <el-option
  107. v-for="item in typeOptions"
  108. :key="item.fId"
  109. :label="item.fNo"
  110. :value="item.fId"
  111. />
  112. </el-select>
  113. </el-form-item>
  114. <el-form-item label="尺寸" prop="cntrsize">
  115. <el-select
  116. v-model="queryParam.cntrsize"
  117. style="width: 240px"
  118. placeholder="请输入尺寸"
  119. clearable
  120. size="small">
  121. <el-option
  122. v-for="item in CntrsizeOptions"
  123. :key="item.dictValue"
  124. :label="item.dictLabel"
  125. :value="item.dictValue"
  126. />
  127. </el-select>
  128. </el-form-item>
  129. <el-form-item label="箱主" prop="fOwner">
  130. <el-select
  131. v-model="queryParam.fOwner"
  132. style="width: 240px"
  133. placeholder="请输入箱主"
  134. clearable
  135. size="small">
  136. <el-option
  137. v-for="dict in ownerOptions"
  138. :key="dict.dictValue"
  139. :label="dict.dictLabel"
  140. :value="dict.dictValue"
  141. />
  142. </el-select>
  143. </el-form-item>
  144. <el-form-item label="空重" prop="fUpdateef">
  145. <el-select
  146. v-model="queryParam.fUpdateef"
  147. style="width: 240px"
  148. placeholder="请输入空重"
  149. clearable
  150. size="small">
  151. <el-option
  152. v-for="item in this.updateEFOptions"
  153. :key="item.dictValue"
  154. :label="item.dictLabel"
  155. :value="item.dictValue"/>
  156. </el-select>
  157. </el-form-item>
  158. <el-form-item label="状态" prop="fCntrstatus">
  159. <el-select
  160. v-model="queryParam.fCntrstatus"
  161. style="width: 200px"
  162. placeholder="请选择状态"
  163. clearable
  164. size="small"
  165. >
  166. <el-option
  167. v-for="item in this.cntrstatusOptions"
  168. :key="item.dictValue"
  169. :label="item.dictLabel"
  170. :value="item.dictValue"/>
  171. </el-select>
  172. </el-form-item>
  173. <el-form-item>
  174. <el-button type="cyan" size="mini" @click="search">搜索</el-button>
  175. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  176. </el-form-item>
  177. </el-row>
  178. </el-form>
  179. <el-row :gutter="10" class="mb8">
  180. <!-- <el-button type="cyan" size="mini" @click="determine">提交</el-button>-->
  181. <!-- <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>-->
  182. <!-- <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>-->
  183. <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>-->
  184. </el-row>
  185. <el-table v-loading="loading" :data="corpsList" @selection-change="handleSelectionChange">
  186. <el-table-column type="selection" width="55" align="center" />
  187. <el-table-column type="index" width="55" label="行号" align="center" />
  188. <el-table-column :show-overflow-tooltip="true" label="箱号" align="center" prop="fNo" width="200px"/>
  189. <el-table-column label="箱型" align="center" prop="typeidName" width="100px"/>
  190. <el-table-column :show-overflow-tooltip="true" label="尺寸" align="center" prop="cntrsizeName" width="100px"
  191. />
  192. <el-table-column :show-overflow-tooltip="true" label="箱主" align="center" width="100px" prop="ownerName" />
  193. <el-table-column :show-overflow-tooltip="true" label="原时间" align="center" prop="fUpdatetime" />
  194. <el-table-column :show-overflow-tooltip="true" label="原地点" align="center" prop="addressName" />
  195. <el-table-column label="原空重" align="center" prop="updateEFName" />
  196. <el-table-column label="原状态" align="center" prop="cntrstatusName" width="100"/>
  197. <el-table-column label="调入地点" align="center" prop="foldSite" width="100px"/>
  198. <el-table-column label="调入空重" align="center" prop="foldFUpdateef" width="100px"/>
  199. <el-table-column label="调入状态" align="center" prop="foldFCntrstatus" width="100px"/>
  200. <el-table-column label="调入时间" align="center" prop="foldtime" width="100px"/>
  201. <el-table-column label="调箱动作" align="center" prop="fOpctnstatus" width="100px"/>
  202. <el-table-column label="船名" align="center" prop="fVsl" width="100px">
  203. <template slot-scope="scope">
  204. <el-input v-model="scope.row.fVsl"/>
  205. </template>
  206. </el-table-column>
  207. <el-table-column label="航次" align="center" prop="fVoy" width="100px">
  208. <template slot-scope="scope">
  209. <el-input v-model="scope.row.fVoy"/>
  210. </template>
  211. </el-table-column>
  212. <el-table-column label="提单号" align="center" prop="fMblno" width="100px">
  213. <template slot-scope="scope">
  214. <el-input v-model="scope.row.fMblno"/>
  215. </template>
  216. </el-table-column>
  217. <el-table-column label="备注" align="center" prop="remark" width="100px">
  218. <template slot-scope="scope">
  219. <el-input v-model="scope.row.remark"/>
  220. </template>
  221. </el-table-column>
  222. <el-table-column label="上传附件" align="center" prop="" width="100px">
  223. <template slot-scope="scope">
  224. <el-button type="primary" size="mini" @click="uploadFile(scope.row)">上传</el-button>
  225. </template>
  226. </el-table-column>
  227. </el-table>
  228. <pagination
  229. v-show="total>0"
  230. :total="total"
  231. :page.sync="queryParams.pageNum"
  232. :limit.sync="queryParams.pageSize"
  233. />
  234. <el-dialog
  235. title="上传附件"
  236. :visible.sync="dialogVisible"
  237. width="80%"
  238. :close-on-click-modal="false"
  239. >
  240. <template slot="title">
  241. <i class="header-icon el-icon-circle-plus" style="font-size: 16px"
  242. ><span
  243. style="font-size: 16px; font-weight: bolder; margin-left: 5px"
  244. >附件上传</span
  245. >
  246. </i>
  247. </template>
  248. <div>
  249. <div
  250. style=" display: flex;justify-content: space-between;margin: 10px 0;">
  251. <div>
  252. <el-button
  253. type="primary"
  254. icon="el-icon-plus"
  255. size="mini"
  256. @click="addRelevt"
  257. >添加</el-button
  258. >
  259. </div>
  260. </div>
  261. </div>
  262. <el-table
  263. :data="relevantAttachments"
  264. ref="table"
  265. tooltip-effect="dark"
  266. border
  267. stripe
  268. style="width: 100%"
  269. height="150"
  270. >
  271. <el-table-column label="序号" type="index" width="80">
  272. </el-table-column>
  273. <el-table-column
  274. prop="fName"
  275. header-align="center"
  276. align="center"
  277. width="250px"
  278. label="附件名称"
  279. >
  280. <template slot-scope="scope">
  281. <el-input
  282. v-model="scope.row.fName"
  283. placeholder="附件名称"
  284. show-word-limit
  285. />
  286. </template>
  287. </el-table-column>
  288. <!-- <el-table-column-->
  289. <!-- prop="createBy"-->
  290. <!-- header-align="center"-->
  291. <!-- align="center"-->
  292. <!-- width="250px"-->
  293. <!-- label="上传人"-->
  294. <!-- >-->
  295. <!-- <template slot-scope="scope">-->
  296. <!-- <el-input-->
  297. <!-- v-model="scope.row.createBy"-->
  298. <!-- disabled-->
  299. <!-- placeholder="上传人"-->
  300. <!-- show-word-limit-->
  301. <!-- />-->
  302. <!-- </template>-->
  303. <!-- </el-table-column>-->
  304. <el-table-column
  305. prop="createTime"
  306. header-align="center"
  307. align="center"
  308. width="250px"
  309. label="上传时间"
  310. >
  311. <template slot-scope="scope">
  312. <el-date-picker
  313. v-model="scope.row.createTime"
  314. type="date"
  315. disabled
  316. placeholder="上传时间"
  317. format="yyyy-MM-dd HH:mm"
  318. value-format="timestamp"
  319. ></el-date-picker>
  320. </template>
  321. </el-table-column>
  322. <el-table-column
  323. prop="fUrl"
  324. header-align="center"
  325. align="center"
  326. width="300px"
  327. label="上传附件"
  328. >
  329. <template slot-scope="scope" >
  330. <el-upload
  331. class="upload-demo"
  332. :action="uploadImgUrl"
  333. :on-success="(res,file)=>{handleSucces(scope,res,file)}"
  334. :headers="headers"
  335. style="width:25%;float: left"
  336. :show-file-list="false"
  337. :limit="1"
  338. >
  339. <el-button size="small" type="primary" style="margin-left:20px">点击上传</el-button>
  340. </el-upload>
  341. <el-button size="small" type="primary" @click="checkFile(scope)">查看</el-button>
  342. <el-button size="small" type="primary" @click="deleteFile(scope)">删除</el-button>
  343. </template>
  344. </el-table-column>
  345. <el-table-column header-align="center" align="center" label="操作">
  346. <template slot-scope="scope">
  347. <el-button
  348. @click.native.prevent="deleteRow(scope.$index, relevantAttachments)"
  349. size="small"
  350. >移除
  351. </el-button>
  352. </template>
  353. </el-table-column>
  354. </el-table>
  355. <span>
  356. <el-button type="primary" style="margin-top: 20px;" @click="save">确定</el-button>
  357. <el-button type="primary" style="margin-top: 20px;" @click="dialogVisible = false , relevantAttachments = []">取消</el-button>
  358. </span>
  359. </el-dialog>
  360. </div>
  361. </template>
  362. <script>
  363. import { listCorps, addmodify,getaddress} from "@/api/kaihe/containerNews/modifyPage";
  364. import Global from '@/layout/components/global'
  365. import { getType } from '@/api/kaihe/containerNews/boxInformation'
  366. import { getToken } from '@/utils/auth'
  367. export default {
  368. name: "boxDistribution",
  369. components: {
  370. },
  371. data() {
  372. return {
  373. uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址
  374. relevantAttachments:[],
  375. headers: { Authorization: "Bearer " + getToken(), },
  376. //集装箱尺码字典表
  377. CntrsizeOptions:[],
  378. //模糊查询箱类型
  379. typeOptions:[],
  380. //附件上传弹窗
  381. dialogVisible: false,
  382. //调箱动作字典表
  383. boxActionOptions:[],
  384. //集装箱主字典表
  385. ownerOptions:[],
  386. //模糊下拉查询地点
  387. addressOptions:[],
  388. //空重字典表
  389. updateEFOptions:[],
  390. //状态字典表
  391. cntrstatusOptions:[],
  392. // 遮罩层
  393. loading: true,
  394. // 选中数组
  395. ids: [],
  396. // 显示搜索条件
  397. showSearch: true,
  398. // 总条数
  399. total: 0,
  400. // 客户详情表格数据
  401. corpsList: [],
  402. // 查询参数
  403. queryParams:{
  404. fUpdateaddress:null,
  405. fUpdateEF:null,
  406. fStatus:null,
  407. fBdate:null,
  408. fOpctnstatus:null
  409. },
  410. queryParam: {
  411. fNo:null,
  412. fTypeid:null,
  413. cntrsize:null,
  414. fOwner:null,
  415. fUpdateef:null,
  416. fCntrstatus:null
  417. },
  418. select:'',
  419. querDate:[],
  420. file:[],
  421. row:[]
  422. };
  423. },
  424. //页面跳转后传递参数
  425. activated() {
  426. let formDate = JSON.parse(this.$route.query.data)
  427. this.querDate = JSON.parse(this.$route.query.data)
  428. if(formDate){
  429. addmodify(formDate).then(response =>{
  430. this.corpsList = response.rows
  431. this.loading = false;
  432. })
  433. }
  434. },
  435. created() {
  436. this.getDicts("f_updateEF").then(response => {
  437. this.updateEFOptions = response.data;
  438. });
  439. this.getDicts("f_cntrstatus").then(response => {
  440. this.cntrstatusOptions = response.data;
  441. });
  442. this.getDicts("f_owner").then(response => {
  443. this.ownerOptions = response.data;
  444. });
  445. this.getDicts("f_opctnstatus").then(response => {
  446. this.boxActionOptions = response.data;
  447. });
  448. this.getDicts("f_cntrsize").then(response => {
  449. this.CntrsizeOptions = response.data;
  450. });
  451. this.addressMethod()
  452. this.boxTypeMethod()
  453. },
  454. methods: {
  455. save(){
  456. this.row.accessoryList = this.file
  457. this.dialogVisible = false
  458. this.relevantAttachments = []
  459. console.log(this.row)
  460. },
  461. //模糊查询箱类型
  462. boxTypeMethod(){
  463. let queryParams = { pageNum: 1,};
  464. getType().then(response =>{
  465. this.typeOptions = response.rows
  466. })
  467. },
  468. deleteRow(index, rows) {
  469. rows.splice(index, 1);
  470. },
  471. // 新增附件上传
  472. addRelevt() {
  473. this.relevantAttachments.push({
  474. fUrl: null,
  475. fName: null,
  476. // createBy: this.form.createBy,
  477. createTime: Date.parse(new Date()),
  478. });
  479. },
  480. //附件删除
  481. deleteFile(scope){
  482. this.relevantAttachments[scope.$index].fName = ''
  483. this.relevantAttachments[scope.$index].fUrl = ''
  484. if(this.relevantAttachments[scope.$index].fUrl === ''){
  485. this.$message.success("删除成功")
  486. }else{
  487. this.$message.error("未知错误,删除失败")
  488. }
  489. },
  490. //附件查看
  491. checkFile(scope){
  492. if(this.relevantAttachments[scope.$index].fUrl){
  493. window.open(this.relevantAttachments[scope.$index].fUrl)
  494. }else{
  495. this.$message.error("请上传附件")
  496. }
  497. },
  498. //上传附件
  499. handleSucces(scope,res,file){
  500. console.log(res)
  501. console.log(this.relevantAttachments[scope.$index])
  502. this.relevantAttachments[scope.$index].fName = res.fileName
  503. this.relevantAttachments[scope.$index].fUrl = res.url
  504. this.file.push({
  505. fName:this.relevantAttachments[scope.$index].fName,
  506. fUrl:this.relevantAttachments[scope.$index].fUrl,
  507. createTime:this.relevantAttachments[scope.$index].createTime
  508. })
  509. if(this.relevantAttachments[scope.$index].fUrl === ''){
  510. this.$message.error('上传失败')
  511. }{
  512. this.$message.success("上传成功")
  513. }
  514. },
  515. uploadFile(row){
  516. this.row = row
  517. this.dialogVisible = true
  518. if(row.accessoryList !== null){
  519. console.log(row.accessoryList)
  520. this.relevantAttachments = row.accessoryList
  521. }else if(this.row.length === 0){
  522. this.relevantAttachments = []
  523. }else {
  524. this.relevantAttachments = []
  525. }
  526. },
  527. // handleClose(done) {
  528. // this.$confirm('确认关闭?')
  529. // .then(_ => {
  530. // done();
  531. //
  532. // })
  533. // .catch(_ => {});
  534. // },
  535. /** 重置按钮操作 */
  536. resetQuery() {
  537. this.queryParam = {
  538. fNo:'',
  539. fTypeid:'',
  540. cntrsize:'',
  541. fOwner:'',
  542. fUpdateef:'',
  543. fCntrstatus:''
  544. };
  545. this.search();
  546. },
  547. //搜索
  548. search(){
  549. let querDates = Object.assign(this.querDate ,this.queryParam)
  550. console.log(this.queryParam)
  551. addmodify(querDates).then(response=>{
  552. this.corpsList = response.rows
  553. })
  554. },
  555. //模糊查询地点
  556. addressMethod(){
  557. let queryParams = { pageNum: 1,};
  558. getaddress(queryParams).then(response=>{
  559. this.addressOptions = response.rows
  560. })
  561. },
  562. //提交修改数据
  563. determine(){
  564. let data = []
  565. for(let item in this.select) {
  566. console.log(this.select[item])
  567. for(let li in this.corpsList) {
  568. if(!this.select[item].foldSite){
  569. this.$message.error("选择调入地点")
  570. return false
  571. }else {
  572. if (!this.select[item].foldFUpdateef) {
  573. this.select[item].foldFUpdateef = this.corpsList[li].updateEFName
  574. this.$set(this.select[item],'FUpdateef',this.corpsList[li].fUpdateef)
  575. }
  576. if (!this.select[item].foldFCntrstatus) {
  577. this.select[item].foldFCntrstatus = this.corpsList[li].cntrstatusName
  578. this.$set(this.select[item],'FCntrstatus',this.corpsList[li].fCntrstatus)
  579. }
  580. }
  581. }
  582. data.push({
  583. fId: this.select[item].fId,
  584. foldSite: this.select[item].fold,
  585. foldFUpdateef: this.select[item].FUpdateef,
  586. foldFCntrstatus: this.select[item].FCntrstatus,
  587. foldtime: this.select[item].foldtime,
  588. fVsl: this.select[item].fVsl,
  589. fVoy:this.select[item].fVoy,
  590. fMblno:this.select[item].fMblno,
  591. fOpctnstatus:this.select[item].boxAdjustmentAction,
  592. remark:this.select[item].remark,
  593. accessoryList:this.file
  594. })
  595. }
  596. let tCntrno = data
  597. listCorps(tCntrno).then(response =>{
  598. this.$message.success("提交成功")
  599. // this.$router.push({
  600. // path: "/containerNews/boxDistribution",
  601. // });
  602. console.log(this.corpsList.length)
  603. if(this.querDate){
  604. addmodify(this.querDate).then(response =>{
  605. this.corpsList = response.rows
  606. this.loading = false;
  607. if(response.rows.length === 0){
  608. let view = {
  609. fullPath: "/containerNews/modifyPage?data=%7B%22typeidName%22%3A%221%22,%22fUpdateaddress%22%3A%22%E5%B1%B1%E4%B8%9C%22%7D",
  610. hash: "",
  611. matched: Array(2),
  612. meta: Object,
  613. name: "ModifyPage",
  614. params: Object,
  615. path: "/containerNews/modifyPage",
  616. query: Object,
  617. title: "修改页面"
  618. }
  619. this.$router.push({ path: '/containerNews/boxDistribution'})
  620. this.$store.dispatch('tagsView/delView', view).then(({ visitedViews }) => {
  621. if (this.isActive(view)) {
  622. this.toLastView(visitedViews, view)
  623. }
  624. })
  625. Global.$emit("removeCache", "closeSelectedTag", view);
  626. }
  627. })
  628. }
  629. console.log(this.corpsList.length)
  630. })
  631. },
  632. //地点带入
  633. bringIn(value,row){
  634. for(let item in this.select){
  635. for(let li in this.addressOptions){
  636. if(this.queryParams.fUpdateaddress == this.addressOptions[li].fId){
  637. this.$set(this.select[item],'foldSite',this.addressOptions[li].fName)
  638. this.$set(this.select[item],'fold',this.queryParams.fUpdateaddress)
  639. }
  640. }
  641. // this.select[item].foldSite = value
  642. }
  643. },
  644. //空重带入选中列表
  645. changeUpdateEF(){
  646. for(let item in this.select){
  647. for(let li in this.updateEFOptions){
  648. if(this.queryParams.fUpdateEF == this.updateEFOptions[li].dictValue){
  649. this.$set(this.select[item],'foldFUpdateef',this.updateEFOptions[li].dictLabel)
  650. this.$set(this.select[item],'FUpdateef',this.queryParams.fUpdateEF)
  651. }
  652. }
  653. }
  654. },
  655. //调箱动作带入选中列表
  656. changeAction(){
  657. for(let item in this.select){
  658. for(let li in this.boxActionOptions){
  659. if(this.queryParams.fOpctnstatus == this.boxActionOptions[li].dictValue){
  660. this.$set(this.select[item],'fOpctnstatus',this.boxActionOptions[li].dictLabel)
  661. this.$set(this.select[item],'boxAdjustmentAction',this.queryParams.fOpctnstatus)
  662. }
  663. }
  664. }
  665. },
  666. //状态带入选中列表
  667. changeStatus(){
  668. for(let item in this.select) {
  669. for (let li in this.cntrstatusOptions) {
  670. if(this.queryParams.fStatus == this.cntrstatusOptions[li].dictValue)
  671. this.$set(this.select[item], 'foldFCntrstatus', this.cntrstatusOptions[li].dictLabel)
  672. this.$set(this.select[item], 'FCntrstatus', this.queryParams.fStatus)
  673. }
  674. }
  675. },
  676. //时间带入选列表
  677. changeDate(){
  678. for(let item in this.select){
  679. this.$set(this.select[item],'foldtime',this.queryParams.fBdate)
  680. }
  681. },
  682. //多选框选中
  683. handleSelectionChange(selection) {
  684. this.ids = selection.map(item => item.fId)
  685. this.select = selection
  686. console.log(this.select)
  687. },
  688. }
  689. };
  690. </script>
  691. <style lang="scss" scoped>
  692. </style>