192baa40 by tianhaohao@pashanhoo.com

1111

1 parent 07a8d673
......@@ -77,21 +77,3 @@ export function deleteSfmx (bsmSf) {
}
})
}
export function getDlxxByBsmSldy (bsmSldy) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/getDlxxByBsmSldy',
method: 'get',
params: {
bsmSldy: bsmSldy
}
})
}
export function saveOrUpdateDlxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/saveOrUpdateDlxx',
method: 'post',
data
})
}
......
......@@ -11,7 +11,8 @@
v-Loading="loading"
:label-position="flag ? 'top' : ''"
:inline="flag"
label-width="130px">
label-width="130px"
>
<div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
<div class="slxx_title title-block">
申请信息
......@@ -70,6 +71,8 @@
</el-row>
<div class="slxx_title title-block">
电力过户信息
<el-button @click="showDialogDlxx">电力过户信息修改</el-button>
<div class="triangle"></div>
</div>
<el-row :gutter="10">
......@@ -138,12 +141,14 @@
</el-col>
<el-col :span="8">
<el-form-item label="是否过户:">
<el-switch disabled
<el-switch
disabled
v-model="dlxxForm.SFGH"
:active-value='1'
:active-value="1"
active-text="是"
:inactive-value="0"
inactive-text="否">
inactive-text="否"
>
</el-switch>
</el-form-item>
</el-col>
......@@ -166,33 +171,37 @@
<div class="triangle"></div>
</div>
</div>
</el-form>
<el-dialog :visible.sync="dialogDlxx" title="电力过户信息修改">
<div class="text-center">
<el-button @click="$popupCacel">取消</el-button>
<el-button type="primary" @click="onSubmit" plain>保存</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { mapGetters } from "vuex";
import { getDlxxByBsmSldy, saveOrUpdateDlxx } from "@/api/sfxx.js";
import { getDetail } from "@/api/workflow/swhtxx.js";
export default {
import { mapGetters } from "vuex";
import { getDetail } from "@/api/workflow/swhtxx.js";
export default {
computed: {
...mapGetters(["dictData", "flag"]),
},
mounted () {
mounted() {
// this.loading = true
this.viewEdit = this.$parent.currentSelectTab.ableOperation;
this.propsParam = this.$attrs;
this.getDlxxByBsmSldy();
},
data () {
data() {
return {
dialogDlxx: false,
loading: false,
//表单是否可操作
viewEdit: false,
ruleForm: {
},
dlxxForm:{}
}
ruleForm: {},
dlxxForm: {},
};
},
methods: {
getDlxxByBsmSldy() {
......@@ -205,20 +214,16 @@
}
});
},
saveOrUpdateDlxx() {
saveOrUpdateDlxx(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message.success("成功")
}
});
onSubmit() {
},
onSubmit () {
this.saveOrUpdateDlxx()
}
}
showDialogDlxx() {
this.dialogDlxx = true;
}
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
@import "~@/styles/public.scss";
@import "~@/styles/slxx/slxx.scss";
</style>
......