huangyw 3 years ago
parent
commit
884db96d88

+ 24 - 0
src/router/modules/stock.js View File

@@ -348,6 +348,30 @@ export default {
348 348
         title: '退库打印',
349 349
         noCache: true
350 350
       }
351
+    },
352
+
353
+    {
354
+      path: '/stock/inventoryTransfer/Addtrans',
355
+      component: () => import('@/xt_pages/stock/inventoryTransfer/Addtrans'),
356
+      hidden: true,
357
+      is_menu: false,
358
+      name: 'Addtrans',
359
+      meta: {
360
+        title: '新增调拨',
361
+        noCache: true
362
+      }
363
+    },
364
+
365
+    {
366
+      path: '/stock/inventoryTransfer/transDetails',
367
+      component: () => import('@/xt_pages/stock/inventoryTransfer/transDetails'),
368
+      hidden: true,
369
+      is_menu: false,
370
+      name: 'Addtrans',
371
+      meta: {
372
+        title: '调拨详情',
373
+        noCache: true
374
+      }
351 375
     }
352 376
   ]
353 377
 }

+ 1 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderFortySeven.vue View File

@@ -766,7 +766,6 @@
766 766
                         <div
767 767
                           class="under_line"
768 768
                           style="width: 100px; text-align: center">
769
-                       
770 769
                          {{
771 770
                             predialysis.puncture_way
772 771
                               ? predialysis.puncture_way
@@ -1223,35 +1222,7 @@
1223 1222
                           }}
1224 1223
                         </td>
1225 1224
                         <td>
1226
-                          <span
1227
-                            v-if="
1228
-                              (dialysisOrder &&
1229
-                                monitor.operate_time >
1230
-                                  dialysisOrder.end_time) ||
1231
-                              (dialysisOrder &&
1232
-                                monitor.operate_time < dialysisOrder.start_time)
1233
-                            "
1234
-                          >
1235
-                            {{
1236
-                              monitor.transmembrane_pressure
1237
-                                ? monitor.transmembrane_pressure
1238
-                                : ""
1239
-                            }}
1240
-                          </span>
1241
-                          <span
1242
-                            v-if="
1243
-                              dialysisOrder &&
1244
-                              monitor.operate_time <= dialysisOrder.end_time &&
1245
-                              dialysisOrder &&
1246
-                              monitor.operate_time >= dialysisOrder.start_time
1247
-                            "
1248
-                          >
1249
-                            {{
1250
-                              monitor.transmembrane_pressure
1251
-                                ? monitor.transmembrane_pressure
1252
-                                : 0
1253
-                            }}
1254
-                          </span>
1225
+                          {{ monitor.transmembrane_pressure ? monitor.transmembrane_pressure : "" }}
1255 1226
                         </td>
1256 1227
                         <td v-if="org_id != 9836">
1257 1228
                           {{

+ 226 - 0
src/xt_pages/stock/inventoryTransfer/Addtrans.vue View File

@@ -0,0 +1,226 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <div>
6
+        <el-button type="primary" @click="save">保存</el-button>
7
+        <el-button type="warning" @click="examine">审核</el-button>
8
+      </div>
9
+    </div>
10
+    <div class="app-container">
11
+      <div
12
+        style="
13
+          justify-content: flex-start;
14
+          margin: 0px 0 12px 0;
15
+          display: flex;
16
+          align-items: center;
17
+        "
18
+      >
19
+        <el-form
20
+          :inline="true"
21
+          :rules="rules"
22
+          :model="formInline"
23
+          class="demo-form-inline"
24
+        >
25
+          <el-form-item label="单据日期:">
26
+            <el-date-picker
27
+              v-model="value1"
28
+              type="date"
29
+              placeholder="选择日期"
30
+            ></el-date-picker>
31
+          </el-form-item>
32
+          <el-form-item label="调出仓库:" prop="region">
33
+            <el-select v-model="formInline.region" placeholder="活动区域">
34
+              <el-option label="区域一" value="shanghai"></el-option>
35
+              <el-option label="区域二" value="beijing"></el-option>
36
+            </el-select>
37
+          </el-form-item>
38
+          <el-form-item label="调入仓库:" prop="region">
39
+            <el-select v-model="formInline.region" placeholder="活动区域">
40
+              <el-option label="区域一" value="shanghai"></el-option>
41
+              <el-option label="区域二" value="beijing"></el-option>
42
+            </el-select>
43
+          </el-form-item>
44
+        </el-form>
45
+      </div>
46
+      <el-table
47
+        :row-style="changColor"
48
+        :header-cell-style="{
49
+          backgroundColor: 'rgb(245, 247, 250)',
50
+          color: '#606266',
51
+        }"
52
+        :data="tableData"
53
+        :class="signAndWeighBoxPatients"
54
+        border
55
+      >
56
+        >
57
+        <el-table-column label="单据编号" align="center">
58
+          <template slot-scope="scope">
59
+            <span>{{ scope.row.drug_name ? scope.row.drug_name : "" }}</span>
60
+          </template>
61
+        </el-table-column>
62
+        <el-table-column align="center">
63
+          <template slot="header" slot-scope="scope">
64
+            商品名称<span style="color:red;">*</span>
65
+          </template>
66
+          <template slot-scope="scope">
67
+        <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
68
+          </template>
69
+        </el-table-column>
70
+        <el-table-column label="商品类型" align="center">
71
+          <template slot-scope="scope">
72
+            <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
73
+          </template>
74
+        </el-table-column>
75
+        <el-table-column label="规格&&单位" align="center">
76
+          <template slot-scope="scope">
77
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
78
+          </template>
79
+        </el-table-column>
80
+        <el-table-column label="调拨数量" align="center">
81
+          <template slot-scope="scope">
82
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
83
+          </template>
84
+        </el-table-column>
85
+        <el-table-column label="库存总数" align="center">
86
+          <template slot-scope="scope">
87
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
88
+          </template>
89
+        </el-table-column>
90
+        <el-table-column label="制单人" align="center">
91
+          <template slot-scope="scope">
92
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
93
+          </template>
94
+        </el-table-column>
95
+        <el-table-column label="备注" align="center">
96
+          <template slot-scope="scope">
97
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
98
+          </template>
99
+        </el-table-column>
100
+
101
+
102
+
103
+        <el-table-column label="操作" align="center" width="260px">
104
+          <template slot-scope="scope">
105
+            <el-tooltip class="item" content="新增" placement="top-start">
106
+              <el-button
107
+                icon="el-icon-plus"
108
+                size="small"
109
+                type="primary"
110
+                @click="toAdd(scope.row)"
111
+              >
112
+              </el-button>
113
+            </el-tooltip>
114
+
115
+            <el-tooltip class="item" content="删除" placement="top-start">
116
+              <el-button
117
+                icon="el-icon-delete"
118
+                size="small"
119
+                type="danger"
120
+                @click="toDelete(scope.row, scope.row.$index)"
121
+              >
122
+              </el-button>
123
+            </el-tooltip>
124
+          </template>
125
+        </el-table-column>
126
+      </el-table>
127
+      <el-pagination
128
+        @size-change="handleSizeChange"
129
+        @current-change="handleCurrentChange"
130
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
131
+        :page-size="10"
132
+        background
133
+        align="right"
134
+        style="margin-top: 20px"
135
+        layout="total, sizes, prev, pager, next, jumper"
136
+        :total="total"
137
+      >
138
+      </el-pagination>
139
+    </div>
140
+  </div>
141
+</template>
142
+
143
+<script>
144
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
145
+export default {
146
+  components: {
147
+    BreadCrumb,
148
+  },
149
+  data() {
150
+    return {
151
+      crumbs: [
152
+        { path: false, name: "库房管理" },
153
+        { path: "/stock/warehousequery", name: "新增调拨" },
154
+      ],
155
+      value1: "",
156
+      total: 0,
157
+      page: 1,
158
+      limit: 10,
159
+      tableData: [{}, {}],
160
+      formInline: {
161
+        user: "",
162
+        region: "",
163
+      },
164
+      rules: {
165
+        region: [
166
+          { required: true, message: "请选择活动区域", trigger: "change" },
167
+        ],
168
+      },
169
+    };
170
+  },
171
+
172
+  methods: {
173
+    // 初始化数据
174
+    init() {},
175
+
176
+    // 反审核
177
+    approval() {},
178
+
179
+    // 审核
180
+    examine() {},
181
+
182
+    // 保存
183
+    save() {},
184
+
185
+    // 表单添加
186
+    toAdd() {},
187
+
188
+    // 删除
189
+    toDelete() {},
190
+
191
+    // 详情查看
192
+    toDetails() {},
193
+
194
+    // 表单全选
195
+    handleSelectionChange() {},
196
+
197
+    // 页表操作
198
+    handleSizeChange(val) {
199
+      this.limit = val;
200
+      this.init();
201
+    },
202
+    handleCurrentChange(val) {
203
+      this.page = val;
204
+      this.init();
205
+    },
206
+
207
+    // 表格样式
208
+    changColor({ rowIndex }) {
209
+      if (rowIndex % 2 == 1) {
210
+        return {
211
+          backgroundColor: "#C4E1FF",
212
+          color: "#303133",
213
+        };
214
+      } else {
215
+        return {
216
+          backgroundColor: "#ACD6FF",
217
+          color: "#303133",
218
+        };
219
+      }
220
+    },
221
+  },
222
+};
223
+</script>
224
+
225
+<style rel="stylesheet/css" lang="scss" scoped>
226
+</style>

+ 6 - 2
src/xt_pages/stock/inventoryTransfer/index.vue View File

@@ -181,13 +181,17 @@ export default {
181 181
     examine() {},
182 182
 
183 183
     // 添加
184
-    Add() {},
184
+    Add() {
185
+        this.$router.push({path:"/stock/inventoryTransfer/Addtrans"})
186
+    },
185 187
 
186 188
     // 删除
187 189
     toDelete() {},
188 190
 
189 191
     // 详情查看
190
-    toDetails() {},
192
+    toDetails() {
193
+        this.$router.push({path:"/stock/inventoryTransfer/transDetails"})
194
+    },
191 195
 
192 196
     // 表单全选
193 197
     handleSelectionChange() {},

+ 176 - 0
src/xt_pages/stock/inventoryTransfer/transDetails.vue View File

@@ -0,0 +1,176 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <el-table
8
+        :row-style="changColor"
9
+        :header-cell-style="{
10
+          backgroundColor: 'rgb(245, 247, 250)',
11
+          color: '#606266',
12
+        }"
13
+        :data="tableData"
14
+        :class="signAndWeighBoxPatients"
15
+        border
16
+      >
17
+        >
18
+        <el-table-column align="center">
19
+          <template slot="header" slot-scope="scope">
20
+            商品名称<span style="color: red">*</span>
21
+          </template>
22
+          <template slot-scope="scope">
23
+            <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
24
+          </template>
25
+        </el-table-column>
26
+        <el-table-column label="商品类型" align="center">
27
+          <template slot-scope="scope">
28
+            <span>{{ scope.row.Count ? scope.row.Count : "" }}</span>
29
+          </template>
30
+        </el-table-column>
31
+        <el-table-column label="规格&&单位" align="center">
32
+          <template slot-scope="scope">
33
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
34
+          </template>
35
+        </el-table-column>
36
+        <el-table-column label="调拨数量" align="center">
37
+          <template slot-scope="scope">
38
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
39
+          </template>
40
+        </el-table-column>
41
+        <el-table-column label="调出仓库" align="center">
42
+          <template slot-scope="scope">
43
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
44
+          </template>
45
+        </el-table-column>
46
+        <el-table-column label="调入仓库" align="center">
47
+          <template slot-scope="scope">
48
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
49
+          </template>
50
+        </el-table-column>
51
+        <el-table-column label="库存总数" align="center">
52
+          <template slot-scope="scope">
53
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
54
+          </template>
55
+        </el-table-column>
56
+        <el-table-column label="制单人" align="center">
57
+          <template slot-scope="scope">
58
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
59
+          </template>
60
+        </el-table-column>
61
+        <el-table-column label="审核人" align="center">
62
+          <template slot-scope="scope">
63
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
64
+          </template>
65
+        </el-table-column>
66
+        <el-table-column label="审核时间" align="center">
67
+          <template slot-scope="scope">
68
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
69
+          </template>
70
+        </el-table-column>
71
+        <el-table-column label="备注" align="center">
72
+          <template slot-scope="scope">
73
+            <span>{{ scope.row.outCount ? scope.row.outCount : "" }}</span>
74
+          </template>
75
+        </el-table-column>
76
+      </el-table>
77
+      <el-pagination
78
+        @size-change="handleSizeChange"
79
+        @current-change="handleCurrentChange"
80
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
81
+        :page-size="10"
82
+        background
83
+        align="right"
84
+        style="margin-top: 20px"
85
+        layout="total, sizes, prev, pager, next, jumper"
86
+        :total="total"
87
+      >
88
+      </el-pagination>
89
+    </div>
90
+  </div>
91
+</template>
92
+
93
+<script>
94
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
95
+export default {
96
+  components: {
97
+    BreadCrumb,
98
+  },
99
+  data() {
100
+    return {
101
+      crumbs: [
102
+        { path: false, name: "库房管理" },
103
+        { path: "/stock/warehousequery", name: "调拨详情" },
104
+      ],
105
+      value1: "",
106
+      total: 0,
107
+      page: 1,
108
+      limit: 10,
109
+      tableData: [{}, {}],
110
+      formInline: {
111
+        user: "",
112
+        region: "",
113
+      },
114
+      rules: {
115
+        region: [
116
+          { required: true, message: "请选择活动区域", trigger: "change" },
117
+        ],
118
+      },
119
+    };
120
+  },
121
+
122
+  methods: {
123
+    // 初始化数据
124
+    init() {},
125
+
126
+    // 反审核
127
+    approval() {},
128
+
129
+    // 审核
130
+    examine() {},
131
+
132
+    // 保存
133
+    save() {},
134
+
135
+    // 表单添加
136
+    toAdd() {},
137
+
138
+    // 删除
139
+    toDelete() {},
140
+
141
+    // 详情查看
142
+    toDetails() {},
143
+
144
+    // 表单全选
145
+    handleSelectionChange() {},
146
+
147
+    // 页表操作
148
+    handleSizeChange(val) {
149
+      this.limit = val;
150
+      this.init();
151
+    },
152
+    handleCurrentChange(val) {
153
+      this.page = val;
154
+      this.init();
155
+    },
156
+
157
+    // 表格样式
158
+    changColor({ rowIndex }) {
159
+      if (rowIndex % 2 == 1) {
160
+        return {
161
+          backgroundColor: "#C4E1FF",
162
+          color: "#303133",
163
+        };
164
+      } else {
165
+        return {
166
+          backgroundColor: "#ACD6FF",
167
+          color: "#303133",
168
+        };
169
+      }
170
+    },
171
+  },
172
+};
173
+</script>
174
+
175
+<style rel="stylesheet/css" lang="scss" scoped>
176
+</style>