fix:玻纤日志相关调整
This commit is contained in:
parent
36a7c029b0
commit
295ed27bac
|
@ -241,6 +241,7 @@ export default {
|
||||||
},
|
},
|
||||||
selectBatchChange(item) {
|
selectBatchChange(item) {
|
||||||
this.form.batch = item.batch;
|
this.form.batch = item.batch;
|
||||||
|
this.form.mb = item.id;
|
||||||
this.form.warehouse = item.warehouse;
|
this.form.warehouse = item.warehouse;
|
||||||
},
|
},
|
||||||
//选择车间库存物料后的处理
|
//选择车间库存物料后的处理
|
||||||
|
@ -254,6 +255,7 @@ export default {
|
||||||
},
|
},
|
||||||
selectBatchClear() {
|
selectBatchClear() {
|
||||||
this.form.batch = "";
|
this.form.batch = "";
|
||||||
|
this.form.mb = "";
|
||||||
this.form.warehouse = "";
|
this.form.warehouse = "";
|
||||||
},
|
},
|
||||||
//显示
|
//显示
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
row-key="id"
|
row-key="id"
|
||||||
stripe
|
stripe
|
||||||
:params="paramsIn"
|
:params="paramsIn"
|
||||||
hidePagination
|
hidePagination
|
||||||
>
|
>
|
||||||
<el-table-column type="index" width="50" />
|
<el-table-column type="index" width="50" />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
@ -113,13 +113,18 @@
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="table_in_edit(scope.row)"
|
@click="table_in_edit(scope.row)"
|
||||||
:disabled="mlogItem.submit_time !== null||mlogItem.ticket!==null||(mlogItem.ticket_&&mlogItem.ticket_.state_.type==1)"
|
v-if="mlogItem.submit_time== null&&mlogItem.material_in_&&mlogItem.material_in_.tracking==10"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
link type="primary"
|
||||||
|
v-if="mlogItem.submit_time == null&&mlogItem.material_in_&&mlogItem.material_in_.tracking==20"
|
||||||
|
@click="table_out_check_single(scope.row,'ins')"
|
||||||
|
>详情</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
:disabled="mlogItem.submit_time !== null||mlogItem.ticket!==null||(mlogItem.ticket_&&mlogItem.ticket_.state_.type==1)"
|
:disabled="mlogItem.submit_time !== null"
|
||||||
type="danger"
|
type="danger"
|
||||||
@click="table_in_del(scope.row)"
|
@click="table_in_del(scope.row)"
|
||||||
>
|
>
|
||||||
|
@ -228,7 +233,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
link type="primary"
|
link type="primary"
|
||||||
v-if="mlogItem.submit_time == null&&mlogItem.material_out_&&mlogItem.material_out_.tracking==20"
|
v-if="mlogItem.submit_time == null&&mlogItem.material_out_&&mlogItem.material_out_.tracking==20"
|
||||||
@click="table_out_check_single(scope.row)"
|
@click="table_out_check_single(scope.row,'outs')"
|
||||||
>详情</el-button>
|
>详情</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -263,6 +268,7 @@
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:mlog="mlogId"
|
:mlog="mlogId"
|
||||||
:mgroup="mgroup"
|
:mgroup="mgroup"
|
||||||
|
:tracking="tracking"
|
||||||
:materialIn="materialIn"
|
:materialIn="materialIn"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
@closed="dialog.save = false"
|
@closed="dialog.save = false"
|
||||||
|
@ -280,6 +286,7 @@
|
||||||
v-if="dialog.check_single"
|
v-if="dialog.check_single"
|
||||||
ref="checkDialogSingle"
|
ref="checkDialogSingle"
|
||||||
:mlogb="mlogb"
|
:mlogb="mlogb"
|
||||||
|
:wm = "wm"
|
||||||
@success="handlesCheckSuccess"
|
@success="handlesCheckSuccess"
|
||||||
@closed="dialog.check_single = false"
|
@closed="dialog.check_single = false"
|
||||||
>
|
>
|
||||||
|
@ -349,6 +356,7 @@ export default {
|
||||||
mlog: "",
|
mlog: "",
|
||||||
material_out__isnull: 0,
|
material_out__isnull: 0,
|
||||||
},
|
},
|
||||||
|
tracking:'10',
|
||||||
mlogb:"",
|
mlogb:"",
|
||||||
mgroup: "",
|
mgroup: "",
|
||||||
mlogItem: {},
|
mlogItem: {},
|
||||||
|
@ -378,6 +386,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
wm:'',
|
||||||
materialOut:'',
|
materialOut:'',
|
||||||
batchContains:'',
|
batchContains:'',
|
||||||
apiObjPrint:this.$API.cm.labelmat.fromWm,
|
apiObjPrint:this.$API.cm.labelmat.fromWm,
|
||||||
|
@ -402,6 +411,8 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
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);
|
||||||
|
this.tracking = this.mlogItem.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;
|
||||||
|
@ -495,14 +506,15 @@ export default {
|
||||||
this.$refs.checkDialog.open(obj);
|
this.$refs.checkDialog.open(obj);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
table_out_check_single(row){
|
table_out_check_single(row,type){
|
||||||
this.dialog.check_single = true;
|
this.dialog.check_single = true;
|
||||||
this.mlogb = row.id;
|
this.mlogb = row.id;
|
||||||
|
this.wm = row.wm_in;
|
||||||
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;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.checkDialogSingle.open(obj);
|
this.$refs.checkDialogSingle.open(type);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//表单提交方法
|
//表单提交方法
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
<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>
|
</el-form>
|
||||||
<el-footer v-if="mgroup_code == 'paiyicibang'||mgroup_code == 'paiercibang'">
|
<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>
|
||||||
<el-button @click="visibleDrawer = false">取消</el-button>
|
<el-button @click="visibleDrawer = false">取消</el-button>
|
||||||
</el-footer>
|
</el-footer>
|
||||||
|
@ -68,6 +68,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
tracking:{
|
||||||
|
type: Number,
|
||||||
|
default: 10,
|
||||||
|
},
|
||||||
materialIn: {
|
materialIn: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
|
@ -142,7 +146,8 @@ export default {
|
||||||
});
|
});
|
||||||
if (arr.length > 0) {
|
if (arr.length > 0) {
|
||||||
that.form.wm_in = arr[0].id;
|
that.form.wm_in = arr[0].id;
|
||||||
if(that.mgroup_code == 'paiyicibang'||that.mgroup_code == 'paiercibang'){}else{
|
that.form.count_use = arr[0].count;
|
||||||
|
if(that.tracking==10){}else{
|
||||||
that.submit();//提交
|
that.submit();//提交
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<el-drawer
|
<el-drawer
|
||||||
title="输出物料详情"
|
:title="headTitle[mode]"
|
||||||
v-model="visible"
|
v-model="visible"
|
||||||
:size="'80%'"
|
:size="'80%'"
|
||||||
destroy-on-close
|
destroy-on-close
|
||||||
|
@ -16,7 +16,23 @@
|
||||||
<el-table-column prop="number" label="物料编号">
|
<el-table-column prop="number" label="物料编号">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="!scope.row.isEdit">{{ scope.row.number }}</span>
|
<span v-if="!scope.row.isEdit">{{ scope.row.number }}</span>
|
||||||
<el-input v-else 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
|
||||||
|
v-if="scope.row.isEdit&&mode == 'ins'"
|
||||||
|
v-model="scope.row.wpr"
|
||||||
|
placeholder="动态成品"
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
@change="optionChange(scope.row)"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.number"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="note" label="备注">
|
<el-table-column prop="note" label="备注">
|
||||||
|
@ -65,16 +81,26 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
wm: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
loading: false,
|
||||||
|
headTitle:{
|
||||||
|
ins:'输入物料详情',
|
||||||
|
outs:'输出物料详情',
|
||||||
|
},
|
||||||
|
mode:'ins',
|
||||||
//表单数据
|
//表单数据
|
||||||
form: {},
|
form: {},
|
||||||
mgroup: "",
|
mgroup: "",
|
||||||
params: {mlogb:'',page:0},
|
params: {mlogb:'',page:0},
|
||||||
visible: false,
|
visible: false,
|
||||||
|
options:[],
|
||||||
mlogbwlist:[],
|
mlogbwlist:[],
|
||||||
addTemplate:{
|
addTemplate:{
|
||||||
mlogb: "",
|
mlogb: "",
|
||||||
|
@ -90,11 +116,30 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.params.mlogb = that.addTemplate.mlogb = that.mlogb;
|
that.params.mlogb = that.addTemplate.mlogb = that.mlogb;
|
||||||
that.getList();
|
that.getList();
|
||||||
|
that.getOptions();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open(mode = "ins") {
|
||||||
|
this.mode = mode;
|
||||||
|
console.log(this.mode);
|
||||||
this.visible = true;
|
this.visible = true;
|
||||||
},
|
},
|
||||||
|
getOptions(){
|
||||||
|
let that = this;
|
||||||
|
that.$API.wpm.wpr.req({wm:that.wm,page:0}).then((res) => {
|
||||||
|
that.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
optionChange(row){
|
||||||
|
let that = this;
|
||||||
|
that.options.forEach((item) => {
|
||||||
|
if(item.id == row.wpr){
|
||||||
|
console.log('item',item);
|
||||||
|
let index = that.mlogbwlist.indexOf(row);
|
||||||
|
that.mlogbwlist[index].number = item.number;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getList(){
|
getList(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.mlogbwlist = [];
|
that.mlogbwlist = [];
|
||||||
|
|
Loading…
Reference in New Issue