fix:日志改动
This commit is contained in:
parent
4b02b7c00f
commit
2dfc51b67d
|
|
@ -94,6 +94,13 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="领用数量" prop="count_use">
|
<el-table-column label="领用数量" prop="count_use">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="主要批次" prop="is_main_batchin">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-tag :type="scope.row.parent==null ? 'success': 'info'">
|
||||||
|
{{scope.row.is_main_batchin==null ? '是' : '否'}}
|
||||||
|
</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="加工前不良" prop="count_pn_jgqbl">
|
<el-table-column label="加工前不良" prop="count_pn_jgqbl">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
|
@ -268,6 +275,7 @@
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:mlog="mlogId"
|
:mlog="mlogId"
|
||||||
:mgroup="mgroup"
|
:mgroup="mgroup"
|
||||||
|
:routeId ="routeId"
|
||||||
:tracking="tracking"
|
:tracking="tracking"
|
||||||
:materialIn="materialIn"
|
:materialIn="materialIn"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
|
|
@ -287,6 +295,7 @@
|
||||||
ref="checkDialogSingle"
|
ref="checkDialogSingle"
|
||||||
:mlogb="mlogb"
|
:mlogb="mlogb"
|
||||||
:wm = "wm"
|
:wm = "wm"
|
||||||
|
:qct="qct"
|
||||||
@success="handlesCheckSuccess"
|
@success="handlesCheckSuccess"
|
||||||
@closed="dialog.check_single = false"
|
@closed="dialog.check_single = false"
|
||||||
>
|
>
|
||||||
|
|
@ -349,6 +358,7 @@ export default {
|
||||||
paramsIn: {
|
paramsIn: {
|
||||||
page: 0,
|
page: 0,
|
||||||
mlog: "",
|
mlog: "",
|
||||||
|
with_children:'yes',
|
||||||
material_in__isnull: 0,
|
material_in__isnull: 0,
|
||||||
},
|
},
|
||||||
paramsOut: {
|
paramsOut: {
|
||||||
|
|
@ -412,7 +422,8 @@ export default {
|
||||||
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
|
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
|
||||||
that.mlogItem = res;
|
that.mlogItem = res;
|
||||||
console.log('that.mlogItem',that.mlogItem);
|
console.log('that.mlogItem',that.mlogItem);
|
||||||
this.tracking = this.mlogItem.material_in_.tracking;
|
that.routeId = res.route;
|
||||||
|
that.tracking = res.material_in_.tracking;
|
||||||
if(res.test_file!==null){
|
if(res.test_file!==null){
|
||||||
that.fileList = [{name:res.test_file,url:res.test_file}];
|
that.fileList = [{name:res.test_file,url:res.test_file}];
|
||||||
that.form.test_file = res.test_file;
|
that.form.test_file = res.test_file;
|
||||||
|
|
@ -510,6 +521,7 @@ export default {
|
||||||
this.dialog.check_single = true;
|
this.dialog.check_single = true;
|
||||||
this.mlogb = row.id;
|
this.mlogb = row.id;
|
||||||
this.wm = row.wm_in;
|
this.wm = row.wm_in;
|
||||||
|
this.qct = row.qct;
|
||||||
let obj = {};
|
let obj = {};
|
||||||
Object.assign(obj, row);
|
Object.assign(obj, row);
|
||||||
obj.mgroup_name = this.mlogItem.mgroup_name;
|
obj.mgroup_name = this.mlogItem.mgroup_name;
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,22 @@
|
||||||
<el-form-item label="使用数量" prop="count_use">
|
<el-form-item label="使用数量" prop="count_use">
|
||||||
<el-input-number ref="codeInput" v-model="form.count_use" clearable></el-input-number>
|
<el-input-number ref="codeInput" v-model="form.count_use" clearable></el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<el-form-item label="主要批次">
|
||||||
|
<el-select
|
||||||
|
v-model="form.parent"
|
||||||
|
placeholder="主要批次"
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in mlogbInOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.batch"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-footer v-if="tracking == 10">
|
<el-footer v-if="tracking == 10">
|
||||||
<el-button type="primary" :loading="isSaveing" @click="submit">提交</el-button>
|
<el-button type="primary" :loading="isSaveing" @click="submit">提交</el-button>
|
||||||
|
|
@ -56,7 +72,8 @@ const defaultForm = {
|
||||||
batch: "",
|
batch: "",
|
||||||
wm_in: "",
|
wm_in: "",
|
||||||
count_use: 1,
|
count_use: 1,
|
||||||
note:''
|
note:'',
|
||||||
|
parent: "",
|
||||||
};
|
};
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -72,6 +89,10 @@ export default {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 10,
|
default: 10,
|
||||||
},
|
},
|
||||||
|
routeId:{
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
materialIn: {
|
materialIn: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
|
|
@ -100,24 +121,42 @@ export default {
|
||||||
},
|
},
|
||||||
wm_in:'',
|
wm_in:'',
|
||||||
options: [],
|
options: [],
|
||||||
|
mlogbInOptions:[],
|
||||||
materialOptions: [],
|
materialOptions: [],
|
||||||
mgroup_code:'',
|
mgroup_code:'',
|
||||||
visible: false,
|
visible: false,
|
||||||
isSaveing: false,
|
isSaveing: false,
|
||||||
setFiltersVisible: false,
|
setFiltersVisible: false,
|
||||||
|
params: {
|
||||||
|
page: 0,
|
||||||
|
mlog: "",
|
||||||
|
material_in__isnull: 0,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.form.mlog = this.mlog;
|
this.form.mlog = this.mlog;
|
||||||
|
this.params.mlog = this.mlog;
|
||||||
let arr = this.$route.path.split("/");
|
let arr = this.$route.path.split("/");
|
||||||
this.mgroup_code = arr[2];
|
this.mgroup_code = arr[2];
|
||||||
this.getMtask();
|
this.getMtask();
|
||||||
this.getMaterial();
|
this.getMaterial();
|
||||||
|
this.getParentList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
|
getParentList(){
|
||||||
|
let that = this;
|
||||||
|
that.$API.wpm.mlogb.list.req(that.params).then((res) => {
|
||||||
|
if(res.length>0){
|
||||||
|
that.mlogbInOptions = res.filter((item)=>{
|
||||||
|
return item.parent==null;
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//获取任务列表
|
//获取任务列表
|
||||||
getMtask() {
|
getMtask() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
@ -131,7 +170,7 @@ export default {
|
||||||
this.$API.wpm.wmaterial.list.req({
|
this.$API.wpm.wmaterial.list.req({
|
||||||
mtaskx: that.form.mtask,
|
mtaskx: that.form.mtask,
|
||||||
mgroupx: that.mgroup,
|
mgroupx: that.mgroup,
|
||||||
material: that.materialIn,
|
route: that.routeId,
|
||||||
page: 0,
|
page: 0,
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
that.materialOptions = res;
|
that.materialOptions = res;
|
||||||
|
|
@ -163,6 +202,9 @@ export default {
|
||||||
that.$message.success("添加成功");
|
that.$message.success("添加成功");
|
||||||
that.$emit("success");
|
that.$emit("success");
|
||||||
that.wm_in = '';
|
that.wm_in = '';
|
||||||
|
that.mtask = '';
|
||||||
|
that.batch = '';
|
||||||
|
that.parent = '';
|
||||||
}).catch((err) => {});
|
}).catch((err) => {});
|
||||||
},
|
},
|
||||||
//设置过滤项
|
//设置过滤项
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue