|
@@ -25,7 +25,8 @@
|
|
<el-input
|
|
<el-input
|
|
v-model="filterForm.data.Gmid"
|
|
v-model="filterForm.data.Gmid"
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
- refcous="true"
|
|
|
|
|
|
+ refcous="true"
|
|
|
|
+ clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -85,7 +86,24 @@
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
v-privilege="activeMenu + 'ADD'"
|
|
v-privilege="activeMenu + 'ADD'"
|
|
@click="but_add(1)"
|
|
@click="but_add(1)"
|
|
- >新增子计划</el-button>
|
|
|
|
|
|
+ >新增子计划</el-button>
|
|
|
|
+ <el-select v-model ="filterForm.data.options" clearable @change="getTableData()" size="mini">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item of options.arr"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-button
|
|
|
|
+ class="button"
|
|
|
|
+ type="primary"
|
|
|
|
+ size="mini"
|
|
|
|
+ icon="el-icon-edit-outline"
|
|
|
|
+ @click="but_update"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ v-privilege="activeMenu + 'PUT'"
|
|
|
|
+ >修改轮次描述</el-button>
|
|
<div style="float:right; text-align: right;">
|
|
<div style="float:right; text-align: right;">
|
|
<el-radio-group v-model="radio" @change="radioChange()">
|
|
<el-radio-group v-model="radio" @change="radioChange()">
|
|
<el-radio :label="0">
|
|
<el-radio :label="0">
|
|
@@ -210,7 +228,7 @@
|
|
prop="grades"
|
|
prop="grades"
|
|
align="center"
|
|
align="center"
|
|
label="钢种"
|
|
label="钢种"
|
|
- width="71"
|
|
|
|
|
|
+ width="71px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -327,7 +345,7 @@
|
|
prop="describe"
|
|
prop="describe"
|
|
label="轮次描述"
|
|
label="轮次描述"
|
|
align="center"
|
|
align="center"
|
|
- min-width="146px"
|
|
|
|
|
|
+ min-width="160px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -340,7 +358,8 @@
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
v-model="rightTableObj[scope.row.seq].describe"
|
|
v-model="rightTableObj[scope.row.seq].describe"
|
|
- refcous="true"
|
|
|
|
|
|
+ refcous="true"
|
|
|
|
+ clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<span v-else>{{scope.row.describe}}</span>
|
|
<span v-else>{{scope.row.describe}}</span>
|
|
@@ -356,9 +375,9 @@
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-form-item
|
|
<el-form-item
|
|
- :prop="scope.row.seq + '.describe'"
|
|
|
|
|
|
+ :prop="scope.row.seq + '.may'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
- :rules="tableFormRules.describe"
|
|
|
|
|
|
+ :rules="tableFormRules.may"
|
|
>
|
|
>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -405,7 +424,7 @@
|
|
prop="grades"
|
|
prop="grades"
|
|
label="钢种"
|
|
label="钢种"
|
|
align="center"
|
|
align="center"
|
|
- min-width="126px"
|
|
|
|
|
|
+ min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -420,7 +439,8 @@
|
|
clearable
|
|
clearable
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
v-model="rightTableObj[scope.row.seq].grades"
|
|
v-model="rightTableObj[scope.row.seq].grades"
|
|
- placeholder=""
|
|
|
|
|
|
+ placeholder=""
|
|
|
|
+ @change = "((data) =>{gradesChange(data,scope)})"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
v-for="item of nameObj.grades.arr"
|
|
v-for="item of nameObj.grades.arr"
|
|
@@ -471,20 +491,21 @@
|
|
prop="lengths"
|
|
prop="lengths"
|
|
label="长度"
|
|
label="长度"
|
|
align="center"
|
|
align="center"
|
|
- min-width="85px"
|
|
|
|
|
|
+ min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-form-item
|
|
<el-form-item
|
|
:prop="scope.row.seq + '.lengths'"
|
|
:prop="scope.row.seq + '.lengths'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
- :rules="tableFormRules.lengths"
|
|
|
|
|
|
+ :rules="tableFormRules.planWeight"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
v-model="rightTableObj[scope.row.seq].lengths"
|
|
v-model="rightTableObj[scope.row.seq].lengths"
|
|
- refcous="true"
|
|
|
|
|
|
+ refcous="true"
|
|
|
|
+ clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<span v-else>{{scope.row.lengths}}</span>
|
|
<span v-else>{{scope.row.lengths}}</span>
|
|
@@ -495,7 +516,7 @@
|
|
prop="planWeight"
|
|
prop="planWeight"
|
|
label="计划量"
|
|
label="计划量"
|
|
align="center"
|
|
align="center"
|
|
- min-width="75px"
|
|
|
|
|
|
+ min-width="100px"
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -508,7 +529,8 @@
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
v-model="rightTableObj[scope.row.seq].planWeight"
|
|
v-model="rightTableObj[scope.row.seq].planWeight"
|
|
- refcous="true"
|
|
|
|
|
|
+ refcous="true"
|
|
|
|
+ clearable
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<span v-else>{{scope.row.planWeight}}</span>
|
|
<span v-else>{{scope.row.planWeight}}</span>
|
|
@@ -526,7 +548,7 @@
|
|
<el-form-item
|
|
<el-form-item
|
|
:prop="scope.row.seq + '.surfaceStandard'"
|
|
:prop="scope.row.seq + '.surfaceStandard'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
- :rules="tableFormRules.surfaceStandard"
|
|
|
|
|
|
+ :rules="tableFormRules.chemicalStandard"
|
|
>
|
|
>
|
|
<el-select
|
|
<el-select
|
|
allow-create
|
|
allow-create
|
|
@@ -556,13 +578,15 @@
|
|
:show-overflow-tooltip="true"
|
|
:show-overflow-tooltip="true"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-form-item
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ :prop="scope.row.seq + '.chemicalStandard'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
:rules="tableFormRules.chemicalStandard"
|
|
:rules="tableFormRules.chemicalStandard"
|
|
>
|
|
>
|
|
<el-select
|
|
<el-select
|
|
allow-create
|
|
allow-create
|
|
- clearable
|
|
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
@keydown.native="keyDown" :id="scope.$index + scope.column.id"
|
|
v-model="rightTableObj[scope.row.seq].chemicalStandard"
|
|
v-model="rightTableObj[scope.row.seq].chemicalStandard"
|
|
placeholder=""
|
|
placeholder=""
|
|
@@ -637,7 +661,7 @@
|
|
<el-form-item
|
|
<el-form-item
|
|
:prop="scope.row.seq + '.goinfo'"
|
|
:prop="scope.row.seq + '.goinfo'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
v-if=" !isCheck && scope.row.isSelection && scope.row.state !== '3'"
|
|
- :rules="tableFormRules.goinfo"
|
|
|
|
|
|
+ :rules="tableFormRules.chemicalStandard"
|
|
>
|
|
>
|
|
<el-select
|
|
<el-select
|
|
filterable clearable
|
|
filterable clearable
|
|
@@ -832,7 +856,55 @@
|
|
:loading="loading"
|
|
:loading="loading"
|
|
>保 存</el-button>
|
|
>保 存</el-button>
|
|
</span>
|
|
</span>
|
|
- </el-dialog>
|
|
|
|
|
|
+ </el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="炼钢轮次描述-修改"
|
|
|
|
+ :visible.sync="dialog.editorBox3.show"
|
|
|
|
+ width="400px"
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ :show-close="!loading">
|
|
|
|
+ <div>
|
|
|
|
+ <el-form
|
|
|
|
+ :model="dialog.editorBox3.form.data"
|
|
|
|
+ ref="dialog_form3"
|
|
|
|
+ size="mini"
|
|
|
|
+ label-width="300px"
|
|
|
|
+ >
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col>
|
|
|
|
+ <el-col :span="20">
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="轮次描述"
|
|
|
|
+ prop="describe"
|
|
|
|
+ label-width="100px"
|
|
|
|
+ :rules="dialog.editorBox3.form.rules.describe"
|
|
|
|
+ >
|
|
|
|
+ <el-input clearable
|
|
|
|
+ style="width: 100%;"
|
|
|
|
+ v-model="dialog.editorBox3.form.data.describe"
|
|
|
|
+ refcous="true"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
|
|
+ <span
|
|
|
|
+ slot="footer"
|
|
|
|
+ class="dialog-footer"
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ :loading="loading"
|
|
|
|
+ @click="dialog.editorBox3.show = false"
|
|
|
|
+ >取 消</el-button>
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ @click="but_copy"
|
|
|
|
+ :loading="loading"
|
|
|
|
+ >保 存</el-button>
|
|
|
|
+ </span>
|
|
|
|
+ </el-dialog>
|
|
<zj-formulaEditor :equationEditing="dialog.equationEditing"></zj-formulaEditor>
|
|
<zj-formulaEditor :equationEditing="dialog.equationEditing"></zj-formulaEditor>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -856,7 +928,7 @@ export default {
|
|
columnId: '',
|
|
columnId: '',
|
|
focusTarget: null,
|
|
focusTarget: null,
|
|
radio: '1',
|
|
radio: '1',
|
|
- gridData:[],
|
|
|
|
|
|
+ gridData: [],
|
|
leftTableShow: true,
|
|
leftTableShow: true,
|
|
seqArr: [],
|
|
seqArr: [],
|
|
filterForm: {
|
|
filterForm: {
|
|
@@ -887,8 +959,13 @@ export default {
|
|
purpose: '',
|
|
purpose: '',
|
|
sqno: '',
|
|
sqno: '',
|
|
show: false,
|
|
show: false,
|
|
- goinfo: ''
|
|
|
|
|
|
+ goinfo: '',
|
|
|
|
+ options: ''
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ options: {
|
|
|
|
+ obj: {'2': {id: '2', name: '已下发'}, '3': {id: '3', name: '已接收'}},
|
|
|
|
+ arr: [{id: '2', name: '已下发'}, {id: '3', name: '已接收'}]
|
|
},
|
|
},
|
|
rules: {
|
|
rules: {
|
|
},
|
|
},
|
|
@@ -899,7 +976,8 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
total1: 0,
|
|
total1: 0,
|
|
singleTableHeight: 100,
|
|
singleTableHeight: 100,
|
|
- leftTableData: [],
|
|
|
|
|
|
+ leftTableData: [],
|
|
|
|
+ leftTableDataObj: {},
|
|
leftTableLoading: false,
|
|
leftTableLoading: false,
|
|
leftTableWidth: 550,
|
|
leftTableWidth: 550,
|
|
difference: 0,
|
|
difference: 0,
|
|
@@ -930,6 +1008,12 @@ export default {
|
|
],
|
|
],
|
|
chemicalStandard: [
|
|
chemicalStandard: [
|
|
{ required: true, message: '该项不能为空', trigger: 'change' }
|
|
{ required: true, message: '该项不能为空', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ describe: [
|
|
|
|
+ { required: true, message: '该项不能为空', trigger: 'change' }
|
|
|
|
+ ],
|
|
|
|
+ may: [
|
|
|
|
+ { required: true, message: '该项不能为空', trigger: 'change' }
|
|
]
|
|
]
|
|
},
|
|
},
|
|
nameObj: {
|
|
nameObj: {
|
|
@@ -994,6 +1078,10 @@ export default {
|
|
surfaceStandard: {
|
|
surfaceStandard: {
|
|
obj: {},
|
|
obj: {},
|
|
arr: []
|
|
arr: []
|
|
|
|
+ },
|
|
|
|
+ ExecutiveStandard: {
|
|
|
|
+ obj: {},
|
|
|
|
+ arr: []
|
|
},
|
|
},
|
|
|
|
|
|
goinfo: {
|
|
goinfo: {
|
|
@@ -1150,6 +1238,18 @@ export default {
|
|
]
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ editorBox3: {
|
|
|
|
+ show: false,
|
|
|
|
+ type: '',
|
|
|
|
+ form: {
|
|
|
|
+ data: {
|
|
|
|
+ describe: ''
|
|
|
|
+ },
|
|
|
|
+ rules: {
|
|
|
|
+ describe: [{ required: true, message: '该项不能为空', trigger: 'change' }]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1184,15 +1284,16 @@ export default {
|
|
that.singleTableHeight = that.getRoleHeight(that.$refs['boxBottom']) - 45;
|
|
that.singleTableHeight = that.getRoleHeight(that.$refs['boxBottom']) - 45;
|
|
}, 1);
|
|
}, 1);
|
|
});
|
|
});
|
|
- that.getTimeGranData();
|
|
|
|
- that.getEnergyIdData();
|
|
|
|
- that.getPropertyIdData();
|
|
|
|
|
|
+ // that.getTimeGranData();
|
|
|
|
+ // that.getEnergyIdData();
|
|
|
|
+ // that.getPropertyIdData();
|
|
that.getGrades();
|
|
that.getGrades();
|
|
that.getSpecifications();
|
|
that.getSpecifications();
|
|
that.getStandards();
|
|
that.getStandards();
|
|
- that.getUnitIdData();
|
|
|
|
|
|
+ // that.getUnitIdData();
|
|
that.getsurfaceStandard();
|
|
that.getsurfaceStandard();
|
|
- that.gethxcf();
|
|
|
|
|
|
+ that.gethxcf();
|
|
|
|
+ that.getExecutiveStandard();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 计算树区域高度
|
|
// 计算树区域高度
|
|
@@ -1284,10 +1385,10 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- gethxcfDate(row){
|
|
|
|
|
|
+ gethxcfDate (row) {
|
|
let that = this;
|
|
let that = this;
|
|
let url = 'pass/ems/v1/chemicalconstituentss/getDataByGmid';
|
|
let url = 'pass/ems/v1/chemicalconstituentss/getDataByGmid';
|
|
- let params ={};
|
|
|
|
|
|
+ let params = {};
|
|
params = {
|
|
params = {
|
|
gmid: row.parentid ? row.parentid : row.id
|
|
gmid: row.parentid ? row.parentid : row.id
|
|
}
|
|
}
|
|
@@ -1297,7 +1398,7 @@ export default {
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
if (res.code === '0') {
|
|
if (res.code === '0') {
|
|
let arr = [];
|
|
let arr = [];
|
|
- for(let i = 0 ; i < res.data.length; i++){
|
|
|
|
|
|
+ for (let i = 0; i < res.data.length; i++) {
|
|
let item = res.data[i];
|
|
let item = res.data[i];
|
|
arr.push({
|
|
arr.push({
|
|
seq: i,
|
|
seq: i,
|
|
@@ -1308,7 +1409,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
that.gridData = arr;
|
|
that.gridData = arr;
|
|
- that.filterForm.cf = that.gridData.length>0 ? true :false
|
|
|
|
|
|
+ that.filterForm.cf = that.gridData.length > 0
|
|
that.gridDataLoading = false;
|
|
that.gridDataLoading = false;
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
@@ -1352,7 +1453,8 @@ export default {
|
|
endTime: that.filterForm.data.clock[1],
|
|
endTime: that.filterForm.data.clock[1],
|
|
id: that.filterForm.data.Gmid,
|
|
id: that.filterForm.data.Gmid,
|
|
grades: that.filterForm.data.grades.join(','),
|
|
grades: that.filterForm.data.grades.join(','),
|
|
- specifications: that.filterForm.data.specifications.join(',')
|
|
|
|
|
|
+ specifications: that.filterForm.data.specifications.join(','),
|
|
|
|
+ state: that.filterForm.data.options
|
|
};
|
|
};
|
|
that.pageNum1 = pageNum1 || that.pageNum1;
|
|
that.pageNum1 = pageNum1 || that.pageNum1;
|
|
that.leftTableLoading = true;
|
|
that.leftTableLoading = true;
|
|
@@ -1362,7 +1464,8 @@ export default {
|
|
})
|
|
})
|
|
.then(function (res) {
|
|
.then(function (res) {
|
|
if (res.code === '0') {
|
|
if (res.code === '0') {
|
|
- let arr = [];
|
|
|
|
|
|
+ let arr = [];
|
|
|
|
+ let obj = {};
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
let item = res.data.list[i];
|
|
let item = res.data.list[i];
|
|
arr.push({
|
|
arr.push({
|
|
@@ -1392,9 +1495,37 @@ export default {
|
|
kxf_weight: item.PLANWEIGHT - item.YXF_WEIGHT,
|
|
kxf_weight: item.PLANWEIGHT - item.YXF_WEIGHT,
|
|
yxf_weight: item.YXF_WEIGHT,
|
|
yxf_weight: item.YXF_WEIGHT,
|
|
tag: item.TAG ? item.TAG : '0'
|
|
tag: item.TAG ? item.TAG : '0'
|
|
- })
|
|
|
|
|
|
+ });
|
|
|
|
+ obj[item.ID] = {seq: i,
|
|
|
|
+ id: item.ID,
|
|
|
|
+ jhTime: item.JHTIME,
|
|
|
|
+ state: item.STATE,
|
|
|
|
+ grades: item.GRADES,
|
|
|
|
+ specifications: item.SPECIFICATIONS,
|
|
|
|
+ lengths: item.LENGTHS,
|
|
|
|
+ chemicalStandard: item.CHEMICALSTANDARD,
|
|
|
|
+ surfaceStandard: item.SURFACESTANDARD,
|
|
|
|
+ workprocType: item.WORKPROCTYPE,
|
|
|
|
+ iateralarea: item.IATERALAREA,
|
|
|
|
+ lengthtimeswidth: item.LENGTHTIMESWIDTH,
|
|
|
|
+ transportType: item.TRANSPORTTYPE,
|
|
|
|
+ receivetime: item.RECEIVETIME,
|
|
|
|
+ createman: item.CREATEMAN,
|
|
|
|
+ createtime: item.CREATETIME,
|
|
|
|
+ updateman: item.UPDATEMAN,
|
|
|
|
+ purpose: item.PURPOSE,
|
|
|
|
+ updatetime: item.UPDATETIME,
|
|
|
|
+ memo: item.MEMO,
|
|
|
|
+ planweight: item.PLANWEIGHT,
|
|
|
|
+ deliveryDate: item.DELIVERYDATE,
|
|
|
|
+ dimension: item.DIMENSION,
|
|
|
|
+ kxf_weight: item.PLANWEIGHT - item.YXF_WEIGHT,
|
|
|
|
+ yxf_weight: item.YXF_WEIGHT,
|
|
|
|
+ tag: item.TAG ? item.TAG : '0'
|
|
|
|
+ };
|
|
}
|
|
}
|
|
- that.leftTableData = arr;
|
|
|
|
|
|
+ that.leftTableData = arr;
|
|
|
|
+ that.leftTableDataObj = obj;
|
|
that.total1 = res.data.total;
|
|
that.total1 = res.data.total;
|
|
that.dialog.fRow = null;
|
|
that.dialog.fRow = null;
|
|
} else {
|
|
} else {
|
|
@@ -1405,10 +1536,10 @@ export default {
|
|
that.leftTableLoading = false;
|
|
that.leftTableLoading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //切换查询方法
|
|
|
|
- chageMethod(){
|
|
|
|
|
|
+ // 切换查询方法
|
|
|
|
+ chageMethod () {
|
|
let that = this;
|
|
let that = this;
|
|
- if (that.leftTableShow == true){
|
|
|
|
|
|
+ if (that.leftTableShow === true) {
|
|
that.getTableDetailDatas(that.pageNum);
|
|
that.getTableDetailDatas(that.pageNum);
|
|
} else {
|
|
} else {
|
|
that.getTableDetailAsRadio(that.pageNum)
|
|
that.getTableDetailAsRadio(that.pageNum)
|
|
@@ -1646,8 +1777,21 @@ export default {
|
|
for (let key in item) {
|
|
for (let key in item) {
|
|
obj[key] = item[key];
|
|
obj[key] = item[key];
|
|
}
|
|
}
|
|
- item.realvalue = (!isNaN(Number(item.apportvalue)) && !isNaN(Number(item.wastage))) ? Number(item.apportvalue) + Number(item.wastage) - Number(item.secondVal) : item.realvalue;
|
|
|
|
- rightTableObj[xId] = obj;
|
|
|
|
|
|
+ item.realvalue = (!isNaN(Number(item.apportvalue)) && !isNaN(Number(item.wastage))) ? Number(item.apportvalue) + Number(item.wastage) - Number(item.secondVal) : item.realvalue;
|
|
|
|
+ rightTableObj[xId] = obj;
|
|
|
|
+ try {
|
|
|
|
+ if (item.grades !== null && item.grades !== '') {
|
|
|
|
+ if (item.surfaceStandard === '' || item.surfaceStandard === null) {
|
|
|
|
+ rightTableObj[xId].surfaceStandard = that.nameObj.ExecutiveStandard.obj[item.grades].surface;
|
|
|
|
+ }
|
|
|
|
+ if (item.chemicalStandard === '' || item.chemicalStandard === null) {
|
|
|
|
+ rightTableObj[xId].chemicalStandard = that.nameObj.ExecutiveStandard.obj[item.grades].factory;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } catch (e) {
|
|
|
|
+ rightTableObj[xId].chemicalStandard = '';
|
|
|
|
+ console.log('没有对应')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
item.isSelection = true;
|
|
item.isSelection = true;
|
|
}
|
|
}
|
|
@@ -1857,18 +2001,18 @@ export default {
|
|
}
|
|
}
|
|
that.nameObj.surfaceStandard.arr = arr;
|
|
that.nameObj.surfaceStandard.arr = arr;
|
|
that.nameObj.surfaceStandard.obj = obj;
|
|
that.nameObj.surfaceStandard.obj = obj;
|
|
- console.log(that.nameObj.surfaceStandard);
|
|
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- issue () {
|
|
|
|
- let that = this;
|
|
|
|
- if (that.multipleSelection.length > 0) {
|
|
|
|
- that.$refs['dialog_form_arr_2'].validate((valid, obj) => {
|
|
|
|
|
|
+ issue () {
|
|
|
|
+ let that = this;
|
|
|
|
+ if (that.multipleSelection.length > 0) {
|
|
|
|
+ that.$refs['dialog_form_arr_2'].validate(async (valid, obj) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- let SubmitData = [];
|
|
|
|
|
|
+ let SubmitData = [];
|
|
|
|
+ let messageRoundid = '';
|
|
for (let key in that.rightTableObj) {
|
|
for (let key in that.rightTableObj) {
|
|
SubmitData.push({
|
|
SubmitData.push({
|
|
parentid: that.rightTableObj[key].parentid,
|
|
parentid: that.rightTableObj[key].parentid,
|
|
@@ -1894,32 +2038,60 @@ export default {
|
|
lengths: that.rightTableObj[key].lengths,
|
|
lengths: that.rightTableObj[key].lengths,
|
|
surfaceStandard: that.rightTableObj[key].surfaceStandard,
|
|
surfaceStandard: that.rightTableObj[key].surfaceStandard,
|
|
goinfo: that.rightTableObj[key].goinfo
|
|
goinfo: that.rightTableObj[key].goinfo
|
|
- });
|
|
|
|
|
|
+ });
|
|
|
|
+ try {
|
|
|
|
+ if (that.rightTableObj[key].planWeight > that.leftTableDataObj[that.rightTableObj[key].parentid].kxf_weight) {
|
|
|
|
+ messageRoundid += that.rightTableObj[key].roundid + ',';
|
|
|
|
+ }
|
|
|
|
+ } catch (e) {
|
|
|
|
+ console.log(that.rightTableObj[key].parentid + '判断错误')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ that.loading = true;
|
|
|
|
+ let down = false;
|
|
|
|
+ if (messageRoundid !== '') {
|
|
|
|
+ await that.$confirm('计划编号' + messageRoundid + '本次下发量已超出订单可下发量,是否继续下发?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ down = true;
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ down = false;
|
|
|
|
+ that.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '已取消下发'
|
|
|
|
+ });
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ down = true;
|
|
|
|
+ }
|
|
|
|
+ if (down) {
|
|
|
|
+ await that.axios.post('pass/ems/v1/emsprodplanrounds/issue', SubmitData, {
|
|
|
|
+ contentType: 'application/json'
|
|
|
|
+ })
|
|
|
|
+ .then(function (res) {
|
|
|
|
+ if (res.code === '0') {
|
|
|
|
+ that.$message({
|
|
|
|
+ message: '操作成功',
|
|
|
|
+ type: 'success'
|
|
|
|
+ });
|
|
|
|
+ that.getTableData();
|
|
|
|
+ that.chageMethod();
|
|
|
|
+ } else {
|
|
|
|
+ that.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ that.loading = false;
|
|
|
|
+ }).catch(function () {
|
|
|
|
+ that.loading = false;
|
|
|
|
+ });
|
|
}
|
|
}
|
|
- that.loading = true;
|
|
|
|
- that.axios.post('pass/ems/v1/emsprodplanrounds/issue', SubmitData, {
|
|
|
|
- contentType: 'application/json'
|
|
|
|
- })
|
|
|
|
- .then(function (res) {
|
|
|
|
- if (res.code === '0') {
|
|
|
|
- that.$message({
|
|
|
|
- message: '操作成功',
|
|
|
|
- type: 'success'
|
|
|
|
- });
|
|
|
|
- that.getTableData();
|
|
|
|
- that.chageMethod();
|
|
|
|
- } else {
|
|
|
|
- that.$message.error(res.message);
|
|
|
|
- }
|
|
|
|
- that.loading = false;
|
|
|
|
- }).catch(function () {
|
|
|
|
- that.loading = false;
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- this.$message.error('至少要选择一条数据');
|
|
|
|
- }
|
|
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('至少要选择一条数据');
|
|
|
|
+ }
|
|
},
|
|
},
|
|
offissue () {
|
|
offissue () {
|
|
let that = this;
|
|
let that = this;
|
|
@@ -2139,8 +2311,8 @@ export default {
|
|
but_add (type) {
|
|
but_add (type) {
|
|
let that = this;
|
|
let that = this;
|
|
let SubmitData = [];
|
|
let SubmitData = [];
|
|
- if(that.multipleSelectionAscLeft.length >0 ) {
|
|
|
|
- for(let key in that.tableFormDataObj) {
|
|
|
|
|
|
+ if (that.multipleSelectionAscLeft.length > 0) {
|
|
|
|
+ for (let key in that.tableFormDataObj) {
|
|
SubmitData.push({
|
|
SubmitData.push({
|
|
parentid: that.tableFormDataObj[key].id,
|
|
parentid: that.tableFormDataObj[key].id,
|
|
may: that.tableFormDataObj[key].jhTime,
|
|
may: that.tableFormDataObj[key].jhTime,
|
|
@@ -2236,8 +2408,8 @@ export default {
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- //展开自动查询
|
|
|
|
- getTableDetailAsRadio(pageNum){
|
|
|
|
|
|
+ // 展开自动查询
|
|
|
|
+ getTableDetailAsRadio (pageNum) {
|
|
let that = this;
|
|
let that = this;
|
|
let ids = [];
|
|
let ids = [];
|
|
that.leftTableData.forEach((element) => {
|
|
that.leftTableData.forEach((element) => {
|
|
@@ -2245,12 +2417,14 @@ export default {
|
|
});
|
|
});
|
|
that.pageNum = pageNum || that.pageNum;
|
|
that.pageNum = pageNum || that.pageNum;
|
|
let url = 'pass/ems/v1/emsprodplanrounds/getTableDetailAsRadio/?pageNum=' + that.pageNum + '&pageSize=' + that.pageSize;
|
|
let url = 'pass/ems/v1/emsprodplanrounds/getTableDetailAsRadio/?pageNum=' + that.pageNum + '&pageSize=' + that.pageSize;
|
|
|
|
+ // state 是不等于
|
|
that.axios.get(url, {
|
|
that.axios.get(url, {
|
|
- params: {
|
|
|
|
- id: ids.join(',')
|
|
|
|
|
|
+ params: {
|
|
|
|
+ id: ids.join(','),
|
|
|
|
+ state: 2
|
|
}
|
|
}
|
|
}).then(function (res) {
|
|
}).then(function (res) {
|
|
- if (res.code == '0') {
|
|
|
|
|
|
+ if (res.code === '0') {
|
|
let arr = [];
|
|
let arr = [];
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
let item = res.data.list[i];
|
|
let item = res.data.list[i];
|
|
@@ -2293,16 +2467,16 @@ export default {
|
|
that.tableLoading = false;
|
|
that.tableLoading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- radioChange(){
|
|
|
|
|
|
+ radioChange () {
|
|
let that = this;
|
|
let that = this;
|
|
let leftwith = 0;
|
|
let leftwith = 0;
|
|
let rightwith = 550;
|
|
let rightwith = 550;
|
|
- if(that.radio == 0){
|
|
|
|
|
|
+ if (that.radio === 0) {
|
|
that.leftTableWidth = leftwith;
|
|
that.leftTableWidth = leftwith;
|
|
that.leftTableShow = false;
|
|
that.leftTableShow = false;
|
|
that.getTableDetailAsRadio(1);
|
|
that.getTableDetailAsRadio(1);
|
|
}
|
|
}
|
|
- if(that.radio == 1){
|
|
|
|
|
|
+ if (that.radio === 1) {
|
|
that.leftTableWidth = rightwith;
|
|
that.leftTableWidth = rightwith;
|
|
that.leftTableShow = true;
|
|
that.leftTableShow = true;
|
|
that.rightTableData = [];
|
|
that.rightTableData = [];
|
|
@@ -2331,7 +2505,7 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
$(id).click();
|
|
$(id).click();
|
|
});
|
|
});
|
|
- console.log('下键')
|
|
|
|
|
|
+ // console.log('下键')
|
|
} else if (event.keyCode === 38) { // 键盘上键
|
|
} else if (event.keyCode === 38) { // 键盘上键
|
|
let index = parseInt(this.rowIndex);
|
|
let index = parseInt(this.rowIndex);
|
|
if (index !== this.seqArr[0]) {
|
|
if (index !== this.seqArr[0]) {
|
|
@@ -2342,18 +2516,18 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- console.log('上键')
|
|
|
|
|
|
+ // console.log('上键')
|
|
this.editSetFlag = index + this.columnId;
|
|
this.editSetFlag = index + this.columnId;
|
|
let id = '#' + this.editSetFlag;
|
|
let id = '#' + this.editSetFlag;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
$(id).click();
|
|
$(id).click();
|
|
});
|
|
});
|
|
} else if (event.keyCode === 37) { // 键盘左键
|
|
} else if (event.keyCode === 37) { // 键盘左键
|
|
- console.log('左键')
|
|
|
|
|
|
+ // console.log('左键')
|
|
$(tdTarget).prevAll().find('input:text').last().click();
|
|
$(tdTarget).prevAll().find('input:text').last().click();
|
|
} else if (event.keyCode === 39) { // 键盘右键
|
|
} else if (event.keyCode === 39) { // 键盘右键
|
|
$(tdTarget).nextAll().find('input').eq(0).click();
|
|
$(tdTarget).nextAll().find('input').eq(0).click();
|
|
- console.log('右键')
|
|
|
|
|
|
+ // console.log('右键')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
cellClick (row, column, cell, event) {
|
|
cellClick (row, column, cell, event) {
|
|
@@ -2377,6 +2551,75 @@ export default {
|
|
openDetails (row) {
|
|
openDetails (row) {
|
|
let that = this;
|
|
let that = this;
|
|
that.leftData = row;
|
|
that.leftData = row;
|
|
|
|
+ },
|
|
|
|
+ getExecutiveStandard () {
|
|
|
|
+ let that = this;
|
|
|
|
+ let url = 'pass/ems/v1/emsproductsexecutivestandards/?pageNum=1&pageSize=999';
|
|
|
|
+ that.axios.get(url)
|
|
|
|
+ .then(function (res) {
|
|
|
|
+ if (res.code === '0') {
|
|
|
|
+ let arr = [];
|
|
|
|
+ let obj = {};
|
|
|
|
+ for (let item of res.data.list) {
|
|
|
|
+ arr.push({
|
|
|
|
+ brand: item.brand,
|
|
|
|
+ factory: item.factoryStandard,
|
|
|
|
+ surface: item.surfaceStandard
|
|
|
|
+ });
|
|
|
|
+ obj[item.brand] = {
|
|
|
|
+ brand: item.brand,
|
|
|
|
+ factory: item.factoryStandard,
|
|
|
|
+ surface: item.surfaceStandard
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ that.nameObj.ExecutiveStandard.arr = arr;
|
|
|
|
+ that.nameObj.ExecutiveStandard.obj = obj;
|
|
|
|
+ } else {
|
|
|
|
+ that.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ gradesChange (data, scope) {
|
|
|
|
+ let that = this;
|
|
|
|
+ let obj = that.rightTableObj[scope.row.seq];
|
|
|
|
+ // 化学成分执行标准 / 出厂执行标准
|
|
|
|
+ let factory = obj.chemicalStandard;
|
|
|
|
+ // 表面执行标准
|
|
|
|
+ let surface = obj.surfaceStandard;
|
|
|
|
+ // if(factory === '' || factory === null)
|
|
|
|
+ // {
|
|
|
|
+ try {
|
|
|
|
+ obj.chemicalStandard = that.nameObj.ExecutiveStandard.obj[data].factory;
|
|
|
|
+ // }
|
|
|
|
+ // if(surface === '' || surface === null) {
|
|
|
|
+ obj.surfaceStandard = that.nameObj.ExecutiveStandard.obj[data].surface;
|
|
|
|
+ // }
|
|
|
|
+ } catch (e) {
|
|
|
|
+ obj.chemicalStandard = '';
|
|
|
|
+ console.log('没有对应');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ but_update () {
|
|
|
|
+ let that = this;
|
|
|
|
+ if (that.multipleSelection.length > 0) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ that.$refs['dialog_form3'].clearValidate();
|
|
|
|
+ }, 100);
|
|
|
|
+ that.dialog.editorBox3.show = true;
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error('至少要选择一条数据');
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ but_copy () {
|
|
|
|
+ let that = this;
|
|
|
|
+ that.$refs['dialog_form3'].validate((valid) => {
|
|
|
|
+ if (valid) {
|
|
|
|
+ for (let key in that.rightTableObj) {
|
|
|
|
+ that.rightTableObj[key].describe = that.dialog.editorBox3.form.data.describe;
|
|
|
|
+ }
|
|
|
|
+ that.dialog.editorBox3.show = false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2436,6 +2679,9 @@ function sortNumber (a, b) {
|
|
thead .el-table-column--selection .cell {
|
|
thead .el-table-column--selection .cell {
|
|
display: none;
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
+ }
|
|
|
|
+ td .el-form-item__error {
|
|
|
|
+ position: static;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|