Commit 2072d1d0 authored by 张海景's avatar 张海景

update:修改领用单传参

parent d6810e06
...@@ -191,8 +191,8 @@ ...@@ -191,8 +191,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col v-if="optType === 'add'" :span="12"> <el-col v-if="optType === 'add'" :span="12">
<el-form-item label="任务排产单" prop="taskId"> <el-form-item label="任务排产单" prop="taskWorkunitId">
<el-input v-model="form.taskId" placeholder="请选择任务排产单" <el-input v-model="form.taskWorkunitId" placeholder="请选择任务排产单"
disabled> disabled>
<el-button <el-button
v-if="optType === 'add'" v-if="optType === 'add'"
......
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
queryParams: { queryParams: {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
statusArr: '', // statusArr: '',
workorderType: 'SELF', workorderType: 'SELF',
// statusStr: 'PREPARE,BEGINNING,ISSUEGENERATED' // statusStr: 'PREPARE,BEGINNING,ISSUEGENERATED'
}, },
......
...@@ -58,7 +58,6 @@ ...@@ -58,7 +58,6 @@
<script> <script>
import { lisWoreHouseDetail } from "@/api/mes/tm/warehouse"; import { lisWoreHouseDetail } from "@/api/mes/tm/warehouse";
import { getTaskIdMaxProcessTool } from "@/api/mes/pro/protask";
import ItemSelect from "./selectmachinesrecord.vue"; import ItemSelect from "./selectmachinesrecord.vue";
export default { export default {
name: "TmToolRequestItem", name: "TmToolRequestItem",
...@@ -105,11 +104,7 @@ export default { ...@@ -105,11 +104,7 @@ export default {
}; };
}, },
watch: { watch: {
'$attrs.taskId'(newVal, oldVal){
if (this.$attrs.optType === 'add') {
this.getTaskList()
}
}
}, },
created() { created() {
if (this.$attrs.optType !== 'add') { if (this.$attrs.optType !== 'add') {
...@@ -149,25 +144,6 @@ export default { ...@@ -149,25 +144,6 @@ export default {
this.loading = false; this.loading = false;
}); });
}, },
/** 查询任务刀模板申请单列表 */
getTaskList() {
this.loading = true;
this.queryParams.taskId = this.$attrs.taskId;
this.queryParams.pageSize = 10000;
getTaskIdMaxProcessTool(this.queryParams).then(response => {
const datas = response.data.map(item => {
return {
...item,
allQuantity: item.AllQuantity
}
});
this.tmToolRequestItemList = this.tmToolRequestItemList.concat(datas)
// this.total = response.total;
this.loading = false;
this.$emit('sum')
});
},
handleRemove(row, index) { handleRemove(row, index) {
console.log(row,index) console.log(row,index)
// this.tags.splice(this.tags.indexOf(tag), 1) // this.tags.splice(this.tags.indexOf(tag), 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment