|
@@ -154,21 +154,30 @@
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
<el-row>
|
|
|
<el-col :span="24" v-if="form.parentId !== 0">
|
|
|
- <el-form-item label="上级施工单元" prop="parentId">
|
|
|
+ <el-form-item :label="$t('cons.parentUnit')" prop="parentId">
|
|
|
<treeselect v-model="form.parentId" :options="consUnitOptions" :normalizer="normalizer"
|
|
|
- placeholder="选择上级施工单元"/>
|
|
|
+ :placeholder="$t('common.select',{
|
|
|
+ name: $t('cons.parentUnit')
|
|
|
+ })"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="单元名称" prop="name">
|
|
|
- <el-input v-model="form.name" placeholder="请输入单元名称"/>
|
|
|
+ <el-form-item :label="$t('cons.unitName')" prop="name">
|
|
|
+ <el-input
|
|
|
+ v-model="form.name"
|
|
|
+ :placeholder="$t('common.typeInfo',{
|
|
|
+ name: $t('cons.unitName')
|
|
|
+ })"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="创建类型" prop="createType">
|
|
|
- <el-input v-model="form.createType" placeholder="请输入创建类型"/>
|
|
|
+ <el-form-item :label="$t('cons.createType')" prop="createType">
|
|
|
+ <el-input v-model="form.createType" :placeholder="$t('common.typeInfo',{
|
|
|
+ name: $t('cons.createType')
|
|
|
+ })"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -179,8 +188,10 @@
|
|
|
<!-- </el-form-item>-->
|
|
|
<!-- </el-col>-->
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="节点类型" prop="type">
|
|
|
- <el-select v-model="form.type" placeholder="请选择节点类型">
|
|
|
+ <el-form-item :label="$t('cons.nodeType')" prop="type">
|
|
|
+ <el-select v-model="form.type" :placeholder="$t('common.select',{
|
|
|
+ name: $t('cons.nodeType')
|
|
|
+ })">
|
|
|
<el-option
|
|
|
v-for="dict in dict.type.cons_unit_type"
|
|
|
:key="dict.value"
|
|
@@ -191,8 +202,13 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="设计文件类型" prop="classifyType">
|
|
|
- <el-input v-model="form.classifyType" placeholder="请输入设计文件类型"/>
|
|
|
+ <el-form-item :label="$t('cons.designFileType')" prop="classifyType">
|
|
|
+ <el-input
|
|
|
+ v-model="form.classifyType"
|
|
|
+ :placeholder="$t('common.typeInfo',{
|
|
|
+ name: $t('cons.designFileType')
|
|
|
+ })"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -208,8 +224,9 @@
|
|
|
<!-- </el-row>-->
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="施工桩机" prop="toMachineId">
|
|
|
- <el-select style="width: 100%" v-model="form.machineId" multiple placeholder="请选择施工桩机">
|
|
|
+ <el-form-item :label="$t('cons.machine')" prop="toMachineId">
|
|
|
+ <el-select style="width: 100%" v-model="form.machineId" multiple
|
|
|
+ :placeholder="$t('common.select',{name:$t('cons.machine')})">
|
|
|
<el-option
|
|
|
v-for="machine in machineList"
|
|
|
:key="machine.id"
|
|
@@ -222,8 +239,8 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
- <el-button @click="cancel">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitForm">{{ $t('common.confirm') }}</el-button>
|
|
|
+ <el-button @click="cancel">{{ $t('common.cancel') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
<el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
|
|
@@ -251,23 +268,24 @@
|
|
|
</div>
|
|
|
</el-upload>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitFileForm">确 定</el-button>
|
|
|
- <el-button @click="upload.open = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitFileForm">{{ $t('common.confirm') }}</el-button>
|
|
|
+ <el-button @click="upload.open = false">{{ $t('common.cancel') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="分配施工机械" :visible.sync="assignDialog.open" width="700px" append-to-body>
|
|
|
+ <el-dialog :title="$t('cons.assignMachine')" :visible.sync="assignDialog.open" width="500px" append-to-body>
|
|
|
<el-form ref="assignform" :model="form" :rules="rules" label-width="120px">
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="施工单元">
|
|
|
+ <el-form-item :label="$t('cons.unitName')">
|
|
|
{{ form.name }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
|
- <el-form-item label="施工桩机" prop="toMachineId">
|
|
|
- <el-select style="width: 100%" v-model="form.machineId" multiple placeholder="请选择桩机">
|
|
|
+ <el-form-item :label="$t('cons.machine')" prop="toMachineId">
|
|
|
+ <el-select style="width: 100%" v-model="form.machineId" multiple
|
|
|
+ :placeholder="$t('common.select',{name:$t('cons.machine')})">
|
|
|
<el-option
|
|
|
v-for="machine in machineList"
|
|
|
:key="machine.id"
|
|
@@ -280,8 +298,8 @@
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
- <el-button type="primary" @click="submitAssignForm">确 定</el-button>
|
|
|
- <el-button @click="assignDialog.open = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitAssignForm">{{ $t('common.confirm') }}</el-button>
|
|
|
+ <el-button @click="assignDialog.open = false">{{ $t('common.cancel') }}</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -359,10 +377,10 @@ export default {
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
parentId: [
|
|
|
- {required: true, message: "上级部门不能为空", trigger: "blur"}
|
|
|
+ {required: true, message: this.$t("common.required", {name: this.$t('cons.parentUnit')}), trigger: "blur"}
|
|
|
],
|
|
|
name: [
|
|
|
- {required: true, message: "施工单元名称不能为空", trigger: "blur"}
|
|
|
+ {required: true, message: this.$t("common.required", {name: this.$t('cons.unitName')}), trigger: "blur"}
|
|
|
],
|
|
|
}
|
|
|
};
|
|
@@ -473,7 +491,7 @@ export default {
|
|
|
this.form.parentId = row.id;
|
|
|
}
|
|
|
this.open = true;
|
|
|
- this.title = "添加施工单元";
|
|
|
+ this.title = this.$t("common.addDialog", {name: this.$t("cons.consUnit")});
|
|
|
listConsUnitInfo().then(response => {
|
|
|
this.consUnitOptions = this.handleTree(response.rows, "id");
|
|
|
});
|
|
@@ -492,7 +510,7 @@ export default {
|
|
|
getConsUnitInfo(row.id).then(response => {
|
|
|
this.form = response.data;
|
|
|
this.open = true;
|
|
|
- this.title = "修改施工单元";
|
|
|
+ this.title = this.$t("common.modifyDialog", {name: this.$t("cons.consUnit")});
|
|
|
listAllConsUnitExcludeChild(row.id).then(response => {
|
|
|
this.consUnitOptions = this.handleTree(response.data, "id");
|
|
|
if (this.consUnitOptions.length == 0) {
|