|
@@ -122,30 +122,30 @@
|
|
|
</el-form>
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- icon="el-icon-plus"
|
|
|
- size="mini"
|
|
|
- @click="handleAdd"
|
|
|
- v-hasPermi="['gas:order:add']"
|
|
|
- >新增
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="primary"-->
|
|
|
+<!-- plain-->
|
|
|
+<!-- icon="el-icon-plus"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- @click="handleAdd"-->
|
|
|
+<!-- v-hasPermi="['gas:order:add']"-->
|
|
|
+<!-- >新增-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- plain
|
|
|
- icon="el-icon-delete"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click="handleDelete"
|
|
|
- v-hasPermi="['gas:order:remove']"
|
|
|
- >删除
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="danger"-->
|
|
|
+<!-- plain-->
|
|
|
+<!-- icon="el-icon-delete"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- :disabled="multiple"-->
|
|
|
+<!-- @click="handleDelete"-->
|
|
|
+<!-- v-hasPermi="['gas:order:remove']"-->
|
|
|
+<!-- >删除-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
|
type="warning"
|
|
@@ -212,26 +212,26 @@
|
|
|
<el-button v-show="scope.row.orderStatus ==='001'"
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
+ icon="el-icon-view"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
v-hasPermi="['gas:order:edit']"
|
|
|
- >修改
|
|
|
- </el-button>
|
|
|
- <el-button v-show="scope.row.orderStatus ==='002'"
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="handleUpdate1(scope.row)"
|
|
|
- v-hasPermi="['gas:order:edit']"
|
|
|
- >复审
|
|
|
- </el-button>
|
|
|
- <el-button v-show="scope.row.anjianId != null && scope.row.anjianId != ''"
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="viewAnJian(scope.row)"
|
|
|
- >安检开栓
|
|
|
+ >查看详情
|
|
|
</el-button>
|
|
|
+<!-- <el-button v-show="scope.row.orderStatus ==='002'"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- icon="el-icon-edit"-->
|
|
|
+<!-- @click="handleUpdate1(scope.row)"-->
|
|
|
+<!-- v-hasPermi="['gas:order:edit']"-->
|
|
|
+<!-- >复审-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- <el-button v-show="scope.row.anjianId != null && scope.row.anjianId != ''"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- type="text"-->
|
|
|
+<!-- icon="el-icon-edit"-->
|
|
|
+<!-- @click="viewAnJian(scope.row)"-->
|
|
|
+<!-- >安检开栓-->
|
|
|
+<!-- </el-button>-->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -247,7 +247,7 @@
|
|
|
<!-- 添加或修改工程管理对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
|
|
<el-row :gutter="15">
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="100px" disabled>
|
|
|
<el-col :span="22">
|
|
|
<el-form-item label="服务类别" prop="serviceType">
|
|
|
<el-select v-model="form.serviceType" placeholder="请选择服务类别" clearable :style="{width: '100%'}">
|
|
@@ -262,7 +262,15 @@
|
|
|
</el-col>
|
|
|
<el-col :span="23">
|
|
|
<el-form-item label="照片" prop="photoList">
|
|
|
- <imageUpload v-model="form.photoList"/>
|
|
|
+<!-- {{form.photoList}}-->
|
|
|
+<!-- <imageUpload v-model="form.photoList"/>-->
|
|
|
+ <el-image
|
|
|
+ v-for="photo in form.photoList"
|
|
|
+ style="width: 100px; height: 100px;margin-right: 10px"
|
|
|
+ :src="photo"
|
|
|
+ :preview-src-list="[photo]"
|
|
|
+ >
|
|
|
+ </el-image>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="11">
|
|
@@ -321,38 +329,17 @@
|
|
|
</el-col>
|
|
|
<el-col :span="11">
|
|
|
<el-form-item label="管子类型" prop="pipeType">
|
|
|
- <el-radio-group v-model="form.pipeType">
|
|
|
- <el-radio
|
|
|
- v-for="item in pipeTypeList"
|
|
|
- :key="item.pipeType"
|
|
|
- :label="item.pipeType"
|
|
|
- >{{ item.pipeType }}
|
|
|
- </el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-input v-model="form.pipeType"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="11">
|
|
|
<el-form-item label="管子长度" prop="pipeLength" >
|
|
|
- <el-radio-group v-model="form.pipeLength">
|
|
|
- <el-radio
|
|
|
- v-for="item in pipeLengthList"
|
|
|
- :key="item.pipeLength"
|
|
|
- :label="item.pipeLength"
|
|
|
- >{{ item.pipeLength }}
|
|
|
- </el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-input v-model="form.pipeLength"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="11">
|
|
|
<el-form-item label="自闭阀类型" prop="valveType">
|
|
|
- <el-radio-group v-model="form.valveType">
|
|
|
- <el-radio
|
|
|
- v-for="item in valveTypeList"
|
|
|
- :key="item.valveType"
|
|
|
- :label="item.valveType"
|
|
|
- >{{ item.valveType }}
|
|
|
- </el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <el-input v-model="form.valveType"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="22">
|
|
@@ -617,9 +604,9 @@ export default {
|
|
|
this.getList()
|
|
|
this.getWorker()
|
|
|
this.getArea()
|
|
|
- this.getPipeLength()
|
|
|
- this.getPipeType()
|
|
|
- this.getValveType()
|
|
|
+ // this.getPipeLength()
|
|
|
+ // this.getPipeType()
|
|
|
+ // this.getValveType()
|
|
|
},
|
|
|
methods: {
|
|
|
backup() {
|
|
@@ -771,25 +758,25 @@ export default {
|
|
|
this.open = true
|
|
|
this.title = '添加工程管理'
|
|
|
this.getWorker()
|
|
|
- this.getPipeLength()
|
|
|
- this.getPipeType()
|
|
|
- this.getValveType()
|
|
|
+ // this.getPipeLength()
|
|
|
+ // this.getPipeType()
|
|
|
+ // this.getValveType()
|
|
|
this.getArea()
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset()
|
|
|
this.getWorker()
|
|
|
- this.getPipeLength()
|
|
|
- this.getPipeType()
|
|
|
- this.getValveType()
|
|
|
+ // this.getPipeLength()
|
|
|
+ // this.getPipeType()
|
|
|
+ // this.getValveType()
|
|
|
this.getArea()
|
|
|
const id = row.id || this.ids
|
|
|
getOrder(id).then(response => {
|
|
|
this.loading = false
|
|
|
this.form = response.data
|
|
|
this.open = true
|
|
|
- this.title = '修改工程管理'
|
|
|
+ this.title = '查看工程管理'
|
|
|
this.getBuilding(this.form.areaId)
|
|
|
})
|
|
|
},
|