fix:chengpinjianyan

This commit is contained in:
shijing 2024-08-13 13:51:17 +08:00
parent a5759b48b3
commit 404b2b71cb
4 changed files with 39 additions and 23 deletions

View File

@ -89,6 +89,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-divider style="margin-top:0"></el-divider>
<el-row v-if="mode=='sizeAdd'||mode=='sizeEdit'"> <el-row v-if="mode=='sizeAdd'||mode=='sizeEdit'">
<el-col :md="12" :sm="24"> <el-col :md="12" :sm="24">
<el-form-item label="黑圈内径"> <el-form-item label="黑圈内径">
@ -335,6 +336,7 @@ export default {
}, },
loading: false, loading: false,
form: { form: {
type2:20,
test_date: "", test_date: "",
batch: "", batch: "",
count: null, count: null,
@ -389,13 +391,14 @@ export default {
}; };
}, },
mounted() { mounted() {
this.getMaterialBatch();
}, },
methods: { methods: {
// //
open(mode = "sizeAdd") { open(mode = "sizeAdd") {
this.mode = mode; this.mode = mode;
this.visible = true; this.visible = true;
this.getMaterialBatch();
return this; return this;
}, },
handleCheckChange(){ handleCheckChange(){
@ -445,10 +448,12 @@ export default {
// //
getMaterialBatch() { getMaterialBatch() {
let that = this; let that = this;
let obj = {page: 0, count__gte: 0}; let obj = {page: 0, count__gte: 0, count_xtest__gte: 0};
if(that.mode == "sizeAdd"||that.mode == "sizeEdit"){ if(that.mode == "sizeAdd"||that.mode == "sizeEdit"||that.mode == "sizeShow"){
console.log('sizeAdd')
obj.material__process__name = '一次超洗' obj.material__process__name = '一次超洗'
}else{ }else {
console.log('facadeAdd')
obj.material__process__name = '二次超洗' obj.material__process__name = '二次超洗'
} }
that.$API.wpm.wmaterial.list that.$API.wpm.wmaterial.list
@ -462,7 +467,7 @@ export default {
console.log(val); console.log(val);
that.options.forEach((item) => { that.options.forEach((item) => {
if (item.id == val) { if (item.id == val) {
that.form.count = that.formCount = item.count; that.form.count =that.form.count_ok = that.formCount = item.count;
that.form.batch = item.batch; that.form.batch = item.batch;
that.form.material = item.material; that.form.material = item.material;
that.form.wm = item.id; that.form.wm = item.id;

View File

@ -183,6 +183,7 @@
v-if="dialog.save" v-if="dialog.save"
ref="saveDialog" ref="saveDialog"
:type="type" :type="type"
:mgroupName="mgroupName"
:mgroupId="mgroupId" :mgroupId="mgroupId"
@success="handleSaveSuccess" @success="handleSaveSuccess"
@closed="dialog.save = false" @closed="dialog.save = false"
@ -221,8 +222,7 @@ export default {
permission: false, permission: false,
}, },
params: { params: {
mgroup: "", // count_xtest__gte: 0,
count_xtest__gte: 0,
}, },
query: { query: {
send_mgroup: "", send_mgroup: "",
@ -249,12 +249,12 @@ export default {
mounted() { mounted() {
let that = this; let that = this;
if(that.mgroupName=="size"){ if(that.mgroupName=="size"){
that.params.type=30; // that.params.type=30;
that.params.send_mgroup__name="一次超洗"; that.params.material__process__name="一次超洗";
that.apiObj = that.$API.wpm.handover.list; that.apiObj = that.$API.wpm.handover.list;
}else if(that.mgroupName=="facade"){ }else if(that.mgroupName=="facade"){
that.params.type=30; // that.params.type=30;
that.params.send_mgroup__name="二次超洗"; that.params.material__process__name="二次超洗";
that.apiObj = that.$API.wpm.handover.list; that.apiObj = that.$API.wpm.handover.list;
}else{ }else{
that.printer_name = localStorage.getItem("printer_name"); that.printer_name = localStorage.getItem("printer_name");

View File

@ -161,6 +161,10 @@ export default {
type: String, type: String,
default: "", default: "",
}, },
mgroupName: {
type: String,
default: "",
},
}, },
data() { data() {
return { return {
@ -281,6 +285,11 @@ export default {
mgroupx: that.mgroupId, mgroupx: that.mgroupId,
page: 0, page: 0,
}; };
if(that.mgroupName=="size"){
req.material__process__name="一次超洗";
}else if(that.mgroupName=="facade"){
req.material__process__name="二次超洗";
}else{
if (this.type == 10) { if (this.type == 10) {
req.notok_sign__isnull = 1; req.notok_sign__isnull = 1;
} else if (this.type == 20) { } else if (this.type == 20) {
@ -288,6 +297,8 @@ export default {
else if (this.type == 30) { else if (this.type == 30) {
req.notok_sign__isnull = 1; req.notok_sign__isnull = 1;
} }
}
this.$API.wpm.wmaterial.list this.$API.wpm.wmaterial.list
.req(req) .req(req)
.then((res) => { .then((res) => {

View File

@ -85,24 +85,24 @@
prop="create_time" prop="create_time"
width="150" width="150"
></el-table-column> ></el-table-column>
<!-- <el-table-column <el-table-column
label="操作" label="操作"
fixed="right" fixed="right"
align="center" align="center"
width="180" width="80"
v-if="mgroupName!=='size'&&mgroupName!=='facade'"
> >
<template #default="scope"> <template #default="scope">
<el-button <el-button
link link
size="small" size="small"
@click="table_edit(scope.row)" @click="table_Check(scope.row)"
v-auth="'mgroup.update'" v-auth="'mgroup.update'"
type="primary" type="primary"
>编辑</el-button >抽检</el-button
> >
<el-divider direction="vertical"></el-divider>
</template> </template>
</el-table-column> --> </el-table-column>
</scTable> </scTable>
</el-main> </el-main>
<el-dialog title="选择物料" v-model="materialsVisible" width="90%"> <el-dialog title="选择物料" v-model="materialsVisible" width="90%">