Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop

This commit is contained in:
曹前明 2022-06-16 10:40:35 +08:00
commit ea69946fca
5 changed files with 58 additions and 27 deletions

View File

@ -160,7 +160,7 @@
</el-form-item> </el-form-item>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="编号"> <el-form-item label="编号">
<el-input v-model="number" @input="checkValue" placeholder="编号"/> <el-input v-model="numbers" @input="checkValue" placeholder="编号"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -211,7 +211,7 @@
type: Boolean, type: Boolean,
default: false default: false
}, },
number: { numbers: {
type: String, type: String,
default: '' default: ''
}, },
@ -307,7 +307,7 @@
}, },
methods: { methods: {
checkValue() { checkValue() {
this.number = this.number.replace(/[^0-9a-zA-Z]/g, ''); this.numbers = this.numbers.replace(/[^0-9a-zA-Z]/g, '');
}, },
filterBlock(rule, index, field_key) { filterBlock(rule, index, field_key) {
let that = this; let that = this;
@ -719,6 +719,7 @@
} }
}, },
fieldData() { fieldData() {
debugger;
let that = this; let that = this;
that.field = []; //检查项目 that.field = []; //检查项目
that.formData.forEach((item) => { that.formData.forEach((item) => {
@ -740,7 +741,7 @@
that.testrecord.record_data = that.field;//检查项列表 that.testrecord.record_data = that.field;//检查项列表
that.testrecord.is_testok = that.is_testok;//检查表检查结果 that.testrecord.is_testok = that.is_testok;//检查表检查结果
that.testrecord.id = that.recordId;//记录id that.testrecord.id = that.recordId;//记录id
that.testrecord.number = that.number;//编号 that.testrecord.number = that.numbers;//编号
that.testrecord.remark = that.remark;//备注 that.testrecord.remark = that.remark;//备注
if (that.index === '2') {//提交 if (that.index === '2') {//提交
this.$emit('recordSubmit', that.testrecord); this.$emit('recordSubmit', that.testrecord);

View File

@ -88,7 +88,7 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link <el-link
v-if="checkPermission(['plan_toggle'])&&scope.row.state !== 70" v-if="checkPermission(['plan_toggle'])&&scope.row.state!==70&&scope.row.state!==80"
type="warning" type="warning"
@click="handlestatesuspended(scope)" @click="handlestatesuspended(scope)"
> >
@ -101,6 +101,7 @@
> >
启用 启用
</el-link> </el-link>
<!--暂停时才能终止-->
<el-link <el-link
v-if="checkPermission(['plan_stop'])&&scope.row.state === 70" v-if="checkPermission(['plan_stop'])&&scope.row.state === 70"
type="danger" type="danger"
@ -116,7 +117,7 @@
查看子计划 查看子计划
</el-link> </el-link>
<el-link <el-link
v-if="checkPermission(['plan_subcreate'])&&!scope.row.is_planed" v-if="checkPermission(['plan_subcreate'])&&!scope.row.is_planed&&scope.row.state!==70&&scope.row.state!==80"
type="primary" type="primary"
@click="handleWork(scope)" @click="handleWork(scope)"
> >

View File

@ -69,14 +69,14 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link <el-link
v-if="scope.row.state===10&&checkPermission['subplan_issue']" v-if="scope.row.state===10&&checkPermission(['subplan_issue'])&&scope.row.production_plan_.state!==70&&scope.row.production_plan_.state!==80"
type="primary" type="primary"
@click="handleclick(scope)" @click="handleclick(scope)"
> >
修改日期 修改日期
</el-link> </el-link>
<el-link <el-link
v-if="scope.row.state===10&&checkPermission['subplan_issue']" v-if="scope.row.state===10&&checkPermission(['subplan_issue'])&&scope.row.production_plan_.state!==70&&scope.row.production_plan_.state!==80"
type="primary" type="primary"
@click="handleissuedclick(scope)" @click="handleissuedclick(scope)"
> >
@ -244,7 +244,10 @@
20: '已下达', 20: '已下达',
30: '已接受', 30: '已接受',
40: '生产中', 40: '生产中',
50: '已完成' 50: '已完成',
60: "军检完成",
70: "暂停",
80: "终止",
} }
}; };
}, },

View File

@ -521,7 +521,7 @@
:formID="recordform" :formID="recordform"
:wproduct="wproduct" :wproduct="wproduct"
:remark="remark" :remark="remark"
:number="number" :numbers="numbers"
:recordId="recordId" :recordId="recordId"
:isDisabled="isDisabled" :isDisabled="isDisabled"
:isMidTesting="is_midtesting" :isMidTesting="is_midtesting"
@ -939,7 +939,7 @@
{text: '镀膜', value: '镀膜'}, {text: '断膜', value: '断膜'}, {text: '汇流条制备', value: '汇流条制备'}, {text: '镀膜', value: '镀膜'}, {text: '断膜', value: '断膜'}, {text: '汇流条制备', value: '汇流条制备'},
{text: '夹层', value: '夹层'}, {text: '包边', value: '包边'}], {text: '夹层', value: '夹层'}, {text: '包边', value: '包边'}],
remark:'', remark:'',
number:'', numbers:null,
}; };
}, },
computed: {}, computed: {},
@ -1231,6 +1231,8 @@
that.innerIndex = index; that.innerIndex = index;
// this.outerVisible = true; // this.outerVisible = true;
that.wproduct = scope.row.id;//半成品ID that.wproduct = scope.row.id;//半成品ID
this.numbers = null;
this.remark = '';
that.listQueryrecordform.material = scope.row.material; that.listQueryrecordform.material = scope.row.material;
if (index === '3') { if (index === '3') {
that.listQueryrecordform.type = 40; that.listQueryrecordform.type = 40;
@ -1280,13 +1282,14 @@
//点击记录里的检验 //点击记录里的检验
handleInspectionRecord(scope) { handleInspectionRecord(scope) {
debugger;
let that = this; let that = this;
that.fieldList = []; that.fieldList = [];
that.recordVisible = false; that.recordVisible = false;
that.recordId = scope.row.id; that.recordId = scope.row.id;
that.recordform = scope.row.form; that.recordform = scope.row.form;
that.number = scope.row.number; that.numbers = scope.row.number?scope.row.number:null;
that.remark = scope.row.remark; that.remark = scope.row.remark?scope.row.remark:'';
that.formName = scope.row.form_.name; that.formName = scope.row.form_.name;
if (that.innerIndex !== '2') {//非复检 if (that.innerIndex !== '2') {//非复检
getrffieldList({form: this.recordform, enabled: true, page: 1, page_size: 100}).then((response) => { getrffieldList({form: this.recordform, enabled: true, page: 1, page_size: 100}).then((response) => {
@ -1370,8 +1373,8 @@
that.recordFinishedVisible = true; that.recordFinishedVisible = true;
that.formName = res.data.form_.name; that.formName = res.data.form_.name;
that.fieldList = res.data.record_data; that.fieldList = res.data.record_data;
that.number = res.data.number; that.numbers = res.data.number?res.data.number:'';
that.remark = res.data.remark; that.remark = res.data.remark?res.data.remark:'';
} }
}) })
}, },
@ -1507,8 +1510,12 @@
let params = {}; let params = {};
params.record_data = value.record_data; params.record_data = value.record_data;
params.is_testok = value.is_testok; params.is_testok = value.is_testok;
params.number = value.number; if(value.number){
params.remark = value.remark; params.number = value.number;
}
if(value.remark){
params.remark = value.remark;
}
putTestRecordItem(id, params).then((res) => { putTestRecordItem(id, params).then((res) => {
if (res.code >= 200) { if (res.code >= 200) {
that.recordVisible = false; that.recordVisible = false;
@ -1533,8 +1540,13 @@
params.id = value.id; params.id = value.id;
params.is_testok = value.is_testok; params.is_testok = value.is_testok;
params.record_data = value.record_data; params.record_data = value.record_data;
params.number = value.number; debugger;
params.remark = value.remark; if(value.number){
params.number = value.number;
}
if(value.remark){
params.remark = value.remark;
}
that.params = params; that.params = params;
that.limitedPhoto = true; that.limitedPhoto = true;
}, },
@ -1545,6 +1557,12 @@
let params = new Object(); let params = new Object();
params.is_testok = that.params.is_testok; params.is_testok = that.params.is_testok;
params.record_data = that.params.record_data; params.record_data = that.params.record_data;
if(this.params.number){
params.number = this.params.number;
}
if(this.params.remark){
params.remark = this.params.remark;
}
params.token = data.token; params.token = data.token;
let text = '确定以操作员'+data.name+'身份提交?'; let text = '确定以操作员'+data.name+'身份提交?';
if (data.token !== '' && data.token !== null && data.token !== undefined) { if (data.token !== '' && data.token !== null && data.token !== undefined) {

View File

@ -67,6 +67,11 @@
{{ state_[scope.row.state] }} {{ state_[scope.row.state] }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="任务状态">
<template slot-scope="scope">
<span v-if="scope.row.production_plan_"> {{ state_[scope.row.production_plan_.state] }}</span>
</template>
</el-table-column>
<el-table-column label="领料状态" width="80"> <el-table-column label="领料状态" width="80">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.is_picked == false">未领料</el-tag> <el-tag v-if="scope.row.is_picked == false">未领料</el-tag>
@ -86,21 +91,21 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-link <el-link
v-if="checkPermission(['wmaterial_pick'])&&!scope.row.is_picked" v-if="checkPermission(['wmaterial_pick'])&&!scope.row.is_picked&&scope.row.production_plan_.state!==70&&scope.row.production_plan_.state!==80"
type="success" type="success"
@click="handleNeed(scope)" @click="handleNeed(scope)"
> >
领料 领料
</el-link> </el-link>
<el-link <el-link
v-if="checkPermission(['wmaterial_pick'])&&scope.row.is_picked" v-if="checkPermission(['wmaterial_pick'])&&scope.row.is_picked&&scope.row.production_plan_.state!==70&&scope.row.production_plan_.state!==80"
type="success" type="success"
@click="handleNeed(scope)" @click="handleNeed(scope)"
> >
继续领料 继续领料
</el-link> </el-link>
<el-link <el-link
v-if="checkPermission(['wmaterial_pick'])" v-if="checkPermission(['wmaterial_pick'])&&scope.row.production_plan_.state!==70&&scope.row.production_plan_.state!==80"
type="primary" type="primary"
@click="handlepick(scope)" @click="handlepick(scope)"
> >
@ -778,11 +783,14 @@
}, },
state_: { state_: {
0: "制定中", 10: "制定中",
1: "已下达", 20: "已下达",
2: "已接受", 30: "已接受",
3: "生产中", 40: "生产中",
4: "已完成", 50: "已完成",
60: "军检完成",
70: "暂停",
80: "终止",
}, },
listLoading: true, listLoading: true,
id: "", id: "",