Browse Source

修改医嘱模版

csx 6 years ago
parent
commit
7b9139c5d5

+ 7 - 5
src/xt_pages/stock/cancelStockOrderAdd.vue View File

@@ -175,7 +175,7 @@
175 175
           manufacturer: '',
176 176
           dealer: ''
177 177
         },
178
-
178
+        warehouseOutInfoList:[],
179 179
         manufacturer: [],
180 180
         dealer: [],
181 181
         goodType: []
@@ -213,6 +213,8 @@
213 213
           } else {
214 214
             var warehouseOutList = response.data.data.warehouseOutList
215 215
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
216
+            this.warehouseOutInfoList = response.data.data.warehouseOutInfoList
217
+
216 218
             for (let i = 0; i < warehouseOutList.length; i++) {
217 219
               if (warehouseOutList[i].Manufacturer.id > 0) {
218 220
                 this.manufacturer.push(warehouseOutList[i].Manufacturer)
@@ -293,10 +295,10 @@
293 295
           return
294 296
         } else {
295 297
           this.$refs.dialog.show()
296
-          console.log(this.form.manufacturer)
297
-          for (let i = 0; i < this.propForm.goodInfo.length; i++) {
298
-            if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
299
-              this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
298
+
299
+          for (let i = 0; i < this.warehouseOutInfoList.length; i++) {
300
+            if (this.warehouseOutInfoList[i].manufacturer == this.form.manufacturer) {
301
+              this.propForm.goodType.push(this.warehouseOutInfoList[i].GoodInfo.GoodsType)
300 302
             }
301 303
           }
302 304
           const obj3 = {}

+ 6 - 4
src/xt_pages/stock/cancelStockOrderEdit.vue View File

@@ -157,7 +157,7 @@
157 157
           manufacturer: '',
158 158
           dealer: ''
159 159
         },
160
-
160
+        warehouseOutInfoList:[],
161 161
         cancelStock: {},
162 162
         manufacturer: [],
163 163
         dealer: [],
@@ -197,6 +197,8 @@
197 197
             return false
198 198
           } else {
199 199
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
200
+            this.warehouseOutInfoList = response.data.data.warehouseOutInfoList
201
+
200 202
             for (let i = 0; i < warehouseOutInfoList.length; i++) {
201 203
               this.propForm.goodInfo.push(warehouseOutInfoList[i].GoodInfo)
202 204
               this.propForm.goodType.push(warehouseOutInfoList[i].GoodInfo.GoodsType)
@@ -268,9 +270,9 @@
268 270
         }
269 271
       }, showDialog(index, row) {
270 272
         this.currentIndex = index
271
-        for (let i = 0; i < this.propForm.goodInfo.length; i++) {
272
-          if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
273
-            this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
273
+        for (let i = 0; i < this.warehouseOutInfoList.length; i++) {
274
+          if (this.warehouseOutInfoList[i].manufacturer == this.form.manufacturer) {
275
+            this.propForm.goodType.push(this.warehouseOutInfoList[i].GoodInfo.GoodsType)
274 276
           }
275 277
         }
276 278
         const obj3 = {}

+ 5 - 4
src/xt_pages/stock/salesReturnEdit.vue View File

@@ -163,7 +163,7 @@
163 163
           manufacturer: '',
164 164
           dealer: ''
165 165
         },
166
-
166
+        warehouseInfoList:[],
167 167
         salesReturn: {},
168 168
         manufacturer: [],
169 169
         dealer: [],
@@ -204,6 +204,7 @@
204 204
             return false
205 205
           } else {
206 206
             var warehouseInfoList = response.data.data.warehouseInfoList
207
+            this.warehouseInfoList = response.data.data.warehouseInfoList
207 208
             for (let i = 0; i < warehouseInfoList.length; i++) {
208 209
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
209 210
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
@@ -278,9 +279,9 @@
278 279
       }, showDialog(index, row) {
279 280
         this.currentIndex = index
280 281
         this.$refs.dialog.show()
281
-        for (let i = 0; i < this.propForm.goodInfo.length; i++) {
282
-          if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
283
-            this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
282
+        for (let i = 0; i < this.warehouseInfoList.length; i++) {
283
+          if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
284
+            this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
284 285
           }
285 286
         }
286 287
         const obj3 = {}

+ 7 - 4
src/xt_pages/stock/salesReturnOrderAdd.vue View File

@@ -184,7 +184,7 @@
184 184
           manufacturer: '',
185 185
           dealer: ''
186 186
         },
187
-
187
+        warehouseInfoList:[],
188 188
         manufacturer: [],
189 189
         dealer: [],
190 190
         goodType: []
@@ -224,6 +224,8 @@
224 224
           } else {
225 225
             var warehouseList = response.data.data.warehouseList
226 226
             var warehouseInfoList = response.data.data.warehouseInfoList
227
+            this.warehouseInfoList =  response.data.data.warehouseInfoList
228
+
227 229
             for (let i = 0; i < warehouseList.length; i++) {
228 230
               if (warehouseList[i].Manufacturer.id > 0) {
229 231
                 this.manufacturer.push(warehouseList[i].Manufacturer)
@@ -254,6 +256,7 @@
254 256
               obj4[next.id] ? '' : obj4[next.id] = true && cur.push(next)
255 257
               return cur
256 258
             }, [])
259
+
257 260
           }
258 261
         })
259 262
       }, typeName: function(good_type_id) {
@@ -306,9 +309,9 @@
306 309
         } else {
307 310
           this.$refs.dialog.show()
308 311
 
309
-          for (let i = 0; i < this.propForm.goodInfo.length; i++) {
310
-            if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
311
-              this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
312
+          for (let i = 0; i < this.warehouseInfoList.length; i++) {
313
+            if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
314
+              this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
312 315
             }
313 316
           }
314 317
           const obj3 = {}

+ 5 - 5
src/xt_pages/stock/stockOutOrderAdd.vue View File

@@ -203,7 +203,7 @@
203 203
           manufacturer: '',
204 204
           dealer: ''
205 205
         },
206
-
206
+        warehouseInfoList:[],
207 207
         manufacturer: [],
208 208
         dealer: [],
209 209
         goodType: []
@@ -245,6 +245,7 @@
245 245
           } else {
246 246
             var warehouseList = response.data.data.warehouseList
247 247
             var warehouseInfoList = response.data.data.warehouseInfoList
248
+            this.warehouseInfoList = response.data.data.warehouseInfoList
248 249
             for (let i = 0; i < warehouseList.length; i++) {
249 250
               if (warehouseList[i].Manufacturer.id > 0) {
250 251
                 this.manufacturer.push(warehouseList[i].Manufacturer)
@@ -329,10 +330,9 @@
329 330
         } else {
330 331
           this.$refs.dialog.show()
331 332
 
332
-          console.log(this.form.manufacturer)
333
-          for (let i = 0; i < this.propForm.goodInfo.length; i++) {
334
-            if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
335
-              this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
333
+          for (let i = 0; i < this.warehouseInfoList.length; i++) {
334
+            if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
335
+              this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
336 336
             }
337 337
           }
338 338
           const obj3 = {}

+ 6 - 5
src/xt_pages/stock/stockOutOrderEdit.vue View File

@@ -184,7 +184,7 @@
184 184
           manufacturer: '',
185 185
           dealer: ''
186 186
         },
187
-
187
+        warehouseInfoList:[],
188 188
         warehouseOut: {},
189 189
         manufacturer: [],
190 190
         dealer: [],
@@ -226,6 +226,8 @@
226 226
             return false
227 227
           } else {
228 228
             var warehouseInfoList = response.data.data.warehouseInfoList
229
+            this.warehouseInfoList = response.data.data.warehouseInfoList
230
+
229 231
             for (let i = 0; i < warehouseInfoList.length; i++) {
230 232
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
231 233
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
@@ -300,10 +302,9 @@
300 302
         }
301 303
       }, showDialog(index, row) {
302 304
         this.currentIndex = index
303
-
304
-        for (let i = 0; i < this.propForm.goodInfo.length; i++) {
305
-          if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
306
-            this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
305
+        for (let i = 0; i < this.warehouseInfoList.length; i++) {
306
+          if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
307
+            this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
307 308
           }
308 309
         }
309 310
         const obj3 = {}