|
|
@ -1,8 +1,55 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="mod-config"> |
|
|
<div class="mod-config"> |
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: -10px;"> |
|
|
|
|
|
<el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 33px">{{'查询'}}</el-button> |
|
|
|
|
|
<el-button @click="importModel()" type="primary" style="margin-left: 2px;margin-top: 33px">{{'导入'}}</el-button> |
|
|
|
|
|
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
|
|
<el-form-item :label="'BU:'"> |
|
|
|
|
|
<el-select v-model="searchData.buNo" placeholder="请选择" > |
|
|
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for = "i in buList" |
|
|
|
|
|
:key = "i.buNo" |
|
|
|
|
|
:label = "i.buDesc" |
|
|
|
|
|
:value = "i.buNo"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'发货通知单:'"> |
|
|
|
|
|
<el-input v-model="searchData.delNo" style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'CMC Invoice:'"> |
|
|
|
|
|
<el-input v-model="searchData.cmcInvoice" style="width: 120px"></el-input> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'通知单状态:'"> |
|
|
|
|
|
<el-select filterable v-model="searchData.notifyStatus" style="width: 120px"> |
|
|
|
|
|
<el-option label="全部" value=""></el-option> |
|
|
|
|
|
<el-option label="已计划" value="已计划"></el-option> |
|
|
|
|
|
<el-option label="已下达" value="已下达"></el-option> |
|
|
|
|
|
<el-option label="仓库已确认" value="仓库已确认"></el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'ReadyDate'" > |
|
|
|
|
|
<el-date-picker |
|
|
|
|
|
style="width: 120px" |
|
|
|
|
|
v-model="searchData.startDate" |
|
|
|
|
|
type="date" |
|
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
|
placeholder="选择日期"> |
|
|
|
|
|
</el-date-picker> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="'to'" > |
|
|
|
|
|
<el-date-picker |
|
|
|
|
|
style="width: 120px" |
|
|
|
|
|
v-model="searchData.endDate" |
|
|
|
|
|
type="date" |
|
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
|
placeholder="选择日期"> |
|
|
|
|
|
</el-date-picker> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item :label="' '" > |
|
|
|
|
|
<el-button @click="searchTable()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'查询'}}</el-button> |
|
|
|
|
|
<el-button @click="importModel()" type="primary" style="margin-left: 2px;margin-top: 0px">{{'导入'}}</el-button> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
|
|
|
|
|
|
<el-table |
|
|
<el-table |
|
|
@ -83,7 +130,7 @@ |
|
|
label="操作"> |
|
|
label="操作"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="openUpdateDetailModel(scope.row)">修改</a> |
|
|
<a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="openUpdateDetailModel(scope.row)">修改</a> |
|
|
<a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="deleteNotifySOS(scope.row)">删除</a> |
|
|
|
|
|
|
|
|
<a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="deleteDelDetail(scope.row)">删除</a> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
@ -305,7 +352,9 @@ |
|
|
deleteEcssDelHeader, |
|
|
deleteEcssDelHeader, |
|
|
changeEcssDelStatus, |
|
|
changeEcssDelStatus, |
|
|
updateEcssDelDetail, |
|
|
updateEcssDelDetail, |
|
|
|
|
|
deleteEcssDelDetail, |
|
|
}from "@/api/ecss/ecss.js" |
|
|
}from "@/api/ecss/ecss.js" |
|
|
|
|
|
import {getAllBuList}from '@/api/factory/site.js' |
|
|
export default { |
|
|
export default { |
|
|
name: "null", |
|
|
name: "null", |
|
|
components:{ |
|
|
components:{ |
|
|
@ -317,14 +366,20 @@ |
|
|
pageSize: 100, |
|
|
pageSize: 100, |
|
|
totalPage: 0, |
|
|
totalPage: 0, |
|
|
height: 200, |
|
|
height: 200, |
|
|
|
|
|
buList:[], |
|
|
dataList:[], |
|
|
dataList:[], |
|
|
dataList2:[], |
|
|
dataList2:[], |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
searchData: { |
|
|
searchData: { |
|
|
page: 1, |
|
|
page: 1, |
|
|
limit: 100, |
|
|
limit: 100, |
|
|
site:this.$store.state.user.site, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
buNo:'', |
|
|
|
|
|
delNo:'', |
|
|
|
|
|
cmcInvoice:'', |
|
|
|
|
|
notifyStatus:'', |
|
|
|
|
|
startDate:'', |
|
|
|
|
|
endDate:'', |
|
|
|
|
|
username:this.$store.state.user.name, |
|
|
}, |
|
|
}, |
|
|
buttons:{ |
|
|
buttons:{ |
|
|
search:'查询', |
|
|
search:'查询', |
|
|
@ -1130,7 +1185,7 @@ |
|
|
this.refreshCurrentTabTable() |
|
|
this.refreshCurrentTabTable() |
|
|
}, |
|
|
}, |
|
|
updateHeaderModelDo(row){ |
|
|
updateHeaderModelDo(row){ |
|
|
this.updateHeaderModel=row |
|
|
|
|
|
|
|
|
this.updateHeaderModel=JSON.parse(JSON.stringify(row)); |
|
|
this.updateHeaderModelFlag=true |
|
|
this.updateHeaderModelFlag=true |
|
|
}, |
|
|
}, |
|
|
doUpdateHeader(){ |
|
|
doUpdateHeader(){ |
|
|
@ -1245,7 +1300,7 @@ |
|
|
} |
|
|
} |
|
|
updateEcssDelDetail(this.updateDetailModel).then(({data}) => { |
|
|
updateEcssDelDetail(this.updateDetailModel).then(({data}) => { |
|
|
if (data && data.code === 0) { |
|
|
if (data && data.code === 0) { |
|
|
this.searchTable() |
|
|
|
|
|
|
|
|
this.refreshCurrentTabTable() |
|
|
this.updateDetailModelFlag=false |
|
|
this.updateDetailModelFlag=false |
|
|
this.$message({ |
|
|
this.$message({ |
|
|
message: '操作成功', |
|
|
message: '操作成功', |
|
|
@ -1261,12 +1316,41 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
openUpdateDetailModel(row){ |
|
|
openUpdateDetailModel(row){ |
|
|
this.updateDetailModel=row |
|
|
|
|
|
|
|
|
this.updateDetailModel=JSON.parse(JSON.stringify(row)); |
|
|
this.updateDetailModelFlag=true |
|
|
this.updateDetailModelFlag=true |
|
|
|
|
|
}, |
|
|
|
|
|
deleteDelDetail(row){ |
|
|
|
|
|
this.$confirm('确认删除此明细?', '提示').then(() => { |
|
|
|
|
|
deleteEcssDelDetail(row).then(({data}) => { |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.refreshCurrentTabTable() |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
message: '操作成功', |
|
|
|
|
|
type: 'success', |
|
|
|
|
|
duration: 1500, |
|
|
|
|
|
onClose: () => {} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
|
|
confirmButtonText: '确定' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
getBu () { |
|
|
|
|
|
let tempData = { |
|
|
|
|
|
username: this.$store.state.user.name, |
|
|
|
|
|
} |
|
|
|
|
|
getAllBuList(tempData).then(({data}) => { |
|
|
|
|
|
if (data.code === 0) { |
|
|
|
|
|
this.buList = data.rows |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
|
|
|
|
|
|
|
|
|
|
this.getBu () |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|