md
This commit is contained in:
parent
4508ca672f
commit
6f581abefa
@ -4,10 +4,10 @@
|
|||||||
<div class="tab-container">
|
<div class="tab-container">
|
||||||
<el-tabs v-model="activeTab" class="center-tabs" @tab-click="handleTabsClick" @tab-remove="removeTab">
|
<el-tabs v-model="activeTab" class="center-tabs" @tab-click="handleTabsClick" @tab-remove="removeTab">
|
||||||
<el-tab-pane label="货物组批次列表" name="billList" >
|
<el-tab-pane label="货物组批次列表" name="billList" >
|
||||||
<BigBatchListPanel ref="refBatchList" @onCreate="onCreateBatch" @onUpdate="onUpdateBatch" @onView="onViewBatch"> </BigBatchListPanel>
|
<BigBatchListPanel ref="refBatchList" @onCreate="onCreateBatch" @onUpdate="onUpdateBatch" @onCopy="onCopyBatch" @onView="onViewBatch"> </BigBatchListPanel>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="批次编辑" name="batchEdit" v-if="openEditForm" closable="" >
|
<el-tab-pane :label="editTabTitle" name="batchEdit" v-if="openEditForm" closable="" >
|
||||||
<BigBatchEditForm :key="'batchEdit_'+batchId" :batchId="batchId" @on-changed="handleFormChanged" @on-cancel="cancelForm"></BigBatchEditForm>
|
<BigBatchEditForm :key="'batchEdit_'+batchId" :batchId="batchId" :isCopy="isCopy" @on-changed="handleFormChanged" @on-cancel="cancelForm"></BigBatchEditForm>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="批次查看" name="batchView" v-if="openViewForm" closable >
|
<el-tab-pane label="批次查看" name="batchView" v-if="openViewForm" closable >
|
||||||
<BigBatchEditForm :key="'batchView_'+batchId" :batchId="batchId" disabled ></BigBatchEditForm>
|
<BigBatchEditForm :key="'batchView_'+batchId" :batchId="batchId" disabled ></BigBatchEditForm>
|
||||||
@ -39,6 +39,8 @@ export default {
|
|||||||
openEditForm:false,
|
openEditForm:false,
|
||||||
openViewForm:false,
|
openViewForm:false,
|
||||||
batchId:null,
|
batchId:null,
|
||||||
|
isCopy:false,
|
||||||
|
editTabTitle:'批次编辑',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -50,16 +52,28 @@ export default {
|
|||||||
onCreateBatch(){
|
onCreateBatch(){
|
||||||
this.batchId=null;
|
this.batchId=null;
|
||||||
this.openEditForm=true;
|
this.openEditForm=true;
|
||||||
|
this.isCopy = false;
|
||||||
|
this.editTabTitle='批次创建';
|
||||||
this.activeTab='batchEdit';
|
this.activeTab='batchEdit';
|
||||||
},
|
},
|
||||||
onUpdateBatch(batchId){
|
onUpdateBatch(batchId){
|
||||||
this.batchId=batchId;
|
this.batchId=batchId;
|
||||||
|
this.isCopy = false;
|
||||||
this.openEditForm=true;
|
this.openEditForm=true;
|
||||||
|
this.editTabTitle='批次编辑';
|
||||||
this.activeTab='batchEdit';
|
this.activeTab='batchEdit';
|
||||||
|
|
||||||
},
|
},
|
||||||
|
onCopyBatch(batchId){
|
||||||
|
this.batchId=batchId;
|
||||||
|
this.openEditForm=true;
|
||||||
|
this.isCopy = true;
|
||||||
|
this.editTabTitle='批次复制';
|
||||||
|
this.activeTab='batchEdit';
|
||||||
|
},
|
||||||
onViewBatch(batchId){
|
onViewBatch(batchId){
|
||||||
this.batchId=batchId;
|
this.batchId=batchId;
|
||||||
|
this.isCopy = false;
|
||||||
this.openViewForm=true;
|
this.openViewForm=true;
|
||||||
this.activeTab='batchView';
|
this.activeTab='batchView';
|
||||||
},
|
},
|
||||||
|
|||||||
@ -384,6 +384,9 @@ export default {
|
|||||||
type:[Number,Array],
|
type:[Number,Array],
|
||||||
required: false
|
required: false
|
||||||
},
|
},
|
||||||
|
isCopy:{
|
||||||
|
type:Boolean
|
||||||
|
},
|
||||||
disabled: {
|
disabled: {
|
||||||
type:[Boolean],
|
type:[Boolean],
|
||||||
required: false
|
required: false
|
||||||
@ -664,6 +667,9 @@ export default {
|
|||||||
if(this.batchId !=null) {
|
if(this.batchId !=null) {
|
||||||
this.showBatchInfo(this.batchId);
|
this.showBatchInfo(this.batchId);
|
||||||
this.coPackType = "edit";
|
this.coPackType = "edit";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
this.reset();
|
this.reset();
|
||||||
|
|
||||||
@ -726,11 +732,11 @@ export default {
|
|||||||
this.$modal.msgError(response && response.msg || "未知错误");
|
this.$modal.msgError(response && response.msg || "未知错误");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// let resData = response.data;
|
|
||||||
// let time = {};
|
|
||||||
// time.carTime = resData.etd;
|
|
||||||
this.form = {...response.data};
|
this.form = {...response.data};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.emisCoPackDetail=[];
|
this.emisCoPackDetail=[];
|
||||||
let resList = await listEmisTmsSiteBatchDtl({batchNo: this.form.batchNo});
|
let resList = await listEmisTmsSiteBatchDtl({batchNo: this.form.batchNo});
|
||||||
if(!resList || resList.code != 200){
|
if(!resList || resList.code != 200){
|
||||||
@ -773,6 +779,14 @@ export default {
|
|||||||
this.currentId=null;
|
this.currentId=null;
|
||||||
this.openForm= true;
|
this.openForm= true;
|
||||||
this.titleForm = "修改组批次";
|
this.titleForm = "修改组批次";
|
||||||
|
|
||||||
|
if(this.isCopy){
|
||||||
|
let resPack = await getTmsGroupBatchNo();
|
||||||
|
this.form.batchNo = resPack.data;
|
||||||
|
this.form.id = null;
|
||||||
|
this.coPackType = "add";
|
||||||
|
this.form.batchDate=parseTime(new Date());
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getWaybillList(){
|
getWaybillList(){
|
||||||
|
|||||||
@ -106,6 +106,14 @@
|
|||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['emis:emisTmsSiteBatch:add']"
|
v-hasPermi="['emis:emisTmsSiteBatch:add']"
|
||||||
>新组批次</el-button>
|
>新组批次</el-button>
|
||||||
|
<el-button style="margin-right: 5px;"
|
||||||
|
type="danger"
|
||||||
|
plain
|
||||||
|
size="mini"
|
||||||
|
:disabled="single"
|
||||||
|
@click="handleCopy"
|
||||||
|
v-hasPermi="['emis:emisTmsSiteBatch:edit']"
|
||||||
|
>复制批次</el-button>
|
||||||
<el-button style="margin-right: 5px;"
|
<el-button style="margin-right: 5px;"
|
||||||
type="danger"
|
type="danger"
|
||||||
plain
|
plain
|
||||||
@ -479,6 +487,9 @@ export default {
|
|||||||
// let id = this.ids[0]
|
// let id = this.ids[0]
|
||||||
this.$emit("onUpdate",this.ids);
|
this.$emit("onUpdate",this.ids);
|
||||||
},
|
},
|
||||||
|
handleCopy() {
|
||||||
|
this.$emit("onCopy",this.ids);
|
||||||
|
},
|
||||||
handleShowBatchInfo(row){
|
handleShowBatchInfo(row){
|
||||||
this.$emit("onView",row.id);
|
this.$emit("onView",row.id);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user