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

update:修改领用单传参

parent d6810e06
......@@ -191,8 +191,8 @@
</el-form-item>
</el-col>
<el-col v-if="optType === 'add'" :span="12">
<el-form-item label="任务排产单" prop="taskId">
<el-input v-model="form.taskId" placeholder="请选择任务排产单"
<el-form-item label="任务排产单" prop="taskWorkunitId">
<el-input v-model="form.taskWorkunitId" placeholder="请选择任务排产单"
disabled>
<el-button
v-if="optType === 'add'"
......
......@@ -222,7 +222,7 @@ export default {
queryParams: {
pageNum: 1,
pageSize: 10,
statusArr: '',
// statusArr: '',
workorderType: 'SELF',
// statusStr: 'PREPARE,BEGINNING,ISSUEGENERATED'
},
......
......@@ -58,7 +58,6 @@
<script>
import { lisWoreHouseDetail } from "@/api/mes/tm/warehouse";
import { getTaskIdMaxProcessTool } from "@/api/mes/pro/protask";
import ItemSelect from "./selectmachinesrecord.vue";
export default {
name: "TmToolRequestItem",
......@@ -105,11 +104,7 @@ export default {
};
},
watch: {
'$attrs.taskId'(newVal, oldVal){
if (this.$attrs.optType === 'add') {
this.getTaskList()
}
}
},
created() {
if (this.$attrs.optType !== 'add') {
......@@ -149,25 +144,6 @@ export default {
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) {
console.log(row,index)
// 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