|
@@ -23,8 +23,8 @@
|
|
|
<el-button type="danger" size="small" :disabled="detailData.seeDisabled" @click="revokefun">撤销</el-button>
|
|
|
<el-button type="danger" size="small" :disabled="detailData.seeDisabled" @click="wholeRevokefun">全部撤销</el-button>
|
|
|
<el-button type="warning" size="small" :disabled="detailData.seeDisabled" @click="cleanCntrNofun">清除箱号</el-button>
|
|
|
- <el-button type="primary" size="small" :disabled="detailData.seeDisabled" >批量保存</el-button>
|
|
|
- <el-button type="success" size="small" :disabled="detailData.seeDisabled" >导出导入模板</el-button>
|
|
|
+ <el-button type="primary" size="small" :disabled="detailData.seeDisabled" @click="containersSubmitListfun" >批量保存</el-button>
|
|
|
+ <el-button type="success" size="small" :disabled="detailData.seeDisabled" @click="containersExportContainersfun" >导出导入模板</el-button>
|
|
|
<el-button type="success" size="small" :disabled="detailData.seeDisabled" >导入箱号,铅封号</el-button>
|
|
|
|
|
|
<el-button type="warning" size="small"
|
|
@@ -100,12 +100,17 @@ import {
|
|
|
containersDetail,
|
|
|
containersSubmit,
|
|
|
containersRemove,
|
|
|
- containersCleanBoxNo, containersRevoke, containersEqualDistribution, containersSubmitList
|
|
|
+ containersCleanBoxNo,
|
|
|
+ containersRevoke,
|
|
|
+ containersEqualDistribution,
|
|
|
+ containersSubmitList,
|
|
|
+ containersExportContainers, containersImportBoxNo
|
|
|
} from "@/api/iosBasicData/containers";
|
|
|
import {mapGetters} from "vuex";
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
import bports from "@/views/iosBasicData/bports/index.vue";
|
|
|
import {bportsList} from "@/api/iosBasicData/bports";
|
|
|
+import {getToken} from "@/util/auth";
|
|
|
|
|
|
export default {
|
|
|
components: {SearchQuery,bports},
|
|
@@ -115,6 +120,7 @@ import {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ headers: { "Blade-Auth": "Bearer " + getToken() },
|
|
|
// 是否禁用
|
|
|
extendedDisabled:false,
|
|
|
// 装货港数据
|
|
@@ -322,12 +328,37 @@ import {
|
|
|
},
|
|
|
// 配箱批量保存
|
|
|
containersSubmitListfun(){
|
|
|
- containersSubmitList({
|
|
|
- containers:[]
|
|
|
- }).then(res=>{
|
|
|
- console.log(res,323)
|
|
|
+ this.$confirm("确定全部保存配箱?", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(()=>{
|
|
|
+ containersSubmitList(this.assemblyForm.containersList).then(res=>{
|
|
|
+ this.$message({
|
|
|
+ type: "success",
|
|
|
+ message: "全部撤销成功!"
|
|
|
+ });
|
|
|
+ this.$emit('billsDetailfun')
|
|
|
+ })
|
|
|
})
|
|
|
},
|
|
|
+ // 导出导入模板
|
|
|
+ containersExportContainersfun(){
|
|
|
+ this.$confirm('是否导出?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(()=>{
|
|
|
+ window.open(
|
|
|
+ `/api/blade-los/containers/exportContainers?${this.website.tokenHeader
|
|
|
+ }=${getToken()}&pid=${this.assemblyForm.id}`
|
|
|
+ );
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 导入箱号,铅封号
|
|
|
+ containersImportBoxNofun(){
|
|
|
+ // containersImportBoxNo
|
|
|
+ },
|
|
|
|
|
|
rowSave(row, done, loading) {
|
|
|
containersSubmit(row).then(() => {
|