Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
368c33957f
2 changed files with 549 additions and 0 deletions
  1. 277 0
      src/xt_pages/supply/purchaseOrderQuery.vue
  2. 272 0
      src/xt_pages/supply/supplyQuery.vue

+ 277 - 0
src/xt_pages/supply/purchaseOrderQuery.vue View File

@@ -0,0 +1,277 @@
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
+      <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
8
+        <div>
9
+          <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
10
+          @change="changeTypeName">
11
+            <el-option
12
+              v-for="item in types"
13
+              :key="item.id"
14
+              :label="item.type_name"
15
+              :value="item.id">
16
+            </el-option>
17
+          </el-select>
18
+          <el-date-picker
19
+            size="small"
20
+            v-model="start_time"
21
+            prefix-icon="el-icon-date"
22
+            :editable="false"
23
+            style="width: 196px;"
24
+            type="date"
25
+            placeholder="选择日期时间"
26
+            align="right"
27
+            format="yyyy-MM-dd"
28
+            value-format="yyyy-MM-dd"
29
+            @change="startTimeChange"
30
+           ></el-date-picker>-
31
+            <el-date-picker
32
+              size="small"
33
+              v-model="end_time"
34
+              prefix-icon="el-icon-date"
35
+              :editable="false"
36
+              style="width: 196px;"
37
+              type="date"
38
+              placeholder="选择日期时间"
39
+              align="right"
40
+              format="yyyy-MM-dd"
41
+              value-format="yyyy-MM-dd"
42
+              @change="endTimeChange"
43
+          ></el-date-picker>
44
+          <el-input
45
+            size="small"
46
+            style="width: 200px;margin-left:10px;"
47
+            class="filter-item"
48
+            v-model.trim="keywords"
49
+            placeholder="耗材名称"
50
+          />
51
+          <el-button
52
+            size="small"
53
+            class="filter-item"
54
+            type="primary"
55
+            icon="el-icon-search"
56
+            @click="search"
57
+            >搜索</el-button
58
+          >
59
+        </div>
60
+        <div>
61
+          <el-button size="small" type="primary" @click="toAdd">新增</el-button>
62
+        </div>
63
+      </div>
64
+
65
+
66
+       <el-table
67
+        :row-style="{ color: '#303133' }"
68
+        :header-cell-style="{
69
+          backgroundColor: 'rgb(245, 247, 250)',
70
+          color: '#606266'
71
+        }"
72
+        :data="tableList"
73
+        :class="signAndWeighBoxPatients"
74
+        border
75
+      >
76
+        <el-table-column label="订单日期" align="center">
77
+          <template slot-scope="scope">
78
+            <span></span>
79
+         </template>
80
+        </el-table-column>
81
+        <el-table-column label="订单编号" align="center">
82
+          <template slot-scope="scope">
83
+          
84
+          </template>
85
+        </el-table-column>
86
+        <el-table-column label="供应商" align="center">
87
+            <template slot-scope="scope">
88
+              <span></span>
89
+            </template>
90
+         </el-table-column>
91
+        <el-table-column label="关联购货订单" align="center">
92
+          <template slot-scope="scope">
93
+            
94
+          </template>
95
+        </el-table-column>
96
+        <el-table-column label="购物金额" align="center">
97
+          <template slot-scope="scope">
98
+           
99
+          </template>
100
+        </el-table-column>
101
+
102
+       <el-table-column label="数量" align="center">
103
+         <template slot-scope="scope">
104
+           
105
+         </template>
106
+       </el-table-column>
107
+
108
+       <el-table-column label="订单状态" align="center">
109
+         <template slot-scope="scope">
110
+         
111
+        
112
+         </template>
113
+       </el-table-column>
114
+      
115
+        <el-table-column label="交货日期" align="center">
116
+         <template slot-scope="scope">
117
+         
118
+         </template>
119
+       </el-table-column>
120
+        
121
+    
122
+      <el-table-column label="制单人" align="center">
123
+         <template slot-scope="scope">
124
+       
125
+         </template>
126
+       </el-table-column>
127
+
128
+      <el-table-column label="审核人" align="center">
129
+         <template slot-scope="scope">
130
+       
131
+         </template>
132
+       </el-table-column>
133
+
134
+       <el-table-column label="操作" align="center" width="260px">
135
+          <template slot-scope="scope">
136
+              <el-button
137
+                size="small"
138
+                type="primary"
139
+                @click="toClick(scope.row)"
140
+              >库存流水
141
+              </el-button>
142
+              <el-button
143
+                size="small"
144
+                type="primary"
145
+                @click="toClickOne(scope.row)"
146
+              >批次
147
+              </el-button>
148
+          </template>
149
+        </el-table-column>
150
+      </el-table>
151
+      <el-pagination
152
+        @size-change="handleSizeChange"
153
+        @current-change="handleCurrentChange"
154
+        :page-sizes="[10, 50, 100,200,500,1000]"
155
+        :page-size="10"
156
+        background
157
+        align="right"
158
+        style="margin-top:20px;"
159
+        layout="total, sizes, prev, pager, next, jumper"
160
+        :total="total"
161
+      >
162
+      </el-pagination>
163
+
164
+       <add-supply ref="addSupply"></add-supply>
165
+    </div>
166
+  </div>
167
+</template>
168
+
169
+<script>
170
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
171
+import addSupply from "./components/addSupply.vue"
172
+
173
+export default {
174
+  name: "stockIn",
175
+   components: {
176
+     addSupply
177
+   },
178
+  created() {
179
+    this.org_id =  this.$store.getters.xt_user.org_id
180
+
181
+    var start_time =  window.sessionStorage.getItem('start_time')
182
+    var end_time =  window.sessionStorage.getItem('end_time')
183
+
184
+    if(start_time !=null){
185
+      this.start_time = start_time
186
+    }
187
+    if(end_time!=null){
188
+      this.end_time = end_time
189
+    }
190
+    window.sessionStorage.removeItem('start_time')
191
+    window.sessionStorage.removeItem('end_time')
192
+  },
193
+  components: {
194
+    BreadCrumb
195
+  },
196
+  data() {
197
+    return {
198
+      crumbs: [
199
+        { path: false, name: "采购管理" },
200
+        { path: "/spply/query", name: "供应商管理" }
201
+      ],
202
+      keywords: "",
203
+      total: 0,
204
+      multipleSelection: [],
205
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
206
+      start_time: "",
207
+      end_time: "",
208
+      page: 1,
209
+      limit: 10,
210
+      goodType: [],
211
+      goodInfo: [],
212
+      org_id:0,
213
+      types:[],
214
+      tableList:[],
215
+      tyep_name:"",
216
+    };
217
+  },
218
+  methods:{
219
+     toAdd(){
220
+       console.log("res32323232323223",this.$refs)  
221
+       this.$refs.addSupply.show()  
222
+     } 
223
+  }
224
+};
225
+</script>
226
+
227
+<style rel="stylesheet/css" lang="scss" scoped>
228
+.information {
229
+  border: 1px #dcdfe6 solid;
230
+  padding: 30px 20px 30px 20px;
231
+
232
+  .border {
233
+    border-bottom: 1px #dcdfe6 solid;
234
+    margin: 0px 0 20px 0;
235
+  }
236
+}
237
+
238
+.title {
239
+  background: #409eff;
240
+  height: 44px;
241
+  line-height: 44px;
242
+  padding: 0 0 0 10px;
243
+  color: #fff;
244
+  margin: 0 0 10px 0;
245
+}
246
+
247
+.edit_separater {
248
+  border-top: 1px solid rgb(233, 233, 233);
249
+  margin-top: 15px;
250
+  margin-bottom: 15px;
251
+}
252
+</style>
253
+
254
+<style>
255
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
256
+  font-size: 12px;
257
+}
258
+
259
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
260
+  background: #6fb5fa;
261
+}
262
+
263
+.count {
264
+  color: #bd2c00;
265
+}
266
+.el-table td,
267
+.el-table th.is-leaf,
268
+.el-table--border,
269
+.el-table--group {
270
+  border-color: #d0d3da;
271
+}
272
+.el-table--border::after,
273
+.el-table--group::after,
274
+.el-table::before {
275
+  background-color: #d0d3da;
276
+}
277
+</style>

+ 272 - 0
src/xt_pages/supply/supplyQuery.vue View File

@@ -0,0 +1,272 @@
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
+      <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
8
+        <div>
9
+          <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
10
+          @change="changeTypeName">
11
+            <el-option
12
+              v-for="item in types"
13
+              :key="item.id"
14
+              :label="item.type_name"
15
+              :value="item.id">
16
+            </el-option>
17
+          </el-select>
18
+          <el-date-picker
19
+            size="small"
20
+            v-model="start_time"
21
+            prefix-icon="el-icon-date"
22
+            :editable="false"
23
+            style="width: 196px;"
24
+            type="date"
25
+            placeholder="选择日期时间"
26
+            align="right"
27
+            format="yyyy-MM-dd"
28
+            value-format="yyyy-MM-dd"
29
+            @change="startTimeChange"
30
+           ></el-date-picker>-
31
+            <el-date-picker
32
+              size="small"
33
+              v-model="end_time"
34
+              prefix-icon="el-icon-date"
35
+              :editable="false"
36
+              style="width: 196px;"
37
+              type="date"
38
+              placeholder="选择日期时间"
39
+              align="right"
40
+              format="yyyy-MM-dd"
41
+              value-format="yyyy-MM-dd"
42
+              @change="endTimeChange"
43
+          ></el-date-picker>
44
+          <el-input
45
+            size="small"
46
+            style="width: 200px;margin-left:10px;"
47
+            class="filter-item"
48
+            v-model.trim="keywords"
49
+            placeholder="耗材名称"
50
+          />
51
+          <el-button
52
+            size="small"
53
+            class="filter-item"
54
+            type="primary"
55
+            icon="el-icon-search"
56
+            @click="search"
57
+            >搜索</el-button
58
+          >
59
+        </div>
60
+        <div>
61
+          <el-button size="small" type="primary" @click="toAdd">新增</el-button>
62
+        </div>
63
+      </div>
64
+
65
+
66
+       <el-table
67
+        :row-style="{ color: '#303133' }"
68
+        :header-cell-style="{
69
+          backgroundColor: 'rgb(245, 247, 250)',
70
+          color: '#606266'
71
+        }"
72
+        :data="tableList"
73
+        :class="signAndWeighBoxPatients"
74
+        border
75
+      >
76
+        <el-table-column label="供应商类别" align="center">
77
+          <template slot-scope="scope">
78
+            <span></span>
79
+         </template>
80
+        </el-table-column>
81
+        <el-table-column label="供应商编码" align="center">
82
+          <template slot-scope="scope">
83
+          
84
+          </template>
85
+        </el-table-column>
86
+        <el-table-column label="供应商名称" align="center">
87
+            <template slot-scope="scope">
88
+              <span></span>
89
+            </template>
90
+         </el-table-column>
91
+        <el-table-column label="首要联系人" align="center">
92
+          <template slot-scope="scope">
93
+            
94
+          </template>
95
+        </el-table-column>
96
+        <el-table-column label="增值税税率(%)" align="center">
97
+          <template slot-scope="scope">
98
+           
99
+          </template>
100
+        </el-table-column>
101
+       <el-table-column label="银行账号" align="center">
102
+         <template slot-scope="scope">
103
+           
104
+         </template>
105
+       </el-table-column>
106
+       <el-table-column label="开户银行" align="center" v-if="showOne">
107
+         <template slot-scope="scope">
108
+         
109
+          </span>
110
+        
111
+         </template>
112
+       </el-table-column>
113
+      
114
+        <el-table-column label="纳税人识别号" align="center" v-if="showThree">
115
+         <template slot-scope="scope">
116
+         
117
+         </template>
118
+       </el-table-column>
119
+        
120
+    
121
+      <el-table-column label="手机" align="center" v-if="showFour">
122
+         <template slot-scope="scope">
123
+       
124
+         </template>
125
+       </el-table-column>
126
+
127
+    
128
+
129
+       <el-table-column label="操作" align="center" width="260px">
130
+          <template slot-scope="scope">
131
+              <el-button
132
+                size="small"
133
+                type="primary"
134
+                @click="toClick(scope.row)"
135
+              >库存流水
136
+              </el-button>
137
+              <el-button
138
+                size="small"
139
+                type="primary"
140
+                @click="toClickOne(scope.row)"
141
+              >批次
142
+              </el-button>
143
+          </template>
144
+        </el-table-column>
145
+      </el-table>
146
+      <el-pagination
147
+        @size-change="handleSizeChange"
148
+        @current-change="handleCurrentChange"
149
+        :page-sizes="[10, 50, 100,200,500,1000]"
150
+        :page-size="10"
151
+        background
152
+        align="right"
153
+        style="margin-top:20px;"
154
+        layout="total, sizes, prev, pager, next, jumper"
155
+        :total="total"
156
+      >
157
+      </el-pagination>
158
+
159
+       <add-supply ref="addSupply"></add-supply>
160
+    </div>
161
+  </div>
162
+</template>
163
+
164
+<script>
165
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
166
+import addSupply from "./components/addSupply.vue"
167
+
168
+export default {
169
+  name: "stockIn",
170
+   components: {
171
+     addSupply
172
+   },
173
+  created() {
174
+    this.org_id =  this.$store.getters.xt_user.org_id
175
+
176
+    var start_time =  window.sessionStorage.getItem('start_time')
177
+    var end_time =  window.sessionStorage.getItem('end_time')
178
+
179
+    if(start_time !=null){
180
+      this.start_time = start_time
181
+    }
182
+    if(end_time!=null){
183
+      this.end_time = end_time
184
+    }
185
+    window.sessionStorage.removeItem('start_time')
186
+    window.sessionStorage.removeItem('end_time')
187
+  },
188
+  components: {
189
+    BreadCrumb
190
+  },
191
+  data() {
192
+    return {
193
+      crumbs: [
194
+        { path: false, name: "采购管理" },
195
+        { path: "/spply/query", name: "供应商管理" }
196
+      ],
197
+      keywords: "",
198
+      total: 0,
199
+      multipleSelection: [],
200
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
201
+      start_time: "",
202
+      end_time: "",
203
+      page: 1,
204
+      limit: 10,
205
+      goodType: [],
206
+      goodInfo: [],
207
+      org_id:0,
208
+      types:[],
209
+      tableList:[],
210
+      tyep_name:"",
211
+    };
212
+  },
213
+  methods:{
214
+     toAdd(){
215
+       console.log("res32323232323223",this.$refs)  
216
+       this.$refs.addSupply.show()  
217
+     } 
218
+  }
219
+};
220
+</script>
221
+
222
+<style rel="stylesheet/css" lang="scss" scoped>
223
+.information {
224
+  border: 1px #dcdfe6 solid;
225
+  padding: 30px 20px 30px 20px;
226
+
227
+  .border {
228
+    border-bottom: 1px #dcdfe6 solid;
229
+    margin: 0px 0 20px 0;
230
+  }
231
+}
232
+
233
+.title {
234
+  background: #409eff;
235
+  height: 44px;
236
+  line-height: 44px;
237
+  padding: 0 0 0 10px;
238
+  color: #fff;
239
+  margin: 0 0 10px 0;
240
+}
241
+
242
+.edit_separater {
243
+  border-top: 1px solid rgb(233, 233, 233);
244
+  margin-top: 15px;
245
+  margin-bottom: 15px;
246
+}
247
+</style>
248
+
249
+<style>
250
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
251
+  font-size: 12px;
252
+}
253
+
254
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
255
+  background: #6fb5fa;
256
+}
257
+
258
+.count {
259
+  color: #bd2c00;
260
+}
261
+.el-table td,
262
+.el-table th.is-leaf,
263
+.el-table--border,
264
+.el-table--group {
265
+  border-color: #d0d3da;
266
+}
267
+.el-table--border::after,
268
+.el-table--group::after,
269
+.el-table::before {
270
+  background-color: #d0d3da;
271
+}
272
+</style>