bdcb762c16c1019ad82fd093b294ca9fb28f7b15.svn-base 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <el-container style="height:520px;">
  3. <el-main style="border:1px solid #d5d5ff;margin-left:5px;padding:0px;">
  4. <p style="font-weight:bolder;background-color:#d5d5ff;padding:3px;">信息填报</p>
  5. <p style="margin-top:10px;margin-bottom: 10px;">
  6. <i class="left-vertical"></i>
  7. <span>退地减水计划实施情况</span>
  8. <span class="hrs"></span>
  9. </p>
  10. <el-form :model="formObj" :label-width="formLabelWidth">
  11. <el-form-item label="往年退地是否存在复垦现象">
  12. <el-radio v-model="formObj.isBeoRet" label="1">是</el-radio>
  13. <el-radio v-model="formObj.isBeoRet" label="2">否</el-radio>
  14. <el-button
  15. @click="addProblem('isBeoRet',formObj.isBeoRet)"
  16. type="text"
  17. v-if="formObj.isBeoRet =='1'">
  18. <i class="el-icon-circle-plus add-problem-icon"></i>
  19. </el-button>
  20. </el-form-item>
  21. <el-form-item label="复垦亩数" v-if="formObj.isBeoRet =='1'">
  22. <el-input placeholder="请输入复垦亩数" v-model="formObj.repFlArea" style="width: 30%;">
  23. <template slot="append">亩</template>
  24. </el-input>
  25. </el-form-item>
  26. <el-form-item label="">
  27. <el-button type="primary" @click="addHandler" v-if="openType">保 存</el-button>
  28. </el-form-item>
  29. </el-form>
  30. </el-main>
  31. <problem-dialog
  32. v-if="showAddProblemDialog && openType"
  33. :objType="68"
  34. :villType="68"
  35. :objId="currentObjectId"
  36. :objName="currentObjectName"
  37. :problemMiddleType="'退地减水'"
  38. :problData="probId"
  39. @closeDialog="closePlDialog"
  40. :currentObjectRgstrId="currentObjectRgstrId"
  41. ></problem-dialog>
  42. <!--<add-pic-com v-if="jqmmDialogShow" :dialogTitle="'相关材料'" :jqmmEngId="id" :type="type" :openType="openType" @jqmmDialogClose="jqmmDialogClose"></add-pic-com>-->
  43. </el-container>
  44. </template>
  45. <script>
  46. import inputWith from "@widget/inuptWith.vue"
  47. import problemDialog from "../../duChaWenTi/problemDialog.vue";
  48. import request from "@util/gw_ajax_request.js"
  49. import {getRgstridBdi} from "@api/duChaTianBao.js"
  50. export default {
  51. components: {
  52. inputWith: inputWith,
  53. problemDialog
  54. },
  55. props: ['currentObjectId', 'currentObjectName', 'currentObjectRgstrId', 'openType', 'currentResCode'],
  56. data() {
  57. return {
  58. id: "",
  59. objtbStatu: {
  60. wtuntStat: "",
  61. rgstrId: "",
  62. id: "",
  63. state: ""
  64. },
  65. rules: {},
  66. jqmmDialogShow: false,
  67. type: '',
  68. formObj: {},
  69. dialogFormVisible: false,
  70. formLabelWidth: '400px',
  71. loading: true,
  72. operationType1: '',
  73. rsvrRules: null,
  74. probId: '',
  75. showAddProblemDialog: false
  76. }
  77. },
  78. computed: {
  79. recPersId() {
  80. return localStorage.getItem("userid") ? localStorage.getItem("userid") : ''
  81. }
  82. },
  83. created() {
  84. this.findItemByType()
  85. },
  86. mounted() {
  87. this.getRgstridObj();
  88. },
  89. watch: {
  90. currentObjectRgstrId(n, o) {
  91. this.getRgstridObj();
  92. },
  93. },
  94. methods: {
  95. jqmmDialogClose() {
  96. this.jqmmDialogShow = false;
  97. },
  98. showPic(type) {
  99. this.type = type
  100. this.jqmmDialogShow = true
  101. },
  102. getRgstridObj() {
  103. var _self = this;
  104. getRgstridBdi(_self.currentObjectRgstrId).then((res) => {
  105. _self.formObj = res.data;
  106. });
  107. },
  108. addHandler() {
  109. var _self = this;
  110. _self.formObj['rgstrId'] = _self.currentObjectRgstrId;
  111. _self.formObj['persId'] = _self.recPersId;
  112. if (this.formObj.isBeoRet != null) {
  113. this.formObj['state'] = "2"
  114. } else if (this.formObj.isBeoRet == null) {
  115. this.formObj['state'] = "0";
  116. } else {
  117. this.formObj['state'] = "1"
  118. }
  119. this.$confirm('确认保存往年退地减水实施情况信息?', '提示', {
  120. confirmButtonText: '确定',
  121. cancelButtonText: '取消',
  122. type: 'warning'
  123. })
  124. .then(() => {
  125. try {
  126. request.post('/bis/insp/rlrw/bdi', _self.formObj).then((res) => {
  127. if (res.success) {
  128. _self.$message.success("修改成功");
  129. _self.$emit("addShuiKuSuccess");
  130. }
  131. });
  132. } catch (e) {
  133. }
  134. })
  135. .catch(() => {
  136. });
  137. },
  138. cancelHandler() {
  139. this.$emit('cancelHandler');
  140. },
  141. findItemByType() {
  142. const obj = {
  143. tname: "BIS_INSP_RLRW_BDI",
  144. }
  145. request.post("/bis/insp/item/ques/info/findItemByType", obj).then(res => {
  146. this.rsvrRules = res.data;
  147. })
  148. },
  149. addProblem(item, iValue) {
  150. let rest = this.rsvrRules.filter(e => {
  151. return e.iValue === iValue && e.eName === item;
  152. });
  153. if (rest[0]) {
  154. this.probId = rest[0].id;
  155. }
  156. this.showAddProblemDialog = true;
  157. },
  158. formatRadio(val) {
  159. if (val == '1') {
  160. return '是'
  161. } else if (val == '2') {
  162. return '否'
  163. } else {
  164. return val
  165. }
  166. },
  167. closePlDialog(val) {
  168. this.showAddProblemDialog = false;
  169. }
  170. },
  171. }
  172. </script>
  173. <style scoped>
  174. #dcdxHeader {
  175. padding: 15px 20px;
  176. }
  177. #dxdcFooter {
  178. text-align: center;
  179. }
  180. #dxdcAside {
  181. border: 1px solid #d5d5ff;
  182. }
  183. .el-dialog__wrapper .el-treeWhite {
  184. /* max-height: 260px !important; */
  185. }
  186. .add-problem-icon {
  187. font-size: 16px;
  188. }
  189. .el-icon-camera-solid, .el-icon-circle-plus {
  190. margin-left: 20px;
  191. color: #00bbff;
  192. font-size: 18px;
  193. line-height: 12px;
  194. vertical-align: middle;
  195. cursor: pointer;
  196. }
  197. .el-icon-circle-plus {
  198. vertical-align: top;
  199. }
  200. .left-vertical {
  201. width: 8px;
  202. height: 17px;
  203. background: rgb(250, 205, 145);
  204. display: inline-block;
  205. vertical-align: bottom;
  206. }
  207. .hrs {
  208. display: inline-block;
  209. width: calc(100% - 40px);
  210. margin-left: 10px;
  211. height: 1px;
  212. vertical-align: middle;
  213. background-color: #ddd;
  214. }
  215. </style>