Selaa lähdekoodia

行政区查询 顶管新增修改

wangzhe 10 kuukautta sitten
vanhempi
commit
6c0137d5ac

+ 21 - 3
src/components/EngineePipe/index.vue

@@ -39,7 +39,7 @@
           <el-row :gutter="20">
             <el-col :span="12">
               <el-form-item label="工程名称" prop="enginName">
-                <el-input v-model="queryParams.enginName" placeholder="请填写工程名称" maxlength="60" :disabled="title == '添加用料' "></el-input>
+                <el-input v-model="queryParams.enginName" placeholder="请填写工程名称" maxlength="60" :disabled="title == '添加用料' || title == '修改顶管信息'"></el-input>
               </el-form-item>
             </el-col>
             <el-col :span="12">
@@ -90,6 +90,23 @@
                 <el-input v-model="queryParams.constructSchedule" placeholder="请填写施工进度" maxlength="50" :disabled="title == '添加用料' "/>
               </el-form-item>
             </el-col>
+            <el-col :span="12">
+              <el-form-item label="行政区" prop="district">
+                <el-select
+                    style="width: 100%"
+                    v-model="queryParams.district"
+                    placeholder="请选择行政区"
+                    filterable
+                >
+                  <el-option
+                      v-for="e in dict.type.district"
+                      :key="e.value"
+                      :label="e.label"
+                      :value="e.value"
+                  ></el-option>
+                </el-select>
+              </el-form-item>
+            </el-col>
 <!--            <el-col :span="12">-->
 <!--              <el-form-item label="备注" prop="remark">-->
 <!--                <el-input-->
@@ -168,7 +185,7 @@ export default {
     EngineeNode,
     EnginNodeInfo
   },
-  dicts: ['pipe_jack'],
+  dicts: ['pipe_jack', 'district'],
   data() {
     return {
       // 按钮loading
@@ -367,13 +384,14 @@ export default {
         this.$refs.obsFileUpload.fileList=this.queryParams.files
       }
     },
-    async openDialog(data, type,sata) {
+    async openDialog(data, type ,sata) {
       await this.reset();
       this.currentCheckList=[]
       this.currentType = type
       if (this.currentType == 'add') {
         this.title = '新增顶管信息'
         this.queryParams.enginId = data.id
+        this.queryParams.district = data.district
       } else if (this.currentType == 'put') {
         this.title = '修改顶管信息'
       } else if (this.currentType == 'addMaterial') {

+ 1 - 0
src/views/zdsz/engineeringCivil/index.vue

@@ -1707,6 +1707,7 @@ export default {
     addNewPipe(data) {
       this.$refs.enginPipe.openDialog({
         id: data.id,
+        district: data.district,
         type: '民用工程'
       }, 'add', data)
     },

+ 1 - 0
src/views/zdsz/engineeringGY/index.vue

@@ -1163,6 +1163,7 @@ export default {
     addNewPipe(data) {
       this.$refs.enginPipe.openDialog({
         id: data.id,
+        district: data.district,
         type: this.form.type
       }, 'add', data)
     },

+ 1 - 0
src/views/zdsz/engineeringIndustry/index.vue

@@ -819,6 +819,7 @@ export default {
     addNewPipe(data) {
       this.$refs.enginPipe.openDialog({
         id: data.id,
+        district: data.district,
         type: this.form.type
       }, 'add', data)
     },

+ 1 - 1
src/views/zdsz/engineeringPipeJacking/index.vue

@@ -10,7 +10,7 @@
     <el-form :model="queryParams1" ref="queryForm1" size="small" :inline="true" v-show="showSearch" label-width="110px"
              @submit.native.prevent>
       <el-form-item label="行政区" prop="district">
-        <el-select v-model="queryParams.district" placeholder="请选择行政区" clearable>
+        <el-select v-model="queryParams1.district" placeholder="请选择行政区" clearable>
           <el-option
               v-for="dict in dict.type.district"
               :key="dict.value"