Bladeren bron

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 jaren geleden
bovenliggende
commit
674c157dc2

+ 33 - 11
src/api/role/admin.js Bestand weergeven

@@ -26,13 +26,23 @@ export function getAddAdminInitData() {
26 26
   })
27 27
 }
28 28
 
29
-export function addAdmin(params) {
30
-  
31
-  console.log("epa",params)
32
-  
29
+export function addAdmin(mobile, name, type, title, role, intro, user_title_name,department,department_id) {
30
+  const params = {
31
+    mobile: mobile,
32
+    name: name,
33
+    type: type,
34
+    title: title,
35
+    role: role,
36
+    intro: intro,
37
+    user_title_name: user_title_name,
38
+    department:department,
39
+    department_id:department_id,
40
+  }
41
+  console.log("epa",department_id,department)
42
+
33 43
   return request({
34 44
     url: '/api/admin/add',
35
-    method: 'get',
45
+    method: 'post',
36 46
     params: params
37 47
   })
38 48
 }
@@ -48,14 +58,25 @@ export function getModifyAdminInitData(uid) {
48 58
   })
49 59
 }
50 60
 
51
-export function modifyAdmin(params) {
52
-  
53
-  
54
- 
55
- 
61
+export function modifyAdmin(uid, name, type, title, role, intro, user_title_name, sort,department,department_id) {
62
+  console.log("进来",department,department_id)
63
+  const params = {
64
+    uid: uid,
65
+    name: name,
66
+    type: type,
67
+    title: title,
68
+    role: role,
69
+    intro: intro,
70
+    user_title_name: user_title_name,
71
+    sort: sort,
72
+    department:department,
73
+    department_id:department_id
74
+  }
75
+
76
+
56 77
   return request({
57 78
     url: '/api/admin/edit',
58
-    method: 'get',
79
+    method: 'post',
59 80
     params: params
60 81
   })
61 82
 }
@@ -89,3 +110,4 @@ export function submitDialysisRecordPermissionUsers(ids_str) {
89 110
     params: params
90 111
   })
91 112
 }
113
+

+ 12 - 0
src/router/modules/dialysis.js Bestand weergeven

@@ -292,6 +292,18 @@ export default {
292 292
         noCache: true
293 293
       }
294 294
     },
295
+    {
296
+      path: '/dialysis/print/batch/seventeen',
297
+      component: () =>
298
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_seventeen'),
299
+      hidden: true,
300
+      is_menu: false,
301
+      name: 'dialysis_batch_seventeen',
302
+      meta: {
303
+        title: '批量打印',
304
+        noCache: true
305
+      }
306
+    },
295 307
     {
296 308
       path: '/dialysis/print/batch/twenty',
297 309
       component: () =>

+ 1 - 0
src/xt_pages/data/components/drugTable.vue Bestand weergeven

@@ -199,6 +199,7 @@
199 199
         this.temp.config_field = newValue.replace(/[^A-Za-z]/g, "");
200 200
       },
201 201
       handleRowChange(currentRow, oldCurrentRow) {
202
+       
202 203
         if (currentRow != undefined) {
203 204
           this.currentId = currentRow.id;
204 205
           bus.$emit("drugParentChangeId", currentRow);

+ 26 - 2
src/xt_pages/data/components/drugTableSon.vue Bestand weergeven

@@ -84,6 +84,17 @@
84 84
             </el-form-item>
85 85
           </el-col>
86 86
         </el-row>
87
+        <el-row>
88
+          <el-col :span="12">
89
+             <el-form-item label="代码" prop="order" v-show="showOne">
90
+              <el-input
91
+                type="age"
92
+                v-model="temp.code"
93
+                placeholder="请输入代码"
94
+              ></el-input>
95
+            </el-form-item>
96
+          </el-col>
97
+        </el-row>
87 98
         <el-form-item :label="$t('data_config.remark')">
88 99
           <el-input
89 100
             type="textarea"
@@ -203,7 +214,8 @@
203 214
           field_name: undefined,
204 215
           value: "",
205 216
           remark: "",
206
-          orders: 0
217
+          orders: 0,
218
+          code:""
207 219
         },
208 220
         dialogFormVisible: false,
209 221
         dialogStatus: "",
@@ -223,7 +235,8 @@
223 235
         },
224 236
         downloadLoading: false,
225 237
         parentConfig: undefined,
226
-        addState: true
238
+        addState: true,
239
+        showOne:false
227 240
       };
228 241
     },
229 242
     computed: {
@@ -260,6 +273,14 @@
260 273
     mounted() {
261 274
       var _this = this;
262 275
       bus.$on("drugParentChangeId", function(parentData) {
276
+        console.log("parentData22222",parentData)
277
+         if(parentData.name == "药品剂型"){
278
+           console.log("333333")
279
+           _this.showOne = true
280
+         }else{
281
+           _this.showOne = false
282
+         }
283
+
263 284
         _this.parentConfig = parentData;
264 285
         // _this.list = parentData.childs
265 286
         console.log(parentData)
@@ -368,8 +389,11 @@
368 389
         });
369 390
       },
370 391
       createData() {
392
+        
371 393
         this.$refs["dataForm"].validate(valid => {
372 394
           if (valid) {
395
+            console.log("33333333",this.temp)
396
+           
373 397
             createDictionaryChildConfig(this.temp).then(response => {
374 398
               if (!response.data) {
375 399
                 // 由于mockjs 不支持自定义状态码只能这样hack

Diff onderdrukt omdat het te groot bestand
+ 2104 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_seventeen.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Bestand weergeven

@@ -160,6 +160,16 @@
160 160
           >批量打印</el-button
161 161
         >
162 162
       </template>
163
+      <template v-if="this.template_id == 17">
164
+        <el-button
165
+          size="small"
166
+          icon="el-icon-printer"
167
+          :disabled="selecting_schs.length == 0"
168
+          @click="batchPrintAction"
169
+          type="primary"
170
+          >批量打印</el-button
171
+        >
172
+      </template>
163 173
       <template v-if="this.template_id == 20">
164 174
         <el-button
165 175
           size="small"
@@ -801,6 +811,8 @@ export default {
801 811
         this.$router.push({ path: "/dialysis/print/batch/thirteen" });
802 812
       } else if (this.template_id == 15) {
803 813
         this.$router.push({ path: "/dialysis/print/batch/fifteen" });
814
+      } else if (this.template_id == 17) {
815
+        this.$router.push({ path: "/dialysis/print/batch/seventeen" });
804 816
       } else if (this.template_id == 20) {
805 817
         this.$router.push({ path: "/dialysis/print/batch/twenty" });
806 818
       } else if (this.template_id == 22) {