XMLWAN 3 anos atrás
pai
commit
44eaa5dec6

+ 2 - 2
config/index.js Ver arquivo

29
 
29
 
30
     // host: 'xt.test.sgjyun.com',
30
     // host: 'xt.test.sgjyun.com',
31
     //  host: 'xt.kuyicloud.com',
31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
33
-    host: 'localhost',
32
+    host: 'xt.test.sgjyun.com',
33
+   // host: 'localhost',
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35
     autoOpenBrowser: true,
35
     autoOpenBrowser: true,
36
     errorOverlay: true,
36
     errorOverlay: true,

+ 8 - 0
src/api/stock.js Ver arquivo

761
     params: params
761
     params: params
762
   })
762
   })
763
 }
763
 }
764
+
765
+export function getAdjustPriceById(params) {
766
+  return request({
767
+    url: '/api/stock/getadjustpricebyid',
768
+    method: 'get',
769
+    params: params
770
+  })
771
+}

+ 12 - 5
src/xt_pages/stock/stockModifyPrice.vue Ver arquivo

200
     <el-dialog
200
     <el-dialog
201
         title="库房调价"
201
         title="库房调价"
202
         :visible.sync="dialogVisible"
202
         :visible.sync="dialogVisible"
203
-        width="1200px"
204
-        :before-close="handleClose">
203
+        width="1200px">
205
         <el-form :model="form" class="modifyDialog" label-width="120px">
204
         <el-form :model="form" class="modifyDialog" label-width="120px">
206
             <el-form-item label="耗材名称">
205
             <el-form-item label="耗材名称">
207
                 <!-- <el-input v-model="form.name"></el-input> -->
206
                 <!-- <el-input v-model="form.name"></el-input> -->
465
             end_time:"",
464
             end_time:"",
466
             ids:"",
465
             ids:"",
467
             check_time:new Date(),
466
             check_time:new Date(),
468
-            checker:this.$store.getters.xt_user.user.user_name,
467
+            checker:this.$store.getters.xt_user.user.id,
469
             checkDialogVisible:false,
468
             checkDialogVisible:false,
470
         }
469
         }
471
     },
470
     },
474
 
473
 
475
         },
474
         },
476
         print(){
475
         print(){
477
-            this.$router.push({path:'/stock/stockModifyPricePrint'})
476
+            if(this.ids == ""){
477
+              this.$message.error("请勾选打印数据")
478
+              return
479
+            }
480
+            this.$router.push({path:'/stock/stockModifyPricePrint?ids='+this.ids})
478
             
481
             
479
         },
482
         },
480
         querySearchAsync(keyword, cb) {
483
         querySearchAsync(keyword, cb) {
676
     
679
     
677
      },
680
      },
678
      SaveCheckedPrice(){
681
      SaveCheckedPrice(){
682
+       
679
          var params = {
683
          var params = {
680
             ids:this.ids,
684
             ids:this.ids,
681
             check_time:this.getTime(this.check_time),
685
             check_time:this.getTime(this.check_time),
684
        console.log("params",params)
688
        console.log("params",params)
685
        SaveCheckedPrice(params).then(response=>{
689
        SaveCheckedPrice(params).then(response=>{
686
          if(response.data.state == 1){
690
          if(response.data.state == 1){
687
-            
691
+           var adjustPrice = response.data.data.adjustPrice
692
+           this.$message.success("保存成功")
693
+           this.getAllStockPrice() 
694
+           this.checkDialogVisible = false
688
          }
695
          }
689
        })
696
        })
690
      }
697
      }

+ 15 - 1
src/xt_pages/stock/stockModifyPricePrint.vue Ver arquivo

77
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
77
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
78
 const moment = require('moment');
78
 const moment = require('moment');
79
 import { uParseTime } from '@/utils/tools'
79
 import { uParseTime } from '@/utils/tools'
80
+import { getAdjustPriceById} from "@/api/stock"
80
 export default {
81
 export default {
81
     components:{
82
     components:{
82
         BreadCrumb
83
         BreadCrumb
101
             scanStyles: false
102
             scanStyles: false
102
             })
103
             })
103
         },
104
         },
104
-
105
+       getAdjustPriceById(ids){
106
+           var params = {
107
+            ids:ids,
108
+           }
109
+         getAdjustPriceById(params).then(response=>{
110
+           if(response.data.state == 1){
111
+             var list = response.data.data.list
112
+             console.log("打印列表",list)
113
+           }
114
+         })
115
+       }
105
 
116
 
106
     },
117
     },
107
     created(){
118
     created(){
119
+      var ids = this.$route.query.ids
120
+      console.log("ids",ids)
121
+      this.getAdjustPriceById(ids)
108
     }
122
     }
109
 }
123
 }
110
 </script>
124
 </script>

+ 13 - 14
src/xt_pages/user/templateSummary.vue Ver arquivo

91
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
91
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
92
                   <div>
92
                   <div>
93
                     <div v-for="item in editObj.template_inspection_content">
93
                     <div v-for="item in editObj.template_inspection_content">
94
-                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
94
+                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
95
                     <div style="display:flex;flex-wrap: wrap;">
95
                     <div style="display:flex;flex-wrap: wrap;">
96
                       <div v-for="it in item.arr" style="width:33%;">
96
                       <div v-for="it in item.arr" style="width:33%;">
97
-                        {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>
97
+                        {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>:
98
                         <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
98
                         <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
99
                             {{it.inspect_value}}↓
99
                             {{it.inspect_value}}↓
100
                           </span> 
100
                           </span> 
332
                         <p>{{ item.project_name }}</p>
332
                         <p>{{ item.project_name }}</p>
333
                         <div style="display:flex;flex-wrap: wrap;">
333
                         <div style="display:flex;flex-wrap: wrap;">
334
                           <div v-for="it in item.arr" style="width:33%;">
334
                           <div v-for="it in item.arr" style="width:33%;">
335
-                           {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>
335
+                           {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
336
                              <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
336
                              <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
337
                              {{it.inspect_value}}↓
337
                              {{it.inspect_value}}↓
338
                            </span> 
338
                            </span> 
588
                         <p>{{ item.project_name }}</p>
588
                         <p>{{ item.project_name }}</p>
589
                         <div style="display:flex;flex-wrap: wrap;">
589
                         <div style="display:flex;flex-wrap: wrap;">
590
                           <div v-for="it in item.arr" style="width:33%;">
590
                           <div v-for="it in item.arr" style="width:33%;">
591
-                            {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>
591
+                            {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
592
                              <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
592
                              <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
593
                              {{it.inspect_value}}↓
593
                              {{it.inspect_value}}↓
594
                            </span> 
594
                            </span> 
957
      
957
      
958
     },
958
     },
959
     methods: {
959
     methods: {
960
-      getTime(val) {
961
-         if(val < 0){
962
-           return ""
963
-         }
964
-         if(val == ""){
965
-          return ""
966
-         }else {
967
-          return uParseTime(val, '{y}-{m}-{d}')
968
-         }
969
-      },
960
+    getTime(value, temp) {
961
+      if (value == 0) {
962
+        return ''
963
+      }
964
+      if (value != undefined) {
965
+        return uParseTime(value, temp)
966
+      }
967
+      return ''
968
+    },
970
       getTimeOne(val) {
969
       getTimeOne(val) {
971
          if(val < 0){
970
          if(val < 0){
972
            return ""
971
            return ""

+ 8 - 2
src/xt_pages/user/templateSummaryPrint.vue Ver arquivo

52
         <span style="font-weight:bold;">阶段小结化验结果:</span>
52
         <span style="font-weight:bold;">阶段小结化验结果:</span>
53
         <div class="borderBox">
53
         <div class="borderBox">
54
           <div v-for="item in patientList.template_inspection_content">
54
           <div v-for="item in patientList.template_inspection_content">
55
-            <p>{{ item.project_name }}</p>
55
+            <p>{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
56
             <div style="display:flex;flex-wrap: wrap;">
56
             <div style="display:flex;flex-wrap: wrap;">
57
               <div v-for="it in item.arr" style="width:33%;">
57
               <div v-for="it in item.arr" style="width:33%;">
58
-                {{ it.item_name }} {{ it.inspect_value }}
58
+            {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
59
+                <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
60
+                  {{it.inspect_value}}↓
61
+                </span> 
62
+                <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
63
+                    {{it.inspect_value}}↑
64
+                </span> 
59
               </div>
65
               </div>
60
             </div>
66
             </div>
61
           </div>
67
           </div>