fourthInfoForm.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <template>
  2. <div>
  3. <el-form ref="basicInfoForm" label-position="top" :model="info" :rules="rules" label-width="150px">
  4. <div class="fomebox">
  5. <div class="ftop flexc">
  6. <img class="timg flex0" src="@/assets/images/project/tabtit.png"/>
  7. <div class="flex1 tit">投产信息</div>
  8. <!-- <el-button type="primary" plain>保存</el-button> -->
  9. </div>
  10. <div class="rowbox">
  11. <el-row :gutter="22">
  12. <el-col :span="6">
  13. <el-form-item label="投产时间" prop="begitcTimenTime">
  14. <el-date-picker
  15. v-model="info.begitcTimenTime"
  16. type="date"
  17. placeholder="年 / 月 / 日">
  18. </el-date-picker>
  19. </el-form-item>
  20. </el-col>
  21. <el-col :span="6">
  22. <el-form-item label="入规时间" prop="rgTime">
  23. <el-date-picker
  24. v-model="info.rgTime"
  25. type="date"
  26. placeholder="年 / 月 / 日">
  27. </el-date-picker>
  28. </el-form-item>
  29. </el-col>
  30. <el-col :span="6">
  31. <el-form-item label="万元产值能耗" prop="wycznh">
  32. <el-input placeholder="请输入万元产值能耗" v-model="info.wycznh" />
  33. </el-form-item>
  34. </el-col>
  35. </el-row>
  36. </div>
  37. </div>
  38. <div class="fomebox">
  39. <div class="ftop flexc">
  40. <img class="timg flex0" src="@/assets/images/project/tabtit.png"/>
  41. <div class="flex1 tit">年度统计</div>
  42. <el-button type="primary" plain @click="handleAdd">提交</el-button>
  43. </div>
  44. <div class="rowbox">
  45. <el-row :gutter="22">
  46. <el-col :span="6">
  47. <el-form-item label="年度" prop="tcxxYear">
  48. <el-date-picker
  49. v-model="form.tcxxYear"
  50. type="year"
  51. value-format="yyyy"
  52. placeholder="选择年">
  53. </el-date-picker>
  54. </el-form-item>
  55. </el-col>
  56. <el-col :span="6">
  57. <el-form-item label="月份" prop="tcxxMonth">
  58. <el-date-picker
  59. v-model="form.tcxxMonth"
  60. type="month"
  61. value-format="MM"
  62. placeholder="选择月">
  63. </el-date-picker>
  64. </el-form-item>
  65. </el-col>
  66. </el-row>
  67. <el-row :gutter="22">
  68. <el-col :span="6">
  69. <el-form-item label="当月累计产值(万元)" prop="cz">
  70. <el-input type="number" placeholder="请输入累计产值" v-model="form.cz" />
  71. </el-form-item>
  72. </el-col>
  73. <el-col :span="6">
  74. <el-form-item label="当月实缴税收(万元)" prop="sjss">
  75. <el-input type="number" placeholder="请输入实缴税收" v-model="form.sjss" />
  76. </el-form-item>
  77. </el-col>
  78. <el-col :span="6">
  79. <el-form-item label="当月累计用电(万千瓦时)" prop="hdl">
  80. <el-input type="number" placeholder="请输入累计用电" v-model="form.hdl" />
  81. </el-form-item>
  82. </el-col>
  83. </el-row>
  84. </div>
  85. <div class="ftab flexc" style="padding-top: 7px;">
  86. <div class="line"></div>每月项目建设进展情况
  87. </div>
  88. <div class="rowbox" style="width: 100%;overflow: hidden;">
  89. <el-table :max-height="213"show-summary :data="tableDataa" border style="width: 100%;margin-bottom: 15px;">
  90. <el-table-column align="center" type="index" label="序号" width="150"></el-table-column>
  91. <el-table-column align="center" prop="cz" label="当月累计产值(万元)" > </el-table-column>
  92. <el-table-column align="center" prop="sjss" label="当月实缴税收(万元)" > </el-table-column>
  93. <el-table-column align="center" prop="hdl" label="当月累计用电(万千瓦时)" > </el-table-column>
  94. <el-table-column align="center" prop="time" label="上报时间" >
  95. </el-table-column>
  96. </el-table>
  97. </div>
  98. </div>
  99. <div class="fomebox">
  100. <div class="ftop flexc">
  101. <img class="timg flex0" src="@/assets/images/project/tabtit.png"/>
  102. <div class="flex1 tit">上传附件</div>
  103. <!-- <el-button type="primary" plain>保存</el-button> -->
  104. </div>
  105. <div class="rowbox">
  106. <el-table :data="tableData" border style="width: 100%;margin-bottom: 15px;">
  107. <el-table-column align="center" prop="index" label="序号" width="10%"></el-table-column>
  108. <el-table-column align="center" prop="fjlx" label="附件类型" width="30%"> </el-table-column>
  109. <el-table-column align="center" label="操作" width="30%">
  110. <template slot-scope="scope">
  111. <div class="flexcc">
  112. <div class="btna flexc coa">
  113. <fileUploads v-model="form.reportUrl" :datam="jyzhp" v-if="index == 0"/>
  114. <fileUploads v-model="form.reportUrl" :datam="xsht" v-if="index == 1" />
  115. <fileUploads v-model="form.reportUrl" :datam="xsfp" v-if="index == 2" />
  116. <fileUploads v-model="form.reportUrl" :datam="cwbb" v-if="index == 3" />
  117. <fileUploads v-model="form.reportUrl" :datam="tjbb" v-if="index == 4" />
  118. </div>
  119. </div>
  120. </template>
  121. </el-table-column>
  122. </el-table>
  123. </div>
  124. </div>
  125. </el-form>
  126. <div class="flexcc pt7">
  127. <!-- <el-button type="primary" plain>暂存</el-button> -->
  128. <el-button type="primary" style="margin-left: 26px;">提交</el-button>
  129. </div>
  130. </div>
  131. </template>
  132. <script>
  133. import { listMonth, getMonth, delMonth, addMonth, updateMonth } from "@/api/zhaoshang/month"
  134. export default {
  135. props: {
  136. info: {
  137. type: Object,
  138. default: null
  139. }
  140. },
  141. data() {
  142. return {
  143. value:'',
  144. value1:'',
  145. loading:false,
  146. form:{
  147. tcxxYear: null,
  148. tcxxMonth: null,
  149. cz: null,
  150. sjss: null,
  151. hdl: null,
  152. createBy: null,
  153. createTime: null,
  154. updateBy: null,
  155. updateTime: null,
  156. remark: null
  157. },
  158. options: [{
  159. value: '选项1',
  160. label: '黄金糕'
  161. }, {
  162. value: '选项2',
  163. label: '双皮奶'
  164. }],
  165. tableData: [{
  166. fjlx: '项目生产经营照片',
  167. index:0,
  168. time: '2025-06-16 16:57',
  169. },
  170. {
  171. fjlx: '销售合同',
  172. index:0,
  173. time: '2025-06-16 16:57',
  174. },
  175. {
  176. fjlx: '销售发票',
  177. index:0,
  178. time: '2025-06-16 16:57',
  179. },
  180. {
  181. fjlx: '公司财务报表',
  182. index:0,
  183. time: '2025-06-16 16:57',
  184. },
  185. {
  186. fjlx: '生产统计报表',
  187. index:0,
  188. time: '2025-06-16 16:57',
  189. }
  190. ],
  191. jyzhp:{
  192. xmId:null,
  193. xmbh:null,
  194. xmmc:null,
  195. bigType:'d',
  196. type:19
  197. },
  198. xsht:{
  199. xmId:null,
  200. xmbh:null,
  201. xmmc:null,
  202. bigType:'d',
  203. type:20
  204. },
  205. xsfp:{
  206. xmId:null,
  207. xmbh:null,
  208. xmmc:null,
  209. bigType:'d',
  210. type:21
  211. },
  212. cwbb:{
  213. xmId:null,
  214. xmbh:null,
  215. xmmc:null,
  216. bigType:'d',
  217. type:22
  218. },
  219. tjbb:{
  220. xmId:null,
  221. xmbh:null,
  222. xmmc:null,
  223. bigType:'d',
  224. type:23
  225. },
  226. tableDataa: [
  227. ],
  228. rules: {
  229. }
  230. }
  231. },
  232. created() {
  233. if(this.$route.query.id == -1){
  234. // 新增
  235. this.info = {tcxxId: null,
  236. xmId: null,
  237. xmbh: null,
  238. xmmc: null,
  239. tcTime: null,
  240. rgTime: null,
  241. wycznh: null,
  242. createBy: null,
  243. createTime: null,
  244. updateBy: null,
  245. updateTime: null,
  246. remark: null}
  247. this.getList()
  248. }else{
  249. // 修改
  250. this.getList()
  251. }
  252. },
  253. mounted() {
  254. },
  255. methods:{
  256. getList() {
  257. this.loading = true
  258. listQyxx(this.queryParams).then(response => {
  259. this.tableDataa = response.rows
  260. this.total = response.total
  261. this.loading = false
  262. })
  263. },
  264. // 每月更新提交
  265. handleAdd(){
  266. if(this.form.tcxxYear == null){
  267. this.$message.error('请填写年度');
  268. return
  269. }
  270. if(this.form.tcxxMonth == null){
  271. this.$message.error('请填写月份');
  272. return
  273. }
  274. console.log(this.form)
  275. return
  276. addJsxx(this.form).then(response => {
  277. this.$modal.msgSuccess("新增成功")
  278. this.open = false
  279. this.getList()
  280. })
  281. }
  282. }
  283. }
  284. </script>
  285. <style lang="scss" scoped>
  286. ::v-deep {
  287. .fomebox{
  288. .el-button--primary{font-size: 14px;padding: 8px 14px;}
  289. .el-form-item__label{padding-bottom: 0;line-height: 38px;}
  290. .el-form-item{margin-bottom: 15px;}
  291. .el-input__inner{height: 40px;line-height: 40px;}
  292. .el-date-editor.el-input{width: 100%;}
  293. .el-select{width: 100%;}
  294. table{width: 100% !important;}
  295. .el-table .el-table__header-wrapper th{background: #F6FAFD;}
  296. }
  297. }
  298. .fomebox{background: #FFFFFF;margin-bottom: 15px;border-radius: 4px;
  299. .ftop{padding: 10px 17px 10px 16px;border-bottom: 1px solid #E6E6E6;
  300. .timg{width: 20px;height: 20px;margin-right: 13px;}
  301. .tit{font-weight: bold;font-size: 16px;color: #222838;}
  302. }
  303. .rowbox{padding: 10px 15px 9px;}
  304. .ftab{font-weight: bold;font-size: 14px;color: #2777D0;padding: 7px 16px 0px;
  305. .line{width: 6px;margin-right: 9px;height: 20px;background: #2777D0;}
  306. }
  307. .btna{font-weight: 500;font-size: 14px;padding: 0 13px;
  308. .imgs{width: 15px;height: 15px;display: flex;align-items: center;justify-content: center;margin-right: 7px;
  309. .imga{width: 13px;height: 14px;}
  310. .imgb{width: 14px;height: 14px;}
  311. .imgc{width: 15px;height: 15px;}
  312. .imgd{width: 13px;height: 14px;}
  313. }
  314. &.coa{color: #1890FF;}
  315. &.cob{color: #FE7F0E;}
  316. &.coc{color: #00A854;}
  317. &.cod{color: #F25858;}
  318. }
  319. }
  320. </style>