瀏覽代碼

11月14日 库存扣减更新

XMLWAN 3 年之前
父節點
當前提交
b0b43d0fff

+ 15 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue 查看文件

618
     handleEdit:function(index,row){
618
     handleEdit:function(index,row){
619
        this.$router.push({
619
        this.$router.push({
620
          name:"drugStockInOrderEdit",
620
          name:"drugStockInOrderEdit",
621
-         query:{id:row.id,type:this.type}
621
+         query:{id:row.id,type:this.type,supply_warehouse_id:row.supply_warehouse_id}
622
        })
622
        })
623
     },
623
     },
624
     handleSearch(id){
624
     handleSearch(id){
649
       });
649
       });
650
     },
650
     },
651
     handleDelete: function(index, row) {
651
     handleDelete: function(index, row) {
652
+      console.log("rowe23323223",row)
653
+      if(row.supply_warehouse_id >0 ){
654
+        this.$message.error("自动入库数据不能删除!")
655
+        return false
656
+      }
652
       const ids = [];
657
       const ids = [];
653
       ids.push(row.id);
658
       ids.push(row.id);
654
       const idStr = ids.join(",");
659
       const idStr = ids.join(",");
709
         return;
714
         return;
710
       }
715
       }
711
       const ids = [];
716
       const ids = [];
717
+      const idOne = []
712
       for (let i = 0; i < this.selectedTableData.length; i++) {
718
       for (let i = 0; i < this.selectedTableData.length; i++) {
713
         ids.push(this.selectedTableData[i].id);
719
         ids.push(this.selectedTableData[i].id);
720
+        idOne.push(this.selectedTableData[i].supply_warehouse_id)
721
+      }
722
+      console.log("idson233223233223",idOne)
723
+      for(let i=0;i<idOne.length;i++){
724
+        if(idOne[i] >0 ){
725
+           this.$message.error("自动入库数据不能删除!")
726
+           return false
727
+        }
714
       }
728
       }
715
       const idStr = ids.join(",");
729
       const idStr = ids.join(",");
716
       const params = {
730
       const params = {

+ 34 - 10
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue 查看文件

48
           align="right"
48
           align="right"
49
           format="yyyy-MM-dd"
49
           format="yyyy-MM-dd"
50
           value-format="yyyy-MM-dd"
50
           value-format="yyyy-MM-dd"
51
+          :disabled="disabled"
51
         >
52
         >
52
         </el-date-picker>
53
         </el-date-picker>
53
       </div>
54
       </div>
83
                     @select="handleSelect"
84
                     @select="handleSelect"
84
                     @input="changeDrugName(scope.$index)"
85
                     @input="changeDrugName(scope.$index)"
85
                     style="width:160px;"
86
                     style="width:160px;"
86
-                    :disabled="drug_show"
87
+                    :disabled="disabled"
88
+                   
87
                   >
89
                   >
88
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
90
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
89
                   <template slot-scope="{ item }">
91
                   <template slot-scope="{ item }">
99
               <span>药品类型</span>
101
               <span>药品类型</span>
100
             </template>
102
             </template>
101
              <template slot-scope="scope">
103
              <template slot-scope="scope">
102
-               <el-select v-model="scope.row.drug_type" filterable placeholder="请选择厂商">
104
+               <el-select v-model="scope.row.drug_type" filterable placeholder="请选择厂商" :disabled="disabled">
103
                 <el-option
105
                 <el-option
104
                   v-for="(option, index) in drugTypeList"
106
                   v-for="(option, index) in drugTypeList"
105
                   :key="index"
107
                   :key="index"
106
                   :label="option.name"
108
                   :label="option.name"
107
-                  :value="option.id">
109
+                  :value="option.id"
110
+                  
111
+                  >
108
                 </el-option>
112
                 </el-option>
109
                </el-select>
113
                </el-select>
110
             </template>
114
             </template>
130
               <template slot-scope="scope">
134
               <template slot-scope="scope">
131
                 <el-form-item style="padding-top: 20px" :rules="tableRules.batch_number"  :prop="'recordData.' + scope.$index + '.batch_number'">
135
                 <el-form-item style="padding-top: 20px" :rules="tableRules.batch_number"  :prop="'recordData.' + scope.$index + '.batch_number'">
132
                   <el-input
136
                   <el-input
137
+                   :disabled="disabled"
133
                     placeholder="请输入批号"
138
                     placeholder="请输入批号"
134
                     v-model="scope.row.batch_number"
139
                     v-model="scope.row.batch_number"
135
                   ></el-input>
140
                   ></el-input>
150
               >
155
               >
151
                 <div style="display:flex;">
156
                 <div style="display:flex;">
152
                   <el-input
157
                   <el-input
158
+                   :disabled="disabled"
153
                     oninput="value=value.replace(/\D|^0/g,'')"
159
                     oninput="value=value.replace(/\D|^0/g,'')"
154
                     placeholder="请输入入库数量"
160
                     placeholder="请输入入库数量"
155
                     type="number"
161
                     type="number"
157
                     style="width:80px"
163
                     style="width:80px"
158
                   ></el-input>
164
                   ></el-input>
159
                    <!-- {{scope.row.max_unit}} -->
165
                    <!-- {{scope.row.max_unit}} -->
160
-                   <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px">
166
+                   <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px"  :disabled="disabled">
161
                     <el-option
167
                     <el-option
162
                       v-for="(option, index) in unitList"
168
                       v-for="(option, index) in unitList"
163
                       :key="index"
169
                       :key="index"
164
                       :label="option.name"
170
                       :label="option.name"
165
-                      :value="option.name">
171
+                      :value="option.name"
172
+                     >
166
                     </el-option>
173
                     </el-option>
167
                   </el-select>
174
                   </el-select>
168
                 </div>
175
                 </div>
226
                 :rules="tableRules.expiry_date"
233
                 :rules="tableRules.expiry_date"
227
                 style="padding-top: 20px">
234
                 style="padding-top: 20px">
228
                 <el-date-picker
235
                 <el-date-picker
236
+                 :disabled="disabled"
229
                   prefix-icon="el-icon-date"
237
                   prefix-icon="el-icon-date"
230
                   style="width: 145px"
238
                   style="width: 145px"
231
                   v-model="scope.row.expiry_date"
239
                   v-model="scope.row.expiry_date"
241
           <el-table-column label="生产日期" width="180" align="center">
249
           <el-table-column label="生产日期" width="180" align="center">
242
             <template slot-scope="scope">
250
             <template slot-scope="scope">
243
               <el-date-picker
251
               <el-date-picker
252
+              :disabled="disabled"
244
                 prefix-icon="el-icon-date"
253
                 prefix-icon="el-icon-date"
245
                 style="width: 145px"
254
                 style="width: 145px"
246
                 v-model="scope.row.product_date"
255
                 v-model="scope.row.product_date"
255
              
264
              
256
           <el-table-column label="生产厂家" width="140" align="center">
265
           <el-table-column label="生产厂家" width="140" align="center">
257
             <template slot-scope="scope">
266
             <template slot-scope="scope">
258
-               <el-select v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
267
+               <el-select v-model="scope.row.manufacturer" filterable placeholder="请选择厂商"  :disabled="disabled">
259
                 <el-option
268
                 <el-option
260
                   v-for="(option, index) in manufacturerList"
269
                   v-for="(option, index) in manufacturerList"
261
                   :key="index"
270
                   :key="index"
262
                   :label="option.manufacturer_name"
271
                   :label="option.manufacturer_name"
263
-                  :value="option.id">
272
+                  :value="option.id"
273
+                 >
264
                 </el-option>
274
                 </el-option>
265
                </el-select>
275
                </el-select>
266
             </template>
276
             </template>
274
                   v-for="(option, index) in dealerList"
284
                   v-for="(option, index) in dealerList"
275
                   :key="index"
285
                   :key="index"
276
                   :label="option.dealer_name"
286
                   :label="option.dealer_name"
277
-                  :value="option.id">
287
+                  :value="option.id"
288
+                  :disabled="disabled">
278
                 </el-option>
289
                 </el-option>
279
                 </el-select>
290
                 </el-select>
280
             </template>
291
             </template>
285
             <template slot-scope="scope">
296
             <template slot-scope="scope">
286
               <el-form-item style="padding-top: 20px">
297
               <el-form-item style="padding-top: 20px">
287
                 <el-input
298
                 <el-input
299
+                 :disabled="disabled"
288
                   placeholder="请输入批准文号"
300
                   placeholder="请输入批准文号"
289
                   v-model="scope.row.number"
301
                   v-model="scope.row.number"
290
                 ></el-input>
302
                 ></el-input>
294
  
306
  
295
           <el-table-column label="备注" width="150" align="center">
307
           <el-table-column label="备注" width="150" align="center">
296
             <template slot-scope="scope">
308
             <template slot-scope="scope">
297
-              <el-input v-model="scope.row.remark"></el-input>
309
+              <el-input v-model="scope.row.remark" :disabled="disabled"></el-input>
298
             </template>
310
             </template>
299
           </el-table-column>
311
           </el-table-column>
300
 
312
 
439
       unitList:[],
451
       unitList:[],
440
       drug_show:false,
452
       drug_show:false,
441
       loading:false,
453
       loading:false,
454
+      disabled:false,
442
     };
455
     };
443
   },
456
   },
444
   methods: {
457
   methods: {
538
       return name;
551
       return name;
539
     },
552
     },
540
     handleEdit: function(index, row) {
553
     handleEdit: function(index, row) {
554
+      console.log("row23323223",row)
555
+      if(row.supply_warehouse_id > 0){
556
+        this.$message.error("自动入库数据不能新增!")
557
+        return false
558
+      }
541
       const tempObj = {};
559
       const tempObj = {};
542
       tempObj["id"] = 0;
560
       tempObj["id"] = 0;
543
       tempObj["drug_id"] = 0;
561
       tempObj["drug_id"] = 0;
555
       this.recordInfo.recordData.push(tempObj);
573
       this.recordInfo.recordData.push(tempObj);
556
     },
574
     },
557
     handleDelete: function(index, row) {
575
     handleDelete: function(index, row) {
576
+      if(row.supply_warehouse_id > 0){
577
+        this.$message.error("自动入库数据不能删除!")
578
+        return false
579
+      }
558
       if (row.id == 0) {
580
       if (row.id == 0) {
559
         this.recordInfo.recordData.splice(index, 1);
581
         this.recordInfo.recordData.splice(index, 1);
560
       } else {
582
       } else {
883
   created() {
905
   created() {
884
    
906
    
885
     this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
907
     this.drugTypeList = getDictionaryDataConfig('system','drug_type') 
886
-    //this.GetConfigInfo();
887
     this.propForm.goodUnit = this.$store.getters.good_unit;
908
     this.propForm.goodUnit = this.$store.getters.good_unit;
888
     const order_id = this.$route.query.id;
909
     const order_id = this.$route.query.id;
889
     this.GetOrderDetail(order_id);
910
     this.GetOrderDetail(order_id);
890
     this.unitList =  getDataConfig('hemodialysis','units')
911
     this.unitList =  getDataConfig('hemodialysis','units')
912
+    if( parseInt(this.$route.query.supply_warehouse_id)>0){
913
+      this.disabled = true
914
+    }
891
   }
915
   }
892
 };
916
 };
893
 </script>
917
 </script>

+ 17 - 1
src/xt_pages/stock/stockInOrder.vue 查看文件

1060
     },
1060
     },
1061
     handleEdit: function(index, row) {
1061
     handleEdit: function(index, row) {
1062
       console.log("rowe232323232332",row)
1062
       console.log("rowe232323232332",row)
1063
-      this.$router.push({path:"/stock/in/order/edit?id="+row.id})
1063
+      this.$router.push({path:"/stock/in/order/edit?id="+row.id+"&supply_warehouse_id="+row.supply_warehouse_id})
1064
     },
1064
     },
1065
     handleDelete: function(index, row) {
1065
     handleDelete: function(index, row) {
1066
+     
1067
+      if(row.supply_warehouse_id > 0){
1068
+        this.$message.error("自动生成入库单不能删除!")
1069
+        return false
1070
+      }
1066
       const ids = [];
1071
       const ids = [];
1067
       ids.push(row.id);
1072
       ids.push(row.id);
1068
       const idStr = ids.join(",");
1073
       const idStr = ids.join(",");
1119
         return;
1124
         return;
1120
       }
1125
       }
1121
       const ids = [];
1126
       const ids = [];
1127
+      const idOne = []
1122
       for (let i = 0; i < this.selectedTableData.length; i++) {
1128
       for (let i = 0; i < this.selectedTableData.length; i++) {
1123
         ids.push(this.selectedTableData[i].id);
1129
         ids.push(this.selectedTableData[i].id);
1130
+        idOne.push(this.selectedTableData[i].supply_warehouse_id)
1131
+      }
1132
+      console.log("idson23322323",idOne)
1133
+      for(let i=0;i<idOne.length;i++){
1134
+        if(idOne[i] >0){
1135
+          this.$message.error("自动入库数据不能删除!")
1136
+          return false
1137
+        }
1124
       }
1138
       }
1139
+    
1125
       const idStr = ids.join(",");
1140
       const idStr = ids.join(",");
1126
       const params = {
1141
       const params = {
1127
         ids: idStr
1142
         ids: idStr
1368
       },
1383
       },
1369
 
1384
 
1370
      DeleteWarehouseInfoItem: function(index, row) {
1385
      DeleteWarehouseInfoItem: function(index, row) {
1386
+       
1371
       if (row.id == 0) {
1387
       if (row.id == 0) {
1372
         this.recordInfo.recordData.splice(index, 1);
1388
         this.recordInfo.recordData.splice(index, 1);
1373
       } else {
1389
       } else {

+ 28 - 7
src/xt_pages/stock/stockInOrderEdit.vue 查看文件

46
           align="right"
46
           align="right"
47
           format="yyyy-MM-dd"
47
           format="yyyy-MM-dd"
48
           value-format="yyyy-MM-dd"
48
           value-format="yyyy-MM-dd"
49
+          :disabled="disabled"
49
         >
50
         >
50
         </el-date-picker>
51
         </el-date-picker>
51
       </div>
52
       </div>
74
                     @select="handleSelect"
75
                     @select="handleSelect"
75
                     @input="changeGoodName(scope.$index)"
76
                     @input="changeGoodName(scope.$index)"
76
                     style="width:150px;"
77
                     style="width:150px;"
78
+                    :disabled ="disabled"
77
                   >
79
                   >
78
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
80
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
79
                   <template slot-scope="{ item }">
81
                   <template slot-scope="{ item }">
93
                   placeholder="请输入耗材类型"
95
                   placeholder="请输入耗材类型"
94
                   v-model="scope.row.good_type_id"
96
                   v-model="scope.row.good_type_id"
95
                   :value="typeName(scope.row.good_type_id)"
97
                   :value="typeName(scope.row.good_type_id)"
98
+                   :disabled ="disabled"
96
                 ></el-input>
99
                 ></el-input>
97
               </el-form-item>
100
               </el-form-item>
98
             </template>
101
             </template>
105
             <template slot-scope="scope">
108
             <template slot-scope="scope">
106
 
109
 
107
               <el-form-item style="padding-top: 20px">
110
               <el-form-item style="padding-top: 20px">
108
-                <el-input placeholder="请输入规格名称" v-model="scope.row.name"></el-input>
111
+                <el-input placeholder="请输入规格名称" v-model="scope.row.name"  :disabled ="disabled"></el-input>
109
               </el-form-item>
112
               </el-form-item>
110
 
113
 
111
             </template>
114
             </template>
118
             <template slot-scope="scope">
121
             <template slot-scope="scope">
119
               <el-form-item style="padding-top: 20px" :prop="'recordData.' + scope.$index + '.number'"
122
               <el-form-item style="padding-top: 20px" :prop="'recordData.' + scope.$index + '.number'"
120
                             :rules='tableRules.number' >
123
                             :rules='tableRules.number' >
121
-                <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
124
+                <el-input placeholder="请输入批号" v-model="scope.row.number"  :disabled ="disabled"></el-input>
122
               </el-form-item>
125
               </el-form-item>
123
             </template>
126
             </template>
124
           </el-table-column>
127
           </el-table-column>
172
                   placeholder="请输入入库数量"
175
                   placeholder="请输入入库数量"
173
                   type="number"
176
                   type="number"
174
                   v-model="scope.row.warehousing_count"
177
                   v-model="scope.row.warehousing_count"
178
+                   :disabled ="disabled"
175
                 ></el-input>
179
                 ></el-input>
176
                 {{scope.row.min_unit}}
180
                 {{scope.row.min_unit}}
177
               </el-form-item>
181
               </el-form-item>
192
                 :rules="tableRules.expiry_date">
196
                 :rules="tableRules.expiry_date">
193
                 <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
197
                 <el-date-picker prefix-icon="el-icon-date" style="width: 145px" v-model="scope.row.expiry_date"
194
                                 type="date" placeholder="选择日期时间" format="yyyy-MM-dd"
198
                                 type="date" placeholder="选择日期时间" format="yyyy-MM-dd"
195
-                                value-format="yyyy-MM-dd">
199
+                                value-format="yyyy-MM-dd"  :disabled ="disabled">
196
                 </el-date-picker>
200
                 </el-date-picker>
197
              </el-form-item>
201
              </el-form-item>
198
             </template>
202
             </template>
209
                 placeholder="选择日期时间"
213
                 placeholder="选择日期时间"
210
                 format="yyyy-MM-dd"
214
                 format="yyyy-MM-dd"
211
                 value-format="yyyy-MM-dd"
215
                 value-format="yyyy-MM-dd"
216
+                :disabled ="disabled"
212
               ></el-date-picker>
217
               ></el-date-picker>
213
             </template>
218
             </template>
214
           </el-table-column>
219
           </el-table-column>
215
 
220
 
216
            <el-table-column label="生产厂家" align="center" width="150">
221
            <el-table-column label="生产厂家" align="center" width="150">
217
              <template slot-scope="scope">
222
              <template slot-scope="scope">
218
-               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
223
+               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商"  :disabled ="disabled">
219
                 <el-option
224
                 <el-option
220
                   v-for="(option, index) in manufacturerList"
225
                   v-for="(option, index) in manufacturerList"
221
                   :key="index"
226
                   :key="index"
237
                 <el-input
242
                 <el-input
238
                   placeholder="请输入批准文号"
243
                   placeholder="请输入批准文号"
239
                   v-model="scope.row.license_number"
244
                   v-model="scope.row.license_number"
240
-                  
245
+                  :disabled ="disabled"
241
                 ></el-input>
246
                 ></el-input>
242
               </el-form-item>
247
               </el-form-item>
243
             </template>
248
             </template>
249
                   v-for="(option, index) in dealerList"
254
                   v-for="(option, index) in dealerList"
250
                   :key="index"
255
                   :key="index"
251
                   :label="option.dealer_name"
256
                   :label="option.dealer_name"
252
-                  :value="option.id">
257
+                  :value="option.id"
258
+                   :disabled ="disabled">
253
                 </el-option>
259
                 </el-option>
254
                </el-select>
260
                </el-select>
255
             </template>
261
             </template>
256
           </el-table-column>
262
           </el-table-column>
257
           <el-table-column label="备注" width="150" align="center">
263
           <el-table-column label="备注" width="150" align="center">
258
             <template slot-scope="scope">
264
             <template slot-scope="scope">
259
-              <el-input v-model="scope.row.remark"></el-input>
265
+              <el-input v-model="scope.row.remark"  :disabled ="disabled"></el-input>
260
             </template>
266
             </template>
261
           </el-table-column>
267
           </el-table-column>
262
 
268
 
395
       manufacturerList:[],
401
       manufacturerList:[],
396
       numberList:[],
402
       numberList:[],
397
       loading:false,
403
       loading:false,
404
+      disabled:false,
398
     };
405
     };
399
   },
406
   },
400
   methods: {
407
   methods: {
486
       return name;
493
       return name;
487
     },
494
     },
488
     handleEdit: function(index, row) {
495
     handleEdit: function(index, row) {
496
+      if(row.supply_warehouse_id > 0){
497
+        this.$message.error("自动入库数据不能新增!")
498
+        return false
499
+      }
489
       const tempObj = {};
500
       const tempObj = {};
490
       tempObj["id"] = 0;
501
       tempObj["id"] = 0;
491
       tempObj["good_type_id"] = 0;
502
       tempObj["good_type_id"] = 0;
503
       this.recordInfo.recordData.push(tempObj);
514
       this.recordInfo.recordData.push(tempObj);
504
     },
515
     },
505
     handleDelete: function(index, row) {
516
     handleDelete: function(index, row) {
517
+      console.log("Row2332233232",row)
518
+      if(row.supply_warehouse_id >0){
519
+        this.$message.error("自动入库数据不能删除!")
520
+        return false
521
+      }
506
       if (row.id == 0) {
522
       if (row.id == 0) {
507
         this.recordInfo.recordData.splice(index, 1);
523
         this.recordInfo.recordData.splice(index, 1);
508
       } else {
524
       } else {
819
     this.GetConfigInfo();
835
     this.GetConfigInfo();
820
     this.propForm.goodUnit = this.$store.getters.good_unit;
836
     this.propForm.goodUnit = this.$store.getters.good_unit;
821
     const order_id = this.$route.query.id;
837
     const order_id = this.$route.query.id;
838
+    var supply_warehouse_id =  parseInt(this.$route.query.supply_warehouse_id)  
839
+    if(supply_warehouse_id > 0){
840
+      this.disabled = true
841
+    }
822
     this.GetOrderDetail(order_id);
842
     this.GetOrderDetail(order_id);
843
+
823
   }
844
   }
824
 };
845
 };
825
 </script>
846
 </script>

+ 164 - 28
src/xt_pages/supply/components/addGoodOrder.vue 查看文件

71
             v-show="showTwo"
71
             v-show="showTwo"
72
             >保存</el-button
72
             >保存</el-button
73
           >
73
           >
74
-          <el-button size="small" type="primary" @click="checkGoodOrder" >审核</el-button>
74
+          <el-button size="small" type="primary" @click="checkGoodOrder" v-if="is_check == 2" >审核</el-button>
75
+          <el-button size="small" type="primary" @click="MofyGoodOrder" v-if="is_check == 1">反审核</el-button>
76
+          <el-button size="small" type="primary" @click="" v-if="is_check == 1" >生成采购退货单</el-button>
75
         </div>
77
         </div>
76
       </div>
78
       </div>
77
 
79
 
238
             </template>
240
             </template>
239
           </el-table-column>
241
           </el-table-column>
240
 
242
 
243
+           <el-table-column label="拆零零售价" align="center" width="180px">
244
+            <template slot-scope="scope">
245
+              <el-input
246
+                v-model="scope.row.min_price"
247
+                style="width: 140px"
248
+                :disabled="disabled"
249
+                placeholder="请输入拆零零售价"
250
+              ></el-input>
251
+              <div style="visibility: hidden">/</div>
252
+            </template>
253
+          </el-table-column>
254
+
241
           <el-table-column label="采购单价" align="center" width="180px">
255
           <el-table-column label="采购单价" align="center" width="180px">
242
             <template slot-scope="scope">
256
             <template slot-scope="scope">
243
               <el-input
257
               <el-input
449
   updateGoodOrder,
463
   updateGoodOrder,
450
   checkGoodOrderById,
464
   checkGoodOrderById,
451
   getGoodOrderCountList,
465
   getGoodOrderCountList,
452
-  ModefySupplyWarehousing
466
+  ModefySupplyWarehousing,
467
+  MofyGoodOrder
453
 } from "@/api/supply";
468
 } from "@/api/supply";
454
 export default {
469
 export default {
455
   name: "addPurchaseOrder",
470
   name: "addPurchaseOrder",
518
       goodList: [],
533
       goodList: [],
519
       id: 0,
534
       id: 0,
520
       disabled: false,
535
       disabled: false,
521
-      is_check: 0,
536
+      is_check: 2,
522
       dialogVisible: false,
537
       dialogVisible: false,
523
       arrearage: "",
538
       arrearage: "",
524
       payment: "",
539
       payment: "",
597
             drugList[i].supply_remake = "";
612
             drugList[i].supply_remake = "";
598
             drugList[i].type = 1;
613
             drugList[i].type = 1;
599
             drugList[i].supply_price = drugList[i].last_price;
614
             drugList[i].supply_price = drugList[i].last_price;
615
+            drugList[i].min_price = drugList[i].min_price
600
             drugList[i].name = drugList[i].drug_name;
616
             drugList[i].name = drugList[i].drug_name;
601
             if (drugList[i].max_unit != drugList[i].min_unit) {
617
             if (drugList[i].max_unit != drugList[i].min_unit) {
602
               drugList[i].unitList = [
618
               drugList[i].unitList = [
652
             goodList[i].name = goodList[i].good_name;
668
             goodList[i].name = goodList[i].good_name;
653
             goodList[i].unitList = [{ id: 1, name: "" }];
669
             goodList[i].unitList = [{ id: 1, name: "" }];
654
             goodList[i].supply_unit = goodList[i].packing_unit;
670
             goodList[i].supply_unit = goodList[i].packing_unit;
671
+            goodList[i].min_price = goodList[i].retail_price
655
             for (let j = 0; j < goodList[i].unitList.length; j++) {
672
             for (let j = 0; j < goodList[i].unitList.length; j++) {
656
               goodList[i].unitList[0].name = goodList[i].packing_unit;
673
               goodList[i].unitList[0].name = goodList[i].packing_unit;
657
             }
674
             }
672
           this.recordInfo.tableList[i].name = val.name;
689
           this.recordInfo.tableList[i].name = val.name;
673
           this.recordInfo.tableList[i].supply_name = val.supply_name;
690
           this.recordInfo.tableList[i].supply_name = val.supply_name;
674
           this.recordInfo.tableList[i].supply_type = val.supply_type;
691
           this.recordInfo.tableList[i].supply_type = val.supply_type;
675
-          this.recordInfo.tableList[i].supply_specification_name =
676
-            val.supply_specification_name;
692
+          this.recordInfo.tableList[i].supply_specification_name = val.supply_specification_name;
677
           this.recordInfo.tableList[i].supply_total = val.supply_total;
693
           this.recordInfo.tableList[i].supply_total = val.supply_total;
694
+          this.recordInfo.tableList[i].min_price = val.min_price  
678
           if (val.supply_count == NaN) {
695
           if (val.supply_count == NaN) {
679
             this.recordInfo.tableList[i].supply_count = "";
696
             this.recordInfo.tableList[i].supply_count = "";
680
           } else {
697
           } else {
723
       tempObj["order_number"] = "";
740
       tempObj["order_number"] = "";
724
       tempObj["supply_expiry_date"] = "";
741
       tempObj["supply_expiry_date"] = "";
725
       tempObj["manufacturer_id"] = "";
742
       tempObj["manufacturer_id"] = "";
743
+      tempObj["min_price"] = ""
726
       this.recordInfo.tableList.push(tempObj);
744
       this.recordInfo.tableList.push(tempObj);
727
     },
745
     },
728
     handleDelete: function (index, row) {
746
     handleDelete: function (index, row) {
839
       getPurchaseOrderInfo(id, ids).then((response) => {
857
       getPurchaseOrderInfo(id, ids).then((response) => {
840
         if (response.data.state == 1) {
858
         if (response.data.state == 1) {
841
           var info = response.data.data.info;
859
           var info = response.data.data.info;
842
-          this.is_check = info.is_check;
860
+          
861
+         
862
+
843
           this.id = info.id;
863
           this.id = info.id;
844
           this.supplier_name = info.supplier_id;
864
           this.supplier_name = info.supplier_id;
845
           this.rate_of_concession = info.rate_of_concession;
865
           this.rate_of_concession = info.rate_of_concession;
862
             orderInfo[i].project_id = orderInfo[i].project_id;
882
             orderInfo[i].project_id = orderInfo[i].project_id;
863
             orderInfo[i].supply_unit = orderInfo[i].supply_unit;
883
             orderInfo[i].supply_unit = orderInfo[i].supply_unit;
864
             orderInfo[i].order_number = orderInfo[i].order_number;
884
             orderInfo[i].order_number = orderInfo[i].order_number;
885
+            orderInfo[i].min_price = ""
865
             orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2);
886
             orderInfo[i].supply_total_price = (orderInfo[i].count * orderInfo[i].price).toFixed(2);
866
             if (orderInfo[i].is_source == 1) {
887
             if (orderInfo[i].is_source == 1) {
867
               for (let j = 0; j < drugList.length; j++) {
888
               for (let j = 0; j < drugList.length; j++) {
919
           this.recordInfo.tableList[i].supply_total_price.toString();
940
           this.recordInfo.tableList[i].supply_total_price.toString();
920
         this.recordInfo.tableList[i].supply_total =
941
         this.recordInfo.tableList[i].supply_total =
921
           this.recordInfo.tableList[i].supply_total.toString();
942
           this.recordInfo.tableList[i].supply_total.toString();
943
+          this.recordInfo.tableList[i].min_price = this.recordInfo.tableList[i].min_price.toString()
922
 
944
 
923
         for (let j = 0; j < this.manufactuerList.length; j++) {
945
         for (let j = 0; j < this.manufactuerList.length; j++) {
924
           if (
946
           if (
944
           var warehousing_id = this.$route.query.id;
966
           var warehousing_id = this.$route.query.id;
945
           //判断是否在采购订单数据中做了删除,如果长度相等则代表没有删除,如果不等则代表做了删除或者新增
967
           //判断是否在采购订单数据中做了删除,如果长度相等则代表没有删除,如果不等则代表做了删除或者新增
946
           console.log("长度2332233232",this.tableDataList.length)
968
           console.log("长度2332233232",this.tableDataList.length)
947
-          console.log("产股2333223232323",this.recordInfo.tableList)
969
+          console.log("产股2333223232323",this.recordInfo.tableList.length)
948
           if(this.tableDataList.length != this.recordInfo.tableList.length){
970
           if(this.tableDataList.length != this.recordInfo.tableList.length){
949
              warehousing_id = 0
971
              warehousing_id = 0
950
              for(let i=0;i<this.recordInfo.tableList.length;i++){
972
              for(let i=0;i<this.recordInfo.tableList.length;i++){
964
               this.showTwo = true;
986
               this.showTwo = true;
965
               var orderInfo = response.data.data.list;
987
               var orderInfo = response.data.data.list;
966
               var warehouseOut = response.data.data.warehouseOut;
988
               var warehouseOut = response.data.data.warehouseOut;
989
+              console.log("采购单323322323",warehouseOut)
967
               this.warese_out_id = warehouseOut.id;
990
               this.warese_out_id = warehouseOut.id;
968
               this.good_number = warehouseOut.good_number;
991
               this.good_number = warehouseOut.good_number;
969
               this.rate_of_concession = warehouseOut.rate_of_concession;
992
               this.rate_of_concession = warehouseOut.rate_of_concession;
994
                 if (orderInfo[i].is_source == 1) {
1017
                 if (orderInfo[i].is_source == 1) {
995
                   for (let j = 0; j < this.drugList.length; j++) {
1018
                   for (let j = 0; j < this.drugList.length; j++) {
996
                     if (orderInfo[i].project_id == this.drugList[j].id) {
1019
                     if (orderInfo[i].project_id == this.drugList[j].id) {
997
-                      if (
998
-                        this.drugList[j].max_unit != this.drugList[j].min_unit
999
-                      ) {
1000
-                        orderInfo[i].unitList = [
1001
-                          { id: 1, name: "" },
1002
-                          { id: 2, name: "" },
1003
-                        ];
1004
-                        orderInfo[i].unitList[0].name =
1005
-                          this.drugList[j].max_unit;
1006
-                        orderInfo[i].unitList[1].name =
1007
-                          this.drugList[j].min_unit;
1020
+                      if (this.drugList[j].max_unit != this.drugList[j].min_unit) {
1021
+                        orderInfo[i].unitList = [{ id: 1, name: "" },{ id: 2, name: "" }];
1022
+                        orderInfo[i].unitList[0].name = this.drugList[j].max_unit;
1023
+                        orderInfo[i].unitList[1].name = this.drugList[j].min_unit;
1008
                       }
1024
                       }
1009
-                      if (
1010
-                        this.drugList[j].max_unit == this.drugList[j].min_unit
1011
-                      ) {
1012
-                        orderInfo[i].unitList[0].name =
1013
-                          this.drugList[j].max_unit;
1025
+                      if (this.drugList[j].max_unit == this.drugList[j].min_unit) {
1026
+                        orderInfo[i].unitList[0].name = this.drugList[j].max_unit;
1014
                       }
1027
                       }
1015
                     }
1028
                     }
1016
                   }
1029
                   }
1019
                   for (let j = 0; j < this.goodList.length; j++) {
1032
                   for (let j = 0; j < this.goodList.length; j++) {
1020
                     if (orderInfo[i].project_id == this.goodList[j].id) {
1033
                     if (orderInfo[i].project_id == this.goodList[j].id) {
1021
                       orderInfo[i].unitList = [{ id: 1, name: "" }];
1034
                       orderInfo[i].unitList = [{ id: 1, name: "" }];
1022
-                      orderInfo[i].unitList[0].name =
1023
-                        this.goodList[j].packing_unit;
1035
+                      orderInfo[i].unitList[0].name = this.goodList[j].packing_unit;
1024
                     }
1036
                     }
1025
                   }
1037
                   }
1026
                 }
1038
                 }
1048
           this.recordInfo.tableList[i].supply_total_price.toString();
1060
           this.recordInfo.tableList[i].supply_total_price.toString();
1049
         this.recordInfo.tableList[i].supply_total =
1061
         this.recordInfo.tableList[i].supply_total =
1050
           this.recordInfo.tableList[i].supply_total.toString();
1062
           this.recordInfo.tableList[i].supply_total.toString();
1051
-
1063
+        this.recordInfo.tableList[i].min_price = this.recordInfo.tableList[i].min_price.toString()
1052
         for (let j = 0; j < this.manufactuerList.length; j++) {
1064
         for (let j = 0; j < this.manufactuerList.length; j++) {
1053
           if (
1065
           if (
1054
             this.recordInfo.tableList[i].supply_manufacturer ==
1066
             this.recordInfo.tableList[i].supply_manufacturer ==
1099
     checkGoodOrder() {
1111
     checkGoodOrder() {
1100
       var id = this.warese_out_id;
1112
       var id = this.warese_out_id;
1101
       var warehousing_id = this.id;
1113
       var warehousing_id = this.id;
1102
-      console.log("id23322332233223",id)
1103
-      console.log("checkGoodOrder23323",warehousing_id)
1114
+      console.log("采购单ID",id)
1115
+      console.log("采购订单ID",warehousing_id)
1104
     
1116
     
1105
       getGoodOrderCountList(id, warehousing_id).then((response) => {
1117
       getGoodOrderCountList(id, warehousing_id).then((response) => {
1106
         if (response.data.state == 1) {
1118
         if (response.data.state == 1) {
1107
           this.$message.success("审核成功!");
1119
           this.$message.success("审核成功!");
1120
+          
1108
           this.is_check = 1
1121
           this.is_check = 1
1109
           this.showOne = false;
1122
           this.showOne = false;
1110
           this.showTwo = true;
1123
           this.showTwo = true;
1210
         }
1223
         }
1211
       });
1224
       });
1212
     },
1225
     },
1226
+    MofyGoodOrder() {
1227
+      var id = this.warese_out_id;
1228
+      console.log("采购单ID",id)
1229
+      var params = {
1230
+        id: id,
1231
+      };
1232
+      MofyGoodOrder(params).then((response) => {
1233
+        if (response.data.state == 1) {
1234
+          var msg = response.data.data.msg;
1235
+          if (msg == 1) {
1236
+            this.$message.success("反审核成功!");
1237
+            this.is_check = 2
1238
+            this.disabled = false
1239
+            this.Reviewed = false
1240
+            return
1241
+          }
1242
+          if (msg == 2) {
1243
+            var cancelList = response.data.data.cancelList
1244
+            console.log("cancelLIST2332322332232323",cancelList)
1245
+            this.orderList = cancelList
1246
+            this.$refs.Popup.dialogVisible = true
1247
+            return
1248
+          }
1249
+
1250
+          var purcaseOrder = response.data.data.purcaseOrder;
1251
+          console.log("采购订单", purcaseOrder);
1252
+          var goodOrder = response.data.data.goodOrder;
1253
+          console.log("采购单", goodOrder);
1254
+          var drugList = response.data.data.drugList;
1255
+          console.log("druglist23323223", drugList);
1256
+          var ids = "";
1257
+          // 如果采购单没有数据,则代表改订单第一次生成采购订单数据
1258
+          if (goodOrder.length == 0) {
1259
+            this.$router.push({path: "/good/order/add?id=" + id + "&ids=" + ids});
1260
+          }
1261
+          for (let i = 0; i < purcaseOrder.length; i++) {
1262
+            for (let j = 0; j < drugList.length; j++) {
1263
+              if (purcaseOrder[i].is_source == 1) {
1264
+                if (purcaseOrder[i].supply_unit == drugList[j].max_unit) {
1265
+                  purcaseOrder[i].count = purcaseOrder[i].count * drugList[j].min_number;
1266
+                }
1267
+              }
1268
+            }
1269
+          }
1270
+
1271
+          for (let i = 0; i < goodOrder.length; i++) {
1272
+            for (let j = 0; j < drugList.length; j++) {
1273
+              if (goodOrder[i].is_source == 1) {
1274
+                if (goodOrder[i].supply_unit == drugList[j].max_unit) {
1275
+                  goodOrder[i].count = goodOrder[i].count * drugList[j].min_number;
1276
+                }
1277
+              }
1278
+            }
1279
+          }
1280
+
1281
+          let objInfo = {};
1282
+          if (goodOrder.length > 0) {
1283
+            goodOrder.forEach((item, index) => {
1284
+              let { project_id } = item;
1285
+              if (!objInfo[project_id]) {
1286
+                objInfo[project_id] = {
1287
+                  project_id,
1288
+                  child: [],
1289
+                  count: 0,
1290
+                };
1291
+              }
1292
+            });
1293
+            let newArr = Object.values(objInfo);
1294
+
1295
+            for (let i = 0; i < goodOrder.length; i++) {
1296
+              for (let j = 0; j < newArr.length; j++) {
1297
+                if (goodOrder[i].project_id == newArr[j].project_id) {
1298
+                  newArr[j].child.push(goodOrder[i]);
1299
+                }
1300
+              }
1301
+            }
1302
+            console.log("newAr2332232323", newArr);
1303
+
1304
+            for (let i = 0; i < newArr.length; i++) {
1305
+              for (let j = 0; j < newArr[i].child.length; j++) {
1306
+                newArr[i].count += newArr[i].child[j].count;
1307
+              }
1308
+            }
1309
+
1310
+            var arr = [];
1311
+            var total = 0;
1312
+            var str = "";
1313
+
1314
+            //如果采购单有数据,则需要比较数量
1315
+            if (newArr.length > 0) {
1316
+              for (let i = 0; i < purcaseOrder.length; i++) {
1317
+                for (let j = 0; j < newArr.length; j++) {
1318
+                  if (purcaseOrder[i].project_id == newArr[j].project_id) {
1319
+                    //根据商品ID比较数量大小,如果采购单的数量大于采购订单的数据
1320
+                    if (purcaseOrder[i].count < newArr[j].count) {
1321
+                      arr.push(purcaseOrder[i].project_id);
1322
+                    }
1323
+                  }
1324
+                }
1325
+              }
1326
+              //如果total的长度等于0,怎修改该订单的状态为全部入库
1327
+
1328
+              if (arr.length > 0) {
1329
+                //修改采购订单的状态为全部入库
1330
+                this.UpdateSupplyWahouseingInfo();
1331
+              }
1332
+            }
1333
+          }
1334
+        }
1335
+      });
1336
+    },
1337
+    UpdateSupplyWahouseingInfo() {
1338
+      var params = {
1339
+        warehousing_id: this.$route.query.warehousing_id,
1340
+      };
1341
+      console.log("采购单ID",params)
1342
+      UpdateSupplyWahouseingInfo(params).then((response) => {
1343
+        if (response.data.state == 1) {
1344
+          var msg = response.data.data.msg;
1345
+        }
1346
+      });
1347
+    },
1213
   },
1348
   },
1214
   created() {
1349
   created() {
1215
     const tempObj = {};
1350
     const tempObj = {};
1234
     tempObj["order_number"] = "";
1369
     tempObj["order_number"] = "";
1235
     tempObj["supply_expiry_date"] = "";
1370
     tempObj["supply_expiry_date"] = "";
1236
     tempObj["manufacturer_id"] = "";
1371
     tempObj["manufacturer_id"] = "";
1372
+    tempObj["min_price"] = ""
1237
     this.recordInfo.tableList.push(tempObj);
1373
     this.recordInfo.tableList.push(tempObj);
1238
     this.getInitOrder();
1374
     this.getInitOrder();
1239
     if (parseInt(this.$route.query.id) > 0) {
1375
     if (parseInt(this.$route.query.id) > 0) {

+ 7 - 4
src/xt_pages/supply/components/addPurchaseOrder.vue 查看文件

94
             size="small"
94
             size="small"
95
             type="primary"
95
             type="primary"
96
             @click="updatePurchaseOrder"
96
             @click="updatePurchaseOrder"
97
-            v-show="showOne"
98
-            >保存</el-button
99
-          >
97
+            v-show="showThree">保存
98
+          </el-button>
100
         </div>
99
         </div>
101
       </div>
100
       </div>
102
 
101
 
390
       ],
389
       ],
391
       showTwo: true,
390
       showTwo: true,
392
       showOne: false,
391
       showOne: false,
392
+      showThree:false,
393
       recordInfo: {
393
       recordInfo: {
394
         tableList: [],
394
         tableList: [],
395
       },
395
       },
724
               }
724
               }
725
               this.showTwo = false;
725
               this.showTwo = false;
726
               this.showOne = true;
726
               this.showOne = true;
727
+              this.showThree = true
727
             }
728
             }
728
           });
729
           });
729
         }
730
         }
865
               var info = response.data.data.info;
866
               var info = response.data.data.info;
866
               this.is_check = info.is_check
867
               this.is_check = info.is_check
867
               this.showOne = false
868
               this.showOne = false
869
+              this.showTwo = false
870
+              this.showThree = true
868
               this.disabled = true;
871
               this.disabled = true;
869
               this.$message.success("审核成功!");
872
               this.$message.success("审核成功!");
870
               this.Reviewed = true
873
               this.Reviewed = true
919
           var ids = "";
922
           var ids = "";
920
           // 如果采购单没有数据,则代表改订单第一次生成采购订单数据
923
           // 如果采购单没有数据,则代表改订单第一次生成采购订单数据
921
           if (goodOrder.length == 0) {
924
           if (goodOrder.length == 0) {
922
-            this.$router.push({path: "/good/order/add?id=" + id + "&ids=" + ids});
925
+            this.$router.push({path: "/good/order/add?id=" + this.id + "&ids=" + ids});
923
           }
926
           }
924
           for (let i = 0; i < purcaseOrder.length; i++) {
927
           for (let i = 0; i < purcaseOrder.length; i++) {
925
             for (let j = 0; j < drugList.length; j++) {
928
             for (let j = 0; j < drugList.length; j++) {

+ 25 - 5
src/xt_pages/supply/components/editGoodOrder.vue 查看文件

236
             </template>
236
             </template>
237
           </el-table-column>
237
           </el-table-column>
238
 
238
 
239
+          <el-table-column label="拆零零售价" align="center" width="180px">
240
+            <template slot-scope="scope">
241
+              <el-input
242
+                v-model="scope.row.min_price"
243
+                style="width: 140px"
244
+                :disabled="disabled"
245
+                placeholder="请输入拆零零售价"
246
+              ></el-input>
247
+              <div style="visibility: hidden">/</div>
248
+            </template>
249
+          </el-table-column>
250
+
239
           <el-table-column label="采购单价" align="center" width="180px">
251
           <el-table-column label="采购单价" align="center" width="180px">
240
             <template slot-scope="scope">
252
             <template slot-scope="scope">
241
               <el-input
253
               <el-input
248
             </template>
260
             </template>
249
           </el-table-column>
261
           </el-table-column>
250
 
262
 
263
+      
264
+
251
           <el-table-column label="采购金额" align="center" width="120px">
265
           <el-table-column label="采购金额" align="center" width="120px">
252
             <template slot-scope="scope">
266
             <template slot-scope="scope">
253
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
267
               {{ calculate(scope.row.supply_count * scope.row.supply_price) }}
588
             drugList[i].type = 1;
602
             drugList[i].type = 1;
589
             drugList[i].supply_price = drugList[i].last_price;
603
             drugList[i].supply_price = drugList[i].last_price;
590
             drugList[i].name = drugList[i].drug_name;
604
             drugList[i].name = drugList[i].drug_name;
605
+            drugList[i].min_price = drugList[i].min_price
591
             if (drugList[i].max_unit != drugList[i].min_unit) {
606
             if (drugList[i].max_unit != drugList[i].min_unit) {
592
               drugList[i].unitList = [
607
               drugList[i].unitList = [
593
                 { id: 1, name: "" },
608
                 { id: 1, name: "" },
642
             goodList[i].supply_unit = goodList[i].packing_unit;
657
             goodList[i].supply_unit = goodList[i].packing_unit;
643
             goodList[i].warehouse_info_id = 0;
658
             goodList[i].warehouse_info_id = 0;
644
             goodList[i].warehousing_id = 0;
659
             goodList[i].warehousing_id = 0;
660
+            goodList[i].min_price = goodList[i].retail_price
645
             for (let j = 0; j < goodList[i].unitList.length; j++) {
661
             for (let j = 0; j < goodList[i].unitList.length; j++) {
646
               goodList[i].unitList[0].name = goodList[i].packing_unit;
662
               goodList[i].unitList[0].name = goodList[i].packing_unit;
647
             }
663
             }
662
           this.recordInfo.tableList[i].name = val.name;
678
           this.recordInfo.tableList[i].name = val.name;
663
           this.recordInfo.tableList[i].supply_name = val.supply_name;
679
           this.recordInfo.tableList[i].supply_name = val.supply_name;
664
           this.recordInfo.tableList[i].supply_type = val.supply_type;
680
           this.recordInfo.tableList[i].supply_type = val.supply_type;
665
-          this.recordInfo.tableList[i].supply_specification_name =
666
-            val.supply_specification_name;
681
+          this.recordInfo.tableList[i].supply_specification_name = val.supply_specification_name;
667
           this.recordInfo.tableList[i].supply_total = val.supply_total;
682
           this.recordInfo.tableList[i].supply_total = val.supply_total;
668
-
683
+          this.recordInfo.tableList[i].min_price = val.min_price  
669
           if (val.supply_count == NaN) {
684
           if (val.supply_count == NaN) {
670
             this.recordInfo.tableList[i].supply_count = "";
685
             this.recordInfo.tableList[i].supply_count = "";
671
           } else {
686
           } else {
725
       tempObj["warehousing_id"] = "";
740
       tempObj["warehousing_id"] = "";
726
       tempObj["number"] = "";
741
       tempObj["number"] = "";
727
       tempObj["good_number"] = "";
742
       tempObj["good_number"] = "";
743
+      tempObj["min_price"] = ""
728
       this.recordInfo.tableList.push(tempObj);
744
       this.recordInfo.tableList.push(tempObj);
729
     },
745
     },
730
     handleDelete: function (index, row) {
746
     handleDelete: function (index, row) {
857
               var info = response.data.data.info;
873
               var info = response.data.data.info;
858
               this.disabled = true;
874
               this.disabled = true;
859
               this.$message.success("审核成功!");
875
               this.$message.success("审核成功!");
860
-              this.getPurchaseOrderDetail();
876
+              // this.getPurchaseOrderDetail();
861
             }
877
             }
862
           });
878
           });
863
         })
879
         })
961
             tempObj["warehousing_id"] = "";
977
             tempObj["warehousing_id"] = "";
962
             tempObj["number"] = "";
978
             tempObj["number"] = "";
963
             tempObj["good_number"] = "";
979
             tempObj["good_number"] = "";
980
+            tempObj["min_price"] = ""
964
             this.recordInfo.tableList = [];
981
             this.recordInfo.tableList = [];
965
             this.recordInfo.tableList.push(tempObj);
982
             this.recordInfo.tableList.push(tempObj);
966
           }else{
983
           }else{
990
         this.recordInfo.tableList[i].supply_price = this.recordInfo.tableList[i].supply_price.toString();
1007
         this.recordInfo.tableList[i].supply_price = this.recordInfo.tableList[i].supply_price.toString();
991
         this.recordInfo.tableList[i].supply_total_price =  this.recordInfo.tableList[i].supply_total_price.toString();
1008
         this.recordInfo.tableList[i].supply_total_price =  this.recordInfo.tableList[i].supply_total_price.toString();
992
         this.recordInfo.tableList[i].supply_total = this.recordInfo.tableList[i].supply_total.toString();
1009
         this.recordInfo.tableList[i].supply_total = this.recordInfo.tableList[i].supply_total.toString();
993
-
1010
+        this.recordInfo.tableList[i].min_price = this.recordInfo.tableList[i].min_price.toString();
994
         for (let j = 0; j < this.manufactuerList.length; j++) {
1011
         for (let j = 0; j < this.manufactuerList.length; j++) {
995
           if ( this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].manufacturer_name) {
1012
           if ( this.recordInfo.tableList[i].supply_manufacturer == this.manufactuerList[j].manufacturer_name) {
996
             this.recordInfo.tableList[i].manufacturer_id = this.manufactuerList[j].id;
1013
             this.recordInfo.tableList[i].manufacturer_id = this.manufactuerList[j].id;
1034
     checkGoodOrder() {
1051
     checkGoodOrder() {
1035
       var id = this.$route.query.id;
1052
       var id = this.$route.query.id;
1036
       var warehousing_id = this.$route.query.warehousing_id;
1053
       var warehousing_id = this.$route.query.warehousing_id;
1054
+      console.log("采购单ID",id)
1055
+      console.log("采购订单ID",warehousing_id)
1037
       getGoodOrderCountList(id, warehousing_id).then((response) => {
1056
       getGoodOrderCountList(id, warehousing_id).then((response) => {
1038
         if (response.data.state == 1) {
1057
         if (response.data.state == 1) {
1039
           this.$message.success("审核成功!");
1058
           this.$message.success("审核成功!");
1407
     tempObj["warehousing_id"] = "";
1426
     tempObj["warehousing_id"] = "";
1408
     tempObj["number"] = "";
1427
     tempObj["number"] = "";
1409
     tempObj["good_number"] = "";
1428
     tempObj["good_number"] = "";
1429
+    tempObj["min_price"] = ""
1410
     this.recordInfo.tableList.push(tempObj);
1430
     this.recordInfo.tableList.push(tempObj);
1411
     this.getInitOrder();
1431
     this.getInitOrder();
1412
     if (parseInt(this.$route.query.id) > 0) {
1432
     if (parseInt(this.$route.query.id) > 0) {

+ 1 - 0
src/xt_pages/supply/components/editPurchaseOrder.vue 查看文件

317
             :rows="2"
317
             :rows="2"
318
             placeholder="备注信息"
318
             placeholder="备注信息"
319
             v-model="return_remark"
319
             v-model="return_remark"
320
+            :disabled="disabled"
320
           >
321
           >
321
           </el-input>
322
           </el-input>
322
         </div>
323
         </div>