78ff03f4 by 蔡俊立

查封登记

1 parent d13532be
...@@ -38,3 +38,12 @@ export function saveData (data) { ...@@ -38,3 +38,12 @@ export function saveData (data) {
38 data 38 data
39 }) 39 })
40 } 40 }
41
42 // 批量数据保存
43 export function batchSaveData (data) {
44 return request({
45 url: '/ywbl/cfdj/batchSaveData',
46 method: 'post',
47 data
48 })
49 }
......
...@@ -59,14 +59,6 @@ export default { ...@@ -59,14 +59,6 @@ export default {
59 label: "权利人" 59 label: "权利人"
60 }, 60 },
61 { 61 {
62 prop: "ywrmc",
63 label: "义务人"
64 },
65 {
66 prop: "qlxz",
67 label: "权利性质"
68 },
69 {
70 prop: "ytmc", 62 prop: "ytmc",
71 label: "用途" 63 label: "用途"
72 }, 64 },
......
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
132 </template> 132 </template>
133 <script> 133 <script>
134 import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable"; 134 import cfBdcdyTable from "@/views/workflow/components/cfBdcdyTable";
135 import { cfBatchInit, saveData } from "@/api/cfdjFlow.js"; 135 import { cfBatchInit, batchSaveData } from "@/api/cfdjFlow.js";
136 import { mapGetters } from "vuex"; 136 import { mapGetters } from "vuex";
137 export default { 137 export default {
138 data () { 138 data () {
...@@ -179,8 +179,9 @@ export default { ...@@ -179,8 +179,9 @@ export default {
179 }); 179 });
180 }, 180 },
181 onSubmit () { 181 onSubmit () {
182 saveData(this.ruleForm).then((res) => { 182 this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq;
183 if (res.code === 200 && res.result) { 183 batchSaveData(this.ruleForm).then((res) => {
184 if (res.code === 200) {
184 this.$message.success('保存成功'); 185 this.$message.success('保存成功');
185 } 186 }
186 }); 187 });
......
...@@ -63,20 +63,20 @@ ...@@ -63,20 +63,20 @@
63 </el-form-item> 63 </el-form-item>
64 </el-col> 64 </el-col>
65 <el-col :span="8"> 65 <el-col :span="8">
66 <el-form-item :class="flag ? 'marginBot0' : ''" label="宗地面积:"> 66 <el-form-item :class="flag ? 'marginBot0' : ''" label="面积:">
67 <el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input> 67 <el-input disabled v-model="ruleForm.qlxx.mj"></el-input>
68 </el-form-item> 68 </el-form-item>
69 </el-col> 69 </el-col>
70 </el-row> 70 </el-row>
71 <el-row :gutter="10"> 71 <el-row :gutter="10">
72 <el-col :span="8"> 72 <el-col :span="8">
73 <el-form-item :class="flag ? 'marginBot0' : ''" label="土地用途:"> 73 <el-form-item :class="flag ? 'marginBot0' : ''" label="用途:">
74 <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input> 74 <el-input disabled v-model="ruleForm.qlxx.ytmc"></el-input>
75 </el-form-item> 75 </el-form-item>
76 </el-col> 76 </el-col>
77 <el-col :span="16"> 77 <el-col :span="16">
78 <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:"> 78 <el-form-item :class="flag ? 'marginBot0' : ''" label="坐落:">
79 <el-input disabled v-model="ruleForm.zdjbxx.zl"></el-input> 79 <el-input disabled v-model="ruleForm.qlxx.zl"></el-input>
80 </el-form-item> 80 </el-form-item>
81 </el-col> 81 </el-col>
82 </el-row> 82 </el-row>
...@@ -104,13 +104,13 @@ ...@@ -104,13 +104,13 @@
104 <el-row :gutter="10"> 104 <el-row :gutter="10">
105 <el-col :span="8"> 105 <el-col :span="8">
106 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封机关:" prop="cfdj.cfjg"> 106 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封机关:" prop="cfdj.cfjg">
107 <el-input v-model="ruleForm.cfdj.cfjg" :disabled="$route.query.viewtype"></el-input> 107 <el-input v-model="ruleForm.cfdj.cfjg" :disabled="$route.query.viewtype || ableEdit"></el-input>
108 </el-form-item> 108 </el-form-item>
109 </el-col> 109 </el-col>
110 <el-col :span="8"> 110 <el-col :span="8">
111 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflx"> 111 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封类型:" prop="cfdj.cflx">
112 <el-select v-model="ruleForm.cfdj.cflx" class="width100" filterable clearable placeholder="请选择查封类型:" 112 <el-select v-model="ruleForm.cfdj.cflx" class="width100" filterable clearable placeholder="请选择查封类型:"
113 :disabled="$route.query.viewtype" @change="changeCflx"> 113 :disabled="$route.query.viewtype || ableEdit" @change="changeCflx">
114 <el-option v-for="item in dictData['A32']" :key="item.dcode" :label="item.dname" :value="item.dcode"> 114 <el-option v-for="item in dictData['A32']" :key="item.dcode" :label="item.dname" :value="item.dcode">
115 </el-option> 115 </el-option>
116 </el-select> 116 </el-select>
...@@ -118,25 +118,25 @@ ...@@ -118,25 +118,25 @@
118 </el-col> 118 </el-col>
119 <el-col :span="8"> 119 <el-col :span="8">
120 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文件:" prop="cfdj.cfwj"> 120 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文件:" prop="cfdj.cfwj">
121 <el-input v-model="ruleForm.cfdj.cfwj" :disabled="$route.query.viewtype"></el-input> 121 <el-input v-model="ruleForm.cfdj.cfwj" :disabled="$route.query.viewtype || ableEdit"></el-input>
122 </el-form-item> 122 </el-form-item>
123 </el-col> 123 </el-col>
124 </el-row> 124 </el-row>
125 <el-row :gutter="10"> 125 <el-row :gutter="10">
126 <el-col :span="8"> 126 <el-col :span="8">
127 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文号:" prop="cfdj.cfwh"> 127 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封文号:" prop="cfdj.cfwh">
128 <el-input v-model="ruleForm.cfdj.cfwh" :disabled="$route.query.viewtype"></el-input> 128 <el-input v-model="ruleForm.cfdj.cfwh" :disabled="$route.query.viewtype || ableEdit"></el-input>
129 </el-form-item> 129 </el-form-item>
130 </el-col> 130 </el-col>
131 <el-col :span="8"> 131 <el-col :span="8">
132 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封起始时间:" prop="cfdj.cfqssj"> 132 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封起始时间:" prop="cfdj.cfqssj">
133 <el-date-picker v-model="ruleForm.cfdj.cfqssj" class="width100" :disabled="$route.query.viewtype" 133 <el-date-picker v-model="ruleForm.cfdj.cfqssj" class="width100" :disabled="$route.query.viewtype || ableEdit"
134 type="date" placeholder="选择日期" value-format="yyyy-MM-dd"></el-date-picker> 134 type="date" placeholder="选择日期" value-format="yyyy-MM-dd"></el-date-picker>
135 </el-form-item> 135 </el-form-item>
136 </el-col> 136 </el-col>
137 <el-col :span="8"> 137 <el-col :span="8">
138 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封结束时间:" prop="cfdj.cfjssj"> 138 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封结束时间:" prop="cfdj.cfjssj">
139 <el-date-picker v-model="ruleForm.cfdj.cfjssj" class="width100" :disabled="$route.query.viewtype" 139 <el-date-picker v-model="ruleForm.cfdj.cfjssj" class="width100" :disabled="$route.query.viewtype || ableEdit"
140 type="date" placeholder="选择日期" value-format="yyyy-MM-dd"></el-date-picker> 140 type="date" placeholder="选择日期" value-format="yyyy-MM-dd"></el-date-picker>
141 </el-form-item> 141 </el-form-item>
142 </el-col> 142 </el-col>
...@@ -144,26 +144,26 @@ ...@@ -144,26 +144,26 @@
144 <el-row :gutter="10"> 144 <el-row :gutter="10">
145 <el-col :span="24"> 145 <el-col :span="24">
146 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封范围:" prop="cfdj.cffw"> 146 <el-form-item :class="flag ? 'marginBot0' : ''" label="查封范围:" prop="cfdj.cffw">
147 <el-input v-model="ruleForm.cfdj.cffw" :disabled="$route.query.viewtype"></el-input> 147 <el-input v-model="ruleForm.cfdj.cffw" :disabled="$route.query.viewtype || ableEdit"></el-input>
148 </el-form-item> 148 </el-form-item>
149 </el-col> 149 </el-col>
150 </el-row> 150 </el-row>
151 <el-row :gutter="10"> 151 <el-row :gutter="10">
152 <el-col :span="24"> 152 <el-col :span="24">
153 <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="cfdj.fj"> 153 <el-form-item :class="flag ? 'marginBot0' : ''" label="附记:" prop="cfdj.fj">
154 <el-input v-model="ruleForm.cfdj.fj" type="textarea" :disabled="$route.query.viewtype"></el-input> 154 <el-input v-model="ruleForm.cfdj.fj" type="textarea" :disabled="$route.query.viewtype || ableEdit"></el-input>
155 </el-form-item> 155 </el-form-item>
156 </el-col> 156 </el-col>
157 </el-row> 157 </el-row>
158 <el-row :gutter="10"> 158 <el-row :gutter="10">
159 <el-col> 159 <el-col>
160 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="cfdj.djyy"> 160 <el-form-item :class="flag ? 'marginBot0' : ''" label="登记原因:" prop="cfdj.djyy">
161 <el-input class="textArea" type="textarea" v-model="ruleForm.cfdj.djyy" :disabled="$route.query.viewtype"></el-input> 161 <el-input class="textArea" type="textarea" v-model="ruleForm.cfdj.djyy" :disabled="$route.query.viewtype || ableEdit"></el-input>
162 </el-form-item> 162 </el-form-item>
163 </el-col> 163 </el-col>
164 </el-row> 164 </el-row>
165 </div> 165 </div>
166 <el-row class="btn" v-if="!$route.query.viewtype"> 166 <el-row class="btn" v-if="!$route.query.viewtype && !ableEdit">
167 <el-form-item :class="flag ? 'marginBot0' : ''"> 167 <el-form-item :class="flag ? 'marginBot0' : ''">
168 <el-button type="primary" @click="onSubmit">保存</el-button> 168 <el-button type="primary" @click="onSubmit">保存</el-button>
169 </el-form-item> 169 </el-form-item>
...@@ -185,11 +185,13 @@ export default { ...@@ -185,11 +185,13 @@ export default {
185 propsParam: {}, 185 propsParam: {},
186 //页面数据 186 //页面数据
187 ruleForm: {}, 187 ruleForm: {},
188 188 //是否可编辑
189 ableEdit: false
189 }; 190 };
190 }, 191 },
191 created () { 192 created () {
192 this.propsParam = this.$attrs; 193 this.propsParam = this.$attrs;
194 this.ableEdit = this.$parent.showBatch;
193 this.list(this.propsParam.bsmSldy); 195 this.list(this.propsParam.bsmSldy);
194 }, 196 },
195 watch: { 197 watch: {
......