This commit is contained in:
caoqianming 2025-12-03 13:25:09 +08:00
commit 33094c8161
3 changed files with 32 additions and 53 deletions

View File

@ -882,7 +882,8 @@ export default {
saveMuserSubmit(row){ saveMuserSubmit(row){
let that = this; let that = this;
that.isSaveing = true; that.isSaveing = true;
that.$API.wpm.mloguser.create.req(that.addTemplate).then((res) => { row.mlog = that.mlogId;
that.$API.wpm.mloguser.create.req(row).then((res) => {
that.isSaveing = false; that.isSaveing = false;
that.$message.success("操作成功"); that.$message.success("操作成功");
that.getProcessList(); that.getProcessList();
@ -895,7 +896,7 @@ export default {
that.$confirm("确定删除吗?").then(res=>{ that.$confirm("确定删除吗?").then(res=>{
that.$API.wpm.mloguser.delete.req(row.id).then((res) => { that.$API.wpm.mloguser.delete.req(row.id).then((res) => {
that.$message.success("删除成功"); that.$message.success("删除成功");
that.$refs.tableMuser.refresh(); that.getProcessList();
}) })
}) })
}, },

View File

@ -36,6 +36,7 @@
:addTemplate="addTemplate" :addTemplate="addTemplate"
placeholder="暂无数据" placeholder="暂无数据"
:hideAdd="hideAdd" :hideAdd="hideAdd"
:pushType="pushType"
:canMultiple = "canMultiple" :canMultiple = "canMultiple"
@selectChange="selectChange" @selectChange="selectChange"
@selectAllChange="selectAllChange" @selectAllChange="selectAllChange"
@ -46,10 +47,11 @@
<span v-if="mode == 'outs'">{{ scope.row.number }}</span> <span v-if="mode == 'outs'">{{ scope.row.number }}</span>
<span v-if="mode == 'outs'&&scope.row.wpr_number_out!==null&&scope.row.wpr_number_out!==undefined">{{ scope.row.wpr_number_out }}</span> <span v-if="mode == 'outs'&&scope.row.wpr_number_out!==null&&scope.row.wpr_number_out!==undefined">{{ scope.row.wpr_number_out }}</span>
<el-select <el-select
v-if="scope.row.isEdit&&mode == 'ins'&&route_code!=='niuzhuan'" v-if="scope.row.isEdit&&mode == 'ins'"
v-model="scope.row.wpr" v-model="scope.row.wpr"
placeholder="动态成品" placeholder="动态成品"
clearable clearable
filterable
style="width: 100%" style="width: 100%"
@change="optionChange(scope.row)" @change="optionChange(scope.row)"
> >
@ -507,6 +509,7 @@ export default {
wprNumber:"", wprNumber:"",
route_code:"", route_code:"",
wprInputText:"", wprInputText:"",
pushType:"unshift",
params: {mlogb:'',page:0}, params: {mlogb:'',page:0},
insInput:false, insInput:false,
canMultiple:false, canMultiple:false,
@ -582,7 +585,9 @@ export default {
} }
if(that.mode == 'ins'){ if(that.mode == 'ins'){
if(that.route_code=='niuzhuan'){ if(that.route_code=='niuzhuan'){
that.getEquipment4();
that.gettestitem(); that.gettestitem();
that.getOptions();
}else{ }else{
that.getOptions(); that.getOptions();
that.getList(); that.getList();
@ -910,9 +915,9 @@ export default {
}, },
formTableEdit(row) { formTableEdit(row) {
let that = this; let that = this;
if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){ // if(that.route_code=='niuzhuan'&&that.optionsEq.length==0){
that.getEquipment4(); // that.getEquipment4();
} // }
that.mlogbwlist.forEach((item, index) => { that.mlogbwlist.forEach((item, index) => {
if (item.id == row.id) { if (item.id == row.id) {
that.mlogbwlist[index].isEdit = true; that.mlogbwlist[index].isEdit = true;
@ -1170,9 +1175,9 @@ export default {
that.mlogbwlist[0].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss'); that.mlogbwlist[0].work_start_time = that.$TOOL.dateFormat(date, 'yyyy-MM-dd hh:mm:ss');
that.timeChange(that.mlogbwlist[0]); that.timeChange(that.mlogbwlist[0]);
} }
if(that.optionsEq.length==0){ // if(that.optionsEq.length==0){
that.getEquipment4(); // that.getEquipment4();
} // }
} }
if(that.setForm.cd_req_addr!==null&&!that.insInput){ if(that.setForm.cd_req_addr!==null&&!that.insInput){
//cd_req_addr, //cd_req_addr,

View File

@ -2,9 +2,9 @@
<el-container> <el-container>
<el-header> <el-header>
<div class="left-panel"> <div class="left-panel">
<el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'" <!-- <el-button type="primary" @click="tomio('do_out')" v-auth="'mio.do'"
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gx'" v-if="mgroupName!=='size'&&mgroupName!=='facade'&&project_code=='gx'"
>领料</el-button> >领料</el-button> -->
<el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</el-button> <el-button type="primary" @click="tomio('do_in')" v-auth="'mio.do'">入库</el-button>
<el-button <el-button
type="primary" type="primary"
@ -97,49 +97,21 @@
align="center" align="center"
width="120px" width="120px"
> >
<template #default="scope"> <template #default="scope">
<el-button <el-button link type="primary" @click="table_detail(scope.row)">查看</el-button>
link <el-button link type="primary" @click="table_edit(scope.row)"
type="primary" v-if="scope.row.state == 10&&scope.row.create_by==userId"
@click="table_detail(scope.row)" >编辑</el-button>
> <el-button link type="primary" @click="table_submit(scope.row)"
查看 v-auth="'mio.submit'" v-if="scope.row.state == 10&&scope.row.type!=='do_in'"
</el-button> > <span>{{ scope.row.type=='do_out'?'接收':'提交' }}</span>
<el-button
link
type="primary"
@click="table_edit(scope.row)"
v-if="scope.row.state == 10"
>
编辑
</el-button>
<el-button
link
type="primary"
@click="table_submit(scope.row)"
v-auth="'mio.submit'"
v-if="scope.row.state == 10&&scope.row.type!=='do_in'"
>
提交
</el-button>
<el-button
link
type="danger"
@click="table_del(scope.row)"
v-auth="'mio.delete'"
v-if="scope.row.state == 10"
>
删除
</el-button>
<el-button
link
type="warning"
@click="revert(scope.row)"
v-auth="'mio.submit'"
v-if="scope.row.state == 20"
>
撤销
</el-button> </el-button>
<el-button link type="danger" @click="table_del(scope.row)"
v-auth="'mio.delete'" v-if="scope.row.state == 10&&scope.row.create_by==userId"
>删除</el-button>
<el-button link type="warning" @click="revert(scope.row)"
v-auth="'mio.submit'" v-if="scope.row.state == 20"
>撤销</el-button>
</template> </template>
</el-table-column> </el-table-column>
</scTable> </scTable>
@ -234,6 +206,7 @@ export default {
let that = this; let that = this;
that.params.mgroup = that.mgroupId; that.params.mgroup = that.mgroupId;
that.apiObj = that.$API.inm.mio.list; that.apiObj = that.$API.inm.mio.list;
that.userId = this.$TOOL.data.get("USER_INFO").id;
that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code; that.project_code = this.$TOOL.data.get("BASE_INFO").base.base_code;
console.log("project_code",that.project_code); console.log("project_code",that.project_code);
}, },