fix:已接受的交接添加退回功能

This commit is contained in:
shijing 2025-04-22 11:34:59 +08:00
parent 4e3d51ebf2
commit b3acb107e1
2 changed files with 6 additions and 6 deletions

View File

@ -130,6 +130,9 @@
<el-tag v-if="scope.row.type == 40" type="danger"
>报废</el-tag
>
<el-tag v-if="scope.row.type == 60" type="warning"
>退料</el-tag
>
</template>
</el-table-column>
<el-table-column
@ -429,9 +432,9 @@ export default {
obj.count = item.count;
form.handoverb.push(obj)
})
form.send_user = that.$TOOL.data.get('USER_INFO').content.id;
form.send_user = that.$TOOL.data.get('USER_INFO').id;
form.send_date = that.$TOOL.dateFormat2(new Date());
form.type = 'back';
form.type = 60;
that.$API.wpm.handover.create.req(form).then((res) => {
that.$message.success("操作成功");
}).catch((err) => {

View File

@ -542,7 +542,7 @@ export default {
that.form.recive_mgroup = that.form.send_mgroup;
that.form.mtype = that.mtype;
}
if(that.form.new_batch!==''){
if(that.change_batch){
that.form.mtype=30;
that.mtype==30
}
@ -557,9 +557,6 @@ export default {
return err;
});
}else{
if(that.form.new_batch!==''){
that.form.mtype=30;
}
if (that.mode == "add") {
that.$API.wpm.handover.create.req(that.form).then((res) => {
that.isSaveing = false;