|
@@ -63,7 +63,7 @@
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
icon="el-icon-edit-outline"
|
|
|
- @click="but_edit_plural()"
|
|
|
+ @click="but_update"
|
|
|
:loading="loading"
|
|
|
v-if="butPrivilege.PUT && !isCheck"
|
|
|
>修改</el-button>
|
|
@@ -202,6 +202,13 @@
|
|
|
<span v-else>{{scope.row.weightDay}}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="weightOrigin"
|
|
|
+ label="原计划量(日)"
|
|
|
+ width="120px"
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
<el-table-column
|
|
|
prop="unitid"
|
|
|
label="计量单位"
|
|
@@ -626,6 +633,53 @@
|
|
|
@click="but_copy_plural"
|
|
|
:loading="loading"
|
|
|
>保 存</el-button>
|
|
|
+ </span>
|
|
|
+ </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.weightDay"
|
|
|
+ ref="dialog_form3"
|
|
|
+ size="mini"
|
|
|
+ label-width="300px"
|
|
|
+ >
|
|
|
+ <el-row>
|
|
|
+ <el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item
|
|
|
+ label="计划量"
|
|
|
+ prop="weightDay"
|
|
|
+ label-width="100px"
|
|
|
+ >
|
|
|
+ <el-input clearable
|
|
|
+ style="width: 100%;"
|
|
|
+ v-model="dialog.editorBox3.form.data.weightDay"
|
|
|
+ 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_edit_plural"
|
|
|
+ :loading="loading"
|
|
|
+ >保 存</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -757,6 +811,19 @@ export default {
|
|
|
may: [{ required: true, message: '该项不能为空', trigger: 'change' }]
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ editorBox3:{
|
|
|
+ show: false,
|
|
|
+ type: '',
|
|
|
+ form: {
|
|
|
+ data: {
|
|
|
+ weightDay: ''
|
|
|
+ },
|
|
|
+ rules: {
|
|
|
+ weightDay: [{ required: true, message: '该项不能为空', trigger: 'change' },
|
|
|
+ { validator: zCheckNumber1, trigger: 'change' }]
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
pageNum: 1,
|
|
@@ -1153,7 +1220,8 @@ export default {
|
|
|
state: item.state,
|
|
|
kxf_weight: item.kxf_weight,
|
|
|
yxf_weight: item.yxf_weight,
|
|
|
- sqno: item.sqno
|
|
|
+ sqno: item.sqno,
|
|
|
+ weightOrigin:item.weightOrigin
|
|
|
});
|
|
|
}
|
|
|
that.total = res.data.total;
|
|
@@ -1172,7 +1240,7 @@ export default {
|
|
|
that.tableLoading = false;
|
|
|
});
|
|
|
},
|
|
|
- // 获取表格中的数据
|
|
|
+ // 获取表格编辑后的数据
|
|
|
getTableDataEdit () {
|
|
|
let that = this,
|
|
|
params = {},
|
|
@@ -1303,6 +1371,21 @@ export default {
|
|
|
} else {
|
|
|
this.$message.error('至少要选择一条数据');
|
|
|
}
|
|
|
+ },
|
|
|
+ but_update () {
|
|
|
+ let that = this;
|
|
|
+ if (that.multipleSelection.length > 0) {
|
|
|
+ that.$refs['dialog_form_arr'].validate((valid, obj) => {
|
|
|
+ if (valid) {
|
|
|
+ that.dialog.editorBox3.show = true;
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs['dialog_form3'].clearValidate();
|
|
|
+ }, 100);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ this.$message.error('至少要选择一条数据');
|
|
|
+ }
|
|
|
},
|
|
|
// 改变表格显示条数
|
|
|
tableSizeChange (val) {
|
|
@@ -1528,7 +1611,7 @@ export default {
|
|
|
may: that.tableFormDataObj[key].may,
|
|
|
networkid: that.tableFormDataObj[key].networkid,
|
|
|
weightMonth: that.tableFormDataObj[key].weightMonth.toString(),
|
|
|
- weightDay: that.tableFormDataObj[key].weightDay.toString(),
|
|
|
+ weightDay: that.dialog.editorBox3.form.data.weightDay,
|
|
|
unit: that.tableFormDataObj[key].unit,
|
|
|
jxdays: that.tableFormDataObj[key].jxdays,
|
|
|
createtime: that.tableFormDataObj[key].createtime,
|
|
@@ -1551,7 +1634,7 @@ export default {
|
|
|
type: 'success'
|
|
|
});
|
|
|
that.getTableData();
|
|
|
- that.dialog.editorBox.show = false;
|
|
|
+ that.dialog.editorBox3.show = false;
|
|
|
} else {
|
|
|
that.$message.error(res.message);
|
|
|
}
|