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