|
@@ -32,14 +32,14 @@
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
<div class="box-top-gjl">
|
|
<div class="box-top-gjl">
|
|
- <!-- <el-button
|
|
|
|
|
|
+ <el-button
|
|
class="button"
|
|
class="button"
|
|
type="primary"
|
|
type="primary"
|
|
size="mini"
|
|
size="mini"
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
v-privilege="activeMenu + 'ADD'"
|
|
v-privilege="activeMenu + 'ADD'"
|
|
@click="but_addNBJH()"
|
|
@click="but_addNBJH()"
|
|
- >新增内部计划</el-button> -->
|
|
|
|
|
|
+ >新增内部计划</el-button>
|
|
<el-button
|
|
<el-button
|
|
class="button"
|
|
class="button"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -49,6 +49,14 @@
|
|
@click="but_add(1)"
|
|
@click="but_add(1)"
|
|
>新增子计划</el-button>
|
|
>新增子计划</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 :label="0">
|
|
|
|
+ 展开编辑
|
|
|
|
+ </el-radio>
|
|
|
|
+ <el-radio :label="1">
|
|
|
|
+ 取消展开
|
|
|
|
+ </el-radio>
|
|
|
|
+ </el-radio-group>
|
|
<el-button
|
|
<el-button
|
|
type="danger"
|
|
type="danger"
|
|
size="mini"
|
|
size="mini"
|
|
@@ -102,7 +110,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="box-bottom" ref="boxBottom">
|
|
<div class="box-bottom" ref="boxBottom">
|
|
<div class="table-box" ref="table_box">
|
|
<div class="table-box" ref="table_box">
|
|
- <div class="table-left" :style="{ width: leftTableWidth + 'px' }">
|
|
|
|
|
|
+ <div class="table-left" :style="{ width: leftTableWidth + 'px' }" v-if="leftTableShow">
|
|
<el-form
|
|
<el-form
|
|
size="mini"
|
|
size="mini"
|
|
ref="dialog_form_arr_1"
|
|
ref="dialog_form_arr_1"
|
|
@@ -676,7 +684,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="10">
|
|
|
|
|
|
+ <el-col :span="10" v-if="leftTableShow">
|
|
<el-pagination
|
|
<el-pagination
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="total1"
|
|
:total="total1"
|
|
@@ -696,7 +704,7 @@
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
:current-page.sync="pageNum"
|
|
:current-page.sync="pageNum"
|
|
@size-change="tableSizeChange"
|
|
@size-change="tableSizeChange"
|
|
- @current-change="getTableDetailDatas()"
|
|
|
|
|
|
+ @current-change="chageMethod()"
|
|
style="text-align: right;margin-top: 10px;"
|
|
style="text-align: right;margin-top: 10px;"
|
|
></el-pagination>
|
|
></el-pagination>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -782,6 +790,8 @@ export default {
|
|
return {
|
|
return {
|
|
activeMenu: '',
|
|
activeMenu: '',
|
|
isCheck: false, // 是否为审核人
|
|
isCheck: false, // 是否为审核人
|
|
|
|
+ radio: '1',
|
|
|
|
+ leftTableShow: true,
|
|
filterForm: {
|
|
filterForm: {
|
|
show: true,
|
|
show: true,
|
|
data: {
|
|
data: {
|
|
@@ -1332,11 +1342,20 @@ export default {
|
|
that.leftTableLoading = false;
|
|
that.leftTableLoading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //切换查询方法
|
|
|
|
+ chageMethod(){
|
|
|
|
+ let that = this;
|
|
|
|
+ if (that.leftTableShow == true){
|
|
|
|
+ that.getTableDetailDatas(that.pageNum);
|
|
|
|
+ } else {
|
|
|
|
+ that.getTableDetailAsRadio(that.pageNum)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 改变表格显示条数
|
|
// 改变表格显示条数
|
|
tableSizeChange (val) {
|
|
tableSizeChange (val) {
|
|
let that = this;
|
|
let that = this;
|
|
that.pageSize = val;
|
|
that.pageSize = val;
|
|
- that.getTableDetailDatas(1);
|
|
|
|
|
|
+ that.chageMethod();
|
|
},
|
|
},
|
|
LftetableSizeChange (val) {
|
|
LftetableSizeChange (val) {
|
|
let that = this;
|
|
let that = this;
|
|
@@ -1456,6 +1475,59 @@ export default {
|
|
that.tableLoading = false;
|
|
that.tableLoading = false;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ //展开自动查询
|
|
|
|
+ getTableDetailAsRadio(pageNum){
|
|
|
|
+ let that = this;
|
|
|
|
+ let ids = [];
|
|
|
|
+ that.leftTableData.forEach((element) => {
|
|
|
|
+ ids.push(element.id);
|
|
|
|
+ });
|
|
|
|
+ that.pageNum = pageNum || that.pageNum;
|
|
|
|
+ let url = 'pass/ems/v1/emsprodplanrounds/getTableDetailAsRadio/?pageNum=' + that.pageNum + '&pageSize=' + that.pageSize;
|
|
|
|
+ that.axios.get(url, {
|
|
|
|
+ params: {
|
|
|
|
+ id: ids.join(',')
|
|
|
|
+ }
|
|
|
|
+ }).then(function (res) {
|
|
|
|
+ if (res.code == '0') {
|
|
|
|
+ let arr = [];
|
|
|
|
+ for (let i = 0; i < res.data.list.length; i++) {
|
|
|
|
+ let item = res.data.list[i];
|
|
|
|
+ arr.push({
|
|
|
|
+ seq: i,
|
|
|
|
+ parentid: item.parentid,
|
|
|
|
+ may: item.may,
|
|
|
|
+ roundid: item.id,
|
|
|
|
+ describe: item.describe,
|
|
|
|
+ state: item.state,
|
|
|
|
+ grades: item.grades,
|
|
|
|
+ planWeight: item.planWeight,
|
|
|
|
+ specifications: item.specifications,
|
|
|
|
+ transportType: item.transportType,
|
|
|
|
+ purpose: item.purpose,
|
|
|
|
+ chemicalStandard: item.chemicalStandard,
|
|
|
|
+ memo: item.memo,
|
|
|
|
+ issuedTime: item.issuedTime,
|
|
|
|
+ createman: item.createman,
|
|
|
|
+ createtime: item.createtime,
|
|
|
|
+ updateman: item.updateman,
|
|
|
|
+ deliveryDate: item.deliveryDate,
|
|
|
|
+ sqno: item.sqno,
|
|
|
|
+ updatetime: item.updatetime,
|
|
|
|
+ workprocType: item.workprocType,
|
|
|
|
+ auditState: item.auditState
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ that.rightTableData = arr;
|
|
|
|
+ that.total = res.data.total;
|
|
|
|
+ } else {
|
|
|
|
+ that.$message.error(res.message);
|
|
|
|
+ }
|
|
|
|
+ that.tableLoading = false;
|
|
|
|
+ }).catch(function () {
|
|
|
|
+ that.tableLoading = false;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
jsDifference () {
|
|
jsDifference () {
|
|
let that = this;
|
|
let that = this;
|
|
let fV = that.dialog.fRow.apportvalue,
|
|
let fV = that.dialog.fRow.apportvalue,
|
|
@@ -1590,7 +1662,7 @@ export default {
|
|
message: '保存成功',
|
|
message: '保存成功',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- that.getTableDetailDatas();
|
|
|
|
|
|
+ that.chageMethod();
|
|
that.getStandards();
|
|
that.getStandards();
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
@@ -1650,7 +1722,7 @@ export default {
|
|
message: '保存成功',
|
|
message: '保存成功',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- that.getTableDetailDatas(1, null);
|
|
|
|
|
|
+ that.chageMethod();
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
@@ -1751,8 +1823,8 @@ export default {
|
|
message: '操作成功',
|
|
message: '操作成功',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- that.getTableData();
|
|
|
|
- that.getTableDetailDatas();
|
|
|
|
|
|
+ that.getTableData();
|
|
|
|
+ that.chageMethod();
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
@@ -1811,7 +1883,7 @@ export default {
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
that.getTableData();
|
|
that.getTableData();
|
|
- that.getTableDetailDatas();
|
|
|
|
|
|
+ that.chageMethod();
|
|
} else {
|
|
} else {
|
|
that.$message.error(res.message);
|
|
that.$message.error(res.message);
|
|
}
|
|
}
|
|
@@ -1850,7 +1922,7 @@ export default {
|
|
message: '删除成功',
|
|
message: '删除成功',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- that.getTableDetailDatas(1, null);
|
|
|
|
|
|
+ that.chageMethod();
|
|
that.getTableData();
|
|
that.getTableData();
|
|
that.dialog.editorBox.show = false;
|
|
that.dialog.editorBox.show = false;
|
|
} else {
|
|
} else {
|
|
@@ -2065,6 +2137,21 @@ export default {
|
|
row.tableLoading = false;
|
|
row.tableLoading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ radioChange(){
|
|
|
|
+ let that = this;
|
|
|
|
+ let leftwith = 0;
|
|
|
|
+ let rightwith = 550;
|
|
|
|
+ if(that.radio == 0){
|
|
|
|
+ that.leftTableWidth = leftwith;
|
|
|
|
+ that.leftTableShow = false;
|
|
|
|
+ that.getTableDetailAsRadio(1);
|
|
|
|
+ }
|
|
|
|
+ if(that.radio == 1){
|
|
|
|
+ that.leftTableWidth = rightwith;
|
|
|
|
+ that.leftTableShow = true;
|
|
|
|
+ that.rightTableData = [];
|
|
|
|
+ }
|
|
},
|
|
},
|
|
keyDown (event1, disabledFlag) {
|
|
keyDown (event1, disabledFlag) {
|
|
let tdTarget = event1.target;
|
|
let tdTarget = event1.target;
|