enterpriseSituateItem.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  1. <template>
  2. <view class="enterpriseSituateItem">
  3. <view class="d-flex px-4">
  4. <view class="w-100 font-md text-dark font-weight">情况反馈</view>
  5. </view>
  6. <view class="px-4">
  7. <u--form labelPosition="left" :model="model" ref="situateForm" labelWidth="80">
  8. <u-form-item label="员工总数:" prop="staffTotal" ref="situateItem">
  9. <u--input v-model="model.staffTotal" type="number" :readonly="onlyFlag"
  10. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入员工总数' : ''"></u--input>
  11. </u-form-item>
  12. <!-- <u-form-item label="在岗人数:" prop="onlineStaffTotal" ref="situateItem">
  13. <u--input v-model="model.onlineStaffTotal" :readonly="onlyFlag" type="number"
  14. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入在岗人数' : ''"></u--input>
  15. </u-form-item> -->
  16. <u-form-item label="主导产品及年产能:" prop="productCapacity" ref="situateItem" class="questionDesc">
  17. <u--textarea v-model="model.productCapacity" :disabled="onlyFlag" :border="onlyFlag ? 'none' : 'surround'"
  18. :placeholder="!onlyFlag ? '请填写主导产品及年产能' : ''">
  19. </u--textarea>
  20. </u-form-item>
  21. <!-- <u-form-item label="企业下游客户名称:" prop="lowerCustomer" ref="situateItem" class="questionDesc">
  22. <u--textarea v-model="model.lowerCustomer" :disabled="onlyFlag" :border="onlyFlag ? 'none' : 'surround'"
  23. :placeholder="!onlyFlag ? '请填写企业下游客户名称' : ''">
  24. </u--textarea>
  25. </u-form-item> -->
  26. <u-form-item label="目前在手订单金额(万元)(每月更新):" prop="orderAmount" ref="situateItem">
  27. <u--input v-model="model.orderAmount" type="number" :readonly="onlyFlag"
  28. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入目前在手订单金额' : ''"></u--input>
  29. </u-form-item>
  30. <!-- <u-form-item label="持续到哪个月:" prop="endDate" @click="endDateTap">
  31. <u--input v-model="model.endDate" readonly :border="onlyFlag ? 'none' : 'surround'"
  32. :placeholder="!onlyFlag ? '请选择持续到哪个月' : ''">
  33. </u--input>
  34. </u-form-item> -->
  35. <!-- <u-form-item label="产品库存金额(万元):" prop="productStockAmount" ref="situateItem">
  36. <u--input v-model="model.productStockAmount" :readonly="onlyFlag" type="number"
  37. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入产品库存金额' : ''"></u--input>
  38. </u-form-item> -->
  39. <!-- <u-form-item label="主要原材料名称:" prop="rawMaterialName" ref="situateItem" labelPosition="top"
  40. class="questionDesc">
  41. <u--textarea v-model="model.rawMaterialName" :disabled="onlyFlag"
  42. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请填写主要原材料名称' : ''">
  43. </u--textarea>
  44. </u-form-item> -->
  45. <u-form-item label="原材料价格及增幅:" prop="rawMaterialSupplier" ref="situateItem" labelPosition="top"
  46. class="questionDesc">
  47. <u--textarea v-model="model.rawMaterialSupplier" :disabled="onlyFlag" :border="onlyFlag ? 'none' : 'surround'"
  48. :placeholder="!onlyFlag ? '请填写原材料价格及增幅' : ''">
  49. </u--textarea>
  50. </u-form-item>
  51. <u-form-item label="2023年开票销售实际(万元):" prop="lastYearInvoicingSaleActual" ref="situateItem" labelWidth="110">
  52. <u--input v-model="model.lastYearInvoicingSaleActual" type="number" :readonly="onlyFlag"
  53. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2023年开票销售实际(万元)' : ''">
  54. </u--input>
  55. </u-form-item>
  56. <u-form-item label="2023年开票销售增幅(%):" prop="lastYearInvoicingSaleGrowth" ref="situateItem" labelWidth="110">
  57. <u--input v-model="model.lastYearInvoicingSaleGrowth" type="number" :readonly="onlyFlag"
  58. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '2023年开票销售增幅(%)' : ''">
  59. </u--input>
  60. </u-form-item>
  61. <u-form-item label="2024年全年实时开票销售预测:" prop="yearInvoicingSalePlan" ref="situateItem" labelWidth="110">
  62. <u--input v-model="model.yearInvoicingSalePlan" type="number" :readonly="onlyFlag"
  63. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2024年全年实时开票销售预测' : ''">
  64. </u--input>
  65. </u-form-item>
  66. <view class="d-flex a-center py-2">
  67. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  68. <view class="border border-light-opc px-2 d-flex month">
  69. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  70. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  71. @nodeclick="monthTypeTap('monthInvoicingSalePlan', $event)">
  72. <slot>
  73. <view class="d-flex j-sb a-center">
  74. <text class="text-secondary">{{model.monthInvoicingSalePlan.month || '请选择月份'}}</text>
  75. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  76. </u-icon>
  77. </view>
  78. </slot>
  79. </song-data-picker>
  80. </view>
  81. <view class="text-primary font-md monthDesc">月累计实时开票销售(万元):</view>
  82. </view>
  83. <u--input v-model="model.monthInvoicingSalePlan.value" :readonly="onlyFlag" type="number"
  84. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入月累计实时开票销售(万元)' : ''">
  85. </u--input>
  86. </view>
  87. <view class="d-flex a-center py-2">
  88. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  89. <view class="border border-light-opc px-2 d-flex month">
  90. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  91. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  92. @nodeclick="monthTypeTap('monthInvoicingSaleGrowth', $event)">
  93. <slot>
  94. <view class="d-flex j-sb a-center">
  95. <text class="text-secondary">{{model.monthInvoicingSaleGrowth.month || '请选择'}}</text>
  96. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  97. </u-icon>
  98. </view>
  99. </slot>
  100. </song-data-picker>
  101. </view>
  102. <view class="text-primary font-md monthDesc">月累计实时开票销增幅(%):</view>
  103. </view>
  104. <u--input v-model="model.monthInvoicingSaleGrowth.value" :readonly="onlyFlag" type="number"
  105. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入月累计实时开票销增幅(%)' : ''">
  106. </u--input>
  107. </view>
  108. <u-form-item label="2023年工业总产值(万元):" prop="lastIndustryTotal" ref="situateItem" labelWidth="110">
  109. <u--input v-model="model.lastIndustryTotal" type="number" :readonly="onlyFlag"
  110. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2023年工业总产值(万元)' : ''">
  111. </u--input>
  112. </u-form-item>
  113. <u-form-item label="2023年工业总产值增幅(%):" prop="lastIndustryGrowth" ref="situateItem" labelWidth="110">
  114. <u--input v-model="model.lastIndustryGrowth" type="number" :readonly="onlyFlag"
  115. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '2023年工业总产值增幅(%)' : ''">
  116. </u--input>
  117. </u-form-item>
  118. <u-form-item label="2024年全年工业总产值预测(万元):" prop="industryTotalPlan" ref="situateItem" labelWidth="110">
  119. <u--input v-model="model.industryTotalPlan" type="number" :readonly="onlyFlag"
  120. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2024年全年工业总产值预测(万元)' : ''">
  121. </u--input>
  122. </u-form-item>
  123. <view class="d-flex a-center py-2">
  124. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  125. <view class="border border-light-opc px-2 d-flex month">
  126. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  127. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  128. @nodeclick="monthTypeTap('monthIndustryTotal', $event)">
  129. <slot>
  130. <view class="d-flex j-sb a-center">
  131. <text class="text-secondary">{{model.monthIndustryTotal.month || '请选择月份'}}</text>
  132. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  133. </u-icon>
  134. </view>
  135. </slot>
  136. </song-data-picker>
  137. </view>
  138. <view class="text-primary font-md monthDesc">月累计工业总产值(万元):</view>
  139. </view>
  140. <u--input v-model="model.monthIndustryTotal.value" :readonly="onlyFlag" type="number"
  141. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入月累计工业总产值(万元)' : ''">
  142. </u--input>
  143. </view>
  144. <view class="d-flex a-center py-2">
  145. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  146. <view class="border border-light-opc px-2 d-flex month">
  147. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  148. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  149. @nodeclick="monthTypeTap('monthIndustryTotalGrowth', $event)">
  150. <slot>
  151. <view class="d-flex j-sb a-center">
  152. <text class="text-secondary">{{model.monthIndustryTotalGrowth.month || '请选择'}}</text>
  153. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  154. </u-icon>
  155. </view>
  156. </slot>
  157. </song-data-picker>
  158. </view>
  159. <view class="text-primary font-md monthDesc">月累计工业总产值增幅(%):</view>
  160. </view>
  161. <u--input v-model="model.monthIndustryTotalGrowth.value" :readonly="onlyFlag" type="number"
  162. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入月累计工业总产值增幅(%)' : ''">
  163. </u--input>
  164. </view>
  165. <u-form-item label="2023年利润(万元):" prop="lastProfit" ref="situateItem" labelWidth="110">
  166. <u--input v-model="model.lastProfit" type="number" :readonly="onlyFlag"
  167. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2023年利润(万元)' : ''">
  168. </u--input>
  169. </u-form-item>
  170. <u-form-item label="2023年利润增幅(%):" prop="lastProfitGrowth" ref="situateItem" labelWidth="110">
  171. <u--input v-model="model.lastProfitGrowth" type="number" :readonly="onlyFlag"
  172. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '2023年利润增幅(%)' : ''">
  173. </u--input>
  174. </u-form-item>
  175. <u-form-item label="2024年全年利润预测(万元):" prop="profitPlan" ref="situateItem" labelWidth="110">
  176. <u--input v-model="model.profitPlan" type="number" :readonly="onlyFlag"
  177. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2024年全年利润预测(万元)' : ''">
  178. </u--input>
  179. </u-form-item>
  180. <view class="d-flex a-center py-2">
  181. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  182. <view class="border border-light-opc px-2 d-flex month">
  183. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  184. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  185. @nodeclick="monthTypeTap('monthProfit', $event)">
  186. <slot>
  187. <view class="d-flex j-sb a-center">
  188. <text class="text-secondary">{{model.monthProfit.month || '请选择月份'}}</text>
  189. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  190. </u-icon>
  191. </view>
  192. </slot>
  193. </song-data-picker>
  194. </view>
  195. <view class="text-primary font-md monthDesc">月累计利润(万元):</view>
  196. </view>
  197. <u--input v-model="model.monthProfit.value" :readonly="onlyFlag" type="number"
  198. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '月累计利润(万元)' : ''">
  199. </u--input>
  200. </view>
  201. <view class="d-flex a-center py-2">
  202. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  203. <view class="border border-light-opc px-2 d-flex month">
  204. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  205. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  206. @nodeclick="monthTypeTap('monthProfitGrowth', $event)">
  207. <slot>
  208. <view class="d-flex j-sb a-center">
  209. <text class="text-secondary">{{model.monthProfitGrowth.month || '请选择'}}</text>
  210. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  211. </u-icon>
  212. </view>
  213. </slot>
  214. </song-data-picker>
  215. </view>
  216. <view class="text-primary font-md monthDesc">月累计利润增幅(%):</view>
  217. </view>
  218. <u--input v-model="model.monthProfitGrowth.value" :readonly="onlyFlag" type="number"
  219. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入月累计利润增幅(%)' : ''">
  220. </u--input>
  221. </view>
  222. <u-form-item label="2023年工业用电量(千瓦时):" prop="industryPower" ref="situateItem" labelWidth="110">
  223. <u--input v-model="model.industryPower" type="number" :readonly="onlyFlag"
  224. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2023年工业用电量(千瓦时)' : ''">
  225. </u--input>
  226. </u-form-item>
  227. <u-form-item label="2024全年预计工业用电量:" prop="yearReceiptTaxPlan" ref="situateItem" labelWidth="110">
  228. <u--input v-model="model.yearReceiptTaxPlan" type="number" :readonly="onlyFlag"
  229. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '2024全年预计工业用电量' : ''">
  230. </u--input>
  231. </u-form-item>
  232. <view class="d-flex a-center py-2">
  233. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  234. <view class="border border-light-opc px-2 d-flex month">
  235. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  236. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  237. @nodeclick="monthTypeTap('monthPower', $event)">
  238. <slot>
  239. <view class="d-flex j-sb a-center">
  240. <text class="text-secondary">{{model.monthPower.month || '请选择'}}</text>
  241. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  242. </u-icon>
  243. </view>
  244. </slot>
  245. </song-data-picker>
  246. </view>
  247. <view class="text-primary font-md monthDesc">月累计工业用电量(千瓦时):</view>
  248. </view>
  249. <u--input v-model="model.monthPower.value" :readonly="onlyFlag" type="number"
  250. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '月累计工业用电量(千瓦时)' : ''">
  251. </u--input>
  252. </view>
  253. <view class="d-flex a-center py-2">
  254. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  255. <view class="border border-light-opc px-2 d-flex month">
  256. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  257. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  258. @nodeclick="monthTypeTap('monthPowerGrowth', $event)">
  259. <slot>
  260. <view class="d-flex j-sb a-center">
  261. <text class="text-secondary">{{model.monthPowerGrowth.month || '请选择'}}</text>
  262. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  263. </u-icon>
  264. </view>
  265. </slot>
  266. </song-data-picker>
  267. </view>
  268. <view class="text-primary font-md monthDesc">月累计工业用电量增幅(%):</view>
  269. </view>
  270. <u--input v-model="model.monthPowerGrowth.value" :readonly="onlyFlag" type="number"
  271. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '月累计工业用电量增幅(%)' : ''">
  272. </u--input>
  273. </view>
  274. <u-form-item label="2023年入库税收实绩(万元):" prop="lastYearReceiptTaxActual" ref="situateItem" labelWidth="110">
  275. <u--input v-model="model.lastYearReceiptTaxActual" type="number" :readonly="onlyFlag"
  276. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '请输入2023年入库税收实绩(万元)' : ''">
  277. </u--input>
  278. </u-form-item>
  279. <u-form-item label="2024全年预计入库税收:" prop="yearReceiptTaxGrowth" ref="situateItem" labelWidth="110">
  280. <u--input v-model="model.yearReceiptTaxGrowth" type="number" :readonly="onlyFlag"
  281. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '2024全年预计入库税收' : ''">
  282. </u--input>
  283. </u-form-item>
  284. <view class="d-flex a-center py-2">
  285. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  286. <view class="border border-light-opc px-2 d-flex month">
  287. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  288. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  289. @nodeclick="monthTypeTap('monthReceiptTax', $event)">
  290. <slot>
  291. <view class="d-flex j-sb a-center">
  292. <text class="text-secondary">{{model.monthReceiptTax.month || '请选择'}}</text>
  293. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  294. </u-icon>
  295. </view>
  296. </slot>
  297. </song-data-picker>
  298. </view>
  299. <view class="text-primary font-md monthDesc">月累计入库税收(万元):</view>
  300. </view>
  301. <u--input v-model="model.monthReceiptTax.value" :readonly="onlyFlag" type="number"
  302. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '月累计入库税收(万元)' : ''">
  303. </u--input>
  304. </view>
  305. <view class="d-flex a-center py-2">
  306. <view class="d-flex flex-wrap j-sb a-start commomWidth">
  307. <view class="border border-light-opc px-2 d-flex month">
  308. <song-data-picker class="flex-1" style="width: 100%;" @click.native="hideKeyboard" :clearIcon="false"
  309. :readonly="readOnlyFlag" :localdata="monthColumn" placeholder="请选择月份" popup-title="请选择月份"
  310. @nodeclick="monthTypeTap('monthReceiptTaxGrowth', $event)">
  311. <slot>
  312. <view class="d-flex j-sb a-center">
  313. <text class="text-secondary">{{model.monthReceiptTaxGrowth.month || '请选择'}}</text>
  314. <u-icon v-if="!readOnlyFlag" name="arrow-down" color="#303133" size="15">
  315. </u-icon>
  316. </view>
  317. </slot>
  318. </song-data-picker>
  319. </view>
  320. <view class="text-primary font-md monthDesc">月累计入库税收增幅(%):</view>
  321. </view>
  322. <u--input v-model="model.monthReceiptTaxGrowth.value" :readonly="onlyFlag" type="number"
  323. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '月累计入库税收增幅(%)' : ''">
  324. </u--input>
  325. </view>
  326. <u-form-item label="企业3-5年发展计划:" prop="developmentFuture" ref="situateItem" class="questionDesc">
  327. <u--textarea v-model="model.developmentFuture" :disabled="onlyFlag" maxlength="300"
  328. :border="onlyFlag ? 'none' : 'surround'" :placeholder="!onlyFlag ? '企业3-5年发展计划' : ''">
  329. </u--textarea>
  330. </u-form-item>
  331. </u--form>
  332. <!-- 年月控件 -->
  333. <u-datetime-picker :show="showDatetime" mode="year-month" @confirm="calendarConfirm" @close="showDatetime=false"
  334. @cancel="showDatetime=false" :minDate="1672531200000" confirmDisabledText="请选择截止日期" closeOnClickOverlay>
  335. </u-datetime-picker>
  336. </view>
  337. </view>
  338. </template>
  339. <script>
  340. import {formatDate} from "@/common/util2.js"
  341. export default {
  342. props: {
  343. model: {
  344. type: Object,
  345. default: () => {}
  346. },
  347. readOnlyFlag: {
  348. type: Boolean,
  349. default: false
  350. }
  351. },
  352. data() {
  353. return {
  354. showDatetime: false,
  355. monthColumn: [{
  356. text: '1',
  357. value: '1'
  358. },
  359. {
  360. text: '1~2',
  361. value: '1~2'
  362. },
  363. {
  364. text: '1~3',
  365. value: '1~3'
  366. },
  367. {
  368. text: '1~4',
  369. value: '1~4'
  370. },
  371. {
  372. text: '1~5',
  373. value: '1~5'
  374. },
  375. {
  376. text: '1~6',
  377. value: '1~6'
  378. },
  379. {
  380. text: '1~7',
  381. value: '1~7'
  382. },
  383. {
  384. text: '1~8',
  385. value: '1~8'
  386. },
  387. {
  388. text: '1~9',
  389. value: '1~9'
  390. },
  391. {
  392. text: '1~10',
  393. value: '1~10'
  394. },
  395. {
  396. text: '1~11',
  397. value: '1~11'
  398. },
  399. {
  400. text: '1~12',
  401. value: '1~12'
  402. }
  403. // ['1', '1~2', '1~3', '1~4', '1~5', '1~6', '1~7', '1~8', '1~9', '1~10', '1~11', '1~12']
  404. ],
  405. monthType: '',
  406. }
  407. },
  408. computed: {
  409. onlyFlag() {
  410. return this.readOnlyFlag
  411. }
  412. },
  413. methods: {
  414. // 月份选择切换
  415. monthTypeTap(type, ele) {
  416. if (this.readOnlyFlag) return
  417. this.monthType = type;
  418. this.monthSelect(ele)
  419. this.hideKeyboard()
  420. },
  421. // 持续到哪个月-->点击
  422. endDateTap() {
  423. if (this.readOnlyFlag) return
  424. this.showDatetime = true;
  425. this.hideKeyboard()
  426. },
  427. // 持续到哪个月-->日期选择确认
  428. calendarConfirm(e) {
  429. this.showDatetime = false
  430. this.model.endDate = formatDate(e.value, 'yyyy-MM')
  431. },
  432. // 月份选择确认
  433. monthSelect(e) {
  434. switch (this.monthType) {
  435. case 'monthInvoicingSalePlan':
  436. this.model.monthInvoicingSalePlan.month = e['value']
  437. break;
  438. case 'monthInvoicingSaleGrowth':
  439. this.model.monthInvoicingSaleGrowth.month = e['value']
  440. break;
  441. case 'monthPower':
  442. this.model.monthPower.month = e['value']
  443. break;
  444. case 'monthPowerGrowth':
  445. this.model.monthPowerGrowth.month = e['value']
  446. break;
  447. case 'monthIndustryTotal':
  448. this.model.monthIndustryTotal.month = e['value']
  449. break;
  450. case 'monthIndustryTotalGrowth':
  451. this.model.monthIndustryTotalGrowth.month = e['value']
  452. break;
  453. case 'monthReceiptTax':
  454. this.model.monthReceiptTax.month = e['value']
  455. break;
  456. case 'monthReceiptTaxGrowth':
  457. this.model.monthReceiptTaxGrowth.month = e['value']
  458. break;
  459. case 'monthProfitGrowth':
  460. this.model.monthProfitGrowth.month = e['value']
  461. break;
  462. case 'monthProfit':
  463. this.model.monthProfit.month = e['value']
  464. break;
  465. default:
  466. break;
  467. }
  468. },
  469. // 隐藏键盘
  470. hideKeyboard() {
  471. uni.hideKeyboard()
  472. }
  473. },
  474. }
  475. </script>
  476. <style lang="scss" scoped>
  477. .enterpriseSituateItem {
  478. .commomWidth {
  479. width: 400rpx;
  480. .month {
  481. width: 150rpx;
  482. }
  483. .monthDesc {
  484. width: 230rpx;
  485. }
  486. }
  487. }
  488. </style>