manyi.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <view class="container">
  3. <cu-custom bgColor="bg-gradual-pink" :isBack="true">
  4. <block slot="backText">返回</block>
  5. <block slot="content">客户满意度调查</block>
  6. </cu-custom>
  7. <view class="cu-form-group margin-top">
  8. <view class="title">调查时间:</view>
  9. <my-date style="padding: 0px;" v-model="pingJiaShiJian" placeholder="请选择" fields="day"
  10. label=""></my-date>
  11. </view>
  12. <view class="cu-form-group">
  13. <view class="title" >被调查部门:</view>
  14. <app-select placeholder="请选择调查部门" v-model="buMenId" :dict="buMenList" space ></app-select>
  15. </view>
  16. <uni-section title="您对检测人员的服务是否满意" type="line" padding>
  17. <uni-rate size="18" :value="5" v-model="wenTiYiDaAn"/>
  18. </uni-section>
  19. <uni-section title="您对检验中心的检测效率是否满意" type="line" padding>
  20. <uni-rate size="18" :value="5" v-model="wenTiErDaAn"/>
  21. </uni-section>
  22. <uni-section title="您对检验中心出具的检测报告结果是否满意" type="line" padding>
  23. <uni-rate size="18" :value="5" v-model="wenTiSanDaAn"/>
  24. </uni-section>
  25. <uni-section title="对检测人员技术能力是否满意" type="line" padding>
  26. <uni-rate size="18" :value="5" v-model="wenTiSiDaAn"/>
  27. </uni-section>
  28. <uni-section title="对检验部门的管理是否满意" type="line" padding>
  29. <uni-rate size="18" :value="5" v-model="wenTiWuDaAn"/>
  30. </uni-section>
  31. <uni-section title="客户意见和建议" type="line" padding>
  32. <textarea maxlength="-1" v-model="qingNinTianXie" placeholder="意见和建议"></textarea>
  33. </uni-section>
  34. <view class="padding flex flex-direction">
  35. <button class="cu-btn bg-blue lg" @click="onSubmit">提交</button>
  36. </view>
  37. </view>
  38. </template>
  39. <script>
  40. import appSelect from '@/components/my-componets/appSelect.vue'
  41. import myDate from '@/components/my-componets/my-date.vue'
  42. export default {
  43. components: {
  44. myDate,
  45. appSelect
  46. },
  47. data() {
  48. return {
  49. buMenList:[],
  50. pingJiaShiJian:null,
  51. buMenId:'',
  52. wenTiYiDaAn:'',
  53. wenTiErDaAn:'',
  54. wenTiSanDaAn:'',
  55. wenTiSiDaAn:'',
  56. wenTiWuDaAn:'',
  57. qingNinTianXie:''
  58. }
  59. },
  60. onLoad() {
  61. let that = this
  62. this.$http.post("/ibps/business/v3/common/queryBuMenList", "466555896126767104").then(res => {
  63. if (res.data.state == 200 && res.data.data) {
  64. this.buMenList=[]
  65. for(let ind in res.data.data){
  66. this.buMenList.push({value:res.data.data[ind].id,text:res.data.data[ind].buMenMingChengs})
  67. }
  68. }
  69. });
  70. },
  71. methods: {
  72. onSubmit(){
  73. let para={
  74. pingJiaShiJian:this.pingJiaShiJian,
  75. buMenId:this.buMenId,
  76. wenTiYiDaAn:this.wenTiYiDaAn,
  77. wenTiErDaAn:this.wenTiErDaAn,
  78. wenTiSanDaAn:this.wenTiSanDaAn,
  79. wenTiSiDaAn:this.wenTiSiDaAn,
  80. wenTiWuDaAn:this.wenTiWuDaAn,
  81. qingNinTianXieBao:this.qingNinTianXieBao
  82. }
  83. let that=this;
  84. this.$http.post("ibps/business/v3/sh/manyidu/add",para).then(res =>{
  85. if (res.data.state == 200) {
  86. this.$tip.success("提交成功!")
  87. this.$Router.replace({name:'index'})
  88. }else if (res.data.state == 400) {
  89. this.$tip.success("用户未登录!")
  90. this.$Router.replace({name:'login'})
  91. }else{
  92. this.$tip.error("请求错误: "+res.data.message)
  93. }
  94. }).catch((err) => {
  95. let msg = ((err.response || {}).data || {}).message || err.data.message || "请求出现错误,请稍后再试"
  96. this.$tip.error(msg);
  97. });
  98. },
  99. onChange(e) {
  100. }
  101. }
  102. }
  103. </script>
  104. <style>
  105. .cu-form-group .title {
  106. min-width: calc(8em + 25px);
  107. }
  108. </style>