1111
Showing
2 changed files
with
32 additions
and
45 deletions
| ... | @@ -77,21 +77,3 @@ export function deleteSfmx (bsmSf) { | ... | @@ -77,21 +77,3 @@ export function deleteSfmx (bsmSf) { |
| 77 | } | 77 | } |
| 78 | }) | 78 | }) |
| 79 | } | 79 | } |
| 80 | |||
| 81 | export function getDlxxByBsmSldy (bsmSldy) { | ||
| 82 | return request({ | ||
| 83 | url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/getDlxxByBsmSldy', | ||
| 84 | method: 'get', | ||
| 85 | params: { | ||
| 86 | bsmSldy: bsmSldy | ||
| 87 | } | ||
| 88 | }) | ||
| 89 | } | ||
| 90 | |||
| 91 | export function saveOrUpdateDlxx (data) { | ||
| 92 | return request({ | ||
| 93 | url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/saveOrUpdateDlxx', | ||
| 94 | method: 'post', | ||
| 95 | data | ||
| 96 | }) | ||
| 97 | } | ... | ... |
| ... | @@ -11,7 +11,8 @@ | ... | @@ -11,7 +11,8 @@ |
| 11 | v-Loading="loading" | 11 | v-Loading="loading" |
| 12 | :label-position="flag ? 'top' : ''" | 12 | :label-position="flag ? 'top' : ''" |
| 13 | :inline="flag" | 13 | :inline="flag" |
| 14 | label-width="130px"> | 14 | label-width="130px" |
| 15 | > | ||
| 15 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 16 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
| 16 | <div class="slxx_title title-block"> | 17 | <div class="slxx_title title-block"> |
| 17 | 申请信息 | 18 | 申请信息 |
| ... | @@ -70,6 +71,8 @@ | ... | @@ -70,6 +71,8 @@ |
| 70 | </el-row> | 71 | </el-row> |
| 71 | <div class="slxx_title title-block"> | 72 | <div class="slxx_title title-block"> |
| 72 | 电力过户信息 | 73 | 电力过户信息 |
| 74 | |||
| 75 | <el-button @click="showDialogDlxx">电力过户信息修改</el-button> | ||
| 73 | <div class="triangle"></div> | 76 | <div class="triangle"></div> |
| 74 | </div> | 77 | </div> |
| 75 | <el-row :gutter="10"> | 78 | <el-row :gutter="10"> |
| ... | @@ -138,12 +141,14 @@ | ... | @@ -138,12 +141,14 @@ |
| 138 | </el-col> | 141 | </el-col> |
| 139 | <el-col :span="8"> | 142 | <el-col :span="8"> |
| 140 | <el-form-item label="是否过户:"> | 143 | <el-form-item label="是否过户:"> |
| 141 | <el-switch disabled | 144 | <el-switch |
| 145 | disabled | ||
| 142 | v-model="dlxxForm.SFGH" | 146 | v-model="dlxxForm.SFGH" |
| 143 | :active-value='1' | 147 | :active-value="1" |
| 144 | active-text="是" | 148 | active-text="是" |
| 145 | :inactive-value="0" | 149 | :inactive-value="0" |
| 146 | inactive-text="否"> | 150 | inactive-text="否" |
| 151 | > | ||
| 147 | </el-switch> | 152 | </el-switch> |
| 148 | </el-form-item> | 153 | </el-form-item> |
| 149 | </el-col> | 154 | </el-col> |
| ... | @@ -166,33 +171,37 @@ | ... | @@ -166,33 +171,37 @@ |
| 166 | <div class="triangle"></div> | 171 | <div class="triangle"></div> |
| 167 | </div> | 172 | </div> |
| 168 | </div> | 173 | </div> |
| 169 | |||
| 170 | </el-form> | 174 | </el-form> |
| 175 | <el-dialog :visible.sync="dialogDlxx" title="电力过户信息修改"> | ||
| 176 | <div class="text-center"> | ||
| 177 | <el-button @click="$popupCacel">取消</el-button> | ||
| 178 | <el-button type="primary" @click="onSubmit" plain>保存</el-button> | ||
| 179 | </div> | ||
| 180 | </el-dialog> | ||
| 171 | </div> | 181 | </div> |
| 172 | </template> | 182 | </template> |
| 173 | <script> | 183 | <script> |
| 174 | import { mapGetters } from "vuex"; | 184 | import { mapGetters } from "vuex"; |
| 175 | import { getDlxxByBsmSldy, saveOrUpdateDlxx } from "@/api/sfxx.js"; | 185 | import { getDetail } from "@/api/workflow/swhtxx.js"; |
| 176 | import { getDetail } from "@/api/workflow/swhtxx.js"; | 186 | export default { |
| 177 | export default { | ||
| 178 | computed: { | 187 | computed: { |
| 179 | ...mapGetters(["dictData", "flag"]), | 188 | ...mapGetters(["dictData", "flag"]), |
| 180 | }, | 189 | }, |
| 181 | mounted () { | 190 | mounted() { |
| 182 | // this.loading = true | 191 | // this.loading = true |
| 183 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 192 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 184 | this.propsParam = this.$attrs; | 193 | this.propsParam = this.$attrs; |
| 185 | this.getDlxxByBsmSldy(); | 194 | this.getDlxxByBsmSldy(); |
| 186 | }, | 195 | }, |
| 187 | data () { | 196 | data() { |
| 188 | return { | 197 | return { |
| 198 | dialogDlxx: false, | ||
| 189 | loading: false, | 199 | loading: false, |
| 190 | //表单是否可操作 | 200 | //表单是否可操作 |
| 191 | viewEdit: false, | 201 | viewEdit: false, |
| 192 | ruleForm: { | 202 | ruleForm: {}, |
| 193 | }, | 203 | dlxxForm: {}, |
| 194 | dlxxForm:{} | 204 | }; |
| 195 | } | ||
| 196 | }, | 205 | }, |
| 197 | methods: { | 206 | methods: { |
| 198 | getDlxxByBsmSldy() { | 207 | getDlxxByBsmSldy() { |
| ... | @@ -205,20 +214,16 @@ | ... | @@ -205,20 +214,16 @@ |
| 205 | } | 214 | } |
| 206 | }); | 215 | }); |
| 207 | }, | 216 | }, |
| 208 | saveOrUpdateDlxx() { | 217 | onSubmit() { |
| 209 | saveOrUpdateDlxx(this.ruleForm).then((res) => { | 218 | |
| 210 | if (res.code === 200) { | ||
| 211 | this.$message.success("成功") | ||
| 212 | } | ||
| 213 | }); | ||
| 214 | }, | 219 | }, |
| 215 | onSubmit () { | 220 | showDialogDlxx() { |
| 216 | this.saveOrUpdateDlxx() | 221 | this.dialogDlxx = true; |
| 217 | } | ||
| 218 | } | ||
| 219 | } | 222 | } |
| 223 | }, | ||
| 224 | }; | ||
| 220 | </script> | 225 | </script> |
| 221 | <style scoped lang="scss"> | 226 | <style scoped lang="scss"> |
| 222 | @import "~@/styles/public.scss"; | 227 | @import "~@/styles/public.scss"; |
| 223 | @import "~@/styles/slxx/slxx.scss"; | 228 | @import "~@/styles/slxx/slxx.scss"; |
| 224 | </style> | 229 | </style> | ... | ... |
-
Please register or sign in to post a comment