Browse Source

备品备件

java8
ruanqi 11 months ago
parent
commit
227e78e368
  1. 5
      src/api/ecss/ecss.js
  2. 106
      src/views/modules/ecss/codelnotify.vue
  3. 1042
      src/views/modules/ecss/codelnotifyConfirm.vue

5
src/api/ecss/ecss.js

@ -15,3 +15,8 @@ export const changeEcssDelStatus = data => createAPI(`/ecss/coDel/changeEcssDelS
export const updateEcssDelDetail= data => createAPI(`/ecss/coDel/updateEcssDelDetail`,'post',data)
export const deleteEcssDelDetail= data => createAPI(`/ecss/coDel/deleteEcssDelDetail`,'post',data)
export const confirmEcssDel= data => createAPI(`/ecss/coDel/confirmEcssDel`,'post',data)
export const cancerConfirmEcssDel= data => createAPI(`/ecss/coDel/cancerConfirmEcssDel`,'post',data)

106
src/views/modules/ecss/codelnotify.vue

@ -1,8 +1,55 @@
<template>
<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-table
@ -83,7 +130,7 @@
label="操作">
<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="deleteNotifySOS(scope.row)">删除</a>
<a v-if="currentRow.notifyStatus==='已计划'" type="text" size="small" @click="deleteDelDetail(scope.row)">删除</a>
</template>
</el-table-column>
</el-table>
@ -305,7 +352,9 @@
deleteEcssDelHeader,
changeEcssDelStatus,
updateEcssDelDetail,
deleteEcssDelDetail,
}from "@/api/ecss/ecss.js"
import {getAllBuList}from '@/api/factory/site.js'
export default {
name: "null",
components:{
@ -317,14 +366,20 @@
pageSize: 100,
totalPage: 0,
height: 200,
buList:[],
dataList:[],
dataList2:[],
dataListLoading: false,
searchData: {
page: 1,
limit: 100,
site:this.$store.state.user.site,
buNo:'',
delNo:'',
cmcInvoice:'',
notifyStatus:'',
startDate:'',
endDate:'',
username:this.$store.state.user.name,
},
buttons:{
search:'查询',
@ -1130,7 +1185,7 @@
this.refreshCurrentTabTable()
},
updateHeaderModelDo(row){
this.updateHeaderModel=row
this.updateHeaderModel=JSON.parse(JSON.stringify(row));
this.updateHeaderModelFlag=true
},
doUpdateHeader(){
@ -1245,7 +1300,7 @@
}
updateEcssDelDetail(this.updateDetailModel).then(({data}) => {
if (data && data.code === 0) {
this.searchTable()
this.refreshCurrentTabTable()
this.updateDetailModelFlag=false
this.$message({
message: '操作成功',
@ -1261,12 +1316,41 @@
})
},
openUpdateDetailModel(row){
this.updateDetailModel=row
this.updateDetailModel=JSON.parse(JSON.stringify(row));
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() {
this.getBu ()
}
}
</script>

1042
src/views/modules/ecss/codelnotifyConfirm.vue
File diff suppressed because it is too large
View File

Loading…
Cancel
Save