priceUpApply.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <template>
  2. <div style="overflow-y: auto;">
  3. <div class="common-card">
  4. <h3>审批进度</h3>
  5. <yl-step></yl-step>
  6. </div>
  7. <div class="common-card">
  8. <h3>调价信息</h3>
  9. <el-form :model="listForm" ref="listform" label-width="237px" class="grid-form-class">
  10. <div class="form-body">
  11. <div class="flex-css">
  12. <el-form-item label="申请单号" prop="aa">
  13. <div class="content">
  14. {{ listForm.aa }}
  15. </div>
  16. </el-form-item>
  17. <el-form-item label="药品编码" prop="bb">
  18. <div class="content">
  19. {{ listForm.bb }}
  20. </div>
  21. </el-form-item>
  22. <el-form-item label="药品名称" prop="cc">
  23. <div class="content">
  24. {{ listForm.cc }}
  25. </div>
  26. </el-form-item>
  27. </div>
  28. <div class="flex-css">
  29. <el-form-item label="剂型" prop="dd">
  30. <div class="content">
  31. {{ listForm.dd }}
  32. </div>
  33. </el-form-item>
  34. <el-form-item label="包装单位" prop="ee">
  35. <div class="content">
  36. {{ listForm.ee }}
  37. </div>
  38. </el-form-item>
  39. <el-form-item label="生产企业" prop="ff">
  40. <div class="content">
  41. {{ listForm.ff }}
  42. </div>
  43. </el-form-item>
  44. </div>
  45. <div class="flex-css">
  46. <el-form-item label="当前价格" prop="ii">
  47. <div class="content">
  48. {{ listForm.ii }}
  49. </div>
  50. </el-form-item>
  51. <el-form-item label="调整后价格" prop="gg">
  52. <div class="content">
  53. {{ listForm.gg }}
  54. </div>
  55. </el-form-item>
  56. <el-form-item label="申请原因" prop="hh">
  57. <div class="content">
  58. {{ listForm.hh }}
  59. </div>
  60. </el-form-item>
  61. </div>
  62. </div>
  63. </el-form>
  64. <div class="foot-button" style="margin:200px 0 20px" v-if="isShow">
  65. <el-button type="primary" @click="handlePass" :loading="ppLoad">通过</el-button>
  66. <el-button type="danger" @click="handleNoPass" :loading="nnLoad">驳回</el-button>
  67. </div>
  68. </div>
  69. </div>
  70. </template>
  71. <script>
  72. import ylStep from "@/components/yl-step";
  73. import { apprPricChg } from "@/api/approve/index"
  74. import { getGrpListByPage } from "@/api/consumCataManage-sup/index";
  75. export default {
  76. components:{
  77. ylStep
  78. },
  79. data() {
  80. return {
  81. listForm: {
  82. aa: "信息",
  83. bb: "信息",
  84. cc: "信息",
  85. dd: "信息",
  86. ee: "信息",
  87. ff: "信息",
  88. gg: "信息",
  89. hh: "信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息信息",
  90. ii: "信息",
  91. },
  92. ppLoad: false,
  93. nnLoad: false,
  94. isShow: false,
  95. reason: "",
  96. }
  97. },
  98. created () {
  99. if(this.$route.query.stas == "待审核"){
  100. this.isShow = true;
  101. }else{
  102. this.isShow = false;
  103. }
  104. },
  105. mounted () {
  106. this.getData();
  107. },
  108. methods: {
  109. getData(){
  110. // getGrpListByPage({id: this.$route.query.id}).then((res) => {
  111. // }).catch((err) => {
  112. // });
  113. },
  114. // 通过
  115. handlePass() {
  116. this.$confirm("确认通过", "提示", {
  117. confirmButtonText: "确定",
  118. cancelButtonText: "取消",
  119. type: "warning"
  120. }).then(() => {
  121. this.ppLoad = true;
  122. let data = {
  123. apprStas: "Y",
  124. adjmprcId: [],
  125. }
  126. data.adjmprcId.push(this.$route.query.sourceId);
  127. apprPricChg(data).then((res) => {
  128. this.ppLoad = false;
  129. this.$router.push('approveA')
  130. })
  131. .catch((err) => {
  132. this.ppLoad = false;
  133. });
  134. })
  135. },
  136. // 驳回
  137. handleNoPass() {
  138. this.$prompt("请输入驳回原因", "提示", {
  139. confirmButtonText: "确定",
  140. cancelButtonText: "取消",
  141. type: "warning",
  142. inputValidator: (value) => {
  143. if (!value) {
  144. return "驳回原因不能为空";
  145. } else {
  146. this.reason = value;
  147. }
  148. },
  149. }).then(() => {
  150. this.nnLoad = true;
  151. let data = {
  152. apprStas: "R",
  153. adjmprcId: [],
  154. reason: this.reason
  155. }
  156. data.adjmprcId.push(this.$route.query.sourceId);
  157. apprPricChg(data).then((res) => {
  158. this.nnLoad = false;
  159. this.$router.push('approveA')
  160. })
  161. .catch((err) => {
  162. this.nnLoad = false;
  163. });
  164. })
  165. }
  166. },
  167. }
  168. </script>
  169. <style lang="scss" scoped>
  170. </style>@/api/consumCataManage-sup/index