|
|
@ -1,7 +1,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import {queryList} from "../../../api/inventory/materialIssue"; |
|
|
import {queryList} from "../../../api/inventory/materialIssue"; |
|
|
import th from "element-ui/src/locale/lang/th"; |
|
|
import th from "element-ui/src/locale/lang/th"; |
|
|
import {issueNotifyPageSearch, queryPickDetailList} from "../../../api/issueNotify/issueNotify"; |
|
|
|
|
|
|
|
|
import {issueNotifyPageSearch, pickDetailIssued, queryPickDetailList} from "../../../api/issueNotify/issueNotify"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'MaterialIssue', |
|
|
name: 'MaterialIssue', |
|
|
@ -187,7 +187,8 @@ export default { |
|
|
currentRow:{ |
|
|
currentRow:{ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
selectionPickDetailList:[], |
|
|
|
|
|
issuedLoading:false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
@ -244,6 +245,28 @@ export default { |
|
|
this.queryParams.limit = val; |
|
|
this.queryParams.limit = val; |
|
|
this.queryList(); |
|
|
this.queryList(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
handleSelectionChange(val){ |
|
|
|
|
|
this.selectionPickDetailList = val |
|
|
|
|
|
}, |
|
|
|
|
|
handlePickDetailIssued(){ |
|
|
|
|
|
if (this.selectionPickDetailList.length === 0) { |
|
|
|
|
|
this.$message.warning("请选择需要发料的清单") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
this.issuedLoading = true; |
|
|
|
|
|
pickDetailIssued(this.selectionPickDetailList).then(({data})=>{ |
|
|
|
|
|
if (data && data.code === 0) { |
|
|
|
|
|
this.handleQueryPickDetail(this.currentRow) |
|
|
|
|
|
this.$message.success(data.msg); |
|
|
|
|
|
}else { |
|
|
|
|
|
this.$message.error(data.msg); |
|
|
|
|
|
} |
|
|
|
|
|
this.issuedLoading = false; |
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
|
this.$message.error(error) |
|
|
|
|
|
this.issuedLoading = false; |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch:{ |
|
|
watch:{ |
|
|
queryLoading(newValue){ |
|
|
queryLoading(newValue){ |
|
|
@ -260,6 +283,13 @@ export default { |
|
|
},30000) |
|
|
},30000) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
issuedLoading(newValue){ |
|
|
|
|
|
if (newValue){ |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
this.issuedLoading = false; |
|
|
|
|
|
},30000) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
@ -373,13 +403,18 @@ export default { |
|
|
<el-col :span="3"> |
|
|
<el-col :span="3"> |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-button type="primary" @click="queryPickDetailList(currentRow)">查询</el-button> |
|
|
<el-button type="primary" @click="queryPickDetailList(currentRow)">查询</el-button> |
|
|
<el-button type="primary" >发料</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" :loading="issuedLoading" @click="handlePickDetailIssued">发料</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
</el-form> |
|
|
</el-form> |
|
|
<div class="rq"> |
|
|
<div class="rq"> |
|
|
<el-table :data="pickDetailList" border height="300px" v-loading="pickDetailLoading"> |
|
|
|
|
|
|
|
|
<el-table :data="pickDetailList" border height="350px" v-loading="pickDetailLoading" @selection-change="handleSelectionChange"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="selection" |
|
|
|
|
|
width="55" |
|
|
|
|
|
align="center"> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column label="提货单号" prop="pickListNo" header-align="center" align="left" min-width="100px"/> |
|
|
<el-table-column label="提货单号" prop="pickListNo" header-align="center" align="left" min-width="100px"/> |
|
|
<el-table-column label="所需数量" prop="requireQty" header-align="center" align="right" min-width="80px"/> |
|
|
<el-table-column label="所需数量" prop="requireQty" header-align="center" align="right" min-width="80px"/> |
|
|
<el-table-column label="库存数量" prop="onHandQty" header-align="center" align="right" min-width="80px"/> |
|
|
<el-table-column label="库存数量" prop="onHandQty" header-align="center" align="right" min-width="80px"/> |
|
|
@ -391,7 +426,7 @@ export default { |
|
|
<el-table-column label="库位" prop="locationNo" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="库位" prop="locationNo" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="批次" prop="batchNo" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="批次" prop="batchNo" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="版本" prop="engChgLevel" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="版本" prop="engChgLevel" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="序号" prop="activitySeq" header-align="center" align="left" min-width="80px"/> |
|
|
|
|
|
|
|
|
<el-table-column label="序号" prop="serialNo" header-align="center" align="left" min-width="80px"/> |
|
|
<el-table-column label="下发数量" prop="issueQty" header-align="center" align="right" min-width="80px"> |
|
|
<el-table-column label="下发数量" prop="issueQty" header-align="center" align="right" min-width="80px"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-input-number v-model="scope.row.issueQty" :controls="false" :step="0" :min="0" style="width: 100%"></el-input-number> |
|
|
<el-input-number v-model="scope.row.issueQty" :controls="false" :step="0" :min="0" style="width: 100%"></el-input-number> |
|
|
|