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