fix:fmlog层组日志返工可选择返修品
This commit is contained in:
parent
6d23a57746
commit
d97aa84768
|
@ -21,8 +21,9 @@
|
||||||
<el-form-item label="批次号" prop="wm_in">
|
<el-form-item label="批次号" prop="wm_in">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.wm_in"
|
v-model="form.wm_in"
|
||||||
placeholder="交接物料"
|
placeholder="交接物料批次号"
|
||||||
class="width100"
|
class="width100"
|
||||||
|
filterable
|
||||||
@change="changeMaterial"
|
@change="changeMaterial"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -342,6 +343,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
is_fix: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
title() {
|
title() {
|
||||||
|
@ -504,14 +509,18 @@ export default {
|
||||||
//获取车间物料
|
//获取车间物料
|
||||||
getMaterial() {
|
getMaterial() {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.wmaterial.list.req({
|
let params = {};
|
||||||
mtaskx:that.mtask,
|
params.mtaskx = that.mtask;
|
||||||
mgroup: that.mgroup,
|
params.mgroup = that.mgroup;
|
||||||
material: that.material_in,
|
params.tag = 'todo';
|
||||||
tag:'todo',
|
params.page = 0;
|
||||||
page: 0,
|
if(that.is_fix){
|
||||||
state:10
|
params.state = 30;
|
||||||
}).then((res) => {
|
}else{
|
||||||
|
params.state = 10;
|
||||||
|
params.material = that.material_in;
|
||||||
|
}
|
||||||
|
that.$API.wpm.wmaterial.list.req(params).then((res) => {
|
||||||
that.materialOptions = res;
|
that.materialOptions = res;
|
||||||
if(that.codeText!==''){
|
if(that.codeText!==''){
|
||||||
res.forEach(item=>{
|
res.forEach(item=>{
|
||||||
|
|
|
@ -123,6 +123,7 @@
|
||||||
:fmlog="fmlogId"
|
:fmlog="fmlogId"
|
||||||
:mgroup="mgroup"
|
:mgroup="mgroup"
|
||||||
:route="route"
|
:route="route"
|
||||||
|
:is_fix="is_fix"
|
||||||
:process="processId"
|
:process="processId"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
@closed="dialog.save = false"
|
@closed="dialog.save = false"
|
||||||
|
@ -210,6 +211,7 @@ export default {
|
||||||
batchContains:[],
|
batchContains:[],
|
||||||
test_file:'',
|
test_file:'',
|
||||||
deptId: "",
|
deptId: "",
|
||||||
|
is_fix:false,
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
printVisible:false,
|
printVisible:false,
|
||||||
|
@ -250,6 +252,7 @@ export default {
|
||||||
that.$API.wpm.fmlog.item.req(that.fmlogId).then((res) => {
|
that.$API.wpm.fmlog.item.req(that.fmlogId).then((res) => {
|
||||||
that.fmlogItem = res;
|
that.fmlogItem = res;
|
||||||
that.route = res.route;
|
that.route = res.route;
|
||||||
|
that.is_fix = res.is_fix;
|
||||||
that.paramsWm.mgroup = res.mgroup;
|
that.paramsWm.mgroup = res.mgroup;
|
||||||
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
||||||
that.getMlogs();
|
that.getMlogs();
|
||||||
|
|
Loading…
Reference in New Issue