fix:禅道37
This commit is contained in:
parent
cc391f27b0
commit
07f369198a
|
|
@ -485,6 +485,12 @@ export default {
|
|||
);
|
||||
},
|
||||
},
|
||||
defects:{
|
||||
name: "获取物料的缺陷列表",
|
||||
req: async function (data) {
|
||||
return await http.get(`${config.API_URL}/wpm/wmaterial/defects/`, data);
|
||||
},
|
||||
}
|
||||
},
|
||||
otherlog: {
|
||||
list: {
|
||||
|
|
|
|||
|
|
@ -217,6 +217,7 @@
|
|||
<template #default>
|
||||
<el-table ref="wprTable" id="wprTable" :height="wprTableHeight" hidePagination highlight-current-row border :data="wprList">
|
||||
<el-table-column label="产品编号" prop="number" min-width="100px"></el-table-column>
|
||||
<el-table-column label="对外编号" prop="number_out" min-width="100px"></el-table-column>
|
||||
<el-table-column label="记录数据" prop="oinfo">
|
||||
<template #default="scope">
|
||||
<div v-for="(item,index) in scope.row.oinfo" :key="item.id">
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
placeholder="物料状态"
|
||||
clearable
|
||||
@change="searchStateChange"
|
||||
style="width: 250px"
|
||||
style="width: 100px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in stateOptions"
|
||||
|
|
@ -22,12 +22,12 @@
|
|||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<!-- <el-select
|
||||
<el-select
|
||||
v-model="query.defect"
|
||||
placeholder="不合格项"
|
||||
clearable
|
||||
@change="searchDefectChange"
|
||||
style="width: 250px"
|
||||
style="width: 150px"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in defectOptions"
|
||||
|
|
@ -35,9 +35,9 @@
|
|||
:label="item.name"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select> -->
|
||||
</el-select>
|
||||
<el-input
|
||||
style="margin-right: 5px"
|
||||
style="width: 250px;margin-right: 5px"
|
||||
v-model="query.search"
|
||||
placeholder="名称"
|
||||
clearable
|
||||
|
|
@ -409,7 +409,10 @@ export default {
|
|||
methods: {
|
||||
//获取缺陷项
|
||||
getDefectOptions(){
|
||||
|
||||
let that = this;
|
||||
that.$API.wpm.wmaterial.defects.req({tag:'done',mgroup:that.mgroupId}).then((res) => {
|
||||
that.defectOptions = res;
|
||||
})
|
||||
},
|
||||
handleWatch(row) {
|
||||
let that = this;
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@
|
|||
<el-table-column prop="number" label="物料编号" fixed min-width="80px">
|
||||
<template #default="scope">
|
||||
<span v-if="mode == 'outs'">{{ scope.row.number }}</span>
|
||||
<span v-if="mode == 'outs'&&scope.row.number_out!==null">——{{ scope.row.number_out }}</span>
|
||||
<!-- <el-input v-if="scope.row.isEdit&&mode == 'outs'" v-model="scope.row.number" placeholder="物料编号"></el-input> -->
|
||||
<el-select
|
||||
v-if="scope.row.isEdit&&mode == 'ins'&&route_code!=='niuzhuan'"
|
||||
|
|
|
|||
Loading…
Reference in New Issue