|
@@ -3,9 +3,9 @@
|
|
|
<basic-container>
|
|
|
<avue-crud :option="option" :table-loading="loading" :data="assemblyForm.containersList"
|
|
|
:permission="permissionList" :before-open="beforeOpen" v-model="form" id="out-table"
|
|
|
- :header-cell-class-name="headerClassName" ref="crud" :row-style="{ height: '20px' }" :cell-style="{ padding: '0px' }"
|
|
|
- @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel" @selection-change="selectionChange"
|
|
|
- @refresh-change="refreshChange">
|
|
|
+ :header-cell-class-name="headerClassName" ref="crud" :row-style="{ height: '20px' }"
|
|
|
+ :cell-style="{ padding: '0px' }" @row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel"
|
|
|
+ @selection-change="selectionChange" @refresh-change="refreshChange">
|
|
|
<template slot="menuLeft">
|
|
|
<div style="display: flex;align-items: center;justify-content: space-between">
|
|
|
<div>
|
|
@@ -18,22 +18,31 @@
|
|
|
<!-- :disabled="detailData.seeDisabled || pleasereviewType"-->
|
|
|
<!-- @click="wholeRevokefun">全部撤销-->
|
|
|
<!--</el-button>-->
|
|
|
- <el-button type="warning" size="small" :disabled="detailData.seeDisabled || pleasereviewType||disabled"
|
|
|
+ <!-- <el-button type="warning" size="small" :disabled="detailData.seeDisabled || pleasereviewType || disabled"
|
|
|
@click="cleanCntrNofun">清除箱号
|
|
|
+ </el-button> -->
|
|
|
+ <el-button type="success" size="small" plain :disabled="seeDisabled" @click.stop="equalDistribution2()">配箱
|
|
|
</el-button>
|
|
|
- <el-button type="info" plain size="small" :disabled="detailData.seeDisabled || pleasereviewType||disabled"
|
|
|
+ <el-button type="primary" size="small" :disabled="detailData.seeDisabled || pleasereviewType || showLock"
|
|
|
@click="oneclickEditing">一键编辑
|
|
|
</el-button>
|
|
|
- <el-button type="primary" size="small" :disabled="detailData.seeDisabled || pleasereviewType||disabled"
|
|
|
+ <el-button type="primary" size="small" :disabled="detailData.seeDisabled || pleasereviewType || disabled"
|
|
|
@click="containersSubmitListfun">一键保存
|
|
|
</el-button>
|
|
|
- <el-button type="danger" size="small" :disabled="detailData.seeDisabled || pleasereviewType||disabled"
|
|
|
+ <!-- <el-button type="danger" size="small" :disabled="detailData.seeDisabled || pleasereviewType || disabled"
|
|
|
@click="handleDelete">一键删除
|
|
|
- </el-button>
|
|
|
+ </el-button> -->
|
|
|
<el-button type="success" size="small"
|
|
|
- :disabled="detailData.seeDisabled || !assemblyForm.id || pleasereviewType||disabled"
|
|
|
- @click="excelBox = true">导入箱号,铅封号
|
|
|
+ :disabled="detailData.seeDisabled || !assemblyForm.id || pleasereviewType || showLock"
|
|
|
+ @click="oepnexcelBox">导入箱号铅封号
|
|
|
</el-button>
|
|
|
+ <el-button type="danger" size="small" :disabled="detailData.seeDisabled || pleasereviewType || showLock"
|
|
|
+ @click="handleDelete">删除配箱
|
|
|
+ </el-button>
|
|
|
+ <!-- <el-button type="success" size="small"
|
|
|
+ :disabled="detailData.seeDisabled || !assemblyForm.id || pleasereviewType || disabled"
|
|
|
+ @click="excelBox = true">导入箱号,铅封号
|
|
|
+ </el-button> -->
|
|
|
<!--<el-button type="warning" size="small"-->
|
|
|
<!-- :disabled="numberfalsefun() || assemblyForm.id"-->
|
|
|
<!-- @click="equalDistribution">平均分配</el-button>-->
|
|
@@ -125,7 +134,7 @@ import {
|
|
|
containersRemove,
|
|
|
containersCleanBoxNo,
|
|
|
containersRevoke,
|
|
|
- containersEqualDistribution,
|
|
|
+ distributionBox,
|
|
|
containersSubmitList,
|
|
|
containersExportContainers, containersImportBoxNo, containersList
|
|
|
} from "@/api/iosBasicData/containers";
|
|
@@ -144,7 +153,7 @@ export default {
|
|
|
pleasereviewType: {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
- },
|
|
|
+ },
|
|
|
disabled: {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
@@ -319,6 +328,17 @@ export default {
|
|
|
this.assemblyForm.containersList = res.data.data.records
|
|
|
})
|
|
|
},
|
|
|
+ oepnexcelBox() {
|
|
|
+ if (!this.assemblyForm.id) {
|
|
|
+ this.$message({
|
|
|
+ message: '请先点击右上角保存按钮,保存数据之后才能添加!',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.findObject(this.excelOption.column, "excelFile").action = "/api/blade-los/containers/importBoxNo?billId=" + this.assemblyForm.id
|
|
|
+ this.excelBox = true
|
|
|
+ },
|
|
|
// 下载模板
|
|
|
handleGet() {
|
|
|
window.open(
|
|
@@ -450,7 +470,29 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ equalDistribution2() {
|
|
|
+ if (!this.assemblyForm.id) {
|
|
|
+ this.$message({
|
|
|
+ message: '请先点击右上角保存按钮,保存数据之后才能添加!',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$confirm("是否确认配箱?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ distributionBox({ billId: this.assemblyForm.id }).then(res => {
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "操作成功!"
|
|
|
+ })
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
+ },
|
|
|
rowSave(row, done, loading) {
|
|
|
containersSubmit(row).then(() => {
|
|
|
// this.onLoad(this.page);
|